1 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3 * hash-map-traits.h (simple_hashmap_traits ::remove): call
4 destructors on values that are being removed.
5 * mem-stats.h (hash_map): Pass type of values to
7 * tree-sra.c (sra_deinitialize): Remove work around for hash
8 maps not destructing values.
9 * genmatch.c (sinfo_hashmap_traits): Adjust.
10 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
12 2015-11-24 Richard Biener <rguenther@suse.de>
13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
19 2015-11-24 Jakub Jelinek <jakub@redhat.com>
22 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
23 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
25 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
26 whenever first is nelt or above. Don't mask expected with
29 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
32 * gimple-fold.c: Include ipa-chkp.h.
33 (gimple_fold_builtin_memory_op): Don't fold call if we
34 are going to instrument it and it may copy pointers.
36 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
37 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39 PR rtl-optimization/68194
40 PR rtl-optimization/68328
41 PR rtl-optimization/68185
42 * ree.c (combine_reaching_defs): Reject copy_needed case if
43 copies_list is not empty.
45 2015-11-24 Richard Biener <rguenther@suse.de>
48 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
51 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
53 PR rtl-optimization/68381
54 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
57 2015-11-23 Nick Clifton <nickc@redhat.com>
58 Jeff Law <law@redhat.com>
60 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
61 the source/dest of the target extension require a different number of
63 (combine_set_extension): Remove #if 0 code.
65 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
66 Sebastian Pop <s.pop@samsung.com>
68 PR tree-optimization/68314
69 * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
70 * graphite-poly.c (new_scop): Remove original_schedule.
72 * graphite-poly.h (struct scop): Same.
73 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
74 (build_pbb_scattering_polyhedrons): Add back.
75 (build_scop_minimal_scattering): Remove.
76 (build_scop_scattering): Add back.
77 (build_scop_original_schedule): Remove.
78 (build_poly_scop): Revert to only call build_scop_scattering.
80 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
81 Sebastian Pop <s.pop@samsung.com>
83 PR tree-optimization/68493
84 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
85 missing early return when codegen_error is set.
87 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
88 Sebastian Pop <s.pop@samsung.com>
90 PR tree-optimization/68279
91 * graphite-poly.c (new_scop): Remove poly_scop_p.
92 * graphite-poly.h (struct scop): Same.
93 (build_poly_scop): Declare.
94 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
95 (cleanup_loop_iter_dom): New.
96 (build_loop_iteration_domains): Early return when scev analysis fails.
97 (create_pw_aff_from_tree): Same.
98 (add_condition_to_pbb): Same.
99 (add_conditions_to_domain): Same.
100 (add_conditions_to_constraints): Same.
101 (build_scop_iteration_domain): Same.
102 (build_poly_scop): Same. Do not initialize poly_scop_p.
103 * graphite-sese-to-poly.h: Remove.
104 * graphite.c: Do not include graphite-sese-to-poly.h.
105 (graphite_transform_loops): Stop before code generation when
106 build_poly_scop fails.
107 * sese.c (scalar_evolution_in_region): Add fixme note about scev
110 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
111 Sebastian Pop <s.pop@samsung.com>
113 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
114 Remove call to update_ssa.
115 * sese.c (sese_insert_phis_for_liveouts): Same.
117 2015-11-23 Marek Polacek <polacek@redhat.com>
119 PR tree-optimization/68455
120 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
121 extract_range_from_multiplicative_op_1 on symbolic ranges.
123 2015-11-23 Richard Henderson <rth@redhat.com>
125 * optabs.def (uaddv4_optab, usubv4_optab): New.
126 * internal-fn.c (expand_addsub_overflow): Use them.
127 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
129 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
130 to reversed operands.
131 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
132 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
133 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
134 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
135 (*add<SWI>3_cconly_overflow_2): New.
136 (*add<SWI>3_cc_overflow_2): New.
137 (*addsi3_zext_cc_overflow_2): New.
139 2015-11-23 Richard Biener <rguenther@suse.de>
141 PR tree-optimization/68465
142 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
143 Also record equalities from multiple predecessor blocks if
144 only one non-backedge exists.
146 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
149 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
152 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
154 * config/aarch64/aarch64-builtins.c
155 (aarch64_gimple_fold_builtin): Fold FMULX.
157 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
159 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
160 * graphite-dependences.c: Define USES_ISL. Include ISL header files
161 after GCC header files and before graphite header files.
162 * graphite-dependences.c: Same.
163 * graphite-isl-ast-to-gimple.c: Same.
164 * graphite-optimize-isl.c: Same.
165 * graphite-poly.c: Same.
166 * graphite-scop-detection.c: Same.
167 * graphite-sese-to-poly.c: Same.
170 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
171 Jiong Wang <jiong.wang@arm.com>
173 PR tree-optimization/68317
174 PR tree-optimization/68326
175 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
176 final min and max are not infinity.
178 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
179 Richard Biener <rguenther@suse.de>
181 PR tree-optimization/68327
182 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
183 compute vectype for non-relevant mask producers.
184 * gcc/tree-vect-stmts.c (vectorizable_comparison): Check stmt
187 2015-11-23 Tom de Vries <tom@codesourcery.com>
189 PR tree-optimization/68460
190 * tree-parloops.c (gather_scalar_reductions): Also call
191 free_stmt_vec_info_vec if simple_loop_info == NULL.
193 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
195 * opts.c (finish_options): Allow -fsanitize-recover=address for
196 userspace sanitization.
197 * asan.c (asan_expand_check_ifn): Redefine recover_p.
198 * doc/invoke.texi (fsanitize-recover): Update documentation.
200 2015-11-23 Tom de Vries <tom@codesourcery.com>
202 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
204 2015-11-23 Richard Biener <rguenther@suse.de>
206 PR tree-optimization/68445
207 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
208 two different strides.
210 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
212 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
213 * config/s390/s390.c (s390_check_symref_alignment): Use new
214 symref flags, early abort on wrong alignment
215 (s390_secondary_reload): Use new symref flags.
216 (s390_encode_section_info): Likewise.
217 * config/s390/predicates.md: Likewise.
219 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
222 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
223 for indirect function call.
225 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
227 * config/aarch64/aarch64-simd.md
228 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
229 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
230 (*aarch64_mulx_elt_to_64v2df): Likewise.
231 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
232 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
233 (vmulx_lane_f64): Likewise.
234 (vmulxq_lane_f32): Refactored & moved.
235 (vmulxq_lane_f64): Likewise.
236 (vmulx_laneq_f32): New.
237 (vmulx_laneq_f64): Likewise.
238 (vmulxq_laneq_f32): Likewise.
239 (vmulxq_laneq_f64): Likewise.
240 (vmulxs_lane_f32): Likewise.
241 (vmulxs_laneq_f32): Likewise.
242 (vmulxd_lane_f64): Likewise.
243 (vmulxd_laneq_f64): Likewise.
245 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
247 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
248 In LTO we do not compute TYPE_CANONICAL of pointers.
249 (gimple_canonical_types_compatible_p): Improve coments; sanity check
250 that pointers do not have canonical type that would make us believe
252 * alias.c (get_alias_set): Do structural type equality on pointers;
253 enable pointer path for LTO; also glob pointer to vector with pointer
254 to vector element; glob pointers and references for LTO; do more strict
255 sanity checking about build_pointer_type returning the canonical type
256 which is also the main variant.
257 (record_component_aliases): When component type is pointer and we
258 do LTO; record void_type_node alias set.
260 2015-11-21 Nathan Sidwell <nathan@acm.org>
262 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
264 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
266 (write_func_decl_from_insn): Likewise.
267 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
268 (nvptx_file_end): Likewise.
269 (nvptx_function_end): Undent output.
270 (nvptx_expand_call): Fix formatting.
271 (nvptx_output_call_insn): Indent output.
272 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
273 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
275 2015-11-21 Jakub Jelinek <jakub@redhat.com>
278 * tree-inline.c (copy_debug_stmt): If
279 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
280 in decl_debug_args, don't call remap_gimple_op_r on it.
282 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
284 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
285 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
286 Check that all record types are complete.
287 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
288 compare alias sets for types w/o alias sets.
290 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
292 * config/sparc/sparc.md (umulxhi_vis): Move around.
293 (*umulxhi_sp64): Likewise.
294 (umulxhi_v8plus): Likewise.
295 (xmulx_vis): Likewise.
296 (*xmulx_sp64): Likewise.
297 (xmulx_v8plus): Likewise.
298 (xmulxhi_vis): Likewise.
299 (*xmulxhi_sp64): Likewise.
300 (xmulxhi_v8plus): Likewise.
302 2015-11-20 David Malcolm <dmalcolm@redhat.com>
305 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
306 (class layout): Update comment
307 (layout::print_any_fixits): New method.
308 (layout::move_to_column): New method.
309 (diagnostic_show_locus): Add call to layout.print_any_fixits.
311 2015-11-20 Jakub Jelinek <jakub@redhat.com>
314 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
315 has non-zero bias, subtract it in integer type instead of
316 pointer plus of negated bias.
319 * omp-low.c (expand_simd_clones): Call node->get_body () before
320 allocating stuff in GC.
322 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
324 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
326 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
328 * config/aarch64/aarch64.md (predicated): Copy attribute from
330 * config/arm/arm.md (predicated): Added description.
332 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
334 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
335 for unaligned_access.
336 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
337 from matching condition.
338 (unaligned_loadhis): Likewise.
339 (unaligned_loadhiu): Likewise.
340 (unaligned_storesi): Likewise.
341 (unaligned_storehi): Likewise.
343 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
346 * config/arm/arm.md (unaligned_loaddi): Delete.
347 (unaligned_storedi): Likewise.
348 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
349 unaligned DImode memory ops. Instead perform two back-to-back
350 unaligned SImode ops.
352 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
353 James Norris <jnorris@codesourcery.com>
355 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
356 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
358 2015-11-20 Alan Hayward <alan.hayward@arm.com>
360 PR tree-optimization/68413
361 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
363 (vectorizable_reduction): Use cached base
365 2015-11-20 Tom de Vries <tom@codesourcery.com>
367 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
369 (try_create_reduction_list): Same. Fix typo in dump-file string.
371 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
373 * doc/md.texi (Standard Names): Move entry for addptr3 around,
374 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
375 glitch in entries for cbranch4 and jump.
377 2015-11-20 Tom de Vries <tom@codesourcery.com>
379 PR tree-optimization/68373
380 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
382 (scev_const_prop): ... here.
383 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
384 * tree-parloops.c (try_create_reduction_list): Call
385 final_value_replacement_loop.
387 2015-11-20 Bin Cheng <bin.cheng@arm.com>
389 PR tree-optimization/52272
390 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
391 (struct iv_common_cand_hasher): New struct.
392 (iv_common_cand_hasher::hash): New function.
393 (iv_common_cand_hasher::equal): New function.
394 (struct ivopts_data): New fields, iv_common_cand_tab and
396 (tree_ssa_iv_optimize_init): Initialize above fields.
397 (record_common_cand, common_cand_cmp): New functions.
398 (add_iv_candidate_derived_from_uses): New function.
399 (add_iv_candidate_for_use): Record iv_common_cands derived from
400 iv use in hash table, instead of adding candidates directly.
401 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
402 (record_important_candidates): Add important candidates to iv uses'
403 related_cands. Always keep related_cands for future use.
404 (try_add_cand_for): Use iv uses' related_cands.
405 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
406 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
408 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
410 * config/s390/s390.md ("bswaphi2"): New pattern.
412 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
414 * config/s390/s390.md (GPR1_REGNUM): New constant.
415 ("*trunc<BFP:mode><DFP_ALL:mode>2")
416 ("*trunc<DFP_ALL:mode><BFP:mode>2")
417 ("trunc<BFP:mode><DFP_ALL:mode>2")
418 ("trunc<DFP_ALL:mode><BFP:mode>2")
419 ("*extend<BFP:mode><DFP_ALL:mode>2")
420 ("*extend<DFP_ALL:mode><BFP:mode>2")
421 ("extend<BFP:mode><DFP_ALL:mode>2")
422 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
424 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
425 Sebastian Pop <s.pop@samsung.com>
427 PR tree-optimization/68428
428 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
429 over basic blocks outside the scop.
431 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
432 Sebastian Pop <s.pop@samsung.com>
434 PR tree-optimization/68341
435 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
436 gcc_unreachable and safely fail codegen.
437 (copy_loop_close_phi_args): Do not insert merge phis in a basic
438 block with loop phi nodes.
439 (edge_for_new_close_phis): New.
440 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
442 2015-11-19 Nathan Sidwell <nathan@acm.org>
444 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
445 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
446 (nvptx_declare_objec_name): Likewise.
448 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
450 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
451 (get_false_edge_from_guard_bb): Move...
452 * sese.c (get_false_edge_from_guard_bb)
453 (get_true_edge_from_guard_bb): ... here.
455 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
458 2015-11-18 Alan Modra <amodra@gmail.com>
460 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
464 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
466 * tree.h (desired_pro_or_demotion_p): New function.
467 * tree-vrp.c (simplify_cond_using_ranges): Call it.
469 2015-11-19 Michael Matz <matz@suse.de>
471 * fwprop.c (update_uses): Use flag_checking instead of
474 2015-11-19 David Malcolm <dmalcolm@redhat.com>
476 * doc/gty.texi (Support for inheritance): Fix missing
477 parentheses in example.
479 2015-11-19 Marek Polacek <polacek@redhat.com>
481 PR tree-optimization/68431
482 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
484 2015-11-19 Nathan Sidwell <nathan@acm.org>
486 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
487 atomic_exchange<mode>): Input values can be immediates.
489 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
492 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
494 * configure: Regenerate.
496 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
499 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
500 (DTORS_SECTION_ASM_OP): Likewise.
502 2015-11-19 Jakub Jelinek <jakub@redhat.com>
504 PR rtl-optimization/68376
505 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
506 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
508 2015-11-19 Richard Biener <rguenther@suse.de>
511 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
512 redirect_edge_var_map_destroy.
514 2015-11-19 Jakub Jelinek <jakub@redhat.com>
517 * config/i386/i386.md (simple_return): Disable if
518 ix86_static_chain_on_stack is true.
520 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
523 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
526 2015-11-18 Jeff Law <law@redhat.com>
528 PR tree-optimization/68198
529 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
530 between threading a multi-way branch and a thread path that contains
531 a multi-way branch. Disallow the case where a path contains a
532 multi-way branch and does not thread a multi-way branch.
533 (thread_through_all_blocks): Update comment.
535 2015-11-18 Joseph Myers <joseph@codesourcery.com>
538 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
539 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
540 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
541 functions before defining as macros.
543 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
545 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
546 (nvptx_record_offload_symbol): Remove code compensating for lack
547 of default dimension handling.
548 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
550 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
552 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
553 type to bool for early exit.
554 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
556 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
557 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
558 predecessor dominates the other.
559 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
560 element is not found it returns -1.
561 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
562 out early when codegen fails.
563 (graphite_regenerate_ast_isl): Remove codegen region when pending
564 phis could not be generated.
566 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
568 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
570 (class translate_isl_ast_to_gimple): Indentation.
571 (translate_pending_phi_nodes): Comment.
572 (add_parameters_to_ivs_params): Moved from sese.c inside class
573 translate_isl_ast_to_gimple.
574 (get_max_schedule_dimensions): Same.
575 (generate_isl_context): Same.
576 (extend_schedule): Same.
577 (generate_isl_schedule): Same.
579 (scop_to_isl_ast): Same.
580 (is_valid_rename): Same.
582 (get_rename_from_scev): Same.
583 (get_def_bb_for_const): Same.
584 (get_new_name): Same.
585 (collect_all_ssa_names): Same.
586 (copy_loop_phi_args): Same.
587 (copy_loop_phi_nodes): Same.
588 (copy_loop_close_phi_args): Same.
589 (copy_loop_close_phi_nodes): Same.
590 (copy_cond_phi_args): Same.
591 (copy_cond_phi_nodes): Same.
592 (graphite_copy_stmts_from_block): Same.
593 (copy_bb_and_scalar_dependences): Same.
594 (add_phi_arg_for_new_expr): Same.
597 (set_rename_for_each_def): Same.
598 (gsi_insert_earliest): Same.
599 (rename_all_uses): Same.
600 (codegen_error_p): Same.
601 (print_isl_ast_node): Same.
602 (translate_isl_ast_for_loop): Call function codegen_error_p.
603 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
604 (translate_isl_ast_node_user): Make nb_loops const and release
606 (get_true_edge_from_guard_bb): Move all free-functions early.
607 (get_false_edge_from_guard_bb): Same.
608 (bb_contains_loop_close_phi_nodes): Same.
609 (bb_contains_loop_phi_nodes): Same.
610 (is_loop_closed_ssa_use): Same.
611 (number_of_phi_nodes): Same.
612 (phi_uses_name): Same.
613 (later_of_the_two): Same.
614 (substitute_ssa_name):
617 (get_loop_init_value): Same.
618 (find_init_value): Same.
619 (find_init_value_close_phi): Same.
620 (ast_build_before_for): Same.
621 (graphite_regenerate_ast_isl): Formatting changes.
622 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
623 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
625 (gsi_insert_earliest): Same.
626 (collect_all_ssa_names): Same.
627 (rename_all_uses): Same.
629 (get_def_bb_for_const): Same.
630 (copy_loop_phi_nodes): Same.
631 (copy_loop_close_phi_args): Same.
632 (copy_loop_close_phi_nodes): Same.
633 (copy_cond_phi_args): Same.
634 (copy_cond_phi_nodes): Same.
635 (set_rename_for_each_def): Same.
636 (graphite_copy_stmts_from_block): Same.
637 (copy_bb_and_scalar_dependences): Same.
638 (if_region_set_false_region): Same.
639 (scev_analyzable_p): Same.
640 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
642 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
644 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
645 commit from r125920 for FreeBSD.
647 2015-11-18 Jason Merrill <jason@redhat.com>
649 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
651 (add_finalizer): Split out from ggc_internal_alloc.
652 (ggc_handle_finalizers): Run finalizers for the current depth.
653 (init_ggc, ggc_pch_read): Reserve space for finalizers.
655 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
658 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
661 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
663 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
664 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
666 * doc/avr-mmcu.texi: Regenerate.
668 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
670 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
671 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
672 (struct bb_sese): New struct.
673 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
674 (BB_GET_SESE, BB_SET_SESE): Define.
675 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
676 (nvptx_find_sese): New.
677 (nvptx_neuter_pars): Find SESE regions when optimizing.
679 2015-11-18 Alan Modra <amodra@gmail.com>
681 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
684 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
687 * hash-set.h (hash_set::traverse): Expand Key typedef.
689 2015-11-18 Martin Liska <mliska@suse.cz>
691 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
694 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
696 * config/nvptx/nvptx.c (global_lock_var): New.
697 (nvptx_global_lock_addr): New.
698 (nvptx_lockless_update): Recomment and adjust for clarity.
699 (nvptx_lockfull_update): New.
700 (nvptx_reduction_update): New.
701 (nvptx_goacc_reduction_fini): Call it.
703 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
705 * regrename.h (struct du_head): Add target_data_1 and target_data_2
707 * regrename.c (create_new_chain): Clear entire struct after allocating.
709 * config/i386/i386.opt (mmitigate-rop): New option.
710 * doc/invoke.texi (mmitigate-rop): Document.
711 * config/i386/i386.c: Include "regrename.h".
712 (ix86_rop_should_change_byte_p, reg_encoded_number,
713 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
715 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
716 * config/i386/i386.md (attr "modrm_class"): New.
717 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
718 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
719 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
721 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
724 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
726 2015-11-18 Jakub Jelinek <jakub@redhat.com>
728 PR tree-optimization/68157
729 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
730 pow_stmt or mul_stmt from stmt's uid.
731 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
733 2015-11-18 Martin Liska <mliska@suse.cz>
735 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
737 2015-11-18 Martin Liska <mliska@suse.cz>
739 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
740 Fix GNU coding style.
741 (find_def_preds): Use auto_vec.
742 (destroy_predicate_vecs): Change signature of the function.
743 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
745 (simplify_preds_4): Use destroy_predicate_vecs instread of
746 just releasing preds vector.
747 (normalize_preds): Likewise.
748 (is_use_properly_guarded): Use new signature of
749 destroy_predicate_vecs.
750 (find_uninit_use): Likewise.
752 2015-11-18 Richard Biener <rguenther@suse.de>
754 PR tree-optimization/67790
755 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
756 IL rewrite for MINUS_EXPR reductions, rename back to ...
757 (vect_is_simple_reduction): ... this, removing the wrapper.
758 (vect_force_simple_reduction): Adjust.
759 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
760 reductions and make use if reduc_index in all places. For
761 the final reduction of MINUS_EXPR use PLUS_EXPR.
763 2015-11-18 Alan Modra <amodra@gmail.com>
765 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
767 * configure: Regenerate.
769 2015-11-17 Tom de Vries <tom@codesourcery.com>
771 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
773 2015-11-17 Tom de Vries <tom@codesourcery.com>
775 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
776 uses of ssa_name with constant.
778 2015-11-17 Tom de Vries <tom@codesourcery.com>
780 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
783 2015-11-17 Tom de Vries <tom@codesourcery.com>
785 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
786 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
787 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
789 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
791 * regrename.c (regrename_find_superclass): New function, code moved
793 (rename_chains): ... here. Call it.
794 * regrename.h (regrename_find_superclass): Declare.
796 * regrename.c (record_out_operands): Terminate earlyclobbered
800 * regrename.c (record_operand_use): Keep track of failed operands
801 and stop appending if we see any.
802 * regrename.h (struct operand_rr_info): Add a failed field and shrink
805 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
808 * doc/extend.texi (Common Function Attributes) [visibility]:
809 Add cross-references to matching variable and type attributes.
810 (Common Variable Attributes) [visibility]: Add missing entry.
812 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
814 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
815 entries that map directly to optabs.
817 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
819 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
820 entries that map directly to optabs.
822 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
824 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
825 * internal-fn.c (direct_internal_fn_array): Update accordingly.
826 * tree-vectorizer.h (vectorizable_function): Delete.
827 * tree-vect-stmts.c: Include internal-fn.h.
828 (vectorizable_internal_function): New function.
829 (vectorizable_function): Inline into...
830 (vectorizable_call): ...here. Explicitly reject calls that read
831 from or write to memory. Try using an internal function before
832 falling back on the old vectorizable_function behavior.
834 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
836 * target.def (builtin_vectorized_function): Take a combined_fn (in
837 the form of an unsigned int) rather than a function decl.
838 (builtin_md_vectorized_function): New.
839 * targhooks.h (default_builtin_vectorized_function): Replace the
840 fndecl argument with an unsigned int.
841 (default_builtin_md_vectorized_function): Declare.
842 * targhooks.c (default_builtin_vectorized_function): Replace the
843 fndecl argument with an unsigned int.
844 (default_builtin_md_vectorized_function): New function.
845 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
847 * doc/tm.texi: Regenerate.
848 * tree-vect-stmts.c (vectorizable_function): Update call to
849 builtin_vectorized_function, also passing internal functions.
850 Call builtin_md_vectorized_function for target-specific builtins.
851 * config/aarch64/aarch64-protos.h
852 (aarch64_builtin_vectorized_function): Replace fndecl argument
853 with an unsigned int.
854 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
855 (aarch64_builtin_vectorized_function): Update after above changes.
857 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
858 fndecl argument with an unsigned int.
859 * config/arm/arm-builtins.c: Include case-cfn-macros.h
860 (arm_builtin_vectorized_function): Update after above changes.
862 * config/i386/i386.c: Include case-cfn-macros.h
863 (ix86_veclib_handler): Take a combined_fn rather than a
865 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
866 mathfn_built_in rather than calling builtin_decl_implicit directly.
867 (ix86_builtin_vectorized_function) Update after above changes.
869 * config/rs6000/rs6000.c: Include case-cfn-macros.h
870 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
871 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
872 than calling builtin_decl_implicit directly.
873 (rs6000_builtin_vectorized_function): Update after above changes.
874 Use CASE_CFN_*. Move BUILT_IN_MD to...
875 (rs6000_builtin_md_vectorized_function): ...this new function.
876 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
878 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
880 * tree-vect-patterns.c: Include internal-fn.h.
881 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
883 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
885 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
886 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
888 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
890 * builtins.c (expand_errno_check, expand_builtin_mathfn)
891 (expand_builtin_mathfn_2): Delete.
892 (expand_builtin): Remove handling of functions with
893 internal function equivalents.
894 * internal-fn.def (SET_EDOM): New internal function.
895 * internal-fn.h (set_edom_supported_p): Declare.
896 * internal-fn.c (expand_SET_EDOM): New function.
897 (set_edom_supported_p): Likewise.
898 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
899 Rewrite comment at head of file.
900 (is_call_dce_candidate): Rename to...
901 (can_test_argument_range): ...this. Don't check gimple_call_lhs
902 or gimple_call_builtin_p here.
903 (edom_only_function): New function.
904 (shrink_wrap_one_built_in_call_with_conds): New function, split out
906 (shrink_wrap_one_built_in_call): ...here.
907 (can_use_internal_fn, use_internal_fn): New functions.
908 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
909 for calls that have an lhs.
910 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
911 (pass_call_cdce::execute): Skip blocks that are optimized for size.
912 Check gimple_call_builtin_p here. Use can_use_internal_fn for
914 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
917 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
919 * builtins.h (called_as_built_in): Declare.
920 * builtins.c (called_as_built_in): Make external.
921 * internal-fn.h (expand_internal_call): Define a variant that
922 specifies the internal function explicitly.
923 * internal-fn.c (expand_load_lanes_optab_fn)
924 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
925 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
926 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
927 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
928 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
929 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
930 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
931 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
932 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
933 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
934 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
935 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
936 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
938 (internal_fn_expanders): Update prototype.
939 (expand_internal_call): Define a variant that specifies the
940 internal function explicitly. Use it to implement the previous
942 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
943 functions as calls to internal functions.
945 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
947 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
948 (generated_files): Likewise.
949 (s-cfn-operators, cfn-operators.pd): New rules.
950 (s-match): Depend on cfn-operators.pd.
951 * gencfn-macros.c: Expand comment to describe -o behavior.
952 (print_define_operator_list): New function.
953 (main): Accept -o. Call print_define_operator_list.
954 * genmatch.c (main): Add the current directory to the include path.
955 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
958 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
960 * doc/match-and-simplify.texi: Document the "null" identifier.
961 * genmatch.c (id_base::NULL_ID): New kind.
962 (null_id): New variable.
963 (get_operator): Add a parameter that says whether null identifiers
965 (contains_id): New function.
966 (lower_for): Skip substitutions that would have a null_id in
967 either the match or the result.
968 (parser::parse_for): Allow the null identifier to be used.
969 (parser::parse_operator_list): Likewise.
970 (main): Initialize null_id.
972 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
974 * match.pd: Use HYPOT and COS rather than hypot and cos.
975 Use CASE_CFN_* macros. Guard log/exp folds with
977 * genmatch.c (internal_fn): New enum.
978 (fn_id::fn): Change to an unsigned int.
979 (fn_id::fn_id): Accept internal_fn too.
980 (add_builtin): Rename to...
981 (add_function): ...this and turn into a template.
982 (get_operator): Only try one variation if the original name fails.
983 Only add _EXPR if the original name was all lower case.
984 Try converting internal and built-in function names to their
986 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
987 (dt_simplify::gen_1): Likewise.
988 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
989 and get_call_combined_fn for generic.
990 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
991 (decision_tree::gen): Likewise.
992 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
993 Use add_function rather than add_builtin. Register internal
995 * generic-match-head.c: Include case-cfn-macros.h.
996 * gimple-fold.c (replace_stmt_with_simplification): Use
997 gimple_call_combined_fn to test whether we can keep an
999 * gimple-match.h (code_helper): Replace built_in_function
1001 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
1002 and case-fn-macros.h.
1003 (gimple_resimplify1): Use fold_const_call.
1004 (gimple_resimplify2, gimple_resimplify3): Likewise.
1005 (build_call_internal, build_call): New functions.
1006 (maybe_push_res_to_seq): Use them.
1007 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
1008 rather than a built-in function.
1009 * tree.h (build_call_expr_internal_loc): Declare.
1010 (maybe_build_call_expr_loc): Likewise.
1011 * tree.c (build_call_expr_internal_loc_array): New function.
1012 (maybe_build_call_expr_loc): Likewise.
1014 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1016 * builtins.h (mathfn_built_in): Add a variant that takes
1018 * builtins.c: Include case-cfn-macros.h.
1019 (CASE_MATHFN): Use CASE_CFN_*.
1020 (CASE_MATHFN_REENT): Use CFN_ codes.
1021 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
1022 argument with a combined_fn.
1023 (mathfn_built_in): Add a variant that takes a combined_fn.
1024 (expand_builtin_int_roundingfn_2): Update callers accordingly.
1025 (fold_builtin_sincos, fold_builtin_classify): Likewise.
1027 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1029 * tree-vect-patterns.c: Include case-cfn-macros.h.
1030 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
1032 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1034 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
1035 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
1036 (pass_cse_sincos::execute): Likewise.
1038 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1040 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
1041 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
1042 (decrement_power, acceptable_pow_call): Likewise.
1043 (attempt_builtin_copysign): Likewise.
1045 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1047 * tree-vrp.c: Include case-cfn-macros.h.
1048 (extract_range_basic): Switch on combined_fn rather than handling
1049 built-in functions and internal functions separately.
1051 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1053 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
1054 than a built_in_function.
1055 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1057 (integer_valued_real_call_p): Likewise.
1058 * fold-const.c: Include case-cfn-macros.h
1059 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
1060 (negate_expr_p): Update accordingly.
1061 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1063 (integer_valued_real_call_p): Likewise.
1064 (tree_invalid_nonnegative_warnv_p): Update accordingly.
1065 (integer_valued_real_p): Likewise.
1066 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
1067 to tree_call_nonnegative_warnv_p.
1068 (gimple_call_integer_valued_real_p): Likewise
1069 integer_valued_real_call_p.
1070 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
1071 (backprop::process_builtin_call_use): Extend to combined_fn.
1072 (strip_sign_op_1): Likewise.
1073 (backprop::process_use): Don't check for built-in calls here.
1074 (backprop::execute): Likewise.
1075 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
1077 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1079 * fold-const-call.h (fold_const_call): Replace built_in_function
1080 arguments with combined_fn arguments.
1081 * fold-const-call.c: Include case-cfn-macros.h.
1082 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
1083 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
1084 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
1085 built_in_function arguments with combined_fn arguments.
1086 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
1087 (fold_builtin_3): Update calls to fold_const_call.
1089 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1091 * Makefile.in (HASH_TABLE_H): Add GGC_H.
1092 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
1093 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
1094 (build/gencfn-macros$(build_exeext): New rules.
1095 (genprogerr): Add cfn-macros.
1096 * hash-set.h (hash_set): Use the traits value_type as the key.
1097 * gencfn-macros.c: New file.
1099 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1101 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
1102 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
1103 * builtins.c (associated_internal_fn): Handle them.
1105 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1107 * builtins.h (associated_internal_fn): Declare.
1108 (replacement_internal_fn): Likewise.
1109 * builtins.c: Include internal-fn.h
1110 (associated_internal_fn, replacement_internal_fn): New functions.
1111 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
1112 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
1113 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
1114 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
1115 (LDEXP): New functions.
1116 * internal-fn.c: Include recog.h.
1117 (unary_direct, binary_direct): New macros.
1118 (expand_direct_optab_fn): New function.
1119 (expand_unary_optab_fn): New macro.
1120 (expand_binary_optab_fn): Likewise.
1121 (direct_unary_optab_supported_p): Likewise.
1122 (direct_binary_optab_supported_p): Likewise.
1124 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1126 * coretypes.h (tree_pair): New type.
1127 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
1128 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
1129 * internal-fn.h (direct_internal_fn_info): New structure.
1130 (direct_internal_fn_array): Declare.
1131 (direct_internal_fn_p, direct_internal_fn): New functions.
1132 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
1133 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
1134 (mask_store_direct, store_lanes_direct): New macros.
1135 (direct_internal_fn_array) New array.
1136 (get_multi_vector_move): Return the optab handler without asserting
1137 that it is available.
1138 (expand_LOAD_LANES): Rename to...
1139 (expand_load_lanes_optab_fn): ...this and add an optab argument.
1140 (expand_STORE_LANES): Rename to...
1141 (expand_store_lanes_optab_fn): ...this and add an optab argument.
1142 (expand_MASK_LOAD): Rename to...
1143 (expand_mask_load_optab_fn): ...this and add an optab argument.
1144 (expand_MASK_STORE): Rename to...
1145 (expand_mask_store_optab_fn): ...this and add an optab argument.
1146 (direct_internal_fn_types, direct_optab_supported_p)
1147 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
1148 (direct_internal_fn_supported_p): New functions.
1149 (direct_mask_load_optab_supported_p): New macro.
1150 (direct_load_lanes_optab_supported_p): Likewise.
1151 (direct_mask_store_optab_supported_p): Likewise.
1152 (direct_store_lanes_optab_supported_p): Likewise.
1154 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1156 * tree-core.h (internal_fn): Move immediately after the definition
1157 of built_in_function.
1158 (combined_fn): New enum.
1159 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
1160 (internal_fn_p, as_internal_fn): New functions.
1161 (get_call_combined_fn, combined_fn_name): Declare.
1162 * tree.c (get_call_combined_fn): New function.
1163 (combined_fn_name): Likewise.
1164 * gimple.h (gimple_call_combined_fn): Declare.
1165 * gimple.c (gimple_call_combined_fn): New function.
1167 2015-11-17 Martin Sebor <msebor@redhat.com>
1170 * cp/init.c (build_new_1): Check for expression constness
1173 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
1176 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
1178 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
1179 discussion of the Microsoft structure layout details here from
1180 its former home in extend.texi.
1181 * doc/extend.texi (x86 Variable Attributes): Replace detailed
1182 discussion with pointer to its new location. Add cross-reference
1183 to corresponding type attributes.
1184 (x86 Type Attributes): Add cross-references to command-line options
1185 and variable attributes.
1187 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
1190 * targhooks.c (default_get_mask_mode): Filter out
1191 scalar modes returned by mode_for_vector.
1193 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1196 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
1197 offset from dstbase and use it appropriately in
1198 adjust_automodify_address.
1199 (arm_block_set_aligned_vect): Likewise.
1201 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
1203 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
1204 (MULTILIB_DIRNAMES): Adjust accordingly.
1206 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
1208 * config/aarch64/aarch64-cores.def (cortex-a35): New.
1209 * config/aarch64/aarch64.c (cortexa35_tunings): New.
1210 * config/aarch64/aarch64-tune.md: Regenerate.
1211 * doc/invoke.texi (-mcpu): Add Cortex-A35
1213 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
1216 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
1218 * config/i386/sse.md (*mov<mode>_internal): Always enable
1219 AVX and SSE unaligned moves for IAMCU.
1221 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
1223 * tree-if-conv.c: Include varasm.h
1224 (ref_DR_map): Define.
1225 (baseref_DR_map): Like wise
1226 (struct ifc_dr): Add new tree predicate field.
1227 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
1228 (memrefs_read_or_written_unconditionally): Remove.
1229 (write_memrefs_written_at_least_once): Remove.
1230 (ifcvt_memrefs_wont_trap): Use hash maps to query
1231 unconditional read/written information.
1232 (if_convertible_loop_p_1): Initialize hash maps and predicates
1233 before hashing data references and delete hashmaps at the end.
1235 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
1238 * doc/invoke.texi (Optimize Options): Move @end table to the right
1241 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
1244 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
1247 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
1249 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
1250 128-bit types, just types that fit in a single vector.
1251 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
1253 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
1255 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
1256 in the user documentation.
1257 (define_peephole2, define_split): Similarly.
1259 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
1261 * lto-streamer-out.c (write_global_references): Adjust integer type.
1262 (lto_output_decl_state_refs): Likewise.
1264 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
1266 * config/arm/arm-cores.def (cortex-a35): New.
1267 * config/arm/arm.c (arm_cortex_a35_tune): New.
1268 * config/arm/arm-tables.opt: Regenerate.
1269 * config/arm/arm-tune.md: Regenerate.
1270 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
1271 * config/arm/t-aprofile: Likewise.
1272 * doc/invoke.texi (-mcpu): Likewise.
1274 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
1276 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
1277 and qdf24xx and xgene1 to match -march=armv8-a.
1279 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1281 PR rtl-optimization/68330
1282 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
1283 of LSHIFTRT by a non-zero constant integer.
1285 2015-11-16 Richard Biener <rguenther@suse.de>
1287 PR tree-optimization/68306
1288 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
1289 bogus copying from verify_data_ref_alignment and use continue
1292 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
1293 Kaz Kojima <kkojima@gcc.gnu.org>
1296 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
1298 (*addsi3): Add another insn_and_split variant for reload.
1300 2015-11-16 Richard Biener <rguenther@suse.de>
1303 * cfgexpand.c (pass_expand::execute): Destroy the edge
1304 redirection var map before setting RTL CFG hooks.
1306 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
1308 * config/i386/sse.md (reduc_splus_v8df): Rename to...
1309 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
1311 (reduc_splus_v4df): Rename to...
1312 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
1314 (reduc_splus_v2df): Rename to...
1315 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
1317 (reduc_splus_v16sf): Rename to...
1318 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
1320 (reduc_splus_v8sf): Rename to...
1321 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
1323 (reduc_splus_v4sf): Rename to...
1324 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
1326 (reduc_<code>_<mode>, all 3 variants): Rename each to...
1327 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
1329 (reduc_umin_v8hf): Rename to...
1330 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
1332 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
1334 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
1335 without additional conditions.
1336 * doc/extend.texi (@item simd): New.
1338 2015-11-16 Tom de Vries <tom@codesourcery.com>
1340 * passes.c (first_pass_instance): Remove variable.
1341 (execute_todo): Remove setting of first_pass_instance.
1342 * tree-pass.h (first_pass_instance): Remove declaration.
1344 2015-11-16 Tom de Vries <tom@codesourcery.com>
1346 * passes.def: Add arg to pass_ccp pass instantiation.
1347 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
1348 instead of first_pass_instance.
1349 (do_ssa_ccp): Add and handle param nonzero_p.
1350 (pass_ccp::pass_ccp): Initialize nonzero_p.
1351 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
1352 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
1353 (pass_ccp::nonzero_p): New private member.
1355 2015-11-16 Tom de Vries <tom@codesourcery.com>
1357 * passes.def: Add arg to pass_object_sizes pass instantiation.
1358 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
1360 (pass_object_sizes::set_pass_param): New member function. Set
1362 (pass_object_sizes::insert_min_max_p): New private member.
1363 (pass_object_sizes::execute): Use insert_min_max_p instead of
1364 first_pass_instance.
1366 2015-11-16 Tom de Vries <tom@codesourcery.com>
1368 * passes.def: Add arg to pass_dominator pass instantiation.
1369 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
1371 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
1372 may_peel_loop_headers_p.
1373 (pass_dominator::set_pass_param): New member function. Set
1374 may_peel_loop_headers_p.
1375 (pass_dominator::may_peel_loop_headers_p): New private member.
1376 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
1377 first_pass_instance.
1379 2015-11-16 Tom de Vries <tom@codesourcery.com>
1381 * passes.def: Add arg to pass_reassoc pass instantiation.
1382 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
1383 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
1384 of first_pass_instance.
1385 (execute_reassoc): Add and handle insert_powi_p parameter.
1386 (pass_reassoc::insert_powi_p): New private member.
1387 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
1388 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
1389 (pass_reassoc::execute): Call execute_reassoc with extra arg.
1391 2015-11-16 Tom de Vries <tom@codesourcery.com>
1393 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
1394 * gen-pass-instances.awk (handle_line): Same.
1395 * pass_manager.h (class pass_manager): Define and undefine
1397 * passes.c (opt_pass::set_pass_param): New function.
1398 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
1399 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
1400 * tree-pass.h (gimple_opt::set_pass_param): Declare.
1401 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
1402 warn_array_bounds_p parameter.
1403 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
1404 (pass_vrp::set_pass_param): New function.
1405 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
1406 (pass_vrp::warn_array_bounds_p): New private member.
1408 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
1410 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
1411 (output_probe_stack_range): Rotate the loop and simplify.
1413 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
1415 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
1416 (output_probe_stack_range): Rotate the loop and simplify.
1418 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
1420 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
1421 an lea instruction when possible.
1422 (output_adjust_stack_and_probe): Rotate the loop and simplify.
1423 (ix86_emit_probe_stack_range): Adjust.
1424 (output_probe_stack_range): Rotate the loop and simplify.
1426 2015-11-16 Christian Bruel <christian.bruel@st.com>
1428 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
1429 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
1430 with appropriate pragma GCC target.
1432 2015-11-16 Christian Bruel <christian.bruel@st.com>
1435 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
1436 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
1438 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
1440 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
1441 (cortexa57_tunings): Use it.
1443 2015-11-16 Christian Bruel <christian.bruel@st.com>
1446 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
1447 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
1448 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
1450 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
1451 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
1452 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
1453 * doc/extend.texi (-mfpu=): Describe attribute.
1455 2015-11-16 Christian Bruel <christian.bruel@st.com>
1458 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
1459 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
1460 arm_init_neon_builtins.
1461 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
1462 (arm_init_neon_builtins_internal)
1463 (arm_init_crypto_builtins_internal):
1464 Test and set neon_set_p, neon_crypto_set_p.
1465 (neon_set_p, neon_crypto_set_p): New static booleans.
1467 2015-11-16 Christian Bruel <christian.bruel@st.com>
1470 * config/arm/arm.c (arm_fpu_desc): Remove.
1471 (all_fpus): Make global.
1472 (arm_option_override): Use FPU TARGET accessors.
1473 (arm_declare_function_name): Likewise.
1474 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
1475 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
1476 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
1477 (TARGET_NEON): Likewise.
1478 (all_fpus): Declare extern.
1479 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
1480 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
1482 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1485 * sdbout.c: Include emit-rtl.h and function.h.
1487 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
1489 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
1490 Remove support for FreeBSD 5 and earlier.
1492 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1494 * configure: Regenerate.
1495 * configure.ac: Always define ENABLE_OFFLOADING.
1496 * cgraph.c (cgraph_node::create): Adjust.
1497 * gcc.c (process_command): Likewise.
1498 * omp-low.c (create_omp_child_function): Likewise.
1499 (expand_omp_target): Likewise.
1500 * varpool.c (varpool_node::get_create): Likewise.
1502 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1504 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
1505 * df-scan.c (df_get_exit_block_use_set): Adjust.
1506 * except.c (expand_eh_return): Likewise.
1508 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1510 * config/i386/i386.h (TARGET_PECOFF): Remove define.
1511 * defaults.h (TARGET_PECOFF): New default definition.
1512 * varasm.c (handle_vtv_comdat_section): Adjust.
1514 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1516 * defaults.h: New definition of SDB_DEBUGGING_INFO.
1517 * doc/tm.texi: Regenerate.
1518 * doc/tm.texi.in: Adjust.
1519 * final.c (rest_of_clean_state): Remove check if
1520 SDB_DEBUGGING_INFO is defined.
1521 * function.c (number_blocks): Likewise.
1522 * output.h: Likewise.
1523 * sdbout.c: Likewise.
1524 * toplev.c (process_options): Likewise.
1526 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1528 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
1529 (enum sdb_masks): Likewise.
1530 * sdbout.c (plain_type_1): Likewise.
1531 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
1533 2015-11-14 Jakub Jelinek <jakub@redhat.com>
1535 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
1536 internal calls - 0 if ordered simd and 1 for ordered threads simd.
1537 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
1538 argument is 1, replace it with GOMP_ordered_* call instead of removing
1541 2015-11-13 Rich Felker <dalias@libc.org>
1543 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
1544 address loading hack for FDPIC targets.
1546 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
1547 Jeff Law <law@redhat.com>
1549 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
1550 * common.opt (-fsplit-paths): New flag controlling path splitting.
1551 * doc/invoke.texi (fsplit-paths): Document.
1552 * opts.c (default_options_table): Add -fsplit-paths to -O2.
1553 * passes.def: Add split_paths pass.
1554 * timevar.def (TV_SPLIT_PATHS): New timevar.
1555 * tracer.c: Include "tracer.h"
1556 (ignore_bb_p): No longer static.
1557 (transform_duplicate): New function, broken out of tail_duplicate.
1558 (tail_duplicate): Use transform_duplicate.
1559 * tracer.h (ignore_bb_p): Declare
1560 (transform_duplicate): Likewise.
1561 * tree-pass.h (make_pass_split_paths): Declare.
1562 * gimple-ssa-split-paths.c: New file.
1564 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
1565 Marek Polacek <polacek@redhat.com>
1566 Jason Merrill <jason@redhat.com>
1568 * convert.c (maybe_fold_build1_loc): New.
1569 (maybe_fold_build2_loc): New.
1570 (convert_to_pointer_1): Split out from convert_to_pointer.
1571 (convert_to_pointer_nofold): New.
1572 (convert_to_real_1): Split out from convert_to_real.
1573 (convert_to_real_nofold): New.
1574 (convert_to_integer_1): Split out from convert_to_integer.
1575 (convert_to_integer_nofold): New.
1576 (convert_to_complex_1): Split out from convert_to_complex.
1577 (convert_to_complex_nofold): New.
1578 * convert.h: Declare new functions.
1579 * tree-complex.c (create_one_component_var): Break up line to
1580 avoid sequence point issues.
1582 2015-11-13 Jason Merrill <jason@redhat.com>
1584 * fold-const.c (fold_convert_const): Fold changing cv-quals on
1587 * hash-map.h (hash_map::empty): New.
1589 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
1591 * gcc/omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
1592 (oacc_loop_fixed_partitions): Correct return type to bool.
1593 (oacc_loop_auto_partitions): New.
1594 (oacc_loop_partition): Take mask argument, call
1595 oacc_loop_auto_partitions.
1596 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
1598 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1600 * config/rs6000/constraints.md (we constraint): New constraint for
1601 64-bit power9 vector support.
1602 (wL constraint): New constraint for the element in a vector that
1603 can be addressed by the MFVSRLD instruction.
1605 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
1607 (convert_int_to_float128): Likewise.
1608 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
1609 hardware support for IEEE 128-bit floating point.
1610 (rs6000_expand_float128_convert): Likewise.
1611 (convert_float128_to_int): Likewise.
1612 (convert_int_to_float128): Likewise.
1614 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
1615 ISA 3.0 hardware IEEE 128-bit floating point.
1616 (UNSPEC_IEEE128_MOVE): Likewise.
1617 (UNSPEC_IEEE128_CONVERT): Likewise.
1618 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
1619 (Ff): Add support for DImode.
1621 (any_fix code iterator): New and updated iterators for IEEE
1622 128-bit floating point hardware support.
1623 (any_float code iterator): Likewise.
1624 (s code attribute): Likewise.
1625 (su code attribute): Likewise.
1626 (az code attribute): Likewise.
1627 (uns code attribute): Likewise.
1628 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
1629 floating point hardware support.
1630 (abs<mode>2, FLOAT128 iterator): Likewise.
1631 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
1632 floating point hardware.
1633 (sub<mode>3, IEEE128 iterator): Likewise.
1634 (mul<mode>3, IEEE128 iterator): Likewise.
1635 (div<mode>3, IEEE128 iterator): Likewise.
1636 (copysign<mode>3, IEEE128 iterator): Likewise.
1637 (sqrt<mode>2, IEEE128 iterator): Likewise.
1638 (neg<mode>2, IEEE128 iterator): Likewise.
1639 (abs<mode>2, IEEE128 iterator): Likewise.
1640 (nabs<mode>2, IEEE128 iterator): Likewise.
1641 (fma<mode>4_hw, IEEE128 iterator): Likewise.
1642 (fms<mode>4_hw, IEEE128 iterator): Likewise.
1643 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
1644 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
1645 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
1646 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
1647 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
1648 (fix_fixuns code attribute): Likewise.
1649 (float_floatuns code attribute): Likewise.
1650 (fix<uns>_<mode>si2_hw): Likewise.
1651 (fix<uns>_<mode>di2_hw): Likewise.
1652 (float<uns>_<mode>si2_hw): Likewise.
1653 (float<uns>_<mode>di2_hw): Likewise.
1654 (xscvqp<su>wz_<mode>): Likewise.
1655 (xscvqp<su>dz_<mode>): Likewise.
1656 (xscv<su>dqp_<mode): Likewise.
1657 (ieee128_mfvsrd): Likewise.
1658 (ieee128_mfvsrwz): Likewise.
1659 (ieee128_mtvsrw): Likewise.
1660 (ieee128_mtvsrd): Likewise.
1661 (trunc<mode>df2_odd): Likewise.
1662 (cmp<mode>_h): Likewise.
1663 (128-bit GPR splitters): Don't split a 128-bit move that is a
1664 direct move between GPR and vector registers using ISA 3.0 direct
1666 (maddld4): Add support for the ISA 3.0 integer multiply-add
1669 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
1671 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
1672 constraint. Disable the VSX<->GPR direct move helpers if we have
1673 the MFVSRLD and MTVSRDD instructions.
1674 (rs6000_secondary_reload_simple_move): Add support for doing
1675 vector direct moves directly without additional scratch registers
1676 if we have ISA 3.0 instructions.
1677 (rs6000_secondary_reload_direct_move): Update comments.
1678 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
1681 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
1682 direct move instructions.
1683 (vsx_movti_64bit): Likewise.
1684 (vsx_extract_<mode>): Likewise.
1686 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
1687 macros for ISA 3.0 direct move instructions.
1688 (TARGET_DIRECT_MOVE_128): Likewise.
1689 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
1692 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
1693 constraints. Update wa documentation to say not to use %x<n> on
1694 instructions that only take Altivec registers.
1696 2015-11-13 David Malcolm <dmalcolm@redhat.com>
1698 * Makefile.in (OBJS): Add gcc-rich-location.o.
1699 * diagnostic.c (diagnostic_append_note): Pass line_table to
1701 (emit_diagnostic): Likewise.
1703 (inform_n): Likewise.
1704 (warning): Likewise.
1705 (warning_at): Likewise.
1706 (warning_n): Likewise.
1707 (pedwarn): Likewise.
1708 (permerror): Likewise.
1710 (error_n): Likewise.
1711 (error_at): Likewise.
1713 (fatal_error): Likewise.
1714 (internal_error): Likewise.
1715 (internal_error_no_backtrace): Likewise.
1716 (source_range::debug): Likewise.
1717 * gcc-rich-location.c: New file.
1718 * gcc-rich-location.h: New file.
1719 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
1720 (warning_at): Likewise.
1721 * gimple.h (gimple_set_block): Use set_block function.
1722 * input.c (dump_line_table_statistics): Dump stats on how many
1723 ranges were optimized vs how many needed ad-hoc table.
1724 (write_digit_row): Add "map" param; use its range_bits
1725 to calculate the per-character offset.
1726 (dump_location_info): Print the range and column bits for each
1727 ordinary map. Use the range bits to calculate the per-character
1728 offset. Pass the map as a new param to the various calls to
1729 write_digit_row. Eliminate uses of
1730 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
1731 * print-tree.c (print_node): Print any source range information.
1732 * rtl-error.c (diagnostic_for_asm): Likewise.
1733 * toplev.c (general_init): Initialize line_table's
1735 * tree-cfg.c (move_block_to_fn): Likewise.
1736 (move_block_to_fn): Likewise.
1737 * tree-inline.c (copy_phis_for_bb): Likewise.
1738 * tree.c (tree_set_block): Likewise.
1739 (get_pure_location): New function.
1740 (set_source_range): New functions.
1741 (set_block): New function.
1742 (set_source_range): New functions.
1743 * tree.h (CAN_HAVE_RANGE_P): New.
1744 (EXPR_LOCATION_RANGE): New.
1745 (EXPR_HAS_RANGE): New.
1746 (get_expr_source_range): New inline function.
1747 (DECL_LOCATION_RANGE): New.
1748 (set_source_range): New decls.
1749 (get_decl_source_range): New inline function.
1751 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
1753 PR tree-optimization/67682
1754 * tree-vect-slp.c (vect_split_slp_store_group): New.
1755 (vect_analyze_slp_instance): During basic block SLP, recurse on
1756 subgroups if vect_build_slp_tree fails after 1st vector.
1758 2015-11-13 Christian Bruel <christian.bruel@st.com>
1761 * config/arm/arm.c (arm_option_override): Move NEON check...
1762 (arm_option_check_internal): here
1763 (arm_file_start): Move .fpu print...
1764 (arm_declare_function_name): here
1765 (arm_option_print): Dump current fpu name.
1766 * config/arm/arm.opt (arm_fpu_index): Mark Save.
1768 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
1769 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1771 * combine.c (subst): Don't substitute or simplify when
1772 handling register-wise widening multiply.
1773 (force_to_mode): Likewise.
1775 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
1777 PR tree-optimization/68264
1778 * tree-call-cdce.c (gen_one_condition): Update commentary.
1779 (gen_conditions_for_pow_int_base): Invert the sense of the tests
1780 passed to gen_one_condition.
1781 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
1782 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
1783 using EDGE_FALSE_VALUE for edges to the call block and
1784 EDGE_TRUE_VALUE for the others.
1786 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
1788 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
1791 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
1793 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
1795 2015-11-13 Tom de Vries <tom@codesourcery.com>
1797 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
1800 2015-11-13 Tom de Vries <tom@codesourcery.com>
1802 * gen-pass-instances.awk (handle_line): Add args_str variable.
1804 2015-11-13 Martin Liska <mliska@suse.cz>
1806 * graphite-poly.c (free_scop): Release scop->drs vector.
1807 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
1809 (try_generate_gimple_bb): Use vNULL as a default initialization
1812 2015-11-13 Martin Liska <mliska@suse.cz>
1815 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
1816 Replace array initialization (using a variable post-increment)
1817 that possible triggers multiple unsequenced modifications
1818 with a pair of pushes to a vector.
1820 2015-11-13 Richard Biener <rguenther@suse.de>
1822 PR tree-optimization/68306
1823 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
1824 loop related checks ...
1825 (vect_verify_datarefs_alignment): ... here.
1826 (vect_slp_analyze_and_verify_node_alignment): Compute and
1827 verify alignment of the single DR that it matters.
1828 * tree-vect-stmts.c (vectorizable_store): Add an assert.
1829 (vectorizable_load): Add a comment.
1830 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
1831 for determining load cost.
1833 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
1835 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
1836 mix of boolean and integer vectors in a single statement.
1837 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
1838 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
1839 determine constant type.
1840 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
1841 for loop invariants.
1843 2015-11-13 Alan Hayward <alan.hayward@arm.com>
1845 PR tree-optimization/66558
1846 * tree-vect-loop.c (is_integer_induction):Add.
1847 (vectorizable_reduction): Add integer induction checks.
1849 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
1851 Revert [ARM] Remove neon-testgen.ml and generated tests.
1853 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
1855 [ARM] Remove neon-testgen.ml and generated tests.
1857 * config/arm/neon-testgen.ml: Remove.
1859 2015-11-13 Richard Biener <rguenther@suse.de>
1861 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
1862 Signal fatal failure if early checks fail.
1863 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
1864 do not bother testing further vector sizes.
1866 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
1868 * config/i386/predicates.md (misaligned_operand): Return true if
1869 operand is aligned to less than its natural alignmnet.
1871 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
1873 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
1874 (vec_cmpu@var{m}@var{n}): New item.
1875 (vcond@var{m}@var{n}): Specify comparison is signed.
1876 (vcondu@var{m}@var{n}): New item.
1877 (vcond_mask_@var{m}@var{n}): New item.
1878 (maskload@var{m}@var{n}): New item.
1879 (maskstore@var{m}@var{n}): New item.
1881 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
1883 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
1884 types of stored value and storage are compatible.
1886 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
1888 * gcc.c (POST_LINK_SPEC): Define if not already defined.
1889 (LINK_COMMAND_SPEC): Use post_link.
1890 (post_link_spec): New, initialize to POST_LINK_SPEC.
1891 (post_link): Initialize new static spec.
1892 * doc/tm.texi.in (POST_LINK_SPEC): Document.
1893 * doc/tm.texi: Regenerated.
1895 2015-11-13 David Malcolm <dmalcolm@redhat.com>
1898 * Makefile.in (GCC_OBJS): Add spellcheck.o.
1899 (OBJS): Add spellcheck-tree.o.
1900 * gcc.c: Include "spellcheck.h".
1901 (suggest_option): New function.
1902 (driver::handle_unrecognized_options): Call suggest_option to
1903 provide a hint about misspelled options.
1904 * spellcheck.c: Update file comment.
1905 (levenshtein_distance): Convert 4-param implementation from static
1906 to extern scope. Remove note about unit tests from leading
1907 comment for const char * implementation. Move tree
1908 implementation to...
1909 * spellcheck-tree.c: New file.
1910 * spellcheck.h (levenshtein_distance): Add 4-param decl.
1912 2015-11-13 David Malcolm <dmalcolm@redhat.com>
1914 * Makefile.in (OBJS): Add spellcheck.o.
1915 * spellcheck.c: New file.
1916 * spellcheck.h: New file.
1918 2015-11-13 James Bowman <james.bowman@ftdichip.com>
1920 * config/ft32/ft32.md (*sne): New insn pattern.
1922 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
1924 * gcc/cprop.c (is_too_expensive): Remove.
1926 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
1928 * gcc/gcse.h (gcse_or_cprop_is_too_expensive): Declare.
1929 * gcc/gcse.c (is_too_expensive): Rename to ...
1930 (gcse_or_cprop_is_too_expensive): ... this.
1931 Expand warning to add required size of max-gcse-memory.
1932 (one_pre_gcse_pass): Use it.
1933 (one_code_hoisting_pass): Use it.
1934 * gcc/params.def (max-gcse-memory): Increase from 50MB to 128MB.
1936 2015-11-12 James Norris <jnorris@codesourcery.com>
1937 Joseph Myers <joseph@codesourcery.com>
1939 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
1940 GF_OMP_TARGET_KIND_OACC_DECLARE.
1941 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
1942 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
1943 * gimplify.c (oacc_declare_returns): New.
1944 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
1945 (device_resident_p): New function.
1946 (oacc_default_clause): Handle device_resident clause.
1947 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
1948 (gimplify_expr): Handle OACC_DECLARE.
1949 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
1950 * omp-low.c (expand_omp_target): Handle
1951 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
1952 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
1953 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
1954 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
1955 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
1956 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
1957 GOMP_MAP_DEVICE_RESIDENT.
1959 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
1961 [ARM] Remove neon-testgen.ml and generated tests.
1963 * config/arm/neon-testgen.ml: Remove.
1965 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
1967 * config/aarch64/aarch64-cores.def (qdf24xx): New.
1968 * config/aarch64/aarch64-tune.md: Regenerated.
1969 * config/arm/arm-cores.def (qdf24xx): New.
1970 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
1971 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
1972 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
1973 (ARM Options/-mtune): Likewise.
1975 2015-11-12 Martin Liska <mliska@suse.cz>
1977 * config/i386/i386.c (ix86_valid_target_attribute_p):
1978 Finalize options at the of the function.
1979 * gcc.c (driver_get_configure_time_options): Call newly
1980 introduced init_opts_obstack.
1981 * lto-wrapper.c (main): Likewise.
1982 * opts.c (init_opts_obstack): New function.
1983 (init_options_struct): Call newly introduced init_opts_obstack.
1984 * opts.h (init_options_struct): Declare.
1986 2015-11-12 Martin Liska <mliska@suse.cz>
1989 * ipa-icf.c (void sem_item::set_hash): New function.
1990 (sem_function::get_hash): Use renamed m_hash member variable.
1991 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
1992 (sem_item::update_hash_by_local_refs): Likewise.
1993 (sem_variable::get_hash): Use renamed m_hash member variable.
1994 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
1995 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
1996 (sem_item_optimizer::build_graph): As the hash value of an item
1997 is lazy initialized, force the calculation.
1998 * ipa-icf.h (set_hash): Declare new function and rename hash member
2001 2015-11-12 Richard Biener <rguenther@suse.de>
2003 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
2004 Rename to vect_slp_analyze_instance_dependence.
2005 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2006 Remove WAR special-case.
2007 (vect_slp_analyze_node_dependences): Instead add more specific
2008 code here, not relying on other instances being vectorized.
2009 (vect_slp_analyze_instance_dependence): Adjust accordingly.
2010 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
2011 vertical space in dump files.
2012 (vect_print_slp_tree): Likewise.
2013 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
2014 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
2015 not vectorized stmts until after dependence analysis removed
2016 instances. Merge alignment and dependence checks.
2017 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
2020 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
2022 * config/aarch64/aarch64-protos.h (tune_params): Add new members
2023 "max_case_values" and "cache_line_size".
2024 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
2026 (aarch64_override_options_internal): Tune heuristics based on new
2027 members in "tune_params".
2028 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
2030 2015-11-12 Richard Biener <rguenther@suse.de>
2032 PR tree-optimization/68306
2033 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
2034 relevant and vectorizable checks here.
2035 (vect_verify_datarefs_alignment): Add relevant check here.
2037 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
2039 * gimplify.c (oacc_default_clause): New.
2040 (omp_notice_variable): Call it.
2042 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
2044 PR tree-optimization/68305
2045 * tree-vect-slp.c (vect_get_constant_vectors): Support
2046 COND_EXPR with SSA_NAME as a condition.
2048 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
2050 * config/visium/visium-protos.h (notice_update_cc): Delete.
2051 (print_operand): Likewise.
2052 (print_operand_address): Likewise.
2054 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2056 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
2057 FUNCTION_VALUE_REGNO_P): Remove.
2058 * config/alpha/alpha-protos.h (function_value): Remove.
2059 * config/alpha/alpha.c (function_value): Rename to...
2060 (alpha_function_value_1): ... this. Make static.
2061 (alpha_function_value, alpha_libcall_value,
2062 alpha_function_value_regno_p): New functions.
2063 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2064 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2066 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2068 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2069 * config/alpha/alpha.c (alpha_memory_latency): Make static.
2070 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
2071 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2073 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
2076 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
2077 assertion on the CFA register.
2079 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
2081 * expr.c (do_store_flag): Expand vector comparison as
2082 VEC_COND_EXPR if vector comparison is not supported by target.
2084 2015-11-12 Renlin Li <renlin.li@arm.com>
2086 * config/arm/arm.md (addsi3_compare_op2): Make the order of
2087 assembly pattern consistent with constraint order.
2089 2015-11-12 Tom de Vries <tom@codesourcery.com>
2091 * gen-pass-instances.awk (handle_line): Simplify match regexp.
2093 2015-11-12 Tom de Vries <tom@codesourcery.com>
2095 * gen-pass-instances.awk (handle_line): Simplify init of
2098 2015-11-12 Tom de Vries <tom@codesourcery.com>
2100 * gen-pass-instances.awk (handle_line): Rename var where to
2103 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
2105 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
2106 do not expand to rtl.
2108 2015-11-12 Richard Biener <rguenther@suse.de>
2110 PR tree-optimization/58497
2111 * tree-vect-generic.c: Include gimplify.h.
2112 (tree_vec_extract): Lookup constant/constructor DEFs.
2113 (do_cond): Unshare cond.
2115 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2117 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
2118 combined insn if the alignment of vector mode memory operand
2119 is less than ssememalign.
2121 2015-11-12 Tom de Vries <tom@codesourcery.com>
2123 * gen-pass-instances.awk (handle_line): Print parentheses and
2124 pass_name explicitly.
2126 2015-11-12 Tom de Vries <tom@codesourcery.com>
2128 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
2131 2015-11-12 Tom de Vries <tom@codesourcery.com>
2133 * gen-pass-instances.awk (handle_line): Add comments.
2135 2015-11-12 Tom de Vries <tom@codesourcery.com>
2137 * gen-pass-instances.awk (handle_line): Rename len_of_end to
2140 2015-11-12 Tom de Vries <tom@codesourcery.com>
2142 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
2144 2015-11-12 Tom de Vries <tom@codesourcery.com>
2146 * gen-pass-instances.awk (handle_line): Restructure using early-out.
2148 2015-11-12 Tom de Vries <tom@codesourcery.com>
2150 * gen-pass-instances.awk (handle_line): Unify semicolon use.
2152 2015-11-12 Tom de Vries <tom@codesourcery.com>
2154 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
2156 2015-11-12 Tom de Vries <tom@codesourcery.com>
2158 * gen-pass-instances.awk: Add emacs indent setting.
2160 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2162 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
2164 Move Convert A/(B/C) to (A/B)*C to match.pd.
2165 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
2166 Move Optimize (X & (-A)) / A where A is a power of 2, to
2167 X >> log2(A) to match.pd.
2169 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
2170 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
2171 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
2173 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
2175 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
2177 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
2179 (neon_vst2_lane<mode>): Likewise.
2180 (neon_vld3_lane<mode>): Likewise.
2181 (neon_vst3_lane<mode>): Likewise.
2182 (neon_vld4_lane<mode>): Likewise.
2183 (neon_vst4_lane<mode>): Likewise.
2185 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
2186 Sebastian Pop <s.pop@samsung.com>
2188 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
2189 New member codegen_error
2190 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
2192 (translate_isl_ast_node_user): Early return in case of error.
2193 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
2194 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
2195 (add_parameters_to_ivs_params): Remove macro.
2196 (graphite_regenerate_ast_isl): Add if_region pointer to region.
2197 * graphite-poly.c (new_poly_dr): Remove macro.
2199 (new_gimple_poly_bb): Same.
2200 (free_gimple_poly_bb): Same.
2201 (print_scop_params): Same.
2202 * graphite-poly.h (struct poly_dr): Same.
2203 (struct poly_bb): Add new_bb.
2204 (gbb_from_bb): Remove dead code.
2205 (pbb_from_bb): Same.
2206 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
2207 (parameter_index_in_region): Same.
2208 (find_scop_parameters): Same.
2209 (build_cross_bb_scalars_def): New.
2210 (build_cross_bb_scalars_use): New.
2211 (graphite_find_cross_bb_scalar_vars): New
2212 (try_generate_gimple_bb): Reads and Writes.
2213 (build_alias_set): Move.
2214 (gather_bbs::before_dom_children): Gather bbs visited.
2215 (build_scops): call build_alias_set.
2216 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
2217 (remove_simple_copy_phi): Delete.
2218 (remove_invariant_phi): Delete.
2219 (simple_copy_phi_p): Delete.
2220 (reduction_phi_p): Delete.
2221 (isl_id_for_dr): Remove unused param.
2222 (parameter_index_in_region_1): Remove macro usage.
2223 (set_scop_parameter_dim): Same.
2224 (add_param_constraints): Same.
2225 (add_conditions_to_constraints): Same
2226 (build_scop_iteration_domain): Same.
2227 (pdr_add_alias_set): Comment.
2228 (add_scalar_version_numbers): New.
2229 (build_poly_dr): ISL id.
2230 (build_scop_drs): Move.
2231 (build_poly_sr_1): Same.
2232 (insert_stmts): Remove.
2233 (build_poly_sr): New.
2234 (new_pbb_from_pbb): Delete.
2235 (insert_out_of_ssa_copy_on_edge): Delete.
2236 (create_zero_dim_array): Delete.
2237 (scalar_close_phi_node_p): Delete.
2238 (propagate_expr_outside_region): Delete.
2239 (rewrite_close_phi_out_of_ssa): Delete.
2240 (rewrite_phi_out_of_ssa): Delete.
2241 (rewrite_degenerate_phi): Delete.
2242 (rewrite_reductions_out_of_ssa): Delete.
2243 (rewrite_cross_bb_scalar_dependence): Delete.
2244 (handle_scalar_deps_crossing_scop_limits):
2245 (rewrite_cross_bb_scalar_deps): Delete.
2246 (build_poly_scop): Remove calls to out-of-ssa functions.
2247 * graphite.c (graphite_transform_loops): Early return in case of
2249 * sese.c (debug_rename_map_1): Delete.
2250 (debug_rename_map): Delete.
2251 (sese_record_loop): Remove macro.
2252 (build_sese_loop_nests): Same.
2253 (new_sese_info): Same.
2254 (free_sese_info): Same.
2255 (sese_insert_phis_for_liveouts):
2256 (is_loop_closed_ssa_use): New.
2257 (number_of_phi_nodes): New.
2258 (bb_contains_loop_close_phi_nodes): New.
2259 (bb_contains_loop_phi_nodes): New.
2260 (phi_uses_name): New.
2262 (get_rename): Add old_bb and loop_phi for more precise matching of
2264 (set_rename): Pass region.
2265 (later_of_the_two): New.
2266 (gsi_insert_earliest): New.
2267 (collect_all_ssa_names): New.
2268 (substitute_ssa_name): New.
2269 (rename_all_uses): New.
2270 (get_rename_from_scev): New.
2271 (rename_uses): Pass old_bb for more precise matching of exprs.
2272 (get_def_bb_for_const): New.
2273 (get_new_name): New.
2276 (copy_loop_phi_args): New.
2277 (copy_loop_phi_nodes): New.
2278 (get_loop_init_value): New.
2279 (find_init_value): New.
2280 (find_init_value_close_phi): New.
2281 (copy_loop_close_phi_args): New.
2282 (copy_loop_close_phi_nodes): New.
2283 (add_phi_arg_for_new_expr): New.
2284 (copy_cond_phi_args): New.
2285 (copy_cond_phi_nodes): New.
2286 (copy_phi_nodes): New.
2287 (should_copy_to_new_region): New.
2288 (set_rename_for_each_def): New.
2289 (graphite_copy_stmts_from_block): Early return in case of error.
2290 (copy_bb_and_scalar_dependences): Same.
2291 * sese.h (vec_find): New.
2292 (SESE_PARAMS): Delete.
2293 (SESE_LOOPS): Delete.
2294 (SESE_LOOP_NEST): Delete.
2295 (sese_contains_loop): Remove macro usage.
2296 (sese_nb_params): Same.
2297 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
2299 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
2301 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
2302 isl_union_map_add_map on every pbb->schedule.
2304 2015-11-11 Tom de Vries <tom@codesourcery.com>
2306 * tree-parloops.c (create_parallel_loop): Return void.
2308 2015-11-11 Tom de Vries <tom@codesourcery.com>
2310 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
2311 block only when needed.
2313 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
2315 * config/alpha/alpha-protos.h (print_operand): Remove.
2316 (print_operand_address): Remove.
2317 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
2318 (PRINT_OPERAND_ADDRESS): Remove.
2319 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
2320 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
2321 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
2322 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
2323 (print_operand_address): Rename to...
2324 (alpha_print_operand_address): ...this and make static.
2325 (print_operand): Rename to...
2326 (alpha_print_operand): ...this and make static.
2327 (alpha_print_operand_punct_valid_p): New static function.
2329 2015-11-11 Richard Biener <rguenther@suse.de>
2331 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
2333 (vect_analyze_data_refs_alignment): Make loop vect specific.
2334 (vect_verify_datarefs_alignment): Likewise.
2335 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
2336 Add missing continue.
2337 (vect_compute_data_ref_alignment): Export.
2338 (vect_compute_data_refs_alignment): Merge into...
2339 (vect_analyze_data_refs_alignment): ... this.
2340 (verify_data_ref_alignment): Split out from ...
2341 (vect_verify_datarefs_alignment): ... here.
2342 (vect_slp_analyze_and_verify_node_alignment): New function.
2343 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
2344 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
2345 misplaced checks on alignment.
2346 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
2347 alignment analysis after SLP discovery and do it per instance.
2348 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
2349 bother to re-try using different vector sizes.
2351 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
2352 Cesar Philippidis <cesar@codesourcery.com>
2354 * gimplify.c (enum omp_region_type): Add ORT_ACC,
2355 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
2356 (gimple_add_tmp_var): Add ORT_ACC checks.
2357 (gimplify_var_or_parm_decl): Likewise.
2358 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
2359 (omp_add_variable): Look in outer contexts for openacc and allow
2360 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
2361 (omp_notice_variable, omp_is_private, omp_check_private): Add
2363 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
2364 Permit private openacc reductions.
2365 (gimplify_oacc_cache): Specify ORT_ACC.
2366 (gimplify_omp_workshare): Adjust OpenACC region types.
2367 (gimplify_omp_target_update): Likewise.
2368 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
2369 (lower-rec_input_clauses): Don't handle openacc firstprivate
2371 (lower_omp_target): Emit initializers for openacc firstprivate vars.
2373 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
2376 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
2377 frame pointer for stack checking if non-call exceptions aren't used.
2378 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
2380 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
2382 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
2385 2015-11-11 Martin Liska <mliska@suse.cz>
2386 Richard Biener <rguenther@suse.de>
2388 PR rtl-optimization/68287
2389 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
2392 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
2394 * config/mips/mips.c (mips_breakable_sequence_p): New function.
2395 (mips_break_sequence): New function.
2396 (mips_reorg_process_insns): Use them. Use compact branches in selected
2399 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
2401 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
2403 2015-11-11 Jiong Wang <jiong.wang@arm.com>
2404 Jim Wilson <wilson@gcc.gnu.org>
2407 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
2408 be true and eliminable registers mentioned.
2410 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
2412 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
2414 * config/arc/arc-opts.h: Add ARCv2 CPUs.
2415 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
2416 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
2417 situation, and store instructions with large offsets.
2418 (arc_secondary_reload_conv): New function.
2419 (arc_init): Add ARCv2 options.
2420 (arc_conditional_register_usage): Select the proper register usage
2421 for ARCv2 processors.
2422 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
2424 (arc_compute_function_type): Likewise.
2425 (arc_print_operand): Handle new ARCv2 punctuation characters.
2426 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
2427 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
2429 (arc_reorg, arc_hazard): Use it.
2430 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
2431 (ASM_SPEC): Add ARCv2 options.
2432 (TARGET_NORM): ARC HS has norm instructions by default.
2433 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
2434 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
2435 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
2436 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
2438 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
2439 (TARGET_LP_WR_INTERLOCK): Likewise.
2441 (commutative_binary_mult_comparison_result_used, movsicc_insn)
2442 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
2443 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
2444 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
2446 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
2447 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
2448 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
2449 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
2450 (extzvsi): New pattern.
2451 * config/arc/arc.opt: New ARCv2 options.
2452 * config/arc/arcEM.md: New file.
2453 * config/arc/arcHS.md: Likewise.
2454 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
2456 (Cm2): A signed 9-bit integer constant constraint.
2457 (C62): An unsigned 6-bit integer constant constraint.
2458 (C16): A signed 16-bit integer constant constraint.
2459 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
2460 (short_const_int_operand): New predicate.
2461 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
2462 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
2463 -mcode-density and -mdiv-rem.
2465 2015-11-11 Julia Koval <julia.koval@intel.com>
2467 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
2469 2015-11-11 Julia Koval <julia.koval@intel.com>
2471 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
2473 2015-11-11 Martin Liska <mliska@suse.cz>
2475 * gimple-ssa-strength-reduction.c (create_phi_basis):
2477 * passes.c (release_dump_file_name): New function.
2478 (pass_init_dump_file): Used from this function.
2479 (pass_fini_dump_file): Likewise.
2480 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
2481 * var-tracking.c (vt_initialize): Use pool_allocator.
2483 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
2484 Jiong Wang <jiong.wang@arm.com>
2486 PR tree-optimization/68234
2487 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
2488 node which estimiated to be VR_VARYING initially.
2490 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
2492 * regname.c (scan_rtx_reg): Check the matching number of consecutive
2493 registers when tying chains.
2494 (build_def_use): Move terminated_this_insn earlier in the function.
2496 2015-11-10 Mike Frysinger <vapier@gentoo.org>
2498 * configure.ac: Use = with test and not ==.
2499 * configure: Regenerated.
2501 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
2503 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
2504 machine asserts. Update defines for 64 bit.
2506 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
2509 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
2511 (neon_vst1_lane<mode>): Likewise.
2512 (neon_vld2_lane<mode>): Likewise.
2513 (neon_vst2_lane<mode>): Likewise.
2514 (neon_vld3_lane<mode>): Likewise.
2515 (neon_vst3_lane<mode>): Likewise.
2516 (neon_vld4_lane<mode>): Likewise.
2517 (neon_vst4_lane<mode>): Likewise.
2519 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
2522 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
2523 qualifier_struct_load_store_lane_index.
2524 (arm_storestruct_lane_qualifiers) Likewise.
2525 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
2527 (neon_vst1_lane<mode>) Likewise.
2528 (neon_vld2_lane<mode>) Likewise.
2529 (neon_vst2_lane<mode>) Likewise.
2530 (neon_vld3_lane<mode>) Likewise.
2531 (neon_vst3_lane<mode>) Likewise.
2532 (neon_vld4_lane<mode>) Likewise.
2533 (neon_vst4_lane<mode>) Likewise.
2535 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
2538 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
2539 qualifier_struct_load_store_lane_index.
2540 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2541 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
2542 argument qualifiers.
2543 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
2544 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
2546 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
2548 * config/nvptx/nvptx.opt (moptimize): New flag.
2549 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
2551 (nvptx_optimize_inner): New.
2552 (nvptx_process_pars): Call it when optimizing.
2553 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
2555 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2557 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
2558 Remove redundant code.
2560 2015-11-10 Jeff Law <law@redhat.com>
2562 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
2563 call to output_address.
2564 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
2565 Add unnamed machine_mode argument.
2567 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2569 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
2572 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
2574 * config/i386/i386.md (*movabs<mode>_1): Add explicit
2575 size directives for -masm=intel.
2576 (*movabs<mode>_2): Ditto.
2578 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
2580 * config/i386/i386.c (ix86_print_operand): Remove dead code that
2581 tried to avoid (%rip) for call operands.
2583 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
2585 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
2586 argument. Do not use RIP relative addressing when no_rip is set.
2587 (ix86_print_operand): Update call to ix86_print_operand_address_as.
2588 (ix86_print_operand_address): Ditto.
2589 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
2590 absolute movabs operand 0. Add square braces for -masm=intel.
2591 (*movabs<mode>_2): Ditto for operand 1.
2593 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2595 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
2596 combine_vcvtf2i pattern.
2598 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2600 * config/arm/arm.c (neon_valid_immediate): Remove integer
2601 CONST_DOUBLE handling. It should never occur.
2603 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
2605 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
2606 (ATOMIC_LDOP): Likewise.
2607 (atomic_ldop): Likewise.
2608 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
2609 (ATOMIC_LDOP): Likewise.
2610 (atomic_ldop): Likewise.
2612 2015-11-10 Martin Liska <mliska@suse.cz>
2614 * alloc-pool.h (allocate_raw): New function.
2615 (operator new (size_t, object_allocator<T> &a)): Use the
2616 function instead of object_allocator::allocate).
2618 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2620 * config/i386/sse.md (HALFMASKMODE): New attribute.
2621 (DOUBLEMASKMODE): New attribute.
2622 (vec_pack_trunc_qi): New.
2623 (vec_pack_trunc_<mode>): New.
2624 (vec_unpacks_lo_hi): New.
2625 (vec_unpacks_lo_si): New.
2626 (vec_unpacks_lo_di): New.
2627 (vec_unpacks_hi_hi): New.
2628 (vec_unpacks_hi_<mode>): New.
2630 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2632 * optabs.c (expand_binop_directly): Allow scalar mode for
2633 vec_pack_trunc_optab.
2634 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2635 boolean vector producers from pattern sequence when computing VF.
2636 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
2637 vect_recog_mask_conversion_pattern.
2638 (search_type_for_mask): Choose the smallest
2639 type if different size types are mixed.
2640 (build_mask_conversion): New.
2641 (vect_recog_mask_conversion_pattern): New.
2642 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
2643 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
2645 (vectorizable_conversion): Support boolean vectors.
2646 (free_stmt_vec_info): Allow patterns for statements with no lhs.
2647 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
2649 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2651 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
2652 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
2653 Cast mask to FP mode if required.
2654 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
2655 (vcond_mask_<mode><avx512fmaskmodelower>): New.
2656 (vcond_mask_<mode><sseintvecmodelower>): New.
2657 (vcond_mask_<mode><sseintvecmodelower>): New.
2658 (vcond_mask_v2div2di): New.
2659 (vcond_mask_<mode><sseintvecmodelower>): New.
2660 (vcond_mask_<mode><sseintvecmodelower>): New.
2662 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2664 * optabs-query.h (get_vcond_mask_icode): New.
2665 * optabs-tree.c (expand_vec_cond_expr_p): Use
2666 get_vcond_mask_icode for VEC_COND_EXPR with mask.
2667 * optabs.c (expand_vec_cond_mask_expr): New.
2668 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
2669 * optabs.def (vcond_mask_optab): New.
2670 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
2671 generate redundant comparison for COND_EXPR.
2672 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
2674 (vectorizable_condition): Likewise.
2675 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
2676 cond_exp with no embedded comparison.
2677 (vect_build_slp_tree_1): Likewise.
2679 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2681 * config/i386/sse.md (maskload<mode>): Rename to ...
2682 (maskload<mode><sseintvecmodelower>): ... this.
2683 (maskstore<mode>): Rename to ...
2684 (maskstore<mode><sseintvecmodelower>): ... this.
2685 (maskload<mode><avx512fmaskmodelower>): New.
2686 (maskstore<mode><avx512fmaskmodelower>): New.
2688 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2690 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
2691 (expand_MASK_STORE): Adjust to maskstore optab changes.
2692 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
2693 Adjust to maskload, maskstore optab changes.
2694 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
2695 * optabs.def (maskload_optab): Transform into convert optab.
2696 (maskstore_optab): Likewise.
2697 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
2698 can_vec_mask_load_store_p signature change.
2699 (predicate_mem_writes): Use boolean mask.
2700 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
2701 can_vec_mask_load_store_p signature change. Allow invariant masks.
2702 (vectorizable_operation): Ignore type precision for boolean vectors.
2704 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2706 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
2707 (const_vector_mask_from_tree): New.
2708 (const_vector_from_tree): Use const_vector_mask_from_tree
2709 for boolean vectors.
2710 * optabs-query.h (get_vec_cmp_icode): New.
2711 * optabs-tree.c (expand_vec_cmp_expr_p): New.
2712 * optabs-tree.h (expand_vec_cmp_expr_p): New.
2713 * optabs.c (vector_compare_rtx): Add OPNO arg.
2714 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
2715 (expand_vec_cmp_expr): New.
2716 * optabs.def (vec_cmp_optab): New.
2717 (vec_cmpu_optab): New.
2718 * optabs.h (expand_vec_cmp_expr): New.
2719 * tree-vect-generic.c (expand_vector_comparison): Add vector
2720 comparison optabs check.
2721 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
2722 operations for VF. Add mask type computation.
2723 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
2724 (vectorizable_comparison): New.
2725 (vect_analyze_stmt): Add vectorizable_comparison.
2726 (vect_transform_stmt): Likewise.
2727 (vect_init_vector): Support boolean vector invariants.
2728 (vect_get_vec_def_for_operand): Add VECTYPE arg.
2729 (vectorizable_condition): Directly provide vectype for invariants
2731 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
2732 (enum vect_var_kind): Add vect_mask_var.
2733 (enum stmt_vec_info_type): Add comparison_vec_info_type.
2734 (vectorizable_comparison): New.
2735 (vect_get_vec_def_for_operand): Add VECTYPE arg.
2736 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
2737 (vect_create_destination_var): Likewise.
2738 * tree-vect-patterns.c (check_bool_pattern): Check fails
2739 if we can vectorize comparison directly.
2740 (search_type_for_mask): New.
2741 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
2742 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
2743 comparison statements.
2744 (vect_get_constant_vectors): Support boolean vector constants.
2745 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
2746 (ix86_expand_int_vec_cmp): New.
2747 (ix86_expand_fp_vec_cmp): New.
2748 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
2749 op_true and op_false.
2750 (ix86_int_cmp_code_to_pcmp_immediate): New.
2751 (ix86_fp_cmp_code_to_pcmp_immediate): New.
2752 (ix86_cmp_code_to_pcmp_immediate): New.
2753 (ix86_expand_mask_vec_cmp): New.
2754 (ix86_expand_fp_vec_cmp): New.
2755 (ix86_expand_int_sse_cmp): New.
2756 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
2757 (ix86_expand_int_vec_cmp): New.
2758 (ix86_get_mask_mode): New.
2759 (TARGET_VECTORIZE_GET_MASK_MODE): New.
2760 * config/i386/sse.md (avx512fmaskmodelower): New.
2761 (vec_cmp<mode><avx512fmaskmodelower>): New.
2762 (vec_cmp<mode><sseintvecmodelower>): New.
2763 (vec_cmpv2div2di): New.
2764 (vec_cmpu<mode><avx512fmaskmodelower>): New.
2765 (vec_cmpu<mode><sseintvecmodelower>): New.
2766 (vec_cmpuv2div2di): New.
2768 2015-11-10 Richard Biener <rguenther@suse.de>
2770 PR tree-optimization/68240
2771 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
2773 (visit_phi): For PHIs with just a single executable edge
2774 take its value directly.
2775 (expressions_equal_p): Handle VN_TOP properly.
2777 2015-11-10 Richard Biener <rguenther@suse.de>
2779 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
2780 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
2783 2015-11-10 Richard Biener <rguenther@suse.de>
2785 PR tree-optimization/56118
2786 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
2787 cost favor vectorized version.
2789 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2791 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
2792 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
2793 (neg_not_op): New code attribute.
2795 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2797 * ifcvt.c (noce_try_inverse_constants): New function.
2798 (noce_process_if_block): Call it.
2799 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
2800 * optabs.def (negcc_optab, notcc_optab): Declare.
2801 * optabs.c (emit_conditional_neg_or_complement): New function.
2802 * doc/tm.texi (Standard Names): Document negcc, notcc names.
2804 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2806 PR rtl-optimization/68236
2807 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
2808 if insn_queue doesn't exist.
2809 (haifa_sched_finish): Reset insn_queue to NULL.
2811 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
2813 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
2814 (build_def_use): Initialize terminated_this_insn.
2815 (find_best_rename_reg): Pick and check register from the tied chain.
2816 (regrename_do_replace): Mark head as renamed.
2817 (struct du_head *terminated_this_insn). New static variable.
2818 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
2819 * regrename.h (struct du_head): Add tied_chain, renamed members.
2821 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2824 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
2827 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
2830 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
2831 not promote the mode for aggregate types.
2833 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
2835 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
2836 * omp-low.c (build_oacc_routine_dims): New.
2838 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2840 * config/rs6000/constraints.md (wF constraint): New constraints
2841 for power9/toc fusion.
2842 (wG constraint): Likewise.
2844 * config/rs6000/predicates.md (u6bit_cint_operand): New
2845 predicate, recognize 0..63.
2846 (upper16_cint_operand): New predicate for power9 and toc fusion.
2847 (fpr_reg_operand): Likewise.
2848 (toc_fusion_or_p9_reg_operand): Likewise.
2849 (toc_fusion_mem_raw): Likewise.
2850 (toc_fusion_mem_wrapped): Likewise.
2851 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
2853 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
2855 (fusion_addis_mem_combo_load): Add support for power9 fusion of
2856 floating point loads, floating point stores, and gpr stores.
2857 (fusion_addis_mem_combo_store): Likewise.
2858 (fusion_offsettable_mem_operand): Likewise.
2860 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
2861 (emit_fusion_load_store): Likewise.
2862 (fusion_p9_p): Likewise.
2863 (expand_fusion_p9_load): Likewise.
2864 (expand_fusion_p9_store): Likewise.
2865 (emit_fusion_p9_load): Likewise.
2866 (emit_fusion_p9_store): Likewise.
2867 (fusion_wrap_memory_address): Likewise.
2869 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
2870 elements for power9 fusion.
2871 (rs6000_debug_print_mode): Rework debug information to print more
2872 information about fusion.
2873 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
2874 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
2875 offsettable memory address.
2876 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
2877 (emit_fusion_gpr_load): Move most of the code from
2878 emit_fusion_gpr_load into emit_fusion-addis that handles both
2879 power8 and power9 fusion.
2880 (emit_fusion_addis): Likewise.
2881 (emit_fusion_load_store): Likewise.
2882 (fusion_wrap_memory_address): Add support for TOC fusion.
2883 (fusion_split_address): Likewise.
2884 (fusion_p9_p): Add support for power9 fusion.
2885 (expand_fusion_p9_load): Likewise.
2886 (expand_fusion_p9_store): Likewise.
2887 (emit_fusion_p9_load): Likewise.
2888 (emit_fusion_p9_store): Likewise.
2890 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
2891 new instructions in ISA 3.0.
2892 (TARGET_CTZ): Likewise.
2893 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
2894 (TARGET_TOC_FUSION_FP): Likewise.
2896 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
2898 (UNSPEC_FUSION_ADDIS): Likewise.
2899 (QHSI mode iterator): New iterator for power9 fusion.
2900 (GPR_FUSION): Likewise.
2901 (FPR_FUSION): Likewise.
2902 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
2903 (umod<mode>3): Likewise.
2904 (divmod peephole): Likewise.
2905 (udivmod peephole): Likewise.
2906 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
2908 (ctz<mode>2_h): Likewise.
2909 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
2910 (ashdi3_extswsli_dot): Likewise.
2911 (ashdi3_extswsli_dot2): Likewise.
2912 (power9 fusion splitter): New power9/toc fusion support.
2913 (toc_fusionload_<mode>): Likewise.
2914 (toc_fusionload_di): Likewise.
2915 (fusion_gpr_load_<mode>): Update predicate function.
2916 (power9 fusion peephole2s): New power9/toc fusion support.
2917 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
2918 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
2919 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
2920 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
2921 (fusion_p9_<mode>_constant): Likewise.
2923 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
2925 * optabs.c (prepare_libcall_arg): New function.
2926 (expand_fixed_convert): Add call to prepare_libcall_arg.
2928 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
2930 * sched-int.h (dump_rgn_dependencies_dot): Declare
2931 * sched-rgn.c (dump_rgn_dependencies_dot): New function
2932 * print-rtl.h (print_insn): Add prototype
2934 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
2935 * common.opt (-fsched-verbose): Set default value to 1.
2936 * invoke.texi (-fsched-verbose): Update the option's description.
2938 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
2940 * config/visium/visium.h (PRINT_OPERAND): Delete.
2941 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
2942 (PRINT_OPERAND_ADDRESS): Likewise.
2943 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
2945 (visium_print_operand_punct_valid_p): ...this. New function.
2946 (TARGET_PRINT_OPERAND): Define to...
2947 (print_operand): Rename to...
2948 (visium_print_operand): ...this.
2949 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
2950 (visium_output_address): Rename to...
2951 (visium_print_operand_address): ...this.
2952 (print_operand_address): Delete.
2954 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
2957 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
2958 Check that the type of the first operand is an aggregate type.
2960 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
2962 * omp-low.c: Fix some OpenACC comment typos.
2963 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
2964 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
2965 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
2967 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
2969 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
2971 2015-11-09 Jeff Law <law@redhat.com>
2973 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
2974 being in gimple/ssa form. Remove redundant check for SSA_NAME.
2977 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2978 Peter Bergner <bergner@vnet.ibm.com>
2980 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
2982 (-mpower9-vector): Likewise.
2983 (-mpower9-dform): Likewise.
2984 (-mpower9-minmax): Likewise.
2985 (-mtoc-fusion): Likewise.
2986 (-mmodulo): Likewise.
2987 (-mfloat128-hardware): Likewise.
2989 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
2990 mask for ISA 3.0 (power9).
2991 (POWERPC_MASKS): Add new ISA 3.0 switches.
2992 (power9 cpu): Add power9 cpu.
2994 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
2995 (ASM_CPU_SPEC): Likewise.
2996 (EXTRA_SPECS): Likewise.
2998 * config/rs6000/rs6000-opts.h (enum processor_type): Add
3001 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
3002 (rs6000_debug_reg_global): Add support for power9 fusion.
3003 (rs6000_setup_reg_addr_masks): Cache mode size.
3004 (rs6000_option_override_internal): Until real power9 tuning is
3005 added, use -mtune=power8 for -mcpu=power9.
3006 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
3007 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
3008 of Altivec registers.
3009 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
3010 (rs6000_loop_align): Add support for power9 cpu.
3011 (rs6000_file_start): Likewise.
3012 (rs6000_adjust_cost): Likewise.
3013 (rs6000_issue_rate): Likewise.
3014 (insn_must_be_first_in_group): Likewise.
3015 (insn_must_be_last_in_group): Likewise.
3016 (force_new_group): Likewise.
3017 (rs6000_register_move_cost): Likewise.
3018 (rs6000_opt_masks): Likewise.
3020 * config/rs6000/rs6000.md (cpu attribute): Add power9.
3021 * config/rs6000/rs6000-tables.opt: Regenerate.
3023 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3024 _ARCH_PWR9 if power9 support is available.
3026 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
3027 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
3029 * configure.ac: Determine if the assembler supports the ISA 3.0
3031 * config.in (HAVE_AS_POWER9): Likewise.
3032 * configure: Regenerate.
3034 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
3037 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3039 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
3040 Remove integer CONST_DOUBLE handling. It should never occur.
3042 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3045 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
3046 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
3047 Delete VOIDmode case. Assert that mode is not VOIDmode.
3048 * config/aarch64/predicates.md (const0_operand): Remove const_double
3051 2015-11-09 Martin Liska <mliska@suse.cz>
3053 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
3054 body_info release function.
3055 * ipa-prop.c (ipa_release_body_info): New function.
3056 (ipa_analyze_node): Call the function.
3057 (ipa_node_params::~ipa_node_params): Release known_csts.
3058 * ipa-prop.h (ipa_release_body_info): Declare.
3060 2015-11-09 Martin Liska <mliska@suse.cz>
3062 * gcc.c (record_temp_file): Release name string.
3063 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
3064 * lra-lives.c (free_live_range_list): Utilize
3065 lra_live_range_pool for allocation and deallocation.
3066 (create_live_range): Likewise.
3067 (copy_live_range): Likewise.
3068 (lra_merge_live_ranges): Likewise.
3069 (remove_some_program_points_and_update_live_ranges): Likewise.
3070 (lra_create_live_ranges_1): Release point_freq_vec that can
3071 be not freed from previous iteration of the function.
3072 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
3073 * tree-sra.c (sra_deinitialize): Release all vectors in
3075 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
3076 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
3077 Release edge_info for a removed edge.
3078 (thread_through_all_blocks): Free region vector.
3079 * tree-ssa.h (free_dom_edge_info): Declare function extern.
3081 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
3083 * optabs.c (expand_vec_cond_expr): Always get sign from type.
3084 * tree.c (wide_int_to_tree): Support negative values for boolean.
3085 (build_nonstandard_boolean_type): Use signed type for booleans.
3087 2015-11-09 Richard Biener <rguenther@suse.de>
3089 PR tree-optimization/68248
3090 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
3092 2015-11-09 Richard Biener <rguenther@suse.de>
3094 PR tree-optimization/56118
3095 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
3096 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
3097 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
3099 (vect_slp_analyze_data_ref_dependences): Instead of computing
3100 all dependences of the region DRs just analyze the code motions
3101 SLP vectorization will perform. Remove SLP instances that
3102 cannot have their store/load motions applied.
3103 (vect_analyze_data_refs): Allow DRs without a vectype
3104 in BB vectorization.
3106 2015-11-09 Julian Brown <julian@codesourcery.com>
3108 * final.c (output_asm_insn): Pass VOIDmode to output_address.
3109 (output_address): Add MODE argument. Pass to print_operand_address
3111 * targhooks.c (default_print_operand_address): Add MODE argument.
3112 * targhooks.h (default_print_operand_address): Update prototype.
3113 * output.h (output_address): Update prototype.
3114 * target.def (print_operand_address): Add MODE argument.
3115 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
3117 (print_operand): Pass access mode to output_address.
3118 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
3120 (mcore_print_operand): Update calls to mcore_print_operand_address.
3121 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
3123 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
3125 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
3127 (tilegx_print_operand): Don't set above global. Update calls to
3129 (tilegx_print_operand_address): Add MODE argument. Use instead of
3130 output_memory_reference_mode global.
3131 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
3132 (frv_print_operand): Pass mode to frv_print_operand_address calls.
3133 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
3135 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
3136 (cris_print_operand): Pass mode to output_address calls.
3137 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
3138 * config/aarch64/aarch64.h (aarch64_print_operand)
3139 (aarch64_print_operand_address): Remove prototypes.
3140 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
3142 (aarch64_print_operand): Make static. Update calls to output_address.
3143 (aarch64_print_operand_address): Add MODE argument. Use instead of
3144 aarch64_memory_reference_mode global.
3145 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
3147 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
3148 Delete macro definitions.
3149 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
3150 * config/xtensa/xtensa.c (print_operand): Pass mode in
3151 output_address calls.
3152 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
3154 (h83000_print_operand): Update calls to h8300_print_operand_address
3156 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
3157 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
3159 (tilepro_print_operand): Pass mode to output_address.
3160 (tilepro_print_operand_address): Add MODE argument. Use instead of
3161 output_memory_reference_mode.
3162 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
3163 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
3164 to output_address calls.
3165 (nvptx_print_operand_address): Add MODE argument.
3166 * config/alpha/alpha.c (print_operand): Pass mode argument in
3167 output_address calls.
3168 * config/m68k/m68k.c (print_operand): Pass mode argument in
3169 output_address call.
3170 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
3171 (avr_print_operand): Update calls to avr_print_operand_address.
3172 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
3173 argument. Update calls to output_address.
3174 (sparc_print_operand): Pass mode to output_address.
3175 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
3177 (iq2000_print_operand): Pass mode in output_address calls.
3178 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
3180 (xstormy16_print_operand): Pass mode to
3181 xstormy16_print_operand_address calls.
3182 * config/mips/mips.c (mips_print_operand): Update calls to
3184 (mips_print_operand_address): Add MODE argument.
3185 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
3187 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
3188 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
3190 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
3191 (rx_print_operand): Update calls to output_address,
3192 rx_print_operand_address.
3193 * config/nds32/nds32.c (nds32_print_operand): Update calls to
3195 (nds32_print_operand_address): Add MODE argument.
3196 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
3197 output_address calls.
3198 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
3199 output_address call.
3200 (c6x_print_address_operand): Update calls to output_address.
3201 (c6x_print_operand_address): Pass mode to above.
3202 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
3203 (v850_print_operand): Pass mode to v850_print_operand_address,
3205 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
3206 (mmix_print_operand): Pass mode in output_address calls.
3207 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
3208 (sh_print_operand): Pass mem mode to output_address,
3209 sh_print_operand_address.
3210 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
3211 (cr16_print_operand): Pass mode to output_address,
3212 cr16_print_operand_address.
3213 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
3215 * config/microblaze/microblaze.c (print_operand): Pass mode to
3217 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
3219 (nios2_print_operand_address): Add MODE argument. Update call to
3220 nios2_print_operand_address.
3221 * config/s390/s390.c (print_operand): Pass mode to output_address.
3222 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
3223 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
3225 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
3226 Use instead of output_memory_reference_mode.
3227 (output_memory_reference_mode): Delete global.
3228 (arm_print_operand): Pass mem mode to output_address.
3229 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
3230 (m32r_print_operand): Pass mode to output_address.
3231 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
3233 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
3234 * config/i386/i386.c (ix86_print_operand): Pass mode to
3235 output_address calls.
3236 (ix86_print_operand_address): Add MODE argument.
3238 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3241 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
3242 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
3243 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
3244 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
3246 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3248 PR rtl-optimization/67749
3249 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
3250 case before emitting the two blocks. Instead modify the register
3251 in the corresponding final insn of the basic block.
3253 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3255 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
3258 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
3260 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
3261 HAVE_INITFINI_ARRAY_SUPPORT.
3262 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
3264 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
3265 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
3266 Don't check HAVE_AS_SPARC_NOBITS.
3267 Heed SECTION_NOTYPE.
3269 * configure: Regenerate.
3270 * config.in: Regenerate.
3272 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3275 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
3277 2015-11-09 Richard Henderson <rth@redhat.com>
3279 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
3280 __SEG_GS, __SEG_TLS.
3281 (ix86_register_pragmas): Register address spaces __seg_fs,
3282 __seg_gs, __seg_tls.
3283 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
3284 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
3285 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
3286 * config/i386/i386.c (ix86_decompose_address): Likewise.
3287 (ix86_legitimate_address_p): Likewise.
3288 (memory_address_length): Likewise. Check mem address space too.
3289 (ix86_print_operand): Use ix86_print_operand_address_as.
3290 (ix86_print_operand_address_as): Rename from
3291 ix86_print_operand_address, add new addr_space_t parameter.
3292 Validate that either the parameter or the ix86_address segment
3293 is default address space. Handle ADDR_SPACE_SEG_TLS.
3294 (ix86_print_operand_address): New.
3295 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
3296 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
3297 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
3298 (ix86_addr_space_zero_address_valid): New.
3299 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
3300 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
3301 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
3302 * config/i386/predicates.md (address_no_seg_operand): Likewise.
3303 (vsib_address_operand): Likewise.
3304 (address_mpx_no_base_operand): Likewise.
3305 (address_mpx_no_index_operand): Likewise.
3306 * doc/extend.texi (x86 Named Address Spaces): New section.
3308 * config/i386/i386.c (ix86_check_no_addr_space): New.
3309 (decide_alg): Add have_as parameter.
3310 (alg_usable_p): Likewise; disable rep algorithms if set.
3311 (ix86_expand_set_or_movmem): Notice if either MEM has a
3312 non-default address space.
3313 (ix86_expand_strlen): Likewise.
3314 * config/i386/i386.md (strmov, strset): Likewise.
3315 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
3316 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
3317 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
3318 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
3319 *cmpstrnqi_1, *strlenqi_1): Likewise.
3321 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
3322 (*movabs<mode>_2): Likewise.
3324 * dwarf2out.c (modified_type_die): Pass the address space number
3325 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
3326 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
3327 * targhooks.c (default_addr_space_debug): New.
3328 * targhooks.h (default_addr_space_debug): Declare.
3329 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
3330 * doc/tm.texi: Rebuild.
3332 * gimple.c (check_loadstore): Return false when 0 is a valid address.
3333 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
3334 null when 0 is valid in the source address space.
3335 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
3336 * targhooks.c (default_addr_space_zero_address_valid): New.
3337 * targhooks.h (default_addr_space_zero_address_valid): Declare.
3338 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
3339 * doc/tm.texi: Rebuild.
3341 * cselib.c (add_mem_for_addr): Compare address spaces when
3343 (cselib_lookup_mem): Likewise.
3344 * fold-const.c (operand_equal_p): Check address spaces of
3345 pointer types before checking integer constants.
3348 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
3349 the correct type for the base.
3351 2015-11-09 Jeff Law <law@redhat.com>
3353 * tree-into-ssa.c (names_to_release): No longer static.
3354 * tree-into-ssa.h (names_to_release): Declare.
3355 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
3356 (release_free_names_and_compact_live_names): New function extracted
3357 from pass_release_ssa_names::execute.
3358 (pass_release_ssa_names::execute): Use it.
3360 2015-11-09 Alan Modra <amodra@gmail.com>
3362 * gensupport.c (add_mnemonic_string): Make len param a size_t.
3363 (gen_mnemonic_setattr): Make "size" var a size_t. Use
3364 obstack_blank_fast to shrink obstack. Cast obstack_next_free
3367 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
3369 PR rtl-optimization/68182
3370 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
3371 branch with only one successor just like unconditional branches.
3373 2015-11-08 Jeff Law <law@redhat.com>
3375 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
3376 non-FSM path has no edges marked with EDGE_DFS_BACK.
3377 (ssa_redirect_edges): No longer call mark_loop_for_removal.
3378 (thread_single_edge, def_split_header_continue_p): Remove.
3379 (bb_ends_with_multiway_branch): Likewise.
3380 (thread_through_loop_header): Remove cases of threading from
3381 latch through the header. Simplify knowing we won't thread
3383 (thread_through_all_blocks): Simplify knowing that only the FSM
3384 threader needs to handle backedges.
3386 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
3388 * doc/extend.texi (type attributes): Document scalar_storage_order.
3389 (Structure-Packing Pragmas): Rename into...
3390 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
3391 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
3392 (Warnings): Document -Wno-scalar-storage-order.
3393 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
3394 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
3395 extract_bit_field and store_bit_field.
3396 (initialize_argument_information): Adjust call to store_expr.
3397 (load_register_parameters): Adjust call to extract_bit_field.
3398 * expmed.c (check_reverse_storage_order_support): New function.
3399 (check_reverse_float_storage_order_support): Likewise.
3400 (flip_storage_order): Likewise.
3401 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
3402 of the value if it is true. Pass REVERSE to recursive call after
3403 adjusting the target offset.
3404 Do not use extraction or movstrict instruction if REVERSE is true.
3405 Pass REVERSE to store_fixed_bit_field.
3406 (store_bit_field): Add REVERSE parameter and pass to it to above.
3407 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
3408 store_split_bit_field and store_fixed_bit_field_1.
3409 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
3410 order of the value if it is true and adjust the target offset.
3411 (store_split_bit_field): Add REVERSE parameter and pass it to
3412 store_fixed_bit_field. Adjust the target offset if it is true.
3413 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
3414 of the value if it is true. Pass REVERSE to recursive call after
3415 adjusting the target offset.
3416 Do not use extraction or subreg instruction if REVERSE is true.
3417 Pass REVERSE to extract_fixed_bit_field.
3418 (extract_bit_field): Add REVERSE parameter and pass to it to above.
3419 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
3420 extract_split_bit_field and extract_fixed_bit_field_1.
3421 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
3422 order of the value if it is true and adjust the target offset.
3423 (extract_split_bit_field): Add REVERSE parameter and pass it to
3424 extract_fixed_bit_field. Adjust the target offset if it is true.
3425 * expmed.h (flip_storage_order): Declare.
3426 (store_bit_field): Adjust prototype.
3427 (extract_bit_field): Likewise.
3428 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
3429 (emit_group_store): Adjust call to store_bit_field.
3430 (copy_blkmode_from_reg): Likewise.
3431 (copy_blkmode_to_reg): Likewise.
3432 (write_complex_part): Likewise.
3433 (read_complex_part): Likewise.
3434 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
3435 that it isn't true if the target is a register.
3436 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
3437 and flip the storage order of the value.
3438 <BIT_IOR_EXPR>: Flip the storage order of the value.
3439 (get_bit_range): Adjust call to get_inner_reference.
3440 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
3441 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
3442 with reverse storage order.
3443 (store_expr_with_bounds): Add REVERSE parameter and pass it to
3444 recursive calls and call to store_bit_field. Force the value into a
3445 register if it is true and then flip the storage order of the value.
3446 (store_expr): Add REVERSE parameter and pass it to above.
3447 (categorize_ctor_elements_1): Adjust call to
3448 initializer_constant_valid_p.
3449 (store_constructor_field): Add REVERSE parameter and pass it to
3450 recursive calls and call to store_field.
3451 (store_constructor): Add REVERSE parameter and pass it to calls to
3452 store_constructor_field and store_expr. Set it to true for an
3453 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
3454 (store_field): Add REVERSE parameter and pass it to recursive calls
3455 and calls to store_expr and store_bit_field. Temporarily flip the
3456 storage order of the value with record type and integral mode and
3457 adjust the shift if it is true.
3458 (get_inner_reference): Add PREVERSEP parameter and set it to true
3459 upon encoutering a reference with reverse storage order.
3460 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
3461 (expand_constructor): Adjust call to store_constructor.
3462 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
3463 of the union type to store_expr in the MEM case and assert that it
3464 isn't set in the REG case. Adjust call to store_field.
3465 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
3466 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
3467 get_inner_reference and extract_bit_field. Temporarily flip the
3468 storage order of the value with record type and integral mode and
3469 adjust the shift if it is true. Flip the storage order of the value
3470 at the end if it is true.
3471 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
3472 get_inner_reference. Do not fetch an inner reference if it is true.
3473 * expr.h (store_expr_with_bounds): Ajust prototype.
3474 (store_expr): Likewise.
3475 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
3476 REF_REVERSE_STORAGE_ORDER on the reference according to it.
3477 (optimize_bit_field_compare): Deal with reverse storage order.
3478 Adjust calls to get_inner_reference and make_bit_field_ref.
3479 (decode_field_reference): Add PREVERSEP parameter and adjust call to
3480 get_inner_reference.
3481 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
3482 to decode_field_reference and make_bit_field_ref.
3483 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
3484 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
3485 (fold_comparison): Adjust call to get_inner_reference.
3486 (split_address_to_core_and_offset): Adjust call to
3487 get_inner_reference.
3488 * gimple-expr.c (useless_type_conversion_p): Return false for array
3489 types with different TYPE_REVERSE_STORAGE_ORDER flag.
3490 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
3491 REF_REVERSE_STORAGE_ORDER flag.
3492 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
3493 * output.h (assemble_real): Adjust prototype.
3494 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
3495 * stor-layout.c (finish_record_layout): Propagate the
3496 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
3497 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
3498 (TYPE_SATURATING): Adjust.
3499 (REF_REVERSE_STORAGE_ORDER): Document.
3500 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
3501 set it to true upon encoutering a reference with reverse storage order.
3502 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
3503 * tree-inline.c (remap_gimple_op_r): Propagate the
3504 REF_REVERSE_STORAGE_ORDER flag.
3505 (copy_tree_body_r): Likewise.
3506 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
3508 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
3509 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
3510 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
3511 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
3512 REF_REVERSE_STORAGE_ORDER flag.
3513 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
3514 (gimple_canonical_types_compatible_p): Likewise.
3515 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
3516 (TYPE_SATURATING): Adjust.
3517 (REF_REVERSE_STORAGE_ORDER): New flag.
3518 (reverse_storage_order_for_component_p): New inline predicate.
3519 (storage_order_barrier_p): Likewise.
3520 (get_inner_reference): Adjust prototype.
3521 * varasm.c: Include expmed.h.
3522 (assemble_variable_contents): Adjust call to output_constant.
3523 (assemble_real): Add REVERSE parameter. Flip the storage
3524 order of the value if REVERSE is true.
3525 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
3526 (assemble_constant_contents): Adjust call to output_constant.
3527 (output_constant_pool_2): Adjust call to assemble_real.
3528 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
3529 TYPE_REVERSE_STORAGE_ORDER.
3530 (initializer_constant_valid_p): Add REVERSE parameter.
3531 (output_constant): Add REVERSE parameter.
3532 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
3533 <REAL_TYPE>: Adjust call to assemble_real.
3534 <COMPLEX_TYPE>: Pass it to recursive calls.
3535 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
3536 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
3537 (struct oc_local_state): Add REVERSE field.
3538 (output_constructor_array_range): Adjust calls to output_constant.
3539 (output_constructor_regular_field): Likewise.
3540 (output_constructor_bitfield): Adjust call to output_constructor.
3541 Flip the storage order of the value if REVERSE is true.
3542 (output_constructor): Add REVERSE parameter. Set it to true for an
3543 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
3544 output_constructor_bitfield.
3545 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
3546 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
3547 * builtins.c (get_object_alignment_2): Likewise.
3548 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
3549 and get_ref_base_and_extent.
3550 * dbxout.c (dbxout_expand_expr): Likewise.
3551 * dwarf2out.c (add_var_loc_to_decl): Likewise.
3552 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
3553 (loc_list_from_tree): Likewise.
3554 (fortran_common): Likewise.
3555 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
3556 get_ref_base_and_extent.
3557 (get_base_constructor): Likewise.
3558 (fold_const_aggregate_ref_1): Likewise.
3559 * gimple-laddress.c (pass_laddress::execute): Adjust call to
3560 get_inner_reference.
3561 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
3562 get_inner_reference and bail out on reverse storage order.
3563 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
3564 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
3565 build_ref_for_offset.
3566 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
3567 get_ref_base_and_extent.
3568 (ipa_polymorphic_call_context): Likewise.
3569 (extr_type_from_vtbl_ptr_store): Likewise.
3570 (check_stmt_for_type_change): Likewise.
3571 (get_dynamic_type): Likewise.
3572 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
3573 get_ref_base_and_extent.
3574 (compute_complex_assign_jump_func): Likewise.
3575 (get_ancestor_addr_info): Likewise.
3576 (compute_known_type_jump_func): Likewise.
3577 (determine_known_aggregate_parts): Likewise.
3578 (ipa_get_adjustment_candidate): Likewise.
3579 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
3580 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
3581 (build_ref_for_offset): Adjust prototype.
3582 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
3583 get_inner_reference.
3584 * tree-affine.c (tree_to_aff_combination): Adjust call to
3585 get_inner_reference.
3586 (get_inner_reference_aff): Likewise.
3587 * tree-data-ref.c (split_constant_offset_1): Likewise.
3588 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
3589 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
3590 get_inner_reference.
3591 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
3592 (dump_access): Print new fields.
3593 (create_access): Adjust call to get_ref_base_and_extent and set the
3594 REVERSE flag according to the result.
3595 (completely_scalarize_record): Set the REVERSE flag.
3596 (scalarize_elem): Add REVERSE parameter.
3597 (build_access_from_expr_1): Preserve storage order barriers.
3598 (build_accesses_from_assign): Likewise.
3599 (build_ref_for_offset): Add REVERSE parameter and set the
3600 REF_REVERSE_STORAGE_ORDER flag accordingly.
3601 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
3602 the REF_REVERSE_STORAGE_ORDER flag if there are components.
3603 (analyze_access_subtree): Likewise.
3604 (create_artificial_child_access): Set the REVERSE flag.
3605 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
3606 (turn_representatives_into_adjustments): Propagate REVERSE flag.
3607 (ipa_sra_check_caller): Adjust call to get_inner_reference.
3608 * tree-ssa-alias.c (ao_ref_base): Adjust call to
3609 get_ref_base_and_extent.
3610 (aliasing_component_refs_p): Likewise.
3611 (stmt_kills_ref_p_1): Likewise.
3612 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3613 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
3614 Return true if reverse storage order.
3615 <BIT_FIELD_REF>: Likewise.
3616 <COMPONENT_REF>: Likewise.
3617 <ARRAY_REF>: Likewise.
3618 <ARRAY_RANGE_REF>: Likewise.
3619 (split_address_cost): Likewise. Bail out if reverse storage order.
3620 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
3621 get_inner_reference. Bail out if reverse storage order.
3622 (bswap_replace): Adjust call to get_inner_reference.
3623 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
3624 the REF_REVERSE_STORAGE_ORDER flag.
3625 <BIT_FIELD_REF>: Likewise.
3626 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
3628 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
3629 to the REF_REVERSE_STORAGE_ORDER flag.
3630 <BIT_FIELD_REF>: Likewise.
3631 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
3632 (contains_storage_order_barrier_p): New predicate.
3633 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
3634 Punt on storage order barriers if necessary.
3635 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
3636 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
3637 call to get_ref_base_and_extent.
3638 (do_structure_copy): Likewise.
3639 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
3640 get_inner_reference.
3641 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
3642 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
3643 * ubsan.c (instrument_bool_enum_load): Likewise.
3644 (instrument_object_size): Likewise.
3645 * var-tracking.c (track_expr_p): Adjust call to
3646 get_ref_base_and_extent.
3647 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
3648 get_inner_reference.
3649 * config/s390/s390.c (s390_expand_atomic): Adjust call to
3651 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
3653 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
3655 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
3657 * config/sparc/sparc.opt (mfix-at697f): Add final period.
3659 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
3661 PR rtl-optimization/67864
3662 * common/config/i386/i386-common.c (ix86_option_optimization_table)
3663 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
3666 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3668 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
3671 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3673 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
3674 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
3676 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3678 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
3679 * internal-fn.c: Don't undef it here.
3680 * tree-core.h: Likewise.
3682 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3684 * builtins.c (fold_builtin_nan): Delete.
3685 (fold_builtin_memcmp): Remove case where both arguments are constant.
3686 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
3687 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
3688 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
3689 * fold-const-call.c: Include fold-const.h.
3690 (host_size_t_cst_p): New function.
3691 (build_cmp_result, fold_const_builtin_nan): Likewise.
3692 (fold_const_call_1): New function, split out from...
3693 (fold_const_call): ...here (for all three interfaces). Handle
3694 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
3696 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3698 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
3699 (fold_builtin_1): Don't call them.
3700 * fold-const-call.c: Include tm.h.
3701 (fold_const_call_ss): New variant for integer-to-integer folds.
3702 (fold_const_call): Call it.
3704 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3706 * builtins.c (fold_builtin_classify): Move constant cases to...
3707 * fold-const-call.c (fold_const_call_ss): ...here.
3709 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3711 * builtins.h (c_getstr): Move to...
3712 * fold-const.h (c_getstr): ...here.
3713 * builtins.c (c_getstr): Move to...
3714 * fold-const.c (c_getstr): ...here.
3716 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3718 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
3719 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
3721 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3723 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
3724 the dominance info; free it if we can't.
3725 (pass_call_cdce::execute): Don't free the dominance info here.
3727 2015-11-06 Jeff Law <law@redhat.com>
3729 * tree-ssa-threadedge.c (dummy_simplify): Remove.
3730 (thread_around_empty_blocks): Remove backedge_seen_p argument.
3731 If we thread to a backedge, then return false. Update recursive
3732 call to eliminate backedge_seen_p argument.
3733 (thread_through_normal_block): Remove backedge_seen_p argument.
3734 Remove backedge_seen_p argument from calls to
3735 thread_around_empty_blocks. Remove checks on backedge_seen_p.
3736 If we thread to a backedge, then return 0.
3737 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
3738 pass it to thread_through_normal_block or thread_through_empty_blocks.
3739 For joiner handling, if we see a backedge, do not try normal
3742 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3744 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
3745 * graphite-poly.c (new_scop): Initialize original_schedule.
3746 (free_scop): Free original_schedule.
3747 * graphite-poly.h (struct scop): Add field original_schedule.
3748 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
3749 (build_poly_scop): Call build_scop_original_schedule.
3751 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3753 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
3754 (build_pbb_minimal_scattering_polyhedrons): New.
3755 (build_scop_scattering): Remove.
3756 (build_scop_minimal_scattering): New.
3757 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
3758 (build_poly_scop): Call build_scop_minimal_scattering.
3760 2015-11-06 Jeff Law <law@redhat.com>
3762 * cfg-flags.def (IGNORE): New edge flag.
3763 * tree-vrp.c (identify_jump_threads): Mark and clear edges
3764 scheduled for removal with EDGE_IGNORE around call into
3765 jump threader. Do no thread across edges with EDGE_IGNORE,
3766 but do allow threading across those with EDGE_DFS_BACK.
3768 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
3770 * doc/md.texi (multi-alternative constraints): Don't document
3771 alternatives inherently tied to reload for the user documentation.
3773 2015-11-06 Michael Collison <michael.collison@linaro.org>
3774 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3777 2015-08-01 Michael Collison <michael.collison@linaro.org
3778 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3780 * config/arm/arm.md (*arm_smin_cmp): New pattern.
3781 (*arm_umin_cmp): Likewise.
3783 2015-11-06 Jakub Jelinek <jakub@redhat.com>
3785 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
3786 * omp-low.c (check_omp_nesting_restrictions): Update for the
3787 various new OpenMP 4.5 nesting restrictions, clarified
3788 nesting glossary, closely nested region relationship clarified
3789 to mean explicit or implicit parallel regions (target/teams),
3790 use %</%> or %qs where appropriate.
3792 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
3793 Sebastian Pop <s.pop@samsung.com>
3795 * graphite-scop-detection.c (loop_is_valid_scop): Call
3796 optimize_loop_nest_for_speed_p.
3798 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
3799 Sebastian Pop <s.pop@samsung.com>
3801 * graphite-optimize-isl.c (optimize_isl): Call
3802 isl_options_set_schedule_maximize_band_depth.
3804 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
3805 Sebastian Pop <s.pop@samsung.com>
3807 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
3808 and exit edges should not be a part of irreducible loop.
3809 (scop_detection::can_represent_loop_1): Loops should not be
3811 (scop_detection::harmful_stmt_in_region): All the basic block
3812 should belong to reducible loops.
3814 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
3816 * config/aarch64/aarch64-simd-builtins.def: Update builtins
3817 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
3818 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
3819 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
3820 (aarch64_tbx4v8qi): Rename to...
3821 aarch64_tbx4<mode>): ... this.
3822 (aarch64_qtbl3<mode>): New pattern.
3823 (aarch64_qtbx3<mode>): New pattern.
3824 (aarch64_qtbl4<mode>): New pattern.
3825 (aarch64_qtbx4<mode>): New pattern.
3826 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
3827 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
3828 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
3829 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
3830 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
3831 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
3832 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
3833 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
3836 2015-11-06 Mike Stump <mikestump@comcast.net>
3839 * dwarf2out.c (get_full_len): Return a value based upon the actual
3840 precision needed for the value.
3841 (add_const_value_attribute): Use a maximal wide-int for
3842 CONST_WIDE_INTs, not VOIDmode.
3843 (output_die): Don't ever output NULL with printf.
3845 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
3846 BLKmode nor VOIDmode values.
3848 2015-11-06 David Malcolm <dmalcolm@redhat.com>
3850 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
3852 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
3853 * diagnostic-core.h (warning_at_rich_loc): New declaration.
3854 (error_at_rich_loc): New declaration.
3855 (permerror_at_rich_loc): New declaration.
3856 (inform_at_rich_loc): New declaration.
3857 * diagnostic-show-locus.c (adjust_line): Delete.
3858 (struct point_state): New struct.
3859 (class colorizer): New class.
3860 (class layout_point): New class.
3861 (class layout_range): New class.
3862 (struct line_bounds): New.
3863 (class layout): New class.
3864 (colorizer::colorizer): New ctor.
3865 (colorizer::~colorizer): New dtor.
3866 (layout::layout): New ctor.
3867 (layout::print_source_line): New method.
3868 (layout::print_annotation_line): New method.
3869 (layout::get_state_at_point): New method.
3870 (layout::get_x_bound_for_row): New method.
3871 (diagnostic_show_locus): Reimplement in terms of class layout.
3872 (diagnostic_print_caret_line): Delete.
3873 * diagnostic.c (diagnostic_initialize): Replace
3874 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
3875 (diagnostic_set_info_translated): Convert param from location_t
3876 to rich_location *. Eliminate calls to set_location on the
3877 message in favor of storing the rich_location ptr there.
3878 (diagnostic_set_info): Convert param from location_t to
3880 (diagnostic_build_prefix): Break out array into...
3881 (diagnostic_kind_color): New variable.
3882 (diagnostic_get_color_for_kind): New function.
3883 (diagnostic_report_diagnostic): Colorize the option_text
3884 using the color for the severity.
3885 (diagnostic_append_note): Update for change in signature of
3886 diagnostic_set_info.
3887 (diagnostic_append_note_at_rich_loc): New function.
3888 (emit_diagnostic): Update for change in signature of
3889 diagnostic_set_info.
3891 (inform_at_rich_loc): New function.
3892 (inform_n): Update for change in signature of diagnostic_set_info.
3893 (warning): Likewise.
3894 (warning_at): Likewise.
3895 (warning_at_rich_loc): New function.
3896 (warning_n): Update for change in signature of diagnostic_set_info.
3897 (pedwarn): Likewise.
3898 (permerror): Likewise.
3899 (permerror_at_rich_loc): New function.
3900 (error): Update for change in signature of diagnostic_set_info.
3901 (error_n): Likewise.
3902 (error_at): Likewise.
3903 (error_at_rich_loc): New function.
3904 (sorry): Update for change in signature of diagnostic_set_info.
3905 (fatal_error): Likewise.
3906 (internal_error): Likewise.
3907 (internal_error_no_backtrace): Likewise.
3908 (source_range::debug): New function.
3909 * diagnostic.h (struct diagnostic_info): Eliminate field
3910 "override_column". Add field "richloc".
3911 (struct diagnostic_context): Add field "colorize_source_p".
3912 (diagnostic_override_column): Delete.
3913 (diagnostic_set_info): Convert param from location_t to
3915 (diagnostic_set_info_translated): Likewise.
3916 (diagnostic_append_note_at_rich_loc): New function.
3917 (diagnostic_num_locations): New function.
3918 (diagnostic_expand_location): Get the location from the
3920 (diagnostic_print_caret_line): Delete.
3921 (diagnostic_get_color_for_kind): New declaration.
3922 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
3923 (error_cb): Update for change in signature of "error" callback.
3924 (fatal_at): Likewise.
3925 (warning_at): Likewise.
3926 * input.c (linemap_client_expand_location_to_spelling_point): New.
3927 * pretty-print.c (text_info::set_range): New method.
3928 (text_info::get_location): New method.
3929 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
3930 (struct text_info): Eliminate "locations" array in favor of
3931 "m_richloc", a rich_location *.
3932 (textinfo::set_location): Add a "caret_p" param, and reimplement
3933 in terms of a call to set_range.
3934 (textinfo::get_location): Eliminate inline implementation in favor of
3935 an out-of-line reimplementation.
3936 (textinfo::set_range): New method.
3937 * rtl-error.c (diagnostic_for_asm): Update for change in signature
3938 of diagnostic_set_info.
3939 * tree-diagnostic.c (default_tree_printer): Update for new
3940 "caret_p" param for textinfo::set_location.
3941 * tree-pretty-print.c (percent_K_format): Likewise.
3943 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3946 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3947 * config/aarch64/aarch64.c
3948 (aarch64_can_use_per_function_literal_pools_p): New.
3949 (aarch64_use_blocks_for_constant_p): Adjust declaration
3950 and use aarch64_can_use_function_literal_pools_p.
3951 (aarch64_select_rtx_section): Update.
3953 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3955 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
3956 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
3957 (arm_output_multireg_pop): Likewise.
3958 (output_move_double): Likewise.
3959 (output_move_quad): Likewise.
3960 (output_return_instruction): Likewise.
3961 (arm_print_operand): Remove support for %( and %. print modifiers.
3962 (arm_output_shift): Make unified asm.
3963 (arm_declare_function_name): Likewise.
3964 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
3965 (ASM_APP_OFF): Adjust.
3966 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
3967 (ASM_OUTPUT_REG_POP): Likewise.
3968 * config/arm/arm.md: Adjust uses of %., %(, %)
3969 * config/arm/sync.md: Likewise.
3970 * config/arm/thumb2.md: Likewise.
3971 * config/arm/ldmstm.md: Regenerate.
3972 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
3973 * doc/invoke.texi (masm-unified-syntax): Update documentation.
3975 2015-11-06 David Malcolm <dmalcolm@redhat.com>
3977 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
3979 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
3981 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
3982 add OEP_MATCH_SIDE_EFFECTS.
3983 * fold-const.c (operand_equal_p): Update documentation; handle
3984 OEP_MATCH_SIDE_EFFECTS.
3985 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
3986 OEP_MATCH_SIDE_EFFECTS.
3988 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
3989 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3991 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
3992 * config/aarch64/aarch64-protos.h: Declare.
3993 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
3995 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
3996 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
3997 code when applicable.
3998 * config/aarch64/aarch64.md: Added enum entries.
3999 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
4001 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
4005 * ipa-polymorphic-call.c
4006 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
4007 issue when offset is out of range.
4008 (contains_type_p): Fix out of range check, clear dynamic flag.
4010 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
4012 * config.gcc (e6500): Fix cpu_is_64bit typo.
4014 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
4016 * tree-sra.c (completely_scalarize): Properly handle negative array
4017 indices using offset_int.
4019 2015-11-06 Richard Biener <rguenther@suse.de>
4021 * alloc-pool.h (object_allocator::allocate): Default-initialize
4024 2015-11-06 Richard Biener <rguenther@suse.de>
4026 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
4027 * lra.c (init_reg_info): Truncate copy_vec instead of
4028 re-allocating a new one and leaking the old.
4029 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
4031 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
4032 * postreload-gcse.c (free_mem): Free modify_mem_list and
4033 canon_modify_mem_list.
4035 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
4037 PR tree-optimization/68145
4038 * tree-vect-stmts.c (vectorizable_operation): Fix
4039 determination for booleans.
4041 2015-11-06 Tom de Vries <tom@codesourcery.com>
4043 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
4044 cond_jump, instead of split after last nondebug insn before cond_jump.
4045 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
4048 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4051 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
4052 subregs from accumulator and make sure it's a register.
4054 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
4056 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
4058 (reduc_uplus_<mode>): Remove.
4059 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
4060 loongson_extract_lo_<mode>.
4061 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
4062 reduc_smax_<mode>, reduc_smax_<mode>, use vec
4063 loongson_extract_lo_<mode>.
4064 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
4066 2015-11-06 Richard Biener <rguenther@suse.de>
4068 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
4070 (vect_stmt_in_region_p): Declare.
4071 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
4072 (destroy_bb_vec_info): Likewise.
4073 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
4074 (vect_get_and_check_slp_defs): Likewise.
4075 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
4076 (vect_slp_bb): Likewise.
4077 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
4078 in terms of vect_stmt_in_region_p.
4079 (vect_pattern_recog): Iterate over the BB region.
4080 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
4081 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
4082 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
4083 * config/i386/i386.c: Include gimple-iterator.h.
4084 * config/aarch64/aarch64.c: Likewise.
4086 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
4088 PR rtl-optimization/67753
4089 PR rtl-optimization/64164
4090 * function.c (assign_parm_setup_block): Avoid allocating a
4091 stack slot if we don't have an ABI-reserved one. Emit the
4092 copy to target_reg in the conversion seq if the copy from
4093 entry_parm is in it too. Don't use the conversion seq to copy
4094 a PARALLEL to a REG or a CONCAT.
4096 2015-11-06 Richard Biener <rguenther@suse.de>
4098 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
4101 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
4102 Thomas Schwinge <thomas@codesourcery.com>
4103 James Norris <jnorris@codesourcery.com>
4106 * gimplify.c (gimplify_scan_omp_clauses): Add support for
4107 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
4108 (gimplify_adjust_omp_clauses): Likewise.
4109 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
4110 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
4111 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
4112 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
4113 (omp_clause_code_name): Likewise.
4114 (walk_tree_1): Handle OMP_CLAUSE_TILE.
4115 * tree.h (OMP_TILE_LIST): New macro.
4117 2015-11-05 Martin Sebor <msebor@redhat.com>
4120 * doc/invoke.texi (-Wplacement-new): Document new option.
4122 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
4124 PR tree-optimization/65963
4125 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
4126 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
4128 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
4130 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
4131 (noce_convert_multiple_sets): Likewise.
4132 (noce_process_if_block): Call them.
4134 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
4136 * gimple-fold.c: Include omp-low.h.
4137 (fold_internal_goacc_dim): New.
4138 (gimple_fold_call): Call it.
4140 2015-11-05 Jakub Jelinek <jakub@redhat.com>
4141 Ilya Verbin <ilya.verbin@intel.com>
4144 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
4145 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
4146 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
4147 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
4148 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
4149 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
4150 (struct cgraph_simd_clone_arg): Adjust comment.
4151 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
4152 to GOMP_target_ext. Add num_teams and thread_limit arguments.
4153 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
4154 to GOMP_target_data_ext.
4155 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
4156 to GOMP_target_update_ext.
4157 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
4158 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
4159 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
4160 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
4161 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
4162 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
4163 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
4164 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
4165 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
4166 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
4167 * tree-core.h (enum omp_clause_schedule_kind): Add
4168 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
4169 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
4170 OMP_CLAUSE_SCHEDULE_LAST value.
4171 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
4172 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
4173 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
4174 OMP_FOR_CHECK. Remove comment.
4175 * tree-pretty-print.c (dump_omp_clause): Handle
4176 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
4177 Simplify. Print schedule clause modifiers.
4178 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
4179 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
4181 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
4182 (omp_default_clause): Tweak for
4183 private/firstprivate/is_device_ptr variables on target
4184 construct and use_device_ptr on target data.
4185 (omp_check_private): Likewise.
4186 (omp_notice_variable): For references check whether what it refers
4187 to has mappable type, rather than the reference itself.
4188 (omp_is_private): Diagnose linear iteration variables on non-simd
4190 (omp_no_lastprivate): Return true only for Fortran.
4191 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
4192 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
4193 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
4194 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
4195 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
4196 lastprivate and linear when combined with distribute. Gimplify
4197 variable low-bound for array reduction. Look through
4198 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
4200 (gimplify_adjust_omp_clauses_1): For implicit references to
4201 variables with reference type and when not ref to scalar or
4202 ref to pointer, map what they refer to using tofrom and
4203 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
4204 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
4205 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
4206 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
4207 Diagnose the same var on both firstprivate and lastprivate on
4208 distribute construct.
4209 (gimplify_omp_for): Fix up handling of predetermined
4210 lastprivate or linear iter vars when combined with distribute.
4211 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
4213 (gimplify_omp_workshare): Call optimize_target_teams.
4214 * omp-low.c (struct omp_region): Add sched_modifiers field.
4215 (struct omp_for_data): Likewise.
4216 (omp_any_child_fn_dumped): New variable.
4217 (extract_omp_for_data): Fill in sched_modifiers, and mask out
4218 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
4220 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
4221 bits of OMP_CLAUSE_SCHED_KIND.
4222 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
4223 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
4224 for array section reductions.
4225 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
4226 for distribute parallel for, if there are lastprivate clauses on the
4228 (lower_rec_input_clauses): Handle non-zero low-bound on array
4230 (lower_reduction_clauses): Likewise.
4231 (lower_send_clauses): Look through POINTER_PLUS_EXPR
4232 for array section reductions.
4233 (expand_parallel_call): Use nonmonotonic entrypoints for
4234 nonmonotonic: dynamic/guided.
4235 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
4236 child_fn if current_function_decl has assembler name set, but child_fn
4237 does not. Dump the header and IL of the child function when not in SSA
4239 (expand_omp_target): Likewise. Pass num_teams and thread_limit
4240 arguments to BUILT_IN_GOMP_TARGET.
4241 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4242 Initialize the extra _looptemp_ clause to fd->loop.n2.
4243 (expand_omp_for): Use nonmonotonic entrypoints for
4244 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
4245 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
4246 again if we have dumped any child functions.
4247 (lower_omp_for_lastprivate): Determine the right count variable
4248 for distribute simd, or distribute parallel for{, simd}.
4249 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
4250 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
4252 (simd_clone_clauses_extract): Handle variable step
4253 for references and arguments passed by reference.
4254 (simd_clone_mangle): Mangle ref/uval/val variable steps.
4255 (simd_clone_adjust_argument_types): Handle
4256 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
4257 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
4258 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
4259 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
4260 (simd_clone_linear_addend): New function.
4261 (simd_clone_adjust): Handle variable step like similarly
4262 to constant step, use simd_clone_linear_addend to determine
4263 the actual step at runtime.
4265 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
4267 * target.def (goacc.dim_limit): New hook.
4268 * targhooks.h (default_goacc_dim_limit): Declare.
4269 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
4270 * doc/tm.texi: Rebuilt.
4271 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
4272 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
4273 (default_goacc_dim_limit): New.
4274 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
4275 (nvptx_goacc_dim_limit) New.
4276 (TARGET_GOACC_DIM_LIMIT): Override.
4277 * tree-vrp.c: Include omp-low.h, target.h.
4278 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
4281 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
4283 * tree-vect-generic.c (do_compare): Use -1 for true
4284 result instead of 1.
4286 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4288 * config/aarch64/aarch64.c
4289 (aarch64_can_use_per_function_literal_pools_p): New.
4290 (aarch64_use_blocks_for_constant_p): Adjust declaration
4291 and use aarch64_can_use_function_literal_pools_p.
4292 (aarch64_select_rtx_section): Update.
4294 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
4296 * targhooks.c (default_get_mask_mode): Use BLKmode in
4297 case target doesn't support required vector mode.
4298 * stor-layout.c (layout_type); Check for BLKmode.
4300 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
4301 Sebastian Pop <s.pop@samsung.com>
4303 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
4304 Remove use of parameter_rename_map.
4306 (copy_internal_parameters): Remove.
4307 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
4308 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
4309 (free_sese_info): Do not free parameter_rename_map.
4310 (set_rename): Do not use parameter_rename_map.
4311 (rename_uses): Update call to set_rename.
4312 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
4313 * sese.h (parameter_rename_map_t): Remove.
4314 (struct sese_info_t): Remove field parameter_rename_map.
4316 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
4317 Sebastian Pop <s.pop@samsung.com>
4319 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
4320 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
4321 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
4322 anonymous namespace.
4323 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
4324 (isl_id_for_pbb): Use a buffer of size 10.
4325 (isl_id_for_ssa_name): Same.
4326 * sese.c (set_rename): Add more dumps.
4328 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4330 * omp-low.c (struct omp_context): Remove reduction_map field.
4331 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
4332 (new_omp_context, delete_omp_context, scan_omp_target): Remove
4333 reduction_map handling.
4334 (lower_omp_target): Remove obsolete openacc reduction handling.
4336 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4338 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
4340 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4341 Cesar Philippidis <cesar@codesourcery.com>
4343 * config/nvptx/nvptx.c: Include gimple headers.
4344 (worker_red_size, worker_red_align, worker_red_name,
4345 worker_red_sym): New.
4346 (nvptx_option_override): Initialize worker reduction buffer.
4347 (nvptx_file_end): Write out worker reduction buffer var.
4348 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
4349 nvptx_expand_cmp_swap): New builtin expanders.
4350 (enum nvptx_builtins): New.
4351 (nvptx_builtin_decls): New.
4352 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
4353 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
4354 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
4355 nvptx_lockless_update): New helpers.
4356 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
4357 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
4358 (nvptx_goacc_reduction): New.
4359 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
4360 TARGET_BUILTIN_DECL): Override.
4361 (TARGET_GOACC_REDUCTION): Override.
4363 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4364 Cesar Philippidis <cesar@codesourcery.com>
4366 * internal-fn.def (GOACC_REDUCTION): New.
4367 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
4368 * internal-fn.c (expand_GOACC_REDUCTION): New.
4369 * target.def (goacc.reduction): New OpenACC hook.
4370 * targhooks.h (default_goacc_reduction): Declare.
4371 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
4372 * doc/tm.texi: Rebuilt.
4373 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
4374 scan_sharing_clauses): Remove oacc reduction handling here.
4375 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
4376 (oacc_lower_reduction_var_helper): Delete.
4377 (lower_oacc_reductions): New.
4378 (lower_reduction_clauses): Don't handle OpenACC reductions here.
4379 (lower_oacc_head_tail): Call lower_oacc_reductions.
4380 (oacc_gimple_assign, oacc_init_reduction_array,
4381 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
4382 oacc_process_reduction_data): Delete.
4383 (lower_omp_target): Remove old OpenACC reduction handling. Insert
4384 dummy OpenACC gang reduction for reductions at outer level.
4385 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
4386 (default_goacc_reduction): New.
4387 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
4389 2015-11-04 Martin Liska <mliska@suse.cz>
4391 * cgraphunit.c (cgraph_node::expand_thunk): Call
4392 allocate_struct_function before init_function_start.
4393 (cgraph_node::expand): Use push_cfun and pop_cfun.
4394 * config/i386/i386.c (ix86_code_end): Call
4395 allocate_struct_function before init_function_start.
4396 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
4397 * function.c (init_function_start): Move preamble to all
4399 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
4400 (execute_one_pass): Handle newly added TODO_discard_function.
4401 (execute_pass_list_1): Terminate if cfun equals to NULL.
4402 (execute_pass_list): Do not push and pop cfun, expect that
4404 * tree-pass.h (TODO_discard_function): Define.
4406 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
4408 * cfganal.c (inverted_post_order_compute): Remove conditional
4409 compilation, use flag_checking.
4410 * config.in: Regenerate.
4411 * configure: Regenerate.
4412 * configure.ac: Remove ENABLE_CHECKING.
4413 * genconditions.c: Do not #undef ENABLE_CHECKING.
4414 * sese.h (bb_in_region): Comment out broken check.
4415 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
4416 conditional compilation, use flag_checking.
4418 2015-11-04 Tom de Vries <tom@codesourcery.com>
4420 PR tree-optimization/67742
4421 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
4423 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
4424 (create_variable_info_for_1): Add and handle handle_param parameter.
4425 Add restrict handling.
4426 (create_variable_info_for): Call create_variable_info_for_1 with extra
4428 (make_param_constraints): Drop restrict_name parameter. Ignore
4429 vi->only_restrict_pointers.
4430 (intra_create_variable_infos): Call create_variable_info_for_1 with
4431 extra arg. Remove restrict handling. Call make_param_constraints with
4434 2015-11-04 Tom de Vries <tom@codesourcery.com>
4436 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
4439 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4441 * config/arm/coff.h: Remove.
4443 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
4445 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
4446 check for aggregate types and beef up comment for mode check.
4448 2015-11-03 Richard Biener <rguenther@suse.de>
4450 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
4451 data references here.
4452 * tree-vect-loop.c: Include cgraph.h.
4453 (vect_analyze_loop_2): Collect data references here.
4454 * tree-vect-slp.c (find_bb_location): Inline ...
4455 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
4456 Factor in vect_slp_transform_bb.
4457 (vect_slp_transform_bb): Removed.
4458 (vect_slp_analyze_bb_1): Collect data references here.
4459 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
4461 * tree-vectorizer.h (vect_slp_bb): Declare.
4462 (vect_slp_analyze_bb): Remove.
4463 (vect_slp_transform_bb): Remove.
4464 (find_bb_location): Remove.
4465 (vect_analyze_data_refs): Remove stmt count reference parameter.
4467 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
4469 * multiple_target.c (create_dispatcher_calls): Add target check
4471 (create_target_clone): Change assembler name for versioned declarations.
4473 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
4474 Chung-Lin Tang <cltang@codesourcery.com>
4476 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
4477 * omp-low.c (check_omp_nesting_restrictions): Allow
4478 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
4481 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
4483 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
4484 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
4485 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
4487 (vmulxq_f32): Likewise.
4489 (vmulxq_f64): Rewrite to call fmulx builtin.
4490 (vmulxs_f32): Likewise.
4491 (vmulxd_f64): Likewise.
4492 (vmulx_lane_f32): Remove.
4493 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
4495 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
4497 * config/aarch64/aarch64.md (*movhf_aarch64): Use
4498 aarch64_reg_or_fp_zero for second operand.
4500 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
4502 * gimple-expr.c: Include hash-set.h and rtl.h.
4503 (mark_addressable_queue): New var.
4504 (mark_addressable): Factor actual marking into...
4505 (mark_addressable_1): ... this. Queue it up during expand.
4506 (mark_addressable_2): New.
4507 (flush_mark_addressable_queue): New.
4508 * gimple-expr.h (flush_mark_addressable_queue): Declare.
4509 * cfgexpand.c: Include gimple-expr.h.
4510 (pass_expand::execute): Flush mark_addressable queue.
4512 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
4514 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
4515 bb_no_side_effects_p tests...
4516 (tree_ssa_ifcombine_bb): ... here.
4518 PR tree-optimization/68083
4519 * tree-ssa-ifcombine.c: Include tree-ssa.h.
4520 (bb_no_side_effects_p): Test for undefined uses too.
4521 * tree-ssa.c (gimple_uses_undefined_value_p): New.
4522 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
4524 2015-11-02 Jeff Law <law@redhat.com>
4526 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
4527 cases where the loop latch edge is in the middle of an FSM path.
4529 2015-11-03 Tom de Vries <tom@codesourcery.com>
4531 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
4532 (make_param_constraints): ... this. Add and handle restrict_name
4533 parameter. Handle is_full_var case.
4534 (intra_create_variable_infos): Use make_param_constraints.
4536 2015-11-03 Tom de Vries <tom@codesourcery.com>
4538 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
4539 make_copy_constraint call with make_constraint_from call.
4541 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
4543 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
4546 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
4548 * builtins.h (fold_fma): Move to fold-const-call.h.
4549 * builtins.c: Include fold-const-call.h.
4550 (mathfn_built_in_2): New function, split out from...
4551 (mathfn_built_in_1): ...here.
4552 (do_real_to_int_conversion, fold_const_builtin_pow)
4553 (fold_const_builtin_logb, fold_const_builtin_significand)
4554 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
4555 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
4556 (fold_builtin_sincos): Use fold_const_call to handle constants.
4557 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
4558 checks for ERROR_MARK. Use fold_const_call to handle constant
4559 folds for math functions.
4560 (fold_fma): Move to fold-const-call.c.
4561 * fold-const.c: Include fold-const-call.h.
4562 * Makefile.in (OBJS): Add fold-const-call.o.
4563 (PLUGIN_HEADERS): Add fold-const-call.h.
4564 * realmpfr.h (real_from_mpfr): Allow the format to be specified
4566 * realmpfr.c (real_from_mpfr): Likewise.
4567 * fold-const-call.h, fold-const-call.c: New files.
4569 2015-11-02 Julian Brown <julian@codesourcery.com>
4571 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
4572 brackets and semicolon.
4574 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
4577 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
4579 PR tree-optimization/65963
4580 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
4581 LSHIFT_EXPRs as equivalent MULT_EXPRs.
4583 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
4586 * fold-const.c: Include "md5.h".
4588 2015-11-01 Jeff Law <law@redhat.com>
4590 * vmsdbgout.c: Revert unused header file reduction patch.
4592 * config/mcore/mcore.c: Include regs.h.
4594 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
4596 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
4598 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
4600 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
4601 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
4602 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
4604 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
4606 * ggc-common.c: Restore needed header for checking=release.
4608 2015-10-31 Tom de Vries <tom@codesourcery.com>
4610 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
4612 2015-10-31 Tom de Vries <tom@codesourcery.com>
4614 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
4615 existing varinfo for arguments.
4617 2015-10-31 Tom de Vries <tom@codesourcery.com>
4619 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
4620 create_function_info_for. Dump constraints generated during
4621 create_function_info_for. Move intra_create_variable_infos call and
4622 function-return-values-escape bit to ...
4623 (create_function_info_for): ... here, and merge
4624 intra_create_variable_infos call with argument loop. Add and handle
4625 nonlocal_p parameter.
4627 2015-10-31 Tom de Vries <tom@codesourcery.com>
4629 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
4630 updating is alap, and seperated from preceding code. Make sure
4631 insert_vi_for_tree is seperated from surrounding code.
4633 2015-10-31 Tom de Vries <tom@codesourcery.com>
4635 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
4637 2015-10-30 Jeff Law <law@redhat.com>
4638 Nathan Sidwell <nathan@acm.org>
4640 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
4642 (MOVE_MAX): Set to 8.
4644 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
4646 * cgraph.c: Include context.h for offloading.
4647 * varpool.c: Include context.h and omp-low.h.
4649 2015-10-30 Anatoly Sokolov <aesok@post.ru>
4651 * rtl.h (contains_symbol_ref_p): Declare.
4652 (SYMBOL_REF_P): Define.
4653 * rtlanal.c (contains_symbol_ref_p: New function.
4654 * lra-constraints.c (contains_symbol_ref_p): Remove.
4655 * var-tracking.c (contains_symbol_ref): Remove.
4656 (track_expr_p): Use contains_symbol_ref_p instead of
4657 contains_symbol_ref.
4659 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
4661 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
4662 * fold-const.c (get_array_ctor_element_at_index): New.
4663 (fold): Remove binary-search through CONSTRUCTOR, call previous.
4665 * fold-const.h (get_array_ctor_element_at_index): New.
4667 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
4669 * Makefile.in (OBJS): Add multiple_target.o.
4670 * attrib.c (make_attribute): Moved from config/i386/i386.c
4671 * config/i386/i386.c (make_attribute): Deleted.
4672 * multiple_target.c (create_dispatcher_calls): New.
4673 (get_attr_len): Ditto.
4674 (get_attr_str): Ditto.
4675 (separate_attrs): Ditto.
4676 (is_valid_asm_symbol): Ditto.
4677 (create_new_asm_name): Ditto.
4678 (create_target_clone): Ditto.
4679 (expand_target_clones): Ditto.
4680 (ipa_target_clone): Ditto.
4681 (ipa_dispatcher_calls): Ditto.
4682 * passes.def (pass_target_clone): Two new ipa passes.
4683 * tree-pass.h (make_pass_target_clone): Ditto.
4684 * doc/extend.texi (target_clones): New attribute description.
4686 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
4688 PR rtl-optimization/68106
4689 * lra-remat.c (input_regno_present_p): Process hard regs
4690 explicitly present in machine description insns.
4691 (call_used_input_regno_present_p): Ditto.
4692 (calculate_gen_cands): Ditto.
4695 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
4697 * config/arm/neon-testgen.ml: Fix comment typo.
4699 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4701 * rtlanal.c (reg_set_p): Expand function comment.
4703 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
4705 * alias.c: Remove unused headers.
4707 * attribs.c: Likewise.
4708 * auto-inc-dec.c: Likewise.
4709 * auto-profile.c: Likewise.
4710 * bb-reorder.c: Likewise.
4711 * bitmap.c: Likewise.
4712 * bt-load.c: Likewise.
4713 * builtins.c: Likewise.
4714 * caller-save.c: Likewise.
4715 * calls.c: Likewise.
4718 * cfganal.c: Likewise.
4719 * cfgbuild.c: Likewise.
4720 * cfgcleanup.c: Likewise.
4721 * cfgexpand.c: Likewise.
4722 * cfghooks.c: Likewise.
4723 * cfgloop.c: Likewise.
4724 * cfgloopanal.c: Likewise.
4725 * cfgloopmanip.c: Likewise.
4726 * cfgrtl.c: Likewise.
4727 * cgraph.c: Likewise.
4728 * cgraphbuild.c: Likewise.
4729 * cgraphclones.c: Likewise.
4730 * cgraphunit.c: Likewise.
4731 * cilk-common.c: Likewise.
4732 * combine-stack-adj.c: Likewise.
4733 * combine.c: Likewise.
4734 * compare-elim.c: Likewise.
4735 * convert.c: Likewise.
4736 * coverage.c: Likewise.
4737 * cppbuiltin.c: Likewise.
4738 * cprop.c: Likewise.
4740 * cselib.c: Likewise.
4741 * data-streamer-in.c: Likewise.
4742 * data-streamer-out.c: Likewise.
4743 * data-streamer.c: Likewise.
4744 * dbxout.c: Likewise.
4747 * debug.c: Likewise.
4748 * df-core.c: Likewise.
4749 * df-problems.c: Likewise.
4750 * df-scan.c: Likewise.
4752 * dojump.c: Likewise.
4753 * dominance.c: Likewise.
4754 * domwalk.c: Likewise.
4755 * double-int.c: Likewise.
4757 * dumpfile.c: Likewise.
4758 * dwarf2asm.c: Likewise.
4759 * dwarf2cfi.c: Likewise.
4760 * dwarf2out.c: Likewise.
4761 * emit-rtl.c: Likewise.
4762 * except.c: Likewise.
4763 * explow.c: Likewise.
4764 * expmed.c: Likewise.
4766 * final.c: Likewise.
4767 * fixed-value.c: Likewise.
4768 * fold-const.c: Likewise.
4769 * function.c: Likewise.
4770 * fwprop.c: Likewise.
4772 * generic-match-head.c: Likewise.
4773 * ggc-common.c: Likewise.
4774 * gimple-builder.c: Likewise.
4775 * gimple-expr.c: Likewise.
4776 * gimple-fold.c: Likewise.
4777 * gimple-iterator.c: Likewise.
4778 * gimple-low.c: Likewise.
4779 * gimple-match-head.c: Likewise.
4780 * gimple-pretty-print.c: Likewise.
4781 * gimple-ssa-isolate-paths.c: Likewise.
4782 * gimple-ssa-strength-reduction.c: Likewise.
4783 * gimple-streamer-in.c: Likewise.
4784 * gimple-streamer-out.c: Likewise.
4785 * gimple-walk.c: Likewise.
4786 * gimple.c: Likewise.
4787 * gimplify-me.c: Likewise.
4788 * gimplify.c: Likewise.
4789 * godump.c: Likewise.
4790 * graph.c: Likewise.
4791 * graphds.c: Likewise.
4792 * haifa-sched.c: Likewise.
4793 * hw-doloop.c: Likewise.
4794 * ifcvt.c: Likewise.
4795 * init-regs.c: Likewise.
4796 * internal-fn.c: Likewise.
4797 * ipa-chkp.c: Likewise.
4798 * ipa-comdats.c: Likewise.
4799 * ipa-cp.c: Likewise.
4800 * ipa-devirt.c: Likewise.
4801 * ipa-icf-gimple.c: Likewise.
4802 * ipa-icf.c: Likewise.
4803 * ipa-inline-analysis.c: Likewise.
4804 * ipa-inline-transform.c: Likewise.
4805 * ipa-inline.c: Likewise.
4806 * ipa-polymorphic-call.c: Likewise.
4807 * ipa-profile.c: Likewise.
4808 * ipa-prop.c: Likewise.
4809 * ipa-pure-const.c: Likewise.
4810 * ipa-ref.c: Likewise.
4811 * ipa-reference.c: Likewise.
4812 * ipa-split.c: Likewise.
4813 * ipa-utils.c: Likewise.
4814 * ipa-visibility.c: Likewise.
4816 * ira-build.c: Likewise.
4817 * ira-color.c: Likewise.
4818 * ira-conflicts.c: Likewise.
4819 * ira-costs.c: Likewise.
4820 * ira-emit.c: Likewise.
4821 * ira-lives.c: Likewise.
4824 * langhooks.c: Likewise.
4826 * lists.c: Likewise.
4827 * loop-doloop.c: Likewise.
4828 * loop-init.c: Likewise.
4829 * loop-invariant.c: Likewise.
4830 * loop-iv.c: Likewise.
4831 * loop-unroll.c: Likewise.
4832 * lower-subreg.c: Likewise.
4833 * lra-assigns.c: Likewise.
4834 * lra-coalesce.c: Likewise.
4835 * lra-constraints.c: Likewise.
4836 * lra-eliminations.c: Likewise.
4837 * lra-lives.c: Likewise.
4838 * lra-remat.c: Likewise.
4839 * lra-spills.c: Likewise.
4841 * lto-cgraph.c: Likewise.
4842 * lto-compress.c: Likewise.
4843 * lto-opts.c: Likewise.
4844 * lto-section-in.c: Likewise.
4845 * lto-section-out.c: Likewise.
4846 * lto-streamer-in.c: Likewise.
4847 * lto-streamer-out.c: Likewise.
4848 * lto-streamer.c: Likewise.
4850 * mode-switching.c: Likewise.
4851 * modulo-sched.c: Likewise.
4852 * optabs.c: Likewise.
4853 * opts-global.c: Likewise.
4854 * passes.c: Likewise.
4855 * plugin.c: Likewise.
4856 * postreload-gcse.c: Likewise.
4857 * postreload.c: Likewise.
4858 * predict.c: Likewise.
4859 * print-tree.c: Likewise.
4860 * profile.c: Likewise.
4862 * realmpfr.c: Likewise.
4863 * recog.c: Likewise.
4865 * reg-stack.c: Likewise.
4866 * regcprop.c: Likewise.
4867 * reginfo.c: Likewise.
4868 * regrename.c: Likewise.
4869 * regstat.c: Likewise.
4870 * reload.c: Likewise.
4871 * reload1.c: Likewise.
4872 * reorg.c: Likewise.
4873 * resource.c: Likewise.
4874 * rtl-chkp.c: Likewise.
4875 * rtl-error.c: Likewise.
4876 * rtlanal.c: Likewise.
4877 * rtlhooks.c: Likewise.
4878 * sanopt.c: Likewise.
4879 * sched-deps.c: Likewise.
4880 * sched-ebb.c: Likewise.
4881 * sched-rgn.c: Likewise.
4882 * sdbout.c: Likewise.
4883 * sel-sched-dump.c: Likewise.
4884 * sel-sched-ir.c: Likewise.
4885 * sel-sched.c: Likewise.
4887 * shrink-wrap.c: Likewise.
4888 * simplify-rtx.c: Likewise.
4889 * stack-ptr-mod.c: Likewise.
4890 * statistics.c: Likewise.
4892 * stor-layout.c: Likewise.
4893 * store-motion.c: Likewise.
4894 * stringpool.c: Likewise.
4895 * symtab.c: Likewise.
4896 * target-globals.c: Likewise.
4897 * targhooks.c: Likewise.
4898 * toplev.c: Likewise.
4899 * tracer.c: Likewise.
4900 * trans-mem.c: Likewise.
4901 * tree-affine.c: Likewise.
4902 * tree-call-cdce.c: Likewise.
4903 * tree-cfg.c: Likewise.
4904 * tree-cfgcleanup.c: Likewise.
4905 * tree-chkp-opt.c: Likewise.
4906 * tree-chkp.c: Likewise.
4907 * tree-chrec.c: Likewise.
4908 * tree-complex.c: Likewise.
4909 * tree-data-ref.c: Likewise.
4910 * tree-dfa.c: Likewise.
4911 * tree-diagnostic.c: Likewise.
4912 * tree-dump.c: Likewise.
4913 * tree-eh.c: Likewise.
4914 * tree-emutls.c: Likewise.
4915 * tree-if-conv.c: Likewise.
4916 * tree-inline.c: Likewise.
4917 * tree-into-ssa.c: Likewise.
4918 * tree-iterator.c: Likewise.
4919 * tree-loop-distribution.c: Likewise.
4920 * tree-nested.c: Likewise.
4921 * tree-nrv.c: Likewise.
4922 * tree-object-size.c: Likewise.
4923 * tree-outof-ssa.c: Likewise.
4924 * tree-parloops.c: Likewise.
4925 * tree-phinodes.c: Likewise.
4926 * tree-predcom.c: Likewise.
4927 * tree-pretty-print.c: Likewise.
4928 * tree-profile.c: Likewise.
4929 * tree-scalar-evolution.c: Likewise.
4930 * tree-sra.c: Likewise.
4931 * tree-ssa-address.c: Likewise.
4932 * tree-ssa-alias.c: Likewise.
4933 * tree-ssa-ccp.c: Likewise.
4934 * tree-ssa-coalesce.c: Likewise.
4935 * tree-ssa-copy.c: Likewise.
4936 * tree-ssa-dce.c: Likewise.
4937 * tree-ssa-dse.c: Likewise.
4938 * tree-ssa-forwprop.c: Likewise.
4939 * tree-ssa-ifcombine.c: Likewise.
4940 * tree-ssa-live.c: Likewise.
4941 * tree-ssa-loop-ch.c: Likewise.
4942 * tree-ssa-loop-im.c: Likewise.
4943 * tree-ssa-loop-ivcanon.c: Likewise.
4944 * tree-ssa-loop-ivopts.c: Likewise.
4945 * tree-ssa-loop-manip.c: Likewise.
4946 * tree-ssa-loop-niter.c: Likewise.
4947 * tree-ssa-loop-prefetch.c: Likewise.
4948 * tree-ssa-loop-unswitch.c: Likewise.
4949 * tree-ssa-loop.c: Likewise.
4950 * tree-ssa-math-opts.c: Likewise.
4951 * tree-ssa-operands.c: Likewise.
4952 * tree-ssa-phiopt.c: Likewise.
4953 * tree-ssa-phiprop.c: Likewise.
4954 * tree-ssa-pre.c: Likewise.
4955 * tree-ssa-propagate.c: Likewise.
4956 * tree-ssa-reassoc.c: Likewise.
4957 * tree-ssa-scopedtables.c: Likewise.
4958 * tree-ssa-sink.c: Likewise.
4959 * tree-ssa-strlen.c: Likewise.
4960 * tree-ssa-structalias.c: Likewise.
4961 * tree-ssa-tail-merge.c: Likewise.
4962 * tree-ssa-ter.c: Likewise.
4963 * tree-ssa-threadupdate.c: Likewise.
4964 * tree-ssa-uncprop.c: Likewise.
4965 * tree-ssa-uninit.c: Likewise.
4966 * tree-ssa.c: Likewise.
4967 * tree-ssanames.c: Likewise.
4968 * tree-stdarg.c: Likewise.
4969 * tree-streamer-in.c: Likewise.
4970 * tree-streamer-out.c: Likewise.
4971 * tree-streamer.c: Likewise.
4972 * tree-switch-conversion.c: Likewise.
4973 * tree-tailcall.c: Likewise.
4974 * tree-vect-data-refs.c: Likewise.
4975 * tree-vect-generic.c: Likewise.
4976 * tree-vect-loop-manip.c: Likewise.
4977 * tree-vect-loop.c: Likewise.
4978 * tree-vect-patterns.c: Likewise.
4979 * tree-vect-slp.c: Likewise.
4980 * tree-vect-stmts.c: Likewise.
4981 * tree-vectorizer.c: Likewise.
4982 * tree-vrp.c: Likewise.
4985 * ubsan.c: Likewise.
4986 * value-prof.c: Likewise.
4987 * var-tracking.c: Likewise.
4988 * varasm.c: Likewise.
4989 * varpool.c: Likewise.
4990 * vmsdbgout.c: Likewise.
4991 * vtable-verify.c: Likewise.
4993 * wide-int-print.cc: Likewise.
4994 * wide-int.cc: Likewise.
4995 * xcoffout.c: Likewise.
4997 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
4999 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
5000 between pass numbering and execution order.
5002 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5004 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
5005 check for dependencies.
5007 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5009 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
5012 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5014 * real.h (format_helper): New.
5015 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
5016 (real_from_target, real_nan, real_2expN, real_value_truncate)
5017 (significand_size, real_from_string2, exact_real_inverse)
5018 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
5019 (real_round, real_isinteger, real_from_integer): Replace
5020 machine_mode arguments with format_helper arguments.
5021 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
5022 (real_from_integer, real_nan, real_2expN, real_convert)
5023 (real_value_truncate, exact_real_truncate, real_to_target)
5024 (real_from_target, significand_size, real_powi, real_trunc)
5025 (real_floor, real_ceil, real_round, real_isinteger): Replace
5026 machine_mode arguments with format_helper arguments.
5027 (real_to_target_fmt, real_from_target_fmt): Delete.
5028 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
5029 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
5030 argument with real_format.
5031 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
5033 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5035 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
5036 (fixed_to_decimal, fixed_convert_from_real)
5037 (real_convert_from_fixed): Fix mode arguments to real_2expN.
5039 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5041 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
5042 SCALAR_FLOAT_MODE_P.
5044 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
5046 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
5047 (completely_scalarize): Comment zero-length arrays.
5048 (get_access_replacement): Correct comment re. precondition.
5050 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5052 * config/i386/i386.c (get_builtin_code_for_version): Set priority
5053 for PROCESSOR_ZNVER1.
5054 (enum processor_model): Add M_AMDFAM17H_znver1.
5055 (struct arch_names_table): Likewise.
5056 * doc/extend.texi: ADD znver1.
5058 2015-10-30 Richard Biener <rguenther@suse.de>
5060 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
5061 fold () on single RHSs. Allow CONSTRUCTORS with trailing
5062 zeros to be folded to VECTOR_CSTs.
5063 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
5064 * fold-const.c (fold): Use build_vector_from_ctor.
5066 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
5068 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
5069 "mov %0.h[0], %1.h[0] to "neon_move".
5070 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
5071 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
5073 (*cmovsi_insn_uxtw): Likewise.
5075 2015-10-30 Tom de Vries <tom@codesourcery.com>
5077 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
5078 unsigned, and initialize, and use initial value instead of hardcoded
5079 constant. Add generic constraints dumping section. Don't dump global
5080 initializers constraints dumping section if empty. Don't update
5081 variable from if unused.
5083 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
5085 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
5086 flag_checking and/or CHECKING_P to eliminate conditional compilation
5088 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
5089 * config/bfin/bfin.c (hwloop_optimize): Likewise.
5090 * config/i386/i386.c (ix86_print_operand_address): Likewise.
5091 (output_387_binary_op): Likewise.
5092 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
5093 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
5094 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
5096 * config/rs6000/rs6000.h: Likewise.
5097 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
5099 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
5101 * config/sh/sh.opt (mfdpic): Add missing period.
5103 2015-08-29 Anatoly Sokolov <aesok@post.ru>
5105 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
5106 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
5107 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5108 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
5109 mcore_base_register_rtx_p, mcore_legitimate_index_p,
5110 mcore_legitimate_address_p): New functions.
5111 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
5113 2015-10-29 Jeff Law <law@redhat.com>
5115 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
5117 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
5118 * tree-ssa-threadedge.c
5119 (record_temporary_equivalences_from_stmts_at_dest): Remove
5120 backedge_seen argument and associated code which invalidated
5121 equivalences based on the value of that argument.
5122 (thread_through_normal_block): Corresponding changes.
5124 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
5126 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
5127 function earlier in the file.
5128 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
5129 df_regs_ever_live_p.
5131 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
5133 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
5136 2015-10-29 Richard Henderson <rth@redhat.com>
5140 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
5141 sse check to the exact conditions of PR 67609.
5143 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
5145 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
5146 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
5147 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
5148 of the traditional names that TFmode uses for handling IEEE
5149 extended double. If -mfloat128, add KFmode functions for all of
5150 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
5151 make TFmode use the same emulation functions as KFmode.
5152 (init_float128_ibm): Likewise.
5153 (init_float128_ieee): Likewise.
5154 (rs6000_generate_compare): For IEEE 128-bit floating point
5155 comparisons, call the unordered comparison function instead of the
5156 ordered comparison function.
5157 (rs6000_expand_float128_convert): Deal with operands that are
5158 memory operands. Restructure the code to use a switch statement on
5159 the mode. Add support for TFmode defaulting to either IBM extended
5160 double or IEEE 128-bit floating point. If the underlying types are
5161 the same, use a move instead of a conversion function.
5162 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
5163 use for IEEE 128-bit floating point constants with -mfloat128.
5164 (rs6000_c_mode_for_suffix): Likewise.
5165 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
5166 128-bit floating point with IBM extended double floating point.
5167 (rs6000_invalid_binary_op): Likewise.
5168 (rs6000_gen_le_vsx_permute): On little endian systems generate a
5169 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
5170 types that can go in vector registers.
5171 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
5172 point types that can go in vector registers on little endian
5174 (mark_swaps_for_removal): Likewise.
5175 (rs6000_analyze_swaps): Likewise.
5176 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
5178 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
5179 rework IEEE 128-bit floating point insns to deal with TFmode being
5180 either IBM extended double or IEEE 128-bit floating point.
5182 (IBM128): Update iterator to add condition that the mode is IBM
5184 (IEEE128): New iterator for IEEE 128-bit floating point.
5185 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
5186 (FLOAT128): Likewise.
5187 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
5189 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
5190 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
5191 instead of hard coding TFmode or KFmode.
5192 (negtf2_internal): Likewise.
5193 (neg<mode>2_internal): Likewise.
5194 (abs<mode>2): Likewise.
5195 (abstf2_internal): Likewise.
5196 (abs<mode>2_internal): Likewise.
5197 (ieee_128bit_neg<mode>2): Likewise.
5198 (ieee_128bit_neg<mode>2_internal): Likewise.
5199 (ieee_128bit_abs<mode>2): Likewise.
5200 (ieee_128bit_abs<mode>2_internal): Likewise.
5201 (ieee_128bit_nabs<mode>2): Likewise.
5202 (ieee_128bit_nabs<mode>2_internal): Likewise.
5203 (extendiftf2): Add explicit conversions between 128-bit floating
5204 point types. Drop the old conversions that had become unwieldy.
5205 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
5206 (extendifkf2): Likewise.
5207 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
5208 (extendtfkf2): Likewise.
5209 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
5210 (trunciftf2): Likewise.
5211 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
5212 (truncifkf2): Likewise.
5213 (float<SDI:mode><IFKF:mode>2): Likewise.
5214 (trunckftf2): Likewise.
5215 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
5216 (trunctfif2): Likewise.
5217 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
5218 (extenddftf2): Rework 128-bit floating point conversions to
5219 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
5220 KFmode expanders into one function.
5221 (extenddf<mode>2): Likewise.
5222 (extenddftf2_fprs): Likewise.
5223 (extenddf<mode>2_fprs): Likewise.
5224 (extenddftf2_vsx): Likewise.
5225 (extenddf<mode>2_vsx): Likewise.
5226 (extendsftf2): Likewise.
5227 (extendsf<mode>2): Likewise.
5228 (trunctfdf2): Likewise.
5229 (trunc<mode>df2): Likewise.
5230 (trunctfdf2_internal1): Likewise.
5231 (trunc<mode>df2_internal1): Likewise.
5232 (trunctfdf2_internal2): Likewise.
5233 (trunc<mode>df2_internal2): Likewise.
5234 (trunctfsf2): Likewise.
5235 (trunc<mode>sf2): Likewise.
5236 (trunctfsf2_fprs): Likewise.
5237 (trunc<mode>sf2_fprs): Likewise.
5238 (floatsit2f): Likewise.
5239 (floatsi<mode>2): Likewise.
5240 (fix_trunc_helper): Likewise.
5241 (fix_trunc_helper<mode>): Likewise.
5242 (fix_trunctfsi2): Likewise.
5243 (fix_trunc<mode>si2): Likewise.
5244 (fix_trunctfsi2_fprs): Likewise.
5245 (fix_trunc<mode>si2_fprs): Likewise.
5246 (fix_trunctfsi2_internal): Likewise.
5247 (fix_trunc<mode>si2_internal): Likewise.
5248 (fix_trunctfdi2): Likewise.
5249 (fix_trunc<mode>di2): Likewise.
5250 (fixuns_trunctf<mode>2): Likewise.
5251 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
5252 (floatditf2): Likewise.
5253 (floatdi<mode>2): Likewise.
5254 (floatuns<mode>tf2): Likewise.
5255 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
5256 (cmptf_internal1): Use a mode iterator to add support for both
5257 types (IFmode, TFmode) that support IBM extended double.
5258 (cmp<mode>_internal1): Likewise.
5259 (cmptf_internal2): Likewise.
5260 (cmp<mode>_internal2): Likewise.
5262 * doc/extend.texi (Floating Types): Document __ibm128 and
5263 __float128 on PowerPC.
5265 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5266 -mfloat128 and -mno-float128.
5268 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
5270 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
5271 floating point modes that can go in vector registers.
5272 (MODES_TIEABLE_P): Move tests for vector modes before tests for
5273 scalar floating point, so that IEEE 128-bit floating point that
5274 can go in vector registers bind with vectors and not FP.
5275 (struct rs6000_args): Add libcall field.
5277 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
5278 and -mfloat128-software switches. Replace them with a binary
5280 (-mfloat128): Likewise.
5282 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
5283 128-bit floating point types in GPRs, even if the appropriate
5284 option enabling the type was not used.
5285 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
5287 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
5288 pre-decrement on IEEE 128-bit floating point values.
5289 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
5290 is IEEE 128-bit floating point.
5291 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
5292 128-bit floating point types that can go in vector registers.
5293 (rs6000_option_override_internal): Change -mfloat128-none and
5294 -mfloat128-software to -mfloat128, and move code to be near other
5295 VSX option handling.
5296 (rs6000_option_override_internal): Disable -mfloat128 if we don't
5297 have the Altivec ABI.
5298 (rs6000_init_builtins): Don't make TFmode use either IFmode or
5299 KFmode floating point nodes. Instead, have three separate nodes.
5300 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
5301 eventually moving the long double default to IEEE 128-bit floating
5303 (rs6000_opt_masks): Add -mfloat128.
5304 (struct rs6000_opt_var): Fix typo in comment.
5305 (init_cumulative_args): Initialize libcall field in
5307 (rs6000_function_arg): Treat library functions as if they had
5308 prototypes to prevent IEEE 128-bit support functions from passing
5309 arguments in both GPRs and vector registers.
5310 (rs6000_arg_partial_bytes): Likewise.
5312 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
5313 an option that can be turned on via -mcpu=<xxx>.
5315 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
5318 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5319 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
5320 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
5321 double is IBM extended double.
5323 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
5326 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
5328 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
5329 * genconditions.c: Define CHECKING_P in the generated code.
5330 * genextract.c: Use flag_checking in insn_extract.
5331 * gengtype.c (main): Remove conditional compilation.
5332 * gengtype.h: Likewise.
5334 2015-10-29 Jeff Law <law@redhat.com>
5336 PR tree-optimization/67892
5337 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
5339 (thread_through_normal_block): If we have seen a backedge, then
5340 do nothing. No longer call find_jump_threads_backwards here.
5341 (thread_across_edge): Use find_jump_threads_backwards to find
5342 jump threads if the old style threader was not successful.
5343 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
5344 gsi_last_nondebug_bb. Return NULL if the block does not end
5345 with a control statement.
5346 (find_jump_threads_backwards): Setup code moved here from
5347 tree-ssa-threadedge.c::thread_through_normal_block. Accept
5348 single edge argument instead of name & block.
5349 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
5352 2015-10-29 Tom de Vries <tom@codesourcery.com>
5354 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
5357 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
5359 * omp-low.c (lower_omp_target): Remove unreachable code & merge
5362 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
5364 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
5366 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
5368 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
5369 guard_bb0 and use guard_bb throughout.
5371 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
5373 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
5376 2015-10-29 Richard Biener <rguenther@suse.de>
5379 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
5382 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
5384 * alias.c: Reorder #include statements and remove duplicates.
5386 * attribs.c: Likewise.
5387 * auto-inc-dec.c: Likewise.
5388 * auto-profile.c: Likewise.
5389 * bb-reorder.c: Likewise.
5390 * bt-load.c: Likewise.
5391 * builtins.c: Likewise.
5392 * caller-save.c: Likewise.
5393 * calls.c: Likewise.
5396 * cfganal.c: Likewise.
5397 * cfgbuild.c: Likewise.
5398 * cfgcleanup.c: Likewise.
5399 * cfgexpand.c: Likewise.
5400 * cfghooks.c: Likewise.
5401 * cfgloop.c: Likewise.
5402 * cfgloopanal.c: Likewise.
5403 * cfgloopmanip.c: Likewise.
5404 * cfgrtl.c: Likewise.
5405 * cgraph.c: Likewise.
5406 * cgraphbuild.c: Likewise.
5407 * cgraphclones.c: Likewise.
5408 * cgraphunit.c: Likewise.
5409 * cilk-common.c: Likewise.
5410 * combine-stack-adj.c: Likewise.
5411 * combine.c: Likewise.
5412 * compare-elim.c: Likewise.
5413 * convert.c: Likewise.
5414 * coverage.c: Likewise.
5415 * cppbuiltin.c: Likewise.
5416 * cprop.c: Likewise.
5418 * cselib.c: Likewise.
5419 * data-streamer-in.c: Likewise.
5420 * data-streamer-out.c: Likewise.
5421 * data-streamer.c: Likewise.
5422 * dbxout.c: Likewise.
5425 * debug.c: Likewise.
5426 * df-core.c: Likewise.
5427 * df-problems.c: Likewise.
5428 * df-scan.c: Likewise.
5430 * dojump.c: Likewise.
5431 * dominance.c: Likewise.
5432 * double-int.c: Likewise.
5434 * dumpfile.c: Likewise.
5435 * dwarf2asm.c: Likewise.
5436 * dwarf2cfi.c: Likewise.
5437 * dwarf2out.c: Likewise.
5438 * emit-rtl.c: Likewise.
5439 * except.c: Likewise.
5440 * explow.c: Likewise.
5441 * expmed.c: Likewise.
5443 * final.c: Likewise.
5444 * fixed-value.c: Likewise.
5445 * fold-const.c: Likewise.
5446 * function.c: Likewise.
5447 * fwprop.c: Likewise.
5449 * generic-match-head.c: Likewise.
5450 * ggc-common.c: Likewise.
5451 * gimple-builder.c: Likewise.
5452 * gimple-expr.c: Likewise.
5453 * gimple-fold.c: Likewise.
5454 * gimple-iterator.c: Likewise.
5455 * gimple-low.c: Likewise.
5456 * gimple-match-head.c: Likewise.
5457 * gimple-pretty-print.c: Likewise.
5458 * gimple-ssa-isolate-paths.c: Likewise.
5459 * gimple-ssa-strength-reduction.c: Likewise.
5460 * gimple-streamer-in.c: Likewise.
5461 * gimple-streamer-out.c: Likewise.
5462 * gimple-walk.c: Likewise.
5463 * gimple.c: Likewise.
5464 * gimplify-me.c: Likewise.
5465 * gimplify.c: Likewise.
5466 * godump.c: Likewise.
5467 * graph.c: Likewise.
5468 * graphite-poly.c: Likewise.
5469 * haifa-sched.c: Likewise.
5470 * hw-doloop.c: Likewise.
5471 * ifcvt.c: Likewise.
5472 * incpath.c: Likewise.
5473 * init-regs.c: Likewise.
5474 * internal-fn.c: Likewise.
5475 * ipa-chkp.c: Likewise.
5476 * ipa-comdats.c: Likewise.
5477 * ipa-cp.c: Likewise.
5478 * ipa-devirt.c: Likewise.
5479 * ipa-icf-gimple.c: Likewise.
5480 * ipa-icf.c: Likewise.
5481 * ipa-inline-analysis.c: Likewise.
5482 * ipa-inline-transform.c: Likewise.
5483 * ipa-inline.c: Likewise.
5484 * ipa-polymorphic-call.c: Likewise.
5485 * ipa-profile.c: Likewise.
5486 * ipa-prop.c: Likewise.
5487 * ipa-pure-const.c: Likewise.
5488 * ipa-ref.c: Likewise.
5489 * ipa-reference.c: Likewise.
5490 * ipa-split.c: Likewise.
5491 * ipa-utils.c: Likewise.
5492 * ipa-visibility.c: Likewise.
5494 * ira-build.c: Likewise.
5495 * ira-color.c: Likewise.
5496 * ira-conflicts.c: Likewise.
5497 * ira-costs.c: Likewise.
5498 * ira-emit.c: Likewise.
5499 * ira-lives.c: Likewise.
5502 * langhooks.c: Likewise.
5504 * lists.c: Likewise.
5505 * loop-doloop.c: Likewise.
5506 * loop-init.c: Likewise.
5507 * loop-invariant.c: Likewise.
5508 * loop-iv.c: Likewise.
5509 * loop-unroll.c: Likewise.
5510 * lower-subreg.c: Likewise.
5511 * lra-assigns.c: Likewise.
5512 * lra-coalesce.c: Likewise.
5513 * lra-constraints.c: Likewise.
5514 * lra-eliminations.c: Likewise.
5515 * lra-lives.c: Likewise.
5516 * lra-remat.c: Likewise.
5517 * lra-spills.c: Likewise.
5519 * lto-cgraph.c: Likewise.
5520 * lto-compress.c: Likewise.
5521 * lto-opts.c: Likewise.
5522 * lto-section-in.c: Likewise.
5523 * lto-section-out.c: Likewise.
5524 * lto-streamer-in.c: Likewise.
5525 * lto-streamer-out.c: Likewise.
5526 * lto-streamer.c: Likewise.
5527 * mode-switching.c: Likewise.
5528 * modulo-sched.c: Likewise.
5529 * omp-low.c: Likewise.
5530 * optabs.c: Likewise.
5531 * opts-global.c: Likewise.
5532 * passes.c: Likewise.
5533 * plugin.c: Likewise.
5534 * postreload-gcse.c: Likewise.
5535 * postreload.c: Likewise.
5536 * predict.c: Likewise.
5537 * print-tree.c: Likewise.
5538 * profile.c: Likewise.
5540 * realmpfr.c: Likewise.
5541 * recog.c: Likewise.
5543 * reg-stack.c: Likewise.
5544 * regcprop.c: Likewise.
5545 * reginfo.c: Likewise.
5546 * regrename.c: Likewise.
5547 * regstat.c: Likewise.
5548 * reload.c: Likewise.
5549 * reload1.c: Likewise.
5550 * reorg.c: Likewise.
5551 * resource.c: Likewise.
5552 * rtl-chkp.c: Likewise.
5553 * rtl-error.c: Likewise.
5554 * rtlanal.c: Likewise.
5555 * rtlhooks.c: Likewise.
5556 * sanopt.c: Likewise.
5557 * sched-deps.c: Likewise.
5558 * sched-ebb.c: Likewise.
5559 * sched-rgn.c: Likewise.
5561 * shrink-wrap.c: Likewise.
5562 * simplify-rtx.c: Likewise.
5563 * stack-ptr-mod.c: Likewise.
5564 * statistics.c: Likewise.
5566 * stor-layout.c: Likewise.
5567 * store-motion.c: Likewise.
5568 * stringpool.c: Likewise.
5569 * symtab.c: Likewise.
5570 * target-globals.c: Likewise.
5571 * targhooks.c: Likewise.
5572 * toplev.c: Likewise.
5573 * tracer.c: Likewise.
5574 * trans-mem.c: Likewise.
5575 * tree-affine.c: Likewise.
5576 * tree-call-cdce.c: Likewise.
5577 * tree-cfg.c: Likewise.
5578 * tree-cfgcleanup.c: Likewise.
5579 * tree-chkp-opt.c: Likewise.
5580 * tree-chkp.c: Likewise.
5581 * tree-chrec.c: Likewise.
5582 * tree-complex.c: Likewise.
5583 * tree-data-ref.c: Likewise.
5584 * tree-dfa.c: Likewise.
5585 * tree-diagnostic.c: Likewise.
5586 * tree-dump.c: Likewise.
5587 * tree-eh.c: Likewise.
5588 * tree-emutls.c: Likewise.
5589 * tree-if-conv.c: Likewise.
5590 * tree-inline.c: Likewise.
5591 * tree-into-ssa.c: Likewise.
5592 * tree-iterator.c: Likewise.
5593 * tree-loop-distribution.c: Likewise.
5594 * tree-nested.c: Likewise.
5595 * tree-nrv.c: Likewise.
5596 * tree-object-size.c: Likewise.
5597 * tree-outof-ssa.c: Likewise.
5598 * tree-parloops.c: Likewise.
5599 * tree-phinodes.c: Likewise.
5600 * tree-predcom.c: Likewise.
5601 * tree-pretty-print.c: Likewise.
5602 * tree-profile.c: Likewise.
5603 * tree-scalar-evolution.c: Likewise.
5604 * tree-sra.c: Likewise.
5605 * tree-ssa-address.c: Likewise.
5606 * tree-ssa-alias.c: Likewise.
5607 * tree-ssa-ccp.c: Likewise.
5608 * tree-ssa-coalesce.c: Likewise.
5609 * tree-ssa-copy.c: Likewise.
5610 * tree-ssa-dce.c: Likewise.
5611 * tree-ssa-dom.c: Likewise.
5612 * tree-ssa-dse.c: Likewise.
5613 * tree-ssa-forwprop.c: Likewise.
5614 * tree-ssa-ifcombine.c: Likewise.
5615 * tree-ssa-live.c: Likewise.
5616 * tree-ssa-loop-ch.c: Likewise.
5617 * tree-ssa-loop-im.c: Likewise.
5618 * tree-ssa-loop-ivcanon.c: Likewise.
5619 * tree-ssa-loop-ivopts.c: Likewise.
5620 * tree-ssa-loop-manip.c: Likewise.
5621 * tree-ssa-loop-niter.c: Likewise.
5622 * tree-ssa-loop-prefetch.c: Likewise.
5623 * tree-ssa-loop-unswitch.c: Likewise.
5624 * tree-ssa-loop.c: Likewise.
5625 * tree-ssa-math-opts.c: Likewise.
5626 * tree-ssa-operands.c: Likewise.
5627 * tree-ssa-phiopt.c: Likewise.
5628 * tree-ssa-phiprop.c: Likewise.
5629 * tree-ssa-pre.c: Likewise.
5630 * tree-ssa-propagate.c: Likewise.
5631 * tree-ssa-reassoc.c: Likewise.
5632 * tree-ssa-sccvn.c: Likewise.
5633 * tree-ssa-scopedtables.c: Likewise.
5634 * tree-ssa-sink.c: Likewise.
5635 * tree-ssa-strlen.c: Likewise.
5636 * tree-ssa-structalias.c: Likewise.
5637 * tree-ssa-tail-merge.c: Likewise.
5638 * tree-ssa-ter.c: Likewise.
5639 * tree-ssa-threadedge.c: Likewise.
5640 * tree-ssa-threadupdate.c: Likewise.
5641 * tree-ssa-uncprop.c: Likewise.
5642 * tree-ssa-uninit.c: Likewise.
5643 * tree-ssa.c: Likewise.
5644 * tree-ssanames.c: Likewise.
5645 * tree-stdarg.c: Likewise.
5646 * tree-streamer-in.c: Likewise.
5647 * tree-streamer-out.c: Likewise.
5648 * tree-streamer.c: Likewise.
5649 * tree-switch-conversion.c: Likewise.
5650 * tree-tailcall.c: Likewise.
5651 * tree-vect-data-refs.c: Likewise.
5652 * tree-vect-generic.c: Likewise.
5653 * tree-vect-loop-manip.c: Likewise.
5654 * tree-vect-loop.c: Likewise.
5655 * tree-vect-patterns.c: Likewise.
5656 * tree-vect-slp.c: Likewise.
5657 * tree-vect-stmts.c: Likewise.
5658 * tree-vectorizer.c: Likewise.
5659 * tree-vrp.c: Likewise.
5662 * ubsan.c: Likewise.
5663 * value-prof.c: Likewise.
5664 * var-tracking.c: Likewise.
5665 * varasm.c: Likewise.
5666 * varpool.c: Likewise.
5667 * vtable-verify.c: Likewise.
5669 * wide-int-print.cc: Likewise.
5670 * wide-int.cc: Likewise.
5671 * xcoffout.c: Likewise.
5673 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
5675 * Makefile.in (NO_PIE_CFLAGS): New.
5676 (NO_PIE_FLAG): Likewise.
5677 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
5678 (NO_PIE_FLAG_FOR_BUILD): Likewise.
5679 (BUILD_NO_PIE_CFLAGS): Likewise.
5680 (BUILD_NO_PIE_FLAG): Likewise.
5681 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
5682 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
5683 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
5684 $(BUILD_NO_PIE_CFLAGS).
5685 (BUILD_CXXFLAGS): Likewise.
5686 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
5687 $(BUILD_NO_PIE_FLAG).
5688 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
5689 (BUILD_NO_PIE_FLAG): Likewise.
5690 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
5691 (NO_PIE_FLAG_FOR_BUILD): Likewise.
5692 * configure: Regenerated.
5694 2015-10-29 Richard Biener <rguenther@suse.de>
5697 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
5698 unsigned conditonal negation to ABS_EXPR.
5700 2015-10-29 Richard Biener <rguenther@suse.de>
5702 * gimple-match-head.c (gimple_simplify): Remove premature checking
5703 of builtin_decl_implicit of function calls we simplify.
5705 2015-10-29 Bin Cheng <bin.cheng@arm.com>
5707 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
5708 (get_computation_cost_at): Ditto.
5709 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
5712 2015-10-28 Tom de Vries <tom@codesourcery.com>
5714 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
5717 2015-10-28 Jason Merrill <jason@redhat.com>
5719 * Makefile.in (TAGS): Include libcpp and libiberty.
5721 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
5723 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
5724 (extract_omp_for_data): Remove OpenACC special handling of
5727 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
5728 (struct parallel): Update comment.
5729 (nvptx_reorg): Likewise.
5730 (nvptx_neuter): Cleanup whitespace.
5732 2015-10-28 Richard Henderson <rth@redhat.com>
5734 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
5736 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5739 * config/avr/predicates.md (low_io_address_operand): Don't
5740 consider MODE when computing upper bound.
5741 (io_address_operand): Likewise.
5743 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
5745 * fold-const.c (operand_equal_p): Do not verify that types are
5746 compatible for MEM_REFs.
5748 2015-10-28 Richard Biener <rguenther@suse.de>
5750 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
5751 in simplifying VEC_COND_EXPR conditions.
5753 2015-10-28 Tom de Vries <tom@codesourcery.com>
5755 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
5756 into vi_next of a full_var.
5758 2015-10-28 Tom de Vries <tom@codesourcery.com>
5760 * tree-ssa-structalias.c (new_var_info, make_heapvar)
5761 (make_constraint_from_restrict, make_constraint_from_global_restrict)
5762 (create_function_info_for, create_variable_info_for_1)
5763 (create_variable_info_for): Add and handle add_id parameter.
5764 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
5765 (init_base_vars): Add extra argument to calls to new_var_info.
5766 (get_vi_for_tree): Add extra argument to call to
5767 create_variable_info_for.
5768 (process_constraint, do_deref, process_all_all_constraints): Add extra
5769 argument to calls to new_scalar_tmp_constraint_exp.
5770 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
5771 argument to calls to make_heapvar.
5772 (make_restrict_var_constraints): Add extra argument to call to
5773 make_constraint_from_global_restrict.
5774 (intra_create_variable_infos): Add extra argument to call to
5775 create_variable_info_for_1.
5776 (ipa_pta_execute): Add extra argument to call to
5777 create_function_info_for.
5779 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5781 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
5782 (sibcall_value): Likewise.
5784 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
5786 * config/nvptx/nvptx.h (struct machine_function): Add
5788 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
5789 nvptx_expand_oacc_join): Declare.
5790 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
5791 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
5792 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
5793 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
5794 UNSPECV_JOINING, UNSPECV_JOIN): New.
5795 (BITS, BITD): New mode iterators.
5796 (br_true_uni, br_false_uni): New.
5797 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
5798 (oacc_dim_size, oacc_dim_pos): New.
5799 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
5800 (oacc_fork, oacc_join): New.
5801 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
5802 (worker_load<mode>, worker_store<mode>): New.
5803 (nvptx_barsync): New.
5804 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
5805 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
5806 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
5807 worker_bcast_sym): New.
5808 (nvptx_option_override): Initialize worker broadcast buffer.
5809 (nvptx_emit_forking, nvptx_emit_joining): New.
5810 (nvptx_init_axis_predicate): New.
5811 (nvptx_declare_function_name): Init axis predicates.
5812 (nvptx_expand_call): Add fork/join markers around routine call.
5813 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
5814 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
5815 (nvptx_gen_vcast): New.
5816 (struct wcast_data_t): New.
5817 (enum propagate_mask): New.
5818 (nvptx_gen_wcast): New.
5819 (nvptx_print_operand): Add 'S' case.
5820 (struct parallel): New.
5821 (parallel::parallel, parallel::~parallel): New.
5822 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
5823 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
5824 nvptx_find_par, nvptx_discover_pars): New.
5825 (nvptx_propagate): New.
5826 (vprop_gen, nvptx_vpropagate): New.
5827 (wprop_gen, nvptx_wpropagate): New.
5829 (nvptx_single, nvptx_skip_par): New.
5830 (nvptx_process_pars, nvptx_neuter_pars): New.
5831 (ntptx_reorg): Split blocks, generate parallel structure, apply
5833 (nvptx_cannot_copy_insn_p): New.
5834 (nvptx_file_end): Emit worker broadcast decl.
5835 (nvptx_goacc_fork_join): New.
5836 (TARGET_CANNOT_COPY_INSN_P): Override.
5837 (TARGET_GOACC_FORK_JOIN): Override.
5839 2015-10-28 Richard Biener <rguenther@suse.de>
5841 * fold-const.c (negate_expr_p): Adjust the division case to
5842 properly avoid introducing undefined overflow.
5843 (fold_negate_expr): Likewise.
5845 2015-10-28 Richard Biener <rguenther@suse.de>
5847 PR tree-optimization/65962
5848 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5849 Avoid creating loop carried dependences also for outer loops
5850 of the loop a use to replace is in.
5852 2015-10-28 Richard Biener <rguenther@suse.de>
5854 * common.opt (fchecking): New flag controlling flag_checking.
5855 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
5856 * timevar.c (timer::print): Adjust output.
5857 * doc/invoke.texi (fchecking): Document.
5859 2015-10-28 Richard Biener <rguenther@suse.de>
5862 * fold-const.c (negate_expr_p): We cannot negate plus or minus
5863 if overflow is not wrapping. Likewise multiplication unless
5864 one operand is constant and not power of two.
5865 (fold_negate_expr): Adjust accordingly.
5867 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5869 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
5871 (is_oacc_parallel, is_oacc_kernels): New.
5872 (enclosing_target_ctx): May return NULL.
5873 (ctx_in_oacc_kernels_region): New.
5874 (check_oacc_kernel_gwv): New.
5875 (oacc_loop_or_target_p): Delete.
5876 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
5877 operands. Strip reductions fro kernels.
5878 (scan_omp_target): Don't calculate gwv mask.
5879 (lower_oacc_head_mark, lower_oacc_loop_marker,
5880 lower_oacc_head_tail): New.
5881 (struct oacc_collapse): New.
5882 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
5883 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5884 Remove OpenACC handling.
5885 (expand_oacc_for): New.
5886 (expand_omp_for): Call expand_oacc_for.
5887 (lower_omp_for): Call lower_oacc_head_tail.
5889 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
5891 * attribs.c (check_attribute_tables): New function, broken out from...
5892 (init_attributes): Use it.
5893 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
5894 gcc_checking_assert and checking_* functions to eliminate
5895 ENABLE_CHECKING conditionals.
5896 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
5897 (pass_expand::execute): Likewise.
5898 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
5899 * cgraphunit.c (mark_functions_to_output): Likewise.
5900 (cgraph_node::expand_thunk): Likewise.
5901 (symbol_table::compile): Likewise.
5902 * ddg.c (add_cross_iteration_register_deps): Likewise.
5903 (create_ddg_all_sccs): Likewise.
5904 * df-core.c (df_finish_pass, df_analyze): Likewise.
5905 * diagnostic-core.h: Likewise.
5906 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
5907 * dominance.c (calculate_dominance_info): Likewise.
5908 * dwarf2out.c (add_AT_die_ref): Likewise.
5909 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
5910 (loc_list_from_tree, gen_lexical_block_die): Likewise.
5911 gen_type_die_with_usage, gen_type_die): Likewise.
5912 (dwarf2out_decl): Likewise.
5913 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
5914 * except.c (duplicate_eh_regions): Likewise.
5915 * fwprop.c (register_active_defs, update_df_init): Likewise.
5916 (fwprop_init, fwprop_done): Likewise.
5917 (update_uses): Likewise.
5918 * ggc-page.c (ggc_grow): Likewise.
5919 * gimplify.c (gimplify_body): Likewise.
5920 (gimplify_hasher::equal): Likewise.
5921 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
5922 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
5924 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
5925 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
5926 * hash-table.h (::find_empty_slot_for_expand): Likewise.
5927 * ifcvt.c (if_convert): Likewise.
5928 * ipa-cp.c (ipcp_propagate_stage): Likewise.
5929 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
5930 (odr_type_p, odr_types_equivalent_p): Likewise.
5931 (add_type_duplicate, get_odr_type): Likewise.
5932 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
5933 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
5934 (sem_item_optimizer::verify_classes): Likewise.
5935 (sem_item_optimizer::traverse_congruence_split): Likewise.
5936 (sem_item_optimizer::checking_verify_classes): New.
5937 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
5939 * cfgrtl.c (commit_edge_insertions): Likewise.
5940 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
5941 (rtl_flow_call_edges_add): Likewise.
5942 * cgraph.c (symbol_table::create_edge): Likewise.
5943 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5944 * cgraph.h (symtab_node): Likewise.
5945 (symtab_node::checking_verify_symtab_nodes): Define.
5946 (cgraph_node::checking_verify_cgraph_nodes): Define.
5947 * cfghooks.h (checking_verify_flow_info): Define.
5948 * cfgloop.h (checking_verify_loop_structure): Define.
5949 * dominance.h (checking_verify_dominators): Define.
5950 * et-forest.c: Fix comment.
5951 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
5952 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
5953 ENABLE_CHECKING conditionals.
5954 * ipa-inline-transform.c (save_inline_function_body): Likewise.
5955 * ipa-inline.c (inline_small_functions): Likewise.
5956 (early_inliner): Likewise.
5957 * ipa-inline.h (estimate_edge_growth): Likewise.
5958 * ipa-visibility.c (function_and_variable_visibility): Likewise.
5959 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
5960 (ipa_single_use): Likewise.
5961 * ira-int.h: Likewise.
5962 * ira.c (ira): Likewise.
5963 * loop-doloop.c (doloop_optimize_loops): Likewise.
5964 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
5965 * loop-invariant.c (move_loop_invariants): Likewise.
5966 * lra-assigns.c (lra_assign): Likewise.
5967 * lra-constraints.c (lra_constraints): Likewise.
5968 * lra-eliminations.c (lra_eliminate): Likewise.
5969 * lra-int.h (struct lra_reg): Likewise.
5970 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
5971 (lra_create_live_ranges_1): Likewise.
5972 * lra-remat.c (create_remat_bb_data): Likewise.
5973 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
5975 (check_rtl): Always define. Remove incorrect guard around
5976 extract_constrain_insn call.
5977 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
5978 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
5979 ENABLE_CHECKING conditionals.
5980 * lto-streamer-out.c (DFS::DFS): Likewise.
5981 (lto_output): Likewise.
5982 * lto-streamer.c (lto_streamer_init): Likewise.
5983 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
5984 expand_omp_target, execute_expand_omp): Likewise.
5985 (lower_omp_target): Likewise.
5986 * passes.c (execute_function_todo): Likewise.
5987 (execute_todo, execute_one_pass): Likewise.
5988 (verify_curr_properties): Always define.
5989 * predict.c (tree_estimate_probability: Use flag_checking,
5990 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
5991 ENABLE_CHECKING conditionals.
5992 (propagate_freq): Likewise.
5993 * pretty-print.c (pp_format): Likewise.
5994 * real.c (real_to_decimal_for_mode): Likewise.
5995 * recog.c (split_all_insns): Likewise.
5996 * regcprop.c (kill_value_one_regno): Likewise.
5997 (copy_value): Likewise.
5998 (validate_value_data): Define unconditionally.
5999 * reload.c: Fix comment.
6000 * timevar.c: Include options.h
6001 * tree-ssa.h (checking_verify_ssa): Define.
6002 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
6003 * sched-deps.c (CHECK): Remove unused macro.
6004 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
6005 gcc_checking_assert and checking_* functions to eliminate
6006 ENABLE_CHECKING conditionals.
6007 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
6008 * sel-sched.c (struct moveop_static_params): Likewise.
6009 (find_best_reg_for_expr, move_cond_jump): Likewise.
6010 (move_op_orig_expr_not_found): Likewise.
6011 (code_motion_process_successors, move_op): Likewise.
6012 * ssa-iterators.h (first_readonly_imm_use): Likewise.
6013 (next_readonly_imm_use): Likewise.
6014 * store-motion.c (compute_store_table): Likewise.
6015 * symbol-summary.h (function_summary::function_summary): Likewise.
6016 * target.h (cumulative_args_t): Likewise.
6017 (get_cumulative_args, pack_cumulative_args): Likewise.
6018 * timevar.c: (timer::print): Likewise.
6019 * trans-mem.c (ipa_tm_execute): Likewise.
6020 * tree-cfg.c (move_stmt_op): Likewise.
6021 (move_sese_region_to_fn): Likewise.
6022 (gimple_flow_call_edges_add): Likewise.
6023 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
6025 * tree-eh.c (remove_unreachable_handlers): Likewise.
6026 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
6027 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
6028 * tree-into-ssa.c (update_ssa): Likewise.
6029 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
6030 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
6031 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
6032 * tree-predcom.c (suitable_component_p): Likewise.
6033 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
6034 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
6035 * tree-ssa-live.c (verify_live_on_entry): Likewise.
6036 * tree-ssa-live.h (register_ssa_partition): Likewise.
6037 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
6038 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
6039 (tree_transform_and_unroll_loop): Likewise.
6040 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
6041 * tree-ssa-operands.c (get_expr_operands): Likewise.
6042 * tree-ssa-propagate.c (replace_exp_1): Likewise.
6043 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
6044 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
6045 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
6046 * tree-ssanames.c (release_ssa_name_fn): Likewise.
6047 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
6048 * tree-vect-loop-manip.c
6049 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
6050 (slpeel_checking_verify_cfg_after_peeling): Likewise.
6051 (vect_do_peeling_for_loop_bound): Likewise.
6052 (vect_do_peeling_for_alignment): Likewise.
6053 * tree-vrp.c (supports_overflow_infinity): Likewise.
6054 (set_value_range): Likewise.
6055 * tree.c (free_lang_data_in_cgraph): Likewise.
6056 * value-prof.c (gimple_remove_histogram_value): Likewise.
6057 (free_hist): Likewise.
6058 * var-tracking.c (canonicalize_values_star): Likewise.
6059 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
6061 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6063 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
6064 IFN_GOACC_LOOP): New.
6065 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
6066 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
6067 IFN_UNIQUE_OACC_TAIL_MARK.
6068 (enum ifn_goacc_loop_kind): New.
6069 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
6070 IFN_UNIQUE_OACC_JOIN cases.
6071 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
6072 (expand_GOACC_LOOP): New.
6073 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
6074 * omp-low.c: Include gimple-pretty-print.h.
6075 (struct oacc_loop): New.
6076 (enum oacc_loop_flags): New.
6077 (oacc_thread_numbers): New.
6078 (oacc_xform_loop): New.
6079 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
6080 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
6081 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
6082 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
6083 oacc_loop_discovery): New.
6084 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
6085 oacc_loop_process): New.
6086 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
6087 (execute_oacc_device_lower): Discover & process loops. Process
6089 * target.def (goacc.fork_join): Change sense of hook, clarify
6091 * doc/tm.texi: Regenerated.
6093 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6095 * target-insns.def (oacc_fork, oacc_join): Define.
6096 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
6097 (goacc.fork_join): New GOACC hook.
6098 * targhooks.h (default_goacc_fork_join): Declare.
6099 * omp-low.c (default_goacc_forkjoin): New.
6100 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
6101 * doc/tm.texi: Regenerate.
6103 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6105 * omp-low.c (oacc_init_rediction_array): New.
6106 (oacc_initialize_reduction_data): Initialize array.
6108 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6110 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
6112 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6114 * internal-fn.c (expand_UNIQUE): New.
6115 * internal-fn.h (enum ifn_unique_kind): New.
6116 * internal-fn.def (IFN_UNIQUE): New.
6117 * target-insns.def (unique): Define.
6118 * gimple.h (gimple_call_internal_unique_p): New.
6119 * gimple.c (gimple_call_same_target_p): Check internal fn
6121 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
6122 * tree-ssa-threadedge.c
6123 (record_temporary_equivalences_from_stmts): Likewise.
6124 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
6126 2015-10-27 Richard Henderson <rth@redhat.com>
6129 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
6130 narrowing subregs on SSE and MMX registers.
6131 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
6132 appear to be sub-words of multi-register pseudos must be rejected.
6133 * doc/tm.texi: Regenerate.
6135 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6138 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
6139 operands[0] is a reg before taking its REGNO in split condition.
6140 (*movdi_aarch64): Likewise.
6142 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6144 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
6145 Handle floating point inner modes properly.
6147 2015-10-27 Alan Hayward <alan.hayward@arm.com>
6150 (vectorizable_live_operation): Change iterator.
6152 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6153 Aditya Kumar <aditya.k7@samsung.com>
6155 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
6156 function to schedule based on isl_schedule_node.
6157 (get_schedule_map_st): New schedule optimizer based on
6159 (scop_get_domains): New. Return the isl_union_set containing the
6160 domains of all the pbbs.
6161 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
6163 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
6166 * calls.c (prepare_call_address): Don't handle -fno-plt here.
6167 * config/i386/i386.c (ix86_expand_call): Generate indirect call
6168 via GOT for -fno-plt. Support indirect call via GOT for x32.
6169 * config/i386/predicates.md (sibcall_memory_operand): Allow
6172 2015-10-27 Richard Biener <rguenther@suse.de>
6174 PR tree-optimization/68104
6175 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
6176 strided access check ...
6177 (vect_compute_data_refs_alignment): ... here.
6179 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
6180 Joseph Myers <joseph@codesourcery.com>
6181 Mark Shinwell <shinwell@codesourcery.com>
6182 Andrew Stubbs <ams@codesourcery.com>
6183 Rich Felker <dalias@libc.org>
6185 * config.gcc: Handle --enable-fdpic.
6186 * config/sh/constraints.md (Ccl): New constraint.
6187 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
6188 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
6190 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
6192 * config/sh/sh-protos.h (function_symbol_result): New struct.
6193 (function_symbol): Return function_symbol_result.
6194 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
6196 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
6198 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
6199 (sh_option_override): Force -fPIC if FDPIC is in effect.
6200 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
6201 UNSPEC_GOTOFFFUNCDESC cases.
6202 (prepare_move_operands): Use FDPIC initial GOT register for
6203 TLS-related GOT access; inhibit cross-section address offset constants
6205 (sh_assemble_integer): New function.
6206 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
6207 PC-relative call sites.
6208 (expand_ashiftrt): Adapt invocation of function_symbol.
6209 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
6210 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
6211 UNSPEC_GOTOFFFUNCDESC.
6212 (legitimize_pic_address): Resolve function symbols to function
6213 descriptors for FDPIC. Do not use GOT-relative addressing for local
6214 data that may be read-only on FDPIC.
6215 (sh_emit_storesi, sh_emit_storehi): New functions.
6216 (sh_trampoline_init): Generate FDPIC trampolines.
6217 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
6218 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
6219 (sh_output_mi_thunk): Generate FDPIC call.
6220 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
6221 FDPIC, generate call site labels to use PC-relative addressing rather
6222 than GOT-relative addressing.
6223 (sh_conditional_register_usage): Make PIC register fixed and call used
6224 when FDPIC is in effect.
6225 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
6226 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
6227 sh_get_fdpic_reg_initial_val): New functions.
6228 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
6230 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
6231 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
6232 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
6233 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
6235 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
6236 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
6237 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
6238 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
6240 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
6241 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
6242 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
6243 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
6244 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
6245 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
6246 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
6247 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
6248 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
6249 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
6250 block_move_real, block_lump_real, block_move_real_i4,
6251 block_lump_real_i4): Add support for FDPIC calls.
6252 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
6253 call_value_pop): Adjust for new function_symbol signature.
6254 * config/sh/sh.opt (-mfdpic): New option.
6255 * doc/install.texi (Options specification): Document --enable-fdpic.
6256 * doc/invoke.texi (SH Options): Document -mfdpic.
6259 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
6261 PR tree-optimization/65963
6262 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
6263 LSHIFT_EXPRs as equivalent MULT_EXPRs.
6265 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6268 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
6269 * config/arm/constraints.md (Dp): Update callsite.
6270 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
6272 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6274 * builtins.c (fold_builtin_load_exponent): Rename to...
6275 (fold_const_builtin_load_exponent): ...this and only handle
6277 (fold_builtin_2): Update accordingly.
6278 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
6280 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6282 * builtins.c (fold_builtin_logb): Rename to...
6283 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
6284 (fold_builtin_significand): Rename to...
6285 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
6286 (fold_builtin_1): Update accordingly.
6288 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6290 * builtins.c (fold_builtin_fmin_fmax): Delete.
6291 (fold_builtin_2): Handle constant fmin and fmax arguments here.
6292 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
6294 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
6296 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
6297 for register extension into sign and zero register extension.
6298 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
6299 for sign and zero register extension.
6300 (cortexa57_addrcost_table): Likewise.
6301 (xgene1_addrcost_table): Likewise.
6303 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6305 * fold-const.c (fold_minmax): Delete.
6306 (fold_binary_loc): Don't call it.
6307 * match.pd: Add rules previously handled by fold_minmax.
6309 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6311 * builtins.c (fold_builtin_fma): Remove constant handling.
6312 (fold_builtin_3): Handle constant fma arguments here.
6314 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6316 * builtins.c (fold_builtin_fabs): Remove constant handling.
6317 (fold_builtin_abs): Likewise.
6319 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6321 * builtins.c (fold_builtin_copysign): Delete.
6322 (fold_builtin_2): Handle constant copysign arguments here.
6323 * match.pd: Add rules previously handled by fold_builtin_copysign.
6325 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6327 * builtins.c (fold_builtin_signbit): Delete.
6328 (fold_builtin_2): Handle constant signbit arguments here.
6329 * match.pd: Add rules previously handled by fold_builtin_signbit.
6331 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6333 * match.pd: Handle sqrt(x) cmp 0 specially.
6335 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
6337 * tree-vect-generic.c (expand_vector_operations_1): Check
6338 optab type before using it.
6340 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6342 * config/aarch64/aarch64-protos.h
6343 (struct tune_params): Add autoprefetcher_model field.
6344 * config/aarch64/aarch64.c: Include params.h
6345 (generic_tunings): Specify autoprefetcher_model value.
6346 (cortexa53_tunings): Likewise.
6347 (cortexa57_tunings): Likewise.
6348 (cortexa72_tunings): Likewise.
6349 (thunderx_tunings): Likewise.
6350 (xgene1_tunings): Likewise.
6351 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
6352 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
6353 (aarch64_override_options_internal): Set
6354 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
6356 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6358 * builtins.c (fold_builtin_exponent): Delete.
6359 (fold_builtin_2): Handle constant expN arguments here.
6360 * match.pd: Fold expN(logN(x)) -> x.
6362 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6364 * builtins.c (fold_builtin_powi): Delete.
6365 (fold_builtin_2): Handle constant powi arguments here.
6366 * match.pd: Add rules previously handled by fold_builtin_powi.
6368 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6370 * builtins.c (fold_builtin_pow): Delete in favor of...
6371 (fold_const_builtin_pow): ...this new function. Only handle constant
6373 (fold_builtin_2): Update accordingly.
6374 * match.pd: Add rules previously handled by fold_builtin_pow.
6376 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6378 * builtins.c (fold_builtin_hypot): Delete.
6379 (fold_builtin_2): Handle constant hypot arguments here.
6380 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
6381 hypot(x, x) to fabs(x)*sqrt(2).
6383 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6385 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
6386 instead of make_ssa_name if not yet in SSA form.
6388 2015-10-27 Richard Biener <rguenther@suse.de>
6390 * cfg.c (free_edge): Add function argument and use it instead of cfun.
6391 (clear_edges): Likewise.
6392 * cfg.h (clear_edges): Adjust prototype.
6393 * cfgexpand.c (pass_expand::execute): Adjust.
6394 * cfgloop.c (release_recorded_exits): Add function argument and use
6396 * cfgloop.h (release_recorded_exits): Adjust prototype.
6397 (loops_state_satisfies_p): Add overload with function argument.
6398 (loops_state_set): Likewise.
6399 (loops_state_clear): Likewise.
6400 (struct loop_iterator): Add function argument to constructor
6401 and iterator and use it instead of cfun.
6402 (FOR_EACH_LOOP_FN): New macro.
6403 (loop_optimizer_finalize): Add overload with function argument.
6404 * loop-init.c (loop_optimizer_init): Adjust.
6405 (fix_loop_structure): Likewise.
6406 (loop_optimizer_finaliz): Add function argument and use it
6408 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
6409 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
6410 * cgraph.c (release_function_body): Do not push/pop cfun.
6411 * final.c (rest_of_clean_state): Adjust.
6412 * graphite.c (graphite_finalize): Likewise.
6413 * tree-ssa-copy.c (fini_copy_prop): Likewise.
6414 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
6415 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
6416 (tree_unroll_loops_completely): Likewise.
6417 (pass_complete_unrolli::execute): Likewise.
6418 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
6419 Add function argument and use it instead of cfun.
6420 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
6422 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
6423 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
6425 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
6426 * tree-ssanames.c (fini_ssanames): Add function argument and use it
6428 * tree-ssanames.c (fini_ssanames): Adjust prototype.
6429 * tree-vrp.c (execute_vrp): Adjust.
6430 * value-prof.c (free_histograms): Add function argument and use it
6432 * value-prof.h (free_histograms): Adjust prototype.
6434 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6436 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
6437 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
6438 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
6440 2015-10-27 Tom de Vries <tom@codesourcery.com>
6442 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
6445 2015-10-27 Bin Cheng <bin.cheng@arm.com>
6447 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
6448 (inv_can_prop_to_addr_use): New function.
6449 (record_use): Call can_prop_to_addr_uses, set the new field.
6450 (get_inv_cost): Count cost if inv can't be propagated into its
6453 2015-10-26 Doug Evans <dje@google.com>
6455 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
6457 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
6459 * match.pd (fold_widened_comparison): Apply simplifications to all
6462 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
6464 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
6465 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
6466 * doc/tm.texi: Regenerated.
6467 * reorg.c (dbr_schedule): Use new hook.
6468 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
6470 2015-10-26 Jeff Law <law@redhat.com>
6472 PR tree-optimization/68013
6473 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6474 Make sure the first block in the path is in VISITED_BBs.
6476 2015-10-26 Richard Biener <rguenther@suse.de>
6477 Dominik Vogt <vogt@linux.vnet.ibm.com>
6480 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
6481 Properly prune ref->ref for accesses outside of ref.
6483 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
6485 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
6486 new statements to be inserted if inplace. Allow calls to have
6489 2015-10-26 Richard Biener <rguenther@suse.de>
6491 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
6492 (do_valueize): New function.
6493 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
6495 * tree-ssa-threadedge.c: Remove builtins.h include, include
6497 (fold_assignment_stmt): Remove.
6498 (threadedge_valueize): New function.
6499 (record_temporary_equivalences_from_stmts): Use
6500 gimple_fold_stmt_to_constant_1, note additional cleanup
6503 2015-10-26 Richard Biener <rguenther@suse.de>
6505 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
6506 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
6508 2015-10-26 Alan Hayward <alan.hayward@arm.com>
6510 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
6511 VEC_COND_EXPR types.
6513 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6515 * auto-inc-dec.c (insert_move_insn_before): Delete.
6516 (attempt_change): Remember to cost the simple move in the
6517 FORM_PRE_ADD and FORM_POST_ADD cases.
6519 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
6522 * config/sh/sh.c (sh_vector_mode_supported_p): Use
6523 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
6525 2015-10-26 Tom de Vries <tom@codesourcery.com>
6527 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
6529 (intra_create_variable_infos): ... here.
6531 2015-10-26 Tom de Vries <tom@codesourcery.com>
6533 * tree-ssa-structalias.c (intra_create_variable_infos): Add
6534 restrict_pointer_p and recursive_restrict_p variables.
6536 2015-10-26 Tom de Vries <tom@codesourcery.com>
6538 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
6539 get_vi_for_tree call.
6541 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6544 * optabs.c (expand_atomic_compare_and_swap): Handle case when
6545 ptarget_oval or ptarget_bool are const0_rtx.
6547 2015-10-26 Christian Bruel <christian.bruel@st.com>
6549 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
6550 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
6551 * cp/method.c (implicitly_declare_fn): Likewise.
6552 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
6553 * java/class.c (add_method_1): Likewise.
6555 2015-10-26 Richard Biener <rguenther@suse.de>
6557 * alloc-pool.h (base_pool_allocator): Use placement new.
6558 (base_pool_allocator::remove): Likewise. Compute size outside of
6561 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
6563 * builtins.c (do_real_to_int_conversion): New function.
6564 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
6565 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
6567 * match.pd: Add rules previously handled by fold_fixed_mathfn
6568 and fold_builtin_int_roundingfn.
6570 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
6572 * match.pd: Use macros to define built-in operator lists.
6574 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
6575 Richard Biener <rguenther@suse.de>
6577 * genmatch.c (dt_simplify::gen): Skip captures that are
6579 (parser::parse_expr): Allow captures in results too.
6580 * builtins.c (fold_builtin_cexp): Delete.
6581 (fold_builtin_1): Handle constant cexp arguments here.
6582 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
6584 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
6586 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
6587 conditional compilation.
6588 (base_pool_allocator::remove): Use flag_checking.
6590 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
6592 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
6595 * dojump.c (do_compare_and_jump): Canonicalize both function and
6598 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
6601 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
6604 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
6607 * ipa-polymorphic-call.c
6608 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
6609 instance offset with offset of outer type.
6611 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
6613 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
6615 2015-10-23 Caroline Tice <cmtice@google.com>
6617 (from Richard Biener
6618 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
6619 call to iterative_hash_host_wide_int.
6621 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
6623 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
6626 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
6628 * tree-vect-generic.c (expand_vector_operations_1): Check
6629 optab exists before use it.
6631 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
6633 * tree-vect-generic.c (expand_vector_condition): Avoid
6634 uninitialized variable warning.
6636 2015-10-23 Jeff Law <law@redhat.com>
6638 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
6640 (execute_todo): Call it here.
6641 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
6643 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
6645 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
6646 Szabolcs Nagy <szabolcs.nagy@arm.com>
6648 * config.gcc (enable_secureplt): Add *-linux*-musl*.
6650 2015-10-23 Jeff Law <law@redhat.com>
6652 PR tree-optimization/67830
6653 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
6654 Explicitly verify the mask has no bits outside the type of
6655 the innermost operands.
6657 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
6658 Szabolcs Nagy <szabolcs.nagy@arm.com>
6660 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
6661 (MUSL_DYNAMIC_LINKER64): Define.
6662 (GNU_USER_DYNAMIC_LINKER32): Update.
6663 (GNU_USER_DYNAMIC_LINKER64): Update.
6664 (CHOOSE_DYNAMIC_LINKER): Update.
6666 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
6667 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
6668 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
6669 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
6670 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
6671 (CHOOSE_DYNAMIC_LINKER): Update.
6672 (INCLUDE_DEFAULTS): Redefine.
6674 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
6676 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
6678 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
6679 comparing addresses.
6681 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
6683 * fold-const.c (operand_equal_p): Handle matching of vector
6686 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
6688 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
6690 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
6691 Andrew Pinski <apinski@cavium.com>
6693 PR rtl-optimization/67736
6694 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
6697 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
6700 * tree.c (build_truth_vector_type): Support BLK mode
6701 returned for boolean vector.
6703 2015-10-23 Alan Hayward <alan.hayward@arm.com>
6705 PR tree-optimization/65947
6707 (vect_is_simple_reduction_1): Find condition reductions.
6708 (vect_model_reduction_cost): Add condition reduction costs.
6709 (get_initial_def_for_reduction): Add condition reduction initial var.
6710 (vect_create_epilog_for_reduction): Add condition reduction epilog.
6711 (vectorizable_reduction): Condition reduction support.
6712 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
6713 * doc/sourcebuild.texi (Vector-specific attributes): Document
6716 2015-10-23 Richard Biener <rguenther@suse.de>
6718 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
6721 2015-10-23 Richard Biener <rguenther@suse.de>
6722 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6724 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
6725 into (A ^ B) - B to match.pd
6726 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
6728 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
6730 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
6732 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
6734 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
6736 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
6737 INTEGER_CST@1)): New simplifier.
6739 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
6741 * builtins.c (integer_valued_real_p): Move to fold-const.c.
6742 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
6743 (fold_builtin_ceil, fold_builtin_round): Delete.
6744 (fold_builtin_1): Handle constant trunc, floor, ceil and round
6746 * convert.c (convert_to_real): Remove narrowing of rounding
6748 * fold-const.h (integer_valued_real_unary_p)
6749 (integer_valued_real_binary_p, integer_valued_real_call_p)
6750 (integer_valued_real_single_p, integer_valued_real_p): Declare.
6751 * fold-const.c (tree_single_nonnegative_warnv_p): Move
6752 name_registered_for_update_p check to SSA_NAME case statement.
6753 Don't call tree_simple_nonnegative_warnv_p for SSA names.
6754 (integer_valued_real_unary_p, integer_valued_real_binary_p)
6755 (integer_valued_real_call_p, integer_valued_real_single_p)
6756 (integer_valued_real_invalid_p): New functions.
6757 (integer_valued_real_p): Move from fold-const.c and rework
6758 to call the functions above. Handle SSA names.
6759 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
6760 * gimple-fold.c (gimple_assign_integer_valued_real_p)
6761 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
6762 (gimple_stmt_integer_valued_real_p): New functions.
6763 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
6764 Fold f(x)->x for the same f if x is known to be integer-valued.
6765 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
6766 the result. Canonicalize floor(x) as trunc(x) if x is
6769 2015-10-23 Tom de Vries <tom@codesourcery.com>
6771 * tree-ssa-structalias.c (intra_create_variable_infos): Use
6772 make_constraint_from.
6774 2015-10-23 Tom de Vries <tom@codesourcery.com>
6776 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
6777 setting of is_full_var in case of a single field.
6779 2015-10-22 Martin Sebor <msebor@redhat.com>
6782 * config/i386/i386.opt: Add missing periods to the ends of sentences.
6783 * config/msp430/msp430.opt: Same.
6785 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
6787 * doc/extend.exp (Global Register Variables): Rewrite.
6789 2015-10-22 Jeff Law <law@redhat.com>
6791 * genattrtab.c (main): If we do not have any annul-true or annul-false
6792 slots, then write out a dummy eligible_for_annul_true or
6793 eligible_for_annul_false as needed.
6795 2015-10-22 Nick Clifton <nickc@redhat.com>
6797 * config/msp430/msp430.opt: Add -msilicon-errata and
6798 -msilicon-errata-warn.
6799 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
6801 * doc/invoke.texi: Document new options.
6803 2015-10-22 Richard Biener <rguenther@suse.de>
6805 PR tree-optimization/58497
6806 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
6807 (expand_vector_operations_1): Use it. Lower operations on
6808 all uniform vectors to scalar operations if the HW supports it.
6810 2015-10-22 Richard Biener <rguenther@suse.de>
6812 PR tree-optimization/19049
6813 PR tree-optimization/65962
6814 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
6815 to strided accesses if single-element interleaving doesn't work.
6817 2015-10-22 Richard Biener <rguenther@suse.de>
6821 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
6822 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
6823 (expand_unop): Likewise.
6825 2015-10-22 Richard Biener <rguenther@suse.de>
6827 * fold-const.c (fold_addr_of_array_ref_difference): Properly
6828 convert operands before folding a MINUS_EXPR.
6829 (fold_binary_loc): Move simplification of MINUS_EXPR on
6830 converted POINTER_PLUS_EXPRs ...
6831 * match.pd: ... here.
6833 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
6835 * builtins.c (fold_builtin_tan): Delete.
6836 (fold_builtin_1): Handle constant tan arguments here.
6837 * match.pd: Simplify (tan (atan x)) to x.
6839 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
6841 * builtins.c (fold_builtin_cproj): Delete.
6842 (fold_builtin_1): Handle constant arguments here.
6843 (build_complex_cproj): Move and rename to...
6844 * tree.c: (build_complex_inf): ...this.
6845 * tree.h (build_complex_inf): Declare.
6846 * match.pd: Fold cproj(x)->x if x has no infinity.
6847 Use build_complex_inf for existing cproj rules.
6849 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6852 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
6853 already have a comparison result.
6855 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6858 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
6859 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
6860 (aarch64_classify_address): Likewise.
6861 (aarch64_secondary_reload): Likewise.
6862 (aarch64_override_options_after_change_1): Adjust.
6863 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
6864 Use aarch64_nopcrelative_literal_loads.
6865 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
6866 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
6869 2015-10-21 Martin Sebor <msebor@redhat.com>
6872 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
6873 (print_filtered_help): Reference aliased option's name and encourage
6874 readers to use it in preference to the alias if the former is not
6875 documented. Mention when using an option is diagnosed.
6876 * gcc.c (display_help): End each sentence with a period.
6878 * common.opt: End each sentence that describes an option with
6880 * config/aarch64/aarch64.opt: Same.
6881 * config/alpha/alpha.opt: Same.
6882 * config/arc/arc.opt: Same.
6883 * config/arm/arm.opt: Same.
6884 * config/avr/avr.opt: Same.
6885 * config/bfin/bfin.opt: Same.
6886 * config/c6x/c6x.opt: Same.
6887 * config/cr16/cr16.opt: Same.
6888 * config/cris/cris.opt: Same.
6889 * config/cris/linux.opt: Same.
6890 * config/darwin.opt: Same.
6891 * config/epiphany/epiphany.opt: Same.
6892 * config/fr30/fr30.opt: Same.
6893 * config/frv/frv.opt: Same.
6894 * config/ft32/ft32.opt: Same.
6895 * config/g.opt: Same.
6896 * config/h8300/h8300.opt: Same.
6897 * config/i386/cygming.opt: Same.
6898 * config/i386/djgpp.opt: Same.
6899 * config/i386/i386.opt: Same.
6900 * config/i386/interix.opt: Same.
6901 * config/i386/mingw-w64.opt: Same.
6902 * config/i386/mingw.opt: Same.
6903 * config/ia64/ia64.opt: Same.
6904 * config/ia64/ilp32.opt: Same.
6905 * config/iq2000/iq2000.opt: Same.
6906 * config/linux.opt: Same.
6907 * config/lm32/lm32.opt: Same.
6908 * config/lynx.opt: Same.
6909 * config/m32c/m32c.opt: Same.
6910 * config/m32r/m32r.opt: Same.
6911 * config/m68k/ieee.opt: Same.
6912 * config/m68k/m68k.opt: Same.
6913 * config/mcore/mcore.opt: Same.
6914 * config/mep/mep.opt: Same.
6915 * config/microblaze/microblaze.opt: Same.
6916 * config/mips/mips.opt: Same.
6917 * config/mmix/mmix.opt: Same.
6918 * config/mn10300/mn10300.opt: Same.
6919 * config/moxie/moxie.opt: Same.
6920 * config/msp430/msp430.opt: Same.
6921 * config/nios2/elf.opt: Same.
6922 * config/nios2/nios2.opt: Same.
6923 * config/nvptx/nvptx.opt: Same.
6924 * config/pa/pa-hpux.opt: Same.
6925 * config/pa/pa-hpux1010.opt: Same.
6926 * config/pa/pa-hpux1111.opt: Same.
6927 * config/pa/pa-hpux1131.opt: Same.
6928 * config/pa/pa.opt: Same.
6929 * config/pa/pa64-hpux.opt: Same.
6930 * config/pdp11/pdp11.opt: Same.
6931 * config/rl78/rl78.opt: Same.
6932 * config/rs6000/476.opt: Same.
6933 * config/rs6000/aix64.opt: Same.
6934 * config/rs6000/darwin.opt: Same.
6935 * config/rs6000/linux64.opt: Same.
6936 * config/rs6000/rs6000.opt: Same.
6937 * config/rs6000/sysv4.opt: Same.
6938 * config/s390/s390.opt: Same.
6939 * config/s390/tpf.opt: Same.
6940 * config/sh/sh.opt: Same.
6941 * config/sol2.opt: Same.
6942 * config/sparc/long-double-switch.opt: Same.
6943 * config/sparc/sparc.opt: Same.
6944 * config/spu/spu.opt: Same.
6945 * config/stormy16/stormy16.opt: Same.
6946 * config/tilegx/tilegx.opt: Same.
6947 * config/tilepro/tilepro.opt: Same.
6948 * config/v850/v850.opt: Same.
6949 * config/vax/vax.opt: Same.
6950 * config/visium/visium.opt: Same.
6951 * config/vms/vms.opt: Same.
6952 * config/vxworks.opt: Same.
6953 * config/xtensa/xtensa.opt: Same.
6955 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
6956 Sebastian Pop <s.pop@samsung.com>
6958 * graphite-scop-detection.c (parameter_index_in_region): Update call to
6959 invariant_in_sese_p_rec.
6960 * graphite-sese-to-poly.c (extract_affine): Same.
6961 * sese.c (invariant_in_sese_p_rec): Pass in an extra
6962 parameter has_vdefs.
6963 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
6964 variable depends on virtual definitions in the current region.
6965 * sese.h (invariant_in_sese_p_rec): Update declaration.
6967 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
6968 Sebastian Pop <s.pop@samsung.com>
6970 * graphite-scop-detection.c (build_scops): Do not handle scops
6971 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
6972 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
6974 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
6976 * config.in: Regenerate.
6977 * configure: Regenerate.
6978 * configure.ac (CHECKING_P): Define.
6979 * system.h: Use CHECKING_P.
6981 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6984 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
6985 is negative we don't know the type.
6986 (check_stmt_for_type_change): Skip constructors of non-polymorphic
6987 types as those won't help devirutalization.
6989 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6991 * fold-const.c (operand_equal_p): Add code matching empty constructors.
6993 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
6995 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
6997 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
6998 Add comments on sign of the result.
6999 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
7000 Recurse on operand #1 instead of operand #0.
7001 <CEIL_MOD_EXPR>: Do not recurse.
7002 <ROUND_MOD_EXPR>: Likewise.
7004 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7006 * cfgrtl.c (pass_free_cfg::execute): Adjust.
7007 * final.c (dbr_sequence_length): Always define.
7008 (shorten_branches): Adjust.
7009 * genattr-common.c (main): Always define DELAY_SLOTS.
7010 * genattr.c (main): Unconditionally declare functions and define
7011 macros related to delay slots.
7012 * genattrtab.c (write_eligible_delay): Adjust.
7013 (main): Always write out delay slot functions.
7014 * opts.c (default_options_table): Adjust.
7015 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
7016 (redirect_with_delay_list_safe_p): Likewise.
7017 (fill_simple_delay_slots): Likewise.
7018 (fill_slots_from_thread): Likewise.
7019 (make_return_insns): Likewise.
7020 (dbr_schedule): Likewise.
7021 (rest_of_handle_delay_slots): Likewise.
7022 (pass_delay_slots::gate): Likewise.
7023 * toplev.c (process_options): Likewise.
7025 2015-10-21 Richard Henderson <rth@redhat.com>
7027 * targhooks.c (default_addr_space_pointer_mode): Remove check
7028 for generic address space.
7029 (default_addr_space_address_mode): Likewise.
7030 (default_addr_space_valid_pointer_mode): Likewise.
7031 (default_addr_space_legitimate_address_p): Likewise.
7032 (default_addr_space_legitimize_address): Likewise.
7033 * target.def (addr_space.pointer_mode): Update documentation
7034 of default behavior.
7035 (addr_space.address_mode): Likewise.
7038 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
7041 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7043 * builtins.c (fold_builtin_cabs): Delete.
7044 (fold_builtin_1): Update accordingly. Handle constant arguments here.
7045 * match.pd: Add rules previously handled by fold_builtin_cabs.
7047 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7049 * fold-const.h (fold_strip_sign_ops): Delete.
7050 * fold-const.c (fold_strip_sign_ops): Likewise.
7051 (fold_unary_loc, fold_binary_loc): Remove calls to it.
7052 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
7053 (fold_builtin_ccos): Delete.
7054 (fold_builtin_pow): Don't call fold_strip_sign_ops.
7055 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
7056 Remove fndecl argument.
7057 (fold_builtin_1): Update calls accordingly. Handle constant
7058 cos, cosh, ccos and ccosh here.
7060 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7062 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
7063 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
7064 * common.opt (fssa-backprop): New option.
7065 * fold-const.h (negate_mathfn_p): Declare.
7066 * fold-const.c (negate_mathfn_p): Make public.
7067 * timevar.def (TV_TREE_BACKPROP): New.
7068 * tree-pass.h (make_pass_backprop): Declare.
7069 * passes.def (pass_backprop): Add.
7070 * gimple-ssa-backprop.c: New file.
7072 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7073 Sebastian Pop <s.pop@samsung.com>
7075 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
7076 Do not call create_empty_if_region_on_edge when cond_expr is true.
7077 (translate_isl_ast_node_for): Check whether a guard has been generated.
7079 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7081 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
7082 (operator=): Removed.
7083 (dr_info): Make alias_set number the last argument with default
7084 value of invalid_alias_set.
7085 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
7087 (rewrite_reductions_out_of_ssa): Iterate only through the
7088 basic blocks which are inside region.
7089 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
7090 * sese.h (struct sese_l): Removed assignment operator.
7091 (split_region_for_bb): Removed dead code.
7093 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7095 * graphite-poly.h (struct dr_info): Removed conversion constructor.
7096 (struct scop): Renamed scop::region to scop::scop_info
7097 (scop_set_region): Same.
7098 (SCOP_REGION): Removed
7099 (SCOP_CONTEXT): Removed.
7100 (POLY_SCOP_P): Removed.
7101 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
7102 Rename scop->region to scop->scop_info.
7103 (add_parameters_to_ivs_params): Same.
7104 (graphite_regenerate_ast_isl): Same.
7105 * graphite-poly.c (new_scop): Same.
7107 (print_scop_params): Same.
7108 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
7109 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
7110 (dot_all_scops_1): Rename scop->region to scop->scop_info.
7111 (scop_detection::nb_pbbs_in_loops): Same.
7112 (find_scop_parameters): Same.
7113 (try_generate_gimple_bb): Same.
7114 (gather_bbs::before_dom_children): Same.
7115 (gather_bbs::after_dom_children): Same.
7116 (build_scops): Same.
7117 * graphite-sese-to-poly.c (build_scop_scattering): Same.
7118 (extract_affine_chrec): Same.
7119 (extract_affine): Same.
7120 (set_scop_parameter_dim): Same.
7121 (build_loop_iteration_domains): Same.
7122 (create_pw_aff_from_tree): Same.
7123 (add_param_constraints): Same.
7124 (build_scop_iteration_domain): Same.
7125 (build_scop_drs): Same.
7126 (analyze_drs_in_stmts): Same.
7127 (insert_out_of_ssa_copy_on_edge): Same.
7128 (rewrite_close_phi_out_of_ssa):Same.
7129 (rewrite_reductions_out_of_ssa):Same.
7130 (handle_scalar_deps_crossing_scop_limits):Same.
7131 (rewrite_cross_bb_scalar_deps):Same.
7132 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
7133 (build_poly_scop):Same.
7134 (build_alias_set): Use pointer to dr_info.
7135 * graphite.c (print_graphite_scop_statistics):
7136 (graphite_transform_loops):
7137 * sese.h (struct sese_l): Remove conversion constructor.
7139 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7142 * tree.c (verify_type): Verify that TYPE_MODE match
7143 between TYPE_CANONICAL and type.
7144 * expr.c (store_expr_with_bounds): Revert my previous change.
7145 * expmed.c (store_bit_field_1): Revert prevoius change.
7146 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
7147 to match for all types.
7149 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
7151 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
7154 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
7156 * doc/tm.texi: Regenerated.
7157 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
7158 * stor-layout.c (layout_type): Use mode to get vector mask size.
7159 * target.def (get_mask_mode): New.
7160 * targhooks.c (default_get_mask_mode): New.
7161 * targhooks.h (default_get_mask_mode): New.
7162 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
7164 * tree.c (MAX_BOOL_CACHED_PREC): New.
7165 (nonstandard_boolean_type_cache): New.
7166 (build_nonstandard_boolean_type): New.
7167 (make_vector_type): Vector mask has no canonical type.
7168 (build_truth_vector_type): New.
7169 (build_same_sized_truth_vector_type): New.
7170 (truth_type_for): Support vector masks.
7171 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
7172 (build_truth_vector_type): New.
7173 (build_same_sized_truth_vector_type): New.
7174 (build_nonstandard_boolean_type): New.
7175 * tree-cfg.c (verify_gimple_comparison) Require boolean
7176 vector type for vector comparison.
7177 (verify_gimple_assign_ternary): Likewise.
7178 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
7180 * tree-vect-stmts.c (vectorizable_condition): Use boolean
7181 vector type for vector comparison.
7182 * tree-vect-generic.c (elem_op_func): Add new operand to hold
7184 (do_unop): Adjust to modified function type.
7185 (do_binop): Likewise.
7186 (do_plus_minus): Likewise.
7187 (do_negate); Likewise.
7188 (expand_vector_piecewise): Likewise.
7189 (do_cond): Likewise.
7190 (do_compare): Use comparison instead of condition.
7191 (expand_vector_divmod): Use boolean vector type for comparison.
7192 (expand_vector_operations_1): Skip scalar mask operations.
7194 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
7196 * omp-low.c (simd_clone_create): Set in_other_partition
7199 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
7201 * doc/extend.exp (Local Register Variables): Rewrite.
7203 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7205 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
7206 and x*x in cases where the operands are sign ops. Extend these
7207 rules to handle copysign as a sign op (including for cos, cosh
7208 and pow, which already treated negate and abs as sign ops).
7210 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
7213 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
7214 for 64-bit MS_ABI targets also when default incoming stack boundary
7217 2015-10-21 Richard Biener <rguenther@suse.de>
7219 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
7220 cond stmts, enhanced and split out from ...
7221 (vn_phi_eq): ... here.
7223 2015-10-21 Richard Biener <rguenther@suse.de>
7226 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
7227 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
7228 (tree_single_nonnegative_warnv_p): ... here. For SSA names
7229 make sure they are not registered for update.
7231 2015-10-21 Richard Biener <rguenther@suse.de>
7233 PR tree-optimization/68026
7234 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
7235 unsigned VARYING values.
7237 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
7239 * asan.c (asan_emit_stack_protection): Don't pass local stack to
7240 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
7241 NULL and use local stack than.
7242 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
7243 in addition to __asan_init.
7244 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
7245 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
7246 * asan.h (asan_intercepted_p): Handle new string builtins.
7247 * ubsan.c (ubsan_use_new_style_p): New function.
7248 (ubsan_instrument_float_cast): If location is unknown, assign
7249 input_location to loc. Propagate loc to ubsan_create_data if
7250 ubsan_use_new_style_p returned true.
7252 2015-10-21 Jeff Law <law@redhat.com>
7254 * Makefile.in (OBJS): Remove sched-vis.c
7255 * sched-vis.c: Removed. Code moved into...
7256 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
7257 * rtl.h: Remove prototypes for functions now living in print-rtl.c
7258 * print-rtl.h Add prototypes for new functions in print-rtl.c.
7259 * auto-inc-dec.c: Include print-rtl.h
7260 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
7261 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
7263 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
7266 2015-10-21 Richard Biener <rguenther@suse.de>
7267 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7269 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
7271 Move (a * (1 << b)) is (a << b) to match.pd.
7272 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
7273 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
7274 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
7276 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
7278 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
7279 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
7280 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
7282 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
7284 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
7286 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
7287 Szabolcs Nagy <szabolcs.nagy@arm.com>
7288 Alan Modra <amodra@gmail.com>
7290 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
7291 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
7292 (LINK_SPEC): Add %(link_secure_plt).
7293 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
7294 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
7296 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
7297 Szabolcs Nagy <szabolcs.nagy@arm.com>
7299 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
7300 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
7302 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7304 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
7306 (fusion_load_store): Use it.
7307 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
7308 ldp and stp in VD modes.
7309 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
7310 (store_pair<mode>, VD): Likewise.
7312 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
7314 PR rtl-optimization/67609
7315 * lra-splill.c (lra_final_code_change): Don't remove all
7318 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7320 * simplify-rtx.c (simplify_binary_operation): If either operand was
7321 a constant pool reference use them if all other simplifications failed.
7323 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7325 * config/aarch64/aarch64.md
7326 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
7327 * config/aarch64/aarch64-simd.md
7328 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
7329 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
7330 (aarch64_fpconst_pow_of_2): New function.
7331 (aarch64_vec_fpconst_pow_of_2): Likewise.
7332 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
7334 (aarch64_vec_fpconst_pow_of_2): Likewise.
7335 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
7336 (aarch64_fp_vec_pow2): Likewise.
7338 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
7340 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
7341 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
7342 * config/alpha/alpha.c (alpha_function_arg_advance): Update
7343 ALPHA_ARG_SIZE usage.
7344 (alpha_arg_partial_bytes): Ditto.
7346 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
7349 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
7350 error_mark_node decls.
7352 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
7356 * common/config/i386/i386-common.c (ix86_handle_option): Remove
7357 OPT_miamcu handling.
7358 * config/i386/i386.c (PTA_NO_80387): New macro.
7359 (processor_alias_table): Add PTA_NO_80387 to lakemont.
7360 (ix86_option_override_internal): Update MASK_80387 from
7361 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
7362 SSE math only if 80387 is supported. Don't change
7364 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
7366 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
7367 if TARGET_80387 is true and TARGET_IAMCU is false.
7368 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
7369 is true and TARGET_IAMCU_P is false.
7371 2015-10-20 Richard Biener <rguenther@suse.de>
7373 PR tree-optimization/68017
7374 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
7376 2015-10-20 Martin Liska <mliska@suse.cz>
7378 * cgraphclones.c (cgraph_node::create_virtual_clone):
7379 Verify cgraph_node.local.versionable instead of calling
7380 tree_versionable_function_p.
7381 * ipa-cp.c (determine_versionability): Save the information
7382 to ipa_node_params summary.
7383 (ipcp_versionable_function_p): Use it.
7384 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
7385 (ipcp_generate_summary): Do not compute cgraph_node
7387 * ipa-inline-analysis.c (inline_generate_summary): Compute
7388 versionability for all cgraph nodes.
7389 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
7390 ipa_node_params::versionability.
7391 * ipa-prop.h (struct ipa_node_params): Declare it.
7393 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7396 * varasm.c (assemble_variable): Move special vtv handling to..
7397 (handle_vtv_comdat_sections): .. here. New function.
7398 (output_object_block): Handle vtv sections.
7400 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
7403 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
7405 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
7407 * doc/extend.texi: Update documentation WRT inline functions.
7409 2015-10-20 Alan Modra <amodra@gmail.com>
7412 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
7413 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
7414 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
7416 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
7418 PR rtl-optimization/66790
7419 * df.h (DF_MIR): New macro.
7420 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
7421 (DF_MIR_INFO_BB): New macro.
7422 (DF_MIR_IN, DF_MIR_OUT): New macros.
7423 (struct df_mir_bb_info): New.
7424 (df_mir): New macro.
7425 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
7427 (df_mir_get_bb_info): New.
7428 * df-problems.c (struct df_mir_problem_data): New.
7429 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
7430 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
7431 df_mir_confluence_0, df_mir_confluence_n,
7432 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
7433 df_mir_bottom_dump, df_mir_verify_solution_start,
7434 df_mir_verify_solution_end): New.
7436 (df_mir_add_problem, df_mir_simulate_one_insn): New.
7437 * timevar.def (TV_DF_MIR): New.
7438 * ree.c: Include bitmap.h
7439 (add_removable_extension): Add an INIT_REGS parameter. Use it
7440 to skip zero-extensions that may get an uninitialized register.
7441 (find_removable_extensions): Compute must-initialized registers
7442 using the MIR dataflow problem. Update the call to
7443 add_removable_extension.
7444 (find_and_remove_re): Call df_mir_add_problem.
7446 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
7448 * common/config/mn10300/mn10300-common.c
7449 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
7450 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
7452 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
7454 * doc/extend.texi (Explicit Register Variables): Simplify and
7455 avoid unnecessary and confusion abbreviations. Update cross
7457 doc/implement-c.tex: Update cross reference.
7459 2015-10-19 Jeff Law <law@redhat.com>
7461 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
7462 that create irreducible loops unless the path elimiantes a multiway
7465 2015-10-19 Richard Biener <rguenther@suse.de>
7467 PR tree-optimization/67975
7468 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
7469 * tree-cfg.c (extract_true_false_controlled_edges): Split out
7470 core worker from ...
7471 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
7472 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
7473 instead of block number for PHIs with two or one args.
7474 (vn_phi_eq): Compare edge predicates of PHIs that are in different
7477 2015-10-19 Richard Biener <rguenther@suse.de>
7479 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
7480 (gimple_stmt_nonnegative_warnv_p): Use it.
7481 * match.pd (CPROJ): New operator list.
7482 (cproj (complex ...)): Move simplifications from ...
7483 * builtins.c (fold_builtin_cproj): ... here.
7485 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
7487 * config/i386/i386.c (ix86_expand_vector_move): Use
7488 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
7491 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
7493 * doc/invoke.texi: Replace @optindex with @opindex.
7495 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
7498 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
7499 arch= is set, clear all bits in x_ix86_isa_flags, except for
7500 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
7502 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
7505 * common.opt (fkeep-static-functions): New option.
7506 * doc/invoke.texi: Document it.
7507 * cgraphunit.c (cgraph_node::finalize_function): Use it.
7509 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7511 * sched-int.h (struct autopref_multipass_data_): Remove offset
7512 field. Add min_offset, max_offset, multi_mem_insn_p fields.
7513 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
7514 (autopref_multipass_init): Use it. Handle PARALLEL sets.
7515 (autopref_rank_data): New function.
7516 (autopref_rank_for_schedule): Use it.
7517 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
7519 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
7522 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
7524 2015-10-18 Iain Sandoe <iain@codesourcery.com>
7526 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
7527 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
7528 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
7529 (STANDARD_STARTFILE_PREFIX_1): New.
7530 (STANDARD_STARTFILE_PREFIX_2): New.
7532 2015-10-18 Iain Sandoe <iain@codesourcery.com>
7534 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
7535 (darwin_driver_init): Note a version-min when provided on the c/l.
7536 * config/darwin.h (%darwin_minversion): Remove.
7537 * config/i386/darwin.h: Likewise.
7538 * config/rs6000/darwin.h: Likewise.
7539 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
7540 rather than an arbitrary constant.
7542 2015-10-18 Iain Sandoe <iain@codesourcery.com>
7544 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
7545 PPC, detect conflicts between -arch and multilib settings. Detect
7546 and warn about conflicts between multiple -arch definitions.
7548 2015-10-18 Iain Sandoe <iain@codesourcery.com>
7550 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
7552 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7554 * lra-constraints.c (add_next_usage_insn): Change argument type
7555 from rtx to rtx_insn *.
7557 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
7559 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
7562 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
7564 * config/tilepro/gen-mul-tables.cc: Adjust include files.
7565 * config/tilegx/mul-tables.c: Regenerate.
7566 * config/tilepro/mul-tables.c: Regenerate.
7568 * config/tilegx/tilegx-c.c: Adjust include files.
7569 * config/tilegx/tilegx.c: Likewise.
7570 * config/tilepro/tilepro-c.c: Likewise.
7571 * config/tilepro/tilepro.c: Likewise.
7572 * config/aarch64/aarch64-builtins.c: Likewise.
7573 * config/aarch64/aarch64.c: Likewise.
7574 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7575 * config/alpha/alpha.c: Likewise.
7576 * config/arc/arc.c: Likewise.
7577 * config/arm/aarch-common.c: Likewise.
7578 * config/arm/arm-builtins.c: Likewise.
7579 * config/arm/arm-c.c: Likewise.
7580 * config/arm/arm.c: Likewise.
7581 * config/avr/avr-c.c: Likewise.
7582 * config/avr/avr-devices.c: Likewise.
7583 * config/avr/avr-log.c: Likewise.
7584 * config/avr/avr.c: Likewise.
7585 * config/bfin/bfin.c: Likewise.
7586 * config/c6x/c6x.c: Likewise.
7587 * config/cr16/cr16.c: Likewise.
7588 * config/cris/cris.c: Likewise.
7589 * config/darwin-c.c: Likewise.
7590 * config/darwin-driver.c: Likewise.
7591 * config/darwin.c: Likewise.
7592 * config/default-c.c: Likewise.
7593 * config/epiphany/epiphany.c: Likewise.
7594 * config/epiphany/mode-switch-use.c: Likewise.
7595 * config/epiphany/resolve-sw-modes.c: Likewise.
7596 * config/fr30/fr30.c: Likewise.
7597 * config/frv/frv.c: Likewise.
7598 * config/ft32/ft32.c: Likewise.
7599 * config/glibc-c.c: Likewise.
7600 * config/h8300/h8300.c: Likewise.
7601 * config/i386/host-cygwin.c: Likewise.
7602 * config/i386/host-mingw32.c: Likewise.
7603 * config/i386/i386-c.c: Likewise.
7604 * config/i386/i386.c: Likewise.
7605 * config/i386/msformat-c.c: Likewise.
7606 * config/i386/winnt-cxx.c: Likewise.
7607 * config/i386/winnt-stubs.c: Likewise.
7608 * config/i386/winnt.c: Likewise.
7609 * config/ia64/ia64-c.c: Likewise.
7610 * config/ia64/ia64.c: Likewise.
7611 * config/iq2000/iq2000.c: Likewise.
7612 * config/lm32/lm32.c: Likewise.
7613 * config/m32c/m32c-pragma.c: Likewise.
7614 * config/m32c/m32c.c: Likewise.
7615 * config/m32r/m32r.c: Likewise.
7616 * config/mcore/mcore.c: Likewise.
7617 * config/mep/mep-pragma.c: Likewise.
7618 * config/mep/mep.c: Likewise.
7619 * config/microblaze/microblaze-c.c: Likewise.
7620 * config/microblaze/microblaze.c: Likewise.
7621 * config/mips/mips-tables.opt
7622 * config/mips/mips.c: Likewise.
7623 * config/mmix/mmix.c: Likewise.
7624 * config/mn10300/mn10300.c: Likewise.
7625 * config/moxie/moxie.c: Likewise.
7626 * config/msp430/msp430-c.c: Likewise.
7627 * config/msp430/msp430.c: Likewise.
7628 * config/nds32/nds32-cost.c: Likewise.
7629 * config/nds32/nds32-fp-as-gp.c: Likewise.
7630 * config/nds32/nds32-intrinsic.c: Likewise.
7631 * config/nds32/nds32-isr.c: Likewise.
7632 * config/nds32/nds32-md-auxiliary.c: Likewise.
7633 * config/nds32/nds32-memory-manipulation.c: Likewise.
7634 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7635 * config/nds32/nds32-predicates.c: Likewise.
7636 * config/nds32/nds32.c: Likewise.
7637 * config/nios2/nios2.c: Likewise.
7638 * config/nvptx/mkoffload.c: Likewise.
7639 * config/nvptx/nvptx.c: Likewise.
7640 * config/pa/pa.c: Likewise.
7641 * config/pdp11/pdp11.c: Likewise.
7642 * config/rl78/rl78-c.c: Likewise.
7643 * config/rl78/rl78.c: Likewise.
7644 * config/rs6000/host-darwin.c: Likewise.
7645 * config/rs6000/rs6000-c.c: Likewise.
7646 * config/rs6000/rs6000-linux.c: Likewise.
7647 * config/rs6000/rs6000.c: Likewise.
7648 * config/rx/rx.c: Likewise.
7649 * config/s390/s390-c.c: Likewise.
7650 * config/s390/s390.c: Likewise.
7651 * config/sh/sh-c.c: Likewise.
7652 * config/sh/sh-mem.cc: Likewise.
7653 * config/sh/sh.c: Likewise.
7654 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7655 * config/sh/sh_treg_combine.cc: Likewise.
7656 * config/sol2-c.c: Likewise.
7657 * config/sol2-cxx.c: Likewise.
7658 * config/sol2-stubs.c: Likewise.
7659 * config/sol2.c: Likewise.
7660 * config/sparc/sparc-c.c: Likewise.
7661 * config/sparc/sparc.c: Likewise.
7662 * config/spu/spu-c.c: Likewise.
7663 * config/spu/spu.c: Likewise.
7664 * config/stormy16/stormy16.c: Likewise.
7665 * config/v850/v850-c.c: Likewise.
7666 * config/v850/v850.c: Likewise.
7667 * config/vax/vax.c: Likewise.
7668 * config/visium/visium.c: Likewise.
7669 * config/vms/vms-c.c: Likewise.
7670 * config/vms/vms.c: Likewise.
7671 * config/vxworks.c: Likewise.
7672 * config/winnt-c.c: Likewise.
7673 * config/xtensa/xtensa.c: Likewise.
7675 2015-10-16 Christian Bruel <christian.bruel@st.com>
7678 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
7679 (FUNCTION_BOUNDARY_P): New macro:
7680 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
7682 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
7683 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
7684 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
7685 * function.c (allocate_struct_function): Call
7686 relayout_function hook.
7687 * passes.c (rest_of_decl_compilation): Likewise.
7689 2015-10-16 Christian Bruel <christian.bruel@st.com>
7692 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
7693 * config/arm/arm.c (arm_option_override_internal): Call
7694 arm_override_options_after_change_1.
7695 (arm_override_options_after_change): New function.
7696 (arm_override_options_after_change_1): Likewise.
7697 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
7699 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7702 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
7705 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
7707 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
7708 argument is an ADDR_EXPR.
7710 2015-10-16 Richard Biener <rguenther@suse.de>
7712 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
7713 and get rid of force_gimple_operand_gsi.
7714 (gimple_fold_builtin_memory_chk): Likewise.
7715 (gimple_fold_builtin_stxcpy_chk): Likewise.
7716 (rewrite_to_defined_overflow): Likewise.
7717 (gimple_convert_to_ptrofftype): New function.
7718 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
7720 2015-10-16 Richard Biener <rguenther@suse.de>
7722 * tree-nested.h (build_addr): Adjust prototype.
7723 * tree-nested.c (build_addr): Remove context argument and use
7725 (get_static_chain): Adjust calls to build_addr.
7726 (convert_nl_goto_reference): Likewise.
7727 (convert_tramp_reference_op): Likewise.
7728 (finalize_nesting_tree_1): Likewise.
7729 * value-prof.c (gimple_ic): Likewise.
7730 * gimple-low.c (lower_builtin_setjmp): Likewise.
7731 * tree-parloops.c (take_address_of): Likewise.
7732 (create_call_for_reduction_1): Likewise.
7733 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
7734 (gimple_gen_ic_func_profiler): Likewise.
7736 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7738 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
7741 2015-10-16 Michael Collison <michael.collison@linaro.org>
7742 Andrew Pinski <andrew.pinski@caviumnetworks.com>
7744 * match.pd ((x < y) && (x < z) -> x < min (y,z),
7745 (x > y) and (x > z) -> x > max (y,z))
7747 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
7748 Szabolcs Nagy <szabolcs.nagy@arm.com>
7750 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
7751 (DYNAMIC_LINKER): Renamed to ...
7752 (GLIBC_DYNAMIC_LINKER): This.
7753 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
7755 2015-10-15 Marek Polacek <polacek@redhat.com>
7757 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
7758 gimple_call_builtin instead of is_gimple_call.
7760 2015-10-15 Richard Biener <rguenther@suse.de>
7762 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
7764 2015-10-15 Richard Biener <rguenther@suse.de>
7766 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
7767 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
7768 * tree-vect-loop.c (get_initial_def_for_induction): Drop
7769 use of force_gimple_operand in favor of gimple_build.
7770 Use vect_get_new_ssa_name.
7771 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
7772 (vectorizable_mask_load_store): Likewise.
7773 (vectorizable_call): Likewise.
7774 (vectorizable_store): Likewise.
7775 (vectorizable_load): Likewise.
7776 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
7778 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
7780 PR tree-optimization/67945
7781 * tree-pass.h (PROP_gimple_opt_math): New property flag.
7782 * generic-match-head.c (canonicalize_math_p): New function.
7783 * gimple-match-head.c: Include tree-pass.h.
7784 (canonicalize_math_p): New function.
7785 * match.pd: Group math built-in rules into simplifications
7786 and canonicalizations. Guard the latter with canonicalize_math_p.
7787 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
7788 PROP_gimple_opt_math property.
7790 2015-10-15 Marek Polacek <polacek@redhat.com>
7792 PR tree-optimization/67953
7793 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
7795 2015-10-15 Jiong Wang <jiong.wang@arm.com>
7797 * config.gcc: Recognize "." in architecture base name for AArch64.
7799 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
7801 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
7803 * config/mips/mips.c (mips_setup_incoming_varargs): Use
7804 ROUND_DOWN to calculate off.
7805 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
7806 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
7809 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
7811 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
7813 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
7814 Torvald Riegel <triegel@redhat.com>
7817 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
7818 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
7819 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
7820 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
7821 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
7822 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
7823 trechkpt, treclaim, tsr, ttest): New define_expands.
7824 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
7825 __TM_FENCE__ for htm.
7826 * doc/extend.texi: Update documentation for htm builtins.
7828 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
7831 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
7832 REG_CFA_EXPRESSION to aligned SSE stores.
7834 2015-10-14 Jeff Law <law@redhat.com>
7836 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
7837 num_threaded_edges for successful FSM threads too.
7839 2015-10-14 Richard Biener <rguenther@suse.de>
7841 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
7842 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
7843 (vect_get_vec_def_for_operand): Remove unused parameter.
7844 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
7845 (vect_create_epilog_for_reduction): Likewise.
7846 (vectorizable_reduction): Likewise.
7847 (vectorizable_live_operation): Likewise.
7848 * tree-vect-patterns.c (type_conversion_p): Likewise.
7849 (vect_recog_vector_vector_shift_pattern): Likewise.
7850 (check_bool_pattern): Likewise.
7851 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
7852 (vect_analyze_slp_cost_1): Likewise.
7853 * tree-vect-stmts.c (process_use): Likewise.
7854 (vect_get_vec_def_for_operand): Do not handle reductions.
7855 (vect_get_vec_defs): Adjust.
7856 (vectorizable_mask_load_store): Likewise.
7857 (vectorizable_call): Likewise.
7858 (vectorizable_simd_clone_call): Likewise.
7859 (vect_get_loop_based_defs): Likewise.
7860 (vectorizable_conversion): Likewise.
7861 (vectorizable_assignment): Likewise.
7862 (vectorizable_shift): Likewise.
7863 (vectorizable_operation): Likewise.
7864 (vectorizable_store): Likewise.
7865 (vectorizable_load): Likewise.
7866 (vect_is_simple_cond): Likewise.
7867 (vectorizable_condition): Likewise.
7868 (vect_is_simple_use): Remove unused parameters.
7869 (vect_is_simple_use_1): Adjust and rename.
7871 2015-10-14 Richard Biener <rguenther@suse.de>
7873 PR tree-optimization/67915
7874 * match.pd: Handle comparisons of addresses of STRING_CSTs.
7875 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
7876 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
7877 stmt folding in favor of GIMPLE one.
7879 2015-10-14 Marek Polacek <polacek@redhat.com>
7881 PR tree-optimization/67815
7882 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
7883 (reassociate_bb): Call it.
7885 2015-10-14 Richard Biener <rguenther@suse.de>
7887 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7888 Reset info at start.
7889 (vect_analyze_group_access_1): Add debug print.
7890 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
7891 (vect_compute_single_scalar_iteration_cost): ... to this.
7892 (vect_analyze_loop_2): Adjust.
7893 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
7894 * tree-vectorizer.h: ... here.
7895 (add_stmt_info_to_vec): Remove.
7896 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
7898 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
7900 * targhooks.c (default_target_option_pragma_parse): Do not warn if
7901 called on behalf of "#pragma GCC pop_options".
7903 2015-10-14 Tom de Vries <tom@codesourcery.com>
7905 * cfganal.c (verify_no_unreachable_blocks): New function.
7906 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
7907 verify_no_unreachable_blocks.
7908 cfganal.h (verify_no_unreachable_blocks): Declare.
7910 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
7912 * common.opt: Add flag_checking.
7913 * system.h (CHECKING_P): Define.
7915 2015-10-13 Jakub Jelinek <jakub@redhat.com>
7916 Aldy Hernandez <aldyh@redhat.com>
7917 Ilya Verbin <ilya.verbin@intel.com>
7919 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
7920 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
7921 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
7922 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
7923 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
7924 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
7925 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
7926 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
7927 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
7928 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
7929 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
7930 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
7931 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
7932 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
7933 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
7934 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
7935 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
7936 (struct cgraph_simd_clone_arg): Adjust comment.
7937 * coretypes.h (struct gomp_ordered): New forward decl.
7938 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
7939 set critical clauses to it.
7940 (gimple_build_omp_ordered): Return gomp_ordered * instead of
7941 gimple *. Add CLAUSES argument, set ordered clauses to it.
7942 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
7944 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
7945 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
7946 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
7947 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
7948 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
7949 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
7950 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
7951 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
7953 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
7954 (gomp_critical): Add clauses field.
7955 (gomp_ordered): New struct.
7956 (is_a_helper <gomp_ordered *>::test): New inline.
7957 (gimple_build_omp_critical): Add CLAUSES argument.
7958 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
7959 instead of gimple *.
7960 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
7961 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
7962 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
7963 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
7965 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
7966 (dump_gimple_omp_target): Handle enter data and exit data.
7967 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
7968 (dump_gimple_omp_critical): Print clauses.
7969 (dump_gimple_omp_ordered): New function.
7970 (dump_gimple_omp_task): Handle taskloop.
7971 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
7973 * gimple-walk.c (walk_gimple_op): Walk clauses on
7974 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
7975 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
7976 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
7977 (struct gimplify_omp_ctx): Add loop_iter_var,
7978 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
7979 and target_firstprivatize_array_bases fields.
7980 (delete_omp_context): Release loop_iter_var.
7981 (gimplify_bind_expr): Handle ORT_NONE.
7982 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
7983 ORT_COMBINED_TARGET.
7984 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
7985 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
7986 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
7987 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
7988 ctx->target_map_scalars_firstprivate.
7989 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
7990 data sharing clauses. For data sharing clause with VLA decl
7991 on omp target/target data don't add firstprivate for the pointer.
7992 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
7993 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
7994 the addition of ORT_COMBINED_TARGET.
7995 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
7996 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
7997 pointers as zero length array sections and
7998 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
8000 (omp_check_private): Handle omp_member_access_dummy_var vars.
8001 (find_decl_expr): New function.
8002 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
8003 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
8004 Handle OMP_CLAUSE_GANG separately. Handle
8005 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8006 clauses. Diagnose linear clause on combined
8007 distribute {, parallel for} simd construct, unless it is the loop
8008 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
8009 Handle map clauses with COMPONENT_REF. Initialize
8010 ctx->target_map_scalars_firstprivate,
8011 ctx->target_firstprivatize_array_bases and
8012 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
8013 linear clause even to target region if combined. Remove
8014 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
8015 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
8016 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
8017 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
8018 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
8019 For linear clause on worksharing loop combined with parallel add
8020 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
8021 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
8022 omp_member_access_dummy_var vars. Add lastprivate clause to outer
8024 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
8025 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
8026 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
8028 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
8029 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
8030 in target body. Handle removal of struct mapping if struct is not
8031 seen in target body. Remove GOMP_MAP_STRUCT map clause on
8032 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
8033 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
8034 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
8035 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
8036 clause appear together. Handle
8037 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
8038 clause if it has map-type-modifier always. Handle
8039 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8041 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
8042 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
8044 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
8045 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
8046 iterators in doacross loops.
8047 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
8048 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
8049 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
8050 for the addition of ORT_COMBINED_TARGET.
8051 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
8052 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
8053 and OMP_TARGET_EXIT_DATA.
8054 (gimplify_omp_ordered): New function.
8055 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
8056 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
8057 Gimplify clauses on OMP_CRITICAL.
8058 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
8059 expand_GOMP_SIMD_ORDERED_END): New functions.
8060 * internal-fn.def (GOMP_SIMD_ORDERED_START,
8061 GOMP_SIMD_ORDERED_END): New internal functions.
8062 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
8063 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
8064 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
8065 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
8066 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
8067 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
8068 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
8069 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
8070 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
8071 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
8072 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
8073 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
8074 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
8075 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
8077 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
8078 GOMP_target_data_41, adjust type.
8079 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
8080 GOMP_target_update_41, adjust type.
8081 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
8083 (struct omp_for_data): Add ordered and simd_schedule fields.
8084 (omp_member_access_dummy_var, unshare_and_remap_1,
8085 unshare_and_remap, is_taskloop_ctx): New functions.
8086 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
8087 (extract_omp_for_data): Handle taskloops and doacross loops
8088 and simd schedule modifier.
8089 (omp_adjust_chunk_size): New function.
8090 (get_ws_args_for): Use it.
8091 (lookup_sfield): Change first argument to splay_tree_key,
8092 add overload with first argument tree.
8093 (maybe_lookup_field): Likewise.
8094 (use_pointer_for_field): Handle omp_member_access_dummy_var.
8095 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
8096 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
8097 (build_outer_var_ref): Add LASTPRIVATE argument, handle
8098 taskloops and omp_member_access_dummy_var vars.
8099 (build_sender_ref): Change first argument to splay_tree_key,
8100 add overload with first argument tree.
8101 (install_var_field): For mask & 8 use &DECL_UID as key instead
8103 (fixup_child_record_type): Const qualify *.omp_data_i.
8104 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
8105 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
8106 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
8107 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
8108 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
8109 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
8110 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
8112 (add_taskreg_looptemp_clauses): New function.
8113 (scan_omp_parallel): Use it.
8114 (scan_omp_task): Likewise.
8115 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
8116 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
8117 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
8118 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
8119 sandwiched taskloop constructs. Type check
8120 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
8121 region. Diagnose depend(source) or depend(sink:...) on
8122 target constructs or task/taskloop.
8123 (handle_simd_reference): Use get_name.
8124 (lower_rec_input_clauses): Likewise. Ignore all
8125 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
8126 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
8127 before passing it to omp_clause_{default,copy}_ctor. Handle
8128 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
8129 lastprivate_firstprivate flag for linear that needs copyin and
8130 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
8131 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
8132 on taskloop lookup decl in outer context. Pass true to
8133 build_outer_var_ref lastprivate argument. Handle
8134 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
8135 outside of outer taskloop for.
8136 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
8138 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
8139 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
8140 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
8141 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
8142 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
8143 abstract origin. Handle omp_member_access_dummy_var vars.
8144 (expand_parallel_call): Use expand_omp_build_assign.
8145 (expand_task_call): Handle taskloop construct expansion. Add
8146 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
8147 integers. Add priority argument to GOMP_task* calls. Or in
8148 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
8150 (expand_omp_build_assign): Add prototype. Add AFTER
8151 argument, if true emit statements after *GSI_P and continue linking.
8152 (expand_omp_taskreg): Adjust expand_task_call caller.
8153 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
8154 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
8155 zero_iter2_bb and first_zero_iter2 arguments, handle computation
8156 of counts even for ordered loops.
8157 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
8158 (expand_omp_ordered_source, expand_omp_ordered_sink,
8159 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
8161 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
8162 clauses on worksharing loop. Handle DOACROSS loop expansion.
8163 (expand_omp_for_static_nochunk): Handle linear clauses on
8164 worksharing loop. Adjust expand_omp_for_init_counts
8166 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
8167 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
8168 expand_omp_for_init_counts callers.
8169 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
8171 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
8172 Handle doacross loops.
8173 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8174 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
8175 GOMP_target_{41,update_41,enter_exit_data} libcalls.
8176 (expand_omp): Don't expand ordered depend constructs here, record
8177 ord_stmt instead for later expand_omp_for_generic.
8178 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8179 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
8180 clause as stand-alone directive.
8181 (lower_omp_ordered_clauses): New function.
8182 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
8183 don't lower anything.
8184 (lower_omp_for_lastprivate): Use last _looptemp_ clause
8185 on taskloop for comparison.
8186 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
8187 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
8188 expansion for linear adjustments.
8189 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
8190 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
8191 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
8192 to tree * pointing to the stmt's clauses.
8193 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
8194 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
8195 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
8196 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
8197 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
8198 clauses. Always use short kind and 8-bit align shift.
8199 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
8200 (struct lower_omp_regimplify_operands_data): New type.
8201 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
8203 (lower_omp_1): Use lower_omp_regimplify_operands instead of
8204 gimple_regimplify_operands.
8205 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8206 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
8207 clause as stand-alone directive.
8208 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
8209 (simd_clone_mangle): Mangle the various linear kinds
8211 (simd_clone_adjust_argument_types): Handle
8212 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
8213 (simd_clone_init_simd_arrays): Don't do anything for uval.
8214 (simd_clone_adjust): Handle
8215 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
8216 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
8217 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
8218 * omp-low.h (omp_member_access_dummy_var): New prototype.
8219 * passes.def (pass_simduid_cleanup): Schedule another copy of the
8220 pass after all optimizations.
8221 * tree.c (omp_clause_code_name): Add entries for
8222 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8223 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
8224 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
8225 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
8226 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
8227 OMP_CLAUSE_REDUCTION 5 arguments. Handle
8228 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8229 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
8231 * tree-core.h (enum omp_clause_linear_kind): New.
8232 (struct tree_omp_clause): Change type of map_kind
8233 from unsigned char to unsigned int. Add subcode.if_modifier
8234 and subcode.linear_kind fields.
8235 (enum omp_clause_code): Add
8236 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8237 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
8238 (OMP_CLAUSE_REDUCTION): Document
8239 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
8240 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
8241 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
8242 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
8244 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
8246 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
8248 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
8249 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
8251 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
8252 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
8253 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
8254 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
8255 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
8256 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
8257 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
8258 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
8259 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
8260 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
8261 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
8262 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
8263 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
8264 * tree-inline.c (remap_gimple_stmt): Handle clauses on
8265 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
8266 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
8267 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
8268 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
8269 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
8270 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
8271 (convert_local_omp_clauses): Likewise.
8272 * tree-pretty-print.c (dump_omp_clause): Handle
8273 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
8274 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
8275 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
8276 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
8277 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
8278 GOMP_MAP_FORCE_DEALLOC. Handle
8279 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
8280 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
8281 and clauses on OMP_ORDERED and OMP_CRITICAL.
8282 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
8283 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
8284 (vectorize_loops): Adjust comments.
8285 (pass_simduid_cleanup::execute): Likewise.
8286 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
8287 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
8288 * wide-int.h (wi::gcd): New.
8290 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
8292 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
8293 (ix86_function_arg_advance): Ditto.
8294 (ix86_function_arg): Ditto.
8295 (ix86_gimplify_va_arg): Ditto.
8296 (ix86_class_max_nregs): Ditto.
8297 (inline_memory_move_cost): Ditto.
8298 (ix86_set_reg_reg_cost): Ditto.
8299 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
8301 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
8304 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
8306 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
8308 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
8309 ROUND_UP macro and UNITS_PER_WORD * 2.
8310 * config/sparc/sparc.c (sparc_compute_frame_size):
8311 Use ROUND_UP and ROUND_DOWN macros where applicable.
8312 (function_arg_record_value, function_arg_record_value_1)
8313 (function_arg_record_value_1): Ditto.
8314 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
8315 alignment to double-word.
8316 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
8317 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
8320 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
8322 * rtl.h (print_insn): Fix prototype.
8324 2015-10-13 Tom de Vries <tom@codesourcery.com>
8326 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
8327 -1. Add assert that returned entry matches phi argument.
8328 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
8329 free_stmt_vec_info_vec ...
8330 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
8333 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
8335 PR tree-optimization/67909, 67947
8336 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
8337 really skip the inner loop.
8339 2015-10-13 Jeff Law <law@redhat.com>
8341 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8342 Allow single block jump threading paths.
8344 2015-10-13 Tom de Vries <tom@codesourcery.com>
8346 PR tree-optimization/67476
8347 * doc/invoke.texi (@item parloops-schedule): New item.
8348 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
8349 * tree-parloops.c: Include params-enum.h.
8350 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
8352 2015-10-13 Tom de Vries <tom@codesourcery.com>
8354 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
8355 * params-enum.h: New file.
8356 * opts.c (handle_param): Handle case that param arg is a string.
8357 * params-list.h: Handle DEFPARAMENUM5 in params.def.
8358 * params.c (find_param): New function, factored out of ...
8359 (set_param_value): ... here.
8360 (param_string_value_p): New function.
8361 * params.h (struct param_info): Add value_names field.
8362 (find_param, param_string_value_p): Declare.
8364 2015-10-13 Tom de Vries <tom@codesourcery.com>
8366 PR tree-optimization/67476
8367 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
8369 2015-10-13 Richard Biener <rguenther@suse.de>
8371 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
8372 the data dependence vector.
8373 (vect_peeling_hash_insert): Get the peeling hash table as argument.
8374 (vect_peeling_hash_get_lowest_cost): Likewise.
8375 (vect_enhance_data_refs_alignment): Adjust.
8376 (struct _vect_peel_info, struct _vect_peel_extended_info,
8377 struct peel_info_hasher): Move from ...
8378 * tree-vectorizer.h: ... here.
8379 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
8380 (LOOP_VINFO_PEELING_HTAB): Likewise.
8381 (struct _loop_vec_info): Remove min_profitable_iters and
8382 peeling_htab members.
8383 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
8385 (destroy_loop_vec_info): Adjust.
8386 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
8387 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
8388 to estimate alias versioning cost.
8389 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
8391 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
8393 * real.h (real_isinteger): Declare.
8394 * real.c (real_isinteger): New function.
8395 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
8396 if y is an even integer.
8398 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8401 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8402 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
8403 counts when these are more informative.
8405 2015-10-12 Jeff Law <law@redhat.com>
8407 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
8408 (fsm_find_control_stmt_paths): Change name of first argument to
8409 more accurately relfect what it really is. Handle simplification
8410 of GIMPLE_COND after finding a thread path for NAME.
8411 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
8412 nontrivial conditions to be handled by FSM threader.
8413 (thread_through_normal_block): Extract the name to looup via
8414 FSM threader from COND_EXPR.
8416 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
8417 restriction that traced SSA_NAME is a user variable.
8419 2015-10-12 Tom de Vries <tom@codesourcery.com>
8421 PR tree-optimization/67476
8422 * omp-low.c (expand_omp_for_generic): Add missing phis.
8424 2015-10-12 Tom de Vries <tom@codesourcery.com>
8426 PR tree-optimization/67476
8427 * omp-low.c (expand_omp_for_generic): Handle simple latch.
8429 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
8431 * config/aarch64/aarch64-simd-builtins.def: Update builtins
8432 tables: add tbl3 and tbx4.
8433 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
8434 (aarch64_tbx4v8qi): New.
8435 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
8436 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
8437 Rewrite using builtin functions.
8438 * config/aarch64/iterators.md (UNSPEC_TBX): New.
8440 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
8442 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
8444 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
8445 Use ROUND_UP and ROUND_DOWN macros where applicable.
8446 (rs6000_darwin64_record_arg_flush): Ditto.
8447 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
8448 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
8451 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
8453 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
8454 (AARCH64_ROUND_DOWN): Ditto.
8455 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
8457 2015-10-12 Richard Biener <rguenther@suse.de>
8460 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
8461 code that analyzes IVs on each stmt but in a cheaper way avoiding
8464 2015-10-12 Nick Clifton <nickc@redhat.com>
8466 * config/msp430/msp430.c (msp430_mcu_names): Rename to
8467 msp430_mcu_data, add fields for ISA and hardware multiply
8468 support. Import latest data from the devices.csv file.
8469 (msp430_override_option): Use the data from the new array.
8470 (msp430_use_f5_series_hwmult): Likewise.
8471 (use_32bit_hwmult): Likewise.
8472 (msp430_no_hwmult): Likewise.
8473 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
8475 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
8476 not recognised then no hardware multiply support is assumed and
8477 that only the MSP430 ISA is allowed.
8479 2015-10-12 Richard Biener <rguenther@suse.de>
8481 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
8483 (vect_analyze_loop_2): ... here.
8485 2015-10-11 Jason Merrill <jason@redhat.com>
8488 * expr.c (store_field): Call store_constructor directly when
8489 storing a CONSTRUCTOR into a target smaller than its type.
8490 Guard against unsafe bitwise copy.
8492 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8494 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
8495 counts when these are more informative.
8497 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8499 * tree-profile.c (tree_profiling): Do not clear
8500 pure/const when not instrumenting.
8501 (pass tree_profile): Add dump of symtab.
8503 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8505 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
8507 (fold_addr_of_array_ref_difference): Likewise.
8509 2015-10-11 Jeff Law <law@redhat.com>
8511 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
8512 tree-ssa-threadbackward.c.
8513 (fsm_find_control_statement_thread_paths): Likewise.
8514 (thread_through_normal_block): Break out FSM bits and move them
8515 into a new function in tree-ssa-threadbackward.c. Call new function
8517 Minimize header file usage.
8518 * tree-ssa-threadbackward.h: New file.
8519 * tree-ssa-threadbackward.c: Likewise.
8520 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
8522 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
8524 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
8526 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
8528 PR rtl-optimization/67864
8529 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
8530 fallthrough edges for conditional jumps. Don't sort candidate
8531 edges if not optimizing for speed.
8533 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8535 * defaults.h (REVERSE_CONDITION): New default definition.
8536 * jump.c (reversed_comparison_code_parts): Adjust.
8538 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8540 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
8541 check HARD_FRAME_POINTER_IS_ARG_POINTER.
8543 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8545 * defaults.h (FRAME_ADDR_RTX): New default definition.
8546 * builtins.c (expand_builtin_return_addr): Adjust.
8548 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8550 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
8551 * builtins.c (expand_builtin_return_addr): Adjust.
8553 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8555 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
8556 * builtins.c (expand_builtin_return_addr): Adjust.
8557 * doc/tm.texi: Likewise.
8558 * doc/tm.texi.in: Likewise.
8559 * except.c (expand_builtin_unwind_init): Likewise.
8561 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8563 * builtins.c (expand_builtin_return_addr): Adjust.
8564 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
8566 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
8568 * tree.c (type_with_interoperable_signedness): New.
8569 (gimple_canonical_types_compatible_p): Use it.
8570 * tree.h (type_with_interoperable_signedness): Declare
8572 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
8574 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
8575 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
8576 when OEP_ADDRESS_OF is se.
8578 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
8579 Sebastian Pop <s.pop@samsung.com>
8581 * graphite-dependences.c (scop_get_dependences): Add dump of the
8582 data dependence graph.
8583 * graphite-poly.c (print_isl_union_map): New.
8584 (debug_isl_union_map): New.
8585 * graphite-poly.h (print_isl_union_map): Declare.
8586 (debug_isl_union_map): Declare.
8588 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
8589 Sebastian Pop <s.pop@samsung.com>
8591 * graphite-poly.c (print_iteration_domain): Remove verbosity.
8592 Remove OpenScop formatting.
8593 (print_iteration_domains): Same.
8594 (debug_iteration_domain): Same.
8595 (debug_iteration_domains): Same.
8598 (dump_gbb_cases): Same.
8599 (dump_gbb_conditions): Same.
8602 (print_pbb_body): Same.
8604 (print_scop_params): Same.
8605 (print_scop_context): Same.
8607 (debug_pbb_domain): Same.
8609 (debug_scop_context): Same.
8611 (debug_scop_params): Same.
8612 * graphite-poly.h: Same.
8613 * graphite.c (graphite_transform_loops): Same.
8615 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8617 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
8618 call that isn't needed.
8620 2015-10-09 Jeff Law <law@redhat.com>
8622 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
8623 rather than moving each name to the freelist individually.
8625 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
8627 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
8628 * frame-header-opt.c: New file.
8629 * config/mips/mips-proto.h (mips_register_frame_header_opt):
8631 * config/mips/mips.c (mips_compute_frame_info): Check
8632 optimize_call_stack flag.
8633 (mips_option_override): Register new frame_header_opt pass.
8634 (mips_frame_info, mips_int_mask, mips_shadow_set,
8635 machine_function): Move these types to...
8636 * config/mips/mips.h: here.
8637 (machine_function): Add does_not_use_frame_header and
8638 optimize_call_stack fields.
8639 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
8640 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
8642 * config/mips/mips.opt (mframe-header-opt): Add new option.
8644 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
8646 * config/i386/i386.c
8647 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
8648 ROUND_DOWN where applicable.
8650 2015-10-09 Jeff Law <law@redhat.com>
8652 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
8655 2015-10-09 Renlin Li <renlin.li@arm.com>
8657 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
8658 operands[0] and operands[2].
8659 (neon_vtrn<mode>_insn): Likewise.
8660 (neon_vzip<mode>_insn): Likewise.
8662 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
8664 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
8665 ((X & C2) << C1): Expand to...
8666 (X {&,^,|} C2 << C1): ...This.
8667 ((X & C2) >> C1): Expand to...
8668 (X {&,^,|} C2 >> C1): ...This.
8670 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
8673 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
8674 Adjust embedded rounding/SAE specifier position.
8675 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
8676 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
8677 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
8678 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
8679 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
8681 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
8683 2015-10-09 Martin Jambor <mjambor@suse.cz>
8685 tree-optimization/67794
8686 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
8687 between types of state,ents but accept original definitions as a
8689 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
8690 iterate over definitions.
8692 2015-10-09 James Norris <jnorris@codesourcery.com>
8694 * config/rs6000/rs6000.c (rs6000_offload_options): New.
8695 (TARGET_OFFLOAD_OPTIONS): New.
8697 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
8700 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
8703 * function.c (expand_function_end): Move return value
8704 promotion past the handling of PARALLELs and CONCATs.
8706 PR rtl-optimization/67828
8707 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
8708 (tree_may_unswitch_on): Don't unswitch on expressions
8709 involving undefined values.
8711 2015-10-09 Richard Biener <rguenther@suse.de>
8713 * genmatch.c (print_operand): Fix formatting.
8714 (dt_node::append_simplify): Warn for multiple simplifiers
8715 that match the same pattern.
8716 * match.pd (log (exp @0)): Remove duplicates.
8718 2015-10-09 Richard Biener <rguenth@suse.de>
8721 * gimple-fold.c (optabs-query.h): Include
8722 (gimple_fold_builtin_memory_op): Allow unaligned stores
8723 when movmisalign_optabs are available.
8725 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8728 * config/arm/arm.md (movmisalign<mode>): New.
8729 * config/arm/iterators.md (HSI): New.
8731 2015-10-09 Richard Biener <rguenther@suse.de>
8733 PR tree-optimization/67891
8734 * gimple-match.h (gimple_simplified_result_is_gimple_val):
8736 (gimple_resimplify1): Declare.
8737 (gimple_resimplify2): Likewise.
8738 (gimple_resimplify3): Likewise.
8739 * gimple-match-head.c (gimple_resimplify1): Export.
8740 (gimple_resimplify2): Likewise.
8741 (gimple_resimplify3): Likewise.
8742 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
8743 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
8744 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
8745 to avoid creating stmts without VN info.
8747 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
8749 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
8752 2015-10-08 Jeff Law <law@redhat.com>
8754 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
8755 and release_ssa_name in two places.
8756 (gimple_stringop_fixed_value): Similarly.
8758 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
8761 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
8762 unlink_stmt_vdef and release_ssa_name_fn.
8764 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
8767 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
8769 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
8770 SSE register save area to 16 bytes only if the incoming stack
8771 boundary is no less than 16 bytes.
8773 2015-10-08 Jeff Law <law@redhat.com>
8775 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
8776 release_ssa_name. Fix typo in comment.
8778 2015-10-08 Nathan Sidwell <nathan@acm.org>
8780 * config/nvptx/nvptx.h (struct machine_function): Add comment.
8781 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
8782 may return pointer as well as in memory.
8783 (nvptx_output_return): Likewise.
8785 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
8787 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
8788 (fold_builtin_1): Update accordingly. Handle constant arguments here.
8789 * match.pd: Add rules previously handled by fold_builtin_sqrt
8790 and fold_builtin_cbrt.
8792 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
8794 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
8795 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
8796 * fold-const.h (tree_unary_nonnegative_warnv_p)
8797 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
8798 (tree_expr_nonnegative_warnv_p): Add depth parameters.
8799 * fold-const.c: Include gimple-fold.h and params.h.
8800 (tree_ssa_name_nonnegative_warnv_p): New function.
8801 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
8802 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
8803 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
8804 Add a depth parameter and increment it for recursive calls to
8805 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
8806 to handle SSA names.
8807 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
8808 (gimple_stmt_nonnegative_warnv_p): Declare.
8809 * tree-vrp.c (remove_range_assertions): Remove assert that condition
8810 cannot be proven false.
8811 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
8812 (gimple_stmt_nonnegative_warnv_p): Move to...
8813 * gimple-fold.c: ...here. Add depth parameters and pass them
8814 down to the tree routines. Accept statements that aren't
8815 assignments or calls but just return false for them.
8816 (gimple_val_nonnegative_real_p): Delete.
8817 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
8818 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
8819 Check HONOR_NANs first.
8821 2015-10-08 Martin Jambor <mjambor@suse.cz>
8823 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
8826 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
8828 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
8829 in the tail of outer-loop.
8831 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
8833 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
8836 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
8838 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
8839 "cfghooks.h", add prototypes for introduced new functions.
8840 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
8841 checks on ability of loop unswitching to tree_unswitch_single_loop;
8842 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
8843 on innermost loop check.
8844 (tree_unswitch_single_loop): Add all required checks on ability of
8845 loop unswitching under zero recursive level guard.
8846 (tree_unswitch_outer_loop): New function.
8847 (find_loop_guard): Likewise.
8848 (empty_bb_without_guard_p): Likewise.
8849 (used_outside_loop_p): Likewise.
8850 (get_vop_from_header): Likewise.
8851 (hoist_guard): Likewise.
8852 (check_exit_phi): Likewise.
8854 2015-10-08 Marek Polacek <polacek@redhat.com>
8856 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
8859 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8862 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
8863 create_tmp_var_raw instead of create_tmp_var.
8865 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
8867 * expr.c (store_expr_with_bounds): Handle aggregate moves from
8869 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
8870 to define gimple type system; compare aggregates only by size.
8872 2015-10-07 Jeff Law <law@redhat.com>
8874 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
8875 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
8876 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
8879 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
8880 Sebastian Pop <s.pop@samsung.com>
8882 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
8883 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
8884 (generate_isl_schedule): Same.
8885 * graphite-optimize-isl.c (scop_get_domains): Same.
8886 (apply_schedule_map_to_scop): Same.
8887 * graphite-poly.c (print_iteration_domains): Same.
8888 (remove_gbbs_in_scop): Same.
8892 * graphite-poly.h (struct scop): Rename bbs to pbbs.
8894 * graphite-scop-detection.c (compare_bb_depths): Remove.
8895 (graphite_sort_dominated_info): Remove.
8896 (try_generate_gimple_bb): Move out of scop_detection.
8897 (all_non_dominated_preds_marked_p): Remove.
8898 (build_scop_bbs_1): Remove.
8899 (build_scop_bbs): Remove.
8900 (nb_pbbs_in_loops): Do not use SCOP_BBS.
8901 (find_scop_parameters): Same.
8902 (sese_dom_walker): Rename gather_bbs.
8903 (before_dom_children): Call try_generate_gimple_bb and collect gbb
8905 (build_scops): Call gather_bbs.
8906 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
8907 (add_conditions_to_constraints): Same.
8908 (build_scop_iteration_domain): Same.
8909 (build_scop_drs): Same.
8910 (new_pbb_from_pbb): Same.
8911 * sese.c (new_sese_info): Create bbs.
8912 * sese.h (struct sese_info_t): Add bbs.
8914 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
8916 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
8917 encoding in 64-bit mode.
8919 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
8922 * config/i386/i386.c (ix86_option_override_internal): Always use
8923 8-byte minimum stack boundary in 64-bit mode.
8924 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
8925 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
8926 Add a REG_CFA_EXPRESSION note if needed.
8927 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
8928 (ix86_handle_force_align_arg_pointer_attribute): New.
8929 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
8930 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
8931 with ix86_handle_force_align_arg_pointer_attribute.
8932 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
8934 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
8935 Sebastian Pop <s.pop@samsung.com>
8937 * graphite-scop-detection.c (parameter_index_in_region): Remove
8938 use of SESE_ADD_PARAMS.
8939 (find_scop_parameters): Same.
8940 * sese.c (new_sese_info): Same.
8941 * sese.h (struct sese_info_t): Remove add_params.
8942 (SESE_ADD_PARAMS): Remove.
8944 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
8945 Sebastian Pop <s.pop@samsung.com>
8947 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
8950 (copy_internal_parameters): Same.
8951 (translate_isl_ast_to_gimple): Use an sese_l.
8952 (build_iv_mapping): Same.
8953 * graphite-poly.c (new_sese): Rename new_sese_info.
8954 (free_sese): Rename free_sese_info.
8955 * graphite-poly.h (struct scop): Use an sese_info_p.
8956 (scop_set_region): Same.
8957 * graphite-scop-detection.c (struct sese_l): Moved...
8958 (get_entry_bb): Moved...
8959 (get_exit_bb): Moved...
8960 (parameter_index_in_region_1): Use an sese_info_p.
8961 (parameter_index_in_region): Same.
8962 (scan_tree_for_params): Same.
8963 (find_params_in_bb): Same.
8964 (sese_dom_walker): Use an sese_l.
8965 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
8966 (reduction_phi_p): Same.
8967 (parameter_index_in_region_1): Use an sese_info_p.
8968 (propagate_expr_outside_region): Use an sese_l.
8969 * graphite.c: Replace uses of SCOP_REGION.
8970 * sese.c (sese_record_loop): Use an sese_info_p.
8971 (build_sese_loop_nests): Same.
8972 (sese_build_liveouts_use): Same.
8973 (sese_build_liveouts_bb): Same.
8974 (sese_build_liveouts_bb): Same.
8975 (sese_bad_liveouts_use): Same.
8976 (sese_reset_debug_liveouts_bb): Same.
8977 (sese_build_liveouts): Same.
8978 (new_sese): Renamed new_sese_info.
8979 (free_sese): Renamed free_sese_info.
8980 (set_rename): Use an sese_info_p.
8981 (graphite_copy_stmts_from_block): Same.
8982 (copy_bb_and_scalar_dependences): Same.
8983 (outermost_loop_in_sese_1): Use an sese_l.
8984 (outermost_loop_in_sese): Same.
8985 (if_region_set_false_region): Use an sese_info_p.
8986 (move_sese_in_condition): Same.
8987 (scalar_evolution_in_region): Use an sese_l.
8988 * sese.h (struct sese_l): ... here.
8989 (SESE_ENTRY): Remove.
8990 (SESE_ENTRY_BB): Remove.
8991 (SESE_EXIT): Remove.
8992 (SESE_EXIT_BB): Remove.
8993 (sese_contains_loop): Use an sese_info_p.
8994 (sese_nb_params): Same.
8995 (bb_in_sese_p): Use an sese_l.
8996 (stmt_in_sese_p): Same.
8997 (defined_in_sese_p): Same.
8998 (loop_in_sese_p): Same.
8999 (sese_loop_depth): Same.
9000 (struct ifsese_s): Use an sese_info_p.
9001 (gbb_loop_at_index): Use an sese_l.
9002 (nb_common_loops): Same.
9003 (scev_analyzable_p): Same.
9005 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9007 * config/i386/i386.c (ix86_conditional_register_usage): Use
9008 CALL_USED_REGISTERS_MASK.
9009 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
9011 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9014 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
9015 * configure: Regenerated.
9017 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9020 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
9021 (ix86_set_current_function): This.
9022 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
9024 2015-10-07 Richard Biener <rguenther@suse.de>
9026 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
9027 (vinfo_for_stmt): Adjust.
9028 (set_vinfo_for_stmt): Likewise.
9029 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
9030 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
9031 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
9033 (vect_analyze_loop_1): Remove.
9034 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
9035 inner loop when vectorizing an outer loop by splitting out from ...
9036 (vect_analyze_loop_form): ... here.
9038 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9041 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
9042 Use create_tmp_var_raw instead of create_tmp_var.
9044 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
9046 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
9047 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
9048 * real.c (CACHED_FRACTION): New helper macro.
9049 (dconst_third_ptr): Use it.
9050 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
9051 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
9053 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
9055 2015-10-06 Jeff Law <law@redhat.com>
9057 PR tree-optimization/67816
9058 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
9059 from remove_jump_threads_starting_at. Accept an edge rather than
9061 * tree-ssa-threadupdate.c (removed_edges): New hash table.
9062 (remove_jump_threads_including): Note edges that get removed from
9063 the CFG for later pruning of jump threading paths including them.
9064 (thread_through_all_blocks): Remove paths which include edges that
9066 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
9067 on each outgoing edges when optimizing away a control statement.
9069 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9071 * reorg.c (emit_delay_sequence): Store list of delay slot insns
9072 in a vector instead of rtx_insn_list.
9073 (add_to_delay_list): Likewise.
9074 (delete_from_delay_slot): Likewise.
9075 (optimize_skip): Likewise.
9076 (redirect_with_delay_list_safe_p): Likewise.
9077 (check_annul_list_true_false): Likewise.
9078 (steal_delay_list_from_target): Likewise.
9079 (steal_delay_list_from_fallthrough): Likewise.
9080 (redundant_insn): Likewise.
9081 (fill_simple_delay_slots): Likewise.
9082 (fill_slots_from_thread): Likewise.
9083 (fill_eager_delay_slots): Likewise.
9084 (relax_delay_slots): Likewise.
9086 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
9088 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
9089 For -mgpopt=local, also exclude unintialized common symbols.
9090 * doc/invoke.texi (Nios II Options): Document the change.
9092 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
9094 * config/aarch64/iterators.md (vwcore): Add missing cases for
9097 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
9098 Sebastian Pop <s.pop@samsung.com>
9100 * graphite-poly.c (new_scop): Initialize drs.
9101 * graphite-poly.h (struct dr_info): New.
9102 (struct scop): Add drs.
9103 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
9104 (pdr_add_memory_accesses): Same.
9105 (build_poly_dr): Same.
9106 (build_alias_set): Same.
9107 (build_scop_drs): Same.
9108 (build_pbb_drs): Remove.
9109 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
9110 * tree-data-ref.h (data_reference): Remove alias_set.
9112 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
9113 Sebastian Pop <s.pop@samsung.com>
9115 * graphite-poly.c (free_data_refs_aux): Remove.
9116 (free_gimple_poly_bb): Do not call free_data_refs_aux.
9117 * graphite-poly.h (struct base_alias_pair): Remove.
9118 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
9119 base_alias_pair and dr->aux.
9120 (build_alias_set): Same.
9121 * tree-data-ref.c (create_data_ref): Initialize alias_set.
9122 * tree-data-ref.h (data_reference): Add alias_set.
9124 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
9125 Sebastian Pop <s.pop@samsung.com>
9127 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
9128 Do not set PDR_BASE_OBJECT_SET.
9129 * graphite-poly.h (poly_dr): Same.
9130 (PDR_BASE_OBJECT_SET): Remove.
9131 (new_poly_dr): Update decl.
9132 * graphite-sese-to-poly.c (build_poly_dr): Update call to
9134 (write_alias_graph_to_ascii_dimacs): Remove.
9135 (write_alias_graph_to_ascii_dot): Remove.
9136 (write_alias_graph_to_ascii_ecc): Remove.
9137 (dr_same_base_object_p): Remove.
9138 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
9140 (build_base_obj_set_for_drs): Remove.
9141 (dump_alias_graphs): Remove.
9142 (build_scop_drs): Remove dead code.
9144 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
9145 Peter Bergner <bergner@vnet.ibm.com>
9148 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
9149 allow registers, but provide insns for the combiner to create for
9150 loads from memory. Separate VSX code from non-VSX code. For
9151 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
9152 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
9153 so that registers come before memory operations. Drop support from
9154 converting DFmode to TFmode, if the DFmode value is in a GPR
9156 (extenddftf2_fprs): Likewise.
9157 (extenddftf2_internal): Likewise.
9158 (extenddftf2_vsx): Likewise.
9159 (extendsftf2): In the expander, only allow registers, but provide
9160 insns for the combiner to create for stores and loads.
9162 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9164 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
9165 from the decl parameter.
9167 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
9170 * gimple-fold.c (gimple_fold_builtin): Add break after
9171 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
9173 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
9175 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
9176 to scop->isl_context.
9178 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
9180 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
9181 (output_probe_stack_range): Rotate the loop and simplify.
9182 (thumb1_expand_prologue): Tweak sorry message.
9183 * config/arm/arm.md (probe_stack): Use bare string.
9185 2015-10-06 Nick Clifton <nickc@redhat.com>
9187 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
9189 2015-10-06 Nick Clifton <nickc@redhat.com>
9191 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
9192 (ATTR_PERSIST): New constant.
9193 (msp430_data_attr): New function - verifies an attribute that only
9194 applies to variables.
9195 (msp430_attributes): Add noinit and persistent attributes.
9196 (noinit_section): New variable.
9197 (presis_section): New variable.
9198 (TARGET_ASM_INIT_SECTIONS): Define.
9199 (msp430_init_sections): New function - initialises the noinit and
9200 persist section variables.
9201 (msp430_select_section): Add support for noinit and persist
9203 (msp430_section_type_flags): Likewise.
9204 * doc/extend.texi: Document the reent, critical, wakeup, noinit
9205 and persistent attributes.
9207 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
9208 Sebastian Pop <s.pop@samsung.com>
9210 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
9211 (no_violations): Remove.
9212 (subtract_commutative_associative_deps): Remove.
9213 (compute_deps): Do not call subtract_commutative_associative_deps.
9214 (transform_is_safe): Remove.
9215 (graphite_legal_transform): Remove.
9216 * graphite-poly.h (graphite_legal_transform): Remove.
9218 2015-10-05 Aditya Kumar <hiraditya@msn.com>
9220 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
9221 which are in this region are passed so gcc_assert and remove redundant
9223 * sese.c (sese_build_liveouts): Pass only those bbs which are not
9225 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
9226 gcc_assert on that and remove unnecessary computation.
9227 (sese_build_liveouts_use): Same.
9229 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
9231 * graphite-dependences.c (scop_get_reads): Renamed scop->context
9232 to scop->param_context.
9233 (scop_get_must_writes): Same.
9234 (scop_get_may_writes): Same.
9235 (scop_get_original_schedule): Same.
9236 (scop_get_transformed_schedule): Same.
9237 (subtract_commutative_associative_deps): Same.
9238 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
9239 (generate_isl_context): Same.
9240 (generate_isl_schedule): Same.
9241 (scop_to_isl_ast): Same.
9242 (graphite_regenerate_ast_isl): Same.
9243 * graphite-optimize-isl.c (scop_get_domains): Same.
9244 (optimize_isl): Renamed scop->context to scop->param_context.
9245 * graphite-poly.c (new_poly_bb): Change the type of argument to
9247 (new_scop): Renamed scop->context to scop->param_context.
9249 (print_scop_context): Same.
9250 * graphite-poly.h (new_poly_dr): Change the type of argument from
9251 void* to data_reference_p.
9252 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
9253 (new_poly_bb): Change the type of argument from void* to
9255 (pbb_set_black_box): Same.
9256 (struct scop): Rename context to param_context, ctx to isl_context.
9257 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
9258 Move declarations closer to assignment.
9259 (find_params_in_bb): Same.
9260 (find_scop_parameters): Same.
9261 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
9262 Global to be used for statement IDs.
9263 (isl_id_for_pbb): Use ssa_name_version_typesize.
9264 (simple_copy_phi_p): Move declarations closer to assignment.
9265 (build_pbb_scattering_polyhedrons): Same.
9266 (build_scop_scattering): Same.
9267 (isl_id_for_ssa_name): Same.
9268 (extract_affine_name): Same.
9269 (extract_affine_int): Same.
9270 (extract_affine): Same.
9271 (set_scop_parameter_dim): Use renamed member.
9272 (build_loop_iteration_domains): Same.
9273 (add_param_constraints): Same.
9274 (build_scop_iteration_domain): Same.
9275 (pdr_add_data_dimensions): Same.
9276 (build_poly_dr): Same.
9277 (build_scop_drs): Move declarations closer to assignment.
9278 (analyze_drs_in_stmts): Same.
9279 (insert_out_of_ssa_copy): Same.
9280 (insert_out_of_ssa_copy_on_edge): Same.
9281 (propagate_expr_outside_region): Same.
9282 (rewrite_phi_out_of_ssa): Same.
9283 (rewrite_degenerate_phi): Same.
9284 (rewrite_reductions_out_of_ssa): Same.
9285 (rewrite_cross_bb_scalar_dependence): Same.
9286 (handle_scalar_deps_crossing_scop_limits): Same.
9287 (rewrite_cross_bb_scalar_deps): Same.
9288 * graphite.c (graphite_transform_loops): Use renamed member.
9290 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
9293 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
9294 create_tmp_var_raw instead of create_tmp_var.
9296 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9299 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
9300 Use create_tmp_var_raw instead of create_tmp_var.
9302 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
9305 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
9306 split for upper-bank registers when target does not support
9308 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
9309 split when target does not support AVX512VL.
9311 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
9314 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
9315 Adjust to use create_tmp_var_raw instead of create_tmp_var.
9317 2015-10-06 Nick Clifton <nickc@redhat.com>
9319 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
9322 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
9324 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
9325 (case ${target}): Add znver1.
9326 * config/i386/cpuid.h(bit_CLZERO): Define.
9327 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
9328 -march=native recognize znver1 processors.
9329 * config/i386/i386-c.c (ix86_target_macros_internal): Add
9330 znver1, clzero def_and_undef.
9331 * config/i386/i386.c (struct processor_costs znver1_cost): New.
9332 (m_znver1): New definition.
9333 (m_AMD_MULTIPLE): Includes m_znver1.
9334 (processor_target_table): Add znver1 entry.
9335 (ix86_target_string) : Add clzero entry.
9336 (static const char *const cpu_names): Add znver1 entry.
9337 (ix86_option_override_internal): Add znver1 instruction sets.
9338 (PTA_CLZERO) : New definition.
9339 (ix86_option_override_internal): Handle new clzerooption.
9340 (ix86_issue_rate): Add znver1.
9341 (ix86_adjust_cost): Add znver1.
9342 (ia32_multipass_dfa_lookahead): Add znver1.
9343 (has_dispatch): Add znver1.
9344 * config/i386/i386.h (TARGET_znver1): New definition.
9345 (TARGET_CLZERO): Define.
9346 (TARGET_CLZERO_P): Define.
9347 (struct ix86_size_cost): Add TARGET_ZNVER1.
9348 (enum processor_type): Add PROCESSOR_znver1.
9349 * config/i386/i386.md (define_attr "cpu"): Add znver1.
9350 (set_attr znver1_decode): New definitions for znver1.
9351 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
9353 * config/i386/mmx.md (set_attr znver1_decode): New definitions
9355 * config/i386/sse.md (set_attr znver1_decode): Likewise.
9356 * config/i386/x86-tune.def: Add znver1 tunings.
9357 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
9358 * doc/invoke.texi: Add details about znver1
9360 2015-10-06 Richard Biener <rguenther@suse.de>
9362 PR tree-optimization/67859
9363 * tree-ssa-pre.c (create_expression_by_pieces): Properly
9364 discard not inserted stmts.
9366 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
9368 * doc/extend.texi (Template Instantiation): Reorder options and
9369 de-emphasize -frepo.
9370 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
9371 example instead of -frepo.
9373 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
9376 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
9377 use create_tmp_var_raw rather than create_tmp_var.
9379 2015-10-06 Richard Biener <rguenther@suse.de>
9381 * tree-vectorizer.h (vec_info): New base class for...
9382 (_loop_vec_info): ... this and ...
9383 (_bb_vec_info): ... this.
9384 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
9385 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
9386 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
9387 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
9388 vect_destroy_datarefs): Adjust interface to take a vec_info *
9389 rather than both a loop_vec_info and a bb_vec_info argument.
9390 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
9391 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
9392 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
9393 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
9395 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
9396 (destroy_loop_vec_info, vect_analyze_loop_2,
9397 vect_is_simple_reduction_1, get_initial_def_for_induction,
9398 vect_create_epilog_for_reduction, vectorizable_reduction,
9399 vectorizable_live_operation, vect_transform_loop): Adjust.
9400 * tree-vect-patterns.c (type_conversion_p,
9401 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
9402 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
9403 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
9404 check_bool_pattern, vect_recog_bool_pattern,
9405 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
9406 * tree-vect-slp.c (vect_get_and_check_slp_defs,
9407 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
9408 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
9409 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
9410 (new_bb_vec_info): Initialize base classs.
9411 * tree-vect-stmts.c (record_stmt_cost, process_use,
9412 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
9413 vectorizable_mask_load_store, vectorizable_call,
9414 vectorizable_simd_clone_call, vectorizable_conversion,
9415 vectorizable_assignment, vectorizable_shift,
9416 vectorizable_operation, vectorizable_store,
9417 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
9418 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
9419 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
9421 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
9424 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
9425 create_tmp_var_raw rather than create_tmp_var.
9427 2015-10-05 Marek Polacek <polacek@redhat.com>
9429 * tree-ssa-loop-im.c
9430 (move_computations_dom_walker::before_dom_children): Don't set
9431 SSA_NAME_ANTI_RANGE_P.
9432 * tree-ssa-phiopt.c (value_replacement): Likewise.
9434 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
9435 Sebastian Pop <s.pop@samsung.com>
9437 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
9439 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
9440 Sebastian Pop <s.pop@samsung.com>
9442 * graphite-poly.c (new_gimple_poly_bb): ... here.
9443 (free_data_refs_aux): ... here.
9444 (free_gimple_poly_bb): ... here.
9445 (remove_gbbs_in_scop): ... here.
9446 (new_scop): Call new_sese.
9447 (free_scop): Call remove_gbbs_in_scop and free_sese.
9448 * graphite-poly.h (base_alias_pair): ... here.
9449 (new_gimple_poly_bb): Declare.
9450 (free_gimple_poly_bb): Declare.
9451 * graphite-scop-detection.c (parameter_index_in_region_1):
9452 (parameter_index_in_region): ... here.
9453 (scan_tree_for_params): ... here.
9454 (find_params_in_bb): ... here.
9455 (find_scop_parameters): ... here.
9456 (build_scops): Call find_scop_parameters.
9457 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
9458 (free_scops): Move...
9459 (single_pred_cond_non_loop_exit): Move...
9460 (sese_dom_walker::before_dom_children): Move...
9461 (sese_dom_walker::after_dom_children): Move...
9462 (build_poly_scop): Move...
9463 * graphite-sese-to-poly.h (base_alias_pair): Move...
9464 * graphite.c (free_scops): ... here.
9466 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
9467 Sebastian Pop <s.pop@samsung.com>
9469 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
9470 (trivially_empty_bb_p): Move...
9471 (same_close_phi_node): Move...
9472 (new_gimple_poly_bb): Move...
9473 (compare_bb_depths): Move...
9474 (graphite_sort_dominated_info): Move...
9475 (remove_duplicate_close_phi): Move...
9476 (make_close_phi_nodes_unique): Move...
9477 (canonicalize_loop_closed_ssa): Move...
9478 (canonicalize_loop_closed_ssa_form): Move...
9479 (loop_ivs_can_be_represented): Move...
9480 (single_pred_cond_non_loop_exit): Move...
9481 (graphite_can_represent_init): Move...
9482 (graphite_can_represent_scev): Move...
9483 (stmt_has_simple_data_refs_p): Move...
9484 (stmt_has_side_effects): Move...
9485 (graphite_can_represent_stmt): Move...
9486 (scop_detection): ... here.
9487 (sese_dom_walker): ... and here.
9488 (build_scops): Call all moved functions.
9489 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
9490 (all_non_dominated_preds_marked_p): Move...
9491 (build_scop_bbs_1): Move...
9492 (build_scop_bbs): Move...
9493 (set_scop_parameter_dim): Move...
9494 (nb_pbbs_in_loops): Move...
9495 (build_poly_scop): Do not call all the moved functions.
9497 2015-10-05 Martin Jambor <mjambor@suse.cz>
9498 Jan Hubicka <hubicka@ucw.cz>
9500 * ipa-cp.c (ipcp_alignment_lattice): New type.
9501 (ipcp_param_lattices): Use the above to represent alignment.
9502 (ipcp_alignment_lattice::print): New function.
9503 (print_all_lattices): Use it to print alignment information.
9504 (ipcp_alignment_lattice::top_p): New function.
9505 (ipcp_alignment_lattice::bottom_p): Likewise.
9506 (ipcp_alignment_lattice::set_to_bottom): Likewise.
9507 (ipcp_alignment_lattice::meet_with_1): Likewise.
9508 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
9509 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
9510 (initialize_node_lattices): Likewise.
9511 (propagate_alignment_accross_jump_function): Work with the new class
9512 for alignment lattices.
9513 (propagate_constants_accross_call): Pass only the alignment lattice to
9514 propagate_alignment_accross_jump_function.
9515 (ipcp_store_alignment_results): Work with the new class for alignment
9518 2015-10-05 Marek Polacek <polacek@redhat.com>
9520 PR tree-optimization/67821
9521 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
9523 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
9526 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
9528 (mkoffload_cleanup): ... this. Adjust all users.
9529 (maybe_unlink): Look at save_temps and verbose flags instead of
9531 (main): Parse "-save-temps" flag.
9532 (generate_target_descr_file, generate_target_offloadend_file)
9533 (generate_host_descr_file, prepare_target_image): Pass it on.
9534 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
9535 (mkoffload_cleanup): New function.
9536 (maybe_unlink): Look at save_temps and verbose flags instead of
9538 (main): Instead of calling utils_cleanup, register atexit handler
9539 for mkoffload_cleanup.
9540 (main): Parse "-save-temps" flag.
9541 (compile_native, main): Pass it on.
9542 * lto-wrapper.c (compile_offload_image): Likewise.
9544 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9546 * gimple.h (gimple_op_ptr): Require a non const gimple *.
9547 (gimple_assign_lhs_ptr): Likewise.
9548 (gimple_assign_rhs1_ptr): Likewise.
9549 (gimple_assign_rhs2_ptr): Likewise.
9550 (gimple_assign_rhs3_ptr): Likewise.
9551 (gimple_call_lhs_ptr): Likewise.
9552 (gimple_call_fn_ptr): Likewise.
9553 (gimple_call_chain_ptr): Likewise.
9554 (gimple_call_arg_ptr): Likewise.
9555 (gimple_cond_lhs_ptr): Likewise.
9556 (gimple_cond_rhs_ptr): Likewise.
9557 (gimple_switch_index_ptr): Likewise.
9558 (gimple_return_retval_ptr): Likewise.
9560 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9562 * gimple.h (gimple_asm_input_op_ptr): Remove.
9563 (gimple_asm_output_op_ptr): Likewise.
9565 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9567 * gimple.h (gimple_location_ptr): Remove.
9568 * tree-vrp.c (check_all_array_refs): Adjust.
9570 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9572 * tree-ssa-operands.c (build_uses): store tree * instead of
9574 (finalize_ssa_uses): Adjust.
9575 (append_use): Likewise.
9576 (verify_ssa_operands): Likewise.
9578 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9580 * real.h (build_real_truncate): Declare.
9581 * tree.c (build_real_truncate): New function.
9582 (strip_float_extensions): Use it.
9583 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
9584 (fold_builtin_hypot, fold_builtin_pow): Likewise.
9585 * match.pd: Likewise.
9587 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
9588 Jiong Wang <jiong.wang@arm.com>
9590 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
9592 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9594 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
9595 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
9596 (aarch64_print_operand, aarch64_float_const_representable_p)
9597 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
9598 instead of REAL_VALUE_FROM_CONST_DOUBLE.
9599 * config/arc/arc.c (arc_print_operand): Likewise.
9600 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
9601 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
9602 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
9604 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
9605 (consttable_16): Likewise.
9606 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
9607 * config/avr/avr.c (avr_print_operand): Likewise.
9608 * config/bfin/bfin.md: Likewise (in a define_split).
9609 * config/c6x/c6x.md: Likewise (in a define_split).
9610 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
9611 (cr16_print_operand): Likewise.
9612 * config/cris/cris.c (cris_print_operand): Likewise.
9613 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
9614 * config/fr30/fr30.c (fr30_print_operand): Likewise.
9615 (fr30_const_double_is_zero): Likewise.
9616 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
9617 * config/frv/frv.md: Likewise (in a define_split).
9618 * config/frv/predicates.md (int_2word_operand): Likewise.
9619 * config/h8300/h8300.c (h8300_print_operand): Likewise.
9620 * config/i386/i386.c (standard_80387_constant_p): Likewise.
9621 (ix86_print_operand, ix86_split_to_parts): Likewise.
9622 * config/i386/i386.md: Likewise (in a define_split).
9623 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
9624 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
9625 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
9626 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
9627 (print_operand): Likewise.
9628 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
9629 * config/mep/mep.md: Likewise (in define_split).
9630 * config/microblaze/microblaze.c (microblaze_const_double_ok)
9631 (print_operand): Likewise.
9632 * config/mips/mips.md (consttable_float): Likewise.
9633 * config/mmix/mmix.c (mmix_intval): Likewise.
9634 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
9635 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
9636 * config/pa/pa.c (pa_singlemove_string): Likewise.
9637 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
9638 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
9639 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
9640 (output_toc): Likewise.
9641 * config/rs6000/rs6000.md: Likewise (in define_splits).
9642 * config/rx/rx.c (rx_print_operand): Likewise.
9643 * config/s390/s390.c (s390_output_pool_entry): Likewise.
9644 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
9645 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
9646 (and also in define_splits).
9647 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
9648 (fp_high_losum_p): Likewise.
9649 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
9650 (*movsf_high): Likewise.
9651 * config/spu/spu.c (const_double_to_hwint): Likewise.
9652 * config/v850/v850.c (const_double_split): Likewise.
9653 * config/vax/vax.c (vax_float_literal): Likewise.
9654 * config/visium/visium.c (visium_expand_copysign): Likewise.
9655 * config/visium/visium.md: Likewise (in define_split).
9656 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
9657 * config/xtensa/xtensa.c (print_operand): Likewise.
9658 (xtensa_output_literal): Likewise.
9659 * cprop.c (implicit_set_cond_p): Likewise.
9660 * dwarf2out.c (insert_float): Likewise.
9661 * expmed.c (expand_mult, make_tree): Likewise.
9662 * expr.c (compress_float_constant): Likewise.
9663 * rtlanal.c (split_double): Likewise.
9664 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
9665 (simplify_const_unary_operation, simplify_binary_operation_1)
9666 (simplify_const_binary_operation): Likewise.
9667 (simplify_const_relational_operation): Likewise.
9668 * varasm.c (output_constant_pool_2): Likewise.
9670 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9672 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
9673 instead of CONST_DOUBLE_FROM_REAL_VALUE.
9674 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
9675 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
9676 instead of CONST_DOUBLE_FROM_REAL_VALUE.
9677 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
9678 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
9679 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
9680 (ix86_emit_swsqrtsf): Likewise.
9681 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
9682 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
9683 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
9684 * config/pa/pa.c (pa_expand_builtin): Likewise.
9685 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
9686 (rs6000_scale_v2df): Likewise.
9687 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
9688 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
9689 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
9690 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
9691 (vec_ctul): Likewise.
9692 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
9693 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
9694 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
9695 * cse.c (fold_rtx): Likewise.
9696 * emit-rtl.c (immed_double_const): Likewise (in comments).
9697 (init_emit_once): Likewise.
9698 * expr.c (compress_float_constant, expand_expr_real_1)
9699 (const_vector_from_tree): Likewise.
9700 * optabs.c (expand_float, expand_fix): Likewise.
9701 * reg-stack.c (reg_to_stack): Likewise.
9702 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
9703 (simplify_const_unary_operation, simplify_binary_operation_1)
9704 (simplify_const_binary_operation, simplify_relational_operation)
9705 (simplify_immed_subreg): Likewise.
9707 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9709 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
9710 * doc/tm.texi: Regenerate.
9711 * real.h (REAL_ARITHMETIC): Delete.
9712 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
9713 (ix86_expand_round_sse4): Use real_arithmetic instead of
9715 * config/i386/sse.md (round<mode>2): Likewise.
9716 * rtl.h (rtx_to_tree_code): Likewise (in comment).
9717 * explow.c (rtx_to_tree_code): Likewise (in comment).
9718 * match.pd: Likewise.
9719 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9720 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
9721 (expand_pow_as_sqrts): Likewise.
9722 * tree-pretty-print.c (dump_generic_node): Remove code that
9723 was conditional on REAL_ARITHMETIC being undefined.
9725 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9727 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
9728 * doc/tm.texi: Regenerate.
9729 * real.h (real_less): Declare.
9730 (REAL_VALUES_LESS): Delete.
9731 * real.c (real_less): New function.
9732 (real_compare): Use it.
9733 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
9734 of REAL_VALUES_LESS.
9735 * config/microblaze/microblaze.c (microblaze_const_double_ok):
9737 * fold-const.c (fold_convert_const_int_from_real): Likewise.
9738 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9739 (simplify_const_relational_operation): Likewise.
9740 * tree-call-cdce.c (check_pow): Likewise.
9741 (gen_conditions_for_pow_cst_base): Likewise.
9743 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9745 * real.h (REAL_VALUES_IDENTICAL): Delete.
9746 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
9747 instead of REAL_VALUES_IDENTICAL.
9748 * fold-const.c (operand_equal_p): Likewise.
9749 * ipa-icf.c (sem_variable::equals): Likewise.
9750 * tree-complex.c (some_nonzerop): Likewise.
9751 (expand_complex_multiplication): Likewise.
9752 * tree.c (simple_cst_equal): Likewise.
9753 * varasm.c (compare_constant): Likewise.
9755 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
9757 * real.h (real_equal): Declare.
9758 (REAL_VALUES_EQUAL): Delete.
9759 * real.c (real_equal): New function.
9760 (real_compare): Use it.
9761 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
9762 * doc/tm.texi: Regenerate.
9763 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
9764 real_equal instead of REAL_VALUES_EQUAL.
9765 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
9766 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
9767 (fp_const_from_val): Likewise.
9768 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
9769 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
9770 (floating_exact_log2): Likewise.
9771 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
9772 * config/vax/vax.c (vax_float_literal): Likewise.
9773 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
9774 * cprop.c (implicit_set_cond_p): Likewise.
9775 * expmed.c (expand_mult): Likewise.
9776 * fold-const.c (const_binop): Likewise.
9777 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9778 (simplify_const_binary_operation): Likewise.
9779 (simplify_const_relational_operation): Likewise.
9780 * tree-call-cdce.c (check_pow): Likewise.
9781 (gen_conditions_for_pow_cst_base): Likewise.
9782 * tree-inline.c (estimate_num_insns): Likewise.
9783 * tree-ssa-dom.c (record_equality): Likewise.
9784 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
9785 (gimple_expand_builtin_pow): Likewise.
9786 (pass_optimize_widening_mul::execute): Likewise.
9787 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
9788 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
9789 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
9791 2015-10-05 Richard Biener <rguenther@suse.de>
9794 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
9795 consider loop header PHI defs as IVs.
9797 2015-10-05 Richard Biener <rguenther@suse.de>
9799 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
9801 (create_expression_by_pieces): ... here and build GIMPLE
9802 calls directly. Use gimple_build API and avoid force_gimple_operand.
9803 (insert_into_preds_of_block): Simplify.
9804 (do_regular_insertion): Add comment.
9806 2015-10-04 Jason Merrill <jason@redhat.com>
9808 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
9810 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
9812 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
9813 check for general register.
9814 (ix86_emit_save_regs): Ditto.
9815 (ix86_emit_save_regs_using_mov): Ditto.
9816 (ix86_emit_restore_regs_using_pop): Ditto.
9817 (ix86_emit_restore_regs_using_mov): Ditto.
9819 2015-10-03 Marek Polacek <polacek@redhat.com>
9821 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
9822 (insn-dfatab.o): Likewise.
9824 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
9826 * config.gcc (xtensa*-*-uclinux*): New configuration.
9827 * config/xtensa/uclinux.h: New file.
9828 * config/xtensa/uclinux.opt: New file.
9830 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
9832 * doc/cpp.texi (Standard Predefined Macros): Document value of
9833 __cplusplus for C++14.
9835 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
9837 * gcc.c (process_command): Use spec_machine rather than
9838 spec_host_machine to build tooldir_prefix2.
9840 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
9841 Bernd Schmidt <bernds@codesourcery.com>
9843 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
9844 (Token, Stmt): Remove structs.
9845 (decls, vars, fns): Remove variables.
9846 (alloc_comment, append_stmt, is_keyword): Remove macros.
9847 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
9848 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
9849 (parse_init, parse_file): Remove functions.
9850 (read_file): Accept a pointer to a length and store into it.
9851 (process): Don't try to parse the input file, just write it out as
9852 a string, but looking for maps. Also write out the length.
9853 (main): Don't use "-S" to compile PTX code.
9855 2015-10-02 Jeff Law <law@redhat.com>
9857 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
9860 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
9863 * config/nvptx/mkoffload.c (main): Scan the argument vector for
9864 -fopenmp, and skip generating an offloading image if specified.
9866 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
9868 * system.h (ROUND_UP): New macro definition.
9869 (ROUND_DOWN): Ditto.
9870 * ggc-page.c (ROUND_UP): Remove local macro definition.
9871 (PAGE_ALIGN): Implement using ROUND_UP macro.
9873 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
9874 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
9876 (ix86_compute_frame_layout): Ditto.
9877 (ix86_expand_prologue): Ditto.
9878 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
9879 to round down values.
9880 (expand_set_or_movmem_via_rep): Ditto.
9882 2015-10-02 Marek Polacek <polacek@redhat.com>
9884 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
9886 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
9888 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
9889 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
9890 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
9891 (free_gimple_bb): Renamed free_gimple_poly_bb.
9892 (try_generate_gimple_bb): Hoist loop invariant code.
9893 (analyze_drs_in_stmts): Same.
9894 (build_scop_drs): Call renamed functions.
9895 (new_pbb_from_pbb): Same.
9896 (scop_ivs_can_be_represented): Delete as functionality now moved to
9897 graphite-scop-detection.c
9898 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
9900 2015-10-02 Aditya Kumar <hiraditya@msn.com>
9902 * graphite-scop-detection.c (stmt_has_side_effects): New function
9903 outlined from stmt_simple_for_scop_p.
9904 (graphite_can_represent_stmt): Same.
9905 (stmt_simple_for_scop_p): Moved code out of this function for better
9908 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
9910 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
9912 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
9914 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9916 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
9918 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
9920 PR rtl-optimization/67756
9921 * lra-constraints.c (match_reload): Add a new parameter. Use it
9922 for creating a pseudo with the same value.
9923 (curr_insn_transform): Pass a new argument to match_reload.
9925 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
9927 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
9928 (expand_vec_perm_even_odd_1): Handle V64QImode.
9929 (ix86_expand_vec_perm_const_1): Try expansion with
9930 expand_vec_perm_even_odd_trunc as well.
9931 * config/i386/sse.md (VI124_AVX512F): Rename to ...
9932 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
9934 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
9935 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
9937 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
9938 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
9939 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
9940 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
9941 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
9942 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
9944 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
9946 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
9947 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
9949 2015-10-02 Jason Merrill <jason@redhat.com>
9952 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
9953 (diagnose_tm_1_op): Also diagnose volatile accesses in
9954 transaction_safe function.
9956 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
9958 * system.h (malloc.h): Don't include obsolete header.
9960 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9962 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
9963 (TLS_SECTION_ASM_FLAG): Delete.
9965 2015-10-02 Marek Polacek <polacek@redhat.com>
9968 * doc/invoke.texi: Document -Wduplicated-cond.
9969 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
9970 (insn-dfatab.o): Likewise.
9971 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
9974 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
9976 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
9979 2015-10-02 Renlin Li <renlin.li@arm.com>
9981 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
9983 2015-10-02 Renlin Li <renlin.li@arm.com>
9986 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
9988 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9990 PR rtl-optimization/67786
9991 PR rtl-optimization/67787
9992 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
9993 it modifies a reg used in the condition calculation.
9995 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
9997 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
9998 alternatives for reads from memory and moves from general-purpose
10000 (*aarch64_combinez_be<mode>): Likewise.
10002 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
10005 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
10006 selectany within this function without need to keep attribute.
10007 (i386_pe_encode_section_info): Remove selectany-code.
10009 2015-10-02 Richard Biener <rguenther@suse.de>
10011 * tree-ssa-sccvn.c (has_VN_INFO): New function.
10012 (free_scc_vn): Use it.
10013 (visit_use): Remove dead code and refactor to use gassign
10014 and use less indentation.
10016 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10020 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
10021 (rs6000_cannot_copy_insn_p): New function.
10022 * config/rs6000/rs6000.md (cannot_copy): New attribute.
10023 (load_toc_v4_PIC_1_normal): Set cannot_copy.
10024 (load_toc_v4_PIC_1_476): Ditto.
10026 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
10028 * graphite-scop-detection.c (struct sese_l): New conversion constructor
10029 so that this type can be pushed into a vec.
10030 (class scop_builder): use sese_l to collect scops.
10031 (get_scops): New getter function.
10032 (remove_intersecting_scops): Use sese_l instead of scops_p.
10033 (intersects): Same.
10036 (remove_subscops): Same.
10037 (build_scops): Add scops to vec<scops_p> once all the scops have been
10040 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
10042 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
10043 Renamed type from gimple_bb_p to gimple_poly_bb_p.
10044 (translate_isl_ast_node_user): Same.
10045 * graphite-poly.c (new_poly_bb): Same.
10046 * graphite-poly.h (gbb_from_bb): Same.
10048 * graphite-sese-to-poly.c (new_gimple_bb):
10049 gimple_bb_p -> gimple_poly_bb_p
10050 (build_scop_scattering): Same.
10051 (find_params_in_bb): Same.
10052 (add_conditions_to_domain): Same.
10053 (sese_dom_walker::before_dom_children): Same.
10054 (analyze_drs_in_stmts): Same.
10055 (new_pbb_from_pbb): Same.
10056 (free_data_refs_aux): New pointer to type base_alias_pair.
10057 * graphite-sese-to-poly.h: Same.
10058 * sese.c (if_region_set_false_region): Fixed Indentation.
10059 (move_sese_in_condition): Same.
10061 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10062 Aditya Kumar <aditya.k7@samsung.com>
10064 PR tree-optimization/66980
10065 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
10066 when data reference analysis has failed.
10068 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10069 Aditya Kumar <aditya.k7@samsung.com>
10071 PR tree-optimization/67754
10072 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
10073 scev analysis on the same loop nest as analyze_drs_in_stmts.
10074 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
10076 (try_generate_gimple_bb): Call outermost_loop_in_sese.
10077 (analyze_drs_in_stmts): Same.
10078 * sese.c (outermost_loop_in_sese): ...here.
10080 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10081 Aditya Kumar <aditya.k7@samsung.com>
10083 PR tree-optimization/67754
10084 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
10085 recursion on the inner loops.
10087 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10089 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
10090 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
10091 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
10092 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
10093 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
10095 2015-10-01 Marek Polacek <polacek@redhat.com>
10098 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
10099 create_tmp_var_raw rather than create_tmp_var.
10101 2015-10-01 Marek Polacek <polacek@redhat.com>
10103 PR tree-optimization/67769
10104 * tree-ssa-phiopt.c (conditional_replacement): Call
10105 reset_flow_sensitive_info_in_bb.
10106 (minmax_replacement): Likewise.
10107 (abs_replacement): Likewise.
10109 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
10111 * builtins.c: Don't include gomp-constants.h.
10112 (fold_builtin_1): Don't fold acc_on_device here.
10113 * gimple-fold.c: Include gomp-constants.h.
10114 (gimple_fold_builtin_acc_on_device): New.
10115 (gimple_fold_builtin): Call it.
10117 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
10119 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
10120 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
10122 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
10124 * config/arm/aarch-common-protos.h
10125 (aarch_accumulator_forwarding): New.
10126 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
10127 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
10128 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
10129 * config/arm/cortex-a53.md: Rewrite.
10131 2015-10-01 Richard Biener <rguenther@suse.de>
10133 * gimple-match.h (mprts_hook): Declare.
10134 * gimple-match.head.c (mprts_hook): Define.
10135 (maybe_push_res_to_seq): Use new hook.
10136 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
10137 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
10138 (vn_ssa_aux::has_constants): Remove.
10139 * tree-ssa-sccvn.c: Include gimple-match.h.
10140 (VN_INFO_GET): Assert we don't re-use SSA names.
10141 (vn_get_expr_for): Remove.
10142 (expr_has_constants): Likewise.
10143 (stmt_has_constants): Likewise.
10144 (simplify_binary_expression): Likewise.
10145 (simplify_unary_expression): Likewise.
10146 (vn_lookup_simplify_result): New hook.
10147 (visit_copy): Adjust.
10148 (visit_reference_op_call): Likewise.
10149 (visit_phi): Likewise.
10150 (visit_use): Likewise.
10151 (process_scc): Likewise.
10152 (init_scc_vn): Likewise.
10153 (visit_reference_op_load): Likewise. Use match-and-simplify and
10154 a gimple seq for inserted expressions.
10155 (try_to_simplify): Remove GENERIC stmt combining code.
10156 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
10157 * tree-ssa-pre.c (eliminate_insert): Adjust.
10158 (eliminate_dom_walker::before_dom_children): Likewise.
10160 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10162 * doc/invoke.texi (Optimization Options): Add
10163 -freorder-blocks-algorithm=.
10164 (Optimize Options) <-O>: Add -freorder-blocks.
10165 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
10166 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
10167 <-freorder-blocks>: Also enabled at levels -O and -Os.
10168 <-freorder-blocks-algorithm=>: Document new option.
10170 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10172 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
10173 with flag_reorder_blocks_algorithm.
10174 * common.opt (freorder-blocks-algorithm=): New flag.
10175 (reorder_blocks_algorithm): New enum.
10176 * flag-types.h (reorder_blocks_algorithm): New enum.
10177 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
10178 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
10180 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10182 * bb-reorder.c: Add intro comment.
10183 (reorder_basic_blocks_software_trace_cache): Print a header to
10185 (edge_order): New function.
10186 (reorder_basic_blocks_simple): New function.
10187 (reorder_basic_blocks): Choose between the STC and the simple
10188 algorithms (always choose the former).
10190 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10192 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
10193 function, factored out from ...
10194 (reorder_basic_blocks): ... here.
10196 2015-10-01 Tom de Vries <tom@codesourcery.com>
10198 * tree-cfg.c (dump_function_to_file): Dump function attributes using
10199 __attribute__(()) string. Move dumping of function attributes to before
10202 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
10205 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
10206 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
10207 based on gold linker version.
10208 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
10209 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
10210 * configure, config.in: Regenerate.
10212 2015-10-01 Alan Modra <amodra@gmail.com>
10214 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
10215 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
10216 (rs6000_output_mi_thunk): Likewise.
10218 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
10220 * config/nvptx/mkoffload.c (process): Change offload data format.
10222 2015-09-30 Jeff Law <law@redhat.com>
10224 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
10225 with constant conditions.
10226 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
10227 (remove_ctrl_stmt_and_useless_edges): No longer static.
10228 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
10229 (remove_ctrl_stmt_and_useless_edges): Likewise.
10231 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
10232 Cesar Philippidis <cesar@codesourcery.com>
10234 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
10235 (TARGET_GOACC_VALIDATE_DIMS): Override.
10236 * target.def (TARGET_GOACC): New target hook prefix.
10237 (validate_dims): New hook.
10238 * targhooks.h (default_goacc_validate_dims): New.
10239 * omp-low.c (oacc_validate_dims): New.
10240 (execute_oacc_device_lower): New.
10241 (default_goacc_validate_dims): New.
10242 (pass_data_oacc_device_lower): New.
10243 (pass_oacc_device_lower): New pass.
10244 (make_pass_oacc_device_lower): New.
10245 * tree-pass.h (make_pass_oacc_device_lower): Declare.
10246 * passes.def (pass_oacc_device_lower): Add it.
10247 * doc/tm.texi: Rebuilt.
10248 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
10249 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
10251 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
10253 PR rtl-optimization/67037
10254 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
10256 2015-09-30 Bernd Schmidt <bernds@redhat.com>
10258 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
10259 * passes.c: Include tree-ssanames.h.
10260 (execute_function_todo): Flush the pending free SSA_NAMEs after
10261 eliminating unreachable basic blocks.
10262 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
10263 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
10264 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
10265 (flush_ssanames_freelist): New function.
10266 (release_ssaname_fn): Put released names on the queue.
10267 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
10268 * tree-ssanames.h (flush_ssanames_freelist): Declare.
10270 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10272 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
10273 (generate_target_descr_file, generate_target_offloadend_file)
10274 (generate_host_descr_file, prepare_target_image): Pass it on.
10275 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
10276 (compile_native, main): Pass it on.
10277 * lto-wrapper.c (compile_offload_image): Likewise.
10279 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10280 Ilya Verbin <ilya.verbin@intel.com>
10281 Andrey Turetskiy <andrey.turetskiy@intel.com>
10283 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
10284 (prepare_target_image, main): Refactor argv building to use
10287 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10289 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
10290 * config/spu/spu.c (spu_expand_atomic_op): New function.
10291 * config/spu/spu.md (AINT): New mode iterator.
10292 (ATOMIC): New code iterator.
10293 (atomic_name, atomic_pred): New code predicates.
10294 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
10295 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
10296 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
10297 "atomic_<atomic_name>_fetch<mode>"): Likewise.
10299 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
10301 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
10303 (scalar_chain::convert_reg): Likewise.
10305 2015-09-30 Richard Biener <rguenther@suse.de>
10307 * builtins.c: Add comment that no new simplifications should
10310 2015-09-30 Marek Polacek <polacek@redhat.com>
10312 PR tree-optimization/67690
10313 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
10314 reset_flow_sensitive_info_in_bb.
10315 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
10316 * tree-ssanames.c: Include "gimple-iterator.h".
10317 (reset_flow_sensitive_info_in_bb): New function.
10318 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
10320 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10322 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
10323 variable, replacing it with...
10324 (offload_abi): ... this new variable. Adjust all users.
10325 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
10327 2015-09-30 Matthias Klose <doko@ubuntu.com>
10329 * configure.ac: Remove extraneous ;;.
10330 * configure: Regenerate.
10332 2015-09-29 James Bowman <james.bowman@ftdichip.com>
10334 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
10335 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
10336 predicate, disallow register for operand 2.
10338 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
10340 * graphite-dependences.c (scop_get_dependences): Moved in down
10341 in order to be visible to its caller.
10342 * graphite-poly.h: Removed compute_deps, and extend_schedule.
10344 2015-09-29 Sebastian Pop <s.pop@samsung.com>
10345 Aditya Kumar <aditya.k7@samsung.com>
10347 PR tree-optimization/67754
10348 * graphite-optimize-isl.c (optimize_isl): Call
10349 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
10351 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
10353 * builtins.c (expand_builtin_acc_on_device): Delete.
10354 (expand_builtin): Don't call it.
10355 (fold_builtin_1): Fold acc_on_device.
10357 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
10359 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
10360 (ix86_nsaved_sseregs): Likewise.
10362 2015-09-29 Jeff Law <law@redhat.com>
10364 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
10365 computation of unused value.
10367 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
10368 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
10369 inline macro expansion.
10371 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
10373 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
10374 (gen_shl_sext): Likewise.
10375 * config/sh/sh.md (divsi3): Likewise.
10376 (imm->ext_dest_operand splitter): Likewise.
10378 2015-09-29 Sebastian Pop <s.pop@samsung.com>
10379 Aditya Kumar <aditya.k7@samsung.com>
10381 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
10382 (nb_data_writes_in_bb): Remove.
10383 (split_pbb): Remove.
10384 (split_reduction_stmt): Remove.
10385 (is_reduction_operation_p): Remove.
10386 (phi_contains_arg): Remove.
10387 (follow_ssa_with_commutative_ops): Remove.
10388 (detect_commutative_reduction_arg): Remove.
10389 (detect_commutative_reduction_assign): Remove.
10390 (follow_inital_value_to_phi): Remove.
10391 (edge_initial_value_for_loop_phi): Remove.
10392 (initial_value_for_loop_phi): Remove.
10393 (used_outside_reduction): Remove.
10394 (detect_commutative_reduction): Remove.
10395 (translate_scalar_reduction_to_array_for_stmt): Remove.
10396 (remove_phi): Remove.
10397 (dr_indices_valid_in_loop): Remove.
10398 (close_phi_written_to_memory): Remove.
10399 (translate_scalar_reduction_to_array): Remove.
10400 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
10401 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
10402 (rewrite_commutative_reductions_out_of_ssa): Remove.
10403 (build_poly_scop): Remove call to
10404 rewrite_commutative_reductions_out_of_ssa.
10406 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
10408 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
10409 Add new insn types for vector load and store pairs.
10410 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
10411 types "neon_ldp{,_q}".
10412 * config/arm/cortex-a57.md (neon_load_c): Add insn types
10414 (neon_store_complex): Add insn types "neon_stp{,_q}".
10415 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
10416 "neon_{ldp,stp}_q".
10418 2015-09-29 Jeff Law <law@redhat.com>
10420 * config/rx/constraints.md (Int08): Fix undefined left shift
10422 (Sint08, Sint16, Sint24): Likewise.
10423 * config/rx/rx.c (rx_get_stack_layout): Likewise.
10425 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
10428 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
10429 left shift behaviour.
10430 * config/msp430/constraints.md ('L' constraint): Similarly.
10431 ('Ys' constraint): Similarly.
10433 2015-09-29 Richard Biener <rguenther@suse.de>
10435 PR tree-optimization/67170
10436 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
10437 the translate function pointer parameter to get the
10438 bool whether to disambiguate only by reference.
10439 (walk_non_aliased_vuses): Likewise.
10440 * tree-ssa-alias.c (maybe_skip_until): Adjust.
10441 (get_continuation_for_phi_1): Likewise.
10442 (get_continuation_for_phi): Likewise.
10443 (walk_non_aliased_vuses): Likewise.
10444 * tree-ssa-sccvn.c (const_parms): New bitmap.
10445 (vn_reference_lookup_3): Adjust for interface change.
10446 Disambiguate parameters pointing to readonly memory.
10447 (free_scc_vn): Free const_parms.
10448 (run_scc_vn): Initialize const_parms from a fn spec attribute.
10450 2015-09-29 Richard Biener <rguenther@suse.de>
10452 PR tree-optimization/67741
10453 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
10454 builtin calls with correct signature.
10456 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
10459 * config/i386/i386.c: Include dbgcnt.h.
10460 (has_non_address_hard_reg): New.
10461 (convertible_comparison_p): New.
10462 (scalar_to_vector_candidate_p): New.
10463 (remove_non_convertible_regs): New.
10464 (scalar_chain): New.
10465 (scalar_chain::scalar_chain): New.
10466 (scalar_chain::~scalar_chain): New.
10467 (scalar_chain::add_to_queue): New.
10468 (scalar_chain::mark_dual_mode_def): New.
10469 (scalar_chain::analyze_register_chain): New.
10470 (scalar_chain::add_insn): New.
10471 (scalar_chain::build): New.
10472 (scalar_chain::compute_convert_gain): New.
10473 (scalar_chain::replace_with_subreg): New.
10474 (scalar_chain::replace_with_subreg_in_insn): New.
10475 (scalar_chain::emit_conversion_insns): New.
10476 (scalar_chain::make_vector_copies): New.
10477 (scalar_chain::convert_reg): New.
10478 (scalar_chain::convert_op): New.
10479 (scalar_chain::convert_insn): New.
10480 (scalar_chain::convert): New.
10481 (convert_scalars_to_vector): New.
10482 (pass_data_stv): New.
10484 (make_pass_stv): New.
10485 (ix86_option_override): Created and register stv pass.
10486 (flag_opts): Add -mstv.
10487 (ix86_option_override_internal): Likewise.
10488 * config/i386/i386.md (SWIM1248x): New.
10489 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
10490 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
10491 (*anddi3_doubleword): New.
10492 (*zext<mode>_doubleword): New.
10493 (*zextsi_doubleword): New.
10494 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
10495 (*<code>di3_doubleword): New.
10496 * config/i386/i386.opt (mstv): New.
10497 * dbgcnt.def (stv_conversion): New.
10499 2015-09-29 Tom de Vries <tom@codesourcery.com>
10501 * tree-cfg.c (dump_function_to_file): Dump function attributes.
10503 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
10506 * config/sh/sh.c (sh_override_options_after_change): New.
10507 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
10508 (sh_option_override): Move align_loops, align_jumps and
10509 align_functions handling into sh_override_options_after_change.
10511 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
10513 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
10514 (nvptx_record_offload_symbol): Record function execution geometry.
10515 * config/nvptx/mkoffload.c (process): Include launch geometry in
10517 * omp-low.c (oacc_launch_pack): New.
10518 (replace_oacc_fn_attrib): New.
10519 (set_oacc_fn_attrib): New.
10520 (get_oacc_fn_attrib): New.
10521 (expand_omp_target): Create keyed varargs for GOACC_parallel call
10523 * omp-low.h (get_oacc_fn_attrib): Declare.
10524 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
10525 (DEF_FUNCTION_TYPE_VAR_11): Delete.
10526 * tree.h (OMP_CLAUSE_EXPR): New.
10527 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
10529 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
10530 Sebastian Pop <s.pop@samsung.com>
10532 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
10534 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
10535 Sebastian Pop <s.pop@samsung.com>
10537 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
10538 * graphite-scop-detection.c (struct sese_l): New type.
10539 (get_entry_bb): API for getting entry bb of SESE.
10540 (get_exit_bb): API for getting exit bb of SESE.
10541 (class debug_printer): New type. Simple printer in debug mode.
10542 (trivially_empty_bb_p): New. Return true when BB is empty or
10543 contains only debug instructions.
10544 (graphite_can_represent_expr): Call scalar_evoution_in_region
10545 instead of analyze_scalar_evolution. Pass in scop instead of only
10547 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
10549 (stmt_simple_for_scop_p): Same.
10550 (harmful_stmt_in_bb): Same.
10551 (graphite_can_represent_loop): Deleted.
10552 (struct scopdet_info): Deleted.
10553 (scopdet_basic_block_info): Deleted.
10554 (build_scops_1): Deleted.
10555 (bb_in_sd_region): Deleted.
10556 (find_single_entry_edge): Deleted.
10557 (find_single_exit_edge): Deleted.
10558 (create_single_entry_edge): Deleted.
10559 (sd_region_without_exit): Deleted.
10560 (create_single_exit_edge): Deleted.
10561 (unmark_exit_edges): Deleted.
10562 (mark_exit_edges): Deleted.
10563 (create_sese_edges): Deleted.
10564 (build_graphite_scops): Deleted.
10565 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
10566 (build_scops): Use the new scop_builder to build scops.
10567 (dot_all_scops_1): Use the new pretty printer. Print loop father
10569 (loop_body_is_valid_scop): New. Return true if loop body is a
10571 (class scop_builder): New. Builds SCoPs for polyhedral
10573 (scop_builder): New constructor.
10574 (static sese_l invalid_sese): sese_l with invalid edges.
10575 (get_sese): Get an sese (from a loop) if possible, invalid_sese
10577 (get_nearest_dom_with_single_entry): Get nearest dominator of a
10578 basic_block with single entry. Return NULL if we get to the
10579 beginning of a function.
10580 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
10581 a basic_block with single exit. Return NULL if we get to the
10582 beginning of a function.
10583 (print_sese): Pretty-print SESE.
10584 (merge_sese): Merge two SESEs if possible and return the new SESE.
10585 (build_scop_depth): Start building the SCoP within a loop nest.
10586 (build_scop_breadth): Start building the SCoP at a single loop
10587 depth. Merge adjacent SESEs if valid.
10588 (can_represent_loop_1): Returns true if Graphite can represent
10589 loop inside SCoP. Helper for can_represent_loop.
10590 (can_represent_loop): Returns true if Graphite can represent LOOP
10591 and all its nested loops in SCoP.
10592 (loop_is_valid_scop): Returns true if LOOP and all its nests
10593 constitute a valid SCoP.
10594 (region_has_one_loop): Returns true of a region has only one loop.
10595 (add_scop): Add SCoP to the list of valid scops. Removes an
10596 already existing scop if it intersects with or subsumed by this one.
10597 (harmful_stmt_in_region): Returns true if SCoP has any statment
10598 which cannot be represented by Graphite.
10599 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
10600 (remove_subscops): Remove any SCoP from the list of already found
10601 SCoPs, if subsumed by S1.
10602 (intersects): Return true if region bounded by SCoPs S1 and S2
10604 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
10605 * graphite.c (print_graphite_scop_statistics):
10606 (print_graphite_statistics): Print SCoP info while debugging.
10607 (graphite_initialize): Early exit in case number of loops in a
10608 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
10609 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
10610 (graphite_finalize):
10611 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
10612 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
10613 (recompute_all_dominators): Recalculate POST_DOMINATORS.
10614 * tree-cfg.c (print_loops): Print the function name while printing
10617 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
10618 Sebastian Pop <s.pop@samsung.com>
10620 PR tree-optimization/67700
10621 * graphite-sese-to-poly.c (parameter_index_in_region): Call
10622 invariant_in_sese_p_rec.
10623 (extract_affine): Same.
10624 (rewrite_cross_bb_scalar_deps): Call update_ssa.
10625 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
10626 * sese.h (invariant_in_sese_p_rec): Declare.
10628 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
10630 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
10632 2015-09-28 Jiong Wang <jiong.wang@arm.com>
10635 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10636 Jiong Wang <jiong.wang@arm.com>
10638 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
10639 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
10640 (REG_CLASS_NAMES): Likewise.
10641 (REG_CLASS_CONTENTS): Likewise.
10642 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
10643 (aarch64_register_move_cost): Likewise.
10644 (aarch64_load_symref_appropriately): Invoke the new added pattern if
10646 * config/aarch64/constraints.md (Uc0): New constraint.
10648 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
10650 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
10652 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
10654 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
10655 SECTION_EXCLUDE in XO mapping class.
10657 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10660 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
10661 and handle ne and eq codes.
10662 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
10663 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
10664 CONST_INT_P. Use reverse_condition.
10665 (sh_split_treg_set_expr): Likewise.
10667 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
10669 * config/arm/types.md (type): Add rotate_imm.
10670 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
10671 ROR immediate case.
10672 (*rorsi3_insn_uxtw): Likewise.
10673 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
10674 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
10675 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
10677 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10679 PR rtl-optimization/67481
10680 * ifcvt.c (contains_ccmode_rtx_p): New function.
10681 (insn_valid_noce_process_p): Use it.
10683 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10685 PR rtl-optimization/67456
10686 PR rtl-optimization/67464
10687 PR rtl-optimization/67465
10688 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
10689 move in the mode of x. Handle combination of complex and simple
10690 block pairs as well as the case when one is empty.
10692 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10694 * doc/gimple.texi: Update references to gimple_statement_base.
10695 * gdbhooks.py: Likewise.
10696 * gimple.h: Likewise.
10698 2015-09-28 Daniel Cederman <cederman@gaisler.com>
10700 * config/sparc/driver-sparc.c: map LEON to leon3
10702 2015-09-28 Daniel Cederman <cederman@gaisler.com>
10704 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
10705 and make it inverse to change default
10706 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
10708 * doc/invoke.texi: Document change of default
10710 2015-09-28 Daniel Cederman <cederman@gaisler.com>
10712 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
10713 true on %f0 for a target without FPU.
10714 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
10716 (untyped_return): Do not load %f0 for a target without FPU.
10718 2015-09-28 Andrew Pinski <apinski@cavium.com>
10720 * config/aarch64/aarch64.md (prefetch):
10721 Change the predicate of operand 0 to register_operand.
10723 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
10725 * config/i386/predicates.md (register_sse4nonimm_operand): New
10727 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
10728 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
10729 Use register_sse4nonimm_operand as operand 0 predicate.
10730 (*vec_extractv8hi_sse2): Remove insn pattern.
10731 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
10732 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
10734 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
10735 Kaz Kojima <kkojima@gcc.gnu.org>
10738 * config/sh/sh-protos.h (sh_lra_p): Declare.
10739 * config/sh/sh.c (sh_lra_p): Make non-static.
10740 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
10741 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
10742 Expand into addsi3_scr if operands[2] if needed.
10743 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
10744 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
10745 (addsi3_scr, *addsi3): New insn_and_split patterns.
10747 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
10749 PR rtl-optimization/64164
10750 PR tree-optimization/67312
10751 PR middle-end/67340
10752 PR middle-end/67490
10754 * cfgexpand.c (parm_in_stack_slot_p): Remove.
10755 (ssa_default_def_partition): Remove.
10756 (get_rtl_for_parm_ssa_default_def): Remove.
10757 (set_rtl): Check that RTL assignments match expectations.
10758 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
10759 default def location for params and results. Record SSA names
10760 or types in REG and MEM attrs, respectively.
10761 (set_parm_rtl): New.
10762 (expand_one_ssa_partition): Drop logic that assigned MEMs with
10763 unassigned addresses.
10764 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
10765 deferred stack alloc vars.
10766 (expand_used_vars): Skip partitions holding parm default defs.
10767 Move adjust_one_expanded_partition_var loop...
10768 (pass_expand::execute): ... here. Drop redundant assert.
10769 Adjust comments before the final loop over all ssa names.
10770 Require assigned rtl of parms and results to match exactly.
10771 Reset its attributes to match them, not any other variables in
10772 the same partition.
10773 (expand_debug_expr): Use entry value for PARM's default defs
10774 only iff they have zero nondebug uses.
10775 * cfgexpand.h (parm_in_stack_slot_p): Remove.
10776 (get_rtl_for_parm_ssa_default_def): Remove.
10777 (set_parm_rtl): Declare.
10778 * doc/invoke.texi: Improve wording.
10779 * explow.c (promote_decl_mode): Fix promote_function_mode for
10780 result decls not by reference.
10781 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
10782 bypass TYPE_MODE to get the actual vector mode.
10783 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
10784 2015-08-19's changes as follows. Drop include of
10785 basic-block.h and df.h.
10786 (rtl_for_parm): Remove.
10787 (maybe_reset_rtl_for_parm): Remove.
10788 (parm_in_unassigned_mem_p): Remove.
10789 (use_register_for_decl): Add logic for RESULT_DECLs matching
10790 assign_parms' behavior.
10791 (split_complex_args): Revert.
10792 (assign_parms_augmented_arg_list): Revert. Add comment
10793 referencing the logic above.
10794 (assign_parm_adjust_stack_rtl): Revert.
10795 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
10796 of SET_DECL_RTL. Set up a REG if the parm demands so.
10797 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
10798 calls into a single set_parm_rtl. Set up a temporary RTL
10799 temporarily for expand_assignment.
10800 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
10801 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
10802 (assign_bounds): Revert.
10803 (assign_parms): Revert. Use set_parm_rtl.
10804 (allocate_struct_function): Relayout result and parms of
10805 non-abstruct functions.
10806 (expand_function_start): Revert. Use set_parm_rtl. If the
10807 result is not a hard reg, create a pseudo from the promoted
10808 mode of the default def. Promote static chain mode.
10809 * tree-outof-ssa.c (remove_ssa_form): Drop unused
10810 partition_has_default_def. Set up
10811 partitions_for_parm_default_defs.
10812 (finish_out_of_ssa): Remove partition_has_default_def.
10813 Release partitions_for_parm_default_defs.
10814 * tree-outof-ssa.h (struct ssaexpand): Remove
10815 partition_has_default_def. Add
10816 partitions_for_parm_default_defs.
10817 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
10819 (build_ssa_conflict_graph): Fix conflict-detection of default
10820 defs of even unused default defs of params and results.
10821 (for_all_parms): New.
10822 (create_default_def): New.
10823 (register_default_def): New.
10824 (coalesce_with_default): New.
10825 (create_outofssa_var_map): Create default defs for all parms
10826 and results, and register their partitions. Add GIMPLE_RETURN
10827 operands as coalesce candidates with results. Add default
10828 defs of each parm or result as coalesce candidates with its
10829 other defs. Mark each result def, and each default def of
10830 parms, as used_in_copy.
10831 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
10832 with the ssa names, even anonymous ones. Drop
10833 parm_in_stack_slot_p calls. Require same signedness and
10835 (coalesce_ssa_name): Add coalesce candidates for all defs of
10836 each parm and result, even unused ones.
10837 (parm_default_def_partition_arg): New type.
10838 (set_parm_default_def_partition): New.
10839 (get_parm_default_def_partitions): New.
10840 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
10841 * tree-ssa-live.c (partition_view_init): Regard unused defs of
10842 parms and results as used.
10843 (verify_live_on_entry): Don't error out just because they're
10846 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
10848 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
10849 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
10850 (output_fde): Don't output length for debug_frame on AIX.
10851 (output_call_frame_info): Don't output length for debug_frame on AIX.
10852 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
10853 HAVE_XCOFF_DWARF_EXTRAS.
10854 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
10855 HAVE_XCOFF_DWARF_EXTRAS.
10856 (output_compilation_unit_header): Don't output length on AIX.
10857 (output_pubnames): Don't output length on AIX.
10858 (output_aranges): Delete argument. Compute length locally. Don't
10859 output length on AIX.
10860 (output_line_info): Don't output length on AIX.
10861 (dwarf2out_finish): Don't compute aranges_length.
10862 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
10863 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
10864 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
10865 symbol decoration for AIX.
10866 (rs6000_xcoff_debug_unwind_info): New.
10867 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
10869 (rs6000_xcoff_declare_function_name): Emit different
10870 .function pseudo-op when DWARF2_DEBUG. Don't call
10871 xcoffout_declare_function for DWARF2_DEBUG.
10872 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
10874 * config/rs6000/aix71.h: New.
10875 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
10877 * configure: Regenerate.
10878 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
10881 2015-09-26 Jeff Law <law@redhat.com>
10883 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
10885 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
10888 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
10891 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
10892 undefined behaviour.
10894 * config/cris/cris.md (asrandb): Fix left shift undefined
10896 (asrandw): Likewise.
10898 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
10901 * lra-constarints.c (match_reload): Check presence of the input pseudo
10902 in the output operand.
10904 2015-09-25 Tobias Burnus <burnus@net-b.de>
10906 * doc/invoke.texi (-fsanitize): Minor wording tweak.
10908 2015-09-25 Tobias Burnus <burnus@net-b.de>
10910 * doc/invoke.texi (-fsanitize): Update URLs.
10912 2015-09-25 Teresa Johnson <tejohnson@google.com>
10914 * opts.c (finish_options): Unset -freorder-blocks-and-partition
10915 if not using profile.
10917 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
10919 PR pretty-print/67567
10920 * pretty-print.c (pp_string): Add gcc_checking_assert.
10921 * pretty-print.h (output_buffer_append_r): Likewise.
10923 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
10926 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
10927 addr2 individually. Don't emit logical or insn if one is known to
10928 be aligned approriately.
10929 (sh_expand_cmpnstr): Likewise.
10931 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
10933 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
10934 __builtin_aarch64_fp[sc]r arguments into a register.
10936 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
10938 * config.gcc (x86_archs): Replace lakemount with lakemont.
10939 (with_cpu): Likewise.
10940 (with_arch): Likewise.
10941 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
10942 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
10943 __tune_lakemount__ with __tune_lakemont__.
10944 * config/i386/i386.c (lakemount_cost): Renamed to ...
10945 (lakemont_cost): This.
10946 (m_LAKEMOUNT): Renamed to ...
10947 (m_LAKEMONT): This.
10948 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
10949 (processor_target_table): Replace "lakemount" with "lakemont".
10950 (processor_alias_table): Likewise.
10951 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
10952 PROCESSOR_LAKEMONT.
10953 (ix86_adjust_cost): Likewise.
10954 (ia32_multipass_dfa_lookahead): Likewise.
10955 * config/i386/i386.h (processor_type): Likewise.
10956 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
10957 * doc/invoke.texi: Replace lakemount with lakemont. Replace
10958 Lakemount with Lakemont.
10960 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
10962 * config.gcc (x86_archs): Replace iamcu with lakemount.
10963 (with_cpu): Likewise.
10964 (with_arch): Likewise.
10965 * doc/invoke.texi: Likewise.
10966 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
10967 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
10968 __tune_iamcu__ with __tune_lakemount__.
10969 * config/i386/i386.c (iamcu_cost): Renamed to ...
10970 (lakemount_cost): This.
10971 (m_IAMCU): Renamed to ...
10972 (m_LAKEMOUNT): This.
10973 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
10974 (processor_target_table): Replace "iamcu" with "lakemount".
10975 (processor_alias_table): Likewise.
10976 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
10977 PROCESSOR_LAKEMOUNT.
10978 (ix86_adjust_cost): Likewise.
10979 (ia32_multipass_dfa_lookahead): Likewise.
10980 * config/i386/i386.h (processor_type): Likewise.
10981 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
10983 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
10985 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
10986 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
10988 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
10989 (pa_expand_compare_and_swap_loop): New.
10990 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
10991 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
10992 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
10993 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
10994 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
10997 2015-09-24 Michael Collison <michael.collison@linaro.org>
11000 * read-md.c (read_name): Allow mode iterators inside angle
11001 brackets in rtl expressions.
11003 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
11006 * ira-color.c (update_allocno_cost): Add parameter.
11007 (update_costs_from_allocno): Decrease conflict cost. Pass the new
11010 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
11013 * opts-common.c (prune_options): Discard all -fdiagnostics-color
11014 but the last one, which is moved to the front to be processed
11016 * opts.c (enable_warning_as_error): Reject options that do not
11019 2015-09-24 Jiong Wang <jiong.wang@arm.com>
11021 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
11023 2015-09-24 Jiong Wang <jiong.wang@arm.com>
11025 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
11026 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
11027 (aarch64_cannot_force_const_mem): Likewise.
11028 (aarch64_classify_address): Likewise.
11029 (aarch64_classify_symbolic_expression): Likewise.
11030 (aarch64_print_operand): Likewise.
11031 (aarch64_classify_symbol): Likewise.
11032 (aarch64_mov_operand_p): Likewise.
11033 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
11034 (aarch64_mov_operand): Likewise.
11036 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
11038 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
11039 for info->spe_gp_size.
11041 2015-09-24 Richard Biener <rguenther@suse.de>
11044 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
11047 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
11049 * tree-object-size.c (plus_stmt_object_size)
11050 (cond_expr_object_size): Change the formal parameters from gimple
11052 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
11053 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
11054 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
11056 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11058 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
11059 Check for ld -type pie on Solaris 11.x and 12.
11060 * configure: Regenerate.
11061 * config.in: Regenerate.
11063 * gcc.c (LD_PIE_SPEC): Allow redefinition.
11065 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
11066 (STARTFILE_SPEC): Use it.
11067 (ENDFILE_CRTEND_SPEC): Define.
11068 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
11069 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
11070 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
11071 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
11072 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
11073 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
11074 (ENDFILE_ARCH_SPEC): Define.
11075 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
11077 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11079 * configure.ac (gcc_cv_solaris_crts): New test.
11080 * configure. Regenerate.
11081 * config.in: Regenerate.
11082 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
11083 HAVE_SOLARIS_CRTS variant.
11085 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11087 * tree-inline.h (count_insns_seq): Delete prototype.
11088 (estimate_num_insns_seq): Define prototype.
11089 * tree-inline.c (count_insns_seq): Delete.
11090 (estimate_num_insns_seq): Remove static qualifier.
11091 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
11092 with estimate_num_insns_seq.
11094 2015-09-24 Richard Biener <rguenther@suse.de>
11096 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
11098 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
11099 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
11101 (ao_ref_init_from_vn_reference): Record clique and base in the
11103 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
11105 2015-09-24 Richard Biener <rguenther@suse.de>
11107 PR tree-optimization/48885
11108 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
11109 as not including any restrict tags from other pointers.
11111 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
11113 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
11114 character when appending to offload_targets.
11116 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
11117 offload targets by commas, not colons.
11118 * config.in: Regenerate.
11119 * configure: Likewise.
11120 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
11121 instead of setting up the default offload targets here...
11122 (process_command): ..., do it here.
11124 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
11125 targets are separated by commas.
11126 * config.h.in: Regenerate.
11128 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
11129 Nathan Sidwell <nathan@codesourcery.com>
11131 * omp-low.h (omp_reduction_init_op): Declare.
11132 * omp-low.c (omp_reduction_init_op): New, broken out of ...
11133 (omp_reduction_init): ... here. Call it.
11134 * tree-parloops.c (initialize_reductions): Use
11135 omp_reduction_init_op.
11137 2015-09-23 Richard Biener <rguenther@suse.de>
11139 PR middle-end/67662
11140 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
11141 undefined overflow unless they will cancel out.
11143 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
11145 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
11148 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
11151 * opts.h (write_langs): Declare.
11152 * opts-global.c (write_langs): Make it extern.
11154 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
11157 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
11158 overlapping regs when matching the pattern.
11160 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
11162 * config/aarch64/aarch64-simd.md
11163 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
11164 (aarch64_float_truncate_hi_v4sf_le): New.
11165 (aarch64_float_truncate_hi_v4sf_be): Likewise.
11167 2015-09-23 Richard Biener <rguenther@suse.de>
11169 * tree-ssa-structalias.c (intra_create_variable_infos): Build
11170 representatives for all restrict qualified pointer destinations.
11172 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
11174 * config/i386/i386.md (define_code_attr mshift): New.
11175 (define_mode_iterator SWI1248_AVX512BW): Rename ...
11176 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
11178 (define_insn "*k<logic><mode>"): Use new iterator name.
11179 (define_insn "*<mshift><mode>3"): New.
11181 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
11183 PR middle-end/67649
11184 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
11185 mark the block as accessible.
11187 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
11189 * function.c (thread_prologue_and_epilogue_insns): Delete
11190 orig_entry_edge argument to try_shrink_wrapping.
11191 * shrink-wrap.c (can_get_prologue): New function.
11192 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
11193 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
11194 can_get_prologue where needed. Remove code that finds a single
11195 edge for the prologue. Remove code that tests if any reg clobbered
11196 by the prologue is live on the prologue edge. Remove code that finds
11197 the new prologue edge after duplicating blocks. Make a new prologue
11199 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
11201 2015-09-22 Jeff Law <law@redhat.com>
11203 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
11206 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
11208 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
11209 -Wtemplates, -Wnamespaces): Document.
11211 2015-09-22 Tom de Vries <tom@codesourcery.com>
11213 PR tree-optimization/67671
11214 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
11215 pointer references as restrict.
11217 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
11219 * config/nios2/nios2.c (nios2_legitimize_address): When handling
11220 'reg + reloc' cases, allow first operand to be non-REG, and use
11221 force_reg() to enforce address pattern.
11223 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
11226 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
11227 (define_mode_iterator VI12_AVX_AVX512F): New.
11228 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
11229 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
11230 (define_insn "*<code><mode>3"): ... Into new pattern using
11231 VI12_AVX_AVX512F iterators without masking.
11233 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
11235 * config.gcc: Support "skylake-avx512".
11236 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11237 PROCESSOR_SKYLAKE_AVX512.
11238 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
11239 (processor_target_table): Add "skylake-avx512".
11240 (PTA_SKYLAKE_AVX512): Define.
11241 (ix86_option_override_internal): Add "skylake_avx512".
11242 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
11243 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
11244 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
11245 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
11246 * doc/invoke.texi (skylake-avx512): New.
11248 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
11250 * config/i386/i386.md (define_insn "kunpckhi"): Fix
11251 operand in pattern.
11252 (define_insn "kunpcksi"): Ditto.
11253 (define_insn "kunpckdi"): Ditto.
11255 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
11257 * config/i386/i386.md (define_split not/xor SWI1248x): Use
11258 iterator instead of fixed modes.
11260 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11262 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
11263 Adjust declaration.
11264 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
11265 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
11266 out_result. Update to support update-fetch operations.
11267 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
11268 Adjust for change to aarch64_gen_atomic_ldop.
11269 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
11270 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
11271 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
11272 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
11273 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
11275 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11277 * config/aarch64/aarch64-protos.h
11278 (aarch64_atomic_ldop_supported_p): Declare.
11279 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
11280 (enum aarch64_atomic_load_op_code): New.
11281 (aarch64_emit_atomic_load_op): New.
11282 (aarch64_gen_atomic_ldop): Update to support load-operate
11284 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
11286 (aarch64_atomic_<atomic_optab><mode>): New.
11287 (aarch64_atomic_<atomic_optab><mode>_lse): New.
11288 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
11289 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
11290 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
11292 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11294 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
11295 (UNSPECV_ATOMIC_LDOP_OR): New.
11296 (UNSPECV_ATOMIC_LDOP_BIC): New.
11297 (UNSPECV_ATOMIC_LDOP_XOR): New.
11298 (UNSPECV_ATOMIC_LDOP_PLUS): New.
11299 (ATOMIC_LDOP): New.
11300 (atomic_ldop): New.
11301 (aarch64_atomic_load<atomic_ldop><mode>): New.
11303 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11305 * config/aarch64/aarch64.md
11306 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
11309 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11311 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
11313 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
11314 (aarch64_gen_atomic_ldop): New.
11315 (aarch64_split_atomic_op): Fix whitespace and add a comment.
11316 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
11317 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
11318 (atomic_exchange<mode>): Replace with an expander.
11319 (aarch64_atomic_exchange<mode>): New.
11320 (aarch64_atomic_exchange<mode>_lse): New.
11321 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
11322 (aarch64_atomic_swp<mode>): New.
11324 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
11326 * tree-inline.c (expand_call_inline): Use inform for extra note.
11327 Do not give a note with UNKNOWN_LOCATION.
11328 Replace input_location with gimple_location (stmt).
11329 Use true/false instead of TRUE/FALSE.
11331 2015-09-22 Tom de Vries <tom@codesourcery.com>
11333 PR tree-optimization/67666
11334 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
11335 with single field non-conservative.
11337 2015-09-21 David S. Miller <davem@davemloft.net>
11341 2015-09-11 David S. Miller <davem@davemloft.net>
11343 * config/sparc/constraints.md: Make "U" constraint a real register
11345 * config/sparc/sparc.c (TARGET_LRA_P): Define.
11346 (D_MODES, DF_MODES): Add missing cast.
11347 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
11348 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
11349 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
11351 * config/sparc/sparc.h (PROMOTE_MODE): Define.
11352 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
11353 provide these insn when flag_pic.
11355 2015-09-17 David S. Miller <davem@davemloft.net>
11357 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
11359 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
11361 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
11362 (HARD_REGNO_CALLER_SAVE_MODE): Define.
11363 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
11364 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
11365 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
11366 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
11367 provide when flag_pic.
11369 2015-09-21 Jeff Law <law@redhat.com>
11371 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
11374 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11376 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
11378 2015-09-21 Richard Biener <rguenther@suse.de>
11380 * passes.c (rest_of_decl_compilation): Do not call
11381 dwarf2out_early_global_decl for aliases.
11383 2015-09-21 Richard Biener <rguenther@suse.de>
11386 * dwarf2out.c (add_location_or_const_value_attribute): Remove
11387 attribute parameter. Early exit if either DW_AT_const_value
11388 or DW_AT_location are present already.
11389 (gen_variable_die): Adjust caller.
11390 (dwarf2out_late_global_decl): Likewise.
11392 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
11395 * config/sh/sh.c (sh_remove_overlapping_post_inc,
11396 sh_peephole_emit_move_insn): Add new functions.
11397 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
11398 sh_peephole_emit_move_insn): Declere them.
11399 * config/sh/sh.md: Use them in various peephole2 patterns.
11401 2015-09-21 Richard Biener <rguenther@suse.de>
11403 PR middle-end/67651
11404 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
11405 address with -fno-delete-null-pointer-checks.
11407 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
11409 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
11410 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
11411 (reduc_uplus_v16qi): Remove.
11413 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
11414 (reduc_<VEC_reduc_name>_v2df): Remove.
11415 (reduc_<VEC_reduc_name>_v4sf): Remove.
11416 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
11418 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
11419 gen_ function by removing * prefix.
11420 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
11422 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
11424 PR middle-end/60832
11425 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
11426 Print i_bound without converting it to a tree.
11428 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
11430 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
11431 operands[4] operands[5] swap with std::swap, removed tmp variable.
11432 (arm_evpc_neon_vzip): Replaced in0/in1 and
11433 out0/out1 swaps with std::swap, removed x variable.
11434 (arm_evpc_neon_vtrn): Replaced in0/int1 and
11435 out0/out1 swaos with std::swap, removed x variable.
11436 (arm_expand_vec_perm_const_1): Replaced
11437 d->op0/d->op1 swap with std::swap, removed x variable.
11438 (arm_evpc_neon_vuzp): Replaced in0/in1 and
11439 out0/out1 swaps with std::swap, removed x variable.
11441 2015-09-21 Jonathan Yong <10walls@gmail.com>
11443 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
11444 sysroot/usr/lib/32api for additional win32 libraries,
11445 fixes failing Cygwin bootstrapping.
11447 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
11449 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
11451 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
11454 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
11455 (*mov_t_msb_neg): Rewrite negc pattern.
11457 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
11459 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
11460 immediate generation code.
11462 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
11464 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
11465 redundant immediate generation code.
11467 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
11469 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
11470 (AARCH64_NUM_BITMASKS): Remove.
11471 (aarch64_bitmasks_cmp): Remove.
11472 (aarch64_build_bitmask_table): Remove.
11474 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
11476 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
11477 slow immediate matching loops with a faster algorithm.
11479 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
11481 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
11484 2015-09-20 Jeff Law <law@redhat.com>
11486 PR tree-optimization/47679
11487 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
11488 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
11489 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
11490 (thread_through_normal_block): Use record_temporary_equivalences.
11492 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
11494 * coretypes.h (gimple): Change typedef to be a forward declaration.
11495 * gimple.h (gimple_statement_base): rename to gimple.
11496 * (all functions and types using gimple): Adjust.
11497 * *.[ch]: Likewise.
11499 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
11500 David Edelsohn <dje.gcc@gmail.com>
11502 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
11503 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11504 (EH_FRAME_THROUGH_COLLECT2): Define.
11505 (EH_TABLES_CAN_BE_READ_ONLY): Define.
11506 (ASM_OUTPUT_DWARF_PCREL): Define.
11507 (ASM_OUTPUT_DWARF_DATAREL): Define.
11509 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
11511 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
11514 2015-09-18 Jeff Law <law@redhat.com>
11516 PR tree-optimization/47679
11517 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
11519 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
11520 object. Update constructor.
11521 (pass_dominator::execute): Corresponding chagnes to declaration
11522 and initialization of avail_exprs_stack. Update constructor call
11523 for dom_opt_dom_walker object.
11524 (lookup_avail_expr, record_cond): Accept additional argument. Pass
11525 it down to children as needed.
11526 (record_equivalences_from_incoming_edge): Likewise.
11527 (eliminate_redundant_computations): Likewise.
11528 (record_equivalences_from_stmt): Likewise.
11529 (simplify_stmt_for_jump_threading): Likewise.
11530 (record_temporary_equivalences): Likewise.
11531 (optimize_stmt): Likewise.
11532 (dom_opt_dom_walker::thread_across_edge): Update access to
11533 avail_exprs_stack object and pass it to children as needed.
11534 (dom_opt_dom_walker::before_dom_children): Similarly.
11535 (dom_opt_dom_walker::after_dom_children): Similarly.
11536 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
11537 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
11538 Add avail_expr_stack argument. Pass it to children as needed.
11539 (dummy_simplify): Likewise.
11540 (simplify_control_stmt_condition): Likewise.
11541 (thread_around_empty_blocks): Likewise.
11542 (thread_through_normal_block): Likewise.
11543 (thread_across_edge): Likewise.
11544 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
11545 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
11547 PR tree-optimization/47679
11548 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
11550 (dom_opt_dom_walker): New private member holding the const_and_copies
11551 object. Update constructor.
11552 (pass_dominator::execute): Corresponding changes to declaration
11553 and initialization of const_and_copies. Update constructor call
11554 for the dom_opt_dom_walker object.
11555 (record_temporary_equivalences): Accept const_and_copies argument
11556 pass it down to children as needed.
11557 (record_equality): Likewise.
11558 (record_equivalences_from_incoming_edge): Likewise.
11559 (cprop_into_successor_phis, optimize_stmt): Likewise.
11560 (eliminate_redundant_computations): Likewise.
11561 (dom_opt_dom_walker::thread_across_edge): Update access to
11562 const_and_copies object and pass it to children as needed.
11563 (dom_opt_dom_walker::before_dom_children): Similarly.
11564 (dom_opt_dom_walker::after_dom_children): Similarly.
11566 PR tree-optimization/47679
11567 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
11568 it into the avail_exprs_stack class.
11569 (pass_dominator::execute): Corresponding changes to declaration
11570 and initialization of avail_exprs. Pass avail_exprs to
11571 dump_dominator_optimization_stats.
11572 (record_cond): Extract avail_exprs from avail_exprs_stack.
11573 (lookup_avail_expr): Similarly.
11574 (htab_staticstics): Remove unnecessary prototype. Move to earlier
11576 (dump_dominator_optimization_stats): Make static and prototype.
11577 Add argument for the hash table to dump.
11578 (debug_dominator_optimization_stats): Remove.
11579 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
11581 (debug_dominator_optimization_stats): Similarly.
11582 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
11583 "void" in prototype for pop_to_marker method. Add accessor method
11584 for the underlying avail_exprs table.
11586 * tree-ssa-threadedge.c: Remove trailing whitespace.
11588 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
11590 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
11592 (pa_ldil_cint_p): Likewise.
11593 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
11594 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
11596 * config/pa/pa.md: Likewise.
11598 2015-09-18 David Malcolm <dmalcolm@redhat.com>
11600 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
11601 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
11602 (diagnostic_show_locus): Likewise.
11603 (diagnostic_print_caret_line): Likewise.
11604 * diagnostic-show-locus.c: New file.
11606 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
11608 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
11609 "back" parameter. Declare label in #if block.
11611 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
11613 PR middle-end/67619
11614 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
11615 the address to a register.
11617 2015-09-18 Jeff Law <law@redhat.com>
11619 PR tree-optimization/47679
11620 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
11621 * tree-ssa-dom.c: Remove unnecessary header includes.
11622 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
11623 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
11624 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
11625 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
11626 (pass_phi_only_cprop::execute): Likewise.
11627 (make_pass_phi_only_cprop): Likewise.
11628 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
11629 uses of file scoped statics by passing the required objects
11630 as parameters wherever needed.
11632 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
11633 David Edelsohn <dje.gcc@gmail.com>
11635 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
11636 EH_FRAME_THROUGH_COLLECT2.
11637 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
11639 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
11640 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
11641 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
11642 * except.c (switch_to_exception_section): Use a read-only section
11643 even if EH_FRAME_SECTION_NAME is undefined.
11644 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
11645 * collect2.c (write_c_file_stat): Provide dbase on AIX.
11646 (scan_prog_file): Don't export __dso_handle nor
11647 __gcc_unwind_dbase.
11648 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11649 (EH_TABLES_CAN_BE_READ_ONLY): Define.
11650 (ASM_OUTPUT_DWARF_PCREL): Define.
11651 (ASM_OUTPUT_DWARF_DATAREL): Define.
11652 (EH_FRAME_THROUGH_COLLECT2): Define.
11653 (EH_FRAME_IN_DATA_SECTION): Delete.
11654 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
11655 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
11657 (rs6000_asm_output_dwarf_datarel): Declare.
11658 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
11659 (rs6000_aix_asm_output_dwarf_datarel): New.
11660 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
11661 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
11662 (EH_FRAME_THROUGH_COLLECT2): Define.
11663 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
11664 (EH_FRAME_THROUGH_COLLECT2): Define.
11665 (EH_TABLES_CAN_BE_READ_ONLY): Define.
11666 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
11667 (EH_FRAME_THROUGH_COLLECT2): New.
11668 (ASM_OUTPUT_DWARF_DATAREL): New.
11669 * doc/tm.texi: Regenerate.
11671 2015-09-18 Richard Biener <rguenther@suse.de>
11673 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
11674 we're in early phase.
11675 (schedule_generic_params_dies_gen): Likewise.
11676 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
11677 work as possible, retaining unhandled cases.
11678 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
11679 clear out generic_type_instances at the end.
11680 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
11681 (dwarf2out_early_finish): ... here. Do most of
11682 gen_remaining_tmpl_value_param_die_attribute here.
11684 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
11686 PR tree-optimization/67283
11687 * tree-sra.c (type_consists_of_records_p): Rename to...
11688 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11689 (completely_scalarize_record): Rename to...
11690 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
11691 (scalarize_elem): New.
11692 (analyze_all_variable_accesses): Follow renamings.
11694 2015-09-18 Richard Biener <rguenther@suse.de>
11696 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
11699 2015-09-18 Richard Biener <rguenther@suse.de>
11701 PR tree-optimization/66142
11702 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
11703 treat MEM[&x] and x the same.
11704 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
11705 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
11706 when we simplified sth.
11707 (vn_reference_maybe_forwprop_address): Likewise.
11708 (valueize_refs_1): When we simplified through
11709 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
11710 set valueized_anything to true.
11711 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
11712 one ref kills the other instead of just a offset-based test.
11713 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
11714 for the operand_equal_p test to compare bases and also compare
11717 2015-09-17 Christian Bruel <christian.bruel@st.com>
11719 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
11721 2015-09-17 Richard Henderson <rth@redhat.com>
11724 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
11725 pointers that encode the alignment of the object.
11727 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
11729 PR rtl-optimization/66790
11730 * df-problems.c (LIVE): Amend documentation.
11732 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
11734 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
11736 (GTFILES): Replace optabs.c with optabs-libfunc.c.
11737 * genopinit.c (main): Add an include guard to insn-opinit.h.
11738 Protect the rtx_code parts with NUM_RTX_CODE.
11739 * optabs.h: Split parts out to...
11740 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
11741 * optabs.c: Split parts out to...
11742 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
11743 * cilk-common.c: Include optabs-query.h rather than optabs.h.
11744 * fold-const.c: Likewise.
11745 * target-globals.c: Likewise.
11746 * tree-if-conv.c: Likewise.
11747 * tree-ssa-forwprop.c: Likewise.
11748 * tree-ssa-loop-prefetch.c: Likewise.
11749 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
11750 Remove unncessary include files.
11751 * tree-ssa-phiopt.c: Likewise.
11752 * tree-ssa-reassoc.c: Likewise.
11753 * tree-switch-conversion.c: Likewise.
11754 * tree-vect-data-refs.c: Likewise.
11755 * tree-vect-generic.c: Likewise.
11756 * tree-vect-loop.c: Likewise.
11757 * tree-vect-patterns.c: Likewise.
11758 * tree-vect-slp.c: Likewise.
11759 * tree-vect-stmts.c: Likewise.
11760 * tree-vrp.c: Likewise.
11761 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
11762 rather than optabs.h.
11763 * expr.c: Include optabs-tree.h.
11764 * function.c: Likewise.
11766 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
11768 PR middle-end/65958
11769 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
11770 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
11771 * config/arm/arm.c: Include common/common-target.h.
11772 (use_return_insn): Return 0 if the static chain register was saved
11773 above a non-APCS frame.
11774 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
11775 (struct scratch_reg): New.
11776 (get_scratch_register_on_entry): New function.
11777 (release_scratch_register_on_entry): Likewise.
11778 (arm_emit_probe_stack_range): Likewise.
11779 (output_probe_stack_range): Likewise.
11780 (arm_expand_prologue): Factor out code dealing with the IP register
11781 for nested function and adjust it for stack checking.
11782 Invoke arm_emit_probe_stack_range if static builtin stack checking
11784 (thumb1_expand_prologue): Sorry out if static builtin stack checking
11786 (arm_expand_epilogue): Add the saved static chain register, if any, to
11787 the amount of pre-pushed registers to pop.
11788 (arm_frame_pointer_required): Return true if static stack checking is
11789 enabled and we want to catch the exception with the EABI unwinder.
11790 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
11791 (UNSPEC_PROBE_STACK_RANGE): Likewise.
11792 * config/arm/arm.md (probe_stack): New insn.
11793 (probe_stack_range): Likewise.
11795 2015-09-17 Richard Biener <rguenther@suse.de>
11797 * genmatch.c (parser::parse_expr): Improve error message
11798 for mis-placed flags.
11800 2015-09-17 Richard Biener <rguenther@suse.de>
11802 * passes.c (rest_of_decl_compilation): Always call early_global_decl
11803 debug hook when we created a varpool node.
11804 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
11805 dwarf2out_early_global_decl, when not just add location or
11806 value attributes to existing DIEs.
11808 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
11810 * config/aarch64/aarch64.md (copysigndf3): New.
11811 (copysignsf3): Likewise.
11813 2015-09-17 David S. Miller <davem@davemloft.net>
11815 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
11816 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
11817 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
11818 (HARD_REGNO_CALLER_SAVE_MODE): Define.
11819 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
11820 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
11821 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
11822 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
11823 provide when flag_pic.
11825 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
11827 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
11828 object_allocator change.
11830 2015-09-17 Bin Cheng <bin.cheng@arm.com>
11832 PR tree-optimization/66388
11833 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
11834 (dump_iv): Dump no_overflow information.
11835 (alloc_iv): Initialize new field for struct iv.
11836 (mark_bivs): Count number of no_overflow bivs.
11837 (find_deriving_biv_for_expr, record_biv_for_address_use): New
11839 (idx_find_step): Call new functions above.
11840 (add_candidate_1, add_candidate): New paramter.
11841 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
11842 (get_computation_aff): Simplify convertion of cand for BIV.
11843 (get_computation_cost_at): Step cand's base if necessary.
11845 2015-09-17 Bin Cheng <bin.cheng@arm.com>
11847 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
11849 (tree_simplify_using_condition): Ditto.
11850 (simplify_using_initial_conditions): Ditto.
11851 (loop_exits_before_overflow): Pass new argument to function
11852 simplify_using_initial_conditions. Remove case for type conversions
11854 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
11856 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
11857 in iv base using loop initial conditions.
11859 2015-09-16 Jeff Law <law@redhat.com>
11861 PR tree-optimization/47679
11862 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
11863 (free_all_edge_infos): Use it.
11864 (allocate_edge_info): Free preexisting edge info data.
11865 (pass_dominator::execute): Set up initial edge info structures.
11866 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
11867 thread_across_edge.
11868 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
11869 If non-null, then push/pop markers appropriately.
11870 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
11871 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
11872 thread-across_edge.
11874 2015-09-16 James Bowman <james.bowman@ftdichip.com>
11876 * config/ft32/ft32.c: Fix the memory address space predicate.
11878 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
11881 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
11882 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
11884 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
11886 * toplev.h (check_global_declaration): Remove declaration.
11887 * toplev.c (check_global_declaration): Move to ...
11888 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
11889 (analyze_functions): Update call.
11891 2015-09-16 David S. Miller <davem@davemloft.net>
11893 * lra-constraints.c (simplify_operand_subreg): Do not assume that
11894 lowpart of a SUBREG has offset zero.
11896 2015-09-16 Jeff Law <law@redhat.com>
11898 PR tree-optimization/47679
11899 * tree-ssa-dom.c (enum expr_kind): Moved from here to
11900 tree-ssa-scopedtables.h.
11901 (struct hashable_expr, class expr_hash_elt): Likewise.
11902 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
11903 Move associated methods into tree-ssa-scopedtables.c.
11904 (avail_expr_hash, initialize_expr_from_cond): Similarly.
11905 (hashable_expr_equal_p, add_expr_commutative): Likewise.
11906 (add_hashable_expr): Likewise.
11907 (record_cond): Delete element directly.
11908 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
11909 private copy ctor and assignment operator methods.
11910 (expr_elt_hasher): Inline trivial methods.
11911 (initialize_expr_from_cond): Prototype.
11912 * tree-ssa-scopedtables.c: Add necessary includes, functions and
11913 methods that were previously in tree-ssa-dom.c. Improve various
11916 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
11918 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
11920 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
11923 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
11926 2015-09-16 Richard Biener <rguenther@suse.de>
11928 PR middle-end/67253
11929 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
11930 location of possibly shared trees.
11932 2015-09-16 Richard Biener <rguenther@suse.de>
11934 PR middle-end/67271
11935 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
11937 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
11939 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
11940 offset and size computations instead of HOST_WIDE_INT.
11942 2015-09-16 Richard Biener <rguenther@suse.de>
11944 PR middle-end/67442
11945 * fold-const.c (extract_muldiv_1): Properly extend multiplication
11946 result before builting a tree via wide_int_to_tree.
11948 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
11950 * Makefile.in: Add memory-block.cc
11951 (pool_allocator::initialize): Use fixed block size.
11952 (pool_allocator::release): Use memory_block_pool.
11953 (pool_allocator::allocate): Likewise.
11954 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
11956 * cfg.c (initialize_original_copy_tables): Likewise.
11957 * cselib.c (elt_list_pool, elt_loc_list_pool,
11958 cselib_val_pool): Likewise.
11959 * df-problems.c (df_chain_alloc): Likewise.
11960 * df-scan.c (df_scan_alloc): Likewise.
11961 * dse.c (cse_store_info_pool, rtx_store_info_pool,
11962 read_info_type_pool, insn_info_type_pool, bb_info_pool,
11963 group_info_pool, deferred_change_pool): Likewise.
11964 * et-forest.c (et_nodes, et_occurrences): Likewise.
11965 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
11966 ipcp_agg_lattice_pool): Likewise.
11967 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
11968 * ipa-profile.c (histogram_pool): Likewise.
11969 * ipa-prop.c (ipa_refdesc_pool): Likewise.
11970 * ira-build.c (live_range_pool, allocno_pool, object_pool,
11971 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
11972 * ira-color.c (update_cost_record_pool): Likewise.
11973 * lra-lives.c (lra_live_range_pool): Likewise.
11974 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
11975 * memory-block.cc: New file.
11976 * memory-block.h: New file.
11977 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
11978 * sched-deps.c (sched_deps_init): Likewise.
11979 * sel-sched-ir.c (sched_lists_pool): Likewise.
11980 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
11981 * tree-sra.c (access_pool): Likewise.
11982 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
11983 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
11984 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
11985 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
11986 * tree-ssa-strlen.c (strinfo_pool): Likewise.
11987 * tree-ssa-structalias.c (variable_info_pool): Likewise.
11988 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
11989 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
11991 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
11993 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
11995 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
11998 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
12000 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
12001 to pass TLS call argument, according to current ABI.
12002 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
12003 callx0 for TLS call, according to current ABI.
12005 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
12007 * tree-eh.c (lower_try_finally_dup_block): Clear location information
12008 on stack restore statements.
12009 (decide_copy_try_finally): Do not consider a stack restore statement as
12010 coming from sources.
12012 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
12014 * config/alpha/alpha.c (alpha_expand_block_clear): Use
12015 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
12017 2015-09-15 Jeff Law <law@redhat.com>
12019 PR tree-optimization/47679
12020 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
12021 methods and private members.
12022 (avail_exprs_stack): Similarly. Change type of global
12023 from a pair of expr_hash_elt_t to the new class.
12024 (expr_elt_hasher::hash): Corresponding changes.
12025 (expr_elt_hasher::equal): Similarly.
12026 (avail_expr_hash): Similarly.
12027 (pass_dominator::execute): Similarly.
12028 (dom_opt_dom_walker::thread_across_edge): Similarly.
12029 (record_cond): Similarly.
12030 (dom_opt_dom_walker::before_dom_children): Similarly.
12031 (dom_opt_dom_walker::after_dom_children): Similarly.
12032 (lookup_avail_expr): Likewise.
12033 (initialize_hash_element): Now a expr_hash_elt constructor.
12034 (initialize_hash_element_from_expr): Similarly.
12035 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
12036 (free_expr_hash_elt): Call dtor for the element.
12037 (remove_local_expressions_from_table): Now the "pop_to_marker"
12038 method in the available_exprs_stack class.
12039 (avail_expr_stack::record_expr): Method factored out.
12040 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
12042 (hashable_expr_equal_p): Fix formatting.
12044 2015-09-15 David Malcolm <dmalcolm@redhat.com>
12046 * input.h (location_get_source_line): Drop "expanded_location"
12047 param in favor of a file and line number.
12048 * input.c (location_get_source_line): Likewise.
12049 (dump_location_info): Update for change in signature of
12050 location_get_source_line.
12051 * diagnostic.c (diagnostic_print_caret_line): Likewise.
12053 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
12055 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
12056 Bump to 4KB for SJLJ exceptions.
12057 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
12058 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
12059 * doc/tm.texi: Regenerate.
12061 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12063 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
12064 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
12067 2015-09-15 Richard Biener <rguenther@suse.de>
12069 PR tree-optimization/67470
12070 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
12071 structure for PHI hoisting by inserting a forwarder block
12074 2015-09-15 Christian Bruel <christian.bruel@st.com>
12076 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
12077 (arm_option_print): New function.
12079 2015-09-15 Christian Bruel <christian.bruel@st.com>
12082 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
12083 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
12084 Remove flags parameter.
12085 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
12086 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
12087 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
12088 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
12089 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
12090 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
12091 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
12092 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
12094 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12096 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
12098 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
12099 AARCH64_VALID_SIMD_DREG_MODE.
12101 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12103 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
12104 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
12105 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
12106 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
12107 aarch64_ld4_lane<mode>): Combine together, making...
12108 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
12109 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
12110 aarch64_st4_lane<mode>): Combine together, making...
12111 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
12112 * config/aarch64/iterators.md (nregs): Add comment.
12114 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12116 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
12117 Change operand mode from <V_TWO_ELEM> to BLK.
12118 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
12119 (aarch64_vec_store_lanesoi_lane<mode): Likewise
12120 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12121 (aarch64_ld2_lane<mode>): Likewise.
12122 (aarch64_st2_lane<VQ:mode>): Likewise.
12123 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
12125 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12127 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
12128 Change operand mode from <V_FOUR_ELEM> to BLK.
12129 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
12130 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
12131 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12132 (aarch64_ld4_lane<mode>): Likewise.
12133 (aarch64_st4_lane<mode>): Likewise.
12134 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
12136 2015-09-15 Richard Biener <rguenther@suse.de>
12138 PR middle-end/67563
12139 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
12140 transfer EH info from old to new stmt.
12141 (replace_call_with_value): Likewise.
12142 (replace_call_with_call_and_fold): Likewise.
12143 (gimple_fold_builtin_memory_op): Likewise.
12144 (gimple_fold_builtin_memset): Likewise.
12145 (gimple_fold_builtin_stpcpy): Likewise.
12146 (gimple_fold_call): Likewise.
12148 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12150 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
12152 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
12153 (aarch64_simd_intEI_type_node): Likewise.
12154 (aarch64_simd_builtin_std_type): Remove EImode case.
12155 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
12156 * config/aarch64/aarch64-modes.def: Remove EImode.
12158 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12160 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
12161 Change operand mode from <V_THREE_ELEM> to BLK.
12162 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
12163 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
12164 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12165 (aarch64_ld3_lane<mode>): Likewise.
12166 (aarch64_st3_lane<mode>): Likewise.
12167 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
12169 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12171 * config/aarch64/aarch64-simd.md
12172 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
12173 Change all TImode operands to BLKmode.
12174 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
12175 Change all EImode operands to BLKmode.
12176 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
12177 Change all OImode operands to BLKmode.
12179 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
12180 and call set_mem_size.
12181 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
12183 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
12185 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12187 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
12189 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
12191 (vec_store_lanesci_lane<mode>): Rename to...
12192 (aarch64_vec_store_lanesci_lane<mode>): ...this.
12194 (vec_store_lanesxi_lane<mode>): Rename to...
12195 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
12197 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
12198 aarch64_st4_lane<mode>): Follow renaming.
12200 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12202 * config/s390/s390.c (s390_const_operand_ok): Add missing
12205 2015-09-15 Richard Biener <rguenther@suse.de>
12208 * lto-streamer.h (lto_location_cache::current_sysp): Properly
12210 * lto-streamer-out.c (clear_line_info): Likewise.
12212 2015-09-15 Richard Biener <rguenther@suse.de>
12214 * doc/match-and-simplify.texi: Fix wording.
12216 2015-09-15 Bin Cheng <bin.cheng@arm.com>
12218 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
12219 unnecessary type conversion in op1.
12221 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12223 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
12224 (dup_block_and_redirect): Delete function.
12225 (can_dup_for_shrink_wrapping): New function.
12226 (fix_fake_fallthrough_edge): New function.
12227 (try_shrink_wrapping): Rewrite function.
12228 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
12230 2015-09-14 Rich Felker <dalias@libc.org>
12232 * configure.ac: Change target pattern for sh TLS support
12233 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
12234 * configure: Regenerate.
12236 2015-09-14 Jeff Law <law@redhat.com>
12238 PR tree-optimization/47679
12239 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
12240 type rather than void *.
12242 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
12245 * diagnostic.c (diagnostic_initialize): Do not set
12246 some_warnings_are_errors.
12247 (diagnostic_finish): Use DK_WERROR count instead.
12248 (diagnostic_report_diagnostic): Do not set
12249 some_warnings_are_errors.
12250 * diagnostic.h (struct diagnostic_context): Remove
12251 some_warnings_are_errors.
12253 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
12255 * config/sparc/predicates.md (const_all_ones_operand): Use
12256 CONSTM1_RTX to simplify definition.
12258 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
12261 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
12264 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
12266 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
12267 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
12268 OPT_fshow_column to handled saved option cases.
12269 (append_compiler_options): Do not skip the above added options.
12271 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12274 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
12275 nopcrelative_literal_loads.
12276 (aarch64_classify_address): Likewise.
12277 (aarch64_constant_pool_reload_icode): Define.
12278 (aarch64_secondary_reload): Handle secondary reloads for
12280 (aarch64_override_options): Handle nopcrelative_literal_loads.
12281 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
12282 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
12284 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
12285 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
12286 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
12288 * doc/invoke.texi (mpc-relative-literal-loads): Document.
12290 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
12292 PR middle-end/67401
12293 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
12294 sync_compare_and_swap_optab libcall to target_oval.
12296 2015-09-14 Marek Polacek <polacek@redhat.com>
12298 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
12300 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
12302 2015-09-11 Mark Wielaard <mjw@redhat.com>
12305 * toplev.c (check_global_declaration): Check and use
12306 warn_unused_const_variable.
12307 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
12308 (-Wunused-variable): Remove non-constant. For C implies
12309 -Wunused-const-variable.
12310 (-Wunused-const-variable): New.
12312 2015-09-14 Richard Biener <rguenther@suse.de>
12314 * doc/match-and-simplify.texi: Update for changed syntax
12315 of inner ifs and the new switch expression.
12317 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
12319 * config/i386/haswell.md: New file describing Haswell pipeline.
12320 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
12321 haswell-like processors.
12322 (ix86_reassociation_width): Increase reassociation width for 64-bit
12323 Haswell processor family.
12324 * config/i386/i386.md: Introduce haswell cpu and include new md file.
12326 2015-09-14 Richard Biener <rguenther@suse.de>
12328 * doc/match-and-simplify.texi: Fixup some formatting issues
12329 and document the 's' flag.
12331 2015-09-13 Olivier Hainque <hainque@adacore.com>
12332 Eric Botcazou <ebotcazou@adacore.com>
12334 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
12335 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
12336 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
12337 (TARGET_CPU_gr5): Likewise.
12338 (TARGET_CPU_gr6): Likewise.
12339 (MULTILIB_DEFAULTS): Likewise.
12340 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
12341 for mcpu=gr5 and mcpu=gr6.
12342 (MULTILIB_DIRNAMES): Adjust accordingly.
12344 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12346 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
12347 (mem_ref_p): Likewise.
12348 (outermost_indep_loop): Adjust.
12349 (mem_ref_in_stmt): Likewise.
12350 (determine_max_movement): Likewise.
12351 (mem_ref_alloc): Likewise.
12352 (record_mem_ref_loc): Likewise.
12353 (set_ref_stored_in_loop): Likewise.
12354 (mark_ref_stored): Likewise.
12355 (gather_mem_refs_stmt): Likewise.
12356 (mem_refs_may_alias_p): Likewise.
12357 (for_all_locs_in_loop): Likewise.
12358 (struct rewrite_mem_ref_loc): Likewise.
12359 (rewrite_mem_refs): Likewise.
12360 (struct first_mem_ref_loc_1): Likewise.
12361 (first_mem_ref_loc): Likewise.
12362 (struct sm_set_flag_if_changed): Likewise.
12363 (execute_sm_if_changed_flag_set): Likewise.
12364 (execute_sm): Likewise.
12365 (hoist_memory_references):
12366 (struct ref_always_accessed): Likewise.
12367 (ref_always_accessed_p): Likewise.
12368 (refs_independent_p): Likewise.
12369 (record_dep_loop): Likewise.
12370 (ref_indep_loop_p_1): Likewise.
12371 (ref_indep_loop_p_2): Likewise.
12372 (ref_indep_loop_p): Likewise.
12373 (can_sm_ref_p): Likewise.
12374 (find_refs_for_sm): Likewise.
12375 (tree_ssa_lim_finalize): Likewise.
12377 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12379 * dwarf2out.c (dw_attr_ref): Remove typedef.
12380 (dw_line_info_ref): Likewise.
12381 (pubname_ref): Likewise.
12382 (dw_ranges_ref): Likewise.
12383 (dw_ranges_by_label_ref): Likewise.
12384 (comdat_type_node_ref): Likewise.
12386 (get_AT_low_pc): Likewise.
12387 (get_AT_hi_pc): Likewise.
12388 (get_AT_string): Likewise.
12389 (get_AT_flag): Likewise.
12390 (get_AT_unsigned): Likewise.
12391 (get_AT_ref): Likewise.
12392 (get_AT_file): Likewise.
12393 (remove_AT): Likewise.
12394 (print_die): Likewise.
12395 (check_die): Likewise.
12396 (die_checksum): Likewise.
12397 (attr_checksum_ordered): Likewise.
12398 (struct checksum_attributes): Likewise.
12399 (collect_checksum_attributes): Likewise.
12400 (die_checksum_ordered): Likewise.
12401 (same_die_p): Likewise.
12402 (is_declaration_die): Likewise.
12403 (clone_die): Likewise.
12404 (clone_as_declaration): Likewise.
12405 (copy_declaration_context): Likewise.
12406 (break_out_comdat_types): Likewise.
12407 (copy_decls_walk): Likewise.
12408 (output_location_lists): Likewise.
12409 (external_ref_hasher::hash): Likewise.
12410 (optimize_external_refs_1): Likewise.
12411 (build_abbrev_table): Likewise.
12412 (size_of_die): Likewise.
12413 (unmark_all_dies): Likewise.
12414 (size_of_pubnames): Likewise.
12415 (output_die_abbrevs): Likewise.
12416 (output_die): Likewise.
12417 (output_pubnames): Likewise.
12418 (add_ranges_num): Likewise.
12419 (add_ranges_by_labels): Likewise.
12420 (add_high_low_attributes): Likewise.
12421 (gen_producer_string): Likewise.
12422 (dwarf2out_set_name): Likewise.
12423 (new_line_info_table): Likewise.
12424 (prune_unused_types_walk_attribs): Likewise.
12425 (prune_unused_types_update_strings): Likewise.
12426 (prune_unused_types): Likewise.
12427 (resolve_addr): Likewise.
12428 (optimize_location_lists_1): Likewise.
12429 (index_location_lists): Likewise.
12430 (dwarf2out_finish): Likewise.
12432 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12434 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
12436 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12438 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
12439 (dump_asserts_for): Adjust.
12440 (register_new_assert_for): Likewise.
12441 (process_assert_insertions): Likewise.
12442 (insert_range_assertions): Likewise.
12444 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12446 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
12447 and remove typedef.
12448 (new_temp_expr_table): Adjust.
12449 (free_temp_expr_table): Likewise.
12450 (version_to_be_replaced_p): Likewise.
12451 (make_dependent_on_partition): Likewise.
12452 (add_to_partition_kill_list): Likewise.
12453 (remove_from_partition_kill_list): Likewise.
12454 (add_dependence): Likewise.
12455 (finished_with_expr): Likewise.
12456 (process_replaceable): Likewise.
12457 (kill_expr): Likewise.
12458 (kill_virtual_exprs): Likewise.
12459 (mark_replaceable): Likewise.
12460 (find_replaceable_in_bb): Likewise.
12461 (find_replaceable_exprs): Likewise.
12462 (debug_ter): Likewise.
12464 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12466 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
12467 (struct btr_user): Rename from btr_user_s.
12468 (struct btr_def): Rename from btr_def_s.
12469 (find_btr_def_group): Adjust.
12470 (add_btr_def): Likewise.
12471 (new_btr_user): Likewise.
12472 (note_other_use_this_block): Likewise.
12473 (compute_defs_uses_and_gen): Likewise.
12474 (link_btr_uses): Likewise.
12475 (build_btr_def_use_webs): Likewise.
12476 (block_at_edge_of_live_range_p): Likewise.
12477 (btr_def_live_range): Likewise.
12478 (combine_btr_defs): Likewise.
12479 (move_btr_def): Likewise.
12480 (migrate_btr_def): Likewise.
12481 (migrate_btr_defs): Likewise.
12483 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12485 * var-tracking.c (shared_hash_def): Rename to shared_hash.
12486 (shared_hash): Remove typedef.
12487 (struct dataflow_set): Adjust.
12488 (shared_hash_unshare): Likewise.
12489 (dataflow_set_merge): Likewise.
12490 (vt_initialize): Likewise.
12491 (vt_finalize): Likewise.
12493 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12495 * var-tracking.c (struct location_chain): Rename from
12496 location_chain_def.
12497 (struct variable_part): Adjust.
12498 (variable_htab_free): Likewise.
12499 (unshare_variable): Likewise.
12500 (get_init_value): Likewise.
12501 (get_addr_from_local_cache): Likewise.
12502 (drop_overlapping_mem_locs): Likewise.
12503 (val_reset): Likewise.
12504 (struct variable_union_info): Likewise.
12505 (variable_union): Likewise.
12506 (find_loc_in_1pdv): Likewise.
12507 (insert_into_intersection): Likewise.
12508 (intersect_loc_chains): Likewise.
12509 (canonicalize_loc_order_check): Likewise.
12510 (canonicalize_values_mark): Likewise.
12511 (canonicalize_values_star): Likewise.
12512 (canonicalize_vars_star): Likewise.
12513 (variable_merge_over_cur): Likewise.
12514 (remove_duplicate_values): Likewise.
12515 (variable_post_merge_new_vals): Likewise.
12516 (variable_post_merge_perm_vals): Likewise.
12517 (find_mem_expr_in_1pdv): Likewise.
12518 (dataflow_set_preserve_mem_locs): Likewise.
12519 (dataflow_set_remove_mem_locs): Likewise.
12520 (variable_part_different_p): Likewise.
12521 (onepart_variable_different_p): Likewise.
12522 (find_src_set_src): Likewise.
12523 (dump_var): Likewise.
12524 (set_slot_part): Likewise.
12525 (clobber_slot_part): Likewise.
12526 (delete_slot_part): Likewise.
12527 (vt_expand_var_loc_chain): Likewise.
12528 (emit_note_insn_var_location): Likewise.
12529 (vt_finalize): Likewise.
12531 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12533 * dse.c (store_info_t): Remove typedef.
12534 (group_info_t): Likewise.
12535 (const_group_info_t): Likewise.
12536 (deferred_change_t): Likewise.
12537 (get_group_info): Adjust.
12538 (free_store_info): Likewise.
12539 (canon_address): Likewise.
12540 (clear_rhs_from_active_local_stores): Likewise.
12541 (record_store): Likewise.
12542 (replace_read): Likewise.
12543 (check_mem_read_rtx): Likewise.
12544 (scan_insn): Likewise.
12545 (remove_useless_values): Likewise.
12546 (dse_step1): Likewise.
12547 (dse_step2_init): Likewise.
12548 (dse_step2_nospill): Likewise.
12549 (scan_stores_nospill): Likewise.
12550 (scan_reads_nospill): Likewise.
12551 (dse_step3_exit_block_scan): Likewise.
12552 (dse_step3): Likewise.
12553 (dse_step5_nospill): Likewise.
12554 (dse_step6): Likewise.
12556 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12558 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
12559 (alias_set_entry): Remove typedef.
12560 (alias_set_subset_of): Adjust.
12561 (alias_sets_conflict_p): Likewise.
12562 (init_alias_set_entry): Likewise.
12563 (get_alias_set): Likewise.
12564 (new_alias_set): Likewise.
12565 (record_alias_subset): Likewise.
12567 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
12569 * doc/install.texi (Downloading the source): Mark up
12570 contrib/download_prerequisites properly and drop leading "./".
12572 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12574 * config/arc/arc.h: Remove define of STRUCT_VALUE.
12575 * config/lm32/lm32.h: Likewise.
12576 * config/mep/mep.h: Likewise.
12577 * config/visium/visium.h: Likewise.
12578 * system.h: Poison STRUCT_VALUE macro.
12580 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
12582 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
12583 CONSTANT_P operands.
12585 2015-09-11 David S. Miller <davem@davemloft.net>
12587 * config/sparc/constraints.md: Make "U" constraint a real register
12589 * config/sparc/sparc.c (TARGET_LRA_P): Define.
12590 (D_MODES, DF_MODES): Add missing cast.
12591 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
12592 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
12593 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
12595 * config/sparc/sparc.h (PROMOTE_MODE): Define.
12596 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
12597 provide these insn when flag_pic.
12599 2015-09-11 Jeff Law <law@redhat.com>
12601 PR tree-optimization/47679
12602 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
12603 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
12604 member with m_. Update inline member functions as necessary. Add
12606 * tree-ssa-scopedtables.c: Update const_and_copies's member
12607 functions to use m_ prefix to access the stack.
12609 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
12611 * graphite-optimize-isl.c (disable_tiling): Remove.
12612 (get_schedule_for_band): Do not use disable_tiling.
12613 (get_prevector_map): Delete function.
12614 (enable_polly_vector): Remove.
12615 (get_schedule_for_band_list): Remove dead code.
12617 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
12619 * graphite-optimize-isl.c (get_tile_map): Refactor.
12620 (get_schedule_for_band): Same.
12621 (getScheduleForBand): Same.
12622 (get_prevector_map): Same.
12623 (get_schedule_for_band_list): Same.
12624 (get_schedule_map): Same.
12625 (get_single_map): Same.
12626 (apply_schedule_map_to_scop): Same.
12627 (optimize_isl): Same.
12629 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12632 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
12634 * config/aarch64/iterators.md (GPF_TF_F16): New.
12637 2015-09-10 Nathan Sidwell <nathan@acm.org>
12639 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
12640 (nvptx_reorg): Adjust comments.
12642 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
12645 * configure.ac: Check if setenv and unsetenv are declared.
12646 * configure: Rebuild.
12647 * config.in: Rebuild.
12648 * system.h: Declare setenv and unsetenv if not declared.
12650 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12652 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
12653 commentary to simplify permute mask adjustment equation.
12654 (special_handling_values): Add SH_VPERM.
12655 (const_load_sequence_p): New function.
12656 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
12657 the mask loaded from the constant pool.
12658 (adjust_vperm): New function.
12659 (handle_special_swappables): Call adjust_vperm.
12660 (dump_swap_insn_table): Handle SH_VPERM.
12662 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
12664 * shrink-wrap.c (requires_stack_frame_p): Remove static.
12665 * shrink-wrap.h (requires_stack_frame_p): Put back.
12667 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
12669 * reload1.c (elimination_costs_in_insn): Locally turn
12670 -Wmaybe-uninitialized into a warning.
12672 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
12674 * shrink-wrap.c (requires_stack_frame_p): Make static.
12675 (prepare_shrink_wrap): Likewise.
12676 (dup_block_and_redirect): Likewise.
12677 * shrink-wrap.h: Remove declarations of those functions.
12679 2015-09-10 Mark Wielaard <mjw@redhat.com>
12681 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
12683 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
12686 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
12687 missing simplify_gen_subreg.
12689 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12691 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
12692 the vector element is bigger than 64 bit.
12694 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12696 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
12697 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
12699 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12701 * config/s390/s390.c: Add V1TImode to constant pool modes.
12703 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12706 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
12707 predicate. Set predicable_short_it attr to "no".
12709 2015-09-10 Jiong Wang <jiong.wang@arm.com>
12711 PR rtl-optimization/67421
12712 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
12713 left wide shift tranformation.
12715 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
12717 * common/config/arc/arc-common.c: Remove references to A5.
12718 * config/arc/arc-opts.h: Likewise.
12719 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
12720 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
12721 * config/arc/t-arc-newlib: Likewise.
12723 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
12725 * config/arc/arc.md (length): Fix attribute length for conditional
12726 executed instructions with long immediate.
12728 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12730 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
12731 type for second alternative.
12733 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
12735 * doc/invoke.texi (Downloading GCC): Mention
12736 contrib/download_prerequisites script.
12738 2015-09-10 Jakub Jelinek <jakub@redhat.com>
12741 * gimplify.c (gimplify_omp_for): If inner stmt is not found
12742 for combined loop, assert seen_error () and return GS_ERROR.
12744 PR middle-end/67521
12745 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
12746 if decl is already in outer->variables.
12748 PR middle-end/67517
12749 * gimplify.c (gimplify_scan_omp_clauses): Instead of
12750 asserting that decl is not specified in octx->variables,
12751 break out of the loop if it is.
12754 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
12755 iterator is not explicitly determined, but is defined inside
12756 of the combined workshare region, handle it like if it has
12757 DECL_EXPR in OMP_FOR_PRE_BODY.
12759 2015-09-09 Nathan Sidwell <nathan@acm.org>
12761 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
12762 (*cmp<mode>): Add assembler spacing.
12763 (setcc_int<mode>, set_cc_float<mode>): Likewise.
12764 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
12766 (write_func_decl_from_insn): Refactor argument loops & comma emission.
12767 (nvptx_expand_call): Likewise.
12768 (nvptx_output_call_insn): Likewise.
12769 (nvptx_reorg_subreg): Add spacing.
12771 2015-09-09 Marek Polacek <polacek@redhat.com>
12773 PR middle-end/67512
12774 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
12777 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
12780 * doc/invoke.texi ([Wsubobject-linkage]): Document.
12782 2015-09-09 Tom de Vries <tom@codesourcery.com>
12784 * params-list.h: Add missing copyright notice.
12786 2015-09-09 Nathan Sidwell <nathan@acm.org>
12788 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
12789 sel_truesi, not andsi.
12791 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12793 * config/arm/arm.md (*subsi3_compare0): Rename to...
12794 (subsi3_compare0): ... This.
12795 (modsi3): New define_expand.
12796 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
12797 when operand is power of 2.
12799 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12801 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
12802 (*neg<mode>2_compare0): Rename to...
12803 (neg<mode>2_compare0): ... This.
12804 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
12805 Move check for speed inside the if-then-elses. Reflect
12806 CSNEG sequence in MOD by power of 2 case.
12808 2015-09-09 Alan Modra <amodra@gmail.com>
12811 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
12812 reload replacement for PRE_MODIFY address reg.
12814 2015-09-09 Sebastian Pop <s.pop@samsung.com>
12816 PR tree-optimization/53852
12817 * config.in: Regenerate.
12818 * configure: Regenerate.
12819 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
12820 * graphite-optimize-isl.c (optimize_isl): Stop computation when
12821 PARAM_MAX_ISL_OPERATIONS is reached.
12822 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
12823 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
12824 result equal to isl_stat_ok as the status now can be isl_error_quota.
12825 (subtract_commutative_associative_deps): Same.
12826 (compute_deps): Same.
12828 2015-09-08 Aditya Kumar <hiraditya@msn.com>
12829 Sebastian Pop <s.pop@samsung.com>
12831 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
12832 Return the parameter if it was saved in corresponding
12833 parameter_rename_map of the region.
12834 (copy_def): Copy def from sese region to the newly created region.
12835 (copy_internal_parameters): Copy all the internal parameters defined
12836 within a region to the newly created region.
12837 (graphite_regenerate_ast_isl): Copy parameters to the new region before
12838 translating isl to gimple.
12839 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
12840 the loop-nest does not have any data-references.
12841 (build_graphite_scops): Create a scop only when there is at least one
12843 (contains_only_close_phi_nodes): Deleted.
12844 (print_graphite_scop_statistics): Deleted
12845 (print_graphite_statistics): Deleted
12846 (limit_scops): Deleted.
12847 (build_scops): Removed call to limit_scops.
12848 * sese.c (new_sese): Construct.
12849 (free_sese): Destruct.
12850 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
12852 (set_rename): Pass sese region so that parameters inside the region can
12853 be added to its parameter_rename_map.
12854 (rename_uses): Pass sese region.
12855 (graphite_copy_stmts_from_block): Do not copy parameters that have been
12856 generated in the header of the scop. For each SSA_NAME in the
12857 parameter_rename_map rename its usage.
12858 (invariant_in_sese_p_rec): Return false if tree t is defined outside
12860 (scalar_evolution_in_region): If the tree t is invariant just return t.
12861 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
12862 struct sese to keep track of all the parameters which need renaming.
12863 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
12865 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
12867 2015-09-08 Tom de Vries <tom@codesourcery.com>
12869 * Makefile.in (generated_files): Add params.list.
12870 (params.list, s-params.list): Add rule.
12871 * params.h (enum compiler_param): Include params-list.h. Move define
12872 DEFPARAM, include params.def and undef DEFPARAM ...
12873 * params-list.h: ... here. New file.
12875 2015-09-08 David Malcolm <dmalcolm@redhat.com>
12877 * pretty-print.h (printer_fn): Fix typo in comment.
12879 2015-09-07 Jeff Law <law@redhat.com>
12881 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
12883 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12885 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
12886 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
12887 (arm_neon_fp16_hw): New.
12889 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12891 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
12892 UNITS_PER_WORD >= 4.
12894 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12896 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
12897 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
12898 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
12899 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
12900 (aarch64_float_extend_lo_v2df): Rename to...
12901 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
12903 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
12904 (float_extend_lo): Add v4sf.
12906 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
12907 * config/aarch64/iterators.md (VQ_HSF): New iterator.
12908 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
12909 (Vwide): New mode_attr.
12911 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12913 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
12914 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
12915 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
12916 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
12917 V4HF and V8HF variants to iterator.
12919 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
12921 * config/aarch64/iterators.md (VDQF_F16): New.
12922 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
12924 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12926 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
12927 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
12928 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
12929 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
12930 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
12931 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
12932 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
12933 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
12934 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
12935 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
12936 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
12937 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
12938 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
12939 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
12940 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
12941 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
12942 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
12943 vld1q_dup_f16): New.
12945 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12947 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
12948 Reparameterize to...
12949 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
12950 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
12951 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
12953 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
12955 (float_truncate_lo_): Use BUILTIN_VDF iterator.
12957 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
12959 * config/aarch64/iterators.md (VDF, Vdtype): New.
12960 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
12962 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12964 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
12965 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
12966 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
12967 Add __builtin_aarch64_simd_hf.
12968 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
12969 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
12970 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
12971 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
12972 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
12973 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
12974 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
12975 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
12976 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
12978 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
12979 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
12980 (VDC, Vdbl): Add V4HF.
12982 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
12984 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
12985 V4HFmode and V8HFmode.
12986 (aarch64_split_simd_move): Add case for V8HFmode.
12987 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
12988 (aarch64_simd_builtin_std_type): Handle HFmode.
12989 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
12991 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
12992 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
12993 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
12995 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
12998 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
12999 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
13001 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
13002 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
13003 vst1q_lane_f16): New.
13004 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
13005 (VALLDI_F16, VALL_F16): New.
13006 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
13007 Add cases for V4HF and V8HF.
13008 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
13010 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13012 * config/arm/arm-builtins.c (VAR11, VAR12): New.
13013 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
13014 vld4_dup): Add v4hf variant.
13015 (vget_high, vget_low): Add v8hf variant.
13016 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
13017 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
13018 v4hf and v8hf variants.
13020 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
13022 (V_DOUBLE): Add case for V4HF.
13024 (V_HALF): Add case for V8HF.
13025 (VDQX): Add V4HF, V8HF.
13026 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
13027 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
13029 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
13030 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
13031 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
13032 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
13033 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
13034 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
13035 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
13036 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
13037 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
13039 (neon_vcreate, neon_vreinterpretv8qi<mode>,
13040 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
13041 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
13042 Change VDX to VD_RE.
13044 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
13045 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
13046 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
13048 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
13049 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
13050 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
13051 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
13052 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
13053 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
13054 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
13055 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
13056 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
13058 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13060 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
13061 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
13062 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
13063 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
13064 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13065 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
13066 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
13067 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
13068 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
13069 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
13072 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13074 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
13076 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
13078 * config/arm/arm-builtins.c (v8hf_UP): New.
13079 (arm_init_simd_builtin_types): Initialise Float16x8_t.
13081 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
13083 * config/arm/arm_neon.h (float16x8_t): New typedef.
13085 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13087 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
13088 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
13089 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
13090 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
13091 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13092 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
13093 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
13094 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
13095 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13096 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
13098 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
13100 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
13101 non-alphanumeric characters in the symbol name.
13103 2015-09-07 Marek Polacek <polacek@redhat.com>
13105 PR inline-asm/67448
13106 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
13109 2015-09-07 Marek Polacek <polacek@redhat.com>
13111 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
13113 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
13115 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
13118 2015-09-04 Jakub Jelinek <jakub@redhat.com>
13120 PR middle-end/67452
13121 * tree-ssa-live.c: Include cfgloop.h.
13122 (remove_unused_locals): Clear loop->simduid if simduid is about
13123 to be removed from cfun->local_decls.
13125 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13128 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
13131 2015-09-04 Tom de Vries <tom@codesourcery.com>
13133 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
13135 2015-09-04 Jeff Law <law@redhat.com>
13137 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
13138 unnecessary constructor. It's now trivial and implemented inside...
13139 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
13140 constructor. Add comments to various methods. Remove unused
13142 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
13143 * tree-vrp.c (identify_jump_threads): Likewise.
13144 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
13145 indentation issues.
13146 (thread_across_edge): Similarly.
13147 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
13148 arguments in constructor call.
13150 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
13152 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
13153 temp path contains a '-'.
13155 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
13156 Petr Murzin <petr.murzin@intel.com>
13157 Kirill Yukhin <kirill.yukhin@intel.com>
13159 * config/i386/i386-builtin-types.def
13160 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
13161 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
13162 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
13163 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
13164 * config/i386/i386.c
13165 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
13166 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
13167 IX86_BUILTIN_SCATTERALTDIV16SI.
13168 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
13169 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
13170 __builtin_ia32_scatteraltdiv8si.
13171 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
13172 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
13173 IX86_BUILTIN_SCATTERALTDIV16SI.
13174 (ix86_vectorize_builtin_scatter): New.
13175 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
13176 ix86_vectorize_builtin_scatter.
13178 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
13179 Petr Murzin <petr.murzin@intel.com>
13180 Kirill Yukhin <kirill.yukhin@intel.com>
13182 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
13183 * doc/tm.texi: Regenerate.
13184 * target.def: Add scatter builtin.
13185 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
13186 for loads/stores in case of gather/scatter accordingly.
13187 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
13188 STMT_VINFO_GATHER_P(S).
13189 (vect_check_gather): Rename to ...
13190 (vect_check_gather_scatter): this.
13191 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
13192 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
13193 (vect_check_gather_scatter): Use it instead of vect_check_gather.
13194 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
13195 variable and new checkings for it accordingly.
13196 * tree-vect-stmts.c
13197 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
13198 STMT_VINFO_GATHER_P(S).
13199 (vect_check_gather_scatter): Use it instead of vect_check_gather.
13200 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
13202 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
13204 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
13206 (mulv16qi3): New define_expand.
13208 2015-09-03 Martin Sebor <msebor@redhat.com>
13211 * doc/extend.texi (Other Builtins): Document when the address
13212 of a built-in function can be taken.
13214 2015-09-03 Richard Biener <rguenther@suse.de>
13216 * dwarf2out.c (flush_limbo_die_list): Split out from ...
13217 (dwarf2out_early_finish): ... here.
13218 (dwarf2out_finish): Do not call dwarf2out_early_finish but
13219 flush_limbo_die_list. Assert we have no deferred asm names.
13221 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13223 * optabs.c (expand_binop): Don't create a broadcast vector with a
13224 source element wider than the inner mode.
13226 2015-09-03 Richard Biener <rguenther@suse.de>
13228 * varasm.c (output_constant): Use fold_convert instead of
13231 2015-09-03 Tom de Vries <tom@codesourcery.com>
13233 PR tree-optimization/65637
13234 * omp-low.c (expand_omp_for_static_chunk): Handle case that
13235 fin_bb has 2 predecessors.
13237 2015-09-03 Tom de Vries <tom@codesourcery.com>
13239 PR tree-optimization/65637
13240 * omp-low.c (find_phi_with_arg_on_edge): New function.
13241 (expand_omp_for_static_chunk): Fix inner loop phi.
13243 2015-09-03 Tom de Vries <tom@codesourcery.com>
13245 PR tree-optimization/65637
13246 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
13249 2015-09-03 Tom de Vries <tom@codesourcery.com>
13251 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
13253 2015-09-03 Tom de Vries <tom@codesourcery.com>
13255 * doc/invoke.texi (parloops-chunk-size): Add item.
13256 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
13257 * tree-parloops.c: Include params.h.
13258 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
13259 param parloops-chunk-size is used.
13261 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13263 PR middle-end/67351
13264 * fold-const.c (fold_binary_loc) : Move
13265 Transform (x >> c) << c into x & (-1<<c) or
13266 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
13267 types using simplify and match.
13268 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
13269 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
13271 2015-09-03 Richard Biener <rguenther@suse.de>
13274 * tree-ssa-structalias.c (ctor_for_analysis): New function.
13275 (create_variable_info_for_1): Use ctor_for_analysis instead
13276 of get_constructor.
13277 (create_variable_info_for): Likewise.
13279 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
13282 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
13283 in new callgraph edge.
13285 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
13290 * config/aarch64/aarch64-simd.md
13291 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
13292 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
13293 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
13294 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
13296 2015-09-02 Alan Modra <amodra@gmail.com>
13298 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
13299 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
13300 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
13302 2015-09-02 Alan Modra <amodra@gmail.com>
13305 * config/rs6000/predicates.md (current_file_function_operand): Don't
13306 return true for weak symbols.
13307 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
13309 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
13310 Andrew Bennett <andrew.bennett@imgtec.com>
13312 * config/mips/mips-opts.h (mips_cb_setting): New enum.
13313 * config/mips/mips-protos.h: Add definitions for
13314 mips_output_jump and mips_output_equal_conditional_branch
13315 * config/mips/mips.c (MIPS_JR): Change to support the
13317 (mips_emit_compare): Add support for the MIPS R6 conditional
13319 (mips_process_sync_loop): Likewise.
13320 (mips_output_order_conditional_branch): Likewise.
13321 (mips16_build_call_stub): Change MIPS_CALL to
13323 (mips_print_operand_punctuation): Update 's' case to only
13324 apply to micromips r2.
13325 (mips_adjust_insn_length): Add support for forbidden slot
13327 (mips_avoid_hazard): Likewise.
13328 (mips_reorg_process_insns): Likewise.
13329 (mips_output_jump): New function.
13330 (mips_output_equal_conditional_branch): Likewise.
13331 (mips_output_conditional_branch): Use jrc/bc if compact
13332 branch support is enabled. Ensure the forbidden slots
13333 between the two branch instructions is filled with a nop.
13334 (mips_option_override): Add support to process the compact
13335 branch option and set the correct defaults. Prevent
13336 non-explict relocs being using for MIPS R6.
13337 (mips_trampoline_init): Add compact branch support.
13338 (mips_mult_zero_zero_cost): Allow zero initialisation of
13339 accumulators with TARGET_DSP.
13340 * config/mips/mips.h (TARGET_CB_NEVER): New define.
13341 (TARGET_CB_MAYBE): New define.
13342 (TARGET_CB_ALWAYS): New define.
13343 (ISA_HAS_DELAY_SLOTS): New define.
13344 (ISA_HAS_COMPACT_BRANCHES): New define.
13345 (ISA_HAS_JRC): New define.
13346 (MIPS_BRANCH_C): New define.
13347 (MIPS_CALL): Removed.
13348 (MICROMIPS_J): Removed.
13349 * config/mips/mips.md (compact_form): New attr.
13350 (hazard): Add support for forbidden slots.
13351 (define_delay): Add support for compact branches.
13352 (*branch_order<mode>): Likewise.
13353 (*branch_order<mode>_inverted): Likewise.
13354 (*branch_equality<mode>): Likewise.
13355 (*branch_equality<mode>_inverted): Likewise.
13356 (*jump_absolute): Likewise.
13357 (*jump_pic): Likewise.
13358 (indirect_jump): Use mips_output_jump to produce assembly output.
13359 (tablejump_<mode>"): Likewise.
13360 (*<optab>"): Likewise.
13361 (<optab>_internal): Likewise.
13362 (sibcall_internal): Likewise.
13363 (sibcall_value_internal): Likewise.
13364 (sibcall_value_multiple_internal): Likewise.
13365 (call_internal): Likewise.
13366 (call_split): Likewise.
13367 (call_internal_direct): Likewise.
13368 (call_direct_split): Likewise.
13369 (call_value_internal): Likewise.
13370 (call_value_split): Likewise.
13371 (call_value_internal_direct): Likewise.
13372 (call_value_direct_split): Likewise.
13373 (call_value_multiple_internal): Likewise.
13374 (call_value_multiple_split): Likewise.
13375 (mips_get_fcsr_mips16_<mode>): Likewise.
13376 (mips_set_fcsr_mips16_<mode>): Likewise.
13377 (tls_get_tp_mips16_<mode>): Likewise.
13378 * config/mips/mips.opt: Add -mcompact-branches option.
13379 * config/mips/predicates.md (order_operator): Ensure the
13380 conditional compact branches are only used if the ISA them.
13381 * doc/invoke.texi: Document -mcompact-branches option.
13383 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
13386 * lra-lives.c (process_bb_lives): Process move pseudos with the
13387 same value for copies and preferences
13388 * lra-constraints.c (match_reload): Create match reload pseudo
13389 with the same value from single dying input pseudo.
13391 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
13394 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
13396 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
13398 * trans-mem.c: Add contributed-by.
13399 * trans-mem.h: Same.
13401 2015-09-01 Richard Biener <rguenther@suse.de>
13403 * expr.c (expand_expr_real_1): For expanding TERed defs
13404 set the current location to that of the def if not UNKNOWN.
13406 2015-09-01 David Sherwood <david.sherwood@arm.com>
13408 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
13410 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13412 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
13413 then_cost, else_cost fields. Change branch_cost field to unsigned int.
13414 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
13415 Include rtl-iter.h.
13416 (noce_simple_bbs): New function.
13417 (noce_try_move): Bail if basic blocks are not simple.
13418 (noce_try_store_flag): Likewise.
13419 (noce_try_store_flag_constants): Likewise.
13420 (noce_try_addcc): Likewise.
13421 (noce_try_store_flag_mask): Likewise.
13422 (noce_try_cmove): Likewise.
13423 (noce_try_minmax): Likewise.
13424 (noce_try_abs): Likewise.
13425 (noce_try_sign_mask): Likewise.
13426 (noce_try_bitop): Likewise.
13427 (bbs_ok_for_cmove_arith): New function.
13428 (noce_emit_all_but_last): Likewise.
13429 (noce_emit_insn): Likewise.
13430 (noce_emit_bb): Likewise.
13431 (noce_try_cmove_arith): Handle non-simple basic blocks.
13432 (insn_valid_noce_process_p): New function.
13433 (contains_mem_rtx_p): Likewise.
13434 (bb_valid_for_noce_process_p): Likewise.
13435 (noce_process_if_block): Allow non-simple basic blocks
13438 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
13440 * tree-ssa-dom.c (record_equivalences_from_phis,
13441 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
13442 (lookup_avail_expr): Likewise, and remove comment and unused temp.
13444 2015-09-01 Nick Clifton <nickc@redhat.com>
13446 * config/msp430/msp430.opt (mcpu): Fix typo.
13448 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13450 * config/aarch64/aarch64.c (aarch64_set_current_function):
13451 Re-layout any vector parameters have non-simd layout.
13452 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
13454 (aarch64_simd_expand_args): Delete call to the above.
13456 2015-08-31 Mike Frysinger <vapier@gentoo.org>
13458 * doc/invoke.texi (asan-stack): Add space before option.
13460 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
13462 * tree.h (zerop): New function.
13463 * tree.c (zerop): Likewise.
13464 (element_precision): Handle expressions.
13465 * match.pd (define_predicates): Add zerop.
13466 (x <= +Inf): Fix comment.
13467 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
13468 * fold-const.c (fold_binary_loc): ... here. Remove.
13470 2015-08-31 Richard Biener <rguenther@suse.de>
13472 PR middle-end/67381
13473 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
13475 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
13477 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
13478 (CEXPI): New operator list.
13479 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
13480 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
13482 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
13484 2015-08-31 Tom de Vries <tom@codesourcery.com>
13486 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
13487 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
13489 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
13490 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
13491 (rewrite_into_loop_closed_ssa): ... here.
13492 (replace_uses_in_dominated_bbs): Remove function.
13493 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
13494 rewrite_into_loop_closed_ssa_1.
13496 2015-08-31 Michael Matz <matz@suse.de>
13498 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
13499 enter entry and exit blocks for reverse post order.
13501 2015-08-31 Richard Biener <rguenther@suse.de>
13503 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
13504 (lto_location_cache::current_sysp): Likewise.
13505 (output_block::current_sysp): Likewise.
13506 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
13507 (lto_location_cache::apply_location_cache): Properly record
13508 system header locations.
13509 (lto_location_cache::input_location): Input whether a file
13510 is a system header.
13511 * lto-streamer-out.c (lto_output_location): Stream whether a file
13512 is a system header.
13514 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13517 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
13519 2015-08-31 Tom de Vries <tom@codesourcery.com>
13521 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
13522 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
13523 Improve function header comments.
13525 2015-08-30 Michael Collison <michael.collison@linaro.org>
13528 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
13531 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13533 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
13534 special_handling bitfield.
13535 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
13536 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
13537 that represents a general xxpermdi.
13538 (insn_is_swappable_p): Add handling for vec_concat of two
13539 doublewords, which maps to a specific xxpermdi.
13540 (adjust_xxpermdi): New function.
13541 (adjust_concat): Likewise.
13542 (handle_special_swappables): Call adjust_xxpermdi and
13544 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
13546 2015-08-30 Rich Felker <dalias@libc.org>
13548 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
13549 case instead of sh[123456ble]-*-*.
13551 2015-08-29 Anatoly Sokolov <aesok@post.ru>
13553 * ira.c (print_unform_and_important_classes,
13554 print_translated_classes): Remove reg_class_names static array.
13555 (print_unform_and_important_classes): Rename to ...
13556 (print_uniform_and_important_classes): ... this.
13557 (ira_debug_allocno_classes): Update accordingly.
13559 2015-08-29 Tom de Vries <tom@codesourcery.com>
13561 PR tree-optimization/46193
13562 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
13565 2015-08-28 Jeff Law <law@redhat.com>
13568 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
13569 unable to find X NE 0 in the tables, return X as the simplified
13571 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
13572 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
13574 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
13575 after removing the control flow statement and unnecessary edges.
13577 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
13580 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
13582 PR tree-optimization/67283
13583 * tree-sra.c (type_consists_of_records_p): Rename to...
13584 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13586 (completely_scalarize_record): Rename to...
13587 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
13589 (scalarize_elem): New.
13591 2015-08-28 Jiong Wang <jiong.wang@arm.com>
13593 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
13594 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
13595 (aarch64_symbol_type): Likewise.
13596 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
13598 (aarch64_expand_mov_immediate): Likewise.
13599 (aarch64_print_operand): Likewise.
13600 (aarch64_classify_tls_symbol): Likewise.
13602 2015-08-28 Richard Biener <rguenther@suse.de>
13604 * cgraphunit.c (symbol_table::compile): Move early debug generation
13606 (symbol_table::finalize_compilation_unit): ... back here and
13607 add a !seen_error () guard.
13609 2015-08-27 Sebastian Pop <s.pop@samsung.com>
13611 * toplev.c (process_options): Do not use flag_loop_block,
13612 flag_loop_interchange, and flag_loop_strip_mine. Add check for
13613 flag_loop_optimize_isl.
13615 2015-08-27 Sebastian Pop <s.pop@samsung.com>
13617 * Makefile.in (OBJS): Remove graphite-blocking.o and
13618 graphite-interchange.o.
13619 * common.opt (floop-strip-mine, floop-interchange, floop-block):
13620 Alias of floop-nest-optimize.
13621 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
13622 Document as alias of -floop-nest-optimize.
13623 * graphite-blocking.c: Remove.
13624 * graphite-interchange.c: Remove.
13625 * graphite-optimize-isl.c: Include dumpfile.h.
13626 (getScheduleForBand): Add dump for tiled loops. Use
13627 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
13628 * graphite-poly.c (scop_max_loop_depth): Remove.
13629 (print_scattering_function_1): Remove.
13630 (print_scattering_function): Remove.
13631 (print_scattering_functions): Remove.
13632 (debug_scattering_function): Remove.
13633 (debug_scattering_functions): Remove.
13634 (apply_poly_transforms): Remove use of flag_loop_block,
13635 flag_loop_strip_mine, and flag_loop_interchange.
13636 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
13638 (print_pdr_access_layout): Remove.
13639 (print_pdr): Print ISL representation.
13640 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
13641 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
13643 (openscop_print_pbb_domain): Remove.
13644 (print_pbb): Remove call to print_scattering_function.
13645 (openscop_print_scop_context): Remove.
13646 (print_scop_context): Do not print matrices anymore.
13647 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
13648 SCOP_TRANSFORMED_SCHEDULE.
13649 (print_isl_set): Add printing of a new line.
13650 (print_isl_map): Same.
13651 (print_isl_aff): Same.
13652 (print_isl_constraint): Same.
13653 (loop_to_lst): Remove.
13654 (scop_to_lst): Remove.
13655 (lst_indent_to): Remove.
13656 (print_lst): Remove.
13657 (debug_lst): Remove.
13658 (dot_lst_1): Remove.
13660 (reverse_loop_at_level): Remove.
13661 (reverse_loop_for_pbbs): Remove.
13662 * graphite-poly.h (pdr_dim_iter_domain): Remove.
13663 (pdr_nb_params): Remove.
13664 (pdr_alias_set_dim): Remove.
13665 (pdr_subscript_dim): Remove.
13666 (pdr_iterator_dim): Remove.
13667 (pdr_parameter_dim): Remove.
13668 (same_pdr_p): Remove.
13669 (struct poly_scattering): Remove.
13670 (struct poly_bb): Remove _original, _transformed, _saved.
13671 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
13672 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
13673 (PBB_NB_LOCAL_VARIABLES): Remove.
13674 (PBB_NB_SCATTERING_TRANSFORM): Remove.
13675 (schedule_to_scattering): Remove.
13676 (number_of_write_pdrs): Remove.
13677 (pbb_dim_iter_domain): Remove.
13678 (pbb_nb_params): Remove.
13679 (pbb_nb_scattering_orig): Remove.
13680 (pbb_nb_scattering_transform): Remove.
13681 (pbb_nb_dynamic_scattering_transform): Remove.
13682 (pbb_nb_local_vars): Remove.
13683 (pbb_iterator_dim): Remove.
13684 (pbb_parameter_dim): Remove.
13685 (psco_scattering_dim): Remove.
13686 (psct_scattering_dim): Remove.
13687 (psct_local_var_dim): Remove.
13688 (psco_iterator_dim): Remove.
13689 (psct_iterator_dim): Remove.
13690 (psco_parameter_dim): Remove.
13691 (psct_parameter_dim): Remove.
13692 (psct_dynamic_dim): Remove.
13693 (psct_static_dim): Remove.
13694 (psct_add_local_variable): Remove.
13695 (new_lst_loop): Remove.
13696 (new_lst_stmt): Remove.
13697 (free_lst): Remove.
13698 (copy_lst): Remove.
13699 (lst_add_loop_under_loop): Remove.
13700 (lst_depth): Remove.
13701 (lst_dewey_number): Remove.
13702 (lst_dewey_number_at_depth): Remove.
13703 (lst_pred): Remove.
13704 (lst_succ): Remove.
13705 (lst_find_pbb): Remove.
13706 (find_lst_loop): Remove.
13707 (lst_find_first_pbb): Remove.
13708 (lst_empty_p): Remove.
13709 (lst_find_last_pbb): Remove.
13710 (lst_contains_p): Remove.
13711 (lst_contains_pbb): Remove.
13712 (lst_create_nest): Remove.
13713 (lst_remove_from_sequence): Remove.
13714 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
13715 (lst_niter_for_loop): Remove.
13716 (pbb_update_scattering): Remove.
13717 (lst_update_scattering_under): Remove.
13718 (lst_update_scattering): Remove.
13719 (lst_insert_in_sequence): Remove.
13720 (lst_replace): Remove.
13721 (lst_substitute_3): Remove.
13722 (lst_distribute_lst): Remove.
13723 (lst_remove_all_before_including_pbb): Remove.
13724 (lst_remove_all_before_excluding_pbb): Remove.
13725 (struct scop): Remove original_schedule, transformed_schedule, and
13727 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
13728 (SCOP_SAVED_SCHEDULE): Remove.
13729 (poly_scattering_new): Remove.
13730 (poly_scattering_free): Remove.
13731 (poly_scattering_copy): Remove.
13732 (store_scattering_pbb): Remove.
13733 (store_lst_schedule): Remove.
13734 (restore_lst_schedule): Remove.
13735 (store_scattering): Remove.
13736 (restore_scattering_pbb): Remove.
13737 (restore_scattering): Remove.
13738 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
13739 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
13740 compute the scattering polyhedron dimension from the dimension of
13742 (build_scop_scattering): Update call to
13743 build_pbb_scattering_polyhedrons.
13744 (build_poly_scop): Remove call to scop_to_lst.
13745 * graphite.c (graphite_transform_loops): Add call to print_scop.
13746 (gate_graphite_transforms): Remove use of flag_loop_block,
13747 flag_loop_interchange, and flag_loop_strip_mine.
13749 2015-08-27 Sebastian Pop <s.pop@samsung.com>
13751 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
13752 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
13753 -floop-nest-optimize.
13754 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
13755 (generate_luj_sepclass): Remove.
13756 (generate_luj_options): Remove.
13757 (set_options): Remove opt_luj.
13758 (scop_to_isl_ast): Remove opt_luj.
13759 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
13760 flag_loop_unroll_jam.
13761 (getPrevectorMap_full): Remove.
13762 (getScheduleForBandList): Remove map_sepcl.
13763 (getScheduleMap): Same.
13764 (apply_schedule_map_to_scop): Remove sepcl.
13765 (optimize_isl): Same.
13766 * graphite-poly.c (apply_poly_transforms): Remove check for
13767 flag_loop_unroll_jam.
13768 (new_poly_bb): Remove map_sepclass.
13769 * graphite-poly.h (struct poly_bb): Same.
13770 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
13771 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
13772 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
13773 * toplev.c (process_options): Remove flag_loop_unroll_jam.
13775 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
13778 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
13779 (addqi3_cc): Ditto.
13780 (UNSPEC_ADD_CARRY): Remove.
13781 (addqi3_cconly_overflow): New expander.
13782 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
13783 Adjust for changed add<mode>3_carry.
13784 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
13785 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
13786 (<plusminus_insn><mode>3_carry): Remove expander.
13787 (*<plusminus_insn><mode>3_carry): Split insn pattern to
13788 add<mode>3_carry and sub<mode>3_carry.
13789 (plusminus_carry_mnemonic): Remove code attribute.
13790 (add<mode>3_carry): Canonicalize insn pattern.
13791 (*addsi3_carry_zext): Ditto.
13792 (sub<mode>3_carry): Ditto.
13793 (*subsi3_carry_zext): Ditto.
13794 (adcx<mode>3): Remove insn pattern.
13795 (addcarry<mode>): New insn pattern.
13796 (subborrow<mode>): Ditto.
13797 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
13798 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
13799 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
13800 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
13801 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
13802 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
13803 Rewrite expander to not clobber carry flag chains.
13805 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
13807 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
13808 instead of a rotate.
13810 2015-08-27 Marek Polacek <polacek@redhat.com>
13812 PR middle-end/67005
13813 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
13814 an entry into an irreducible region.
13816 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13818 * configure: Regenerate.
13820 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
13822 PR tree-optimization/67283
13823 * tree-sra.c (type_consists_of_records_p): Rename to...
13824 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13826 (completely_scalarize_record): Rename to...
13827 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
13828 (scalarize_elem): New.
13830 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
13832 * tree-sra.c (completely_scalarize_var): Rename to...
13833 (create_total_scalarization_access): ... Here. Drop call to
13834 completely_scalarize_record.
13836 (analyze_all_variable_accesses): Replace completely_scalarize_var
13837 with create_total_scalarization_access and completely_scalarize_record.
13839 2015-08-27 Alan Modra <amodra@gmail.com>
13842 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
13845 2015-08-27 Richard Biener <rguenther@suse.de>
13847 * passes.c (rest_of_decl_compilation): Guard early_global_decl
13848 call with !seen_error ().
13849 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
13850 early debug generation and finish...
13851 (symbol_table::compile): ... here to put it after a !seen_error ()
13854 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13856 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
13859 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13860 Andre Vieira <andre.simoesdiasvieira@arm.com>
13862 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
13863 (*cb<optab><mode>1): Likewise.
13864 (*tb<optab><mode>1): Likewise.
13865 (*cb<optab><mode>1): Likewise.
13866 * config/aarch64/iterators.md (inv_cb): New code attribute.
13867 (inv_tb): Likewise.
13868 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
13869 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
13871 2015-08-27 Richard Biener <rguenther@suse.de>
13873 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
13875 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
13877 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
13880 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
13882 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
13885 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
13887 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
13888 floating point in VSX registers.
13889 (rs6000_output_move_128bit): Always print out the set insn if we
13890 can't generate an appropriate 128-bit move.
13891 (rs6000_generate_compare): Add support for IEEE 128-bit floating
13892 point in VSX registers comparisons.
13893 (rs6000_expand_float128_convert): Likewise.
13895 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
13896 predicate for only GPR hard registers.
13898 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
13899 modes to iterators. Add new iterators for moving 128-bit values in
13900 scalar FPR registers and VSX registers.
13901 (FMOVE128): Likewise.
13902 (FMOVE128_FPR): Likewise.
13903 (FMOVE128_GPR): Likewise.
13904 (FMOVE128_VSX): Likewise.
13905 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
13908 (IBM128): Likewise.
13909 (TFIFKF): Likewise.
13910 (RELOAD): Add IEEE 128-bit floating point modes.
13911 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
13912 floating point in VSX registers modes.
13913 (signbit<mode>2, IBM128 iterator): Likewise.
13914 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
13915 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
13916 (negtf2): Likewise.
13917 (neg<mode>2, TFIFKF iterator): Likewise.
13918 (negtf2_internal): Likewise.
13919 (abstf2): Likewise.
13920 (abs<mode>2, TFIFKF iterator): Likewise.
13921 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
13922 VSX insn support for negate, absolute value, and negative absolute
13924 (ieee_128bit_vsx_neg<mode>2): Likewise.
13925 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
13926 (ieee_128bit_vsx_abs<mode>2): Likewise.
13927 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
13928 (ieee_128bit_vsx_nabs<mode>2): Likewise.
13929 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
13930 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
13931 floating point in VSX registers.
13932 (unpack<mode>_dm): Likewise.
13933 (unpack<mode>_nodm): Likewise.
13934 (pack<mode>): Likewise.
13935 (unpackv1ti): Likewise.
13936 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
13937 (packv1ti): Likewise.
13938 (pack<mode>, FMOVE128_VSX iterator): Likewise.
13939 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
13941 (extenddftf2_internal): Likewise.
13942 (trunctfdf2): Likewise.
13943 (trunctfdf2_internal2): Likewise.
13944 (fix_trunc_helper): Likewise.
13945 (fix_trunctfdi2"): Likewise.
13946 (floatditf2): Likewise.
13947 (floatuns<mode>tf2): Likewise.
13948 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
13949 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
13950 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
13951 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
13952 (float<SDI:mode><IFKF:mode>2): Likewise.
13953 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
13955 2015-08-26 Renlin Li <renlin.li@arm.com>
13957 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
13959 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
13960 Jiong Wang <jiong.wang@arm.com>
13962 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
13963 (tlsie_tiny_<mode>): New define_insn.
13964 (tlsie_tiny_sidi): Likewise.
13965 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
13967 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
13968 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
13970 (aarch64_expand_mov_immediate): Likewise.
13971 (aarch64_print_operand): Likewise.
13972 (arch64_classify_tls_symbol): Likewise.
13974 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
13976 * config/arm/arm-arches.def: Replace single value flags with
13977 an initializer built from ARM_FSET_MAKE_CPU1.
13978 * config/arm/arm-cores.def: Likewise.
13979 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
13980 derivation from the ARM_CORE macro definition, use the given value
13982 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
13983 ARM_ARCH macro definition, use the given value instead.
13985 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
13987 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
13989 (struct builtin_description): Replace field mask with field
13991 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
13992 (IWMMXT2_BUILTIN): Likewise.
13993 (IWMMXT2_BUILTIN2): Likewise.
13994 (FP_BUILTIN): Likewise.
13995 (CRC32_BUILTIN): Likewise.
13996 (CRYPTO_BUILTIN): Likewise.
13997 (iwmmx_mbuiltin): Likewise.
13998 (iwmmx2_mbuiltin): Likewise.
13999 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
14000 struct builtin_description.
14002 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14004 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
14005 (struct builtin_description): Change type of mask to unsigned
14007 * config/arm/arm-protos.h (insn_flags): Declare as type
14009 (tune_flags): Likewise.
14010 * config/arm/arm.c (feature_count): New.
14011 (insn_flags): Define as type arm_feature_set.
14012 (tune_flags): Likewise.
14013 (struct processors): Define field flags as type arm_feature_set.
14014 (all_cores): Update for change to struct processors.
14015 (all_architectures): Likewise.
14016 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
14018 (arm_option_override_internal): Likewise.
14019 (arm_option_override): Likewise.
14021 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
14022 Jiong Wang <jiong.wang@arm.com>
14024 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
14025 tls size for tiny, small, large memory model.
14026 (aarch64_load_symref_appropriately): Support new symbol types.
14027 (aarch64_expand_mov_immediate): Likewise.
14028 (aarch64_print_operand): Likewise.
14029 (aarch64_classify_tls_symbol): Likewise.
14030 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
14031 (aarch64_symbol_type): Likewise.
14032 * config/aarch64/aarch64.md (tlsle): Deleted.
14033 (tlsle12_<mode>): New define_insn.
14034 (tlsle24_<mode>): Likewise.
14035 (tlsle32_<mode>): Likewise.
14036 (tlsle48_<mode>): Likewise.
14037 * doc/sourcebuild.texi (AArch64-specific attributes): Document
14040 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14042 * config/arm/arm-protos.h (FL_NONE): New.
14044 (arm_feature_set): New.
14045 (ARM_FSET_MAKE): New.
14046 (ARM_FSET_MAKE_CPU1): New.
14047 (ARM_FSET_MAKE_CPU2): New.
14048 (ARM_FSET_CPU1): New.
14049 (ARM_FSET_CPU2): New.
14050 (ARM_FSET_EMPTY): New.
14051 (ARM_FSET_ANY): New.
14052 (ARM_FSET_HAS_CPU1): New.
14053 (ARM_FSET_HAS_CPU2): New.
14054 (ARM_FSET_HAS_CPU): New.
14055 (ARM_FSET_ADD_CPU1): New.
14056 (ARM_FSET_ADD_CPU2): New.
14057 (ARM_FSET_DEL_CPU1): New.
14058 (ARM_FSET_DEL_CPU2): New.
14059 (ARM_FSET_UNION): New.
14060 (ARM_FSET_INTER): New.
14061 (ARM_FSET_XOR): New.
14062 (ARM_FSET_EXCLUDE): New.
14063 (AFM_FSET_IS_EMPTY): New.
14064 (ARM_FSET_CPU_SUBSET): New.
14066 2015-08-26 Jiong Wang <jiong.wang@arm.com>
14068 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
14069 SYMBOL_TLSLE to SYMBOL_TLSLE24.
14070 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14072 (aarch64_expand_mov_immediate): Likewise.
14073 (aarch64_print_operand): Likewise.
14074 (aarch64_classify_symbol): Likewise.
14076 2015-08-26 Jiong Wang <jiong.wang@arm.com>
14078 * config/aarch64/aarch64.opt (mtls-size): New entry.
14079 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
14080 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
14081 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
14083 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14085 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
14086 ARM_CORE entry. Fix some white-space.
14087 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
14088 ARM_CORE definition.
14090 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14092 * fold-const.c (fold_binary_loc) : Move Optimize
14093 root(x)*root(y) as root(x*y) to match.pd.
14094 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
14095 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
14096 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
14097 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
14098 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
14099 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
14100 (mult (exps:s @0) (exps:s @1)) : New simplifier.
14101 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
14102 (rdiv @0 (exps:s @1)) : New simplifier.
14104 2015-08-25 Joseph Myers <joseph@codesourcery.com>
14106 * gcc.c (driver::finalize): Only assign to extra_specs if
14109 2015-08-25 Marek Polacek <polacek@redhat.com>
14111 PR middle-end/67330
14112 * varasm.c (declare_weak): Return after giving an error.
14114 2015-08-25 David Malcolm <dmalcolm@redhat.com>
14116 * gcc-main.c (main): Add params to driver ctor.
14117 * gcc.c (class env_manager): New.
14119 (env_manager::init): New.
14120 (env_manager::get): New.
14121 (env_manager::xput): New.
14122 (env_manager::restore): New.
14123 Poison getenv and putenv.
14124 (DEFAULT_TARGET_SYSTEM_ROOT): New.
14125 (target_system_root): Update initialization to use
14126 DEFAULT_TARGET_SYSTEM_ROOT.
14127 (struct spec_list): Add field "default_ptr".
14128 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
14129 (init_spec): Likewise.
14130 (set_spec): Clear field "default_ptr".
14131 (read_specs): Free "spec" and "buffer".
14132 (xputenv): Reimplement in terms of env_manager.
14133 (process_command): Replace ::getenv calls with calls to the
14134 env_manager singleton.
14135 (process_brace_body): Free string in three places.
14136 (driver::driver): New.
14137 (driver::~driver): New.
14138 (used_arg): Convert from a function to...
14139 (class used_arg_t): ...this class, and...
14140 (used_arg): ...this new global instance.
14141 (used_arg_t::finalize): New function.
14142 (getenv_spec_function): Add "const" to local "value". Replace
14143 ::getenv call with call to the env_manager singleton.
14144 (path_prefix_reset): New function.
14145 (driver::finalize): New function.
14146 * gcc.h (driver::driver): New.
14147 (driver::~driver): New.
14148 (driver::finalize): New.
14150 2015-08-25 Nathan Sidwell <nathan@acm.org>
14152 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
14153 target doesn't have one.
14155 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
14158 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
14160 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
14163 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
14164 a define_insn, remove second alternative.
14166 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
14167 Joseph Myers <joseph@codesourcery.com>
14169 * gcc.c (struct switchstr): Expand comment.
14171 2015-08-25 Nathan Sidwell <nathan@acm.org>
14173 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
14174 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
14176 2015-08-25 Richard Biener <rguenther@suse.de>
14178 PR middle-end/67306
14179 * genmatch.c (expr::gen_transform): Verify the result of
14180 builtin_decl_implicit.
14181 (dt_simplify::gen_1): Likewise.
14183 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
14185 * config/arm/constraints.md: Also list Cs and US ARM-specific
14186 constraints as used.
14188 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
14191 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
14193 (nonpic_symbol_mentioned_p): Likewise.
14194 (sh_delegitimize_address): Likewise.
14195 (sh_function_ok_for_sibcall): Take into account weak symbols.
14196 (sh_expand_sym_label2reg): New.
14197 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
14198 * config/sh/sh.md (UNSPEC_PCREL): New enum.
14199 (call_pcrel): Use sh_expand_sym_label2reg.
14200 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
14201 (symPCREL_label2reg) New expand.
14203 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
14205 * graphite-poly.c: Change type of region from void* to sese.
14206 * graphite-poly.h (struct scop): Changing the type of scop::region
14207 from void* to sese. Change accessor macro accordingly.
14208 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
14210 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
14212 * graphite-scop-detection.c (stmt_simple_for_scop_p):
14213 Constrain only on INTEGER_TYPE.
14215 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14218 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
14219 -mefficient-unaligned-vsx on ISA 2.7.
14221 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
14222 option to a masked option.
14224 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
14225 logic for -mefficient-unaligned-vsx so that it is set via an arch
14226 ISA option, instead of being set if -mtune=power8 is set. Move
14227 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
14228 near other default option handling.
14230 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14232 * genflags.c (gen_macro): Delete.
14233 (gen_proto): Don't create GEN.*CALL.* macros.
14234 * gensupport.h (get_file_location): Declare.
14235 * gensupport.c (rtx_locs): New variable.
14236 (read_md_rtx): Record rtx locations.
14237 (get_file_location): New function.
14238 * target-insns.def (call, call_pop, call_value, call_value_pop)
14239 (sibcall, sibcall_value): New patterns.
14240 * gentarget-def.c (parse_argument): New function.
14241 (def_target_insn): Use it. Handle optional operands. Raise an
14242 error if an .md pattern has the wrong number of operands for the
14243 pattern name. Remove the names of unused operands from the prototype.
14244 * builtins.c (expand_builtin_apply): Use targetm functions
14245 instead of HAVE_call_value and GEN_CALL_VALUE.
14246 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
14247 and sibcall_value_pop.
14248 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
14250 * config/alpha/alpha.md (untyped_call): Likewise.
14251 * config/iq2000/iq2000.md (untyped_call): Likewise.
14252 * config/m68k/m68k.md (untyped_call): Likewise.
14253 * config/mips/mips.md (untyped_call): Likewise.
14254 * config/pa/pa.md (untyped_call): Likewise.
14255 * config/rs6000/rs6000.md (untyped_call): Likewise.
14256 * config/sparc/sparc.md (untyped_call): Likewise.
14257 * config/tilegx/tilegx.md (untyped_call): Likewise.
14258 * config/tilepro/tilepro.md (untyped_call): Likewise.
14259 * config/visium/visium.md (untyped_call): Likewise.
14260 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
14261 gen_call_value instead of GEN_CALL_VALUE.
14262 * config/arm/arm.md (untyped_call): Likewise.
14263 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
14266 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14268 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
14269 (have_cbranchcc4): New variable.
14270 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
14271 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
14272 (if_convert): Initialize have_cbranchcc4.
14274 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14276 * builtins.c (expand_cmpstrn): Rename to...
14277 (expand_cmpstrn_or_cmpmem): ...this.
14278 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
14279 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
14280 Remove mode argument.
14281 (expand_builtin): Update accordingly.
14283 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14285 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
14286 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
14287 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
14288 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
14289 Add predicates for operands 0 and 3.
14290 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
14292 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
14293 immediate_operand to nonmemory_operand.
14295 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14297 * df-scan.c (df_insn_info_init_fields): New function, split out
14299 (df_insn_create_insn_record): ...here.
14300 (df_insn_info_free_fields): New function, split out from...
14301 (df_insn_info_delete): ...here.
14302 (df_insn_rescan): Use the new functions instead of freeing and
14303 reallocating the df_insn_info.
14305 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14307 * doc/install.texi (Binaries): Remove links no longer valid.
14309 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
14311 * config/nvptx/mkoffload.c (process): Replace
14312 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
14314 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
14317 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
14319 2015-08-24 Renlin Li <renlin.li@arm.com>
14321 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
14322 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
14323 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
14324 * config/arm/constraints.md ("j"): Add check for high code.
14326 2015-08-24 Tom de Vries <tom@codesourcery.com>
14328 PR tree-optimization/65468
14329 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
14332 2015-08-24 Nathan Sidwell <nathan@acm.org>
14334 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
14335 change to nvptx_type_from_mode call. Use arg_promotion for both
14336 split and non-split args.
14338 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14340 * target-insns.def (movstr): New pattern.
14341 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
14342 (expand_movstr): Use targetm rather than HAVE_movstr/
14345 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14347 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
14350 2015-08-24 Andrew Pinski <apinski@cavium.com>
14352 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
14353 AARCH64_EXTRA_TUNING_OPTION.
14354 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
14356 (aarch64_extra_tuning_flags): Base the shifted value on the index
14357 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
14358 * config/aarch64/aarch64.c: Remove the last argument to
14359 AARCH64_EXTRA_TUNING_OPTION.
14361 2015-08-23 Nathan Sidwell <nathan@acm.org>
14363 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
14365 (nvptx_declare_function_name): Insert formatting tabs for
14368 2015-08-23 Tom de Vries <tom@codesourcery.com>
14370 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
14371 parm_decl, rather than generating a dummy default def in cfun.
14372 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
14373 ssa_name from cfun and child_fn do not share a stmt as def stmt.
14374 (move_stmt_op): Handle PARM_DECl.
14375 (gather_ssa_name_hash_map_from): New function.
14376 (move_sese_region_to_fn): Add default defs for function params, and add
14377 them to vars_map. Release copied ssa names.
14378 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
14380 2015-08-23 Tom de Vries <tom@codesourcery.com>
14382 * doc/sourcebuild.texi: Rename vect_no_int_max with
14383 vect_no_int_min_max. Update description.
14385 2015-08-22 Andrew Pinski <apinski@cavium.com>
14387 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
14388 * config/aarch64/aarch64-protos.h
14389 (aarch64_fusion_pairs_index): New enum.
14390 (aarch64_fusion_pairs): Base the shifted value on the index instead
14391 Rewrite AARCH64_FUSE_ALL to be based on the end index.
14392 of the argument to AARCH64_FUSION_PAIR.
14393 * config/aarch64/aarch64.c: Remove the last argument to
14394 AARCH64_FUSION_PAIR.
14396 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
14398 * dominance.c (new_zero_array): Define.
14399 (dom_info): Redefine as class with proper encapsulation.
14400 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
14402 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
14403 allocations/deallocations. Pass function as parameter (instead of
14405 (dom_info::get_idom): Define accessor method.
14406 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
14407 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
14408 (calculate_dominance_info): Adjust to use dom_info class.
14409 (verify_dominators): Likewise.
14411 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
14413 * print-rtl.c (print_rtx): Check the correct range for
14414 flag_dump_unnumbered_links to behave as documented.
14416 PR rtl-optimization/67227
14417 PR rtl-optimization/64164
14418 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
14419 (nonoverlapping_memrefs_p): Test offsets and sizes when given
14420 identical gimple_reg exprs.
14422 2015-08-21 Nathan Sidwell <nathan@acm.org>
14424 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
14426 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
14427 crtl->stack_alignment_needed to determine alignment.
14428 (nvptx_get_drap_rtx): New.
14429 (TARGET_GET_DRAP_RTX): Override.
14430 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
14432 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14434 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
14436 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14438 * configure.ac: Remove uwin* cases.
14439 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
14440 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
14441 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
14442 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
14443 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
14444 i[34567]86-*-uwin*, powerpc-*-beos*.
14446 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
14448 * gencodes.c (gencodes): Print the comma for the preceding
14449 enum value rather than the current one. Use aliased enum values
14450 rather than #defines for compiled-out patterns.
14451 (main): Update accordingly. Replace LAST_INSN_CODE with
14453 * lra.c (insn_code_data): Update accordingly.
14454 (finish_insn_code_data_once, get_static_insn_data): Likewise.
14455 * recog.h (target_recog): Likewise.
14456 (preprocess_insn_constraints): Change parameter to unsigned int.
14457 * recog.c (preprocess_insn_constraints): Likewise.
14458 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
14459 * tree-vect-stmts.c (vectorizable_operation): Simplify.
14461 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
14463 PR rtl-optimization/61657
14464 * loop-iv.c (iv_number_of_iterations): Declare up and down as
14465 unsigned. Remove superflous uint64_t cast.
14467 2014-08-21 Felix Yang <felix.yang@huawei.com>
14468 Jiji Jiang <jiangjiji@huawei.com>
14470 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
14471 argument and get builtin function code directly from CALL.
14472 (gimple_stringop_fixed_value): Modified accordingly.
14473 (gimple_stringops_transform, gimple_stringops_values_to_profile):
14474 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
14476 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
14478 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
14480 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14482 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
14484 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
14485 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
14486 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
14487 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
14488 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
14489 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
14490 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
14491 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
14492 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
14493 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
14495 * match.pd (SIN ) : New Operator.
14496 (TAN) : New Operator.
14497 (mult (SQRT@1 @0) @1) : New simplifier.
14498 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
14499 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
14500 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
14501 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
14502 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
14503 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
14504 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
14505 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
14506 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
14507 (rdiv @0 (POW:s @1 @2)) : New simplifier.
14509 2015-08-21 Bin Cheng <bin.cheng@arm.com>
14511 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
14512 loop if EXPR is simplified to const value.
14514 2015-08-21 Yury Gribov <y.gribov@samsung.com>
14516 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
14517 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
14519 2015-08-21 Richard Biener <rguenther@suse.de>
14521 PR middle-end/67285
14522 * gimple-fold.c (replace_stmt_with_simplification): Assert
14523 seq is empty when replacing a call with itself but different
14525 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
14526 a call require that it is const.
14528 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14530 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
14531 * builtins.c (get_object_alignment_2): Adjust.
14532 * varasm.c (align_variable): Likewise.
14533 (get_variable_align): Likewise.
14534 (build_constant_desc): Likewise.
14535 (force_const_mem): Likewise.
14536 * doc/tm.texi.in: Likewise.
14537 * doc/tm.texi: Regenerate.
14539 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14541 * genconfig.c (main): Always define HAVE_cc0.
14542 * recog.c (rest_of_handle_peephole2): Adjust.
14544 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14546 * reorg.c (relax_delay_slots): Don't use #if to check value of
14549 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14551 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
14552 * targhooks.c (default_have_conditional_execution): Adjust.
14554 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
14556 * rtl.h (rtvec_all_equal_p): Declare.
14557 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
14558 * rtl.c (rtvec_all_equal_p): New function.
14559 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
14560 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
14561 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
14562 * config/arm/arm.c (neon_vdup_constant): Likewise.
14563 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
14564 * config/tilegx/constraints.md (W, Y): Likewise.
14565 * config/tilepro/constraints.md (W, Y): Likewise.
14566 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
14567 (classify_immediate): Use unwrap_const_vec_duplicate.
14568 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
14569 (reg_or_v2s8bit_operand): Likewise.
14570 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
14571 (reg_or_v4s8bit_operand): Likewise.
14573 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14575 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
14576 (vec_shasigma_be): New #define.
14577 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
14578 (VPMSUMH): Likewise.
14579 (VPMSUMW): Likewise.
14580 (VPMSUMD): Likewise.
14581 (VPMSUM): New BU_P8V_OVERLOAD_2.
14582 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
14583 entries for VEC_MADD and VEC_VPMSUM.
14585 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
14587 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
14588 Multiply argument avr_n_flash by 64 to match unit of "KiB".
14589 (avr_pgm_check_var_decl): Same.
14591 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
14593 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
14594 initialization of HFmode scalar type (float16_t) to...
14595 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
14598 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
14600 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
14601 having an -mfp16-format.
14603 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
14605 * config/i386/predicates.md (vector_all_ones_operand): Use
14606 CONSTM1_RTX to simplify definition.
14608 2015-08-20 Richard Biener <rguenther@suse.de>
14610 * toplev.c (compile_file): Remove loop calling late_global_decl
14612 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
14613 on decls we assembled.
14615 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
14617 * common/config/aarch64/aarch64-common.c
14618 (AARCH64_CPU_NAME_LENGTH): Delete.
14619 (aarch64_option_extension): New.
14620 (all_extensions): Likewise.
14621 (processor_name_to_arch): Likewise.
14622 (arch_to_arch_name): Likewise.
14624 (all_architectures): Likewise.
14625 (aarch64_get_extension_string_for_isa_flags): Likewise.
14626 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
14627 architecture names.
14628 * config/aarch64/aarch64-protos.h
14629 (aarch64_get_extension_string_for_isa_flags): New.
14630 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
14631 (aarch64_option_print): Get the string to print from
14632 aarch64_get_extension_string_for_isa_flags.
14633 (aarch64_declare_function_name): Likewise.
14634 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
14635 (MCPU_TO_MARCH_SPEC): This.
14636 (ASM_CPU_SPEC): Use it.
14637 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
14638 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
14639 (EXTRA_SPEC_FUNCTIONS): Use it.
14641 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
14643 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
14644 expansion when !ISA_HAS_LWL_LWR.
14645 (mips_block_move_straight): Update the size of elements copied to
14646 account for alignment when !ISA_HAS_LWL_LWR.
14647 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
14649 2015-08-19 Jiong Wang <jiong.wang@arm.com>
14651 * expr.c (expand_expr_real_2): Check gimple statement during
14652 LSHIFT_EXPR expand.
14654 2015-08-19 Magnus Granberg <zorry@gentoo.org>
14656 * common.opt (fstack-protector): Initialize to -1.
14657 (fstack-protector-all): Likewise.
14658 (fstack-protector-strong): Likewise.
14659 (fstack-protector-explicit): Likewise.
14660 * configure.ac: Add --enable-default-ssp.
14661 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
14662 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
14664 * doc/install.texi: Document --enable-default-ssp.
14665 * config.in: Regenerated.
14666 * configure: Likewise.
14668 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
14670 PR rtl-optimization/64164
14671 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
14672 (parm_in_stack_slot_p): ... this. Disregard mode, what
14673 matters is whether the parm will live in a pseudo or a stack
14675 (expand_one_ssa_partition): Deal with params without a default
14676 def. Disregard mode.
14677 * cfgexpand.h: Renamed function declaration.
14678 * tree-ssa-coalesce.c: Adjust.
14679 * function.c (split_complex_args): Allocate stack slot for
14680 unassigned parms before splitting.
14681 (parm_in_unassigned_mem_p): New. Use it instead of
14682 parm_maybe_byref_p throughout this file.
14683 (assign_parm_setup_block): Use it. Accept pseudos in the
14684 expand-assigned rtl.
14685 (assign_parm_setup_reg): Drop BLKmode requirement.
14686 (assign_parm_setup_stack): Allocate and fill in the address of
14687 unassigned MEM parms.
14689 2015-08-19 David Sherwood <david.sherwood@arm.com>
14691 * genmodes.c (emit_mode_unit_size_inline): New function.
14692 (emit_mode_unit_precision_inline): New function.
14693 (emit_insn_modes_h): Emit new #define. Emit new functions.
14694 (emit_mode_unit_size): New function.
14695 (emit_mode_unit_precision): New function.
14696 (emit_mode_adjustments): Add mode_unit_size adjustments.
14697 (emit_insn_modes_c): Emit new arrays.
14698 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
14699 use new inline methods.
14701 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14703 * config/aarch64/aarch64.c (bit_count): Delete prototype
14705 (aarch64_print_operand): Use popcount_hwi instead of the above.
14707 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14709 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
14712 2015-08-19 Marek Polacek <polacek@redhat.com>
14714 PR middle-end/67133
14715 * gimple-ssa-isolate-paths.c
14716 (insert_trap_and_remove_trailing_statements): Rename to ...
14717 (insert_trap): ... this. Don't remove trailing statements; split
14719 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
14721 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
14724 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
14725 conditionalize the whole on __GNUC__. Add fallback code
14726 depending neither on undefined nor implementation-defined behaviour.
14728 2015-08-19 Jiong Wang <jiong.wang@arm.com>
14730 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
14731 whitespaces with tab.
14733 2015-08-19 Florian Weimer <fweimer@redhat.com>
14735 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
14736 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
14737 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
14738 Move Name_Ids instantiation to the Prj.Proc package, to avoid
14741 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14743 * config/arm/arm.c (bounds_check): Use %wd print format
14744 for HOST_WIDE_INT arguments.
14746 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
14748 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
14749 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
14750 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
14751 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
14752 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
14753 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
14754 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
14755 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
14756 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
14759 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
14761 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
14762 function.c, graphite-scop-detection.c, haifa-sched.c,
14763 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
14764 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
14765 varasm.c: Remove typedefs of structs.
14767 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
14769 * config/rs6000/altivec.h (vec_adde): New define.
14770 (vec_addec): Likewise.
14771 (vec_double): Likewise.
14772 (vec_bperm): Likewise.
14773 (vec_gb): Likewise.
14774 * config/rs6000/rs6000-builtin.def (ADDE): New
14775 BU_ALTIVEC_OVERLOAD_3.
14777 (DOUBLE): New BU_VSX_OVERLOAD_1.
14778 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
14779 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
14780 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
14781 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
14782 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
14783 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
14784 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
14785 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
14786 and P8V_BUILTIN_VEC_VBPERMQ.
14788 2015-08-18 Jason Merrill <jason@redhat.com>
14790 * print-tree.c (print_node): Handle TREE_BINFO.
14792 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14794 PR middle-end/36757
14795 * builtins.c (expand_builtin_signbit): Add asserts to make sure
14796 we can expand BUILT_IN_SIGNBIT inline.
14797 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
14798 * doc/extend.texi: Document the type-generic __builtin_signbit.
14800 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
14802 PR rtl-optimization/67218
14803 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
14804 (simplify_unary_operation_1): Use it.
14806 2015-08-18 Marek Polacek <polacek@redhat.com>
14808 PR middle-end/67222
14809 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
14810 if the call isn't valid.
14811 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
14812 gimple_call_builtin_p.
14813 (call_may_clobber_ref_p_1): Likewise.
14814 (stmt_kills_ref_p): Likewise.
14816 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
14818 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
14819 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
14820 (mips_hard_regno_scratch_ok): Likewise.
14821 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
14822 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
14824 2015-08-18 Bin Cheng <bin.cheng@arm.com>
14826 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
14827 (determine_value_range): Call refine_value_range_using_guard for
14828 each loop initial condition to improve value range.
14830 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
14832 * config/i386/i386.c: Remove include of fibheap.h.
14834 2015-08-17 Richard Biener <rguenther@suse.de>
14836 PR tree-optimization/67221
14837 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
14838 (sccvn_dom_walker::before_dom_children): Mark backedges of
14839 non-executable blocks as not executable.
14841 2015-08-17 David Sherwood <david.sherwood@arm.com>
14843 * config/arm/arm.c (neon_element_bits): Replace call to
14844 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
14845 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
14846 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
14847 (neon_vdup_lane<mode>): Likewise.
14848 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
14849 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
14850 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
14851 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
14852 * config/spu/spu.c (arith_immediate_p): Likewise.
14853 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
14854 * expr.c (expand_expr_real_2): Likewise.
14855 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
14856 * simplify-rtx.c (simplify_immed_subreg): Likewise.
14857 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
14858 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
14860 * fold-const.c (fold_binary_loc): Replace call to
14861 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
14862 GET_MODE_UNIT_PRECISION (m).
14864 2015-08-17 Mike Stump <mikestump@comcast.net>
14866 * config/arm/arm.c (arm_block_move_unaligned_straight):
14867 Emit normal move instead of unaligned load when source or destination
14868 are appropriately aligned.
14870 2015-08-17 Richard Biener <rguenther@suse.de>
14871 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14873 PR middle-end/16107
14874 * match.pd (div (coss (op @0) : New simplifier.
14876 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
14878 PR rtl-optimization/64164
14880 PR middle-end/66983
14881 PR rtl-optimization/67000
14882 PR middle-end/67034
14883 PR middle-end/67035
14884 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14885 * tree-ssa-copyrename.c: Removed.
14886 * opts.c (default_options_table): Drop -ftree-copyrename. Add
14887 -ftree-coalesce-vars.
14888 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14889 * common.opt (ftree-copyrename): Ignore.
14890 (ftree-coalesce-inlined-vars): Likewise.
14891 * doc/invoke.texi: Remove the ignored options above.
14892 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14893 * tree-ssa-coalesce.h: ... here.
14894 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14895 headers required by it.
14896 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14897 across variables when flag_tree_coalesce_vars. Check register
14898 use and promoted modes to allow coalescing. Do not coalesce
14899 maybe-byref parms with SSA_NAMEs of other variables, or
14900 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
14901 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14902 with its member functions to tree-ssa-coalesce.c.
14903 (var_map_base_init): Likewise. Renamed to
14904 compute_samebase_partition_bases.
14905 (partition_view_normal): Drop want_bases parameter.
14906 (partition_view_bitmap): Likewise.
14907 * tree-ssa-live.h: Adjust declarations.
14908 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
14909 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14910 default defs at the entry point.
14911 (dump_part_var_map): New.
14912 (compute_optimized_partition_bases): New, called by...
14913 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14914 of compute_samebase_partition_bases. Adjust.
14915 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14916 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
14917 (ssa_default_def_partition): New.
14918 (get_rtl_for_parm_ssa_default_def): New.
14919 (align_local_variable, add_stack_var): Support anonymous SSA
14921 (defer_stack_allocation): Likewise. Declare earlier.
14922 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14923 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14924 Do no record deferred-allocation marker in
14925 SA.partition_to_pseudo.
14926 (expand_stack_vars): Adjust check for the marker in it.
14927 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
14928 redundant MEM attr setting.
14929 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
14931 (expand_one_stack_var): ... this. New wrapper to check and
14932 skip already expanded SSA partitions.
14933 (record_alignment_for_reg_var): New, factored out of...
14934 (expand_one_var): ... this.
14935 (expand_one_ssa_partition): New.
14936 (adjust_one_expanded_partition_var): New.
14937 (expand_one_register_var): Check and skip already expanded SSA
14939 (expand_used_vars): Don't create DECLs for anonymous SSA
14940 names. Expand all SSA partitions, then adjust all SSA names.
14941 (pass::execute): Replace the loops that set
14942 SA.partition_to_pseudo from partition leaders and cleared
14943 DECL_RTL for multi-location variables, and that which used to
14944 rename vars and set attrs, with one that clears DECL_RTL and
14945 checks that PARMs and RESULTs default_defs match DECL_RTL.
14946 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14947 * emit-rtl.c: Include stor-layout.h.
14948 (set_reg_attrs_for_parm): Handle NULL decl.
14949 (set_reg_attrs_for_decl_rtl): Take mode from expression if
14951 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
14952 rather than its possibly-NULL DECL.
14953 * explow.c (promote_ssa_mode): New.
14954 * explow.h (promote_ssa_mode): Declare.
14955 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14956 (read_complex_part): Export.
14957 * expr.h (read_complex_part): Declare.
14958 * cfgexpand.h (parm_maybe_byref_p): Declare.
14959 * function.c: Include cfgexpand.h.
14960 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14961 (use_register_for_parm_decl): Wrapper for the above to
14962 special-case the result_ptr.
14963 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14964 (split_complex_args): Take assign_parm_data_all argument.
14965 Pass it to rtl_for_parm. Set up rtl and context for split
14966 args. Reset complex parm before fetching its default decl
14968 (assign_parms_unsplit_complex): Use the default-def complex
14969 parm rtl if it matches the components.
14970 (assign_parms_augmented_arg_list): Adjust.
14971 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14972 multiple locations. Recognize split complex args.
14973 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14974 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
14975 (assign_parm_setup_block): Prefer SSA-assigned location, and
14976 fill in its address if the memory location of a maybe-byref
14977 parm was not assigned by cfgexpand.
14978 (assign_parm_setup_reg): Likewise. Adjust its mode as
14979 needed. Use entry_parm for equiv if stack_parm is NULL. Make
14980 sure passed_pointer parms don't need conversion. Copy address
14981 or value as needed.
14982 (assign_parm_setup_stack): Prefer SSA-assigned location.
14983 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
14984 rtl before testing for pointer bounds. Special-case result_ptr.
14985 (expand_function_start): Maybe reset DECL_RTL of result.
14986 Prefer SSA-assigned location for result and static chain.
14987 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
14988 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
14989 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14990 anonymous SSA names. Use promote_ssa_mode.
14991 (get_temp_reg): Likewise.
14992 (remove_ssa_form): Adjust.
14993 * stor-layout.c (layout_decl): Don't set mem attributes of
14995 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14996 and get its reg_usage for reg invalidation.
14997 (compute_bb_dataflow): Pass it insn.
14998 (emit_notes_in_bb): Likewise.
15000 2015-08-14 Marek Polacek <polacek@redhat.com>
15002 * tree-core.h (tree_base): Fix typo.
15004 2015-08-14 Marek Polacek <polacek@redhat.com>
15006 PR middle-end/67133
15007 * gimple.c (infer_nonnull_range_by_attribute): Check that the
15008 nonnull argument position is not outside function arguments.
15010 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
15013 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
15014 'lconst_atomic' with 'const_atomic'.
15015 (atomic_fetch_<optab><mode>): Likewise.
15016 (atomic_<optab>_fetch<mode>): Likewise.
15017 * config/aarch64/iterators.md (lconst-atomic): Move below
15019 (const_atomic): New.
15021 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
15022 Bernd Schmidt <bernds@codesourcery.com>
15024 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
15026 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
15027 (DWARF2_DEBUGGING_INFO): Don't define.
15028 * debug.h (dwarf2_lineno_debug_hooks): Declare.
15029 * toplev.c (process_options): Add a case for it.
15030 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
15031 (dwarf2out_init): Skip most initializations if
15032 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
15034 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
15035 DWARF2_LINENO_DEBUGGING_INFO.
15036 * opts.c (set_debug_level): Likewise.
15038 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
15040 * config/arm/types.md (is_neon_type): Add missing types.
15042 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
15044 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
15046 * config/i386/i386.c (PTA_SKYLAKE): New macros.
15047 (processor_alias_table): Add skylake description.
15048 (enum processor_model): Add skylake processor.
15049 (arch_names_table): Add skylake record.
15050 * doc/invoke.texi: Add skylake item.
15052 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
15054 * ira-int.h: Include recog.h.
15055 * ira-build.c: Don't include recog.h.
15056 * ira-color.c: Likewise.
15057 * ira-conflicts.c: Likewise.
15058 * ira-costs.c: Likewise.
15059 * ira-emit.c: Likewise.
15060 * ira-lives.c: Likewise.
15062 * sched-deps.c: Likewise.
15063 * sel-sched.c: Likewise.
15064 * target-globals.c: Likewise.
15066 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
15069 * reload1.c (elimination_costs_in_insn): Make it obvious to the
15070 compiler that the n_dups and n_operands loop bounds are invariant.
15072 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15074 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
15075 expressions in A and B.
15077 2015-08-13 Richard Biener <rguenther@suse.de>
15079 * tree.c (nonnull_arg_p): Move from ...
15080 * tree-vrp.c (nonnull_arg_p): ... here.
15081 * tree.h (nonnull_arg_p): Declare.
15082 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
15083 here, register ptr != 0 for nonnull_arg_p pointer arguments.
15084 Properly initialize static chain and by-reference result pointer.
15085 (run_scc_vn): Adjust.
15087 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
15089 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
15092 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
15094 * config/aarch64/aarch64-protos.h
15095 (aarch64_gen_atomic_cas): Declare.
15096 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
15097 Choose appropriate instruction pattern for the target.
15098 (aarch64_gen_atomic_cas): New.
15099 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
15100 (atomic_compare_and_swap<mode>_1): Rename to
15101 aarch64_compare_and_swap<mode>. Fix some indentation.
15102 (aarch64_compare_and_swap<mode>_lse): New.
15103 (aarch64_atomic_cas<mode>): New.
15105 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
15107 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
15110 2015-08-13 Richard Biener <rguenther@suse.de>
15112 PR tree-optimization/67191
15113 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
15114 assert we value-numbered last stmts operand because it can validly
15115 trigger for unreachable code.
15117 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15119 PR rtl-optimization/67103
15120 * ifcvt.c (noce_try_store_flag_constants): Move
15121 x = (-(test != 0) & (b - a)) + a transformation to...
15122 (noce_try_cmove): ... Here. Try it if normal conditional
15125 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
15127 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
15129 * config/mips/mips.md (processor): Remove w32 and w64.
15131 2015-08-13 Richard Biener <rguenther@suse.de>
15133 PR tree-optimization/66502
15134 PR tree-optimization/67167
15135 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
15136 backedge arguments.
15137 (vn_phi_lookup): Adjust.
15138 (vn_phi_insert): Likewise.
15139 (visit_phi): Prefer to value-number to another PHI node
15140 over value-numbering to a PHI argument.
15141 (init_scc_vn): Mark DFS back edges.
15143 2015-08-13 Richard Biener <rguenther@suse.de>
15145 * gimple.h (gcall::code_): New constant static member.
15146 (gcond::code_): Likewise.
15147 * gimple.c (gcall::code_): Define.
15148 (gcond::code_): Likewise.
15149 (is_a_helper <const gcond *>): Add.
15150 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
15151 and forward to a new gcall overload with less checking and a
15152 cheaper way to access the operand.
15153 (gimple_call_lhs_ptr): Likewise.
15154 (gimple_call_set_lhs): Likewise.
15155 (gimple_call_internal_p): Likewise.
15156 (gimple_call_with_bounds_p): Likewise.
15157 (gimple_call_set_with_bounds): Likewise.
15158 (gimple_call_internal_fn): Likewise.
15159 (gimple_call_set_ctrl_altering): Likewise.
15160 (gimple_call_ctrl_altering_p): Likewise.
15161 (gimple_call_fntype): Likewise.
15162 (gimple_call_fn): Likewise.
15163 (gimple_call_fn_ptr): Likewise.
15164 (gimple_call_set_fndecl): Likewise.
15165 (gimple_call_fndecl): Likewise.
15166 (gimple_call_chain): Likewise.
15167 (gimple_call_num_args): Likewise.
15168 (gimple_call_arg): Likewise.
15169 (gimple_call_arg_ptr): Likewise.
15170 (gimple_call_set_arg): Likewise.
15171 (gimple_call_noreturn_p): Likewise.
15172 (gimple_cond_code): Likewise.
15173 (gimple_cond_lhs): Likewise.
15174 (gimple_cond_rhs): Likewise.
15175 (gimple_has_lhs): Reduce checking.
15177 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15179 PR middle-end/25529
15180 * match.pd (div (mult @0 @1) @1) : New simplifier.
15182 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15185 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
15186 predicate to allow construction of vector constants using the
15187 VSLDOI vector shift instruction.
15189 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
15192 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
15193 the number of bytes to be shifted left and filled in with either
15194 all zero or all one bits.
15195 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
15197 (output_vec_const_move): On power8, generate XXLORC to generate
15198 a vector constant with all 1's. Do a split if we need to use a
15199 VSLDOI instruction.
15201 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
15202 properly test for the MSB.
15204 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
15205 vector constants that can be created with VSLDOI.
15207 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
15210 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
15211 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
15212 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
15213 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
15214 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15215 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15216 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
15217 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
15218 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
15220 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
15222 * config/xtensa/constraints.md (define_constraint "Y"): New
15224 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
15225 * config/xtensa/linux.h (ASM_SPEC): Likewise.
15226 * config/xtensa/predicates.md (move_operand): Match constants
15227 and symbols in the presence of TARGET_AUTO_LITPOOLS.
15228 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
15229 immediate references to TLS data.
15230 (xtensa_emit_move_sequence): Don't force constants to memory in
15231 the presence of TARGET_AUTO_LITPOOLS.
15232 (print_operand): Add 'y' format, same as default, but capable of
15233 printing SF mode constants as well.
15234 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
15235 (movsf_internal): Add movi pattern that loads literal.
15236 (movsf, movdf): Don't force constants to memory in the presence
15237 of TARGET_AUTO_LITPOOLS.
15238 (movdf_internal): Add 'Y' constraint.
15239 * config/xtensa/xtensa.opt (mauto-litpools): New option.
15240 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
15242 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
15244 * config/arm/arm-fpus.def: Replace booleans with feature flags.
15246 * config/arm/arm.c (ARM_FPU): Update macro.
15247 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
15248 (TARGET_FP16): Likewise.
15249 (TARGET_CRYPTO): Likewise.
15250 (TARGET_NEON): Likewise.
15251 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
15254 2015-08-12 Tom de Vries <tom@codesourcery.com>
15258 * doc/install.texi: Remove --with_host_libstdcxx item. Update
15259 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
15260 accordingly. Mention default for --with-stage1-ldflags.
15262 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
15264 * config/arm/arm.h (arm_fpu_feature_set): New.
15265 (ARM_FPU_FSET_HAS): New.
15266 (FPU_FL_NONE): New.
15267 (FPU_FL_NEON): New.
15268 (FPU_FL_FP16): New.
15269 (FPU_FL_CRYPTO): New.
15271 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15273 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
15274 after -mcmodel=large -fPIC sorry.
15276 2015-08-12 Richard Biener <rguenther@suse.de>
15278 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
15279 comparison operand order and commutative ternary op operand order.
15280 (sccvn_dom_walker::cond_stack): New state to track temporary
15282 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
15284 (sccvn_dom_walker::record_cond): Add a single temporary conditional
15286 (sccvn_dom_walker::record_conds): Add a temporary conditional
15287 expressions and all related expressions also true/false.
15288 (sccvn_dom_walker::before_dom_children): Record temporary
15289 expressions based on the controlling condition of a single
15290 predecessor. When trying to simplify a conditional statement
15291 lookup expressions we might have inserted earlier.
15293 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
15296 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
15297 to ARM core registers.
15299 2015-08-12 Nathan Sidwell <nathan@acm.org>
15301 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
15302 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
15304 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
15306 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
15307 line with comments.
15308 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
15310 2015-08-12 Richard Biener <rguenther@suse.de>
15312 * gimple.h (remove_pointer): New trait.
15313 (GIMPLE_CHECK2): New inline template function.
15314 (gassign::code_): New constant static member.
15315 (is_a_helper<const gassign *>): Add.
15316 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
15317 and forward to a new gassign overload with less checking and a
15318 cheaper way to access the operand.
15319 (gimple_assign_lhs_ptr): Likewise.
15320 (gimple_assign_set_lhs): Likewise.
15321 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
15323 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
15325 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
15327 (gimple_assign_rhs_code): Likewise.
15328 * gimple.c (gassign::code_): Define.
15330 2015-08-12 Richard Biener <rguenther@suse.de>
15332 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15333 Eliminate edges marked as not executable by SCCVN.
15334 * tree-ssa-sccvn.c: Include gimple-iterator.h.
15335 (cond_dom_walker): Rename to sccvn_dom_walker.
15336 (sccvn_dom_walker::before_dom_children): Value-number defs
15338 (run_scc_vn): Remove loop value-numbering all SSA names.
15339 Drop not visited SSA names to varying.
15341 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
15343 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
15344 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
15345 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
15346 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
15347 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15348 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15349 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
15350 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
15351 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
15353 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
15356 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
15357 to enum feature_priority and feature_list.
15358 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
15359 and isa_names_table.
15361 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
15363 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
15364 vect_induction_def.
15366 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
15370 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
15371 account when deciding what was the command-line status.
15373 2015-08-11 Nathan Sidwell <nathan@acm.org>
15375 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
15377 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
15378 we're not the only contributor to target phi.
15380 2015-08-11 Jiong Wang <jiong.wang@arm.com>
15382 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
15385 2015-08-11 Tom de Vries <tom@codesourcery.com>
15387 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
15389 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
15391 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
15393 * config/i386/i386.md (cpu): Remove knl.
15395 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15398 PR middle-end/66332
15399 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
15400 open-coded sequence.
15401 * omp-low.c (oacc_process_reduction_data): Remove handline of
15402 GOMP_DEVICE_HOST_NONSHM.
15404 * lto-streamer-in.c (lto_input_mode_table): Adjust to
15405 GET_MODE_INNER changes.
15407 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15408 Ilya Verbin <ilya.verbin@intel.com>
15410 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
15412 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
15414 * doc/options.texi (EnabledBy): Document that the argument must be
15416 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
15417 Not enabled by -Wall.
15418 * optc-gen.awk: Give nicer error messages. Detect if the argument
15419 of EnabledBy is not a Common option.
15420 * common.opt (Wnull-dereference): Not enabled by -Wall.
15421 * opt-functions.awk (lang_enabled_by): Nicer error messages.
15423 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
15425 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
15426 model == 0x4f as Broadwell.
15428 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
15430 PR rtl-optimization/67028
15431 * combine.c (simplify_comparison): Fix comment. Rearrange code.
15432 Add test to see if a const_int fits in the new mode.
15434 2015-08-07 DJ Delorie <dj@redhat.com>
15436 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
15438 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
15440 PR rtl-optimization/67029
15441 * ira-color.c: Include "recog.h" before including "ira-int.h".
15442 * target-globals.c: Likewise.
15443 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
15444 adds an alternative_mask argument and use it instead of
15445 preferred_alternatives.
15446 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
15447 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
15448 * sched-deps.c: Include "ira-int.h" after including "ira.h".
15449 (sched_analyze_insn): Update call to
15450 ira_implicitly_set_insn_hard_regs.
15451 * sel-sched.c: Include "ira-int.h" after including "ira.h".
15452 (implicit_clobber_conflict_p): Update call to
15453 ira_implicitly_set_insn_hard_regs.
15455 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
15457 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
15459 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
15462 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
15463 currently_expanding_to_rtl is set.
15465 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
15467 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
15468 * configure: Regenerate.
15470 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15471 Jiong Wang <jiong.wang@arm.com>
15473 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
15474 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
15475 (REG_CLASS_NAMES): Likewise.
15476 (REG_CLASS_CONTENTS): Likewise.
15477 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
15478 (aarch64_register_move_cost): Likewise.
15479 (aarch64_load_symref_appropriately): Invoke the new added pattern if
15481 * config/aarch64/constraints.md (Uc0): New constraint.
15483 2015-08-06 Jiong Wang <jiong.wang@arm.com>
15485 * config/aarch64/constraints.md (Usf): Add the test of
15486 aarch64_is_noplt_call_p.
15488 2015-08-06 Jiong Wang <jiong.wang@arm.com>
15490 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
15492 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
15493 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
15494 (call_symbol): Likewise.
15496 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
15498 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
15499 for vectorizing multiplication patterns.
15500 * tree-vectorizer.h: Adjust the number of patterns.
15502 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
15504 * config/i386/sse.md (*vec_concatv2df): Declare added
15505 alternatives as sselog type.
15507 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15509 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
15512 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15514 * config/s390/s390.c (s390_expand_tbegin): Expand either
15515 tbegin_1_z13 or tbegin_1 depending on VX flag.
15516 * config/s390/s390.md ("tbegin_1_z13"): New expander.
15518 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15520 * config/s390/s390.opt: Clarify description for -mzvector
15521 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
15524 2015-08-06 Richard Biener <rguenther@suse.de>
15526 * gimple.h (gimple_call_set_fn): Access op member directly.
15527 (gimple_call_chain_ptr): Likewise.
15528 (gimple_call_set_chain): Likewise.
15529 (gimple_cond_lhs_ptr): Likewise.
15530 (gimple_cond_set_lhs): Likewise.
15531 (gimple_cond_rhs_ptr): Likewise.
15532 (gimple_cond_set_rhs): Likewise.
15533 (gimple_cond_true_label): Likewise.
15534 (gimple_cond_set_true_label): Likewise.
15535 (gimple_cond_set_false_label): Likewise.
15536 (gimple_cond_false_label): Likewise.
15537 (gimple_label_label): Likewise.
15538 (gimple_label_set_label): Likewise.
15539 (gimple_goto_set_dest): Likewise.
15540 (gimple_asm_input_op): Likewise.
15541 (gimple_asm_input_op_ptr): Likewise.
15542 (gimple_asm_set_input_op): Likewise.
15543 (gimple_asm_output_op): Likewise.
15544 (gimple_asm_output_op_ptr): Likewise.
15545 (gimple_asm_set_output_op): Likewise.
15546 (gimple_asm_clobber_op): Likewise.
15547 (gimple_asm_set_clobber_op): Likewise.
15548 (gimple_asm_label_op): Likewise.
15549 (gimple_asm_set_label_op): Likewise.
15550 (gimple_switch_index): Likewise.
15551 (gimple_switch_index_ptr): Likewise.
15552 (gimple_return_retval_ptr): Likewise.
15553 (gimple_return_retval): Likewise.
15554 (gimple_return_set_retval): Likewise.
15555 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
15556 (gimple_switch_label): Likewise.
15557 (gimple_switch_set_label): Likewise.
15559 2015-08-06 Richard Biener <rguenther@suse.de>
15561 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
15562 bool comparison canonicalization and restrict to integers.
15564 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
15566 * coretypes.h (enum symbol_visibility): Relocate here.
15567 * flag-types.h (enum symbol_visibility): Remove.
15568 * tree-core.h (enum symbol_visibility): Remove.
15570 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
15573 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
15574 for no_split_stack function attribute along with
15576 (rs6000_expand_split_stack_prologue): Likewise.
15578 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
15579 Jeff Law <law@redhat.com>
15582 * doc/invoke.texi (Wnull-dereference): New.
15583 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
15584 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
15585 Warn for potential NULL dereferences.
15586 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
15587 * ubsan.c (instrument_nonnull_arg): Call
15588 infer_nonnull_range_by_attribute.
15589 (instrument_nonnull_return): Likewise.
15590 * common.opt (Wnull-dereference); New.
15591 * gimple.c (infer_nonnull_range): Remove bool arguments.
15592 (infer_nonnull_range_by_dereference): New.
15593 (infer_nonnull_range_by_attribute): New.
15594 * gimple.h: Update declarations.
15596 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15598 * gensupport.c (sequence_num): Replace with...
15599 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
15600 ...these new variables.
15601 (init_rtx_reader_args_cb): Update accordingly.
15602 (get_num_code_insns): Likewise.
15603 (read_md_rtx): Rework to use a while loop and get_c_test.
15604 Use the new counters. Remove redundant DEFINE_SUBST case.
15605 * genoutput.c (gen_split): Delete.
15606 (main): Don't call it.
15608 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15610 * gensupport.h (get_c_test): Declare.
15611 * gensupport.c (get_c_test): New function.
15612 * genconditions.c (main): Use it.
15613 * genrecog.c (validate_pattern): Likewise.
15614 (match_pattern_1): Likewise. Remove c_test argument.
15615 (match_pattern): Update accordingly and remove c_test argument.
15616 (main): Update accordingly.
15618 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15620 * gensupport.h (get_num_insn_codes): Declare.
15621 * gensupport.c (get_num_insn_codes): New function.
15622 * genattrtab.c (optimize_attrs): Rename max_insn_code to
15624 (main): Likewise. Use get_num_insn_codes.
15625 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
15627 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15629 PR middle-end/66311
15630 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
15631 is zero- rather than sign-extended.
15633 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
15635 * target-insns.def (can_extend): Delete.
15637 2015-08-05 Richard Biener <rguenther@suse.de>
15639 PR tree-optimization/67121
15640 * tree-if-conv.c (combine_blocks): Clear range-info produced
15641 by stmts no longer executed conditionally.
15643 2015-08-05 Nick Clifton <nickc@redhat.com>
15645 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
15646 to allow identical far pointers to remain.
15648 2015-08-05 Richard Biener <rguenther@suse.de>
15650 PR middle-end/67120
15651 * match.pd: Compare address bases with == if they are decls
15652 or SSA names, not operand_equal_p. Otherwise fail.
15654 2015-08-05 Richard Biener <rguenther@suse.de>
15656 PR tree-optimization/67055
15657 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
15660 * g++.dg/torture/pr67055.C: New testcase.
15662 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
15664 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
15666 (define_attr "enabled"): Handle avx521vl and noavx512vl.
15667 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
15668 AVX-512 alternative out of SSE.
15669 (define_insn "*vec_concatv2df"): Ditto.
15671 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
15673 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
15674 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
15675 CODE_FOR_avx_ptestv4di.
15676 * config/i386/sse.md (define_mode_iterator V_AVX): New.
15677 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
15678 (define_insn "avx_ptest256"): Merge this ...
15679 (define_insn "sse4_1_ptest"): And this ...
15680 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
15682 2015-08-05 Richard Biener <rguenther@suse.de>
15684 PR tree-optimization/67109
15685 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
15686 against too big groups. Print whether this is a load or store
15687 group. Rename from ...
15688 (vect_analyze_group_access): ... this which is now a wrapper
15689 dissolving an invalid group.
15690 (vect_analyze_data_ref_accesses): Print whether this is a load
15693 2015-08-05 Richard Biener <rguenther@suse.de>
15695 PR middle-end/67107
15696 * match.pd: Guard const_binop result checking against NULL_TREE
15699 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
15701 * cse.c (cse_insn): Restoring old behaviour for src_eqv
15702 when dest and value in the REG_EQUAL are same and dest
15703 is STRICT_LOW_PART.
15705 2015-08-04 Anatoly Sokolov <aesok@post.ru>
15707 * config/moxie/moxie.h (PRINT_OPERAND,
15708 PRINT_OPERAND_ADDRESS): Remove macros.
15709 * config/moxie/moxie-protos.h (moxie_print_operand,
15710 moxie_print_operand_address): Remove declaration.
15711 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
15712 TARGET_PRINT_OPERAND_ADDRESS): Define.
15713 (moxie_print_operand, moxie_print_operand_address): Make static.
15715 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
15718 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
15719 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
15721 2015-08-04 Richard Biener <rguenther@suse.de>
15723 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
15725 (dt_operand::gen_gimple_expr): Adjust.
15727 2015-08-04 Richard Biener <rguenther@suse.de>
15729 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
15730 bool compares on RHS.
15731 * match.pd: Add X ==/!= !X is false/true pattern.
15733 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
15735 * config/aarch64/aarch64.c: Change inner loop statement cost
15736 to be consistent with other targets.
15738 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
15740 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
15743 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
15745 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
15746 (machine_function): Remove pseudos field.
15748 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15750 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
15751 Exit early and use target_option_current_node if processing current
15754 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15756 * doc/extend.texi (AArch64 Function Attributes): New node.
15757 (AArch64 Pragmas): Likewise.
15759 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15761 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
15762 Initialize simd builtins if TARGET_SIMD.
15763 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
15764 Make sure that the builtins are initialized only once no matter how
15765 many times the function is called.
15766 (aarch64_init_builtins): Unconditionally initialize crc builtins.
15767 (aarch64_relayout_simd_param): New function.
15768 (aarch64_simd_expand_args): Use above during argument expansion.
15769 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
15770 simd builtins if TARGET_SIMD.
15771 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
15773 (aarch64_relayout_simd_types): Likewise.
15775 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15777 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
15778 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
15779 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
15780 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
15782 (aarch64_reset_previous_fndecl): New function.
15783 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
15785 * config/aarch64/aarch64-c.c: New file.
15786 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
15787 Push and pop options at beginning and end. Remove ifdef
15788 __ARM_FEATURE_CRC32.
15789 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
15790 Add pragma +nothing+simd and +nothing+crypto where appropriate.
15791 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
15792 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
15794 (aarch64_register_pragmas): Likewise.
15795 (aarch64_reset_previous_fndecl): Likewise.
15796 (aarch64_process_target_attr): Likewise.
15797 (aarch64_override_options_internal): Likewise.
15799 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15801 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
15803 (aarch64_can_inline_p): Likewise.
15804 (TARGET_CAN_INLINE_P): Define.
15806 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15808 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
15809 Remove static. Handle OPT_mgeneral_regs_only,
15810 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
15811 OPT_momit_leaf_frame_pointer.
15812 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
15813 (aarch64_attr_opt_type): New enum.
15814 (aarch64_attribute_info): New struct.
15815 (aarch64_handle_attr_arch): New function.
15816 (aarch64_handle_attr_cpu): Likewise.
15817 (aarch64_handle_attr_tune): Likewise.
15818 (aarch64_handle_attr_isa_flags): Likewise.
15819 (aarch64_attributes): New table.
15820 (aarch64_process_one_target_attr): New function.
15821 (num_occurences_in_str): Likewise.
15822 (aarch64_process_target_attr): Likewise.
15823 (aarch64_option_valid_attribute_p): Likewise.
15824 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
15825 * config/aarch64/aarch64-protos.h: Include input.h
15826 (aarch64_handle_option): Declare prototype.
15828 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15830 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
15831 * config/aarch64/aarch64.c: Include target-globals.h
15832 (aarch64_previous_fndecl): New variable.
15833 (aarch64_set_current_function): New function.
15834 (TARGET_SET_CURRENT_FUNCTION): Define.
15836 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15838 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
15839 (explicit_arch): Likewise.
15840 (x_aarch64_isa_flags): Likewise.
15841 (mgeneral-regs-only): Mark as Save.
15842 (mfix-cortex-a53-835769): Likewise.
15843 (mcmodel=): Likewise.
15844 (mstrict-align): Likewise.
15845 (momit-leaf-frame-pointer): Likewise.
15846 (mtls-dialect): Likewise.
15847 (master=): Likewise.
15848 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
15849 (aarch64_isa_flags): Remove extern declaration.
15850 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
15851 to indicate success or failure.
15852 (aarch64_validate_march): Likewise.
15853 (aarch64_validate_mtune): Likewise.
15854 (aarch64_isa_flags): Delete.
15855 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
15856 instead of aarch64_isa_flags.
15857 (aarch64_get_tune_cpu): New function.
15858 (aarch64_get_arch): Likewise.
15859 (aarch64_override_options): Use above and set up explicit_tune_core
15861 (aarch64_print_extension): Move earlier in file. Add isa_flags
15862 argument and use that instead of the global aarch64_isa_flags.
15863 (aarch64_option_save): New function.
15864 (aarch64_option_restore): Likewise.
15865 (aarch64_option_print): Likewise.
15866 (aarch64_declare_function_name): Likewise.
15867 (aarch64_start_file): Delete.
15868 (TARGET_ASM_FILE_START): Do not define.
15869 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
15870 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
15873 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15875 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
15876 flag_omit_leaf_frame_pointer to 2.
15878 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15880 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
15882 (TARGET_FIX_ERR_A53_835769): New macro.
15883 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
15884 handling of opts->x_aarch64_fix_a53_err835769.
15885 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
15886 than aarch64_fix_a53_err835769.
15887 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
15888 * config/aarch64/aarch64-linux.h: Likewise.
15890 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
15892 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
15893 ix86_expand_int_movcc as boolean.
15895 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15897 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
15898 (aarch64_cpu_string): Likewise.
15899 (aarch64_tune_string): Likewise.
15900 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
15901 (aarch64_parse_extension): Return aarch64_parse_opt_result.
15902 Add extra argument to put result into.
15903 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
15904 (aarch64_parse_cpu): Add arguments to put results into. Return
15905 aarch64_parse_opt_result.
15906 (aarch64_parse_tune): Likewise.
15907 (aarch64_override_options_after_change_1): New function.
15908 (aarch64_override_options_internal): New function.
15909 (aarch64_validate_mcpu): Likewise.
15910 (aarch64_validate_march): Likewise.
15911 (aarch64_validate_mtune): Likewise.
15912 (aarch64_override_options): Update to reflect above changes.
15913 Move some logic into aarch64_override_options_internal.
15914 Initialize target_option_default_node and target_option_current_node.
15915 (aarch64_override_options_after_change): Move logic into
15916 aarch64_override_options_after_change_1 and call it with global_options.
15917 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
15918 flag values from that.
15920 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15922 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
15923 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
15924 * config/aarch64/aarch64.c (struct processor): Add arch field.
15925 (all_architectures): Handle above, move above all_cores.
15926 (all_cores): Handle above.
15927 (aarch64_parse_arch): Handle above changes.
15928 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
15929 above. Update comments.
15930 (armv8.1-a): Likewise.
15931 * config/aarch64/aarch64-cores.def: Update according to above.
15932 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
15933 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
15934 aarch64_arch_driver_info.
15936 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15938 * config/aarch64/aarch64.c (struct processor): Add ident field.
15939 Rename core sched_core.
15940 (all_cores): Handle above changes.
15941 (all_architectures): Likewise.
15942 (aarch64_parse_arch): Likewise.
15943 (aarch64_override_options): Likewise.
15945 2015-08-04 Richard Biener <rguenther@suse.de>
15947 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
15948 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
15949 comparisons embedded in [VEC_]COND_EXPRs.
15951 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
15953 * tree-if-conv.c: Fix various typos in comments.
15954 * tree-vect-stmts.c: Likewise.
15956 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
15958 PR tree-optimization/67043
15959 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
15960 preheader after hoisting invariant in it.
15961 (find_defs): Force recomputation of all luids.
15963 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
15965 * config/rs6000/htm.md (tabort.): Restrict the source operand to
15966 using a base register.
15968 2015-08-03 David Malcolm <dmalcolm@redhat.com>
15970 * main.c (main): Pass in NULL for toplev's external_timer.
15971 * timevar.c: Include coretypes.h.
15972 (class timer::named_items): New.
15973 (timer::named_items::named_items): New.
15974 (timer::named_items::~named_items): New.
15975 (timer::named_items::push): New.
15976 (timer::named_items::pop): New.
15977 (timer::named_items::print): New.
15978 (timer::timer): Initialize field "m_jit_client_items".
15979 (timer::~timer): New.
15980 (timer::push): Move bulk of implementation to...
15981 (timer::push_internal): ...here. New function.
15982 (timer::pop): Move bulk of implementation to...
15983 (timer::pop_internal): ...here. New function.
15984 (timer::push_client_item): New.
15985 (timer::pop_client_item): New.
15986 (timer::print_row): New function, taken from timer::print.
15987 (timer::print): Print "GCC items" header if we also have client
15988 items. Move row-printing to timer::print_row. Print any client
15990 (timer::get_topmost_item_name): New method.
15991 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
15992 (TV_JIT_CLIENT_CODE): New.
15993 * timevar.h (timer::push_client_item): New declaration.
15994 (timer::pop_client_item): New declaration.
15995 (timer::get_topmost_item_name): New method.
15996 (timer::push_internal): New declaration.
15997 (timer::pop_internal): New declaration.
15998 (timer::print_row): New declaration.
15999 (timer::named_items): New declaration.
16000 (timer::m_jit_client_items): New field.
16001 (timer): Add friend class named_items.
16002 (auto_timevar::auto_timevar): Add timer param.
16003 (auto_timevar::~auto_timevar): Use field "m_timer".
16004 (auto_timevar::m_timer): New field.
16005 * toplev.c (initialize_rtl): Add g_timer as param when
16006 constructing auto_timevar instance.
16007 (toplev::toplev): Add "external_timer" param, and use it to
16008 initialize the "g_timer" global if non-NULL.
16009 (toplev::~toplev): If this created "g_timer", delete it.
16010 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
16011 with "external_timer" timer *.
16013 2015-08-03 Alexander Basov <coohpt@gmail.com>
16015 PR middle-end/64744
16016 PR middle-end/48470
16017 PR middle-end/43404
16018 * cfgexpand.c (expand_one_var): Add check if stack is going to
16019 be used in naked function.
16020 * expr.c (expand_expr_addr_expr_1): Remove excess checking
16021 whether expression should not reside in MEM.
16022 * function.c (use_register_for_decl): Do not use registers for
16023 non-register things (volatile, float, BLKMode) in naked functions.
16025 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
16028 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
16029 Adjust splits to match new pattern.
16031 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
16033 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
16036 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
16037 point in VSX registers.
16039 * config/rs6000/constraints.md (wb constraint): Document unused
16041 (we constraint): Likewise.
16042 (wo constraint): Likewise.
16043 (wp constraint): New constraint for IEEE 128-bit floating point in
16045 (wq constraint): Likewise.
16047 * config/rs6000/predicates.md (easy_fp_constant): Add support for
16048 IEEE 128-bit floating point in VSX registers.
16049 (easy_scalar_constant): Likewise.
16051 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
16052 constraints (wp, wq) for IEEE 128-bit floating point in VSX
16054 (rs6000_init_hard_regno_mode_ok): Likewise.
16056 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
16057 floating point in VSX registers.
16060 (VSX_M2): Likewise.
16066 (vsx_le_permute_<mode>): Add support to properly swap bytes for
16067 IEEE 128-bit floating point in VSX registers on little endian.
16068 (vsx_le_undo_permute_<mode>): Likewise.
16069 (vsx_le_perm_load_<mode>): Likewise.
16070 (vsx_le_perm_store_<mode>): Likewise.
16071 (splitters for IEEE 128-bit fp moves): Likewise.
16073 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
16076 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
16077 floating point in VSX registers.
16080 * doc/md.text (Machine Constraints): Document wp and wq
16081 constraints on PowerPC.
16083 2015-08-03 Jeff Law <law@redhat.com>
16085 PR middle-end/66314
16086 PR gcov-profile/66899
16087 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
16088 iterate over the jump threading paths when an element in the
16089 jump threading paths array is eliminated.
16091 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
16093 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
16095 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
16097 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
16098 is_use_properly_guarded the variable def_preds. Free its
16099 contents before returning.
16100 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
16101 (is_use_properly_guarded): Replace local variable def_preds with
16102 a parameter. Adjust accordingly. Only update *def_preds if it's
16105 2015-08-03 Richard Biener <rguenther@suse.de>
16107 * genmatch.c (simplify::for_subst_vec): New member.
16108 (binary_ok): New helper for for lowering.
16109 (lower_for): Delay substituting operators into result expressions
16110 if we can merge the results eventually again.
16111 (capture_info::walk_result): Adjust for user_id appearing as
16112 result expression operator.
16113 (expr::gen_transform): Likewise.
16114 (dt_simplify::gen_1): Likewise.
16115 (dt_simplify::gen): Pass not substituted operators to tail
16116 functions or initialize local variable with it.
16117 (decision_tree::gen): Adjust function signature.
16118 * match.pd: Fix tests against global code and add default
16119 cases to switch stmts.
16121 2015-08-03 Richard Biener <rguenther@suse.de>
16123 * genmatch.c (dt_simplify::gen): Create captures array
16124 with an initializer.
16126 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16128 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
16129 the host compiler is affected by placement new aliasing bug.
16130 * configure: Regenerate.
16131 * Makefile.in (ALIASING_FLAGS): New variable.
16132 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
16134 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16137 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
16138 (negmulsf3_vfp): Likewise.
16139 (muldf3negdf_vfp): Disable for -frounding-math.
16140 (mulsf3negsf_vfp): Likewise.
16141 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
16142 fix MULT cost with -frounding-math.
16144 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16146 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
16147 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
16148 explicit. Prefer to add the flag whenever possible.
16149 (noce_process_if_block): Try noce_try_store_flag_constants before
16152 2015-08-03 Richard Biener <rguenther@suse.de>
16154 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
16155 New hash-map to record equivalent transforms.
16156 (dt_node::analyze): Populate the equivalent transforms hash-map.
16157 (dt_simplify::info): Add reference to hash-map entry.
16158 (dt_simplify::gen): If we have split out a function for the
16159 transform, generate a call to it.
16160 (sinfo_hashmap_traits::hash): New function.
16161 (compare_op): New helper function for ...
16162 (sinfo_hashmap_traits::equal_keys): ... this new function.
16163 (decision_tree::gen): Split out common equivalent transforms
16166 2015-08-03 Richard Biener <rguenther@suse.de>
16168 * gimple-fold.c (fold_gimple_assign): Remove folding of
16169 the comparison in COND_EXPRs.
16171 2015-08-03 Richard Biener <rguenther@suse.de>
16173 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
16174 on the rhs of assignments first simplify the embedded
16177 2015-08-03 Richard Biener <rguenther@suse.de>
16179 PR tree-optimization/66917
16180 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
16182 (DR_VECT_AUX): New macro.
16183 (set_dr_misalignment): Adjust.
16184 (dr_misalignment): Likewise.
16185 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16186 Compute whether the base is at least element aligned.
16187 * tree-vect-stmts.c (ensure_base_align): Adjust.
16188 (vectorizable_store): If the base is not element aligned
16189 preserve alignment of the original access if misalignment is unknown.
16190 (vectorizable_load): Likewise.
16192 2015-08-02 Martin Sebor <msebor@redhat.com>
16194 * c-family/c.opt (-Wframe-address): New warning option.
16195 * doc/invoke.texi (Wframe-address): Document it.
16196 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
16197 Clarify possible effects of calling the functions with non-zero
16198 arguments and mention -Wframe-address.
16199 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
16201 2015-08-01 Michael Collison <michael.collison@linaro.org
16202 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16204 * config/arm/arm.md (*arm_smin_cmp): New pattern.
16205 (*arm_umin_cmp): Likewise.
16207 2015-08-01 Caroline Tice <cmtice@google.com>
16210 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
16212 (vtbl_find_mangled_name): New function.
16213 (vtbl_register_mangled_name): New function.
16214 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
16215 mangled name in mangled name vectors.
16216 (find_or_create_vtbl_map_node): Ditto.
16217 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
16218 update recursion_depth on function entry; pass it to every recursive
16219 call; automatically exit if depth > 25 (give up looking at that point).
16220 (verify_bb_vtables): Initialize recursion_depth and pass it to
16221 var_is_used_for_virtual_call_p.
16222 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
16223 global variable decls.
16224 (vtbl_register_mangled_name): New extern function decl.
16226 2015-08-01 Tom de Vries <tom@codesourcery.com>
16228 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
16230 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
16232 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
16233 operation_no_trapping_overflow. Allow non-overflow operations.
16234 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
16237 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
16240 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
16242 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16244 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
16245 Enable for TARGET_32BIT.
16246 (*if_move_neg): Likewise.
16248 2015-07-31 Nick Clifton <nickc@redhat.com>
16250 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
16251 Returns true for __model__.
16252 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
16254 2015-07-31 Alan Modra <amodra@gmail.com>
16257 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
16258 (rs6000_emit_prologue): Set it.
16259 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
16261 2015-07-31 Richard Biener <rguenther@suse.de>
16263 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
16264 -> X == (C1 ^ C2) which is already implemented in match.pd.
16265 Remove redundant dispatching to fold_relational_const.
16266 Move unordered self and NaN compares ...
16267 * match.pd: ... as patterns here. Remove some stray captures
16270 2015-07-31 Petr Murzin <petr.murzin@intel.com>
16272 * config/i386/i386.c
16273 (bdesc_special_args): Convert mask type from signed to unsigned for
16275 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
16276 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
16277 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
16278 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
16279 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
16280 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
16281 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
16282 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
16283 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
16284 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
16285 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
16286 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
16287 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
16288 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
16289 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
16290 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
16291 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
16292 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
16293 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
16294 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
16295 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
16296 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
16297 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
16298 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
16299 * config/i386/i386-builtin-types.def
16300 (V16QI_FTYPE_V16SI): Remove.
16301 (V8DF_FTYPE_V8SI): Ditto.
16302 (V8HI_FTYPE_V8DI): Ditto.
16303 (V8SI_FTYPE_V8DI): Ditto.
16304 (V8SF_FTYPE_V8DF): Ditto.
16305 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
16306 (V16HI_FTYPE_V16SI): Ditto.
16307 (V16SF_FTYPE_V16HI): Ditto.
16308 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
16309 (V16SF_FTYPE_V16SI): Ditto.
16310 (V4DI_FTYPE_V4DI): Ditto.
16311 (V16SI_FTYPE_V16SF): Ditto.
16312 (V16SF_FTYPE_FLOAT): Ditto.
16313 (V8DF_FTYPE_DOUBLE): Ditto.
16314 (V8DI_FTYPE_INT64): Ditto.
16315 (V8DI_FTYPE_V4DI): Ditto.
16316 (V16QI_FTYPE_V8DI): Ditto.
16317 (UINT_FTYPE_V4SF): Ditto.
16318 (UINT64_FTYPE_V4SF): Ditto.
16319 (UINT_FTYPE_V2DF): Ditto.
16320 (UINT64_FTYPE_V2DF): Ditto.
16321 (V16SI_FTYPE_V16SI): Ditto.
16322 (V8DI_FTYPE_V8DI): Ditto.
16323 (V16SI_FTYPE_PV4SI): Ditto.
16324 (V16SF_FTYPE_PV4SF): Ditto.
16325 (V8DI_FTYPE_PV2DI): Ditto.
16326 (V8DF_FTYPE_PV2DF): Ditto.
16327 (V4DI_FTYPE_PV2DI): Ditto.
16328 (V4DF_FTYPE_PV2DF): Ditto.
16329 (V16SI_FTYPE_PV2SI): Ditto.
16330 (V16SF_FTYPE_PV2SF): Ditto.
16331 (V8DI_FTYPE_PV4DI): Ditto.
16332 (V8DF_FTYPE_PV4DF): Ditto.
16333 (V8SF_FTYPE_FLOAT): Ditto.
16334 (V4SF_FTYPE_FLOAT): Ditto.
16335 (V4DF_FTYPE_DOUBLE): Ditto.
16336 (V8SF_FTYPE_PV4SF): Ditto.
16337 (V8SI_FTYPE_PV4SI): Ditto.
16338 (V4SI_FTYPE_PV2SI): Ditto.
16339 (V8SF_FTYPE_PV2SF): Ditto.
16340 (V8SI_FTYPE_PV2SI): Ditto.
16341 (V16SF_FTYPE_PV8SF): Ditto.
16342 (V16SI_FTYPE_PV8SI): Ditto.
16343 (V8DI_FTYPE_V8SF): Ditto.
16344 (V4DI_FTYPE_V4SF): Ditto.
16345 (V2DI_FTYPE_V4SF): Ditto.
16346 (V64QI_FTYPE_QI): Ditto.
16347 (V32HI_FTYPE_HI): Ditto.
16348 (V8UHI_FTYPE_V8UHI): Ditto.
16349 (V16UHI_FTYPE_V16UHI): Ditto.
16350 (V32UHI_FTYPE_V32UHI): Ditto.
16351 (V2UDI_FTYPE_V2UDI): Ditto.
16352 (V4UDI_FTYPE_V4UDI): Ditto.
16353 (V8UDI_FTYPE_V8UDI): Ditto.
16354 (V4USI_FTYPE_V4USI): Ditto.
16355 (V8USI_FTYPE_V8USI): Ditto.
16356 (V16USI_FTYPE_V16USI): Ditto.
16357 (V2DF_FTYPE_V2DF_UINT64): Ditto.
16358 (V2DI_FTYPE_V2DF_V2DF): Ditto.
16359 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
16360 (V8DF_FTYPE_V8DF_V8DI): Ditto.
16361 (V4SF_FTYPE_V4SF_UINT64): Ditto.
16362 (V4SI_FTYPE_V4SF_V4SF): Ditto.
16363 (V16SF_FTYPE_V16SF_V16SI): Ditto.
16364 (V64QI_FTYPE_V32HI_V32HI): Ditto.
16365 (V32HI_FTYPE_V16SI_V16SI): Ditto.
16366 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
16367 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
16368 (V32HI_FTYPE_V64QI_V64QI): Ditto.
16369 (V32HI_FTYPE_V32HI_V32HI): Ditto.
16370 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
16371 (V16SI_FTYPE_V16SI_V4SI): Ditto.
16372 (V16SI_FTYPE_V16SI_V16SI): Ditto.
16373 (V16SI_FTYPE_V32HI_V32HI): Ditto.
16374 (V16SI_FTYPE_V16SI_SI): Ditto.
16375 (V8DI_FTYPE_V8DI_V8DI): Ditto.
16376 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
16377 (V8DI_FTYPE_V16SI_V16SI): Ditto.
16378 (V8DI_FTYPE_V8DI_V2DI): Ditto.
16379 (QI_FTYPE_QI): Ditto.
16380 (SI_FTYPE_SI): Ditto.
16381 (DI_FTYPE_DI): Ditto.
16382 (QI_FTYPE_QI_QI): Ditto.
16383 (QI_FTYPE_QI_INT): Ditto.
16384 (HI_FTYPE_HI_INT): Ditto.
16385 (SI_FTYPE_SI_INT): Ditto.
16386 (DI_FTYPE_DI_INT): Ditto.
16387 (HI_FTYPE_V16QI_V16QI): Ditto.
16388 (SI_FTYPE_V32QI_V32QI): Ditto.
16389 (DI_FTYPE_V64QI_V64QI): Ditto.
16390 (QI_FTYPE_V8HI_V8HI): Ditto.
16391 (HI_FTYPE_V16HI_V16HI): Ditto.
16392 (SI_FTYPE_V32HI_V32HI): Ditto.
16393 (QI_FTYPE_V4SI_V4SI): Ditto.
16394 (QI_FTYPE_V8SI_V8SI): Ditto.
16395 (QI_FTYPE_V2DI_V2DI): Ditto.
16396 (QI_FTYPE_V4DI_V4DI): Ditto.
16397 (QI_FTYPE_V8DI_V8DI): Ditto.
16398 (HI_FTYPE_V16SI_V16SI): Ditto.
16399 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
16400 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
16401 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
16402 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
16403 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
16404 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
16405 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
16406 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
16407 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
16408 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
16409 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
16410 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
16411 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
16412 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
16413 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
16414 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
16415 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
16416 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
16417 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
16418 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
16419 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
16420 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
16421 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
16422 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
16423 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
16424 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
16425 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
16426 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
16427 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
16428 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
16429 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
16430 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
16431 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
16432 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
16433 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
16434 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
16435 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
16436 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
16437 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
16438 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
16439 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
16440 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
16441 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
16442 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
16443 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
16444 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
16445 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
16446 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
16447 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
16448 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
16449 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
16450 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
16451 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
16452 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
16453 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
16454 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
16455 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
16456 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
16457 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
16458 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
16459 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
16460 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
16461 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
16462 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
16463 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
16464 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
16465 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
16466 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
16467 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
16468 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
16469 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
16470 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
16471 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
16472 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
16473 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
16474 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
16475 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
16476 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
16477 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
16478 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
16479 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
16480 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
16481 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
16482 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
16483 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
16484 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
16485 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
16486 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
16487 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
16488 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
16489 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
16490 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
16491 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
16492 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
16493 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
16494 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
16495 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
16496 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
16497 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
16498 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
16499 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
16500 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
16501 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
16502 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
16503 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
16504 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
16505 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
16506 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
16507 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
16508 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
16509 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
16510 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
16511 (HI_FTYPE_HI): Ditto.
16512 (HI_FTYPE_V16QI): Ditto.
16513 (SI_FTYPE_V32QI): Ditto.
16514 (DI_FTYPE_V64QI): Ditto.
16515 (QI_FTYPE_V8HI): Ditto.
16516 (HI_FTYPE_V16HI): Ditto.
16517 (SI_FTYPE_V32HI): Ditto.
16518 (QI_FTYPE_V4SI): Ditto.
16519 (QI_FTYPE_V8SI): Ditto.
16520 (HI_FTYPE_V16SI): Ditto.
16521 (QI_FTYPE_V2DI): Ditto.
16522 (QI_FTYPE_V4DI): Ditto.
16523 (QI_FTYPE_V8DI): Ditto.
16524 (V16QI_FTYPE_HI): Ditto.
16525 (V32QI_FTYPE_SI): Ditto.
16526 (V64QI_FTYPE_DI): Ditto.
16527 (V8HI_FTYPE_QI): Ditto.
16528 (V16HI_FTYPE_HI): Ditto.
16529 (V32HI_FTYPE_SI): Ditto.
16530 (V4SI_FTYPE_QI): Ditto.
16531 (V4SI_FTYPE_HI): Ditto.
16532 (V8SI_FTYPE_QI): Ditto.
16533 (V8SI_FTYPE_HI): Ditto.
16534 (V2DI_FTYPE_QI): Ditto.
16535 (V4DI_FTYPE_QI): Ditto.
16536 (HI_FTYPE_HI_HI): Ditto.
16537 (SI_FTYPE_SI_SI): Ditto.
16538 (DI_FTYPE_DI_DI): Ditto.
16539 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
16540 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
16541 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
16542 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
16543 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
16544 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
16545 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
16546 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
16547 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
16548 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
16549 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
16550 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
16551 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
16552 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
16553 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
16554 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
16555 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
16556 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
16557 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
16558 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
16559 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
16560 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
16561 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
16562 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
16563 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
16564 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
16565 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
16566 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
16567 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
16568 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
16569 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
16570 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
16571 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
16572 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
16573 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
16574 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
16575 (V16SI_FTYPE_HI): Ditto.
16576 (V8DI_FTYPE_QI): Ditto.
16577 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
16578 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
16579 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
16580 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
16581 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
16582 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
16583 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
16584 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
16585 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
16586 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
16587 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
16588 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
16589 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
16590 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
16591 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
16592 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
16593 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
16594 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
16595 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
16596 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
16597 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
16598 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
16599 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
16600 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
16601 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
16602 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
16603 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
16604 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
16605 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
16606 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
16607 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
16608 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
16609 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
16610 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
16611 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
16612 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
16613 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
16614 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
16615 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
16616 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
16617 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
16618 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
16619 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
16620 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
16621 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
16622 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
16623 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
16624 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
16625 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
16626 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
16627 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
16628 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
16629 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
16630 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
16631 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
16632 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
16633 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
16634 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
16635 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
16636 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
16637 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
16638 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
16639 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
16640 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
16641 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
16642 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
16643 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
16644 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
16645 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
16646 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
16647 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
16648 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
16649 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
16650 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
16651 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
16652 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
16653 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
16654 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
16655 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
16656 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
16657 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
16658 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
16659 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
16660 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
16661 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
16662 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
16663 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
16664 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
16665 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
16666 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
16667 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
16668 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
16669 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
16670 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
16671 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
16672 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
16673 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
16674 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
16675 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
16676 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
16677 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
16678 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
16679 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
16680 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
16681 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
16682 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
16683 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
16684 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
16685 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
16686 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
16687 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
16688 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
16689 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
16690 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
16691 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
16692 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
16693 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
16694 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
16695 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
16696 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
16697 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
16698 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
16699 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
16700 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
16701 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
16702 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
16703 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
16704 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
16705 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
16706 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
16707 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
16708 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
16709 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
16710 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
16711 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
16712 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
16713 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
16714 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
16715 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
16716 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
16717 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
16718 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
16719 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
16720 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
16721 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
16722 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
16723 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
16724 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
16725 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
16726 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
16727 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
16728 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
16729 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
16730 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
16731 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
16732 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
16733 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
16734 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
16735 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
16736 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
16737 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
16738 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
16739 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
16740 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
16741 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
16742 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
16743 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
16744 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
16745 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
16746 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
16747 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
16748 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
16749 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
16750 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
16751 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
16752 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
16753 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
16754 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
16755 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
16756 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
16757 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
16758 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
16759 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
16760 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
16761 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
16762 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
16763 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
16764 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
16765 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
16766 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
16767 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
16768 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
16769 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
16770 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
16771 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
16772 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
16773 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
16774 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
16775 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
16776 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
16777 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
16778 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
16779 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
16780 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
16781 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
16782 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
16783 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
16784 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
16785 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
16786 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
16787 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
16788 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
16789 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
16790 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
16791 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
16792 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
16793 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
16794 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
16795 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
16796 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
16797 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
16798 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
16799 (QI_FTYPE_V8DF_INT_QI): Ditto.
16800 (QI_FTYPE_V4DF_INT_QI): Ditto.
16801 (QI_FTYPE_V2DF_INT_QI): Ditto.
16802 (HI_FTYPE_V16SF_INT_HI): Ditto.
16803 (QI_FTYPE_V8SF_INT_QI): Ditto.
16804 (QI_FTYPE_V4SF_INT_QI): Ditto.
16805 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
16807 2015-07-31 Richard Biener <rguenther@suse.de>
16809 * gimple-fold.c (fold_gimple_assign): Remove folding of
16812 2015-07-31 Tom de Vries <tom@codesourcery.com>
16814 PR tree-optimization/66846
16815 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
16816 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
16817 (expand_omp_target) [ENABLE_CHECKING]: Same.
16818 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
16819 cfun if !LOOPS_NEED_FIXUP.
16820 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
16821 that omp_for already has its own loop struct.
16822 * tree-parloops.c (create_phi_for_local_result)
16823 (create_call_for_reduction): Handle simple latch bb.
16824 (create_parallel_loop): Add simple latch bb to preserve
16825 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
16826 (gen_parallel_loop): Remove call to cancel_loop_tree.
16827 (parallelize_loops): Skip loops that are inner loops of parallelized
16829 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
16830 verify_loop_structure.
16832 2015-07-30 Anatoly Sokolov <aesok@post.ru>
16834 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
16835 * config/v850/v850.md (RV_REGNUM): New constants.
16836 * config/v850/v850.c (v850_libcall_value): New functions.
16837 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
16838 (TARGET_LIBCALL_VALUE): Define.
16840 2015-07-30 Anatoly Sokolov <aesok@post.ru>
16842 * rtl.h (lowpart_subreg): Move in file.
16843 * loop-iv.c (lowpart_subreg): Move to...
16844 * simplify-rtx.c (lowpart_subreg): ...here.
16845 (simplify_binary_operation_1): Use lowpart_subreg instead of
16846 simplify_gen_subreg.
16847 * expr.c (expand_expr_real_2): Ditto.
16848 * emit-rtl.c (gen_lowpart_common): Ditto.
16849 * combine.c (gen_lowpart_for_combine): Ditto.
16850 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
16851 expand_debug_source_expr): Ditto.
16853 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
16855 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
16856 (expand_builtin_atomic_clear): Remove support for atomic_clear
16859 2015-07-30 Richard Biener <rguenther@suse.de>
16861 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
16862 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
16863 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
16864 redundant operand canonicalization.
16866 2015-07-30 David Sherwood <david.sherwood@arm.com>
16868 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
16869 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
16870 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
16871 * config/arm/arm.c (neon_valid_immediate): Likewise.
16872 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
16873 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
16874 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
16875 (expand_vec_perm_vpshufb2_vpermq): Likewise.
16876 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
16877 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
16878 * config/i386/sse.md
16879 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
16880 (*ssse3_palignr<mode>_perm): Likewise.
16881 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
16882 * config/spu/spu.c (arith_immediate_p): Likewise.
16883 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
16884 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
16886 2015-07-30 Richard Biener <rguenther@suse.de>
16888 * genmatch.c (decision_tree::gen_gimple): Merge with ...
16889 (decision_tree::gen_generic): ... this into ...
16890 (decision_tree::gen): ... this.
16891 (main): Adjust callers.
16893 2015-07-30 Richard Biener <rguenther@suse.de>
16895 * genmatch.c (verbose): New global.
16896 (warning_at): Add overload with source_location.
16897 (capture_info::capture_info): Add bool whether generating gimple
16898 or generic. Add gimple member.
16899 (capture_info::cinfo): Add capture member.
16900 (capture_info::walk_match): Record capture. Warn on
16901 non-captured leafs.
16902 (capture_info::walk_c_expr): Add more fragments captures cannot
16903 escape through. Warn on escaped captures.
16904 (dt_simplify::gen_1): Warn on operands we force to have no
16906 (main): Initialize verbose.
16907 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
16909 2015-07-30 Richard Biener <rguenther@suse.de>
16911 PR middle-end/67053
16912 * match.pd: Allow both operands to independently have conversion
16913 when simplifying compares of addresses.
16915 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
16919 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
16920 around those cases that need one.
16922 2015-07-29 Aditya Kumar <hiraditya@msn.com>
16924 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
16926 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
16928 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
16929 New. Copied from config/i386/gnu-user.h.
16930 (ASM_COMMENT_START): Likewise.
16931 (DBX_REGISTER_NUMBER): Likewise.
16933 2015-07-29 Richard Biener <rguenther@suse.de>
16935 * gimple-fold.c (fold_gimple_cond): Remove.
16936 (fold_stmt_1): Do not call it.
16938 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
16940 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
16941 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
16943 * config/aarch64/aarch64-modes.def: Add HFmode.
16945 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16946 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
16948 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
16949 aarch64_promoted_type): New.
16951 (aarch64_float_const_representable_p): Disable HFmode.
16952 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
16953 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
16954 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
16956 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
16957 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
16959 * config/aarch64/iterators.md (GPF_F16): New.
16961 2015-07-29 Richard Biener <rguenther@suse.de>
16963 * match.pd: Merge address comparison patterns and make them
16964 handle some more cases.
16966 2015-07-29 Richard Biener <rguenther@suse.de>
16968 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
16969 (parser::parse_capture): Add bool argument on whether to reject
16971 (parser::parse_expr): Adjust.
16972 (parser::parse_op): Likewise.
16973 (parser::parse_pattern): Likewise.
16975 2015-07-29 Richard Biener <rguenther@suse.de>
16977 * gimple-fold.c (has_use_on_stmt): New function.
16978 (replace_stmt_with_simplification): Use it to allow
16979 abnormals originally referenced in the stmt.
16980 (fold_stmt_1): Canonicalize operand order.
16982 2015-07-28 David Sherwood <david.sherwood@arm.com>
16984 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
16985 GET_MODE_INNER unconditionally.
16986 * config/spu/spu.c (arith_immediate_p): Likewise.
16987 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
16988 * expmed.c (synth_mult): Remove check for VOIDmode result from
16990 (expand_mult_const): Likewise.
16991 * fold-const.c (fold_binary_loc): Replace call to element_precision
16992 with call to GET_MODE_PRECISION.
16993 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
16995 (emit_mode_inner): Likewise.
16996 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
16998 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
16999 (GET_MODE_UNIT_PRECISION): Likewise.
17000 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
17001 * simplify-rtx.c (simplify_immed_subreg): Likewise.
17002 * stor-layout.c (bitwise_type_for_mode): Update assert.
17003 (element_precision): Remove.
17005 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17007 * target-insns.def (reload_load_address): New targetm instruction
17009 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
17011 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17013 * target-insns.def (atomic_test_and_set): New targetm instruction
17015 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
17016 HAVE_*/gen_* interface.
17018 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17020 * target-insns.def (can_extend, ptr_extend): New targetm instruction
17022 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
17023 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
17024 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
17025 * rtlanal.c (nonzero_bits1): Likewise.
17026 (num_sign_bit_copies1): Likewise.
17028 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17030 * target-insns.def (eh_return): New targetm instruction pattern.
17031 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
17033 * function.c (thread_prologue_and_epilogue_insns): Remove
17034 preprocessor condition.
17036 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17038 * target-insns.def (indirect_jump): New targetm instruction pattern.
17039 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
17042 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17044 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
17045 instead of nonimmediate_operand. Remove C condiition.
17047 2015-07-28 Richard Biener <rguenther@suse.de>
17049 * match.pd: Add more simplification of address comparisons.
17051 2015-07-28 Richard Biener <rguenther@suse.de>
17053 * match.pd: Re-order two cases in comparison with max/min
17054 value simplification to make it apply for bools.
17056 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17058 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
17059 Handle simple SIGN_EXTEND or ZERO_EXTEND.
17060 (aarch64_rtx_costs): Properly strip extend or extract before
17061 passing down to rtx costs again.
17063 2015-07-28 Nick Clifton <nickc@redhat.com>
17065 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
17066 Optimizes the case where -mes0 is active and a constant symbolic
17068 * config/rl78/rl78-protos.h: Prototype the new function.
17069 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
17071 2015-07-28 Tom de Vries <tom@codesourcery.com>
17073 * tree-parloops.c (reduc_stmt_res): New function.
17074 (initialize_reductions, add_field_for_reduction)
17075 (create_phi_for_local_result, create_loads_for_reductions)
17076 (create_stores_for_reduction, build_new_reduction): Handle case that
17077 reduc_stmt is a phi.
17078 (gather_scalar_reductions): Allow double_reduc reductions.
17080 2015-07-28 Richard Biener <rguenther@suse.de>
17082 * fold-const.c (fold_comparison): Remove equality folding
17083 of decl addresses ...
17084 * match.pd: ... here and merge with existing pattern.
17086 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
17088 PR tree-optimization/66828
17089 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
17090 from int64_t to uint64_t.
17092 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
17094 * opts-common.c (read_cmdline_option): List DriverOnly enum values
17095 as valid only in the error message of the driver, not in the
17096 messages of the language compilers.
17098 2015-07-27 Tom de Vries <tom@codesourcery.com>
17100 * tree-parloops.c (gather_scalar_reductions): Simplify function
17103 2015-07-27 Marek Polacek <polacek@redhat.com>
17105 * ipa-devirt.c (types_same_for_odr): Fix typo.
17107 2015-07-27 Jason Merrill <jason@redhat.com>
17110 * dwarf2out.c (gen_inlined_subroutine_die): Check
17111 cgraph_function_possibly_inlined_p.
17113 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
17115 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
17116 Place integer variant first.
17117 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17119 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
17122 * config/arm/arm-builtins.c (enum arm_builtins):
17123 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
17124 (ARM_BUILTIN_NEON_BASE): Rename macro to....
17125 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
17126 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
17127 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
17129 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
17132 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
17133 Add qualifier_lane_index.
17134 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
17135 (arm_getlane_qualifiers): Use qualifier_lane_index.
17136 (arm_lanemac_qualifiers): Rename to...
17137 (arm_mac_n_qualifiers): ...this.
17138 (LANEMAC_QUALIFIERS): Rename to...
17139 (MAC_N_QUALIFIERS): ...this.
17140 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
17141 (arm_setlane_qualifiers): Use qualifier_lane_index.
17142 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
17143 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
17144 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
17145 (arm_expand_neon_builtin): Handle qualifier_lane_index.
17147 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
17148 * config/arm/arm.c (bounds_check): Likewise, improve error message.
17149 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
17150 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
17151 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
17152 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
17153 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
17154 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
17155 qualifiers to TERNOP_IMM.
17156 (vdup_lane): Change qualifiers to GETLANE.
17157 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
17158 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
17159 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
17160 vqdmlsl_n): Change qualifiers to MAC_N.
17162 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
17163 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
17164 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
17165 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
17166 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
17167 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
17168 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
17169 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
17170 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
17171 Remove call to neon_lane_bounds.
17173 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
17175 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
17176 Place integer variant first.
17178 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
17180 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
17181 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
17182 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
17183 for armv6kz targets.
17184 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
17185 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
17186 (FL_FOR_ARCH6ZK): Remove.
17187 (FL_FOR_ARCH6KZ): New.
17188 (arm_arch6zk): New declaration.
17189 * config/arm/arm-tables.opt: Regenerate.
17190 * config/arm/arm.c (arm_arch6kz): New.
17191 (arm_option_override): Set arm_arch6kz.
17192 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
17193 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
17194 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
17196 2015-07-27 Marek Polacek <polacek@redhat.com>
17200 * doc/invoke.texi: Document -Wtautological-compare.
17202 2015-07-27 Richard Biener <rguenther@suse.de>
17204 * genmatch.c (decision_tree::gen_gimple): Split out large
17205 subtrees into separate functions.
17206 (decision_tree::gen_generic): Likewise.
17208 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
17210 * config/alpha/alpha.c: Use SUBREG_P predicate.
17211 * config/alpha/predicates.md: Ditto.
17213 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
17215 * config.host (s390*-*-*): Include driver-native.c only when
17216 building with s390* as host *and* target.
17218 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
17221 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
17222 T bit register modified_between_p check.
17224 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
17226 * config/i386/i386.c: Use SUBREG_P predicate.
17227 * config/i386/i386.md: Ditto.
17228 * config/i386/sse.md: Ditto.
17229 * config/i386/predicates.md: Ditto.
17231 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
17234 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
17235 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
17237 2015-07-25 Sebastian Pop <s.pop@samsung.com>
17239 * Makefile.in: Remove use of TREEBROWSER.
17240 * config.in: Regenerated.
17241 * configure: Regenerated.
17242 * configure.ac: Remove definition of TREEBROWSER.
17243 * tree-browser.c: Removed.
17244 * tree-browser.def: Removed.
17246 2015-07-25 Sebastian Pop <s.pop@samsung.com>
17248 * graphite-scop-detection.c: Include gimple-pretty-print.h.
17249 (stmt_simple_for_scop_p): Print when a stmt is not handled in
17251 (scopdet_basic_block_info): Print when a loop or bb cannot be
17252 represented in Graphite.
17254 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
17257 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
17258 execution guard when min_size is less than size_needed.
17260 2015-07-25 Sebastian Pop <s.pop@samsung.com>
17262 * doc/install.texi: Document supported versions of ISL.
17264 2015-07-25 Jeff Law <law@redhat.com>
17268 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17269 unable to find X NE 0 in the tables, return X as the simplified
17271 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17272 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
17273 to VISISTED_BBS. */
17274 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17275 after removing the control flow statement and unnecessary edges.
17277 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
17280 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
17282 PR rtl-optimization/64164
17283 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17284 * tree-ssa-copyrename.c: Removed.
17285 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17286 -ftree-coalesce-vars.
17287 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17288 * common.opt (ftree-copyrename): Ignore.
17289 (ftree-coalesce-inlined-vars): Likewise.
17290 * doc/invoke.texi: Remove the ignored options above.
17291 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17292 * tree-ssa-coalesce.h: ... here.
17293 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17294 headers required by it.
17295 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17296 across variables when flag_tree_coalesce_vars. Check register
17297 use and promoted modes to allow coalescing. Moved to
17298 tree-ssa-coalesce.c.
17299 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17300 with its member functions to tree-ssa-coalesce.c.
17301 (var_map_base_init): Likewise. Renamed to
17302 compute_samebase_partition_bases.
17303 (partition_view_normal): Drop want_bases parameter.
17304 (partition_view_bitmap): Likewise.
17305 * tree-ssa-live.h: Adjust declarations.
17306 * tree-ssa-coalesce.c: Include explow.h.
17307 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17308 default defs at the entry point.
17309 (dump_part_var_map): New.
17310 (compute_optimized_partition_bases): New, called by...
17311 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17312 of compute_samebase_partition_bases. Adjust.
17313 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17314 * cfgexpand.c (leader_merge): New.
17315 (get_rtl_for_parm_ssa_default_def): New.
17316 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17317 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17318 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17319 redundant MEM attr setting.
17320 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17322 (expand_one_stack_var): ... this. New wrapper to check and
17323 skip already expanded SSA partitions.
17324 (record_alignment_for_reg_var): New, factored out of...
17325 (expand_one_var): ... this.
17326 (expand_one_ssa_partition): New.
17327 (adjust_one_expanded_partition_var): New.
17328 (expand_one_register_var): Check and skip already expanded SSA
17330 (expand_used_vars): Don't create DECLs for anonymous SSA
17331 names. Expand all SSA partitions, then adjust all SSA names.
17332 (pass::execute): Replace the loops that set
17333 SA.partition_to_pseudo from partition leaders and cleared
17334 DECL_RTL for multi-location variables, and that which used to
17335 rename vars and set attrs, with one that clears DECL_RTL and
17336 checks that PARMs and RESULTs default_defs match DECL_RTL.
17337 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17338 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17339 * explow.c (promote_ssa_mode): New.
17340 * explow.h (promote_ssa_mode): Declare.
17341 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17342 * function.c: Include cfgexpand.h.
17343 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17344 (use_register_for_parm_decl): Wrapper for the above to
17345 special-case the result_ptr.
17346 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17347 (split_complex_args): Take assign_parm_data_all argument.
17348 Pass it to rtl_for_parm. Set up rtl and context for split
17350 (assign_parms_augmented_arg_list): Adjust.
17351 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17352 multiple locations. Recognize split complex args.
17353 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17354 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17355 (assign_parm_setup_block): Prefer SSA-assigned location.
17356 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
17357 if stack_parm is NULL.
17358 (assign_parm_setup_stack): Prefer SSA-assigned location.
17359 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
17360 rtl before testing for pointer bounds. Special-case result_ptr.
17361 (expand_function_start): Maybe reset DECL_RTL of result.
17362 Prefer SSA-assigned location for result and static chain.
17363 Factor out DECL_RESULT and SET_DECL_RTL.
17364 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17365 anonymous SSA names. Use promote_ssa_mode.
17366 (get_temp_reg): Likewise.
17367 (remove_ssa_form): Adjust.
17368 * stor-layout.c (layout_decl): Don't set mem attributes of
17370 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17371 and get its reg_usage for reg invalidation.
17372 (compute_bb_dataflow): Pass it insn.
17373 (emit_notes_in_bb): Likewise.
17375 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
17377 * config/i386/i386.c (ix86_va_start): Remove
17378 unneeded !TARGET_64BIT check.
17379 (ix86_gimplify_va_arg): Ditto.
17381 2015-07-24 Tom de Vries <tom@codesourcery.com>
17383 * graphite-sese-to-poly.c (build_poly_scop): Always call
17384 rewrite_commutative_reductions_out_of_ssa.
17386 2015-07-24 Tom de Vries <tom@codesourcery.com>
17388 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
17389 flag_associative_math to FLOAT_TYPE_P. Honour
17390 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
17392 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
17395 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
17396 and "%qD" in warning_at instead of "%q+D" in warning.
17398 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
17400 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
17401 (ix86_function_abi): Cleanup.
17403 2015-07-24 Michael Darling <darlingm@gmail.com>
17406 * acinclude.m4: Reflects renaming of configure.in to configure.ac
17407 * configure: Likewise
17408 * configure.ac: Likewise
17409 * doc/install.texi: Likewise
17410 * doc/tm.texi: Likewise
17411 * doc/tm.texi.in: Likewise
17413 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17415 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
17416 manually swapping values.
17417 * cse.c (fold_rtx): Likewise.
17418 * lra-eliminations.c (form_sum): Likewise.
17420 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
17423 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
17424 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
17425 (*jcc_1, *jcc_2, jump, simple_return_internal)
17426 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
17427 Set length_nobnd attribute instead of length attribute.
17428 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
17429 (length_nobnd): Remove attribute.
17430 (length): Remove length_nobnd processing.
17432 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
17434 * gimplify.c (omp_default_clause): New function. Reorganize flow
17435 for clarity. Broken out of ...
17436 (omp_notice_variable): ... here.
17438 2015-07-24 Gary Funck <gary@intrepid.com>
17440 PR middle-end/66984
17441 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
17442 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
17444 2015-07-24 Tom de Vries <tom@codesourcery.com>
17446 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
17447 exit-first loop transform.
17449 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
17452 * tree-cfg.c (struct replace_decls_d): New struct.
17453 (replace_block_vars_by_duplicates_1): New function.
17454 (replace_block_vars_by_duplicates): Use it to replace the decls
17455 in the value exprs by duplicates.
17457 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17459 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
17460 -shared, -symbolic, -rdynamic.
17462 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17465 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
17466 -dynamic-linker within %{!static %{!shared, and -rdynamic within
17469 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
17472 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
17473 edge summary is available.
17475 2015-07-24 Richard Biener <rguenther@suse.de>
17477 * genmatch.c (struct dt_node): Add statistic fields.
17478 (dt_node::analyze): New method.
17479 (decision_tree::gen_gimple): Call analyze on the root node
17480 and print statistics to stderr.
17481 (decision_tree::gen_generic): Likewise.
17483 2015-07-24 Richard Biener <rguenther@suse.de>
17485 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
17486 against the highest or lowest possible integer ...
17487 * match.pd: ... as patterns here.
17489 2015-07-24 Richard Biener <rguenther@suse.de>
17491 * genmatch.c (struct capture_info): Add same_as field.
17492 (capture_info::capture_info): Initialize same_as.
17493 (capture_info::walk_match): Compute same_as.
17494 (capture_info::walk_result): Compute stuff for the leader.
17495 (capture_info::walk_c_expr): Likewise.
17496 (dt_simplify::gen_1): Only look at leaders when deciding
17497 to force no side-effects or emit side-effects of omitted operands.
17499 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17501 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
17502 reg note to the GPR -> FPR save instructions.
17504 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17506 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
17508 (s390_expand_insv): Don't generate risbg pattern for constant zero
17510 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
17511 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
17514 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
17516 * config/s390/s390.c (s390_reorg): Clean up handling of processors
17519 (s390_issue_rate): Likewise.
17520 (s390_sched_reorder): Likewise.
17521 (s390_sched_variable_issue): Likewise.
17522 (s390_loop_unroll_adjust): Likewise.
17523 (s390_option_override): Likewise.
17525 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
17527 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
17528 processor capabilities with -march=native.
17529 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
17530 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
17531 (S390_TARGET_BITS_STRING): Macro to simplify specs.
17533 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
17535 * config/s390/s390.c (s390_issue_rate): Handle
17536 PROCESSOR_2094_Z9_EC.
17537 (s390_option_override): Likewise.
17538 (s390_adjust_priority): Likewise.
17540 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
17542 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
17543 when cross compiling.
17545 2015-07-24 Richard Biener <rguenther@suse.de>
17547 * fold-const.c (maybe_canonicalize_comparison_1): Move
17548 A code CST canonicalization ...
17549 * match.pd: ... to a pattern here.
17551 2015-07-24 Jiong Wang <jiong.wang@arm.com>
17554 2015-07-22 Jiong Wang <jiong.wang@arm.com>
17556 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
17557 (HONOR_REG_ALLOC_ORDER): Define.
17559 2015-07-24 Richard Biener <rguenther@suse.de>
17561 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
17562 * fold-const.c (fold_comparison): Move parameter does not
17563 alias &local simplification ...
17564 * match.pd: ... as a pattern here.
17566 2015-07-24 Richard Biener <rguenther@suse.de>
17568 * gimple-fold.c (replace_stmt_with_simplification): Special-case
17569 valueizing call operands.
17570 * gimple-match-head.c (maybe_push_res_to_seq): Take
17571 number of call arguments from ops array.
17572 (do_valueize): New function.
17573 (gimple_simplify): Return true if valueization changed
17574 any operand even if the result didn't simplify further.
17576 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17578 PR middle-end/25530
17579 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
17581 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17583 PR middle-end/25529
17584 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
17586 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
17588 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
17591 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
17593 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
17596 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
17598 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
17599 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
17601 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
17602 ms_va_list_type_node initialization.
17604 2015-07-23 Jeff Law <law@redhat.com>
17607 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17608 unable to find X NE 0 in the tables, return X as the simplified
17610 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17611 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
17612 to VISISTED_BBS. */
17613 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17614 after removing the control flow statement and unnecessary edges.
17616 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
17618 * tree-pass.h (get_current_pass_name): Removed.
17620 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
17622 PR rtl-optimization/64164
17623 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17624 * tree-ssa-copyrename.c: Removed.
17625 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17626 -ftree-coalesce-vars.
17627 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17628 * common.opt (ftree-copyrename): Ignore.
17629 (ftree-coalesce-inlined-vars): Likewise.
17630 * doc/invoke.texi: Remove the ignored options above.
17631 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17632 * tree-ssa-coalesce.h: ... here.
17633 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17634 headers required by it.
17635 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17636 across variables when flag_tree_coalesce_vars. Check register
17637 use and promoted modes to allow coalescing. Moved to
17638 tree-ssa-coalesce.c.
17639 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17640 with its member functions to tree-ssa-coalesce.c.
17641 (var_map_base_init): Likewise. Renamed to
17642 compute_samebase_partition_bases.
17643 (partition_view_normal): Drop want_bases parameter.
17644 (partition_view_bitmap): Likewise.
17645 * tree-ssa-live.h: Adjust declarations.
17646 * tree-ssa-coalesce.c: Include explow.h.
17647 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17648 default defs at the entry point.
17649 (dump_part_var_map): New.
17650 (compute_optimized_partition_bases): New, called by...
17651 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17652 of compute_samebase_partition_bases. Adjust.
17653 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17654 * cfgexpand.c (leader_merge): New.
17655 (get_rtl_for_parm_ssa_default_def): New.
17656 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17657 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17658 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17659 redundant MEM attr setting.
17660 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17662 (expand_one_stack_var): ... this. New wrapper to check and
17663 skip already expanded SSA partitions.
17664 (record_alignment_for_reg_var): New, factored out of...
17665 (expand_one_var): ... this.
17666 (expand_one_ssa_partition): New.
17667 (adjust_one_expanded_partition_var): New.
17668 (expand_one_register_var): Check and skip already expanded SSA
17670 (expand_used_vars): Don't create DECLs for anonymous SSA
17671 names. Expand all SSA partitions, then adjust all SSA names.
17672 (pass::execute): Replace the loops that set
17673 SA.partition_to_pseudo from partition leaders and cleared
17674 DECL_RTL for multi-location variables, and that which used to
17675 rename vars and set attrs, with one that clears DECL_RTL and
17676 checks that PARMs and RESULTs default_defs match DECL_RTL.
17677 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17678 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17679 * explow.c (promote_ssa_mode): New.
17680 * explow.h (promote_ssa_mode): Declare.
17681 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17682 * function.c: Include cfgexpand.h.
17683 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17684 (use_register_for_parm_decl): Wrapper for the above to
17685 special-case the result_ptr.
17686 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17687 (split_complex_args): Take assign_parm_data_all argument.
17688 Pass it to rtl_for_parm. Set up rtl and context for split
17690 (assign_parms_augmented_arg_list): Adjust.
17691 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17692 multiple locations. Recognize split complex args.
17693 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17694 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17695 (assign_parm_setup_block): Prefer SSA-assigned location.
17696 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
17697 if stack_parm is NULL.
17698 (assign_parm_setup_stack): Prefer SSA-assigned location.
17699 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
17700 rtl before testing for pointer bounds. Special-case result_ptr.
17701 (expand_function_start): Maybe reset DECL_RTL of result.
17702 Prefer SSA-assigned location for result and static chain.
17703 Factor out DECL_RESULT and SET_DECL_RTL.
17704 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17705 anonymous SSA names. Use promote_ssa_mode.
17706 (get_temp_reg): Likewise.
17707 (remove_ssa_form): Adjust.
17708 * stor-layout.c (layout_decl): Don't set mem attributes of
17710 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17711 and get its reg_usage for reg invalidation.
17712 (compute_bb_dataflow): Pass it insn.
17713 (emit_notes_in_bb): Likewise.
17715 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
17718 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
17720 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
17721 (rs6000_emit_2insn_and): Handle dot forms.
17722 * config/rs6000/rs6000.md (and<mode>3): Adjust.
17723 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
17724 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
17726 2015-07-23 Richard Biener <rguenther@suse.de>
17728 * generic-match-head.c: Include cgraph.h.
17729 * gimple-match-head.c: Likewise.
17730 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
17732 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
17733 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
17736 2015-07-23 Richard Biener <rguenther@suse.de>
17738 * gimple-fold.c (fold_gimple_cond): Do not require folding
17739 results to pass valid_gimple_rhs_p.
17740 * tree-cfg.h (fold_cond_expr_cond): Remove.
17741 * tree-cfg.c (fold_cond_expr_cond): Likewise.
17742 (make_edges): Do not call it.
17743 * tree-inline.c (tree_function_versioning): Likewise.
17745 2015-07-23 Tom de Vries <tom@codesourcery.com>
17747 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
17748 vect_force_simple_reduction.
17749 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
17750 (vect_is_simple_reduction_1): Add and handle
17751 need_wrapping_integral_overflow parameter.
17752 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
17753 need_wrapping_integral_overflow parameter.
17754 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
17755 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
17758 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
17760 PR tree-optimization/66926,66951
17761 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
17762 INNER_LOOP and fix up condition for renaming virtual operands.
17764 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17766 * combine.c (try_combine): Use std::swap instead of manually
17769 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
17771 * config/mips/i6400.md: New file.
17772 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
17773 (mips64r6): Likewise.
17775 * config/mips/mips-tables.opt: Regenerate.
17776 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
17777 (mips_issue_rate): Add support for i6400.
17778 (mips_multipass_dfa_lookahead): Likewise.
17779 * config/mips/mips.h (TUNE_I6400): Define.
17780 * config/mips/mips.md: Include i6400.md.
17781 (processor): Add i6400.
17782 * doc/invoke.texi (-march=@var{arch}): Add i6400.
17784 2015-07-23 Richard Biener <rguenther@suse.de>
17786 PR middle-end/66916
17787 * match.pd: Guard widen and sign-change comparison simplification
17790 2015-07-23 Richard Biener <rguenther@suse.de>
17792 PR tree-optimization/66945
17793 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
17794 ::before_dom_children): Force the propagators idea of
17795 non-executable edges to materialize, not what the folder
17798 2015-07-23 Richard Biener <rguenther@suse.de>
17800 * gimple.h (gimple_cond_make_false): Use 0 != 0.
17801 (gimple_cond_make_true): Use 1 != 0.
17803 2015-07-22 DJ Delorie <dj@redhat.com>
17805 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
17808 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
17809 (ashrhi3): Likewise.
17810 (lshrhi3): Likewise.
17811 (movhi): Take advantage of zero-extend to load small constants.
17812 (movpsi): Likewise.
17813 (and<mode>3): Likewise.
17814 (zero_extendqihi2): Likewise.
17815 (zero_extendqisi2): New.
17816 * config/msp430/constraints.md (N,O): New.
17817 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
17819 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
17822 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
17823 to enum feature_priority and feature_list.
17824 (fold_builtin_cpu): Add F_AES to enum processor_features
17825 and isa_names_table.
17827 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
17830 * config/i386/linux-common.h (MPX_SPEC): Use linker option
17831 for 64bit target only.
17833 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
17835 * config/nvptx/nvptx.c: Expand some comments.
17837 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
17839 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
17840 (cortex_a53_advsimd): ...This.
17842 2015-07-22 Richard Biener <rguenther@suse.de>
17844 * genmatch.c (expr::gen_transform): Clarify error message
17845 and display location.
17847 2015-07-22 Richard Biener <rguenther@suse.de>
17849 * genmatch.c (struct operand): Add location member.
17850 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
17852 (struct simplify): Remove match_location and result_location
17854 (elsehwere): Adjust.
17856 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
17858 * config/mips/m5100.md: New file.
17859 * config/mips/mips-cpus.def (m5100, m5101): Define.
17860 * config/mips/mips-tables.opt: Regenerate.
17861 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
17862 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
17863 -march=m5101 to -mips32r5.
17864 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
17865 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
17867 * config/mips/mips.md: Include m5100.md.
17868 (processor): Add m5100.
17869 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
17871 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
17873 * config/mips/mips-cpus.def (interaptiv): Define.
17874 * config/mips/mips-tables.opt: Regenerate.
17875 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
17877 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
17878 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
17880 2015-07-22 Jiong Wang <jiong.wang@arm.com>
17883 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
17884 (HONOR_REG_ALLOC_ORDER): Define.
17886 2015-07-22 Richard Biener <rguenther@suse.de>
17888 PR tree-optimization/66952
17889 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
17890 blocks we end up executing unconditionally reset all SSA
17891 info such as range and alignment.
17892 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
17893 * tree-ssanames.c (reset_flow_sensitive_info): New function.
17895 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
17897 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
17900 2015-07-22 Richard Biener <rguenther@suse.de>
17902 * genmatch.c (parser::parse_result): Properly handle
17903 match with result operands and conditions.
17905 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
17908 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
17909 Add qualifier_struct_load_store_lane_index.
17910 (aarch64_types_loadstruct_lane_qualifiers): Use
17911 qualifier_struct_load_store_lane_index for lane index argument for
17913 (aarch64_types_storestruct_lane_qualifiers): Ditto.
17914 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
17915 (aarch64_simd_expand_args): Add new argument describing mode of
17916 builtin. Check lane bounds for arguments with
17917 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
17918 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
17919 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
17920 (aarch64_simd_expand_builtin): Handle arguments with
17921 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
17922 aarch64_simd_expand_args.
17923 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
17924 vst[234]_lane with BUILTIN_VALLDIF.
17925 * config/aarch64/aarch64-simd.md:
17926 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
17927 endianness reversal on lane index.
17928 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
17929 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
17930 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
17931 (vec_store_lanesci_lane<mode>): Ditto.
17932 (vec_store_lanesxi_lane<mode>): Ditto.
17933 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
17934 reversal of lane index.
17935 (aarch64_ld3_lane<mode>): Ditto.
17936 (aarch64_ld4_lane<mode>): Ditto.
17937 (aarch64_st2_lane<mode>): Ditto.
17938 (aarch64_st3_lane<mode>): Ditto.
17939 (aarch64_st4_lane<mode>): Ditto.
17940 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
17941 to qmode. Add new mode parameter. Update uses.
17942 (__LD3_LANE_FUNC): Ditto.
17943 (__LD4_LANE_FUNC): Ditto.
17944 (__ST2_LANE_FUNC): Ditto.
17945 (__ST3_LANE_FUNC): Ditto.
17946 (__ST4_LANE_FUNC): Ditto.
17948 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
17950 * doc/invoke.texi (Language Independent Options): Rename node to
17951 Diagnostic Message Formatting Options.
17953 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
17956 * lra-remat.c (operand_to_remat): Prevent using insns with input
17957 subregs processed separately by IRA.
17959 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
17961 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
17963 (single_imm_use): Check for iterator node.
17964 (num_imm_uses): Likewise.
17965 * tree-ssa-operands.c (has_zero_uses_1): Delete.
17966 (single_imm_use_1): Check for iterator node.
17968 2015-07-21 Mike Frysinger <vapier@gentoo.org>
17969 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17971 * configure.ac: Add check for new options in isl-0.15.
17972 * config.in, configure: Rebuilt.
17973 * graphite-blocking.c: Include <isl/constraint.h>
17974 * graphite-interchange.c, graphite-poly.c: Likewise.
17975 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
17976 * graphite.c: Likewise.
17977 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
17979 * graphite-dependences.c: Include <isl/constraint.h>.
17980 (max_number_of_out_dimensions): Returns isl_stat.
17981 (extend_schedule_1): Likewise
17982 (extend_schedule): Corresponding changes.
17983 * graphite-optimize-isl.c: Include <isl/constraint.h> and
17985 (getSingleMap): Change return type of isl_stat.
17986 (optimize_isl): Conditionally use
17987 isl_options_set_schedule_serialize_sccs.
17988 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
17989 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
17991 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
17994 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
17995 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
17997 2015-07-21 Richard Biener <rguenther@suse.de>
17999 PR tree-optimization/66948
18000 * genmatch.c (capture_info::walk_match): Also recurse to
18001 captures. Properly compute expr state from captures of
18003 * match.pd: Add single-use guards to
18004 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
18006 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
18008 * config/nvptx/mkoffload.c (process): Add static destructor call.
18010 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18012 PR middle-end/66915
18013 * match.pd (A - B -> A + (-B)): Don't allow folding
18014 when type if a fixed-point type.
18016 2015-07-20 DJ Delorie <dj@redhat.com>
18018 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
18019 (iorqi3_real): Likewise for set1.
18021 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
18023 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
18026 2015-07-20 Aditya Kumar <hiraditya@msn.com>
18028 * graphite-isl-ast-to-gimple.c:
18029 Refactor so that each function can access 'region'. This will help
18030 maintain a parameter rename_map within a region.
18032 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18034 * config/rs6000/rs6000.md (*lt0_disi): New.
18036 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18039 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
18040 "available letters" comment.
18041 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
18042 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
18043 and_2rld_operand): Delete.
18044 (and_operand): Adjust.
18045 (rotate_mask_operator): New.
18046 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
18047 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
18048 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
18049 extract_ME): Delete.
18050 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18051 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
18052 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
18053 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18054 rs6000_emit_2insn_and): New.
18055 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
18056 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
18057 includes_rldic_lshift_p, includes_rldicr_lshift_p,
18058 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
18059 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18060 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
18061 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
18062 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18063 rs6000_emit_2insn_and): New.
18064 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
18065 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
18067 <NOT>: Don't fall through to next case.
18068 <AND>: Handle the various rotate-and-mask cases directly.
18069 <IOR>: Always cost as one insn.
18070 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
18071 (and<mode>3): Adjust expander for the new patterns.
18072 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
18073 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
18074 (*and<mode>3_imm_dot_shifted): New.
18075 (*and<mode>3_mask): Delete, rewrite as ...
18076 (and<mode>3_mask): ... New.
18077 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
18078 (andsi3_internal0_nomc): Delete.
18079 (*andsi3_internal6): Delete.
18080 (*and<mode>3_2insn): New.
18081 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18082 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18083 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
18084 *insvdi_internal3): Delete.
18085 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
18086 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
18087 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
18088 *ior<mode>_mask): New.
18089 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
18090 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18091 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18092 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18094 (ashr<mode>3): Delete expander.
18095 (*ashr<mode>3): Rename to ...
18096 (ashr<mode>3): ... This.
18097 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
18098 (*rotldi3_internal4, *rotldi3_internal5 and split,
18099 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
18100 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
18101 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
18102 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
18103 (splitter for loading a mask): Adjust.
18104 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
18106 2015-07-20 Marek Polacek <polacek@redhat.com>
18108 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
18109 output_add_clobbers, output_added_clobbers_hard_reg_p,
18110 gen_rtx_scratch): Remove declarations.
18112 2015-07-20 Marek Polacek <polacek@redhat.com>
18115 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
18117 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18119 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
18120 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
18122 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18124 * combine.c (combine_simplify_rtx): Move simplification step
18125 before various transformations/substitutions.
18127 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
18129 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
18130 (struct int_traits): Likewise.
18132 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18134 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
18135 function to vmsdbgout_function_decl.
18137 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
18140 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
18141 from misaligned positions.
18142 (ix86_expand_pinsr): Reject insertions to misaligned positions.
18144 2015-07-18 Sebastian Pop <s.pop@samsung.com>
18146 PR middle-end/46851
18147 PR middle-end/60340
18148 * Makefile.in: Removed omega.o.
18149 * common.opt: Document flag fcheck-data-deps as deprecated.
18150 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
18151 its associated params: omega-max-vars, omega-max-geqs,
18152 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
18153 omega-max-keys, omega-eliminate-redundant-constraints.
18154 * doc/loop.texi: Remove all the section on Omega.
18155 * graphite-blocking.c: Include missing params.h: it used to be
18156 included through tree-data-ref.h and omega.h.
18157 * graphite-isl-ast-to-gimple.c: Same.
18158 * graphite-optimize-isl.c: Same.
18159 * graphite-sese-to-poly.c: Same.
18160 * graphite.c: Same.
18163 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
18164 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
18165 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
18166 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
18167 * passes.def: Remove pass_check_data_deps.
18168 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
18169 (dump_conflict_function): Same.
18170 (dump_subscript): Same.
18171 (print_direction_vector): Same.
18172 (print_dir_vectors): Same.
18173 (print_lambda_vector): Same.
18174 (print_dist_vectors): Same.
18175 (dump_data_dependence_relation): Same.
18176 (dump_data_dependence_relations): Same.
18177 (dump_dist_dir_vectors): Same.
18179 (init_omega_eq_with_af): Removed.
18180 (omega_extract_distance_vectors): Removed.
18181 (omega_setup_subscript): Removed.
18182 (init_omega_for_ddr_1): Removed.
18183 (init_omega_for_ddr): Removed.
18184 (ddr_consistent_p): Removed.
18185 (compute_affine_dependence): Do not use omega to check data
18187 (compute_data_dependences_for_bb): Removed.
18188 (analyze_all_data_dependences): Removed.
18189 (tree_check_data_deps): Removed.
18190 * tree-data-ref.h: Do not include omega.h.
18191 (compute_data_dependences_for_bb): Removed.
18192 (tree_check_data_deps): Removed.
18193 * tree-ssa-loop.c (pass_check_data_deps): Removed.
18194 (make_pass_check_data_deps): Removed.
18195 * tree-ssa-phiopt.c: Include params.h.
18196 * tree-vect-data-refs.c: Same.
18197 * tree-vect-slp.c: Same.
18199 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
18201 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
18202 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
18203 (mem->fpreg splitters): Ditto.
18204 (general_operand->nonimmediate_operand splitter): Use explicit modes.
18205 Disable DFmode for TARGET_64BIT.
18207 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
18210 * config/i386/i386.c (ix86_expand_prologue): Replicate static
18211 chain on the stack.
18213 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
18215 * config/nvptx/mkoffload.c (process): Constify host data.
18216 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
18217 Constify host data.
18218 (generate_host_descr_file): Likewise.
18220 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
18221 Sebastian Pop <s.pop@samsung.com>
18223 PR middle-end/61929
18224 * graphite-dependences.c (add_pdr_constraints): Renamed
18225 pdr->extent to pdr->subscript_sizes.
18226 * graphite-interchange.c (build_linearized_memory_access): Add
18227 back all gcc_assert's that the "isl_int to isl_val conversion"
18228 patch has removed. Refactored.
18229 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
18230 * graphite-poly.c (new_poly_dr): Same.
18231 (free_poly_dr): Same.
18232 * graphite-poly.h (struct poly_dr): Same.
18233 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
18234 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
18235 * graphite-scop-detection.h: Fix space.
18236 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
18237 back all gcc_assert's removed by a previous patch.
18238 (wrap): Remove the_isl_ctx global variable that the same patch has
18240 (build_loop_iteration_domains): Same.
18241 (add_param_constraints): Same.
18242 (pdr_add_data_dimensions): Same. Refactored.
18243 (build_poly_dr): Renamed extent to subscript_sizes.
18245 2015-07-17 Marek Polacek <polacek@redhat.com>
18247 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
18248 * match.pd: ... here.
18250 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
18252 * config/nvptx/mkoffload.c (process): Constify target data.
18253 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
18254 Constify target data.
18255 (generate_target_offloadend_file): Likewise.
18257 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
18259 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
18260 to allow renaming of PHI arguments on edges incoming from outer
18261 loop header, add corresponding check before start PHI iterator.
18262 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
18263 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
18264 with true force_vectorize. Set-up dominator for outer loop too.
18265 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
18266 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
18267 was marked with force_vectorize and has restricted cfg.
18268 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
18270 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
18271 do peeling for outer loops.
18273 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
18274 Matthias Klose <doko@ubuntu.com>
18276 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
18277 build-sysroot, sysroot from the `Miscenalleous configure options' to
18278 the `Directories' section and strip trailing `/' from with_sysroot.
18279 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
18280 * configure: Regenerated.
18282 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
18285 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
18286 (TARGET_HARD_DF_REGS): Ditto.
18287 (TARGET_HARD_XF_REGS): Ditto.
18288 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
18289 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
18290 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
18291 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
18292 (*movsf_internal): Add alternatives 16 and 17. Enable
18293 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
18295 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
18297 PR rtl-optimization/66891
18298 * calls.c (expand_call): Wrap precompute_register_parameters with
18299 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
18301 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
18303 * config/nvptx/mkoffload.c (process): Constify mapping variables.
18304 Define target data struct and initialize it.
18306 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
18308 PR rtl-optimization/66626
18309 * ira.h (emit-rtl.h): Include.
18310 (non_spilled_static_chain_regno_p): New.
18311 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
18312 unless it is non spilled static chain pseudo.
18313 (assign_hard_rego): Spill memory profitable allocno unless it is
18314 non spilled static chain pseudo.
18315 (allocno_spill_priority_compare): Put non spilled static chain
18316 pseudo at the end of sorted array.
18317 (improve_allocation): Do nothing if we have static chain and
18319 (allocno__priority_compare_func): Put non spilled static chain
18320 pseudo at the beginning of sorted array.
18321 (move_spill_restore): Ignore non spilled static chain pseudo.
18322 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
18323 to non spilled static chain pseudo.
18324 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
18325 pseudo at the beginning of sorted array.
18326 (spill_for): Spill non spilled static chain pseudo last.
18327 * lra-constraints.c (lra_constraints): Remove static chain pseudo
18328 check for equivalence.
18330 2015-07-16 Martin Liska <mliska@suse.cz>
18333 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
18334 dst_ctx if it does not exist.
18336 2015-07-16 Martin Liska <mliska@suse.cz>
18338 * hash-set.h (remove): New function.
18339 (iterator): New iteration class for hash_set.
18341 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18343 * genattrtab.c (make_canonical): Add a file_location parameter.
18344 Use fatal_at rather than fatal.
18345 (get_attr_value): Likewise. Update call to make_canonical.
18346 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
18347 (make_internal_attr): Update calls accordingly.
18349 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18351 * read-md.h (message_with_line, error_with_line): Delete.
18352 * read-md.c (message_with_line, error_with_line): Delete.
18353 * gensupport.h: Include read-md.h.
18354 (md_rtx_info): New structure.
18355 (read_md_rtx): Use it. Return a bool success value.
18356 * gensupport.c (read_md_rtx): Likewise.
18357 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
18358 (main): Update after interface changes.
18359 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
18360 (main): Update after interface changes.
18361 * genattrtab.c (insn_code_number): Delete.
18362 (optimize_attrs): Add a max_insn_code parameter and use it instead
18363 of insn_code_number.
18364 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
18365 Use *_at rather than *_with_line functions.
18366 (gen_insn): Likewise.
18367 (gen_delay): Likewise.
18368 (gen_insn_reserv): Likewise.
18369 (gen_bypass): Take an md_rtx_info rather than an rtx.
18370 (main): Update after interface changes. Use a local max_insn_code
18371 variable instead of insn_code_number.
18372 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
18373 an rtx. Use fatal_at rather than fatal.
18374 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
18375 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
18376 (gen_absence_set, gen_final_absence_set, gen_automaton)
18377 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
18378 (main): Update after interface changes.
18379 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
18381 (main): Update after interface changes.
18382 * genconditions.c (main): Use new read_md_rtx interface.
18383 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
18384 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
18385 (main): Update after interface changes.
18386 * genemit.c (insn_code_number, insn_index_number): Delete.
18387 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18388 Use fatal_at rather than fatal.
18389 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
18391 (gen_split): Likewise.
18392 (main): Update after interface changes.
18393 * genextract.c (line_no): Delete.
18394 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18395 Update call to walk_rtx.
18396 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
18397 rather than message_with_line.
18398 (walk_rtx): Add an md_rtx_info argument. Update call to
18399 VEC_safe_set_locstr.
18400 (main): Update after interface changes.
18401 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
18402 and lineno. Use error_at rather than separate message_with_line
18403 calls and have_error assignments.
18404 (main): Update after interface changes.
18405 * genmddump.c (main): Use new read_md_rtx interface.
18406 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
18407 (main): Update after interface changes.
18408 * genoutput.c (next_code_number): Delete.
18409 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18410 (gen_peephole, gen_expand, gen_split): Likewise.
18411 (note_constraint): Likewise. Use *_at rather than *_with_line
18413 (main): Update after interface changes.
18414 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
18416 (main): Update after interface changes.
18417 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
18418 than an rtx and lineno.
18419 (process_define_constraint): Likewise.
18420 (process_define_register_constraint): Likewise.
18421 (main): Update after interface changes.
18422 * genrecog.c (next_insn_code, pattern_lineno): Delete.
18423 (validate_pattern): Replace top-level rtx with an md_rtx_info.
18424 Use *_at rather than *_with_line functions.
18425 (match_pattern_2): Likewise.
18426 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
18427 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
18428 Use *_at rather than *_with_line functions.
18429 * gentarget-def.c (add_insn): New function.
18430 (main): Use it. Use new read_md_rtx interface.
18432 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18434 * gensupport.h (compute_test_codes): Take a file_location rather
18435 than a line number.
18436 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
18437 rather than *_with_line functions.
18438 (process_define_predicate): Update call to compute_test_codes.
18439 * genpreds.c (validate_exp): Take a file_location rather than a
18440 line number. Use *_at functions rather than *_with_line functions.
18441 (process_define_predicate): Update call to validate_exp.
18442 (constraint_data): Replace lineno field with a file_location.
18443 (add_constraint): Take a file_location rather than a line number.
18444 Use *_at functions rather than *_with_line functions. Fix error
18445 message for address constraints. Update after changes to
18446 validate_exp, constraint_data and compute_test_codes.
18447 (process_define_constraint): Update accordingly.
18448 (process_define_register_constraint): Likewise.
18450 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18452 * genoutput.c (data): Use a file_location to record the source
18455 (idata, idata_end): Remove initialization.
18456 (constraint_data): Replace lineno with a file_location.
18457 (output_insn_data): Update after changes to data.
18458 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
18459 (scan_operands): Likewise, using *_at rather than *_with_line
18461 (process_template): Likewise.
18462 (validate_insn_alternatives): Likewise.
18463 (validate_insn_operands): Likewise.
18464 (validate_optab_operands): Likewise.
18465 (init_insn_for_nothing): Initialize idata and idata_end.
18466 (note_constraint): Update after changes to constraint_data,
18467 using at rather than with_line functions.
18468 (mdep_constraint_len): Take a file_location rather than a
18469 line number. Use at rather than with_line functions.
18471 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18473 * read-md.h (fatal_at): Declare.
18474 * read-md.c (fatal_at): New function.
18475 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
18476 to record the source position.
18477 (check_attr_test): Take a file_location instead of a line number.
18478 Use fatal_at instead of fatal.
18479 (check_attr_value): Update after above changes, using "at"
18480 rather than "with_line" reporting functions.
18481 (convert_set_attr_alternative): Likewise.
18482 (gen_attr): Likewise.
18483 (check_defs): Likewise. Don't assign to read_md_filename.
18484 (gen_insn): Update initialization after above changes.
18485 (gen_delay): Likewise.
18486 (write_insn_cases): Print the filename for a define_peephole.
18487 (gen_insn_reserv): Take a line number as argument and update
18488 the call to check_attr_test.
18489 (main): Pass a line number to gen_insn_reserv.
18491 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18493 * read-md.h (file_location): New structure.
18494 (directive_handler_t): Take a file_location rather than a line number.
18495 (message_at, error_at): Declare.
18496 (read_skip_construct): Delete.
18497 * read-md.c (message_with_line_1): Replace with...
18498 (message_at_1): ...this new function.
18499 (message_at, error_at): New functions.
18500 (message_with_line, error_with_line): Update to use message_at_1.
18501 (handle_enum): Take a file_location rather than a line number
18502 and use error_at for error reporting.
18503 (handle_include): Likewise.
18504 (read_skip_construct): Likewise. Make static.
18505 (handle_file): Update after above changes. Pass a file_location
18506 rather than a line number to handle_directive.
18507 * gensupport.c (queue_elem): Replace separate filename and lineno
18508 with a file_location.
18509 (queue_pattern): Replace filename and lineno arguments with a
18510 file_location. Update after change to queue_elem.
18511 (process_define_predicate): Replace lineno argument with a
18512 file_location and use error_at for error reporting. Update
18513 after above changes.
18514 (process_rtx): Likewise.
18515 (subst_pattern_match): Likewise.
18516 (get_alternatives_number): Likewise.
18517 (alter_predicate_for_insn): Likewise.
18518 (rtx_handle_directive): Likewise.
18519 (is_predicable): Update after above changes, using error_at rather
18520 than error_with_line.
18521 (has_subst_attribute): Likewise.
18522 (identify_predicable_attribute): Likewise.
18523 (alter_attrs_for_subst_insn): Likewise.
18524 (process_one_cond_exec): Likewise.
18525 (process_substs_on_one_elem): Likewise.
18526 (process_define_subst): Likewise.
18527 (check_define_attr_duplicates): Likewise.
18528 (read_md_rtx): Update after change to queue_elem.
18530 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18532 * genoutput.c (next_index_number): Delete.
18533 (data): Remove index_number.
18534 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
18535 (main): Remove manipulation of next_index_number.
18537 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18539 * genattrtab.c (check_attr_value): Remove handling of null attrs.
18540 (make_canonical): Likewise.
18542 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
18544 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
18545 instead of adjust_address_nv.
18546 (restore_stack_nonlocal): Likewise.
18547 (nonlocal_goto): Likewise.
18549 2015-07-16 Tom de Vries <tom@codesourcery.com>
18551 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
18552 not have a corresponding loop header phi.
18554 2015-07-16 Tom de Vries <tom@codesourcery.com>
18556 * tree-parloops.c (create_loads_for_reductions): Handle case that
18557 reduction is unused.
18559 2015-07-16 Richard Biener <rguenther@suse.de>
18561 PR tree-optimization/66894
18562 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
18563 about deriving NE_EXPR from truncated values.
18565 2015-07-16 Martin Liska <mliska@suse.cz>
18568 (object_allocator): Add new class.
18569 (pool_allocator::initialize): Use the underlying class.
18570 (pool_allocator::allocate): Likewise.
18571 (pool_allocator::remove): Likewise.
18572 (operator new): A new generic allocator.
18573 * asan.c (struct asan_mem_ref): Remove unused members.
18574 (asan_mem_ref_new): Replace new operator with
18575 object_allocator::allocate.
18576 (free_mem_ref_resources): Change deallocation.
18577 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
18578 with object_allocator.
18579 * config/sh/sh.c (add_constant): Replace new operator with
18580 object_allocator::allocate.
18581 (sh_reorg): Change call to a release method.
18582 * cselib.c (struct elt_list): Remove unused members.
18583 (new_elt_list): Replace new operator with
18584 object_allocator::allocate.
18585 (new_elt_loc_list): Likewise.
18586 (new_cselib_val): Likewise.
18587 (unchain_one_elt_list): Change delete operator with remove method.
18588 (unchain_one_elt_loc_list): Likewise.
18589 (unchain_one_value): Likewise.
18590 (cselib_finish): Release newly added static allocators.
18591 * cselib.h (struct cselib_val): Remove unused members.
18592 (struct elt_loc_list): Likewise.
18593 * df-problems.c (df_chain_alloc): Replace pool_allocator with
18595 * df-scan.c (struct df_scan_problem_data): Likewise.
18596 (df_scan_alloc): Likewise.
18597 * df.h (struct dataflow): Likewise.
18598 * dse.c (struct read_info_type): Likewise.
18599 (struct insn_info_type): Likewise.
18600 (struct dse_bb_info_type): Likewise.
18601 (struct group_info): Likewise.
18602 (struct deferred_change): Likewise.
18603 (get_group_info): Likewise.
18604 (delete_dead_store_insn): Likewise.
18605 (free_read_records): Likewise.
18606 (replace_read): Likewise.
18607 (check_mem_read_rtx): Likewise.
18608 (scan_insn): Likewise.
18609 (dse_step1): Likewise.
18610 (dse_step7): Likewise.
18611 * et-forest.c (struct et_occ): Remove unused members.
18612 (et_new_occ): Use allocate instead of new operator.
18613 (et_new_tree): Likewise.
18614 (et_free_tree): Call release method explicitly.
18615 (et_free_tree_force): Likewise.
18616 (et_free_pools): Likewise.
18617 (et_split): Use remove instead of delete operator.
18618 * et-forest.h (struct et_node): Remove unused members.
18619 * ipa-cp.c: Change pool_allocator to object_allocator.
18620 * ipa-inline-analysis.c: Likewise.
18621 * ipa-profile.c: Likewise.
18622 * ipa-prop.c: Likewise.
18623 * ipa-prop.h: Likewise.
18624 * ira-build.c (initiate_cost_vectors): Cast return value.
18625 (ira_allocate_cost_vector): Likewise.
18626 * ira-color.c (struct update_cost_record): Remove unused members.
18627 * lra-int.h (struct lra_live_range): Likewise.
18628 (struct lra_copy): Likewise.
18629 (struct lra_insn_reg): Likewise.
18630 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
18631 * lra.c (new_insn_reg): Replace new operator with allocate method.
18632 (free_insn_regs): Same for operator delete.
18633 (finish_insn_regs): Release new static allocator.
18634 (finish_insn_recog_data): Likewise.
18635 (lra_free_copies): Replace delete operator with remove method.
18636 (lra_create_copy): Replace operator new with allocate method.
18637 (invalidate_insn_data_regno_info): Same for remove method.
18638 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
18639 (free_debug_insn_changes): Replace delete operator with remove method.
18640 (replace_oldest_value_reg): Replace operator new with allocate method.
18641 (pass_cprop_hardreg::execute): Release new static variable.
18642 * sched-deps.c (sched_deps_init): Change pool_allocator to
18644 * sel-sched-ir.c: Likewise.
18645 * sel-sched-ir.h: Likewise.
18646 * stmt.c (expand_case): Likewise.
18647 (expand_sjlj_dispatch_table): Likewise.
18648 * tree-sra.c (struct access): Remove unused members.
18649 (struct assign_link): Likewise.
18650 (sra_deinitialize): Release newly added static pools.
18651 (create_access_1):Replace operator new with allocate method.
18652 (build_accesses_from_assign): Likewise.
18653 (create_artificial_child_access): Likewise.
18654 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
18655 pool_allocator to object_allocator.
18656 * tree-ssa-pre.c: Likewise.
18657 * tree-ssa-reassoc.c: Likewise.
18658 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
18659 * tree-ssa-strlen.c: Likewise.
18660 * tree-ssa-structalias.c: Likewise.
18661 * var-tracking.c (onepart_pool_allocate): New function.
18662 (unshare_variable): Use the newly added function.
18663 (variable_merge_over_cur): Likewise.
18664 (variable_from_dropped): Likewise.
18665 (variable_was_changed): Likewise.
18666 (set_slot_part): Likewise.
18667 (emit_notes_for_differences_1): Likewise.
18668 (vt_finalize): Release newly added static pools.
18670 2015-07-16 Martin Jambor <mjambor@suse.cz>
18672 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
18673 all uses. Fix two typos in its general comment.
18674 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
18676 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
18678 * config/i386/linux-common.h (LINK_MPX): New.
18679 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
18680 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
18681 indicating '-z bndplt' support by linker.
18682 * configure: Regenerate.
18683 * config.in: Regenerate.
18685 2015-07-16 Richard Biener <rguenther@suse.de>
18687 * fold-const.c (fold_widened_comparison): Remove.
18688 (fold_sign_changed_comparison): Likewise.
18689 (fold_comparison): Move widened and sign-changed comparison
18691 * match.pd: ... to patterns here.
18692 * generic-match-head.c: Include target.h.
18693 * gimple-match-head.c: Likewise.
18695 2015-07-16 Richard Biener <rguenther@suse.de>
18697 * tree-ssa-dom.c (dom_valueize): New function.
18698 (record_temporary_equivalences): Also record equivalences
18699 for dominating stmts that have uses of equivalences we are
18702 2015-07-16 Bin Cheng <bin.cheng@arm.com>
18704 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
18705 add_autoinc_candidates.
18706 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
18707 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
18708 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
18709 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
18711 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
18712 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
18713 Remove parameter struct iv*. Call add_autoinc_candidates here.
18714 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
18715 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
18717 (find_iv_candidates): Call new functions.
18719 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
18721 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
18722 uninitialized-variable warning.
18724 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
18727 * config/sh/sh.md (movdi): Split simple reg move to two movsi
18728 when the destination is R0.
18730 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
18733 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
18734 * config/i386/i386.c (ix86_expand_pextr): New function.
18735 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
18736 for non-lowpart subregs.
18737 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
18738 (insv<mode>): Use SWI248 mode iterator.
18739 (insv<mode>_1): Ditto.
18741 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
18742 Sebastian Pop <s.pop@samsung.com>
18744 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
18745 iterator to use_stmt.
18747 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
18748 Sebastian Pop <s.pop@samsung.com>
18750 * graphite-scop-detection.c (build_scops_1): Discard scops for
18753 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
18754 Sebastian Pop <s.pop@samsung.com>
18756 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
18757 case of a return statement in scop.
18759 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
18760 Sebastian Pop <s.pop@samsung.com>
18762 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
18763 INTEGER_TYPE parameters.
18764 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
18765 VECTOR_CST in scan_tree_for_params.
18766 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
18768 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
18770 * gimple-pretty-print.h: Don't include pretty-print.h.
18771 * tree-streamer.h: Don't include lto-streamer.h.
18772 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
18773 * gimple-streamer-in.c: Remove redundant includes.
18774 * gimple-streamer-out.c: Likewise.
18775 * ipa-devirt.c: Likewise.
18776 * ipa-icf.c: Likewise.
18777 * ipa-inline-analysis.c: Likewise.
18778 * ipa-polymorphic-call.c: Likewise.
18779 * ipa-profile.c: Likewise.
18780 * ipa-prop.c: Likewise.
18781 * ipa-pure-const.c: Likewise.
18782 * lto-cgraph.c: Likewise.
18783 * lto-streamer-in.c: Likewise.
18784 * lto-streamer-out.c: Likewise.
18785 * lto-streamer.c: Likewise.
18786 * tree-streamer-in.c: Likewise.
18787 * tree-streamer-out.c: Likewise.
18788 * tree-streamer.c: Likewise.
18790 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
18792 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
18794 * opts.c: Remove multiline #include comment.
18796 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
18798 * config/nvptx/mkoffload.c (process): Add C++ protection to
18801 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18804 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
18805 null before IEEE 128-bit floating point support patch.
18807 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18809 * simplify-rtx.c (simplify_ternary_operation): Add simplification
18810 for (!c) != {0,...,0} ? a : b for vector modes.
18812 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
18813 Martin Jambor <mjambor@suse.cz>
18815 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
18816 struct func_body_info* instead of struct ipa_node_params*, expecting
18817 fbi->info to be filled in. Replace throughout. Adjust call to
18818 ipa_load_from_parm_agg.
18819 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
18820 instead of struct ipa_node_params*. Adjust calls to other functions
18821 so that they pass either fbi or fbi->info.
18822 (set_switch_stmt_execution_predicate): Likewise.
18823 (will_be_nonconstant_predicate): Likewise.
18824 (compute_bb_predicates): Likewise.
18825 (estimate_function_body_sizes): Move asserts earlier. Fill in
18826 struct func_body_info, replace parms_info with fbi.info. Adjust
18827 calls to functions that now accept struct func_body_info.
18828 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
18829 (struct func_body_info): Likewise.
18830 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
18831 remove static. Adjust callers.
18832 (ipa_load_from_parm_agg): Remove.
18833 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
18834 (func_body_info): Likewise.
18835 (ipa_load_from_parm_agg): Adjust prototype.
18837 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18839 * gensupport.c (rtx_handle_directive): Adjust.
18840 * read-rtl.c (apply_iterators): Take vector to add rtxs to
18841 instead of expr list rtx.
18842 (add_define_attr_for_define_subst): Likewise.
18843 (add_define_subst_attr): Likewise.
18844 (read_subst_mapping): Likewise.
18845 (read_rtx): Likewise.
18846 * rtl.h (read_rtx): Adjust.
18848 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18850 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
18852 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
18855 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
18856 (*tls_local_dynamic_base_64_<mode>): Ditto.
18857 (*tls_local_dynamic_base_64_largepic): Ditto.
18858 (tls_global_dynamic_64_<mode>): Update expander pattern.
18859 (tls_local_dynamic_base_64_<mode>): Ditto.
18861 2015-07-15 Richard Biener <rguenther@suse.de>
18863 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
18864 and bool_var == 1 -> bool_var simplifications ...
18865 * match.pd: ... to patterns here. Factor out negate_expr_p
18866 cases from the A - B -> A + (-B) patterns as negate_expr_p
18867 predicate and add a -(A + B) -> (-B) - A pattern.
18869 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
18871 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
18873 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
18874 Robert Suchanek <robert.suchanek@imgtec.com>
18876 * config/mips/mips.c (mips_int_mask): New enum.
18877 (mips_shadow_set): Likewise.
18878 (int_mask): New variable.
18879 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
18880 (machine_function): Add int_mask and use_shadow_register_set.
18881 (mips_attribute_table): Add attribute handlers for interrupt and
18882 use_shadow_register_set.
18883 (mips_interrupt_mask): New static function.
18884 (mips_handle_interrupt_attr): Likewise.
18885 (mips_handle_use_shadow_register_set_attr): Likewise.
18886 (mips_use_shadow_register_set): Change return type to enum
18887 mips_shadow_set. Add argument handling for use_shadow_register_set
18889 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
18890 compare with mips_shadow_set enum.
18891 (mips_compute_frame_info): Add interrupt mask and
18892 use_shadow_register_set to per-function information structure.
18893 Add a stack slot for EPC unconditionally.
18894 (mips_expand_prologue): Compare use_shadow_register_set value
18895 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
18896 masked interrupt register but in EIC mode use K0 and save Cause in K0.
18897 EPC saved and restored unconditionally. Use PMODE_INSN macro when
18898 copying the stack pointer from the shadow register set.
18899 * config/mips/mips.h (SR_IM0): New define.
18900 * config/mips/mips.md (mips_rdpgpr): Rename to...
18901 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
18902 * doc/extend.texi (Declaring Attributes of Functions): Document
18903 optional arguments for interrupt and use_shadow_register_set
18906 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
18908 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
18909 interrupt attribute.
18910 (mips_expand_prologue): Disable the floating point unit in an ISR.
18911 * config/mips/mips.h (SR_COP1): New define.
18913 2015-07-15 Richard Biener <rguenther@suse.de>
18915 * genmatch.c (parser::peek, parser::peek_ident): Add argument
18916 to tell how many tokens to peek ahead (default 1).
18917 (parser::eat_token, parser::eat_ident): Return token consumed.
18918 (parser::parse_result): Parse new switch statement.
18919 * match.pd: Use case statements where appropriate.
18921 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
18923 PR rtl-optimization/58066
18924 * calls.c (expand_call): Precompute register parameters before stack
18925 alignment is performed.
18927 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
18929 PR rtl-optimization/66838
18930 * postreload.c (reload_cse_move2add): Also process
18931 CALL_INSN_FUNCTION_USAGE when resetting information of
18932 call-clobbered registers.
18934 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18935 Cesar Philippidis <cesar@codesourcery.com>
18936 Chung-Lin Tang <cltang@codesourcery.com>
18938 * config/nios2/constraints.md (U, v): New constraints.
18939 * config/nios2/predicates.md (rdprs_dcache_operand): New.
18940 (ldstex_memory_operand): New.
18941 * config/nios2/sync.md: New file.
18942 * config/nios2/nios2.md (unspecv): Add new builtin function
18944 (rdprs, flushd, flushda, wrpie, eni): New patterns.
18945 (top-level): Include sync.md.
18946 * config/nios2/nios2.c (N2_FTYPES): Add function types for
18948 (N2_BUILTINS): Add arch field setting, add new builtins.
18949 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
18951 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
18952 Also handle ldex/stex/ldsex/stsex builtins.
18953 (nios2_expand_rdprs_builtin): New function.
18954 (nios2_expand_cache_builtin): New function.
18955 (nios2_expand_wrpie_builtin): New function.
18956 (nios2_expand_eni_builtin): New function.
18957 (nios2_expand_builtin): Add arch field handling and new builtin
18959 * doc/extend.texi (Altera Nios II Built-in Functions): Document
18961 * doc/md.texi (Machine Constraints): Document U and v constraints.
18963 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18964 Cesar Philippidis <cesar@codesourcery.com>
18965 Chung-Lin Tang <cltang@codesourcery.com>
18967 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
18968 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
18969 callee_save_reg_size and uses_anonymous_args fields.
18970 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
18971 (nios2_create_cfa_notes): New function.
18972 (nios2_adjust_stack): New function for adjusting stack.
18973 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
18974 Use nios2_adjust_stack.
18975 (nios2_expand_epilogue): Likewise.
18976 (nios2_expand_return): New function.
18977 (nios2_can_use_return_insn): Update for CDX pop.n usage.
18978 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
18979 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
18980 * config/nios2/nios2.md (return): Use nios2_expand_return.
18982 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
18983 Cesar Philippidis <cesar@codesourcery.com>
18984 Chung-Lin Tang <cltang@codesourcery.com>
18986 * config/nios2/predicates.md (pop_operation): New.
18987 (ldwm_operation, stwm_operation): New.
18988 (nios2_hard_register_operand): New.
18989 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
18990 (ldstwm_operation_p): Declare.
18991 (gen_ldstwm_peep): Declare.
18992 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
18993 (base_reg_adjustment_p): New.
18994 (pop_operation_p): New.
18995 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
18996 (nios2_ldstwm_regset_p): New.
18997 (ldstwm_operation_p): New.
18999 (nios2_ldst_parallel): New.
19000 (struct ldswm_operand): Declare.
19001 (compare_ldstwm_operands): New.
19002 (can_use_cdx_ldstw): New.
19003 (gen_ldstwm_peep): New.
19004 * config/nios2/nios2-ldstwm.sml: New.
19005 * config/nios2/nios2.md: Include ldstwm.md.
19006 * config/nios2/ldstwm.md: Generated.
19008 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19009 Cesar Philippidis <cesar@codesourcery.com>
19010 Chung-Lin Tang <cltang@codesourcery.com>
19012 * config/nios2/nios2.h (LABEL_ALIGN): Define.
19013 (REG_ALLOC_ORDER): Define.
19014 (ADJUST_REG_ALLOC_ORDER): Define.
19015 (HONOR_REG_ALLOC_ORDER): Define.
19016 (CDX_REG_P): Define.
19017 (ANDCLEAR_INT): Define.
19018 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
19019 (nios2_label_align): Declare.
19020 (nios2_cdx_narrow_form_p): Declare.
19021 (nios2_adjust_reg_alloc_order): Declare.
19022 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
19024 (nios2_large_unspec_reloc_p): New function, split from...
19025 (nios2_legitimate_pic_operand_p): ...here.
19026 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
19027 (nios2_print_operand_punct_valid_p): New.
19028 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
19029 (split_mem_address): New.
19030 (split_alu_insn): New.
19032 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
19033 (enum nios2_add_insn_kind): New.
19034 (nios2_add_insn_names, nios2_add_insn_narrow): New.
19035 (nios2_add_insn_classify): New.
19036 (nios2_add_insn_asm): New.
19037 (nios2_cdx_narrow_form_p): New.
19038 (label_align, min_labelno, max_labelno): New.
19039 (nios2_reorg): New.
19040 (nios2_label_align): New.
19041 (nios2_adjust_reg_alloc_order): New.
19042 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19043 (TARGET_MACHINE_DEPENDENT_REORG): Define.
19044 * config/nios2/constraints.md (P): New constraint.
19045 * config/nios2/predicates.md (const_and_operand): New.
19046 (and_operand): New.
19047 (stack_memory_operand): New.
19048 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
19049 (length): Update to use nios2_cdx_narrow_form_p().
19050 (type): Add new insn type values.
19051 (control, alu, st, ld, shift): Update insn reservations with
19052 new insn type values.
19053 (*high, *lo_sum): Define new insn patterns for constant generation.
19054 (movqi_internal, movhi_internal, movsi_internal): Reduce
19055 alternatives, update asm template to handle CDX variants, update
19057 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
19058 template, update type attributes.
19059 (extendhisi2, extendqi<mode>2): Likewise.
19060 (addsi3): Change to use function for asm string.
19061 (subsi3): Add CDX notation to asm template, update type attributes.
19062 (negsi3, one_cmplsi3): Likewise.
19063 (andsi3): New pattern, specialized from logical patterns.
19064 (<code>si3): Remove and case, combine alternatives, update asm
19066 (<shift_op>si3): Add CDX notation, update type attributes.
19067 (rotrsi3): Update type attribute.
19068 (*merge, extzv, insv): New insn patterns.
19069 (return): Change to define_expand.
19070 (simple_return): Add CDX notation, update type attributes.
19071 (indirect_jump): Add CDX notation.
19072 (jump): Update asm cases, update length attribute expression.
19073 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
19074 (nios2_cbranch): Update asm cases and length attribute expression
19075 to handle CDX variants.
19076 (nios2_cmp<code>): Update asm template.
19077 (nop): Add CDX notation, update type attributes.
19078 (trap): Add CDX notation.
19079 (ctrapsi4): Update asm cases and length attribute expression to
19080 handle CDX variant.
19081 * doc/md.texi (Machine Constraints): Document P constraint.
19083 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19084 Cesar Philippidis <cesar@codesourcery.com>
19085 Chung-Lin Tang <cltang@codesourcery.com>
19087 * config/nios2/nios2.h (SMALL_INT12): New macro.
19088 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
19089 (nios2_valid_addr_expr_p): Use it.
19090 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
19091 with implicit "io" instructions on R2.
19092 * config/nios2/constraints.md (w): New constraint.
19093 * config/nios2/predicates.md (ldstio_memory_operand): New.
19094 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
19095 operand predicate and constraint.
19096 (ld<bh>io_signed, st<bhw>io>): Likewise.
19097 * doc/md.texi (Machine Constraints): Document w constraint.
19099 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19100 Cesar Philippidis <cesar@codesourcery.com>
19101 Chung-Lin Tang <cltang@codesourcery.com>
19103 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
19104 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
19105 Nios II architecture level.
19106 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
19107 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
19108 (OPTION_DEFAULT_SPECS): Define.
19109 (ASM_SPEC): Add -march= spec strings.
19110 * config/nios2/nios2.c (nios2_option_override): Check for
19111 conflicts involving new options.
19112 * config.gcc (nios2*-*-*): Support --with-arch=.
19113 * doc/invoke.texi (Option Summary, Nios II Options): Document
19114 -march=, -mbmx, and -mcdx.
19116 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
19118 PR rtl-optimization/66626
19119 * lra-constraints.c (lra_constraints): Prevent equivalence
19120 substitution for static chain pseudo in functions with nonlocal
19123 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19125 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
19126 (nios2_emit_stack_limit_check): Add size parameter. Handle
19127 -fstack-limit-symbol as well as -fstack-limit-register.
19128 (nios2_expand_prologue): Emit only a single stack limit check,
19129 even if multiple stack adjustments are required.
19130 (nios2_option_override): Diagnose unsupported combination of -fpic
19131 and -stack-limit-symbol.
19133 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
19135 * Makefile.in (top_srcdir): New.
19136 * configure.ac: Use AM_ZLIB.
19137 * configure: Regeneated.
19139 2015-07-14 Matthias Klose <doko@ubuntu.com>
19142 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
19144 2015-07-14 Richard Biener <rguenther@suse.de>
19146 PR tree-optimization/66863
19147 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
19148 what we record for conversion use stmt lhs inequalities.
19150 2015-07-14 Richard Biener <rguenther@suse.de>
19152 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
19153 (decision_tree::gen_gimple): Likewise.
19155 2015-07-14 Tom de Vries <tom@codesourcery.com>
19157 * gcc.c (greater_than_spec_func): Declare forward.
19158 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
19159 -ftree-parallelize-loops={0,1}.
19160 (static_spec_functions): Add greater_than_spec_func function with name
19162 (greater_than_spec_func): New function.
19164 2015-07-14 Richard Biener <rguenther@suse.de>
19166 * tree-ssa-dom.c (record_temporary_equivalences): Merge
19167 wideing type conversion case from record_equivalences_from_incoming_edge
19168 and use record_equality to record equivalences.
19169 (record_equivalences_from_incoming_edge): Call
19170 record_temporary_equivalences.
19172 2015-07-14 Richard Biener <rguenther@suse.de>
19174 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
19175 (struct if_expr): New.
19176 (struct with_expr): Likewise.
19177 (is_a_helper): Add helpers for if_expr and with_expr.
19178 (struct simplify): Add simplify_kind enum and member. Remove
19180 (simplify::simplify): Adjust.
19181 (lower_commutative): Adjust.
19182 (lower_opt_convert): Likewise.
19183 (lower_cond): Likewise.
19184 (replace_id): Handle with_expr and if_expr.
19185 (lower_for): Adjust.
19186 (dt_simplify::gen_1): New recursive worker, split out from ...
19187 (dt_simplify::gen): ... here. Deal with if and with expansion
19189 (capture_info::capture_info): Take context argument
19190 (capture_info::walk_result): Only analyze specific result.
19191 (parser::parse_result): New function.
19192 (parser::parse_simplify): Adjust to parse ifs with then end
19194 (parser::parse_if): Simplify.
19195 (parser::parse_pattern): Pass down simplify kind.
19196 * match.pd: Convert if structure to new syntax.
19198 2015-07-13 Marek Polacek <polacek@redhat.com>
19200 * rtl.c (rtx_equal_p_cb): Fix typo.
19202 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
19204 * omega.h: Don't include config.h, don't include params.h again if
19205 omega.h has already been included.
19206 * graphite-poly.h: Include sese.h.
19207 * graphite.c: Don't include sese.h, remove needless includes and
19208 minimize includes outside #ifdef HAVE_isl block.
19209 * graphite-blocking.c: Don't include sese.h, remove needless includes,
19210 and wrap entire file in #ifdef HAVE_isl
19211 * graphite-dependences.c: Likewise.
19212 * graphite-interchange.c: Likewise.
19213 * graphite-isl-ast-to-gimple.c: Likewise.
19214 * graphite-optimize-isl.c: Likewise.
19215 * graphite-poly.c: Likewise.
19216 * graphite-scop-detection.c: Likewise.
19217 * graphite-sese-to-poly.c: Likewise.
19219 2015-07-13 Tom de Vries <tom@codesourcery.com>
19221 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
19223 2015-07-13 Renlin Li <renlin.li@arm.com>
19226 * simplify-rtx.c (simplify_const_relational_operation): Add
19227 side_effects_p checks.
19229 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
19231 * bitmap.h: Fix double word typos.
19232 * builtins.c: Same.
19234 * cfgloopmanip.c: Same.
19237 * cgraphclones.c: Same.
19239 * config/aarch64/aarch64-protos.h: Same.
19240 * config/aarch64/aarch64.c: Same.
19241 * config/aarch64/aarch64.md: Same.
19242 * config/arm/arm.md: Same.
19243 * config/arm/arm1020e.md: Same.
19244 * config/arm/arm1026ejs.md: Same.
19245 * config/arm/arm926ejs.md: Same.
19246 * config/arm/fa526.md: Same.
19247 * config/arm/fa606te.md: Same.
19248 * config/arm/fa626te.md: Same.
19249 * config/arm/fa726te.md: Same.
19250 * config/arm/fmp626.md: Same.
19251 * config/darwin.c: Same.
19252 * config/epiphany/epiphany.c: Same.
19253 * config/frv/frv.c: Same.
19254 * config/ft32/ft32.c: Same.
19255 * config/gnu-user.h: Same.
19256 * config/h8300/constraints.md: Same.
19257 * config/i386/i386.c: Same.
19258 * config/i386/i386.md: Same.
19259 * config/iq2000/iq2000.md: Same.
19260 * config/mips/mips.c: Same.
19261 * config/mmix/mmix.md: Same.
19262 * config/moxie/moxie.c: Same.
19263 * config/nds32/nds32.md: Same.
19264 * config/pa/pa.h: Same.
19265 * config/rs6000/aix.h: Same.
19266 * config/rs6000/rs6000.h: Same.
19267 * config/sh/sh.c: Same.
19268 * config/tilegx/tilegx.md: Same.
19269 * config/tilepro/gen-mul-tables.cc: Same.
19272 * doc/invoke.texi: Same.
19274 * dwarf2out.c: Same.
19277 * genmatch.c: Same.
19278 * gimplify.c: Same.
19279 * hash-table.h: Same.
19280 * internal-fn.c: Same.
19282 * ipa-devirt.c: Same.
19285 * ipa-profile.c: Same.
19286 * ipa-prop.c: Same.
19287 * ipa-prop.h: Same.
19290 * reg-stack.c: Same.
19291 * regcprop.c: Same.
19296 * tree-inline.c: Same.
19297 * tree-sra.c: Same.
19298 * tree-ssa-dom.c: Same.
19299 * tree-ssa-loop-ivopts.c: Same.
19300 * tree-ssa-structalias.c: Same.
19301 * tree-ssa-tail-merge.c: Same.
19302 * tree-ssa-ter.c: Same.
19303 * tree-ssa-threadupdate.c: Same.
19304 * tree-ssa-uninit.c: Same.
19305 * tree-ssanames.c: Same.
19306 * tree-vect-loop-manip.c: Same.
19307 * tree-vrp.c: Same.
19309 * valtrack.c: Same.
19312 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
19314 PR middle-end/66726
19315 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
19316 tree_ssa_phiopt_worker): Call it.
19318 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
19320 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
19321 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
19324 2015-07-11 Marek Polacek <polacek@redhat.com>
19326 PR middle-end/66353
19327 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
19328 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
19329 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
19330 rather than bb_has_abnormal_call_pred.
19331 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
19332 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
19333 rather than bb_has_abnormal_call_pred.
19335 2015-07-10 Anatoly Sokolov <aesok@post.ru>
19337 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
19338 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
19339 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
19340 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
19341 v850_legitimate_address_p): New functions.
19342 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
19344 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
19347 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
19348 indirect sibcall with register arguments if register available
19349 for argument passing.
19350 (init_cumulative_args): Set cfun->machine->arg_reg_available
19351 to (cum->nregs > 0) or to true if function has a variable
19353 (function_arg_advance_32): Set cfun->machine->arg_reg_available
19354 to false if cum->nregs <= 0.
19355 * config/i386/i386.h (machine_function): Add arg_reg_available.
19357 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
19359 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
19360 and gen_higpart instead of gen_rtx_SUBREG.
19361 * config/i386/i386.md
19362 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
19363 (read-modify peephole2): Use gen_lowpart instead of
19364 gen_rtx_SUBREG for operand 5.
19366 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
19368 * config/tilepro/gen-mul-tables.cc (main): Change include list for
19370 * config/tilepro/mul-tables.c: Regenerate.
19371 * config/tilegx/mul-tables.c: Regenerate.
19373 2015-07-10 Richard Biener <rguenther@suse.de>
19375 * fold-const.c (distribute_bit_expr): Remove.
19376 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
19377 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
19378 to A & (B | C) and simplifying A << C1 << C2 to ...
19379 * match.pd: ... patterns here.
19381 2015-07-10 Jiong Wang <jiong.wang@arm.com>
19383 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19384 Mark mem as READONLY and NOTRAP for PIC symbol.
19386 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
19388 * gimple-predict.h: New file.
19389 (gimple_predict_predictor, gimple_predict_set_predictor,
19390 gimple_predict_outcome, gimple_predict_set_outcome,
19391 gimple_build_predict): Relocate here.
19392 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
19393 gimple_predict_outcome, gimple_predict_set_outcome): Move to
19395 * gimple.c (gimple_build_predict): Move to gimple-predict.h
19396 * basic-block.h: Don't include cfghooks.h.
19397 * backend.h: Don't include predict.h.
19398 * cfghooks.h: Include predict.h.
19399 * gimple-pretty-print.c: Include gimple-predict.h.
19400 * gimplify.c: Likwise.
19401 * predict.c: Adjust includes.
19402 * tree-inline.c: Likewise.
19403 * asan.c: Likewise.
19404 * auto-inc-dec.c: Likewise.
19405 * auto-profile.c: Likewise.
19406 * bb-reorder.c: Likewise.
19407 * builtins.c: Likewise.
19408 * caller-save.c: Likewise.
19409 * calls.c: Likewise.
19410 * cfganal.c: Likewise.
19411 * cfgbuild.c: Likewise.
19413 * cfgcleanup.c: Likewise.
19414 * cfgexpand.c: Likewise.
19415 * cfghooks.c: Likewise.
19416 * cfgloopanal.c: Likewise.
19417 * cfgloop.c: Likewise.
19418 * cfgloopmanip.c: Likewise.
19419 * cfgrtl.c: Likewise.
19420 * cgraph.c: Likewise.
19421 * cgraphunit.c: Likewise.
19422 * combine.c: Likewise.
19423 * cprop.c: Likewise.
19426 * dojump.c: Likewise.
19428 * except.c: Likewise.
19429 * expmed.c: Likewise.
19430 * expr.c: Likewise.
19431 * final.c: Likewise.
19432 * fold-const.c: Likewise.
19433 * function.c: Likewise.
19434 * fwprop.c: Likewise.
19435 * gcc-plugin.h: Likewise.
19436 * gcse.c: Likewise.
19437 * genattrtab.c: Likewise.
19438 * genemit.c: Likewise.
19439 * gengtype.c: Likewise.
19440 * genopinit.c: Likewise.
19441 * genoutput.c: Likewise.
19442 * genpreds.c: Likewise.
19443 * genrecog.c: Likewise.
19444 * gimple-fold.c: Likewise.
19445 * gimple-iterator.c: Likewise.
19446 * gimple-ssa-isolate-paths.c: Likewise.
19447 * gimple-ssa-strength-reduction.c: Likewise.
19448 * graph.c: Likewise.
19449 * graphite-blocking.c: Likewise.
19450 * graphite.c: Likewise.
19451 * graphite-dependences.c: Likewise.
19452 * graphite-interchange.c: Likewise.
19453 * graphite-isl-ast-to-gimple.c: Likewise.
19454 * graphite-optimize-isl.c: Likewise.
19455 * graphite-poly.c: Likewise.
19456 * graphite-scop-detection.c: Likewise.
19457 * graphite-sese-to-poly.c: Likewise.
19458 * haifa-sched.c: Likewise.
19459 * ifcvt.c: Likewise.
19460 * internal-fn.c: Likewise.
19461 * ipa-cp.c: Likewise.
19462 * ipa-profile.c: Likewise.
19463 * ipa-split.c: Likewise.
19464 * ipa-utils.c: Likewise.
19465 * ira-build.c: Likewise.
19466 * ira-color.c: Likewise.
19467 * ira-conflicts.c: Likewise.
19468 * ira-costs.c: Likewise.
19469 * ira-emit.c: Likewise.
19470 * ira-lives.c: Likewise.
19471 * jump.c: Likewise.
19472 * loop-doloop.c: Likewise.
19473 * loop-init.c: Likewise.
19474 * loop-invariant.c: Likewise.
19475 * loop-unroll.c: Likewise.
19476 * lower-subreg.c: Likewise.
19477 * lra-assigns.c: Likewise.
19479 * lra-coalesce.c: Likewise.
19480 * lra-constraints.c: Likewise.
19481 * lra-lives.c: Likewise.
19482 * lto-cgraph.c: Likewise.
19483 * lto-streamer-in.c: Likewise.
19484 * mode-switching.c: Likewise.
19485 * modulo-sched.c: Likewise.
19486 * omp-low.c: Likewise.
19487 * optabs.c: Likewise.
19488 * passes.c: Likewise.
19489 * postreload.c: Likewise.
19490 * postreload-gcse.c: Likewise.
19491 * profile.c: Likewise.
19492 * recog.c: Likewise.
19493 * regstat.c: Likewise.
19494 * reload1.c: Likewise.
19495 * reorg.c: Likewise.
19496 * rtlanal.c: Likewise.
19497 * sched-ebb.c: Likewise.
19498 * sel-sched-ir.c: Likewise.
19499 * sese.c: Likewise.
19500 * shrink-wrap.c: Likewise.
19501 * simplify-rtx.c: Likewise.
19502 * stmt.c: Likewise.
19503 * store-motion.c: Likewise.
19504 * tracer.c: Likewise.
19505 * trans-mem.c: Likewise.
19506 * tree-call-cdce.c: Likewise.
19507 * tree-cfg.c: Likewise.
19508 * tree-cfgcleanup.c: Likewise.
19509 * tree-chkp.c: Likewise.
19510 * tree-complex.c: Likewise.
19511 * tree-eh.c: Likewise.
19512 * tree-if-conv.c: Likewise.
19513 * tree-loop-distribution.c: Likewise.
19514 * tree-outof-ssa.c: Likewise.
19515 * tree-parloops.c: Likewise.
19516 * tree-predcom.c: Likewise.
19517 * tree-pretty-print.c: Likewise.
19518 * tree-profile.c: Likewise.
19519 * tree-sra.c: Likewise.
19520 * tree-ssa.c: Likewise.
19521 * tree-ssa-coalesce.c: Likewise.
19522 * tree-ssa-dce.c: Likewise.
19523 * tree-ssa-dom.c: Likewise.
19524 * tree-ssa-forwprop.c: Likewise.
19525 * tree-ssa-ifcombine.c: Likewise.
19526 * tree-ssa-loop-ch.c: Likewise.
19527 * tree-ssa-loop-im.c: Likewise.
19528 * tree-ssa-loop-ivcanon.c: Likewise.
19529 * tree-ssa-loop-ivopts.c: Likewise.
19530 * tree-ssa-loop-manip.c: Likewise.
19531 * tree-ssa-loop-prefetch.c: Likewise.
19532 * tree-ssa-loop-unswitch.c: Likewise.
19533 * tree-ssa-math-opts.c: Likewise.
19534 * tree-ssa-phiopt.c: Likewise.
19535 * tree-ssa-pre.c: Likewise.
19536 * tree-ssa-reassoc.c: Likewise.
19537 * tree-ssa-sink.c: Likewise.
19538 * tree-ssa-tail-merge.c: Likewise.
19539 * tree-ssa-threadedge.c: Likewise.
19540 * tree-ssa-threadupdate.c: Likewise.
19541 * tree-switch-conversion.c: Likewise.
19542 * tree-tailcall.c: Likewise.
19543 * tree-vect-data-refs.c: Likewise.
19544 * tree-vect-loop.c: Likewise.
19545 * tree-vect-loop-manip.c: Likewise.
19546 * tree-vectorizer.c: Likewise.
19547 * tree-vrp.c: Likewise.
19548 * ubsan.c: Likewise.
19549 * value-prof.c: Likewise.
19550 * varasm.c: Likewise.
19551 * var-tracking.c: Likewise.
19552 * config/aarch64/aarch64-builtins.c: Likewise.
19553 * config/aarch64/aarch64.c: Likewise.
19554 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19555 * config/alpha/alpha.c: Likewise.
19556 * config/arc/arc.c: Likewise.
19557 * config/arm/arm.c: Likewise.
19558 * config/avr/avr.c: Likewise.
19559 * config/bfin/bfin.c: Likewise.
19560 * config/c6x/c6x.c: Likewise.
19561 * config/cr16/cr16.c: Likewise.
19562 * config/cris/cris.c: Likewise.
19563 * config/darwin.c: Likewise.
19564 * config/darwin-c.c: Likewise.
19565 * config/epiphany/epiphany.c: Likewise.
19566 * config/epiphany/mode-switch-use.c: Likewise.
19567 * config/epiphany/resolve-sw-modes.c: Likewise.
19568 * config/fr30/fr30.c: Likewise.
19569 * config/frv/frv.c: Likewise.
19570 * config/ft32/ft32.c: Likewise.
19571 * config/h8300/h8300.c: Likewise.
19572 * config/i386/i386.c: Likewise.
19573 * config/i386/winnt.c: Likewise.
19574 * config/ia64/ia64.c: Likewise.
19575 * config/iq2000/iq2000.c: Likewise.
19576 * config/lm32/lm32.c: Likewise.
19577 * config/m32c/m32c.c: Likewise.
19578 * config/m32r/m32r.c: Likewise.
19579 * config/m68k/m68k.c: Likewise.
19580 * config/mcore/mcore.c: Likewise.
19581 * config/mep/mep.c: Likewise.
19582 * config/microblaze/microblaze.c: Likewise.
19583 * config/mips/mips.c: Likewise.
19584 * config/mmix/mmix.c: Likewise.
19585 * config/mn10300/mn10300.c: Likewise.
19586 * config/moxie/moxie.c: Likewise.
19587 * config/msp430/msp430.c: Likewise.
19588 * config/nds32/nds32.c: Likewise.
19589 * config/nds32/nds32-cost.c: Likewise.
19590 * config/nds32/nds32-fp-as-gp.c: Likewise.
19591 * config/nds32/nds32-intrinsic.c: Likewise.
19592 * config/nds32/nds32-isr.c: Likewise.
19593 * config/nds32/nds32-md-auxiliary.c: Likewise.
19594 * config/nds32/nds32-memory-manipulation.c: Likewise.
19595 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19596 * config/nds32/nds32-predicates.c: Likewise.
19597 * config/nios2/nios2.c: Likewise.
19598 * config/nvptx/nvptx.c: Likewise.
19599 * config/pa/pa.c: Likewise.
19600 * config/pdp11/pdp11.c: Likewise.
19601 * config/rl78/rl78.c: Likewise.
19602 * config/rs6000/rs6000.c: Likewise.
19603 * config/rx/rx.c: Likewise.
19604 * config/s390/s390.c: Likewise.
19605 * config/sh/sh.c: Likewise.
19606 * config/sh/sh-mem.cc: Likewise.
19607 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19608 * config/sh/sh_treg_combine.cc: Likewise.
19609 * config/sparc/sparc.c: Likewise.
19610 * config/spu/spu.c: Likewise.
19611 * config/stormy16/stormy16.c: Likewise.
19612 * config/tilegx/tilegx.c: Likewise.
19613 * config/tilepro/tilepro.c: Likewise.
19614 * config/v850/v850.c: Likewise.
19615 * config/vax/vax.c: Likewise.
19616 * config/visium/visium.c: Likewise.
19617 * config/xtensa/xtensa.c: Likewise.
19619 2015-07-10 Richard Biener <rguenther@suse.de>
19621 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
19622 (decision_tree::gen_gimple): Likewise.
19623 (decision_tree::gen_generic): Likewise.
19625 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
19628 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
19629 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
19631 2015-07-10 Jakub Jelinek <jakub@redhat.com>
19633 PR middle-end/66820
19634 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
19635 or ORT_TASK contexts.
19636 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
19639 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19641 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
19644 2015-07-10 Tom de Vries <tom@codesourcery.com>
19646 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
19647 insert nit + 1 bound.
19649 2015-07-10 Richard Biener <rguenther@suse.de>
19651 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
19652 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
19653 (if_convertible_loop_p_1): For this always compute bb predicates.
19654 (if_convertible_loop_p): And free them.
19656 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19658 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
19661 2015-07-10 Richard Biener <rguenther@suse.de>
19663 PR tree-optimization/66823
19664 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
19665 inverted predicate.
19667 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
19669 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
19670 to handle mips[32|64]r3 and mips[32|64]r5.
19672 2015-07-09 Jakub Jelinek <jakub@redhat.com>
19674 PR middle-end/66633
19675 * tree-nested.c (get_static_chain): Or in a flag into
19676 info->static_chain_added.
19677 (get_frame_field, get_nonlocal_debug_decl): Likewise.
19678 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
19679 2015-07-01 changes.
19680 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
19681 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
19684 PR tree-optimization/66718
19685 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
19687 (vect_simd_lane_linear): New function.
19688 (vectorizable_simd_clone_call): Support using linear arguments for
19689 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
19691 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19694 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
19696 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
19698 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
19699 Use machine mode, not enum machine_mode in the prototype.
19701 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
19702 classify 128-bit floating point support.
19703 (FLOAT128_IBM_P): Likewise.
19704 (FLOAT128_VECTOR_P): Likewise.
19705 (FLOAT128_2REG_P): Likewise.
19706 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
19707 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
19708 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
19709 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
19711 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
19712 tests against TFmode/TDmode, since those modes do not use VSX
19714 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
19716 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
19717 tests against TFmode, etc.
19718 (invalid_e500_subreg): Add tests against IFmode/KFmode.
19719 (reg_offset_addressing_ok_p): Likewise.
19720 (rs6000_legitimate_offset_address_p): Likewise.
19721 (rs6000_legitimize_address): Likewise.
19722 (rs6000_legitimize_reload_address): Likewise.
19723 (rs6000_legitimate_address_p): Clean up tests against TFmode and
19724 TDmode to use the new helper macros, which will include IFmode and
19726 (rs6000_emit_move): Likewise.
19727 (rs6000_darwin64_record_arg_recurse): Likewise.
19728 (print_operand): Likewise.
19729 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
19730 that uses a single vector register as a vector and not as a
19731 floating point register in terms of the calling sequence.
19732 (rs6000_discover_homogeneous_aggregate): Likewise.
19733 (rs6000_return_in_memory): Likewise.
19734 (init_cumulative_args): Likewise.
19735 (rs6000_function_arg_boundary): Likewise.
19736 (rs6000_function_arg_advance_1): Likewise.
19737 (rs6000_function_arg): Likewise.
19738 (rs6000_pass_by_reference): Likewise.
19739 (rs6000_gimplify_va_arg): Likewise.
19740 (rs6000_secondary_reload_memory): Use machine_mode not enum
19742 (rs6000_split_multireg_move): Use new helper macros.
19743 (spe_func_has_64bit_regs_p): Likewise.
19744 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
19745 (output_toc): Use new helper macros.
19746 (rs6000_register_move_cost): Likewise.
19747 (rs6000_function_value): Add IEEE 128-bit floating point calling
19749 (rs6000_libcall_value): Likewise.
19750 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
19751 floating point support.
19752 (rs6000_vector_mode_supported_p): Likewise.
19754 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
19756 PR rtl-optimization/66782
19757 * lra-int.h (struct lra_insn_recog_data): Add comment about
19758 clobbered hard regs for arg_hard_regs.
19759 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
19760 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
19761 Add condition for processing used hard regs.
19762 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
19763 Process clobbered hard regs.
19765 2015-07-09 Michael Matz <matz@suse.de>
19767 * genmatch.c (fprintf_indent): New function.
19768 (operand::gen_transform): Add indent parameter.
19769 (expr::gen_transform, c_expr::gen_transform,
19770 capture::gen_transform): Ditto and use fprintf_indent.
19771 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
19772 (dt_operand::gen, dt_operand::gen_predicate,
19773 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
19774 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
19775 (decision_tree::gen_gimple): Adjust calls and indent generated
19777 (decision_tree::gen_generic): Ditto.
19778 (write_predicate): Ditto.
19780 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
19783 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
19784 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
19785 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
19786 {GENERAL,SSE,MMX}_REG_P where appropriate.
19788 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
19790 * lto-streamer.h: Don't include target.h and alloc-pool.h.
19791 * builtins.c: Adjust includes.
19792 * gimple.c: Likewise.
19793 * ipa-icf.c: Likewise.
19794 * lto-opts.c: Likewise.
19795 * ipa-reference.c: Likewise.
19796 * lto-section-out.c: Likewise.
19797 * lto-streamer-in.c: Likewise.
19798 * lto-streamer-out.c: Likewise.
19799 * opts-global.c: Likewise.
19800 * symtab.c: Likewise.
19801 * tree-chkp.c: Likewise.
19802 * tree-ssa-live.c: Likewise.
19803 * tree-streamer-in.c: Likewise.
19804 * tree-streamer-out.c: Likewise.
19805 * config/darwin.c: Likewise.
19806 * config/i386/winnt.c: Likewise.
19808 2015-07-09 Richard Biener <rguenther@suse.de>
19810 * genmatch.c (struct expr): Add force_single_use flag.
19811 (expr::expr): Add copy constructor.
19812 (capture_info::walk_match): Gather force_single_use captures.
19813 (expr::gen_transform): Use possibly NULLified sequence.
19814 (dt_simplify::gen): Apply single-use restrictions by NULLifying
19815 seq if any constrained expr is not single-use.
19816 (parser::parse_expr): Refactor to allow multiple flags. Handle
19817 's' flag to force an expression have a single-use if the pattern
19818 simplifies to more than one statement.
19819 * match.pd: Convert most single_use conditionals to :s flags.
19821 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19823 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
19824 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19825 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
19827 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
19829 * flags.h: Don't include flag-types.h or options.h.
19830 * opts-common.c: Adjust includes.
19831 * opts-global.c: Likewise.
19832 * common/config/epiphany/epiphany-common.c: Likewise.
19834 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19837 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
19840 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
19843 * config/i386/i386.c (ix86_return_in_memory): Return true
19844 if int_size_in_bytes returns negative for IA MCU.
19846 2015-07-09 Marek Polacek <polacek@redhat.com>
19848 PR tree-optimization/66718
19849 * Makefile.in (OBJS): Add gimple-laddress.o.
19850 * passes.def: Schedule pass_laddress.
19851 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
19852 * tree-pass.h (make_pass_laddress): Declare.
19853 * gimple-laddress.c: New file.
19855 2015-07-09 Richard Biener <rguenther@suse.de>
19857 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
19859 2015-07-09 Richard Biener <rguenther@suse.de>
19861 PR tree-optimization/66807
19862 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
19864 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
19866 * function.c (stack_protect_epilogue): Use if rather than switch for
19867 check targetm.have_stack_protect_test.
19869 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19871 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
19872 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
19873 * config/arc/arc.h: Likewise.
19874 * config/arm/arm.h: Likewise.
19875 * config/bfin/bfin.h: Likewise.
19876 * config/epiphany/epiphany.h: Likewise.
19877 * config/frv/frv.h: Likewise.
19878 * config/ia64/ia64.h: Likewise.
19879 * config/iq2000/iq2000.h: Likewise.
19880 * config/lm32/lm32.h: Likewise.
19881 * config/m32r/m32r.h: Likewise.
19882 * config/mcore/mcore.h: Likewise.
19883 * config/mep/mep.h: Likewise.
19884 * config/microblaze/microblaze.h: Likewise.
19885 * config/mips/mips.h: Likewise.
19886 * config/mmix/mmix.h: Likewise.
19887 * config/mn10300/mn10300.h: Likewise.
19888 * config/nds32/nds32.h: Likewise.
19889 * config/nios2/nios2.h: Likewise.
19890 * config/pa/pa.h: Likewise.
19891 * config/rl78/rl78.h: Likewise.
19892 * config/sh/sh.h: Likewise.
19893 * config/sparc/sparc.h: Likewise.
19894 * config/stormy16/stormy16.h: Likewise.
19895 * config/tilegx/tilegx.h: Likewise.
19896 * config/tilepro/tilepro.h: Likewise.
19897 * config/v850/v850.h: Likewise.
19898 * config/xtensa/xtensa.h: Likewise.
19899 * doc/tm.texi: Regenerate.
19900 * doc/tm.texi.in: Adjust.
19901 * combine.c (simplify_set): Likewise.
19902 (simplify_comparison): Likewise.
19903 * expr.c (store_constructor): Likewise.
19904 * internal-fn.c (expand_arith_overflow): Likewise.
19905 * reload.c (push_reload): Likewise.
19906 (find_reloads): Likewise.
19907 (find_reloads_subreg_address): Likewise.
19908 * reload1.c (eliminate_regs_1): Likewise.
19909 * rtlanal.c (nonzero_bits1): Likewise.
19910 (num_sign_bit_copies1): Likewise.
19911 * simplify-rtx.c (simplify_truncation): Likewise.
19913 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19915 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
19916 of AUTO_INC_DEC with the preprocessor.
19917 * combine.c (combine_instructions): Likewise.
19918 (can_combine_p): Likewise.
19919 (try_combine): Likewise.
19920 * emit-rtl.c (try_split): Likewise.
19921 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
19922 * lower-subreg.c (resolve_simple_move): Likewise.
19923 * lra.c (update_inc_notes): Likewise.
19924 * recog.c (asm_operand_ok): Likewise.
19925 (constrain_operands): Likewise.
19926 * regrename.c (scan_rtx_address): Likewise.
19927 * reload.c (update_auto_inc_notes): Likewise.
19928 (reg_inc_found_and_valid_p): Likewise.
19929 * reload1.c (reload): Likewise.
19930 (emit_input_reload_insns): Likewise.
19931 (delete_output_reload): Likewise.
19932 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
19933 * valtrack.c (cleanup_auto_inc_dec): Likewise.
19935 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19937 * rtl.h: Always define AUTO_INC_DEC.
19938 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
19939 * combine.c (combine_instructions): Likewise.
19940 (can_combine_p): Likewise.
19941 (try_combine): Likewise.
19942 * emit-rtl.c (try_split): Likewise.
19943 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
19944 * lower-subreg.c (resolve_simple_move): Likewise.
19945 * lra.c (update_inc_notes): Likewise.
19946 * recog.c (asm_operand_ok): Likewise.
19947 (constrain_operands): Likewise.
19948 * regrename.c (scan_rtx_address): Likewise.
19949 * reload.c (update_auto_inc_notes): Likewise.
19950 (find_equiv_reg): Likewise.
19951 * reload1.c (reload): Likewise.
19952 (reload_as_needed): Likewise.
19953 (choose_reload_regs): Likewise.
19954 (emit_input_reload_insns): Likewise.
19955 (delete_output_reload): Likewise.
19956 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
19957 * valtrack.c (cleanup_auto_inc_dec): Likewise.
19959 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19961 * combine.c (can_combine_def_p): Don't check the value of
19962 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
19963 (combinable_i3pat): Likewise.
19964 (mark_used_regs_combine): Likewise.
19965 * regrename.c (rename_chains): Likewise.
19966 * reload.c (find_reloads_address): Likewise.
19967 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
19969 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19971 * combine.c (update_rsp_from_reg_equal): Don't check if
19972 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
19973 (reg_nonzero_bits_for_combine): Likewise.
19974 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
19976 * config/frv/frv.h: Likewise.
19977 * config/lm32/lm32.h: Likewise.
19978 * config/mep/mep.h: Likewise.
19979 * config/mips/mips.h: Likewise.
19980 * config/rs6000/rs6000.h: Likewise.
19981 * config/sh/sh.h: Likewise.
19982 * config/tilegx/tilegx.h (enum reg_class): Likewise.
19983 * config/tilepro/tilepro.h: Likewise.
19984 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
19985 * doc/tm.texi: Regenerate.
19986 * doc/tm.texi.in: Adjust.
19987 * rtlanal.c (nonzero_bits1): Likewise.
19989 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19991 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
19992 with the preprocessor.
19993 (combine_instructions): Likewise.
19994 (try_combine): Likewise.
19996 (distribute_notes): Likewise.
19998 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20000 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
20002 (simplify_set): Likewise.
20003 * cse.c (cse_insn): Likewise.
20004 * fold-const.c (fold_single_bit_test): Likewise.
20005 (fold_unary_loc): Likewise.
20006 * postreload.c (reload_cse_simplify_set): Likewise.
20007 (reload_cse_simplify_operands): Likewise.
20009 2015-07-08 Jiong Wang <jiong.wang@arm.com>
20011 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
20012 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
20014 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
20017 * config/i386/x86intrin.h: Include <adxintrin.h> even if
20018 __iamcu__ is defined.
20020 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20022 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
20024 2015-07-08 Iain Sandoe <iain@codesourcery.com>
20027 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
20028 names from preservation.
20030 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
20033 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
20035 (function_arg_advance_32): Don't pass vectors in registers for
20037 (function_arg_32): Likewise.
20038 (ix86_return_in_memory): Don't return vectors in registers for
20041 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
20043 PR middle-end/66334
20044 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
20045 hard regno live at the start of BB with incoming abnormal edges.
20046 * lra-lives.c (process_bb_lives): Ditto.
20048 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
20051 * config/nvptx/mkoffload.c (main): Create an offload image only in
20052 64-bit configurations.
20054 2015-07-08 Martin Liska <mliska@suse.cz>
20057 * tree-sra.c (create_access_1): Call ctor without brackets.
20058 (create_artificial_child_access): Likewise.
20060 2015-07-08 Richard Biener <rguenther@suse.de>
20062 PR tree-optimization/66793
20063 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
20064 Properly split the block after stmts ending it.
20066 2015-07-08 Richard Biener <rguenther@suse.de>
20068 PR tree-optimization/66794
20069 * passes.c (execute_function_todo): Assert that post-dominators
20071 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
20072 Free post-dominators.
20074 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20076 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
20079 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20081 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
20082 more than or equal 8 and less than 32 when optimizing for size.
20084 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20086 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
20087 COSTS_N_INSNS (1) and increment it appropriately throughout the
20090 2015-07-08 Richard Biener <rguenther@suse.de>
20092 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
20094 2015-07-08 Alan Modra <amodra@gmail.com>
20096 * target.def (rtx_costs): Remove "code" param, add "mode".
20097 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
20098 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
20099 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
20100 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
20101 call. Track mode when given in rtx.
20102 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
20103 (default_address_cost): Pass Pmode to rtx_cost.
20104 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
20105 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
20107 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
20108 (notreg_cost): Add mode param. Use it.
20109 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
20110 mode param and pass to set_src_cost. Update all calls.
20111 (hash_scan_set): Formatting.
20112 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
20113 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
20115 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
20116 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
20117 emit_store_flag): Update set_src_cost and rtx_cost calls.
20118 * auto-inc-dec.c (attempt_change): Likewise.
20119 * calls.c (precompute_register_parameters): Likewise.
20120 * combine.c (expand_compound_operation, make_extraction,
20121 force_to_mode, distribute_and_simplify_rtx): Likewise.
20122 * dojump.c (prefer_and_bit_test): Likewise.
20123 * dse.c (find_shift_sequence): Likewise.
20124 * expr.c (compress_float_constant): Likewise.
20125 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
20126 * ifcvt.c (noce_try_sign_mask): Likewise.
20127 * loop-doloop.c (doloop_optimize): Likewise.
20128 * loop-invariant.c (create_new_invariant): Likewise.
20129 * lower-subreg.c (shift_cost, compute_costs): Likewise.
20130 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
20131 lshift_cheap_p): Likewise.
20132 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
20133 try_replace_in_use, reload_cse_move2add): Likewise.
20134 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
20136 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
20137 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
20138 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
20139 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
20140 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
20141 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
20143 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
20144 * config/arc/arc.c (arc_rtx_costs): Likewise.
20145 * config/arm/arm.c (arm_rtx_costs): Likewise.
20146 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
20147 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
20148 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
20149 * config/cris/cris.c (cris_rtx_costs): Likewise.
20150 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
20151 * config/frv/frv.c (frv_rtx_costs): Likewise.
20152 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
20153 * config/i386/i386.c (ix86_rtx_costs): Likewise.
20154 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
20155 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
20156 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
20157 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
20158 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
20159 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
20160 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
20161 * config/mep/mep.c (mep_rtx_cost): Likewise.
20162 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
20163 * config/mips/mips.c (mips_rtx_costs): Likewise.
20164 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
20165 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
20166 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
20167 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
20168 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
20169 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
20170 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
20171 * config/pa/pa.c (hppa_rtx_costs): Likewise.
20172 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
20173 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
20174 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
20175 * config/s390/s390.c (s390_rtx_costs): Likewise.
20176 * config/sh/sh.c (sh_rtx_costs): Likewise.
20177 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
20178 * config/spu/spu.c (spu_rtx_costs): Likewise.
20179 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
20180 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
20181 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
20182 * config/v850/v850.c (v850_rtx_costs): Likewise.
20183 * config/vax/vax.c (vax_rtx_costs): Likewise.
20184 * config/visium/visium.c (visium_rtx_costs): Likewise.
20185 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
20186 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
20187 "code" param, and pass as outer_code to first rtx_cost call. Pass
20188 mode to rtx_cost calls.
20189 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
20191 (aarch64_rtx_costs_wrapper): Update.
20192 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
20193 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
20195 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
20196 and rtx_cost calls.
20197 (avr_operand_rtx_cost): Similarly.
20198 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
20199 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
20200 * config/mips/mips.c (mips_stack_address_p): Comment typo.
20201 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
20202 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
20203 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
20205 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
20206 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
20207 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
20208 * doc/tm.texi: Regenerate.
20210 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
20212 * tree-core.h: Include symtab.h.
20213 * rtl.h: Include hard-reg-set.h but not flags.h.
20214 (HARD_CONST): Remove condition compilation involving HARD_CONST since
20215 hard-reg-set.h is always included.
20216 * regs.h: Don't include hard-reg-set.h or rtl.h.
20217 * cfg.h: Include dominance.h.
20218 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
20219 * backend.h: New. Aggregate commonly used backend header files.
20220 * gimple-ssa.h: Don't include tree-hasher.h.
20221 * ssa.h: New. Aggregate commonly used SSA header files.
20222 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
20223 * sel-sched-ir.h: Flatten includes.
20224 * lra-int.h: Flatten completely.
20225 * sel-sched-dump.h: Flatten includes.
20226 * ira-int.h: Flatten includes.
20227 * gimple-streamer.h: Remove all includes.
20228 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
20229 * resource.h: Flatten hard-reg-set.h and df.h.
20230 * sched-int.h: Flatten insn-arrt.h and df.h.
20231 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
20232 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
20233 * genattrtab.c (write_header): Adjust generated includes.
20234 * genautomata.c (main): Likewise.
20235 * genconditions.c (write-header): Likewise.
20236 * genemit.c (main): Likewise.
20237 * gengtype.c (open_base_files): Likewise.
20238 * genopinit.c (main): Likewise.
20239 * genoutput.c (output_prologue): Likewise.
20240 * genpeep.c (main): Likewise.
20241 * genpreds.c (write_insn_preds_c): Likewise.
20242 * genrecog.c (write_header): Likewise.
20243 * alias.c: Adjust includes.
20244 * asan.c: Likewise.
20245 * attribs.c: Likewise.
20246 * auto-inc-dec.c: Likewise.
20247 * auto-profile.c: Likewise.
20248 * bb-reorder.c: Likewise.
20249 * bt-load.c: Likewise.
20250 * builtins.c: Likewise.
20251 * caller-save.c: Likewise.
20252 * calls.c: Likewise.
20253 * ccmp.c: Likewise.
20255 * cfganal.c: Likewise.
20256 * cfgbuild.c: Likewise.
20257 * cfgcleanup.c: Likewise.
20258 * cfgexpand.c: Likewise.
20259 * cfghooks.c: Likewise.
20260 * cfgloop.c: Likewise.
20261 * cfgloopanal.c: Likewise.
20262 * cfgloopmanip.c: Likewise.
20263 * cfgrtl.c: Likewise.
20264 * cgraph.c: Likewise.
20265 * cgraphbuild.c: Likewise.
20266 * cgraphclones.c: Likewise.
20267 * cgraphunit.c: Likewise.
20268 * cilk-common.c: Likewise.
20269 * combine-stack-adj.c: Likewise.
20270 * combine.c: Likewise.
20271 * compare-elim.c: Likewise.
20272 * convert.c: Likewise.
20273 * coverage.c: Likewise.
20274 * cppbuiltin.c: Likewise.
20275 * cprop.c: Likewise.
20277 * cselib.c: Likewise.
20278 * data-streamer-in.c: Likewise.
20279 * data-streamer-out.c: Likewise.
20280 * data-streamer.c: Likewise.
20281 * dbxout.c: Likewise.
20284 * debug.c: Likewise.
20285 * df-core.c: Likewise.
20286 * df-problems.c: Likewise.
20287 * df-scan.c: Likewise.
20289 * dojump.c: Likewise.
20290 * dominance.c: Likewise.
20291 * domwalk.c: Likewise.
20292 * double-int.c: Likewise.
20294 * dumpfile.c: Likewise.
20295 * dwarf2asm.c: Likewise.
20296 * dwarf2cfi.c: Likewise.
20297 * dwarf2out.c: Likewise.
20298 * emit-rtl.c: Likewise.
20299 * et-forest.c: Likewise.
20300 * except.c: Likewise.
20301 * explow.c: Likewise.
20302 * expmed.c: Likewise.
20303 * expr.c: Likewise.
20304 * final.c: Likewise.
20305 * fixed-value.c: Likewise.
20306 * fold-const.c: Likewise.
20307 * function.c: Likewise.
20308 * fwprop.c: Likewise.
20309 * gcc-plugin.h: Likewise.
20310 * gcse-common.c: Likewise.
20311 * gcse.c: Likewise.
20312 * generic-match-head.c: Likewise.
20313 * ggc-page.c: Likewise.
20314 * gimple-builder.c: Likewise.
20315 * gimple-expr.c: Likewise.
20316 * gimple-fold.c: Likewise.
20317 * gimple-iterator.c: Likewise.
20318 * gimple-low.c: Likewise.
20319 * gimple-match-head.c: Likewise.
20320 * gimple-pretty-print.c: Likewise.
20321 * gimple-ssa-isolate-paths.c: Likewise.
20322 * gimple-ssa-strength-reduction.c: Likewise.
20323 * gimple-streamer-in.c: Likewise.
20324 * gimple-streamer-out.c: Likewise.
20325 * gimple-walk.c: Likewise.
20326 * gimple.c: Likewise.
20327 * gimplify-me.c: Likewise.
20328 * gimplify.c: Likewise.
20329 * godump.c: Likewise.
20330 * graph.c: Likewise.
20331 * graphite-blocking.c: Likewise.
20332 * graphite-dependences.c: Likewise.
20333 * graphite-interchange.c: Likewise.
20334 * graphite-isl-ast-to-gimple.c: Likewise.
20335 * graphite-optimize-isl.c: Likewise.
20336 * graphite-poly.c: Likewise.
20337 * graphite-scop-detection.c: Likewise.
20338 * graphite-sese-to-poly.c: Likewise.
20339 * graphite.c: Likewise.
20340 * haifa-sched.c: Likewise.
20341 * hw-doloop.c: Likewise.
20342 * ifcvt.c: Likewise.
20343 * init-regs.c: Likewise.
20344 * internal-fn.c: Likewise.
20345 * ipa-chkp.c: Likewise.
20346 * ipa-comdats.c: Likewise.
20347 * ipa-cp.c: Likewise.
20348 * ipa-devirt.c: Likewise.
20349 * ipa-icf-gimple.c: Likewise.
20350 * ipa-icf.c: Likewise.
20351 * ipa-inline-analysis.c: Likewise.
20352 * ipa-inline-transform.c: Likewise.
20353 * ipa-inline.c: Likewise.
20354 * ipa-polymorphic-call.c: Likewise.
20355 * ipa-profile.c: Likewise.
20356 * ipa-prop.c: Likewise.
20357 * ipa-pure-const.c: Likewise.
20358 * ipa-ref.c: Likewise.
20359 * ipa-reference.c: Likewise.
20360 * ipa-split.c: Likewise.
20361 * ipa-utils.c: Likewise.
20362 * ipa-visibility.c: Likewise.
20364 * ira-build.c: Likewise.
20365 * ira-color.c: Likewise.
20366 * ira-conflicts.c: Likewise.
20367 * ira-costs.c: Likewise.
20368 * ira-emit.c: Likewise.
20369 * ira-lives.c: Likewise.
20371 * jump.c: Likewise.
20372 * langhooks.c: Likewise.
20374 * loop-doloop.c: Likewise.
20375 * loop-init.c: Likewise.
20376 * loop-invariant.c: Likewise.
20377 * loop-iv.c: Likewise.
20378 * loop-unroll.c: Likewise.
20379 * lower-subreg.c: Likewise.
20380 * lra-assigns.c: Likewise.
20381 * lra-coalesce.c: Likewise.
20382 * lra-constraints.c: Likewise.
20383 * lra-eliminations.c: Likewise.
20384 * lra-lives.c: Likewise.
20385 * lra-remat.c: Likewise.
20386 * lra-spills.c: Likewise.
20388 * lto-cgraph.c: Likewise.
20389 * lto-compress.c: Likewise.
20390 * lto-opts.c: Likewise.
20391 * lto-section-in.c: Likewise.
20392 * lto-section-out.c: Likewise.
20393 * lto-streamer-in.c: Likewise.
20394 * lto-streamer-out.c: Likewise.
20395 * lto-streamer.c: Likewise.
20397 * mode-switching.c: Likewise.
20398 * modulo-sched.c: Likewise.
20399 * omega.c: Likewise.
20400 * omp-low.c: Likewise.
20401 * optabs.c: Likewise.
20402 * opts-global.c: Likewise.
20403 * passes.c: Likewise.
20404 * plugin.c: Likewise.
20405 * postreload-gcse.c: Likewise.
20406 * postreload.c: Likewise.
20407 * predict.c: Likewise.
20408 * print-rtl.c: Likewise.
20409 * print-tree.c: Likewise.
20410 * profile.c: Likewise.
20411 * real.c: Likewise.
20412 * realmpfr.c: Likewise.
20413 * recog.c: Likewise.
20415 * reg-stack.c: Likewise.
20416 * regcprop.c: Likewise.
20417 * reginfo.c: Likewise.
20418 * regrename.c: Likewise.
20419 * regstat.c: Likewise.
20420 * reload.c: Likewise.
20421 * reload1.c: Likewise.
20422 * reorg.c: Likewise.
20423 * resource.c: Likewise.
20424 * rtl-chkp.c: Likewise.
20425 * rtlanal.c: Likewise.
20426 * rtlhooks.c: Likewise.
20427 * sanopt.c: Likewise.
20428 * sched-deps.c: Likewise.
20429 * sched-ebb.c: Likewise.
20430 * sched-rgn.c: Likewise.
20431 * sched-vis.c: Likewise.
20432 * sdbout.c: Likewise.
20433 * sel-sched-dump.c: Likewise.
20434 * sel-sched-ir.c: Likewise.
20435 * sel-sched.c: Likewise.
20436 * sese.c: Likewise.
20437 * shrink-wrap.c: Likewise.
20438 * simplify-rtx.c: Likewise.
20439 * stack-ptr-mod.c: Likewise.
20440 * stmt.c: Likewise.
20441 * stor-layout.c: Likewise.
20442 * store-motion.c: Likewise.
20443 * stringpool.c: Likewise.
20444 * symtab.c: Likewise.
20445 * target-globals.c: Likewise.
20446 * targhooks.c: Likewise.
20447 * toplev.c: Likewise.
20448 * tracer.c: Likewise.
20449 * trans-mem.c: Likewise.
20450 * tree-affine.c: Likewise.
20451 * tree-browser.c: Likewise.
20452 * tree-call-cdce.c: Likewise.
20453 * tree-cfg.c: Likewise.
20454 * tree-cfgcleanup.c: Likewise.
20455 * tree-chkp-opt.c: Likewise.
20456 * tree-chkp.c: Likewise.
20457 * tree-chrec.c: Likewise.
20458 * tree-complex.c: Likewise.
20459 * tree-data-ref.c: Likewise.
20460 * tree-dfa.c: Likewise.
20461 * tree-diagnostic.c: Likewise.
20462 * tree-dump.c: Likewise.
20463 * tree-eh.c: Likewise.
20464 * tree-emutls.c: Likewise.
20465 * tree-if-conv.c: Likewise.
20466 * tree-inline.c: Likewise.
20467 * tree-into-ssa.c: Likewise.
20468 * tree-iterator.c: Likewise.
20469 * tree-loop-distribution.c: Likewise.
20470 * tree-nested.c: Likewise.
20471 * tree-nrv.c: Likewise.
20472 * tree-object-size.c: Likewise.
20473 * tree-outof-ssa.c: Likewise.
20474 * tree-parloops.c: Likewise.
20475 * tree-phinodes.c: Likewise.
20476 * tree-predcom.c: Likewise.
20477 * tree-pretty-print.c: Likewise.
20478 * tree-profile.c: Likewise.
20479 * tree-scalar-evolution.c: Likewise.
20480 * tree-sra.c: Likewise.
20481 * tree-ssa-address.c: Likewise.
20482 * tree-ssa-alias.c: Likewise.
20483 * tree-ssa-ccp.c: Likewise.
20484 * tree-ssa-coalesce.c: Likewise.
20485 * tree-ssa-copy.c: Likewise.
20486 * tree-ssa-copyrename.c: Likewise.
20487 * tree-ssa-dce.c: Likewise.
20488 * tree-ssa-dom.c: Likewise.
20489 * tree-ssa-dse.c: Likewise.
20490 * tree-ssa-forwprop.c: Likewise.
20491 * tree-ssa-ifcombine.c: Likewise.
20492 * tree-ssa-live.c: Likewise.
20493 * tree-ssa-loop-ch.c: Likewise.
20494 * tree-ssa-loop-im.c: Likewise.
20495 * tree-ssa-loop-ivcanon.c: Likewise.
20496 * tree-ssa-loop-ivopts.c: Likewise.
20497 * tree-ssa-loop-manip.c: Likewise.
20498 * tree-ssa-loop-niter.c: Likewise.
20499 * tree-ssa-loop-prefetch.c: Likewise.
20500 * tree-ssa-loop-unswitch.c: Likewise.
20501 * tree-ssa-loop.c: Likewise.
20502 * tree-ssa-math-opts.c: Likewise.
20503 * tree-ssa-operands.c: Likewise.
20504 * tree-ssa-phiopt.c: Likewise.
20505 * tree-ssa-phiprop.c: Likewise.
20506 * tree-ssa-pre.c: Likewise.
20507 * tree-ssa-propagate.c: Likewise.
20508 * tree-ssa-reassoc.c: Likewise.
20509 * tree-ssa-sccvn.c: Likewise.
20510 * tree-ssa-scopedtables.c: Likewise.
20511 * tree-ssa-sink.c: Likewise.
20512 * tree-ssa-strlen.c: Likewise.
20513 * tree-ssa-structalias.c: Likewise.
20514 * tree-ssa-tail-merge.c: Likewise.
20515 * tree-ssa-ter.c: Likewise.
20516 * tree-ssa-threadedge.c: Likewise.
20517 * tree-ssa-threadupdate.c: Likewise.
20518 * tree-ssa-uncprop.c: Likewise.
20519 * tree-ssa-uninit.c: Likewise.
20520 * tree-ssa.c: Likewise.
20521 * tree-ssanames.c: Likewise.
20522 * tree-stdarg.c: Likewise.
20523 * tree-streamer-in.c: Likewise.
20524 * tree-streamer-out.c: Likewise.
20525 * tree-streamer.c: Likewise.
20526 * tree-switch-conversion.c: Likewise.
20527 * tree-tailcall.c: Likewise.
20528 * tree-vect-data-refs.c: Likewise.
20529 * tree-vect-generic.c: Likewise.
20530 * tree-vect-loop-manip.c: Likewise.
20531 * tree-vect-loop.c: Likewise.
20532 * tree-vect-patterns.c: Likewise.
20533 * tree-vect-slp.c: Likewise.
20534 * tree-vect-stmts.c: Likewise.
20535 * tree-vectorizer.c: Likewise.
20536 * tree-vrp.c: Likewise.
20537 * tree.c: Likewise.
20538 * tsan.c: Likewise.
20539 * ubsan.c: Likewise.
20540 * valtrack.c: Likewise.
20541 * value-prof.c: Likewise.
20542 * var-tracking.c: Likewise.
20543 * varasm.c: Likewise.
20544 * varpool.c: Likewise.
20545 * vmsdbgout.c: Likewise.
20546 * vtable-verify.c: Likewise.
20548 * wide-int.cc: Likewise.
20549 * xcoffout.c: Likewise.
20550 * config/aarch64/aarch64-builtins.c: Likewise.
20551 * config/aarch64/aarch64.c: Likewise.
20552 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20553 * config/alpha/alpha.c: Likewise.
20554 * config/arc/arc.c: Likewise.
20555 * config/arm/aarch-common.c: Likewise.
20556 * config/arm/arm-builtins.c: Likewise.
20557 * config/arm/arm-c.c: Likewise.
20558 * config/arm/arm.c: Likewise.
20559 * config/avr/avr-c.c: Likewise.
20560 * config/avr/avr-log.c: Likewise.
20561 * config/avr/avr.c: Likewise.
20562 * config/bfin/bfin.c: Likewise.
20563 * config/c6x/c6x.c: Likewise.
20564 * config/cr16/cr16.c: Likewise.
20565 * config/cris/cris.c: Likewise.
20566 * config/darwin-c.c: Likewise.
20567 * config/darwin.c: Likewise.
20568 * config/epiphany/epiphany.c: Likewise.
20569 * config/epiphany/mode-switch-use.c: Likewise.
20570 * config/epiphany/resolve-sw-modes.c: Likewise.
20571 * config/fr30/fr30.c: Likewise.
20572 * config/frv/frv.c: Likewise.
20573 * config/ft32/ft32.c: Likewise.
20574 * config/h8300/h8300.c: Likewise.
20575 * config/i386/i386-c.c: Likewise.
20576 * config/i386/i386.c: Likewise.
20577 * config/i386/msformat-c.c: Likewise.
20578 * config/i386/winnt-cxx.c: Likewise.
20579 * config/i386/winnt-stubs.c: Likewise.
20580 * config/i386/winnt.c: Likewise.
20581 * config/ia64/ia64-c.c: Likewise.
20582 * config/ia64/ia64.c: Likewise.
20583 * config/iq2000/iq2000.c: Likewise.
20584 * config/lm32/lm32.c: Likewise.
20585 * config/m32c/m32c-pragma.c: Likewise.
20586 * config/m32c/m32c.c: Likewise.
20587 * config/m32r/m32r.c: Likewise.
20588 * config/m68k/m68k.c: Likewise.
20589 * config/mcore/mcore.c: Likewise.
20590 * config/mep/mep-pragma.c: Likewise.
20591 * config/mep/mep.c: Likewise.
20592 * config/microblaze/microblaze-c.c: Likewise.
20593 * config/microblaze/microblaze.c: Likewise.
20594 * config/mips/mips.c: Likewise.
20595 * config/mmix/mmix.c: Likewise.
20596 * config/mn10300/mn10300.c: Likewise.
20597 * config/moxie/moxie.c: Likewise.
20598 * config/msp430/msp430-c.c: Likewise.
20599 * config/msp430/msp430.c: Likewise.
20600 * config/nds32/nds32-cost.c: Likewise.
20601 * config/nds32/nds32-fp-as-gp.c: Likewise.
20602 * config/nds32/nds32-intrinsic.c: Likewise.
20603 * config/nds32/nds32-isr.c: Likewise.
20604 * config/nds32/nds32-md-auxiliary.c: Likewise.
20605 * config/nds32/nds32-memory-manipulation.c: Likewise.
20606 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20607 * config/nds32/nds32-predicates.c: Likewise.
20608 * config/nds32/nds32.c: Likewise.
20609 * config/nios2/nios2.c: Likewise.
20610 * config/nvptx/nvptx.c: Likewise.
20611 * config/pa/pa.c: Likewise.
20612 * config/pdp11/pdp11.c: Likewise.
20613 * config/rl78/rl78-c.c: Likewise.
20614 * config/rl78/rl78.c: Likewise.
20615 * config/rs6000/rs6000-c.c: Likewise.
20616 * config/rs6000/rs6000.c: Likewise.
20617 * config/rx/rx.c: Likewise.
20618 * config/s390/s390-c.c: Likewise.
20619 * config/s390/s390.c: Likewise.
20620 * config/sh/sh-c.c: Likewise.
20621 * config/sh/sh-mem.cc: Likewise.
20622 * config/sh/sh.c: Likewise.
20623 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20624 * config/sh/sh_treg_combine.cc: Likewise.
20625 * config/sol2-c.c: Likewise.
20626 * config/sol2-cxx.c: Likewise.
20627 * config/sol2-stubs.c: Likewise.
20628 * config/sol2.c: Likewise.
20629 * config/sparc/sparc-c.c: Likewise.
20630 * config/sparc/sparc.c: Likewise.
20631 * config/spu/spu-c.c: Likewise.
20632 * config/spu/spu.c: Likewise.
20633 * config/stormy16/stormy16.c: Likewise.
20634 * config/tilegx/mul-tables.c: Likewise.
20635 * config/tilegx/tilegx-c.c: Likewise.
20636 * config/tilegx/tilegx.c: Likewise.
20637 * config/tilepro/mul-tables.c: Likewise.
20638 * config/tilepro/tilepro-c.c: Likewise.
20639 * config/tilepro/tilepro.c: Likewise.
20640 * config/v850/v850-c.c: Likewise.
20641 * config/v850/v850.c: Likewise.
20642 * config/vax/vax.c: Likewise.
20643 * config/visium/visium.c: Likewise.
20644 * config/vms/vms-c.c: Likewise.
20645 * config/vms/vms.c: Likewise.
20646 * config/vxworks.c: Likewise.
20647 * config/xtensa/xtensa.c: Likewise.
20649 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
20651 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
20652 Remove operand constraints. Change operand 2 predicate to
20653 nonmemory operand. Limit const_int values to mode bitsize. Only
20654 allow const_int values less than 32 when optimizing for size.
20655 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
20656 Remove operand constraints.
20657 (*bt<mode>): Use SImode for const_int values less than 32.
20658 (regmode): Remove mode attribute.
20660 2015-07-07 Anatoly Sokolov <aesok@post.ru>
20662 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
20663 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
20664 moxie_legitimate_address_p): New functions.
20665 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
20667 2015-07-07 Tom de Vries <tom@codesourcery.com>
20669 PR tree-optimization/66642
20670 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
20671 header comment. Rename split_edge variable to edge_at_split. Split
20672 exit edge to create new loop exit bb. Insert loop exit phis in new
20675 2015-07-07 Tom de Vries <tom@codesourcery.com>
20677 * tree-cfg.c (get_virtual_phi): New function.
20678 * tree-cfg.h (get_virtual_phi): Declare.
20679 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
20680 (rewrite_virtuals_into_loop_closed_ssa): New function.
20681 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
20683 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
20684 (transform_to_exit_first_loop_alt): Use
20685 rewrite_virtuals_into_loop_closed_ssa.
20687 2015-07-07 Richard Biener <rguenther@suse.de>
20689 * fold-const.c (fold_binary_loc): Move
20690 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
20691 * match.pd: ... here.
20692 Add (X * C1) % C2 -> 0 simplification pattern derived from
20695 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
20698 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
20699 change for target/65249.
20701 2015-07-07 Paulo Matos <pmatos@broadcom.com>
20703 * symtab.c (address_matters_1): Fix typo in comment above.
20704 (can_increase_alignment_p): Likewise.
20706 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20708 * function.c (free_after_compilation): Clear PROP_cfg in
20709 f->curr_properties.
20711 2015-07-07 Richard Biener <rguenther@suse.de>
20713 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
20715 (add_control_edge): Remove excessive vertical space in dumping.
20716 (process_ssa_edge_worklist): Simulate at most one statement and
20717 return whether we did. Do not simulate PHIs if they are in a
20718 BB not yet simulated.
20719 (ssa_propagate): Adjust to always drain the BB worklist whenever
20720 a BB is available there, likewise the VARYING edges list before
20721 the interesting edge list.
20723 2015-07-07 Christian Bruel <christian.bruel@st.com>
20726 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
20728 2015-07-07 Richard Biener <rguenther@suse.de>
20730 PR middle-end/66739
20731 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
20734 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
20736 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
20737 modes for operands 0 and 3. Use SImode for operands 2 and 3.
20738 Copy operand 0 to a temporary if !ext_register_operand. Remove
20739 ancient extract_bit_field workaround.
20740 (insv<mode>_1): Rename from mov<mode>_insv_1.
20741 (*insvqi): Rename from *movqi_insv_2.
20742 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
20743 for renamed insvsi_1.
20744 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
20746 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
20748 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
20749 call to nvptx_reorg_subreg.
20751 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
20753 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
20754 * graphite-dependencies.c, graphite-interchange.c,
20755 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
20756 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
20759 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
20761 * match.pd: Remove element_mode inside HONOR_*.
20762 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
20763 (~X | X -> -1, ~X ^ X -> -1): Merge.
20764 * tree.c (build_each_one_cst): New function.
20765 * tree.h (build_each_one_cst): Likewise.
20767 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
20769 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20772 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
20774 * config.gcc <mips*-*-*>: Add fused-madd.opt.
20775 * config/mips/mips.opt (mfused-madd): Remove.
20776 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
20777 * config/mips/mips.h (TARGET_MIPS8000): New.
20778 (ISA_HAS_FP_MADD4_MSUB4): Remove.
20779 (ISA_HAS_FP_MADDF_MSUBF): Remove.
20780 (ISA_HAS_FP_MADD3_MSUB3): Remove.
20781 (ISA_HAS_NMADD4_NMSUB4): Remove.
20782 (ISA_HAS_NMADD3_NMSUB3): Remove.
20783 (ISA_HAS_FUSED_MADD4): New.
20784 (ISA_HAS_UNFUSED_MADD4): New.
20785 (ISA_HAS_FUSED_MADDF): New.
20786 (ISA_HAS_FUSED_MADD3): New.
20787 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
20788 (*fma<mode>4_madd3) New.
20789 (*fma<mode>4_madd4) New.
20790 (*fma<mode>4_maddf) New.
20792 (*fms<mode>4_msub3) New.
20793 (*fms<mode>4_msub4) New.
20795 (*fnma<mode>4_nmadd3) New.
20796 (*fnma<mode>4_nmadd4) New.
20798 (*fnms<mode>4_nmsub3) New.
20799 (*fnms<mode>4_nmsub4) New.
20800 (*madd4<mode>) Modify to be unfused only.
20801 (*msub4<mode>) Modify to be unfused only.
20802 (*nmadd4<mode>) Modify to be unfused only.
20803 (*nmsub4<mode>) Modify to be unfused only.
20804 (*madd3<mode>) Remove.
20805 (*msub3<mode>) Remove.
20806 (*nmadd3<mode>) Remove.
20807 (*nmsub3<mode>) Remove.
20808 (*nmadd3<mode>_fastmath) Remove.
20809 (*nmsub3<mode>_fastmath) Remove.
20810 (*nmadd4<mode>_fastmath) Update condition.
20811 (*nmsub4<mode>_fastmath) Update condition.
20813 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
20816 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
20817 alignment attribute, exploring one level down for records and arrays.
20819 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
20821 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
20822 modes for operands 0 and 1. Use SImode for operands 2 and 3.
20823 Copy operand 1 to a temporary if !ext_register_operand. Remove
20824 ancient extract_bit_field workaround.
20825 (*extv<mode>): Rename from *mov<mode>_extv_1.
20826 (*extvqi): Rename from *movqi_extv_1.
20827 (extzv<mode>): Rename from extzv. Use SWI248 modes for
20828 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
20829 to a temporary if !ext_register_operand. Remove ancient
20830 extract_bit_field workaround.
20831 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
20832 (*extzvqi): Rename from *movqi_extzv_2.
20833 (*testqi_ext_3): Remove modes from const_int_operand predicated
20834 operands. Add "n" constraint.
20835 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
20836 operand. Add "J" constraint.
20837 (*btsq, *btrq, *btcq peephole2s): Remove mode from
20838 const_0_to_63 predicated operand.
20839 (regmode): New insn attribute.
20840 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
20841 to nonmemory_operand. Use regmode insn attribute.
20842 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
20843 (*jcc_bt<mode>_mask): Remove mode from operand 3.
20844 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
20845 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
20846 operands. Use "N" constraint instead of "n".
20848 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
20850 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
20852 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
20855 * config/i386/i386.c (iamcu_cost): New.
20856 (m_IAMCU): Likewise.
20857 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
20858 (processor_target_table): Add an entry for "iamcu".
20859 (processor_alias_table): Likewise.
20860 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
20861 (ix86_adjust_cost): Likewise.
20862 (ia32_multipass_dfa_lookahead): Likewise.
20863 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
20864 * config/i386/x86-tune.def: Updated for m_IAMCU.
20866 2015-07-06 Richard Biener <rguenther@suse.de>
20868 PR tree-optimization/66772
20869 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
20870 values are available in the PHI node BB when there are
20871 still unexecutable edges.
20873 2015-07-06 Richard Biener <rguenther@suse.de>
20875 PR tree-optimization/66767
20876 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
20877 Make sure to build the alignment test on a SSA name without
20878 final alignment info valid only if the alignment test
20881 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
20884 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
20885 loop start when inserting LSETUP.
20887 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
20890 * config/i386/i386.c (ix86_option_override_internal): Allow
20891 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
20893 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20895 * read-md.c (decimal_string): Rename to ...
20896 (md_decimal_string): ... this.
20897 (handle_enum): Reflect this.
20899 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
20902 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
20904 2015-07-06 Richard Biener <rguenther@suse.de>
20906 PR middle-end/66759
20907 * match.pd: Add missing constraint of y to REAL_CST in
20908 REAL_CST - x CMP y to y - CST CMP x simplification.
20910 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
20912 PR tree-optimization/66757
20913 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
20915 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
20916 Sandra Loosemore <sandra@codesourcery.com>
20918 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
20919 Delete extern declaration.
20920 (gprel_constant_p): Add extern declaration.
20921 * config/nios2/constraints.md ("S"): Use gprel_constant_p
20922 instead of nios2_symbol_ref_in_small_data_p.
20923 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
20924 (nios2_symbol_ref_in_small_data_p): Make static.
20925 (gprel_constant_p): Make non-static.
20927 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
20929 * doc/fragments.texi (Target Fragment): Convert debian.org
20931 * doc/install.texi (Configuration): Ditto.
20933 2015-07-05 Jakub Jelinek <jakub@redhat.com>
20935 PR tree-optimization/66718
20936 * tree-vect-stmts.c (vectorizable_call): Replace uses of
20937 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
20939 PR tree-optimization/66718
20940 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
20941 vectorizable_load, vectorizable_condition): Move vectype,
20942 nunits, ncopies computation after checking what kind of statement
20945 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20947 * target-insns.def (extv, extzv, insv): New targetm instruction
20949 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
20951 * recog.c (simplify_while_replacing): Likewise.
20953 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20955 * target-insns.def (doloop_begin, doloop_end): New targetm
20956 instruction patterns.
20957 * loop-init.c: Include target.h.
20958 (pass_loop2::gate): Use the new targetm patterns instead of
20959 HAVE_*/gen_* interface.
20960 (pass_rtl_doloop::gate): Likewise.
20961 (pass_rtl_doloop::execute): Remove preprocessor condition.
20962 * hw-doloop.c: Build unconditionally.
20963 * loop-doloop.c: Likewise.
20964 (doloop_optimize): Use the new targetm patterns instead of
20965 HAVE_*/gen_* interface.
20966 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
20967 * modulo-sched.c (doloop_register_get): Likewise.
20969 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20971 * target-insns.def (clear_cache): New targetm instruction pattern.
20972 * builtins.c (expand_builtin___clear_cache): Use it instead of
20973 HAVE_*/gen_* interface.
20975 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20977 * target-insns.def (allocate_stack, check_stack, probe_stack)
20978 (probe_stack_address, split_stack_prologue, split_stack_space_check):
20979 New targetm instruction patterns.
20980 * explow.c (allocate_dynamic_stack_space): Use them instead of
20981 HAVE_*/gen_* interface.
20982 (emit_stack_probe): Likewise.
20983 (probe_stack_range): Likewise.
20984 * function.c (thread_prologue_and_epilogue_insns): Likewise.
20986 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20988 * target-insns.def (stack_protect_set, stack_protect_test): New
20989 targetm instruction patterns.
20990 * cfgexpand.c (stack_protect_prologue): Use them instead of
20991 HAVE_*/gen_* interface.
20992 * function.c (stack_protect_epilogue): Likewise.
20994 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
20996 * expr.h (gen_move_insn_uncast): Delete.
20997 * expr.c (gen_move_insn_uncast): Delete.
20999 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21001 * target-insns.def (restore_stack_block, restore_stack_function)
21002 (restore_stack_nonlocal, save_stack_block, save_stack_function)
21003 (save_stack_nonlocal): New targetm instruction patterns.
21004 * builtins.c (expand_builtin_apply): Use them instead of
21005 HAVE_*/gen_* interface.
21006 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
21008 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21010 * target-insns.def (trap): New targetm instruction pattern.
21011 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
21013 * explow.c (allocate_dynamic_stack_space): Likewise.
21014 * ifcvt.c (find_if_header): Likewise.
21016 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21018 * target-insns.def (prefetch): New targetm instruction pattern.
21019 * tree-ssa-loop-prefetch.c: Include targeth.
21020 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
21021 of HAVE_*/gen_* interface.
21022 * builtins.c (expand_builtin_prefetch): Likewise.
21023 * toplev.c (process_options): Likewise.
21025 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21027 * target-insns.def (untyped_call, untyped_return): New targetm
21028 instruction patterns.
21029 * builtins.c (expand_builtin_apply): Use them instead of
21030 HAVE_*/gen_* interface.
21031 (result_vector): Define unconditionally.
21033 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21035 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
21036 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
21037 (nonlocal_goto_receiver): New targetm instruction patterns.
21038 * builtins.c (expand_builtin_setjmp_setup): Use them instead
21039 of HAVE_*/gen_* interface.
21040 (expand_builtin_setjmp_receiver): Likewise.
21041 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
21042 * except.c (expand_dw2_landing_pad_for_region): Likewise.
21044 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21046 * target.def: Add code_for_* hooks.
21047 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
21048 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
21049 * target-insns.def (casesi, tablejump): New targetm instruction
21051 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
21052 (do_tablejump): Likewise.
21053 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
21054 (expand_sjlj_dispatch_table): Likewise.
21055 * targhooks.c (default_case_values_threshold): Likewise.
21057 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
21059 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
21060 Use rtx_insn * instead of rtx.
21061 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
21062 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
21063 (nios2_call_tls_get_addr): Likewise.
21064 (nios2_emit_expensive_div): Likewise.
21065 (nios2_emit_move_sequence): Change return type to bool.
21066 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
21067 Change return type to bool.
21069 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
21072 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
21074 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
21077 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
21078 of register_operand. Remove constraint.
21080 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
21082 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
21083 the first argument.
21085 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
21087 * attribs.c (decl_attributes): Guard inform with the return value
21088 of the preceding warning.
21090 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
21092 * doc/invoke.texi (moverride): Move to correct section.
21094 2015-07-03 Richard Biener <rguenther@suse.de>
21096 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
21098 (dt_operand::gen_gimple_expr): After valueizing operands
21099 re-canonicalize operand order for commutative tree codes.
21101 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
21104 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
21106 (__crc32w): Likewise.
21107 (__crc32d): Likewise.
21108 (__rdpmc): Likewise.
21109 (__rdtscp): Likewise.
21110 (_rdpmc): Likewise.
21111 (_rdtscp): Likewise.
21112 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
21115 2015-07-03 Richard Biener <rguenther@suse.de>
21117 * fold-const.c (fold_mathfn_compare): Remove.
21118 (fold_inf_compare): Likewise.
21119 (fold_comparison): Move floating point comparison simplifications...
21120 * match.pd: ... to patterns here. Introduce simple_comparisons
21121 operator list and use it for patterns formerly in fold_comparison.
21123 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
21125 PR tree-optimization/66119
21126 * toplev.c (process_options): Don't set up default values for
21127 the sra_max_scalarization_size_{speed,size} parameters.
21128 * tree-sra (analyze_all_variable_accesses): If no values
21129 have been set for the sra_max_scalarization_size_{speed,size}
21130 parameters, call get_move_ratio to get target defaults.
21132 2015-07-03 Richard Biener <rguenther@suse.de>
21134 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
21135 * match.pd: ... here.
21137 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
21140 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
21141 is not actually the default on FreeBSD.
21143 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21145 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
21147 (CMPGE_8HI): Likewise.
21148 (CMPGE_4SI): Likewise.
21149 (CMPGE_2DI): Likewise.
21150 (CMPGE_U16QI): Likewise.
21151 (CMPGE_U8HI): Likewise.
21152 (CMPGE_U4SI): Likewise.
21153 (CMPGE_U2DI): Likewise.
21154 (CMPLE_16QI): Likewise.
21155 (CMPLE_8HI): Likewise.
21156 (CMPLE_4SI): Likewise.
21157 (CMPLE_2DI): Likewise.
21158 (CMPLE_U16QI): Likewise.
21159 (CMPLE_U8HI): Likewise.
21160 (CMPLE_U4SI): Likewise.
21161 (CMPLE_U2DI): Likewise.
21162 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21163 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
21164 ALTIVEC_BUILTIN_VEC_CMPLE.
21165 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
21166 floating-point vector modes.
21167 (vector_nlt<mode>): New define_expand.
21168 (vector_nltu<mode>): Likewise.
21169 (vector_ngt<mode>): Likewise.
21170 (vector_ngtu<mode>): Likewise.
21172 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
21174 PR rtl-optimization/66706
21175 * combine.c (make_compound_operation): If an AND of SUBREG of
21176 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
21178 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
21180 * tree-pass.h (make_pass_ch_vect): New.
21181 * passes.def: Add pass_ch_vect just before pass_if_conversion.
21183 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
21184 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
21185 make_pass_ch_vect): New.
21186 (pass_ch): Extend ch_base.
21188 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
21189 (ch_base::copy_headers): ...here.
21191 2015-07-02 Richard Biener <rguenther@suse.de>
21193 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
21194 * fold-const.c (get_pointer_modulus_and_residue): Remove.
21195 (fold_binary_loc): Implement (T)ptr & CST in terms of
21196 get_pointer_alignment_1.
21197 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
21198 Make sure to build the alignment test on a SSA name without
21199 final alignment info valid only after the prologue.
21201 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
21203 * config/cris/cris.md ("epilogue"): Remove condition.
21204 ("prologue"): Ditto.
21206 2015-07-02 Richard Biener <rguenther@suse.de>
21208 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
21209 parameter to record a condition that is false.
21210 (record_conditions): When recording an extra NE_EXPR that is
21211 true also record a EQ_EXPR that is false.
21213 2015-07-02 Bin Cheng <bin.cheng@arm.com>
21215 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
21216 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
21217 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
21218 (set_iv, find_interesting_uses_address, add_candidate_1): New
21219 argument to alloc_iv.
21220 (find_interesting_uses_op, find_interesting_uses_cond): Don't
21221 duplicate struct iv.
21222 (free_loop_data): Don't free struct iv explicitly.
21223 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
21225 2015-07-01 DJ Delorie <dj@redhat.com>
21227 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
21229 (SUPPORTS_DISCRIMINATOR): Define.
21231 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
21234 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
21235 there are no CALLs in the same pattern.
21237 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
21239 PR rtl-optimization/61047
21240 * rtlanal.c (get_initial_register_offset): New function.
21241 (rtx_addr_can_trap_p_1): Check offsets of stack references.
21243 2015-07-01 Richard Biener <rguenther@suse.de>
21245 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
21246 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
21247 ~X CMP C -> X CMP' ~C to ...
21248 * match.pd: ... patterns here.
21250 2015-07-01 Nick Clifton <nickc@redhat.com>
21252 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
21253 a 16-bit value into a 20-bit memory slot.
21255 2015-07-01 Jiong Wang <jiong.wang@arm.com>
21257 * doc/sourcebuild.texi (AArch64-specific attributes): Document
21258 "aarch64_tiny", "aarch64_small", "aarch64_large",
21259 "aarch64_little_endian", "aarch64_big_endian".
21261 2015-07-01 Jiong Wang <jiong.wang@arm.com>
21263 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
21264 Document "aarch64_small_fpic".
21266 2015-07-01 Jiong Wang <jiong.wang@arm.com>
21268 * configure.ac: Add check for aarch64 assembler -fpic relocation
21270 * configure: Regenerate.
21271 * config.in: Regenerate.
21272 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
21273 to -fPIC if not support of -fpic relocation modifier in assembler.
21275 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
21278 * rtl.c (classify_insn): Handle returns in PARALLELs.
21280 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
21282 PR middle-end/66633
21283 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
21284 to true if the function is nested and if not optimizing.
21285 (convert_local_omp_clauses): Initialize need_frame to true if the
21286 function contains nested functions and if not optimizing.
21288 2015-07-01 Richard Biener <rguenther@suse.de>
21290 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
21291 (X & Y) ^ Y -> ~X & Y transforms to ...
21292 * match.pd: ... here.
21294 2015-07-01 Richard Biener <rguenther@suse.de>
21296 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
21297 of converts to avoid uninteresting noise from the conversion
21298 simplifying patterns.
21300 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
21302 * config/c6x/c6x.c (try_rename_operands): Do not depend on
21303 gcc_assert evaluating its argument for side-effect.
21305 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
21308 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
21311 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
21313 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
21314 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
21315 (hash_scc): Add this_ref_p and ref_p parameters and pass them
21316 to the inner DFS walk.
21318 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21320 * target-insns.def (jump): New targetm instruction pattern.
21321 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
21322 instead of gen_jump.
21323 (fix_up_crossing_landing_pad): Likewise.
21324 (add_labels_and_missing_jumps): Likewise.
21325 (fix_crossing_conditional_branches): Likewise.
21326 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
21327 (force_nonfallthru_and_redirect): Likewise.
21328 * cse.c (cse_insn): Likewise.
21329 * expmed.c (expand_divmod): Likewise.
21330 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
21331 * haifa-sched.c (init_before_recovery): Likewise.
21332 (sched_create_recovery_edges): Likewise.
21333 * ifcvt.c (find_cond_trap): Likewise.
21334 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
21335 (expand_float, expand_fix): Likewise.
21336 * stmt.c (emit_jump): Likewise.
21338 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21340 * defaults.h (HAVE_load_multiple, gen_load_multiple)
21341 (HAVE_store_multiple, gen_store_multiple): Delete.
21342 * target-insns.def (load_multiple, store_multiple): New targetm
21343 instruction patterns.
21344 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
21345 of HAVE_*/gen_* interface.
21347 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21349 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
21350 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
21351 (gen_mem_signal_fence): Delete.
21352 * target-insns.def (mem_signal_fence, mem_thread_fence)
21353 (memory_barrier): New targetm instruction patterns.
21354 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
21356 (expand_mem_signal_fence): Likewise.
21358 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21360 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
21361 * target-insns.def (epilogue, prologue, sibcall_prologue): New
21362 targetm instruction patterns.
21363 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
21365 * calls.c (expand_call): Likewise.
21366 * cfgrtl.c (cfg_layout_finalize): Likewise.
21367 * df-scan.c (df_get_entry_block_def_set): Likewise.
21368 (df_get_exit_block_use_set): Likewise.
21369 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
21370 * final.c (final_start_function): Likewise.
21371 * function.c (thread_prologue_and_epilogue_insns): Likewise.
21372 (reposition_prologue_and_epilogue_notes): Likewise.
21373 * reorg.c (find_end_label): Likewise.
21374 * toplev.c (process_options): Likewise.
21376 2015-06-30 David Malcolm <dmalcolm@redhat.com>
21378 * typed-splay-tree.h: New file.
21380 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
21383 * lra-int.h (lra_substitute_pseudo): Add a parameter.
21384 (lra_substitute_pseudo_within_insn): Ditto.
21385 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
21387 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
21388 to lra_substitute_pseudo.
21389 * lra-lives.c (process_bb_lives): Add an argument to
21390 lra_substitute_pseudo_within_insn call.
21391 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
21392 argument to lra_substitute_pseudo and
21393 lra_substitute_pseudo_within_insn calls.
21394 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
21396 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
21398 * configure: Regenerated.
21400 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
21402 * config.gcc: Support i[34567]86-*-elfiamcu target.
21403 * config/i386/iamcu.h: New.
21404 * config/i386/i386.opt: Add -miamcu.
21405 * doc/invoke.texi: Document -miamcu.
21406 * common/config/i386/i386-common.c (ix86_handle_option): Turn
21407 off x87/MMX/SSE/AVX codegen for -miamcu.
21408 * config/i386/i386-c.c (ix86_target_macros_internal): Define
21409 __iamcu/__iamcu__ for -miamcu.
21410 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
21411 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
21412 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
21413 * config/i386/i386.c (ix86_option_override_internal): Ignore and
21414 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
21415 MCU by default. Default long double to 64-bit for Intel MCU.
21416 Turn on -freg-struct-return for Intel MCU. Issue an error when
21417 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
21419 (function_arg_advance_32): Pass value whose size is no larger
21420 than 8 bytes in registers for Intel MCU.
21421 (function_arg_32): Likewise.
21422 (ix86_return_in_memory): Return value whose size is no larger
21423 than 8 bytes in registers for Intel MCU.
21424 (iamcu_alignment): New function.
21425 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
21427 (ix86_local_alignment): Don't increase alignment for Intel MCU.
21428 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
21431 2015-06-30 Marek Polacek <polacek@redhat.com>
21433 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
21434 both operands of the resulting expression.
21436 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
21437 the final expression with the operand's type and then convert
21438 it to the type of the expression.
21440 2015-06-30 Richard Biener <rguenther@suse.de>
21442 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
21443 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
21444 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
21445 * match.pd: ... to patterns here.
21447 2015-06-30 Richard Biener <rguenther@suse.de>
21449 PR tree-optimization/66704
21450 * tree-vect-data-refs.c (vect_setup_realignment): Use
21451 make_ssa_name for non-SSA name source.
21453 2015-06-30 Jakub Jelinek <jakub@redhat.com>
21455 PR middle-end/66702
21456 * omp-low.c (simd_clone_adjust): Handle addressable linear
21457 or uniform parameters or non-gimple type uniform parameters.
21459 2015-06-30 Richard Biener <rguenther@suse.de>
21461 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
21462 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
21463 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
21464 * match.pd: ... here.
21465 Add a few cases of A - B -> A + (-B) when B "easily" negates.
21466 Move (x & y) | x -> x and friends before
21467 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
21469 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
21471 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
21472 -mfix-ut699 is not specified.
21473 (leon3_load): Rename into...
21474 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
21477 2015-06-30 Marek Polacek <polacek@redhat.com>
21479 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
21480 * match.pd: ... here.
21482 2015-06-30 Richard Biener <rguenther@suse.de>
21484 * target-insns.def (canonicalize_funcptr_for_compare): Add.
21485 * fold-const.c (build_range_check): Replace uses of
21486 HAVE_canonicalize_funcptr_for_compare.
21487 (fold_widened_comparison): Likewise.
21488 (fold_sign_changed_comparison): Likewise.
21489 * dojump.c: Include "target.h".
21490 (do_compare_and_jump): Replace uses of
21491 HAVE_canonicalize_funcptr_for_compare and
21492 gen_canonicalize_funcptr_for_compare.
21493 * expr.c (do_store_flag): Likewise.
21495 2015-06-30 Tom de Vries <tom@codesourcery.com>
21497 PR tree-optimization/66652
21498 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
21499 max_loop_iterations to determine if nit + 1 overflows.
21501 2015-06-30 Richard Biener <rguenther@suse.de>
21503 * tree-vrp.c (register_edge_assert_for_2): Also register
21504 asserts for dominating conversion results.
21506 2015-06-30 Bin Cheng <bin.cheng@arm.com>
21508 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
21509 field in struct iv.
21511 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
21514 * configure.ac: Fix filds and fildq test for 64-bit.
21515 * configure: Regenerated.
21517 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
21519 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
21520 (nvptx_reorg): Here. Keep the non-subreg pieces.
21522 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
21524 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
21525 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
21527 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
21529 * config/i386/i386.md (*jcc_1): Use %! in asm template.
21530 Set attribute "length_nobnd" instead of "length".
21533 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
21535 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
21537 * config/nios2/nios2.c (nios2_delegitimize_address): Make
21538 assert less restrictive.
21540 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
21543 * cgraphunit.c (cgraph_node::finalize_function): Do not call
21544 do_warn_unused_parameter.
21545 * function.c (do_warn_unused_parameter): Move from here.
21546 * function.h (do_warn_unused_parameter): Do not declare.
21548 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
21551 * gcc.target/arm/armv-sync-comp-swap.c: New.
21552 * gcc.target/arm/armv-sync-op-acquire.c: New.
21553 * gcc.target/arm/armv-sync-op-full.c: New.
21554 * gcc.target/arm/armv-sync-op-release.c: New.
21556 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
21559 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
21560 initial acquire barrier with final barrier.
21562 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
21565 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
21566 initial acquire barrier with final barrier.
21568 2015-06-29 Richard Henderson <rth@redhat.com>
21570 * config/i386/constraints.md (Bf): New constraint.
21571 * config/i386/i386-c.c (ix86_target_macros): Define
21572 __GCC_ASM_FLAG_OUTPUTS__.
21573 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
21575 * doc/extend.texi (FlagOutputOperands): Document them.
21577 2015-06-29 Jiong Wang <jiong.wang@arm.com>
21579 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
21580 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
21582 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
21583 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
21584 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
21585 (aarch64_symbol_context): Ditto.
21586 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
21587 and use new pattern name.
21588 (aarch64_expand_mov_immediate): Ditto.
21589 (aarch64_print_operand): Ditto.
21590 (aarch64_classify_tls_symbol): Ditto.
21592 2015-06-29 Marek Polacek <polacek@redhat.com>
21593 Marc Glisse <marc.glisse@inria.fr>
21595 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
21596 * match.pd: ... pattern here.
21598 2015-06-29 Tom de Vries <tom@codesourcery.com>
21600 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
21601 function structure.
21603 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
21605 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
21606 feature description, split out the native option, add a link to
21607 the feature documentation, rearrange and slightly rewrite text.
21608 (Aarch64 options, -mcpu): Likewise.
21609 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
21610 +rdma implies Adv. SIMD.
21612 2015-06-29 Marek Polacek <polacek@redhat.com>
21615 * function.c (stack_protect_epilogue): Remove a cast to int.
21616 * doc/invoke.texi: Update -Wswitch-bool description.
21618 2015-06-29 Richard Biener <rguenther@suse.de>
21620 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
21621 * fold-const.c (fold_binary_loc): Move &A - &B simplification
21622 via ptr_difference_const ...
21623 * match.pd: ... here.
21624 When matching (X ^ Y) == Y also match with swapped operands.
21626 2015-06-29 Richard Biener <rguenther@suse.de>
21628 * lto-streamer.h (LTO_major_version): Bump to 5.
21630 2015-06-29 Richard Biener <rguenther@suse.de>
21632 PR tree-optimization/66677
21633 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
21634 STMT_VINFO_VEC_STMT clobbering less strict.
21636 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21638 PR middle-end/64130
21639 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
21640 division, compute max and min when value ranges for dividend and
21641 divisor are available.
21643 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
21644 Sandra Loosemore <sandra@codesourcery.com>
21646 * regrename.h (regrename_do_replace): Change to return bool.
21647 * regrename.c (rename_chains): Check return value of
21648 regname_do_replace.
21649 (regrename_do_replace): Re-validate the modified insns and
21650 return bool status.
21651 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
21652 Update to match rename_chains changes.
21653 * config/c6x/c6x.c (try_rename_operands): Assert that
21654 regrename_do_replace returns true.
21656 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
21658 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
21659 operand 2 here. Use copy_addr_to_reg to copy non-index
21660 register operand 2 to a temporary.
21661 (<mode>_stx): Ditto for operand 1.
21662 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
21663 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
21664 (ix86_store_bounds): Ditto.
21666 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
21668 * print-tree.c (print_node) [TREE_VEC]: Print its length.
21670 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
21672 * gimple.c (gimple_call_set_fndecl): Remove.
21673 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
21674 build1_loc directly instead of build_fold_addr_expr_loc.
21676 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
21678 * hash-map.h (hash_map::traverse): Use the definition of the
21679 Key typedef rather than the typedef itself.
21681 2015-06-26 Martin Jambor <mjambor@suse.cz>
21684 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
21685 NULL instead of calling dump_enabled_p.
21687 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
21689 * config/aarch64/aarch64.opt: (override): New.
21690 * doc/invoke.texi (override): Document.
21691 * config/aarch64/aarch64.c (aarch64_flag_desc): New
21692 (aarch64_fusible_pairs): Likewise.
21693 (aarch64_tuning_flags): Likewise.
21694 (aarch64_tuning_override_function): Likewise.
21695 (aarch64_tuning_override_functions): Likewise.
21696 (aarch64_parse_one_option_token): Likewise.
21697 (aarch64_parse_boolean_options): Likewise.
21698 (aarch64_parse_fuse_string): Likewise.
21699 (aarch64_parse_tune_string): Likewise.
21700 (aarch64_parse_one_override_token): Likewise.
21701 (aarch64_parse_override_string): Likewise.
21702 (aarch64_override_options): Parse the -override string if it
21705 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
21707 * config/aarch64/aarch64-protos.h (tune_params): Remove
21708 const from members.
21709 (aarch64_tune_params): Remove const, change to no longer be
21711 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
21712 change to no longer be a pointer, initialize to generic_tunings.
21713 (aarch64_min_divisions_for_recip_mul): Change dereference of
21714 aarch64_tune_params to member access.
21715 (aarch64_reassociation_width): Likewise.
21716 (aarch64_rtx_mult_cost): Likewise.
21717 (aarch64_address_cost): Likewise.
21718 (aarch64_branch_cost): Likewise.
21719 (aarch64_rtx_costs): Likewise.
21720 (aarch64_register_move_cost): Likewise.
21721 (aarch64_memory_move_cost): Likewise.
21722 (aarch64_sched_issue_rate): Likewise.
21723 (aarch64_builtin_vectorization_cost): Likewise.
21724 (aarch64_override_options): Take a copy of the selected tuning
21725 struct in to aarch64_tune_params, rather than just setting
21726 a pointer, change dereferences of aarch64_tune_params to member
21728 (aarch64_override_options_after_change): Change dereferences of
21729 aarch64_tune_params to member access.
21730 (aarch64_macro_fusion_p): Likewise.
21731 (aarch_macro_fusion_pair_p): Likewise.
21732 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
21734 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
21736 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
21737 (aarch64_tune_flags): Likewise.
21738 (AARCH64_TUNE_FMA_STEERING): Likewise.
21739 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
21740 to AARCH64_FL_USE_FMA_STEERING_PASS.
21741 (cortex-a57.cortex-a53): Likewise.
21742 (cortex-a72): Use cortexa72_tunings.
21743 (cortex-a72.cortex-a53): Likewise.
21744 (exynos-m1): Likewise.
21745 * config/aarch64/aarch64-protos.h (tune_params): Add
21746 a field: extra_tuning_flags.
21747 * config/aarch64/aarch64-tuning-flags.def: New.
21748 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
21749 (aarch64_extra_tuning_flags): Likewise.
21750 (aarch64_tune_params): Declare here.
21751 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
21752 (cortexa53_tunings): Likewise.
21753 (cortexa57_tunings): Likewise.
21754 (thunderx_tunings): Likewise.
21755 (xgene1_tunings): Likewise.
21756 (cortexa72_tunings): New.
21757 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
21758 (gate): Check against aarch64_tune_params.
21759 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
21762 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
21764 * config/aarch64/aarch64-fusion-pairs.def: New.
21765 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
21766 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
21767 aarch64_fusion_pairs.
21768 (AARCH64_FUSE_MOV_MOVK): Likewise.
21769 (AARCH64_FUSE_ADRP_ADD): Likewise.
21770 (AARCH64_FUSE_MOVK_MOVK): Likewise.
21771 (AARCH64_FUSE_ADRP_LDR): Likewise.
21772 (AARCH64_FUSE_CMP_BRANCH): Likewise.
21774 2015-06-26 Jiong Wang <jiong.wang@arm.com>
21776 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
21777 SYMBOL_SMALL_GOT_28K.
21778 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
21779 relocation modifiers.
21780 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
21781 (ldr_got_small_28k_<mode>): New.
21782 (ldr_got_small_28k_sidi): New.
21783 * config/aarch64/iterators.md (got_modifier): New mode iterator.
21784 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
21785 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
21786 SYMBOL_SMALL_GOT_28K.
21787 (aarch64_rtx_costs): Add costs for new instruction sequences.
21788 (initialize_aarch64_code_model): Initialize new model.
21789 (aarch64_classify_symbol): Recognize new model and new symbol classification.
21790 (aarch64_asm_preferred_eh_data_format): Support new model.
21791 (aarch64_load_symref_appropriately): Generate new instruction
21792 sequences for -fpic.
21793 (TARGET_USE_PSEUDO_PIC_REG): New definition.
21794 (aarch64_use_pseudo_pic_reg): New function.
21796 2015-06-26 Jiong Wang <jiong.wang@arm.com>
21798 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
21799 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
21800 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
21801 (aarch64_expand_mov_immediate): Ditto.
21802 (aarch64_print_operand): Ditto.
21803 (aarch64_classify_symbol): Ditto.
21805 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
21807 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
21809 2015-06-26 Bin Cheng <bin.cheng@arm.com>
21812 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
21813 assertion failed. Remove assertion itself.
21815 2015-06-26 Richard Biener <rguenther@suse.de>
21817 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
21818 and -A CMP CST -> A CMP -CST which is redundant with a pattern
21820 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
21821 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
21822 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
21823 * match.pd: ... patterns here.
21825 2015-06-26 Marek Polacek <polacek@redhat.com>
21827 * match.pd ((x | y) & ~(x & y) -> x ^ y,
21828 (x | y) & (~x ^ y) -> x & y): New patterns.
21830 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
21832 * rtl.h (emit): Add an optional boolean parameter to control
21833 whether barriers are emitted.
21834 * emit-rtl.c (emit): Likewise.
21835 * gensupport.c (get_emit_function): Return null rather than "emit".
21836 * genemit.c (gen_emit_seq): Handle the null return value.
21837 Don't emit barriers after the final instruction in the sequence.
21838 * gentarget-def.c (main): Don't emit barriers after the instruction.
21840 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21842 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
21843 TARGET_UNIFIED_ASM.
21845 2015-06-26 Richard Biener <rguenther@suse.de>
21847 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
21849 2015-06-26 Richard Biener <rguenther@suse.de>
21851 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
21852 irrespective on whether the inner operation has a single use
21853 of both off are constant.
21855 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
21856 Segher Boessenkool <segher@kernel.crashing.org>
21859 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
21860 before doing PUT_MODE or PUT_CODE on operands to avoid
21861 in-place RTX modification.
21863 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
21865 * gentarget-def.c (def_target_insn): Cast return of strtol to
21868 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
21870 * gimple.h (gimple_call_set_fn): Move inline function.
21871 * gimple.c (gimple_call_set_fn): Relocate here.
21873 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
21877 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
21878 the replacement insn will work.
21880 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
21882 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
21885 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
21887 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
21888 * cgraph.h: Include ipa-ref.h and plugin-api.h.
21889 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
21890 (symtab_node::address_can_be_compared_p): Move function.
21891 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
21893 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
21894 * auto-profile.c: Likewise.
21895 * bb-reorder.c: Likewise.
21896 * builtins.c: Likewise.
21897 * calls.c: Likewise.
21898 * cfgexpand.c: Likewise.
21899 * cgraphbuild.c: Likewise.
21900 * cgraphclones.c: Likewise.
21901 * cgraphunit.c: Likewise.
21902 * combine.c: Likewise.
21903 * coverage.c: Likewise.
21904 * data-streamer-in.c: Likewise.
21905 * data-streamer-out.c: Likewise.
21906 * data-streamer.c: Likewise.
21907 * dbxout.c: Likewise.
21908 * dwarf2out.c: Likewise.
21909 * except.c: Likewise.
21910 * expr.c: Likewise.
21911 * final.c: Likewise.
21912 * fold-const.c: Likewise.
21913 * ggc-page.c: Likewise.
21914 * gimple-fold.c: Likewise.
21915 * gimple-iterator.c: Likewise.
21916 * gimple-pretty-print.c: Likewise.
21917 * gimple-streamer-in.c: Likewise.
21918 * gimple-streamer-out.c: Likewise.
21919 * gimple.c: Likewise.
21920 * gimplify.c: Likewise.
21921 * ipa-chkp.c: Likewise.
21922 * ipa-comdats.c: Likewise.
21923 * ipa-cp.c: Likewise.
21924 * ipa-devirt.c: Likewise.
21925 * ipa-icf-gimple.c: Likewise.
21926 * ipa-icf.c: Likewise.
21927 * ipa-inline-analysis.c: Likewise.
21928 * ipa-inline-transform.c: Likewise.
21929 * ipa-inline.c: Likewise.
21930 * ipa-polymorphic-call.c: Likewise.
21931 * ipa-profile.c: Likewise.
21932 * ipa-prop.c: Likewise.
21933 * ipa-pure-const.c: Likewise.
21934 * ipa-ref.c: Likewise.
21935 * ipa-reference.c: Likewise.
21936 * ipa-split.c: Likewise.
21937 * ipa-utils.c: Likewise.
21938 * ipa-visibility.c: Likewise.
21940 * langhooks.c: Likewise.
21941 * lto-cgraph.c: Likewise.
21942 * lto-compress.c: Likewise.
21943 * lto-opts.c: Likewise.
21944 * lto-section-in.c: Likewise.
21945 * lto-section-out.c: Likewise.
21946 * lto-streamer-in.c: Likewise.
21947 * lto-streamer-out.c: Likewise.
21948 * lto-streamer.c: Likewise.
21949 * omp-low.c: Likewise.
21950 * opts-global.c: Likewise.
21951 * passes.c: Likewise.
21952 * predict.c: Likewise.
21953 * print-tree.c: Likewise.
21954 * profile.c: Likewise.
21956 * sanopt.c: Likewise.
21957 * stor-layout.c: Likewise.
21958 * symtab.c: Likewise.
21959 * toplev.c: Likewise.
21960 * trans-mem.c: Likewise.
21961 * tree-cfg.c: Likewise.
21962 * tree-chkp.c: Likewise.
21963 * tree-eh.c: Likewise.
21964 * tree-emutls.c: Likewise.
21965 * tree-inline.c: Likewise.
21966 * tree-nested.c: Likewise.
21967 * tree-parloops.c: Likewise.
21968 * tree-pretty-print.c: Likewise.
21969 * tree-profile.c: Likewise.
21970 * tree-sra.c: Likewise.
21971 * tree-ssa-alias.c: Likewise.
21972 * tree-ssa-live.c: Likewise.
21973 * tree-ssa-loop-ivcanon.c: Likewise.
21974 * tree-ssa-loop-ivopts.c: Likewise.
21975 * tree-ssa-pre.c: Likewise.
21976 * tree-ssa-sccvn.c: Likewise.
21977 * tree-ssa-strlen.c: Likewise.
21978 * tree-ssa-structalias.c: Likewise.
21979 * tree-streamer-in.c: Likewise.
21980 * tree-streamer-out.c: Likewise.
21981 * tree-streamer.c: Likewise.
21982 * tree-switch-conversion.c: Likewise.
21983 * tree-tailcall.c: Likewise.
21984 * tree-vect-data-refs.c: Likewise.
21985 * tree-vect-stmts.c: Likewise.
21986 * tree-vectorizer.c: Likewise.
21987 * tree.c: Likewise.
21988 * tsan.c: Likewise.
21989 * ubsan.c: Likewise.
21990 * value-prof.c: Likewise.
21991 * varasm.c: Likewise.
21992 * varpool.c: Likewise.
21993 * config/arm/arm.c: Likewise.
21994 * config/bfin/bfin.c: Likewise.
21995 * config/c6x/c6x.c: Likewise.
21996 * config/cris/cris.c: Likewise.
21997 * config/darwin-c.c: Likewise.
21998 * config/darwin.c: Likewise.
21999 * config/i386/i386.c: Likewise.
22000 * config/i386/winnt.c: Likewise.
22001 * config/microblaze/microblaze.c: Likewise.
22002 * config/mips/mips.c: Likewise.
22003 * config/rs6000/rs6000.c: Likewise.
22004 * config/rx/rx.c: Likewise.
22005 * config/s390/s390.c: Likewise.
22006 * config/tilegx/mul-tables.c: Likewise.
22008 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22010 * config/aarch64/aarch64.c, config/alpha/alpha.c,
22011 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
22012 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
22013 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
22014 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22015 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22016 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22017 config/microblaze/microblaze.c, config/mips/mips.c,
22018 config/mmix/mmix.c, config/mn10300/mn10300.c,
22019 config/moxie/moxie.c, config/msp430/msp430.c,
22020 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22021 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22022 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22023 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22024 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22025 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22026 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
22027 target-def.h include.
22028 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
22030 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22032 * Makefile.in (TARGET_DEF): Add target-insns.def.
22033 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
22034 (build/gentarget-def.o): New rule.
22035 (genprogrtl): Add target-def.
22036 * target-insns.def, gentarget-def.c: New files.
22037 * target.def: Add targetm.have_* and targetm.gen_* hooks,
22038 based on the contents of target-insns.def.
22039 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
22040 (HAVE_return, gen_return): Delete.
22041 * target-def.h: Include insn-target-def.h.
22042 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
22043 instead of direct calls. Rely on them to do the appropriate assertions.
22044 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
22045 (convert_jumps_to_returns): Use targetm interface instead of
22047 (thread_prologue_and_epilogue_insns): Likewise.
22048 * reorg.c (find_end_label, dbr_schedule): Likewise.
22049 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
22050 * shrink-wrap.c (convert_to_simple_return): Likewise.
22051 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
22053 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22055 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
22056 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
22057 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
22058 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
22059 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22060 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22061 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22062 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
22063 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
22064 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22065 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22066 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22067 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22068 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22069 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22070 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
22073 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22075 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
22076 (unbounded_int_hashmap_traits::key_type): Likewise.
22077 * hash-map.h (hash_map): Get the key type from the traits.
22078 * hash-traits.h (default_hash_traits): By default, inherit from the
22079 template parameter.
22080 * alias.c (alias_set_traits): Delete.
22081 (alias_set_entry_d::children): Use alias_set_hash as the first
22082 template parameter.
22083 (record_alias_subset): Update accordingly.
22084 * except.c (tree_hash_traits): Delete.
22085 (type_to_runtime_map): Use tree_hash as the first template parameter.
22086 (init_eh): Update accordingly.
22087 * genmatch.c (capture_id_map_hasher): Delete.
22088 (cid_map_t): Use nofree_string_hash as first template parameter.
22089 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
22090 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
22091 Use symbol_compare_hash as the first template parameter in
22092 subdivide_hash_map.
22093 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
22094 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
22095 template parameter.
22096 * passes.c (pass_registry_hasher): Delete.
22097 (name_to_pass_map): Use nofree_string_hash as the first template
22099 (register_pass_name): Update accordingly.
22100 * sanopt.c (sanopt_tree_map_traits): Delete.
22101 (sanopt_tree_triplet_map_traits): Delete.
22102 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
22103 template parameter.
22104 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
22105 the first template parameter.
22106 * sese.c (rename_map_hasher): Delete.
22107 (rename_map_type): Use tree_ssa_name_hash as the first template
22109 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
22110 (function_summary::m_map): Use map_hash as the first template
22112 (function_summary::release): Update accordingly.
22113 * tree-if-conv.c (phi_args_hash_traits): Delete.
22114 (predicate_scalar_phi): Use tree_operand_hash as the first template
22115 parameter to phi_arg_map.
22116 * tree-inline.h (dependence_hasher): Delete.
22117 (copy_body_data::dependence_map): Use dependence_hash as the first
22118 template parameter.
22119 * tree-inline.c (remap_dependence_clique): Update accordingly.
22120 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
22121 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
22123 (addr_stridxptr): Update accordingly.
22124 * value-prof.c (profile_id_traits): Delete.
22125 (cgraph_node_map): Use profile_id_hash as the first template
22127 (init_node_map): Update accordingly.
22128 * config/alpha/alpha.c (string_traits): Delete.
22129 (machine_function::links): Use nofree_string_hash as the first
22130 template parameter.
22131 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
22132 * config/m32c/m32c.c (pragma_traits): Delete.
22133 (pragma_htab): Use nofree_string_hash as the first template parameter.
22134 (m32c_note_pragma_address): Update accordingly.
22135 * config/mep/mep.c (pragma_traits): Delete.
22136 (pragma_htab): Use nofree_string_hash as the first template parameter.
22137 (mep_note_pragma_flag): Update accordingly.
22138 * config/mips/mips.c (mips16_flip_traits): Delete.
22139 (mflip_mips16_htab): Use nofree_string_hash as the first template
22141 (mflip_mips16_use_mips16_p): Update accordingly.
22142 (local_alias_traits): Delete.
22143 (mips16_local_aliases): Use nofree_string_hash as the first template
22145 (mips16_local_alias): Update accordingly.
22147 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22149 * hash-map-traits.h (default_hashmap_traits): Delete.
22151 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22153 * hash-map-traits.h (unbounded_hashmap_traits): New class.
22154 (unbounded_int_hashmap_traits): Likewise.
22155 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
22157 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22159 * ipa-icf.h (symbol_compare_hash): New class.
22160 (symbol_compare_hashmap_traits): Use it.
22161 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
22162 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
22163 (mem_alloc_description::reverse_mem_map_t): Remove redundant
22164 default_hashmap_traits.
22165 * sanopt.c (sanopt_tree_triplet_hash): New class.
22166 (sanopt_tree_triplet_map_traits): Use it.
22168 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22170 * gengtype-parse.c (require_template_declaration): Allow '+' in
22171 template parameters. Consolidate cases.
22172 * hash-traits.h (int_hash): New class.
22173 * alias.c (alias_set_hash): New structure.
22174 (alias_set_traits): Use it.
22175 * symbol-summary.h (function_summary::map_hash): New class.
22176 (function_summary::summary_hashmap_traits): Use it.
22177 * tree-inline.h (dependence_hash): New class.
22178 (dependence_hasher): Use it.
22179 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
22180 * value-prof.c (profile_id_hash): New class.
22181 (profile_id_traits): Use it.
22183 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22185 * config/mips/mips.c (mips16_flip_traits): Use it.
22186 (local_alias_traits, mips16_local_aliases): Convert from a map of
22187 rtxes to a map of symbol names.
22188 (mips16_local_alias): Update accordingly.
22190 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22192 * hash-traits.h (string_hash, nofree_string_hash): New classes.
22193 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
22194 * passes.c (pass_registry_hasher): Likewise.
22195 * config/alpha/alpha.c (string_traits): Likewise.
22196 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
22197 * config/m32c/m32c.c (pragma_traits): Likewise.
22198 * config/mep/mep.c (pragma_traits): Likewise.
22200 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22202 * tree-hash-traits.h (tree_hash): New class.
22203 * except.c: Include tree-hash-traits.h.
22204 (tree_hash_traits): Use tree_hash.
22206 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22208 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
22209 * sese.c: Include tree-hash-traits.h.
22210 (rename_map_hasher): Use tree_ssa_name_hasher.
22212 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22214 * tree-hash-traits.h (tree_decl_hash): New class.
22215 * tree-ssa-strlen.c: Include tree-hash-traits.h.
22216 (stridxlist_hash_traits): Use tree_decl_hash.
22218 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22220 * tree-hash-traits.h: New file.
22221 (tree_operand_hash): New class.
22222 * sanopt.c: Include tree-hash-traits.h.
22223 (sanopt_tree_map_traits): Use tree_operand_hash.
22224 * tree-if-conv.c: Include tree-hash-traits.h.
22225 (phi_args_hash_traits): Use tree_operand_hash.
22226 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
22227 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
22229 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22231 * hash-map-traits.h: Include hash-traits.h.
22232 (simple_hashmap_traits): New class.
22233 * mem-stats.h (hash_map): Change the default traits to
22234 simple_hashmap_traits<default_hash_traits<Key> >.
22236 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22238 * hash-table.h: Update comments.
22240 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22242 * hash-traits.h (default_hash_traits): New structure.
22243 * hash-set.h (default_hashset_traits): Delete.
22244 (hash_set): Use default_hash_traits<Key> instead of
22245 default_hashset_traits. Delete hash_entry type and use Key directly.
22246 * ipa-devirt.c (pair_traits): Delete.
22247 (default_hash_traits <type_pair>): Override.
22248 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
22249 (odr_types_equivalent_p, add_type_duplicate): Likewise.
22251 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22253 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
22255 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22257 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
22258 (has_is_empty, is_empty_helper): Delete.
22259 (has_mark_deleted, mark_deleted_helper): Delete.
22260 (has_mark_empty, mark_empty_helper): Delete.
22261 (hash_table::is_deleted): Call the Descriptor unconditionally.
22262 (hash_table::is_empty): Likewise.
22263 (hash_table::mark_deleted): Likewise.
22264 (hash_table::mark_empty): Likewise.
22266 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22268 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
22269 redundant typedefs and members.
22270 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
22271 redundant typedefs.
22272 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
22273 * ipa-devirt.c (odr_name_hasher): Likewise.
22274 (polymorphic_call_target_hasher): Likewise.
22275 * ira-costs.c (cost_classes_hasher): Likewise.
22276 * statistics.c (stats_counter_hasher): Likewise.
22277 * trans-mem.c (log_entry_hasher): Likewise.
22278 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
22279 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
22280 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
22281 * var-tracking.c (variable_hasher): Likewise.
22282 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
22283 Remove redundant typedefs and members.
22285 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22287 * hash-traits.h (ggc_cache_hasher): Rename to...
22288 (ggc_cache_remove): ...this and remove typedefs.
22289 (ggc_cache_ptr_hash): New class.
22290 * hash-table.h: Update commentary.
22291 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
22292 rather than ggc_cache_hasher.
22293 (const_wide_int_hasher, reg_attr_hasher): Likewise.
22294 (const_double_hasher, const_fixed_hasher): Likewise.
22295 * function.c (insn_cache_hasher): Likewise.
22296 * trans-mem.c (tm_wrapper_hasher): Likewise.
22297 * tree.h (tree_decl_map_cache_hasher): Likewise.
22298 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
22299 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
22300 * ubsan.c (tree_type_map_cache_hasher): Likewise.
22301 * varasm.c (tm_clone_hasher): Likewise.
22302 * config/i386/i386.c (dllimport_hasher): Likewise.
22303 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
22304 (tree_hasher): Likewise.
22306 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22308 * hash-traits.h (ggc_hasher): Rename to...
22309 (ggc_remover): ...this and remove typedefs.
22310 (ggc_cache_hasher): Update accordingly. Add typedefs.
22311 (ggc_ptr_hash): New class.
22312 * hash-table.h: Update comment.
22313 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
22315 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
22316 (tree_descriptor_hasher): Likewise.
22317 * cgraph.c (function_version_hasher): Likewise.
22318 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
22319 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
22320 (dw_loc_list_hasher, addr_hasher): Likewise.
22321 * function.h (used_type_hasher): Likewise.
22322 * function.c (temp_address_hasher): Likewise.
22323 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
22324 * libfuncs.h (libfunc_hasher): Likewise.
22325 * lto-streamer.h (decl_state_hasher): Likewise.
22326 * optabs.c (libfunc_decl_hasher): Likewise.
22327 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
22328 * varasm.c (section_hasher, object_block_hasher): Likewise.
22329 (const_rtx_desc_hasher): Likewise.
22330 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
22331 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
22333 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22335 * hash-traits.h (free_ptr_hash): New class.
22336 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
22337 rather than typed_free_remove. Remove redudant typedefs.
22338 (external_ref_hasher): Likewise.
22339 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
22340 (ehspec_hasher): Likewise.
22341 * ggc-common.c (saving_hasher): Likewise.
22342 * gimplify.c (gimplify_hasher): Likewise.
22343 * haifa-sched.c (delay_i2_hasher): Likewise.
22344 * loop-invariant.c (invariant_expr_hasher): Likewise.
22345 * loop-iv.c (biv_entry_hasher): Likewise.
22346 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
22347 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
22348 * tree-cfg.c (locus_discrim_hasher): Likewise.
22349 * tree-eh.c (finally_tree_hasher): Likewise.
22350 * tree-into-ssa.c (var_info_hasher): Likewise.
22351 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
22352 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
22353 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
22354 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
22355 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
22356 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
22357 (shared_bitmap_hasher): Likewise.
22358 * tree-ssa-threadupdate.c (redirection_data): Likewise.
22359 * tree-vectorizer.h (peel_info_hasher): Likewise.
22360 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
22361 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
22363 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22365 * hash-table.h: Update comments.
22366 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
22367 (nofree_ptr_hash): New class.
22368 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
22369 than typed_noop_remove. Remove redudant typedefs.
22370 * attribs.c (attribute_hasher): Likewise.
22371 * cfg.c (bb_copy_hasher): Likewise.
22372 * cselib.c (cselib_hasher): Likewise.
22373 * dse.c (invariant_group_base_hasher): Likewise.
22374 * dwarf2cfi.c (trace_info_hasher): Likewise.
22375 * dwarf2out.c (macinfo_entry_hasher): Likewise.
22376 (comdat_type_hasher, loc_list_hasher): Likewise.
22377 * gcse.c (pre_ldst_expr_hasher): Likewise.
22378 * genmatch.c (id_base): Likewise.
22379 * genrecog.c (test_pattern_hasher): Likewise.
22380 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
22381 * haifa-sched.c (delay_i1_hasher): Likewise.
22382 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
22383 * ipa-icf.h (congruence_class_group_hash): Likewise.
22384 * ipa-profile.c (histogram_hash): Likewise.
22385 * ira-color.c (allocno_hard_regs_hasher): Likewise.
22386 * lto-streamer.h (string_slot_hasher): Likewise.
22387 * lto-streamer.c (tree_entry_hasher): Likewise.
22388 * plugin.c (event_hasher): Likewise.
22389 * postreload-gcse.c (expr_hasher): Likewise.
22390 * store-motion.c (st_expr_hasher): Likewise.
22391 * tree-sra.c (uid_decl_hasher): Likewise.
22392 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
22393 (ssa_name_var_hash): Likewise.
22394 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
22395 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
22396 * tree-ssa-pre.c (pre_expr_d): Likewise.
22397 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
22398 * vtable-verify.h (registration_hasher): Likewise.
22399 * vtable-verify.c (vtbl_map_hasher): Likewise.
22400 * config/arm/arm.c (libcall_hasher): Likewise.
22401 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
22402 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
22403 * config/sol2.c (comdat_entry_hasher): Likewise.
22404 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
22405 (print_fold_checksum, fold_checksum_tree): Likewise.
22406 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
22407 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
22408 (fold_build_call_array_loc): Likewise.
22409 * tree-ssa-ccp.c (gimple_htab): Likewise.
22410 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
22411 rather than pointer_type.
22413 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22415 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
22416 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
22418 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22420 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
22421 (ggc_hasher::ggc_mx): Likewise.
22422 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
22423 that duplicate ggc_hasher ones.
22425 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22427 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
22428 (gt_cleare_cache): Check here for deleted and empty entries.
22429 Replace handle_cache_entry with a call to keep_cache_entry.
22430 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
22431 (ggc_cache_hasher::keep_cache_entry): New function.
22432 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
22433 (tm_wrapper_hasher::keep_cache_entry): New function.
22434 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
22435 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
22436 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
22437 (type_cache_hasher::keep_cache_entry): New function.
22438 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
22439 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
22440 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
22441 (tree_type_map_cache_hasher::keep_cache_entry): New function.
22442 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
22443 (tm_clone_hasher::keep_cache_entry): New function.
22444 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
22445 (dllimport_hasher::keep_cache_entry): New function.
22447 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22449 * hash-table.h: Include hash-traits.h.
22450 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
22451 (ggc_cache_hasher): Move to...
22452 * hash-traits.h: ...this new file.
22454 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22456 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
22457 struct cl_optimization.
22458 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
22459 * tree.c (make_node_stat): Allocate cl_optimization struct.
22460 (copy_node_stat): Allocate and copy cl_optimization struct.
22462 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22464 * function.h (struct incoming_args): Move struct.
22465 (pass_by_reference, reference_callee_copied): Remove prototypes.
22466 * emit-rtl.h (struct incoming_args): Relocate struct here.
22467 * calls.h (pass_by_reference, reference_callee_copied): Relocate
22469 * function.c (pass_by_reference, reference_callee_copied): Move.
22470 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
22471 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
22472 * ipa-chkp.c: Include calls.h.
22474 2015-06-25 Andrew Macleod <amacleod@redhat.com>
22476 * alias.h (alias_set_type): Move typedef.
22477 * coretypes.h (alias_set_type): Relocate typedef here.
22478 * rtl.h: Don't include alias.h.
22480 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22482 * cgraph.h (cgraph_rtl_info): Move to rtl.h
22483 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
22485 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
22486 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
22488 * calls.c: Include hard-reg-set.h before rtl.h.
22491 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
22492 Vladimir Makarov <vmakarov@redhat.com>
22494 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
22497 2015-06-25 Richard Biener <rguenther@suse.de>
22499 * fold-const.c (fold_binary_loc): Move simplification of
22500 (X <<>> C1) & C2 ...
22501 * match.pd: ... here.
22503 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
22505 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
22507 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22509 * match.pd: Add patterns for vec_conds between 1 and 0.
22511 2015-06-25 Richard Biener <rguenther@suse.de>
22513 * tree-vect-stmts.c (vectorizable_conversion): Do not set
22514 STMT_VINFO_VEC_STMT for SLP.
22515 (vectorizable_store): Likewise.
22516 (vectorizable_load): Likewise.
22517 (vect_transform_stmt): Catch SLP vectorization clobbering
22518 STMT_VINFO_VEC_STMT.
22520 2015-06-25 Richard Biener <rguenther@suse.de>
22522 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
22524 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
22525 cleanup resulting dead code and parameters.
22526 (vect_transform_slp_perm_load): Adjust.
22528 2015-06-25 Nick Clifton <nickc@redhat.com>
22530 * config/bfin/bfin.c (bfin_expand_prologue): Set
22531 current_function_static_stack_size if flag_stack_usage_info is set.
22532 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
22533 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
22534 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
22535 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
22537 2015-06-25 Tom de Vries <tom@codesourcery.com>
22539 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
22540 comment that the generated IV is unsigned.
22542 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22545 * config/arm/arm.c (arm_dbx_register_number): Return
22546 DWARF_FRAME_REGISTERS by default.
22548 2015-06-25 Tom de Vries <tom@codesourcery.com>
22550 * dominance.c (calculate_dominance_info): Fix verify_dominators call
22551 argument. Call verify_dominator when reusing dominator info.
22553 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
22556 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
22557 an additional element of the unspec vector. Modify indices
22559 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
22560 * config/sh/sh.c (prepare_move_operands): Pass incremented
22561 const_int to gen_GOTaddr2picreg.
22562 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
22564 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
22566 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
22567 Condition on TARGET_FLOAT.
22569 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
22571 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
22574 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
22576 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
22578 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
22579 aarch64_err_no_fpadvsimd.
22581 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
22582 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
22583 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
22584 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
22585 Turn error into assert, test TARGET_FLOAT.
22586 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
22589 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
22592 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
22594 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
22596 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
22598 2015-06-24 Renlin Li <renlin.li@arm.com>
22600 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
22601 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
22603 2015-06-24 Richard Biener <rguenther@suse.de>
22605 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
22607 (lower_opt_convert): Support lowering of conditional view_convert.
22608 (parser::parse_operation): Likewise.
22609 (parser::parse_for): Likewise.
22611 2015-06-24 Renlin Li <renlin.li@arm.com>
22613 * varasm.c (emit_local): Use unsigned int for align variable.
22615 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22618 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
22619 for negative numbers.
22621 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22623 PR rtl-optimization/66306
22624 * reload.c (find_reloads): Swap the match_dup info for
22625 commutative operands.
22627 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22629 * config/s390/vx-builtins.md
22630 ("vec_scatter_element<mode>_<non_vec_int>")
22631 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
22632 attribute with bhfgq.
22634 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22636 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
22638 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22640 * config/s390/s390-builtin-types.def: Add flag to indicate the
22641 options under which the function type is needed.
22642 * config/s390/s390-builtins.def: Add flag to indicate the options
22643 under which the builtin is enabled.
22644 * config/s390/s390-builtins.h: Add flags parameter to macro
22646 (bflags_for_builtin): New function.
22647 (flags_for_builtin): Renamed to ...
22648 (opflags_for_builtin): ... this.
22649 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
22650 flags_for_builtin to bflags_for_builtin and
22651 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
22652 * config/s390/s390.c: Add initialization of bflags_builtin and
22653 opflags_builtin arrays.
22654 Remove code for flags_builtin.
22655 (s390_init_builtins): Only create builtin function types if one of
22656 their flags is active.
22657 Only create builtins if all of their flags are active.
22658 (s390_expand_builtin): Rename flags_for_builtin to
22659 opflags_for_builtin.
22661 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22663 * config/s390/vecintrin.h: Remove internal builtins.
22665 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22667 * config/s390/s390.c (s390_secondary_reload): Fix check for
22668 GENERAL_REGS register class.
22670 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22672 * config/s390/s390.c (s390_support_vector_misalignment): Call
22673 default implementation for !TARGET_VX.
22675 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22677 * config/s390/s390.c (s390_legitimate_constant_p): Add
22680 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22682 * config/s390/s390.c (s390_vector_abi): New variable definition.
22683 (s390_check_type_for_vector_abi): New function.
22684 (TARGET_ASM_FILE_END): New macro definition.
22685 (s390_asm_file_end): New function.
22686 (s390_function_arg): Call s390_check_type_for_vector_abi.
22687 (s390_gimplify_va_arg): Likewise.
22688 * configure: Regenerate.
22689 * configure.ac: Check for .gnu_attribute Binutils feature.
22691 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
22694 * config/bfin/bfin.c (hwloop_optimize): Initialize
22695 JUMP_LABEL for newly created jump.
22697 2015-06-23 Tristan Gingold <gingold@adacore.com>
22699 * collect-utils.c (collect_wait): Unlink the response file here
22701 (do_wait): ...here.
22702 (utils_cleanup): ...and here.
22704 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
22706 * df-scan.c: Don't include target-def.h.
22707 * targhooks.c: Likewise.
22708 * config/arm/arm-c.c: Likewise.
22709 * config/i386/i386-c.c: Likewise.
22710 * config/nds32/nds32-cost.c: Likewise.
22711 * config/nds32/nds32-fp-as-gp.c: Likewise.
22712 * config/nds32/nds32-intrinsic.c: Likewise.
22713 * config/nds32/nds32-isr.c: Likewise.
22714 * config/nds32/nds32-md-auxiliary.c: Likewise.
22715 * config/nds32/nds32-memory-manipulation.c: Likewise.
22716 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22717 * config/nds32/nds32-predicates.c: Likewise.
22719 2015-06-23 Richard Biener <rguenther@suse.de>
22721 PR tree-optimization/66636
22722 * tree-vect-stmts.c (vectorizable_store): Properly compute the
22723 def type for further defs for strided stores.
22725 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
22727 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
22728 conditional selects.
22729 (setcc_int<mode>, setcc_float<mode>): Reformat.
22731 2015-06-23 Marek Polacek <polacek@redhat.com>
22733 * match.pd ((x + y) - (x | y) -> x & y,
22734 (x + y) - (x & y) -> x | y): New patterns.
22736 2015-06-23 Ludovic Courtès <ludo@gnu.org>
22739 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
22740 '-dynamic-linker' within %{!shared: ...}.
22742 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
22745 * config/i386/predicates.md (addsub_vm_operator): New predicate.
22746 (addsub_vs_operator): Ditto.
22747 (addsub_vs_parallel): Ditto.
22748 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
22749 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
22750 Put minus RTX before plus and adjust vec_merge selector.
22751 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
22752 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
22753 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
22754 (addsub vec_merge splitters): New combiner splitters.
22755 (addsub vec_select/vec_concat splitters): Ditto.
22757 2015-06-23 Bin Cheng <bin.cheng@arm.com>
22759 PR tree-optimization/66449
22760 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
22761 POINTER_PLUS_EXPR for pointers.
22763 2015-06-23 Alan Modra <amodra@gmail.com>
22765 * rtlanal.c (commutative_operand_precedence): Correct comments.
22766 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
22767 declaration. Return an int. Distinguish REG,REG return from
22769 (struct simplify_plus_minus_op_data): Make local to function.
22770 (simplify_plus_minus): Don't set canonicalized if merely sorting
22771 registers. Avoid packing ops if nothing changes. White space fixes.
22773 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
22775 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
22776 -fdump-ada-spec is passed but not if -fsyntax-only is.
22778 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
22781 * lra-lives.c (process_bb_lives): Check insn copying the same
22782 reload pseudo and don't create a copy for it.
22784 2015-06-22 Tom de Vries <tom@codesourcery.com>
22786 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
22789 2015-06-22 Tom de Vries <tom@codesourcery.com>
22791 * builtins.def (DEF_GOMP_BUILTIN): Test
22792 'flag_tree_parallelize_loops > 1' instead of
22793 'flag_tree_parallelize_loops'. Test flag_cilkplus.
22795 2015-06-22 Tom de Vries <tom@codesourcery.com>
22797 * dominance.c (calculate_dominance_info): Verify dominators if
22800 2015-06-22 Marek Polacek <polacek@redhat.com>
22802 * match.pd ((x ^ y) ^ (x | y) -> x & y,
22803 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
22804 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
22805 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
22807 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
22810 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
22811 cost of embedded comparison.
22813 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22816 * config/rs6000/predicates.md (altivec_register_operand): Permit
22817 virtual stack registers.
22818 (vsx_register_operand): Likewise.
22819 (vfloat_operand): Likewise.
22820 (vint_operand): Likewise.
22821 (vlogical_operand): Likewise.
22823 2015-06-22 Richard Biener <rguenther@suse.de>
22825 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
22826 and single_scalar_iteration_cost members.
22827 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
22828 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
22829 (vect_get_single_scalar_iteration_cost): Remove.
22830 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
22831 Use LOOP_VINFO_SCALAR_ITERATION_COST.
22832 * tree-vect-loop.c (destroy_loop_vec_info): Free
22834 (vect_get_single_scalar_iteration_cost): Compute result into
22835 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
22836 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
22837 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
22838 (vect_estimate_min_profitable_iters): Use them.
22840 2015-06-22 Christian Bruel <christian.bruel@st.com>
22843 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
22844 (TARGET_INSERT_ATTRIBUTES): Define.
22845 (thumb_flipper): New var.
22846 * config/arm/arm.opt (-mflip-thumb): New switch.
22848 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
22849 Martin Liska <mliska@suse.cz>
22852 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
22853 construction of arg_types.
22854 (sem_function::sem_function): Likewise.
22855 (sem_function::~sem_function): Remove destruction of arg_types.
22856 (sem_function::compatible_parm_types_p): New function.
22857 (sem_function::equals_wpa): Reorg matching of return values
22858 and parameter types.
22859 (sem_function::equals_private): Reorg mathcing of argument types.
22860 (sem_function::parse_tree_args): Remove.
22861 * ipa-icf.h (init_wpa): Do not call it.
22862 (parse_tree_args): Remove.
22863 (compatible_parm_types_p): Declare.
22864 (result_type): Remove.
22865 (arg_types): Remove.
22867 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
22870 * ipa-polymorphic-call.c
22871 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
22872 initializing alias oracle; fix formating; set base_alias_set if it
22875 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
22877 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
22878 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
22879 (find_inc): Likewise.
22880 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
22882 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
22883 * df-scan.c (df_swap_refs): Remove.
22884 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
22885 * dominance.c (link_roots): Use std::swap instead of manually swapping.
22886 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
22887 * fold-const.c (fold_relational_const): Likewise.
22888 * genattrtab.c (simplify_test_exp): Likewise.
22889 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
22890 gimple_simplify): Likewise.
22891 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
22892 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
22893 * ipa-devirt.c (add_type_duplicate): Likewise.
22894 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
22895 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
22896 * lra.c (lra_create_copy): Likewise.
22897 * lto-streamer-out.c (DFS::DFS): Likewise.
22898 * modulo-sched.c (get_sched_window): Likewise.
22899 * omega.c (omega_pretty_print_problem): Likewise.
22900 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
22901 * reload1.c (reloads_unique_chain_p): Likewise.
22902 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
22903 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
22905 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
22907 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
22908 predicate_mem_writes): Likewise.
22909 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
22910 * tree-predcom.c (combine_chains): Likewise.
22911 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
22912 refs_may_alias_p_1): Likewise.
22913 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
22914 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
22915 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
22916 number_of_iterations_cond): Likewise.
22917 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
22918 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
22919 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
22920 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
22921 * tree-vrp.c (extract_range_from_binary_expr_1,
22922 extract_range_from_unary_expr_1): Likewise.
22924 2015-06-20 Marek Polacek <polacek@redhat.com>
22926 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
22928 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
22931 * config/sh/sh.c (prepare_move_operands): Replace subreg
22932 index term with R0 for base and index addressing.
22934 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
22936 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
22938 (movsf_aarch64): Change condition from register_operand to
22939 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
22940 load1. Change type for alternative 7 to store1.
22941 (movdf_aarch64): Likewise.
22943 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
22945 * config/vax/vax.md: Adjust sign/zero extend patterns to
22946 handle SUBREGs in operands[1].
22948 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22950 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
22951 of manually swapping.
22952 (expand_vec_perm_interleave2): Likewise.
22954 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
22956 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
22957 reuse bounds created for abnormal ssa names.
22959 2015-06-19 Jakub Jelinek <jakub@redhat.com>
22961 * config/nvptx/nvptx.md (allocate_stack): Rename to...
22962 (allocate_stack_<mode>): ... this, and add :P on both
22963 match_operand and unspec.
22964 (allocate_stack): New expander.
22966 2015-06-19 Christian Bruel <christian.bruel@st.com>
22970 * config/arm/arm.c (arm_set_current_function): Handle
22971 explicit default options.
22973 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
22975 * config/i386/i386.md (*movsicc_noc_zext): New insn.
22976 (zero-extended cmove with mem peephole2): New pattern.
22977 (cmove with mem peephole2): Merge patterns.
22979 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
22981 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
22983 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
22985 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
22986 * config/mips/mips.md (*madd4<mode>): Ditto.
22987 (*nmadd3<mode>) Ditto.
22988 (*nmadd4<mode>_fastmath): Ditto.
22989 (*nmadd3<mode>_fastmath): Ditto.
22990 (*nmsub4<mode>): Ditto.
22991 (*nmsub3<mode>): Ditto.
22992 (*nmsub4<mode>_fastmath): Ditto.
22993 (*nmsub3<mode>_fastmath): Ditto.
22995 2015-06-18 Michael Matz <matz@suse.de>
22997 PR middle-end/66253
22998 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
22999 grouped strided stores.
23000 (vectorizable_load): Don't use the DR from first_stmt in
23001 the non-SLP grouped strided case.
23003 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23006 * function.c (assign_bounds): Add arguments assign_regs,
23007 assign_special, assign_bt.
23008 (assign_parms): For vararg functions handle bounds in BT
23009 and special slots after incoming vararg bounds.
23011 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23013 PR middle-end/66568
23014 * cfgexpand.c (expand_return): Handle missing bounds.
23015 (expand_gimple_stmt_1): Likewise.
23016 * tree-chkp.c (chkp_expand_zero_bounds): New.
23017 * tree-chkp.h (chkp_expand_zero_bounds): New.
23019 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23021 PR middle-end/66567
23022 * ipa-chkp.c (chkp_maybe_create_clone): Require
23023 functions to be instrumentable.
23024 * tree-chkp.c (chkp_replace_function_pointer): Use
23025 chkp_instrumentable_p instead of attribute check.
23027 2015-06-18 Richard Biener <rguenther@suse.de>
23029 PR tree-optimization/66510
23030 * tree-vect-stmts.c (vectorizable_load): Properly compute the
23031 number of vector loads for SLP permuted loads.
23032 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
23033 check the stride for loop vectorization.
23034 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
23035 vectorization factor.
23036 (vect_analyze_group_access): If the group size is not a power
23037 of two require a epilogue loop.
23038 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
23039 compute and optimizing and alias test pruning after final
23040 vectorization factor computation.
23041 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
23043 (vect_transform_slp_perm_load): Properly compute the original
23044 number of vector load stmts.
23046 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
23048 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
23049 "unlikely character , in @var" warning.
23051 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
23053 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
23054 (ix86_function_arg_advance): Ditto.
23055 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
23057 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
23059 * function.h (struct rtl_data): Remove struct and accessor macros.
23060 * emit-rtl.h (struct rtl_data): Relocate to here.
23061 * Makefile.in (GTFILES): Add emit-rtl.h.
23062 * df-core.c: Include emit-rtl.h.
23063 * genattrtab.c: Likewise.
23064 * genconditions.c: Likewise.
23065 * genpreds.c: Likewise.
23066 * genrecog.c: Likewise.
23067 * regcprop.c: Likewise.
23068 * resource.c: Likewise.
23069 * sched-rgn.c: Likewise.
23070 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23071 * config/i386/winnt.c: Likewise.
23073 2015-06-17 Jakub Jelinek <jakub@redhat.com>
23075 PR middle-end/66429
23076 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
23077 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
23078 and has_force_vectorize_loops flags from cfun into
23080 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
23081 if simduid is non-NULL.
23082 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
23083 * passes.def (pass_simduid_cleanup): Add new pass after loop
23085 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
23086 indirection from htab argument's type.
23087 (shrink_simd_arrays): New function.
23088 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
23089 Don't call adjust_simduid_builtins if there are no loops.
23090 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
23091 (pass_simduid_cleanup::execute): New method.
23092 (make_pass_simduid_cleanup): New function.
23094 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
23096 * tree-core.h (tree_target_option): Make opts field a pointer to a
23097 cl_target_option instead of an instance of the struct.
23098 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
23100 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
23101 TARGET_OPTION_NODE.
23102 (copy_node_stat): Allocate and copy struct cl_target_option.
23104 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
23106 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
23107 Remove conditional exposure of prototypes.
23108 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
23109 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
23110 definitions in tree.h with functions.
23111 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
23113 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
23115 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
23117 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
23118 (*cmp<mode>_signed): ... this.
23119 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
23120 (*cmp<mode>_unsigned): ... this. Remove %b.
23122 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
23124 * coretypes.h: Include input.h and as-a.h.
23125 * rtl.h: Include input.h and as-a.h for generator files.
23126 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
23127 * vec.c: Don't include diagnostic-core.h.
23128 * alias.c: Do not include input.h, line-map.h or is-a.h.
23129 * asan.c: Likewise.
23130 * attribs.c: Likewise.
23131 * auto-inc-dec.c: Likewise.
23132 * auto-profile.c: Likewise.
23133 * bb-reorder.c: Likewise.
23134 * bt-load.c: Likewise.
23135 * builtins.c: Likewise.
23136 * caller-save.c: Likewise.
23137 * calls.c: Likewise.
23138 * ccmp.c: Likewise.
23140 * cfganal.c: Likewise.
23141 * cfgbuild.c: Likewise.
23142 * cfgcleanup.c: Likewise.
23143 * cfgexpand.c: Likewise.
23144 * cfghooks.c: Likewise.
23145 * cfgloop.c: Likewise.
23146 * cfgloop.h: Likewise.
23147 * cfgloopanal.c: Likewise.
23148 * cfgloopmanip.c: Likewise.
23149 * cfgrtl.c: Likewise.
23150 * cgraph.c: Likewise.
23151 * cgraphbuild.c: Likewise.
23152 * cgraphclones.c: Likewise.
23153 * cgraphunit.c: Likewise.
23154 * cilk-common.c: Likewise.
23155 * combine-stack-adj.c: Likewise.
23156 * combine.c: Likewise.
23157 * compare-elim.c: Likewise.
23158 * convert.c: Likewise.
23159 * coverage.c: Likewise.
23160 * cppbuiltin.c: Likewise.
23161 * cprop.c: Likewise.
23163 * cselib.c: Likewise.
23164 * data-streamer-in.c: Likewise.
23165 * data-streamer-out.c: Likewise.
23166 * data-streamer.c: Likewise.
23167 * dbxout.c: Likewise.
23170 * debug.c: Likewise.
23171 * df-core.c: Likewise.
23172 * df-problems.c: Likewise.
23173 * df-scan.c: Likewise.
23176 * diagnostic-core.h: Likewise.
23177 * diagnostic.c: Likewise.
23178 * dojump.c: Likewise.
23179 * dominance.c: Likewise.
23180 * domwalk.c: Likewise.
23181 * double-int.c: Likewise.
23183 * dumpfile.c: Likewise.
23184 * dumpfile.h: Likewise.
23185 * dwarf2asm.c: Likewise.
23186 * dwarf2cfi.c: Likewise.
23187 * dwarf2out.c: Likewise.
23188 * emit-rtl.c: Likewise.
23189 * et-forest.c: Likewise.
23190 * except.c: Likewise.
23191 * explow.c: Likewise.
23192 * expmed.c: Likewise.
23193 * expr.c: Likewise.
23194 * final.c: Likewise.
23195 * fixed-value.c: Likewise.
23196 * fold-const.c: Likewise.
23197 * function.c: Likewise.
23198 * fwprop.c: Likewise.
23199 * gcc-plugin.h: Likewise.
23200 * gcse.c: Likewise.
23201 * generic-match-head.c: Likewise.
23202 * ggc-page.c: Likewise.
23203 * gimple-builder.c: Likewise.
23204 * gimple-expr.c: Likewise.
23205 * gimple-fold.c: Likewise.
23206 * gimple-iterator.c: Likewise.
23207 * gimple-low.c: Likewise.
23208 * gimple-match-head.c: Likewise.
23209 * gimple-pretty-print.c: Likewise.
23210 * gimple-ssa-isolate-paths.c: Likewise.
23211 * gimple-ssa-strength-reduction.c: Likewise.
23212 * gimple-streamer-in.c: Likewise.
23213 * gimple-streamer-out.c: Likewise.
23214 * gimple-streamer.h: Likewise.
23215 * gimple-walk.c: Likewise.
23216 * gimple.c: Likewise.
23217 * gimplify-me.c: Likewise.
23218 * gimplify.c: Likewise.
23219 * godump.c: Likewise.
23220 * graph.c: Likewise.
23221 * graphite-blocking.c: Likewise.
23222 * graphite-dependences.c: Likewise.
23223 * graphite-interchange.c: Likewise.
23224 * graphite-isl-ast-to-gimple.c: Likewise.
23225 * graphite-optimize-isl.c: Likewise.
23226 * graphite-poly.c: Likewise.
23227 * graphite-scop-detection.c: Likewise.
23228 * graphite-sese-to-poly.c: Likewise.
23229 * graphite.c: Likewise.
23230 * haifa-sched.c: Likewise.
23231 * hw-doloop.c: Likewise.
23232 * ifcvt.c: Likewise.
23233 * init-regs.c: Likewise.
23234 * input.c: Likewise.
23235 * internal-fn.c: Likewise.
23236 * ipa-chkp.c: Likewise.
23237 * ipa-comdats.c: Likewise.
23238 * ipa-cp.c: Likewise.
23239 * ipa-devirt.c: Likewise.
23240 * ipa-icf-gimple.c: Likewise.
23241 * ipa-icf.c: Likewise.
23242 * ipa-inline-analysis.c: Likewise.
23243 * ipa-inline-transform.c: Likewise.
23244 * ipa-inline.c: Likewise.
23245 * ipa-polymorphic-call.c: Likewise.
23246 * ipa-profile.c: Likewise.
23247 * ipa-prop.c: Likewise.
23248 * ipa-pure-const.c: Likewise.
23249 * ipa-ref.c: Likewise.
23250 * ipa-reference.c: Likewise.
23251 * ipa-split.c: Likewise.
23252 * ipa-utils.c: Likewise.
23253 * ipa-visibility.c: Likewise.
23255 * ira-build.c: Likewise.
23256 * ira-color.c: Likewise.
23257 * ira-conflicts.c: Likewise.
23258 * ira-costs.c: Likewise.
23259 * ira-emit.c: Likewise.
23260 * ira-lives.c: Likewise.
23262 * jump.c: Likewise.
23263 * langhooks.c: Likewise.
23265 * loop-doloop.c: Likewise.
23266 * loop-init.c: Likewise.
23267 * loop-invariant.c: Likewise.
23268 * loop-iv.c: Likewise.
23269 * loop-unroll.c: Likewise.
23270 * lower-subreg.c: Likewise.
23271 * lra-assigns.c: Likewise.
23272 * lra-coalesce.c: Likewise.
23273 * lra-constraints.c: Likewise.
23274 * lra-eliminations.c: Likewise.
23275 * lra-lives.c: Likewise.
23276 * lra-remat.c: Likewise.
23277 * lra-spills.c: Likewise.
23279 * lto-cgraph.c: Likewise.
23280 * lto-compress.c: Likewise.
23281 * lto-opts.c: Likewise.
23282 * lto-section-in.c: Likewise.
23283 * lto-section-out.c: Likewise.
23284 * lto-streamer-in.c: Likewise.
23285 * lto-streamer-out.c: Likewise.
23286 * lto-streamer.c: Likewise.
23288 * mode-switching.c: Likewise.
23289 * modulo-sched.c: Likewise.
23290 * omega.c: Likewise.
23291 * omp-low.c: Likewise.
23292 * optabs.c: Likewise.
23293 * opts-global.c: Likewise.
23294 * opts.h: Likewise.
23295 * passes.c: Likewise.
23296 * plugin.c: Likewise.
23297 * postreload-gcse.c: Likewise.
23298 * postreload.c: Likewise.
23299 * predict.c: Likewise.
23300 * pretty-print.h: Likewise.
23301 * print-rtl.c: Likewise.
23302 * print-tree.c: Likewise.
23303 * profile.c: Likewise.
23304 * real.c: Likewise.
23305 * realmpfr.c: Likewise.
23306 * recog.c: Likewise.
23308 * reg-stack.c: Likewise.
23309 * regcprop.c: Likewise.
23310 * reginfo.c: Likewise.
23311 * regrename.c: Likewise.
23312 * regstat.c: Likewise.
23313 * reload.c: Likewise.
23314 * reload1.c: Likewise.
23315 * reorg.c: Likewise.
23316 * resource.c: Likewise.
23317 * rtl-chkp.c: Likewise.
23318 * rtl-error.c: Likewise.
23319 * rtlanal.c: Likewise.
23320 * rtlhooks.c: Likewise.
23321 * sanopt.c: Likewise.
23322 * sched-deps.c: Likewise.
23323 * sched-ebb.c: Likewise.
23324 * sched-rgn.c: Likewise.
23325 * sched-vis.c: Likewise.
23326 * sdbout.c: Likewise.
23327 * sel-sched-dump.c: Likewise.
23328 * sel-sched-ir.c: Likewise.
23329 * sel-sched.c: Likewise.
23330 * sese.c: Likewise.
23331 * shrink-wrap.c: Likewise.
23332 * simplify-rtx.c: Likewise.
23333 * stack-ptr-mod.c: Likewise.
23334 * statistics.c: Likewise.
23335 * stmt.c: Likewise.
23336 * stor-layout.c: Likewise.
23337 * store-motion.c: Likewise.
23338 * streamer-hooks.c: Likewise.
23339 * stringpool.c: Likewise.
23340 * symtab.c: Likewise.
23341 * target-globals.c: Likewise.
23342 * targhooks.c: Likewise.
23343 * toplev.c: Likewise.
23344 * tracer.c: Likewise.
23345 * trans-mem.c: Likewise.
23346 * tree-affine.c: Likewise.
23347 * tree-browser.c: Likewise.
23348 * tree-call-cdce.c: Likewise.
23349 * tree-cfg.c: Likewise.
23350 * tree-cfgcleanup.c: Likewise.
23351 * tree-chkp-opt.c: Likewise.
23352 * tree-chkp.c: Likewise.
23353 * tree-chrec.c: Likewise.
23354 * tree-complex.c: Likewise.
23355 * tree-data-ref.c: Likewise.
23356 * tree-dfa.c: Likewise.
23357 * tree-diagnostic.c: Likewise.
23358 * tree-dump.c: Likewise.
23359 * tree-eh.c: Likewise.
23360 * tree-emutls.c: Likewise.
23361 * tree-if-conv.c: Likewise.
23362 * tree-inline.c: Likewise.
23363 * tree-into-ssa.c: Likewise.
23364 * tree-iterator.c: Likewise.
23365 * tree-loop-distribution.c: Likewise.
23366 * tree-nested.c: Likewise.
23367 * tree-nrv.c: Likewise.
23368 * tree-object-size.c: Likewise.
23369 * tree-outof-ssa.c: Likewise.
23370 * tree-parloops.c: Likewise.
23371 * tree-phinodes.c: Likewise.
23372 * tree-predcom.c: Likewise.
23373 * tree-pretty-print.c: Likewise.
23374 * tree-profile.c: Likewise.
23375 * tree-scalar-evolution.c: Likewise.
23376 * tree-sra.c: Likewise.
23377 * tree-ssa-address.c: Likewise.
23378 * tree-ssa-alias.c: Likewise.
23379 * tree-ssa-ccp.c: Likewise.
23380 * tree-ssa-coalesce.c: Likewise.
23381 * tree-ssa-copy.c: Likewise.
23382 * tree-ssa-copyrename.c: Likewise.
23383 * tree-ssa-dce.c: Likewise.
23384 * tree-ssa-dom.c: Likewise.
23385 * tree-ssa-dse.c: Likewise.
23386 * tree-ssa-forwprop.c: Likewise.
23387 * tree-ssa-ifcombine.c: Likewise.
23388 * tree-ssa-live.c: Likewise.
23389 * tree-ssa-loop-ch.c: Likewise.
23390 * tree-ssa-loop-im.c: Likewise.
23391 * tree-ssa-loop-ivcanon.c: Likewise.
23392 * tree-ssa-loop-ivopts.c: Likewise.
23393 * tree-ssa-loop-manip.c: Likewise.
23394 * tree-ssa-loop-niter.c: Likewise.
23395 * tree-ssa-loop-prefetch.c: Likewise.
23396 * tree-ssa-loop-unswitch.c: Likewise.
23397 * tree-ssa-loop.c: Likewise.
23398 * tree-ssa-math-opts.c: Likewise.
23399 * tree-ssa-operands.c: Likewise.
23400 * tree-ssa-phiopt.c: Likewise.
23401 * tree-ssa-phiprop.c: Likewise.
23402 * tree-ssa-pre.c: Likewise.
23403 * tree-ssa-propagate.c: Likewise.
23404 * tree-ssa-reassoc.c: Likewise.
23405 * tree-ssa-sccvn.c: Likewise.
23406 * tree-ssa-scopedtables.c: Likewise.
23407 * tree-ssa-sink.c: Likewise.
23408 * tree-ssa-strlen.c: Likewise.
23409 * tree-ssa-structalias.c: Likewise.
23410 * tree-ssa-tail-merge.c: Likewise.
23411 * tree-ssa-ter.c: Likewise.
23412 * tree-ssa-threadedge.c: Likewise.
23413 * tree-ssa-threadupdate.c: Likewise.
23414 * tree-ssa-uncprop.c: Likewise.
23415 * tree-ssa-uninit.c: Likewise.
23416 * tree-ssa.c: Likewise.
23417 * tree-ssanames.c: Likewise.
23418 * tree-stdarg.c: Likewise.
23419 * tree-streamer-in.c: Likewise.
23420 * tree-streamer-out.c: Likewise.
23421 * tree-streamer.c: Likewise.
23422 * tree-switch-conversion.c: Likewise.
23423 * tree-tailcall.c: Likewise.
23424 * tree-vect-data-refs.c: Likewise.
23425 * tree-vect-generic.c: Likewise.
23426 * tree-vect-loop-manip.c: Likewise.
23427 * tree-vect-loop.c: Likewise.
23428 * tree-vect-patterns.c: Likewise.
23429 * tree-vect-slp.c: Likewise.
23430 * tree-vect-stmts.c: Likewise.
23431 * tree-vectorizer.c: Likewise.
23432 * tree-vrp.c: Likewise.
23433 * tree.c: Likewise.
23434 * tsan.c: Likewise.
23435 * ubsan.c: Likewise.
23436 * valtrack.c: Likewise.
23437 * value-prof.c: Likewise.
23438 * var-tracking.c: Likewise.
23439 * varasm.c: Likewise.
23440 * varpool.c: Likewise.
23441 * vmsdbgout.c: Likewise.
23442 * vtable-verify.c: Likewise.
23444 * wide-int.cc: Likewise.
23445 * xcoffout.c: Likewise.
23446 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
23447 * common/common-targhooks.c: Likewise.
23448 * config/aarch64/aarch64-builtins.c: Likewise.
23449 * config/aarch64/aarch64.c: Likewise.
23450 * config/alpha/alpha.c: Likewise.
23451 * config/arc/arc.c: Likewise.
23452 * config/arm/aarch-common.c: Likewise.
23453 * config/arm/arm-builtins.c: Likewise.
23454 * config/arm/arm-c.c: Likewise.
23455 * config/arm/arm.c: Likewise.
23456 * config/avr/avr-c.c: Likewise.
23457 * config/avr/avr-log.c: Likewise.
23458 * config/avr/avr.c: Likewise.
23459 * config/bfin/bfin.c: Likewise.
23460 * config/c6x/c6x.c: Likewise.
23461 * config/cr16/cr16.c: Likewise.
23462 * config/cris/cris.c: Likewise.
23463 * config/darwin-c.c: Likewise.
23464 * config/darwin.c: Likewise.
23465 * config/default-c.c: Likewise.
23466 * config/epiphany/epiphany.c: Likewise.
23467 * config/epiphany/mode-switch-use.c: Likewise.
23468 * config/epiphany/resolve-sw-modes.c: Likewise.
23469 * config/fr30/fr30.c: Likewise.
23470 * config/frv/frv.c: Likewise.
23471 * config/ft32/ft32.c: Likewise.
23472 * config/glibc-c.c: Likewise.
23473 * config/h8300/h8300.c: Likewise.
23474 * config/i386/i386-c.c: Likewise.
23475 * config/i386/i386.c: Likewise.
23476 * config/i386/msformat-c.c: Likewise.
23477 * config/i386/winnt-cxx.c: Likewise.
23478 * config/i386/winnt-stubs.c: Likewise.
23479 * config/i386/winnt.c: Likewise.
23480 * config/ia64/ia64-c.c: Likewise.
23481 * config/ia64/ia64.c: Likewise.
23482 * config/iq2000/iq2000.c: Likewise.
23483 * config/lm32/lm32.c: Likewise.
23484 * config/m32c/m32c-pragma.c: Likewise.
23485 * config/m32c/m32c.c: Likewise.
23486 * config/m32r/m32r.c: Likewise.
23487 * config/m68k/m68k.c: Likewise.
23488 * config/mcore/mcore.c: Likewise.
23489 * config/mep/mep-pragma.c: Likewise.
23490 * config/mep/mep.c: Likewise.
23491 * config/microblaze/microblaze-c.c: Likewise.
23492 * config/microblaze/microblaze.c: Likewise.
23493 * config/mips/mips.c: Likewise.
23494 * config/mmix/mmix.c: Likewise.
23495 * config/mn10300/mn10300.c: Likewise.
23496 * config/moxie/moxie.c: Likewise.
23497 * config/msp430/msp430-c.c: Likewise.
23498 * config/msp430/msp430.c: Likewise.
23499 * config/nds32/nds32-cost.c: Likewise.
23500 * config/nds32/nds32-fp-as-gp.c: Likewise.
23501 * config/nds32/nds32-intrinsic.c: Likewise.
23502 * config/nds32/nds32-isr.c: Likewise.
23503 * config/nds32/nds32-md-auxiliary.c: Likewise.
23504 * config/nds32/nds32-memory-manipulation.c: Likewise.
23505 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23506 * config/nds32/nds32-predicates.c: Likewise.
23507 * config/nds32/nds32.c: Likewise.
23508 * config/nios2/nios2.c: Likewise.
23509 * config/nvptx/nvptx.c: Likewise.
23510 * config/pa/pa.c: Likewise.
23511 * config/pdp11/pdp11.c: Likewise.
23512 * config/rl78/rl78-c.c: Likewise.
23513 * config/rl78/rl78.c: Likewise.
23514 * config/rs6000/rs6000-c.c: Likewise.
23515 * config/rs6000/rs6000.c: Likewise.
23516 * config/rx/rx.c: Likewise.
23517 * config/s390/s390-c.c: Likewise.
23518 * config/s390/s390.c: Likewise.
23519 * config/sh/sh-c.c: Likewise.
23520 * config/sh/sh-mem.cc: Likewise.
23521 * config/sh/sh.c: Likewise.
23522 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23523 * config/sh/sh_treg_combine.cc: Likewise.
23524 * config/sol2-c.c: Likewise.
23525 * config/sol2-cxx.c: Likewise.
23526 * config/sol2-stubs.c: Likewise.
23527 * config/sol2.c: Likewise.
23528 * config/sparc/sparc-c.c: Likewise.
23529 * config/sparc/sparc.c: Likewise.
23530 * config/spu/spu-c.c: Likewise.
23531 * config/spu/spu.c: Likewise.
23532 * config/stormy16/stormy16.c: Likewise.
23533 * config/tilegx/mul-tables.c: Likewise.
23534 * config/tilegx/tilegx-c.c: Likewise.
23535 * config/tilegx/tilegx.c: Likewise.
23536 * config/tilepro/mul-tables.c: Likewise.
23537 * config/tilepro/tilepro-c.c: Likewise.
23538 * config/tilepro/tilepro.c: Likewise.
23539 * config/v850/v850-c.c: Likewise.
23540 * config/v850/v850.c: Likewise.
23541 * config/vax/vax.c: Likewise.
23542 * config/visium/visium.c: Likewise.
23543 * config/vms/vms-c.c: Likewise.
23544 * config/vms/vms.c: Likewise.
23545 * config/vxworks.c: Likewise.
23546 * config/winnt-c.c: Likewise.
23547 * config/xtensa/xtensa.c: Likewise.
23549 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
23551 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
23553 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
23555 2015-06-17 Richard Biener <rguenther@suse.de>
23557 PR tree-optimization/66251
23558 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
23559 stmts for SLP strided stores.
23562 2015-05-22 Richard Biener <rguenther@suse.de>
23564 PR tree-optimization/66251
23565 * tree-vect-stmts.c (vectorizable_conversion): Properly
23566 set STMT_VINFO_VEC_STMT even for the SLP case.
23568 2015-05-26 Michael Matz <matz@suse.de>
23570 PR middle-end/66251
23571 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
23572 STMT_VINFO_VEC_STMT, also with SLP.
23574 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
23577 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
23578 (*avx_addsubv4df3_1s): Ditto.
23579 (*sse3_addsubv2df3_1): Ditto.
23580 (*sse3_addsubv2df3_1s): Ditto.
23581 (*avx_addsubv8sf3_1): Ditto.
23582 (*avx_addsubv8sf3_1s): Ditto.
23583 (*sse3_addsubv4sf3_1): Ditto.
23584 (*sse3_addsubv4sf3_1s): Ditto.
23586 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
23588 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
23589 (SYSROOT_SUFFIX_SPEC): Update.
23590 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
23591 (STARTFILE_PREFIX_SPEC): Update.
23592 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
23593 (MULTILIB_REQUIRED): New.
23594 (MULTILIB_OSDIRNAMES): New.
23595 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
23596 (MULTILIB_REQUIRED): New.
23597 (MULTILIB_OSDIRNAMES): New.
23599 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
23601 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
23602 * config/aarch64/aarch64-options-extensions.def: Update "fP",
23603 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
23604 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
23605 (AARCH64_FL_PAN): New.
23606 (AARCH64_FL_LOR): New.
23607 (AARCH64_FL_RDMA): New.
23608 (AARCH64_FL_FOR_ARCH8_1): New.
23609 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
23610 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
23612 2015-06-16 Martin Liska <mliska@suse.cz>
23614 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
23615 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
23618 2015-06-16 Richard Biener <rguenther@suse.de>
23620 * tree-vect-stmts.c (vectorizable_store): Adjust.
23621 (vectorizable_load): Likewise.
23622 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
23624 (vect_create_data_ref_ptr): Likewise.
23625 (bump_vector_ptr): Adjust.
23627 2015-06-16 Richard Biener <rguenther@suse.de>
23629 * tree-vect-stmts.c (vectorizable_load): Properly start loads
23630 with the first element if this is grouped loads.
23632 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
23634 * config/arm/arm-protos.h (struct tune_params): Rename
23635 log_op_non_sc to log_op_non_short_circuit, and rename enum
23636 values to expand SC to SHORT_CIRCUIT.
23637 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
23638 to LOG_OP_NON_SHORT_CIRCUIT.
23639 (arm_fastmul_tune):Likewise
23640 (arm_strongarm_tune): Likewise.
23641 (arm_xscale_tune): Likewise.
23642 (arm_9e_tune): Likewise.
23643 (arm_marvell_pj4_tune): Likewise.
23644 (arm_v6t2_tune): Likewise.
23645 (arm_cortex_tune): Likewise.
23646 (arm_cortex_a8_tune): Likewise.
23647 (arm_cortex_a7_tune): Likewise.
23648 (arm_cortex_a15_tune): Likewise.
23649 (arm_cortex_a53_tune): Likewise.
23650 (arm_cortex_a57_tune): Likewise.
23651 (arm_xgene1_tune): Likewise.
23652 (arm_cortex_a5_tune): Likewise.
23653 (arm_cortex_a9_tune): Likewise.
23654 (arm_cortex_a12_tune): Likewise.
23655 (arm_v7m_tune): Likewise.
23656 (arm_cortex_m7_tune): Likewise.
23657 (arm_v6m_tune): Likewise.
23658 (arm_fa726te_tune): Likewise.
23660 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
23662 * altivec.md: Delete UNSPEC_VMLADDUHM.
23663 (mulv4si3_p8): New pattern.
23664 (mulv4si3): Use it for POWER8.
23665 (mulv8hi3): Use vmladduhm with zero addend.
23666 (altivec_vmladduhm): Descriptive RTL.
23668 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
23670 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
23671 to use neon_move instead of mov_imm.
23672 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
23673 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
23675 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
23676 aarch64_float_const_zero_rtx_p check before TFmode check.
23677 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
23679 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
23680 code and attributes to match. Change condition from register_operand
23681 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
23682 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
23685 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
23688 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
23689 there is no parent.
23691 2015-06-14 Shiva Chen <shiva0217@gmail.com>
23693 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
23694 HOST_WIDE_INT parameter.
23696 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
23699 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
23700 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
23702 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
23704 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
23706 * rtl.h (classify_insn): Declare.
23707 * emit-rtl.c (classify_insn): Move to...
23708 * rtl.c: ...here and add generator support.
23709 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
23710 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
23711 * genemit.c (gen_emit_seq): New function.
23712 (gen_expand, gen_split): Use it.
23714 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
23716 * tree.c (make_vector_stat): Fix comment to state that the
23717 function returns a VECTOR_CST.
23719 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
23721 * gensupport.h (add_implicit_parallel): Declare.
23722 * genrecog.c (add_implicit_parallel): Move to...
23723 * gensupport.c (add_implicit_parallel): ...here.
23724 (process_one_cond_exec): Use it.
23725 * genemit.c (gen_insn): Likewise.
23727 2015-06-13 Iain Sandoe <iain@codesourcery.com>
23730 * passes.c (rest_of_decl_compilation): Do not register globals for
23731 early debug if they are declared in built-ins.
23733 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
23735 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
23737 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23739 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
23741 (noce_try_cmove_arith): Likewise.
23742 (noce_get_alt_condition): Likewise.
23744 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23746 * common/config/i386/i386-common.c
23747 (OPTION_MASK_ISA_MWAITX_SET): New.
23748 (ix86_handle_option): Handle mwaitx.
23749 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
23750 (x86_64-*-*): Likewise.
23751 * config/i386/mwaitxintrin.h: New header.
23752 * config/i386/cpuid.h (bit_MWAITX): Define.
23753 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23755 * config/i386/i386.opt (mwaitx): New.
23756 * config/i386/i386-builtin-types.def
23757 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
23758 * config/i386/i386-c.c: Define __MWAITX__ if needed.
23759 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
23761 (ix86_option_override_internal): Handle new option.
23762 (processor_alias_table): Added PTA_MWAITX.
23763 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
23764 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
23765 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
23766 IX86_BUILTIN_MONITORX built-ins.
23767 * config/i386/i386.h (TARGET_MWAITX): New.
23768 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
23770 (mwaitx): New pattern.
23771 (monitorx_<mode>): New pattern.
23772 * config/i386/x86intrin.h: Include mwaitxintrin.h.
23773 * doc/extend.texi: Document monitorx and mwaitx builtins.
23774 * doc/invoke.texi: Document -mmwaitx option.
23776 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
23778 * emit-rtl.c (need_atomic_barrier_p): Mask model with
23779 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
23781 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
23783 * dbxout.c (xcoff_debug_hooks): Provide a function for
23784 register_main_translation_unit hook.
23786 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
23788 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
23789 variants cases from switch.
23790 (rs6000_post_atomic_barrier): Same.
23791 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
23792 (rs6000_expand_atomic_exchange): Same.
23793 (rs6000_expand_atomic_op): Same.
23794 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
23795 SYNC variants cases from switch.
23796 (atomic_load): Same.
23797 (atomic_store): Same.
23799 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
23801 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
23802 CONST_INT for goto.
23804 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
23807 * dwarf2out.c (check_die): Check for common duplicate attributes.
23808 (add_location_or_const_value_attribute): Do not add duplicate
23810 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
23812 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
23813 (gen_type_die_with_usage): Call check_die.
23814 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
23816 2015-06-11 Jason Merrill <jason@redhat.com>
23818 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
23821 2015-06-11 Marek Polacek <polacek@redhat.com>
23823 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
23825 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
23828 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
23829 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
23830 (*addx_extend_sp32): Fix pasto.
23831 (*subx_extend): Rename into...
23832 (*subx_extend_sp32): ...this.
23833 (*adddi3_extend_sp32): Add earlyclobber.
23834 (*subdi3_insn_sp32): Likewise.
23835 (*subdi3_extend_sp32): Likewise.
23836 (*and_not_di_sp32): Likewise.
23837 (*or_not_di_sp32): Likewise.
23838 (*xor_not_di_sp32): Likewise.
23839 (*negdi2_sp32): Likewise.
23840 (*one_cmpldi2_sp32): Likewise.
23842 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
23844 * debug.h (struct gcc_debug_hooks): Add a
23845 register_main_translation_unit hook.
23846 * debug.c (do_nothing_debug_hooks): Provide a function for this
23848 * dbxout.c (dbx_debug_hooks): Likewise.
23849 * sdbout.c (sdb_debug_hooks): Likewise.
23850 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
23851 * dwarf2out.c (main_translation_unit): New global variable.
23852 (dwarf2out_register_main_translation_unit): New function
23853 implementing the new hook.
23854 (dwarf2_debug_hooks): Assign
23855 dwarf2out_register_main_translation_unit to this new hook.
23856 (dwarf2out_init): Associate any main translation unit to
23859 2015-06-11 Marek Polacek <polacek@redhat.com>
23861 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
23863 2015-06-11 Marek Polacek <polacek@redhat.com>
23865 * match.pd: Use single_use throughout.
23867 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23869 * config/arm/arm.c (arm_option_params_internal): When optimising
23870 for speed set max_insns_skipped when arm_restrict_it.
23872 2015-06-11 Christian Bruel <christian.bruel@st.com>
23875 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
23877 (arm_cpu_builtins): New function.
23878 (arm_pragma_target_parse): Call arm_cpu_builtins.
23879 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
23880 (arm_register_target_pragmas): Likewise.
23881 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
23882 Call arm_register_target_pragmas.
23883 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
23884 (arm_pragma_target_parse): Likewise.
23886 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
23888 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
23889 of the second operand.
23891 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
23894 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
23895 to prepare mask operand for AVX512 modes.
23897 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
23900 * doc/md.texi (Machine Constraints): Document that on the PowerPC
23901 if you use a constraint that targets a VSX register, you must use
23902 %x<n> in the template.
23904 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
23906 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
23907 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
23908 (define_insn "trap"): New definition.
23910 2015-06-10 Richard Biener <rguenther@suse.de>
23912 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
23914 (vect_supported_load_permutation_p): ... here. Handle
23915 supportable permutations in reductions.
23916 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
23917 for vectorizing strided group loads.
23919 2015-06-10 Jakub Jelinek <jakub@redhat.com>
23922 * config/i386/i386.c (ix86_split_long_move): For collisions
23923 involving direct tls segment refs, move the UNSPEC_TP possibly
23924 wrapped in ZERO_EXTEND out of the address for lea, to each of
23927 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23929 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
23930 dmb sy. Adjust tabs.
23932 2015-06-10 Tom de Vries <tom@codesourcery.com>
23934 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
23936 2015-06-10 Martin Liska <mliska@suse.cz>
23939 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
23940 all enum values in mem_alloc_origin.
23941 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
23943 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
23944 * bitmap.c (bitmap_register): Likewise.
23945 (dump_bitmap_statistics): Likewise.
23946 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
23947 (ggc_record_overhead): Likewise.
23948 * hash-map.h: Likewise.
23949 * hash-set.h: Likewise.
23950 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
23951 * hash-table.h: Likewise.
23952 * vec.c (vec_prefix::register_overhead): Likewise.
23953 (vec_prefix::release_overhead): Likewise.
23954 (dump_vec_loc_statistics): Likewise.
23956 2015-06-09 Christian Bruel <christian.bruel@st.com>
23959 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
23960 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
23961 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
23962 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
23963 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
23964 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
23965 (arm_valid_target_attribute_p): Likewise.
23966 (arm_set_current_function, arm_can_inline_p): Likewise.
23967 (arm_valid_target_attribute_rec): Likewise.
23968 (arm_previous_fndecl): New variable.
23969 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
23970 (TARGET_CAN_INLINE_P): Define.
23971 (arm_asm_trampoline_template): Emit mode.
23972 (arm_file_start): Don't set unified syntax.
23973 (arm_declare_function_name): Set unified syntax and mode.
23974 (arm_option_override): Init target_option_default_node.
23975 and target_option_current_node.
23976 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
23977 (*call_symbol): Likewise.
23978 * doc/extend.texi: Document ARM/Thumb target attribute.
23979 * doc/invoke.texi: Likewise.
23981 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
23984 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
23985 PR rtl-optimization/64164
23986 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
23987 * tree-ssa-copyrename.c: Removed.
23988 * opts.c (default_options_table): Drop -ftree-copyrename. Add
23989 -ftree-coalesce-vars.
23990 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
23991 * common.opt (ftree-copyrename): Ignore.
23992 (ftree-coalesce-inlined-vars): Likewise.
23993 * doc/invoke.texi: Remove the ignored options above.
23994 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
23995 * tree-ssa-coalesce.h: ... here.
23996 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
23997 headers required by it.
23998 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
23999 across variables when flag_tree_coalesce_vars. Check register
24000 use and promoted modes to allow coalescing. Moved to
24001 tree-ssa-coalesce.c.
24002 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
24003 with its member functions to tree-ssa-coalesce.c.
24004 (var_map_base_init): Likewise. Renamed to
24005 compute_samebase_partition_bases.
24006 (partition_view_normal): Drop want_bases parameter.
24007 (partition_view_bitmap): Likewise.
24008 * tree-ssa-live.h: Adjust declarations.
24009 * tree-ssa-coalesce.c: Include explow.h.
24010 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
24011 default defs at the entry point.
24012 (dump_part_var_map): New.
24013 (compute_optimized_partition_bases): New, called by...
24014 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
24015 of compute_samebase_partition_bases. Adjust.
24016 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
24017 * cfgexpand.c (leader_merge): New.
24018 (get_rtl_for_parm_ssa_default_def): New.
24019 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
24020 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
24021 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
24022 redundant MEM attr setting.
24023 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
24025 (expand_one_stack_var): ... this. New wrapper to check and
24026 skip already expanded SSA partitions.
24027 (record_alignment_for_reg_var): New, factored out of...
24028 (expand_one_var): ... this.
24029 (expand_one_ssa_partition): New.
24030 (adjust_one_expanded_partition_var): New.
24031 (expand_one_register_var): Check and skip already expanded SSA
24033 (expand_used_vars): Don't create DECLs for anonymous SSA
24034 names. Expand all SSA partitions, then adjust all SSA names.
24035 (pass::execute): Replace the loops that set
24036 SA.partition_to_pseudo from partition leaders and cleared
24037 DECL_RTL for multi-location variables, and that which used to
24038 rename vars and set attrs, with one that clears DECL_RTL and
24039 checks that PARMs and RESULTs default_defs match DECL_RTL.
24040 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
24041 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
24042 * explow.c (promote_ssa_mode): New.
24043 * explow.h (promote_ssa_mode): Declare.
24044 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
24045 * function.c: Include cfgexpand.h.
24046 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
24047 (use_register_for_parm_decl): Wrapper for the above to
24048 special-case the result_ptr.
24049 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
24050 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
24051 multiple locations.
24052 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
24053 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
24054 (assign_parm_setup_block): Prefer SSA-assigned location.
24055 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
24056 if stack_parm is NULL.
24057 (assign_parm_setup_stack): Prefer SSA-assigned location.
24058 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
24059 rtl before testing for pointer bounds. Special-case result_ptr.
24060 (expand_function_start): Maybe reset DECL_RTL of result.
24061 Prefer SSA-assigned location for result and static chain.
24062 Factor out DECL_RESULT and SET_DECL_RTL.
24063 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
24064 anonymous SSA names. Use promote_ssa_mode.
24065 (get_temp_reg): Likewise.
24066 (remove_ssa_form): Adjust.
24067 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
24068 and get its reg_usage for reg invalidation.
24069 (compute_bb_dataflow): Pass it insn.
24070 (emit_notes_in_bb): Likewise.
24071 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
24072 fail assert on conversion between unsigned types.
24074 2015-06-09 Tom de Vries <tom@codesourcery.com>
24076 PR tree-optimization/65460
24077 * omp-low.c (expand_omp_target): Set parallelized_function on
24078 cgraph_node for child_fn.
24080 2015-06-09 Tom de Vries <tom@codesourcery.com>
24082 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
24083 parallelized_function before add_new_function.
24085 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
24087 * gcc-plugin.h: Move decls to plugin.h and include it.
24088 * plugin.h: Relocate decls from gcc-plugin.h
24089 * ggc-page.c: Include required header files.
24090 * passes.c: Likewise.
24091 * cgraphunit.c: Likewise.
24093 2015-06-09 Tom de Vries <tom@codesourcery.com>
24095 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
24097 2015-06-09 Jason Merrill <jason@redhat.com>
24100 * toplev.c (check_global_declaration): Don't warn about a clone.
24102 2015-06-09 Marek Polacek <polacek@redhat.com>
24104 PR tree-optimization/66299
24105 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
24106 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
24109 2015-06-09 Richard Biener <rguenther@suse.de>
24111 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
24112 (vect_analyze_slp_instance): Instead do not falsely drop
24115 2015-06-09 Richard Biener <rguenther@suse.de>
24117 PR middle-end/66423
24118 * match.pd: Handle A % (unsigned)(1 << B).
24120 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
24122 * varasm.c (output_object_block_htab): Remove.
24123 (output_object_block_compare): New.
24124 (output_object_blocks): Sort named object_blocks before outputting
24127 2015-06-09 Richard Biener <rguenther@suse.de>
24129 PR tree-optimization/66419
24130 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
24131 consider GROUP_GAP when detecting a perfect subchain.
24133 2015-06-09 Nick Clifton <nickc@redhat.com>
24135 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
24136 place read only data in the .frodata section.
24138 2015-06-09 Shiva Chen <shiva0217@gmail.com>
24140 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
24141 (atomic_store<mode>): Likewise.
24143 2015-06-09 Richard Biener <rguenther@suse.de>
24145 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
24147 2015-06-09 Richard Biener <rguenther@suse.de>
24149 PR middle-end/66413
24150 * tree-inline.c (insert_init_debug_bind): Unshare value.
24152 2015-06-09 Richard Biener <rguenther@suse.de>
24154 PR tree-optimization/66396
24155 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
24156 Rename virtual operands.
24158 2015-06-09 Tom de Vries <tom@codesourcery.com>
24160 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
24161 always return false.
24163 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24165 PR rtl-optimization/64164
24166 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
24167 * tree-ssa-copyrename.c: Removed.
24168 * opts.c (default_options_table): Drop -ftree-copyrename. Add
24169 -ftree-coalesce-vars.
24170 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
24171 * common.opt (ftree-copyrename): Ignore.
24172 (ftree-coalesce-inlined-vars): Likewise.
24173 * doc/invoke.texi: Remove the ignored options above.
24174 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
24175 * tree-ssa-coalesce.h: ... here.
24176 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
24177 headers required by it.
24178 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
24179 across variables when flag_tree_coalesce_vars. Check register
24180 use and promoted modes to allow coalescing. Moved to
24181 tree-ssa-coalesce.c.
24182 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
24183 with its member functions to tree-ssa-coalesce.c.
24184 (var_map_base_init): Likewise. Renamed to
24185 compute_samebase_partition_bases.
24186 (partition_view_normal): Drop want_bases parameter.
24187 (partition_view_bitmap): Likewise.
24188 * tree-ssa-live.h: Adjust declarations.
24189 * tree-ssa-coalesce.c: Include explow.h.
24190 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
24191 default defs at the entry point.
24192 (dump_part_var_map): New.
24193 (compute_optimized_partition_bases): New, called by...
24194 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
24195 of compute_samebase_partition_bases. Adjust.
24196 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
24197 * cfgexpand.c (leader_merge): New.
24198 (get_rtl_for_parm_ssa_default_def): New.
24199 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
24200 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
24201 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
24202 redundant MEM attr setting.
24203 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
24205 (expand_one_stack_var): ... this. New wrapper to check and
24206 skip already expanded SSA partitions.
24207 (record_alignment_for_reg_var): New, factored out of...
24208 (expand_one_var): ... this.
24209 (expand_one_ssa_partition): New.
24210 (adjust_one_expanded_partition_var): New.
24211 (expand_one_register_var): Check and skip already expanded SSA
24213 (expand_used_vars): Don't create DECLs for anonymous SSA
24214 names. Expand all SSA partitions, then adjust all SSA names.
24215 (pass::execute): Replace the loops that set
24216 SA.partition_to_pseudo from partition leaders and cleared
24217 DECL_RTL for multi-location variables, and that which used to
24218 rename vars and set attrs, with one that clears DECL_RTL and
24219 checks that PARMs and RESULTs default_defs match DECL_RTL.
24220 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
24221 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
24222 * explow.c (promote_ssa_mode): New.
24223 * explow.h (promote_ssa_mode): Declare.
24224 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
24225 * function.c: Include cfgexpand.h.
24226 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
24227 (use_register_for_parm_decl): Wrapper for the above to
24228 special-case the result_ptr.
24229 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
24230 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
24231 multiple locations.
24232 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
24233 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
24234 (assign_parm_setup_block): Prefer SSA-assigned location.
24235 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
24236 if stack_parm is NULL.
24237 (assign_parm_setup_stack): Prefer SSA-assigned location.
24238 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
24239 rtl before testing for pointer bounds. Special-case result_ptr.
24240 (expand_function_start): Maybe reset DECL_RTL of result.
24241 Prefer SSA-assigned location for result and static chain.
24242 Factor out DECL_RESULT and SET_DECL_RTL.
24243 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
24244 anonymous SSA names. Use promote_ssa_mode.
24245 (get_temp_reg): Likewise.
24246 (remove_ssa_form): Adjust.
24247 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
24248 and get its reg_usage for reg invalidation.
24249 (compute_bb_dataflow): Pass it insn.
24250 (emit_notes_in_bb): Likewise.
24251 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
24252 fail assert on conversion between unsigned types.
24254 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24257 * tree-inline.c (reset_debug_binding): New.
24258 (reset_debug_bindings): Likewise.
24259 (expand_call_inline): Call it.
24261 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
24263 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
24266 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
24268 * lto-streamer-out.c (lto_output_location): Stream
24269 reserved locations correctly.
24270 * lto-streamer-in.c (lto_output_location): Likewise.
24272 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
24274 * coretypes.h: Include hash-table.h and hash-set.h for host files.
24275 * ggc.h: Don't include statistics.h>
24276 * hash-map.h: Remove all includes.
24277 * hash-set.h: Likewise.
24278 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
24279 the include list. Remove <new>.
24280 * inchash.h: Remove all includes.
24281 * mem-stats.h: Likewise.
24282 * vec.h: No special processing for generators or ggc.
24283 * alias.c : Adjust include files.
24284 * alloc-pool.c : Likewise.
24285 * alloc-pool.h : Likewise.
24286 * asan.c : Likewise.
24287 * attribs.c : Likewise.
24288 * auto-inc-dec.c : Likewise.
24289 * auto-profile.c : Likewise.
24290 * bb-reorder.c : Likewise.
24291 * bitmap.c : Likewise.
24292 * bitmap.h : Likewise.
24293 * bt-load.c : Likewise.
24294 * builtins.c : Likewise.
24295 * caller-save.c : Likewise.
24296 * calls.c : Likewise.
24297 * ccmp.c : Likewise.
24298 * cfg.c : Likewise.
24299 * cfganal.c : Likewise.
24300 * cfgbuild.c : Likewise.
24301 * cfgcleanup.c : Likewise.
24302 * cfgexpand.c : Likewise.
24303 * cfghooks.c : Likewise.
24304 * cfgloop.c : Likewise.
24305 * cfgloop.h : Likewise.
24306 * cfgloopanal.c : Likewise.
24307 * cfgloopmanip.c : Likewise.
24308 * cfgrtl.c : Likewise.
24309 * cgraph.c : Likewise.
24310 * cgraphbuild.c : Likewise.
24311 * cgraphclones.c : Likewise.
24312 * cgraphunit.c : Likewise.
24313 * cilk-common.c : Likewise.
24314 * combine-stack-adj.c : Likewise.
24315 * combine.c : Likewise.
24316 * compare-elim.c : Likewise.
24317 * context.c : Likewise.
24318 * convert.c : Likewise.
24319 * coverage.c : Likewise.
24320 * cppbuiltin.c : Likewise.
24321 * cprop.c : Likewise.
24322 * cse.c : Likewise.
24323 * cselib.c : Likewise.
24324 * data-streamer-in.c : Likewise.
24325 * data-streamer-out.c : Likewise.
24326 * data-streamer.c : Likewise.
24327 * data-streamer.h : Likewise.
24328 * dbxout.c : Likewise.
24329 * dce.c : Likewise.
24330 * ddg.c : Likewise.
24331 * debug.c : Likewise.
24332 * df-core.c : Likewise.
24333 * df-problems.c : Likewise.
24334 * df-scan.c : Likewise.
24336 * dfp.c : Likewise.
24337 * dojump.c : Likewise.
24338 * dominance.c : Likewise.
24339 * domwalk.c : Likewise.
24340 * double-int.c : Likewise.
24341 * dse.c : Likewise.
24342 * dumpfile.c : Likewise.
24343 * dwarf2asm.c : Likewise.
24344 * dwarf2cfi.c : Likewise.
24345 * dwarf2out.c : Likewise.
24346 * emit-rtl.c : Likewise.
24347 * et-forest.c : Likewise.
24348 * except.c : Likewise.
24349 * except.h : Likewise.
24350 * explow.c : Likewise.
24351 * expmed.c : Likewise.
24352 * expr.c : Likewise.
24353 * final.c : Likewise.
24354 * fixed-value.c : Likewise.
24355 * fold-const.c : Likewise.
24356 * function.c : Likewise.
24357 * fwprop.c : Likewise.
24358 * gcc-plugin.h : Likewise.
24359 * gcc.c : Likewise.
24360 * gcse-common.c : Likewise.
24361 * gcse.c : Likewise.
24362 * genattrtab.c : Likewise.
24363 * genautomata.c : Likewise.
24364 * genconditions.c : Likewise.
24365 * genemit.c : Likewise.
24366 * generic-match-head.c : Likewise.
24367 * genextract.c : Likewise.
24368 * gengtype-state.c : Likewise.
24369 * gengtype.c : Likewise.
24370 * genhooks.c : Likewise.
24371 * genmatch.c : Likewise.
24372 * genmodes.c : Likewise.
24373 * genrecog.c : Likewise.
24374 * gensupport.c : Likewise.
24375 * ggc-common.c : Likewise.
24376 * ggc-internal.h : Likewise.
24377 * ggc-none.c : Likewise.
24378 * ggc-page.c : Likewise.
24379 * gimple-builder.c : Likewise.
24380 * gimple-expr.c : Likewise.
24381 * gimple-fold.c : Likewise.
24382 * gimple-iterator.c : Likewise.
24383 * gimple-low.c : Likewise.
24384 * gimple-match-head.c : Likewise.
24385 * gimple-pretty-print.c : Likewise.
24386 * gimple-ssa-isolate-paths.c : Likewise.
24387 * gimple-ssa-strength-reduction.c : Likewise.
24388 * gimple-ssa.h : Likewise.
24389 * gimple-streamer-in.c : Likewise.
24390 * gimple-streamer-out.c : Likewise.
24391 * gimple-streamer.h : Likewise.
24392 * gimple-walk.c : Likewise.
24393 * gimple.c : Likewise.
24394 * gimplify-me.c : Likewise.
24395 * gimplify.c : Likewise.
24396 * godump.c : Likewise.
24397 * graph.c : Likewise.
24398 * graphds.c : Likewise.
24399 * graphite-blocking.c : Likewise.
24400 * graphite-dependences.c : Likewise.
24401 * graphite-interchange.c : Likewise.
24402 * graphite-isl-ast-to-gimple.c : Likewise.
24403 * graphite-optimize-isl.c : Likewise.
24404 * graphite-poly.c : Likewise.
24405 * graphite-scop-detection.c : Likewise.
24406 * graphite-sese-to-poly.c : Likewise.
24407 * graphite.c : Likewise.
24408 * haifa-sched.c : Likewise.
24409 * hard-reg-set.h : Likewise.
24410 * hw-doloop.c : Likewise.
24411 * ifcvt.c : Likewise.
24412 * inchash.c : Likewise.
24413 * incpath.c : Likewise.
24414 * init-regs.c : Likewise.
24415 * input.c : Likewise.
24416 * internal-fn.c : Likewise.
24417 * ipa-chkp.c : Likewise.
24418 * ipa-comdats.c : Likewise.
24419 * ipa-cp.c : Likewise.
24420 * ipa-devirt.c : Likewise.
24421 * ipa-icf-gimple.c : Likewise.
24422 * ipa-icf.c : Likewise.
24423 * ipa-inline-analysis.c : Likewise.
24424 * ipa-inline-transform.c : Likewise.
24425 * ipa-inline.c : Likewise.
24426 * ipa-polymorphic-call.c : Likewise.
24427 * ipa-profile.c : Likewise.
24428 * ipa-prop.c : Likewise.
24429 * ipa-pure-const.c : Likewise.
24430 * ipa-ref.c : Likewise.
24431 * ipa-reference.c : Likewise.
24432 * ipa-split.c : Likewise.
24433 * ipa-utils.c : Likewise.
24434 * ipa-visibility.c : Likewise.
24435 * ipa.c : Likewise.
24436 * ira-build.c : Likewise.
24437 * ira-color.c : Likewise.
24438 * ira-conflicts.c : Likewise.
24439 * ira-costs.c : Likewise.
24440 * ira-emit.c : Likewise.
24441 * ira-lives.c : Likewise.
24442 * ira.c : Likewise.
24443 * jump.c : Likewise.
24444 * langhooks.c : Likewise.
24445 * lcm.c : Likewise.
24446 * libfuncs.h : Likewise.
24447 * lists.c : Likewise.
24448 * loop-doloop.c : Likewise.
24449 * loop-init.c : Likewise.
24450 * loop-invariant.c : Likewise.
24451 * loop-iv.c : Likewise.
24452 * loop-unroll.c : Likewise.
24453 * lower-subreg.c : Likewise.
24454 * lra-assigns.c : Likewise.
24455 * lra-coalesce.c : Likewise.
24456 * lra-constraints.c : Likewise.
24457 * lra-eliminations.c : Likewise.
24458 * lra-lives.c : Likewise.
24459 * lra-remat.c : Likewise.
24460 * lra-spills.c : Likewise.
24461 * lra.c : Likewise.
24462 * lto-cgraph.c : Likewise.
24463 * lto-compress.c : Likewise.
24464 * lto-opts.c : Likewise.
24465 * lto-section-in.c : Likewise.
24466 * lto-section-out.c : Likewise.
24467 * lto-streamer-in.c : Likewise.
24468 * lto-streamer-out.c : Likewise.
24469 * lto-streamer.c : Likewise.
24470 * lto-streamer.h : Likewise.
24471 * mcf.c : Likewise.
24472 * mode-switching.c : Likewise.
24473 * modulo-sched.c : Likewise.
24474 * omega.c : Likewise.
24475 * omp-low.c : Likewise.
24476 * optabs.c : Likewise.
24477 * opts-global.c : Likewise.
24478 * opts.h : Likewise.
24479 * passes.c : Likewise.
24480 * plugin.c : Likewise.
24481 * postreload-gcse.c : Likewise.
24482 * postreload.c : Likewise.
24483 * predict.c : Likewise.
24484 * print-rtl.c : Likewise.
24485 * print-tree.c : Likewise.
24486 * profile.c : Likewise.
24487 * read-md.c : Likewise.
24488 * read-md.h : Likewise.
24489 * read-rtl.c : Likewise.
24490 * real.c : Likewise.
24491 * realmpfr.c : Likewise.
24492 * recog.c : Likewise.
24493 * ree.c : Likewise.
24494 * reg-stack.c : Likewise.
24495 * regcprop.c : Likewise.
24496 * reginfo.c : Likewise.
24497 * regrename.c : Likewise.
24498 * regstat.c : Likewise.
24499 * reload.c : Likewise.
24500 * reload1.c : Likewise.
24501 * reorg.c : Likewise.
24502 * resource.c : Likewise.
24503 * rtl-chkp.c : Likewise.
24504 * rtl.c : Likewise.
24505 * rtl.h : Likewise.
24506 * rtlanal.c : Likewise.
24507 * rtlhash.c : Likewise.
24508 * rtlhash.h : Likewise.
24509 * rtlhooks.c : Likewise.
24510 * sanopt.c : Likewise.
24511 * sched-deps.c : Likewise.
24512 * sched-ebb.c : Likewise.
24513 * sched-rgn.c : Likewise.
24514 * sched-vis.c : Likewise.
24515 * sdbout.c : Likewise.
24516 * sel-sched-dump.c : Likewise.
24517 * sel-sched-ir.c : Likewise.
24518 * sel-sched-ir.h : Likewise.
24519 * sel-sched.c : Likewise.
24520 * sese.c : Likewise.
24521 * shrink-wrap.c : Likewise.
24522 * shrink-wrap.h : Likewise.
24523 * simplify-rtx.c : Likewise.
24524 * stack-ptr-mod.c : Likewise.
24525 * statistics.c : Likewise.
24526 * stmt.c : Likewise.
24527 * stor-layout.c : Likewise.
24528 * store-motion.c : Likewise.
24529 * stringpool.c : Likewise.
24530 * symtab.c : Likewise.
24531 * target-globals.c : Likewise.
24532 * targhooks.c : Likewise.
24533 * tlink.c : Likewise.
24534 * toplev.c : Likewise.
24535 * tracer.c : Likewise.
24536 * trans-mem.c : Likewise.
24537 * tree-affine.c : Likewise.
24538 * tree-affine.h : Likewise.
24539 * tree-browser.c : Likewise.
24540 * tree-call-cdce.c : Likewise.
24541 * tree-cfg.c : Likewise.
24542 * tree-cfgcleanup.c : Likewise.
24543 * tree-chkp-opt.c : Likewise.
24544 * tree-chkp.c : Likewise.
24545 * tree-chrec.c : Likewise.
24546 * tree-complex.c : Likewise.
24547 * tree-data-ref.c : Likewise.
24548 * tree-dfa.c : Likewise.
24549 * tree-diagnostic.c : Likewise.
24550 * tree-dump.c : Likewise.
24551 * tree-eh.c : Likewise.
24552 * tree-eh.h : Likewise.
24553 * tree-emutls.c : Likewise.
24554 * tree-hasher.h : Likewise.
24555 * tree-if-conv.c : Likewise.
24556 * tree-inline.c : Likewise.
24557 * tree-inline.h : Likewise.
24558 * tree-into-ssa.c : Likewise.
24559 * tree-iterator.c : Likewise.
24560 * tree-loop-distribution.c : Likewise.
24561 * tree-nested.c : Likewise.
24562 * tree-nrv.c : Likewise.
24563 * tree-object-size.c : Likewise.
24564 * tree-outof-ssa.c : Likewise.
24565 * tree-parloops.c : Likewise.
24566 * tree-phinodes.c : Likewise.
24567 * tree-predcom.c : Likewise.
24568 * tree-pretty-print.c : Likewise.
24569 * tree-profile.c : Likewise.
24570 * tree-scalar-evolution.c : Likewise.
24571 * tree-sra.c : Likewise.
24572 * tree-ssa-address.c : Likewise.
24573 * tree-ssa-alias.c : Likewise.
24574 * tree-ssa-ccp.c : Likewise.
24575 * tree-ssa-coalesce.c : Likewise.
24576 * tree-ssa-copy.c : Likewise.
24577 * tree-ssa-copyrename.c : Likewise.
24578 * tree-ssa-dce.c : Likewise.
24579 * tree-ssa-dom.c : Likewise.
24580 * tree-ssa-dse.c : Likewise.
24581 * tree-ssa-forwprop.c : Likewise.
24582 * tree-ssa-ifcombine.c : Likewise.
24583 * tree-ssa-live.c : Likewise.
24584 * tree-ssa-loop-ch.c : Likewise.
24585 * tree-ssa-loop-im.c : Likewise.
24586 * tree-ssa-loop-ivcanon.c : Likewise.
24587 * tree-ssa-loop-ivopts.c : Likewise.
24588 * tree-ssa-loop-manip.c : Likewise.
24589 * tree-ssa-loop-niter.c : Likewise.
24590 * tree-ssa-loop-prefetch.c : Likewise.
24591 * tree-ssa-loop-unswitch.c : Likewise.
24592 * tree-ssa-loop.c : Likewise.
24593 * tree-ssa-math-opts.c : Likewise.
24594 * tree-ssa-operands.c : Likewise.
24595 * tree-ssa-phiopt.c : Likewise.
24596 * tree-ssa-phiprop.c : Likewise.
24597 * tree-ssa-pre.c : Likewise.
24598 * tree-ssa-propagate.c : Likewise.
24599 * tree-ssa-reassoc.c : Likewise.
24600 * tree-ssa-sccvn.c : Likewise.
24601 * tree-ssa-scopedtables.c : Likewise.
24602 * tree-ssa-sink.c : Likewise.
24603 * tree-ssa-strlen.c : Likewise.
24604 * tree-ssa-structalias.c : Likewise.
24605 * tree-ssa-tail-merge.c : Likewise.
24606 * tree-ssa-ter.c : Likewise.
24607 * tree-ssa-threadedge.c : Likewise.
24608 * tree-ssa-threadupdate.c : Likewise.
24609 * tree-ssa-uncprop.c : Likewise.
24610 * tree-ssa-uninit.c : Likewise.
24611 * tree-ssa.c : Likewise.
24612 * tree-ssanames.c : Likewise.
24613 * tree-stdarg.c : Likewise.
24614 * tree-streamer-in.c : Likewise.
24615 * tree-streamer-out.c : Likewise.
24616 * tree-streamer.c : Likewise.
24617 * tree-streamer.h : Likewise.
24618 * tree-switch-conversion.c : Likewise.
24619 * tree-tailcall.c : Likewise.
24620 * tree-vect-data-refs.c : Likewise.
24621 * tree-vect-generic.c : Likewise.
24622 * tree-vect-loop-manip.c : Likewise.
24623 * tree-vect-loop.c : Likewise.
24624 * tree-vect-patterns.c : Likewise.
24625 * tree-vect-slp.c : Likewise.
24626 * tree-vect-stmts.c : Likewise.
24627 * tree-vectorizer.c : Likewise.
24628 * tree-vectorizer.h : Likewise.
24629 * tree-vrp.c : Likewise.
24630 * tree.c : Likewise.
24631 * tsan.c : Likewise.
24632 * ubsan.c : Likewise.
24633 * valtrack.c : Likewise.
24634 * valtrack.h : Likewise.
24635 * value-prof.c : Likewise.
24636 * var-tracking.c : Likewise.
24637 * varasm.c : Likewise.
24638 * varpool.c : Likewise.
24640 * vmsdbgout.c : Likewise.
24641 * vtable-verify.c : Likewise.
24642 * vtable-verify.h : Likewise.
24643 * web.c : Likewise.
24644 * wide-int.cc : Likewise.
24645 * xcoffout.c : Likewise.
24646 * config/aarch64/aarch64-builtins.c : Likewise.
24647 * config/aarch64/aarch64.c : Likewise.
24648 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
24649 * config/alpha/alpha.c : Likewise.
24650 * config/arc/arc.c : Likewise.
24651 * config/arm/aarch-common.c : Likewise.
24652 * config/arm/arm-builtins.c : Likewise.
24653 * config/arm/arm-c.c : Likewise.
24654 * config/arm/arm.c : Likewise.
24655 * config/avr/avr-c.c : Likewise.
24656 * config/avr/avr-log.c : Likewise.
24657 * config/avr/avr.c : Likewise.
24658 * config/bfin/bfin.c : Likewise.
24659 * config/c6x/c6x.c : Likewise.
24660 * config/cr16/cr16.c : Likewise.
24661 * config/cris/cris.c : Likewise.
24662 * config/darwin-c.c : Likewise.
24663 * config/darwin.c : Likewise.
24664 * config/default-c.c : Likewise.
24665 * config/epiphany/epiphany.c : Likewise.
24666 * config/epiphany/mode-switch-use.c : Likewise.
24667 * config/epiphany/resolve-sw-modes.c : Likewise.
24668 * config/fr30/fr30.c : Likewise.
24669 * config/frv/frv.c : Likewise.
24670 * config/ft32/ft32.c : Likewise.
24671 * config/glibc-c.c : Likewise.
24672 * config/h8300/h8300.c : Likewise.
24673 * config/i386/i386-c.c : Likewise.
24674 * config/i386/i386.c : Likewise.
24675 * config/i386/msformat-c.c : Likewise.
24676 * config/i386/winnt-cxx.c : Likewise.
24677 * config/i386/winnt-stubs.c : Likewise.
24678 * config/i386/winnt.c : Likewise.
24679 * config/ia64/ia64-c.c : Likewise.
24680 * config/ia64/ia64.c : Likewise.
24681 * config/iq2000/iq2000.c : Likewise.
24682 * config/lm32/lm32.c : Likewise.
24683 * config/m32c/m32c-pragma.c : Likewise.
24684 * config/m32c/m32c.c : Likewise.
24685 * config/m32r/m32r.c : Likewise.
24686 * config/m68k/m68k.c : Likewise.
24687 * config/mcore/mcore.c : Likewise.
24688 * config/mep/mep-pragma.c : Likewise.
24689 * config/mep/mep.c : Likewise.
24690 * config/microblaze/microblaze-c.c : Likewise.
24691 * config/microblaze/microblaze.c : Likewise.
24692 * config/mips/mips.c : Likewise.
24693 * config/mmix/mmix.c : Likewise.
24694 * config/mn10300/mn10300.c : Likewise.
24695 * config/moxie/moxie.c : Likewise.
24696 * config/msp430/msp430-c.c : Likewise.
24697 * config/msp430/msp430.c : Likewise.
24698 * config/nds32/nds32-cost.c : Likewise.
24699 * config/nds32/nds32-fp-as-gp.c : Likewise.
24700 * config/nds32/nds32-intrinsic.c : Likewise.
24701 * config/nds32/nds32-isr.c : Likewise.
24702 * config/nds32/nds32-md-auxiliary.c : Likewise.
24703 * config/nds32/nds32-memory-manipulation.c : Likewise.
24704 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
24705 * config/nds32/nds32-predicates.c : Likewise.
24706 * config/nds32/nds32.c : Likewise.
24707 * config/nios2/nios2.c : Likewise.
24708 * config/nvptx/nvptx.c : Likewise.
24709 * config/pa/pa.c : Likewise.
24710 * config/pdp11/pdp11.c : Likewise.
24711 * config/rl78/rl78-c.c : Likewise.
24712 * config/rl78/rl78.c : Likewise.
24713 * config/rs6000/rs6000-c.c : Likewise.
24714 * config/rs6000/rs6000.c : Likewise.
24715 * config/rx/rx.c : Likewise.
24716 * config/s390/s390-c.c : Likewise.
24717 * config/s390/s390.c : Likewise.
24718 * config/sh/sh-c.c : Likewise.
24719 * config/sh/sh-mem.cc : Likewise.
24720 * config/sh/sh.c : Likewise.
24721 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
24722 * config/sh/sh_treg_combine.cc : Likewise.
24723 * config/sol2-c.c : Likewise.
24724 * config/sol2-cxx.c : Likewise.
24725 * config/sol2-stubs.c : Likewise.
24726 * config/sol2.c : Likewise.
24727 * config/sparc/sparc-c.c : Likewise.
24728 * config/sparc/sparc.c : Likewise.
24729 * config/spu/spu-c.c : Likewise.
24730 * config/spu/spu.c : Likewise.
24731 * config/stormy16/stormy16.c : Likewise.
24732 * config/tilegx/mul-tables.c : Likewise.
24733 * config/tilegx/tilegx-c.c : Likewise.
24734 * config/tilegx/tilegx.c : Likewise.
24735 * config/tilepro/mul-tables.c : Likewise.
24736 * config/tilepro/tilepro-c.c : Likewise.
24737 * config/tilepro/tilepro.c : Likewise.
24738 * config/v850/v850-c.c : Likewise.
24739 * config/v850/v850.c : Likewise.
24740 * config/vax/vax.c : Likewise.
24741 * config/visium/visium.c : Likewise.
24742 * config/vms/vms-c.c : Likewise.
24743 * config/vms/vms.c : Likewise.
24744 * config/vxworks.c : Likewise.
24745 * config/winnt-c.c : Likewise.
24746 * config/xtensa/xtensa.c : Likewise.
24748 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
24751 * ipa-utils.h (warn_types_mismatch): Update prototype.
24752 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
24754 (type_mismatch_p): New function.
24755 (warn_types_mismatch): Reorg to work better on non-C++ types.
24756 (odr_types_equivalent_p): Add loc1/loc2 parameters.
24757 (add_type_duplicate): Update.
24759 2015-06-08 Tom de Vries <tom@codesourcery.com>
24761 PR rtl-optimization/66444
24762 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
24765 2015-06-08 Richard Biener <rguenther@suse.de>
24767 PR tree-optimization/66422
24768 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
24769 block after inserted gcc_unreachable.
24771 2015-06-08 Nick Clifton <nickc@redhat.com>
24773 * config/rx/rx.c (rx_function_value): Do not promote vector types.
24774 (rx_promote_function_mode): Likewise.
24775 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
24777 2015-06-08 Jakub Jelinek <jakub@redhat.com>
24779 * genattrtab.c (insn_alternatives): Change type from int *
24781 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
24782 (get_attr_value): Change type of num_alt to uint64_t.
24783 (compute_alternative_mask): Change return type from
24784 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
24785 (make_alternative_compare, mk_attr_alt): Change argument type
24786 from int to uint64_t.
24787 (simplify_test_exp): Change type of i from int to uint64_t.
24788 Shift ((uint64_t) 1) instead of 1 up.
24789 (main): Adjust oballocvec first argument from int to uint64_t.
24790 Shift ((uint64_t) 1) instead of 1 up.
24792 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
24795 * gdbhooks.py: Import sys.
24796 (intptr): New function. Replace int(...) by intptr(...).
24798 2015-06-08 Richard Biener <rguenther@suse.de>
24800 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
24801 adjustment for gaps at the end of a SLP load group properly.
24802 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
24803 all permutations we can generate.
24804 (vect_transform_slp_perm_load): Use the correct group-size.
24806 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
24808 * genmatch.c (expr::gen_transform): For conditions, guess the type
24809 from the second operand.
24811 2015-06-08 Tom de Vries <tom@codesourcery.com>
24813 PR tree-optimization/66442
24814 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
24815 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
24816 if the loop latch is not a singleton. Use
24817 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
24819 2015-06-08 Marek Polacek <polacek@redhat.com>
24822 * toplev.c (check_global_declaration): Don't warn about artificial
24825 2015-06-08 Tom de Vries <tom@codesourcery.com>
24827 PR tree-optimization/66436
24828 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
24830 * gimplify.c: Add tree-dump.h include.
24831 (gimplify_function_tree): Dump function to gimple dump file.
24832 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
24835 2015-06-08 Tom de Vries <tom@codesourcery.com>
24837 PR tree-optimization/66435
24838 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
24841 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
24843 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
24844 of ptr_type_node to not be ptr_to_node.
24845 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
24846 TREE_TYPE of pointers.
24847 * gimple-expr.c (useless_type_conversion): Reorder the check for
24848 function pointers and TYPE_CANONICAL.
24850 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
24853 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
24854 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
24855 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
24857 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
24858 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
24859 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
24860 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
24861 and non iso if unix2003.
24863 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
24865 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
24867 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
24869 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
24870 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
24871 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
24872 except.c, final.c, function.c, gcse-common.c, genemit.c,
24873 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
24874 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
24875 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
24876 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
24879 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
24881 * combine.c (combine_split_insns): Remove cast.
24882 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
24883 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
24884 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
24885 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
24886 * genemit.c (gen_split): Change return type of generated functions to
24888 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
24889 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
24890 gen_peephole2_* functions.
24891 (print_subroutine, main): Likewise.
24892 * recog.c (peephole2_optimize): Remove cast.
24893 (peep2_next_insn): Promote return type to rtx_insn.
24894 * recog.h (peep2_next_insn): Fix prototype.
24895 * rtl.h (try_split, split_insns): Likewise.
24897 2015-06-06 DJ Delorie <dj@redhat.com>
24899 * config/msp430/msp430.c (msp430_asm_integer): Support addition
24900 and subtraction too.
24902 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
24905 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
24906 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
24907 instead of Snd. Disparage Sid/z alternative with '^'.
24909 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
24911 * dwarf2out.c: Remove deferred_locations*.
24912 (dwarf2_debug_hooks): Add early_finish hook.
24913 Remove global_decl hook.
24914 Add early_global_decl and late_global_decl hook.
24915 New global early_dwarf.
24916 New structure set_early_dwarf.
24917 (output_die): Indicate whether a DIE was generated early
24918 when generating assembly with -dA.
24919 (struct limbo_die_struct): Document created_for field.
24920 Remove file_table_last_lookup.
24921 (remove_AT): Return TRUE if successful.
24922 (remove_child_TAG): Clear die_parent.
24923 (reparent_child): New function abstracted from...
24924 (splice_child_die): ...here.
24925 (new_die): ICE if a DIE ends up in limbo too late.
24927 (defer_location): Remove.
24928 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
24929 (fill_variable_array_bounds): New.
24930 (decl_start_label): Call fill_variable_array_bounds.
24931 (gen_formal_parameter_die): Rewrite to reuse previously generated
24933 (gen_subprogram_die): Same.
24934 (gen_variable_die): Same.
24935 (gen_const_die): Same.
24936 (gen_label_die): Same.
24937 (gen_lexical_block_die): Same.
24938 (decl_will_get_specification_p): New.
24939 (local_function_static): New.
24940 (gen_struct_or_union_type_die): Fill in variable-length fields.
24941 (gen_typedef_die): Fill in variable-length typedefs.
24942 (gen_tagged_type_die): Gracefully return on error_mark_node.
24943 Handle re-entrancy.
24944 (gen_type_die_with_usage): Handle variable-length types.
24945 Remove duplicate code for ARRAY_TYPE case.
24946 (process_scope_var): Only process imported modules during early
24948 (dwarf2out_early_global_decl): New.
24949 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
24950 (dwarf2out_type_decl): Set early_dwarf while calling
24952 (dwarf2out_decl): Verify that we did not recreate a previously
24954 Do not return on DECL_EXTERNALs in VAR_DECLs.
24955 Abstract some code to local_function_static.
24956 (lookup_filename): Remove use of file_table_last_lookup.
24957 Gracefully exit on missing file_name.
24958 (dwarf2out_finish): Verify limbo list.
24959 Remove deferred_locations_list use.
24960 Move deferred_asm_name and limbo flushing to...
24961 (dwarf2out_early_finish): ...here. New.
24962 (dwarf2out_c_finalize): Remove set of deferred_location_list,
24963 deferred_asm_name, and file_table_last_lookup.
24964 * cgraph.h (referred_to_p): Add default argument.
24965 * cgraphunit.c (referred_to_p): Add and handle include_self
24967 (analyze_functions): Add first_time argument.
24968 Call check_global_declaration for all symbols.
24969 Call late_global_decl for nodes for moribund nodes.
24970 (finalize_compilation_unit): Add new argument to
24972 Call early_global_decl for functions.
24973 Call early_finish debug hook.
24974 * dbxout.c (dbxout_early_global_decl): New.
24975 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
24976 (dbx_debug_hooks): Add new hooks.
24977 (xcoff_debug_hooks): Same.
24978 * debug.c (do_nothing_debug_hooks): Add early_finish field.
24979 Add early and late debug hooks.
24980 Remove global_decl hook.
24981 * debug.h (struct gcc_debug_hooks): Add early_finish,
24982 early_global_decl, and late_global_decl fields.
24983 Remove global_decl field.
24984 Document gcc_debug_hooks.
24985 * gengtype.c (output_typename): Remove.
24986 * godump.c (go_early_global_decl): New.
24987 (go_late_global_decl): New.
24988 (go_global_decl): Remove.
24989 (dump_go_spec_init): Remove global_decl. Add
24990 {early,late}_global_decl.
24991 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
24992 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
24993 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
24994 (write_global_declarations): Remove.
24995 (global_decl_processing): New.
24996 * langhooks.h (struct lang_hooks_for_decls): Remove
24997 final_write_globals field.
24998 Add post_compilation_parsing_cleanups field.
24999 * passes.c (rest_of_decl_compilation): Call early_global_decl.
25000 * sdbout.c: Add early and late_global_decl hooks. Remove
25001 sdbout_global_decl hook.
25002 Add early_finish field for sdb_debug_hooks.
25003 (sdbout_global_decl): Remove.
25004 (sdbout_early_global_decl): New.
25005 (sdbout_late_global_decl): New.
25006 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
25007 * toplev.c (check_global_declaration): Rename from
25008 check_global_declaration_1.
25009 Adapt to use symtab infrastructure.
25010 (check_global_declarations): Remove.
25011 (emit_debug_global_declarations): Remove.
25012 (compile_file): Remove call to final_write_globals langhook.
25013 Run the actual compilation process.
25014 Perform any post compilation parser cleanups.
25015 Generate late debug info.
25016 * toplev.h (check_global_declaration): New.
25017 (check_global_declaration_1): Remove.
25018 (check_global_declarations): Remove.
25019 (write_global_declarations): Remove.
25020 (emit_debug_global_declarations): Remove.
25021 (global_decl_processing): New.
25022 * tree-core.h (struct tree_block): Add DIE field.
25023 * tree.h (BLOCK_DIE): New.
25024 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
25026 (vmsdbgout_early_global_decl): New.
25027 (vmsdbgout_late_global_decl): New.
25028 Add early_finish debug hook field to vmsdbg_debug_hooks.
25029 Remove vmsdbgout_decl to vmsdbgout_function_decl.
25030 Add early and late_global_decl debug hooks.
25032 2015-06-05 Julian Brown <julian@codesourcery.com>
25033 Sandra Loosemore <sandra@codesourcery.com>
25035 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
25036 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
25037 to print-sysroot-suffix.sh script.
25039 2015-06-05 Tom de Vries <tom@codesourcery.com>
25041 merge from gomp4 branch:
25042 2015-05-28 Tom de Vries <tom@codesourcery.com>
25044 PR tree-optimization/65443
25045 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
25046 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
25047 (try_transform_to_exit_first_loop_alt): New function.
25048 (transform_to_exit_first_loop): Use
25049 try_transform_to_exit_first_loop_alt.
25051 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
25053 * builtins.c (expand_builtin_atomic_compare_exchange): Call
25054 emit_cmp_and_jump_insns with the mode of target.
25056 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25058 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
25060 2015-06-04 DJ Delorie <dj@redhat.com>
25062 * config/msp430/msp430.md (movsi_s): New. Special case for
25063 storing a 20-bit symbol into a 32-bit register.
25064 * config/msp430/msp430.c (msp430_subreg): Add support for it.
25065 * config/msp430/predicates.md (msp430_symbol_operand): New.
25067 2015-06-04 Sriraman Tallam <tmsriram@google.com>
25069 * c-family/c-common.c (noplt): New attribute.
25070 (handle_noplt_attribute): New handler.
25071 * calls.c (prepare_call_address): Check for noplt
25073 * config/i386/i386.c (ix86_expand_call): Check
25074 for noplt attribute.
25075 (ix86_nopic_noplt_attribute_p): New function.
25076 (ix86_output_call_insn): Output indirect call for non-pic
25078 * doc/extend.texi (noplt): Document new attribute.
25079 * doc/invoke.texi: Document new attribute.
25081 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
25083 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
25084 real.h, and fixed-value.h when included in host source files.
25085 * double-int.h: Remove redundant #includes listed above.
25086 * fixed-value.h: Likewise.
25087 * real.h: Likewise.
25088 * wide-int.h: Likewise.
25089 * inchash.h: Likewise.
25090 * rtl.h: Add some include files When included from a generator file.
25091 * target.h: Remove wide-int.h and insn-modes.h from the include list.
25092 * internal-fn.h: Don't include coretypes.h.
25093 * alias.c: Adjust includes for restructured coretypes.h.
25094 * asan.c: Likewise.
25095 * attribs.c: Likewise.
25096 * auto-inc-dec.c: Likewise.
25097 * auto-profile.c: Likewise.
25098 * bb-reorder.c: Likewise.
25099 * bt-load.c: Likewise.
25100 * builtins.c: Likewise.
25101 * caller-save.c: Likewise.
25102 * calls.c: Likewise.
25103 * ccmp.c: Likewise.
25105 * cfganal.c: Likewise.
25106 * cfgbuild.c: Likewise.
25107 * cfgcleanup.c: Likewise.
25108 * cfgexpand.c: Likewise.
25109 * cfghooks.c: Likewise.
25110 * cfgloop.c: Likewise.
25111 * cfgloop.h: Likewise.
25112 * cfgloopanal.c: Likewise.
25113 * cfgloopmanip.c: Likewise.
25114 * cfgrtl.c: Likewise.
25115 * cgraph.c: Likewise.
25116 * cgraphbuild.c: Likewise.
25117 * cgraphclones.c: Likewise.
25118 * cgraphunit.c: Likewise.
25119 * cilk-common.c: Likewise.
25120 * combine-stack-adj.c: Likewise.
25121 * combine.c: Likewise.
25122 * compare-elim.c: Likewise.
25123 * convert.c: Likewise.
25124 * coverage.c: Likewise.
25125 * cppbuiltin.c: Likewise.
25126 * cprop.c: Likewise.
25128 * cselib.c: Likewise.
25129 * data-streamer-in.c: Likewise.
25130 * data-streamer-out.c: Likewise.
25131 * data-streamer.c: Likewise.
25132 * dbxout.c: Likewise.
25135 * debug.c: Likewise.
25136 * df-core.c: Likewise.
25137 * df-problems.c: Likewise.
25138 * df-scan.c: Likewise.
25141 * dojump.c: Likewise.
25142 * dominance.c: Likewise.
25143 * domwalk.c: Likewise.
25144 * double-int.c: Likewise.
25146 * dumpfile.c: Likewise.
25147 * dwarf2asm.c: Likewise.
25148 * dwarf2cfi.c: Likewise.
25149 * dwarf2out.c: Likewise.
25150 * dwarf2out.h: Likewise.
25151 * emit-rtl.c: Likewise.
25152 * et-forest.c: Likewise.
25153 * except.c: Likewise.
25154 * explow.c: Likewise.
25155 * expmed.c: Likewise.
25156 * expr.c: Likewise.
25157 * final.c: Likewise.
25158 * fixed-value.c: Likewise.
25159 * fold-const.c: Likewise.
25160 * function.c: Likewise.
25161 * fwprop.c: Likewise.
25162 * gcc-plugin.h: Likewise.
25163 * gcse.c: Likewise.
25164 * generic-match-head.c: Likewise.
25165 * ggc-page.c: Likewise.
25166 * gimple-builder.c: Likewise.
25167 * gimple-expr.c: Likewise.
25168 * gimple-fold.c: Likewise.
25169 * gimple-iterator.c: Likewise.
25170 * gimple-low.c: Likewise.
25171 * gimple-match-head.c: Likewise.
25172 * gimple-pretty-print.c: Likewise.
25173 * gimple-ssa-isolate-paths.c: Likewise.
25174 * gimple-ssa-strength-reduction.c: Likewise.
25175 * gimple-streamer-in.c: Likewise.
25176 * gimple-streamer-out.c: Likewise.
25177 * gimple-streamer.h: Likewise.
25178 * gimple-walk.c: Likewise.
25179 * gimple.c: Likewise.
25180 * gimplify-me.c: Likewise.
25181 * gimplify.c: Likewise.
25182 * godump.c: Likewise.
25183 * graph.c: Likewise.
25184 * graphite-blocking.c: Likewise.
25185 * graphite-dependences.c: Likewise.
25186 * graphite-interchange.c: Likewise.
25187 * graphite-isl-ast-to-gimple.c: Likewise.
25188 * graphite-optimize-isl.c: Likewise.
25189 * graphite-poly.c: Likewise.
25190 * graphite-scop-detection.c: Likewise.
25191 * graphite-sese-to-poly.c: Likewise.
25192 * graphite.c: Likewise.
25193 * haifa-sched.c: Likewise.
25194 * hooks.h: Likewise.
25195 * hw-doloop.c: Likewise.
25196 * ifcvt.c: Likewise.
25197 * incpath.c: Likewise.
25198 * init-regs.c: Likewise.
25199 * internal-fn.c: Likewise.
25200 * ipa-chkp.c: Likewise.
25201 * ipa-comdats.c: Likewise.
25202 * ipa-cp.c: Likewise.
25203 * ipa-devirt.c: Likewise.
25204 * ipa-icf-gimple.c: Likewise.
25205 * ipa-icf.c: Likewise.
25206 * ipa-inline-analysis.c: Likewise.
25207 * ipa-inline-transform.c: Likewise.
25208 * ipa-inline.c: Likewise.
25209 * ipa-polymorphic-call.c: Likewise.
25210 * ipa-profile.c: Likewise.
25211 * ipa-prop.c: Likewise.
25212 * ipa-pure-const.c: Likewise.
25213 * ipa-ref.c: Likewise.
25214 * ipa-reference.c: Likewise.
25215 * ipa-split.c: Likewise.
25216 * ipa-utils.c: Likewise.
25217 * ipa-visibility.c: Likewise.
25219 * ira-build.c: Likewise.
25220 * ira-color.c: Likewise.
25221 * ira-conflicts.c: Likewise.
25222 * ira-costs.c: Likewise.
25223 * ira-emit.c: Likewise.
25224 * ira-lives.c: Likewise.
25226 * jump.c: Likewise.
25227 * langhooks.c: Likewise.
25229 * loop-doloop.c: Likewise.
25230 * loop-init.c: Likewise.
25231 * loop-invariant.c: Likewise.
25232 * loop-iv.c: Likewise.
25233 * loop-unroll.c: Likewise.
25234 * lower-subreg.c: Likewise.
25235 * lra-assigns.c: Likewise.
25236 * lra-coalesce.c: Likewise.
25237 * lra-constraints.c: Likewise.
25238 * lra-eliminations.c: Likewise.
25239 * lra-lives.c: Likewise.
25240 * lra-remat.c: Likewise.
25241 * lra-spills.c: Likewise.
25243 * lto-cgraph.c: Likewise.
25244 * lto-compress.c: Likewise.
25245 * lto-opts.c: Likewise.
25246 * lto-section-in.c: Likewise.
25247 * lto-section-out.c: Likewise.
25248 * lto-streamer-in.c: Likewise.
25249 * lto-streamer-out.c: Likewise.
25250 * lto-streamer.c: Likewise.
25252 * mode-switching.c: Likewise.
25253 * modulo-sched.c: Likewise.
25254 * omega.c: Likewise.
25255 * omp-low.c: Likewise.
25256 * optabs.c: Likewise.
25257 * opts-global.c: Likewise.
25258 * passes.c: Likewise.
25259 * plugin.c: Likewise.
25260 * postreload-gcse.c: Likewise.
25261 * postreload.c: Likewise.
25262 * predict.c: Likewise.
25263 * print-rtl.c: Likewise.
25264 * print-tree.c: Likewise.
25265 * profile.c: Likewise.
25266 * real.c: Likewise.
25267 * realmpfr.c: Likewise.
25268 * realmpfr.h: Likewise.
25269 * recog.c: Likewise.
25271 * reg-stack.c: Likewise.
25272 * regcprop.c: Likewise.
25273 * reginfo.c: Likewise.
25274 * regrename.c: Likewise.
25275 * regs.h: Likewise.
25276 * regstat.c: Likewise.
25277 * reload.c: Likewise.
25278 * reload1.c: Likewise.
25279 * reorg.c: Likewise.
25280 * resource.c: Likewise.
25281 * rtl-chkp.c: Likewise.
25282 * rtlanal.c: Likewise.
25283 * rtlhooks.c: Likewise.
25284 * sanopt.c: Likewise.
25285 * sched-deps.c: Likewise.
25286 * sched-ebb.c: Likewise.
25287 * sched-rgn.c: Likewise.
25288 * sched-vis.c: Likewise.
25289 * sdbout.c: Likewise.
25290 * sel-sched-dump.c: Likewise.
25291 * sel-sched-ir.c: Likewise.
25292 * sel-sched.c: Likewise.
25293 * sese.c: Likewise.
25294 * shrink-wrap.c: Likewise.
25295 * shrink-wrap.h: Likewise.
25296 * simplify-rtx.c: Likewise.
25297 * stack-ptr-mod.c: Likewise.
25298 * statistics.c: Likewise.
25299 * stmt.c: Likewise.
25300 * stor-layout.c: Likewise.
25301 * store-motion.c: Likewise.
25302 * stringpool.c: Likewise.
25303 * symtab.c: Likewise.
25304 * target-globals.c: Likewise.
25305 * targhooks.c: Likewise.
25306 * toplev.c: Likewise.
25307 * tracer.c: Likewise.
25308 * trans-mem.c: Likewise.
25309 * tree-affine.c: Likewise.
25310 * tree-affine.h: Likewise.
25311 * tree-browser.c: Likewise.
25312 * tree-call-cdce.c: Likewise.
25313 * tree-cfg.c: Likewise.
25314 * tree-cfgcleanup.c: Likewise.
25315 * tree-chkp-opt.c: Likewise.
25316 * tree-chkp.c: Likewise.
25317 * tree-chrec.c: Likewise.
25318 * tree-complex.c: Likewise.
25319 * tree-data-ref.c: Likewise.
25320 * tree-dfa.c: Likewise.
25321 * tree-diagnostic.c: Likewise.
25322 * tree-dump.c: Likewise.
25323 * tree-eh.c: Likewise.
25324 * tree-emutls.c: Likewise.
25325 * tree-if-conv.c: Likewise.
25326 * tree-inline.c: Likewise.
25327 * tree-into-ssa.c: Likewise.
25328 * tree-iterator.c: Likewise.
25329 * tree-loop-distribution.c: Likewise.
25330 * tree-nested.c: Likewise.
25331 * tree-nrv.c: Likewise.
25332 * tree-object-size.c: Likewise.
25333 * tree-outof-ssa.c: Likewise.
25334 * tree-parloops.c: Likewise.
25335 * tree-phinodes.c: Likewise.
25336 * tree-predcom.c: Likewise.
25337 * tree-pretty-print.c: Likewise.
25338 * tree-pretty-print.h: Likewise.
25339 * tree-profile.c: Likewise.
25340 * tree-scalar-evolution.c: Likewise.
25341 * tree-sra.c: Likewise.
25342 * tree-ssa-address.c: Likewise.
25343 * tree-ssa-alias.c: Likewise.
25344 * tree-ssa-ccp.c: Likewise.
25345 * tree-ssa-coalesce.c: Likewise.
25346 * tree-ssa-copy.c: Likewise.
25347 * tree-ssa-copyrename.c: Likewise.
25348 * tree-ssa-dce.c: Likewise.
25349 * tree-ssa-dom.c: Likewise.
25350 * tree-ssa-dse.c: Likewise.
25351 * tree-ssa-forwprop.c: Likewise.
25352 * tree-ssa-ifcombine.c: Likewise.
25353 * tree-ssa-live.c: Likewise.
25354 * tree-ssa-loop-ch.c: Likewise.
25355 * tree-ssa-loop-im.c: Likewise.
25356 * tree-ssa-loop-ivcanon.c: Likewise.
25357 * tree-ssa-loop-ivopts.c: Likewise.
25358 * tree-ssa-loop-manip.c: Likewise.
25359 * tree-ssa-loop-niter.c: Likewise.
25360 * tree-ssa-loop-prefetch.c: Likewise.
25361 * tree-ssa-loop-unswitch.c: Likewise.
25362 * tree-ssa-loop.c: Likewise.
25363 * tree-ssa-loop.h: Likewise.
25364 * tree-ssa-math-opts.c: Likewise.
25365 * tree-ssa-operands.c: Likewise.
25366 * tree-ssa-phiopt.c: Likewise.
25367 * tree-ssa-phiprop.c: Likewise.
25368 * tree-ssa-pre.c: Likewise.
25369 * tree-ssa-propagate.c: Likewise.
25370 * tree-ssa-reassoc.c: Likewise.
25371 * tree-ssa-sccvn.c: Likewise.
25372 * tree-ssa-scopedtables.c: Likewise.
25373 * tree-ssa-sink.c: Likewise.
25374 * tree-ssa-strlen.c: Likewise.
25375 * tree-ssa-structalias.c: Likewise.
25376 * tree-ssa-tail-merge.c: Likewise.
25377 * tree-ssa-ter.c: Likewise.
25378 * tree-ssa-threadedge.c: Likewise.
25379 * tree-ssa-threadupdate.c: Likewise.
25380 * tree-ssa-uncprop.c: Likewise.
25381 * tree-ssa-uninit.c: Likewise.
25382 * tree-ssa.c: Likewise.
25383 * tree-ssanames.c: Likewise.
25384 * tree-stdarg.c: Likewise.
25385 * tree-streamer-in.c: Likewise.
25386 * tree-streamer-out.c: Likewise.
25387 * tree-streamer.c: Likewise.
25388 * tree-switch-conversion.c: Likewise.
25389 * tree-tailcall.c: Likewise.
25390 * tree-vect-data-refs.c: Likewise.
25391 * tree-vect-generic.c: Likewise.
25392 * tree-vect-loop-manip.c: Likewise.
25393 * tree-vect-loop.c: Likewise.
25394 * tree-vect-patterns.c: Likewise.
25395 * tree-vect-slp.c: Likewise.
25396 * tree-vect-stmts.c: Likewise.
25397 * tree-vectorizer.c: Likewise.
25398 * tree-vrp.c: Likewise.
25399 * tree.c: Likewise.
25400 * tsan.c: Likewise.
25401 * ubsan.c: Likewise.
25402 * valtrack.c: Likewise.
25403 * value-prof.c: Likewise.
25404 * var-tracking.c: Likewise.
25405 * varasm.c: Likewise.
25406 * varpool.c: Likewise.
25407 * vmsdbgout.c: Likewise.
25408 * vtable-verify.c: Likewise.
25410 * wide-int-print.cc: Likewise.
25411 * wide-int-print.h: Likewise.
25412 * wide-int.cc: Likewise.
25413 * xcoffout.c: Likewise.
25414 * config/aarch64/aarch64-builtins.c: Likewise.
25415 * config/aarch64/aarch64.c: Likewise.
25416 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25417 * config/alpha/alpha.c: Likewise.
25418 * config/arc/arc.c: Likewise.
25419 * config/arm/aarch-common.c: Likewise.
25420 * config/arm/arm-builtins.c: Likewise.
25421 * config/arm/arm-c.c: Likewise.
25422 * config/arm/arm.c: Likewise.
25423 * config/avr/avr-c.c: Likewise.
25424 * config/avr/avr-log.c: Likewise.
25425 * config/avr/avr.c: Likewise.
25426 * config/bfin/bfin.c: Likewise.
25427 * config/c6x/c6x.c: Likewise.
25428 * config/cr16/cr16.c: Likewise.
25429 * config/cris/cris.c: Likewise.
25430 * config/darwin-c.c: Likewise.
25431 * config/darwin.c: Likewise.
25432 * config/default-c.c: Likewise.
25433 * config/epiphany/epiphany.c: Likewise.
25434 * config/epiphany/mode-switch-use.c: Likewise.
25435 * config/epiphany/resolve-sw-modes.c: Likewise.
25436 * config/fr30/fr30.c: Likewise.
25437 * config/frv/frv.c: Likewise.
25438 * config/ft32/ft32.c: Likewise.
25439 * config/glibc-c.c: Likewise.
25440 * config/h8300/h8300.c: Likewise.
25441 * config/i386/i386-c.c: Likewise.
25442 * config/i386/i386.c: Likewise.
25443 * config/i386/msformat-c.c: Likewise.
25444 * config/i386/winnt-cxx.c: Likewise.
25445 * config/i386/winnt-stubs.c: Likewise.
25446 * config/i386/winnt.c: Likewise.
25447 * config/ia64/ia64-c.c: Likewise.
25448 * config/ia64/ia64.c: Likewise.
25449 * config/iq2000/iq2000.c: Likewise.
25450 * config/lm32/lm32.c: Likewise.
25451 * config/m32c/m32c-pragma.c: Likewise.
25452 * config/m32c/m32c.c: Likewise.
25453 * config/m32r/m32r.c: Likewise.
25454 * config/m68k/m68k.c: Likewise.
25455 * config/mcore/mcore.c: Likewise.
25456 * config/mep/mep-pragma.c: Likewise.
25457 * config/mep/mep.c: Likewise.
25458 * config/microblaze/microblaze-c.c: Likewise.
25459 * config/microblaze/microblaze.c: Likewise.
25460 * config/mips/mips.c: Likewise.
25461 * config/mmix/mmix.c: Likewise.
25462 * config/mn10300/mn10300.c: Likewise.
25463 * config/moxie/moxie.c: Likewise.
25464 * config/msp430/msp430-c.c: Likewise.
25465 * config/msp430/msp430.c: Likewise.
25466 * config/nds32/nds32-cost.c: Likewise.
25467 * config/nds32/nds32-fp-as-gp.c: Likewise.
25468 * config/nds32/nds32-intrinsic.c: Likewise.
25469 * config/nds32/nds32-isr.c: Likewise.
25470 * config/nds32/nds32-md-auxiliary.c: Likewise.
25471 * config/nds32/nds32-memory-manipulation.c: Likewise.
25472 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25473 * config/nds32/nds32-predicates.c: Likewise.
25474 * config/nds32/nds32.c: Likewise.
25475 * config/nios2/nios2.c: Likewise.
25476 * config/nvptx/nvptx.c: Likewise.
25477 * config/pa/pa.c: Likewise.
25478 * config/pdp11/pdp11.c: Likewise.
25479 * config/rl78/rl78-c.c: Likewise.
25480 * config/rl78/rl78.c: Likewise.
25481 * config/rs6000/rs6000-c.c: Likewise.
25482 * config/rs6000/rs6000.c: Likewise.
25483 * config/rx/rx.c: Likewise.
25484 * config/s390/s390-c.c: Likewise.
25485 * config/s390/s390.c: Likewise.
25486 * config/sh/sh-c.c: Likewise.
25487 * config/sh/sh-mem.cc: Likewise.
25488 * config/sh/sh.c: Likewise.
25489 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
25490 * config/sh/sh_treg_combine.cc: Likewise.
25491 * config/sol2-c.c: Likewise.
25492 * config/sol2-cxx.c: Likewise.
25493 * config/sol2-stubs.c: Likewise.
25494 * config/sol2.c: Likewise.
25495 * config/sparc/sparc-c.c: Likewise.
25496 * config/sparc/sparc.c: Likewise.
25497 * config/spu/spu-c.c: Likewise.
25498 * config/spu/spu.c: Likewise.
25499 * config/stormy16/stormy16.c: Likewise.
25500 * config/tilegx/mul-tables.c: Likewise.
25501 * config/tilegx/tilegx-c.c: Likewise.
25502 * config/tilegx/tilegx.c: Likewise.
25503 * config/tilepro/mul-tables.c: Likewise.
25504 * config/tilepro/tilepro-c.c: Likewise.
25505 * config/tilepro/tilepro.c: Likewise.
25506 * config/v850/v850-c.c: Likewise.
25507 * config/v850/v850.c: Likewise.
25508 * config/vax/vax.c: Likewise.
25509 * config/visium/visium.c: Likewise.
25510 * config/vms/vms-c.c: Likewise.
25511 * config/vms/vms.c: Likewise.
25512 * config/vxworks.c: Likewise.
25513 * config/winnt-c.c: Likewise.
25514 * config/xtensa/xtensa.c: Likewise.
25515 * common/config/bfin/bfin-common.c: Likewise.
25517 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
25519 * tree.h (tree_code_for_canonical_type_merging): New function.
25520 * tree.c (gimple_canonical_types_compatible_p): Use
25521 tree_code_for_canonical_type_merging..
25523 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25527 * doc/tm.texi: Regenerate.
25528 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
25529 * target.def (TARGET_RELAXED_ORDERING): Likewise.
25530 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
25531 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
25532 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
25533 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
25534 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
25535 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
25536 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
25538 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25540 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
25541 register fma steering pass.
25542 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
25543 AARCH64_TUNE_FMA_STEERING.
25545 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
25547 * tree.c (verify_type_variant): Verify that type and variant is
25549 (gimple_canonical_types_compatible_p): Look for main variants.
25551 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
25553 * config.gcc (powerpc*-*-*): Add support for a new configure
25554 option --with-advance-toolchain=<xxx> which overrides using the
25555 default header files, libraries and dynamic linker.
25557 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
25558 specs to support the configure --with-advance-toolchain=<xxx>
25560 (INCLUDE_EXTRA_SPEC): Likewise.
25561 (LINK_OS_EXTRA_SPEC32): Likewise.
25562 (LINK_OK_EXTRA_SPEC64): Likewise.
25563 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
25564 (DYNAMIC_LINKER_PREFIX): Likewise.
25565 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
25567 (GLIBC_DYNAMIC_LINKER32): Likewise.
25568 (GLIBC_DYNAMIC_LINKER64): Likewise.
25569 (LINK_OS_LINUX_SPEC32): Likewise.
25570 (LINK_OS_LINUX_SPEC64): Likewise.
25572 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
25573 configuration option.
25575 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
25578 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
25579 to determine current function ABI.
25580 (ix86_function_value_regno_p): Ditto.
25582 2015-06-03 Martin Liska <mliska@suse.cz>
25584 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
25585 * bitmap.h (struct bitmap_usage): Likewise.
25586 * ggc-common.c (struct ggc_usage): Likewise.
25587 * mem-stats.h (struct mem_location): Likewise.
25588 (struct mem_usage): Likewise.
25589 * vec.c (struct vec_usage): Likewise.
25591 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
25593 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
25596 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
25598 * doc/plugins.texi (enum plugin_event): New event.
25599 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
25600 and PLUGIN_FINISH_FUNCTION.
25601 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
25602 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
25604 2015-06-03 Richard Biener <rguenther@suse.de>
25606 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
25607 compute GROUP_GAP for the first element.
25608 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
25611 2015-06-03 Nick Clifton <nickc@redhat.com>
25613 * config/rl78/rl78-real.md: Add peepholes to avoid a register
25614 copy when calling a function.
25615 * config/rl78/rl78.c (need_to_save): Do not push the frame
25616 pointer in an interrupt handler prologue if it is never used.
25618 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25620 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
25622 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
25624 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
25625 reference when cloning alias node.
25627 2015-06-03 Martin Liska <mliska@suse.cz>
25629 * alloc-pool.h (struct pool_usage): Correct space padding.
25630 * ggc-page.c (ggc_print_statistics): Align columns in a report.
25631 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
25632 * tree.c (dump_tree_statistics): Align columns in a report.
25634 2015-06-03 Martin Liska <mliska@suse.cz>
25636 * alloc-pool.c (allocate_pool_descriptor): Remove.
25637 (struct pool_output_info): Likewise.
25638 (print_alloc_pool_statistics): Likewise.
25639 (dump_alloc_pool_statistics): Likewise.
25640 * alloc-pool.h (struct pool_usage): New struct.
25641 (pool_allocator::initialize): Change usage of memory statistics
25642 to a new interface.
25643 (pool_allocator::release): Likewise.
25644 (pool_allocator::allocate): Likewise.
25645 (pool_allocator::remove): Likewise.
25646 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
25647 for a pool allocator.
25648 * mem-stats.h (struct mem_location): Add new ctor.
25649 (struct mem_usage): Add counter for number of
25651 (mem_alloc_description::register_descriptor): New overload of
25652 * mem-stats.h (mem_location::to_string): New function.
25653 * bitmap.h (struct bitmap_usage): Use this new function.
25654 * ggc-common.c (struct ggc_usage): Likewise.
25657 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
25659 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
25660 of GCC_INSN_FLAGS_H block.
25662 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
25664 * explow.c (plus_constant): Update check after force_const_mem call
25665 to see if the value returned is not a NULL_RTX.
25667 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
25669 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
25670 remove instumentation thunks calling reachable functions.
25671 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
25672 * lto/lto-partition.c (privatize_symbol_name_1): New.
25673 (privatize_symbol_name): Privatize both decl and orig_decl
25674 names for instrumented functions.
25675 * cgraph.c (cgraph_node::verify_node): Add transparent
25676 alias chain check for instrumented node.
25678 2015-06-03 Marek Polacek <polacek@redhat.com>
25682 * tree.c (attribute_value_equal): Handle attribute format.
25683 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
25685 2015-06-03 Richard Biener <rguenther@suse.de>
25687 PR tree-optimization/63916
25688 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
25689 Forward-propagate non-invariant addresses by splicing their
25690 reference ops if the result isn't going to be used by PRE.
25691 (vn_reference_lookup_3): Remove pointless assert.
25693 2015-06-03 Richard Biener <rguenther@suse.de>
25695 PR tree-optimization/66375
25696 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
25697 add to the evolution before following SSA edges.
25699 2015-06-03 Bin Cheng <bin.cheng@arm.com>
25701 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
25702 (dump_use, dump_cand, find_induction_variables): Pass new argument
25704 (record_use): Preserve the ssa name information in IV.
25706 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
25708 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
25710 (add_mode_tests): Don't add mode tests if the predicate only
25711 accepts scalar constant integers. Otherwise, allow the mode
25712 of "op" to be VOIDmode if the predicate does accept such integers.
25714 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
25717 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
25718 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
25719 (aarch64_secondary_reload): Likewise
25720 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
25722 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
25725 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
25726 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25729 * cprop.c (try_replace_reg): Check cost of constants before propagating.
25731 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25733 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
25734 provide access to the IBM extended double floating point mode if
25735 long double is IEEE 128-bit floating point.
25736 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
25737 point if long double is the IBM extended double type.
25739 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
25740 enable adding IEEE 128-bit floating point support.
25741 (-mfloat128-software): Likewise.
25742 (-mfloat128-sw): Likewise.
25744 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
25745 128-bit floating point types to occupy any register if
25746 -mlong-double-64. Do not allow use of IFmode/KFmode unless
25747 -mfloat128-software is enabled.
25748 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
25750 (rs6000_option_override_internal): Add -mfloat128-* support.
25751 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
25753 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
25754 and float128 type nodes.
25755 (ieee128_float_type_node): Likewise.
25756 (ibm128_float_type_node): Likewise.
25758 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25761 * config/aarch64/geniterators.sh: Rewrite in awk.
25763 2015-06-02 Martin Liska <mliska@suse.cz>
25765 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
25766 values to avoid -Wmaybe-uninitialized errors.
25768 2015-06-02 Richard Biener <rguenther@suse.de>
25771 * dwarf2out.c (lookup_context_die): New function.
25772 (resolve_addr): Avoid forcing a full DIE for the
25773 target of a DW_TAG_GNU_call_site during late compilation.
25774 Instead create a stub DIE without a type if we have a
25775 context DIE present.
25777 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
25779 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
25781 2015-06-02 Bin Cheng <bin.cheng@arm.com>
25783 PR tree-optimization/48052
25784 * cfgloop.h (struct control_iv): New.
25785 (struct loop): New field control_ivs.
25786 * tree-ssa-loop-niter.c : Include "stor-layout.h".
25787 (number_of_iterations_lt): Set no_overflow information.
25788 (number_of_iterations_exit): Init control iv in niter struct.
25789 (record_control_iv): New.
25790 (estimate_numbers_of_iterations_loop): Call record_control_iv.
25791 (loop_exits_before_overflow): New. Interface factored out of
25792 scev_probably_wraps_p.
25793 (scev_probably_wraps_p): Factor loop niter related code into
25794 loop_exits_before_overflow.
25795 (free_numbers_of_iterations_estimates_loop): Free control ivs.
25796 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
25798 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
25800 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
25801 the target doesn't belong to the current function.
25803 2015-06-02 Marek Polacek <polacek@redhat.com>
25805 PR middle-end/66345
25806 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
25807 get_maxval_strlen does not produce an INTEGER_CST.
25809 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
25811 * config/arc/constraints.md: Use lower-case names in match_code.
25812 * config/mmix/constraints.md: Likewise.
25814 2015-06-02 Richard Biener <rguenther@suse.de>
25816 PR tree-optimization/65961
25817 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
25818 check and clarify dump message.
25819 (vect_build_slp_tree): If all children are built up from scalars
25820 build up the parent from scalars instead.
25821 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
25823 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
25826 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
25827 instead of print ... .
25829 2015-06-02 Alan Modra <amodra@gmail.com>
25831 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
25834 2015-06-02 Bin Cheng <bin.cheng@arm.com>
25836 PR tree-optimization/52563
25837 PR tree-optimization/62173
25838 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
25839 (alloc_iv, set_iv): New parameter.
25840 (determine_biv_step): Delete.
25841 (find_bivs): Inline original determine_biv_step. Pass new
25842 argument to set_iv.
25843 (idx_find_step): Use no_overflow information for conversion.
25844 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
25845 resolve_mixers handle folded_casts.
25846 (instantiate_scev_name): Change bool parameter to bool pointer.
25847 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
25848 (instantiate_array_ref, instantiate_scev_not): Ditto.
25849 (instantiate_scev_3, instantiate_scev_2): Ditto.
25850 (instantiate_scev_1, instantiate_scev_r): Ditto.
25851 (instantiate_scev_convert, ): Change parameter. Pass argument
25852 to chrec_convert_aggressive.
25853 (instantiate_scev): Change argument.
25854 (resolve_mixers): New parameter and set it.
25855 (scev_const_prop): New argument.
25856 * tree-scalar-evolution.h (resolve_mixers): New parameter.
25857 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
25859 (chrec_convert): New parameter. Move definition below.
25860 (chrec_convert_aggressive): New parameter and set it. Call
25861 convert_affine_scev.
25862 * tree-chrec.h (chrec_convert): New parameter.
25863 (chrec_convert_aggressive): Ditto.
25865 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
25867 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
25868 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
25869 the LHS of a no-return call if its type has variable size.
25870 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
25871 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
25873 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
25875 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
25876 * config.in: Regenerate.
25878 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
25880 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
25881 consecutive accesses within outer-loop with force_vectorize
25882 for references with zero step in inner-loop.
25884 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
25886 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
25887 rather than from gcc/build directory.
25889 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
25892 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
25893 for __sync memory models, emit initial loads and final barriers as
25896 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
25899 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
25900 (aarch64_split_atomic_op): Check for __sync memory models, emit
25901 appropriate initial loads and final barriers.
25903 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
25905 * Makefile.in: Fix gcov dependencies that should
25906 not point to a build folder.
25908 2015-06-01 Richard Biener <rguenther@suse.de>
25911 2015-05-29 Richard Biener <rguenther@suse.de>
25913 PR tree-optimization/66314
25914 * tree-ssa-threadupdate.c (create_block_for_threading): Add
25915 parameter that says which loop the new block belongs to.
25916 (ssa_create_duplicates): Blocks duplicated for the threaded
25917 path belong to the loop of the thread destination.
25919 2015-06-01 Martin Liska <mliska@suse.cz>
25921 * sched-deps.c: Include pool-alloc.h before
25922 cselib.h header file is included.
25924 2015-06-01 Richard Biener <rguenther@suse.de>
25926 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
25929 2015-06-01 Martin Liska <mliska@suse.cz>
25931 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
25932 a function local variable.
25934 2015-06-01 Martin Liska <mliska@suse.cz>
25936 * alloc-pool.c (create_alloc_pool): Remove.
25937 (empty_alloc_pool): Likewise.
25938 (free_alloc_pool): Likewise.
25939 (free_alloc_pool_if_empty): Likewise.
25940 (pool_alloc): Likewise.
25941 (pool_free): Likewise.
25942 * alloc-pool.h: Remove old declarations.
25944 2015-06-01 Martin Liska <mliska@suse.cz>
25946 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
25947 (ira_create_object): Likewise.
25948 (ira_create_allocno): Likewise.
25949 (ira_create_live_range): Likewise.
25950 (copy_live_range): Likewise.
25951 (ira_finish_live_range): Likewise.
25952 (ira_free_allocno_costs): Likewise.
25953 (finish_allocno): Likewise.
25954 (finish_allocnos): Likewise.
25955 (initiate_prefs): Likewise.
25956 (ira_create_pref): Likewise.
25957 (finish_pref): Likewise.
25958 (finish_prefs): Likewise.
25959 (initiate_copies): Likewise.
25960 (ira_create_copy): Likewise.
25961 (finish_copy): Likewise.
25962 (finish_copies): Likewise.
25963 (finish_prefs): Likewise.
25965 2015-06-01 Martin Liska <mliska@suse.cz>
25967 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
25968 (allocate_and_init_ipcp_value): Likewise.
25969 (ipcp_lattice::add_value): Likewise.
25970 (merge_agg_lats_step): Likewise.
25971 (ipcp_driver): Likewise.
25972 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
25973 (ipa_free_all_structures_after_iinln): Likewise.
25974 * ipa-prop.h: Likewise.
25976 2015-06-01 Martin Liska <mliska@suse.cz>
25978 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
25980 (set_hint_predicate): Likewise.
25981 (inline_summary_alloc): Likewise.
25982 (reset_inline_edge_summary): Likewise.
25983 (reset_inline_summary): Likewise.
25984 (set_cond_stmt_execution_predicate): Likewise.
25985 (set_switch_stmt_execution_predicate): Likewise.
25986 (compute_bb_predicates): Likewise.
25987 (estimate_function_body_sizes): Likewise.
25988 (inline_free_summary): Likewise.
25990 2015-06-01 Martin Liska <mliska@suse.cz>
25992 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
25993 (ipa_edge_duplication_hook): Likewise.
25994 (ipa_free_all_structures_after_ipa_cp): Likewise.
25995 (ipa_free_all_structures_after_iinln): Likewise.
25997 2015-06-01 Martin Liska <mliska@suse.cz>
25999 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
26000 (ipa_profile_generate_summary): Likewise.
26001 (ipa_profile_read_summary): Likewise.
26002 (ipa_profile): Likewise.
26004 2015-06-01 Martin Liska <mliska@suse.cz>
26006 * tree-ssa-structalias.c (new_var_info): Use new type-based
26008 (new_constraint): Likewise.
26009 (init_alias_vars): Likewise.
26010 (delete_points_to_sets): Likewise.
26012 2015-06-01 Martin Liska <mliska@suse.cz>
26014 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
26015 (free_strinfo): Likewise.
26016 (pass_strlen::execute): Likewise.
26018 2015-06-01 Martin Liska <mliska@suse.cz>
26020 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
26022 (vn_reference_insert_pieces): Likewise.
26023 (vn_phi_insert): Likewise.
26024 (visit_reference_op_call): Likewise.
26025 (copy_phi): Likewise.
26026 (copy_reference): Likewise.
26027 (process_scc): Likewise.
26028 (allocate_vn_table): Likewise.
26029 (free_vn_table): Likewise.
26031 2015-06-01 Martin Liska <mliska@suse.cz>
26033 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
26035 (add_repeat_to_ops_vec): Likewise.
26036 (get_ops): Likewise.
26037 (maybe_optimize_range_tests): Likewise.
26038 (init_reassoc): Likewise.
26039 (fini_reassoc): Likewise.
26041 2015-06-01 Martin Liska <mliska@suse.cz>
26043 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
26045 (bitmap_set_new): Likewise.
26046 (get_or_alloc_expr_for_constant): Likewise.
26047 (get_or_alloc_expr_for): Likewise.
26048 (phi_translate_1): Likewise.
26049 (compute_avail): Likewise.
26050 (init_pre): Likewise.
26051 (fini_pre): Likewise.
26053 2015-06-01 Martin Liska <mliska@suse.cz>
26055 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
26056 (delete_dep_node): Likewise.
26057 (create_deps_list): Likewise.
26058 (free_deps_list): Likewise.
26059 (sched_deps_init): Likewise.
26060 (sched_deps_finish): Likewise.
26062 2015-06-01 Martin Liska <mliska@suse.cz>
26064 * regcprop.c (free_debug_insn_changes): Use new type-based
26066 (replace_oldest_value_reg): Likewise.
26067 (pass_cprop_hardreg::execute): Likewise.
26069 2015-06-01 Martin Liska <mliska@suse.cz>
26071 * ira-build.c (initiate_cost_vectors): Use new type-based
26073 (ira_allocate_cost_vector): Likewise.
26074 (ira_free_cost_vector): Likewise.
26075 (finish_cost_vectors): Likewise.
26077 2015-06-01 Martin Liska <mliska@suse.cz>
26079 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
26081 (free_sched_pools): Likewise.
26082 * sel-sched-ir.h (_list_alloc): Likewise.
26083 (_list_remove): Likewise.
26085 2015-06-01 Martin Liska <mliska@suse.cz>
26087 * stmt.c (add_case_node): Use new type-based pool allocator.
26088 (expand_case): Likewise.
26089 (expand_sjlj_dispatch_table): Likewise.
26091 2015-06-01 Martin Liska <mliska@suse.cz>
26093 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
26094 (free_bb): Likewise.
26095 (pass_cse_reciprocals::execute): Likewise.
26097 2015-06-01 Martin Liska <mliska@suse.cz>
26099 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
26100 (sra_deinitialize) Likewise.
26101 (create_access_1) Likewise.
26102 (build_accesses_from_assign) Likewise.
26103 (create_artificial_child_access) Likewise.
26105 2015-06-01 Martin Liska <mliska@suse.cz>
26107 * dse.c (get_group_info):Use new type-based pool allocator.
26108 (dse_step0) Likewise.
26109 (free_store_info) Likewise.
26110 (delete_dead_store_insn) Likewise.
26111 (free_read_records) Likewise.
26112 (record_store) Likewise.
26113 (replace_read) Likewise.
26114 (check_mem_read_rtx) Likewise.
26115 (scan_insn) Likewise.
26116 (dse_step1) Likewise.
26117 (dse_step7) Likewise.
26119 2015-06-01 Martin Liska <mliska@suse.cz>
26121 * df-scan.c (struct df_scan_problem_data):Use new type-based
26123 (df_scan_free_internal) Likewise.
26124 (df_scan_alloc) Likewise.
26125 (df_grow_reg_info) Likewise.
26126 (df_free_ref) Likewise.
26127 (df_insn_create_insn_record) Likewise.
26128 (df_mw_hardreg_chain_delete) Likewise.
26129 (df_insn_info_delete) Likewise.
26130 (df_free_collection_rec) Likewise.
26131 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
26132 (df_sort_and_compress_mws) Likewise.
26133 (df_ref_create_structure) Likewise.
26134 (df_ref_record) Likewise.
26136 2015-06-01 Martin Liska <mliska@suse.cz>
26138 * df-problems.c (df_chain_create):Use new type-based pool allocator.
26139 (df_chain_unlink_1) Likewise.
26140 (df_chain_unlink) Likewise.
26141 (df_chain_remove_problem) Likewise.
26142 (df_chain_alloc) Likewise.
26143 (df_chain_free) Likewise.
26144 * df.h (struct dataflow) Likewise.
26146 2015-06-01 Martin Liska <mliska@suse.cz>
26148 * cselib.c (new_elt_list):Use new type-based pool allocator.
26149 (new_elt_loc_list) Likewise.
26150 (unchain_one_elt_list) Likewise.
26151 (unchain_one_elt_loc_list) Likewise.
26152 (unchain_one_value) Likewise.
26153 (new_cselib_val) Likewise.
26154 (cselib_init) Likewise.
26155 (cselib_finish) Likewise.
26157 2015-06-01 Martin Liska <mliska@suse.cz>
26159 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
26160 (sh_reorg) Likewise.
26162 2015-06-01 Martin Liska <mliska@suse.cz>
26164 * cfg.c (initialize_original_copy_tables):Use new type-based
26166 (free_original_copy_tables) Likewise.
26167 (copy_original_table_clear) Likewise.
26168 (copy_original_table_set) Likewise.
26170 2015-06-01 Martin Liska <mliska@suse.cz>
26172 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
26174 (asan_mem_ref_new) Likewise.
26175 (free_mem_ref_resources) Likewise.
26177 2015-06-01 Martin Liska <mliska@suse.cz>
26179 * var-tracking.c (variable_htab_free):Use new type-based
26181 (attrs_list_clear) Likewise.
26182 (attrs_list_insert) Likewise.
26183 (attrs_list_copy) Likewise.
26184 (shared_hash_unshare) Likewise.
26185 (shared_hash_destroy) Likewise.
26186 (unshare_variable) Likewise.
26187 (var_reg_delete_and_set) Likewise.
26188 (var_reg_delete) Likewise.
26189 (var_regno_delete) Likewise.
26190 (drop_overlapping_mem_locs) Likewise.
26191 (variable_union) Likewise.
26192 (insert_into_intersection) Likewise.
26193 (canonicalize_values_star) Likewise.
26194 (variable_merge_over_cur) Likewise.
26195 (dataflow_set_merge) Likewise.
26196 (remove_duplicate_values) Likewise.
26197 (variable_post_merge_new_vals) Likewise.
26198 (dataflow_set_preserve_mem_locs) Likewise.
26199 (dataflow_set_remove_mem_locs) Likewise.
26200 (variable_from_dropped) Likewise.
26201 (variable_was_changed) Likewise.
26202 (set_slot_part) Likewise.
26203 (clobber_slot_part) Likewise.
26204 (delete_slot_part) Likewise.
26205 (loc_exp_insert_dep) Likewise.
26206 (notify_dependents_of_changed_value) Likewise.
26207 (emit_notes_for_differences_1) Likewise.
26208 (vt_emit_notes) Likewise.
26209 (vt_initialize) Likewise.
26210 (vt_finalize) Likewise.
26212 2015-06-01 Martin Liska <mliska@suse.cz>
26214 * ira-color.c (init_update_cost_records):Use new type-based
26216 (get_update_cost_record) Likewise.
26217 (free_update_cost_record_list) Likewise.
26218 (finish_update_cost_records) Likewise.
26219 (initiate_cost_update) Likewise.
26221 2015-06-01 Martin Liska <mliska@suse.cz>
26223 * lra.c (init_insn_regs): Use new type-based pool allocator.
26224 (new_insn_reg) Likewise.
26225 (free_insn_reg) Likewise.
26226 (free_insn_regs) Likewise.
26227 (finish_insn_regs) Likewise.
26228 (init_insn_recog_data) Likewise.
26229 (init_reg_info) Likewise.
26230 (finish_reg_info) Likewise.
26231 (lra_free_copies) Likewise.
26232 (lra_create_copy) Likewise.
26233 (invalidate_insn_data_regno_info) Likewise.
26235 2015-06-01 Martin Liska <mliska@suse.cz>
26237 * lra-lives.c (free_live_range): Use new type-based pool allocator.
26238 (free_live_range_list) Likewise.
26239 (create_live_range) Likewise.
26240 (copy_live_range) Likewise.
26241 (lra_merge_live_ranges) Likewise.
26242 (remove_some_program_points_and_update_live_ranges) Likewise.
26243 (lra_live_ranges_init) Likewise.
26244 (lra_live_ranges_finish) Likewise.
26246 2015-06-01 Martin Liska <mliska@suse.cz>
26248 * et-forest.c (et_new_occ): Use new type-based pool allocator.
26249 (et_new_tree): Likewise.
26250 (et_free_tree): Likewise.
26251 (et_free_tree_force): Likewise.
26252 (et_free_pools): Likewise.
26253 (et_split): Likewise.
26255 2015-06-01 Martin Liska <mliska@suse.cz>
26257 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
26259 * alloc-pool.h (pool_allocator::pool_allocator): New function.
26260 (pool_allocator::release): Likewise.
26261 (inline pool_allocator::release_if_empty): Likewise.
26262 (inline pool_allocator::~pool_allocator): Likewise.
26263 (pool_allocator::allocate): Likewise.
26264 (pool_allocator::remove): Likewise.
26266 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
26268 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
26271 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
26273 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
26275 * config/arm/arm.c (arm_print_tune_info): Likewise.
26276 (arm_macro_fusion_p): Likewise.
26277 (arm_macro_fusion_pair_p): Likewise.
26279 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
26281 * config/aarch64/aarch64-protos.h (tune_params): Rename
26282 fuseable_ops to fusible_ops.
26283 * config/aarch64/aarch64.c (generic_tunings): Rename
26284 fuseable_ops to fusible_ops.
26285 (cortexa53_tunings): Likewise.
26286 (cortexa57_tunings): Likewise.
26287 (thunderx_tunings): Likewise.
26288 (xgene1_tunings): Likewise.
26289 (aarch64_macro_fusion_p): Likewise.
26290 (aarch64_macro_fusion_pair_p): Likewise.
26292 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
26294 * config/s390/driver-native.c: New file.
26295 * config/s390/x-native: New file.
26296 * config.host: Add new files for s390.
26297 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
26299 * config.gcc: Likewise.
26300 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
26301 * config/s390/s390-opts.h (enum processor_type): Ditto.
26302 * config/s390/s390.c (s390_option_override): Catch unhandled
26305 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
26308 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
26309 redirection for instrumented calls.
26310 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
26311 (append_compiler_options): Append -fcheck-pointer-bounds.
26312 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
26313 (chkp_redirect_edge): New.
26314 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
26315 (chkp_redirect_edge): New.
26317 2015-06-01 Richard Biener <rguenther@suse.de>
26319 PR tree-optimization/66280
26320 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
26323 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26325 * config/aarch64/aarch64.md
26326 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
26329 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
26331 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
26332 Remove obsolete kludge.
26334 2015-06-01 Richard Biener <rguenther@suse.de>
26336 * tree-ssa-reassoc.c (get_rank): Simplify.
26338 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
26340 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
26341 * configure: Regenerated.
26343 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
26345 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
26346 issue (add space between string literal and macro).
26347 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
26349 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
26351 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
26352 implict or explicit -fPIE or -fpie.
26354 2015-05-30 Mike Frysinger <vapier@gentoo.org>
26356 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
26358 2015-05-28 DJ Delorie <dj@redhat.com>
26360 * expmed.c (extract_bit_field_1): Avoid clobbering a
26361 yet-to-be-used base/index register.
26363 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
26365 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
26366 (alias_stats): Add num_universal.
26367 (alias_set_subset_of): Special case pointers; be ready for NULL
26369 (alias_sets_conflict_p): Special case pointers; be ready for NULL
26371 (init_alias_set_entry): Break out from ...
26372 (record_alias_subset): ... here; propagate new fields;
26373 allocate children only when really needed.
26374 (get_alias_set): Do less generous pointer globbing.
26375 (dump_alias_stats_in_alias_c): Update statistics.
26377 2015-05-30 Alan Modra <amodra@gmail.com>
26379 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
26380 correct block for use of r12.
26381 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
26383 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
26386 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
26389 2015-05-29 Jakub Jelinek <jakub@redhat.com>
26391 PR tree-optimization/66142
26392 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
26393 virtual phis that feed themselves.
26395 2015-05-29 Richard Biener <rguenther@suse.de>
26397 PR tree-optimization/66314
26398 * tree-ssa-threadupdate.c (create_block_for_threading): Add
26399 parameter that says which loop the new block belongs to.
26400 (ssa_create_duplicates): Blocks duplicated for the threaded
26401 path belong to the loop of the thread destination.
26403 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26405 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
26406 to cleanup-saved-temps.
26407 * doc/sourcebuild.texi (Clean up generated test files): Expand
26409 (dg-keep-saved-temps): Document new proc.
26410 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
26411 cleanup-saved-temps): Remove.
26413 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
26415 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
26416 gcc_AC_CHECK_DECLS.
26417 * configure: Regenerate.
26419 2015-05-28 Mike Frysinger <vapier@gentoo.org>
26421 * config/nios2/linux.h (CPP_SPEC): Define.
26423 2015-05-28 Mike Frysinger <vapier@gentoo.org>
26425 * config/microblaze/linux.h (CPP_SPEC): Define.
26427 2015-05-28 Mike Frysinger <vapier@gentoo.org>
26429 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
26430 -pthread is specified.
26432 2015-05-28 Richard Biener <rguenther@suse.de>
26434 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
26435 (vect_fixup_scalar_cycles_with_patterns): Likewise.
26436 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
26437 after pattern recog.
26438 (vect_create_epilog_for_reduction): Properly handle reductions
26440 (vectorizable_reduction): Likewise.
26441 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
26443 (vect_get_constant_vectors): Create the correct number of
26444 initial values for reductions.
26445 (vect_schedule_slp_instance): Handle reduction chains that are
26446 type changing properly.
26447 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
26449 2015-05-28 Richard Biener <rguenther@suse.de>
26451 PR tree-optimization/66142
26452 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
26453 values better in memcpy destination handling. Handle non-aliasing
26456 2015-05-28 Lawrence Velázquez <vq@larryv.me>
26459 * config/darwin-c.c (version_components): New global enum.
26460 (parse_version, version_as_legacy_macro)
26461 (version_as_modern_macro, macosx_version_as_macro): New functions.
26462 (version_as_macro): Remove.
26463 (darwin_cpp_builtins): Use new function.
26465 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
26467 * builtins.c (expand_builtin_acc_on_device): Mark parameters
26468 with ATTRIBUTE_UNUSED.
26470 2015-05-28 Julian Brown <julian@codesourcery.com>
26474 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
26475 sequence for !ACCEL_COMPILER.
26477 2015-05-28 Nick Clifton <nickc@redhat.com>
26479 * config/rx/rx.c (push_regs): New function. Extracts code from...
26480 (rx_expand_prologue): ... here. Use push_regs to push even small
26481 spans of registers.
26482 (pop_regs): New function.
26483 (rx_expand_epilogue): Use pop_regs to pop even small spans of
26486 2015-05-28 Richard Biener <rguenther@suse.de>
26488 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
26490 (SLP_INSTANCE_BODY_COST_VEC): Remove.
26491 (vect_update_slp_costs_according_to_vf): Likewise.
26492 (vect_slp_analyze_operations): Update prototype.
26493 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
26494 vect_update_slp_costs_according_to_vf, adjust.
26495 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
26496 (vect_analyze_slp_cost_1): Likewise.
26497 (vect_analyze_slp_cost): Likewise. Properly deal with
26498 widening reduction ops. Commit body costs.
26499 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
26500 cost for loops from here.
26501 (vect_slp_analyze_operations): But do it from here when
26502 the vectorization factor is known and stmts are analyzed.
26503 (vect_bb_vectorization_profitable_p): Simplify.
26504 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
26505 (vect_update_slp_costs_according_to_vf): Remove.
26507 2015-05-27 Magnus Granberg <zorry@gentoo.org>
26508 H.J. Lu <hongjiu.lu@intel.com>
26510 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
26511 (BUILD_CFLAGS): Likewise.
26512 (BUILD_CXXFLAGS): Likewise.
26513 (LINKER): Add @NO_PIE_FLAG@.
26514 (BUILD_LDFLAGS): Likewise.
26515 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
26516 --enable-default-pie.
26517 * common.opt (fPIE): Initialize to -1.
26519 (no-pie): New option.
26520 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
26521 * configure.ac: Add --enable-default-pie.
26522 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
26523 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
26524 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
26525 * gcc.c (NO_PIE_SPEC): New.
26526 (PIE_SPEC): Likewise.
26527 (NO_FPIE1_SPEC): Likewise.
26528 (FPIE1_SPEC): Likewise.
26529 (NO_FPIE2_SPEC): Likewise.
26530 (FPIE2_SPEC): Likewise.
26531 (NO_FPIE2_SPEC): Likewise.
26532 (FPIE_SPEC): Likewise.
26533 (NO_FPIE_SPEC): Likewise.
26534 (NO_FPIC1_SPEC): Likewise.
26535 (FPIC1_SPEC): Likewise.
26536 (NO_FPIC2_SPEC): Likewise.
26537 (FPIC2_SPEC): Likewise.
26538 (NO_FPIC2_SPEC): Likewise.
26539 (FPIC_SPEC): Likewise.
26540 (NO_FPIC_SPEC): Likewise.
26541 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
26542 (FPIE1_OR_FPIC1_SPEC): Likewise.
26543 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
26544 (FPIE2_OR_FPIC2_SPEC): Likewise.
26545 (NO_FPIE_AND_FPIC_SPEC): Likewise.
26546 (FPIE_OR_FPIC_SPEC): Likewise.
26547 (LD_PIE_SPEC): Likewise.
26548 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
26549 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
26550 * config/darwin.h (PIE_SPEC): Renamed to ...
26551 (DARWIN_PIE_SPEC): This.
26552 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
26553 * config/darwin9.h (PIE_SPEC): Renamed to ...
26554 (DARWIN_PIE_SPEC): This.
26555 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
26556 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
26557 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
26558 FPIE2_OR_FPIC2_SPEC.
26559 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
26560 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
26561 * config/sol2.h (ASM_PIC_SPEC): Likewise.
26562 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26563 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26564 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26565 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
26566 * config/m32r/m32r.h (ASM_SPEC): Likewise.
26567 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
26568 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
26569 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
26570 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
26571 * config/sparc/linux.h (ASM_SPEC): Likewise.
26572 * config/sparc/linux64.h (ASM_SPEC): Likewise.
26573 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
26574 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
26575 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26576 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
26577 * config/sparc/sparc.h (ASM_SPEC): Likewise.
26578 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
26579 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
26580 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
26581 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
26582 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
26583 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
26584 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
26585 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
26586 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
26587 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
26588 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
26589 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
26590 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26591 * config/vax/linux.h (ASM_SPEC): Likewise.
26592 * doc/install.texi: Document --enable-default-pie.
26593 * doc/invoke.texi: Document -no-pie.
26594 * config.in: Regenerated.
26595 * configure: Likewise.
26597 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
26599 PR rtl-optimization/66168
26600 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
26601 can_move_invariant_reg.
26603 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
26606 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
26607 REG_EQUAL note when doing insert.
26609 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
26610 instead of "%d" for 'o' operand.
26612 2015-05-27 Nathan Sidwell <nathan@acm.org>
26615 * tree.c (build_pointer_type_for_mode): Canonical type does not
26616 inherit can_alias_all.
26617 (build_reference_type_for_mode): Likewise.
26619 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
26621 * expr.h (array_at_struct_end_p): Move to...
26622 (array_ref_element_size): Likewise.
26623 (component_ref_field_offset): Likewise.
26624 * tree.h (array_ref_element_size): ...here.
26625 (array_at_struct_end_p): Likewise.
26626 (component_ref_field_offset): Likewise.
26627 * expr.c (array_ref_element_size): Move to...
26628 (array_ref_low_bound): Likewise.
26629 (array_at_struct_end_p): Likewise.
26630 (array_ref_up_bound): Likewise.
26631 (component_ref_field_offset): Likewise.
26632 * tree.c (array_ref_element_size): ...here.
26633 (array_ref_low_bound): Likewise.
26634 (array_ref_up_bound): Likewise.
26635 (array_at_struct_end_p): Likewise.
26636 (component_ref_field_offset): Likewise.
26638 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
26639 Szabolcs Nagy <szabolcs.nagy@arm.com>
26641 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
26643 2015-05-27 Jason Merrill <jason@redhat.com>
26646 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
26647 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
26648 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
26650 2015-05-22 Aditya Kumar <hiraditya@msn.com>
26652 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
26655 * statistics.c (statistics_fini_pass): Print pass name.
26657 2015-05-27 Richard Biener <rguenther@suse.de>
26659 PR tree-optimization/66272
26661 2014-08-15 Richard Biener <rguenther@suse.de>
26663 PR tree-optimization/62031
26664 * tree-data-ref.c (dr_analyze_indices): Do not set
26665 DR_UNCONSTRAINED_BASE.
26666 (dr_may_alias_p): All indirect accesses have to go the
26667 formerly DR_UNCONSTRAINED_BASE path.
26668 * tree-data-ref.h (struct indices): Remove
26669 unconstrained_base member.
26670 (DR_UNCONSTRAINED_BASE): Remove.
26672 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
26674 * dwarf2out.c: Remove block_map.
26675 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
26676 (gen_lexical_block_die): Same.
26677 (dwarf2out_function_decl): Remove block_map use.
26678 (dwarf2out_c_finalize): Same.
26679 * tree-core.h (struct tree_block): Add die field.
26680 * tree.h (BLOCK_DIE): New.
26682 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26685 * expr.c (memory_load_overlap): New function.
26686 (emit_push_insn): When pushing partial args to the stack would
26687 clobber the register part load the overlapping part into a pseudo
26688 and put it into the hard reg after pushing. Change return type
26689 to bool. Add bool argument.
26690 * expr.h (emit_push_insn): Change return type to bool.
26692 * calls.c (expand_call): Cancel sibcall optimization when encountering
26693 partial argument on targets with ARGS_GROW_DOWNWARD and
26694 !STACK_GROWS_DOWNWARD.
26695 (emit_library_call_value_1): Update callsite of emit_push_insn.
26696 (store_one_arg): Likewise.
26698 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
26700 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
26702 2015-05-27 Martin Liska <mliska@suse.cz>
26704 * Makefile.in: Add additional dependencies related to memory report
26706 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
26707 * bitmap.c (struct bitmap_descriptor_d): Remove.
26708 (struct loc): Likewise.
26709 (struct bitmap_desc_hasher): Likewise.
26710 (bitmap_desc_hasher::hash): Likewise.
26711 (bitmap_desc_hasher::equal): Likewise.
26712 (get_bitmap_descriptor): Likewise.
26713 (bitmap_register): User new memory descriptor API.
26714 (register_overhead): Likewise.
26715 (bitmap_find_bit): Register nsearches and search_iter statistics.
26716 (struct bitmap_output_info): Remove.
26717 (print_statistics): Likewise.
26718 (dump_bitmap_statistics): Use new memory descriptor.
26719 * bitmap.h (struct bitmap_usage): New class.
26720 * genmatch.c: Extend header file inclusion.
26721 * genpreds.c: Likewise.
26722 * ggc-common.c (struct ggc_usage): New class.
26723 (struct ggc_loc_desc_hasher): Remove.
26724 (ggc_loc_desc_hasher::hash): Likewise.
26725 (ggc_loc_desc_hasher::equal): Likewise.
26726 (struct ggc_ptr_hash_entry): Likewise.
26727 (struct ptr_hash_hasher): Likewise.
26728 (ptr_hash_hasher::hash): Likewise.
26729 (ptr_hash_hasher::equal): Likewise.
26730 (make_loc_descriptor): Likewise.
26731 (ggc_prune_ptr): Likewise.
26732 (dump_ggc_loc_statistics): Use new memory descriptor.
26733 (ggc_record_overhead): Likewise.
26734 (ggc_free_overhead): Likewise.
26735 (final_cmp_statistic): Remove.
26736 (cmp_statistic): Likewise.
26737 (ggc_add_statistics): Liekwise.
26738 (ggc_prune_overhead_list): Likewise.
26739 * hash-map-traits.h: New file.
26740 * hash-map.h (struct default_hashmap_traits): Move the traits to a
26741 separate header file.
26742 * hash-set.h: Pass memory statistics info to ctor.
26743 * hash-table.c (void dump_hash_table_loc_statistics): New function.
26744 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
26745 (hash_table::~hash_table): Register memory release operation.
26746 (hash_table::alloc_entries): Handle memory allocation operation.
26747 (hash_table::expand): Likewise.
26748 * inchash.c (iterative_hash_hashval_t): Move implementation to header
26750 (iterative_hash_host_wide_int): Likewise.
26751 * inchash.h (class hash): Likewise.
26752 * mem-stats-traits.h: New file.
26753 * mem-stats.h: New file.
26754 (mem_location): Add new class.
26755 (mem_usage): Likewise.
26756 (mem_alloc_description): Likewise.
26757 * sese.c: Add new header file inclusision.
26758 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
26760 * tree-sra.c: Add new header file inclusision.
26761 * vec.c (struct vec_descriptor): Remove.
26762 (hash_descriptor): Likewise.
26763 (struct vec_usage): Likewise.
26764 (struct ptr_hash_entry): Likewise.
26765 (hash_ptr): Likewise.
26766 (eq_ptr): Likewise.
26767 (vec_prefix::register_overhead): Use new memory descriptor API.
26768 (vec_prefix::release_overhead): Likewise.
26769 (add_statistics): Remove.
26770 (dump_vec_loc_statistics): Use new memory descriptor API.
26771 * vec.h (struct vec_prefix): Likewise.
26772 (va_heap::reserve): Likewise.
26773 (va_heap::release): Likewise.
26774 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
26776 2015-05-27 Richard Biener <rguenther@suse.de>
26778 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
26779 earlier and remove ??? comment.
26780 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
26781 and got called from loop analysis bail out. Always pass the SLP
26782 node to the vectorizable_* functions.
26783 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
26784 the premature SLP check here.
26785 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
26786 detected SLP stmts.
26787 (vect_detect_hybrid_slp_1): Likewise.
26789 2015-05-26 Jeff Law <law@redhat.com>
26791 * combine.c (find_split_point): Verify that the shift count is a
26792 constant when choosing (plus (ashift ...)) as a split point.
26794 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
26795 No functional changes.
26797 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
26799 * ipa-polymorphic-call.c
26800 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
26801 case when call target is already known.
26803 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
26806 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
26807 take into account the case that operands[1] and operands[2]
26808 are the same register.
26810 2015-05-26 Michael Matz <matz@suse.de>
26812 PR middle-end/66251
26814 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
26816 (vect_create_vectorized_demotion_stmts): Always set
26817 STMT_VINFO_VEC_STMT, also with SLP.
26818 (vectorizable_store): Handle strided group stores.
26820 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26823 * config/aarch64/aarch64.md
26824 (*adds_shift_imm_<mode>): New pattern.
26825 (*subs_shift_imm_<mode>): Likewise.
26826 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
26827 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
26828 (*add_uxt<mode>_shift2): Likewise.
26829 (*add_uxtsi_shift2_uxtw): Likewise.
26830 (*sub_uxt<mode>_shift2): Likewise.
26831 (*sub_uxtsi_shift2_uxtw): Likewise.
26833 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
26835 * config/rs6000/constraints.md (Y, U): Use match_test.
26837 2015-05-26 Christian Bruel <christian.bruel@st.com>
26840 * config/arm/arm.c (arm_option_check_internal)
26841 (arm_option_params_internal): Check opts->target_flags to set macros.
26842 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
26843 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
26844 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
26845 (builtin_define): Replaced with def_or_undef_macro.
26846 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
26847 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
26848 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
26849 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
26850 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
26851 (TARGET_ARM_FEATURE_LDREX_P)
26852 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
26853 * config/arm/arm-c.c (def_or_undef_macro): New function.
26854 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
26856 2015-05-26 Christian Bruel <christian.bruel@st.com>
26858 * c-common.h (builtin_define_with_int_value)
26859 (builtin_define_type_sizeof): Declare.
26860 * c-cppbuiltin.c (builtin_define_with_int_value)
26861 (builtin_define_type_sizeof): Externalize.
26862 (builtin_define_std): Cleanup declaration.
26863 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
26864 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
26865 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
26866 (builtin_define, builtin_assert): New macros.
26868 2015-05-26 Richard Biener <rguenther@suse.de>
26870 PR tree-optimization/66142
26871 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
26872 MEM_REFs for the same base address.
26874 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26877 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
26879 2015-05-26 Jason Merrill <jason@redhat.com>
26881 * configure.ac: Set CXXFLAGS for ISL test.
26882 * configure: Regenerate.
26884 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
26885 strstr and basename.
26886 * configure: Regenerate.
26888 2015-05-26 Richard Biener <rguenther@suse.de>
26890 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
26891 X % C -> X & (C - 1) for C being a power-of two to ...
26892 * match.pd: ... patterns.
26894 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
26896 * match.pd (swapped_tcc_comparison): New operator list.
26897 (-A CMP -B): New simplification.
26898 * fold-const.c (fold_comparison): Remove corresponding code.
26900 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
26902 * caller-save.c (init_caller_save): Base temporary register numbers
26903 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
26904 * cfgloopanal.c (init_set_costs): Likewise.
26905 * dojump.c (prefer_and_bit_test): Likewise.
26906 * expr.c (init_expr_target): Likewise.
26907 * ira.c (setup_prohibited_mode_move_regs): Likewise.
26908 * lower-subreg.c (init_lower_subreg): Likewise.
26909 * postreload.c (reload_cse_regs_1): Likewise.
26911 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
26913 * gensupport.h (compute_test_codes): Declare.
26914 * gensupport.c (compute_predicate_codes): Rename to...
26915 (compute_test_codes): ...this. Generalize error message.
26916 (process_define_predicate): Update accordingly.
26917 * genpreds.c (compute_maybe_allows): Delete.
26918 (add_constraint): Use compute_test_codes to determine whether
26919 something can accept a SUBREG, REG or MEM.
26921 2015-05-26 Torvald Riegel <triegel@redhat.com>
26923 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
26924 'memory model' to align with C++11; fix description of memory orders;
26927 2015-05-26 Richard Biener <rguenther@suse.de>
26929 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
26930 (vect_analyze_loop_operations): ... here. Remove slp parameter,
26931 detect whether we apply SLP. Remove call to
26932 vect_update_slp_costs_according_to_vf.
26933 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
26934 vect_update_slp_costs_according_to_vf from here. Dispatch
26935 to vect_slp_analyze_operations to analyze SLP stmts.
26936 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
26937 unused bb_vec_info parameter, adjust assert.
26938 (vect_slp_analyze_operations): Pass in the slp instance tree
26939 instead of bb_vec_info.
26940 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
26941 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
26943 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
26945 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
26946 Q_REGS. Expand comment.
26947 (REG_CLASS_NAMES): Ditto.
26948 (REG_CLASS_CONTENTS): Ditto.
26950 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
26953 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
26954 when LEGACY_INT_REGNO_P is processed.
26956 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
26958 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
26960 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
26962 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
26963 register if not marked dead/unused, before return.
26965 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
26968 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
26969 is set; check for assembler name at LTO time.
26970 (type_in_anonymous_namespace): Remove hacks, check that all
26971 anonymous types are called "<anon>"
26972 (odr_type_p): Simplify; add check for "<anon>"
26973 (odr_subtypes_equivalent): Add odr_type_p check.
26974 * tree.c (need_assembler_name_p): Even anonymous namespace needs
26977 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
26979 * ipa-utils.h (method_class_type): Remove.
26980 * cgraphunit.c (walk_polymorphic_call_targets): Use
26981 TYPE_METHOD_BASETYPE.
26982 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
26983 on main variants only.
26984 (method_class_type): Remove.
26985 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
26986 (build_type_inheritance_graph): Likewise.
26987 * ipa-icf.c (sem_function::equals_wpa): Likewise.
26988 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
26989 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
26991 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
26993 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
26994 is_typedef_decl, typedef_variant_p): Constify.
26995 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
26996 is_typedef_decl, typedef_variant_p): Constify.
26998 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27000 * defaults.h (gen_tablejump): New function.
27001 (HAVE_tablejump): Add default value.
27003 * stmt.c: Likewise.
27005 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27007 * defaults.h (gen_store_multiple): New function.
27008 (HAVE_store_multiple): Add default value.
27009 * expr.c (move_block_from_reg): Adjust.
27011 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27013 * defaults.h (gen_load_multiple): New function.
27014 (HAVE_load_multiple): Add default value.
27015 * expr.c (move_block_to_reg): Adjust.
27017 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27019 * defaults.h (gen_mem_signal_fence): New function.
27020 (HAVE_mem_signal_fence): Add default value.
27021 * optabs.c: Adjust.
27023 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27025 * defaults.h (gen_memory_barrier): New function.
27026 (HAVE_memory_barrier): Add default value.
27027 * optabs.c: Adjust.
27029 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27031 * defaults.h (gen_mem_thread_fence): New function.
27032 (HAVE_mem_thread_fence): Add default definition.
27033 * optabs.c: Adjust.
27035 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27037 * combine.c (find_split_point): Check the value of HAVE_lo_sum
27038 instead of if it is defined.
27039 (combine_simplify_rtx): Likewise.
27040 * lra-constraints.c (process_address_1): Likewise.
27041 * config/darwin.c: Adjust.
27042 * genconfig.c (main): Always define HAVE_lo_sum.
27044 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27046 * genmatch.c (parser::parse_operation): Reject expanding
27047 operator-list inside 'for'.
27049 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27051 * genmatch.c (parser::parse_for): Reject iterator if used as
27054 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27056 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
27057 after end of id-list.
27059 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
27061 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
27062 we do not try to compute canonical type for type that does not need
27064 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
27066 * tree.h (type_with_alias_set_p): New.
27068 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
27070 * tree.c (gimple_canonical_types_compatible_p): Do not compare
27071 function attributes.
27072 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
27074 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
27076 * Makefile.in (check_gcc_parallelize): Delete.
27077 (lang_checks_parallelized): Update comment.
27079 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
27081 PR rtl-optimization/66237
27082 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
27083 location of an "as_a" cast.
27085 2015-05-22 Jeff Law <law@redhat.com>
27087 * config/pa/pa.md (non-canonical shift-add insns): Remove.
27088 (peepholes with non-canonical RTL sources): Remove.
27089 (peepholes for indexed stores of FP regs in integer modes): Match and
27090 generate canonical RTL.
27092 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
27094 PR tree-optimization/63387
27095 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
27096 ((x ord x) & (y ord y) -> (x ord y),
27097 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
27098 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
27099 vectors like scalars.
27101 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
27103 * convert.c (convert_to_integer, convert_to_vector): Include the
27104 types in the error message.
27106 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
27108 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
27111 2015-05-22 Jeff Law <law@redhat.com>
27113 * config/pa/pa.md (integer_indexed_store splitters): Use
27114 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
27115 insns -- adjusting the constant 2nd operand accordingly.
27117 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
27118 (plus (ashift X log2) Y) if it is a split point.
27120 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
27121 out of hppa_legitimize_address to handle both forms of a multiply
27123 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
27124 Always generate the ASHIFT variant as the result is not directly
27125 used in a MEM. Update comments and refactor slightly to improve
27128 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27131 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
27132 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
27133 (aarch64_composite_type_p): Return false if given type and mode are
27134 for a short vector.
27136 2015-05-22 Richard Biener <rguenther@suse.de>
27138 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
27140 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
27141 patterns when determining whether SLP is pure.
27142 (vect_is_slp_reduction): Remove check for pattern stmts.
27143 (vect_is_simple_reduction_1): Remove dead code.
27144 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
27145 (vect_get_and_check_slp_defs): Pass in the stmt number.
27146 Allow the first def in a reduction to be not a pattern stmt when
27147 the rest of the stmts def are patterns.
27148 (vect_build_slp_tree_1): Allow tcc_expression codes like
27149 SAD_EXPR and DOT_PROD_EXPR.
27150 (vect_build_slp_tree): Adjust.
27151 (vect_analyze_slp): Refactor and move BB vect error message ...
27152 (vect_slp_analyze_bb_1): ... here.
27154 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
27156 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
27157 for CSWTCH temporary.
27159 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27161 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
27162 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
27165 2015-05-22 Richard Biener <rguenther@suse.de>
27167 PR tree-optimization/66251
27168 * tree-vect-stmts.c (vectorizable_conversion): Properly
27169 set STMT_VINFO_VEC_STMT even for the SLP case.
27171 2015-05-22 Marek Polacek <polacek@redhat.com>
27173 * doc/extend.texi: Use @pxref instead of @xref.
27175 2015-05-22 hiraditya <hiraditya@msn.com>
27177 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
27180 2015-05-22 Richard Biener <rguenther@suse.de>
27182 PR tree-optimization/65701
27183 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
27184 Move peeling cost models into one place. Peel for alignment
27185 for single loads only if an aligned load is cheaper than
27188 2015-05-22 Marek Polacek <polacek@redhat.com>
27191 * doc/extend.texi (Enumerator Attributes): New section.
27192 Document syntax of enumerator attributes.
27194 2015-05-22 Richard Biener <rguenther@suse.de>
27196 * tree-vect-loop.c (get_reduction_op): New function.
27197 (vect_model_reduction_cost): Use it, add reduc_index parameter.
27198 Make ready for BB reductions.
27199 (vect_create_epilog_for_reduction): Use get_reduction_op.
27200 (vectorizable_reduction): Init reduc_index to a valid value.
27201 Adjust vect_model_reduction_cost call.
27202 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
27203 operand for reduction defaults. Add SAD_EXPR support.
27204 Assert we have a neutral op for SLP reductions.
27205 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
27206 walking pattern stmt ops only recurse to SSA names.
27208 2015-05-22 Richard Biener <rguenther@suse.de>
27210 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
27211 assert with guard, remove check on detected reduction.
27212 (vect_recog_sad_pattern): Likewise.
27213 (vect_recog_widen_sum_pattern): Likewise.
27215 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27217 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
27218 __always_inline__ attribute.
27219 (vaesdq_u8): Likewise.
27220 (vaesmcq_u8): Likewise.
27221 (vaesimcq_u8): Likewise.
27222 (vsha1cq_u32): Likewise.
27223 (vsha1mq_u32): Likewise.
27224 (vsha1pq_u32): Likewise.
27225 (vsha1h_u32): Likewise.
27226 (vsha1su0q_u32): Likewise.
27227 (vsha1su1q_u32): Likewise.
27228 (vsha256hq_u32): Likewise.
27229 (vsha256h2q_u32): Likewise.
27230 (vsha256su0q_u32): Likewise.
27231 (vsha256su1q_u32): Likewise.
27232 (vmull_p64): Likewise.
27233 (vmull_high_p64): Likewise.
27235 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27237 * final.c (final_scan_insn): Don't check HAVE_peephole with the
27239 * output.h: Likewise.
27240 * genconfig.c (main): Alwways define HAVE_peephole.
27241 * genpeep.c: Don't emit checks of HAVE_peephole.
27243 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27245 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
27246 check HAVE_conditional_move with the preprocessor.
27248 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27250 * genconfig.c (main): Always define HAVE_conditional_move.
27251 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
27252 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
27255 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27257 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
27258 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
27259 and FRAME_POINTER_REGNUM with the preprocessor.
27261 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27263 * defaults.h: Add default for STACK_PUSH_CODE.
27264 * expr.c: Don't redefine STACK_PUSH_CODE.
27265 * recog.c: Likewise.
27267 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27269 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
27270 sched-deps.c: Use if instead of preprocessor checks with
27271 STACK_GROWS_DOWNWARD.
27273 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27275 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
27277 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
27278 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
27279 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
27280 * doc/tm.texi: Regenerate.
27282 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
27285 * config/i386/constraints.md (Bg): New constraint for GOT memory
27287 * config/i386/i386.md (*call_got_x32): New pattern.
27288 (*call_value_got_x32): Likewise.
27289 * config/i386/predicates.md (GOT_memory_operand): New predicate.
27291 2015-05-21 Jakub Jelinek <jakub@redhat.com>
27293 PR tree-optimization/66233
27294 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
27297 2015-05-21 Jeff Law <law@redhat.com>
27299 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
27300 than MULT for shadd sequences.
27302 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
27304 * alias.c (alias_stats): New static var.
27305 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
27306 (dump_alias_stats_in_alias_c): New function.
27307 * alias.h (dump_alias_stats_in_alias_c): Declare.
27308 * tree-ssa-alias.c (dump_alias_stats): Call it.
27310 2015-05-08 Michael Matz <matz@suse.de>
27312 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
27314 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
27315 (STMT_VINFO_STRIDED_P): ... this.
27316 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
27317 (vect_verify_datarefs_alignment): Likewise.
27318 (vect_enhance_data_refs_alignment): Likewise.
27319 (vect_analyze_data_ref_access): Likewise.
27320 (vect_analyze_data_refs): Accept strided stores.
27321 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
27322 (vect_model_load_cost): Adjust for macro rename.
27323 (vectorizable_mask_load_store): Likewise.
27324 (vectorizable_load): Likewise.
27325 (vectorizable_store): Open code strided stores.
27327 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27329 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
27330 Document sqrt_insn.
27332 2015-05-21 Richard Biener <rguenther@suse.de>
27335 * match.pd: Guard pattern optimzing (int)(float)int
27336 conversions to apply only on GIMPLE.
27338 2015-05-21 Jeff Law <law@redhat.com>
27340 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
27341 multiply-accumulate/shift-add insn generation.
27343 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
27346 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
27347 operands[1] are the same.
27349 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
27351 PR middle-end/66221
27352 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
27353 build_distinct_type_copy to copy bounds.
27355 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
27357 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
27358 Change to unsigned int.
27360 2015-05-20 Jeff Law <law@redhat.com>
27362 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
27363 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
27364 (pa_shadd_constant_p): Allow constants for shadd insns rather
27365 than valid scaling constants for memory addresses.
27366 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
27367 * config/pa/predicates.md (mem_shadd_operand): New predicate.
27368 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
27369 (shift-add insns using ASHIFT): New patterns.
27371 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
27373 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
27375 (fix_up_fall_thru_edges): Likewise.
27376 (fix_crossing_conditional_branches): Likewise. Promote jump targets
27377 from to rtx_insn to rtx_code_label where feasible.
27378 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
27379 gen_move_insn (returned type changed to rtx_insn).
27380 * builtins.c (expand_errno_check): Fix arguments of
27381 do_compare_rtx_and_jump (now expects rtx_code_label).
27382 (expand_builtin_acc_on_device): Likewise.
27383 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
27384 invert_jump (now exprects rtx_jump_insn).
27385 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
27386 (construct_init_block): Use rtx_code_label.
27387 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
27388 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
27389 calling redirect_jump.
27390 (patch_jump_insn): Likewise.
27391 (redirect_branch_edge): Likewise.
27392 (force_nonfallthru_and_redirect): Likewise.
27393 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
27395 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
27396 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
27397 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
27398 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
27399 to store the value retured by gen_label_rtx.
27400 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
27402 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
27403 (split_branches): Fix calls of redirect_jump.
27404 * dojump.c (jumpifnot): Promote argument type from rtx to
27406 (jumpifnot_1): Likewise.
27407 (jumpif): Likewise.
27408 (jumpif_1): Likewise.
27409 (do_jump_1): Likewise.
27410 (do_jump): Likewise. Use rtx_code_label when feasible.
27411 (do_jump_by_parts_greater_rtx): Likewise.
27412 (do_jump_by_parts_zero_rtx): Likewise.
27413 (do_jump_by_parts_equality_rtx): Likewise.
27414 (do_compare_rtx_and_jump): Likewise.
27415 * dojump.h: Update function prototypes.
27416 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
27418 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
27420 (emit_label_before): Likewise.
27421 (emit_jump_insn_after_noloc): Likewise.
27422 (emit_jump_insn_after_setloc): Likewise.
27423 (emit_jump_insn_after): Likewise
27424 (emit_jump_insn_before_setloc): Likewise.
27425 (emit_jump_insn_before): Likewise.
27426 (emit_label_before): Promote return type to rtx_code_label.
27427 (emit_label): Likewise.
27428 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
27429 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
27431 (emit_stack_restore): Likewise.
27432 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
27433 (do_cmp_and_jump): Likewise.
27434 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
27435 from rtx to rtx_code_label.
27436 (gen_move_insn_uncast): New function.
27437 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
27438 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
27439 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
27440 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
27441 invert_jump_1 and redirect_jump_1.
27442 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
27443 do_compare_rtx_and_jump.
27444 (expand_addsub_overflow): Likewise.
27445 (expand_neg_overflow): Likewise.
27446 (expand_mul_overflow): Likewise.
27447 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
27448 return value of gen_move_insn.
27449 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
27450 * loop-doloop.c (add_test): Use rtx_code_label.
27451 (doloop_modify): Likewise.
27452 (doloop_optimize): Likewise.
27453 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
27454 * lra-constraints.c (emit_spill_move): Remove cast of value returned
27456 (inherit_reload_reg): Add cast when calling dump_insn_slim.
27457 (split_reg): Likewise.
27458 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
27460 * optabs.c (expand_binop_directly): Remove casts of values returned by
27462 (expand_unop_direct): Likewise.
27463 (expand_abs): Likewise.
27464 (maybe_emit_unop_insn): Likewise.
27465 (maybe_gen_insn): Promote return type to rtx_insn.
27466 * optabs.h: Update prototype of maybe_gen_insn.
27467 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
27469 * recog.c (struct peep2_insn_data): Promote type of insn field to
27471 (peep2_reinit_state): Use NULL instead of NULL_RTX.
27472 (peep2_attempt): Remove casts of insn in peep2_insn_data.
27473 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
27474 * recog.h (struct insn_gen_fn): Promote return types of function
27475 pointers and operator ().from rtx to rtx_insn.
27476 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
27477 (fill_eager_delay_slots): Likewise.
27478 (relax_delay_slots): Likewise.
27479 (make_return_insns): Likewise.
27480 (dbr_schedule): Likewise.
27481 (optimize_skips): Likewise.
27482 (reorg_redirect_jump): Likewise.
27483 (fill_slots_from_thread): Likewise.
27484 * reorg.h: Update prototypes.
27485 * resource.c (find_dead_or_set_registers): Use dyn_cast to
27486 rtx_jump_insn instead of check. Use it's jump_target method.
27487 * rtl.h (rtx_jump_insn::jump_label): Define new method.
27488 (rtx_jump_insn::jump_target): Define new method.
27489 (rtx_jump_insn::set_jump_target): Define new method.
27490 * rtlanal.c (tablejump_p): Promote type of one local variable.
27491 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
27492 (sched_analyze_insn): Likewise.
27493 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
27494 (print_insn): Likewise.
27495 * stmt.c (label_rtx): Promote return type to rtx_insn.
27496 (force_label_rtx): Likewise.
27497 (jump_target_rtx): Define new function.
27498 (expand_label): Use it, get rid of one cast.
27499 (expand_naked_return): Promote rtx to rtx_code_label.
27500 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
27501 (expand_case): Use rtx_code_label instread of rtx where feasible.
27502 (expand_sjlj_dispatch_table): Likewise.
27503 (emit_case_nodes): Likewise.
27504 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
27505 * store-motion.c (insert_store): Make use of new return type of
27506 gen_move_insn and remove a cast.
27507 (replace_store_insn): Likewise.
27509 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
27511 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
27512 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
27514 2015-05-20 Jeff Law <law@redhat.com>
27516 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
27517 dispose of the jump thread path when the jump threading
27518 opportunity is cancelled.
27520 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27522 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
27523 when printing the caret character.
27525 2015-05-20 Marek Polacek <polacek@redhat.com>
27527 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
27529 2015-05-20 Marek Polacek <polacek@redhat.com>
27531 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
27532 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
27533 * gimple-fold.c (canonicalize_bool): Likewise.
27534 (same_bool_result_p): Likewise.
27535 * tree-if-conv.c (parse_predicate): Likewise.
27537 2015-05-20 Marek Polacek <polacek@redhat.com>
27539 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
27540 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
27542 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27544 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
27545 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
27548 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
27550 * config/mips/mips.h (micromips_globals): Declare.
27552 2015-05-20 David Malcolm <dmalcolm@redhat.com>
27554 * timevar.def (TV_INITIALIZE_RTL): New.
27555 * toplev.c (initialize_rtl): Use an auto_timevar to account this
27556 function's time to TV_INITIALIZE_RTL.
27558 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
27560 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
27561 gimple_build_nop calls.
27562 (chkp_find_bounds_for_elem): Likewise.
27563 (chkp_get_zero_bounds): Likewise.
27564 (chkp_get_none_bounds): Likewise.
27565 (chkp_get_bounds_by_definition): Likewise.
27566 (chkp_generate_extern_var_bounds): Likewise.
27567 (chkp_get_bounds_for_decl_addr): Likewise.
27568 (chkp_get_bounds_for_string_cst): Likewise.
27570 2015-05-20 Bin Cheng <bin.cheng@arm.com>
27572 PR tree-optimization/65447
27573 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
27574 (dump_use, dump_uses): Support to dump sub use.
27575 (record_use): New parameters to support sub use. Remove call to
27577 (record_sub_use, record_group_use): New functions.
27578 (compute_max_addr_offset, split_all_small_groups): New functions.
27579 (group_address_uses, rewrite_use_address): New functions.
27580 (strip_offset): New declaration.
27581 (find_interesting_uses_address): Call record_group_use.
27582 (add_candidate): New assertion.
27583 (infinite_cost_p): Move definition forward.
27584 (add_costs): Check INFTY cost and return immediately.
27585 (get_computation_cost_at): Clear setup cost and dependent bitmap
27587 (determine_use_iv_cost_address): Compute cost for sub uses.
27588 (rewrite_use_address_1): Rename from old rewrite_use_address.
27589 (free_loop_data): Free sub uses.
27590 (tree_ssa_iv_optimize_loop): Call group_address_uses.
27592 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
27593 Jim Wilson <jim.wilson@linaro.org>
27595 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
27596 new fields loadv and storev.
27597 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
27598 Initialize loadv and storev.
27599 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
27600 (cortexa53_extra_costs): Likewise.
27601 (cortexa57_extra_costs): Likewise.
27602 (xgene1_extra_costs): Likewise.
27603 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
27606 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
27608 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
27610 (cortexa8_extra_costs): Likewise.
27611 (cortexa5_extra_costs): Likewise.
27612 (cortexa7_extra_costs): Likewise.
27613 (cortexa12_extra_costs): Likewise.
27614 (cortexa15_extra_costs): Likewise.
27615 (v7m_extra_costs): Likewise.
27617 2015-05-20 Jeff Law <law@redhat.com>
27619 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
27620 instead of open-coded version. Also delete the jump thread created
27621 within this function.
27623 2015-05-20 Alan Modra <amodra@gmail.com>
27625 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
27626 stack adjusting insn. Formatting.
27627 (rs6000_emit_prologue): Track stack adjusting insn, and use of
27628 r12. If possible, emit first -fsplit-stack arg pointer insn
27629 before stack adjust. Don't use r12 to save cr if split-stack.
27631 2015-05-20 Alan Modra <amodra@gmail.com>
27633 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
27635 (rs6000_supports_split_stack): New function.
27636 * config/rs6000/rs6000.c (machine_function): Add
27637 split_stack_arg_pointer.
27638 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
27639 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
27640 rather than virtual_incoming_args_rtx.
27641 (rs6000_va_start): Likewise.
27642 (split_stack_arg_pointer_used_p): New function.
27643 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
27644 (morestack_ref): New var.
27645 (gen_add3_const, rs6000_expand_split_stack_prologue,
27646 rs6000_internal_arg_pointer, rs6000_live_on_entry,
27647 rs6000_split_stack_space_check): New functions.
27648 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
27649 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
27650 (UNSPECV_SPLIT_STACK_RETURN): Define.
27651 (split_stack_prologue, load_split_stack_limit,
27652 load_split_stack_limit_di, load_split_stack_limit_si,
27653 split_stack_return, split_stack_space_check): New expands and insns.
27654 * config/rs6000/rs6000-protos.h
27655 (rs6000_expand_split_stack_prologue): Declare.
27656 (rs6000_split_stack_space_check): Declare.
27658 2015-05-20 Alan Modra <amodra@gmail.com>
27660 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
27661 (direct_return): Test vrsave_size rather than vrsave_mask.
27662 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
27663 (rs6000_emit_epilogue): Likewise.
27665 2015-05-20 Alan Modra <amodra@gmail.com>
27667 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
27668 when not saving registers.
27669 (debug_stack_info): Adjust to omit printing unused offsets,
27671 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
27674 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27677 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
27678 value_type to const char *.
27680 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
27682 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
27683 to build a biarch toolchain again.
27685 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
27687 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
27688 or implicit declarations.
27689 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
27691 (get_odr_type): Check type has linkage before adding bases.
27692 (register_odr_type): Check that type has linkage before adding it.
27693 (type_known_to_have_no_deriavations_p): Rename to ..
27694 (type_known_to_have_no_derivations_p): This one.
27695 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
27696 (type_known_to_have_no_derivations_p): This one.
27697 * ipa-polymorphic-call.c
27698 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
27701 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
27703 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
27704 (layout_type): Use RECORD_OR_UNION_TYPE_P.
27706 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27708 * config/s390/s390.c (s390_vector_bool_type_p): New function.
27709 (s390_invalid_binary_op): New function.
27710 (TARGET_INVALID_BINARY_OP): Define macro.
27712 2015-05-19 David Sherwood <david.sherwood@arm.com>
27714 * loop-invariant.c (create_new_invariant): Don't calculate address cost
27715 if mode is not a scalar integer.
27716 (get_inv_cost): Increase computational cost for unused invariants.
27718 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27720 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
27721 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
27722 * config/s390/s390-builtin-types.def: New file.
27723 * config/s390/s390-builtins.def: New file.
27724 * config/s390/s390-builtins.h: New file.
27725 * config/s390/s390-c.c: New file.
27726 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
27727 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
27728 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
27729 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
27731 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
27733 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
27734 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
27735 variable definitions.
27736 (s390_const_operand_ok): New function.
27737 (s390_expand_builtin): Rewrite.
27738 (s390_init_builtins): New function.
27739 (s390_handle_vectorbool_attribute): New function.
27740 (s390_attribute_table): Add s390_vector_bool attribute.
27741 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
27742 (s390_branch_condition_mask): Generate masks for new modes.
27743 (s390_expand_vec_compare_cc): New function.
27744 (s390_mangle_type): Add mangling for vector bool types.
27745 (enum s390_builtin): Remove.
27746 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
27748 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
27749 s390_cpu_cpp_builtins.
27750 (REGISTER_TARGET_PRAGMAS): New macro.
27751 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
27752 (insn_cmp mode attribute): Add new CC modes.
27753 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
27754 (lcbb): New pattern definition.
27755 * config/s390/s390intrin.h: Include vecintrin.h.
27756 * config/s390/t-s390: New file.
27757 * config/s390/vecintrin.h: New file.
27758 * config/s390/vector.md: Include vx-builtins.md.
27759 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
27762 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27764 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
27766 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
27767 (s390_select_ccmode): Likewise.
27768 (s390_canonicalize_comparison): Swap operands if necessary.
27769 (s390_expand_vec_compare_scalar): Expand DFmode compare using
27770 single element vector instructions.
27771 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
27772 (s390_branch_condition_mask): Generate CC masks for the new modes.
27773 * config/s390/s390.md (v0, vf, vd): New mode attributes.
27774 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
27775 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
27776 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
27777 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
27778 (*extend<DSF:mode><BFP:mode>2): New insn definition.
27779 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
27780 (extend<DSF:mode><BFP:mode>2): Turn into expander.
27781 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
27782 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
27783 (sqrt<mode>2): Add vector instruction.
27785 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27787 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
27789 * config/s390/predicates.md (const0_operand, constm1_operand)
27790 (constable_operand): Accept vector operands.
27791 * config/s390/s390-modes.def: Add supported vector modes.
27792 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
27793 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
27794 (s390_bytemask_vector_p, s390_expand_vec_strlen)
27795 (s390_expand_vec_compare, s390_expand_vcond)
27796 (s390_expand_vec_init): Add prototypes.
27797 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
27798 (s390_vector_mode_supported_p): New function.
27799 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
27800 (s390_contiguous_bitmask_vector_p): New function.
27801 (s390_bytemask_vector_p): New function.
27802 (s390_split_ok_p): Vector regs don't work either.
27803 (regclass_map): Add VEC_REGS.
27804 (s390_legitimate_constant_p): Handle vector constants.
27805 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
27806 (legitimate_reload_vector_constant_p): New function.
27807 (s390_preferred_reload_class): Handle CONST_VECTOR.
27808 (s390_reload_symref_address): Likewise.
27809 (s390_secondary_reload): Vector memory instructions only support
27810 short displacements. Rename reload*_nonoffmem* to reload*_la*.
27811 (s390_emit_ccraw_jump): New function.
27812 (s390_expand_vec_strlen): New function.
27813 (s390_expand_vec_compare): New function.
27814 (s390_expand_vcond): New function.
27815 (s390_expand_vec_init): New function.
27816 (s390_dwarf_frame_reg_mode): New function.
27817 (print_operand): Handle addresses with 'O' and 'R' constraints.
27818 (NR_C_MODES, constant_modes): Add vector modes.
27819 (s390_output_pool_entry): Handle vector constants.
27820 (s390_hard_regno_mode_ok): Handle vector registers.
27821 (s390_class_max_nregs): Likewise.
27822 (s390_cannot_change_mode_class): New function.
27823 (s390_invalid_arg_for_unprototyped_fn): New function.
27824 (s390_function_arg_vector): New function.
27825 (s390_function_arg_float): Remove size variable.
27826 (s390_pass_by_reference): Handle vector arguments.
27827 (s390_function_arg_advance): Likewise.
27828 (s390_function_arg): Likewise.
27829 (s390_return_in_memory): Vector values are returned in a VR if
27831 (s390_function_and_libcall_value): Handle vector arguments.
27832 (s390_gimplify_va_arg): Likewise.
27833 (s390_call_saved_register_used): Consider the arguments named.
27834 (s390_conditional_register_usage): Disable v16-v31 for non-vec
27836 (s390_preferred_simd_mode): New function.
27837 (s390_support_vector_misalignment): New function.
27838 (s390_vector_alignment): New function.
27839 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
27840 (TARGET_VECTOR_MODE_SUPPORTED_P)
27841 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
27842 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
27843 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
27844 (TARGET_VECTOR_ALIGNMENT): Define target macro.
27845 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
27846 (FIRST_PSEUDO_REGISTER): Increase value.
27847 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
27848 (VECTOR_REG_P): Define macros.
27849 (FIXED_REGISTERS, CALL_USED_REGISTERS)
27850 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
27851 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
27852 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
27853 Add vector registers.
27854 (CANNOT_CHANGE_MODE_CLASS): Call C function.
27855 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
27856 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
27858 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
27859 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
27860 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
27861 (VR*_REGNUM): New constants.
27862 (ALL): New mode iterator.
27863 (INTALL): Remove mode iterator.
27865 (movti): Implement TImode moves for VRs.
27866 Disable TImode splitter for VR targets.
27867 Implement splitting TImode GPR<->VR moves.
27868 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
27869 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
27870 reload<mode>_la_in, reload<mode>_la_out.
27871 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
27872 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
27873 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
27874 (mov<mode> SF SD): Prefer lder, lde for loading.
27875 Add lrl and strl instructions.
27876 Add vector instructions.
27877 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
27878 Call s390_expand_vec_strlen on z13.
27879 (*cc_to_int): Change predicate to nonimmediate_operand.
27880 (addti3): Rename to *addti3. New expander.
27881 (subti3): Rename to *subti3. New expander.
27882 * config/s390/vector.md: New file.
27884 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27886 * common/config/s390/s390-common.c (processor_flags_table): Add
27888 * config.gcc: Add z13.
27889 * config/s390/s390-opts.h (enum processor_type): Add
27890 PROCESSOR_2964_Z13.
27891 * config/s390/s390.c (s390_adjust_priority): Check for
27892 PROCESSOR_2964_Z13.
27893 (s390_reorg): Likewise.
27894 (s390_sched_reorder): Likewise.
27895 (s390_sched_variable_issue): Likewise.
27896 (s390_loop_unroll_adjust): Likewise.
27897 (s390_option_override): Likewise. Default to -mvx when available.
27898 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
27899 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
27900 (TARGET_VX_ABI): Define macros.
27902 (TARGET_DEFAULT): Add MASK_OPT_VX.
27903 * config/s390/s390.md ("cpu" attribute): Add z13.
27904 ("cpu_facility" attribute): Add vec.
27905 * config/s390/s390.opt (processor_type): Add z13.
27906 (mvx): New options.
27907 * doc/invoke.texi: Add z13 option for -march.
27909 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27911 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
27912 mode check to make sure that only scalar integer values are
27915 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
27917 * tree.c (verify_type_variant): Fix #undef.
27918 (gimple_canonical_types_compatible_p): Move here from lto.c
27919 (verify_type): Verify TYPE_CANONICAL compatibility.
27920 * tree.h (gimple_canonical_types_compatible_p): Declare.
27922 2015-05-19 Jakub Jelinek <jakub@redhat.com>
27924 PR middle-end/66199
27925 * tree.h (OMP_TEAMS_COMBINED): Define.
27926 * gimplify.c (enum gimplify_omp_var_data): Add
27927 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
27928 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
27929 (omp_notice_variable): Accept both ORT_TEAMS
27930 and ORT_COMBINED_TEAMS. Don't recurse if
27931 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
27932 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
27934 (omp_no_lastprivate): New function.
27935 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
27936 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
27937 notice_outer and set appropriate bits, otherwise make
27938 sure default(none) combined constructs won't complain.
27939 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
27940 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
27941 omp_no_lastprivate either remove the clause or turn it
27942 into OMP_CLAUSE_PRIVATE.
27943 (gimplify_omp_for): Fix up handling of implicit
27944 lastprivate or linear iterators.
27945 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
27946 ORT_COMBINED_TEAMS.
27947 * omp-low.c (lower_omp_for_lastprivate): For combined
27948 for simd use fd.loop.n2 from the for rather than simd.
27950 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
27952 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
27953 instead of gen_rtx_raw_REG.
27954 (cris_expand_epilogue): Likewise.
27955 * config/microblaze/microblaze.c (microblaze_classify_address):
27957 * config/sparc/sparc.md: Likewise.
27959 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
27961 * config/alpha/alpha.c (alpha_legitimize_reload_address)
27962 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
27963 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
27964 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
27965 Use CASE_CONST_SCALAR_INT.
27966 (print_operand) <case 'M'>: Use mode_width_operand to check the
27967 value of the constant.
27968 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
27969 * config/alpha/predicates.md (input_operand): Use general_operand
27970 instead of match_code as operand check.
27971 (symbolic_operand): Use match_code with subexpression digits.
27972 * config/alpha/constraints.md (Q): Ditto.
27974 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27976 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
27978 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27980 * config/s390/s390.c (s390_secondary_reload): Fix check for
27981 load/store relative.
27983 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27985 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
27986 alternative_mask to uint64_t.
27988 2015-05-19 Jakub Jelinek <jakub@redhat.com>
27990 PR tree-optimization/66187
27991 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
27992 Pass TYPE_SIGN to tree_int_cst_min_precision. If
27993 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
27995 2015-05-19 David Malcolm <dmalcolm@redhat.com>
27997 * diagnostic.c (diagnostic_report_current_module): Strengthen
27998 local "new_map" from const line_map * to
27999 const line_map_ordinary *.
28000 * genmatch.c (error_cb): Likewise for local "map".
28001 (output_line_directive): Likewise for local "map".
28002 * input.c (expand_location_1): Likewise for local "map".
28003 Pass NULL rather than &map to
28004 linemap_unwind_to_first_non_reserved_loc, since the value is never
28005 read from there, and the value written back not read from here.
28006 (is_location_from_builtin_token): Strengthen local "map" from
28007 const line_map * to const line_map_ordinary *.
28008 (dump_location_info): Strengthen locals "map" from
28009 line_map *, one to const line_map_ordinary *, the other
28010 to const line_map_macro *.
28011 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
28012 const line_map * to const line_map_macro *.
28013 (maybe_unwind_expanded_macro_loc): Add a call to
28014 linemap_check_macro when writing to the "map" field of the
28016 Introduce local const line_map_ordinary * "ord_map", using it in
28017 place of "map" in the part of the function where we know we have
28018 an ordinary map. Strengthen local "m" from const line_map * to
28019 const line_map_ordinary *.
28021 2015-05-19 Nick Clifton <nickc@redhat.com>
28024 * config/msp430/msp430.md (zero_extendhisi2): Add support for
28025 separate source and destination registers.
28027 2015-05-19 Richard Biener <rguenther@suse.de>
28029 PR tree-optimization/66165
28030 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
28031 for no load permutation.
28033 PR tree-optimization/66185
28034 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
28035 when building the SLP node from scalars.
28037 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
28038 Tristan Gingold <gingold@adacore.com>
28040 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
28041 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
28042 (expand_stack_restore): Call record_new_stack_level.
28043 (expand_stack_save): Do not call do_pending_stack_adjust.
28044 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
28045 * calls.c (expand_call): Call record_new_stack_level for alloca.
28046 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
28047 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
28048 (update_sjlj_context): New global function.
28049 * except.h (update_sjlj_context): Declare.
28050 * explow.c (record_new_stack_level): New global function.
28051 (allocate_dynamic_stack_space): Call record_new_stack_level.
28052 * explow.h (record_new_stack_level): Declare.
28053 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
28054 * cfgrtl.c (duplicate_insn_chain): Likewise.
28056 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28058 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
28059 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
28060 STACK_GROWS_DOWNWARD as normal if.
28061 (expand_call): Likewise.
28063 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
28066 * config/sh/sh.md (*round_int_even): New insn_and_split and
28067 accompanying new unnamed split.
28069 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28071 * bitmap.c (bitmap_set_range): Handle count==1 specially.
28072 (bitmap_clear_range): Likewise.
28073 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
28074 bitmap_set_range unconditionally.
28075 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
28076 * df-scan.c (df_mark_reg): Likewise.
28077 * haifa-sched.c (setup_ref_regs): Likewise.
28078 * sched-rgn.c (update_live_1): Likewise.
28080 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28082 * regs.h (END_HARD_REGNO): Delete.
28083 (END_REGNO): Move to...
28085 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
28086 * caller-save.c (mark_set_regs): Likewise.
28087 * combine.c (move_deaths, distribute_notes): Likewise.
28088 * cse.c (invalidate, invalidate_for_call): Likewise.
28089 * df-scan.c (df_ref_record): Likewise.
28090 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
28091 (record_last_reg_set_info): Likewise.
28092 * reg-stack.c (convert_regs_exit): Likewise.
28093 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
28094 * resource.c (update_live_status): Likewise.
28095 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
28097 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28099 * rtl.h (reg_info): Add an nregs field.
28100 (REG_NREGS): Use it.
28101 (SET_REGNO_RAW): Delete.
28102 (set_regno_raw): New function.
28103 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
28104 (END_REGNO): Redefine in terms of REG_NREGS.
28105 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
28107 * emit-rtl.c (set_mode_and_regno): Likewise.
28108 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
28109 instead of SET_REGNO_RAW.
28111 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28113 * rtl.h (PUT_MODE_RAW): New macro.
28114 (PUT_REG_NOTE_KIND): Use it.
28115 (set_mode_and_regno): Declare.
28116 (gen_raw_REG): Change regno to "unsigned int".
28117 (gen_rtx_REG): Change "unsigned" to "unsigned int".
28118 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
28119 use set_mode_and_regno to change the mode of registers.
28120 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
28121 * emit-rtl.c (set_mode_and_regno): New function.
28122 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
28123 * caller-save.c (reg_save_code): Use set_mode_and_regno.
28124 * expr.c (init_expr_target): Likewise.
28125 * ira.c (setup_prohibited_mode_move_regs): Likewise.
28126 * postreload.c (reload_cse_simplify_operands): Likewise.
28128 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28130 * caller-save.c (init_caller_save): Use word_mode and
28131 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
28132 * expr.c (init_expr_target): Likewise.
28133 * ira.c (setup_prohibited_mode_move_regs): Likewise.
28134 * postreload.c (reload_cse_regs_1): Likewise.
28136 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28138 * rtl.def (REG): Change format to "r".
28139 * rtl.h (rtunion): Remove rt_reg.
28140 (reg_info): New structure.
28141 (rtx_def): Add reg field to main union.
28142 (X0REGATTR): Delete.
28143 (REG_CHECK): New macro.
28144 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
28145 * rtl.c (rtx_format): Document "r".
28146 (rtx_code_size): Handle REG specially.
28147 * gengenrtl.c (special_format): Return true for formats
28149 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
28150 Deal with REG_ATTRS after the field loop.
28151 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
28152 * expmed.c (init_expmed): Call gen_raw_REG instead of
28154 * expr.c (init_expr_target): Likewise.
28155 * regcprop.c (maybe_mode_change): Likewise.
28156 * varasm.c (make_decl_rtl): Likewise.
28157 * final.c (leaf_renumber_regs_insn): Return early after
28159 * genemit.c (gen_exp): Handle 'r' fields.
28160 * genpeep.c (match_rtx): Likewise.
28161 * gensupport.c (subst_pattern_match): Likewise.
28162 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
28163 (alter_constraints, subst_dup): Likewise.
28164 * read-rtl.c (read_rtx_code): Likewise.
28165 * print-rtl.c (print_rtx): Likewise.
28166 * genrecog.c (find_operand, find_matching_operand): Likewise.
28167 (validate_pattern, match_pattern_2): Likewise.
28168 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
28169 (rtx_test::regno_field): New function.
28170 (operator ==, safe_to_hoist_p, transition_parameter_type)
28171 (parameter_type_string, print_parameter_value)
28172 (print_nonbool_test, print_test): Handle new enum values.
28173 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
28174 * lra-constraints.c (operands_match_p): Likewise.
28176 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28178 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
28179 Change type of new_regno to unsigned int.
28180 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
28181 new_regno to unsigned int.
28182 (df_ref_change_reg_with_loc): Remove old_regno parameter.
28183 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
28184 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
28185 (SET_REGNO_RAW): Add space after ",".
28187 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28189 * rtl.h (REG_NREGS): New macro
28190 * alias.c (record_set): Use it.
28191 * cfgcleanup.c (mark_effect): Likewise.
28192 * combine.c (likely_spilled_retval_1): Likewise.
28193 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
28194 (move_deaths, distribute_notes): Likewise.
28195 * cselib.c (cselib_record_set): Likewise.
28196 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
28197 * df-scan.c (df_mark_reg): Likewise.
28198 * dse.c (look_for_hardregs): Likewise.
28199 * dwarf2out.c (reg_loc_descriptor): Likewise.
28200 (multiple_reg_loc_descriptor): Likewise.
28201 * expr.c (write_complex_part, read_complex_part): Likewise.
28202 (emit_move_complex): Likewise.
28203 * haifa-sched.c (setup_ref_regs): Likewise.
28204 * ira-lives.c (mark_hard_reg_live): Likewise.
28205 * lra.c (lra_set_insn_recog_data): Likewise.
28206 * mode-switching.c (create_pre_exit): Likewise.
28207 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
28208 (reload_combine_recognize_pattern): Likewise.
28209 (reload_combine_note_use, move2add_record_mode): Likewise.
28210 (reload_cse_move2add): Likewise.
28211 * reg-stack.c (subst_stack_regs_pat): Likewise.
28212 * regcprop.c (kill_value, copy_value): Likewise.
28213 (copyprop_hardreg_forward_1): Likewise.
28214 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
28215 (build_def_use): Likewise.
28216 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
28217 (deps_analyze_insn): Likewise.
28218 * sched-rgn.c (check_live_1, update_live_1): Likewise.
28219 * sel-sched.c (count_occurrences_equiv): Likewise.
28220 * valtrack.c (dead_debug_insert_temp): Likewise.
28222 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28224 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
28225 * dse.c (note_add_store): Likewise.
28226 * ira-lives.c (mark_hard_reg_dead): Likewise.
28227 * loop-invariant.c (mark_reg_store): Likewise.
28228 (mark_reg_death): Likewise.
28229 * postreload.c (reload_combine): Likewise.
28230 (reload_combine_note_store): Likewise.
28231 (reload_combine_note_use): Likewise.
28232 * recog.c (peep2_reg_dead_p): Likewise.
28234 2015-05-19 Alan Modra <amodra@gmail.com>
28236 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
28237 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
28238 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
28240 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
28241 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
28242 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
28243 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
28245 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
28247 * config/mips/mips.md (JOIN_MODE): New mode iterator.
28248 (join2_load_Store<JOIN_MODE:mode>): New pattern.
28249 (join2_loadhi): Likewise.
28250 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
28251 load-load and store-stores.
28252 * config/mips/mips.opt (mload-store-pairs): New option.
28253 (TARGET_LOAD_STORE_PAIRS): New macro.
28254 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
28255 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
28256 * config/mips/mips.c (mips_load_store_bonding_p): New function.
28258 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
28260 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
28262 * dojump.c (do_compare_rtx_and_jump): Likewise.
28263 * expmed.c (emit_store_flag_1): Likewise.
28264 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
28265 * final.c (sprint_ul): Use std::reverse for reversing a string.
28266 * fold-const.c (extract_muldiv_1): Use std::swap.
28267 * genmodes.c (emit_mode_int_n): Likewise.
28268 * ifcvt.c (dead_or_predicable): Likewise.
28269 * ira-build.c (ira_merge_live_ranges): Likewise.
28270 (swap_allocno_copy_ends_if_necessary): Likewise.
28271 * ira.c (ira_setup_alts): Likewise.
28272 * loop-iv.c (iv_analyze_expr): Likewise.
28273 (implies_p): Likewise.
28274 (canon_condition): Likewise.
28275 * lra-constraints.c (swap_operands): Likewise.
28276 * lra-lives.c (lra_merge_live_ranges): Likewise.
28277 * omega.c (swap): Remove.
28279 (omega_unprotect_1): Use std::swap.
28280 (omega_solve_geq): Likewise.
28281 * optabs.c (expand_binop_directly): Likewise.
28282 (expand_binop): Likewise.
28283 (emit_conditional_move): Likewise.
28284 (emit_conditional_add): Likewise.
28285 * postreload.c (reload_cse_simplify_operands): Likewise.
28286 * reg-stack.c (emit_swap_insn): Likewise.
28287 (swap_to_top): Likewise.
28288 (compare_for_stack_reg): Likewise.
28289 (subst_asm_stack_regs): Likewise.
28290 * reload.c (find_reloads): Likewise.
28291 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
28292 * sel-sched.c (invoke_reorder_hooks): Likewise.
28293 (create_block_for_bookkeeping): Likewise.
28294 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
28295 (lambda_matrix_right_hermite): Use std::swap.
28296 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
28297 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
28298 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
28299 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
28300 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
28301 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
28302 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
28303 * tree-vrp.c (compare_ranges): Likewise.
28304 * var-tracking.c (add_with_sets): Likewise.
28305 (vt_find_locations): Likewise.
28307 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
28309 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
28311 (FBSD_ENDFILE_SPEC): Likewise.
28312 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
28313 config/freebsd-spec.h.
28314 (ENDFILE_SPEC): Likewise.
28316 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
28317 Richard Henderson <rth@redhat.com>
28320 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
28321 Check for a memory location that is not a reference (using an AND)
28322 to an unaligned location here.
28323 * config/alpha/predicates.md (normal_memory_operand): Remove.
28325 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
28327 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
28328 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
28330 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
28332 * config/mips/mips.c (micromips_globals): New variable.
28333 (mips_set_compression_mode): Save and reinitialize target-dependent
28334 state for microMIPS.
28336 2015-05-18 Martin Liska <mliska@suse.cz>
28338 * dbgcnt.def: Add new counter.
28339 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
28341 2015-05-18 Martin Liska <mliska@suse.cz>
28343 * dbgcnt.def: Sort counters.
28344 * opts.c (common_handle_option): Do not compile if
28345 -fdbg-cnt-list is enabled.
28347 2015-05-18 Tom de Vries <tom@codesourcery.com>
28349 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
28350 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
28351 address operator to va_list operand.
28352 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
28354 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
28356 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
28357 * config/s390/s390.c (s390_gimplify_va_arg): Same.
28358 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
28360 2015-05-18 Tom de Vries <tom@codesourcery.com>
28362 * tree-ssa-tail-merge.c: Fix whitespace.
28364 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
28366 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
28367 cortex-a17, and cortex-a17.cortex-a7.
28369 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
28372 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
28374 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
28377 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
28378 QImode inner modes for TARGET_AVX512BW. Force mask operand
28379 to a register for AVX512F modes.
28381 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
28383 * toplev.c (emit_debug_global_declarations): Do not output debug info
28384 when doing slim LTO objects.
28386 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
28388 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
28389 odr_types_equivalent_p): Declare.
28390 (odr_type_p): Use gcc_checking_assert.
28391 (type_in_anonymous_namespace_p) Declare.
28392 (type_with_linkage_p): Declare.
28393 * common.opt (Wlto-type-mismatch): New warning.
28394 * ipa-devirt.c (compound_type_base): New function.
28395 (odr_or_derived_type_p): New function.
28396 (odr_types_equivalent_p): New function.
28397 (add_type_duplicate): Simplify.
28398 (type_with_linkage_p): Add hack to prevent false positives on C types
28399 (type_in_anonymous_namespace_p): Likewise.
28400 * tree.c (need_assembler_name_p): Use type_with_linkage.
28401 * tree.h (type_in_anonymous_namespace_p): Remove.
28402 * doc/invoke.texi (-Wlto-type-mismatch): Document
28404 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
28406 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
28407 (verify_type): Verify STRING_FLAG.
28409 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
28412 * tree-pretty-print.c (percent_K_format): Replace locus pointer
28413 with accessor function.
28414 * tree-diagnostic.c (diagnostic_report_current_function): Use
28415 diagnostic_location function.
28416 (maybe_unwind_expanded_macro_loc): Likewise.
28417 (virt_loc_aware_diagnostic_finalizer): Likewise.
28418 (default_tree_printer): Replace locus pointer with accessor function.
28419 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
28420 (diagnostic_set_info_translated): Initialize second location.
28421 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
28422 (diagnostic_show_locus): Handle two locations. Call
28423 diagnostic_print_caret_line.
28424 (diagnostic_print_caret_line): New.
28425 (default_diagnostic_starter): Use diagnostic_location function.
28426 (diagnostic_report_diagnostic): Use diagnostic_location function.
28427 (verbatim): Do not set text.locus.
28428 * diagnostic.h (struct diagnostic_info): Remove location field.
28429 (struct diagnostic_context): Make caret_chars an array of two.
28430 (diagnostic_location): New inline.
28431 (diagnostic_expand_location): Handle two locations.
28432 (diagnostic_same_line): New inline.
28433 (diagnostic_print_caret_line): Declare.
28434 (CARET_LINE_MARGIN): New constant.
28435 * pretty-print.c (pp_printf): Do not set text.locus.
28436 (pp_verbatim): Do not set text.locus.
28437 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
28438 (struct text_info): Replace locus pointer with locations
28439 array. Add accessor functions.
28441 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
28442 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28445 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
28446 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
28447 large constants in register instead of splitting them.
28449 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
28452 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
28453 replacements in memory addresses.
28454 (get_unaligned_address): Ditto.
28456 2015-05-16 James Bowman <james.bowman@ftdichip.com>
28458 * config/ft32/*: New files for FT32 port.
28459 * doc/install.texi: Add FT32 information.
28460 * doc/invoke.texi: Add FT32 information.
28461 * doc/md.texi: Add FT32 information.
28462 * doc/contrib.texi: Self added.
28464 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
28466 PR tree-optimization/64454
28467 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
28468 (-1 - A -> ~A): Remove unnecessary condition.
28470 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
28472 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
28473 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
28474 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
28476 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
28478 * ipa-chkp.h (chkp_wrap_function): New.
28479 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
28480 (chkp_wrap_function_name): New.
28481 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
28482 to get wrapper name.
28483 * lto-cgraph.c: Include ipa-chkp.h.
28484 (input_cgraph_1): Avoid alias chain for wrappers.
28486 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
28488 PR middle-end/66134
28489 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
28490 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
28492 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28494 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
28495 (AARCH64_FL_SLOWMUL): Delete.
28496 (AARCH64_FL_CRC): Redefine to 1<<3.
28497 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
28499 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28501 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
28504 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
28506 * config/alpha/alpha.md (extendqidi2): Use general_operand
28507 instead of some_operand for operand[1] predicate.
28508 (extendhidi2): Ditto.
28509 (cbranchdi4): Use general_operand instead of some_operand
28510 for operand[1] and operands[2] predicates.
28511 (cstoredi4): Ditto.
28512 * config/alpha/predicates.md (some_operand): Remove unused predicate.
28513 (some_ni_operand): Ditto.
28515 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
28517 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
28518 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
28519 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
28520 low part of the constant using alpha_emit_set_const_1.
28521 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
28523 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
28525 * varasm.c (output_constant_pool_1): Pass down alignment from
28526 constant pool entry's descriptor to output_constant_pool_2.
28527 (output_object_block): Add comment prior to call to
28528 output_constant_pool_1.
28530 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
28532 PR rtl-optimization/65862
28533 * target.def (ira_change_pseudo_allocno_class): New hook.
28534 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
28536 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
28537 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
28539 * ira-costs.c (find_costs_and_classes): Call the hook and change
28540 classes when it is necessary.
28541 * doc/tm.texi: Update.
28543 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
28545 * config/i386/i386.md (sibcall_memory): Check that register with
28546 callee address is not also used as one of the arguments, instead
28547 of checking that it is not live after the sibcall.
28548 (sibcall_pop_memory): Ditto.
28549 (sibcall_value_memory): Ditto.
28550 (sibcall_value_pop_memory): Ditto.
28552 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
28554 * generic-match-head.c (types_match): Handle non-types.
28555 * gimple-match-head.c (types_match): Likewise.
28556 * match.pd: Remove unnecessary TREE_TYPE for types_match.
28558 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
28560 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
28561 (csneg3<mode>_insn): Enable expansion of pattern.
28563 2015-05-14 Nick Clifton <nickc@redhat.com>
28565 * config/rl78/rl78.c (rl78_select_section): Select the correct
28566 default section based upon the category of the decl.
28568 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
28570 PR rtl-optimization/30967
28571 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
28572 destination mode for the cost of scc patterns.
28574 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
28576 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
28577 using SWIM248 mode iterator.
28578 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
28579 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
28580 for operand[2] constraint.
28581 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
28583 2015-05-13 Jakub Jelinek <jakub@redhat.com>
28585 PR middle-end/66133
28586 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
28587 make sure it is never noreturn, even when the task body does not
28589 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
28590 right before GIMPLE_OMP_RETURN.
28591 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
28592 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
28593 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
28595 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28597 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
28598 * tree-ssa-math-opts.c: Include params.h
28599 (pow_synth_sqrt_info): New struct.
28600 (representable_as_half_series_p): New function.
28601 (get_fn_chain): Likewise.
28602 (print_nested_fn): Likewise.
28603 (dump_fractional_sqrt_sequence): Likewise.
28604 (dump_integer_part): Likewise.
28605 (expand_pow_as_sqrts): Likewise.
28606 (gimple_expand_builtin_pow): Use above to attempt to expand
28607 pow as series of square roots. Removed now unused variables.
28609 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
28611 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
28612 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
28613 Remove *p0 and *p1 arguments. Rewrite function.
28614 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
28615 (alpha_split_const_mov): Update calls to alpha_extract_integer and
28616 alpha_emit_set_long_const.
28617 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
28618 (alpha_output_mi_thunk_osf): Ditto.
28619 * config/alpha/alpha.md (movti): Do not check operands[1]
28622 2015-05-13 Richard Biener <rguenther@suse.de>
28624 PR tree-optimization/66129
28625 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
28627 (vect_schedule_slp_instance): Fix typo.
28629 2015-05-13 David Malcolm <dmalcolm@redhat.com>
28631 * common.opt (fdump-internal-locations): New option.
28632 * input.c: Include diagnostic-core.h.
28633 (get_end_location): New function.
28634 (write_digit): New function.
28635 (write_digit_row): New function.
28636 (dump_location_range): New function.
28637 (dump_labelled_location_range): New function.
28638 (dump_location_info): New function.
28639 * input.h (dump_location_info): New prototype.
28640 * toplev.c (compile_file): Handle flag_dump_locations.
28642 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
28644 * gimple-expr.h (is_gimple_constant): Reorder.
28645 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
28647 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
28649 * combine.c (simplify_set): When generating a CC set, if the
28650 source already is in the correct mode, do not wrap it in a
28651 compare. Simplify the rest of that code.
28653 2015-05-13 Richard Biener <rguenther@suse.de>
28655 PR tree-optimization/66123
28656 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
28659 2015-05-13 Richard Biener <rguenther@suse.de>
28661 PR middle-end/66110
28662 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
28664 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
28666 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
28668 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
28669 * aclocal.m4: Regenerated with automake-1.11.6.
28671 2015-05-13 Tom de Vries <tom@codesourcery.com>
28673 PR tree-optimization/66010
28674 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
28675 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
28676 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
28677 and rval based on do_deref.
28679 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
28682 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
28683 link time constants into adress expressions and therefore set
28686 2015-05-13 Jakub Jelinek <jakub@redhat.com>
28689 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
28690 Use SWI248 iterator instead of SWI.
28691 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
28692 Use eq_attr "alternative" "0" instead of match_test in
28693 length_immediate attribute computation.
28694 (*mulvhi4, *mulvhi4_1): New define_insns.
28697 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
28698 SIGNED to get precision of non-negative value.
28700 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
28703 * function.c (diddle_return_value_1): Process bounds first.
28704 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
28707 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
28709 PR rtl-optimization/64616
28710 * loop-invariant.c (can_move_invariant_reg): New.
28711 (move_invariant_reg): Call above new function to decide whether
28712 instruction can just be moved, skipping creation of temporary
28715 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
28717 PR target/pr66047.c
28718 * i386.c (ix86_function_sseregparm): Only return -1 if local function
28719 with implied regparm is called from -mno-sse function.
28720 (init_cumulative_args): Output error if ix86_function_sseregparm
28721 return -1 and SSE register would be needed.
28722 (function_arg_advance_32): Likewise.
28723 (function_arg_32): Likewise.
28724 * i386.h (ix86_args): Add decl field.
28726 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
28729 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
28730 inlines across optimization boundary.
28732 2015-05-12 Jason Merrill <jason@redhat.com>
28734 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
28735 string literal and macro name.
28737 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
28739 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
28740 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
28741 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
28743 2015-05-12 David Malcolm <dmalcolm@redhat.com>
28745 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
28746 (-Wmisleading-indentation): New option.
28747 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
28749 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
28751 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
28752 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
28753 (alpha_extract_integer): Ditto.
28754 (alpha_legitimate_constant_p): Ditto.
28755 (alpha_split_tmode_pair): Ditto.
28756 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
28757 (alpha_expand_mov): Ditto.
28758 (print_operand): Remove handling of 'H' modifier.
28759 <case 'm'>: Remove CONST_DOUBLE handling.
28760 (summarize_insn): Handle CONST_WIDE_INT.
28761 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
28763 (movti): Handle CONST_WIDE_INT.
28764 * config/alpha/constraints.md ('H'): Remove constraint definition.
28765 ('G'): Do not match MODE_FLOAT class.
28766 * config/alpha/predicates.md (const0_operand): Also match
28768 (non_add_const_operand): Ditto.
28769 (non_zero_const_operand): Ditto.
28770 (some_operand): Ditto.
28771 (input_operand): Ditto. Handle CONST_WIDE_INT.
28772 (and_operand): Do not match const_double.
28773 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
28775 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
28778 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
28779 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
28780 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
28781 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
28782 is_mm_seq_cst, is_mm_sync): New accessor functions.
28783 * builtins.c (expand_builtin_sync_operation,
28784 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
28785 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
28786 (get_memmodel, expand_builtin_atomic_compare_exchange,
28787 expand_builtin_atomic_load, expand_builtin_atomic_store,
28788 expand_builtin_atomic_clear): Use new accessor routines.
28789 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
28790 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
28791 (maybe_emit_sync_lock_test_and_set): Use new accessors and
28792 MEMMODEL_SYNC_ACQUIRE.
28793 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
28794 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
28795 expand_atomic_store): Use new accessors.
28796 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
28797 * tsan.c (instrument_builtin_call): Update check for memory model beyond
28798 final enum to use MEMMODEL_LAST.
28799 * c-family/c-common.c: Use new accessor for memmodel_base.
28800 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
28802 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
28803 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
28804 mem_thread_fence, *dmb): Likewise.
28805 * config/alpha/alpha.c (alpha_split_compare_and_swap,
28806 alpha_split_compare_and_swap_12): Likewise.
28807 * config/arm/arm.c (arm_expand_compare_and_swap,
28808 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
28809 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
28810 atomic_loaddi): Likewise.
28811 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
28813 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
28814 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
28816 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
28817 atomic_store<mode>, atomic_compare_and_swap<mode>,
28818 atomic_exchange<mode>): Use new accessors.
28819 * config/mips/mips.c (mips_process_sync_loop): Likewise.
28820 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
28821 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
28822 rs6000_post_atomic_barrier): Add new cases.
28823 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
28824 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
28825 (atomic_load<mode>): Add new cases and use new accessors.
28826 (store_quadpti): Add new cases.
28827 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
28829 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
28830 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
28833 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
28835 * ipa-devirt.c (type_with_linkage_p): New function.
28836 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
28838 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
28839 (can_be_name_hashed_p): Simplify.
28840 (hash_odr_name): Check that type has linkage before checking if it is
28842 (types_same_for_odr): Likewise.
28843 (odr_name_hasher::equal): Likewise.
28844 (odr_subtypes_equivalent_p): Likewise.
28845 (warn_types_mismatch): Likewise.
28846 (get_odr_type): Likewise.
28847 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
28848 * ipa-utils.h (odr_type_p): Move offline.
28849 * tree.c (need_assembler_name_p): Fix handling of types
28851 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
28853 2015-05-12 David Malcolm <dmalcolm@redhat.com>
28855 * timevar.c (timevar_enable): Delete in favor of...
28856 (g_timer): New global.
28857 (struct timevar_def): Move to timevar.h inside class timer.
28858 (struct timevar_stack_def): Likewise.
28859 (timevars): Delete global in favor of field "m_timevars" within
28860 class timer in timevar.h
28861 (stack): Likewise, in favor of field "m_stack".
28862 (unused_stack_instances): Likewise, in favor of field
28863 "m_unused_stack_instances".
28864 (start_time): Likewise, in favor of field "m_start_time".
28865 (get_time): Eliminate check for timevar_enable.
28866 (timer::timer): New function, built from part of timevar_init.
28867 (timevar_init): Rewrite idempotency test from using
28868 "timevar_enable" bool to using dynamic allocation of "g_timer".
28869 Move rest of implementation into timer's constructor.
28870 (timevar_push_1): Rename to...
28871 (timer::push): ...this, adding "m_" prefixes to variables that
28872 are now fields of timer.
28873 (timevar_pop_1): Likewise, rename to...
28874 (timer::pop): ...this, and add "m_" prefixes.
28875 (timevar_start): Replace test for "timevar_enable" with one for
28876 "g_timer", and move bulk of implementation to...
28877 (timer::start): ...here, adding "m_" prefixes.
28878 (timevar_stop): Likewise, from here...
28879 (timer::stop): ...to here.
28880 (timevar_cond_start): Likewise, from here...
28881 (timer::cond_start): ...to here.
28882 (timevar_cond_stop): Likewise, from here...
28883 (timer::cond_stop): ...to here.
28884 (validate_phases): Rename to...
28885 (timer::validate_phases): ...this, and add "m_" prefixes. Make
28886 locals "total" and "tv" const.
28887 (timevar_print): Rename to...
28888 (timer::print): ...this, and add "m_" prefixes. Make locals
28889 "total" and "tv" const. Eliminate test for timevar_enable.
28890 * timevar.h (timevar_enable): Eliminate.
28891 (g_timer): New declaration.
28892 (timevar_push_1): Eliminate.
28893 (timevar_pop_1): Eliminate.
28894 (timevar_print): Eliminate.
28895 (class timer): New class.
28896 (timevar_push): Rewrite to use g_timer.
28897 (timevar_pop): Likewise.
28898 * toplev.c (toplev::~toplev): Likewise.
28900 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
28902 * arm-protos.h (arm_sched_autopref): Delete.
28903 (tune_params): Re-organize, use enums for flag values.
28904 (FUSE_OPS): New macro.
28905 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
28906 (ARM_PREFETCH_BENEFICIAL): Likewise.
28907 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
28908 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
28909 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
28910 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
28911 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
28912 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
28913 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
28914 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
28916 (arm_option_override, thumb2_reorg, arm_print_tune_info)
28917 (aarch_macro_fusion_pair_p): Update uses of current_tune.
28918 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
28920 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
28922 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
28925 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
28926 Sandra Loosemore <sandra@codesourcery.com>
28928 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
28930 (REG_CLASS_NAMES): Add "IJMP_REGS".
28931 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
28932 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
28933 use new "c" register constraint.
28934 * config/nios2/constraint.md (c): New register constraint
28935 corresponding to IJMP_REGS.
28937 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28939 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
28940 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
28941 define_splits): Delete, revamp, transmogrify into ...
28942 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
28943 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
28944 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
28947 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28949 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
28950 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
28952 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28954 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
28955 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
28956 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
28957 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
28958 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
28959 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
28960 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
28961 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
28962 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
28963 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
28964 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
28965 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
28966 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
28967 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
28968 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
28969 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
28970 and 30 corresponding splitters): Delete.
28972 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28974 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
28977 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28979 * combine.c (recog_for_combine_1): New function, factored out
28980 from recog_for_combine.
28981 (change_zero_ext): New function.
28982 (recog_for_combine): If recog fails, try again with the pattern
28983 modified by change_zero_ext; if that still fails, restore the
28986 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
28988 * combine.c (get_undo_marker): New function.
28989 (undo_to_marker): New function, largely factored out from ...
28990 (undo_all): ... this. Adjust.
28992 2015-05-12 Richard Biener <rguenther@suse.de>
28994 PR tree-optimization/66101
28995 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
28996 fixup if we turn a loop exit edge to a fallthru edge.
28998 2015-05-12 Richard Biener <rguenther@suse.de>
29000 PR tree-optimization/37021
29001 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
29002 (SLP_TREE_TWO_OPERATORS): New define.
29003 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
29004 SLP_TREE_TWO_OPERATORS.
29005 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
29007 (vect_build_slp_tree): Adjust.
29008 (vect_analyze_slp_cost_1): Likewise.
29009 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
29010 emitting two vector stmts and mixing the results.
29012 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
29014 * call.c (print_z_candidates): Remove dead code.
29016 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29018 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
29019 and zEC12_simple_fp.
29020 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
29023 2015-05-12 Tom de Vries <tom@codesourcery.com>
29025 PR tree-optimization/66010
29026 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
29028 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
29029 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
29030 va_lists are passed, and remove corresponding handling.
29031 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
29032 do_deref argument to ifn_va_arg.
29033 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
29036 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29039 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
29040 REG before taking its REGNO.
29042 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
29044 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
29045 rsp->sign_bit_copies and rsp->nonzero_bits into ...
29046 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
29047 present to get more accurate information about the number of sign bit
29048 copies and non zero bits.
29050 2015-05-12 Richard Biener <rguenther@suse.de>
29052 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
29053 do not allow unrolling.
29055 2015-05-11 Richard Henderson <rth@redhat.com>
29057 * config/i386/i386-modes.def (CCP): New.
29058 * config/i386/i386.c (put_condition_code): Handle it.
29059 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
29061 2015-05-11 Richard Henderson <rth@redhat.com>
29063 * target.def (md_asm_clobbers): Replace with...
29064 (md_asm_adjust): this.
29065 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
29066 (TARGET_MD_ASM_ADJUST): New.
29067 * tm.texi: Rebuild.
29068 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
29069 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
29070 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
29072 * cfgexpand.c (check_operand_nalternatives): Accept vector of
29073 constraints instead of lists of outputs and inputs.
29074 (expand_asm_stmt): Save and restore input_location around the
29075 body of the function. Move asm data into vectors instead of
29076 building tree lists. Generate cleanup sequences as needed,
29077 rather than waiting til the end. Use new md_asm_adjust hook.
29079 * config/vxworks.c: Include vec.h before target.h.
29080 * gimple.c: Likewise.
29081 * incpath.c: Likewise.
29082 * mode-switching.c: Likewise.
29084 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
29085 (cris_md_asm_adjust): this.
29086 (TARGET_MD_ASM_CLOBBERS): Remove.
29087 (TARGET_MD_ASM_ADJUST): New.
29088 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
29089 (ix86_md_asm_adjust): this.
29090 (TARGET_MD_ASM_CLOBBERS): Remove.
29091 (TARGET_MD_ASM_ADJUST): New.
29092 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
29093 (mn10300_md_asm_adjust): this.
29094 (TARGET_MD_ASM_CLOBBERS): Remove.
29095 (TARGET_MD_ASM_ADJUST): New.
29096 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
29097 (rs6000_md_asm_adjust): this.
29098 (TARGET_MD_ASM_CLOBBERS): Remove.
29099 (TARGET_MD_ASM_ADJUST): New.
29100 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
29101 (visium_md_asm_adjust): this.
29102 (TARGET_MD_ASM_CLOBBERS): Remove.
29103 (TARGET_MD_ASM_ADJUST): New.
29105 2015-05-11 Richard Henderson <rth@redhat.com>
29107 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
29108 if noutputs is zero.
29109 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
29111 * cfgexpand.c (expand_asm_operands): Merge into...
29112 (expand_asm_stmt): ... here.
29114 * cfgexpand.c (expand_asm_operands): Don't call
29115 resolve_asm_operand_names.
29116 * stmt.c (resolve_asm_operand_names): Clarify block comment.
29118 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
29120 * dwarf2out.c (gen_member_die): Sanity check that we access
29121 TYPE_MAIN_VARIANT for TYPE_METHODS.
29122 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
29123 checking TYPE_METHODS.
29124 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
29126 (build_distinct_type_copy): Clear TYPE_METHODS.
29127 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
29128 (verify_type): Allow TYPE_METHODS to be error_mark_node.
29129 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
29131 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
29133 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
29134 (emit_pattern_before_setloc): Likewise.
29136 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
29138 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
29139 for define_peephole2s.
29140 (get_peephole2_pattern): New function.
29141 (main): Use it. Call validate_pattern.
29143 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
29145 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
29146 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
29147 (Last callee saved reg is different for AVR_TINY architecture)
29149 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
29151 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
29152 when looking for memory references.
29154 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
29157 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
29158 via function pointers.
29160 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
29162 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
29163 indirect call by forcing address into a pseudo with -fno-plt.
29164 * common.opt (flag_plt): New option.
29165 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
29166 ([-fno-plt]): Document.
29168 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
29171 * config/rs6000/option-defaults.h: Add space between string literal
29174 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
29176 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
29177 accross ARM targets.
29179 2015-05-11 Christian Bruel <christian.bruel@st.com>
29181 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
29182 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
29184 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
29186 PR rtl-optimization/66076
29187 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
29188 Don't grow the heap array if it is already big enough from a
29189 previous iteration.
29191 2015-05-11 Christian Bruel <christian.bruel@st.com>
29193 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
29194 (is_called_in_ARM_mode): Remove.
29195 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
29196 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
29197 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
29198 arm_declare_function_name.
29200 2015-05-11 Christian Bruel <christian.bruel@st.com>
29202 * config/arm/arm.c (arm_option_override): Reoganized and split into :
29203 (arm_option_params_internal); New function.
29204 (arm_option_check_internal): New function.
29205 (arm_option_override_internal): New function.
29206 (thumb_code, thumb1_code): Remove.
29207 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
29208 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
29209 (thumb_code, thumb1_code): Remove.
29210 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
29212 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
29214 * config/alpha/alpha.c (alpha_emit_set_const_1)
29215 (alpha_emit_set_long_const, alpha_extract_integer)
29216 (alpha_legitimate_constant_p, alpha_split_const_mov)
29217 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
29218 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29219 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
29221 * config/alpha/predicates.md (mode_mask_operand): Do not match
29223 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29224 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
29225 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
29226 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29227 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
29229 2015-05-11 Jakub Jelinek <jakub@redhat.com>
29232 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
29233 default_binds_local_p_2.
29234 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
29235 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
29237 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29239 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
29241 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29243 Patch by Richard Biener
29244 * coverage.c (coverage_obj_init): Delay building of type variant
29245 until the type is finished.
29247 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29249 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
29250 mismatch between C and C++ type; compoare correctly ARG_TYPES
29251 for non-prototypes and output correctly parameter index for METHOD_TYPE.
29252 (odr_types_equivalent_p): Fix wording of warning about attributes;
29253 it is OK to match prototype and non-prototype.
29255 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29257 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
29258 TYPE_ARG_TYPES list.
29259 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
29260 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
29262 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29264 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
29265 * tree.h (is_lang_specific): Constify.
29267 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
29269 PR tree-optimization/64454
29270 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
29273 2015-05-08 Jason Merrill <jason@redhat.com>
29275 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
29276 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
29277 config/darwin.h, config/darwin9.h, config/elfos.h,
29278 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
29279 config/microblaze/microblaze.h, config/mips/mips.h,
29280 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
29281 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
29282 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
29283 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
29284 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
29285 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
29286 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
29287 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
29288 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
29289 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
29290 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
29291 between string literal and macro name.
29293 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29295 * jump.c: Change argument types to rtx_insn *.
29298 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29300 * lra-constraints.c: Change argument type to rtx_insn *.
29302 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29304 * df-problems.c: Change argument type to rtx_insn *.
29306 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29308 * combine.c: Change argument type to rtx_insn *.
29310 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29313 * rtlanal.c: Change argument type to rtx_insn *.
29315 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29317 * sched-deps.c: Change argument types to rtx_insn *.
29318 * sched-int.h: Adjust.
29320 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29322 * dwarf2cfi.c: Change argument type to rtx_insn *.
29324 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29326 * ira.c (decrease_live_ranges_number): Changetype of local
29327 variable to rtx_insn *.
29328 * recog.c: Change argument types to rtx_insn *.
29331 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29333 * reorg.c: Change argument types to rtx_insn *.
29335 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29337 * ira-color.c: Change argument types to rtx_insn *.
29338 * lra-eliminations.c: Likewise.
29341 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29343 * gcse.c: Change argument types to rtx_insn *.
29345 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29347 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
29349 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29351 * emit-rtl.c (emit_debug_insn_before): Change argument type to
29355 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29357 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
29360 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29362 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
29365 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29367 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
29370 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29372 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
29375 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29377 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
29381 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29383 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
29387 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29389 * except.c (can_nonlocal_goto): Change type of argument to
29393 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29395 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
29398 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29400 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
29401 * cfgrtl.c (can_delete_label_p): Adjust.
29404 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29406 * reorg.c (stop_search_p): Change argument to rtx_insn *.
29408 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29410 * except.c (make_reg_eh_region_note): Change argument to
29412 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
29413 * except.h: Adjust.
29415 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29417 * mode-switching.c (commit_mode_sets): Change type of local
29418 variable from rtx to rtx_insn *.
29420 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
29422 * doc/install.texi (--enable-languages): Add missing jit and lto info.
29423 Add ^ to grep command.
29424 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
29425 arg to last gimple_simplify declaration. Add missing gimple_build
29426 declaration for built-in function case with four tree args.
29428 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
29429 Szabolcs Nagy <szabolcs.nagy@arm.com>
29431 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
29432 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
29433 (GNU_USER_DYNAMIC_LINKERN32): Update.
29435 2015-05-08 Richard Biener <rguenther@suse.de>
29437 PR tree-optimization/66036
29438 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
29439 Handle strided group loads.
29440 (vect_verify_datarefs_alignment): Likewise.
29441 (vect_enhance_data_refs_alignment): Likewise.
29442 (vect_analyze_group_access): Likewise.
29443 (vect_analyze_data_ref_access): Likewise.
29444 (vect_analyze_data_ref_accesses): Likewise.
29445 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
29446 (vectorizable_load): Likewise.
29448 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
29450 * config/rs6000/rs6000.md: Require operand inequality in one
29453 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
29454 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
29456 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
29458 * config/rx/rx.md (movdi, movdf): Likewise.
29459 Likewise for define_peephole2s.
29461 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
29463 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
29464 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
29465 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
29466 vtst_u64): Rewrite using gcc vector extensions.
29468 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
29470 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
29471 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
29473 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
29475 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
29477 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
29479 * config/glibc-stdint.h (OPTION_MUSL): Define.
29480 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
29481 Change the definition based on OPTION_MUSL for 64 bit targets.
29482 * config/linux.h (OPTION_MUSL): Redefine.
29483 * config/alpha/linux.h (OPTION_MUSL): Redefine.
29484 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
29485 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
29487 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
29488 Szabolcs Nagy <szabolcs.nagy@arm.com>
29490 * config.gcc (LIBC_MUSL): New tm_defines macro.
29491 * config/linux.h (OPTION_MUSL): Define.
29492 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
29493 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
29494 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29495 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29496 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29497 * config/linux.opt (mmusl): New option.
29498 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
29499 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29500 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29501 * configure: Regenerate.
29503 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
29504 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29507 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
29508 * config/i386/knetbsd-gnu64.h: New file.
29510 2015-05-08 Marek Polacek <polacek@redhat.com>
29513 * doc/invoke.texi: Document -Woverride-init-side-effects.
29515 2015-05-07 Marek Polacek <polacek@redhat.com>
29518 * doc/invoke.texi: Document -Wshift-negative-value.
29520 2015-05-06 Aditya Kumar <hiraditya@msn.com>
29522 * gcov-tool.c (do_merge): Refactore to remove int ret.
29523 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
29524 !type == FUNC to type != FUNC.
29525 * reload.h (struct target_reload): Changee to type of
29526 x_spill_indirect_levels from bool to unsigned char.
29528 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
29530 * rtl.h (always_void_p): New function.
29531 * gengenrtl.c (always_void_p): Likewise.
29532 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
29533 with code foo are always VOIDmode.
29534 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
29535 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
29536 compare-elim.c, config/aarch64/aarch64.c,
29537 config/aarch64/aarch64.md, config/alpha/alpha.c,
29538 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
29539 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
29540 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
29541 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
29542 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
29543 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
29544 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
29545 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
29546 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
29547 config/ia64/vect.md, config/iq2000/iq2000.c,
29548 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
29549 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
29550 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
29551 config/mep/mep.c, config/microblaze/microblaze.c,
29552 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
29553 config/mn10300/mn10300.c, config/msp430/msp430.c,
29554 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
29555 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
29556 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
29557 config/rs6000/altivec.md, config/rs6000/rs6000.c,
29558 config/rs6000/rs6000.md, config/rs6000/vector.md,
29559 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
29560 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
29561 config/sh/sh.md, config/sh/sh_treg_combine.cc,
29562 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
29563 config/spu/spu.md, config/stormy16/stormy16.c,
29564 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
29565 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
29566 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
29567 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
29568 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
29569 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
29570 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
29571 var-tracking.c: Update calls accordingly.
29573 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
29576 PR middle-end/54303
29577 * varasm.c (function_mergeable_rodata_prefix): New function.
29578 (mergeable_string_section): Use it.
29579 (mergeable_constant_section): Use it.
29581 2015-05-07 Jeff Law <law@redhat.com>
29584 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29585 simplifier to narrow arithmetic.
29586 * generic-match-head.c: (types_match, single_use): New functions.
29587 * gimple-match-head.c: (types_match, single_use): New functions.
29589 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29591 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
29594 2015-05-07 Richard Biener <rguenther@suse.de>
29596 PR tree-optimization/66002
29597 * passes.def: Schedule another pass_merge_phi after ifcombine, right
29600 2015-05-07 Marek Polacek <polacek@redhat.com>
29601 Martin Uecker <uecker@eecs.berkeley.edu>
29603 * doc/invoke.texi: Document -fsanitize=bounds-strict.
29604 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
29605 into SANITIZE_NONDEFAULT.
29606 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
29608 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
29611 * config/alpha/alpha.c (alpha_override_options_after_change): New.
29612 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
29613 (alpha_override_options): Move align_loops, align_jumps and
29614 align_functions handling into alpha_override_options_after_change.
29616 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
29617 Chris Jones <chrisj@nvidia.com>
29618 Joshua Conner <jconner@nvidia.com>
29620 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
29621 linking of crtfastmath.o.
29622 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
29624 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
29626 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
29627 (cstore<mode>4_unsigned_imm): New expander.
29628 (cstore<mode>4): Remove empty constraint strings. Use the new
29631 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
29634 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
29637 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
29639 * config/aarch64/geniterators.sh: Use standard BRE in sed.
29641 2015-05-06 Alan Modra <amodra@gmail.com>
29644 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
29645 (UNSPEC_NOP): Define.
29646 (reload_vsx_from_gpr<mode>): Add missing DONE.
29647 (reload_gpr_from_vsx<mode>): Likewise.
29648 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
29649 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
29651 2015-05-06 Christian Bruel <christian.bruel@st.com>
29654 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
29655 align_jumps, align_functions into aarch64_override_options_after_change.
29657 2015-05-06 Richard Biener <rguenther@suse.de>
29659 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
29660 vect_transform_slp_perm_load to check if we support a permutation
29661 for basic-block vectorization.
29663 2015-05-06 Nick Clifton <nickc@redhat.com>
29665 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
29666 used, even if it is not being used as a frame pointer.
29668 2015-05-05 Jason Merrill <jason@redhat.com>
29670 * dwarf2out.c (gen_member_die): Don't emit anything for an
29671 anonymous class constructor.
29673 2015-05-05 David Malcolm <dmalcolm@redhat.com>
29675 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
29676 that it reflects the block structure.
29677 (afdo_propagate_edge): Likewise.
29678 (afdo_calculate_branch_prob): Likewise.
29679 (afdo_annotate_cfg): Likewise.
29680 * cfgcleanup.c (equal_different_set_p): Likewise.
29681 (try_crossjump_to_edge): Likewise.
29682 * cgraph.c (cgraph_node::verify_node): Likewise.
29683 * cgraphunit.c (expand_all_functions): Likewise.
29684 * config/i386/i386.c (ix86_expand_copysign): Likewise.
29685 (exact_dependency_1): Likewise.
29686 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
29687 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
29688 * gensupport.c (process_define_subst): Likewise.
29689 * lto-wrapper.c (merge_and_complain): Likewise.
29690 * tree-if-conv.c (if_convertible_bb_p): Likewise.
29691 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
29692 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
29693 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
29694 * tree-vect-loop.c (vectorizable_reduction): Likewise.
29695 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
29696 * tree-vect-stmts.c (vectorizable_shift): Likewise.
29697 * tree-vrp.c (vrp_finalize): Likewise.
29698 * tree.c (variably_modified_type_p): Likewise.
29700 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
29702 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
29703 on darwin12 and later.
29704 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
29705 file to pass -rdynamic on darwin12 and later.
29706 * config/darwin.opt (rdynamic): Add.
29708 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
29710 * doc/extend.texi (C Extensions): Update menu for moved Variable
29711 Attributes and Type Attributes sections.
29713 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
29716 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
29717 if rep_8byte stringop strategy was specified for 32-bit target.
29719 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
29722 * config/i386/i386.md (vector convert to float spltiter): Check for
29723 xmm16+, when splitting scalar float conversion.
29724 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
29726 2015-05-05 Nick Clifton <nickc@redhat.com>
29728 * config/msp430/msp430-opts.h (enum msp430_regions): New.
29729 * config/msp430/msp430.c (msp430_override_options): Complain if
29730 -mcode-region or -mdata-region is used on a non MSP430X.
29731 (msp430_section_attr): New function. Checks lower, upper and
29733 (msp430_attribute_table): Add lower, upper and either.
29734 (gen_prefix): New function. Generates a prefix for a section
29736 (msp430_select_section): New function - handles the choice of
29737 section for an object. Takes into account memory region
29738 attributes and options.
29739 (msp430_function_section): Use gen_prefix.
29740 (TARGET_SECTION_TYPE_FLAGS): Define.
29741 (msp430_section_type_flags): New function.
29742 (TARGET_ASM_UNIQUE_SECTION): Define.
29743 (msp430_unique_section): New function.
29744 (msp430_output_aligned_decl_common): New function.
29745 (msp430_do_not_relax_short_jumps): New function.
29746 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
29748 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
29749 * config/msp430/msp430-protos.h
29750 (msp430_do_not_relax_short_jumps): New prototype.
29751 (msp430_output_aligned_decl_common): New prototype.
29752 * config/msp430/msp430.md (length): New attribute.
29753 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
29754 then use a long code sequence for short jumps.
29755 * config/msp430/msp430.opt (mcode-region): New.
29756 (mdata-region): New.
29757 * doc/invoke.texi: Document new options.
29758 * doc/extend.texi: Document new attributes.
29760 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
29762 * config/aarch64-protos.h (struct cpu_branch_cost): New.
29763 (tune_params): Add field branch_costs.
29764 (aarch64_branch_cost): Declare.
29765 * config/aarch64.c (generic_branch_cost): New.
29766 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
29767 (cortexa53_tunings): Likewise.
29768 (cortexa57_tunings): Likewise.
29769 (thunderx_tunings): Likewise.
29770 (xgene1_tunings): Likewise.
29771 (aarch64_branch_cost): Define.
29772 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
29774 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
29776 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
29777 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
29778 * config/i386/i386.md: Ditto.
29779 * config/i386/winnt.c: Ditto.
29781 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
29783 * doc/extend.texi (__atomic Builtins): Move implementation details
29784 to the end of the description, rewrite opening paragraphs, state
29785 difference with __sync builtins, state C11/C++11 assumptions,
29786 weaken itemized descriptions, add explanation of memory model
29787 behaviour, expand description of compare-exchange, simplify text.
29789 2015-05-05 Renlin Li <renlin.li@arm.com>
29791 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
29793 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
29795 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
29796 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
29797 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
29798 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
29799 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
29800 * configure: Regenerate.
29801 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
29802 * doc/install.texi (aarch64*-*-*): Document new
29803 --enable-fix-cortex-a53-843419 option.
29804 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
29805 and -mno-fix-cortex-a53-843419 options.
29807 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
29810 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
29812 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
29814 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
29815 fix overactive TYPE_MIN_VALUE check and add FIXME for type
29816 compatibility problems.
29818 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
29820 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
29822 (cbranchsi4_reg): New.
29823 * config/microblaze/microblaze.c
29824 (microblaze_expand_conditional_branch_reg): New.
29825 * config/microblaze/microblaze-protos.h
29826 (microblaze_expand_conditional_branch_reg): New prototype.
29828 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
29830 * config/microblaze/microblaze.md (peephole2): New.
29832 2015-05-04 Jeff Law <law@redhat.com>
29835 2015-05-04 Jeff Law <law@redhat.com>
29837 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29838 simplifier to narrow arithmetic.
29839 * generic-match-head.c: (types_match, single_use): New functions.
29840 * gimple-match-head.c: (types_match, single_use): New functions.
29842 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
29845 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
29846 (split_branches): Likewise.
29848 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
29850 * common.opt (fdelete-null-pointer-checks): Init to -1.
29851 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
29852 override flag_delete_null_pointer_checks default.
29853 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
29854 behavior re address zero. Better document target-specific behavior.
29855 (-fisolate-errneous-paths-dereference): Mention relationship to
29856 -fdelete-null-pointer-checks.
29858 2015-05-04 Jakub Jelinek <jakub@redhat.com>
29860 PR tree-optimization/65984
29861 * ubsan.c: Include tree-cfg.h.
29862 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
29863 stmt_could_throw_p test, rename can_throw variable to ends_bb.
29865 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
29867 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
29868 to CONST_DOUBLE_P predicate.
29869 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
29870 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
29871 allow only operands that satisfy standard_sse_constant_p predicate.
29872 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
29873 to CONST_DOUBLE_P predicate.
29875 2015-05-04 Jeff Law <law@redhat.com>
29877 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29878 simplifier to narrow arithmetic.
29879 * generic-match-head.c: (types_match, single_use): New functions.
29880 * gimple-match-head.c: (types_match, single_use): New functions.
29882 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
29884 * config/arm/arm.c: Restore bootstrap.
29886 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
29888 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
29889 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
29890 as CONST_WIDE_INT, not CONST_DOUBLE.
29891 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
29892 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
29893 (ix86_find_base_term): Do not check for CONST_DOUBLE.
29894 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
29895 (ix86_build_signbit_mask): Rewrite using wide ints.
29896 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
29897 (ix86_rtx_costs): Handle CONST_WIDE_INT.
29898 (find_constant): Ditto.
29899 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
29900 using gen_int_mode.
29901 * config/i386/predicates.md (x86_64_immediate_operand)
29902 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
29903 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
29904 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
29905 (const0_operand): Also match const_wide_int.
29906 (constm1_operand): Ditto.
29907 (const1_operand): Ditto.
29909 2015-05-04 Richard Biener <rguenther@suse.de>
29911 PR tree-optimization/65965
29912 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
29913 store groups at gaps.
29915 2015-05-04 Richard Biener <rguenther@suse.de>
29917 PR tree-optimization/65935
29918 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
29919 then make sure to apply that swapping to the IL.
29921 2015-05-04 Jakub Jelinek <jakub@redhat.com>
29923 * Makefile.in (PATCHLEVEL_c): New variable.
29924 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
29925 expand the same way as if DEVPHASE_c was non-empty.
29927 2015-05-04 Kai Tietz <ktietz@redhat.com>
29930 * lto-wrapper.c (run_gcc): Open filename
29933 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
29935 * doc/extend.texi (Variable Attributes, Type Attributes): Move
29936 sections up in file, to immediately after the Function Attributes
29939 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
29941 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
29943 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29945 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
29946 (insert_partition_copy_on_edge): Adjust.
29947 (insert_rtx_to_part_on_edge): Likewise.
29948 (insert_part_to_rtx_on_edge): Likewise.
29950 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29952 * function.c (set_return_jump_label): Change type of argument to
29954 * function.h (set_return_jump_label): Adjust.
29956 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29958 * reload.h (struct reg_equivs_t): Change type of init to
29960 * ira.c (fix_reg_equiv_init): Adjust.
29961 * reload1.c (eliminate_regs_1): Likewise.
29962 (init_eliminable_invariants): Likewise.
29964 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29966 * cselib.c (fp_setter_insn): Take a rtx_insn *.
29967 * cselib.h (fp_setter_insn): Adjust.
29969 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29971 * recog.c (struct validate_replace_src_data): Change type of
29972 insn field to rtx_insn *.
29973 (validate_replace_src_group): Change type of argument to rtx_insn *.
29974 * recog.h (validate_replace_src_group): Adjust.
29976 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29978 * haifa-sched.c: Change the type of some variables to rtx_insn *.
29979 * sched-deps.c: Likewise.
29980 * sched-int.h: Likewise.
29981 * sched-rgn.c: Likewise.
29982 * sel-sched.c: Likewise.
29984 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29987 * config/i386/i386.c: Change the type of some arguments to
29989 * config/arm/arm.c: Likewise.
29991 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29993 * lra-constraints.c: Change type of some arguments to rtx_insn *.
29995 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29997 * regcprop.c (kill_autoinc_value): Change type of argument to
30000 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30002 * genrecog.c (print_subroutine): Adjust.
30003 * recog.c (get_bool_attr_mask_uncached): Likewise.
30004 * recog.h (struct recog_data_d): Change the type of insn to
30007 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30009 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
30011 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30013 * df-problems.c (df_set_note): Change type of argument to
30016 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30018 * builtins.c (expand_builtin_trap): Change type of local
30019 variable to rtx_insn *.
30020 (add_sched_insns_for_speculation): Likewise.
30021 (ix86_emit_save_regs): Likewise.
30022 (get_scratch_register_on_entry): Likewise.
30023 (ix86_emit_restore_reg_using_pop): Likewise.
30024 (ix86_emit_leave): Likewise.
30025 (ix86_emit_restore_regs_using_mov): Likewise.
30026 (ix86_expand_epilogue): Likewise.
30028 (rl78_alloc_physical_registers_umul): Likewise.
30029 * cselib.c (discard_useless_locs): Likewise.
30030 (cselib_invalidate_regno): Likewise.
30031 (cselib_invalidate_mem): Likewise.
30032 * function.c (expand_function_start): Likewise.
30033 (emit_use_return_register_into_block): Likewise.
30034 * gcse.c: Likewise.
30035 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
30036 * ifcvt.c (noce_get_alt_condition): Likewise.
30037 * loop-doloop.c (doloop_condition_get): Likewise.
30038 * lra-constraints.c (inherit_in_ebb): Likewise.
30039 * modulo-sched.c (sms_schedule_by_order): Likewise.
30040 * recog.c (next_insn_tests_no_inequality): Likewise.
30041 * reorg.c (emit_delay_sequence): Likewise.
30042 (update_reg_dead_notes): Likewise.
30043 (fix_reg_dead_note): Likewise.
30044 (fill_slots_from_thread): Likewise.
30045 (delete_computation): Likewise.
30047 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
30049 * doc/extend.texi (Variable Attributes): Add menu and proper
30050 @nodes to subsections. Move Microsoft Windows attributes to
30051 their own subsection.
30052 (Type Attributes): Reorganize introduction to remove duplicate
30053 list of attributes. Add menu and proper @nodes to subsections.
30054 Alphabetize the main table of common attributes.
30056 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
30058 * match.pd: New simplification patterns.
30059 (x + (x & 1)) -> ((x + 1) & ~1)
30060 (x & ~(x & y)) -> ((x & ~y))
30061 (x | ~(x | y)) -> ((x | ~y))
30063 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30065 * target.def (attribute_table): Mention that struct attribute_spec
30066 is defined in tree-core.h rather than tree.h
30067 * doc/tm.texi: Regenerate.
30069 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
30071 * genrecog.c (test): Rename to rtx_test. Update rest of file
30074 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
30076 PR translation/65959
30077 * params.h (DEFPARAM): Rename msgid to nocmsgid.
30079 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
30081 * config/aarch64/aarch64-protos.h (tune_params):
30082 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
30083 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
30084 Return value depending on target.
30085 (generic_tunings): Initialize new target settings.
30086 (cortexa53_tunings): Likewise.
30087 (cortexa57_tunings): Likewise.
30088 (thunderx_tunings): Likewise.
30089 (xgene1_tunings): Likewise.
30091 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
30093 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
30094 Make Cortex-A53 shift costs more accurate.
30096 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30098 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
30101 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
30103 * config/aarch64/aarch64.c (aarch64_rtx_costs):
30104 Calculate cost of op0 and op1 in PLUS and MINUS cases.
30106 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30108 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
30109 Add cost of op0 in the compare-with-fpzero case.
30111 2015-04-30 David Malcolm <dmalcolm@redhat.com>
30113 * builtins.c (fold_builtin_1): Remove spurious second
30115 * cgraph.h (symtab_node::get_availability): Likewise.
30116 * opts.c (common_handle_option): Remove spurious second semicolon.
30117 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
30118 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
30120 2015-04-30 Caroline Tice <cmtice@google.com>
30122 PR gcov-profile/65929
30123 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
30124 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
30125 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
30126 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
30127 * doc/tm.texi: Regenerate.
30128 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
30129 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
30130 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
30131 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
30133 2015-04-30 Marek Polacek <polacek@redhat.com>
30135 * varasm.c (handle_cache_entry): Fix logic.
30137 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30139 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
30140 (*extrsi5_insn_uxtw_alt): Likewise.
30141 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
30142 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
30145 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30147 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
30150 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30152 * config/aarch64/aarch64.md
30153 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
30154 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
30155 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
30156 appropriately. Handle alternative EON form.
30158 2015-04-30 Renlin Li <renlin.li@arm.com>
30160 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
30161 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
30163 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
30166 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
30167 -fstrict-aliasing boundaries.
30169 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30171 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
30172 and [SU]MNEGL patterns.
30174 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30176 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
30177 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
30178 combined arithmetic-shift ops. Properly handle all shift and extend
30179 operations that can occur in combination with PLUS/MINUS.
30180 Rename maybe_fma to compound_p.
30181 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
30182 arithmetic and shift operations.
30184 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30186 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
30187 rather than arith_shift cost when costing ADD/MINUS of an
30190 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
30193 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
30196 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
30198 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
30199 are for the same position.
30201 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
30203 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
30205 (vectorize_loops): Use it.
30207 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
30209 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
30210 for aggregate types.
30211 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
30212 type to be non_ODR.
30213 * tree.c (need_assembler_name_p): Compute mangled name for
30214 non-fundamental types and integer types.
30216 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
30218 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
30220 * expr.c (expand_expr_real_2): Likewise.
30222 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
30224 * tree.c (build_common_builtin_nodes): Do not build
30225 __builtin_alloca_with_align as equivalent of library alloca.
30227 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
30229 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
30230 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
30232 * tree.c: Include print-tree.h and ipa-utils.h
30233 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
30234 (free_lang_data_in_cgraph): Call verify_type.
30235 (verify_type_variant): New function.
30236 (verify_type): New function.
30237 * tree.h (verify_type): Declare.
30239 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
30241 * config/mips/mips-cpus.def: (mips4): Change default processor
30242 from PROCESSOR_R8000 to PROCESSOR_R10000.
30244 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
30246 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
30247 la/jalr instead of jal.
30249 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
30252 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
30253 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
30254 (setcc+movzbl peephole2): Check also clobbered reg.
30255 (setcc+andl peephole2): Ditto.
30257 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
30260 * config/nvptx/mkoffload.c (target_ilp32): New variable.
30261 (main): Set it depending on "-foffload-abi=[...]".
30262 (compile_native, main): Use it to pass "-m32" or "-m64" to the
30265 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
30268 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
30269 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
30270 Flip lane index back at assembly time for bigendian.
30272 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
30274 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
30275 * gimplify.c (gimplify_omp_workshare): Use it.
30277 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
30279 * Makefile.in (build/genrecog.o): Depend on inchash.h.
30280 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
30282 * genrecog.c: Rewrite most of the code except for the third page.
30284 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
30286 * inchash.h, inchash.c: Include bconfig.h for build objects.
30287 * Makefile.in (build/inchash.o): New rule.
30289 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
30292 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
30293 number in type attribute expression.
30295 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
30297 * loop-iv.c (canon_condition): Generalize to all types of integer
30300 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
30302 * gimple-walk.c: Prune duplicate or unneeded includes.
30303 (walk_gimple_asm): Only call parse_input_constraint or
30304 parse_output_constraint if their findings are used.
30305 Honour parse_input_constraint and parse_output_constraint
30308 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
30310 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
30312 2015-04-29 Tom de Vries <tom@codesourcery.com>
30314 PR tree-optimization/65893
30315 * passes.def (pass_all_optimizations): Move pass_stdarg to after
30318 2015-04-29 Richard Biener <rguenther@suse.de>
30320 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
30321 compute GROUP_SIZE for basic-block SLP.
30322 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
30323 take into account gaps.
30324 (vect_get_mask_element): Properly reject references to previous
30326 (vect_transform_slp_perm_load): Likewise.
30328 2015-04-29 Christian Bruel <christian.bruel@st.com>
30331 * config/i386/i386.c (ix86_default_align): New function.
30332 (ix86_override_options_after_change): Call ix86_default_align.
30333 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
30334 (ix86_override_options_after_change): New function.
30336 2015-04-28 Jeff Law <law@redhat.com>
30338 * tree-ssa-dom.c (record_equality); Fix comment typos.
30340 2015-04-28 Tom de Vries <tom@codesourcery.com>
30342 PR tree-optimization/65887
30343 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
30345 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
30347 * doc/extend.texi (Declaring Attributes of Functions): Split into
30348 subsections by target. Alphabetize the table of common attributes.
30349 Rewrite some of the introductory text to reflect the new structure.
30350 Update some cross-references to point to the new subsections.
30351 (Attribute Syntax): Put paragraph about "__" naming here. Remove
30352 duplicate copies in the discussion of function, label, and type
30355 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
30358 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
30360 2015-04-28 Jason Merrill <jason@redhat.com>
30363 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
30364 (finalize_type_size): Respect TYPE_USER_ALIGN.
30365 (layout_type) [ARRAY_TYPE]: Likewise.
30367 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
30369 * config/arm/arm.md (*arm_movt): Fix type attribute.
30370 (*cmpsi_shiftsi): Likewise.
30371 (*cmpsi_shiftsi_swp): Likewise.
30372 (*movsicc_insn): Likewise.
30373 (*cond_move): Likewise.
30374 (*if_plus_move): Likewise.
30375 (*if_move_plus): Likewise.
30376 (*if_arith_move): Likewise.
30377 (*if_move_arith): Likewise.
30378 (*if_shift_move): Likewise.
30379 (*if_move_shift): Likewise.
30380 (*arm_movtas_ze): Likewise.
30381 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
30382 redundancy and type attribute.
30383 (*thumb2_movsi_insn): Fix type attribute.
30384 (*thumb2_addsi_short): Likewise.
30385 (thumb2_addsi3_compare0): Likewise.
30386 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
30387 attributes accordingly.
30389 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
30392 * function.c (pad_to_arg_alignment): Add parentheses.
30394 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
30396 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
30397 libgcc/config/frv/elf-lib.h.
30399 2015-04-28 Tom de Vries <tom@codesourcery.com>
30401 * tree-call-cdce.c: Fix example in header comment.
30403 2015-04-28 Richard Biener <rguenther@suse.de>
30405 PR tree-optimization/62283
30406 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
30407 fails fatally and we are vectorizing a basic-block simply
30408 cause the child to be constructed piecewise.
30409 (vect_analyze_slp_cost_1): Adjust.
30410 (vect_detect_hybrid_slp_stmts): Likewise.
30411 (vect_bb_slp_scalar_cost): Likewise.
30412 (vect_get_constant_vectors): For piecewise constructed
30413 constants place them after the last def.
30414 (vect_get_slp_defs): Adjust.
30415 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
30416 externals for basic-block vectorization.
30418 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
30421 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
30423 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
30424 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
30425 (AARCH64_TUNE_FMA_STEERING): Likewise.
30426 * config/aarch64/aarch64-cores.def: Set
30427 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
30428 FMUL/FMADD instructions.
30429 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
30430 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
30431 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
30432 * config/aarch64/cortex-a57-fma-steering.h: New file.
30433 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
30435 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
30437 * gensupport.c (std_preds): Add missing codes to address_operand entry.
30439 2015-04-28 Richard Biener <rguenther@suse.de>
30441 PR tree-optimization/65851
30442 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
30443 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
30444 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
30445 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
30446 (ccp_visit_phi_node): Adjust.
30447 (evaluate_stmt): For simplifications to SSA names return its
30448 lattice value if that isn't VARYING. Return immediately when
30449 simplified to a constant.
30450 (visit_assignment): Adjust.
30451 (ccp_visit_stmt): Likewise.
30453 2015-04-28 Tom de Vries <tom@codesourcery.com>
30455 PR tree-optimization/65818
30456 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
30459 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30461 * calls.c (save_fixed_argument_area): Don't check
30462 ARGS_GROW_DOWNWARD with the preprocessor.
30463 (restore_fixed_argument_area): Likewise.
30464 (mem_overlaps_already_clobbered_arg_p): Likewise.
30465 (check_sibcall_argument_overlap): Likewise.
30466 (expand_call): Likewise.
30467 (emit_library_call_value_1): Likewise.
30468 (store_one_arg): Likewise.
30469 * function.c (assign_parms): Likewise.
30470 (locate_and_pad_parm): Likewise.
30471 (pad_to_arg_alignment): Likewise.
30472 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
30474 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30476 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
30477 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
30478 * calls.c (save_fixed_argument_area): Don't chekc if
30479 ARGS_GROW_DOWNWARD is defined.
30480 (restore_fixed_argument_area): Likewise.
30481 (mem_overlaps_already_clobbered_arg_p): Likewise.
30482 (check_sibcall_argument_overlap): Likewise.
30483 (expand_call): Likewise.
30484 (emit_library_call_value_1): Likewise.
30485 (store_one_arg): Likewise.
30486 * function.c (assign_parms): Likewise.
30487 (locate_and_pad_parm): Likewise.
30488 (pad_to_arg_alignment): Likewise.
30489 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
30491 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30493 * defaults.h (gen_epilogue): New function.
30494 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
30496 * cfgrtl.c (cfg_layout_finalize): Likewise.
30497 * df-scan.c: Likewise.
30498 * function.c (thread_prologue_and_epilogue_insns): Likewise.
30499 (reposition_prologue_and_epilogue_notes): Likewise.
30500 * reorg.c (find_end_label): Likewise.
30501 * toplev.c: Likewise.
30503 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30505 * bb-reorder.c (HAVE_return): Don't check if its undefined.
30506 * defaults.h (gen_simple_return): New function.
30507 (gen_simple_return): Likewise.
30508 (HAVE_return): Add default definition to false.
30509 (HAVE_simple_return): Likewise.
30510 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
30511 HAVE_return and HAVE_simple_return are defined.
30512 * function.c (gen_return_pattern): Likewise.
30513 (convert_jumps_to_returns): Likewise.
30514 (thread_prologue_and_epilogue_insns): Likewise.
30515 * reorg.c (find_end_label): Likewise.
30516 (dbr_schedule): Likewise.
30517 * shrink-wrap.c: Likewise.
30518 * shrink-wrap.h: Likewise.
30520 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30522 * defaults.h (EPILOGUE_USES): Add default definition of false.
30523 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
30524 * resource.c (init_resource_info): Likewise.
30526 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30528 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
30530 * dwarf2out.c (field_byte_offset): REmove check if
30531 PCC_BITFIELD_TYPE_MATTERS is defined.
30532 * stor-layout.c (layout_decl): Likewise.
30533 (update_alignment_for_field): Likewise.
30534 (place_field): Likewise.
30536 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30538 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
30540 * regrename.c (check_new_reg_p): Remove check if
30541 HARD_REGNO_RENAME_OK is defined.
30542 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
30544 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30546 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
30547 * cse.c (fold_rtx): Likewise.
30548 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
30549 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
30550 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
30551 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
30552 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
30553 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
30554 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
30555 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
30556 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
30557 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
30559 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
30560 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
30561 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
30562 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
30563 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
30564 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
30565 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
30566 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
30567 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
30568 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
30569 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
30570 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
30571 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
30572 * doc/tm.texi: Regenerate.
30573 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
30574 either true or false.
30576 2015-04-27 Jeff Law <law@redhat.com>
30578 PR tree-optimization/65217
30579 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
30580 of them has a single use, make sure it is the LHS of the implied
30583 2015-04-28 Alan Modra <amodra@gmail.com>
30586 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
30587 (offsettable_ok_by_alignment): Use minimum of decl and toc
30588 pointer alignment. Replace dead code with assertion.
30589 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
30590 case if size exceeds toc pointer alignment.
30591 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
30592 (rs6000_emit_move): Likewise.
30593 * configure.ac: Add linker toc pointer alignment check.
30594 * configure: Regenerate.
30595 * config.in: Regenerate.
30597 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
30599 * config.gcc: Add h8300-*-linux.
30600 * config/h8300/linux.h: New.
30601 * config/h8300/t-linux: New.
30602 * config/h8300/h8300.c (h8300_option_override): Normal mode
30603 is not supported for h8300-*-linux.
30604 (h8300_file_start): Target priority change.
30605 (get_shift_alg): Likewise.
30606 (h8300_shift_need_scratch_p): Likewise.
30607 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
30608 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
30610 2015-04-27 Caroline Tice <cmtice@google.com>
30612 * final.c (final_scan_insn): Output cold_function_name as function
30614 * varasm.c (cold_function_name): Make global.
30615 (assemble_start_function): Re-set cold_function_name.
30616 (assemble_end_function): Output cold partition size.
30617 * varasm.h (cold_function_name): Declare global.
30619 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
30621 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
30622 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
30624 (*movxi_internal_avx512f): Ditto.
30625 (define_split): Check for xmm16+, when splitting scalar float_extend.
30626 (*extendsfdf2_mixed): Use "v" constraint.
30627 (define_split): Check for xmm16+, when splitting scalar float_truncate.
30628 (*truncdfsf_fast_sse): Use "v" constraint.
30629 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
30630 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
30631 (define_peephole2): Check for xmm16+, when converting scalar
30633 (define_peephole2): Check for xmm16+, when converting scalar
30635 (*fop_<mode>_comm_mixed): Use "v" constraint.
30636 (*fop_<mode>_comm_sse): Ditto.
30637 (*fop_<mode>_1_mixed): Ditto.
30638 (*sqrt<mode>2_sse): Ditto.
30639 (*ieee_s<ieee_maxmin><mode>3): Ditto.
30641 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30643 * combine.c (simplify_if_then_else): Use std::swap instead
30644 of manually swapping.
30645 (known_cond): Likewise.
30646 (simplify_comparison): Likewise.
30648 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
30651 * config/rs6000/htm.md: Remove all define_expands.
30652 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
30653 UNSPECV_HTM_TABORTWCI): Remove.
30654 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
30655 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
30656 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
30657 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
30658 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
30659 tabortwci_internal): Remove define_insns.
30660 (tabort<wd>c, tabort<wd>ci): New define_insns.
30661 (tabort): Use gpc_reg_operand.
30662 (tcheck): Remove operand.
30663 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
30664 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
30666 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
30667 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
30668 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
30669 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
30670 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
30671 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
30672 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
30673 (tcheck): Remove builtin argument.
30674 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
30676 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
30677 tabortdc and tabortdci builtins when not in 64-bit mode.
30678 Modify code to handle the loss of the HTM define_expands.
30679 Emit code to copy the CR register to TARGET.
30680 (htm_init_builtins): Modify code to handle the loss of the HTM
30682 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
30683 (RS6000_BTC_64BIT): Likewise.
30684 (RS6000_BTC_CR): New macro.
30685 * doc/extend.texi: Update documentation for htm builtins.
30687 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30689 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
30690 of manually swapping.
30691 (simplify_associative_operation): Likewise.
30692 (simplify_binary_operation): Likewise.
30693 (simplify_plus_minus): Likewise.
30694 (simplify_relational_operation): Likewise.
30695 (simplify_ternary_operation): Likewise.
30697 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
30699 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
30700 (xs_hi_nonmemory_operand): Remove error.
30701 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
30702 general_operand rather than xs_hi_general_operand.
30704 2015-04-27 Richard Biener <rguenther@suse.de>
30706 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
30707 (record_equivalences_from_stmt): Valueize rhs.
30708 (record_equality): Canonicalize x and y order via
30709 tree_swap_operands_p. Do not swap operands for same loop depth.
30711 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
30715 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
30716 Add hint how to use own spec file.
30718 2015-04-27 Jakub Jelinek <jakub@redhat.com>
30720 PR tree-optimization/65875
30721 * tree-vrp.c (update_value_range): If in is_new case setting
30722 old_vr to VR_VARYING, also set new_vr to it. Remove
30723 old_vr->type == VR_VARYING test.
30724 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
30725 SSA_PROP_INTERESTING if update_value_range returned true,
30726 but new range is VR_VARYING.
30728 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
30730 * combine.c (sign_extend_short_imm): New.
30731 (set_nonzero_bits_and_sign_copies): Use above new function for sign
30732 extension of src short immediate.
30733 (reg_nonzero_bits_for_combine): Likewise for tem.
30735 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
30737 * stor-layout.c (self_referential_component_ref_p): New predicate.
30738 (copy_self_referential_tree_r): Use it.
30739 (self_referential_size): Punt for simple operations directly involving
30740 self-referential component references.
30741 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
30743 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
30745 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
30747 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
30749 * vec.h (vec): Make splice arguments const. Update definitions
30752 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
30754 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
30757 2015-04-26 Tom de Vries <tom@codesourcery.com>
30759 PR tree-optimization/65826
30760 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
30762 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
30764 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
30765 (*madd3<mode>): Ditto.
30766 (*msub4<mode>): Ditto.
30767 (*msub3<mode>): Ditto.
30768 (*nmadd4<mode>): Ditto.
30769 (*nmadd3<mode>): Ditto.
30770 (*nmadd4<mode>_fastmath): Ditto.
30771 (*nmadd3<mode>_fastmath): Ditto.
30772 (*nmsub4<mode>): Ditto.
30773 (*nmsub3<mode>): Ditto.
30774 (*nmsub4<mode>_fastmath): Ditto.
30775 (*nmsub3<mode>_fastmath): Ditto.
30777 2015-04-24 Jason Merrill <jason@redhat.com>
30780 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
30781 down when building TYPE_CANONICAL.
30782 (build_pointer_type_for_mode): Likewise.
30784 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
30786 * genrecog.c (validate_pattern): Check matching constraint refers
30787 to a lower numbered operand.
30789 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
30792 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
30793 save to independent variables use the Save attribute. This will
30794 allow these options to be modified with the #pragma/attribute
30796 (-mallow-movmisalign): Likewise.
30797 (-mallow-df-permute): Likewise.
30798 (-msched-groups): Likewise.
30799 (-malways-hint): Likewise.
30800 (-malign-branch-targets): Likewise.
30801 (-mvectorize-builtins): Likewise.
30802 (-msave-toc-indirect): Likewise.
30804 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
30805 can be set via the #pragma/attribute target support.
30806 (rs6000_opt_vars): Likewise.
30807 (rs6000_inner_target_options): If VSX was set, also set
30808 -mno-avoid-indexed-addresses.
30810 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30812 * config/arm/iterators.md (shiftable_ops): Rename to...
30813 (SHIFTABLE_OPS): ... This. Update use in comments.
30814 (ior_xor): Rename to...
30815 (IOR_XOR): ... This.
30816 (vqh_ops): Rename to...
30817 (VQH_OPS): ... This.
30818 (vqhs_ops): Rename to...
30819 (VQHS_OPS): ... This.
30820 (rshifts): Rename to...
30821 (RSHIFTS): ... This.
30822 (returns): Rename to...
30823 (RETURNS): ... This.
30824 * config/arm/arm.md: Update uses of the above.
30825 * config/arm/neon.md: Likewise.
30827 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30829 * config.host (case ${host}): Add aarch64*-*-linux case.
30830 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
30831 fields to all the cores.
30832 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
30833 Add MCPU_MTUNE_NATIVE_SPECS.
30834 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
30835 field to all extensions.
30836 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
30837 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
30838 Adjust definition of AARCH64_OPT_EXTENSION.
30839 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
30840 (MCPU_MTUNE_NATIVE_SPECS): Define.
30841 * config/aarch64/driver-aarch64.c: New file.
30842 * config/aarch64/x-arch64: New file.
30843 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
30846 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
30847 Wei Mi <wmi@google.com>
30849 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
30850 * config/i386/i386.c (extract_base_offset_in_addr): New function.
30851 (ix86_operands_ok_for_move_multiple): Ditto.
30852 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
30853 (movlpd/movhpd to movupd peephole2): Ditto.
30855 2015-04-24 Marek Polacek <polacek@redhat.com>
30858 * input.h (from_macro_expansion_at): Define.
30861 * doc/invoke.texi: Update description of -Wlogical-op.
30863 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
30865 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
30866 ternary operator in fprintf and harmonize spacing.
30868 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
30870 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
30871 Mark operand1 commutative.
30873 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
30875 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
30876 input operands in memory.
30877 (*vec_concatv2si_sse4_1): Ditto.
30878 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
30879 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
30881 (vec_extract_hi_v32hi): Ditto.
30882 (vec_extract_hi_v64hi): Ditto.
30883 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
30885 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
30886 Steven Bosscher <steven@gcc.gnu.org>
30888 PR rtl-optimization/34503
30889 * cprop.c (cprop_reg_p): New.
30890 (hash_scan_set): Use above function to check if register can be
30892 (find_avail_set): Return up to two sets, one whose source is a
30893 register and one whose source is a constant. Sets are returned in an
30894 array passed as parameter rather than as a return value.
30895 (cprop_insn): Use a do while loop rather than a goto. Try each of the
30896 sets returned by find_avail_set, starting with the one whose source is
30897 a constant. Use cprop_reg_p to check if register can be propagated.
30898 (do_local_cprop): Use cprop_reg_p to check if register can be
30900 (implicit_set_cond_p): Likewise.
30902 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
30904 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
30905 (sem_function::equals): IGNORED_NODES parameter is now unused;
30906 update call of equals_private.
30907 (sem_function::equals_private): Do not call equals_wpa; skip
30908 gimple body matching if there is no body.
30909 (sem_function::init): Add logic to hash tthunk info.
30910 (sem_function::parse): Also parse thunks.
30911 * ipa-icf.h (equals_private): Update declaration.
30913 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30915 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
30916 asterisk from name so this can be generated directly.
30917 (*altivec_stvx_<mode>_internal): Likewise.
30918 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
30919 that this is never called during or after reload/lra.
30920 (rs6000_frame_related): Remove split_reg
30921 argument and logic that references it.
30922 (emit_frame_save): Remove last parameter from call to
30923 rs6000_frame_related.
30924 (rs6000_emit_prologue): Remove last parameter from eight calls to
30925 rs6000_frame_related. Force generation of stvx instruction for
30926 Altivec register saves. Remove split_reg handling, which is no
30928 (rs6000_emit_epilogue): Force generation of lvx instruction for
30929 Altivec register restores.
30931 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30933 * config/rs6000/rs6000.opt (mcrypto): Change option description to
30934 match category changes in ISA 2.07B.
30936 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30938 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
30940 (cmp_op, cmp_type): New code attributes.
30941 (NEON_VCMP, NEON_VACMP): New int iterators.
30942 (cmp_op_unsp): New int attribute.
30943 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
30944 (neon_vceq<mode>): Delete.
30945 (neon_vc<cmp_op><mode>_insn): New pattern.
30946 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
30947 (neon_vcgeu<mode>): Delete.
30948 (neon_vcle<mode>): Likewise.
30949 (neon_vclt<mode>: Likewise.
30950 (neon_vcage<mode>): Likewise.
30951 (neon_vcagt<mode>): Likewise.
30952 (neon_vca<cmp_op><mode>): New define_expand.
30953 (neon_vca<cmp_op><mode>_insn): New pattern.
30954 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
30956 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
30958 * tree.h (attribute_value_equal): Declare.
30959 * tree.c (attribute_value_equal): Export.
30961 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
30963 * ipa-icf.c (sem_item::compare_attributes): New function.
30964 (sem_item::compare_referenced_symbol_properties): Compare variable
30966 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
30967 (sem_function::param_used_p): New function.
30968 (sem_function::equals_wpa): Fix attribute comparsion; match
30969 parameter type codes; do not compare paremter flags when
30970 they are not used; compare edge flags; compare indirect calls.
30971 (sem_item::update_hash_by_addr_refs): Hash reference type.
30972 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
30973 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
30974 reference use type.
30975 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
30976 * ipa-icf.h (compare_attributes, param_used_p): Declare.
30978 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
30980 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
30982 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
30983 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
30984 (sem_item::compare_referenced_symbol_properties): New.
30985 (sem_item::hash_referenced_symbol_properties): New.
30986 (sem_item::compare_cgraph_references): Rename to ...
30987 (sem_item::compare_symbol_references): ... this one; use
30988 compare_referenced_symbol_properties.
30989 (sem_function::equals_wpa): Do not compare
30990 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
30991 DECL_IS_OPERATOR_NEW; compare pointer sizes.
30992 (sem_item::update_hash_by_addr_refs): Call
30993 hash_referenced_symbol_properties.
30994 (sem_item::update_hash_by_local_refs): Cleanup.
30995 (sem_function::merge): Do not mix up symbol properties.
30996 (sem_variable::equals_wpa): Use compare_symbol_references.
30997 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
30998 (sem_item::hash_referenced_symbol_properties): New.
30999 (sem_item::compare_symbol_references): New.
31000 (sem_item::compare_cgraph_references): Remove.
31002 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
31005 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
31006 Emit size of local.
31008 2015-04-23 Nick Clifton <nickc@redhat.com>
31010 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
31011 ATTRIBUTE_UNUSED to x parameter.
31012 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
31014 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31016 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
31017 TARGET_CRYPTO to TARGET_P8_VECTOR>
31018 (crypto_vpermxor_<mode>): Likewise.
31019 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
31020 (BU_CRYPTO_3A): Likewise.
31021 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
31022 (BU_CRYPTO_OVERLOAD_3A): New #define.
31023 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
31024 (VPMSUMH): Likewise.
31025 (VPMSUMW): Likewise.
31026 (VPMSUMD): Likewise.
31027 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
31028 (VPERMXOR_V4SI): Likewise.
31029 (VPERMXOR_V8HI): Likewise.
31030 (VPERMXOR_V16QI): Likewise.
31031 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
31032 BU_CRYPTO_OVERLOAD_2A.
31033 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
31034 BU_CRYPTO_OVERLOAD_3A.
31035 * config/rs6000/rs6000.opt (mcrypto): Change description of
31038 2015-04-23 Richard Biener <rguenther@suse.de>
31040 * passes.def: Remove copy propagation passes run directly after CCP.
31041 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
31043 (ccp_visit_phi_node): Rework to handle first executable edge
31046 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
31048 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
31049 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31050 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31051 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
31052 (thumb_legimitimize_reload_address): Remove.
31053 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
31055 (thumb_legimitimize_reload_address): Remove.
31057 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31059 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
31061 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31063 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
31065 (store_multiple): Likewise.
31067 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31069 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
31070 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
31071 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
31072 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
31073 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
31074 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
31075 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
31076 Specify issue_rate value.
31077 (arm_issue_rate): Look up issue rate from tuning structs. Remove
31078 large switch statement.
31079 (arm_marvell_pj4_tune): New struct.
31080 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
31083 2015-04-23 Richard Biener <rguenther@suse.de>
31085 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
31086 (vect_find_last_store_in_slp_instance): Rename to ...
31087 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
31088 (vect_analyze_slp_cost_1): Use vector_load for constant defs
31089 and vec_construct for external defs when estimating prologue cost.
31090 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
31091 Compute costs here only when vectorizing loops.
31092 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
31093 have been determined.
31094 (vect_schedule_slp_instance): Simplify vectorized code placement
31095 and prepare for in-BB external defs.
31096 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
31097 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
31098 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
31100 (vect_model_load_cost): Likewise.
31101 (vectorizable_store): Instead add it here.
31102 (vectorizable_load): Likewise.
31103 (vect_is_simple_use): Dump def type textually.
31105 2015-04-23 Richard Biener <rguenther@suse.de>
31107 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
31108 * cfgloop.c (verify_loop_structure): Verify the root loop node.
31109 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
31110 instead of get_eh_region_from_lp_number.
31111 * loop-init.c (fix_loop_structure): If we removed a loop, reset
31114 2015-04-23 Anton Blanchard <anton@samba.org>
31116 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
31117 need for -mprofile-kernel to save LR to stack.
31119 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31121 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
31123 (insn_is_swappable_p): Return 1 for a convert from double to
31124 single precision when all of its uses are splats of BE element
31127 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
31129 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
31131 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31134 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
31135 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
31136 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
31138 (rs6000_builtin_mask_for_load): Return 0 for targets with
31139 efficient unaligned VSX accesses so that the vectorizer will use
31140 direct unaligned loads.
31141 (rs6000_builtin_support_vector_misalignment): Always return true
31142 for targets with efficient unaligned VSX accesses.
31143 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
31144 stores on targets with efficient unaligned VSX accesses is almost
31145 always the same as the cost of an aligned load or store, so model
31147 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
31148 unaligned vectors if we have efficient unaligned VSX accesses.
31149 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
31150 undocumented option.
31152 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31155 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
31157 * config.gcc (LIBC_MUSL): New tm_defines macro.
31158 * config/linux.h (OPTION_MUSL): Define.
31159 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31160 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31161 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31163 * config/linux.opt (mmusl): New option.
31164 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31165 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31167 * configure: Regenerate.
31169 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
31171 * config.gcc (LIBC_MUSL): New tm_defines macro.
31172 * config/linux.h (OPTION_MUSL): Define.
31173 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31174 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31175 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31177 * config/linux.opt (mmusl): New option.
31178 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31179 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31181 * configure: Regenerate.
31183 2015-04-22 Yury Gribov <y.gribov@samsung.com>
31185 * doc/invoke.texi (-fsanitize-sections): Update description.
31186 * asan.c (set_sanitized_sections): Parse incoming arg.
31187 (section_sanitized_p): Support wildcards.
31189 2015-04-22 Tom de Vries <tom@codesourcery.com>
31191 PR tree-optimization/65823
31192 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
31193 equality between ap_copy and ap.
31195 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31198 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
31200 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31203 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
31205 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31208 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
31209 remove already contained t-files.
31211 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31213 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
31214 Remove unneeded forward declarations.
31215 (suitable_for_tail_call_opt_p): Commentary typo fix.
31217 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31219 * varasm.c (emit_bss): Remove redundant guard.
31221 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31223 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
31225 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31227 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
31229 2015-04-22 Hale Wang <hale.wang@arm.com>
31230 Terry Guo <terry.guo@arm.com>
31232 PR rtl-optimization/64818
31233 * combine.c (can_combine_p): Don't combine user-specified
31234 register if it is in an asm input.
31236 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
31239 * passes.def (early_optimizations): Add pass_dse.
31241 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31243 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
31244 * reorg.c (redundant_insn): Remove ifdef
31245 INSN_REFERENCES_ARE_DELAYED.
31246 * resource.c (mark_referenced_resources): Likewise.
31248 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31250 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
31251 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
31252 * resource.c (mark_set_resources): Likewise.
31254 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31256 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
31257 * cfgcleanup.c (flow_find_cross_jump): Likewise.
31258 (flow_find_head_matching_sequence): Likewise.
31259 (try_head_merge_bb): Likewise.
31260 * combine.c (can_combine_p): Likewise.
31261 (try_combine): Likewise.
31262 (distribute_notes): Likewise.
31263 * df-problems.c (can_move_insns_across): Likewise.
31264 * final.c (final): Likewise.
31265 * gcse.c (insert_insn_end_basic_block): Likewise.
31266 * ira.c (find_moveable_pseudos): Likewise.
31267 * reorg.c (try_merge_delay_insns): Likewise.
31268 (fill_simple_delay_slots): Likewise.
31269 (fill_slots_from_thread): Likewise.
31270 * sched-deps.c (sched_analyze_2): Likewise.
31272 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31274 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
31275 PIC_OFFSET_TABLE_REGNUM.
31277 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31279 * alias.c (init_alias_target): Remove ifdef
31280 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
31281 * df-scan.c (df_insn_refs_collect): Likewise.
31282 (df_get_regular_block_artificial_uses): Likewise.
31283 (df_get_eh_block_artificial_uses): Likewise.
31284 (df_get_entry_block_def_set): Likewise.
31285 (df_get_exit_block_use_set): Likewise.
31286 * emit-rtl.c (gen_rtx_REG): Likewise.
31287 * ira.c (ira_setup_eliminable_regset): Likewise.
31288 * reginfo.c (init_reg_sets_1): Likewise.
31289 * regrename.c (rename_chains): Likewise.
31290 * reload1.c (reload): Likewise.
31291 (eliminate_regs_in_insn): Likewise.
31292 * resource.c (mark_referenced_resources): Likewise.
31293 (init_resource_info): Likewise.
31295 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31297 * defaults.h (MASK_RETURN_ADDR): New definition.
31298 * except.c (expand_builtin_extract_return_addr): Remove ifdef
31301 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31303 * defaults.h (RETURN_ADDR_OFFSET): New definition.
31304 * except.c (expand_builtin_extract_return_addr): Remove ifdef
31305 RETURN_ADDR_OFFSET.
31306 (expand_builtin_frob_return_addr): Likewise.
31308 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31310 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
31311 (try_redirect_by_replacing_jump): Likewise.
31312 (rtl_tidy_fallthru_edge): Likewise.
31313 * combine.c (insn_a_feeds_b): Likewise.
31314 (find_split_point): Likewise.
31315 (simplify_set): Likewise.
31316 * cprop.c (cprop_jump): Likewise.
31317 * cse.c (cse_extended_basic_block): Likewise.
31318 * df-problems.c (can_move_insns_across): Likewise.
31319 * function.c (emit_use_return_register_into_block): Likewise.
31320 * haifa-sched.c (sched_init): Likewise.
31321 * ira.c (find_moveable_pseudos): Likewise.
31322 * loop-invariant.c (find_invariant_insn): Likewise.
31323 * lra-constraints.c (curr_insn_transform): Likewise.
31324 * postreload.c (reload_combine_recognize_const_pattern):
31326 * reload.c (find_reloads): Likewise.
31327 * reorg.c (delete_scheduled_jump): Likewise.
31328 (steal_delay_list_from_target): Likewise.
31329 (steal_delay_list_from_fallthrough): Likewise.
31330 (redundant_insn): Likewise.
31331 (fill_simple_delay_slots): Likewise.
31332 (fill_slots_from_thread): Likewise.
31333 (delete_computation): Likewise.
31334 * sched-rgn.c (add_branch_dependences): Likewise.
31336 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31338 * genconfig.c (main): Always define HAVE_cc0.
31339 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
31341 * cfgcleanup.c (flow_find_cross_jump): Likewise.
31342 (flow_find_head_matching_sequence): Likewise.
31343 (try_head_merge_bb): Likewise.
31344 * cfgrtl.c (rtl_merge_blocks): Likewise.
31345 (try_redirect_by_replacing_jump): Likewise.
31346 (rtl_tidy_fallthru_edge): Likewise.
31347 * combine.c (do_SUBST_MODE): Likewise.
31348 (insn_a_feeds_b): Likewise.
31349 (combine_instructions): Likewise.
31350 (can_combine_p): Likewise.
31351 (try_combine): Likewise.
31352 (find_split_point): Likewise.
31354 (simplify_set): Likewise.
31355 (distribute_notes): Likewise.
31356 * cprop.c (cprop_jump): Likewise.
31357 * cse.c (cse_extended_basic_block): Likewise.
31358 * df-problems.c (can_move_insns_across): Likewise.
31359 * final.c (final): Likewise.
31360 (final_scan_insn): Likewise.
31361 * function.c (emit_use_return_register_into_block): Likewise.
31362 * gcse.c (insert_insn_end_basic_block): Likewise.
31363 * haifa-sched.c (sched_init): Likewise.
31364 * ira.c (find_moveable_pseudos): Likewise.
31365 * loop-invariant.c (find_invariant_insn): Likewise.
31366 * lra-constraints.c (curr_insn_transform): Likewise.
31367 * optabs.c (prepare_cmp_insn): Likewise.
31368 * postreload.c (reload_combine_recognize_const_pattern):
31370 * reload.c (find_reloads): Likewise.
31371 (find_reloads_address_1): Likewise.
31372 * reorg.c (delete_scheduled_jump): Likewise.
31373 (steal_delay_list_from_target): Likewise.
31374 (steal_delay_list_from_fallthrough): Likewise.
31375 (try_merge_delay_insns): Likewise.
31376 (redundant_insn): Likewise.
31377 (fill_simple_delay_slots): Likewise.
31378 (fill_slots_from_thread): Likewise.
31379 (delete_computation): Likewise.
31380 (relax_delay_slots): Likewise.
31381 * sched-deps.c (sched_analyze_2): Likewise.
31382 * sched-rgn.c (add_branch_dependences): Likewise.
31384 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31386 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
31387 that is trivially ded on non cc0 targets.
31388 (simplify_set): Likewise.
31389 (mark_used_regs_combine): Likewise.
31390 * cse.c (new_basic_block): Likewise.
31391 (fold_rtx): Likewise.
31392 (cse_insn): Likewise.
31393 (cse_extended_basic_block): Likewise.
31394 (set_live_p): Likewise.
31395 * rtlanal.c (canonicalize_condition): Likewise.
31396 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
31398 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31400 * conditions.h: Define macros even if HAVE_cc0 is undefined.
31401 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
31402 * final.c: Likewise.
31403 * jump.c: Likewise.
31404 * recog.c: Likewise.
31405 * recog.h: Declare functions even when HAVE_cc0 is undefined.
31406 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
31408 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31410 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
31411 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
31412 * builtins.c (expand_builtin): Remove check if
31413 EH_RETURN_DATA_REGNO is defined.
31414 * df-scan.c (df_bb_refs_collect): Likewise.
31415 (df_get_exit_block_use_set): Likewise.
31416 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
31417 * ira-lives.c (process_bb_node_lives): Likewise.
31418 * lra-lives.c (process_bb_lives): Likewise.
31420 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
31422 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
31423 FIRST_PSEUDO_REG): New.
31424 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
31425 (ARG_POINTER_REGNUM): Define to ARGP_REG.
31426 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
31427 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
31428 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
31429 (FIRST_INT_REG): New.
31430 (LAST_INT_REG): New.
31431 (FIRST_*_REG): Define using *_REG.
31432 (LAST_*_REG): Ditto.
31433 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
31434 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
31435 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
31437 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31439 * expmed.c: (synth_mult): Only assume overlapping
31440 shift with previous steps in alg_sub_t_m2 case.
31442 2015-04-21 Richard Biener <rguenther@suse.de>
31444 PR tree-optimization/65650
31445 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
31446 transitions involving copies.
31447 (set_lattice_value): Adjust for copy lattice state.
31448 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
31449 if that doesn't dominate the merge point.
31450 (bit_value_unop): Adjust what we treat as varying mask.
31451 (bit_value_binop): Likewise.
31452 (bit_value_assume_aligned): Likewise.
31453 (evaluate_stmt): When we simplified to a SSA name record a copy
31454 instead of dropping to varying.
31455 (visit_assignment): Simplify.
31457 * gimple-match.h (gimple_simplify): Add another callback.
31458 * gimple-fold.c (fold_stmt_1): Adjust caller.
31459 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
31460 for the 2nd callback.
31461 * gimple-match-head.c (gimple_simplify): Add a callback that is
31462 used to valueize the stmt operands and use it that way.
31464 2015-04-21 Richard Biener <rguenther@suse.de>
31466 PR tree-optimization/65788
31467 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
31469 2015-04-21 Richard Biener <rguenther@suse.de>
31471 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
31472 vec_construct cost by vec_stmt_cost.
31474 2015-04-21 Richard Biener <rguenther@suse.de>
31476 * cfghooks.h (create_basic_block): Replace with two overloads
31477 for RTL and GIMPLE.
31478 (split_block): Likewise.
31479 * cfghooks.c (split_block): Rename to ...
31480 (split_block_1): ... this.
31481 (split_block): Add two type-safe overloads for RTL and GIMPLE.
31482 (split_block_after_labels): Call split_block_1.
31483 (create_basic_block): Rename to ...
31484 (create_basic_block_1): ... this.
31485 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
31486 (create_empty_bb): Call create_basic_block_1.
31487 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
31488 split_block_after_labels.
31489 * omp-low.c (expand_parallel_call): Likewise.
31490 (expand_omp_target): Likewise.
31491 (simd_clone_adjust): Likewise.
31492 * tree-chkp.c (chkp_get_entry_block): Likewise.
31493 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
31494 create_basic_block overload.
31495 (cgraph_node::expand_thunk): Likewise.
31496 * tree-cfg.c (make_blocks): Likewise.
31497 (handle_abnormal_edges): Likewise.
31498 * tree-inline.c (copy_bb): Likewise.
31500 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31502 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
31504 (*xor_one_cmplsidi3_ze): Likewise.
31506 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
31508 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
31509 use df_remove_problem rather than manually removing problems, leaving
31510 holes in df->problems_in_order[].
31512 2015-04-21 Tom de Vries <tom@codesourcery.com>
31514 PR tree-optimization/65802
31515 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
31517 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31519 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
31521 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
31522 at '.'. Assert that there's enough space for everything.
31524 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
31526 PR tree-optimization/64950
31528 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
31531 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
31534 2015-04-20 Shiva Chen <shiva0217@gmail.com>
31536 PR rtl-optimization/64916
31537 * cfgcleanup.c (values_equal_p): New function.
31538 (can_replace_by): Use it.
31540 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
31543 * doc/invoke.texi ([-Wnarrowing]): Update.
31545 2015-04-20 Jeff Law <law@redhat.com>
31547 PR tree-optimization/65658
31548 * tree-ssa-threadupdate.c (redirection_block_p): Remove
31549 redundant test for GIMPLE_ASSIGN in last change.
31551 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
31553 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
31554 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
31555 (legitimize_tls_address): Ditto.
31556 (ix86_expand_move): Ditto.
31557 (ix86_expand_binary_operator): Remove reload_in_progress checks.
31558 (ix86_expand_unary_operator): Ditto.
31559 * config/i386/predicates.md (index_register_operand): Ditto.
31561 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
31563 * reorg.c (try_merge_delay_insns): Improve correctness checking
31564 for targets with multiple delay slots.
31566 2015-04-20 Jeff Law <law@redhat.com>
31568 PR tree-optimization/65658
31569 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
31572 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
31574 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
31575 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
31578 2015-04-20 Jakub Jelinek <jakub@redhat.com>
31581 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
31583 2015-04-20 Richard Biener <rguenther@suse.de>
31585 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
31586 * gimple-fold.c (gimple_build_valueize): New function.
31587 (gimple_build): Always use gimple_build_valueize as valueize hook.
31589 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
31592 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
31593 and overwrite variable parts if <= 1/2 the elements are variable.
31595 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
31597 PR rtl-optimization/65805
31598 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
31599 Don't use difference of offset and previous offset if
31600 update_sp_offset is non-zero.
31601 (eliminate_regs_in_insn): Ditto.
31602 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
31603 lra_eliminate_regs_1 call.
31604 * lra-constraints.c (get_equiv_with_elimination): Ditto.
31606 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
31608 * hash-table.h: Remove version of hash_table that stored value_type *.
31609 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
31610 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
31611 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
31612 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
31613 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
31614 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
31615 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
31616 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
31617 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
31618 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
31619 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
31620 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
31621 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
31622 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
31623 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
31624 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
31626 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31627 Jakub Jelinek <jakub@redhat.com>
31630 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
31631 subsequent SH_NONE operand does not overwrite an existing *special
31633 (adjust_extract): Handle case where a vec_extract operation is
31634 wrapped in a PARALLEL.
31636 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
31639 * config/i386/i386.c (ix86_binds_local_p): Define only if
31640 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
31642 2015-04-17 Jeff Law <law@redhat.com>
31644 PR tree-optimization/47679
31645 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
31646 * tree-ssa-scopedtables.c: New file.
31647 * tree-ssa-scopedtables.h: New file.
31648 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
31649 (const_and_copies): Change name/type.
31650 (record_const_or_copy): Move into tree-ssa-scopedtables.c
31651 (record_const_or_copy_1): Similarly.
31652 (restore_vars_to_original_value): Similarly.
31653 (pass_dominator::execute): Create and destroy const_and_copies table.
31654 (thread_across_edge): Update passing of const_and_copies.
31655 (record_temporary_equivalence): Use method calls rather than
31656 manipulating const_and_copies directly.
31657 (record_equality, cprop_into_successor_phis): Similarly.
31658 (dom_opt_dom_walker::before_dom_children): Similarly.
31659 (dom_opt_dom_walker::after_dom_children): Similarly.
31660 (eliminate_redundant_computations): Similarly.
31661 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
31662 (record_temporary_equivalence): Likewise.
31663 (invalidate_equivalences): Likewise.
31664 (record_temporary_equivalences_from_phis): Update due to type
31665 change of const_and_copies. Use method calls rather than
31666 manipulating the stack directly.
31667 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
31668 (thread_through_normal_block, thread_across_edge): Likewise.
31669 (thread_across_edge): Likewise.
31670 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
31671 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
31673 (identify_jump_threads): Update due to type change of equiv_stack.
31674 (finalize_jump_threads): Delete the equiv_stack when complete.
31676 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
31678 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
31679 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
31680 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
31682 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
31685 * config.gcc: Exit with a comment when we do not have a major version
31686 number for the FreeBSD target.
31688 2015-04-17 Jakub Jelinek <jakub@redhat.com>
31691 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
31692 maybe_allows_mem bitfields.
31693 (maybe_allows_none_start, maybe_allows_none_end,
31694 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
31695 maybe_allows_mem_end): New variables.
31696 (compute_maybe_allows): New function.
31697 (add_constraint): Use it to initialize maybe_allows_reg and
31698 maybe_allows_mem fields.
31699 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
31700 is_address constraints such that those that allow neither mem nor
31701 reg come first, then those that only allow reg but not mem, then
31702 those that only allow mem but not reg, then the rest.
31703 (write_allows_reg_mem_function): New function.
31704 (write_tm_preds_h): Call it.
31705 * stmt.c (parse_output_constraint, parse_input_constraint): Use
31706 the generated insn_extra_constraint_allows_reg_mem function
31707 instead of always setting *allows_reg = true; *allows_mem = true;
31708 for unknown extra constraints.
31710 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
31713 * output.h (default_binds_local_p_3): New.
31714 * varasm.c (default_binds_local_p_3): Make it public. Take an
31715 argument to indicate if common symbol may be local. If common
31716 symbol may be local, treat non-external variable as defined
31718 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
31719 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
31720 * config/i386/i386.c (ix86_binds_local_p): New.
31721 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
31722 ix86_binds_local_p.
31724 2015-04-17 Jakub Jelinek <jakub@redhat.com>
31727 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
31728 trying mem_loc_descriptor on XEXP (rtl, 0).
31730 2015-04-17 Martin Liska <mliska@suse.cz>
31732 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
31733 Release symbol_compare_collection.
31734 * ipa-reference.c: Add TODO that a vector should be released.
31736 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
31739 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
31740 to new AVR-LibC file layout (bug #44574).
31741 (*avrlibc_devicelib): Same.
31742 * config/avr/avr-mcus.def: Adjust comments.
31743 * config/avr/avr.opt (nodevicelib): Adjust help.
31745 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
31747 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
31749 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
31752 * gimplify.c (gimplify_init_constructor): Always emit a
31753 side-effecting constructor.
31755 2015-04-17 Tom de Vries <tom@codesourcery.com>
31757 PR tree-optimization/64950
31758 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
31759 in cfun->curr_properties.
31760 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
31761 if we generate an IFN_VA_ARG.
31762 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
31763 function if PROP_gimple_lva is not set in src function.
31765 2015-04-17 Tom de Vries <tom@codesourcery.com>
31766 Michael Matz <matz@suse.de>
31768 PR tree-optimization/64950
31769 * gimple-iterator.c (update_modified_stmts): Remove static.
31770 * gimple-iterator.h (update_modified_stmts): Declare.
31771 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
31772 (gimplify_va_arg_internal): New function.
31773 (gimplify_va_arg_expr): Use IFN_VA_ARG.
31774 * gimplify.h (gimplify_va_arg_internal): Declare.
31775 * internal-fn.c (expand_VA_ARG): New unreachable function.
31776 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
31777 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
31778 (expand_ifn_va_arg): New function.
31779 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
31780 (pass_stdarg::execute): Call expand_ifn_va_arg.
31781 (pass_data_lower_vaarg): New pass_data.
31782 (pass_lower_vaarg): New gimple_opt_pass.
31783 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
31784 (make_pass_lower_vaarg): New function.
31785 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
31786 properties_required field.
31787 * passes.def (all_passes): Add pass_lower_vaarg.
31788 * tree-pass.h (PROP_gimple_lva): Add define.
31789 (make_pass_lower_vaarg): Declare.
31791 2015-04-17 Tom de Vries <tom@codesourcery.com>
31793 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
31794 * calls.c (call_expr_flags): Same.
31796 2015-04-17 Tom de Vries <tom@codesourcery.com>
31798 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
31799 (pass_stdarg::execute): ... here.
31801 2015-04-17 Tom de Vries <tom@codesourcery.com>
31802 Michael Matz <matz@suse.de>
31804 * tree-cfg.c (make_blocks_1): Factor out of ...
31805 (make_blocks): ... here.
31806 (make_edges_bb): Factor out of ...
31807 (make_edges): ... here.
31808 (gimple_find_sub_bbs): New function.
31809 * tree-cfg.h (gimple_find_sub_bbs): Declare.
31811 2015-04-17 Tom de Vries <tom@codesourcery.com>
31813 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
31815 2015-04-17 Yury Gribov <y.gribov@samsung.com>
31817 * asan.c (set_sanitized_sections): New function.
31818 (section_sanitized_p): Ditto.
31819 (asan_protect_global): Optionally sanitize user-defined
31821 * asan.h (set_sanitized_sections): Declare new function.
31822 * common.opt (fsanitize-sections): New option.
31823 * doc/invoke.texi (-fsanitize-sections): Document new option.
31824 * opts-global.c (handle_common_deferred_options): Handle new
31827 2015-04-17 Jakub Jelinek <jakub@redhat.com>
31830 * dwarf2out.c (loc_list_from_tree): Return NULL
31831 for DEBUG_EXPR_DECL.
31833 2015-04-17 Christian Bruel <christian.bruel@st.com>
31835 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
31838 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
31840 * ira-color.c (setup_left_conflict_sizes_p): Do not process
31841 node itself when computing left conflict subnode size.
31843 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
31845 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
31846 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
31847 *fop_<mode>_1_sse using enabled attribute. Use
31848 register_mixssei387nonimm_operand operand 1 predicate. Change
31849 alternative 3 constraints from "x" to "v".
31851 2015-04-16 Richard Biener <rguenther@suse.de>
31853 PR tree-optimization/65774
31854 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
31855 bit-value tracking on.
31857 2015-04-16 Richard Biener <rguenther@suse.de>
31859 PR tree-optimization/64277
31860 * tree-vrp.c (check_array_ref): Fix anti-range handling,
31861 simplify upper bound handling.
31862 (search_for_addr_array): Simplify.
31863 (check_array_bounds): Handle ADDR_EXPRs here.
31864 (check_all_array_refs): Simplify.
31866 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
31868 * config/i386/i386.c (print_reg): Rewrite function.
31870 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31872 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
31873 Invert the condition.
31875 2015-04-16 Renlin Li <renlin.li@arm.com>
31877 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
31878 simplifications for UNSIGNED_FLOAT.
31880 2015-04-16 Nick Clifton <nickc@redhat.com>
31882 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
31884 (enum rl78_cpu_type): New.
31885 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
31886 (umulhi3_shift_virt): Remove m constraint from operand 1.
31887 (umulqihi3_virt): Likewise.
31888 * config/rl78/rl78.c (rl78_option_override): Add code to process
31889 -mcpu and -mmul options.
31890 (rl78_alloc_physical_registers): Add code to handle divhi and
31891 divsi valloc attributes.
31892 (set_origin): Likewise.
31893 * config/rl78/rl78.h (RL78_MUL_G14): Define.
31894 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
31895 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
31897 (ASM_SPEC): Pass -mcpu on to assembler.
31898 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
31899 (mulqi3_rl78): Likewise.
31900 (mulhi3_g13): Likewise.
31901 (mulhi3): Generate the G13 or G14 versions of the insn directly.
31902 (mulsi3): Likewise.
31903 (mulhi3_g14): Add clobbers of AX and BC.
31904 (mulsi3_g14): Likewise.
31905 (mulsi3_g13): Likewise.
31906 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
31907 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
31908 * config/rl78/rl78.opt (mmul): Initialise value to
31910 (mcpu): New option.
31911 (m13, m14, mrl78): New option aliases.
31912 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
31913 (MULTILIB_DIRNAMES): Add g13 and g14.
31914 * doc/invoke.texi: Document -mcpu and -mmul options.
31916 2015-04-16 Richard Biener <rguenther@suse.de>
31918 * tree-ssa-ccp.c (likely_value): See if we have operands that
31919 are marked as never simulate again and return CONSTANT in this
31921 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
31922 not have any operands that will be simulated again as
31923 not being simulated again.
31925 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
31927 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
31928 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
31929 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
31931 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
31933 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
31934 *float<SWI48:mode><MODEF:mode>2_sse.
31935 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
31937 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
31940 2015-04-15 Tom de Vries <tom@codesourcery.com>
31943 * function.c (push_dummy_function): New function.
31944 (init_dummy_function_start): Use push_dummy_function.
31945 (pop_dummy_function): New function. Factored out of ...
31946 (expand_dummy_function_end): ... here.
31947 * function.h (push_dummy_function, pop_dummy_function): Declare.
31948 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
31949 pop_dummy_function.
31950 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
31952 2015-04-15 Jeff Law <law@redhat.com>
31954 PR tree-optimization/47679
31955 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
31956 need for forward declaration in upcoming changes.
31957 (record_conditions, record_edge_info): Likewise.
31959 PR rtl-optimization/42522
31960 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
31961 SIGN_EXTRACT as a whole object rather than simplifying
31964 2015-04-15 Jakub Jelinek <jakub@redhat.com>
31967 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
31968 and GIMPLE_PREDICT use break instead of return true. For
31969 GIMPLE_EH_DISPATCH, compare dispatch region.
31971 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
31973 * doc/extend.texi (__sync Builtins): Simplify some text. Update
31974 details about the implementation. Make clear preference for
31975 __atomic builtins. Reduce possibility of future change.
31977 2015-04-15 Nick Clifton <nickc@redhat.com>
31979 * config/rx/rx.opt (mallow-string-insns): New option.
31980 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
31981 builtin if string instructions are denied.
31982 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
31983 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
31985 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
31986 * config/rx/rx.md (movstr): Enable pattern only if string
31987 instructions are allowed.
31988 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
31989 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
31990 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
31991 (MULTILIB_DIRNAMES): Add no-strings.
31992 * doc/invoke.texi: Document -mno-allow-string-insns.
31994 2015-04-15 Alan Modra <amodra@gmail.com>
31998 PR middle-end/36043
31999 * calls.c (load_register_parameters): Don't load past end of
32000 mem unless suitably aligned.
32002 2015-04-15 Nick Clifton <nickc@redhat.com>
32004 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
32005 decrement instruction as being frame related.
32006 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
32008 If zero extending a function address enclose the operation in
32010 (rl78_preferred_reload_class): New function.
32011 (TARGET_PREFERRED_RELOAD_CLASS): Define.
32012 * config/rl78/rl78.md: Remove useless constraints in expanders.
32013 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
32014 (mulhi3_rl78): Likewise.
32015 (mulhi3_g13): Likewise.
32016 (mulsi3_rl78): Likewise.
32017 (es_addr): Move to before the multiply patterns.
32019 2015-04-15 Alan Modra <amodra@gmail.com>
32021 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
32022 and sequence_stack. Add seq.
32023 (seq_stack): Delete.
32024 * function.c (prepare_function_start): Don't access x_last_insn.
32025 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
32026 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
32027 * emit_rtl.c (start_sequence, push_topmost_sequence,
32028 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
32029 sequence accessors.
32030 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
32031 remove_insn): Likewise. Simplify.
32032 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
32033 and pop_topmost_sequence.
32034 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
32036 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
32038 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
32041 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
32044 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
32046 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
32047 (LEGACY_INT_REGNO_P): Ditto.
32048 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
32049 (ANY_MASK_REG_P): Remove.
32050 (BND_REG_P): Rename from ANY_BND_REG_P.
32051 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
32052 legacy integer registers. Do not handle MMX_REG_P in a special way.
32053 Merge 64byte and 32byte SSE handling.
32055 2015-04-14 Nick Clifton <nickc@redhat.com>
32057 * expr.c (expand_assignment): Force an address offset computation
32058 into a register before changing its mode.
32059 (expand_expr_real_1): Likewise.
32061 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
32063 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
32064 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
32065 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
32066 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
32067 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
32068 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
32069 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
32070 and __aarch64_vget_lane_any.
32072 2015-04-14 Jakub Jelinek <jakub@redhat.com>
32074 PR rtl-optimization/65761
32075 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
32076 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
32078 2015-04-14 Richard Biener <rguenther@suse.de>
32080 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
32081 (graphite_can_represent_scev): Use POINTER_TYPE_P.
32083 2015-04-14 Richard Biener <rguenther@suse.de>
32085 PR tree-optimization/65758
32086 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
32088 (ccp_lattice_meet): Likewise.
32089 (bit_value_unop): Likewise.
32090 (bit_value_binop): Likewise.
32091 (bit_value_assume_aligned): Likewise.
32093 2015-04-14 Christian Bruel <christian.bruel@st.com>
32095 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
32098 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
32100 PR tree-optimization/63387
32101 * match.pd ((x unord x) | (y unord y) -> (x unord y),
32102 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
32104 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
32106 * config/i386/predicates.md (any_QIreg_operand): Rename from
32107 q_regs_operand. Do not process subregs.
32108 (QIreg_operand): Use QI_REGNO_P predicate.
32109 (ext_QIreg_operand): Ditto.
32110 (ext_register_operand): Ditto.
32111 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
32112 (AND splitters): Ditto.
32113 (AND with -65536 splitter): Add SWI48 mode for operand 0.
32114 (AND with -256 splitter): Use any_QIreg_operand predicate and
32115 SWI248 mode for operand 0.
32116 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
32117 mode for operand 0.
32118 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
32120 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
32122 * doc/plugins.texi: Rewrite first introductory paragraph.
32124 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32126 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
32127 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
32129 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32131 * ipa-profie.c (ipa_profile): Check number of parameters
32132 and possible polymorphic call targets before
32135 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
32137 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
32138 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
32140 2015-04-13 Richard Biener <rguenther@suse.de>
32142 PR tree-optimization/65204
32143 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
32144 takens for bit-CCP.
32146 2015-04-13 Richard Biener <rguenther@suse.de>
32149 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
32150 and cond_not_taken_branch_cost to 4 and 2.
32151 (bdver2_cost): Likewise.
32152 (bdver3_cost): Likewise.
32153 (bdver4_cost): Likewise.
32155 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32157 * hash-table.h (hash_table constructor): Add mem stats.
32158 (alloc_entries): Likewise.
32160 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32162 * ipa-cp.c (ipcp_driver): Relase prev_edge.
32163 * passes.c (execute_one_pass): Only add transform if pass has one.
32165 2015-04-12 Joseph Myers <joseph@codesourcery.com>
32167 * config/i386/i386.c (ix86_option_override_internal): Don't set
32168 -fprefetch-loop-arrays if optimizing for size.
32170 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32171 Gerald Pfeifer <gerald@pfeifer.com>
32173 * doc/contrib.texi (Contributors): Add Martin Jambor and
32176 2015-04-12 Jakub Jelinek <jakub@redhat.com>
32178 * BASE-VER: Set to 6.0.0.
32180 PR tree-optimization/65747
32181 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
32182 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
32184 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
32186 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
32187 sentence. Improve grammar.
32189 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
32191 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
32193 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
32196 * ipa-inline-transform.c (speculation_removed): Remove static var.
32197 (check_speculations): New function.
32198 (clone_inlined_nodes): Do not check spculations.
32199 (inline_call): Call check_speculations.
32200 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
32201 consider non-invariants.
32203 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
32204 Martin Liska <mliska@suse.cz>
32207 * ipa-icf.c (sem_item::compare_cgraph_references): function and
32208 variable can not match.
32209 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
32210 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
32212 2015-04-11 Jakub Jelinek <jakub@redhat.com>
32214 PR tree-optimization/65735
32215 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
32216 Remove visited_phis argument, add visited_bbs, avoid recursing into the
32217 same bb rather than just into the same phi node.
32218 (thread_through_normal_block): Adjust caller.
32220 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
32222 * doc/contrib.texi (Contributors): Add Ira Rosen.
32224 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
32226 * gcov.c (find_source): Fix miswording in error message.
32227 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
32228 (ix86_expand_sse_comi_round): Fix typo in error message.
32230 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
32232 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
32234 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
32236 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
32238 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
32241 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
32242 Print bad_spills_num and insn_pseudos_num.
32244 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32247 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
32248 when creating +1 values for SImode.
32250 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
32253 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
32256 2015-04-10 Jakub Jelinek <jakub@redhat.com>
32257 Iain Sandoe <iain@codesourcery.com>
32260 * configure: Regenerate.
32262 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
32265 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
32267 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
32269 * doc/contrib.texi (Contributors): Add John Marino.
32271 2015-04-09 Jakub Jelinek <jakub@redhat.com>
32273 PR tree-optimization/65709
32274 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
32275 TREE_TYPE (TREE_TYPE (t)).
32277 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
32280 * lra-int.h (lra_bad_spill_regno_start): New.
32281 * lra.c (lra_bad_spill_regno_start): New.
32282 (lra): Set up lra_bad_spill_regno_start. Set up
32283 lra_constraint_new_regno_start unconditionally.
32284 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
32287 2015-04-09 Marek Polacek <polacek@redhat.com>
32288 Jakub Jelinek <jakub@redhat.com>
32290 PR middle-end/65554
32291 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
32292 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
32295 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
32297 PR rtl-optimization/65693
32298 * combine.c (is_parallel_of_n_reg_sets): Move outside of
32301 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
32304 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
32305 device specs file if "device-specs%s" didn't resolve to a path.
32307 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
32310 * config/i386/i386.c (fixup_modeless_constant): New.
32311 (ix86_expand_args_builtin): Fixup modeless constant operand.
32312 (ix86_expand_round_builtin): Ditto.
32313 (ix86_expand_special_args_builtin): Ditto.
32314 (ix86_expand_builtin): Ditto.
32316 2015-04-09 Jakub Jelinek <jakub@redhat.com>
32319 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
32320 any pow2 integer in between 2 and 0x80000000U inclusive.
32322 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
32324 PR rtl-optimization/65693
32325 * combine.c (is_parallel_of_n_reg_sets): Change first argument
32326 from an rtx_insn * to an rtx.
32327 (try_combine): Adjust both callers. Use it once more.
32329 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
32331 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
32332 (chkp_make_static_const_bounds): Search existing
32333 symbol by assembler name. Use make_decl_one_only.
32334 (chkp_get_zero_bounds_var): Remove node search which
32335 is now performed in chkp_make_static_const_bounds.
32336 (chkp_get_none_bounds_var): Likewise.
32338 2015-04-08 Michael Witten <mfwitten@gmail.com>
32340 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
32343 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32345 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
32347 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
32349 * doc/extend.texi (__sync Builtins): Fix grammar.
32351 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32353 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
32355 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32357 * varasm.c (emit_local): Move definition of align.
32359 2015-04-08 Julian Brown <julian@codesourcery.com>
32361 * config/nvptx/mkoffload.c (process): Support variable mapping.
32363 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
32365 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
32367 (alpha_write_one_linkage): Correct typo.
32369 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
32371 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
32373 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
32375 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
32377 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
32379 * tree-chkp.h (chkp_insert_retbnd_call): New.
32380 * tree-chkp.c (chkp_insert_retbnd_call): New.
32381 * ipa-split.c (insert_bndret_call_after): Remove.
32382 (split_function): Use chkp_insert_retbnd_call.
32383 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
32384 bounds for instrumented functions.
32386 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
32389 * calls.c (initialize_argument_information): When producing tail
32390 call also turn SSA_NAMES passed by references to original PARM_DECLs
32392 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
32395 * lra-remat.c (do_remat): Process input and non-input insn
32396 registers separately.
32398 2015-04-07 Jakub Jelinek <jakub@redhat.com>
32401 * valtrack.c (debug_lowpart_subreg): New function.
32402 (dead_debug_insert_temp): Use it.
32404 PR middle-end/65680
32405 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
32406 into signed HOST_WIDE_INT the same as negative bit_offset.
32408 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
32410 * ipa-comdats.c (ipa_comdats): Visit all thunks
32411 to set proper comdat group.
32413 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32416 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
32417 on constants for NEON VSTRUCT modes.
32419 2015-04-07 Jakub Jelinek <jakub@redhat.com>
32420 Iain Sandoe <iain@codesourcery.com>
32423 * configure: Regenerate.
32425 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
32428 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
32429 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
32430 that LFD is used to load double constants instead of LFS. Add
32431 defaults for all costs structures. Add comments for missing
32432 initialization fields.
32433 (size32_cost): Likewise.
32434 (size64_cost): Likewise.
32435 (rs64a_cost): Likewise.
32436 (mpccore_cost): Likewise.
32437 (ppc403_cost): Likewise.
32438 (ppc405_cost): Likewise.
32439 (ppc440_cost): Likewise.
32440 (ppc476_cost): Likewise.
32441 (ppc601_cost): Likewise.
32442 (ppc603_cost): Likewise.
32443 (ppc604_cost): Likewise.
32444 (ppc604e_cost): Likewise.
32445 (ppc620_cost): Likewise.
32446 (ppc630_cost): Likewise.
32447 (ppccell_cost): Likewise.
32448 (ppc750_cost): Likewise.
32449 (ppc7450_cost): Likewise.
32450 (ppc8540_cost): Likewise.
32451 (ppce300c2c3_cost): Likewise.
32452 (ppce500mc_cost): Likewise.
32453 (ppce500mc64_cost): Likewise.
32454 (ppce5500_cost): Likewise.
32455 (ppce6500_cost): Likewise.
32456 (titan_cost): Likewise.
32457 (power4_cost): Likewise.
32458 (power6_cost): Likewise.
32459 (power7_cost): Likewise.
32460 (power8_cost): Likewise.
32461 (ppca2_cost): Likewise.
32462 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
32464 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
32465 instead of XXLOR to copy SFmode to clear out dirty bits created
32466 when SFmode denormals are generated.
32467 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
32468 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
32470 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
32472 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
32473 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
32474 * config/aarch64/aarch64-tune.md: Regenerate.
32476 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
32478 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
32479 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
32480 * config/arm/arm-cores.def (exynos-m1): New core.
32481 * config/arm/arm-tune.md: Regenerate.
32482 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
32483 * config/arm/bpabi.h: Likewise.
32485 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
32487 * ipa-cp (set_single_call_flag): Remove too
32488 restrictive assert.
32490 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
32492 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
32493 GOMP_offload_unregister from the destructor.
32495 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
32497 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
32498 flags for instrumentation thunk.
32499 (chkp_produce_thunks): Likewise.
32501 2015-04-05 Martin Liska <mliska@suse.cz>
32504 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
32505 has computed data structure.
32506 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
32508 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
32510 * invoke.texi (inline-unit-growth): Increase growth to 20%
32511 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
32513 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
32516 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
32518 (lra_rematerialization_iter): New.
32519 * lra.c (lra): Initialize lra_rematerialization_iter.
32520 Stop updating lra_constraint_new_regno_start after switching of
32521 inheritance and rematerialization.
32522 * lra-remat.c (lra_rematerialization_iter): New.
32523 (lra_remat): Add printing pass iteration. Do rematerialization
32524 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
32526 2015-04-04 Richard Biener <rguenther@suse.de>
32528 PR tree-optimization/64909
32529 PR tree-optimization/65660
32530 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
32531 to take a cost vector for scalar iteration cost.
32532 (vect_get_single_scalar_iteration_cost): Likewise.
32533 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
32534 Compute the scalar iteration cost into a cost vector.
32535 (vect_get_known_peeling_cost): Use the scalar cost vector to
32536 account for the cost of the peeled iterations.
32537 (vect_estimate_min_profitable_iters): Likewise.
32538 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
32541 2015-04-04 Alan Modra <amodra@gmail.com>
32545 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
32546 0.0 constant unless TARGET_VSX.
32547 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
32550 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
32553 * ipa-inline-transform.c (inline_call): Skip sanity check to work
32556 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
32559 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
32560 speculative indirect edges to avoid ordering issue.
32562 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
32565 * ipa-inline.c (edge_badness): Add combined size to the denominator.
32567 2015-04-03 Jakub Jelinek <jakub@redhat.com>
32569 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
32570 TYPE_ARTIFICIAL on the .omp_data* types.
32572 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
32574 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
32575 instrumentation thunks.
32577 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
32579 * config/i386/i386.c (ix86_expand_call): Avoid nested
32580 PARALLEL in returned call value.
32582 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
32584 * lto-cgraph.c (input_cgraph_1): Always link instrumented
32585 assembler name with original one.
32587 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
32589 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
32591 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
32593 Revert parts of r216820.
32594 * config/i386/i386.md (movqi_internal): Correct type calculation
32595 for alternatives 3 and 5.
32597 2015-04-02 Jakub Jelinek <jakub@redhat.com>
32599 PR preprocessor/61977
32600 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
32601 predefine __vector/__bool/__pixel macros nor context sensitive
32602 macros for CLK_ASM.
32603 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
32605 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
32607 * config/pa/pa.c (pa_output_move_double): Directly handle register
32608 indexed memory operand. Simplify handling of scaled register indexed
32611 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
32614 * config/i386/linux-common.h (MPX_SPEC): New.
32615 (CHKP_SPEC): Add MPX_SPEC.
32616 * doc/invoke.texi (-fcheck-pointer-boudns): Document
32617 possible issues with '-z bndplt' support in linker.
32619 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
32621 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
32622 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
32623 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
32624 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
32625 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
32627 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
32629 * config/i386/sync.md (UNSPEC_MOVA): Remove.
32630 (atomic_load<mode>): Change operand 0 predicate to
32631 nonimmediate_operand and fix up the destination when needed.
32633 (atomic_loaddi_fpu): Use UNSPEC_LDA.
32634 (atomic_store<mode>): Change operand 1 predicate to
32635 nonimmendate_operand and move the source to register when needed.
32637 (atomic_store<mode>_1): Use UNSPEC_STA.
32638 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
32639 Fix moves from memory operand. Use UNSPEC_STA.
32641 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
32643 * expmed.c (strict_volatile_bitfield_p): Check that the access will
32644 not cross a MODESIZE boundary.
32645 (store_bit_field, extract_bit_field): Added assertions in the
32646 strict volatile bitfields code path.
32648 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
32651 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
32652 Increase args array size by one to avoid buffer overflow.
32654 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
32656 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
32658 * ipa-inline.c (edge_badness): Add wrapper penalty.
32659 (sum_callers): Move up.
32660 (inline_small_functions): Set single_caller.
32661 * ipa-inline.h (inline_summary): Add single_caller.
32662 * ipa-split.c (split_function): Set split_part.
32663 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
32664 * cgraph.h (cgraph_node): Add split_part.
32666 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
32669 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
32670 Do not split operands 0 and operands 2 to halfmode.
32671 (atomic_compare_and_swap<mode>): Update for
32672 atomic_compare_and_swap<dwi>_doubleword changes.
32674 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
32676 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
32677 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
32678 no caching is done.
32680 2015-03-31 Martin Liska <mliska@suse.cz>
32683 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
32684 has already filled up function summary.
32685 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
32687 2015-03-31 Richard Biener <rguenther@suse.de>
32689 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
32692 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
32694 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
32696 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
32697 (s390_asm_output_function_label): Adapt to new signature of
32698 s390_function_num_hotpatch_hw
32699 Optimise the code generating assembler output.
32700 Add comments to assembler file.
32702 2015-03-31 Richard Biener <rguenther@suse.de>
32704 PR middle-end/65626
32705 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
32706 of the noreturn call so it is last and cleanup_control_flow_bb
32707 can do the CFG part.
32709 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
32712 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
32713 same_comdat_group for external symbols.
32714 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
32715 infinite same_comdat_group traversal loop.
32717 2015-03-31 Jakub Jelinek <jakub@redhat.com>
32720 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
32721 automatically to $headers.
32723 2015-03-30 Jakub Jelinek <jakub@redhat.com>
32726 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
32727 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
32729 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
32731 * ipa-prop.c (param_type_may_change_p): Likewise.
32732 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
32733 (remove_unused_scope_block_p): Add in_ctor_dtor_block
32734 argument. Before inlining, preserve
32735 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
32736 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
32738 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
32740 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32743 * ipa-inline.c (edge_badness): Base denominator on callee's
32746 2015-03-27 Martin Jambor <mjambor@suse.cz>
32749 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
32750 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
32751 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
32752 node_calling_single_call.
32753 * ipa-cp.c (count_callers): New function.
32754 (set_single_call_flag): Likewise.
32755 (initialize_node_lattices): Count callers and set single_flag_call if
32757 (incorporate_penalties): New function.
32758 (good_cloning_opportunity_p): Use it, dump new flags.
32759 (propagate_constants_topo): Set node_within_scc flag if appropriate.
32760 * doc/invoke.texi (ipa-cp-recursion-penalty,
32761 ipa-cp-single-call-pentalty): Document.
32763 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32766 * symtab.c (symtab_node::get_partitioning_class): Register vars
32768 * varpool.c (symbol_table::output_variables) Do not assemble unefined
32769 decls for non-symbols.
32771 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
32774 * output.h (default_binds_local_p_2): New.
32775 * varasm.c (default_binds_local_p_2): Renamed to ...
32776 (default_binds_local_p_3): This. Don't return true on protected
32777 data symbol if protected data may be external.
32778 (default_binds_local_p): Use default_binds_local_p_3.
32779 (default_binds_local_p_1): Likewise.
32780 (default_binds_local_p_2): New.
32781 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
32782 default_binds_local_p_2 if TARGET_MACHO is undefined.
32784 2015-03-27 Jakub Jelinek <jakub@redhat.com>
32787 * config/i386/i386.c (legitimize_pic_address): If base
32788 is SYMBOL_REF or LABEL_REF using %rip addressing, force
32789 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
32791 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32794 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
32797 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
32800 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
32801 of optimized out indirect call.
32802 (redirect_to_unreachable): Always build symbol table node for
32803 BUILT_IN_UNREACHABLE
32805 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
32808 * ira-costs.c (record_reg_classes): Process all constraint string
32811 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
32813 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
32817 * config/c6x/constraints.md (S3): New constraint.
32818 * config/c6x/c6x.md (real_jump): Use it.
32820 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32822 PR middle-end/65595
32823 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
32824 do redirection if the call is not optimized out.
32826 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
32829 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
32830 (fchkp-check-incomplete-type): Add LTO.
32831 (fchkp-zero-input-bounds-for-main): Likewise.
32832 (fchkp-first-field-has-own-bounds): Likewise.
32833 (fchkp-narrow-bounds): Likewise.
32834 (fchkp-narrow-to-innermost-array): Likewise.
32835 (fchkp-use-static-bounds): Likewise.
32836 (fchkp-use-static-const-bounds): Likewise.
32837 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
32839 2015-03-27 Marek Polacek <polacek@redhat.com>
32841 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
32843 2015-03-27 Marek Polacek <polacek@redhat.com>
32846 * ubsan.c (ubsan_create_edge): New function.
32847 (instrument_bool_enum_load): Call it.
32848 (instrument_nonnull_arg): Likewise.
32849 (instrument_nonnull_return): Likewise.
32850 (instrument_object_size): Likewise.
32852 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32854 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
32857 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32860 * lto-streamer.h (class lto_location_cache): New.
32861 (struct data_in): Add location_cache.
32862 (lto_input_location): Update prototype.
32863 (stream_input_location_now): New.
32864 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
32865 pointer to location.
32866 (stream_input_location): Update.
32867 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
32868 (warn_odr): Apply location cache before warning.
32869 (lto_input_location): Update prototype.
32870 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
32871 Use stream_input_location_now.
32872 * lto-streamer-in.c (lto_location_cache::current_cache): New static
32874 (lto_location_cache::cmp_loc): New function.
32875 (lto_location_cache::apply_location_cache): New function.
32876 (lto_location_cache::accept_location_cache): New function.
32877 (lto_location_cache::revert_location_cache): New function.
32878 (lto_location_cache::input_location): New function.
32879 (lto_input_location): Do location caching.
32880 (stream_input_location_now): New function.
32881 (input_eh_region, input_struct_function_base): Use
32882 stream_input_location_now.
32883 (lto_data_in_create): use new.
32884 (lto_data_in_delete): Use delete.
32885 * tree-streamer-in.c (unpack_ts_block_value_fields,
32886 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
32887 lto_input_ts_exp_tree_pointers): Update for cached location api.
32889 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32892 * passes.def: Add pass_nothrow.
32893 * ipa-pure-const.c: (pass_data_nothrow): New.
32894 (pass_nothrow): New.
32895 (pass_nothrow::execute): New.
32896 (make_pass_nothrow): New.
32897 * tree-pass.h (make_pass_nothrow): Declare.
32899 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32901 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
32902 edge to change by speculation resolution or redirection.
32903 (edge_set_predicate): Likewise.
32904 (inline_summary_t::duplicate): Likewise.
32905 (remap_edge_summaries): Likewise.
32907 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32909 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
32911 (can_inline_edge_p): Relax option matching for always inline functions.
32913 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
32916 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
32917 Check operand 4 and operand 0 for equality.
32918 (avx512f_vextract<shuffletype>32x4_1_maskm):
32919 Check operand 6 and operand 0 for equality.
32920 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
32922 (vec_extract_hi_<mode>_maskm): Ditto.
32924 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32926 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
32927 dead calls back to live.
32928 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
32930 (cgraph_node::verify_node): ... here; verify only callee edges,
32932 * cif-code.def (CILK_SPAWN): New code.
32934 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
32936 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
32937 (edge_set_predicate): Use it to mark unreachable edges.
32938 (inline_summary_t::duplicate): Remove unnecesary code.
32939 (remap_edge_summaries): Likewise.
32940 (dump_inline_summary): Report contains_cilk_spawn.
32941 (compute_inline_parameters): Compute contains_cilk_spawn.
32942 (inline_read_section, inline_write_summary): Stream
32943 contains_cilk_spawn.
32944 * ipa-inline.c (can_inline_edge_p): Do not touch
32945 DECL_STRUCT_FUNCTION that may not be available;
32946 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
32947 remove check for callee_fun->can_throw_non_call_exceptions and
32948 replace it by optimization attribute check; check for flag_exceptions.
32949 * ipa-inline-transform.c (inline_call): Maintain
32950 DECL_FUNCTION_PERSONALITY
32951 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
32953 2015-03-26 Jakub Jelinek <jakub@redhat.com>
32955 PR tree-optimization/65551
32956 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
32957 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
32959 2015-03-26 Richard Biener <rguenther@suse.de>
32961 PR middle-end/65555
32962 * tree-cfg.c (verify_gimple_call): Do not require a call to
32963 have no LHS if it wasn't recognized as control altering yet.
32965 2015-03-26 Jakub Jelinek <jakub@redhat.com>
32967 PR tree-optimization/64715
32968 * passes.def: Add another instance of pass_object_sizes before ccp1.
32969 * tree-object-size.c (pass_object_sizes::execute): In
32970 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
32971 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
32972 __bos result and the computed constant. Remove redundant
32973 checks, obsoleted by gimple_call_builtin_p test.
32975 * var-tracking.c (variable_tracking_main_1): Don't track
32976 variables for targetm.no_register_allocation targets.
32978 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
32980 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
32981 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
32983 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
32986 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
32987 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
32988 0.0 is correctly setup.
32989 (extenddftf2_internal): Likewise.
32991 2015-03-25 Sebastian Pop <s.pop@samsung.com>
32993 PR tree-optimization/65177
32994 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
32996 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
32997 edges not adjacent on the path to the original code.
32999 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
33002 * doc/install.texi (Building a native compiler): Document new
33003 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
33004 configuration assumes that the host supports the linker plugin.
33006 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
33009 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
33010 chain for generated call.
33012 2015-03-25 Richard Biener <rguenther@suse.de>
33014 * passes.c (pass_manager::execute_early_local_passes): Guard
33015 execution of pass_chkp_instrumentation_passes with
33016 flag_check_pointer_bounds.
33017 (pass_chkp_instrumentation_passes::gate): Likewise.
33019 2015-03-25 Martin Liska <mliska@suse.cz>
33021 PR tree-optimization/65538
33022 * symbol-summary.h (function_summary::~function_summary):
33023 Relese memory for allocated summaries.
33024 (function_summary::release): New function.
33026 2015-03-25 Jakub Jelinek <jakub@redhat.com>
33029 * lto-streamer-out.c (DFS::worklist): New struct.
33030 (DFS::worklist_vec): New data member.
33031 (DFS::next_dfs_num): Remove.
33032 (DFS::DFS): Rewritten using worklist instead of recursion,
33033 using most of code from DFS::DFS_write_tree.
33034 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
33035 pass it to DFS_write_tree calls.
33036 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
33037 quick initial checks push it into worklist_vec and return.
33039 2015-03-25 Richard Biener <rguenther@suse.de>
33041 PR middle-end/65519
33042 * genmatch.c (expr::gen_transform): Re-write to avoid
33043 using gimple_build.
33045 2015-03-25 Bin Cheng <bin.cheng@arm.com>
33047 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
33049 2015-03-25 Bin Cheng <bin.cheng@arm.com>
33051 * config/arm/arm.opt (print_tune_info): New option.
33052 * config/arm/arm.c (arm_print_tune_info): New function.
33053 (arm_file_start): Call arm_print_tune_info.
33054 * config/arm/arm-protos.h (struct tune_params): Add comment.
33055 * doc/invoke.texi (@item -mprint-tune-info): New item.
33056 (-mtune): mention it in ARM Option Summary.
33058 2015-03-25 DJ Delorie <dj@redhat.com>
33060 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
33063 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
33064 Martin Liska <mliska@suse.cz>
33066 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
33067 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
33068 (sem_item::add_type): New function.
33069 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
33070 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
33071 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
33072 (sem_function::equals_wpa): Fix typo.
33073 * ipa-icf.h (sem_item::add_type): New function.
33074 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
33077 2015-03-24 Jakub Jelinek <jakub@redhat.com>
33079 PR tree-optimization/65533
33080 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
33081 with swapped operands, call vect_free_slp_tree on
33082 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
33085 2015-03-24 Richard Biener <rguenther@suse.de>
33087 PR middle-end/65517
33088 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
33089 for fixup if necessary.
33091 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
33093 * doc/extend.texi (Function Attributes): Add @cindex entries
33094 for all attributes and regularize their format. Delete text
33095 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
33096 information about "eightbit_data", "tiny_data", and "model"
33097 variable attributes to the Variable Attributes section. Fix
33098 some obvious typos and copy-editing issues.
33099 (Variable Attributes, Type Attributes): Likewise add/fix
33100 @cindex entries for all attributes.
33102 2015-03-23 Jakub Jelinek <jakub@redhat.com>
33105 * tree-chkp.c (chkp_build_returned_bound): Ignore
33106 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
33108 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
33111 * config/sh/predicates.md (simple_mem_operand,
33112 displacement_mem_operand): Add test for reg.
33113 (short_displacement_mem_operand): Test for displacement_mem_operand
33114 before invoking sh_disp_addr_displacement.
33115 * config/sh/constraints.md (Sdd, Sra): Simplify.
33116 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
33117 Remove redundant displacement_mem_operand tests.
33119 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
33122 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
33123 the same -mmcu=MCU more than once.
33125 2015-03-23 Jakub Jelinek <jakub@redhat.com>
33128 * ipa-devirt.c: Remove duplicate demangle.h include.
33131 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
33133 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
33134 REG_POINTER on *destptr after adjusting it for prologue size.
33137 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
33138 ultimate_alias_target ()->order ints instead of
33139 ultimate_alias_target () pointers.
33141 2015-03-23 Richard Biener <rguenther@suse.de>
33143 PR tree-optimization/65518
33144 * tree-vect-stmts.c (vectorizable_load): Reject single-element
33145 interleaving cases we generate absymal code for.
33147 2015-03-23 Richard Biener <rguenther@suse.de>
33149 PR tree-optimization/65494
33150 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
33152 (vect_analyze_slp_instance): But do that here, always and once.
33154 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33156 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
33157 adding T or multiplying by T+1 and subracting T.
33159 2015-03-22 Jeff Law <law@redhat.com>
33161 PR rtl-optimization/64317
33162 * Makefile.in (OBJS): Add gcse-common.c
33163 * gcse.c: Include gcse-common.h
33164 (struct modify_pair_s): Move structure definition to gcse-common.h
33165 (compute_transp): Move function to gcse-common.c.
33166 (canon_list_insert): Similarly.
33167 (record_last_mem_set_info): Break out some code and put it into
33168 gcse-common.c. Call into the new common code.
33169 (compute_local_properties): Pass additional arguments to compute_transp.
33170 * postreload-gcse.c: Include gcse-common.h and df.h
33171 (modify_mem_list_set, blocks_with_calls): New variables.
33172 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
33173 (get_bb_avail_insn): Pass in the expression index too.
33174 (alloc_mem): Allocate memory for the new bitmaps and lists.
33175 (free_mem): Free memory for the new bitmaps and lists.
33176 (insert_expr_in_table): Record a bitmap index for each entry we
33178 (record_last_mem_set_info): Call into common code in gcse-common.c.
33179 (get_bb_avail_insn): If no available insn was found in the requested
33180 BB. If BB has a single predecessor, see if the expression is
33181 transparent in BB and available in that single predecessor.
33182 (compute_expr_transp): New wrapper for compute_transp.
33183 (eliminate_partially_redundant_load): Pass expression's bitmap_index
33184 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
33185 (gcse_after_reload_main): If there are elements in the hash table,
33186 then compute transparency for all the elements in the hash table.
33187 * gcse-common.h: New file.
33188 * gcse-common.c: New file.
33190 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
33192 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
33194 (System Headers): Likewise.
33196 (Traditional macros): Likewise.
33197 (Invocation): Likewise.
33198 (Option Index): Likewise.
33199 * doc/cppopts.texi (-M): Likewise.
33200 (-finput-charset): Likewise.
33201 (--help): Likewise.
33202 * doc.invoke.texi (AVR Options): Likewise.
33203 (V850 Options): Likewise.
33205 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
33208 * ipa-devirt.c: Include demangle.h
33209 (odr_type_d): Add field rtti_broken.
33210 (odr_subtypes_equivalent_p): Do not require name to match.
33211 (compare_virtual_tables): Fix typo; if type already has ODR violation,
33212 bypass the tests; be ready for function referneces in vtables that are
33213 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
33214 (warn_odr): Give up for nameless types.
33215 (warn_types_mismatch): Report mismatch in mangled names;
33216 report mismatch in anonymous namespaces; look into component types to
33217 give useful error; report when mismatch is dragged in from other ODR
33219 (odr_types_equivalent_p): Match types for being polymorphic; avoid
33220 duplicated diagnostics.
33221 (add_type_duplicate): Reorder checks so more informative ones come
33222 first; fix typo; do not output "the extra base is defined here" when
33224 (BINFO_N_BASE_BINFOS): Relax sanity check.
33226 2015-03-22 Martin Liska <mliska@suse.cz>
33227 Jakub Jelinek <jakub@redhat.com>
33229 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
33230 masks that can potentially include a builtin.
33231 (ix86_add_new_builtins): Introduce fast filter for isa values
33232 that cannot trigger builtin inclusion.
33234 2015-03-22 Martin Liska <mliska@suse.cz>
33236 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
33237 (sem_item::update_hash_by_local_refs): Likewise.
33238 (sem_variable::get_hash): Empty line is fixed.
33239 (sem_item_optimizer::execute): Include adding of hash references.
33240 (sem_item_optimizer::update_hash_by_addr_refs): New function.
33241 (sem_item_optimizer::build_hash_based_classes): Use local hash.
33242 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
33243 (sem_item::update_hash_by_local_refs): Likewise.
33245 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
33248 * ipa-comdats.c (enqueue_references): Walk through thunks.
33249 (ipa_comdats): Likewise.
33250 (set_comdat_group_1): New function.
33252 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
33255 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
33258 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
33259 Gerald Pfeifer <gerald@pfeifer.com>
33261 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
33263 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
33264 Sandra Loosemore <sandra@codesourcery.com>
33266 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
33267 function parameter declaration.
33268 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
33269 Update arguments to nios2_adjust_call_address().
33270 (sibcall_internal): Rename from *sibcall.
33271 (sibcall_value_internal): Rename from *sibcall_value.
33272 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
33273 (nios2_large_got_address): Add target temp reg parameter.
33274 (nios2_got_address): Adjust call to nios2_large_got_address, add
33275 force_reg around it.
33276 (nios2_load_pic_address): Add target temp reg parameter, replace call
33277 to nios2_got_address with corresponding code.
33278 (nios2_legitimize_constant_address): Update call to
33279 nios2_load_pic_address.
33280 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
33281 to use temp reg for PIC loading purposes.
33282 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
33283 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
33284 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
33286 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
33288 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
33289 usage of "the @option{...}".
33290 (-Wopenmp-simd): Likewise.
33291 (-fsanitize-recover): Likewise.
33292 (-fsanitize-undefined-trap-on-error): Likewise.
33294 (tracer-dynamic-coverage-feedback): Likewise.
33295 (reorder-block-duplicate-feedback): Likewise.
33296 (loop-unroll-jam-size): Likewise.
33299 (-mabs=legacy): Likewise.
33300 (-mupper-regs-df): Likewise.
33301 (-mupper-regs-sf): Likewise.
33302 (-mpointers-to-nested-functions): Likewise.
33304 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
33306 * doc/extend.texi (Cilk Plus Builtins): Add markup.
33308 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
33310 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
33311 additional index entries and cross-references.
33312 (-fchkp-check-incomplete-type): Likewise.
33313 (-fchkp-first-field-has-own-bounds): Likewise.
33314 (-fchkp-narrow-to-innermost-array): Likewise.
33315 (-fchkp-use-fast-string-functions): Likewise.
33316 (-fchkp-use-nochk-string-functions): Likewise.
33317 (-fchkp-use-static-const-bounds): Likewise.
33318 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33319 (-fchkp-instrument-marked-only): Likewise.
33320 (-fchkp-use-wrappers): Likewise.
33321 (-static-libmpx): Likewise.
33322 (-static-libmpxwrappers): Likewise.
33323 * doc/extend.texi (bnd_legacy): Likewise.
33324 (bnd_instrument): Likewise.
33325 (bnd_variable_size): Likewise.
33326 (Pointer Bounds Checker builtins): Likewise.
33328 2015-03-21 Tom de Vries <tom@codesourcery.com>
33330 PR tree-optimization/65458
33331 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
33332 * cgraph.h (cgraph_node): Add parallelized_function field.
33333 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
33334 (input_overwrite_node): Read parallelized_function field.
33335 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
33336 parallelized_function on cgraph_node for child_fn.
33337 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
33338 Remove include of gt-tree-parloops.h.
33339 (parallelized_functions): Remove static variable.
33340 (parallelized_function_p): Rewrite using parallelized_function field of
33342 (create_loop_fn): Remove adding to parallelized_functions.
33343 * Makefile.in (GTFILES): Remove tree-parloops.c
33345 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
33347 PR rtl-optimization/64366
33348 * lra.c (lra_update_insn_regno_info): Consider regs in
33349 CALL_INSN_FUNCTION_USAGE memory.
33351 2015-03-20 Richard Biener <rguenther@suse.de>
33353 PR middle-end/64715
33354 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
33355 for type comparison and gcc_checking_assert.
33356 (chrec_fold_plus_poly_poly): Likewise.
33357 (chrec_fold_multiply_poly_poly): Likewise.
33358 (chrec_convert_1): Likewise.
33359 * gimplify.c (gimplify_expr): Remove premature folding of
33360 &X + CST to &MEM[&X, CST].
33362 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
33364 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
33366 (ipa_inline): Recompute inline_failed codes.
33367 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
33368 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
33371 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
33373 PR rtl-optimization/60851
33374 * recog.c (constrain_operands): Accept a pseudo register before reload
33375 for LRA enabled targets.
33377 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
33380 * config/rs6000/predicates.md (easy_fp_constant): Remove special
33381 -ffast-math handling that kept non-0 constants live in the RTL
33382 until reload. Remove logic testing the number of instructions it
33383 took to create a constant in a GPR that was never used, due to a
33384 test for soft-float earlier.
33385 (memory_fp_constant): Delete, no longer used.
33387 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
33388 alternatives for loading non-0 constants into GPRs for hard
33389 floating point that is no longer needed due to changes in
33390 easy_fp_constant. Add support for loading 0.0 into GPRs.
33391 (mov<mode>_hardfloat32): Likewise.
33392 (mov<mode>_hardfloat64): Likewise.
33393 (mov<mode>_64bit_dm): Likewise.
33394 (movtd_64bit_nodm): Likewise.
33395 (pre-reload move FP constant define_split): Delete define_split,
33396 since it is no longer used.
33397 (extenddftf2_internal): Remove GHF constraints that are not valid
33400 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
33402 PR rtl-optimization/63491
33403 * lra-constraints.c (check_and_process_move): Use src instead of
33404 sreg. Remove some dead code.
33406 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
33409 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
33410 (sem_variable::merge): Likewise.
33412 2015-03-19 Martin Liska <mliska@suse.cz>
33415 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
33416 all fields of cgraph_thunk_info.
33418 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
33420 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
33421 clone instrumented thunks.
33423 2015-03-19 Richard Biener <rguenther@suse.de>
33426 2015-03-10 Richard Biener <rguenther@suse.de>
33428 PR middle-end/63155
33429 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
33430 * tree-ssa-coalesce.c: Include timevar.h.
33431 (attempt_coalesce): Handle graph being NULL.
33432 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
33433 Split out abnormal coalescing to ...
33434 (perform_abnormal_coalescing): ... this function.
33435 (coalesce_ssa_name): Perform abnormal coalescing without computing
33437 (verify_ssa_coalescing_worker): New function.
33438 (verify_ssa_coalescing): Likewise.
33440 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
33441 Jakub Jelinek <jakub@redhat.com>
33444 * tsan.c (instrument_gimple): Clear tail call flag on
33447 2015-03-19 Jakub Jelinek <jakub@redhat.com>
33450 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
33451 call in the return bb.
33452 (find_split_points): Add RETURN_BB argument, don't call
33454 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
33455 if true append TSAN_FUNC_EXIT internal call after the call to
33456 the split off function.
33457 (execute_split_functions): Call find_return_bb here.
33458 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
33459 Adjust find_split_points and split_function calls.
33461 2015-03-18 DJ Delorie <dj@redhat.com>
33463 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
33464 (iorqi3_virt): Likewise.
33466 2015-03-18 Tom de Vries <tom@codesourcery.com>
33468 * tree-parloops.c (parallelize_loops): Make static.
33469 * tree-parloops.h (parallelize_loops): Remove extern declaration.
33471 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
33473 PR middle-end/64491
33475 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
33477 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
33478 condition would be removed due to undefined behaviour.
33480 2015-03-18 Martin Liska <mliska@suse.cz>
33483 * cgraph.c (cgraph_node::get_create): Remove unnecessary
33484 xstrdup_for_dump wrapper.
33485 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
33487 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
33488 with xstrdup_for_dump.
33489 (sem_variable::equals): Likewise.
33490 (sem_item_optimizer::read_section): Use symtab_node::name instead of
33492 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
33493 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
33494 symtab_node::asm_name with xstrdup_for_dump.
33495 (congruence_class::dump): Use symtab_node::name instead of
33497 * ipa-icf.h (symtab_node::name): Remove.
33498 (symtab_node::asm_name): Likewise.
33500 2015-03-18 Jakub Jelinek <jakub@redhat.com>
33502 PR tree-optimization/65450
33503 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
33505 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
33506 it instead of duplicate_ssa_name_ptr_info.
33509 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
33511 2015-03-18 Richard Biener <rguenther@suse.de>
33513 * tree-data-ref.h (struct access_matrix): Remove.
33514 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
33515 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
33516 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
33517 (am_vector_index_for_loop): Likewise.
33518 (struct data_reference): Remove access_matrix member.
33519 (DR_ACCESS_MATRIX): Remove.
33520 (lambda_vector_new): Add comment.
33521 (lambda_matrix_new): Use XOBNEWVEC.
33523 2015-03-18 Richard Biener <rguenther@suse.de>
33525 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
33526 (pass_ch::execute): Cleanup the CFG only if we did sth.
33527 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
33529 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33531 * expmed.c (synth_mult): Use std::swap instead of manually
33532 swapping algorithms.
33534 2015-03-18 Jakub Jelinek <jakub@redhat.com>
33537 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
33539 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
33542 * config/avr/avr.opt (-nodevicelib): New option.
33543 * doc/invoke.texi (AVR Options): Document it.
33544 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
33545 libgcc.a, libc.a, libm.a.
33546 * config/avr/specs.h: Same.
33547 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
33548 which don't (directly) depend on the device. Print more help.
33549 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
33550 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
33551 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
33553 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
33554 for specs file name.
33555 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
33556 * config/avr/avr-mcus.def: Adjust initializers and comments.
33558 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
33560 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
33561 DECL_ONE_ONLY to check if decl is one only.
33562 * ipa-split.c (consider_split): Limit splitt of one only functions.
33564 2015-03-16 Jakub Jelinek <jakub@redhat.com>
33566 PR tree-optimization/65427
33567 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
33569 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
33571 2015-03-16 Marek Polacek <polacek@redhat.com>
33573 * cgraph.h (add_new_static_var): Remove declaration.
33574 * varpool.c (add_new_static_var): Remove function.
33576 2015-03-16 Jakub Jelinek <jakub@redhat.com>
33578 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
33579 instead of vec<tree> * with vec_alloc and release for args.
33582 PR middle-end/65431
33583 * omp-low.c (delete_omp_context): Only splay_tree_delete
33584 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
33585 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
33587 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
33590 * cfgexpand.c (align_base): New function.
33591 (alloc_stack_frame_space): Call it.
33592 (expand_stack_vars): Align prev_frame to be sure
33593 data->asan_vec elements aligned properly.
33595 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
33597 PR middle-end/65409
33598 * expr.c (store_field): Do not do a direct block copy if the source is
33599 a PARALLEL with BLKmode.
33601 2015-03-16 Tom de Vries <tom@codesourcery.com>
33603 PR middle-end/65414
33605 2015-03-12 Tom de Vries <tom@codesourcery.com>
33607 PR rtl-optimization/64895
33608 * lra-lives.c (check_pseudos_live_through_calls): Use
33609 actual_call_used_reg_set instead of call_used_reg_set, if available.
33611 2015-03-16 Alan Modra <amodra@gmail.com>
33614 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
33615 Modify Z->r bswapdi splitter to use dest in place of scratch.
33616 In r->Z and Z->r bswapdi splitter rename word_high, word_low
33617 to word1, word2 and rearrange logic to suit.
33618 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
33619 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
33620 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
33621 Add one '?' on r->r. Modify Z->r splitter to avoid need for
33624 2015-03-14 Jakub Jelinek <jakub@redhat.com>
33626 PR tree-optimization/65369
33627 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
33628 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
33629 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
33631 PR tree-optimization/65418
33632 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
33633 are casts in the first PLUS_EXPR operand, ensure tbias and
33634 *totallowp are in the inner type.
33636 PR rtl-optimization/65401
33637 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
33638 argument. If true, adjust_address_nv of x with big-endian
33639 correction for the mode widening to GET_MODE (y).
33640 (make_field_assignment): Don't do MEM mode widening here.
33641 Use MEM_P instead of GET_CODE == MEM.
33643 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
33645 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
33646 the external decls.
33648 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33651 * config/arm/arm.c (arm_gen_constant, AND case): Use
33652 ARM_SIGN_EXTEND when constructing AND mask.
33654 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
33656 * graph.c (print_graph_cfg): Make function names visible and append
33657 parenthesis to it. Also make groups of basic blocks belonging to the
33658 same function visible.
33660 2015-03-12 Richard Biener <rguenther@suse.de>
33662 PR middle-end/44563
33663 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
33664 to avoid quadratic behavior with inline expansion splitting blocks.
33665 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
33666 with the successor if the predecessor will be merged with it.
33667 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
33668 entry block with its successor.
33670 2015-03-13 Richard Biener <rguenther@suse.de>
33672 PR middle-end/44563
33673 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
33674 (cleanup_tree_cfg_1): Do not call it.
33675 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
33676 (fixup_noreturn_call): Mark the stmt as control altering.
33677 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
33679 (pass_data_fixup_cfg): Produce a dump file.
33680 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
33681 (need_noreturn_fixup): New global.
33682 (pass_dominator::execute): Fixup queued noreturn calls.
33683 (optimize_stmt): Queue calls that became noreturn for fixup.
33684 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
33685 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
33686 (el_to_fixup): New global.
33687 (eliminate_dom_walker::before_dom_childre): Queue calls that
33688 became noreturn for fixup.
33689 (eliminate): Fixup queued noreturn calls.
33690 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
33691 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
33692 (substitute_and_fold_dom_walker::before_dom_children): Queue
33693 alls that became noreturn for fixup.
33694 (substitute_and_fold): Fixup queued noreturn calls.
33696 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
33698 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
33699 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
33700 are building; for methods check ODR type of class they belong to if
33701 they may lead to a polymorphic call.
33702 (sem_function::compare_polymorphic_p): Be bit smarter about testing
33703 when function may lead to a polymorphic call.
33704 (sem_function::compare_type_list): Remove.
33705 (sem_variable::equals): Update use of compatible_types_p.
33706 (sem_variable::parse_tree_refs): Remove.
33707 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
33709 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
33711 (func_checker::compatible_polymorphic_types_p): Break out from ...
33712 (unc_checker::compatible_types_p): ... here.
33713 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
33715 (unc_checker::compatible_types_p): Update.
33716 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
33719 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33721 PR rtl-optimization/65235
33722 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
33723 When first element of vec_concat is const_int, calculate its size
33724 using second element.
33726 2015-03-12 Richard Biener <rguenther@suse.de>
33728 PR middle-end/65270
33729 * fold-const.c (operand_equal_p): Fix ordering of resetting
33730 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
33732 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
33734 * config/s390/s390.c (s390_reorg): Move code to output nops after label
33736 (s390_asm_output_function_label): Likewise.
33737 * config/s390/s390.c (s390_asm_output_function_label):
33738 Fix function label alignment with -mhtopatch.
33739 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
33740 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
33741 ("nop_2_byte"): New define_insn.
33742 ("nop_4_byte"): Likewise.
33743 ("nop_6_byte"): Likewise.
33744 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
33745 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
33747 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
33750 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
33753 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
33756 * toplev.c (process_options): Restrict Pointer Bounds Checker
33757 usage with Address Sanitizer.
33759 2015-03-12 Richard Biener <rguenther@suse.de>
33761 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
33763 * omp-low.c (expand_omp_taskreg): Split block before removing
33765 (expand_omp_target): Likewise.
33766 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
33767 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
33768 stmt to split_block.
33770 2015-03-12 Tom de Vries <tom@codesourcery.com>
33772 PR rtl-optimization/64895
33773 * lra-lives.c (check_pseudos_live_through_calls): Use
33774 actual_call_used_reg_set instead of call_used_reg_set, if available.
33776 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
33778 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
33779 (cgraph_node::remove): Likewise.
33780 (cgraph_node::get_untransformed_body): Likewise.
33781 * varpool.c (varpool_node::remove): Likewise.
33782 (varpool_node::get_constructor): Add sanity check.
33784 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
33786 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
33788 (-fabi-compat-version): Likewise.
33789 (-ffriend-injection): Likewise.
33790 (-Wdeclaration-after-statement): Likewise.
33791 (-fomit-frame-pointer): Likewise.
33792 (-ftree-coalesce-inlined-vars): Likewise.
33793 (-fvisibility=): Likewise.
33794 * doc/extend.texi (Typeof): Likewise.
33795 (Zero Length): Likewise.
33796 (Escaped Newlines): Likewise.
33797 (Compound Literals): Likewise.
33798 (Function Attributes): Likewise.
33799 (Label Attributes): Likewise.
33800 (Type Attributes): Likewise.
33801 (Function Names): Likewise.
33802 (Other Builtins): Likewise.
33803 (Function Specific Option Pragmas): Likewise.
33804 (C++ Interface): Likewise.
33806 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
33808 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
33810 2015-03-11 Marek Polacek <polacek@redhat.com>
33812 PR tree-optimization/65388
33813 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
33815 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
33818 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
33819 * configure: Regenerate.
33820 * config.in: Regenerate.
33821 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
33822 [-mn-flash]: Document it.
33823 [__AVR_ARCH__]: Document avrtiny.
33825 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
33826 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
33827 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
33829 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
33831 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
33833 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
33836 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
33837 allow reloads of PLUS in floating point/VSX registers.
33839 2015-03-11 Junmo Park <junmoz.park@samsung.com>
33841 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
33842 crypto_sha256_fast.
33843 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
33845 2015-03-11 Richard Biener <rguenther@suse.de>
33847 PR tree-optimization/65310
33848 * tree-sra.c (build_ref_for_offset): Also preserve larger
33851 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
33853 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
33855 2015-03-10 Jakub Jelinek <jakub@redhat.com>
33858 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
33860 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
33862 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
33864 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
33865 (sem_function::equals_wpa): ... here.
33867 2015-03-10 Marek Polacek <polacek@redhat.com>
33868 Jakub Jelinek <jakub@redhat.com>
33871 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
33872 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
33875 2015-03-10 Jakub Jelinek <jakub@redhat.com>
33878 * config/rs6000/t-linux: For powerpc64* target set
33879 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
33881 2015-03-10 Richard Biener <rguenther@suse.de>
33883 PR middle-end/44563
33884 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
33885 for redirect_all_calls.
33887 2015-03-10 Marek Polacek <polacek@redhat.com>
33889 * gdbinit.in (pcfun): Define and document.
33891 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
33893 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
33894 of libgomp-plugin.h.
33895 (find_target_compiler): Support a case when the path to gcc is
33896 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
33897 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
33898 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
33900 (main): Use GCC_INSTALL_NAME as target_driver_name.
33901 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
33903 (mkoffload.o): Remove obsolete include path and defines.
33904 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
33906 2015-03-10 Richard Biener <rguenther@suse.de>
33908 PR middle-end/63155
33909 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
33910 * tree-ssa-coalesce.c: Include timevar.h.
33911 (attempt_coalesce): Handle graph being NULL.
33912 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
33913 Split out abnormal coalescing to ...
33914 (perform_abnormal_coalescing): ... this function.
33915 (coalesce_ssa_name): Perform abnormal coalescing without computing
33917 (verify_ssa_coalescing_worker): New function.
33918 (verify_ssa_coalescing): Likewise.
33920 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
33923 * config.gcc (extra_options) [avr]: Remove.
33924 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
33925 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
33926 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
33928 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
33929 (-mmcu=): Add Var and MissingArgError properties.
33931 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
33932 * config/avr/t-multilib: Regenerate.
33933 * config/avr/specs.h: New file.
33934 * config/avr/driver-avr.c: New file.
33935 * config/avr/genopt.sh: Remove file.
33936 * config/avr/avr-tables.opt: Remove file.
33937 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
33938 * config/avr/avr-c.c: Same.
33939 * avr-arch.h: Same.
33940 (avr_current_device): Remove proto.
33941 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
33942 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
33943 (EXTRA_SPEC_FUNCTIONS): Define.
33944 (avr_devicespecs_file): New specs function proto.
33945 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
33946 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
33947 (avr_current_device): Remove definition and usage.
33948 (avr_set_core_architecture): New static function.
33949 (avr_option_override): Use it.
33950 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
33951 (mcu_name): New static array.
33952 (comparator, avr_archs_str, avr_mcus_str): New static functions.
33953 (avr_inform_devices, avr_inform_core_architectures): New functions.
33954 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
33955 (avrlibc.h) [WITH_AVRLIBC]: Include.
33956 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
33957 (print_mcu): Rewrite from scratch.
33958 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
33959 Forward to avr-specific specs defined in device-specs file.
33960 * config/avr/t-avr (driver-avr.o): New rule.
33961 (avr-devices.o): Depend on avr-arch.h.
33962 (avr-mcus): No more depend on avr-tables.opt.
33963 (avr-tables.opt): Remove rule.
33964 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
33966 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
33968 * c-family/c.opt (fchkp-use-wrappers): New.
33969 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
33970 (chkp_wrap_function): New.
33971 (chkp_build_instrumented_fndecl): Support wrapped
33973 * doc/invoke.texi (-fcheck-pointer-bounds): New.
33974 (-fchkp-check-incomplete-type): New.
33975 (-fchkp-first-field-has-own-bounds): New.
33976 (-fchkp-narrow-bounds): New.
33977 (-fchkp-narrow-to-innermost-array): New.
33978 (-fchkp-optimize): New.
33979 (-fchkp-use-fast-string-functions): New.
33980 (-fchkp-use-nochk-string-functions): New.
33981 (-fchkp-use-static-bounds): New.
33982 (-fchkp-use-static-const-bounds): New.
33983 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
33984 (-fchkp-check-read): New.
33985 (-fchkp-check-write): New.
33986 (-fchkp-store-bounds): New.
33987 (-fchkp-instrument-calls): New.
33988 (-fchkp-instrument-marked-only): New.
33989 (-fchkp-use-wrappers): New.
33990 (-static-libmpx): New.
33991 (-static-libmpxwrappers): New.
33993 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
33995 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
33996 (CHKP_SPEC): Add wrappers library.
33997 * c-family/c.opt (static-libmpxwrappers): New.
33999 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34001 * config/i386/linux-common.h (LIBMPX_LIBS): New.
34002 (LIBMPX_SPEC): New.
34004 * gcc.c (CHKP_SPEC): New.
34005 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
34006 * c-family/c.opt (static-libmpx): New.
34008 2015-03-10 Richard Biener <rguenther@suse.de>
34010 PR middle-end/44563
34011 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
34013 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
34014 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
34015 (cgraph_add_edge_to_call_site_hash): Likewise.
34016 (cgraph_node::get_edge): Likewise.
34017 (cgraph_edge::set_call_stmt): Likewise.
34018 (cgraph_edge::remove_caller): Likewise.
34020 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
34022 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
34023 (callee_saved_gpr_regs_size): ... this.
34024 (callee_saved_regs_first_regno): Rename to ...
34025 (callee_saved_first_gpr_regno): ... this.
34026 (callee_saved_regs_last_regno) Rename to ...
34027 (callee_saved_last_gpr_regno): ... this.
34028 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
34030 (nds32_initial_elimination_offset): Likewise.
34031 (nds32_expand_prologue): Likewise.
34032 (nds32_expand_epilogue): Likewise.
34033 (nds32_expand_prologue_v3push): Likewise.
34034 (nds32_expand_epilogue_v3pop): Likewise.
34035 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
34036 Adjust renamed variables.
34037 (nds32_output_stack_pop): Likewise.
34039 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
34041 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
34044 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34046 PR rtl-optimization/65321
34047 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
34049 * var-tracking.c (use_narrower_mode): Likewise.
34051 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34053 PR tree-optimization/65355
34054 * varasm.c (notice_global_symbol): Do not produce RTL.
34055 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
34057 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
34058 check for section anchors.
34060 2015-03-10 Alan Modra <amodra@gmail.com>
34063 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
34064 to be single-arch by default. Set cpu_is_64bit for powerpc64
34065 given --with-cpu=native.
34066 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
34067 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
34069 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
34070 rs6000_isa_flags rather than TARGET_64BIT.
34072 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
34073 Kaz Kojima <kkojima@gcc.gnu.org>
34075 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
34077 2015-03-09 Jakub Jelinek <jakub@redhat.com>
34080 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
34081 on a TREE_BINFO, instead use BINFO_TYPE.
34083 2015-03-09 Richard Biener <rguenther@suse.de>
34085 PR middle-end/65270
34086 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
34087 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
34088 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
34089 of that. When comparing dereferences compare alignment.
34090 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
34092 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
34094 * ipa-inline-analysis.c (check_callers): Check
34095 node->can_remove_if_no_direct_calls_and_refs_p.
34096 (growth_likely_positive): Reorganize to call
34097 can_remove_if_no_direct_calls_p later.
34098 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
34099 will_be_removed_from_program_if_no_direct_calls_p): Add
34100 will_inline parameter.
34101 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
34102 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
34103 Handle inliner case correctly.
34105 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
34107 PR tree-optimization/63743
34108 * cfgexpand.c (reorder_operands): Also reorder if only second operand
34109 had its definition forwarded by TER.
34111 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
34114 * ipa-utils.h (types_odr_comparable): Add strict argument.
34115 * ipa-devirt.c: Fix whitespace;
34116 (odr_hasher): Remove.
34117 (odr_name_hasher, odr_vtable_hasher): New hashers.
34118 (can_be_name_hashed_p): New predicate.
34119 (hash_type_name): remove.
34120 (hash_odr_name): New.
34121 (odr_name_hasher::hash): new.
34122 (can_be_vtable_hashed_p): New.
34123 (hash_odr_vtable): New.
34124 (odr_vtable_hasher::hash): New.
34125 (types_same_for_odr): Add strict parameter.
34126 (types_odr_comparable): Likewise.
34127 (odr_name_hasher::equal): New.
34128 (odr_vtable_hasher::equal): New.
34129 (odr_name_hasher::remove): New.
34130 (odr_hash_type): Change to hash_table<odr_name_hasher>.
34131 (odr_vtable_hash_type): New.
34132 (odr_vtable_hash): New.
34133 (odr_subtypes_equivalent_p): Do strict comparsion.
34134 (add_type_duplicate): Merge type names; cleanup; avoid type
34136 (register_odr_type): Initialize vtable hash.
34137 (build_type_inheritance_graph): Likewise
34138 (get_odr_type): Reorg to use two hashes.
34139 (dump_possible_polymorphic_call_targets): Move sanity check after debug
34141 (ipa_devirt): Dump type_inheritance_graph.
34142 (types_same_for_odr): Add strict mode.
34144 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
34147 * cgraph.h (symtab_node): Add definition_alignment,
34148 can_increase_alignment_p and increase_alignment.
34149 * symtab.c (symtab_node::can_increase_alignment_p,
34150 increase_alignment_1, symtab_node::increase_alignment,
34151 symtab_node::definition_alignment): New.
34152 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
34153 can_increase_alignment_p.
34154 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
34155 * tree-vect-stmts.c (ensure_base_align): Likewise.
34156 * varasm.c (function_section_1): Use definition_alignment.
34157 (assemble_start_function): Likewise.
34158 (emit_local): likewise.
34159 (build_constant_desc): Likewsie.
34160 (output_constant_def_contents): Likewise.
34161 (place_block_symbol): Likewise.
34162 (output_object_block): Likewise.
34164 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
34167 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
34168 when outputting debug.
34170 2015-03-07 Marek Polacek <polacek@redhat.com>
34171 Martin Uecker <uecker@eecs.berkeley.edu>
34174 * doc/invoke.texi: Update description of -fsanitize=bounds.
34176 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
34178 * tree-ssa-phiopt.c (neg_replacement): Remove.
34179 (tree_ssa_phiopt_worker): Remove negate optimization.
34181 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
34184 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
34186 2015-03-06 Richard Biener <rguenther@suse.de>
34188 PR middle-end/64928
34189 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
34190 and liveout_obstack members.
34191 (calculate_live_on_exit): Remove.
34192 (calculate_live_ranges): Change declaration.
34193 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
34194 (new_tree_live_info): Adjust.
34195 (calculate_live_ranges): Delete livein when not wanted.
34196 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
34197 Deal with partly deleted live info.
34198 (loe_visit_block): Remove temporary bitmap by using
34199 bitmap_ior_and_compl_into.
34200 (live_worklist): Adjust accordingly.
34201 (calculate_live_on_exit): Make static.
34202 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
34203 we do not need livein.
34205 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
34207 * real.c (real_from_string): Fix typo in assertion.
34209 2015-03-06 Alex Velenko <alex.velenko@arm.com>
34211 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
34214 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
34216 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
34218 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
34221 * lra-assigns.c (find_hard_regno_for): Rename to
34222 find_hard_regno_for_1. Add a new parameter.
34223 (find_hard_regno_for): New function using find_hard_regno_for_1.
34225 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
34227 PR rtl-optimization/65067
34228 * expmed.c (store_bit_field, extract_bit_field): Reworked the
34229 strict volatile bitfield handling.
34231 2015-03-05 Martin Liska <mliska@suse.cz>
34234 * ipa-icf.c (sem_variable::equals): Compare variables types.
34236 2015-03-05 Richard Henderson <rth@redhat.com>
34239 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
34240 correctly check weak symbol binding.
34242 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
34244 PR middle-end/65315
34245 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
34248 2015-03-05 Martin Liska <mliska@suse.cz>
34250 * ipa-inline.c (inline_small_functions): Set default value to
34251 prevent warning during bootstrap.
34252 * tree.h: Add pragma guard that ignores false positives during
34255 2015-03-05 Richard Biener <rguenther@suse.de>
34257 PR tree-optimization/65310
34258 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
34259 Properly preserve alignment of the base of the access.
34261 2015-03-05 Richard Biener <rguenther@suse.de>
34264 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
34265 Compare dependence info.
34267 2015-03-05 Richard Biener <rguenther@suse.de>
34269 PR middle-end/65233
34270 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
34272 (walk_ssa_copies): Revert last chage. Instead do not walk
34273 SSA names registered for SSA update.
34275 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
34278 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
34279 vtable references for their containing type.
34280 (sem_function::equals_wpa): Compare TYPE_RESTRICT
34281 and type attributes.
34283 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
34285 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
34286 before negating it.
34287 * stor-layout.c (finalize_record_size): Revert latest change.
34289 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
34291 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
34293 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
34295 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
34296 for correct comdat handling.
34297 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
34299 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
34300 (used_from_object_file_p_worker): Remove.
34301 (cgraph_node::only_called_directly_or_alised): Add
34302 used_from_object_file_p.
34303 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
34304 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
34305 can_remove_if_no_direct_calls_and_refs_p.
34307 2015-03-04 Nick Clifton <nickc@redhat.com>
34309 * config/rl78/rl78.h (enum reg_class): Remove real registers from
34310 General register class.
34311 * config/rl78/rl78-real.md: Replace general register constraints
34312 with real+virtual register constraints.
34314 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34316 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
34317 from checking for -mhtm option.
34319 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
34321 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
34322 (struct ipa_sra_check_caller_data): Add has_thunk field.
34323 (ipa_sra_check_caller): Check for thunk.
34324 (ipa_sra_preliminary_function_checks): Give up on function with
34326 (ipa_early_sra): Use call_for_symbol_and_aliases.
34328 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
34331 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
34332 called for __stack_chk_guard symbol.
34334 2015-03-03 DJ Delorie <dj@redhat.com>
34336 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
34338 (*addhi3_real): Likewise.
34339 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
34340 pattern to match incrementing memory.
34341 * config/rl78/predicates.md (rl78_1_2_operand): New.
34342 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
34343 it's the same and only mem.
34344 (rl78_alloc_physical_registers_op2): If there's effectively only
34345 one MEM, transcode it into HL.
34346 (rl78_far_p): Reject addresses that aren't legitimate.
34348 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
34350 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
34353 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
34355 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
34357 Implement call0 ABI for xtensa
34358 * config/xtensa/constraints.md ("a" constraint): Include stack
34359 pointer in case of call0 ABI.
34360 ("q" constraint): Make empty in case of call0 ABI.
34361 ("D" constraint): Include stack pointer in case of call0 ABI.
34362 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
34363 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
34365 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
34367 (xtensa_regno_to_class): Make it a local variable in the
34368 function xtensa_regno_to_class.
34369 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
34370 macro, function prototype and implementation.
34371 (reg_nonleaf_alloc_order): Make it a local variable in the
34372 function order_regs_for_local_alloc.
34373 (xtensa_conditional_register_usage): New function.
34374 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
34375 (xtensa_valid_move): Allow direct moves to stack pointer
34376 register in call0 ABI.
34377 (xtensa_setup_frame_addresses): Only spill register windows in
34379 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
34380 call0 ABI respectively.
34381 (xtensa_function_arg_1): Only mark a7 register for copying in
34383 (xtensa_call_save_reg): New function.
34384 (compute_frame_size): Add space for callee saved register
34385 storage to the frame size in call0 ABI.
34386 (xtensa_expand_prologue): Generate code to set up stack frame
34387 and save callee-saved registers in call0 ABI.
34388 (xtensa_expand_epilogue): New function.
34389 (xtensa_set_return_address): New function.
34390 (xtensa_return_addr): Calculate return address in call0 ABI.
34391 (xtensa_builtin_saveregs): Only mark a7 register for copying and
34392 emit copying code in windowed ABI.
34393 (order_regs_for_local_alloc): Add preferred register allocation
34394 order for non-leaf function in call0 ABI.
34395 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
34396 (xtensa_asm_trampoline_template): Add trampoline generation for
34398 (xtensa_trampoline_init): Add trampoline initialization for
34400 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
34402 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
34403 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
34404 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
34405 ABI call-used registers.
34406 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
34407 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
34409 (REG_CLASS_CONTENTS): Include all registers into the preferred
34410 reload registers set, adjust the set in the
34411 xtensa_conditional_register_usage.
34412 (xtensa_regno_to_class): Drop variable declaration.
34413 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
34415 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
34417 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
34418 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
34419 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
34420 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
34421 location in call0 ABI.
34422 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
34423 stack adjustment size when handling exception.
34424 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
34425 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
34427 ("return" pattern): Generate ret.n/ret in call0 ABI.
34428 ("epilogue" pattern): Expand epilogue.
34429 ("nonlocal_goto" pattern): Use default in call0 ABI.
34430 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
34431 emit eh_set_a0_* depending on ABI.
34432 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
34433 ("eh_set_a0_call0", "blockage"): New patterns.
34435 2015-03-03 Martin Liska <mliska@suse.cz>
34438 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
34440 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
34443 * config/rs6000/rs6000-tables.opt: Regenerate table.
34445 2015-03-03 Renlin Li <renlin.li@arm.com>
34447 * doc/md.texi (@item ^): Change ? into ^.
34449 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
34451 * doc/tm.texi: Regenerated.
34453 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
34455 * builtins.c (expand_builtin_return_addr): Add
34456 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
34457 surrounding #ifdef.
34458 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
34460 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
34462 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
34464 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
34467 2015-03-03 Martin Jambor <mjambor@suse.cz>
34468 Eric Botcazou <ebotcazou@adacore.com>
34470 * tree-sra.c (ipa_sra_check_caller_data): New type.
34471 (has_caller_p): Removed.
34472 (ipa_sra_check_caller): New function.
34473 (ipa_sra_preliminary_function_checks): Use it.
34475 2015-03-03 Martin Liska <mliska@suse.cz>
34477 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
34478 instead of if branch.
34480 2015-03-03 Martin Liska <mliska@suse.cz>
34483 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
34485 2015-03-23 Jeff Law <law@redhat.com>
34487 PR tree-optimization/65241
34488 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
34489 hash table if INSERT is true.
34491 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
34494 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
34496 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
34499 * config/avr/avr.c (context.h, tree-pass.h): Include them.
34500 (avr_pass_data_recompute_notes): New static variable.
34501 (avr_pass_recompute_notes): New class.
34502 (avr_register_passes): New static function.
34503 (avr_option_override): Call it.
34505 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
34507 Fix various problems with specs file generation.
34510 * config.gcc (extra_gcc_objs) [avr]: Remove.
34511 * config/avr/driver-avr.c: Remove file.
34512 * config/avr/t-avr (driver-avr.o): Remove rule.
34513 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
34514 INCLUDES to build. Depend on TM_H.
34515 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
34516 build warnings. Fix non-matching types and non-existing %-codes.
34518 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
34519 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
34520 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
34521 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
34522 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
34523 (LIBGCC_SPEC): Remove definitions.
34525 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
34527 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
34528 to create a register in testing mode.
34530 2015-03-03 Martin Liska <mliska@suse.cz>
34531 Jan Hubicka <hubicka@ucw.cz>
34534 * cgraph.c (cgraph_node::has_thunk_p): New function.
34535 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
34536 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
34537 (sem_function::merge): Assert is changed.
34539 2015-03-03 Martin Liska <mliska@suse.cz>
34540 Martin Jambor <mjambor@suse.cz>
34543 * ipa-icf.c (sem_item_optimizer::execute): Change function
34544 return value to boolean.
34545 (sem_item_optimizer::merge_classes): Likewise.
34546 (ipa_icf_driver): Return TODO_remove_functions in case there's
34547 a merge operation processed.
34548 * ipa-icf.h: Change function return value to boolean.
34550 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
34553 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
34554 processor type for 64-bit little endian PowerPC.
34556 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
34557 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
34558 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
34559 printing built-in mask so it does not pass NULL pointers.
34561 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
34564 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
34567 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
34568 !ISA_HAS_FP_CONDMOVE.
34570 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
34572 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
34575 2015-03-02 Ulrich Drepper <drepper@gmail.com>
34577 * doc/invoke.texi (Options for Code Generation Conventions):
34578 Fix URL of DSO paper.
34580 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
34583 * ipa-inline.c (check_callers): Looks for recursion.
34584 (inline_to_all_callers): Give up on uninlinable or recursive edges.
34585 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
34586 summary of inline clones.
34587 (do_estimate_growth_1): Fix recursion check.
34589 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
34592 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
34595 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
34596 Aldy Hernandez <aldyh@redhat.com>
34599 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
34600 when checking TYPE_BINFO.
34602 2015-03-02 Richard Biener <rguenther@suse.de>
34605 * ipa-icf-gimple.c: Include builtins.h.
34606 (func_checker::compare_memory_operand): Compare base alignment.
34608 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
34611 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
34612 passed by reference.
34614 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
34617 * tree-chkp.c (chkp_check_lower): Don't check against
34618 zero bounds for already instrumented functions.
34619 (chkp_check_upper): Likewise.
34620 (chkp_fini): Clean pass local data to avoid wrong reusage.
34622 2015-02-28 Martin Liska <mliska@suse.cz>
34623 Jan Hubicka <hubicka@ucw.cz>
34625 * ipa-icf.c (sem_variable::equals): Improve debug output;
34626 get variable constructor.
34627 (sem_variable::parse): Do not filter out too early; give up on
34628 volatile and register vars.
34629 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
34631 * ipa-icf.h (sem_variable::init): Do not set ctor.
34632 (sem_variable::ctor): Remove.
34634 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
34636 PR middle-end/65233
34637 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
34639 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34641 * ipa-icf.c: Include stor-layout.h
34642 (sem_function::compare_cgraph_references): Rename to ...
34643 (sem_item::compare_cgraph_references): ... this one.
34644 (sem_variable::equals_wpa): New function
34645 (sem_variable::equals): Do not check stuff already verified by
34647 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
34648 * ipa-icf.h (sem_item): Add compare_cgraph_references.
34649 (sem_function): Remove compare_cgraph_references.
34650 (sem_variable): Turns equals_wpa into non-inline.
34652 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34654 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
34655 (sem_item::add_expr): New function.
34656 (sem_function::hash_stmt): Handle operands of most statements.
34657 (sem_variable::get_hash): Hash the actual constructor.
34658 * ipa-icf.h (sem_item): Add add_expr.
34659 (sem_function): Update prototype of hash_stmt
34661 2015-02-28 Martin Liska <mliska@suse.cz>
34662 Jan Hubicka <hubicka@ucw.cz>
34665 * ipa-icf-gimple.c (func_checker::compare_function_decl):
34667 (func_checker::compare_variable_decl): Skip symtab vars.
34668 (func_checker::compare_cst_or_decl): Update.
34669 * ipa-icf.c (sem_function::parse): Do not consider aliases.
34670 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
34671 use correct symtab predicates.
34672 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
34673 (sem_variable::parse): Update comment.
34674 (sem_item_optimizer::build_graph): Consider ultimate aliases
34677 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34679 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
34682 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34684 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
34685 (sem_variable::merge) Likewise.
34687 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34689 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
34690 target; also match flag_ipa_devirt.
34692 2015-03-01 Martin Liska <mliska@suse.cz>
34693 Jan Hubicka <hubicka@ucw.cz>
34695 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
34696 Validate variable alignment.
34697 * ipa-icf.c (sem_function::equals_private): Be more precise
34698 about non-common function attributes.
34699 (sem_variable::equals): Likewise.
34701 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34704 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
34705 across COMDAT group boundary.
34707 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34710 * ipa-icf.c (clear_decl_rtl): New function.
34711 (sem_function::merge): Clear RTL before forming alias.
34712 (sem_variable::merge): Clear RTL before forming alias.
34714 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
34717 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
34719 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
34721 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
34724 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
34726 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
34727 a typo in the description.
34729 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
34732 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
34733 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
34734 * lra-constraints.c: Include "params.h".
34735 (EBB_PROBABILITY_CUTOFF): Use
34736 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
34737 (lra_inheritance): Use '<' instead of '<=' for
34738 EBB_PROBABILITY_CUTOFF.
34739 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
34742 2015-02-27 Martin Liska <mliska@suse.cz>
34744 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
34745 vector length condition.
34747 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
34749 * doc/extend.texi (x86 transactional memory intrinsics):
34750 Reorganize discussion of _xbegin. Clarify that the return
34751 value is a bit mask. Expand example and move to end of section.
34753 2015-02-26 Jakub Jelinek <jakub@redhat.com>
34754 Aldy Hernandez <aldyh@redhat.com>
34756 PR rtl-optimization/65220
34757 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
34759 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
34762 * lra-remat.c (update_scratch_ops): New.
34763 (do_remat): Call it.
34764 * lra.c (lra_register_new_scratch_op): New. Take code from ...
34765 (remove_scratches): ... here.
34766 * lra-int.h (lra_register_new_scratch_op): New prototype.
34768 2015-02-27 Marek Polacek <polacek@redhat.com>
34771 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
34772 -Wformat-signedness anymore.
34774 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34776 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
34778 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
34780 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34782 * config/s390/s390.c (enum s390_builtin):
34783 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
34784 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
34785 (s390_init_builtins): Generate new builtin functions.
34786 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
34787 (s390_sfpc, s390_efpc): New pattern definitions.
34789 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34791 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
34792 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
34793 (s390_builtin_decls): New array.
34794 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
34795 (s390_builtin_decl): New function.
34796 (TARGET_BUILTIN_DECL): Define macro.
34798 2015-02-27 Richard Biener <rguenther@suse.de>
34800 PR middle-end/63175
34801 * builtins.c (get_object_alignment_2): Make sure to re-apply
34802 the ANDed mask after recursing to its operand gets us a new
34803 misalignment bit position.
34805 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
34806 Martin Liska <mliska@suse.cz>
34809 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
34810 Use address_matters_p.
34811 (redirect_all_callers, set_addressable): New functions.
34812 (sem_function::merge): Reorganize and fix merging issues.
34813 (sem_variable::merge): Likewise.
34814 (sem_variable::compare_sections): Remove.
34815 * common.opt (fmerge-all-constants, fmerge-constants): Remove
34817 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
34819 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
34821 (address_matters_1): New function.
34822 (symtab_node::address_matters_p): New function.
34823 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
34824 check for merged flag.
34825 * cgraph.h (address_matters_p): Declare.
34826 (symtab_node::address_taken_from_non_vtable_p): Remove.
34827 (symtab_node::address_can_be_compared_p): New method.
34828 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
34829 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
34831 (comdat_can_be_unshared_p_1) Use address_matters_p.
34832 (update_vtable_references): Fix formating.
34833 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
34834 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
34835 * cgraphclones.c: Preserve merged and icf_merged flags.
34837 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
34839 * doc/extend.texi (Function Attributes): Fix spelling and typos.
34840 (Label Attributes): Likewise.
34841 (Cilk Plus Builtins): Likewise.
34842 (ARC SIMD Built-in Functions): Likewise.
34843 (ARM C Language Extensions (ACLE)): Likewise.
34844 (PowerPC Built-in Functions): Likewise.
34845 (PowerPC Hardware Transactional Memory Built-in Functions):
34848 2015-02-26 Jakub Jelinek <jakub@redhat.com>
34850 PR tree-optimization/65216
34851 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
34852 new stmt and new SSA_NAME for lhs whenever the arguments have
34853 changed and weren't just swapped. Fix comment typo.
34855 PR tree-optimization/65215
34856 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
34857 for PDP endian targets.
34858 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
34859 Fix up formatting issues.
34860 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
34861 size is smaller than the original, adjust MEM_REF offset by the
34862 difference of sizes. Use is_gimple_mem_ref_addr instead of
34863 is_gimple_min_invariant test to avoid adding address temporaries.
34865 2015-02-26 Martin Liska <mliska@suse.cz>
34866 Jan Hubicka <hubicka@ucw.cz>
34869 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
34870 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
34871 (sem_item_optimizer::process_cong_reduction): Include division by
34872 sensitive references.
34873 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
34874 * ipa-ref.c (ipa_ref::address_matters_p): New function.
34875 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
34877 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
34880 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
34882 * config/avr/avr.c: Same.
34883 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
34884 Refuse any constant address not in 0..0xbf.
34885 * config/avr/avr.md (*mov<mode>, *movsf): Remove
34886 tiny_valid_direct_memory_access_range from insn conditions.
34887 (mov<mode>): Don't special-case expansion of avrtiny addresses.
34889 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
34892 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
34893 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
34894 * config/sh/predicates.md (const_logical_operand): New predicate.
34895 * config/sh/sh.md: Add new peephole2 patterns.
34897 2015-02-26 Marek Polacek <polacek@redhat.com>
34900 * ipa-inline.c (early_inliner): Recompute inline parameters.
34902 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34905 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
34906 instructions with TImode operands are included in the analysis.
34908 2015-02-26 Sebastian Pop <s.pop@samsung.com>
34910 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
34911 of an EDGE_FSM_THREAD.
34913 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
34915 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
34917 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
34920 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
34922 2015-02-26 Sebastian Pop <s.pop@samsung.com>
34924 PR tree-optimization/65048
34925 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
34926 (thread_through_all_blocks): Call valid_jump_thread_path.
34927 Remove invalid FSM jump-thread paths.
34929 2015-02-26 Jakub Jelinek <jakub@redhat.com>
34931 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
34932 (ipa_write_optimization_summaries): Likewise.
34933 * tree-streamer.h: Include data-streamer.h.
34934 (streamer_mode_table): Declare extern variable.
34935 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
34936 * lto-streamer-out.c (lto_output_init_mode_table,
34937 lto_write_mode_table): New functions.
34938 (produce_asm_for_decls): Call lto_write_mode_table when streaming
34940 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
34941 (lto_create_simple_input_block): Add mode_table argument to the
34942 lto_input_block constructors.
34943 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
34945 * data-streamer-in.c (string_for_index): Likewise.
34946 * ipa-inline-analysis.c (inline_read_section): Likewise.
34947 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
34948 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
34949 * lto-streamer-in.c (lto_read_body_or_constructor,
34950 lto_input_toplevel_asms): Likewise.
34951 (lto_input_mode_table): New function.
34952 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
34953 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
34954 Use bp_pack_machine_mode.
34955 * real.h (struct real_format): Add name field.
34956 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
34957 (class lto_input_block): Add mode_table member.
34958 (lto_input_block::lto_input_block): Add mode_table_ argument,
34959 initialize mode_table.
34960 (struct lto_file_decl_data): Add mode_table field.
34961 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
34962 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
34963 unpack_ts_decl_common_value_fields,
34964 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
34965 * tree-streamer.c (streamer_mode_table): New variable.
34966 * real.c (ieee_single_format, mips_single_format,
34967 motorola_single_format, spu_single_format, ieee_double_format,
34968 mips_double_format, motorola_double_format,
34969 ieee_extended_motorola_format, ieee_extended_intel_96_format,
34970 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
34971 ibm_extended_format, mips_extended_format, ieee_quad_format,
34972 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
34973 decimal_single_format, decimal_double_format, decimal_quad_format,
34974 ieee_half_format, arm_half_format, real_internal_format): Add name
34976 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
34978 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
34981 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
34982 reordering for selective scheduling.
34984 2015-02-26 Terry Guo <terry.guo@arm.com>
34986 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
34987 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
34988 (arm_arch_no_volatile_ce): Declare new global variable.
34989 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
34990 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
34991 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
34992 (TARGET_NO_VOLATILE_CE): New macro.
34993 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
34994 volatile memory access in IT block
34996 2015-02-25 Kai Tietz <ktietz@redhat.com>
34998 PR tree-optimization/61917
34999 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
35000 that reduc_def_stmt is null.
35002 2015-02-25 Martin Liska <mliska@suse.cz>
35004 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
35005 hard register variables.
35007 2015-02-25 Kai Tietz <ktietz@redhat.com>
35010 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
35011 (symtab::noninterposable_alias): Likewise.
35013 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
35016 * config/i386/i386.c (ix86_function_arg_regno_p): Support
35018 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
35020 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
35023 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
35024 as split condition; force split via '#' in output pattern.
35026 2015-02-25 Richard Biener <rguenther@suse.de>
35027 Kai Tietz <ktietz@redhat.com>
35029 PR tree-optimization/61917
35030 * tree-vect-loop.c (vectorizable_reduction): Allow
35031 vect_internal_def without reduction to exit graceful.
35033 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
35036 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
35037 only with NONDEBUG_INSN_P.
35039 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
35041 Use variadic macros with avr-log.c.
35043 * config/avr/avr-protos.h (avr_vdump): New prototype.
35044 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
35045 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
35046 * config/avr/avr-log.c: Adjust comments.
35047 (avr_vdump): New function.
35048 (avr_vadump): Pass caller as 2nd argument instead of format string.
35049 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
35050 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
35052 2015-02-25 Jakub Jelinek <jakub@redhat.com>
35055 * target.def (target_option_stream_in): New target hook.
35056 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
35057 targetm.target_option.post_stream_in if non-NULL.
35058 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
35059 * doc/tm.texi: Updated.
35060 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
35062 (TARGET_OPTION_POST_STREAM_IN): Redefine.
35064 2015-02-24 Jeff Law <law@redhat.com>
35067 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
35068 of operand 0 and operand 2.
35069 (zero_cost_loop_end, loop_end): Similarly.
35071 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
35073 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
35076 2015-02-24 DJ Delorie <dj@redhat.com>
35078 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
35079 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
35080 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
35081 instead of hardcoding SImode.
35083 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
35085 * omp-low.c (create_omp_child_function): Tag entrypoint
35086 functions with a special attribute.
35088 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
35091 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
35093 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
35095 PR rtl-optimization/65123
35096 * lra-remat.c (operand_to_remat): Check hard regs in insn
35099 2015-02-24 Nick Clifton <nickc@redhat.com>
35101 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
35104 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
35107 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
35108 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
35109 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
35110 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
35111 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
35112 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
35113 (BUILT_IN_GOACC_PARALLEL): Specify as
35114 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
35115 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
35116 * builtin-types.def
35117 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35118 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35119 Remove function types.
35120 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
35121 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35122 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35123 New function types.
35125 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
35127 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
35129 2015-02-24 Jakub Jelinek <jakub@redhat.com>
35131 PR tree-optimization/65170
35132 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
35133 if val[1] < 0, clear also val[2] and return 3.
35135 2015-02-24 Alan Modra <amodra@gmail.com>
35138 * config/rs6000/rs6000.c (get_memref_parts): Only return true
35139 when *base is a reg. Handle nested plus addresses. Simplify
35142 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
35144 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
35145 use natural alignment when optimizing for size.
35147 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
35150 * config/sh/sh.md (movsicc_true+3): Remove peephole.
35151 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
35152 * config/sh/sh.c (replace_n_hard_rtx): Remove.
35154 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
35157 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
35158 too big for a wide_int. Implement missing wrapping operation.
35160 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
35163 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
35164 instead of const_int 4294901760.
35166 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
35168 * config/avr/t-avr: Fix typo in comment.
35170 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
35172 * doc/rtl.texi (fma): Clarify documentation.
35174 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
35177 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
35178 over input_location.
35180 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
35182 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
35183 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
35184 restrict alignments to absolute_biggest_alignment.
35185 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
35187 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
35188 * doc/tm.texi: Regenerate.
35189 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
35191 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
35194 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
35196 2015-02-20 Richard Biener <rguenther@suse.de>
35198 PR tree-optimization/65136
35199 * tree-ssa-propagate.c: Include cfgloop.h.
35200 (replace_phi_args_in): Avoid replacing loop latch edge PHI
35201 arguments with constants.
35203 2015-02-20 Jakub Jelinek <jakub@redhat.com>
35204 Martin Liska <mliska@suse.cz>
35207 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
35208 don't try to create_thunk if stdarg_p. If
35209 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
35210 redirect_callers if possible.
35211 (sem_item_optimizer::execute): Call unregister_hooks here...
35212 (ipa_icf_driver): ... instead of here.
35214 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35216 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
35217 Mark operand 0 as earlyclobber in 2nd alternative.
35218 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
35219 Write negated shift amount into QI lowpart operand 0 and use it
35221 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
35223 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
35225 * cgraph.h (clone_function_name_1): Declare.
35226 * cgraphclones.c (clone_function_name_1): New function.
35227 (clone_function_name): Use it.
35228 * lto-partition.c: Include "stringpool.h".
35229 (must_not_rename, maybe_rewrite_identifier)
35230 (validize_symbol_for_target): New static functions.
35231 (privatize_symbol_name): Use must_not_rename.
35232 (promote_symbol): Call validize_symbol_for_target.
35233 (lto_promote_cross_file_statics): Likewise.
35234 (lto_promote_statics_nonwpa): Likewise.
35236 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
35239 * config/avr/avr.md (pushhi_insn): New insn.
35240 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
35242 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
35243 Jakub Jelinek <jakub@redhat.com>
35245 * tree-streamer.c (preload_common_nodes): Don't preload
35246 TI_VA_LIST* for offloading.
35247 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
35250 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
35252 * config/pa/pa.c (pa_emit_move_sequence): Always force
35253 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
35256 * config/pa/pa.c (pa_reloc_rw_mask): New function.
35257 (TARGET_ASM_RELOC_RW_MASK): Define.
35258 (pa_cannot_force_const_mem): Revert previous change.
35260 2015-02-19 Martin Jambor <mjmabor@suse.cz>
35261 Jan Hubicka <hubicka@ucw.cz>
35264 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
35265 across jump functions.
35267 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
35269 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
35271 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
35273 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
35275 2015-02-19 Richard Henderson <rth@redhat.com>
35277 PR middle-end/65074
35278 * varasm.c (default_binds_local_p_2): Don't test node->definition;
35279 test DECL_EXTERNAL independent of symtab_node.
35281 2015-02-19 Jakub Jelinek <jakub@redhat.com>
35284 * varpool.c (varpool_node::get_constructor): Return early
35285 if this->lto_file_data is NULL.
35287 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35289 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
35290 (rank_for_schedule_debug): Update.
35291 (ready_sort): Make static. Move sorting logic to ...
35292 (ready_sort_debug, ready_sort_real): New static functions.
35293 (schedule_block): Sort both debug insns and real insns in preparation
35294 for ready list trimming. Improve debug output.
35295 * sched-int.h (ready_sort): Remove global declaration.
35297 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
35299 * ipa-icf.c (sem_function::equals_private): Adjust.
35300 (sem_function::bb_dict_test): Take a vec<int> * instead of
35302 * ipa-icf.h (bb_dict_test): Likewise.
35304 2015-02-18 Jakub Jelinek <jakub@redhat.com>
35306 PR gcov-profile/64634
35307 * tree-eh.c (frob_into_branch_around): Fix up typos
35308 in function comment.
35309 (lower_catch): Put eh_seq resulting from EH lowering of
35310 the cleanup sequence after the cleanup rather than before it.
35312 2015-02-18 Tom de Vries <tom@codesourcery.com>
35314 * common.opt (fstdarg-opt): New option.
35315 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
35316 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
35317 (@item -fstdarg-opt): New item.
35319 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
35322 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
35323 for common symbols.
35325 2015-02-18 Jakub Jelinek <jakub@redhat.com>
35327 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
35329 (ALL_HOST_OBJS): Add mkoffload.o.
35330 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
35332 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
35334 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
35335 (compare_virtual_tables): Be smarter about skipping typeinfos;
35336 do sane output on virtual table table mismatch.
35337 (warn_odr): Be ready for forward declarations of enums;
35338 output sane info on base mismatch and virtual table mismatch.
35339 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
35340 when only one type is polymorphic.
35341 (get_odr_type): Fix hashtable corruption.
35342 (dump_odr_type): Dump mangled names.
35344 2015-02-18 Richard Biener <rguenther@suse.de>
35346 PR tree-optimization/65063
35347 * tree-predcom.c (determine_unroll_factor): Return 1 if we
35348 have replaced looparound PHIs.
35350 2015-02-18 Martin Liska <mliska@suse.cz>
35352 * lto-streamer.c (lto_streamer_init): Encapsulate
35353 streamer_check_handled_ts_structures with checking macro.
35355 2015-02-18 Jakub Jelinek <jakub@redhat.com>
35358 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
35359 section if !implicit_section.
35360 (cgraph_node::create_version_clone_with_body): Likewise.
35361 * trans-mem.c (ipa_tm_create_version): Likewise.
35363 2015-02-18 Richard Biener <rguenther@suse.de>
35365 PR tree-optimization/62217
35366 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
35369 2015-02-18 Marek Polacek <polacek@redhat.com>
35372 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
35373 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
35374 is in range [-16K, -1]. Don't issue run-time error if
35375 (ptr > ptr + offset).
35377 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
35379 * doc/install.texi (nvptx-*-none): New section.
35380 * doc/invoke.texi (Nvidia PTX Options): Likewise.
35381 * config/nvptx/nvptx.opt: Update.
35383 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
35384 (access_check): New functions, copied from
35385 config/i386/intelmic-mkoffload.c.
35386 (main): For non-installed testing, look in all COMPILER_PATHs for
35389 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
35391 2015-02-18 Andrew Pinski <apinski@cavium.com>
35392 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35394 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
35395 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
35397 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
35399 * ipa-visibility.c (function_and_variable_visibility): Only
35400 check locality if node is not already local.
35401 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
35402 call_for_symbol_and_aliases instead of
35403 call_for_symbol_thunks_and_aliases.
35404 (ipa_inline): Likewise.
35405 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
35406 first walk aliases.
35407 * ipa.c (symbol_table::remove_unreachable_nodes): Use
35408 call_for_symbol_and_aliases.
35409 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
35410 (ipa_propagate_frequency_1): Use it; use opt_for_fn
35411 (ipa_propagate_frequency): Update.
35412 (ipa_profile): Add opt_for_fn gueards.
35414 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
35416 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
35417 * doc/invoke.texi (SH options): Document it.
35418 * config/sh/sh.c (sh_insn_length_adjustment): Check
35419 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
35421 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
35423 * common.opt (fipa-cp-alignment): New.
35424 * ipa-cp.c (ipcp_store_alignment_results): Check
35425 flag_ipa_cp_alignment.
35426 * opts.c (default_options_table): Enable -fipa-cp-alignment for
35428 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
35429 * doc/invoke.texi: Document -fipa-cp-alignment.
35431 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
35434 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
35435 to nil. Adjust comments.
35437 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
35439 * ipa-visibility.c (function_and_variable_visibility): Only
35440 check locality if node is not already local.
35441 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
35442 call_for_symbol_and_aliases instead of
35443 call_for_symbol_thunks_and_aliases.
35444 (ipa_inline): Likewise.
35445 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
35446 first walk aliases.
35447 * ipa.c (symbol_table::remove_unreachable_nodes): Use
35448 call_for_symbol_and_aliases.
35449 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
35450 (ipa_propagate_frequency_1): Use it; use opt_for_fn
35451 (ipa_propagate_frequency): Update.
35452 (ipa_profile): Add opt_for_fn guards.
35454 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
35456 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
35457 skipping of "strange" tokens.
35459 2015-02-17 Jeff Law <law@redhat.com>
35461 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
35464 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
35466 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
35467 as forcing a HARD_DEP between instructions, thereby
35468 disallowing rewriting to break dependencies.
35470 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
35472 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
35473 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
35474 variables in boundary that have no inlitalizer encoded and are
35476 * varasm.c (default_binds_local_p_2): External definitions do not
35477 count as definitions here.
35479 2015-02-16 Jeff Law <law@redhat.com>
35481 PR tree-optimization/64823
35482 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
35484 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
35485 threading through blocks with PHIs, but no statements.
35486 (thread_through_normal_block): Distinguish between blocks where
35487 we did not process all the statements and blocks with no statements.
35489 2015-02-16 Jakub Jelinek <jakub@redhat.com>
35490 James Greenhalgh <james.greenhalgh@arm.com>
35493 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
35494 section if not linkonce. Fix up formatting.
35495 (cgraph_node::create_version_clone_with_body): Copy section.
35496 * trans-mem.c (ipa_tm_create_version): Likewise.
35498 2015-02-16 Richard Biener <rguenther@suse.de>
35500 PR tree-optimization/65077
35501 * tree-ssa-structalias.c (get_constraint_for_1): Handle
35502 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
35503 (find_func_aliases): Allow float values to carry pointers again.
35505 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
35507 * doc/install.texi (Specific): Reorder targets list to put
35508 aarch64 in alphabetical order. Add a link to aarch64*-*-*
35511 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
35512 David Edelsohn <dje.gcc@gmail.com>
35515 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
35516 mapping class to external variable or function reference.
35517 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
35520 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
35523 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
35524 ASM_WEAKEN_DECL if defined.
35526 2015-02-16 Richard Biener <rguenther@suse.de>
35529 * varasm.c (default_file_start): For LTO produced units
35530 emit <artificial> as file directive.
35532 2015-02-16 Richard Biener <rguenther@suse.de>
35534 PR tree-optimization/63593
35535 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
35536 stmts and releasing SSA names until...
35537 (execute_pred_commoning): ... after processing all chains.
35539 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
35542 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
35543 external functions.
35545 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
35547 * doc/bugreport.texi: Adjust section titles throughout the file
35548 to use "Title Case".
35549 * doc/extend.texi: Likewise.
35550 * doc/gcov.texi: Likewise.
35551 * doc/implement-c.texi: Likewise.
35552 * doc/implement-cxx.texi: Likewise.
35553 * doc/invoke.texi: Likewise.
35554 * doc/objc.texi: Likewise.
35555 * doc/standards.texi: Likewise.
35556 * doc/trouble.texi: Likewise.
35558 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
35560 * cgraph.h (symtab_node::has_aliases_p): Simplify.
35561 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
35562 * tree.c (lookup_binfo_at_offset): Make static.
35563 (get_binfo_at_offset): Do not shadow offset; add explanatory
35566 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
35568 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
35569 for all floading point loads and stores except those using a register
35571 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
35574 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
35576 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
35577 (do_estimate_growth_1): Record if any uninlinable edge was seen.
35578 (estimate_growth): Handle uninlinable edges correctly.
35579 (check_callers): New.
35580 (growth_likely_positive): Handle aliases correctly.
35582 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
35584 * ipa-chkp.c: Use iterate_direct_aliases.
35585 * symtab.c (resolution_used_from_other_file_p): Move inline.
35586 (symtab_node::create_reference): Fix formating.
35587 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
35588 (symtab_node::iterate_reference): Move inline.
35589 (symtab_node::iterate_referring): Move inline.
35590 (symtab_node::iterate_direct_aliases): Move inline.
35591 (symtab_node::used_from_object_file_p_worker): Inline into ...
35592 (symtab_node::used_from_object_file_p): ... this one; move inline.
35593 (symtab_node::call_for_symbol_and_aliases): Move inline;
35594 use iterate_direct_aliases.
35595 (symtab_node::call_for_symbol_and_aliases_1): New method.
35596 (cgraph_node::call_for_symbol_and_aliases): Move inline;
35597 use iterate_direct_aliases.
35598 (cgraph_node::call_for_symbol_and_aliases_1): New method.
35599 (varpool_node::call_for_node_and_aliases): Rename to ...
35600 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
35601 use iterate_direct_aliases.
35602 (varpool_node::call_for_symbol_and_aliases_1): New method.
35603 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
35604 (ipa_discover_readonly_nonaddressable_var): Update.
35605 * ipa-devirt.c: Fix formating.
35606 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
35608 (cgraph_node::call_for_symbol_and_aliases): Move inline.
35609 (cgraph_node::call_for_symbol_and_aliases_1): New function..
35610 * cgraph.h (used_from_object_file_p_worker): Remove.
35611 (resolution_used_from_other_file_p): Move inline.
35612 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
35613 (symtab_node::iterate_reference): Move inline.
35614 (symtab_node::iterate_referring): Move inline.
35615 (symtab_node::iterate_direct_aliases): Move inline.
35616 (symtab_node::used_from_object_file_p_worker): Inline into ...
35617 (symtab_node::used_from_object_file_p): Move inline.
35618 * tree-emutls.c (ipa_lower_emutls): Update.
35619 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
35620 (varpool_node::call_for_node_and_aliases): Remove.
35622 2015-02-14 Jakub Jelinek <jakub@redhat.com>
35624 PR tree-optimization/62209
35625 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
35626 op == range->exp, insert seq and gimplified code after labels
35627 instead of after the phi.
35629 2015-02-13 Jeff Law <law@redhat.com>
35632 Revert my change for tree-optimization/64823.
35634 2015-02-13 Jakub Jelinek <jakub@redhat.com>
35636 PR tree-optimization/65053
35637 * tree-ssa-phiopt.c (value_replacement): When moving assign before
35638 cond, either reset VR on lhs or set it to phi result VR.
35640 2015-02-13 Jeff Law <law@redhat.com>
35642 PR tree-optimization/64823
35643 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
35644 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
35645 threading through blocks with PHIs, but no statements.
35646 (thread_through_normal_block): Distinguish between blocks where
35647 we did not process all the statements and blocks with no statements.
35649 PR rtl-optimization/47477
35650 * match.pd (convert (plus/minus (convert @0) (convert @1): New
35651 simplifier to narrow arithmetic.
35653 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
35656 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
35657 polymorphic call info when type is not known to be preserved.
35659 2015-02-13 Maritn Jambor <mjambor@suse.cz>
35662 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
35663 (inline_call): Use it.
35665 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
35667 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
35668 GOMP_DEVICE_NVIDIA_PTX.
35670 2015-02-13 Jakub Jelinek <jakub@redhat.com>
35673 * stmt.c (emit_case_nodes): Use void_type_node instead of
35674 NULL_TREE as LABEL_DECL type.
35676 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
35678 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
35680 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
35681 symbolic references to data to be forced to constant memory on the
35684 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
35686 PR tree-optimization/65002
35687 * tree-cfg.c (pass_data_fixup_cfg): Don't update
35689 * tree-sra.c (some_callers_have_no_vuse_p): New.
35690 (ipa_early_sra): Reject functions whose callers
35691 assume function is read only.
35693 2015-02-13 Richard Biener <rguenther@suse.de>
35696 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
35697 for LTO produced CUs.
35699 2015-02-13 Bin Cheng <bin.cheng@arm.com>
35701 PR tree-optimization/64705
35702 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
35703 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
35704 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
35705 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
35706 expand_simple_operations.
35708 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
35709 Richard Henderson <rth@redhat.com>
35712 * cgraphunit.c (cgraph_node::finalize_function): Set definition
35713 before notice_global_symbol.
35714 (varpool_node::finalize_decl): Likewise.
35715 * varasm.c (default_binds_local_p_2): Rename from
35716 default_binds_local_p_1, add weak_dominate argument. Use direct
35717 returns instead of assigning to local variable. Unify varpool and
35718 cgraph paths via symtab_node. Reject undef weak variables before
35719 testing visibility. Reorder tests for simplicity.
35720 (default_binds_local_p): Use default_binds_local_p_2.
35721 (default_binds_local_p_1): Likewise.
35722 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
35724 (default_elf_asm_output_external): Emit visibility when specified.
35726 2015-02-13 Alan Modra <amodra@gmail.com>
35728 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
35729 code setting up r11 for out-of-line fp restore.
35731 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
35733 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
35734 (muser-mode): Likewise.
35736 2015-02-13 Alan Modra <amodra@gmail.com>
35738 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
35739 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
35741 2015-02-12 David Howells <dhowells@redhat.com>
35743 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
35745 * tree-ssa-uninit.c (dump_predicates): Likewise.
35746 * opts.c (print_filtered_help): Likewise.
35748 2015-02-12 Jakub Jelinek <jakub@redhat.com>
35750 * dwarf2out.c (output_die): Use "%s", name instead of name to
35751 avoid -Wformat-security warning.
35753 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
35754 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
35755 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
35756 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
35758 2015-02-12 Jason Merrill <jason@redhat.com>
35760 * common.opt (-flifetime-dse): New.
35762 2015-02-12 Jakub Jelinek <jakub@redhat.com>
35765 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
35767 PR tree-optimization/65014
35768 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
35769 use original second operand of arg0 or arg1 instead of
35770 that adjusted by STRIP_NOPS.
35772 2015-02-11 Jeff Law <law@redhat.com>
35775 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
35776 that needs to be queued, just queue it for a single cycle.
35778 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
35780 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
35781 bodies of thunks; comment on why.
35782 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
35783 symbols are extern.
35785 2015-02-11 Richard Henderson <rth@redhat.com>
35788 * tree-eh.c (mark_reachable_handlers): Mark source and destination
35789 regions of __builtin_eh_copy_values.
35791 2015-02-11 Jakub Jelinek <jakub@redhat.com>
35793 PR middle-end/65003
35794 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
35795 ultimate alias is MEM with SYMBOL_REF satisfying
35796 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
35797 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
35799 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
35801 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
35802 "diagnostic-core.h".
35803 (main): Initialize progname, and call diagnostic_initialize.
35805 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
35806 instead of __OPENMP_TARGET__.
35808 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
35809 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
35810 hard-coding PTX_ID.
35812 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
35814 * doc/sourcebuild.texi (pie_enabled): Document.
35816 2015-02-11 Martin Liska <mliska@suse.cz>
35819 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
35820 a return value for call to a function that is noreturn.
35822 2015-02-11 Richard Biener <rguenther@suse.de>
35825 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
35828 2015-02-11 Andrew Pinski <apinski@cavium.com>
35831 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
35832 Change the first argument type to size_type_node and add another
35834 (aarch64_simd_expand_builtin): Handle the new argument to
35835 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
35836 print an out when the first two arguments are not
35837 nonzero integer constants.
35838 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
35839 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
35841 2015-02-11 Jakub Jelinek <jakub@redhat.com>
35844 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
35845 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
35846 (ix86_set_current_function): Rewritten.
35847 (ix86_add_new_builtins): Temporarily clear current_target_pragma
35848 when creating builtin fndecls.
35850 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
35853 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
35855 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
35856 have no comdat group.
35857 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
35858 (lto_output_varpool_node): Always output alias info.
35859 (output_refs): Output refs of boundary aliases, too.
35860 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
35861 (output_symtab): Output call eges in thunks in boundary.
35862 (get_alias_symbol): Remove.
35863 (input_node, input_varpool_node): Do not special case weakrefs.
35864 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
35865 alias and thunks targets in the boundary; do not take removed symbols
35866 from their comdat groups.
35867 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
35868 (cgraph_node::global_info): Remove.
35869 (cgraph_node::rtl_info): Look through aliases and thunks.
35870 * cgrpah.h (global_info): Remove.
35871 (non_local_p): Remove.
35873 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
35874 Sandra Loosemore <sandra@codesourcery.com>
35876 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
35877 to inline asm. List dialects in proper order.
35879 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
35880 Sandra Loosemore <sandra@codesourcery.com>
35882 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
35884 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
35886 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
35887 modified) reference to Solaris.
35889 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
35891 * doc/extend.texi (Extended Asm): Fix typos.
35893 2015-02-10 Jakub Jelinek <jakub@redhat.com>
35896 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
35898 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
35901 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
35902 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
35903 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
35904 * config/sh/constraints.md (Ara, Add): New constraints.
35905 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
35907 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
35908 atomic_mem_operand_0. Don't use force_reg on the memory address.
35909 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
35910 Sra constraint. Convert to insn_and_split. Add workaround for
35912 (atomic_compare_and_swap<mode>_hard): Copy to
35913 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
35914 Use atomic_mem_operand_0 predicate.
35915 (atomic_compare_and_swap<mode>_soft_gusa,
35916 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
35917 AraAdd constraints.
35918 (atomic_compare_and_swap<mode>_soft_tcb,
35919 atomic_compare_and_swap<mode>_soft_imask,
35920 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
35921 atomic_mem_operand_0 predicate and SraSdd constraints.
35922 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
35924 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
35925 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
35926 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
35927 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
35928 force_reg on the memory address.
35929 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
35930 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
35931 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
35932 atomic_mem_operand_1 predicate and Sra constraint.
35933 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
35934 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
35935 Use atomic_mem_operand_1 predicate.
35936 (atomic_<fetchop_name><mode>_hard): Copy to
35937 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
35938 Use atomic_mem_operand_1 predicate.
35939 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
35940 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
35941 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
35942 insn_and_split. Use atomic_mem_operand_1 predicate.
35943 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
35944 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
35945 Use atomic_mem_operand_1 predicate.
35946 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
35947 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
35948 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
35949 in generated insn with original mem operand before emitting the insn.
35950 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
35951 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
35952 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
35953 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
35954 Use atomic_mem_operand_1 predicate and AraAdd constraints.
35955 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
35956 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
35957 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
35958 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
35959 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
35960 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
35961 atomic_not_fetch<mode>_soft_tcb,
35962 atomic_<fetchop_name>_fetch<mode>_soft_imask,
35963 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
35964 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
35965 Use atomic_mem_operand_1 predicate and SraSdd constraints.
35967 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
35969 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
35970 and 3 earlyclobber operands.
35972 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
35974 * common.opt (fstack-reuse): Mark as optimization.
35976 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
35979 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
35981 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
35983 PR tree-optimization/64326
35984 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
35986 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
35988 PR gcov-profile/61889
35989 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
35991 2015-02-10 Richard Biener <rguenther@suse.de>
35993 PR tree-optimization/64995
35994 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
35995 value we use is final.
35996 (visit_reference_op_store): Always valueize op.
35997 (visit_use): Properly valueize vuses.
35999 2015-02-10 Richard Biener <rguenther@suse.de>
36001 PR tree-optimization/64909
36002 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
36003 pass a scalar-stmt count estimate to the cost model.
36004 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
36006 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
36008 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
36009 enabled by default together with var-tracking.
36011 2015-02-10 Nick Clifton <nickc@redhat.com>
36013 * config/rl78/rl78.c: Remove DIV attribute code accidentally
36014 included in previous rl78 commit.
36016 2015-02-10 Richard Biener <rguenther@suse.de>
36018 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
36019 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
36020 return the bitpack.
36022 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
36024 PR gcov-profile/61889
36025 * config.in: regenerate.
36026 * configure.in: Likewise.
36027 * configure.ac: Check for ftw.h.
36028 * gcov-tool.c: Check for ftw.h before using nftw.
36030 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
36033 * ipa-visibility.c (update_visibility_by_resolution_info): Only
36034 assert when not in lto mode.
36036 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
36038 * ira-color.c (setup_left_conflict_sizes_p): Simplify
36039 initialization/assignment of conflict_size.
36041 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
36044 * ipa-cp.c (gather_caller_stats): Skip thunks.
36045 (propagate_constants_topo): Skip aliases.
36047 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
36050 * config/sh/sh.c (sh_option_override): Don't change
36051 -freorder-blocks-and-partition to -freorder-blocks even when
36052 unwinding is enabled.
36053 (sh_can_follow_jump): Return false if the followee jump is
36054 a crossing jump when -freorder-blocks-and-partition is specified.
36055 * config/sh/sh.md (*jump_compact_crossing): New insn.
36057 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
36058 Kaz Kojima <kkojima@gcc.gnu.org>
36061 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
36062 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
36063 (sh_can_redirect_branch): Rename to ...
36064 (sh_can_follow_jump): ... this. Constify argument types.
36065 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
36066 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
36067 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
36068 * doc/tm.texi: Regenerate.
36070 2015-02-09 Jakub Jelinek <jakub@redhat.com>
36073 * builtins.c (expand_builtin): Call targetm.expand_builtin
36074 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
36076 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36079 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
36081 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36084 * ipa-icf.c (set_local): New function.
36085 (sem_function::merge): Use it.
36087 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36089 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
36090 (add_type_duplicate): Fix comparison of BINFOs.
36092 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36094 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
36095 on getting VOID pointer.
36097 2015-02-09 Jakub Jelinek <jakub@redhat.com>
36100 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
36103 2015-02-09 Richard Biener <rguenther@suse.de>
36105 * genmatch.c (replace_id): Copy expr_type.
36107 2015-02-09 Richard Biener <rguenther@suse.de>
36109 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
36110 (streamer_write_tree_bitfields): Declare.
36111 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
36112 properly unpack padding.
36113 (unpack_value_fields): Inline ...
36114 (streamer_read_tree_bitfields): ... here.
36115 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
36116 and properly add padding bits.
36117 (streamer_pack_tree_bitfields): Fold into ...
36118 (streamer_write_tree_bitfields): ... this new function,
36119 exposing the bitpack object.
36120 * lto-streamer-out.c (lto_write_tree_1): Call
36121 streamer_write_tree_bitfields.
36123 2015-02-09 Richard Biener <rguenther@suse.de>
36125 PR tree-optimization/54000
36126 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
36127 (struct ivopts_data): Add loop_loc member.
36128 (tree_ssa_iv_optimize_loop): Dump loop location.
36129 (create_new_ivs): Likewise, also dump number of IVs generated.
36131 2015-02-09 Martin Liska <mliska@suse.cz>
36133 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
36134 just if not yet registered.
36135 (ipa_icf_generate_summary): Register callgraph hooks.
36137 2015-02-08 Andrew Pinski <apinski@cavium.com>
36139 * config/aarch64/aarch64.c (gty_dummy): Delete.
36141 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36144 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
36145 (cgraph_node::local_p): Remove thunk related FIXME.
36147 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36150 * i386.c (ix86_function_regparm): Look through aliases to see if callee
36151 is local and optimized.
36152 (ix86_function_sseregparm): Likewise; also use target's SSE math
36153 settings; error out instead of silently generating wrong code
36155 (init_cumulative_args): Look through aliases.
36157 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36160 * ipa-split.c (execute_split_functions): Split if function has aliases.
36162 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36165 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
36166 aliases before trying to expand it.
36167 (cgraph_node::expand_thunk): Fix formating.
36169 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
36171 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
36172 (Using Assembly Language with C): Expand introduction.
36173 (Basic Asm): Copy-edit. Add more information about uses of
36175 (Extended Asm): Copy-edit. Document new escape syntax and
36177 (Global Reg Vars): Copy-edit.
36178 (Local Reg Vars): Likewise.
36180 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
36184 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
36185 (DBX_CONTIN_CHAR): Define.
36187 2015-02-06 Sebastian Pop <s.pop@samsung.com>
36188 Brian Rzycki <b.rzycki@samsung.com>
36190 PR tree-optimization/64878
36191 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
36192 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
36193 Stop recursion at loop phi nodes after having visited a loop phi node.
36195 2015-02-06 Jakub Jelinek <jakub@redhat.com>
36197 * toplev.c (process_options): Change flag_ipa_ra before creating
36198 optimization_{default,current}_node.
36201 * cgraphunit.c (cgraph_node::expand_thunk): If
36202 restype is not is_gimple_reg_type nor the thunk_fndecl
36203 returns aggregate_value_p, set restmp to a temporary variable
36204 instead of resdecl.
36206 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
36208 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
36210 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
36213 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
36214 add a general secondary reload handler for SDmode, unless we have
36215 both read/write support for SDmode.
36217 2015-02-06 Jakub Jelinek <jakub@redhat.com>
36219 PR middle-end/64937
36220 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
36221 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
36222 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
36223 1 before, push it to abstract_vec.
36224 (dwarf2out_abstract_function): Adjust caller. Don't call
36225 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
36226 DECL_ABSTRACT_P flags for all abstract_vec elts.
36228 2015-02-06 Renlin Li <renlin.li@arm.com>
36230 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
36232 * tree-ssa.c (execute_update_addresses_taken): Likewise.
36234 2015-02-06 Jeff Law <law@redhat.com>
36237 * config/h8300/h8300.c (push): New argument "in_prologue".
36238 Pass "in_prologue" along to "F".
36239 (h8300_push_pop): Corresponding changes.
36240 (h8300_expand_prologue): Likewise.
36241 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
36243 2015-02-06 Jakub Jelinek <jakub@redhat.com>
36245 PR rtl-optimization/64957
36247 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
36248 IOR rather than for AND.
36250 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
36253 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
36254 of shift-add and (add + shift) operations. Rename local variable.
36256 2015-02-05 Jeff Law <law@redhat.com>
36259 * config/h8300/constraints.md (U): Correctly dectect
36260 "eightbit_data" memory addresses.
36261 * config/h8300/h8300.c (eightbit_constant_address_p): Also
36262 handle (const (plus (symbol_ref (x)))) where x is declared
36263 as an 8-bit data memory address.
36264 * config/h8300/h8300.md (call, call_value): Correctly detect
36265 "funcvec" functions.
36268 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
36269 24 to 28 bits for the H8/300.
36271 2015-02-06 Alan Modra <amodra@gmail.com>
36274 * config/rs6000/rs6000.c (chain_already_loaded): New function.
36275 (rs6000_call_aix): Use it.
36277 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
36279 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
36282 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
36284 * config/h8300/constraints.md ("U" constraint): Use strict
36285 variant of REG_OK_FOR_BASE_P after reload has started.
36287 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
36289 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
36290 define to zero if !TARGET_NEON.
36291 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
36293 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36294 Trevor Saunders <tsaunders@mozilla.com>
36297 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
36299 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36302 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
36303 when removing varpool nodes.
36305 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36308 * varpool.c (varpool_node::remove): Fix order of variables.
36310 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36313 * ipa-inline.c (inline_small_functions): Fix ordering issue between
36314 speculation resolution and key updates.
36316 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36318 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
36319 about not letting any speculative edges unupdated.
36321 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36324 * gcov-io.c (gcov_var): Export.
36326 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36328 PR middle-end/64922
36329 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
36330 edges that become speculative.
36332 2015-02-04 Jakub Jelinek <jakub@redhat.com>
36334 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
36335 or DW_LANG_Fortran08.
36336 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
36338 (gen_compile_unit_die): Handle "GNU Fortran2003" and
36339 "GNU Fortran2008" language strings.
36340 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
36341 * langhooks.h (lang_GNU_Fortran): New prototype.
36342 * langhooks.c (lang_GNU_Fortran): New function.
36343 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
36346 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
36348 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
36349 (RTX_OK_FOR_OLO10_P): Likewise.
36351 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
36353 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
36355 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36357 PR middle-end/64922
36358 * gimple.c: Include gimple-ssa.h.
36359 (maybe_remove_unused_call_args): New function.
36360 * gimple.h (maybe_remove_unused_call_args): Declare.
36361 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
36362 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
36363 * gimple-fold.c (gimple_fold_call): Likewise.
36365 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
36367 PR rtl-optimization/64905
36368 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
36369 pointer alignment if it isn't needed.
36371 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
36373 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
36374 cortex-a72.cortex-a53.
36375 * config/aarch64/aarch64-tune.md: Regenerate.
36376 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
36378 2015-02-04 Nick Clifton <nickc@redhat.com>
36380 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
36383 2015-02-04 Jakub Jelinek <jakub@redhat.com>
36385 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
36386 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
36387 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
36389 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
36390 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
36391 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
36392 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
36393 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
36394 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
36395 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
36396 * tree-core.h (enum built_in_function): In between
36397 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
36398 for builtins that use DEF_BUILTIN_CHKP macro.
36400 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
36403 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
36404 operands for tcc_comparison exprs. Fix typos.
36407 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
36408 of two XORs that have an intervening AND or IOR.
36411 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
36412 simplification of XOR of AND to not allocate new rtx before
36413 committing to a simplification.
36415 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36417 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
36418 manual swaps in all peepholes.
36420 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36422 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
36423 of manual swapping implementation.
36424 (aarch64_expand_vec_perm_const_1): Likewise.
36426 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
36428 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
36429 (generic_addrcost_table): Remove NAMED_PARAM.
36430 (cortexa57_addrcost_table): Likewise.
36431 (xgene1_addrcost_table): Likewise.
36432 (generic_regmove_table): Likewise.
36433 (cortexa53_regmove_table): Likewise.
36434 (xgene1_regmove_table): Likewise.
36435 (generic_vector_table): Likewise.
36436 (cortexa57_vector_table): Likewise.
36437 (xgene1_vector_table): Likewise.
36438 (generic_tunings): Likewise.
36439 (cortexa53_tunings): Likewise.
36440 (cortexa57_tunings): Likewise.
36441 (xgene1_tunings): Likewise.
36443 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
36445 * config/arm/arm-cores.def: Add cortex-a72 and
36446 cortex-a72.cortex-a53.
36447 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
36448 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
36449 * config/arm/arm-tune.md: Regenerate.
36450 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
36451 "cortex-a72.cortex-a53".
36452 * doc/invoke.texi (ARM Options/-mtune): Likewise.
36454 2015-02-04 Nick Clifton <nickc@redhat.com>
36457 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
36459 (nonimmediate_di_operand): Likewise.
36461 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
36462 prefixes of known F5 using MSP430 MCUs.
36464 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36466 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
36467 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
36468 instead of __builtin_sqrt.
36470 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
36472 * varasm.c (do_assemble_alias): Follow transparent alias
36474 (default_assemble_visibility): Follow transparent alias
36475 chain for decl name.
36477 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
36479 PR middle-end/62103
36480 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
36481 to compute size of referenced value in the constant case.
36483 2015-02-03 Jakub Jelinek <jakub@redhat.com>
36485 PR rtl-optimization/64756
36486 * cse.c (invalidate_dest): New function.
36487 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
36488 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
36489 invalidate and do not record it.
36491 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
36494 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
36495 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
36496 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
36497 atomic_nand<mode>_soft_tcb): New insns.
36498 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
36499 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
36500 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
36501 Split into atomic_not_fetchsi_hard if operands[0] is unused.
36502 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
36503 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
36504 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
36505 atomic_not<mode>_hard if operands[0] is unused.
36506 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
36507 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
36508 if operands[0] is unused.
36509 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
36510 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
36511 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
36512 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
36514 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
36515 into atomic_not<mode>_soft_tcb if operands[0] is unused.
36516 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
36517 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
36518 if operands[0] is unused.
36519 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
36520 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
36521 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
36522 atomic_nand_fetchsi_hard if operands[0] is unused.
36523 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
36524 atomic_nand<mode>_hard if operands[0] is unused.
36525 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
36526 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
36527 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
36528 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
36529 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
36530 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
36531 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
36532 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
36533 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
36534 atomic_not<mode>_hard if operands[0] is unused.
36535 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
36536 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
36538 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
36539 into atomic_not<mode>_soft_tcb if operands[0] is unused.
36540 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
36541 atomic_nand<mode>_hard if operands[0] is unused.
36542 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
36543 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
36545 2015-02-03 David Malcolm <dmalcolm@redhat.com>
36548 * Makefile.in (GCC_OBJS): Add gcc-main.o.
36549 * gcc-main.c: New file, containing "main" taken from gcc.c.
36550 * gcc.c (do_self_spec): Free decoded_options.
36551 (class driver): Move declaration to gcc.h.
36552 (main): Move declaration and implementation to new file
36554 (driver_get_configure_time_options): New function.
36555 * gcc.h (class driver): Move this declaration here, from
36557 (driver_get_configure_time_options): New declaration.
36559 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
36561 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
36562 cross-module inlining.
36563 * cgraph.h (cgraph_node): Add flag merged.
36564 * ipa-icf.c (sem_function::merge): Maintain it.
36566 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
36568 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
36569 instead of OBJECT_P.
36571 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
36574 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
36575 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
36576 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
36577 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
36579 2015-02-03 Jakub Jelinek <jakub@redhat.com>
36582 * combine.c (reg_n_sets_max): New variable.
36583 (can_change_dest_mode, reg_nonzero_bits_for_combine,
36584 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
36585 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
36586 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
36587 (rest_of_handle_combine): Initialize reg_n_sets_max.
36589 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
36591 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
36592 if some always_inline was inlined, apply changes before inlining
36595 2015-02-02 David Malcolm <dmalcolm@redhat.com>
36598 * config/arm/arm.c (arm_option_override): Set
36599 arm_selected_arch/cpu/tune to NULL on entry.
36601 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
36602 Andrew Pinski <pinskia@gcc.gnu.org>
36603 Jakub Jelinek <jakub@gcc.gnu.org>
36606 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
36607 integer typing for small model. Use IN_RANGE.
36609 2015-02-02 Richard Biener <rguenther@suse.de>
36611 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
36612 * tree-vrp.c (vrp_valueize_1): Likewise.
36614 2015-02-02 Alan Modra <amodra@gmail.com>
36616 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
36617 than mem for toc_restore.
36618 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
36619 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
36620 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
36622 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
36625 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
36626 explicit default options.
36628 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
36631 * ipa-utils.c (ipa_merge_profiles): Add release argument.
36632 * ipa-icf.c (sem_function::merge): Do not release body when merging.
36633 * ipa-utils.h (ipa_merge_profiles): Update prototype.
36635 2015-02-01 Jakub Jelinek <jakub@redhat.com>
36638 * cfgexpand.c (deep_ter_debug_map): New variable.
36639 (avoid_deep_ter_for_debug): New function.
36640 (expand_debug_expr): If TERed SSA_NAME is in
36641 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
36642 instead of trying to expand SSA_NAME's def stmt.
36643 (expand_debug_locations): When expanding debug bind
36644 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
36645 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
36647 (pass_expand::execute): Call avoid_deep_ter_for_debug on
36648 all debug bind stmts. Delete deep_ter_debug_map after
36649 expand_debug_location if non-NULL and clear it.
36651 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
36654 * config/sh/sync.md (atomic_fetch_notsi_hard,
36655 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
36656 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
36657 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
36658 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
36659 atomic_not_fetch<mode>_soft_imask): New insns.
36661 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36663 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
36664 (rank_for_schedule_debug): Split from ...
36665 (rank_for_schedule): ... this.
36666 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
36667 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
36669 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
36671 * doc/md.texi (Machine Constraints): Alphabetize table by target.
36672 * doc/extend.texi (x86 Variable Attributes): Move section to
36673 correct alphabetization after renaming.
36674 (x86 Type Attributes): Likewise.
36675 (Target Builtins): Re-alphabetize menu.
36676 (x86 Built-in Functions): Move section to correct alphabetization
36678 (x86 transactional memory intrinsics): Likewise.
36679 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
36680 and x86 Windows Options in table and menu.
36681 (x86 Options): Move section to correct alphabetization after
36683 (x86 Windows Options): Likewise.
36685 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
36687 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
36688 preferred names of the architecture and its 32- and 64-bit
36690 * doc/invoke.texi: Likewise.
36691 * doc/md.texi: Likewise.
36693 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
36696 * config/i386/predicates.md (address_no_seg_operand): Reject
36697 non-CONST_INT_P operands in invalid mode.
36699 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
36701 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
36702 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
36703 * config/i386/predicates.md (address_no_seg_operand): Call
36704 address_operand with VOIDmode.
36705 (vsib_address_operand): Ditto.
36706 (address_mpx_no_base_operand): Ditto.
36707 (address_mpx_no_index_operand): Ditto.
36709 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
36712 * lra-constraints.c (original_subreg_reg_mode): New.
36713 (simplify_operand_subreg): Try to simplify subreg of const. Use
36714 original_subreg_reg_mode for it.
36715 (swap_operands): Update original_subreg_reg_mode.
36716 (curr_insn_transform): Set up original_subreg_reg_mode.
36718 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
36721 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
36723 (process_alt_operands): Use it.
36724 (curr_insn_transform): Check the optional reload pseudo class is
36727 2015-01-30 Joseph Myers <joseph@codesourcery.com>
36729 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
36730 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
36732 * toplev.h (init_asm_output): Update comment on use of
36733 UNKNOWN_LOCATION with fatal_error.
36734 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
36735 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
36736 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
36737 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
36738 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
36739 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
36740 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
36741 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
36742 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
36743 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
36744 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
36745 fatal_error changed to pass input_location as first argument.
36747 2015-01-30 Martin Liska <mliska@suse.cz>
36749 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
36750 in #pragma GCC diagnostic guards.
36752 2015-01-30 Richard Biener <rguenther@suse.de>
36754 PR tree-optimization/64829
36755 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
36756 not add a widening conversion pattern but hand off extra
36757 widenings to callers.
36758 (vect_recog_widen_mult_pattern): Handle extra widening produced
36759 by vect_handle_widen_op_by_const.
36760 (vect_recog_widen_shift_pattern): Likewise.
36761 (vect_pattern_recog_1): Remove excess vertical space in dumping.
36762 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
36763 (vect_init_vector_1): Likewise.
36764 (vect_get_vec_def_for_operand): Likewise.
36765 (vect_finish_stmt_generation): Likewise.
36766 (vectorizable_load): Likewise.
36767 (vect_analyze_stmt): Likewise.
36768 (vect_is_simple_use): Likewise.
36770 2015-01-29 Jeff Law <law@redhat.com>
36772 * combine.c (try_combine): Fix typo in comment.
36774 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
36777 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
36778 (rs6000_stack_info): Add assert.
36779 (rs6000_output_savres_externs): New function, split off from...
36780 (rs6000_output_function_prologue): ... here. Do not call it for
36783 2015-01-29 Jeff Law <law@redhat.com>
36786 * combine.c (try_combine): If I0 is a memory load and I3 a store
36787 to a related address, increase the "goodness" of doing a 4-insn
36788 combination with I0-I3.
36789 (make_field_assignment): Handle SUBREGs in the ior+and case.
36791 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
36793 PR tree-optimization/64746
36794 * tree-if-conv.c (mask_exists): New function.
36795 (predicate_mem_writes): Save created mask with given size for further
36797 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
36798 (ifcvt_repair_bool_pattern): Collect all statements that are root
36799 of bool pattern and use iterative algorithm to remove multiple uses
36800 of predicates, display number of required iterations.
36802 2015-01-29 Richard Biener <rguenther@suse.de>
36804 PR tree-optimization/64853
36805 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
36806 stmt will get simulated again.
36807 * tree-ssa-ccp.c (valueize_op_1): Likewise.
36809 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36811 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
36812 return_in_pc. Remove redundant assignments.
36813 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
36814 (arm_expand_epilogue): Don't compare boolean with true in if condition.
36816 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
36818 * config/i386/i386.c (ix86_mode_after): Make static.
36820 2015-01-29 Richard Biener <rguenther@suse.de>
36822 PR tree-optimization/64844
36823 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
36824 dump cost model analysis.
36825 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
36826 Do not register adjusted load/store costs here.
36828 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
36829 Uros Bizjak <ubizjak@gmail.com>
36831 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
36832 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
36833 using x86_use_pseudo_pic_reg.
36834 * config/i386/i386.c (ix86_conditional_register_usage): Remove
36835 support for fixed PIC register.
36836 (ix86_use_pseudo_pic_reg): Not static any more.
36838 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
36840 PR middle-end/64805
36841 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
36842 to avoid error in cgraph node verification.
36844 2015-01-29 Marek Polacek <polacek@redhat.com>
36846 * doc/standards.texi: Reflect that the default for C is gnu11.
36848 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
36851 * reorg.c (switch_text_sections_between_p): New function.
36852 (relax_delay_slots): Call it when testing if the jump insn
36853 is removable. Use targetm.can_follow_jump when testing if
36854 the conditional branch can follow an unconditional jump.
36856 2015-01-27 Caroline Tice <cmtice@google.com>
36858 Committing VTV Cywin/Ming patch for Patrick Wollgast
36859 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
36860 if -fvtable-verify=preinit/std is used.
36861 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
36862 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
36863 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
36864 if -fvtable-verify=preinit/std is used.
36865 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
36866 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
36867 if -fvtable-verify=preinit/std is used.
36868 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
36869 * config/i386/mingw32.h (LIB_SPEC): Likewise.
36870 * varasm.c (assemble_variable): Add code to properly set the comdat
36871 section and name for the .vtable_map_vars section in case the
36872 target is PE or COFF.
36874 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
36877 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
36878 make sane BB profile.
36879 (cgraph_node::expand_thunk): Make sane BB profile.
36880 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
36881 * cgraph.h (init_lowered_empty_function): Update prototype.
36882 * config/i386/i386.c (make_resolver_func): Update call.
36883 * predict.c (gate): Disable branch prediction pass if
36884 profile is already there.
36886 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
36888 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
36889 * opth-gen.awk: Likewise.
36890 * common.opt: Mark flag_fp_contract_mode as Optimization.
36892 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
36894 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
36895 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
36897 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
36900 * config/sh/predicates.md (atomic_arith_operand,
36901 atomic_logical_operand): Remove.
36902 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
36903 (atomic_arith_operand_0): New predicate.
36904 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
36905 Use atomic_arith_operand_0 for input values.
36906 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
36907 atomic_compare_and_swap<mode>_soft_gusa,
36908 atomic_compare_and_swap<mode>_soft_tcb,
36909 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
36910 arith_reg_operand instead of register_operand.
36911 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
36912 atomic_arith_operand_0 for newval input.
36913 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
36914 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
36915 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
36916 arith_reg_operand instead of register_operand.
36917 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
36918 fetchop_predicate_1, fetchop_constraint_1_llcs,
36919 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
36920 fetchop_constraint_1_imask): New code iterator attributes.
36921 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
36922 register_operand. Use fetchop_predicate_1.
36923 (atomic_fetch_<fetchop_name>si_hard,
36924 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
36925 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
36926 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
36927 and arith_reg_operand instead of register_operand. Use
36928 fetchop_predicate_1, fetchop_constraint_1_gusa.
36929 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
36930 and arith_reg_operand instead of register_operand. Use
36931 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
36933 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
36934 and arith_reg_operand instead of register_operand. Use
36935 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
36937 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
36938 register_operand. Use atomic_logical_operand_1.
36939 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
36940 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
36941 arith_reg_operand instead of register_operand.
36942 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
36943 Use arith_reg_dest and arith_reg_operand instead of register_operand.
36944 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
36945 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
36946 register_operand. Use fetchop_predicate_1.
36947 (atomic_<fetchop_name>_fetchsi_hard,
36948 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
36949 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
36950 fetchop_constraint_1_llcs.
36951 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
36952 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
36953 fetchop_constraint_1_gusa.
36954 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
36955 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
36956 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
36957 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
36958 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
36959 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
36960 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
36961 register_operand. Use atomic_logical_operand_1.
36962 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
36963 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
36964 arith_reg_operand instead of register_operand.
36965 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
36966 arith_reg_operand instead of register_operand. Use logical_operand
36967 and K08. Adjust asm sequence to allow R0 usage.
36968 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
36969 arith_reg_operand instead of register_operand. Use logical_operand
36972 2015-01-28 Jakub Jelinek <jakub@redhat.com>
36975 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
36976 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
36977 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
36978 only get_full_len HOST_WIDE_INTs from get_val () array rather than
36979 all bits in *val_wide.
36981 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
36983 * varpool.c (tls_model_names): Fix names.
36984 (varpool_node::dump): Dump tls- prefix for tls models.
36986 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
36987 Bernd Schmidt <bernds@codesourcery.com>
36988 Nathan Sidwell <nathan@codesourcery.com>
36990 * config/nvptx/mkoffload.c: New file.
36991 * config/nvptx/t-nvptx: Add build rules for it.
36992 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
36993 (extra_programs): Add mkoffload.
36994 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
36996 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
36998 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
37000 PR middle-end/64809
37001 * cfgexpand.c (reorder_operands): Skip debug gimples.
37003 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
37005 PR tree-optimization/64277
37006 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
37007 range info when possible to refine estimation.
37009 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
37011 PR tree-optimization/64718
37012 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
37013 be a 16bit unsigned integer when n->range is 16.
37014 (bswap_replace): Convert src to that type if necessary for all bswap
37015 sizes. Fix rotation right notation in nearby comment. Use bswap_type
37016 set in pass_optimize_bswap::execute ().
37018 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
37020 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
37021 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
37022 integer and floating point variants.
37023 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
37025 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
37027 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
37028 for all vector modes.
37030 2015-01-28 Jakub Jelinek <jakub@redhat.com>
37033 * doc/sourcebuild.texi (comdat_group): Document.
37035 2015-01-28 Terry Guo <terry.guo@arm.com>
37037 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
37039 2015-01-27 David Malcolm <dmalcolm@redhat.com>
37041 * toplev.c (print_version): Add param "show_global_state", and
37042 only print GGC and plugin information if it is true.
37043 (init_asm_output): Pass in "true" for the new param when calling
37045 (process_options): Likewise.
37046 (toplev::main): Likewise.
37047 * toplev.h (print_version): Add new param to decl.
37049 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
37053 * tree.c (lookup_binfo_at_offset): New function.
37054 (get_binfo_at_offset): Use it.
37056 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
37059 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
37060 on vtable being vtable.
37062 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
37064 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
37065 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
37066 -mhotpatch= option.
37067 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
37068 -mno-hotpatch options. Change syntax of -mhotpatch= option.
37069 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
37071 (s390_hotpatch_trampoline_halfwords_max): Renamed.
37072 (s390_hotpatch_hw_max): New name.
37073 (s390_hotpatch_trampoline_halfwords): Renamed.
37074 (s390_hotpatch_hw_before_label): New name.
37075 (get_hotpatch_attribute): Removed.
37076 (s390_hotpatch_hw_after_label): New name.
37077 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
37079 (s390_attribute_table): Ditto.
37080 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
37081 (s390_function_num_hotpatch_hw): New name.
37082 Remove special handling of inline functions and hotpatching.
37083 Return number of nops before and after the function label.
37084 (s390_can_inline_p): Removed.
37085 (s390_asm_output_function_label): Emit a configurable number of nops
37086 after the function label.
37087 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
37088 (TARGET_CAN_INLINE_P) Removed.
37089 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
37091 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37092 Jiong Wang <jiong.wang@arm.com>
37094 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
37096 (cb<optab><mode>1): Likewise.
37097 * config/aarch64/iterators.md (bcond): New define_code_attr.
37099 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37101 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
37104 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37106 * config/s390/s390.c (s390_register_move_cost): Increase costs for
37109 2015-01-27 Richard Biener <rguenther@suse.de>
37111 * tree-vrp.c (update_value_range): Intersect the range with
37112 old recorded SSA name range information.
37114 2015-01-27 Nick Clifton <nickc@redhat.com>
37116 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
37117 BC, DE and HL registers directly, not via AX.
37118 When decrementing the stack pointer by a large amount, transfer SP
37119 into AX and perform the subtraction there.
37120 (rl78_expand_epilogue): Perform the inverse of the above
37123 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37125 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
37127 2015-01-27 Jakub Jelinek <jakub@redhat.com>
37128 Yury Gribov <y.gribov@samsung.com>
37131 * ubsan.c (ubsan_source_location): Refactor code.
37132 (ubsan_type_descriptor): Update type size. Refactor code.
37134 2015-01-27 Richard Biener <rguenther@suse.de>
37136 PR tree-optimization/56273
37137 PR tree-optimization/59124
37138 PR tree-optimization/64277
37139 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
37140 from the first VRP pass.
37142 2015-01-27 Jakub Jelinek <jakub@redhat.com>
37145 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
37146 handle the first argument in the same loop as all the other arguments.
37148 PR rtl-optimization/61058
37149 * jump.c (cleanup_barriers): Update basic block boundaries
37150 if BLOCK_FOR_INSN is non-NULL on PREV.
37152 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
37154 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
37155 bounds narrowing, already instrumented calls and calls to
37156 not instrumentable functions.
37158 2015-01-27 Jakub Jelinek <jakub@redhat.com>
37160 PR tree-optimization/64807
37161 * wide-int.cc (wi::divmod_internal): Clear
37162 b_dividend[dividend_blocks_needed].
37164 2015-01-26 DJ Delorie <dj@redhat.com>
37166 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
37167 volatile memory references.
37169 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
37172 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
37174 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
37175 shifts if it already fits into K08.
37177 2015-01-26 Jakub Jelinek <jakub@redhat.com>
37180 * ipa-inline.c (inline_small_functions): Print "unknown" even
37181 if edge->call_stmt is non-NULL, but has builtins or unknown
37184 PR middle-end/64421
37185 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
37186 with asterisk, skip the first character.
37188 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
37191 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
37194 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
37197 * config/i386/i386.md (*movdi_internal): Also check operand 0
37198 to determine TYPE_LEA operand.
37199 (*movsi_internal): Ditto.
37201 2015-01-26 Jakub Jelinek <jakub@redhat.com>
37203 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
37204 OPTION_MASK_QUAD_MEMORY_ATOMIC.
37206 2015-01-26 Renlin Li <renlin.li@arm.com>
37208 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
37210 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
37213 2015-01-26 Richard Biener <rguenther@suse.de>
37215 PR middle-end/64764
37216 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
37217 combining two BIT_AND_EXPR predicates.
37219 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
37222 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
37224 2015-01-26 Terry Guo <terry.guo@arm.com>
37226 * config/arm/arm.c (arm_file_start): Update the assignment of
37227 Tag_ABI_HardFP_use.
37229 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
37231 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
37233 config/arm/arm.md: Include the new Cortex-A57 model.
37234 (generic_sched): Don't use generic_sched when tuning for
37237 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
37238 Uros Bizjak <ubizjak@gmail.com>
37240 * config/i386/i386.c (get_builtin_code_for_version): Add
37241 support for BMI and BMI2 multiversion functions.
37243 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
37245 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
37246 (extract_bit_field): Likewise.
37247 (extract_low_bits): Likewise.
37248 (expand_mult): Likewise.
37249 (expand_mult_highpart_adjust): Likewise.
37251 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
37253 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
37254 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
37255 * config/i386/i386.c (processor_model): Add
37256 M_INTEL_COREI7_BROADWELL.
37257 (arch_names_table): Add "broadwell".
37259 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
37268 * config/sh/sh-protos.h
37269 (sh_extending_set_of_reg::can_use_as_unextended_reg,
37270 sh_extending_set_of_reg::use_as_unextended_reg,
37271 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
37272 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
37273 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
37274 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
37275 (sh_treg_insns): New class.
37276 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
37277 (scope_counter): New class.
37278 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
37279 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
37280 sh_extending_set_of_reg::can_use_as_unextended_reg,
37281 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
37282 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
37283 sh_split_treg_set_expr): New functions.
37284 (addsubcosts): Handle treg_set_expr.
37285 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
37286 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
37287 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
37288 (sh_insn_operands_modified_between_p): Make non-static.
37289 * config/sh/predicates.md (zero_extend_movu_operand): Allow
37290 simple_mem_operand in addition to displacement_mem_operand.
37291 (zero_extend_operand): Don't allow zero_extend_movu_operand.
37292 (treg_set_expr, treg_set_expr_not_const01,
37293 arith_reg_or_treg_set_expr): New predicates.
37294 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
37295 arith_or_int_operand instead of logical_operand. Convert to
37296 insn_and_split. Try to optimize constant operand in splitter.
37297 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
37298 (*tstqi_t_zero): Delete.
37299 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
37300 (tstsi_t_and_not): Delete.
37301 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
37302 Convert to insn_and_split.
37303 (unnamed split, tstsi_t_zero_extract_xor,
37304 tstsi_t_zero_extract_subreg_xor_little,
37305 tstsi_t_zero_extract_subreg_xor_big): Delete.
37306 (*tstsi_t_shift_mask): New insn_and_split.
37307 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
37308 to recombine with surrounding insns when splitting.
37309 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
37310 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
37311 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
37312 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
37313 (*cbranch_div0s: Delete.
37314 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
37315 Try to recombine with surrounding insns when splitting. Add operand
37317 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
37318 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
37319 *addc_r_r_msb, *addc_2r_msb): Delete.
37320 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
37322 (*addc_negreg_t): New insn_and_split.
37323 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
37324 Try to recombine with surrounding insns when splitting.
37325 Add operand order variants.
37326 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
37327 insn_and_split patterns.
37328 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
37329 surrounding insns when splitting.
37330 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
37331 (*rotcl): Likewise. Add zero_extract variant.
37332 (*ashrsi2_31): New insn_and_split.
37333 (*negc): Convert to insn_and_split. Use treg_set_expr.
37334 (*zero_extend<mode>si2_disp_mem): Update comment.
37335 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
37337 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
37338 with surrounding insns when splitting.
37339 (any_treg_expr_to_reg): New insn_and_split.
37340 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
37341 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
37342 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
37343 *zero_extract_2): New single bit zero extract patterns.
37344 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
37345 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
37346 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
37347 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
37349 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
37350 register_operand for set source.
37352 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
37354 * i386.opt (prefetch_sse): New targetsave.
37355 * i386.c (ix86_function_specific_save): Save prefetch_sse.
37356 (ix86_function_specific_restore): Restore prefetch_sse and initialize
37357 ix86_cost/ix86_tune_cost.
37359 2015-01-23 David Malcolm <dmalcolm@redhat.com>
37361 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
37362 Support the JIT by using 0 as the language type.
37364 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
37367 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
37368 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
37369 (mark_regno_live, process_bb_lives): Pass new parameter value to
37370 make_hard_regno_born.
37372 2015-01-23 Jakub Jelinek <jakub@redhat.com>
37374 PR rtl-optimization/63637
37375 PR rtl-optimization/60663
37376 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
37377 if elt->cost is MAX_COST for ASM_OPERANDS.
37378 (find_sets_in_insn): Fix up comment typo.
37379 (cse_insn): Don't set src_volatile for all non-volatile
37380 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
37381 or with "memory" clobber. Set elt->cost to MAX_COST
37382 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
37383 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
37385 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
37387 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
37390 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
37392 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
37393 libgcc/config/i386/elf-lib.h.
37395 2015-01-23 Jakub Jelinek <jakub@redhat.com>
37398 * gcc.c (print_configuration): Don't print a blank line at the end
37400 (run_attempt): ... but here unstead.
37402 PR middle-end/64734
37403 * omp-low.c (scan_sharing_clauses): Don't ignore
37404 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
37405 on target data/update constructs.
37407 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
37410 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
37411 (DEBUG_RELOAD): Removed define.
37412 (m32c_limit_reload_class): Enable traces with if DEBUG0.
37413 (m32c_function_arg): Added a type cast.
37414 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
37415 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
37416 * config/m32c/bitops.md (andqi3_16): Likewise.
37417 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
37418 (push_a01_l): Likewise.
37420 2015-01-23 David Malcolm <dmalcolm@redhat.com>
37423 * main.c (main): Construct toplev instances with init_signals=true.
37424 * toplev.c (general_init): Add param "init_signals", and use it to
37425 conditionalize the calls to signal and host_hooks.extra_signals.
37426 (toplev::toplev): Add param "init_signals".
37427 (toplev::main): When invoking general_init, pass m_init_signals
37428 to control whether signal-handlers are installed.
37429 * toplev.h (toplev::toplev): Add param "init_signals".
37430 (toplev::m_init_signals): New field.
37432 2015-01-23 David Malcolm <dmalcolm@redhat.com>
37435 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
37436 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
37437 latter may be affected by the former (e.g. on i686).
37439 2015-01-23 Martin Liska <mliska@suse.cz>
37441 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
37442 false positive during profiledbootstrap.
37444 2015-01-23 Tom de Vries <tom@codesourcery.com>
37447 * lto-opts.c (lto_write_options): Output non-explicit conservative
37449 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
37450 (append_compiler_options): Pass -fopenacc through.
37452 2015-01-23 Tom de Vries <tom@codesourcery.com>
37455 * lto-opts.c (lto_write_options): Output non-explicit conservative
37457 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
37458 (append_compiler_options): Pass -fopenmp through.
37460 2015-01-23 Jakub Jelinek <jakub@redhat.com>
37463 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
37466 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
37467 * diagnostic.def (DK_ICE_NOBT): New kind.
37468 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
37469 like DK_ICE, but never print backtrace.
37470 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
37471 (internal_error_no_backtrace): New function.
37472 * gcc.c (execute): Use internal_error_no_backtrace instead of
37475 2015-01-22 Jeff Law <law@redhat.com>
37478 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
37479 improve code density for small immediate to memory case.
37480 (insv): Better handle bitfield assignments when the field is
37481 being set to all ones.
37482 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
37485 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37486 Jakub Jelinek <jakub@redhat.com>
37488 PR middle-end/64729
37489 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
37490 for !TARGET_LIBC_PROVIDES_SSP version and
37491 -fstack-protector-{all,strong,explicit} otherwise.
37492 * config/freebsd.h (LINK_SSP_SPEC): Handle
37493 -fstack-protector-{strong,explicit}.
37495 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
37496 H.J. Lu <hongjiu.lu@intel.com>
37499 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
37502 2015-01-22 Wei Mi <wmi@google.com>
37504 PR rtl-optimization/64557
37505 * dse.c (record_store): Call get_addr for mem_addr.
37506 (check_mem_read_rtx): Likewise.
37508 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
37510 * fold-const.c (const_binop): Add early return for non-tcc_binary.
37512 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
37514 * toplev.c (init_local_tick): Process the failure when read
37515 fails for random_seed.
37517 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
37518 'pretty_name' to avoid memory overflow.
37520 2015-01-22 Richard Biener <rguenther@suse.de>
37522 PR middle-end/64728
37523 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
37524 abnormal coalescing on undefined SSA names.
37526 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
37530 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
37532 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
37534 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
37536 PR middle-end/63325
37537 * fold-const.c (fold_checksum_tree): Don't include value of
37538 expr->decl_with_vis.symtab_node in the checksum.
37540 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37542 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
37544 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
37547 * gcc.c (insert_comments): New function.
37548 (try_generate_repro): Call it.
37549 (append_text): Removed.
37551 2015-01-22 Richard Biener <rguenther@suse.de>
37553 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
37554 with IL incompatible options. Properly honor user optimize
37557 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
37559 PR rtl-optimization/64682
37560 * combine.c (distribute_notes): When moving a death note for
37561 a register that is set in the new I2, make sure to put it
37562 before that new I2.
37564 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
37566 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
37567 not TARGET_DEFAULT.
37569 2015-01-21 Jakub Jelinek <jakub@redhat.com>
37572 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
37573 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
37574 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
37577 * doc/invoke.texi (-fsanitize=vptr): Document.
37579 PR rtl-optimization/62078
37580 * dse.c: Include cfgcleanup.h.
37581 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
37582 anything call purge_all_dead_edges and cleanup_cfg at the end
37585 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
37587 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
37590 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
37592 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
37595 2015-01-21 David Sherwood <david.sherwood@arm.com>
37596 Tejas Belagod <Tejas.Belagod@arm.com>
37598 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
37599 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
37600 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
37603 2015-01-21 David Sherwood <david.sherwood@arm.com>
37604 Tejas Belagod <Tejas.Belagod@arm.com>
37606 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
37607 (aarch64_reverse_mask): New decls.
37608 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
37609 (insn_count): New mode_attr.
37610 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
37611 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
37612 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
37613 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
37614 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
37615 (aarch64_simd_st4): New patterns.
37616 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
37617 (aarch64_reverse_mask): New functions.
37619 2015-01-21 Alan Hayward <alan.hayward@arm.com>
37621 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
37623 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
37624 addressing modes for BE.
37625 (aarch64_print_operand): Add 'R' specifier.
37626 (aarch64_simd_disambiguate_copy): Delete.
37627 (aarch64_simd_emit_reg_reg_move): New function.
37628 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
37629 in define_splits for structural moves.
37630 (mov<mode>): Use less restrictive predicates.
37631 (*aarch64_mov<mode>): Simplify and only allow for LE.
37632 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
37634 2015-01-21 Alan Hayward <alan.hayward@arm.com>
37636 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
37638 2015-01-21 Richard Henderson <rth@redhat.com>
37641 * ccmp.c (used_in_cond_stmt_p): Remove.
37642 (expand_ccmp_expr): Don't use it.
37644 2015-01-21 Nick Clifton <nickc@redhat.com>
37646 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
37649 2015-01-21 Richard Biener <rguenther@suse.de>
37651 PR middle-end/64313
37652 * tree-core.h (builtin_info, builtin_info_type): Turn from
37653 an object with two arrays into an array of an object with
37654 decl and two flags, implicit_p and declared_p.
37655 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
37656 set_builtin_decl, set_builtin_decl_implicit_p,
37657 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
37658 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
37659 * builtins.c (builtin_info): Adjust.
37660 * gimplify.c (gimplify_addr_expr): References to builtins
37661 that have been declared by the user makes them eligible for
37662 use by the compiler. Call set_builtin_decl_implicit_p on them.
37664 2015-01-20 Jeff Law <law@redhat.com>
37667 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
37668 allow pc-relative addresses in operand predicates or constraints.
37670 2015-01-21 Bin Cheng <bin.cheng@arm.com>
37672 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
37673 neon on aarch32 processors for stringops.
37675 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37678 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
37680 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37683 * ipa-inline.c: Include lto-streamer.h
37684 (report_inline_failed_reason): Output source file differences and
37685 flags on optimization/target node mismatch.
37686 (can_inline_edge_p): Consider caller to be the outer inline function;
37687 be less restrictive about matching opimize and optimize_size attributes.
37688 (inline_account_function_p): Break out from ...
37689 (inline_small_functions): ... here.
37690 * ipa-inline-transform.c (clone_inlined_nodes): Use
37691 inline_account_function_p.
37692 (inline_call): Use optimize attribution; use inline_account_function_p.
37693 (inline_transform): Use opt_for_fn.
37694 * ipa-inline.h (inline_account_function_p): Declare.
37696 2015-01-20 Jakub Jelinek <jakub@redhat.com>
37699 * dwarf2out.c (decl_piece_node): Don't put bitsize into
37700 mode if bitsize <= 0.
37701 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
37702 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
37703 sizes and positions.
37705 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
37707 * config/nios2/nios2.c (nios2_asm_file_end): Implement
37708 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
37710 (TARGET_ASM_FILE_END): Define.
37712 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37714 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
37715 (struct tune_params): Use the enum.
37716 * arm.c (arm_*_tune): Update.
37717 (arm_option_override): Update.
37719 2015-01-20 Richard Biener <rguenther@suse.de>
37722 * ipa-reference.c (add_static_var): Inline ...
37723 (analyze_function): ... here after splitting out from ...
37724 (is_proper_for_analysis): ... this.
37726 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
37729 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
37730 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
37731 replace the conditional with it's true branch.
37732 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
37733 (arm_lra_p): Remove.
37735 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
37737 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
37739 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
37741 * config/tilegx/mul-tables.c: Move symtab.h include after
37742 coretypes.h include.
37743 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
37744 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
37745 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
37746 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
37747 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
37749 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
37753 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
37755 PR rtl-optimization/64081
37756 * loop-iv.c (def_pred_latch_p): New function.
37757 (latch_dominating_def): Allow specific cases with non-single
37759 (iv_get_reaching_def): Likewise.
37760 (check_complex_exit_p): New function.
37761 (check_simple_exit): Use check_complex_exit_p to allow certain cases
37762 with exits not executing on any iteration.
37764 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37767 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
37768 to set branch cost.
37770 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37773 * i386.c (gate): Check flag_expensive_optimizations and
37775 (ix86_option_override_internal): Drop optimize_size condition
37776 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
37777 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
37778 MASK_PREFER_AVX128.
37779 (ix86_avx256_split_vector_move_misalign,
37780 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
37781 * sse.md (all uses of TARGET_PREFER_AVX128): Add
37782 optimize_insn_for_speed_p check.
37784 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
37786 * config/mips/mips.h (FP_ASM_SPEC): New define.
37787 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
37790 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
37793 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
37794 nullptr for insn when reaching the first insn.
37795 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
37796 (sh_insn_operands_modified_between_p): Add nullptr check.
37797 (sh_find_extending_set_of_reg): Fix log message. Don't accept
37798 sign extending mem load if the insn contains any UNSPEC or
37801 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37803 * params.def (inline-unit-growth): Drop to 15%.
37804 * invoke.texi (inline-unit-growth): Document change.
37806 2015-01-19 Martin Liska <mliska@suse.cz>
37809 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
37810 function for second argument of OBJ_TYPE_REF.
37812 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37815 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
37816 whether function is an alias.
37818 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
37820 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
37823 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
37825 PR rtl-optimization/64671
37826 * lra-remat.c (operand_to_remat): Don't consider jump and call
37829 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
37832 * config/rs6000/default64.h: Include rs6000-cpus.def.
37833 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
37834 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
37835 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
37837 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
37839 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
37840 pseudo-op to specify assembler dialect.
37842 2015-01-19 Martin Liska <mliska@suse.cz>
37845 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
37846 Handle safe potentially removed nodes during filtering.
37848 2015-01-19 Martin Liska <mliska@suse.cz>
37850 * doc/extend.texi (no_icf): Add new attribute description.
37851 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
37852 where the pass attempts to merge a function with no_icf attribute.
37854 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37857 * doc/md.texi (ARM Options): Document register constraints.
37859 2015-01-19 Jiong Wang <jiong.wang@arm.com>
37860 Andrew Pinski <apinski@cavium.com>
37863 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
37864 (ashl<mode>3): Don't expand if operands[2] is not constant.
37866 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37869 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
37870 Match xor-and-xor RTL pattern.
37872 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
37874 PR rtl-optimization/64081
37875 * loop-iv.c (def_pred_latch_p): New function.
37876 (latch_dominating_def): Allow specific cases with non-single
37878 (iv_get_reaching_def): Likewise.
37879 (check_complex_exit_p): New function.
37880 (check_simple_exit): Use check_complex_exit_p to allow certain cases
37881 with exits not executing on any iteration.
37883 2015-01-19 Jakub Jelinek <jakub@redhat.com>
37885 * common.opt (fgraphite): Fix a typo.
37887 2015-01-19 Felix Yang <felix.yang@huawei.com>
37889 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
37891 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
37892 uminp, smax_nanp, smin_nanp): New builtins.
37893 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
37894 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
37895 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
37896 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
37897 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
37898 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
37899 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
37900 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
37901 vpminnms_f32): Rewrite using builtin functions.
37903 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
37906 * omp-low.c (offload_symbol_decl): Remove variable.
37907 (get_offload_symbol_decl): Remove function.
37908 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
37909 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
37910 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
37911 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
37912 BUILT_IN_GOACC_UPDATE don't pass it at all.
37914 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
37916 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
37919 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
37921 * ipa-chkp.c (chkp_produce_thunks): Add early param
37922 to split thunks production into two passes. Keep
37923 'always_inline' function bodies after the first pass.
37924 (pass_data_ipa_chkp_early_produce_thunks): New.
37925 (pass_ipa_chkp_early_produce_thunks): New.
37926 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
37927 chkp_produce_thunks signature.
37928 (make_pass_ipa_chkp_early_produce_thunks): New.
37929 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
37930 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
37931 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
37933 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
37935 * cgraph.c (cgraph_node::dump): Dump profile flags.
37937 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
37940 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
37941 reg appear first in the parallel.
37943 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
37945 * ipa-reference.c (set_reference_optimization_summary,
37946 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
37948 (ignore_module_statics): New static var.
37949 (propagate_bits): If ipa-reference is disabled, do not look into local
37951 (analyze_function): Disable analysis when ipa_reference is disabled.
37952 (generate_summary): Do not dump when reference is disabled;
37953 collect vars accessed from functions with ipa-reference disabled.
37954 (get_read_write_all_from_node): When ipa-reference is disabled, use the
37956 (gate): Enable for LTO.
37957 (ignore_edge_p): New function.
37958 (propagate): Skip functions w/o ipa-reference analysis.
37959 * optc-save-gen.awk: Handle optimize_debug correctly.
37960 * opth-gen.awk: Likewise.
37961 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
37962 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
37963 fira-share-save-slots, fira-share-spill-slots,
37964 fmodulo-sched-allow-regmoves, fpartial-inlining,
37965 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
37966 ftracer, ftree-parallelize-loops, fassociative-math,
37967 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
37969 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
37970 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
37972 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
37975 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
37978 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
37980 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
37982 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
37984 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
37985 Remove duplicate option listings.
37987 2015-01-18 Felix Yang <felix.yang@huawei.com>
37989 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
37990 (autofdo_source_profile::get_callsite_total_count,
37991 function_instance::get_function_instance_by_decl,
37992 string_table::get_index, string_table::get_index_by_decl,
37993 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
37994 Fix comment typos. Reformatting and minor code rearrangement.
37996 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
37998 * config/rs6000/rs6000.md (probe_stack): Delete.
37999 (probe_stack_address): New.
38001 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38003 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
38004 to test for 32-bit ABIs, not !TARGET_POWERPC64.
38006 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38008 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
38009 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
38010 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
38012 (rs6000_libcall_value): Use the new function.
38014 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
38016 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
38018 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
38020 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
38021 implement a more precise life analysis for it during backward scan.
38023 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
38025 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
38027 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
38029 PR rtl-optimization/52773
38030 * calls.c (emit_library_call_value): When pushing arguments use
38031 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
38032 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
38033 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
38035 2015-01-17 Jeff Law <law@redhat.com>
38037 PR rtl-optimization/32790
38038 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
38039 not ZERO_EXTEND in SET_DESTs.
38041 2015-01-17 Alan Modra <amodra@gmail.com>
38043 * cprop.c (do_local_cprop): Revert last change.
38045 2015-01-16 DJ Delorie <dj@redhat.com>
38046 Nick Clifton <nickc@redhat.com>
38048 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
38049 (addhi3_real): Likewise. Fix [HL+0] syntax.
38050 (subqi3_real): Likewise.
38051 (subhi3_real): Likewise.
38052 (cbranchqi4_real): Likewise. Allow saddr,#imm.
38053 (cbranchhi4_real): Likewise.
38054 (cbranchhi4_real_inverted): Likewise.
38055 (cbranchsi4_real_lt): Likewise.
38056 (cbranchsi4_real_ge): Likewise.
38057 (cbranchsi4_real_ge): Likewise.
38058 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
38059 (sub<mode>3_virt): Likewise.
38060 (cbranchqi4_virt): Likewise.
38061 (cbranchhi4_virt): Likewise.
38062 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
38063 always use '[reg+imm]' even when imm is zero.
38064 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
38065 (rl78_general_operand): New.
38066 (rl78_nonimmediate_operand): New.
38067 (rl78_nonfar_operand): Use them.
38068 (rl78_nonfar_nonimm_operand): Likewise.
38069 (rl78_stack_based_mem): Fix.
38070 * config/rl78/constraints.md (Ibqi): New.
38075 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
38076 (iorqi3): Likewise.
38077 (xorqi3): Likewise.
38078 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
38080 * config/rl78/constrains (Qs8): New constraint.
38081 * config/rl78/rl78.c (rl78_flags_already_set): New function.
38082 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
38083 * config/rl78/rl78-real.md (update_Z): New attribute.
38084 Update patterns to set it.
38085 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
38086 shorter compare and branch sequence can be used.
38087 (cbranchhi4_real): Likewise.
38088 (cbranchhi4_real_inverted): Likewise.
38090 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
38091 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
38093 * config/rl78/rl78.c (rl78_get_name_encoding): New.
38094 (rl78_option_override): Allow -mes0 only if C.
38095 (characterize_address): Support subregs of symbol_refs.
38096 (rl78_addr_space_address_mode): Move. Add __near.
38097 (rl78_far_p): Likewise.
38098 (rl78_addr_space_pointer_mode): Likewise.
38099 (rl78_as_legitimate_address): Likewise.
38100 (rl78_addr_space_subset_p): Likewise.
38101 (rl78_addr_space_convert): Likewise.
38102 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
38103 symbols with -mes0.
38104 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
38106 (rl78_alloc_physical_registers_op1): Change logic to prefer
38107 symbol[BC] addressing.
38108 (frodata_section): New.
38109 (rl78_asm_init_sections): Initialize it.
38110 (rl78_select_section): Put __far readonly symbols in .frodata.
38111 (rl78_make_type_far): New.
38112 (rl78_insert_attributes): Force all readonly symbols to be
38114 (rl78_asm_out_integer): New.
38115 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
38116 * config/rl78/rl78.opt (-mes0): New.
38118 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
38119 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
38120 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
38121 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
38122 (rl78_saddr_p): New.
38123 (rl78_output_aligned_common): New.
38124 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
38125 (rl78_handle_saddr_attribute): New.
38126 (rl78_handle_naked_attribute): New.
38127 (rl78_attribute_table): Add saddr.
38128 (rl78_print_operand_1): Don't print '!' on saddr operands.
38129 (rl78_print_operand_1): Strip encodings.
38131 (rl78_strip_name_encoding): New.
38132 (rl78_attrlist_to_encoding): New.
38133 (rl78_encode_section_info): New.
38134 (rl78_asm_init_sections): New.
38135 (rl78_select_section): New.
38136 (rl78_output_labelref): New.
38137 (rl78_output_aligned_common): New.
38138 (rl78_asm_out_integer): New.
38139 (rl78_asm_ctor_dtor): New.
38140 (rl78_asm_constructor): New.
38141 (rl78_asm_destructor): New.
38143 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
38144 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
38145 (transcode_memory_rtx): Update.
38146 (rl78_expand_epilogue): Use A_REG instead of 0.
38148 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38150 * config/arm/arm-protos.h (struct tune_params): New field
38151 sched_autopref_queue_depth.
38152 * config/arm/arm.c (sched-int.h): Include header.
38153 (arm_first_cycle_multipass_dfa_lookahead_guard,)
38154 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
38155 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
38156 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
38157 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
38158 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
38159 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
38160 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
38161 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
38162 * config/arm/t-arm (arm.o): Update.
38163 * haifa-sched.c (update_insn_after_change): Update.
38164 (rank_for_schedule): Use auto-prefetcher model, if requested.
38165 (autopref_multipass_init): New static function.
38166 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
38167 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
38168 variable for debug dumps.
38169 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
38170 (autopref_multipass_dfa_lookahead_guard): New global function that
38171 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
38172 (init_h_i_d): Update.
38173 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
38174 * sched-int.h (enum autopref_multipass_data_status): New const enum.
38175 (autopref_multipass_data_): Structure for auto-prefetcher data.
38176 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
38177 (struct _haifa_insn_data:autopref_multipass_data): New field.
38178 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
38179 (autopref_multipass_dfa_lookahead_guard): Declare.
38181 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38183 * rtlanal.c (get_base_term): Handle SCRATCH.
38185 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38187 * config/aarch64/aarch64.c
38188 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
38189 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
38191 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
38192 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
38194 2015-01-17 Alan Modra <amodra@gmail.com>
38196 * cprop.c (do_local_cprop): Disallow replacement of fixed
38199 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38202 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
38205 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
38207 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
38208 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
38210 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38212 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
38213 * config/arm/thumb1.md: ... Here.
38215 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38217 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
38218 TImode for TARGET_32BIT.
38220 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38222 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
38223 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
38225 (rs6000_abi_word_mode): New function.
38227 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38229 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
38230 instead of UNITS_PER_WORD to describe the size of stack slots.
38232 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38234 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
38235 as rs6000_promote_function_mode. Move comment to there.
38236 (rs6000_promote_function_mode): New function.
38238 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38240 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
38241 -mpowerpc64 is active.
38243 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
38245 PR middle-end/64353
38246 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
38249 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
38251 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
38252 introduced in revision 219724.
38254 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38255 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38258 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
38259 destination is not a GP reg.
38260 (*movdi_aarch64): Likewise.
38262 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
38265 * config/rs6000/default64.h: Revert ISA change.
38267 2015-01-16 Richard Biener <rguenther@suse.de>
38269 PR middle-end/64614
38270 * tree-ssa-uninit.c: Include tree-cfg.h.
38271 (MAX_SWITCH_CASES): New define.
38272 (convert_control_dep_chain_into_preds): Handle switch statements.
38273 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
38274 (normalize_one_pred_1): Do not split bit-manipulations.
38277 2015-01-16 Richard Biener <rguenther@suse.de>
38279 PR tree-optimization/64568
38280 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
38281 complex load rewriting for TARGET_MEM_REFs.
38283 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
38285 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
38287 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
38290 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
38292 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
38293 (aarch64_lra_p): Remove.
38295 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
38298 * ipa-chkp.h (chkp_instrumentable_p): New.
38299 * ipa-chkp.c: Include tree-inline.h.
38300 (chkp_instrumentable_p): New.
38301 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
38302 Fix processing of not instrumentable functions.
38303 (chkp_versioning): Use chkp_instrumentable_p. Warn about
38304 not instrumentable functions.
38305 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
38306 chkp_instrumentable_p.
38307 * tree-inline.h (copy_forbidden): New.
38308 * tree-inline.c (copy_forbidden): Not static anymore.
38310 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38312 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
38315 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
38317 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
38318 type OP_OUT to OP_INOUT.
38320 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
38322 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
38323 (high x) y) to y if x and y have the same base.
38325 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
38327 * config/arm/cortex-a57.md: New.
38328 * config/aarch64/aarch64.md: Include it.
38329 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
38330 * config/aarch64/aarch64-tune.md: Regenerate.
38332 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
38335 * ccmp.c (expand_ccmp_next): New function.
38336 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
38337 and compare insn sequence.
38338 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
38339 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
38340 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
38341 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
38342 (*ccmp_ior): Changed to ccmp_ior<mode>.
38343 (cmp<mode>): New pattern.
38344 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
38346 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
38348 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
38350 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
38351 _mm256_bsrli_epi128): New.
38352 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
38354 2015-01-15 Jiong Wang <jiong.wang@arm.com>
38356 * expmed.c (store_bit_field_using_insv): Improve warning message.
38357 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
38359 2015-01-15 Jiong Wang <jiong.wang@arm.com>
38361 PR rtl-optimization/64011
38362 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
38363 there is partial overflow.
38365 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38367 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
38369 (nds32_expand_epilogue_v3pop): Likewise.
38370 * config/nds32/nds32.md (sibcall): Define this for sibling call
38372 (sibcall_register): Likewise.
38373 (sibcall_immediate): Likewise.
38374 (sibcall_value): Likewise.
38375 (sibcall_value_register): Likewise.
38376 (sibcall_value_immediate): Likewise.
38377 (sibcall_epilogue): Likewise.
38378 (epilogue): Pass false to indicate this is not a sibcall epilogue.
38379 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
38380 (nds32_expand_epilogue_v3pop): Likewise.
38382 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38384 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
38385 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
38386 (return_internal): New.
38387 (return): Define this named pattern.
38388 (simple_return): Define this named pattern.
38389 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
38390 pattern instead of unspec_volatile_func_return.
38391 (nds32_expand_epilogue_v3pop): Likewise.
38392 (nds32_can_use_return_insn): New function.
38394 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38396 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
38397 * config/nds32/nds32.md (pop25return): New.
38398 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
38399 pop25return pattern.
38401 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38403 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
38404 -mforbid-fp-as-gp, and -mex9 options.
38406 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38408 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
38409 remove -mgp-direct option.
38411 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
38413 * doc/invoke.texi (--param early-inlining-insns): Update default value.
38414 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
38416 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
38418 * ipa-inline.c (inline_small_functions): Work around hints
38421 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
38424 * doc/invoke.texi (Option Summary): Document new Nios II
38426 (Nios II Options): Likewise.
38427 * config/nios2/nios2.opt: Add -mgpopt= option support.
38428 Modify existing -mgpopt and -mno-gpopt options to be aliases.
38429 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
38430 * config/nios2/nios2.c (nios2_option_override): Adjust
38431 -mgpopt defaulting.
38432 (nios2_in_small_data_p): Return true for explicit small data
38433 sections even with -G0.
38434 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
38437 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
38440 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
38442 (inline_call): Fix removal of aliases.
38444 2015-01-15 Jakub Jelinek <jakub@redhat.com>
38446 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
38447 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
38448 * opts.c (common_handle_option): Add -fsanitize=vptr.
38449 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
38450 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
38451 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
38452 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
38453 (ubsan_expand_vptr_ifn): New prototype.
38454 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
38455 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
38456 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
38457 expand_LOOP_VECTORIZED): Make argument nameless, remove
38459 (expand_UBSAN_VPTR): New function.
38460 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
38462 (UBSAN_VPTR): New internal function.
38463 * sanopt.c (tree_map_traits): Renamed to ...
38464 (sanopt_tree_map_traits): ... this.
38465 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
38466 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
38467 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
38468 (maybe_optimize_ubsan_vptr_ifn): New function.
38469 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
38470 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
38472 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
38473 internal calls like pure functions for aliasing, even when they
38474 have other side-effects that prevent making them ECF_PURE.
38475 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
38476 (ubsan_expand_vptr_ifn): New function.
38478 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
38480 PR rtl-optimization/64110
38481 * stmt.c (parse_output_constraint): Process '^' and '$'.
38482 (parse_input_constraint): Ditto.
38483 * lra-constraints.c (process_alt_operands): Process the new
38485 * ira-costs.c (record_reg_classes): Process the new constraint
38487 * genoutput.c (indep_constraints): Add '^' and '$'.
38488 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
38489 * doc/md.texi: Add description of the new constraints.
38491 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
38492 Bernd Schmidt <bernds@codesourcery.com>
38493 Cesar Philippidis <cesar@codesourcery.com>
38494 James Norris <jnorris@codesourcery.com>
38495 Tom de Vries <tom@codesourcery.com>
38496 Ilmir Usmanov <i.usmanov@samsung.com>
38497 Dmitry Bocharnikov <dmitry.b@samsung.com>
38498 Evgeny Gavrin <e.gavrin@samsung.com>
38499 Jakub Jelinek <jakub@redhat.com>
38501 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
38502 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38503 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38504 New function types.
38505 * builtins.c: Include "gomp-constants.h".
38506 (expand_builtin_acc_on_device): New function.
38507 (expand_builtin, is_inexpensive_builtin): Handle
38508 BUILT_IN_ACC_ON_DEVICE.
38509 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
38511 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
38513 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
38514 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
38515 i386/intelmic-offload.h.
38516 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
38517 to libgomp and its dependencies.
38518 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
38519 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
38520 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
38521 * config/ia64/hpux.h (LIB_SPEC): Likewise.
38522 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
38523 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
38524 * doc/generic.texi: Update for OpenACC changes.
38525 * doc/gimple.texi: Likewise.
38526 * doc/invoke.texi: Likewise.
38527 * doc/sourcebuild.texi: Likewise.
38528 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
38529 GF_OMP_FOR_KIND_OACC_LOOP.
38530 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
38531 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
38532 GF_OMP_TARGET_KIND_OACC_UPDATE,
38533 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
38535 * gimple.c: Update comments for OpenACC changes.
38536 * gimple.def: Likewise.
38537 * gimple.h: Likewise.
38538 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
38539 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
38540 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
38541 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
38542 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
38544 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
38545 * gimplify.c: Include "gomp-constants.h".
38546 Update comments for OpenACC changes.
38547 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
38548 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
38549 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
38550 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
38551 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
38552 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
38553 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
38554 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
38555 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
38557 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
38558 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
38559 OMP_CLAUSE_SET_MAP_KIND.
38560 (gimplify_oacc_cache): New function.
38561 (gimplify_omp_for): Handle OACC_LOOP.
38562 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
38564 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
38565 OACC_EXIT_DATA, OACC_UPDATE.
38566 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
38567 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
38568 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
38569 (gimplify_body): Consider flag_openacc next to flag_openmp.
38570 * lto-streamer-out.c: Include "gomp-constants.h".
38571 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
38572 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
38573 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
38574 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
38575 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
38576 (BUILT_IN_ACC_ON_DEVICE): New builtins.
38577 * omp-low.c: Include "gomp-constants.h".
38578 Update comments for OpenACC changes.
38579 (struct omp_context): Add reduction_map, gwv_below, gwv_this
38581 (extract_omp_for_data, use_pointer_for_field, install_var_field)
38582 (new_omp_context, delete_omp_context, scan_sharing_clauses)
38583 (create_omp_child_function, scan_omp_for, scan_omp_target)
38584 (check_omp_nesting_restrictions, lower_reduction_clauses)
38585 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
38586 Update for OpenACC changes.
38587 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
38588 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
38589 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
38590 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
38591 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
38592 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
38594 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
38595 Handle GF_OMP_FOR_KIND_OACC_LOOP.
38596 (expand_omp_target, lower_omp_target): Handle
38597 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
38598 GF_OMP_TARGET_KIND_OACC_UPDATE,
38599 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
38600 GF_OMP_TARGET_KIND_OACC_DATA.
38601 (pass_expand_omp::execute, execute_lower_omp)
38602 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
38604 (offload_symbol_decl): New variable.
38605 (oacc_get_reduction_array_id, oacc_max_threads)
38606 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
38607 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
38608 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
38609 (oacc_gimple_assign, oacc_initialize_reduction_data)
38610 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
38612 (is_targetreg_ctx): Remove function.
38613 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
38614 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
38615 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
38616 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
38617 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
38618 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
38619 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
38620 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
38621 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
38622 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
38623 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
38624 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
38625 * tree-core.h: Update comments for OpenACC changes.
38626 (enum omp_clause_map_kind): Remove.
38627 (struct tree_omp_clause): Change type of map_kind member from enum
38628 omp_clause_map_kind to unsigned char.
38629 * tree-inline.c: Update comments for OpenACC changes.
38630 * tree-nested.c: Likewise. Include "gomp-constants.h".
38631 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
38632 (convert_tramp_reference_stmt, convert_gimple_call): Update for
38633 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
38634 OMP_CLAUSE_SET_MAP_KIND.
38635 * tree-pretty-print.c: Include "gomp-constants.h".
38636 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
38637 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
38638 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
38639 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
38640 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
38641 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
38642 instead of OMP_CLAUSE_MAP_*.
38643 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
38644 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
38645 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
38646 * tree-streamer-in.c: Include "gomp-constants.h".
38647 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
38648 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
38649 * tree-streamer-out.c: Include "gomp-constants.h".
38650 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
38652 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
38653 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
38654 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
38655 * tree.c (omp_clause_num_ops): Update accordingly.
38656 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
38658 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
38659 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
38660 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
38661 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
38662 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
38663 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
38664 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
38665 (OMP_CLAUSE_SET_MAP_KIND): New macro.
38666 * varpool.c (varpool_node::get_create): Consider flag_openacc next
38668 * config/i386/intelmic-offload.h: New file.
38669 * config/nvptx/offload.h: Likewise.
38671 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38673 * explow.h: Remove duplicate contents.
38674 * dojump.h: Likewise.
38676 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
38678 * arm.c (arm_xgene_tune): Add default initializer for instruction
38681 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
38685 * ipa.c (symbol_table::remove_unreachable_nodes):
38686 Do not put abstract origins into boundary.
38688 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
38690 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
38691 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
38693 2015-01-15 Steve Ellcey <sellcey@mips.com>
38695 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
38696 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
38697 builtins.def, and chkp-builtins.def.
38699 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
38701 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
38704 2015-01-15 Richard Biener <rguenther@suse.de>
38706 PR tree-optimization/61743
38707 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
38708 information on PHIs for some simple cases.
38710 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38712 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
38714 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
38715 * config/arm/arm-cores.def (xgene1): New entry.
38716 * config/arm/arm-tables.opt: Regenerate.
38717 * config/arm/arm-tune.md: Regenerate.
38718 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
38720 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
38722 * tree-if-conv.c: Include hash-map.h.
38723 (aggressive_if_conv): New variable.
38724 (fold_build_cond_expr): Add simplification of non-zero condition.
38725 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
38726 destination block is not always executed.
38727 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
38728 than two predecessors if AGGRESSIVE_IF_CONV is true.
38729 (if_convertible_stmt_p): Fix commentary.
38730 (all_preds_critical_p): New function.
38731 (has_pred_critical_p): New function.
38732 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
38733 BB can have more than two predecessors and all incoming edges can be
38735 (predicate_bbs): Skip predication for loop exit block, use build2_loc
38736 to compute predicate for true edge.
38737 (find_phi_replacement_condition): Delete this function.
38738 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
38739 Allow interchange PHI arguments if EXTENDED is false.
38740 Change check that block containing reduction statement candidate
38741 is predecessor of phi-block since phi may have more than two arguments.
38742 (phi_args_hash_traits): New helper structure.
38743 (struct phi_args_hash_traits): New type.
38744 (phi_args_hash_traits::hash): New function.
38745 (phi_args_hash_traits::equal_keys): New function.
38746 (gen_phi_arg_condition): New function.
38747 (predicate_scalar_phi): Add handling of phi nodes with more than two
38748 arguments, delete COND and TRUE_BB arguments, insert body of
38749 find_phi_replacement_condition to predicate ordinary phi nodes.
38750 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
38751 delete call of find_phi_replacement_condition and invoke
38752 predicate_scalar_phi with two arguments.
38753 (insert_gimplified_predicates): Add assert that non-predicated block
38754 don't have statements to insert.
38755 (ifcvt_split_critical_edges): New function.
38756 (ifcvt_split_def_stmt): Likewise.
38757 (ifcvt_walk_pattern_tree): Likewise.
38758 (stmt_is_root_of_bool_pattern): Likewise.
38759 (ifcvt_repair_bool_pattern): Likewise.
38760 (ifcvt_local_dce): Likewise.
38761 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
38762 is copy of inner or outer loop force_vectorize field, invoke
38763 ifcvt_split_critical_edges, ifcvt_local_dce and
38764 ifcvt_repair_bool_pattern for aggressive if-conversion.
38766 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
38768 * config/aarch64/aarch64.md: Include xgene1.md.
38769 * config/aarch64/xgene1.md: New file.
38771 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38773 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
38774 xgene1 (APM XGene-1) core definition.
38775 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
38776 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
38777 * doc/invoke.texi: Document -mcpu=xgene1.
38779 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38781 * dojump.h: New header file.
38782 * explow.h: Likewise.
38783 * expr.h: Remove includes.
38784 Move expmed.c prototypes to expmed.h.
38785 Move dojump.c prototypes to dojump.h.
38786 Move alias.c prototypes to alias.h.
38787 Move explow.c prototypes to explow.h.
38788 Move calls.c prototypes to calls.h.
38789 Move emit-rtl.c prototypes to emit-rtl.h.
38790 Move varasm.c prototypes to varasm.h.
38791 Move stmt.c prototypes to stmt.h.
38792 (saved_pending_stack_adjust): Move to dojump.h.
38793 (adjust_address): Move to explow.h.
38794 (adjust_address_nv): Move to emit-rtl.h.
38795 (adjust_bitfield_address): Likewise.
38796 (adjust_bitfield_address_size): Likewise.
38797 (adjust_bitfield_address_nv): Likewise.
38798 (adjust_automodify_address_nv): Likewise.
38799 * explow.c (expr_size): Move to expr.c.
38800 (int_expr_size): Likewise.
38801 (tree_expr_size): Likewise.
38802 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38803 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
38804 * genemit.c (main): Generate includes statistics.h, real.h,
38805 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
38807 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
38808 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
38809 explow.h, emit-rtl.h, stmt.h.
38810 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
38811 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
38812 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
38813 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
38814 emit-rtl.h, varasm.h, stmt.h.
38815 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
38816 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
38817 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
38818 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
38819 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
38820 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
38821 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
38822 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
38823 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
38824 tm.h tree.h varasm.h vec.h wide-int.h.
38825 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38826 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
38827 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
38828 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
38829 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
38830 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
38831 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
38832 * loop-iv.c: Likewise.
38833 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
38834 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
38835 statistics.h stmt.h tree.h varasm.h wide-int.h.
38836 * lra-constraints.c: Likewise.
38837 * lra-eliminations.c: Likewise.
38838 * lra-lives.c: Likewise.
38839 * lra-remat.c: Likewise.
38840 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38841 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
38842 statistics.h stmt.h tree.h varasm.h wide-int.h.
38843 * hw-doloop.c: Likewise.
38844 * ira-color.c: Likewise.
38845 * ira-emit.c: Likewise.
38846 * loop-doloop.c: Likewise.
38847 * loop-invariant.c: Likewise.
38848 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38849 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
38850 statistics.h stmt.h tree.h varasm.h wide-int.h.
38851 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
38852 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
38853 statistics.h stmt.h tree.h varasm.h wide-int.h.
38854 * combine-stack-adj.c: Likewise.
38857 * ifcvt.c: Likewise.
38858 * ira-costs.c: Likewise.
38859 * jump.c: Likewise.
38860 * lra-coalesce.c: Likewise.
38861 * lra-spills.c: Likewise.
38862 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38863 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
38864 stmt.h varasm.h wide-int.h.
38865 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38866 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
38868 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
38869 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
38870 statistics.h stmt.h varasm.h wide-int.h.
38871 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
38872 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
38873 varasm.h wide-int.h.
38874 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
38875 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
38876 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
38877 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
38878 statistics.h stmt.h.
38879 * config/tilepro/tilepro.c: Likewise.
38880 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
38881 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
38882 * config/pdp11/pdp11.c: Likewise.
38883 * config/xtensa/xtensa.c: Likewise.
38884 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
38885 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
38887 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38888 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
38889 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
38890 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38891 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
38892 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
38893 * rtl-chkp.c: Likewise.
38894 * tree-chkp-opt.c: Likewise.
38895 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
38896 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
38897 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
38898 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38899 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
38900 statistics.h stmt.h.
38901 * tree-vect-data-refs.c: Likewise.
38902 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
38903 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38904 rtl.h statistics.h stmt.h varasm.h.
38905 * internal-fn.c: Likewise.
38906 * ipa-icf-gimple.c: Likewise.
38907 * lto-section-out.c: Likewise.
38908 * tree-data-ref.c: Likewise.
38909 * tree-nested.c: Likewise.
38910 * tree-outof-ssa.c: Likewise.
38911 * tree-predcom.c: Likewise.
38912 * tree-pretty-print.c: Likewise.
38913 * tree-scalar-evolution.c: Likewise.
38914 * tree-ssa-strlen.c: Likewise.
38915 * tree-vect-loop.c: Likewise.
38916 * tree-vect-patterns.c: Likewise.
38917 * tree-vect-slp.c: Likewise.
38918 * tree-vect-stmts.c: Likewise.
38919 * tsan.c: Likewise.
38920 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38921 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
38923 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
38924 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38925 statistics.h stmt.h varasm.h.
38926 * loop-unroll.c: Likewise.
38927 * ubsan.c: Likewise.
38928 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
38929 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
38931 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38932 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
38933 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
38934 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
38935 statistics.h stmt.h.
38936 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
38937 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
38938 statistics.h stmt.h varasm.h.
38939 * gimple-match-head.c: Likewise.
38940 * lto-cgraph.c: Likewise.
38941 * lto-section-in.c: Likewise.
38942 * lto-streamer-in.c: Likewise.
38943 * lto-streamer-out.c: Likewise.
38944 * tree-affine.c: Likewise.
38945 * tree-cfg.c: Likewise.
38946 * tree-cfgcleanup.c: Likewise.
38947 * tree-if-conv.c: Likewise.
38948 * tree-into-ssa.c: Likewise.
38949 * tree-ssa-alias.c: Likewise.
38950 * tree-ssa-copyrename.c: Likewise.
38951 * tree-ssa-dse.c: Likewise.
38952 * tree-ssa-forwprop.c: Likewise.
38953 * tree-ssa-live.c: Likewise.
38954 * tree-ssa-math-opts.c: Likewise.
38955 * tree-ssa-pre.c: Likewise.
38956 * tree-ssa-sccvn.c: Likewise.
38957 * tree-tailcall.c: Likewise.
38958 * tree-vect-generic.c: Likewise.
38959 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38960 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
38961 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38962 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
38963 * varasm.c: Likewise.
38964 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38965 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
38967 * init-regs.c: Likewise.
38969 * omp-low.c: Likewise.
38970 * stack-ptr-mod.c: Likewise.
38971 * tree-ssa-reassoc.c: Likewise.
38972 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38973 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
38975 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38976 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
38977 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38978 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
38979 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38980 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
38981 * tree-ssa-phiopt.c: Likewise.
38982 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38983 fixed-value.h hashtab.h real.h statistics.h stmt.h.
38984 * config/fr30/fr30.c: Likewise.
38985 * config/frv/frv.c: Likewise.
38986 * expr.c: Likewise.
38987 * final.c: Likewise.
38988 * optabs.c: Likewise.
38989 * passes.c: Likewise.
38990 * simplify-rtx.c: Likewise.
38991 * stmt.c: Likewise.
38992 * toplev.c: Likewise.
38993 * var-tracking.c: Likewise.
38994 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38995 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
38996 * lower-subreg.c: Likewise.
38997 * postreload-gcse.c: Likewise.
38999 * reginfo.c: Likewise.
39000 * store-motion.c: Likewise.
39001 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39002 fixed-value.h hashtab.h real.h stmt.h varasm.h.
39003 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39004 fixed-value.h hashtab.h statistics.h stmt.h.
39005 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39006 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39007 * except.c: Likewise.
39008 * explow.c: Likewise.
39009 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39010 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
39012 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39013 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
39014 * tree-ssa-structalias.c: Likewise.
39015 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39016 fixed-value.h insn-config.h real.h statistics.h.
39017 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39018 fixed-value.h insn-config.h real.h statistics.h stmt.h.
39019 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39020 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39021 * cfgbuild.c: Likewise.
39022 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39023 fixed-value.h real.h rtl.h statistics.h stmt.h.
39024 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39025 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39026 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39027 fixed-value.h real.h statistics.h stmt.h.
39028 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39029 fixed-value.h real.h statistics.h stmt.h varasm.h.
39030 * cprop.c: Likewise.
39031 * modulo-sched.c: Likewise.
39032 * postreload.c: Likewise.
39033 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39034 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
39035 statistics.h stmt.h varasm.h.
39036 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
39037 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39038 rtl.h statistics.h stmt.h varasm.h.
39039 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
39040 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
39042 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39043 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
39045 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
39046 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
39048 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
39049 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39050 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39051 function.h real.h statistics.h stmt.h varasm.h.
39052 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39053 insn-config.h real.h statistics.h stmt.h.
39054 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39055 statistics.h stmt.h.
39056 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
39057 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
39058 statistics.h stmt.h varasm.h.
39059 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
39060 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
39061 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39062 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
39063 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
39064 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39065 statistics.h stmt.h varasm.h.
39066 * ipa-polymorphic-call.c: Likewise.
39067 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
39068 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39069 statistics.h stmt.h.
39070 * config/c6x/c6x.c: Likewise.
39071 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
39072 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39073 statistics.h stmt.h varasm.h.
39074 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
39075 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
39077 * ipa-split.c: Likewise.
39078 * tree-eh.c: Likewise.
39079 * tree-ssa-dce.c: Likewise.
39080 * tree-ssa-loop-niter.c: Likewise.
39081 * tree-vrp.c: Likewise.
39082 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
39083 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
39085 * config/nds32/nds32-fp-as-gp.c: Likewise.
39086 * config/nds32/nds32-intrinsic.c: Likewise.
39087 * config/nds32/nds32-isr.c: Likewise.
39088 * config/nds32/nds32-md-auxiliary.c: Likewise.
39089 * config/nds32/nds32-memory-manipulation.c: Likewise.
39090 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
39091 * config/nds32/nds32-predicates.c: Likewise.
39092 * config/nds32/nds32.c: Likewise.
39093 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
39094 fixed-value.h hashtab.h real.h statistics.h.
39095 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
39096 fixed-value.h hashtab.h real.h statistics.h stmt.h.
39097 * config/arm/arm.c: Likewise.
39098 * config/avr/avr.c: Likewise.
39099 * config/bfin/bfin.c: Likewise.
39100 * config/h8300/h8300.c: Likewise.
39101 * config/i386/i386.c: Likewise.
39102 * config/ia64/ia64.c: Likewise.
39103 * config/iq2000/iq2000.c: Likewise.
39104 * config/m32c/m32c.c: Likewise.
39105 * config/m32r/m32r.c: Likewise.
39106 * config/m68k/m68k.c: Likewise.
39107 * config/mcore/mcore.c: Likewise.
39108 * config/mep/mep.c: Likewise.
39109 * config/mips/mips.c: Likewise.
39110 * config/mn10300/mn10300.c: Likewise.
39111 * config/moxie/moxie.c: Likewise.
39112 * config/pa/pa.c: Likewise.
39113 * config/rl78/rl78.c: Likewise.
39114 * config/rx/rx.c: Likewise.
39115 * config/s390/s390.c: Likewise.
39116 * config/sh/sh.c: Likewise.
39117 * config/sparc/sparc.c: Likewise.
39118 * config/spu/spu.c: Likewise.
39119 * config/stormy16/stormy16.c: Likewise.
39120 * config/v850/v850.c: Likewise.
39121 * config/vax/vax.c: Likewise.
39122 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
39123 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39124 * config/msp430/msp430.c: Likewise.
39125 * predict.c: Likewise.
39126 * value-prof.c: Likewise.
39127 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
39128 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
39129 * config/microblaze/microblaze.c: Likewise.
39130 * config/nios2/nios2.c: Likewise.
39131 * config/rs6000/rs6000.c: Likewise.
39132 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39133 insn-config.h real.h rtl.h statistics.h stmt.h.
39134 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39135 insn-config.h real.h statistics.h stmt.h.
39136 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
39137 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39138 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
39139 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39140 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
39141 fixed-value.h real.h statistics.h stmt.h.
39142 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
39143 fixed-value.h statistics.h stmt.h.
39144 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
39147 2015-01-15 Jakub Jelinek <jakub@redhat.com>
39149 * gengtype.c (create_user_defined_type): Workaround
39150 -Wmaybe-uninitialized false positives.
39151 * cse.c (fold_rtx): Likewise.
39152 * loop-invariant.c (gain_for_invariant): Likewise.
39154 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
39156 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
39157 set the memory attributes in all cases but clear MEM_EXPR if need be.
39159 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
39161 PR tree-optimization/64434
39162 * cfgexpand.c (reorder_operands): New function.
39163 (expand_gimple_basic_block): Insert call of reorder_operands if
39166 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
39168 * config/mips/micromips.md (*swp): Remove explicit parallel.
39169 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
39170 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
39171 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
39172 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
39173 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
39174 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
39175 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
39176 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
39177 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
39178 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
39179 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
39180 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
39181 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
39182 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
39183 (mips_wrdsp): Likewise.
39184 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
39186 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
39187 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
39188 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
39189 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
39190 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
39191 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
39192 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
39193 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
39194 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
39196 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
39198 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
39199 (mips_print_operand): Support 'y' to print exact log2 in decimal
39201 * config/mips/mips.h (ISA_HAS_LSA): New define.
39202 (ISA_HAS_DLSA): Likewise.
39203 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
39204 * config/mips/predicates.md (const_immlsa_operand): New predicate.
39206 2015-01-15 Martin Liska <mliska@suse.cz>
39209 * optc-save-gen.awk: Add support for array types.
39211 2015-01-15 Richard Biener <rguenther@suse.de>
39213 PR middle-end/64365
39214 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
39215 for MEM_REF access functions with the same base can never partially
39218 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
39220 * common.opt: New option -fstack-protector-explicit.
39221 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
39222 (stack_protect_decl_phase): Handle stack_protect attribute for
39223 explicit stack protection requests.
39224 (expand_used_vars): Similarly.
39225 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
39226 * doc/extend.texi: Add documentation for "stack_protect" attribute.
39227 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
39229 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
39232 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
39234 (sh_extending_set_of_reg): New struct.
39235 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
39236 sh_remove_reg_dead_or_unused_notes): New Declarations.
39237 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
39238 sh_find_extending_set_of_reg, sh_split_tst_subregs,
39239 sh_extending_set_of_reg::use_as_extended_reg): New functions.
39240 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
39241 convert to insn_and_split and use new function sh_split_tst_subregs.
39243 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
39245 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
39247 (Optimization Options): Move -fuse-ld documentation to...
39248 (Link Options): ...here.
39250 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
39252 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
39254 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
39255 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
39256 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
39257 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
39258 instead of ZR for the memory operand of LL/SC.
39259 (compare_and_swap_12, sync_add<mode>): Likewise.
39260 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
39261 (sync_new_<optab>_12, sync_nand_12): Likewise.
39262 (sync_old_nand_12, sync_new_nand_12): Likewise.
39263 (sync_sub<mode>, sync_old_add<mode>): Likewise.
39264 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
39265 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
39266 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
39267 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
39268 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
39269 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
39270 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
39271 * doc/md.texi (ZC): Update description.
39273 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
39275 * builtins.c (expand_builtin_atomic_exchange): Remove error when
39276 memory model is CONSUME.
39277 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
39278 expand_builtin_atomic_store): Change invalid memory model errors to
39280 (expand_builtin_atomic_clear): Change invalid model errors to warnings
39281 and issue warning for CONSUME.
39283 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
39285 * lto-cgraph: Update function comments for
39286 lto_symtab_encoder_encode_*.
39288 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
39290 * Makefile.in (site.exp): Do not set ENABLE_LTO.
39292 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
39294 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
39295 * lto-cgraph.c (select_what_to_stream): Remove argument, use
39296 lto_stream_offload_p instead.
39297 * lto-streamer.h (select_what_to_stream): Remove argument.
39298 * passes.c (ipa_write_summaries): Likewise.
39299 * tree-pass.h (ipa_write_summaries): Likewise.
39301 2015-01-14 Richard Biener <rguenther@suse.de>
39303 PR tree-optimization/59354
39304 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
39305 groups larger than the slp group size as having gaps.
39307 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
39309 PR middle-end/59448
39310 * builtins.c (get_memmodel): Promote consume to acquire always.
39312 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
39315 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
39318 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
39321 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
39323 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
39324 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
39325 AVX512VBMI, as it implies AVX512BW.
39327 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
39330 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
39331 (vec_unpacks_hi_v16sf): Ditto.
39333 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39335 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
39338 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39340 * doc/invoke.texi (mapcs): Mention deprecation.
39341 (mapcs-frame): Likewise.
39343 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
39346 * config/arm/arm.c (callee_saved_reg_p): Define.
39347 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
39348 register is callee saved instead of !call_used_regs[reg].
39349 (thumb1_compute_save_reg_mask): Likewise.
39351 2015-01-14 Hale Wang <hale.wang@arm.com>
39353 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
39356 2015-01-14 Richard Biener <rguenther@suse.de>
39359 * tree-inline.c (insert_debug_decl_map): Check destination
39360 function MAY_HAVE_DEBUG_STMTS.
39361 (insert_init_debug_bind): Likewise.
39362 (insert_init_stmt): Remove redundant check.
39363 (remap_gimple_stmt): Drop debug stmts if the destination
39364 function has var-tracking assignments disabled.
39366 2015-01-14 Martin Liska <mliska@suse.cz>
39368 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
39369 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
39371 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39374 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
39375 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
39377 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
39379 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
39380 level from an ARCH; do not inject the default.
39381 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
39382 MIPS_ISA_LEVEL_SPEC.
39383 (MIPS_ISA_NAN2008_SPEC): Update comment.
39384 (BASE_DRIVER_SELF_SPECS): Likewise.
39385 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
39386 MIPS_DEFAULT_ISA_LEVEL_SPEC.
39387 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
39388 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
39389 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
39391 2015-01-14 Richard Biener <rguenther@suse.de>
39393 PR tree-optimization/64493
39394 PR tree-optimization/64495
39395 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
39396 assign the proper vectorized PHI to the inner loop exit PHIs.
39398 2015-01-14 Joey Ye <joey.ye@arm.com>
39400 * config/arm/arm.c (arm_compute_save_reg_mask):
39401 Do not save lr in case of tail call.
39402 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
39404 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
39406 * tree-vrp.c (check_array_ref): Emit more warnings
39407 for warn_array_bounds >= 2.
39408 * common.opt: New option -Warray-bounds=.
39409 * doc/invoke.texi: Document -Warray-bounds=.
39411 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
39413 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
39414 (mforbid-fp-as-gp): Remove.
39416 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
39417 (nds32_symbol_load_store_p): Remove.
39418 (nds32_fp_as_gp_check_available): Clean up implementation.
39419 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
39421 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
39422 fp-as-gp and ex9 cases.
39424 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
39426 * tree-profile.c (init_ic_make_global_vars): Drop workaround
39427 for bintuils bug 14342.
39428 (init_ic_make_global_vars): Likewise.
39429 (gimple_init_edge_profiler): Likewise.
39430 (gimple_gen_ic_func_profiler): Likewise.
39432 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
39434 * ipa-inline.c (inline_small_functions): Swap the operands in
39437 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
39440 * ipa-inline-analysis.c (node_growth_cache): Remove.
39441 (initialize_growth_caches): Do not initialize it.
39442 (free_growth_caches): Do not free it.
39443 (do_estimate_growth): Rename to ...
39444 (estimate_growth): ... this one; drop growth cache code.
39445 (growth_likely_positive): Always go the heuristics way.
39446 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
39447 (reset_edge_caches): Do not reset node growth.
39448 (heap_edge_removal_hook): Do not maintain cache.
39449 (inline_small_functions): Likewise; strenghten sanity check.
39450 (ipa_inline): Do not maintain caches.
39451 * ipa-inline.h (node_growth_cache): Remove.
39452 (do_estimate_growth): Remove to ...
39453 (estimate_growth): this one; remove inline version.
39454 (reset_node_growth_cache): Remove.
39456 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
39459 * ipa-inline.c (inline_small_functions): Update callee keys after
39460 resolving speculation
39461 (inline_small_functions): Always check monotonicity of the queue.
39463 2015-01-13 Marek Polacek <polacek@redhat.com>
39465 PR middle-end/64391
39466 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
39468 2015-01-13 Jakub Jelinek <jakub@redhat.com>
39470 PR rtl-optimization/64286
39471 * ree.c (combine_reaching_defs): Move part of comment earlier,
39472 remove !SCALAR_INT_MODE_P check.
39473 (add_removable_extension): Don't add vector mode
39474 extensions if all uses of the source register aren't the same
39477 2015-01-13 Renlin Li <renlin.li@arm.com>
39479 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
39480 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
39482 2015-01-13 Martin Liska <mliska@suse.cz>
39484 * ipa-icf.c (sem_function::equals_private): Call new functions
39485 cl_target_option_print_diff and cl_optimization_print_diff.
39486 * optc-save-gen.awk (cl_target_option_print_diff): New function.
39487 (cl_optimization_print_diff): Likewise.
39488 * opth-gen.awk: Likewise.
39490 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
39492 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
39493 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
39494 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
39495 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
39496 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
39497 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
39499 2015-01-13 Andrew Pinski <apinski@cavium.com>
39501 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
39502 instead of src mode.
39504 2015-01-13 Richard Biener <rguenther@suse.de>
39507 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
39510 2015-01-13 Andrew Pinski <apinski@cavium.com>
39512 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
39514 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
39516 2015-01-13 Jakub Jelinek <jakub@redhat.com>
39518 PR middle-end/63974
39519 * cfgexpand.c (expand_computed_goto): Don't call
39520 convert_memory_address here.
39522 2015-01-13 Richard Biener <rguenther@suse.de>
39524 PR tree-optimization/64406
39525 * tree-loop-distibution.c (pass_loop_distribution::execute):
39526 Reset the SCEV hashtable if we distributed anything.
39528 2015-01-13 Richard Biener <rguenther@suse.de>
39530 PR tree-optimization/64404
39531 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
39532 SLP types for CSEd loads.
39534 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
39536 PR tree-optimization/64436
39537 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
39538 merge of two symbolic numbers for a bitwise OR to ...
39539 (perform_symbolic_merge): This. Also fix computation of the range and
39540 end of the symbolic number corresponding to the result of a bitwise OR.
39542 2015-01-13 Richard Biener <rguenther@suse.de>
39544 PR tree-optimization/64568
39545 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
39546 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
39548 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39550 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
39551 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
39553 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39555 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
39556 target-specific symbol_ref flag.
39557 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
39558 resides in rodata section.
39559 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
39560 (nds32_encode_section_info): New function.
39562 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39564 * config/nds32/nds32.md (call): Use pseudo instruction bal which
39565 clobbers TA_REGNUM if large code model is specified.
39566 (call_register): Likewise.
39567 (call_immediate): Likewise.
39568 (call_value): Likewise.
39569 (call_value_register): Likewise.
39570 (call_value_immediate): Likewise.
39572 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39574 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
39575 (TARGET_CMODEL_MEDIUM): New macro.
39576 (TARGET_CMODEL_LARGE): New macro.
39577 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
39578 code model setting in assembly code.
39580 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39582 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
39583 Remove MASK_GP_DIRECT flag.
39584 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
39585 one of the multilib default options.
39586 * config/nds32/nds32.opt (mgp-direct): Remove.
39587 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
39588 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
39590 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
39592 * config/nds32/nds32.opt (mcmodel): Add new option.
39593 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
39594 to describe code model.
39596 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
39599 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
39601 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
39603 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
39604 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
39605 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
39606 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
39607 __builtin_sh_set_fpscr.
39609 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
39611 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
39612 after a funtion name just to indicate it is a function.
39613 ([-fsanitize-undefined-trap-on-error]): Likewise.
39614 ([-fdbg-cnt=]): Likewise.
39615 ([-mmemcpy]): Likewise.
39616 ([-mflush-func]): Likewise.
39617 ([-msynci]): Likewise.
39619 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
39621 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
39624 2015-01-12 Jakub Jelinek <jakub@redhat.com>
39626 PR tree-optimization/64563
39627 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
39628 instead of != VR_VARYING.
39631 * config/i386/i386.c (ix86_expand_prologue): Add
39632 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
39634 PR tree-optimization/64454
39635 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
39636 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
39637 for signed or [0, op1 - 1] for unsigned modulo.
39638 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
39639 even if op1 does not satisfy integer_pow2p.
39642 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
39644 2015-01-12 Jeff Law <law@redhat.com>
39647 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
39648 (trunchiqi2, truncsihi2): Similarly.
39650 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
39651 rather than calling F.
39653 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
39655 * tsan.c (instrument_expr): Use force_gimple_operand.
39656 Use may_be_nonaddressable_p instead of is_gimple_addressable.
39658 2015-01-12 Richard Biener <rguenther@suse.de>
39660 PR tree-optimization/64530
39661 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
39664 2015-01-12 Richard Biener <rguenther@suse.de>
39666 PR middle-end/64357
39667 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
39670 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39672 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
39673 Cortex-A17 tuning parameters.
39674 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
39676 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39678 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
39679 * config/arm/arm.c (arm_macro_fusion_p): New function.
39680 (arm_macro_fusion_pair_p): Likewise.
39681 (TARGET_SCHED_MACRO_FUSION_P): Define.
39682 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
39683 (ARM_FUSE_NOTHING): Likewise.
39684 (ARM_FUSE_MOVW_MOVT): Likewise.
39685 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
39686 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
39687 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
39688 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
39689 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
39690 arm_cortex_a5_tune): Specify fuseable_ops value.
39692 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
39695 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
39696 test for PIE with copy reloc.
39697 * configure: Regenerated.
39699 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39701 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
39703 (arm_tls_descseq_addr): Likewise.
39704 (arm_gen_movmemqi): Likewise.
39705 (arm_expand_epilogue_apcs_frame): Likewise.
39706 (arm_expand_epilogue): Likewise.
39707 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
39710 2015-01-12 Martin Liska <mliska@suse.cz>
39713 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
39714 volatility for correct operands.
39716 2015-01-12 Martin Liska <mliska@suse.cz>
39718 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
39719 indication that a function is not leaf.
39720 (sem_function::compare_polymorphic_p): Likewise.
39722 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39724 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
39725 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
39726 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
39727 fold-const.h, tree-check.h.
39729 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
39733 * ipa-inline.c (compute_uninlined_call_time,
39734 compute_inlined_call_time): Use counts for extra precision when
39736 (big_speedup_p): Fix formating.
39737 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
39738 (relative_time_benefit): Remove.
39739 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
39740 merge guessed and read profile paths.
39741 (inline_small_functions): Count only !optimize_size functions into
39742 initial size; be more lax about sanity check when profile is used;
39743 be sure to update inlined function profile when profile is read.
39745 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
39748 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
39749 cost when edge becomes direct.
39750 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
39751 is resolved or when introducing new speculation.
39753 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
39757 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
39758 '||' to fix typo issue.
39760 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
39761 accept and return NULL.
39763 2015-01-12 Martin Liska <mliska@suse.cz>
39765 * cgraph.c (cgraph_edge::remove_callee): Move function to header
39766 file for being inlined.
39767 (cgraph_set_edge_callee): Delete.
39768 (cgraph_edge::redirect_callee): Move function to header file
39770 (cgraph_edge::make_direct): Use new function.
39771 (cgraph_edge::dump_edge_flags): New function created from
39772 static dump_edge_flags function.
39773 (cgraph_node::dump): Use new function.
39774 (cgraph_edge::verify_count_and_frequency): New function created
39775 from verify_edge_count_and_frequency.
39776 (cgraph_edge::verify_corresponds_to_fndecl): New function created
39777 from verify_edge_corresponds_to_fndecl.
39778 (verify_edge_corresponds_to_fndecl): Delete.
39779 (cgraph_node::verify_node): Use new function.
39780 * cgraph.h (cgraph_edge::set_callee): New function.
39781 (cgraph_edge::dump_edge_flags): Likewise.
39782 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
39784 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
39786 * ipa-utils.c (estimate_function_body_sizes): Do not
39787 free node params when called late with early=true.
39789 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
39791 * doc/md.texi (Instruction Patterns): Rewrite text for
39793 (Example): Likewise.
39795 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
39797 * doc/invoke.texi (Option Summary): Break long lines.
39798 [(-fdiagnostics-color)]: Put long literal in @smallexample
39800 [(-fsanitize-recover)]: Likewise.
39801 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
39802 [(-ffast-math)]: Likewise.
39803 [(--param max-inline-insns-recursive)]: Likewise.
39804 [(--param max-inline-recursive-depth)]: Likewise.
39805 [(-mno-text-section-literals)]: Likewise.
39807 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
39809 * doc/install.texi: Update for libgomp being renamed from "GNU
39810 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
39812 * doc/sourcebuild.texi: Likewise.
39814 2015-01-10 Anthony Green <green@moxielogic.com>
39816 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
39817 mul.x availability for moxiebox configuration.
39819 2015-01-09 Anthony Green <green@moxielogic.com>
39821 * config/moxie/moxie.md: Tabify assembly output.
39823 2015-01-09 Anthony Green <green@moxielogic.com>
39825 * config/moxie/moxie.md (CC_REG): Correct register definition.
39827 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
39829 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
39830 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
39833 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
39835 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
39837 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
39838 Jakub Jelinek <jakub@redhat.com>
39840 PR middle-end/64412
39841 * lto-streamer.h (lto_stream_offload_p): New declaration.
39842 * lto-streamer.c (lto_stream_offload_p): New variable.
39843 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
39844 at the same time as section_name_prefix.
39845 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
39846 if lto_stream_offload_p.
39847 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
39848 stream TREE_TARGET_OPTION if lto_stream_offload_p.
39849 (write_ts_function_decl_tree_pointers): Don't
39850 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
39851 * tree-streamer-in.c (unpack_value_fields): Don't stream
39852 TREE_TARGET_OPTION in if ACCEL_COMPILER.
39853 (lto_input_ts_function_decl_tree_pointers): Don't stream
39854 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
39855 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
39856 instead of section_name_prefix string comparisons.
39858 2015-01-09 Jakub Jelinek <jakub@redhat.com>
39860 PR rtl-optimization/64536
39861 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
39864 2015-01-09 Michael Collison <michael.collison@linaro.org>
39866 PR tree-optimization/64322
39867 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
39868 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
39870 2015-01-09 Tom de Vries <tom@codesourcery.com>
39872 PR rtl-optimization/64539
39873 * regcprop.c (kill_clobbered_values): Factor out of ...
39874 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
39875 instead of note_stores with kill_clobbered_value.
39877 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
39879 * ginclude/unwind-arm-common.h: Revert previous commit.
39881 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
39883 * config.gcc (arm*-*-freebsd*): New configuration.
39884 * config/arm/freebsd.h: New file.
39885 * config.host: Add extra components for arm*-*-freebsd*.
39886 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
39887 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
39889 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39891 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
39893 * config/rs6000/t-rtems: Add e6500 multilibs.
39895 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39897 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
39900 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39902 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
39903 MULTILIB_EXCEPTIONS.
39905 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39907 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
39908 MULTILIB_EXCEPTIONS.
39910 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
39912 * config/arm/t-rtems-eabi: Rename to...
39913 * config/arm/t-rtems: ...this.
39914 * config/arm/rtems-eabi.h: Rename to...
39915 * config/arm/rtems.h: ...this.
39916 * config.gcc (arm*-*-rtems*): Reflect changes above.
39918 2015-01-09 Richard Biener <rguenther@suse.de>
39920 PR tree-optimization/64410
39921 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
39923 (execute_update_addresses_taken): Deal with that.
39924 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
39925 loads/stores for complex variables.
39927 2015-01-09 Martin Liska <mliska@suse.cz>
39929 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
39931 (func_checker::compare_memory_operand): New function.
39932 (func_checker::compare_operand): Split case to newly
39934 (func_checker::compare_cst_or_decl): New function.
39935 (func_checker::compare_gimple_call): Identify
39937 (func_checker::compare_gimple_assign): Likewise.
39938 * ipa-icf-gimple.h: New function.
39940 2015-01-09 Martin Liska <mliska@suse.cz>
39943 * sreal.c (sreal::dump): Change unsigned format to signed for
39945 (sreal::to_double): Replace exp2 with scalbln.
39947 2015-01-09 Martin Liska <mliska@suse.cz>
39949 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
39950 * ipa-icf.c (sem_function::equals_private): Add support for target and
39951 (sem_item_optimizer::merge_classes): Remove redundant function
39952 optimization flags comparison.
39953 * tree.h (target_opts_for_fn): New function.
39955 2015-01-09 Tom de Vries <tom@codesourcery.com>
39957 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
39959 2015-01-09 Kito Cheng <kito@0xlab.org>
39961 PR rtl-optimization/64348
39962 * lra-constraints.c (split_reg): Fix caller-save store/restore
39963 instruction generation.
39965 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
39967 PR gcov-profile/61790
39968 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
39969 long long. Fallback to int64_t if host doesn't have long long and
39970 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
39972 2015-01-08 Jakub Jelinek <jakub@redhat.com>
39974 PR tree-optimization/63989
39975 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
39976 from 1000 to 10000.
39977 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
39978 (get_stridx): If we don't have a record for certain SSA_NAME,
39979 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
39980 constant offset, call get_stridx_plus_constant.
39981 (get_stridx_plus_constant): New function.
39982 (zero_length_string): Don't use get_stridx here.
39985 PR middle-end/64388
39986 * dse.c (struct insn_info): Mention frame_read set also
39987 before reload for tail calls on some targets.
39988 (scan_insn): Revert 2014-12-22 change. Set frame_read
39989 also before reload for tail calls if
39990 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
39991 instead of add_non_frame_wild_read for non-const/memset
39992 tail calls after reload.
39994 2015-01-08 Jason Merrill <jason@redhat.com>
39996 * ubsan.c (do_ubsan_in_current_function): New.
39997 (pass_ubsan::gate): Use it.
39998 * ubsan.h: Declare it.
39999 * convert.c (convert_to_integer): Use it.
40001 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40004 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
40005 compare_code when it is unconditionally overwritten afterwards.
40006 Use ix86_reverse_condition instead of reverse_condition. Don't
40007 change code if *reverse_condition* returned UNKNOWN and don't
40008 swap ct/cf and negate diff in that case.
40010 2015-01-08 Mike Stump <mikestump@comcast.net>
40012 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
40013 (pass_tsan_O0::gate): Likewise.
40014 * extend.texi (Function Attributes): Add no_sanitize_thread
40017 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
40019 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
40020 for registering builtins.
40021 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
40022 add -fopenmp to the argv_obstack used when invoking
40023 compile_for_target.
40025 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
40026 add "-m32" or "-m64" to argv_obstack.
40027 (generate_host_descr_file): Likewise, when invoking host_compiler.
40028 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
40031 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
40033 * config/sh/sh-mem.cc: Use constant as second operand when emitting
40036 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
40039 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
40040 constant load if constant operand fits into I08.
40042 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40045 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
40046 and TREE_THIS_VOLATILE for MEM_REFs.
40047 (build5_stat): Fix up initialization of TREE_READONLY and
40048 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
40050 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
40053 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
40054 of r for the second alternative of the destination operand.
40056 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
40059 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
40061 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
40063 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
40065 ([-fivar-visibility], [-fvisibility]): Likewise.
40067 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
40069 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
40070 the file where @code, @command, etc is more appropriate.
40072 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
40074 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
40075 of -mrecip= documentation.
40077 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
40080 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
40081 correct reload handler if -m32 -mpowerpc64 is used.
40083 2015-01-06 Tom de Vries <tom@codesourcery.com>
40085 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
40087 2015-01-08 Christian Bruel <christian.bruel@st.com>
40090 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
40092 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
40094 PR tree-optimization/63259
40095 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
40096 if optab exists for 16bit byteswap.
40098 2015-01-06 Jakub Jelinek <jakub@redhat.com>
40100 * opts.c (common_handle_option): Add support for
40101 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
40102 * doc/invoke.texi: Document -fno-sanitize=all,
40103 -f{,no-}sanitize-recover=all. Document that
40104 -fsanitize=float-cast-overflow is not enabled
40105 by -fsanitize=undefined. Fix up documentation
40106 of -f{,no-}sanitize-recover.
40108 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
40110 * config.gcc: Add Visium support.
40111 * configure.ac: Likewise.
40112 * configure: Regenerate.
40113 * doc/extend.texi (interrupt attribute): Add Visium.
40114 * doc/invoke.texi: Document Visium options.
40115 * doc/install.texi: Document Visium target.
40116 * doc/md.texi: Document Visium constraints.
40117 * common/config/visium: New directory.
40118 * config/visium: Likewise.
40120 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
40122 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
40123 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
40125 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
40127 * combine.c (combine_validate_cost): Do not count the cost of a
40128 split I2 twice. Do not display it twice in the dump, either.
40130 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
40132 Revert parts of r219199.
40133 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
40135 ([-Wtraditional]): Restore markup on <limits.h>.
40137 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
40140 * doc/invoke.texi: Document -Wsuggest-override.
40142 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
40144 PR rtl-optimization/64287
40145 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
40146 (process_options): Disable flag_ipa_ra if profiling.
40148 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
40150 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
40152 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
40154 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
40155 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
40156 put under #if TARGET_LOOPS guard.
40158 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
40160 * config/i386/i386.c (output_387_binary_op): Use std::swap.
40162 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
40164 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
40165 * rtl.h (refers_to_regno_p): Add overload.
40167 * bt-load.c: Likewise.
40168 * combine.c: Likewise.
40169 * df-scan.c: Likewise.
40170 * sched-deps.c: Likewise.
40171 * config/s390/s390.c: Likewise.
40172 * config/m32r/m32r.c: Likewise.
40173 * config/rs6000/spe.md: Likewise.
40174 * config/rs6000/rs6000.c: Likewise.
40175 * config/pa/pa.c: Likewise.
40176 * config/stormy16/stormy16.c: Likewise.
40177 * config/cris/cris.c: Likewise.
40178 * config/arc/arc.md: Likewise.
40179 * config/arc/arc.c: Likewise.
40180 * config/sh/sh.md: Likewise.
40181 * config/sh/sh.c: Likewise.
40182 * config/frv/frv.c: Likewise.
40184 2015-01-05 Jakub Jelinek <jakub@redhat.com>
40187 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
40188 call as cleanup of the whole body.
40189 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
40190 * tsan.c (replace_func_exit): New function.
40191 (instrument_func_exit): Moved earlier.
40192 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
40193 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
40195 (tsan_pass): Don't call instrument_func_exit.
40196 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
40197 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
40201 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
40202 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
40203 it to libubsan handler instead of EXPR. Fold comparisons earlier,
40204 if the result is integer_zerop, return NULL_TREE.
40205 * convert.c (convert_to_integer): Pass expr as ARG.
40207 PR tree-optimization/64465
40208 * tree-inline.c (redirect_all_calls): During inlining
40209 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
40210 changed the stmt to a non-throwing call.
40212 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
40214 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
40215 etc markup throughout the file.
40217 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
40219 Enable experimental TSAN support for Ada.
40220 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
40222 2015-01-05 Jakub Jelinek <jakub@redhat.com>
40224 PR tree-optimization/64494
40225 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
40226 clear SSA_NAME_ANTI_RANGE_P flag.
40228 2015-01-05 Marek Polacek <polacek@redhat.com>
40230 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
40232 2015-01-05 Jakub Jelinek <jakub@redhat.com>
40234 Update copyright years.
40236 * gcc.c (process_command): Update copyright notice dates.
40237 * gcov-dump.c: Ditto.
40239 * doc/cpp.texi: Bump @copying's copyright year.
40240 * doc/cppinternals.texi: Ditto.
40241 * doc/gcc.texi: Ditto.
40242 * doc/gccint.texi: Ditto.
40243 * doc/gcov.texi: Ditto.
40244 * doc/install.texi: Ditto.
40245 * doc/invoke.texi: Ditto.
40247 * auto-profile.c, auto-profile.h: Fix up Copyright line.
40249 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
40251 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
40253 ([-fvtable-verify], [-fvtv-debug]): Likewise.
40254 ([-Wabi]): Likewise.
40255 ([-fmessage-length]): Likewise.
40256 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
40257 ([-Wno-discarded-qualifiers]): Likewise.
40258 ([-Wnodiscarded-array-qualifiers]): Likewise.
40259 ([-Wno-virtual-move-assign]): Likewise.
40260 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
40261 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
40262 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
40263 ([-fsanitize-undefined-trap-on-error]): Likewise.
40264 ([-floop-interchange]): Likewise.
40265 ([-ftree-coalesce-inlined-vars]): Likewise.
40266 ([-fvect-cost-model]): Likewise.
40267 ([-flto]): Likewise.
40268 ([--param]): Likewise.
40269 (Spec Files): Likewise.
40270 ([-mstrict-align]): Likewise.
40271 ([-mfix-cortex-a53-835769]): Likewise.
40272 ([-march], [-mtune]): Likewise.
40273 ([-mpic-register]): Likewise.
40274 ([-munaligned-access]): Likewise.
40275 ([-msp8]): Likewise.
40276 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
40277 (AVR Built-in Macros): Likewise.
40278 ([-mpreferred-stack-boundary]): Likewise.
40279 ([-mtune-crtl]): Likewise.
40280 ([-mashf]): Likewise.
40281 ([-mmcu=]): Likewise.
40282 ([-minrt]): Likewise.
40283 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
40284 ([-mupper-regs]): Likewise.
40285 ([-matomic-model]): Likewise.
40286 ([-mdiv]): Likewise.
40287 ([-mzdcbranch]): Likewise.
40288 ([-mdisable-callt]): Likewise.
40289 ([-msoft-float]): Likewise.
40290 ([-m8byte-align]): Likewise.
40291 ([-fstack-reuse]): Likewise.
40293 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40295 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
40296 Fix markup, light copy-editing.
40297 ([-fauto-profile]): Rewrite to fix formatting and content
40300 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40302 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
40303 Copy-edit description.
40304 ([-fisolate-erroneous-paths-attribute]): Likewise.
40305 * common.opt (fisolate-erroneous-paths-dereference):
40306 Copy-edit description.
40307 (fisolate-erroneous-paths-attribute): Likewise.
40309 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40311 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
40314 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40316 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
40317 ([-fvtv-debug]): Likewise.
40318 ([-Wc++-compat]): Likewise.
40319 ([-Wc++11-compat]): Likewise.
40320 ([-Wc++14-compat]): Likewise.
40321 ([-Wno-sized-deallocation]): Likewise.
40322 ([-femit-class-debug-always]): Likewise.
40323 ([-femit-struct-debug-detailed]): Likewise.
40324 ([-fno-keep-inline-dllexport]): Likewise.
40325 ([-fira-algorithm]): Likewise.
40326 ([-fira-region]): Likewise.
40327 ([-flra-remat]): Likewise.
40328 ([-fipa-ra]): Likewise.
40329 ([-fhoist-adjacent-loads]): Likewise.
40330 ([-fisolate-erroneous-paths-dereference]): Likewise.
40331 ([-fisolate-erroneous-paths-attribute]): Likewise.
40332 ([-ftree-switch-conversion]): Likewise.
40333 ([-ftree-tail-merge]): Likewise.
40334 ([-ftree-loop-if-convert]): Likewise.
40335 ([-ftree-loop-if-convert-stores]): Likewise.
40336 ([-ftree-loop-distribution]): Likewise.
40337 ([-ftree-loop-distribute-patterns]): Likewise.
40338 ([-flto-compression-level]): Likewise.
40339 ([-flto-report]): Likewise.
40340 ([-flto-report-wpa]): Likewise.
40341 ([-fuse-linker-plugin]): Likewise.
40342 ([-mfix-cortex-a53-835769]): Likewise.
40343 ([-mno-fix-cortex-a53-835769]): Likewise.
40344 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
40345 explicit listing; add a note to the discussion indicating they
40346 exist. Reorder table to group similar options. Add missing
40347 @opindex entries. Add @need commands throughout the table to
40348 allow it to be split across multiple pages.
40349 ([-m8bit-idiv]): Fix @opindex.
40350 ([-mavx256-split-unaligned-load]): Likewise.
40351 ([-mavx256-split-unaligned-store]): Likewise.
40352 ([-mstack-protector-guard]): Likewise.
40353 ([-mcpu=]): Likewise.
40354 ([-mcpu]): Likewise.
40355 ([-mpointer-size=]): Likewise.
40357 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
40359 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
40360 instead of `m' constraint. Likewise for unnamed movb comparison
40361 patterns using reg_before_reload_operand predicate.
40362 * config/pa/predicates.md (reg_before_reload_operand): Tighten
40363 predicate to reject register index and LO_SUM DLT memory forms
40366 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
40368 * doc/invoke.texi (Option Summary): Fix spelling of
40369 -fdevirtualize-at-ltrans.
40370 ([-fdevirtualize]): Fix markup.
40371 ([-fdevirtualize-speculatively]): Fix typo.
40372 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
40373 implementor-speaky.
40374 * common.opt (fdevirtualize-at-ltrans): Likewise.
40375 * ipa-devirt.c: Fix typos in comments throughout the file.
40376 (ipa_devirt): Fix typos in format strings for dump output.
40378 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
40380 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
40381 discussion of defaults, light copy-editing.
40383 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
40385 * tsan.c (instrument_expr): corrected previous checkin.
40387 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
40389 Instrument bit field and unaligned accesses for TSAN.
40390 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
40391 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
40392 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
40393 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
40394 unaligned memory regions.
40396 2015-01-01 Anthony Green <green@moxielogic.com>
40398 * config/moxie/predicates.md (moxie_general_movsrc_operand):
40399 Restrict move source register offsets to 16 bits.
40401 Copyright (C) 2015 Free Software Foundation, Inc.
40403 Copying and distribution of this file, with or without modification,
40404 are permitted in any medium without royalty provided the copyright
40405 notice and this notice are preserved.