1 2015-10-29 Richard Biener <rguenther@suse.de>
3 * gimple-match-head.c (gimple_simplify): Remove premature checking
4 of builtin_decl_implicit of function calls we simplify.
6 2015-10-29 Bin Cheng <bin.cheng@arm.com>
8 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
9 (get_computation_cost_at): Ditto.
10 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
13 2015-10-28 Tom de Vries <tom@codesourcery.com>
15 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
18 2015-10-28 Jason Merrill <jason@redhat.com>
20 * Makefile.in (TAGS): Include libcpp and libiberty.
22 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
24 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
25 (extract_omp_for_data): Remove OpenACC special handling of
28 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
29 (struct parallel): Update comment.
30 (nvptx_reorg): Likewise.
31 (nvptx_neuter): Cleanup whitespace.
33 2015-10-28 Richard Henderson <rth@redhat.com>
35 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
37 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
40 * config/avr/predicates.md (low_io_address_operand): Don't
41 consider MODE when computing upper bound.
42 (io_address_operand): Likewise.
44 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
46 * fold-const.c (operand_equal_p): Do not verify that types are
47 compatible for MEM_REFs.
49 2015-10-28 Richard Biener <rguenther@suse.de>
51 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
52 in simplifying VEC_COND_EXPR conditions.
54 2015-10-28 Tom de Vries <tom@codesourcery.com>
56 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
57 into vi_next of a full_var.
59 2015-10-28 Tom de Vries <tom@codesourcery.com>
61 * tree-ssa-structalias.c (new_var_info, make_heapvar)
62 (make_constraint_from_restrict, make_constraint_from_global_restrict)
63 (create_function_info_for, create_variable_info_for_1)
64 (create_variable_info_for): Add and handle add_id parameter.
65 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
66 (init_base_vars): Add extra argument to calls to new_var_info.
67 (get_vi_for_tree): Add extra argument to call to
68 create_variable_info_for.
69 (process_constraint, do_deref, process_all_all_constraints): Add extra
70 argument to calls to new_scalar_tmp_constraint_exp.
71 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
72 argument to calls to make_heapvar.
73 (make_restrict_var_constraints): Add extra argument to call to
74 make_constraint_from_global_restrict.
75 (intra_create_variable_infos): Add extra argument to call to
76 create_variable_info_for_1.
77 (ipa_pta_execute): Add extra argument to call to
78 create_function_info_for.
80 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
82 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
83 (sibcall_value): Likewise.
85 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
87 * config/nvptx/nvptx.h (struct machine_function): Add
89 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
90 nvptx_expand_oacc_join): Declare.
91 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
92 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
93 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
94 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
95 UNSPECV_JOINING, UNSPECV_JOIN): New.
96 (BITS, BITD): New mode iterators.
97 (br_true_uni, br_false_uni): New.
98 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
99 (oacc_dim_size, oacc_dim_pos): New.
100 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
101 (oacc_fork, oacc_join): New.
102 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
103 (worker_load<mode>, worker_store<mode>): New.
104 (nvptx_barsync): New.
105 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
106 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
107 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
108 worker_bcast_sym): New.
109 (nvptx_option_override): Initialize worker broadcast buffer.
110 (nvptx_emit_forking, nvptx_emit_joining): New.
111 (nvptx_init_axis_predicate): New.
112 (nvptx_declare_function_name): Init axis predicates.
113 (nvptx_expand_call): Add fork/join markers around routine call.
114 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
115 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
116 (nvptx_gen_vcast): New.
117 (struct wcast_data_t): New.
118 (enum propagate_mask): New.
119 (nvptx_gen_wcast): New.
120 (nvptx_print_operand): Add 'S' case.
121 (struct parallel): New.
122 (parallel::parallel, parallel::~parallel): New.
123 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
124 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
125 nvptx_find_par, nvptx_discover_pars): New.
126 (nvptx_propagate): New.
127 (vprop_gen, nvptx_vpropagate): New.
128 (wprop_gen, nvptx_wpropagate): New.
130 (nvptx_single, nvptx_skip_par): New.
131 (nvptx_process_pars, nvptx_neuter_pars): New.
132 (ntptx_reorg): Split blocks, generate parallel structure, apply
134 (nvptx_cannot_copy_insn_p): New.
135 (nvptx_file_end): Emit worker broadcast decl.
136 (nvptx_goacc_fork_join): New.
137 (TARGET_CANNOT_COPY_INSN_P): Override.
138 (TARGET_GOACC_FORK_JOIN): Override.
140 2015-10-28 Richard Biener <rguenther@suse.de>
142 * fold-const.c (negate_expr_p): Adjust the division case to
143 properly avoid introducing undefined overflow.
144 (fold_negate_expr): Likewise.
146 2015-10-28 Richard Biener <rguenther@suse.de>
148 PR tree-optimization/65962
149 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
150 Avoid creating loop carried dependences also for outer loops
151 of the loop a use to replace is in.
153 2015-10-28 Richard Biener <rguenther@suse.de>
155 * common.opt (fchecking): New flag controlling flag_checking.
156 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
157 * timevar.c (timer::print): Adjust output.
158 * doc/invoke.texi (fchecking): Document.
160 2015-10-28 Richard Biener <rguenther@suse.de>
163 * fold-const.c (negate_expr_p): We cannot negate plus or minus
164 if overflow is not wrapping. Likewise multiplication unless
165 one operand is constant and not power of two.
166 (fold_negate_expr): Adjust accordingly.
168 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
170 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
172 (is_oacc_parallel, is_oacc_kernels): New.
173 (enclosing_target_ctx): May return NULL.
174 (ctx_in_oacc_kernels_region): New.
175 (check_oacc_kernel_gwv): New.
176 (oacc_loop_or_target_p): Delete.
177 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
178 operands. Strip reductions fro kernels.
179 (scan_omp_target): Don't calculate gwv mask.
180 (lower_oacc_head_mark, lower_oacc_loop_marker,
181 lower_oacc_head_tail): New.
182 (struct oacc_collapse): New.
183 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
184 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
185 Remove OpenACC handling.
186 (expand_oacc_for): New.
187 (expand_omp_for): Call expand_oacc_for.
188 (lower_omp_for): Call lower_oacc_head_tail.
190 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
192 * attribs.c (check_attribute_tables): New function, broken out from...
193 (init_attributes): Use it.
194 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
195 gcc_checking_assert and checking_* functions to eliminate
196 ENABLE_CHECKING conditionals.
197 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
198 (pass_expand::execute): Likewise.
199 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
200 * cgraphunit.c (mark_functions_to_output): Likewise.
201 (cgraph_node::expand_thunk): Likewise.
202 (symbol_table::compile): Likewise.
203 * ddg.c (add_cross_iteration_register_deps): Likewise.
204 (create_ddg_all_sccs): Likewise.
205 * df-core.c (df_finish_pass, df_analyze): Likewise.
206 * diagnostic-core.h: Likewise.
207 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
208 * dominance.c (calculate_dominance_info): Likewise.
209 * dwarf2out.c (add_AT_die_ref): Likewise.
210 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
211 (loc_list_from_tree, gen_lexical_block_die): Likewise.
212 gen_type_die_with_usage, gen_type_die): Likewise.
213 (dwarf2out_decl): Likewise.
214 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
215 * except.c (duplicate_eh_regions): Likewise.
216 * fwprop.c (register_active_defs, update_df_init): Likewise.
217 (fwprop_init, fwprop_done): Likewise.
218 (update_uses): Likewise.
219 * ggc-page.c (ggc_grow): Likewise.
220 * gimplify.c (gimplify_body): Likewise.
221 (gimplify_hasher::equal): Likewise.
222 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
223 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
225 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
226 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
227 * hash-table.h (::find_empty_slot_for_expand): Likewise.
228 * ifcvt.c (if_convert): Likewise.
229 * ipa-cp.c (ipcp_propagate_stage): Likewise.
230 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
231 (odr_type_p, odr_types_equivalent_p): Likewise.
232 (add_type_duplicate, get_odr_type): Likewise.
233 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
234 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
235 (sem_item_optimizer::verify_classes): Likewise.
236 (sem_item_optimizer::traverse_congruence_split): Likewise.
237 (sem_item_optimizer::checking_verify_classes): New.
238 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
240 * cfgrtl.c (commit_edge_insertions): Likewise.
241 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
242 (rtl_flow_call_edges_add): Likewise.
243 * cgraph.c (symbol_table::create_edge): Likewise.
244 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
245 * cgraph.h (symtab_node): Likewise.
246 (symtab_node::checking_verify_symtab_nodes): Define.
247 (cgraph_node::checking_verify_cgraph_nodes): Define.
248 * cfghooks.h (checking_verify_flow_info): Define.
249 * cfgloop.h (checking_verify_loop_structure): Define.
250 * dominance.h (checking_verify_dominators): Define.
251 * et-forest.c: Fix comment.
252 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
253 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
254 ENABLE_CHECKING conditionals.
255 * ipa-inline-transform.c (save_inline_function_body): Likewise.
256 * ipa-inline.c (inline_small_functions): Likewise.
257 (early_inliner): Likewise.
258 * ipa-inline.h (estimate_edge_growth): Likewise.
259 * ipa-visibility.c (function_and_variable_visibility): Likewise.
260 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
261 (ipa_single_use): Likewise.
262 * ira-int.h: Likewise.
263 * ira.c (ira): Likewise.
264 * loop-doloop.c (doloop_optimize_loops): Likewise.
265 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
266 * loop-invariant.c (move_loop_invariants): Likewise.
267 * lra-assigns.c (lra_assign): Likewise.
268 * lra-constraints.c (lra_constraints): Likewise.
269 * lra-eliminations.c (lra_eliminate): Likewise.
270 * lra-int.h (struct lra_reg): Likewise.
271 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
272 (lra_create_live_ranges_1): Likewise.
273 * lra-remat.c (create_remat_bb_data): Likewise.
274 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
276 (check_rtl): Always define. Remove incorrect guard around
277 extract_constrain_insn call.
278 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
279 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
280 ENABLE_CHECKING conditionals.
281 * lto-streamer-out.c (DFS::DFS): Likewise.
282 (lto_output): Likewise.
283 * lto-streamer.c (lto_streamer_init): Likewise.
284 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
285 expand_omp_target, execute_expand_omp): Likewise.
286 (lower_omp_target): Likewise.
287 * passes.c (execute_function_todo): Likewise.
288 (execute_todo, execute_one_pass): Likewise.
289 (verify_curr_properties): Always define.
290 * predict.c (tree_estimate_probability: Use flag_checking,
291 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
292 ENABLE_CHECKING conditionals.
293 (propagate_freq): Likewise.
294 * pretty-print.c (pp_format): Likewise.
295 * real.c (real_to_decimal_for_mode): Likewise.
296 * recog.c (split_all_insns): Likewise.
297 * regcprop.c (kill_value_one_regno): Likewise.
298 (copy_value): Likewise.
299 (validate_value_data): Define unconditionally.
300 * reload.c: Fix comment.
301 * timevar.c: Include options.h
302 * tree-ssa.h (checking_verify_ssa): Define.
303 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
304 * sched-deps.c (CHECK): Remove unused macro.
305 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
306 gcc_checking_assert and checking_* functions to eliminate
307 ENABLE_CHECKING conditionals.
308 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
309 * sel-sched.c (struct moveop_static_params): Likewise.
310 (find_best_reg_for_expr, move_cond_jump): Likewise.
311 (move_op_orig_expr_not_found): Likewise.
312 (code_motion_process_successors, move_op): Likewise.
313 * ssa-iterators.h (first_readonly_imm_use): Likewise.
314 (next_readonly_imm_use): Likewise.
315 * store-motion.c (compute_store_table): Likewise.
316 * symbol-summary.h (function_summary::function_summary): Likewise.
317 * target.h (cumulative_args_t): Likewise.
318 (get_cumulative_args, pack_cumulative_args): Likewise.
319 * timevar.c: (timer::print): Likewise.
320 * trans-mem.c (ipa_tm_execute): Likewise.
321 * tree-cfg.c (move_stmt_op): Likewise.
322 (move_sese_region_to_fn): Likewise.
323 (gimple_flow_call_edges_add): Likewise.
324 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
326 * tree-eh.c (remove_unreachable_handlers): Likewise.
327 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
328 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
329 * tree-into-ssa.c (update_ssa): Likewise.
330 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
331 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
332 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
333 * tree-predcom.c (suitable_component_p): Likewise.
334 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
335 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
336 * tree-ssa-live.c (verify_live_on_entry): Likewise.
337 * tree-ssa-live.h (register_ssa_partition): Likewise.
338 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
339 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
340 (tree_transform_and_unroll_loop): Likewise.
341 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
342 * tree-ssa-operands.c (get_expr_operands): Likewise.
343 * tree-ssa-propagate.c (replace_exp_1): Likewise.
344 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
345 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
346 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
347 * tree-ssanames.c (release_ssa_name_fn): Likewise.
348 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
349 * tree-vect-loop-manip.c
350 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
351 (slpeel_checking_verify_cfg_after_peeling): Likewise.
352 (vect_do_peeling_for_loop_bound): Likewise.
353 (vect_do_peeling_for_alignment): Likewise.
354 * tree-vrp.c (supports_overflow_infinity): Likewise.
355 (set_value_range): Likewise.
356 * tree.c (free_lang_data_in_cgraph): Likewise.
357 * value-prof.c (gimple_remove_histogram_value): Likewise.
358 (free_hist): Likewise.
359 * var-tracking.c (canonicalize_values_star): Likewise.
360 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
362 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
364 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
365 IFN_GOACC_LOOP): New.
366 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
367 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
368 IFN_UNIQUE_OACC_TAIL_MARK.
369 (enum ifn_goacc_loop_kind): New.
370 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
371 IFN_UNIQUE_OACC_JOIN cases.
372 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
373 (expand_GOACC_LOOP): New.
374 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
375 * omp-low.c: Include gimple-pretty-print.h.
376 (struct oacc_loop): New.
377 (enum oacc_loop_flags): New.
378 (oacc_thread_numbers): New.
379 (oacc_xform_loop): New.
380 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
381 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
382 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
383 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
384 oacc_loop_discovery): New.
385 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
386 oacc_loop_process): New.
387 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
388 (execute_oacc_device_lower): Discover & process loops. Process
390 * target.def (goacc.fork_join): Change sense of hook, clarify
392 * doc/tm.texi: Regenerated.
394 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
396 * target-insns.def (oacc_fork, oacc_join): Define.
397 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
398 (goacc.fork_join): New GOACC hook.
399 * targhooks.h (default_goacc_fork_join): Declare.
400 * omp-low.c (default_goacc_forkjoin): New.
401 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
402 * doc/tm.texi: Regenerate.
404 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
406 * omp-low.c (oacc_init_rediction_array): New.
407 (oacc_initialize_reduction_data): Initialize array.
409 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
411 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
413 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
415 * internal-fn.c (expand_UNIQUE): New.
416 * internal-fn.h (enum ifn_unique_kind): New.
417 * internal-fn.def (IFN_UNIQUE): New.
418 * target-insns.def (unique): Define.
419 * gimple.h (gimple_call_internal_unique_p): New.
420 * gimple.c (gimple_call_same_target_p): Check internal fn
422 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
423 * tree-ssa-threadedge.c
424 (record_temporary_equivalences_from_stmts): Likewise.
425 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
427 2015-10-27 Richard Henderson <rth@redhat.com>
430 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
431 narrowing subregs on SSE and MMX registers.
432 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
433 appear to be sub-words of multi-register pseudos must be rejected.
434 * doc/tm.texi: Regenerate.
436 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
439 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
440 operands[0] is a reg before taking its REGNO in split condition.
441 (*movdi_aarch64): Likewise.
443 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
445 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
446 Handle floating point inner modes properly.
448 2015-10-27 Alan Hayward <alan.hayward@arm.com>
451 (vectorizable_live_operation): Change iterator.
453 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
454 Aditya Kumar <aditya.k7@samsung.com>
456 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
457 function to schedule based on isl_schedule_node.
458 (get_schedule_map_st): New schedule optimizer based on
460 (scop_get_domains): New. Return the isl_union_set containing the
461 domains of all the pbbs.
462 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
464 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
467 * calls.c (prepare_call_address): Don't handle -fno-plt here.
468 * config/i386/i386.c (ix86_expand_call): Generate indirect call
469 via GOT for -fno-plt. Support indirect call via GOT for x32.
470 * config/i386/predicates.md (sibcall_memory_operand): Allow
473 2015-10-27 Richard Biener <rguenther@suse.de>
475 PR tree-optimization/68104
476 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
477 strided access check ...
478 (vect_compute_data_refs_alignment): ... here.
480 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
481 Joseph Myers <joseph@codesourcery.com>
482 Mark Shinwell <shinwell@codesourcery.com>
483 Andrew Stubbs <ams@codesourcery.com>
484 Rich Felker <dalias@libc.org>
486 * config.gcc: Handle --enable-fdpic.
487 * config/sh/constraints.md (Ccl): New constraint.
488 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
489 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
491 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
493 * config/sh/sh-protos.h (function_symbol_result): New struct.
494 (function_symbol): Return function_symbol_result.
495 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
497 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
499 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
500 (sh_option_override): Force -fPIC if FDPIC is in effect.
501 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
502 UNSPEC_GOTOFFFUNCDESC cases.
503 (prepare_move_operands): Use FDPIC initial GOT register for
504 TLS-related GOT access; inhibit cross-section address offset constants
506 (sh_assemble_integer): New function.
507 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
508 PC-relative call sites.
509 (expand_ashiftrt): Adapt invocation of function_symbol.
510 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
511 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
512 UNSPEC_GOTOFFFUNCDESC.
513 (legitimize_pic_address): Resolve function symbols to function
514 descriptors for FDPIC. Do not use GOT-relative addressing for local
515 data that may be read-only on FDPIC.
516 (sh_emit_storesi, sh_emit_storehi): New functions.
517 (sh_trampoline_init): Generate FDPIC trampolines.
518 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
519 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
520 (sh_output_mi_thunk): Generate FDPIC call.
521 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
522 FDPIC, generate call site labels to use PC-relative addressing rather
523 than GOT-relative addressing.
524 (sh_conditional_register_usage): Make PIC register fixed and call used
525 when FDPIC is in effect.
526 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
527 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
528 sh_get_fdpic_reg_initial_val): New functions.
529 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
531 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
532 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
533 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
534 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
536 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
537 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
538 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
539 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
541 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
542 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
543 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
544 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
545 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
546 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
547 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
548 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
549 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
550 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
551 block_move_real, block_lump_real, block_move_real_i4,
552 block_lump_real_i4): Add support for FDPIC calls.
553 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
554 call_value_pop): Adjust for new function_symbol signature.
555 * config/sh/sh.opt (-mfdpic): New option.
556 * doc/install.texi (Options specification): Document --enable-fdpic.
557 * doc/invoke.texi (SH Options): Document -mfdpic.
560 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
562 PR tree-optimization/65963
563 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some LSHIFT_EXPRs
564 as equivalent MULT_EXPRs.
566 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
569 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
570 * config/arm/constraints.md (Dp): Update callsite.
571 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
573 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
575 * builtins.c (fold_builtin_load_exponent): Rename to...
576 (fold_const_builtin_load_exponent): ...this and only handle
578 (fold_builtin_2): Update accordingly.
579 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
581 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
583 * builtins.c (fold_builtin_logb): Rename to...
584 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
585 (fold_builtin_significand): Rename to...
586 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
587 (fold_builtin_1): Update accordingly.
589 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
591 * builtins.c (fold_builtin_fmin_fmax): Delete.
592 (fold_builtin_2): Handle constant fmin and fmax arguments here.
593 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
595 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
597 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
598 for register extension into sign and zero register extension.
599 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
600 for sign and zero register extension.
601 (cortexa57_addrcost_table): Likewise.
602 (xgene1_addrcost_table): Likewise.
604 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
606 * fold-const.c (fold_minmax): Delete.
607 (fold_binary_loc): Don't call it.
608 * match.pd: Add rules previously handled by fold_minmax.
610 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
612 * builtins.c (fold_builtin_fma): Remove constant handling.
613 (fold_builtin_3): Handle constant fma arguments here.
615 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
617 * builtins.c (fold_builtin_fabs): Remove constant handling.
618 (fold_builtin_abs): Likewise.
620 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
622 * builtins.c (fold_builtin_copysign): Delete.
623 (fold_builtin_2): Handle constant copysign arguments here.
624 * match.pd: Add rules previously handled by fold_builtin_copysign.
626 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
628 * builtins.c (fold_builtin_signbit): Delete.
629 (fold_builtin_2): Handle constant signbit arguments here.
630 * match.pd: Add rules previously handled by fold_builtin_signbit.
632 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
634 * match.pd: Handle sqrt(x) cmp 0 specially.
636 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
638 * tree-vect-generic.c (expand_vector_operations_1): Check
639 optab type before using it.
641 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
643 * config/aarch64/aarch64-protos.h
644 (struct tune_params): Add autoprefetcher_model field.
645 * config/aarch64/aarch64.c: Include params.h
646 (generic_tunings): Specify autoprefetcher_model value.
647 (cortexa53_tunings): Likewise.
648 (cortexa57_tunings): Likewise.
649 (cortexa72_tunings): Likewise.
650 (thunderx_tunings): Likewise.
651 (xgene1_tunings): Likewise.
652 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
653 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
654 (aarch64_override_options_internal): Set
655 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
657 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
659 * builtins.c (fold_builtin_exponent): Delete.
660 (fold_builtin_2): Handle constant expN arguments here.
661 * match.pd: Fold expN(logN(x)) -> x.
663 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
665 * builtins.c (fold_builtin_powi): Delete.
666 (fold_builtin_2): Handle constant powi arguments here.
667 * match.pd: Add rules previously handled by fold_builtin_powi.
669 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
671 * builtins.c (fold_builtin_pow): Delete in favor of...
672 (fold_const_builtin_pow): ...this new function. Only handle constant
674 (fold_builtin_2): Update accordingly.
675 * match.pd: Add rules previously handled by fold_builtin_pow.
677 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
679 * builtins.c (fold_builtin_hypot): Delete.
680 (fold_builtin_2): Handle constant hypot arguments here.
681 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
682 hypot(x, x) to fabs(x)*sqrt(2).
684 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
686 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
687 instead of make_ssa_name if not yet in SSA form.
689 2015-10-27 Richard Biener <rguenther@suse.de>
691 * cfg.c (free_edge): Add function argument and use it instead of cfun.
692 (clear_edges): Likewise.
693 * cfg.h (clear_edges): Adjust prototype.
694 * cfgexpand.c (pass_expand::execute): Adjust.
695 * cfgloop.c (release_recorded_exits): Add function argument and use
697 * cfgloop.h (release_recorded_exits): Adjust prototype.
698 (loops_state_satisfies_p): Add overload with function argument.
699 (loops_state_set): Likewise.
700 (loops_state_clear): Likewise.
701 (struct loop_iterator): Add function argument to constructor
702 and iterator and use it instead of cfun.
703 (FOR_EACH_LOOP_FN): New macro.
704 (loop_optimizer_finalize): Add overload with function argument.
705 * loop-init.c (loop_optimizer_init): Adjust.
706 (fix_loop_structure): Likewise.
707 (loop_optimizer_finaliz): Add function argument and use it
709 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
710 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
711 * cgraph.c (release_function_body): Do not push/pop cfun.
712 * final.c (rest_of_clean_state): Adjust.
713 * graphite.c (graphite_finalize): Likewise.
714 * tree-ssa-copy.c (fini_copy_prop): Likewise.
715 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
716 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
717 (tree_unroll_loops_completely): Likewise.
718 (pass_complete_unrolli::execute): Likewise.
719 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
720 Add function argument and use it instead of cfun.
721 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
723 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
724 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
726 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
727 * tree-ssanames.c (fini_ssanames): Add function argument and use it
729 * tree-ssanames.c (fini_ssanames): Adjust prototype.
730 * tree-vrp.c (execute_vrp): Adjust.
731 * value-prof.c (free_histograms): Add function argument and use it
733 * value-prof.h (free_histograms): Adjust prototype.
735 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
737 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
738 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
739 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
741 2015-10-27 Tom de Vries <tom@codesourcery.com>
743 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
746 2015-10-27 Bin Cheng <bin.cheng@arm.com>
748 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
749 (inv_can_prop_to_addr_use): New function.
750 (record_use): Call can_prop_to_addr_uses, set the new field.
751 (get_inv_cost): Count cost if inv can't be propagated into its
754 2015-10-26 Doug Evans <dje@google.com>
756 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
758 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
760 * match.pd (fold_widened_comparison): Apply simplifications to all
763 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
765 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
766 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
767 * doc/tm.texi: Regenerated.
768 * reorg.c (dbr_schedule): Use new hook.
769 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
771 2015-10-26 Jeff Law <law@redhat.com>
773 PR tree-optimization/68013
774 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
775 Make sure the first block in the path is in VISITED_BBs.
777 2015-10-26 Richard Biener <rguenther@suse.de>
778 Dominik Vogt <vogt@linux.vnet.ibm.com>
781 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
782 Properly prune ref->ref for accesses outside of ref.
784 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
786 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
787 new statements to be inserted if inplace. Allow calls to have
790 2015-10-26 Richard Biener <rguenther@suse.de>
792 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
793 (do_valueize): New function.
794 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
796 * tree-ssa-threadedge.c: Remove builtins.h include, include
798 (fold_assignment_stmt): Remove.
799 (threadedge_valueize): New function.
800 (record_temporary_equivalences_from_stmts): Use
801 gimple_fold_stmt_to_constant_1, note additional cleanup
804 2015-10-26 Richard Biener <rguenther@suse.de>
806 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
807 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
809 2015-10-26 Alan Hayward <alan.hayward@arm.com>
811 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
814 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
816 * auto-inc-dec.c (insert_move_insn_before): Delete.
817 (attempt_change): Remember to cost the simple move in the
818 FORM_PRE_ADD and FORM_POST_ADD cases.
820 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
823 * config/sh/sh.c (sh_vector_mode_supported_p): Use
824 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
826 2015-10-26 Tom de Vries <tom@codesourcery.com>
828 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
830 (intra_create_variable_infos): ... here.
832 2015-10-26 Tom de Vries <tom@codesourcery.com>
834 * tree-ssa-structalias.c (intra_create_variable_infos): Add
835 restrict_pointer_p and recursive_restrict_p variables.
837 2015-10-26 Tom de Vries <tom@codesourcery.com>
839 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
840 get_vi_for_tree call.
842 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
845 * optabs.c (expand_atomic_compare_and_swap): Handle case when
846 ptarget_oval or ptarget_bool are const0_rtx.
848 2015-10-26 Christian Bruel <christian.bruel@st.com>
850 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
851 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
852 * cp/method.c (implicitly_declare_fn): Likewise.
853 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
854 * java/class.c (add_method_1): Likewise.
856 2015-10-26 Richard Biener <rguenther@suse.de>
858 * alloc-pool.h (base_pool_allocator): Use placement new.
859 (base_pool_allocator::remove): Likewise. Compute size outside of
862 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
864 * builtins.c (do_real_to_int_conversion): New function.
865 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
866 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
868 * match.pd: Add rules previously handled by fold_fixed_mathfn
869 and fold_builtin_int_roundingfn.
871 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
873 * match.pd: Use macros to define built-in operator lists.
875 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
876 Richard Biener <rguenther@suse.de>
878 * genmatch.c (dt_simplify::gen): Skip captures that are
880 (parser::parse_expr): Allow captures in results too.
881 * builtins.c (fold_builtin_cexp): Delete.
882 (fold_builtin_1): Handle constant cexp arguments here.
883 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
885 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
887 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
888 conditional compilation.
889 (base_pool_allocator::remove): Use flag_checking.
891 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
893 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
896 * dojump.c (do_compare_and_jump): Canonicalize both function and
899 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
902 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
905 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
908 * ipa-polymorphic-call.c
909 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
910 instance offset with offset of outer type.
912 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
914 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
916 2015-10-23 Caroline Tice <cmtice@google.com>
919 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
920 call to iterative_hash_host_wide_int.
922 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
924 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
927 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
929 * tree-vect-generic.c (expand_vector_operations_1): Check
930 optab exists before use it.
932 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
934 * tree-vect-generic.c (expand_vector_condition): Avoid
935 uninitialized variable warning.
937 2015-10-23 Jeff Law <law@redhat.com>
939 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
941 (execute_todo): Call it here.
942 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
944 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
946 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
947 Szabolcs Nagy <szabolcs.nagy@arm.com>
949 * config.gcc (enable_secureplt): Add *-linux*-musl*.
951 2015-10-23 Jeff Law <law@redhat.com>
953 PR tree-optimization/67830
954 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
955 Explicitly verify the mask has no bits outside the type of
956 the innermost operands.
958 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
959 Szabolcs Nagy <szabolcs.nagy@arm.com>
961 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
962 (MUSL_DYNAMIC_LINKER64): Define.
963 (GNU_USER_DYNAMIC_LINKER32): Update.
964 (GNU_USER_DYNAMIC_LINKER64): Update.
965 (CHOOSE_DYNAMIC_LINKER): Update.
967 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
968 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
969 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
970 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
971 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
972 (CHOOSE_DYNAMIC_LINKER): Update.
973 (INCLUDE_DEFAULTS): Redefine.
975 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
977 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
979 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
982 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
984 * fold-const.c (operand_equal_p): Handle matching of vector
987 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
989 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
991 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
992 Andrew Pinski <apinski@cavium.com>
994 PR rtl-optimization/67736
995 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
998 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1001 * tree.c (build_truth_vector_type): Support BLK mode
1002 returned for boolean vector.
1004 2015-10-23 Alan Hayward <alan.hayward@arm.com>
1006 PR tree-optimization/65947
1008 (vect_is_simple_reduction_1): Find condition reductions.
1009 (vect_model_reduction_cost): Add condition reduction costs.
1010 (get_initial_def_for_reduction): Add condition reduction initial var.
1011 (vect_create_epilog_for_reduction): Add condition reduction epilog.
1012 (vectorizable_reduction): Condition reduction support.
1013 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
1014 * doc/sourcebuild.texi (Vector-specific attributes): Document
1017 2015-10-23 Richard Biener <rguenther@suse.de>
1019 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
1022 2015-10-23 Richard Biener <rguenther@suse.de>
1023 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1025 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
1026 into (A ^ B) - B to match.pd
1027 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
1029 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
1031 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
1033 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
1035 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
1037 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
1038 INTEGER_CST@1)): New simplifier.
1040 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
1042 * builtins.c (integer_valued_real_p): Move to fold-const.c.
1043 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
1044 (fold_builtin_ceil, fold_builtin_round): Delete.
1045 (fold_builtin_1): Handle constant trunc, floor, ceil and round
1047 * convert.c (convert_to_real): Remove narrowing of rounding
1049 * fold-const.h (integer_valued_real_unary_p)
1050 (integer_valued_real_binary_p, integer_valued_real_call_p)
1051 (integer_valued_real_single_p, integer_valued_real_p): Declare.
1052 * fold-const.c (tree_single_nonnegative_warnv_p): Move
1053 name_registered_for_update_p check to SSA_NAME case statement.
1054 Don't call tree_simple_nonnegative_warnv_p for SSA names.
1055 (integer_valued_real_unary_p, integer_valued_real_binary_p)
1056 (integer_valued_real_call_p, integer_valued_real_single_p)
1057 (integer_valued_real_invalid_p): New functions.
1058 (integer_valued_real_p): Move from fold-const.c and rework
1059 to call the functions above. Handle SSA names.
1060 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
1061 * gimple-fold.c (gimple_assign_integer_valued_real_p)
1062 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
1063 (gimple_stmt_integer_valued_real_p): New functions.
1064 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
1065 Fold f(x)->x for the same f if x is known to be integer-valued.
1066 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
1067 the result. Canonicalize floor(x) as trunc(x) if x is
1070 2015-10-23 Tom de Vries <tom@codesourcery.com>
1072 * tree-ssa-structalias.c (intra_create_variable_infos): Use
1073 make_constraint_from.
1075 2015-10-23 Tom de Vries <tom@codesourcery.com>
1077 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
1078 setting of is_full_var in case of a single field.
1080 2015-10-22 Martin Sebor <msebor@redhat.com>
1083 * config/i386/i386.opt: Add missing periods to the ends of sentences.
1084 * config/msp430/msp430.opt: Same.
1086 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
1088 * doc/extend.exp (Global Register Variables): Rewrite.
1090 2015-10-22 Jeff Law <law@redhat.com>
1092 * genattrtab.c (main): If we do not have any annul-true or annul-false
1093 slots, then write out a dummy eligible_for_annul_true or
1094 eligible_for_annul_false as needed.
1096 2015-10-22 Nick Clifton <nickc@redhat.com>
1098 * config/msp430/msp430.opt: Add -msilicon-errata and
1099 -msilicon-errata-warn.
1100 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
1102 * doc/invoke.texi: Document new options.
1104 2015-10-22 Richard Biener <rguenther@suse.de>
1106 PR tree-optimization/58497
1107 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
1108 (expand_vector_operations_1): Use it. Lower operations on
1109 all uniform vectors to scalar operations if the HW supports it.
1111 2015-10-22 Richard Biener <rguenther@suse.de>
1113 PR tree-optimization/19049
1114 PR tree-optimization/65962
1115 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
1116 to strided accesses if single-element interleaving doesn't work.
1118 2015-10-22 Richard Biener <rguenther@suse.de>
1122 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
1123 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
1124 (expand_unop): Likewise.
1126 2015-10-22 Richard Biener <rguenther@suse.de>
1128 * fold-const.c (fold_addr_of_array_ref_difference): Properly
1129 convert operands before folding a MINUS_EXPR.
1130 (fold_binary_loc): Move simplification of MINUS_EXPR on
1131 converted POINTER_PLUS_EXPRs ...
1132 * match.pd: ... here.
1134 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
1136 * builtins.c (fold_builtin_tan): Delete.
1137 (fold_builtin_1): Handle constant tan arguments here.
1138 * match.pd: Simplify (tan (atan x)) to x.
1140 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
1142 * builtins.c (fold_builtin_cproj): Delete.
1143 (fold_builtin_1): Handle constant arguments here.
1144 (build_complex_cproj): Move and rename to...
1145 * tree.c: (build_complex_inf): ...this.
1146 * tree.h (build_complex_inf): Declare.
1147 * match.pd: Fold cproj(x)->x if x has no infinity.
1148 Use build_complex_inf for existing cproj rules.
1150 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1153 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
1154 already have a comparison result.
1156 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1159 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
1160 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
1161 (aarch64_classify_address): Likewise.
1162 (aarch64_secondary_reload): Likewise.
1163 (aarch64_override_options_after_change_1): Adjust.
1164 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
1165 Use aarch64_nopcrelative_literal_loads.
1166 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
1167 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
1170 2015-10-21 Martin Sebor <msebor@redhat.com>
1173 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
1174 (print_filtered_help): Reference aliased option's name and encourage
1175 readers to use it in preference to the alias if the former is not
1176 documented. Mention when using an option is diagnosed.
1177 * gcc.c (display_help): End each sentence with a period.
1179 * common.opt: End each sentence that describes an option with
1181 * config/aarch64/aarch64.opt: Same.
1182 * config/alpha/alpha.opt: Same.
1183 * config/arc/arc.opt: Same.
1184 * config/arm/arm.opt: Same.
1185 * config/avr/avr.opt: Same.
1186 * config/bfin/bfin.opt: Same.
1187 * config/c6x/c6x.opt: Same.
1188 * config/cr16/cr16.opt: Same.
1189 * config/cris/cris.opt: Same.
1190 * config/cris/linux.opt: Same.
1191 * config/darwin.opt: Same.
1192 * config/epiphany/epiphany.opt: Same.
1193 * config/fr30/fr30.opt: Same.
1194 * config/frv/frv.opt: Same.
1195 * config/ft32/ft32.opt: Same.
1196 * config/g.opt: Same.
1197 * config/h8300/h8300.opt: Same.
1198 * config/i386/cygming.opt: Same.
1199 * config/i386/djgpp.opt: Same.
1200 * config/i386/i386.opt: Same.
1201 * config/i386/interix.opt: Same.
1202 * config/i386/mingw-w64.opt: Same.
1203 * config/i386/mingw.opt: Same.
1204 * config/ia64/ia64.opt: Same.
1205 * config/ia64/ilp32.opt: Same.
1206 * config/iq2000/iq2000.opt: Same.
1207 * config/linux.opt: Same.
1208 * config/lm32/lm32.opt: Same.
1209 * config/lynx.opt: Same.
1210 * config/m32c/m32c.opt: Same.
1211 * config/m32r/m32r.opt: Same.
1212 * config/m68k/ieee.opt: Same.
1213 * config/m68k/m68k.opt: Same.
1214 * config/mcore/mcore.opt: Same.
1215 * config/mep/mep.opt: Same.
1216 * config/microblaze/microblaze.opt: Same.
1217 * config/mips/mips.opt: Same.
1218 * config/mmix/mmix.opt: Same.
1219 * config/mn10300/mn10300.opt: Same.
1220 * config/moxie/moxie.opt: Same.
1221 * config/msp430/msp430.opt: Same.
1222 * config/nios2/elf.opt: Same.
1223 * config/nios2/nios2.opt: Same.
1224 * config/nvptx/nvptx.opt: Same.
1225 * config/pa/pa-hpux.opt: Same.
1226 * config/pa/pa-hpux1010.opt: Same.
1227 * config/pa/pa-hpux1111.opt: Same.
1228 * config/pa/pa-hpux1131.opt: Same.
1229 * config/pa/pa.opt: Same.
1230 * config/pa/pa64-hpux.opt: Same.
1231 * config/pdp11/pdp11.opt: Same.
1232 * config/rl78/rl78.opt: Same.
1233 * config/rs6000/476.opt: Same.
1234 * config/rs6000/aix64.opt: Same.
1235 * config/rs6000/darwin.opt: Same.
1236 * config/rs6000/linux64.opt: Same.
1237 * config/rs6000/rs6000.opt: Same.
1238 * config/rs6000/sysv4.opt: Same.
1239 * config/s390/s390.opt: Same.
1240 * config/s390/tpf.opt: Same.
1241 * config/sh/sh.opt: Same.
1242 * config/sol2.opt: Same.
1243 * config/sparc/long-double-switch.opt: Same.
1244 * config/sparc/sparc.opt: Same.
1245 * config/spu/spu.opt: Same.
1246 * config/stormy16/stormy16.opt: Same.
1247 * config/tilegx/tilegx.opt: Same.
1248 * config/tilepro/tilepro.opt: Same.
1249 * config/v850/v850.opt: Same.
1250 * config/vax/vax.opt: Same.
1251 * config/visium/visium.opt: Same.
1252 * config/vms/vms.opt: Same.
1253 * config/vxworks.opt: Same.
1254 * config/xtensa/xtensa.opt: Same.
1256 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1257 Sebastian Pop <s.pop@samsung.com>
1259 * graphite-scop-detection.c (parameter_index_in_region): Update call to
1260 invariant_in_sese_p_rec.
1261 * graphite-sese-to-poly.c (extract_affine): Same.
1262 * sese.c (invariant_in_sese_p_rec): Pass in an extra
1263 parameter has_vdefs.
1264 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
1265 variable depends on virtual definitions in the current region.
1266 * sese.h (invariant_in_sese_p_rec): Update declaration.
1268 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1269 Sebastian Pop <s.pop@samsung.com>
1271 * graphite-scop-detection.c (build_scops): Do not handle scops
1272 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
1273 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
1275 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
1277 * config.in: Regenerate.
1278 * configure: Regenerate.
1279 * configure.ac (CHECKING_P): Define.
1280 * system.h: Use CHECKING_P.
1282 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1285 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
1286 is negative we don't know the type.
1287 (check_stmt_for_type_change): Skip constructors of non-polymorphic
1288 types as those won't help devirutalization.
1290 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1292 * fold-const.c (operand_equal_p): Add code matching empty constructors.
1294 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
1296 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
1298 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
1299 Add comments on sign of the result.
1300 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
1301 Recurse on operand #1 instead of operand #0.
1302 <CEIL_MOD_EXPR>: Do not recurse.
1303 <ROUND_MOD_EXPR>: Likewise.
1305 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1307 * cfgrtl.c (pass_free_cfg::execute): Adjust.
1308 * final.c (dbr_sequence_length): Always define.
1309 (shorten_branches): Adjust.
1310 * genattr-common.c (main): Always define DELAY_SLOTS.
1311 * genattr.c (main): Unconditionally declare functions and define
1312 macros related to delay slots.
1313 * genattrtab.c (write_eligible_delay): Adjust.
1314 (main): Always write out delay slot functions.
1315 * opts.c (default_options_table): Adjust.
1316 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
1317 (redirect_with_delay_list_safe_p): Likewise.
1318 (fill_simple_delay_slots): Likewise.
1319 (fill_slots_from_thread): Likewise.
1320 (make_return_insns): Likewise.
1321 (dbr_schedule): Likewise.
1322 (rest_of_handle_delay_slots): Likewise.
1323 (pass_delay_slots::gate): Likewise.
1324 * toplev.c (process_options): Likewise.
1326 2015-10-21 Richard Henderson <rth@redhat.com>
1328 * targhooks.c (default_addr_space_pointer_mode): Remove check
1329 for generic address space.
1330 (default_addr_space_address_mode): Likewise.
1331 (default_addr_space_valid_pointer_mode): Likewise.
1332 (default_addr_space_legitimate_address_p): Likewise.
1333 (default_addr_space_legitimize_address): Likewise.
1334 * target.def (addr_space.pointer_mode): Update documentation
1335 of default behavior.
1336 (addr_space.address_mode): Likewise.
1339 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
1342 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1344 * builtins.c (fold_builtin_cabs): Delete.
1345 (fold_builtin_1): Update accordingly. Handle constant arguments here.
1346 * match.pd: Add rules previously handled by fold_builtin_cabs.
1348 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1350 * fold-const.h (fold_strip_sign_ops): Delete.
1351 * fold-const.c (fold_strip_sign_ops): Likewise.
1352 (fold_unary_loc, fold_binary_loc): Remove calls to it.
1353 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
1354 (fold_builtin_ccos): Delete.
1355 (fold_builtin_pow): Don't call fold_strip_sign_ops.
1356 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
1357 Remove fndecl argument.
1358 (fold_builtin_1): Update calls accordingly. Handle constant
1359 cos, cosh, ccos and ccosh here.
1361 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1363 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
1364 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
1365 * common.opt (fssa-backprop): New option.
1366 * fold-const.h (negate_mathfn_p): Declare.
1367 * fold-const.c (negate_mathfn_p): Make public.
1368 * timevar.def (TV_TREE_BACKPROP): New.
1369 * tree-pass.h (make_pass_backprop): Declare.
1370 * passes.def (pass_backprop): Add.
1371 * gimple-ssa-backprop.c: New file.
1373 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1374 Sebastian Pop <s.pop@samsung.com>
1376 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
1377 Do not call create_empty_if_region_on_edge when cond_expr is true.
1378 (translate_isl_ast_node_for): Check whether a guard has been generated.
1380 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1382 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
1383 (operator=): Removed.
1384 (dr_info): Make alias_set number the last argument with default
1385 value of invalid_alias_set.
1386 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
1388 (rewrite_reductions_out_of_ssa): Iterate only through the
1389 basic blocks which are inside region.
1390 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1391 * sese.h (struct sese_l): Removed assignment operator.
1392 (split_region_for_bb): Removed dead code.
1394 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1396 * graphite-poly.h (struct dr_info): Removed conversion constructor.
1397 (struct scop): Renamed scop::region to scop::scop_info
1398 (scop_set_region): Same.
1399 (SCOP_REGION): Removed
1400 (SCOP_CONTEXT): Removed.
1401 (POLY_SCOP_P): Removed.
1402 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1403 Rename scop->region to scop->scop_info.
1404 (add_parameters_to_ivs_params): Same.
1405 (graphite_regenerate_ast_isl): Same.
1406 * graphite-poly.c (new_scop): Same.
1408 (print_scop_params): Same.
1409 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
1410 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
1411 (dot_all_scops_1): Rename scop->region to scop->scop_info.
1412 (scop_detection::nb_pbbs_in_loops): Same.
1413 (find_scop_parameters): Same.
1414 (try_generate_gimple_bb): Same.
1415 (gather_bbs::before_dom_children): Same.
1416 (gather_bbs::after_dom_children): Same.
1417 (build_scops): Same.
1418 * graphite-sese-to-poly.c (build_scop_scattering): Same.
1419 (extract_affine_chrec): Same.
1420 (extract_affine): Same.
1421 (set_scop_parameter_dim): Same.
1422 (build_loop_iteration_domains): Same.
1423 (create_pw_aff_from_tree): Same.
1424 (add_param_constraints): Same.
1425 (build_scop_iteration_domain): Same.
1426 (build_scop_drs): Same.
1427 (analyze_drs_in_stmts): Same.
1428 (insert_out_of_ssa_copy_on_edge): Same.
1429 (rewrite_close_phi_out_of_ssa):Same.
1430 (rewrite_reductions_out_of_ssa):Same.
1431 (handle_scalar_deps_crossing_scop_limits):Same.
1432 (rewrite_cross_bb_scalar_deps):Same.
1433 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
1434 (build_poly_scop):Same.
1435 (build_alias_set): Use pointer to dr_info.
1436 * graphite.c (print_graphite_scop_statistics):
1437 (graphite_transform_loops):
1438 * sese.h (struct sese_l): Remove conversion constructor.
1440 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1443 * tree.c (verify_type): Verify that TYPE_MODE match
1444 between TYPE_CANONICAL and type.
1445 * expr.c (store_expr_with_bounds): Revert my previous change.
1446 * expmed.c (store_bit_field_1): Revert prevoius change.
1447 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
1448 to match for all types.
1450 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
1452 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
1455 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
1457 * doc/tm.texi: Regenerated.
1458 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
1459 * stor-layout.c (layout_type): Use mode to get vector mask size.
1460 * target.def (get_mask_mode): New.
1461 * targhooks.c (default_get_mask_mode): New.
1462 * targhooks.h (default_get_mask_mode): New.
1463 * gcc/tree-vect-stmts.c (get_same_sized_vectype): Add special case
1465 * tree.c (MAX_BOOL_CACHED_PREC): New.
1466 (nonstandard_boolean_type_cache): New.
1467 (build_nonstandard_boolean_type): New.
1468 (make_vector_type): Vector mask has no canonical type.
1469 (build_truth_vector_type): New.
1470 (build_same_sized_truth_vector_type): New.
1471 (truth_type_for): Support vector masks.
1472 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
1473 (build_truth_vector_type): New.
1474 (build_same_sized_truth_vector_type): New.
1475 (build_nonstandard_boolean_type): New.
1476 * tree-cfg.c (verify_gimple_comparison) Require boolean
1477 vector type for vector comparison.
1478 (verify_gimple_assign_ternary): Likewise.
1479 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
1481 * tree-vect-stmts.c (vectorizable_condition): Use boolean
1482 vector type for vector comparison.
1483 * tree-vect-generic.c (elem_op_func): Add new operand to hold
1485 (do_unop): Adjust to modified function type.
1486 (do_binop): Likewise.
1487 (do_plus_minus): Likewise.
1488 (do_negate); Likewise.
1489 (expand_vector_piecewise): Likewise.
1490 (do_cond): Likewise.
1491 (do_compare): Use comparison instead of condition.
1492 (expand_vector_divmod): Use boolean vector type for comparison.
1493 (expand_vector_operations_1): Skip scalar mask operations.
1495 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
1497 * omp-low.c (simd_clone_create): Set in_other_partition
1500 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
1502 * doc/extend.exp (Local Register Variables): Rewrite.
1504 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1506 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
1507 and x*x in cases where the operands are sign ops. Extend these
1508 rules to handle copysign as a sign op (including for cos, cosh
1509 and pow, which already treated negate and abs as sign ops).
1511 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
1514 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
1515 for 64-bit MS_ABI targets also when default incoming stack boundary
1518 2015-10-21 Richard Biener <rguenther@suse.de>
1520 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
1521 cond stmts, enhanced and split out from ...
1522 (vn_phi_eq): ... here.
1524 2015-10-21 Richard Biener <rguenther@suse.de>
1527 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
1528 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
1529 (tree_single_nonnegative_warnv_p): ... here. For SSA names
1530 make sure they are not registered for update.
1532 2015-10-21 Richard Biener <rguenther@suse.de>
1534 PR tree-optimization/68026
1535 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
1536 unsigned VARYING values.
1538 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1540 * asan.c (asan_emit_stack_protection): Don't pass local stack to
1541 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
1542 NULL and use local stack than.
1543 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
1544 in addition to __asan_init.
1545 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
1546 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
1547 * asan.h (asan_intercepted_p): Handle new string builtins.
1548 * ubsan.c (ubsan_use_new_style_p): New function.
1549 (ubsan_instrument_float_cast): If location is unknown, assign
1550 input_location to loc. Propagate loc to ubsan_create_data if
1551 ubsan_use_new_style_p returned true.
1553 2015-10-21 Jeff Law <law@redhat.com>
1555 * Makefile.in (OBJS): Remove sched-vis.c
1556 * sched-vis.c: Removed. Code moved into...
1557 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
1558 * rtl.h: Remove prototypes for functions now living in print-rtl.c
1559 * print-rtl.h Add prototypes for new functions in print-rtl.c.
1560 * auto-inc-dec.c: Include print-rtl.h
1561 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
1562 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
1564 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
1567 2015-10-21 Richard Biener <rguenther@suse.de>
1568 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1570 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
1572 Move (a * (1 << b)) is (a << b) to match.pd.
1573 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
1574 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
1575 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
1577 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
1579 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
1580 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
1581 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
1583 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
1585 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
1587 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
1588 Szabolcs Nagy <szabolcs.nagy@arm.com>
1589 Alan Modra <amodra@gmail.com>
1591 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
1592 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
1593 (LINK_SPEC): Add %(link_secure_plt).
1594 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
1595 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
1597 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
1598 Szabolcs Nagy <szabolcs.nagy@arm.com>
1600 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
1601 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
1603 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1605 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
1607 (fusion_load_store): Use it.
1608 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
1609 ldp and stp in VD modes.
1610 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
1611 (store_pair<mode>, VD): Likewise.
1613 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
1615 PR rtl-optimization/67609
1616 * lra-splill.c (lra_final_code_change): Don't remove all
1619 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1621 * simplify-rtx.c (simplify_binary_operation): If either operand was
1622 a constant pool reference use them if all other simplifications failed.
1624 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1626 * config/aarch64/aarch64.md
1627 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
1628 * config/aarch64/aarch64-simd.md
1629 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
1630 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
1631 (aarch64_fpconst_pow_of_2): New function.
1632 (aarch64_vec_fpconst_pow_of_2): Likewise.
1633 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
1635 (aarch64_vec_fpconst_pow_of_2): Likewise.
1636 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
1637 (aarch64_fp_vec_pow2): Likewise.
1639 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
1641 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
1642 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
1643 * config/alpha/alpha.c (alpha_function_arg_advance): Update
1644 ALPHA_ARG_SIZE usage.
1645 (alpha_arg_partial_bytes): Ditto.
1647 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
1650 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
1651 error_mark_node decls.
1653 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
1657 * common/config/i386/i386-common.c (ix86_handle_option): Remove
1658 OPT_miamcu handling.
1659 * config/i386/i386.c (PTA_NO_80387): New macro.
1660 (processor_alias_table): Add PTA_NO_80387 to lakemont.
1661 (ix86_option_override_internal): Update MASK_80387 from
1662 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
1663 SSE math only if 80387 is supported. Don't change
1665 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
1667 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
1668 if TARGET_80387 is true and TARGET_IAMCU is false.
1669 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
1670 is true and TARGET_IAMCU_P is false.
1672 2015-10-20 Richard Biener <rguenther@suse.de>
1674 PR tree-optimization/68017
1675 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
1677 2015-10-20 Martin Liska <mliska@suse.cz>
1679 * cgraphclones.c (cgraph_node::create_virtual_clone):
1680 Verify cgraph_node.local.versionable instead of calling
1681 tree_versionable_function_p.
1682 * ipa-cp.c (determine_versionability): Save the information
1683 to ipa_node_params summary.
1684 (ipcp_versionable_function_p): Use it.
1685 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
1686 (ipcp_generate_summary): Do not compute cgraph_node
1688 * ipa-inline-analysis.c (inline_generate_summary): Compute
1689 versionability for all cgraph nodes.
1690 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
1691 ipa_node_params::versionability.
1692 * ipa-prop.h (struct ipa_node_params): Declare it.
1694 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1697 * varasm.c (assemble_variable): Move special vtv handling to..
1698 (handle_vtv_comdat_sections): .. here. New function.
1699 (output_object_block): Handle vtv sections.
1701 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
1704 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
1706 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
1708 * doc/extend.texi: Update documentation WRT inline functions.
1710 2015-10-20 Alan Modra <amodra@gmail.com>
1713 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
1714 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
1715 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
1717 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
1719 PR rtl-optimization/66790
1720 * df.h (DF_MIR): New macro.
1721 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
1722 (DF_MIR_INFO_BB): New macro.
1723 (DF_MIR_IN, DF_MIR_OUT): New macros.
1724 (struct df_mir_bb_info): New.
1725 (df_mir): New macro.
1726 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
1728 (df_mir_get_bb_info): New.
1729 * df-problems.c (struct df_mir_problem_data): New.
1730 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
1731 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
1732 df_mir_confluence_0, df_mir_confluence_n,
1733 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
1734 df_mir_bottom_dump, df_mir_verify_solution_start,
1735 df_mir_verify_solution_end): New.
1737 (df_mir_add_problem, df_mir_simulate_one_insn): New.
1738 * timevar.def (TV_DF_MIR): New.
1739 * ree.c: Include bitmap.h
1740 (add_removable_extension): Add an INIT_REGS parameter. Use it
1741 to skip zero-extensions that may get an uninitialized register.
1742 (find_removable_extensions): Compute must-initialized registers
1743 using the MIR dataflow problem. Update the call to
1744 add_removable_extension.
1745 (find_and_remove_re): Call df_mir_add_problem.
1747 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
1749 * common/config/mn10300/mn10300-common.c
1750 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
1751 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
1753 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
1755 * doc/extend.texi (Explicit Register Variables): Simplify and
1756 avoid unnecessary and confusion abbreviations. Update cross
1758 doc/implement-c.tex: Update cross reference.
1760 2015-10-19 Jeff Law <law@redhat.com>
1762 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
1763 that create irreducible loops unless the path elimiantes a multiway
1766 2015-10-19 Richard Biener <rguenther@suse.de>
1768 PR tree-optimization/67975
1769 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
1770 * tree-cfg.c (extract_true_false_controlled_edges): Split out
1771 core worker from ...
1772 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
1773 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
1774 instead of block number for PHIs with two or one args.
1775 (vn_phi_eq): Compare edge predicates of PHIs that are in different
1778 2015-10-19 Richard Biener <rguenther@suse.de>
1780 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
1781 (gimple_stmt_nonnegative_warnv_p): Use it.
1782 * match.pd (CPROJ): New operator list.
1783 (cproj (complex ...)): Move simplifications from ...
1784 * builtins.c (fold_builtin_cproj): ... here.
1786 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
1788 * config/i386/i386.c (ix86_expand_vector_move): Use
1789 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
1792 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
1794 * doc/invoke.texi: Replace @optindex with @opindex.
1796 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
1799 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
1800 arch= is set, clear all bits in x_ix86_isa_flags, except for
1801 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
1803 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
1806 * common.opt (fkeep-static-functions): New option.
1807 * doc/invoke.texi: Document it.
1808 * cgraphunit.c (cgraph_node::finalize_function): Use it.
1810 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1812 * sched-int.h (struct autopref_multipass_data_): Remove offset
1813 field. Add min_offset, max_offset, multi_mem_insn_p fields.
1814 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
1815 (autopref_multipass_init): Use it. Handle PARALLEL sets.
1816 (autopref_rank_data): New function.
1817 (autopref_rank_for_schedule): Use it.
1818 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
1820 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
1823 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
1825 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1827 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
1828 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
1829 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
1830 (STANDARD_STARTFILE_PREFIX_1): New.
1831 (STANDARD_STARTFILE_PREFIX_2): New.
1833 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1835 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
1836 (darwin_driver_init): Note a version-min when provided on the c/l.
1837 * config/darwin.h (%darwin_minversion): Remove.
1838 * config/i386/darwin.h: Likewise.
1839 * config/rs6000/darwin.h: Likewise.
1840 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
1841 rather than an arbitrary constant.
1843 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1845 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
1846 PPC, detect conflicts between -arch and multilib settings. Detect
1847 and warn about conflicts between multiple -arch definitions.
1849 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1851 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
1853 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1855 * lra-constraints.c (add_next_usage_insn): Change argument type
1856 from rtx to rtx_insn *.
1858 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
1860 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
1863 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
1865 * config/tilepro/gen-mul-tables.cc: Adjust include files.
1866 * config/tilegx/mul-tables.c: Regenerate.
1867 * config/tilepro/mul-tables.c: Regenerate.
1869 * config/tilegx/tilegx-c.c: Adjust include files.
1870 * config/tilegx/tilegx.c: Likewise.
1871 * config/tilepro/tilepro-c.c: Likewise.
1872 * config/tilepro/tilepro.c: Likewise.
1873 * config/aarch64/aarch64-builtins.c: Likewise.
1874 * config/aarch64/aarch64.c: Likewise.
1875 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1876 * config/alpha/alpha.c: Likewise.
1877 * config/arc/arc.c: Likewise.
1878 * config/arm/aarch-common.c: Likewise.
1879 * config/arm/arm-builtins.c: Likewise.
1880 * config/arm/arm-c.c: Likewise.
1881 * config/arm/arm.c: Likewise.
1882 * config/avr/avr-c.c: Likewise.
1883 * config/avr/avr-devices.c: Likewise.
1884 * config/avr/avr-log.c: Likewise.
1885 * config/avr/avr.c: Likewise.
1886 * config/bfin/bfin.c: Likewise.
1887 * config/c6x/c6x.c: Likewise.
1888 * config/cr16/cr16.c: Likewise.
1889 * config/cris/cris.c: Likewise.
1890 * config/darwin-c.c: Likewise.
1891 * config/darwin-driver.c: Likewise.
1892 * config/darwin.c: Likewise.
1893 * config/default-c.c: Likewise.
1894 * config/epiphany/epiphany.c: Likewise.
1895 * config/epiphany/mode-switch-use.c: Likewise.
1896 * config/epiphany/resolve-sw-modes.c: Likewise.
1897 * config/fr30/fr30.c: Likewise.
1898 * config/frv/frv.c: Likewise.
1899 * config/ft32/ft32.c: Likewise.
1900 * config/glibc-c.c: Likewise.
1901 * config/h8300/h8300.c: Likewise.
1902 * config/i386/host-cygwin.c: Likewise.
1903 * config/i386/host-mingw32.c: Likewise.
1904 * config/i386/i386-c.c: Likewise.
1905 * config/i386/i386.c: Likewise.
1906 * config/i386/msformat-c.c: Likewise.
1907 * config/i386/winnt-cxx.c: Likewise.
1908 * config/i386/winnt-stubs.c: Likewise.
1909 * config/i386/winnt.c: Likewise.
1910 * config/ia64/ia64-c.c: Likewise.
1911 * config/ia64/ia64.c: Likewise.
1912 * config/iq2000/iq2000.c: Likewise.
1913 * config/lm32/lm32.c: Likewise.
1914 * config/m32c/m32c-pragma.c: Likewise.
1915 * config/m32c/m32c.c: Likewise.
1916 * config/m32r/m32r.c: Likewise.
1917 * config/mcore/mcore.c: Likewise.
1918 * config/mep/mep-pragma.c: Likewise.
1919 * config/mep/mep.c: Likewise.
1920 * config/microblaze/microblaze-c.c: Likewise.
1921 * config/microblaze/microblaze.c: Likewise.
1922 * config/mips/mips-tables.opt
1923 * config/mips/mips.c: Likewise.
1924 * config/mmix/mmix.c: Likewise.
1925 * config/mn10300/mn10300.c: Likewise.
1926 * config/moxie/moxie.c: Likewise.
1927 * config/msp430/msp430-c.c: Likewise.
1928 * config/msp430/msp430.c: Likewise.
1929 * config/nds32/nds32-cost.c: Likewise.
1930 * config/nds32/nds32-fp-as-gp.c: Likewise.
1931 * config/nds32/nds32-intrinsic.c: Likewise.
1932 * config/nds32/nds32-isr.c: Likewise.
1933 * config/nds32/nds32-md-auxiliary.c: Likewise.
1934 * config/nds32/nds32-memory-manipulation.c: Likewise.
1935 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1936 * config/nds32/nds32-predicates.c: Likewise.
1937 * config/nds32/nds32.c: Likewise.
1938 * config/nios2/nios2.c: Likewise.
1939 * config/nvptx/mkoffload.c: Likewise.
1940 * config/nvptx/nvptx.c: Likewise.
1941 * config/pa/pa.c: Likewise.
1942 * config/pdp11/pdp11.c: Likewise.
1943 * config/rl78/rl78-c.c: Likewise.
1944 * config/rl78/rl78.c: Likewise.
1945 * config/rs6000/host-darwin.c: Likewise.
1946 * config/rs6000/rs6000-c.c: Likewise.
1947 * config/rs6000/rs6000-linux.c: Likewise.
1948 * config/rs6000/rs6000.c: Likewise.
1949 * config/rx/rx.c: Likewise.
1950 * config/s390/s390-c.c: Likewise.
1951 * config/s390/s390.c: Likewise.
1952 * config/sh/sh-c.c: Likewise.
1953 * config/sh/sh-mem.cc: Likewise.
1954 * config/sh/sh.c: Likewise.
1955 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
1956 * config/sh/sh_treg_combine.cc: Likewise.
1957 * config/sol2-c.c: Likewise.
1958 * config/sol2-cxx.c: Likewise.
1959 * config/sol2-stubs.c: Likewise.
1960 * config/sol2.c: Likewise.
1961 * config/sparc/sparc-c.c: Likewise.
1962 * config/sparc/sparc.c: Likewise.
1963 * config/spu/spu-c.c: Likewise.
1964 * config/spu/spu.c: Likewise.
1965 * config/stormy16/stormy16.c: Likewise.
1966 * config/v850/v850-c.c: Likewise.
1967 * config/v850/v850.c: Likewise.
1968 * config/vax/vax.c: Likewise.
1969 * config/visium/visium.c: Likewise.
1970 * config/vms/vms-c.c: Likewise.
1971 * config/vms/vms.c: Likewise.
1972 * config/vxworks.c: Likewise.
1973 * config/winnt-c.c: Likewise.
1974 * config/xtensa/xtensa.c: Likewise.
1976 2015-10-16 Christian Bruel <christian.bruel@st.com>
1979 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
1980 (FUNCTION_BOUNDARY_P): New macro:
1981 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
1983 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
1984 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
1985 * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
1986 * gcc/function.c (allocate_struct_function): Call
1987 relayout_function hook.
1988 * gcc/passes.c (rest_of_decl_compilation): Likewise.
1990 2015-10-16 Christian Bruel <christian.bruel@st.com>
1993 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
1994 * config/arm/arm.c (arm_option_override_internal): Call
1995 arm_override_options_after_change_1.
1996 (arm_override_options_after_change): New function.
1997 (arm_override_options_after_change_1): Likewise.
1998 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
2000 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2003 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
2006 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
2008 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
2009 argument is an ADDR_EXPR.
2011 2015-10-16 Richard Biener <rguenther@suse.de>
2013 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
2014 and get rid of force_gimple_operand_gsi.
2015 (gimple_fold_builtin_memory_chk): Likewise.
2016 (gimple_fold_builtin_stxcpy_chk): Likewise.
2017 (rewrite_to_defined_overflow): Likewise.
2018 (gimple_convert_to_ptrofftype): New function.
2019 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
2021 2015-10-16 Richard Biener <rguenther@suse.de>
2023 * tree-nested.h (build_addr): Adjust prototype.
2024 * tree-nested.c (build_addr): Remove context argument and use
2026 (get_static_chain): Adjust calls to build_addr.
2027 (convert_nl_goto_reference): Likewise.
2028 (convert_tramp_reference_op): Likewise.
2029 (finalize_nesting_tree_1): Likewise.
2030 * value-prof.c (gimple_ic): Likewise.
2031 * gimple-low.c (lower_builtin_setjmp): Likewise.
2032 * tree-parloops.c (take_address_of): Likewise.
2033 (create_call_for_reduction_1): Likewise.
2034 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
2035 (gimple_gen_ic_func_profiler): Likewise.
2037 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2039 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
2042 2015-10-16 Michael Collison <michael.collison@linaro.org>
2043 Andrew Pinski <andrew.pinski@caviumnetworks.com>
2045 * match.pd ((x < y) && (x < z) -> x < min (y,z),
2046 (x > y) and (x > z) -> x > max (y,z))
2048 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
2049 Szabolcs Nagy <szabolcs.nagy@arm.com>
2051 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
2052 (DYNAMIC_LINKER): Renamed to ...
2053 (GLIBC_DYNAMIC_LINKER): This.
2054 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
2056 2015-10-15 Marek Polacek <polacek@redhat.com>
2058 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
2059 gimple_call_builtin instead of is_gimple_call.
2061 2015-10-15 Richard Biener <rguenther@suse.de>
2063 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
2065 2015-10-15 Richard Biener <rguenther@suse.de>
2067 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
2068 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
2069 * tree-vect-loop.c (get_initial_def_for_induction): Drop
2070 use of force_gimple_operand in favor of gimple_build.
2071 Use vect_get_new_ssa_name.
2072 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
2073 (vectorizable_mask_load_store): Likewise.
2074 (vectorizable_call): Likewise.
2075 (vectorizable_store): Likewise.
2076 (vectorizable_load): Likewise.
2077 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
2079 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
2081 PR tree-optimization/67945
2082 * tree-pass.h (PROP_gimple_opt_math): New property flag.
2083 * generic-match-head.c (canonicalize_math_p): New function.
2084 * gimple-match-head.c: Include tree-pass.h.
2085 (canonicalize_math_p): New function.
2086 * match.pd: Group math built-in rules into simplifications
2087 and canonicalizations. Guard the latter with canonicalize_math_p.
2088 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
2089 PROP_gimple_opt_math property.
2091 2015-10-15 Marek Polacek <polacek@redhat.com>
2093 PR tree-optimization/67953
2094 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
2096 2015-10-15 Jiong Wang <jiong.wang@arm.com>
2098 * config.gcc: Recognize "." in architecture base name for AArch64.
2100 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
2102 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
2104 * config/mips/mips.c (mips_setup_incoming_varargs): Use
2105 ROUND_DOWN to calculate off.
2106 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
2107 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
2110 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
2112 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
2114 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
2115 Torvald Riegel <triegel@redhat.com>
2118 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
2119 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
2120 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
2121 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
2122 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
2123 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
2124 trechkpt, treclaim, tsr, ttest): New define_expands.
2125 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2126 __TM_FENCE__ for htm.
2127 * doc/extend.texi: Update documentation for htm builtins.
2129 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
2132 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
2133 REG_CFA_EXPRESSION to aligned SSE stores.
2135 2015-10-14 Jeff Law <law@redhat.com>
2137 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
2138 num_threaded_edges for successful FSM threads too.
2140 2015-10-14 Richard Biener <rguenther@suse.de>
2142 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
2143 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
2144 (vect_get_vec_def_for_operand): Remove unused parameter.
2145 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
2146 (vect_create_epilog_for_reduction): Likewise.
2147 (vectorizable_reduction): Likewise.
2148 (vectorizable_live_operation): Likewise.
2149 * tree-vect-patterns.c (type_conversion_p): Likewise.
2150 (vect_recog_vector_vector_shift_pattern): Likewise.
2151 (check_bool_pattern): Likewise.
2152 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
2153 (vect_analyze_slp_cost_1): Likewise.
2154 * tree-vect-stmts.c (process_use): Likewise.
2155 (vect_get_vec_def_for_operand): Do not handle reductions.
2156 (vect_get_vec_defs): Adjust.
2157 (vectorizable_mask_load_store): Likewise.
2158 (vectorizable_call): Likewise.
2159 (vectorizable_simd_clone_call): Likewise.
2160 (vect_get_loop_based_defs): Likewise.
2161 (vectorizable_conversion): Likewise.
2162 (vectorizable_assignment): Likewise.
2163 (vectorizable_shift): Likewise.
2164 (vectorizable_operation): Likewise.
2165 (vectorizable_store): Likewise.
2166 (vectorizable_load): Likewise.
2167 (vect_is_simple_cond): Likewise.
2168 (vectorizable_condition): Likewise.
2169 (vect_is_simple_use): Remove unused parameters.
2170 (vect_is_simple_use_1): Adjust and rename.
2172 2015-10-14 Richard Biener <rguenther@suse.de>
2174 PR tree-optimization/67915
2175 * match.pd: Handle comparisons of addresses of STRING_CSTs.
2176 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
2177 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
2178 stmt folding in favor of GIMPLE one.
2180 2015-10-14 Marek Polacek <polacek@redhat.com>
2182 PR tree-optimization/67815
2183 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
2184 (reassociate_bb): Call it.
2186 2015-10-14 Richard Biener <rguenther@suse.de>
2188 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2189 Reset info at start.
2190 (vect_analyze_group_access_1): Add debug print.
2191 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
2192 (vect_compute_single_scalar_iteration_cost): ... to this.
2193 (vect_analyze_loop_2): Adjust.
2194 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
2195 * tree-vectorizer.h: ... here.
2196 (add_stmt_info_to_vec): Remove.
2197 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
2199 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
2201 * targhooks.c (default_target_option_pragma_parse): Do not warn if
2202 called on behalf of "#pragma GCC pop_options".
2204 2015-10-14 Tom de Vries <tom@codesourcery.com>
2206 * cfganal.c (verify_no_unreachable_blocks): New function.
2207 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
2208 verify_no_unreachable_blocks.
2209 cfganal.h (verify_no_unreachable_blocks): Declare.
2211 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
2213 * common.opt: Add flag_checking.
2214 * system.h (CHECKING_P): Define.
2216 2015-10-13 Jakub Jelinek <jakub@redhat.com>
2217 Aldy Hernandez <aldyh@redhat.com>
2218 Ilya Verbin <ilya.verbin@intel.com>
2220 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
2221 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
2222 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
2223 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
2224 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
2225 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
2226 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
2227 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
2228 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
2229 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
2230 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
2231 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
2232 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
2233 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
2234 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
2235 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
2236 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
2237 (struct cgraph_simd_clone_arg): Adjust comment.
2238 * coretypes.h (struct gomp_ordered): New forward decl.
2239 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
2240 set critical clauses to it.
2241 (gimple_build_omp_ordered): Return gomp_ordered * instead of
2242 gimple *. Add CLAUSES argument, set ordered clauses to it.
2243 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
2245 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
2246 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
2247 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
2248 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
2249 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
2250 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
2251 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
2252 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
2254 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
2255 (gomp_critical): Add clauses field.
2256 (gomp_ordered): New struct.
2257 (is_a_helper <gomp_ordered *>::test): New inline.
2258 (gimple_build_omp_critical): Add CLAUSES argument.
2259 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
2260 instead of gimple *.
2261 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
2262 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
2263 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
2264 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
2266 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
2267 (dump_gimple_omp_target): Handle enter data and exit data.
2268 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
2269 (dump_gimple_omp_critical): Print clauses.
2270 (dump_gimple_omp_ordered): New function.
2271 (dump_gimple_omp_task): Handle taskloop.
2272 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
2274 * gimple-walk.c (walk_gimple_op): Walk clauses on
2275 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
2276 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
2277 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
2278 (struct gimplify_omp_ctx): Add loop_iter_var,
2279 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
2280 and target_firstprivatize_array_bases fields.
2281 (delete_omp_context): Release loop_iter_var.
2282 (gimplify_bind_expr): Handle ORT_NONE.
2283 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
2284 ORT_COMBINED_TARGET.
2285 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
2286 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
2287 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
2288 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
2289 ctx->target_map_scalars_firstprivate.
2290 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
2291 data sharing clauses. For data sharing clause with VLA decl
2292 on omp target/target data don't add firstprivate for the pointer.
2293 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
2294 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
2295 the addition of ORT_COMBINED_TARGET.
2296 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
2297 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
2298 pointers as zero length array sections and
2299 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
2301 (omp_check_private): Handle omp_member_access_dummy_var vars.
2302 (find_decl_expr): New function.
2303 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
2304 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
2305 Handle OMP_CLAUSE_GANG separately. Handle
2306 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
2307 clauses. Diagnose linear clause on combined
2308 distribute {, parallel for} simd construct, unless it is the loop
2309 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
2310 Handle map clauses with COMPONENT_REF. Initialize
2311 ctx->target_map_scalars_firstprivate,
2312 ctx->target_firstprivatize_array_bases and
2313 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
2314 linear clause even to target region if combined. Remove
2315 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
2316 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
2317 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
2318 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
2319 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
2320 For linear clause on worksharing loop combined with parallel add
2321 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
2322 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
2323 omp_member_access_dummy_var vars. Add lastprivate clause to outer
2325 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
2326 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
2327 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
2329 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
2330 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
2331 in target body. Handle removal of struct mapping if struct is not
2332 seen in target body. Remove GOMP_MAP_STRUCT map clause on
2333 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
2334 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
2335 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
2336 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
2337 clause appear together. Handle
2338 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
2339 clause if it has map-type-modifier always. Handle
2340 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
2342 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
2343 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
2345 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
2346 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
2347 iterators in doacross loops.
2348 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
2349 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
2350 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
2351 for the addition of ORT_COMBINED_TARGET.
2352 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
2353 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
2354 and OMP_TARGET_EXIT_DATA.
2355 (gimplify_omp_ordered): New function.
2356 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
2357 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
2358 Gimplify clauses on OMP_CRITICAL.
2359 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
2360 expand_GOMP_SIMD_ORDERED_END): New functions.
2361 * internal-fn.def (GOMP_SIMD_ORDERED_START,
2362 GOMP_SIMD_ORDERED_END): New internal functions.
2363 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
2364 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
2365 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
2366 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
2367 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
2368 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
2369 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
2370 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
2371 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
2372 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
2373 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
2374 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
2375 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
2376 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
2378 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
2379 GOMP_target_data_41, adjust type.
2380 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
2381 GOMP_target_update_41, adjust type.
2382 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
2384 (struct omp_for_data): Add ordered and simd_schedule fields.
2385 (omp_member_access_dummy_var, unshare_and_remap_1,
2386 unshare_and_remap, is_taskloop_ctx): New functions.
2387 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
2388 (extract_omp_for_data): Handle taskloops and doacross loops
2389 and simd schedule modifier.
2390 (omp_adjust_chunk_size): New function.
2391 (get_ws_args_for): Use it.
2392 (lookup_sfield): Change first argument to splay_tree_key,
2393 add overload with first argument tree.
2394 (maybe_lookup_field): Likewise.
2395 (use_pointer_for_field): Handle omp_member_access_dummy_var.
2396 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
2397 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
2398 (build_outer_var_ref): Add LASTPRIVATE argument, handle
2399 taskloops and omp_member_access_dummy_var vars.
2400 (build_sender_ref): Change first argument to splay_tree_key,
2401 add overload with first argument tree.
2402 (install_var_field): For mask & 8 use &DECL_UID as key instead
2404 (fixup_child_record_type): Const qualify *.omp_data_i.
2405 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
2406 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
2407 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
2408 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
2409 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
2410 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
2411 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
2413 (add_taskreg_looptemp_clauses): New function.
2414 (scan_omp_parallel): Use it.
2415 (scan_omp_task): Likewise.
2416 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
2417 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
2418 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
2419 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
2420 sandwiched taskloop constructs. Type check
2421 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
2422 region. Diagnose depend(source) or depend(sink:...) on
2423 target constructs or task/taskloop.
2424 (handle_simd_reference): Use get_name.
2425 (lower_rec_input_clauses): Likewise. Ignore all
2426 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
2427 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
2428 before passing it to omp_clause_{default,copy}_ctor. Handle
2429 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
2430 lastprivate_firstprivate flag for linear that needs copyin and
2431 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
2432 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
2433 on taskloop lookup decl in outer context. Pass true to
2434 build_outer_var_ref lastprivate argument. Handle
2435 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
2436 outside of outer taskloop for.
2437 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
2439 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
2440 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
2441 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
2442 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
2443 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
2444 abstract origin. Handle omp_member_access_dummy_var vars.
2445 (expand_parallel_call): Use expand_omp_build_assign.
2446 (expand_task_call): Handle taskloop construct expansion. Add
2447 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
2448 integers. Add priority argument to GOMP_task* calls. Or in
2449 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
2451 (expand_omp_build_assign): Add prototype. Add AFTER
2452 argument, if true emit statements after *GSI_P and continue linking.
2453 (expand_omp_taskreg): Adjust expand_task_call caller.
2454 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
2455 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
2456 zero_iter2_bb and first_zero_iter2 arguments, handle computation
2457 of counts even for ordered loops.
2458 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
2459 (expand_omp_ordered_source, expand_omp_ordered_sink,
2460 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
2462 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
2463 clauses on worksharing loop. Handle DOACROSS loop expansion.
2464 (expand_omp_for_static_nochunk): Handle linear clauses on
2465 worksharing loop. Adjust expand_omp_for_init_counts
2467 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
2468 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
2469 expand_omp_for_init_counts callers.
2470 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
2472 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
2473 Handle doacross loops.
2474 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
2475 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
2476 GOMP_target_{41,update_41,enter_exit_data} libcalls.
2477 (expand_omp): Don't expand ordered depend constructs here, record
2478 ord_stmt instead for later expand_omp_for_generic.
2479 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
2480 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
2481 clause as stand-alone directive.
2482 (lower_omp_ordered_clauses): New function.
2483 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
2484 don't lower anything.
2485 (lower_omp_for_lastprivate): Use last _looptemp_ clause
2486 on taskloop for comparison.
2487 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
2488 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
2489 expansion for linear adjustments.
2490 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
2491 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
2492 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
2493 to tree * pointing to the stmt's clauses.
2494 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
2495 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
2496 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
2497 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
2498 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
2499 clauses. Always use short kind and 8-bit align shift.
2500 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
2501 (struct lower_omp_regimplify_operands_data): New type.
2502 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
2504 (lower_omp_1): Use lower_omp_regimplify_operands instead of
2505 gimple_regimplify_operands.
2506 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
2507 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
2508 clause as stand-alone directive.
2509 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
2510 (simd_clone_mangle): Mangle the various linear kinds
2512 (simd_clone_adjust_argument_types): Handle
2513 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
2514 (simd_clone_init_simd_arrays): Don't do anything for uval.
2515 (simd_clone_adjust): Handle
2516 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
2517 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
2518 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
2519 * omp-low.h (omp_member_access_dummy_var): New prototype.
2520 * passes.def (pass_simduid_cleanup): Schedule another copy of the
2521 pass after all optimizations.
2522 * tree.c (omp_clause_code_name): Add entries for
2523 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
2524 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
2525 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
2526 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
2527 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
2528 OMP_CLAUSE_REDUCTION 5 arguments. Handle
2529 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
2530 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
2532 * tree-core.h (enum omp_clause_linear_kind): New.
2533 (struct tree_omp_clause): Change type of map_kind
2534 from unsigned char to unsigned int. Add subcode.if_modifier
2535 and subcode.linear_kind fields.
2536 (enum omp_clause_code): Add
2537 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
2538 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
2539 (OMP_CLAUSE_REDUCTION): Document
2540 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
2541 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
2542 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
2543 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
2545 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
2547 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
2549 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
2550 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
2552 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
2553 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
2554 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
2555 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
2556 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
2557 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
2558 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
2559 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
2560 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
2561 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
2562 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
2563 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
2564 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
2565 * tree-inline.c (remap_gimple_stmt): Handle clauses on
2566 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
2567 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
2568 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
2569 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
2570 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
2571 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
2572 (convert_local_omp_clauses): Likewise.
2573 * tree-pretty-print.c (dump_omp_clause): Handle
2574 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
2575 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
2576 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
2577 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
2578 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
2579 GOMP_MAP_FORCE_DEALLOC. Handle
2580 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
2581 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
2582 and clauses on OMP_ORDERED and OMP_CRITICAL.
2583 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
2584 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
2585 (vectorize_loops): Adjust comments.
2586 (pass_simduid_cleanup::execute): Likewise.
2587 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
2588 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
2589 * wide-int.h (wi::gcd): New.
2591 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
2593 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
2594 (ix86_function_arg_advance): Ditto.
2595 (ix86_function_arg): Ditto.
2596 (ix86_gimplify_va_arg): Ditto.
2597 (ix86_class_max_nregs): Ditto.
2598 (inline_memory_move_cost): Ditto.
2599 (ix86_set_reg_reg_cost): Ditto.
2600 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
2602 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
2605 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
2607 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
2609 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
2610 ROUND_UP macro and UNITS_PER_WORD * 2.
2611 * config/sparc/sparc.c (sparc_compute_frame_size):
2612 Use ROUND_UP and ROUND_DOWN macros where applicable.
2613 (function_arg_record_value, function_arg_record_value_1)
2614 (function_arg_record_value_1): Ditto.
2615 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
2616 alignment to double-word.
2617 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
2618 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
2621 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
2623 * gcc/rtl.h (print_insn): Fix prototype.
2625 2015-10-13 Tom de Vries <tom@codesourcery.com>
2627 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
2628 -1. Add assert that returned entry matches phi argument.
2629 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
2630 free_stmt_vec_info_vec ...
2631 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
2634 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
2636 PR tree-optimization/67909, 67947
2637 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
2638 really skip the inner loop.
2640 2015-10-13 Jeff Law <law@redhat.com>
2642 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2643 Allow single block jump threading paths.
2645 2015-10-13 Tom de Vries <tom@codesourcery.com>
2647 PR tree-optimization/67476
2648 * doc/invoke.texi (@item parloops-schedule): New item.
2649 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
2650 * tree-parloops.c: Include params-enum.h.
2651 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
2653 2015-10-13 Tom de Vries <tom@codesourcery.com>
2655 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
2656 * params-enum.h: New file.
2657 * opts.c (handle_param): Handle case that param arg is a string.
2658 * params-list.h: Handle DEFPARAMENUM5 in params.def.
2659 * params.c (find_param): New function, factored out of ...
2660 (set_param_value): ... here.
2661 (param_string_value_p): New function.
2662 * params.h (struct param_info): Add value_names field.
2663 (find_param, param_string_value_p): Declare.
2665 2015-10-13 Tom de Vries <tom@codesourcery.com>
2667 PR tree-optimization/67476
2668 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
2670 2015-10-13 Richard Biener <rguenther@suse.de>
2672 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
2673 the data dependence vector.
2674 (vect_peeling_hash_insert): Get the peeling hash table as argument.
2675 (vect_peeling_hash_get_lowest_cost): Likewise.
2676 (vect_enhance_data_refs_alignment): Adjust.
2677 (struct _vect_peel_info, struct _vect_peel_extended_info,
2678 struct peel_info_hasher): Move from ...
2679 * tree-vectorizer.h: ... here.
2680 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
2681 (LOOP_VINFO_PEELING_HTAB): Likewise.
2682 (struct _loop_vec_info): Remove min_profitable_iters and
2683 peeling_htab members.
2684 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
2686 (destroy_loop_vec_info): Adjust.
2687 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
2688 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
2689 to estimate alias versioning cost.
2690 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
2692 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
2694 * real.h (real_isinteger): Declare.
2695 * real.c (real_isinteger): New function.
2696 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
2697 if y is an even integer.
2699 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2702 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2703 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
2704 counts when these are more informative.
2706 2015-10-12 Jeff Law <law@redhat.com>
2708 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
2709 (fsm_find_control_stmt_paths): Change name of first argument to
2710 more accurately relfect what it really is. Handle simplification
2711 of GIMPLE_COND after finding a thread path for NAME.
2712 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
2713 nontrivial conditions to be handled by FSM threader.
2714 (thread_through_normal_block): Extract the name to looup via
2715 FSM threader from COND_EXPR.
2717 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
2718 restriction that traced SSA_NAME is a user variable.
2720 2015-10-12 Tom de Vries <tom@codesourcery.com>
2722 PR tree-optimization/67476
2723 * omp-low.c (expand_omp_for_generic): Add missing phis.
2725 2015-10-12 Tom de Vries <tom@codesourcery.com>
2727 PR tree-optimization/67476
2728 * omp-low.c (expand_omp_for_generic): Handle simple latch.
2730 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
2732 * config/aarch64/aarch64-simd-builtins.def: Update builtins
2733 tables: add tbl3 and tbx4.
2734 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
2735 (aarch64_tbx4v8qi): New.
2736 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
2737 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
2738 Rewrite using builtin functions.
2739 * config/aarch64/iterators.md (UNSPEC_TBX): New.
2741 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
2743 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
2745 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
2746 Use ROUND_UP and ROUND_DOWN macros where applicable.
2747 (rs6000_darwin64_record_arg_flush): Ditto.
2748 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
2749 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
2752 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
2754 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
2755 (AARCH64_ROUND_DOWN): Ditto.
2756 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
2758 2015-10-12 Richard Biener <rguenther@suse.de>
2761 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
2762 code that analyzes IVs on each stmt but in a cheaper way avoiding
2765 2015-10-12 Nick Clifton <nickc@redhat.com>
2767 * config/msp430/msp430.c (msp430_mcu_names): Rename to
2768 msp430_mcu_data, add fields for ISA and hardware multiply
2769 support. Import latest data from the devices.csv file.
2770 (msp430_override_option): Use the data from the new array.
2771 (msp430_use_f5_series_hwmult): Likewise.
2772 (use_32bit_hwmult): Likewise.
2773 (msp430_no_hwmult): Likewise.
2774 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
2776 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
2777 not recognised then no hardware multiply support is assumed and
2778 that only the MSP430 ISA is allowed.
2780 2015-10-12 Richard Biener <rguenther@suse.de>
2782 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
2784 (vect_analyze_loop_2): ... here.
2786 2015-10-11 Jason Merrill <jason@redhat.com>
2789 * expr.c (store_field): Call store_constructor directly when
2790 storing a CONSTRUCTOR into a target smaller than its type.
2791 Guard against unsafe bitwise copy.
2793 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2795 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
2796 counts when these are more informative.
2798 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2800 * tree-profile.c (tree_profiling): Do not clear
2801 pure/const when not instrumenting.
2802 (pass tree_profile): Add dump of symtab.
2804 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2806 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
2808 (fold_addr_of_array_ref_difference): Likewise.
2810 2015-10-11 Jeff Law <law@redhat.com>
2812 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
2813 tree-ssa-threadbackward.c.
2814 (fsm_find_control_statement_thread_paths): Likewise.
2815 (thread_through_normal_block): Break out FSM bits and move them
2816 into a new function in tree-ssa-threadbackward.c. Call new function
2818 Minimize header file usage.
2819 * tree-ssa-threadbackward.h: New file.
2820 * tree-ssa-threadbackward.c: Likewise.
2821 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
2823 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
2825 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
2827 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
2829 PR rtl-optimization/67864
2830 * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
2831 fallthrough edges for conditional jumps. Don't sort candidate
2832 edges if not optimizing for speed.
2834 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2836 * defaults.h (REVERSE_CONDITION): New default definition.
2837 * jump.c (reversed_comparison_code_parts): Adjust.
2839 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2841 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
2842 check HARD_FRAME_POINTER_IS_ARG_POINTER.
2844 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2846 * defaults.h (FRAME_ADDR_RTX): New default definition.
2847 * builtins.c (expand_builtin_return_addr): Adjust.
2849 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2851 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
2852 * builtins.c (expand_builtin_return_addr): Adjust.
2854 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2856 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
2857 * builtins.c (expand_builtin_return_addr): Adjust.
2858 * doc/tm.texi: Likewise.
2859 * doc/tm.texi.in: Likewise.
2860 * except.c (expand_builtin_unwind_init): Likewise.
2862 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2864 * builtins.c (expand_builtin_return_addr): Adjust.
2865 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
2867 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
2869 * tree.c (type_with_interoperable_signedness): New.
2870 (gimple_canonical_types_compatible_p): Use it.
2871 * tree.h (type_with_interoperable_signedness): Declare
2873 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
2875 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
2876 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
2877 when OEP_ADDRESS_OF is se.
2879 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
2880 Sebastian Pop <s.pop@samsung.com>
2882 * graphite-dependences.c (scop_get_dependences): Add dump of the
2883 data dependence graph.
2884 * graphite-poly.c (print_isl_union_map): New.
2885 (debug_isl_union_map): New.
2886 * graphite-poly.h (print_isl_union_map): Declare.
2887 (debug_isl_union_map): Declare.
2889 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
2890 Sebastian Pop <s.pop@samsung.com>
2892 * graphite-poly.c (print_iteration_domain): Remove verbosity.
2893 Remove OpenScop formatting.
2894 (print_iteration_domains): Same.
2895 (debug_iteration_domain): Same.
2896 (debug_iteration_domains): Same.
2899 (dump_gbb_cases): Same.
2900 (dump_gbb_conditions): Same.
2903 (print_pbb_body): Same.
2905 (print_scop_params): Same.
2906 (print_scop_context): Same.
2908 (debug_pbb_domain): Same.
2910 (debug_scop_context): Same.
2912 (debug_scop_params): Same.
2913 * graphite-poly.h: Same.
2914 * graphite.c (graphite_transform_loops): Same.
2916 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2918 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
2919 call that isn't needed.
2921 2015-10-09 Jeff Law <law@redhat.com>
2923 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
2924 rather than moving each name to the freelist individually.
2926 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
2928 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
2929 * frame-header-opt.c: New file.
2930 * config/mips/mips-proto.h (mips_register_frame_header_opt):
2932 * config/mips/mips.c (mips_compute_frame_info): Check
2933 optimize_call_stack flag.
2934 (mips_option_override): Register new frame_header_opt pass.
2935 (mips_frame_info, mips_int_mask, mips_shadow_set,
2936 machine_function): Move these types to...
2937 * config/mips/mips.h: here.
2938 (machine_function): Add does_not_use_frame_header and
2939 optimize_call_stack fields.
2940 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
2941 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
2943 * config/mips/mips.opt (mframe-header-opt): Add new option.
2945 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
2947 * config/i386/i386.c
2948 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
2949 ROUND_DOWN where applicable.
2951 2015-10-09 Jeff Law <law@redhat.com>
2953 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
2956 2015-10-09 Renlin Li <renlin.li@arm.com>
2958 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
2959 operands[0] and operands[2].
2960 (neon_vtrn<mode>_insn): Likewise.
2961 (neon_vzip<mode>_insn): Likewise.
2963 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
2965 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
2966 ((X & C2) << C1): Expand to...
2967 (X {&,^,|} C2 << C1): ...This.
2968 ((X & C2) >> C1): Expand to...
2969 (X {&,^,|} C2 >> C1): ...This.
2971 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
2974 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
2975 Adjust embedded rounding/SAE specifier position.
2976 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
2977 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
2978 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
2979 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
2980 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
2982 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
2984 2015-10-09 Martin Jambor <mjambor@suse.cz>
2986 tree-optimization/67794
2987 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
2988 between types of state,ents but accept original definitions as a
2990 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
2991 iterate over definitions.
2993 2015-10-09 James Norris <jnorris@codesourcery.com>
2995 * config/rs6000/rs6000.c (rs6000_offload_options): New.
2996 (TARGET_OFFLOAD_OPTIONS): New.
2998 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
3001 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
3004 * function.c (expand_function_end): Move return value
3005 promotion past the handling of PARALLELs and CONCATs.
3007 PR rtl-optimization/67828
3008 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
3009 (tree_may_unswitch_on): Don't unswitch on expressions
3010 involving undefined values.
3012 2015-10-09 Richard Biener <rguenther@suse.de>
3014 * genmatch.c (print_operand): Fix formatting.
3015 (dt_node::append_simplify): Warn for multiple simplifiers
3016 that match the same pattern.
3017 * match.pd (log (exp @0)): Remove duplicates.
3019 2015-10-09 Richard Biener <rguenth@suse.de>
3022 * gimple-fold.c (optabs-query.h): Include
3023 (gimple_fold_builtin_memory_op): Allow unaligned stores
3024 when movmisalign_optabs are available.
3026 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3029 * config/arm/arm.md (movmisalign<mode>): New.
3030 * config/arm/iterators.md (HSI): New.
3032 2015-10-09 Richard Biener <rguenther@suse.de>
3034 PR tree-optimization/67891
3035 * gimple-match.h (gimple_simplified_result_is_gimple_val):
3037 (gimple_resimplify1): Declare.
3038 (gimple_resimplify2): Likewise.
3039 (gimple_resimplify3): Likewise.
3040 * gimple-match-head.c (gimple_resimplify1): Export.
3041 (gimple_resimplify2): Likewise.
3042 (gimple_resimplify3): Likewise.
3043 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
3044 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
3045 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
3046 to avoid creating stmts without VN info.
3048 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
3050 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
3053 2015-10-08 Jeff Law <law@redhat.com>
3055 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
3056 and release_ssa_name in two places.
3057 (gimple_stringop_fixed_value): Similarly.
3059 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
3062 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
3063 unlink_stmt_vdef and release_ssa_name_fn.
3065 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
3068 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
3070 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
3071 SSE register save area to 16 bytes only if the incoming stack
3072 boundary is no less than 16 bytes.
3074 2015-10-08 Jeff Law <law@redhat.com>
3076 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
3077 release_ssa_name. Fix typo in comment.
3079 2015-10-08 Nathan Sidwell <nathan@acm.org>
3081 * config/nvptx/nvptx.h (struct machine_function): Add comment.
3082 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
3083 may return pointer as well as in memory.
3084 (nvptx_output_return): Likewise.
3086 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
3088 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
3089 (fold_builtin_1): Update accordingly. Handle constant arguments here.
3090 * match.pd: Add rules previously handled by fold_builtin_sqrt
3091 and fold_builtin_cbrt.
3093 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
3095 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
3096 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
3097 * fold-const.h (tree_unary_nonnegative_warnv_p)
3098 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
3099 (tree_expr_nonnegative_warnv_p): Add depth parameters.
3100 * fold-const.c: Include gimple-fold.h and params.h.
3101 (tree_ssa_name_nonnegative_warnv_p): New function.
3102 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
3103 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
3104 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
3105 Add a depth parameter and increment it for recursive calls to
3106 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
3107 to handle SSA names.
3108 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
3109 (gimple_stmt_nonnegative_warnv_p): Declare.
3110 * tree-vrp.c (remove_range_assertions): Remove assert that condition
3111 cannot be proven false.
3112 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
3113 (gimple_stmt_nonnegative_warnv_p): Move to...
3114 * gimple-fold.c: ...here. Add depth parameters and pass them
3115 down to the tree routines. Accept statements that aren't
3116 assignments or calls but just return false for them.
3117 (gimple_val_nonnegative_real_p): Delete.
3118 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
3119 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
3120 Check HONOR_NANs first.
3122 2015-10-08 Martin Jambor <mjambor@suse.cz>
3124 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
3127 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
3129 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
3130 in the tail of outer-loop.
3132 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
3134 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
3137 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
3139 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
3140 "cfghooks.h", add prototypes for introduced new functions.
3141 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
3142 checks on ability of loop unswitching to tree_unswitch_single_loop;
3143 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
3144 on innermost loop check.
3145 (tree_unswitch_single_loop): Add all required checks on ability of
3146 loop unswitching under zero recursive level guard.
3147 (tree_unswitch_outer_loop): New function.
3148 (find_loop_guard): Likewise.
3149 (empty_bb_without_guard_p): Likewise.
3150 (used_outside_loop_p): Likewise.
3151 (get_vop_from_header): Likewise.
3152 (hoist_guard): Likewise.
3153 (check_exit_phi): Likewise.
3155 2015-10-08 Marek Polacek <polacek@redhat.com>
3157 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
3160 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3163 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
3164 create_tmp_var_raw instead of create_tmp_var.
3166 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
3168 * expr.c (store_expr_with_bounds): Handle aggregate moves from
3170 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
3171 to define gimple type system; compare aggregates only by size.
3173 2015-10-07 Jeff Law <law@redhat.com>
3175 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
3176 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
3177 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
3180 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
3181 Sebastian Pop <s.pop@samsung.com>
3183 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
3184 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
3185 (generate_isl_schedule): Same.
3186 * graphite-optimize-isl.c (scop_get_domains): Same.
3187 (apply_schedule_map_to_scop): Same.
3188 * graphite-poly.c (print_iteration_domains): Same.
3189 (remove_gbbs_in_scop): Same.
3193 * graphite-poly.h (struct scop): Rename bbs to pbbs.
3195 * graphite-scop-detection.c (compare_bb_depths): Remove.
3196 (graphite_sort_dominated_info): Remove.
3197 (try_generate_gimple_bb): Move out of scop_detection.
3198 (all_non_dominated_preds_marked_p): Remove.
3199 (build_scop_bbs_1): Remove.
3200 (build_scop_bbs): Remove.
3201 (nb_pbbs_in_loops): Do not use SCOP_BBS.
3202 (find_scop_parameters): Same.
3203 (sese_dom_walker): Rename gather_bbs.
3204 (before_dom_children): Call try_generate_gimple_bb and collect gbb
3206 (build_scops): Call gather_bbs.
3207 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
3208 (add_conditions_to_constraints): Same.
3209 (build_scop_iteration_domain): Same.
3210 (build_scop_drs): Same.
3211 (new_pbb_from_pbb): Same.
3212 * sese.c (new_sese_info): Create bbs.
3213 * sese.h (struct sese_info_t): Add bbs.
3215 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
3217 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
3218 encoding in 64-bit mode.
3220 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
3223 * config/i386/i386.c (ix86_option_override_internal): Always use
3224 8-byte minimum stack boundary in 64-bit mode.
3225 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
3226 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
3227 Add a REG_CFA_EXPRESSION note if needed.
3228 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
3229 (ix86_handle_force_align_arg_pointer_attribute): New.
3230 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
3231 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
3232 with ix86_handle_force_align_arg_pointer_attribute.
3233 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
3235 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
3236 Sebastian Pop <s.pop@samsung.com>
3238 * graphite-scop-detection.c (parameter_index_in_region): Remove
3239 use of SESE_ADD_PARAMS.
3240 (find_scop_parameters): Same.
3241 * sese.c (new_sese_info): Same.
3242 * sese.h (struct sese_info_t): Remove add_params.
3243 (SESE_ADD_PARAMS): Remove.
3245 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
3246 Sebastian Pop <s.pop@samsung.com>
3248 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
3251 (copy_internal_parameters): Same.
3252 (translate_isl_ast_to_gimple): Use an sese_l.
3253 (build_iv_mapping): Same.
3254 * graphite-poly.c (new_sese): Rename new_sese_info.
3255 (free_sese): Rename free_sese_info.
3256 * graphite-poly.h (struct scop): Use an sese_info_p.
3257 (scop_set_region): Same.
3258 * graphite-scop-detection.c (struct sese_l): Moved...
3259 (get_entry_bb): Moved...
3260 (get_exit_bb): Moved...
3261 (parameter_index_in_region_1): Use an sese_info_p.
3262 (parameter_index_in_region): Same.
3263 (scan_tree_for_params): Same.
3264 (find_params_in_bb): Same.
3265 (sese_dom_walker): Use an sese_l.
3266 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
3267 (reduction_phi_p): Same.
3268 (parameter_index_in_region_1): Use an sese_info_p.
3269 (propagate_expr_outside_region): Use an sese_l.
3270 * graphite.c: Replace uses of SCOP_REGION.
3271 * sese.c (sese_record_loop): Use an sese_info_p.
3272 (build_sese_loop_nests): Same.
3273 (sese_build_liveouts_use): Same.
3274 (sese_build_liveouts_bb): Same.
3275 (sese_build_liveouts_bb): Same.
3276 (sese_bad_liveouts_use): Same.
3277 (sese_reset_debug_liveouts_bb): Same.
3278 (sese_build_liveouts): Same.
3279 (new_sese): Renamed new_sese_info.
3280 (free_sese): Renamed free_sese_info.
3281 (set_rename): Use an sese_info_p.
3282 (graphite_copy_stmts_from_block): Same.
3283 (copy_bb_and_scalar_dependences): Same.
3284 (outermost_loop_in_sese_1): Use an sese_l.
3285 (outermost_loop_in_sese): Same.
3286 (if_region_set_false_region): Use an sese_info_p.
3287 (move_sese_in_condition): Same.
3288 (scalar_evolution_in_region): Use an sese_l.
3289 * sese.h (struct sese_l): ... here.
3290 (SESE_ENTRY): Remove.
3291 (SESE_ENTRY_BB): Remove.
3292 (SESE_EXIT): Remove.
3293 (SESE_EXIT_BB): Remove.
3294 (sese_contains_loop): Use an sese_info_p.
3295 (sese_nb_params): Same.
3296 (bb_in_sese_p): Use an sese_l.
3297 (stmt_in_sese_p): Same.
3298 (defined_in_sese_p): Same.
3299 (loop_in_sese_p): Same.
3300 (sese_loop_depth): Same.
3301 (struct ifsese_s): Use an sese_info_p.
3302 (gbb_loop_at_index): Use an sese_l.
3303 (nb_common_loops): Same.
3304 (scev_analyzable_p): Same.
3306 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
3308 * config/i386/i386.c (ix86_conditional_register_usage): Use
3309 CALL_USED_REGISTERS_MASK.
3310 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
3312 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
3315 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
3316 * configure: Regenerated.
3318 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
3321 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
3322 (ix86_set_current_function): This.
3323 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
3325 2015-10-07 Richard Biener <rguenther@suse.de>
3327 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
3328 (vinfo_for_stmt): Adjust.
3329 (set_vinfo_for_stmt): Likewise.
3330 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
3331 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
3332 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
3334 (vect_analyze_loop_1): Remove.
3335 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
3336 inner loop when vectorizing an outer loop by splitting out from ...
3337 (vect_analyze_loop_form): ... here.
3339 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3342 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
3343 Use create_tmp_var_raw instead of create_tmp_var.
3345 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
3347 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
3348 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
3349 * real.c (CACHED_FRACTION): New helper macro.
3350 (dconst_third_ptr): Use it.
3351 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
3352 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
3354 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
3356 2015-10-06 Jeff Law <law@redhat.com>
3358 PR tree-optimization/67816
3359 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
3360 from remove_jump_threads_starting_at. Accept an edge rather than
3362 * tree-ssa-threadupdate.c (removed_edges): New hash table.
3363 (remove_jump_threads_including): Note edges that get removed from
3364 the CFG for later pruning of jump threading paths including them.
3365 (thread_through_all_blocks): Remove paths which include edges that
3367 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
3368 on each outgoing edges when optimizing away a control statement.
3370 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3372 * reorg.c (emit_delay_sequence): Store list of delay slot insns
3373 in a vector instead of rtx_insn_list.
3374 (add_to_delay_list): Likewise.
3375 (delete_from_delay_slot): Likewise.
3376 (optimize_skip): Likewise.
3377 (redirect_with_delay_list_safe_p): Likewise.
3378 (check_annul_list_true_false): Likewise.
3379 (steal_delay_list_from_target): Likewise.
3380 (steal_delay_list_from_fallthrough): Likewise.
3381 (redundant_insn): Likewise.
3382 (fill_simple_delay_slots): Likewise.
3383 (fill_slots_from_thread): Likewise.
3384 (fill_eager_delay_slots): Likewise.
3385 (relax_delay_slots): Likewise.
3387 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
3389 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
3390 For -mgpopt=local, also exclude unintialized common symbols.
3391 * doc/invoke.texi (Nios II Options): Document the change.
3393 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
3395 * config/aarch64/iterators.md (vwcore): Add missing cases for
3398 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
3399 Sebastian Pop <s.pop@samsung.com>
3401 * graphite-poly.c (new_scop): Initialize drs.
3402 * graphite-poly.h (struct dr_info): New.
3403 (struct scop): Add drs.
3404 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
3405 (pdr_add_memory_accesses): Same.
3406 (build_poly_dr): Same.
3407 (build_alias_set): Same.
3408 (build_scop_drs): Same.
3409 (build_pbb_drs): Remove.
3410 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
3411 * tree-data-ref.h (data_reference): Remove alias_set.
3413 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
3414 Sebastian Pop <s.pop@samsung.com>
3416 * graphite-poly.c (free_data_refs_aux): Remove.
3417 (free_gimple_poly_bb): Do not call free_data_refs_aux.
3418 * graphite-poly.h (struct base_alias_pair): Remove.
3419 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
3420 base_alias_pair and dr->aux.
3421 (build_alias_set): Same.
3422 * tree-data-ref.c (create_data_ref): Initialize alias_set.
3423 * tree-data-ref.h (data_reference): Add alias_set.
3425 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
3426 Sebastian Pop <s.pop@samsung.com>
3428 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
3429 Do not set PDR_BASE_OBJECT_SET.
3430 * graphite-poly.h (poly_dr): Same.
3431 (PDR_BASE_OBJECT_SET): Remove.
3432 (new_poly_dr): Update decl.
3433 * graphite-sese-to-poly.c (build_poly_dr): Update call to
3435 (write_alias_graph_to_ascii_dimacs): Remove.
3436 (write_alias_graph_to_ascii_dot): Remove.
3437 (write_alias_graph_to_ascii_ecc): Remove.
3438 (dr_same_base_object_p): Remove.
3439 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
3441 (build_base_obj_set_for_drs): Remove.
3442 (dump_alias_graphs): Remove.
3443 (build_scop_drs): Remove dead code.
3445 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
3446 Peter Bergner <bergner@vnet.ibm.com>
3449 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
3450 allow registers, but provide insns for the combiner to create for
3451 loads from memory. Separate VSX code from non-VSX code. For
3452 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
3453 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
3454 so that registers come before memory operations. Drop support from
3455 converting DFmode to TFmode, if the DFmode value is in a GPR
3457 (extenddftf2_fprs): Likewise.
3458 (extenddftf2_internal): Likewise.
3459 (extenddftf2_vsx): Likewise.
3460 (extendsftf2): In the expander, only allow registers, but provide
3461 insns for the combiner to create for stores and loads.
3463 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3465 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
3466 from the decl parameter.
3468 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
3471 * gimple-fold.c (gimple_fold_builtin): Add break after
3472 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
3474 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
3476 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
3477 to scop->isl_context.
3479 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
3481 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
3482 (output_probe_stack_range): Rotate the loop and simplify.
3483 (thumb1_expand_prologue): Tweak sorry message.
3484 * config/arm/arm.md (probe_stack): Use bare string.
3486 2015-10-06 Nick Clifton <nickc@redhat.com>
3488 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
3490 2015-10-06 Nick Clifton <nickc@redhat.com>
3492 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
3493 (ATTR_PERSIST): New constant.
3494 (msp430_data_attr): New function - verifies an attribute that only
3495 applies to variables.
3496 (msp430_attributes): Add noinit and persistent attributes.
3497 (noinit_section): New variable.
3498 (presis_section): New variable.
3499 (TARGET_ASM_INIT_SECTIONS): Define.
3500 (msp430_init_sections): New function - initialises the noinit and
3501 persist section variables.
3502 (msp430_select_section): Add support for noinit and persist
3504 (msp430_section_type_flags): Likewise.
3505 * doc/extend.texi: Document the reent, critical, wakeup, noinit
3506 and persistent attributes.
3508 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3509 Sebastian Pop <s.pop@samsung.com>
3511 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
3512 (no_violations): Remove.
3513 (subtract_commutative_associative_deps): Remove.
3514 (compute_deps): Do not call subtract_commutative_associative_deps.
3515 (transform_is_safe): Remove.
3516 (graphite_legal_transform): Remove.
3517 * graphite-poly.h (graphite_legal_transform): Remove.
3519 2015-10-05 Aditya Kumar <hiraditya@msn.com>
3521 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
3522 which are in this region are passed so gcc_assert and remove redundant
3524 * sese.c (sese_build_liveouts): Pass only those bbs which are not
3526 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
3527 gcc_assert on that and remove unnecessary computation.
3528 (sese_build_liveouts_use): Same.
3530 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3532 * graphite-dependences.c (scop_get_reads): Renamed scop->context
3533 to scop->param_context.
3534 (scop_get_must_writes): Same.
3535 (scop_get_may_writes): Same.
3536 (scop_get_original_schedule): Same.
3537 (scop_get_transformed_schedule): Same.
3538 (subtract_commutative_associative_deps): Same.
3539 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
3540 (generate_isl_context): Same.
3541 (generate_isl_schedule): Same.
3542 (scop_to_isl_ast): Same.
3543 (graphite_regenerate_ast_isl): Same.
3544 * graphite-optimize-isl.c (scop_get_domains): Same.
3545 (optimize_isl): Renamed scop->context to scop->param_context.
3546 * graphite-poly.c (new_poly_bb): Change the type of argument to
3548 (new_scop): Renamed scop->context to scop->param_context.
3550 (print_scop_context): Same.
3551 * graphite-poly.h (new_poly_dr): Change the type of argument from
3552 void* to data_reference_p.
3553 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
3554 (new_poly_bb): Change the type of argument from void* to
3556 (pbb_set_black_box): Same.
3557 (struct scop): Rename context to param_context, ctx to isl_context.
3558 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
3559 Move declarations closer to assignment.
3560 (find_params_in_bb): Same.
3561 (find_scop_parameters): Same.
3562 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
3563 Global to be used for statement IDs.
3564 (isl_id_for_pbb): Use ssa_name_version_typesize.
3565 (simple_copy_phi_p): Move declarations closer to assignment.
3566 (build_pbb_scattering_polyhedrons): Same.
3567 (build_scop_scattering): Same.
3568 (isl_id_for_ssa_name): Same.
3569 (extract_affine_name): Same.
3570 (extract_affine_int): Same.
3571 (extract_affine): Same.
3572 (set_scop_parameter_dim): Use renamed member.
3573 (build_loop_iteration_domains): Same.
3574 (add_param_constraints): Same.
3575 (build_scop_iteration_domain): Same.
3576 (pdr_add_data_dimensions): Same.
3577 (build_poly_dr): Same.
3578 (build_scop_drs): Move declarations closer to assignment.
3579 (analyze_drs_in_stmts): Same.
3580 (insert_out_of_ssa_copy): Same.
3581 (insert_out_of_ssa_copy_on_edge): Same.
3582 (propagate_expr_outside_region): Same.
3583 (rewrite_phi_out_of_ssa): Same.
3584 (rewrite_degenerate_phi): Same.
3585 (rewrite_reductions_out_of_ssa): Same.
3586 (rewrite_cross_bb_scalar_dependence): Same.
3587 (handle_scalar_deps_crossing_scop_limits): Same.
3588 (rewrite_cross_bb_scalar_deps): Same.
3589 * graphite.c (graphite_transform_loops): Use renamed member.
3591 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
3594 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
3595 create_tmp_var_raw instead of create_tmp_var.
3597 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3600 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
3601 Use create_tmp_var_raw instead of create_tmp_var.
3603 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
3606 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
3607 split for upper-bank registers when target does not support
3609 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
3610 split when target does not support AVX512VL.
3612 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
3615 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
3616 Adjust to use create_tmp_var_raw instead of create_tmp_var.
3618 2015-10-06 Nick Clifton <nickc@redhat.com>
3620 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
3623 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3625 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
3626 (case ${target}): Add znver1.
3627 * config/i386/cpuid.h(bit_CLZERO): Define.
3628 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
3629 -march=native recognize znver1 processors.
3630 * config/i386/i386-c.c (ix86_target_macros_internal): Add
3631 znver1, clzero def_and_undef.
3632 * config/i386/i386.c (struct processor_costs znver1_cost): New.
3633 (m_znver1): New definition.
3634 (m_AMD_MULTIPLE): Includes m_znver1.
3635 (processor_target_table): Add znver1 entry.
3636 (ix86_target_string) : Add clzero entry.
3637 (static const char *const cpu_names): Add znver1 entry.
3638 (ix86_option_override_internal): Add znver1 instruction sets.
3639 (PTA_CLZERO) : New definition.
3640 (ix86_option_override_internal): Handle new clzerooption.
3641 (ix86_issue_rate): Add znver1.
3642 (ix86_adjust_cost): Add znver1.
3643 (ia32_multipass_dfa_lookahead): Add znver1.
3644 (has_dispatch): Add znver1.
3645 * config/i386/i386.h (TARGET_znver1): New definition.
3646 (TARGET_CLZERO): Define.
3647 (TARGET_CLZERO_P): Define.
3648 (struct ix86_size_cost): Add TARGET_ZNVER1.
3649 (enum processor_type): Add PROCESSOR_znver1.
3650 * config/i386/i386.md (define_attr "cpu"): Add znver1.
3651 (set_attr znver1_decode): New definitions for znver1.
3652 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
3654 * config/i386/mmx.md (set_attr znver1_decode): New definitions
3656 * config/i386/sse.md (set_attr znver1_decode): Likewise.
3657 * config/i386/x86-tune.def: Add znver1 tunings.
3658 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
3659 * gcc/doc/invoke.texi: Add details about znver1
3661 2015-10-06 Richard Biener <rguenther@suse.de>
3663 PR tree-optimization/67859
3664 * tree-ssa-pre.c (create_expression_by_pieces): Properly
3665 discard not inserted stmts.
3667 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
3669 * doc/extend.texi (Template Instantiation): Reorder options and
3670 de-emphasize -frepo.
3671 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
3672 example instead of -frepo.
3674 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
3677 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
3678 use create_tmp_var_raw rather than create_tmp_var.
3680 2015-10-06 Richard Biener <rguenther@suse.de>
3682 * tree-vectorizer.h (vec_info): New base class for...
3683 (_loop_vec_info): ... this and ...
3684 (_bb_vec_info): ... this.
3685 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
3686 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
3687 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
3688 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
3689 vect_destroy_datarefs): Adjust interface to take a vec_info *
3690 rather than both a loop_vec_info and a bb_vec_info argument.
3691 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
3692 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
3693 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
3694 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
3696 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
3697 (destroy_loop_vec_info, vect_analyze_loop_2,
3698 vect_is_simple_reduction_1, get_initial_def_for_induction,
3699 vect_create_epilog_for_reduction, vectorizable_reduction,
3700 vectorizable_live_operation, vect_transform_loop): Adjust.
3701 * tree-vect-patterns.c (type_conversion_p,
3702 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
3703 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
3704 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
3705 check_bool_pattern, vect_recog_bool_pattern,
3706 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
3707 * tree-vect-slp.c (vect_get_and_check_slp_defs,
3708 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
3709 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
3710 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
3711 (new_bb_vec_info): Initialize base classs.
3712 * tree-vect-stmts.c (record_stmt_cost, process_use,
3713 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
3714 vectorizable_mask_load_store, vectorizable_call,
3715 vectorizable_simd_clone_call, vectorizable_conversion,
3716 vectorizable_assignment, vectorizable_shift,
3717 vectorizable_operation, vectorizable_store,
3718 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
3719 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
3720 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
3722 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
3725 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
3726 create_tmp_var_raw rather than create_tmp_var.
3728 2015-10-05 Marek Polacek <polacek@redhat.com>
3730 * tree-ssa-loop-im.c
3731 (move_computations_dom_walker::before_dom_children): Don't set
3732 SSA_NAME_ANTI_RANGE_P.
3733 * tree-ssa-phiopt.c (value_replacement): Likewise.
3735 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3736 Sebastian Pop <s.pop@samsung.com>
3738 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
3740 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3741 Sebastian Pop <s.pop@samsung.com>
3743 * graphite-poly.c (new_gimple_poly_bb): ... here.
3744 (free_data_refs_aux): ... here.
3745 (free_gimple_poly_bb): ... here.
3746 (remove_gbbs_in_scop): ... here.
3747 (new_scop): Call new_sese.
3748 (free_scop): Call remove_gbbs_in_scop and free_sese.
3749 * graphite-poly.h (base_alias_pair): ... here.
3750 (new_gimple_poly_bb): Declare.
3751 (free_gimple_poly_bb): Declare.
3752 * graphite-scop-detection.c (parameter_index_in_region_1):
3753 (parameter_index_in_region): ... here.
3754 (scan_tree_for_params): ... here.
3755 (find_params_in_bb): ... here.
3756 (find_scop_parameters): ... here.
3757 (build_scops): Call find_scop_parameters.
3758 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
3759 (free_scops): Move...
3760 (single_pred_cond_non_loop_exit): Move...
3761 (sese_dom_walker::before_dom_children): Move...
3762 (sese_dom_walker::after_dom_children): Move...
3763 (build_poly_scop): Move...
3764 * graphite-sese-to-poly.h (base_alias_pair): Move...
3765 * graphite.c (free_scops): ... here.
3767 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3768 Sebastian Pop <s.pop@samsung.com>
3770 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
3771 (trivially_empty_bb_p): Move...
3772 (same_close_phi_node): Move...
3773 (new_gimple_poly_bb): Move...
3774 (compare_bb_depths): Move...
3775 (graphite_sort_dominated_info): Move...
3776 (remove_duplicate_close_phi): Move...
3777 (make_close_phi_nodes_unique): Move...
3778 (canonicalize_loop_closed_ssa): Move...
3779 (canonicalize_loop_closed_ssa_form): Move...
3780 (loop_ivs_can_be_represented): Move...
3781 (single_pred_cond_non_loop_exit): Move...
3782 (graphite_can_represent_init): Move...
3783 (graphite_can_represent_scev): Move...
3784 (stmt_has_simple_data_refs_p): Move...
3785 (stmt_has_side_effects): Move...
3786 (graphite_can_represent_stmt): Move...
3787 (scop_detection): ... here.
3788 (sese_dom_walker): ... and here.
3789 (build_scops): Call all moved functions.
3790 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
3791 (all_non_dominated_preds_marked_p): Move...
3792 (build_scop_bbs_1): Move...
3793 (build_scop_bbs): Move...
3794 (set_scop_parameter_dim): Move...
3795 (nb_pbbs_in_loops): Move...
3796 (build_poly_scop): Do not call all the moved functions.
3798 2015-10-05 Martin Jambor <mjambor@suse.cz>
3799 Jan Hubicka <hubicka@ucw.cz>
3801 * ipa-cp.c (ipcp_alignment_lattice): New type.
3802 (ipcp_param_lattices): Use the above to represent alignment.
3803 (ipcp_alignment_lattice::print): New function.
3804 (print_all_lattices): Use it to print alignment information.
3805 (ipcp_alignment_lattice::top_p): New function.
3806 (ipcp_alignment_lattice::bottom_p): Likewise.
3807 (ipcp_alignment_lattice::set_to_bottom): Likewise.
3808 (ipcp_alignment_lattice::meet_with_1): Likewise.
3809 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
3810 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
3811 (initialize_node_lattices): Likewise.
3812 (propagate_alignment_accross_jump_function): Work with the new class
3813 for alignment lattices.
3814 (propagate_constants_accross_call): Pass only the alignment lattice to
3815 propagate_alignment_accross_jump_function.
3816 (ipcp_store_alignment_results): Work with the new class for alignment
3819 2015-10-05 Marek Polacek <polacek@redhat.com>
3821 PR tree-optimization/67821
3822 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
3824 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
3827 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
3829 (mkoffload_cleanup): ... this. Adjust all users.
3830 (maybe_unlink): Look at save_temps and verbose flags instead of
3832 (main): Parse "-save-temps" flag.
3833 (generate_target_descr_file, generate_target_offloadend_file)
3834 (generate_host_descr_file, prepare_target_image): Pass it on.
3835 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
3836 (mkoffload_cleanup): New function.
3837 (maybe_unlink): Look at save_temps and verbose flags instead of
3839 (main): Instead of calling utils_cleanup, register atexit handler
3840 for mkoffload_cleanup.
3841 (main): Parse "-save-temps" flag.
3842 (compile_native, main): Pass it on.
3843 * lto-wrapper.c (compile_offload_image): Likewise.
3845 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3847 * gimple.h (gimple_op_ptr): Require a non const gimple *.
3848 (gimple_assign_lhs_ptr): Likewise.
3849 (gimple_assign_rhs1_ptr): Likewise.
3850 (gimple_assign_rhs2_ptr): Likewise.
3851 (gimple_assign_rhs3_ptr): Likewise.
3852 (gimple_call_lhs_ptr): Likewise.
3853 (gimple_call_fn_ptr): Likewise.
3854 (gimple_call_chain_ptr): Likewise.
3855 (gimple_call_arg_ptr): Likewise.
3856 (gimple_cond_lhs_ptr): Likewise.
3857 (gimple_cond_rhs_ptr): Likewise.
3858 (gimple_switch_index_ptr): Likewise.
3859 (gimple_return_retval_ptr): Likewise.
3861 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3863 * gimple.h (gimple_asm_input_op_ptr): Remove.
3864 (gimple_asm_output_op_ptr): Likewise.
3866 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3868 * gimple.h (gimple_location_ptr): Remove.
3869 * tree-vrp.c (check_all_array_refs): Adjust.
3871 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3873 * tree-ssa-operands.c (build_uses): store tree * instead of
3875 (finalize_ssa_uses): Adjust.
3876 (append_use): Likewise.
3877 (verify_ssa_operands): Likewise.
3879 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3881 * real.h (build_real_truncate): Declare.
3882 * tree.c (build_real_truncate): New function.
3883 (strip_float_extensions): Use it.
3884 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
3885 (fold_builtin_hypot, fold_builtin_pow): Likewise.
3886 * match.pd: Likewise.
3888 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
3889 Jiong Wang <jiong.wang@arm.com>
3891 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
3893 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3895 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
3896 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
3897 (aarch64_print_operand, aarch64_float_const_representable_p)
3898 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
3899 instead of REAL_VALUE_FROM_CONST_DOUBLE.
3900 * config/arc/arc.c (arc_print_operand): Likewise.
3901 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
3902 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
3903 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
3905 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
3906 (consttable_16): Likewise.
3907 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
3908 * config/avr/avr.c (avr_print_operand): Likewise.
3909 * config/bfin/bfin.md: Likewise (in a define_split).
3910 * config/c6x/c6x.md: Likewise (in a define_split).
3911 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
3912 (cr16_print_operand): Likewise.
3913 * config/cris/cris.c (cris_print_operand): Likewise.
3914 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
3915 * config/fr30/fr30.c (fr30_print_operand): Likewise.
3916 (fr30_const_double_is_zero): Likewise.
3917 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
3918 * config/frv/frv.md: Likewise (in a define_split).
3919 * config/frv/predicates.md (int_2word_operand): Likewise.
3920 * config/h8300/h8300.c (h8300_print_operand): Likewise.
3921 * config/i386/i386.c (standard_80387_constant_p): Likewise.
3922 (ix86_print_operand, ix86_split_to_parts): Likewise.
3923 * config/i386/i386.md: Likewise (in a define_split).
3924 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
3925 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
3926 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
3927 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
3928 (print_operand): Likewise.
3929 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
3930 * config/mep/mep.md: Likewise (in define_split).
3931 * config/microblaze/microblaze.c (microblaze_const_double_ok)
3932 (print_operand): Likewise.
3933 * config/mips/mips.md (consttable_float): Likewise.
3934 * config/mmix/mmix.c (mmix_intval): Likewise.
3935 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
3936 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
3937 * config/pa/pa.c (pa_singlemove_string): Likewise.
3938 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
3939 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
3940 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
3941 (output_toc): Likewise.
3942 * config/rs6000/rs6000.md: Likewise (in define_splits).
3943 * config/rx/rx.c (rx_print_operand): Likewise.
3944 * config/s390/s390.c (s390_output_pool_entry): Likewise.
3945 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
3946 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
3947 (and also in define_splits).
3948 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
3949 (fp_high_losum_p): Likewise.
3950 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
3951 (*movsf_high): Likewise.
3952 * config/spu/spu.c (const_double_to_hwint): Likewise.
3953 * config/v850/v850.c (const_double_split): Likewise.
3954 * config/vax/vax.c (vax_float_literal): Likewise.
3955 * config/visium/visium.c (visium_expand_copysign): Likewise.
3956 * config/visium/visium.md: Likewise (in define_split).
3957 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
3958 * config/xtensa/xtensa.c (print_operand): Likewise.
3959 (xtensa_output_literal): Likewise.
3960 * cprop.c (implicit_set_cond_p): Likewise.
3961 * dwarf2out.c (insert_float): Likewise.
3962 * expmed.c (expand_mult, make_tree): Likewise.
3963 * expr.c (compress_float_constant): Likewise.
3964 * rtlanal.c (split_double): Likewise.
3965 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
3966 (simplify_const_unary_operation, simplify_binary_operation_1)
3967 (simplify_const_binary_operation): Likewise.
3968 (simplify_const_relational_operation): Likewise.
3969 * varasm.c (output_constant_pool_2): Likewise.
3971 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3973 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
3974 instead of CONST_DOUBLE_FROM_REAL_VALUE.
3975 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
3976 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
3977 instead of CONST_DOUBLE_FROM_REAL_VALUE.
3978 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
3979 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
3980 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
3981 (ix86_emit_swsqrtsf): Likewise.
3982 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
3983 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
3984 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
3985 * config/pa/pa.c (pa_expand_builtin): Likewise.
3986 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
3987 (rs6000_scale_v2df): Likewise.
3988 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
3989 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
3990 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
3991 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
3992 (vec_ctul): Likewise.
3993 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
3994 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
3995 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
3996 * cse.c (fold_rtx): Likewise.
3997 * emit-rtl.c (immed_double_const): Likewise (in comments).
3998 (init_emit_once): Likewise.
3999 * expr.c (compress_float_constant, expand_expr_real_1)
4000 (const_vector_from_tree): Likewise.
4001 * optabs.c (expand_float, expand_fix): Likewise.
4002 * reg-stack.c (reg_to_stack): Likewise.
4003 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
4004 (simplify_const_unary_operation, simplify_binary_operation_1)
4005 (simplify_const_binary_operation, simplify_relational_operation)
4006 (simplify_immed_subreg): Likewise.
4008 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4010 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
4011 * doc/tm.texi: Regenerate.
4012 * real.h (REAL_ARITHMETIC): Delete.
4013 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
4014 (ix86_expand_round_sse4): Use real_arithmetic instead of
4016 * config/i386/sse.md (round<mode>2): Likewise.
4017 * rtl.h (rtx_to_tree_code): Likewise (in comment).
4018 * explow.c (rtx_to_tree_code): Likewise (in comment).
4019 * match.pd: Likewise.
4020 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4021 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
4022 (expand_pow_as_sqrts): Likewise.
4023 * tree-pretty-print.c (dump_generic_node): Remove code that
4024 was conditional on REAL_ARITHMETIC being undefined.
4026 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4028 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
4029 * doc/tm.texi: Regenerate.
4030 * real.h (real_less): Declare.
4031 (REAL_VALUES_LESS): Delete.
4032 * real.c (real_less): New function.
4033 (real_compare): Use it.
4034 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
4035 of REAL_VALUES_LESS.
4036 * config/microblaze/microblaze.c (microblaze_const_double_ok):
4038 * fold-const.c (fold_convert_const_int_from_real): Likewise.
4039 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
4040 (simplify_const_relational_operation): Likewise.
4041 * tree-call-cdce.c (check_pow): Likewise.
4042 (gen_conditions_for_pow_cst_base): Likewise.
4044 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4046 * real.h (REAL_VALUES_IDENTICAL): Delete.
4047 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
4048 instead of REAL_VALUES_IDENTICAL.
4049 * fold-const.c (operand_equal_p): Likewise.
4050 * ipa-icf.c (sem_variable::equals): Likewise.
4051 * tree-complex.c (some_nonzerop): Likewise.
4052 (expand_complex_multiplication): Likewise.
4053 * tree.c (simple_cst_equal): Likewise.
4054 * varasm.c (compare_constant): Likewise.
4056 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4058 * real.h (real_equal): Declare.
4059 (REAL_VALUES_EQUAL): Delete.
4060 * real.c (real_equal): New function.
4061 (real_compare): Use it.
4062 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
4063 * doc/tm.texi: Regenerate.
4064 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
4065 real_equal instead of REAL_VALUES_EQUAL.
4066 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
4067 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
4068 (fp_const_from_val): Likewise.
4069 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
4070 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
4071 (floating_exact_log2): Likewise.
4072 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
4073 * config/vax/vax.c (vax_float_literal): Likewise.
4074 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
4075 * cprop.c (implicit_set_cond_p): Likewise.
4076 * expmed.c (expand_mult): Likewise.
4077 * fold-const.c (const_binop): Likewise.
4078 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4079 (simplify_const_binary_operation): Likewise.
4080 (simplify_const_relational_operation): Likewise.
4081 * tree-call-cdce.c (check_pow): Likewise.
4082 (gen_conditions_for_pow_cst_base): Likewise.
4083 * tree-inline.c (estimate_num_insns): Likewise.
4084 * tree-ssa-dom.c (record_equality): Likewise.
4085 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
4086 (gimple_expand_builtin_pow): Likewise.
4087 (pass_optimize_widening_mul::execute): Likewise.
4088 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
4089 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
4090 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
4092 2015-10-05 Richard Biener <rguenther@suse.de>
4095 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
4096 consider loop header PHI defs as IVs.
4098 2015-10-05 Richard Biener <rguenther@suse.de>
4100 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
4102 (create_expression_by_pieces): ... here and build GIMPLE
4103 calls directly. Use gimple_build API and avoid force_gimple_operand.
4104 (insert_into_preds_of_block): Simplify.
4105 (do_regular_insertion): Add comment.
4107 2015-10-04 Jason Merrill <jason@redhat.com>
4109 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
4111 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
4113 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
4114 check for general register.
4115 (ix86_emit_save_regs): Ditto.
4116 (ix86_emit_save_regs_using_mov): Ditto.
4117 (ix86_emit_restore_regs_using_pop): Ditto.
4118 (ix86_emit_restore_regs_using_mov): Ditto.
4120 2015-10-03 Marek Polacek <polacek@redhat.com>
4122 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
4123 (insn-dfatab.o): Likewise.
4125 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
4127 * config.gcc (xtensa*-*-uclinux*): New configuration.
4128 * config/xtensa/uclinux.h: New file.
4129 * config/xtensa/uclinux.opt: New file.
4131 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
4133 * doc/cpp.texi (Standard Predefined Macros): Document value of
4134 __cplusplus for C++14.
4136 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
4138 * gcc.c (process_command): Use spec_machine rather than
4139 spec_host_machine to build tooldir_prefix2.
4141 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
4142 Bernd Schmidt <bernds@codesourcery.com>
4144 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
4145 (Token, Stmt): Remove structs.
4146 (decls, vars, fns): Remove variables.
4147 (alloc_comment, append_stmt, is_keyword): Remove macros.
4148 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
4149 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
4150 (parse_init, parse_file): Remove functions.
4151 (read_file): Accept a pointer to a length and store into it.
4152 (process): Don't try to parse the input file, just write it out as
4153 a string, but looking for maps. Also write out the length.
4154 (main): Don't use "-S" to compile PTX code.
4156 2015-10-02 Jeff Law <law@redhat.com>
4158 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
4161 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
4164 * config/nvptx/mkoffload.c (main): Scan the argument vector for
4165 -fopenmp, and skip generating an offloading image if specified.
4167 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
4169 * system.h (ROUND_UP): New macro definition.
4170 (ROUND_DOWN): Ditto.
4171 * ggc-page.c (ROUND_UP): Remove local macro definition.
4172 (PAGE_ALIGN): Implement using ROUND_UP macro.
4174 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
4175 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
4177 (ix86_compute_frame_layout): Ditto.
4178 (ix86_expand_prologue): Ditto.
4179 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
4180 to round down values.
4181 (expand_set_or_movmem_via_rep): Ditto.
4183 2015-10-02 Marek Polacek <polacek@redhat.com>
4185 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
4187 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
4189 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
4190 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
4191 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
4192 (free_gimple_bb): Renamed free_gimple_poly_bb.
4193 (try_generate_gimple_bb): Hoist loop invariant code.
4194 (analyze_drs_in_stmts): Same.
4195 (build_scop_drs): Call renamed functions.
4196 (new_pbb_from_pbb): Same.
4197 (scop_ivs_can_be_represented): Delete as functionality now moved to
4198 graphite-scop-detection.c
4199 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
4201 2015-10-02 Aditya Kumar <hiraditya@msn.com>
4203 * graphite-scop-detection.c (stmt_has_side_effects): New function
4204 outlined from stmt_simple_for_scop_p.
4205 (graphite_can_represent_stmt): Same.
4206 (stmt_simple_for_scop_p): Moved code out of this function for better
4209 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
4211 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
4213 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
4215 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4217 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
4219 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
4221 PR rtl-optimization/67756
4222 * lra-constraints.c (match_reload): Add a new parameter. Use it
4223 for creating a pseudo with the same value.
4224 (curr_insn_transform): Pass a new argument to match_reload.
4226 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
4228 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
4229 (expand_vec_perm_even_odd_1): Handle V64QImode.
4230 (ix86_expand_vec_perm_const_1): Try expansion with
4231 expand_vec_perm_even_odd_trunc as well.
4232 * config/i386/sse.md (VI124_AVX512F): Rename to ...
4233 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
4235 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
4236 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
4238 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
4239 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
4240 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
4241 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
4242 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
4243 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
4245 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
4247 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
4248 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
4250 2015-10-02 Jason Merrill <jason@redhat.com>
4253 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
4254 (diagnose_tm_1_op): Also diagnose volatile accesses in
4255 transaction_safe function.
4257 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
4259 * system.h (malloc.h): Don't include obsolete header.
4261 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4263 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
4264 (TLS_SECTION_ASM_FLAG): Delete.
4266 2015-10-02 Marek Polacek <polacek@redhat.com>
4269 * doc/invoke.texi: Document -Wduplicated-cond.
4270 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
4271 (insn-dfatab.o): Likewise.
4272 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
4275 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
4277 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
4280 2015-10-02 Renlin Li <renlin.li@arm.com>
4282 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
4284 2015-10-02 Renlin Li <renlin.li@arm.com>
4287 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
4289 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4291 PR rtl-optimization/67786
4292 PR rtl-optimization/67787
4293 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
4294 it modifies a reg used in the condition calculation.
4296 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
4298 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
4299 alternatives for reads from memory and moves from general-purpose
4301 (*aarch64_combinez_be<mode>): Likewise.
4303 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
4306 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
4307 selectany within this function without need to keep attribute.
4308 (i386_pe_encode_section_info): Remove selectany-code.
4310 2015-10-02 Richard Biener <rguenther@suse.de>
4312 * tree-ssa-sccvn.c (has_VN_INFO): New function.
4313 (free_scc_vn): Use it.
4314 (visit_use): Remove dead code and refactor to use gassign
4315 and use less indentation.
4317 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4321 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
4322 (rs6000_cannot_copy_insn_p): New function.
4323 * config/rs6000/rs6000.md (cannot_copy): New attribute.
4324 (load_toc_v4_PIC_1_normal): Set cannot_copy.
4325 (load_toc_v4_PIC_1_476): Ditto.
4327 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
4329 * graphite-scop-detection.c (struct sese_l): New conversion constructor
4330 so that this type can be pushed into a vec.
4331 (class scop_builder): use sese_l to collect scops.
4332 (get_scops): New getter function.
4333 (remove_intersecting_scops): Use sese_l instead of scops_p.
4337 (remove_subscops): Same.
4338 (build_scops): Add scops to vec<scops_p> once all the scops have been
4341 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
4343 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
4344 Renamed type from gimple_bb_p to gimple_poly_bb_p.
4345 (translate_isl_ast_node_user): Same.
4346 * graphite-poly.c (new_poly_bb): Same.
4347 * graphite-poly.h (gbb_from_bb): Same.
4349 * graphite-sese-to-poly.c (new_gimple_bb):
4350 gimple_bb_p -> gimple_poly_bb_p
4351 (build_scop_scattering): Same.
4352 (find_params_in_bb): Same.
4353 (add_conditions_to_domain): Same.
4354 (sese_dom_walker::before_dom_children): Same.
4355 (analyze_drs_in_stmts): Same.
4356 (new_pbb_from_pbb): Same.
4357 (free_data_refs_aux): New pointer to type base_alias_pair.
4358 * graphite-sese-to-poly.h: Same.
4359 * sese.c (if_region_set_false_region): Fixed Indentation.
4360 (move_sese_in_condition): Same.
4362 2015-10-01 Sebastian Pop <s.pop@samsung.com>
4363 Aditya Kumar <aditya.k7@samsung.com>
4365 PR tree-optimization/66980
4366 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
4367 when data reference analysis has failed.
4369 2015-10-01 Sebastian Pop <s.pop@samsung.com>
4370 Aditya Kumar <aditya.k7@samsung.com>
4372 PR tree-optimization/67754
4373 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
4374 scev analysis on the same loop nest as analyze_drs_in_stmts.
4375 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
4377 (try_generate_gimple_bb): Call outermost_loop_in_sese.
4378 (analyze_drs_in_stmts): Same.
4379 * sese.c (outermost_loop_in_sese): ...here.
4381 2015-10-01 Sebastian Pop <s.pop@samsung.com>
4382 Aditya Kumar <aditya.k7@samsung.com>
4384 PR tree-optimization/67754
4385 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
4386 recursion on the inner loops.
4388 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4390 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
4391 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
4392 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
4393 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
4394 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
4396 2015-10-01 Marek Polacek <polacek@redhat.com>
4399 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
4400 create_tmp_var_raw rather than create_tmp_var.
4402 2015-10-01 Marek Polacek <polacek@redhat.com>
4404 PR tree-optimization/67769
4405 * tree-ssa-phiopt.c (conditional_replacement): Call
4406 reset_flow_sensitive_info_in_bb.
4407 (minmax_replacement): Likewise.
4408 (abs_replacement): Likewise.
4410 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
4412 * builtins.c: Don't include gomp-constants.h.
4413 (fold_builtin_1): Don't fold acc_on_device here.
4414 * gimple-fold.c: Include gomp-constants.h.
4415 (gimple_fold_builtin_acc_on_device): New.
4416 (gimple_fold_builtin): Call it.
4418 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
4420 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
4421 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
4423 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
4425 * config/arm/aarch-common-protos.h
4426 (aarch_accumulator_forwarding): New.
4427 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
4428 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
4429 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
4430 * config/arm/cortex-a53.md: Rewrite.
4432 2015-10-01 Richard Biener <rguenther@suse.de>
4434 * gimple-match.h (mprts_hook): Declare.
4435 * gimple-match.head.c (mprts_hook): Define.
4436 (maybe_push_res_to_seq): Use new hook.
4437 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
4438 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
4439 (vn_ssa_aux::has_constants): Remove.
4440 * tree-ssa-sccvn.c: Include gimple-match.h.
4441 (VN_INFO_GET): Assert we don't re-use SSA names.
4442 (vn_get_expr_for): Remove.
4443 (expr_has_constants): Likewise.
4444 (stmt_has_constants): Likewise.
4445 (simplify_binary_expression): Likewise.
4446 (simplify_unary_expression): Likewise.
4447 (vn_lookup_simplify_result): New hook.
4448 (visit_copy): Adjust.
4449 (visit_reference_op_call): Likewise.
4450 (visit_phi): Likewise.
4451 (visit_use): Likewise.
4452 (process_scc): Likewise.
4453 (init_scc_vn): Likewise.
4454 (visit_reference_op_load): Likewise. Use match-and-simplify and
4455 a gimple seq for inserted expressions.
4456 (try_to_simplify): Remove GENERIC stmt combining code.
4457 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
4458 * tree-ssa-pre.c (eliminate_insert): Adjust.
4459 (eliminate_dom_walker::before_dom_children): Likewise.
4461 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4463 * doc/invoke.texi (Optimization Options): Add
4464 -freorder-blocks-algorithm=.
4465 (Optimize Options) <-O>: Add -freorder-blocks.
4466 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
4467 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
4468 <-freorder-blocks>: Also enabled at levels -O and -Os.
4469 <-freorder-blocks-algorithm=>: Document new option.
4471 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4473 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
4474 with flag_reorder_blocks_algorithm.
4475 * common.opt (freorder-blocks-algorithm=): New flag.
4476 (reorder_blocks_algorithm): New enum.
4477 * flag-types.h (reorder_blocks_algorithm): New enum.
4478 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
4479 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
4481 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4483 * bb-reorder.c: Add intro comment.
4484 (reorder_basic_blocks_software_trace_cache): Print a header to
4486 (edge_order): New function.
4487 (reorder_basic_blocks_simple): New function.
4488 (reorder_basic_blocks): Choose between the STC and the simple
4489 algorithms (always choose the former).
4491 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4493 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
4494 function, factored out from ...
4495 (reorder_basic_blocks): ... here.
4497 2015-10-01 Tom de Vries <tom@codesourcery.com>
4499 * tree-cfg.c (dump_function_to_file): Dump function attributes using
4500 __attribute__(()) string. Move dumping of function attributes to before
4503 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
4506 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
4507 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
4508 based on gold linker version.
4509 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
4510 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
4511 * configure, config.in: Regenerate.
4513 2015-10-01 Alan Modra <amodra@gmail.com>
4515 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
4516 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
4517 (rs6000_output_mi_thunk): Likewise.
4519 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
4521 * config/nvptx/mkoffload.c (process): Change offload data format.
4523 2015-09-30 Jeff Law <law@redhat.com>
4525 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
4526 with constant conditions.
4527 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
4528 (remove_ctrl_stmt_and_useless_edges): No longer static.
4529 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
4530 (remove_ctrl_stmt_and_useless_edges): Likewise.
4532 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
4533 Cesar Philippidis <cesar@codesourcery.com>
4535 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
4536 (TARGET_GOACC_VALIDATE_DIMS): Override.
4537 * target.def (TARGET_GOACC): New target hook prefix.
4538 (validate_dims): New hook.
4539 * targhooks.h (default_goacc_validate_dims): New.
4540 * omp-low.c (oacc_validate_dims): New.
4541 (execute_oacc_device_lower): New.
4542 (default_goacc_validate_dims): New.
4543 (pass_data_oacc_device_lower): New.
4544 (pass_oacc_device_lower): New pass.
4545 (make_pass_oacc_device_lower): New.
4546 * tree-pass.h (make_pass_oacc_device_lower): Declare.
4547 * passes.def (pass_oacc_device_lower): Add it.
4548 * doc/tm.texi: Rebuilt.
4549 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
4550 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
4552 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
4554 PR rtl-optimization/67037
4555 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
4557 2015-09-30 Bernd Schmidt <bernds@redhat.com>
4559 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
4560 * passes.c: Include tree-ssanames.h.
4561 (execute_function_todo): Flush the pending free SSA_NAMEs after
4562 eliminating unreachable basic blocks.
4563 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
4564 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
4565 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
4566 (flush_ssanames_freelist): New function.
4567 (release_ssaname_fn): Put released names on the queue.
4568 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
4569 * tree-ssanames.h (flush_ssanames_freelist): Declare.
4571 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
4573 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
4574 (generate_target_descr_file, generate_target_offloadend_file)
4575 (generate_host_descr_file, prepare_target_image): Pass it on.
4576 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
4577 (compile_native, main): Pass it on.
4578 * lto-wrapper.c (compile_offload_image): Likewise.
4580 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
4581 Ilya Verbin <ilya.verbin@intel.com>
4582 Andrey Turetskiy <andrey.turetskiy@intel.com>
4584 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
4585 (prepare_target_image, main): Refactor argv building to use
4588 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4590 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
4591 * config/spu/spu.c (spu_expand_atomic_op): New function.
4592 * config/spu/spu.md (AINT): New mode iterator.
4593 (ATOMIC): New code iterator.
4594 (atomic_name, atomic_pred): New code predicates.
4595 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
4596 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
4597 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
4598 "atomic_<atomic_name>_fetch<mode>"): Likewise.
4600 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
4602 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
4604 (scalar_chain::convert_reg): Likewise.
4606 2015-09-30 Richard Biener <rguenther@suse.de>
4608 * builtins.c: Add comment that no new simplifications should
4611 2015-09-30 Marek Polacek <polacek@redhat.com>
4613 PR tree-optimization/67690
4614 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
4615 reset_flow_sensitive_info_in_bb.
4616 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
4617 * tree-ssanames.c: Include "gimple-iterator.h".
4618 (reset_flow_sensitive_info_in_bb): New function.
4619 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
4621 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
4623 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
4624 variable, replacing it with...
4625 (offload_abi): ... this new variable. Adjust all users.
4626 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
4628 2015-09-30 Matthias Klose <doko@ubuntu.com>
4630 * configure.ac: Remove extraneous ;;.
4631 * configure: Regenerate.
4633 2015-09-29 James Bowman <james.bowman@ftdichip.com>
4635 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
4636 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
4637 predicate, disallow register for operand 2.
4639 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
4641 * graphite-dependences.c (scop_get_dependences): Moved in down
4642 in order to be visible to its caller.
4643 * graphite-poly.h: Removed compute_deps, and extend_schedule.
4645 2015-09-29 Sebastian Pop <s.pop@samsung.com>
4646 Aditya Kumar <aditya.k7@samsung.com>
4648 PR tree-optimization/67754
4649 * graphite-optimize-isl.c (optimize_isl): Call
4650 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
4652 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
4654 * builtins.c (expand_builtin_acc_on_device): Delete.
4655 (expand_builtin): Don't call it.
4656 (fold_builtin_1): Fold acc_on_device.
4658 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
4660 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
4661 (ix86_nsaved_sseregs): Likewise.
4663 2015-09-29 Jeff Law <law@redhat.com>
4665 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
4666 computation of unused value.
4668 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
4669 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
4670 inline macro expansion.
4672 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
4674 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
4675 (gen_shl_sext): Likewise.
4676 * config/sh/sh.md (divsi3): Likewise.
4677 (imm->ext_dest_operand splitter): Likewise.
4679 2015-09-29 Sebastian Pop <s.pop@samsung.com>
4680 Aditya Kumar <aditya.k7@samsung.com>
4682 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
4683 (nb_data_writes_in_bb): Remove.
4684 (split_pbb): Remove.
4685 (split_reduction_stmt): Remove.
4686 (is_reduction_operation_p): Remove.
4687 (phi_contains_arg): Remove.
4688 (follow_ssa_with_commutative_ops): Remove.
4689 (detect_commutative_reduction_arg): Remove.
4690 (detect_commutative_reduction_assign): Remove.
4691 (follow_inital_value_to_phi): Remove.
4692 (edge_initial_value_for_loop_phi): Remove.
4693 (initial_value_for_loop_phi): Remove.
4694 (used_outside_reduction): Remove.
4695 (detect_commutative_reduction): Remove.
4696 (translate_scalar_reduction_to_array_for_stmt): Remove.
4697 (remove_phi): Remove.
4698 (dr_indices_valid_in_loop): Remove.
4699 (close_phi_written_to_memory): Remove.
4700 (translate_scalar_reduction_to_array): Remove.
4701 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
4702 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
4703 (rewrite_commutative_reductions_out_of_ssa): Remove.
4704 (build_poly_scop): Remove call to
4705 rewrite_commutative_reductions_out_of_ssa.
4707 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
4709 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
4710 Add new insn types for vector load and store pairs.
4711 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
4712 types "neon_ldp{,_q}".
4713 * config/arm/cortex-a57.md (neon_load_c): Add insn types
4715 (neon_store_complex): Add insn types "neon_stp{,_q}".
4716 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
4719 2015-09-29 Jeff Law <law@redhat.com>
4721 * config/rx/constraints.md (Int08): Fix undefined left shift
4723 (Sint08, Sint16, Sint24): Likewise.
4724 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4726 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
4729 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
4730 left shift behaviour.
4731 * config/msp430/constraints.md ('L' constraint): Similarly.
4732 ('Ys' constraint): Similarly.
4734 2015-09-29 Richard Biener <rguenther@suse.de>
4736 PR tree-optimization/67170
4737 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
4738 the translate function pointer parameter to get the
4739 bool whether to disambiguate only by reference.
4740 (walk_non_aliased_vuses): Likewise.
4741 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4742 (get_continuation_for_phi_1): Likewise.
4743 (get_continuation_for_phi): Likewise.
4744 (walk_non_aliased_vuses): Likewise.
4745 * tree-ssa-sccvn.c (const_parms): New bitmap.
4746 (vn_reference_lookup_3): Adjust for interface change.
4747 Disambiguate parameters pointing to readonly memory.
4748 (free_scc_vn): Free const_parms.
4749 (run_scc_vn): Initialize const_parms from a fn spec attribute.
4751 2015-09-29 Richard Biener <rguenther@suse.de>
4753 PR tree-optimization/67741
4754 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
4755 builtin calls with correct signature.
4757 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
4760 * config/i386/i386.c: Include dbgcnt.h.
4761 (has_non_address_hard_reg): New.
4762 (convertible_comparison_p): New.
4763 (scalar_to_vector_candidate_p): New.
4764 (remove_non_convertible_regs): New.
4765 (scalar_chain): New.
4766 (scalar_chain::scalar_chain): New.
4767 (scalar_chain::~scalar_chain): New.
4768 (scalar_chain::add_to_queue): New.
4769 (scalar_chain::mark_dual_mode_def): New.
4770 (scalar_chain::analyze_register_chain): New.
4771 (scalar_chain::add_insn): New.
4772 (scalar_chain::build): New.
4773 (scalar_chain::compute_convert_gain): New.
4774 (scalar_chain::replace_with_subreg): New.
4775 (scalar_chain::replace_with_subreg_in_insn): New.
4776 (scalar_chain::emit_conversion_insns): New.
4777 (scalar_chain::make_vector_copies): New.
4778 (scalar_chain::convert_reg): New.
4779 (scalar_chain::convert_op): New.
4780 (scalar_chain::convert_insn): New.
4781 (scalar_chain::convert): New.
4782 (convert_scalars_to_vector): New.
4783 (pass_data_stv): New.
4785 (make_pass_stv): New.
4786 (ix86_option_override): Created and register stv pass.
4787 (flag_opts): Add -mstv.
4788 (ix86_option_override_internal): Likewise.
4789 * config/i386/i386.md (SWIM1248x): New.
4790 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
4791 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
4792 (*anddi3_doubleword): New.
4793 (*zext<mode>_doubleword): New.
4794 (*zextsi_doubleword): New.
4795 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
4796 (*<code>di3_doubleword): New.
4797 * config/i386/i386.opt (mstv): New.
4798 * dbgcnt.def (stv_conversion): New.
4800 2015-09-29 Tom de Vries <tom@codesourcery.com>
4802 * tree-cfg.c (dump_function_to_file): Dump function attributes.
4804 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
4807 * config/sh/sh.c (sh_override_options_after_change): New.
4808 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
4809 (sh_option_override): Move align_loops, align_jumps and
4810 align_functions handling into sh_override_options_after_change.
4812 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
4814 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
4815 (nvptx_record_offload_symbol): Record function execution geometry.
4816 * config/nvptx/mkoffload.c (process): Include launch geometry in
4818 * omp-low.c (oacc_launch_pack): New.
4819 (replace_oacc_fn_attrib): New.
4820 (set_oacc_fn_attrib): New.
4821 (get_oacc_fn_attrib): New.
4822 (expand_omp_target): Create keyed varargs for GOACC_parallel call
4824 * omp-low.h (get_oacc_fn_attrib): Declare.
4825 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
4826 (DEF_FUNCTION_TYPE_VAR_11): Delete.
4827 * tree.h (OMP_CLAUSE_EXPR): New.
4828 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
4830 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
4831 Sebastian Pop <s.pop@samsung.com>
4833 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
4835 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
4836 Sebastian Pop <s.pop@samsung.com>
4838 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
4839 * graphite-scop-detection.c (struct sese_l): New type.
4840 (get_entry_bb): API for getting entry bb of SESE.
4841 (get_exit_bb): API for getting exit bb of SESE.
4842 (class debug_printer): New type. Simple printer in debug mode.
4843 (trivially_empty_bb_p): New. Return true when BB is empty or
4844 contains only debug instructions.
4845 (graphite_can_represent_expr): Call scalar_evoution_in_region
4846 instead of analyze_scalar_evolution. Pass in scop instead of only
4848 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
4850 (stmt_simple_for_scop_p): Same.
4851 (harmful_stmt_in_bb): Same.
4852 (graphite_can_represent_loop): Deleted.
4853 (struct scopdet_info): Deleted.
4854 (scopdet_basic_block_info): Deleted.
4855 (build_scops_1): Deleted.
4856 (bb_in_sd_region): Deleted.
4857 (find_single_entry_edge): Deleted.
4858 (find_single_exit_edge): Deleted.
4859 (create_single_entry_edge): Deleted.
4860 (sd_region_without_exit): Deleted.
4861 (create_single_exit_edge): Deleted.
4862 (unmark_exit_edges): Deleted.
4863 (mark_exit_edges): Deleted.
4864 (create_sese_edges): Deleted.
4865 (build_graphite_scops): Deleted.
4866 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
4867 (build_scops): Use the new scop_builder to build scops.
4868 (dot_all_scops_1): Use the new pretty printer. Print loop father
4870 (loop_body_is_valid_scop): New. Return true if loop body is a
4872 (class scop_builder): New. Builds SCoPs for polyhedral
4874 (scop_builder): New constructor.
4875 (static sese_l invalid_sese): sese_l with invalid edges.
4876 (get_sese): Get an sese (from a loop) if possible, invalid_sese
4878 (get_nearest_dom_with_single_entry): Get nearest dominator of a
4879 basic_block with single entry. Return NULL if we get to the
4880 beginning of a function.
4881 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
4882 a basic_block with single exit. Return NULL if we get to the
4883 beginning of a function.
4884 (print_sese): Pretty-print SESE.
4885 (merge_sese): Merge two SESEs if possible and return the new SESE.
4886 (build_scop_depth): Start building the SCoP within a loop nest.
4887 (build_scop_breadth): Start building the SCoP at a single loop
4888 depth. Merge adjacent SESEs if valid.
4889 (can_represent_loop_1): Returns true if Graphite can represent
4890 loop inside SCoP. Helper for can_represent_loop.
4891 (can_represent_loop): Returns true if Graphite can represent LOOP
4892 and all its nested loops in SCoP.
4893 (loop_is_valid_scop): Returns true if LOOP and all its nests
4894 constitute a valid SCoP.
4895 (region_has_one_loop): Returns true of a region has only one loop.
4896 (add_scop): Add SCoP to the list of valid scops. Removes an
4897 already existing scop if it intersects with or subsumed by this one.
4898 (harmful_stmt_in_region): Returns true if SCoP has any statment
4899 which cannot be represented by Graphite.
4900 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
4901 (remove_subscops): Remove any SCoP from the list of already found
4902 SCoPs, if subsumed by S1.
4903 (intersects): Return true if region bounded by SCoPs S1 and S2
4905 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
4906 * graphite.c (print_graphite_scop_statistics):
4907 (print_graphite_statistics): Print SCoP info while debugging.
4908 (graphite_initialize): Early exit in case number of loops in a
4909 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
4910 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
4911 (graphite_finalize):
4912 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
4913 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
4914 (recompute_all_dominators): Recalculate POST_DOMINATORS.
4915 * tree-cfg.c (print_loops): Print the function name while printing
4918 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
4919 Sebastian Pop <s.pop@samsung.com>
4921 PR tree-optimization/67700
4922 * graphite-sese-to-poly.c (parameter_index_in_region): Call
4923 invariant_in_sese_p_rec.
4924 (extract_affine): Same.
4925 (rewrite_cross_bb_scalar_deps): Call update_ssa.
4926 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
4927 * sese.h (invariant_in_sese_p_rec): Declare.
4929 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
4931 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
4933 2015-09-28 Jiong Wang <jiong.wang@arm.com>
4936 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4937 Jiong Wang <jiong.wang@arm.com>
4939 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
4940 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
4941 (REG_CLASS_NAMES): Likewise.
4942 (REG_CLASS_CONTENTS): Likewise.
4943 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
4944 (aarch64_register_move_cost): Likewise.
4945 (aarch64_load_symref_appropriately): Invoke the new added pattern if
4947 * config/aarch64/constraints.md (Uc0): New constraint.
4949 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
4951 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
4953 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
4955 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
4956 SECTION_EXCLUDE in XO mapping class.
4958 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
4961 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
4962 and handle ne and eq codes.
4963 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
4964 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
4965 CONST_INT_P. Use reverse_condition.
4966 (sh_split_treg_set_expr): Likewise.
4968 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
4970 * config/arm/types.md (type): Add rotate_imm.
4971 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
4973 (*rorsi3_insn_uxtw): Likewise.
4974 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
4975 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
4976 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
4978 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4980 PR rtl-optimization/67481
4981 * ifcvt.c (contains_ccmode_rtx_p): New function.
4982 (insn_valid_noce_process_p): Use it.
4984 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4986 PR rtl-optimization/67456
4987 PR rtl-optimization/67464
4988 PR rtl-optimization/67465
4989 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
4990 move in the mode of x. Handle combination of complex and simple
4991 block pairs as well as the case when one is empty.
4993 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4995 * doc/gimple.texi: Update references to gimple_statement_base.
4996 * gdbhooks.py: Likewise.
4997 * gimple.h: Likewise.
4999 2015-09-28 Daniel Cederman <cederman@gaisler.com>
5001 * config/sparc/driver-sparc.c: map LEON to leon3
5003 2015-09-28 Daniel Cederman <cederman@gaisler.com>
5005 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
5006 and make it inverse to change default
5007 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
5009 * doc/invoke.texi: Document change of default
5011 2015-09-28 Daniel Cederman <cederman@gaisler.com>
5013 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
5014 true on %f0 for a target without FPU.
5015 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
5017 (untyped_return): Do not load %f0 for a target without FPU.
5019 2015-09-28 Andrew Pinski <apinski@cavium.com>
5021 * config/aarch64/aarch64.md (prefetch):
5022 Change the predicate of operand 0 to register_operand.
5024 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
5026 * config/i386/predicates.md (register_sse4nonimm_operand): New
5028 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
5029 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
5030 Use register_sse4nonimm_operand as operand 0 predicate.
5031 (*vec_extractv8hi_sse2): Remove insn pattern.
5032 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
5033 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
5035 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
5036 Kaz Kojima <kkojima@gcc.gnu.org>
5039 * config/sh/sh-protos.h (sh_lra_p): Declare.
5040 * config/sh/sh.c (sh_lra_p): Make non-static.
5041 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
5042 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
5043 Expand into addsi3_scr if operands[2] if needed.
5044 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
5045 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
5046 (addsi3_scr, *addsi3): New insn_and_split patterns.
5048 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
5050 PR rtl-optimization/64164
5051 PR tree-optimization/67312
5055 * cfgexpand.c (parm_in_stack_slot_p): Remove.
5056 (ssa_default_def_partition): Remove.
5057 (get_rtl_for_parm_ssa_default_def): Remove.
5058 (set_rtl): Check that RTL assignments match expectations.
5059 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
5060 default def location for params and results. Record SSA names
5061 or types in REG and MEM attrs, respectively.
5062 (set_parm_rtl): New.
5063 (expand_one_ssa_partition): Drop logic that assigned MEMs with
5064 unassigned addresses.
5065 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
5066 deferred stack alloc vars.
5067 (expand_used_vars): Skip partitions holding parm default defs.
5068 Move adjust_one_expanded_partition_var loop...
5069 (pass_expand::execute): ... here. Drop redundant assert.
5070 Adjust comments before the final loop over all ssa names.
5071 Require assigned rtl of parms and results to match exactly.
5072 Reset its attributes to match them, not any other variables in
5074 (expand_debug_expr): Use entry value for PARM's default defs
5075 only iff they have zero nondebug uses.
5076 * cfgexpand.h (parm_in_stack_slot_p): Remove.
5077 (get_rtl_for_parm_ssa_default_def): Remove.
5078 (set_parm_rtl): Declare.
5079 * doc/invoke.texi: Improve wording.
5080 * explow.c (promote_decl_mode): Fix promote_function_mode for
5081 result decls not by reference.
5082 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
5083 bypass TYPE_MODE to get the actual vector mode.
5084 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
5085 2015-08-19's changes as follows. Drop include of
5086 basic-block.h and df.h.
5087 (rtl_for_parm): Remove.
5088 (maybe_reset_rtl_for_parm): Remove.
5089 (parm_in_unassigned_mem_p): Remove.
5090 (use_register_for_decl): Add logic for RESULT_DECLs matching
5091 assign_parms' behavior.
5092 (split_complex_args): Revert.
5093 (assign_parms_augmented_arg_list): Revert. Add comment
5094 referencing the logic above.
5095 (assign_parm_adjust_stack_rtl): Revert.
5096 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
5097 of SET_DECL_RTL. Set up a REG if the parm demands so.
5098 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
5099 calls into a single set_parm_rtl. Set up a temporary RTL
5100 temporarily for expand_assignment.
5101 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
5102 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
5103 (assign_bounds): Revert.
5104 (assign_parms): Revert. Use set_parm_rtl.
5105 (allocate_struct_function): Relayout result and parms of
5106 non-abstruct functions.
5107 (expand_function_start): Revert. Use set_parm_rtl. If the
5108 result is not a hard reg, create a pseudo from the promoted
5109 mode of the default def. Promote static chain mode.
5110 * tree-outof-ssa.c (remove_ssa_form): Drop unused
5111 partition_has_default_def. Set up
5112 partitions_for_parm_default_defs.
5113 (finish_out_of_ssa): Remove partition_has_default_def.
5114 Release partitions_for_parm_default_defs.
5115 * tree-outof-ssa.h (struct ssaexpand): Remove
5116 partition_has_default_def. Add
5117 partitions_for_parm_default_defs.
5118 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
5120 (build_ssa_conflict_graph): Fix conflict-detection of default
5121 defs of even unused default defs of params and results.
5122 (for_all_parms): New.
5123 (create_default_def): New.
5124 (register_default_def): New.
5125 (coalesce_with_default): New.
5126 (create_outofssa_var_map): Create default defs for all parms
5127 and results, and register their partitions. Add GIMPLE_RETURN
5128 operands as coalesce candidates with results. Add default
5129 defs of each parm or result as coalesce candidates with its
5130 other defs. Mark each result def, and each default def of
5131 parms, as used_in_copy.
5132 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
5133 with the ssa names, even anonymous ones. Drop
5134 parm_in_stack_slot_p calls. Require same signedness and
5136 (coalesce_ssa_name): Add coalesce candidates for all defs of
5137 each parm and result, even unused ones.
5138 (parm_default_def_partition_arg): New type.
5139 (set_parm_default_def_partition): New.
5140 (get_parm_default_def_partitions): New.
5141 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
5142 * tree-ssa-live.c (partition_view_init): Regard unused defs of
5143 parms and results as used.
5144 (verify_live_on_entry): Don't error out just because they're
5147 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
5149 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
5150 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
5151 (output_fde): Don't output length for debug_frame on AIX.
5152 (output_call_frame_info): Don't output length for debug_frame on AIX.
5153 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
5154 HAVE_XCOFF_DWARF_EXTRAS.
5155 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
5156 HAVE_XCOFF_DWARF_EXTRAS.
5157 (output_compilation_unit_header): Don't output length on AIX.
5158 (output_pubnames): Don't output length on AIX.
5159 (output_aranges): Delete argument. Compute length locally. Don't
5160 output length on AIX.
5161 (output_line_info): Don't output length on AIX.
5162 (dwarf2out_finish): Don't compute aranges_length.
5163 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
5164 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
5165 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
5166 symbol decoration for AIX.
5167 (rs6000_xcoff_debug_unwind_info): New.
5168 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
5170 (rs6000_xcoff_declare_function_name): Emit different
5171 .function pseudo-op when DWARF2_DEBUG. Don't call
5172 xcoffout_declare_function for DWARF2_DEBUG.
5173 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
5175 * config/rs6000/aix71.h: New.
5176 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
5178 * configure: Regenerate.
5179 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
5182 2015-09-26 Jeff Law <law@redhat.com>
5184 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
5186 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
5189 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
5192 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
5193 undefined behaviour.
5195 * config/cris/cris.md (asrandb): Fix left shift undefined
5197 (asrandw): Likewise.
5199 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
5202 * lra-constarints.c (match_reload): Check presence of the input pseudo
5203 in the output operand.
5205 2015-09-25 Tobias Burnus <burnus@net-b.de>
5207 * doc/invoke.texi (-fsanitize): Minor wording tweak.
5209 2015-09-25 Tobias Burnus <burnus@net-b.de>
5211 * doc/invoke.texi (-fsanitize): Update URLs.
5213 2015-09-25 Teresa Johnson <tejohnson@google.com>
5215 * opts.c (finish_options): Unset -freorder-blocks-and-partition
5216 if not using profile.
5218 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
5220 PR pretty-print/67567
5221 * pretty-print.c (pp_string): Add gcc_checking_assert.
5222 * pretty-print.h (output_buffer_append_r): Likewise.
5224 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
5227 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
5228 addr2 individually. Don't emit logical or insn if one is known to
5229 be aligned approriately.
5230 (sh_expand_cmpnstr): Likewise.
5232 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
5234 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
5235 __builtin_aarch64_fp[sc]r arguments into a register.
5237 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
5239 * config.gcc (x86_archs): Replace lakemount with lakemont.
5240 (with_cpu): Likewise.
5241 (with_arch): Likewise.
5242 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
5243 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
5244 __tune_lakemount__ with __tune_lakemont__.
5245 * config/i386/i386.c (lakemount_cost): Renamed to ...
5246 (lakemont_cost): This.
5247 (m_LAKEMOUNT): Renamed to ...
5249 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
5250 (processor_target_table): Replace "lakemount" with "lakemont".
5251 (processor_alias_table): Likewise.
5252 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
5254 (ix86_adjust_cost): Likewise.
5255 (ia32_multipass_dfa_lookahead): Likewise.
5256 * config/i386/i386.h (processor_type): Likewise.
5257 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
5258 * doc/invoke.texi: Replace lakemount with lakemont. Replace
5259 Lakemount with Lakemont.
5261 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
5263 * config.gcc (x86_archs): Replace iamcu with lakemount.
5264 (with_cpu): Likewise.
5265 (with_arch): Likewise.
5266 * doc/invoke.texi: Likewise.
5267 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
5268 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
5269 __tune_iamcu__ with __tune_lakemount__.
5270 * config/i386/i386.c (iamcu_cost): Renamed to ...
5271 (lakemount_cost): This.
5272 (m_IAMCU): Renamed to ...
5273 (m_LAKEMOUNT): This.
5274 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
5275 (processor_target_table): Replace "iamcu" with "lakemount".
5276 (processor_alias_table): Likewise.
5277 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
5278 PROCESSOR_LAKEMOUNT.
5279 (ix86_adjust_cost): Likewise.
5280 (ia32_multipass_dfa_lookahead): Likewise.
5281 * config/i386/i386.h (processor_type): Likewise.
5282 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
5284 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
5286 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
5287 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
5289 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
5290 (pa_expand_compare_and_swap_loop): New.
5291 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
5292 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
5293 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
5294 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
5295 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
5298 2015-09-24 Michael Collison <michael.collison@linaro.org>
5301 * read-md.c (read_name): Allow mode iterators inside angle
5302 brackets in rtl expressions.
5304 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
5307 * ira-color.c (update_allocno_cost): Add parameter.
5308 (update_costs_from_allocno): Decrease conflict cost. Pass the new
5311 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
5314 * opts-common.c (prune_options): Discard all -fdiagnostics-color
5315 but the last one, which is moved to the front to be processed
5317 * opts.c (enable_warning_as_error): Reject options that do not
5320 2015-09-24 Jiong Wang <jiong.wang@arm.com>
5322 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
5324 2015-09-24 Jiong Wang <jiong.wang@arm.com>
5326 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
5327 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
5328 (aarch64_cannot_force_const_mem): Likewise.
5329 (aarch64_classify_address): Likewise.
5330 (aarch64_classify_symbolic_expression): Likewise.
5331 (aarch64_print_operand): Likewise.
5332 (aarch64_classify_symbol): Likewise.
5333 (aarch64_mov_operand_p): Likewise.
5334 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
5335 (aarch64_mov_operand): Likewise.
5337 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
5339 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
5340 for info->spe_gp_size.
5342 2015-09-24 Richard Biener <rguenther@suse.de>
5345 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
5348 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
5350 * tree-object-size.c (plus_stmt_object_size)
5351 (cond_expr_object_size): Change the formal parameters from gimple
5353 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
5354 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
5355 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
5357 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5359 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
5360 Check for ld -type pie on Solaris 11.x and 12.
5361 * configure: Regenerate.
5362 * config.in: Regenerate.
5364 * gcc.c (LD_PIE_SPEC): Allow redefinition.
5366 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
5367 (STARTFILE_SPEC): Use it.
5368 (ENDFILE_CRTEND_SPEC): Define.
5369 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
5370 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
5371 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
5372 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
5373 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
5374 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
5375 (ENDFILE_ARCH_SPEC): Define.
5376 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
5378 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5380 * configure.ac (gcc_cv_solaris_crts): New test.
5381 * configure. Regenerate.
5382 * config.in: Regenerate.
5383 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
5384 HAVE_SOLARIS_CRTS variant.
5386 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5388 * tree-inline.h (count_insns_seq): Delete prototype.
5389 (estimate_num_insns_seq): Define prototype.
5390 * tree-inline.c (count_insns_seq): Delete.
5391 (estimate_num_insns_seq): Remove static qualifier.
5392 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
5393 with estimate_num_insns_seq.
5395 2015-09-24 Richard Biener <rguenther@suse.de>
5397 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
5399 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
5400 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
5402 (ao_ref_init_from_vn_reference): Record clique and base in the
5404 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
5406 2015-09-24 Richard Biener <rguenther@suse.de>
5408 PR tree-optimization/48885
5409 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
5410 as not including any restrict tags from other pointers.
5412 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
5414 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
5415 character when appending to offload_targets.
5417 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
5418 offload targets by commas, not colons.
5419 * config.in: Regenerate.
5420 * configure: Likewise.
5421 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
5422 instead of setting up the default offload targets here...
5423 (process_command): ..., do it here.
5425 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
5426 targets are separated by commas.
5427 * config.h.in: Regenerate.
5429 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
5430 Nathan Sidwell <nathan@codesourcery.com>
5432 * omp-low.h (omp_reduction_init_op): Declare.
5433 * omp-low.c (omp_reduction_init_op): New, broken out of ...
5434 (omp_reduction_init): ... here. Call it.
5435 * tree-parloops.c (initialize_reductions): Use
5436 omp_reduction_init_op.
5438 2015-09-23 Richard Biener <rguenther@suse.de>
5441 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
5442 undefined overflow unless they will cancel out.
5444 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
5446 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
5449 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
5452 * opts.h (write_langs): Declare.
5453 * opts-global.c (write_langs): Make it extern.
5455 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
5458 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
5459 overlapping regs when matching the pattern.
5461 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
5463 * config/aarch64/aarch64-simd.md
5464 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
5465 (aarch64_float_truncate_hi_v4sf_le): New.
5466 (aarch64_float_truncate_hi_v4sf_be): Likewise.
5468 2015-09-23 Richard Biener <rguenther@suse.de>
5470 * tree-ssa-structalias.c (intra_create_variable_infos): Build
5471 representatives for all restrict qualified pointer destinations.
5473 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
5475 * config/i386/i386.md (define_code_attr mshift): New.
5476 (define_mode_iterator SWI1248_AVX512BW): Rename ...
5477 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
5479 (define_insn "*k<logic><mode>"): Use new iterator name.
5480 (define_insn "*<mshift><mode>3"): New.
5482 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
5485 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
5486 mark the block as accessible.
5488 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
5490 * function.c (thread_prologue_and_epilogue_insns): Delete
5491 orig_entry_edge argument to try_shrink_wrapping.
5492 * shrink-wrap.c (can_get_prologue): New function.
5493 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
5494 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
5495 can_get_prologue where needed. Remove code that finds a single
5496 edge for the prologue. Remove code that tests if any reg clobbered
5497 by the prologue is live on the prologue edge. Remove code that finds
5498 the new prologue edge after duplicating blocks. Make a new prologue
5500 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
5502 2015-09-22 Jeff Law <law@redhat.com>
5504 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
5507 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
5509 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
5510 -Wtemplates, -Wnamespaces): Document.
5512 2015-09-22 Tom de Vries <tom@codesourcery.com>
5514 PR tree-optimization/67671
5515 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
5516 pointer references as restrict.
5518 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
5520 * config/nios2/nios2.c (nios2_legitimize_address): When handling
5521 'reg + reloc' cases, allow first operand to be non-REG, and use
5522 force_reg() to enforce address pattern.
5524 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
5527 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
5528 (define_mode_iterator VI12_AVX_AVX512F): New.
5529 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
5530 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
5531 (define_insn "*<code><mode>3"): ... Into new pattern using
5532 VI12_AVX_AVX512F iterators without masking.
5534 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
5536 * config.gcc: Support "skylake-avx512".
5537 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5538 PROCESSOR_SKYLAKE_AVX512.
5539 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
5540 (processor_target_table): Add "skylake-avx512".
5541 (PTA_SKYLAKE_AVX512): Define.
5542 (ix86_option_override_internal): Add "skylake_avx512".
5543 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
5544 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
5545 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
5546 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
5547 * doc/invoke.texi (skylake-avx512): New.
5549 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
5551 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
5553 (define_insn "kunpcksi"): Ditto.
5554 (define_insn "kunpckdi"): Ditto.
5556 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
5558 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
5559 iterator instead of fixed modes.
5561 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5563 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
5565 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
5566 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
5567 out_result. Update to support update-fetch operations.
5568 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
5569 Adjust for change to aarch64_gen_atomic_ldop.
5570 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
5571 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
5572 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
5573 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
5574 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
5576 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5578 * config/aarch64/aarch64-protos.h
5579 (aarch64_atomic_ldop_supported_p): Declare.
5580 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
5581 (enum aarch64_atomic_load_op_code): New.
5582 (aarch64_emit_atomic_load_op): New.
5583 (aarch64_gen_atomic_ldop): Update to support load-operate
5585 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
5587 (aarch64_atomic_<atomic_optab><mode>): New.
5588 (aarch64_atomic_<atomic_optab><mode>_lse): New.
5589 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
5590 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
5591 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
5593 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5595 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
5596 (UNSPECV_ATOMIC_LDOP_OR): New.
5597 (UNSPECV_ATOMIC_LDOP_BIC): New.
5598 (UNSPECV_ATOMIC_LDOP_XOR): New.
5599 (UNSPECV_ATOMIC_LDOP_PLUS): New.
5602 (aarch64_atomic_load<atomic_ldop><mode>): New.
5604 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5606 * config/aarch64/aarch64.md
5607 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
5610 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5612 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
5614 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
5615 (aarch64_gen_atomic_ldop): New.
5616 (aarch64_split_atomic_op): Fix whitespace and add a comment.
5617 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
5618 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
5619 (atomic_exchange<mode>): Replace with an expander.
5620 (aarch64_atomic_exchange<mode>): New.
5621 (aarch64_atomic_exchange<mode>_lse): New.
5622 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
5623 (aarch64_atomic_swp<mode>): New.
5625 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5627 * tree-inline.c (expand_call_inline): Use inform for extra note.
5628 Do not give a note with UNKNOWN_LOCATION.
5629 Replace input_location with gimple_location (stmt).
5630 Use true/false instead of TRUE/FALSE.
5632 2015-09-22 Tom de Vries <tom@codesourcery.com>
5634 PR tree-optimization/67666
5635 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
5636 with single field non-conservative.
5638 2015-09-21 David S. Miller <davem@davemloft.net>
5642 2015-09-11 David S. Miller <davem@davemloft.net>
5644 * config/sparc/constraints.md: Make "U" constraint a real register
5646 * config/sparc/sparc.c (TARGET_LRA_P): Define.
5647 (D_MODES, DF_MODES): Add missing cast.
5648 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
5649 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
5650 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
5652 * config/sparc/sparc.h (PROMOTE_MODE): Define.
5653 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
5654 provide these insn when flag_pic.
5656 2015-09-17 David S. Miller <davem@davemloft.net>
5658 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
5660 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
5662 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
5663 (HARD_REGNO_CALLER_SAVE_MODE): Define.
5664 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
5665 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
5666 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
5667 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
5668 provide when flag_pic.
5670 2015-09-21 Jeff Law <law@redhat.com>
5672 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
5675 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5677 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
5679 2015-09-21 Richard Biener <rguenther@suse.de>
5681 * passes.c (rest_of_decl_compilation): Do not call
5682 dwarf2out_early_global_decl for aliases.
5684 2015-09-21 Richard Biener <rguenther@suse.de>
5687 * dwarf2out.c (add_location_or_const_value_attribute): Remove
5688 attribute parameter. Early exit if either DW_AT_const_value
5689 or DW_AT_location are present already.
5690 (gen_variable_die): Adjust caller.
5691 (dwarf2out_late_global_decl): Likewise.
5693 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
5696 * config/sh/sh.c (sh_remove_overlapping_post_inc,
5697 sh_peephole_emit_move_insn): Add new functions.
5698 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
5699 sh_peephole_emit_move_insn): Declere them.
5700 * config/sh/sh.md: Use them in various peephole2 patterns.
5702 2015-09-21 Richard Biener <rguenther@suse.de>
5705 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
5706 address with -fno-delete-null-pointer-checks.
5708 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
5710 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
5711 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
5712 (reduc_uplus_v16qi): Remove.
5714 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
5715 (reduc_<VEC_reduc_name>_v2df): Remove.
5716 (reduc_<VEC_reduc_name>_v4sf): Remove.
5717 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
5719 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
5720 gen_ function by removing * prefix.
5721 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
5723 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5726 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
5727 Print i_bound without converting it to a tree.
5729 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
5731 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
5732 operands[4] operands[5] swap with std::swap, removed tmp variable.
5733 (arm_evpc_neon_vzip): Replaced in0/in1 and
5734 out0/out1 swaps with std::swap, removed x variable.
5735 (arm_evpc_neon_vtrn): Replaced in0/int1 and
5736 out0/out1 swaos with std::swap, removed x variable.
5737 (arm_expand_vec_perm_const_1): Replaced
5738 d->op0/d->op1 swap with std::swap, removed x variable.
5739 (arm_evpc_neon_vuzp): Replaced in0/in1 and
5740 out0/out1 swaps with std::swap, removed x variable.
5742 2015-09-21 Jonathan Yong <10walls@gmail.com>
5744 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
5745 sysroot/usr/lib/32api for additional win32 libraries,
5746 fixes failing Cygwin bootstrapping.
5748 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
5750 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
5752 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
5755 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
5756 (*mov_t_msb_neg): Rewrite negc pattern.
5758 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5760 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
5761 immediate generation code.
5763 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5765 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
5766 redundant immediate generation code.
5768 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5770 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
5771 (AARCH64_NUM_BITMASKS): Remove.
5772 (aarch64_bitmasks_cmp): Remove.
5773 (aarch64_build_bitmask_table): Remove.
5775 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5777 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
5778 slow immediate matching loops with a faster algorithm.
5780 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5782 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
5785 2015-09-20 Jeff Law <law@redhat.com>
5787 PR tree-optimization/47679
5788 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
5789 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
5790 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
5791 (thread_through_normal_block): Use record_temporary_equivalences.
5793 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
5795 * coretypes.h (gimple): Change typedef to be a forward declaration.
5796 * gimple.h (gimple_statement_base): rename to gimple.
5797 * (all functions and types using gimple): Adjust.
5800 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
5801 David Edelsohn <dje.gcc@gmail.com>
5803 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
5804 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5805 (EH_FRAME_THROUGH_COLLECT2): Define.
5806 (EH_TABLES_CAN_BE_READ_ONLY): Define.
5807 (ASM_OUTPUT_DWARF_PCREL): Define.
5808 (ASM_OUTPUT_DWARF_DATAREL): Define.
5810 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
5812 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
5815 2015-09-18 Jeff Law <law@redhat.com>
5817 PR tree-optimization/47679
5818 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
5820 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
5821 object. Update constructor.
5822 (pass_dominator::execute): Corresponding chagnes to declaration
5823 and initialization of avail_exprs_stack. Update constructor call
5824 for dom_opt_dom_walker object.
5825 (lookup_avail_expr, record_cond): Accept additional argument. Pass
5826 it down to children as needed.
5827 (record_equivalences_from_incoming_edge): Likewise.
5828 (eliminate_redundant_computations): Likewise.
5829 (record_equivalences_from_stmt): Likewise.
5830 (simplify_stmt_for_jump_threading): Likewise.
5831 (record_temporary_equivalences): Likewise.
5832 (optimize_stmt): Likewise.
5833 (dom_opt_dom_walker::thread_across_edge): Update access to
5834 avail_exprs_stack object and pass it to children as needed.
5835 (dom_opt_dom_walker::before_dom_children): Similarly.
5836 (dom_opt_dom_walker::after_dom_children): Similarly.
5837 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
5838 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
5839 Add avail_expr_stack argument. Pass it to children as needed.
5840 (dummy_simplify): Likewise.
5841 (simplify_control_stmt_condition): Likewise.
5842 (thread_around_empty_blocks): Likewise.
5843 (thread_through_normal_block): Likewise.
5844 (thread_across_edge): Likewise.
5845 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
5846 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
5848 PR tree-optimization/47679
5849 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
5851 (dom_opt_dom_walker): New private member holding the const_and_copies
5852 object. Update constructor.
5853 (pass_dominator::execute): Corresponding changes to declaration
5854 and initialization of const_and_copies. Update constructor call
5855 for the dom_opt_dom_walker object.
5856 (record_temporary_equivalences): Accept const_and_copies argument
5857 pass it down to children as needed.
5858 (record_equality): Likewise.
5859 (record_equivalences_from_incoming_edge): Likewise.
5860 (cprop_into_successor_phis, optimize_stmt): Likewise.
5861 (eliminate_redundant_computations): Likewise.
5862 (dom_opt_dom_walker::thread_across_edge): Update access to
5863 const_and_copies object and pass it to children as needed.
5864 (dom_opt_dom_walker::before_dom_children): Similarly.
5865 (dom_opt_dom_walker::after_dom_children): Similarly.
5867 PR tree-optimization/47679
5868 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
5869 it into the avail_exprs_stack class.
5870 (pass_dominator::execute): Corresponding changes to declaration
5871 and initialization of avail_exprs. Pass avail_exprs to
5872 dump_dominator_optimization_stats.
5873 (record_cond): Extract avail_exprs from avail_exprs_stack.
5874 (lookup_avail_expr): Similarly.
5875 (htab_staticstics): Remove unnecessary prototype. Move to earlier
5877 (dump_dominator_optimization_stats): Make static and prototype.
5878 Add argument for the hash table to dump.
5879 (debug_dominator_optimization_stats): Remove.
5880 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
5882 (debug_dominator_optimization_stats): Similarly.
5883 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
5884 "void" in prototype for pop_to_marker method. Add accessor method
5885 for the underlying avail_exprs table.
5887 * tree-ssa-threadedge.c: Remove trailing whitespace.
5889 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
5891 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
5893 (pa_ldil_cint_p): Likewise.
5894 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
5895 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
5897 * config/pa/pa.md: Likewise.
5899 2015-09-18 David Malcolm <dmalcolm@redhat.com>
5901 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
5902 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
5903 (diagnostic_show_locus): Likewise.
5904 (diagnostic_print_caret_line): Likewise.
5905 * diagnostic-show-locus.c: New file.
5907 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
5909 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
5910 "back" parameter. Declare label in #if block.
5912 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
5915 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
5916 the address to a register.
5918 2015-09-18 Jeff Law <law@redhat.com>
5920 PR tree-optimization/47679
5921 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
5922 * tree-ssa-dom.c: Remove unnecessary header includes.
5923 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
5924 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
5925 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
5926 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
5927 (pass_phi_only_cprop::execute): Likewise.
5928 (make_pass_phi_only_cprop): Likewise.
5929 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
5930 uses of file scoped statics by passing the required objects
5931 as parameters wherever needed.
5933 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
5934 David Edelsohn <dje.gcc@gmail.com>
5936 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
5937 EH_FRAME_THROUGH_COLLECT2.
5938 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
5940 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
5941 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
5942 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
5943 * except.c (switch_to_exception_section): Use a read-only section
5944 even if EH_FRAME_SECTION_NAME is undefined.
5945 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
5946 * collect2.c (write_c_file_stat): Provide dbase on AIX.
5947 (scan_prog_file): Don't export __dso_handle nor
5949 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5950 (EH_TABLES_CAN_BE_READ_ONLY): Define.
5951 (ASM_OUTPUT_DWARF_PCREL): Define.
5952 (ASM_OUTPUT_DWARF_DATAREL): Define.
5953 (EH_FRAME_THROUGH_COLLECT2): Define.
5954 (EH_FRAME_IN_DATA_SECTION): Delete.
5955 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
5956 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
5958 (rs6000_asm_output_dwarf_datarel): Declare.
5959 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
5960 (rs6000_aix_asm_output_dwarf_datarel): New.
5961 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
5962 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
5963 (EH_FRAME_THROUGH_COLLECT2): Define.
5964 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
5965 (EH_FRAME_THROUGH_COLLECT2): Define.
5966 (EH_TABLES_CAN_BE_READ_ONLY): Define.
5967 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
5968 (EH_FRAME_THROUGH_COLLECT2): New.
5969 (ASM_OUTPUT_DWARF_DATAREL): New.
5970 * doc/tm.texi: Regenerate.
5972 2015-09-18 Richard Biener <rguenther@suse.de>
5974 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
5975 we're in early phase.
5976 (schedule_generic_params_dies_gen): Likewise.
5977 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
5978 work as possible, retaining unhandled cases.
5979 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
5980 clear out generic_type_instances at the end.
5981 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
5982 (dwarf2out_early_finish): ... here. Do most of
5983 gen_remaining_tmpl_value_param_die_attribute here.
5985 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
5987 PR tree-optimization/67283
5988 * tree-sra.c (type_consists_of_records_p): Rename to...
5989 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
5990 (completely_scalarize_record): Rename to...
5991 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
5992 (scalarize_elem): New.
5993 (analyze_all_variable_accesses): Follow renamings.
5995 2015-09-18 Richard Biener <rguenther@suse.de>
5997 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
6000 2015-09-18 Richard Biener <rguenther@suse.de>
6002 PR tree-optimization/66142
6003 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
6004 treat MEM[&x] and x the same.
6005 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
6006 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
6007 when we simplified sth.
6008 (vn_reference_maybe_forwprop_address): Likewise.
6009 (valueize_refs_1): When we simplified through
6010 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
6011 set valueized_anything to true.
6012 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
6013 one ref kills the other instead of just a offset-based test.
6014 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
6015 for the operand_equal_p test to compare bases and also compare
6018 2015-09-17 Christian Bruel <christian.bruel@st.com>
6020 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
6022 2015-09-17 Richard Henderson <rth@redhat.com>
6025 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
6026 pointers that encode the alignment of the object.
6028 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
6030 PR rtl-optimization/66790
6031 * df-problems.c (LIVE): Amend documentation.
6033 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
6035 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
6037 (GTFILES): Replace optabs.c with optabs-libfunc.c.
6038 * genopinit.c (main): Add an include guard to insn-opinit.h.
6039 Protect the rtx_code parts with NUM_RTX_CODE.
6040 * optabs.h: Split parts out to...
6041 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
6042 * optabs.c: Split parts out to...
6043 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
6044 * cilk-common.c: Include optabs-query.h rather than optabs.h.
6045 * fold-const.c: Likewise.
6046 * target-globals.c: Likewise.
6047 * tree-if-conv.c: Likewise.
6048 * tree-ssa-forwprop.c: Likewise.
6049 * tree-ssa-loop-prefetch.c: Likewise.
6050 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
6051 Remove unncessary include files.
6052 * tree-ssa-phiopt.c: Likewise.
6053 * tree-ssa-reassoc.c: Likewise.
6054 * tree-switch-conversion.c: Likewise.
6055 * tree-vect-data-refs.c: Likewise.
6056 * tree-vect-generic.c: Likewise.
6057 * tree-vect-loop.c: Likewise.
6058 * tree-vect-patterns.c: Likewise.
6059 * tree-vect-slp.c: Likewise.
6060 * tree-vect-stmts.c: Likewise.
6061 * tree-vrp.c: Likewise.
6062 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
6063 rather than optabs.h.
6064 * expr.c: Include optabs-tree.h.
6065 * function.c: Likewise.
6067 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
6070 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
6071 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
6072 * config/arm/arm.c: Include common/common-target.h.
6073 (use_return_insn): Return 0 if the static chain register was saved
6074 above a non-APCS frame.
6075 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
6076 (struct scratch_reg): New.
6077 (get_scratch_register_on_entry): New function.
6078 (release_scratch_register_on_entry): Likewise.
6079 (arm_emit_probe_stack_range): Likewise.
6080 (output_probe_stack_range): Likewise.
6081 (arm_expand_prologue): Factor out code dealing with the IP register
6082 for nested function and adjust it for stack checking.
6083 Invoke arm_emit_probe_stack_range if static builtin stack checking
6085 (thumb1_expand_prologue): Sorry out if static builtin stack checking
6087 (arm_expand_epilogue): Add the saved static chain register, if any, to
6088 the amount of pre-pushed registers to pop.
6089 (arm_frame_pointer_required): Return true if static stack checking is
6090 enabled and we want to catch the exception with the EABI unwinder.
6091 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
6092 (UNSPEC_PROBE_STACK_RANGE): Likewise.
6093 * config/arm/arm.md (probe_stack): New insn.
6094 (probe_stack_range): Likewise.
6096 2015-09-17 Richard Biener <rguenther@suse.de>
6098 * genmatch.c (parser::parse_expr): Improve error message
6099 for mis-placed flags.
6101 2015-09-17 Richard Biener <rguenther@suse.de>
6103 * passes.c (rest_of_decl_compilation): Always call early_global_decl
6104 debug hook when we created a varpool node.
6105 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
6106 dwarf2out_early_global_decl, when not just add location or
6107 value attributes to existing DIEs.
6109 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
6111 * config/aarch64/aarch64.md (copysigndf3): New.
6112 (copysignsf3): Likewise.
6114 2015-09-17 David S. Miller <davem@davemloft.net>
6116 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
6117 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
6118 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
6119 (HARD_REGNO_CALLER_SAVE_MODE): Define.
6120 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
6121 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
6122 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
6123 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
6124 provide when flag_pic.
6126 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
6128 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
6129 object_allocator change.
6131 2015-09-17 Bin Cheng <bin.cheng@arm.com>
6133 PR tree-optimization/66388
6134 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
6135 (dump_iv): Dump no_overflow information.
6136 (alloc_iv): Initialize new field for struct iv.
6137 (mark_bivs): Count number of no_overflow bivs.
6138 (find_deriving_biv_for_expr, record_biv_for_address_use): New
6140 (idx_find_step): Call new functions above.
6141 (add_candidate_1, add_candidate): New paramter.
6142 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
6143 (get_computation_aff): Simplify convertion of cand for BIV.
6144 (get_computation_cost_at): Step cand's base if necessary.
6146 2015-09-17 Bin Cheng <bin.cheng@arm.com>
6148 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
6150 (tree_simplify_using_condition): Ditto.
6151 (simplify_using_initial_conditions): Ditto.
6152 (loop_exits_before_overflow): Pass new argument to function
6153 simplify_using_initial_conditions. Remove case for type conversions
6155 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
6157 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
6158 in iv base using loop initial conditions.
6160 2015-09-16 Jeff Law <law@redhat.com>
6162 PR tree-optimization/47679
6163 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
6164 (free_all_edge_infos): Use it.
6165 (allocate_edge_info): Free preexisting edge info data.
6166 (pass_dominator::execute): Set up initial edge info structures.
6167 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
6169 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
6170 If non-null, then push/pop markers appropriately.
6171 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
6172 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
6175 2015-09-16 James Bowman <james.bowman@ftdichip.com>
6177 * config/ft32/ft32.c: Fix the memory address space predicate.
6179 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
6182 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
6183 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
6185 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6187 * toplev.h (check_global_declaration): Remove declaration.
6188 * toplev.c (check_global_declaration): Move to ...
6189 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
6190 (analyze_functions): Update call.
6192 2015-09-16 David S. Miller <davem@davemloft.net>
6194 * lra-constraints.c (simplify_operand_subreg): Do not assume that
6195 lowpart of a SUBREG has offset zero.
6197 2015-09-16 Jeff Law <law@redhat.com>
6199 PR tree-optimization/47679
6200 * tree-ssa-dom.c (enum expr_kind): Moved from here to
6201 tree-ssa-scopedtables.h.
6202 (struct hashable_expr, class expr_hash_elt): Likewise.
6203 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
6204 Move associated methods into tree-ssa-scopedtables.c.
6205 (avail_expr_hash, initialize_expr_from_cond): Similarly.
6206 (hashable_expr_equal_p, add_expr_commutative): Likewise.
6207 (add_hashable_expr): Likewise.
6208 (record_cond): Delete element directly.
6209 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
6210 private copy ctor and assignment operator methods.
6211 (expr_elt_hasher): Inline trivial methods.
6212 (initialize_expr_from_cond): Prototype.
6213 * tree-ssa-scopedtables.c: Add necessary includes, functions and
6214 methods that were previously in tree-ssa-dom.c. Improve various
6217 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
6219 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
6221 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
6224 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
6227 2015-09-16 Richard Biener <rguenther@suse.de>
6230 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
6231 location of possibly shared trees.
6233 2015-09-16 Richard Biener <rguenther@suse.de>
6236 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
6238 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
6240 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
6241 offset and size computations instead of HOST_WIDE_INT.
6243 2015-09-16 Richard Biener <rguenther@suse.de>
6246 * fold-const.c (extract_muldiv_1): Properly extend multiplication
6247 result before builting a tree via wide_int_to_tree.
6249 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
6251 * Makefile.in: Add memory-block.cc
6252 (pool_allocator::initialize): Use fixed block size.
6253 (pool_allocator::release): Use memory_block_pool.
6254 (pool_allocator::allocate): Likewise.
6255 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
6257 * cfg.c (initialize_original_copy_tables): Likewise.
6258 * cselib.c (elt_list_pool, elt_loc_list_pool,
6259 cselib_val_pool): Likewise.
6260 * df-problems.c (df_chain_alloc): Likewise.
6261 * df-scan.c (df_scan_alloc): Likewise.
6262 * dse.c (cse_store_info_pool, rtx_store_info_pool,
6263 read_info_type_pool, insn_info_type_pool, bb_info_pool,
6264 group_info_pool, deferred_change_pool): Likewise.
6265 * et-forest.c (et_nodes, et_occurrences): Likewise.
6266 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
6267 ipcp_agg_lattice_pool): Likewise.
6268 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
6269 * ipa-profile.c (histogram_pool): Likewise.
6270 * ipa-prop.c (ipa_refdesc_pool): Likewise.
6271 * ira-build.c (live_range_pool, allocno_pool, object_pool,
6272 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
6273 * ira-color.c (update_cost_record_pool): Likewise.
6274 * lra-lives.c (lra_live_range_pool): Likewise.
6275 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
6276 * memory-block.cc: New file.
6277 * memory-block.h: New file.
6278 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
6279 * sched-deps.c (sched_deps_init): Likewise.
6280 * sel-sched-ir.c (sched_lists_pool): Likewise.
6281 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
6282 * tree-sra.c (access_pool): Likewise.
6283 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
6284 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
6285 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
6286 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
6287 * tree-ssa-strlen.c (strinfo_pool): Likewise.
6288 * tree-ssa-structalias.c (variable_info_pool): Likewise.
6289 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
6290 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
6292 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
6294 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
6296 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
6299 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
6301 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
6302 to pass TLS call argument, according to current ABI.
6303 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
6304 callx0 for TLS call, according to current ABI.
6306 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
6308 * tree-eh.c (lower_try_finally_dup_block): Clear location information
6309 on stack restore statements.
6310 (decide_copy_try_finally): Do not consider a stack restore statement as
6311 coming from sources.
6313 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
6315 * config/alpha/alpha.c (alpha_expand_block_clear): Use
6316 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
6318 2015-09-15 Jeff Law <law@redhat.com>
6320 PR tree-optimization/47679
6321 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
6322 methods and private members.
6323 (avail_exprs_stack): Similarly. Change type of global
6324 from a pair of expr_hash_elt_t to the new class.
6325 (expr_elt_hasher::hash): Corresponding changes.
6326 (expr_elt_hasher::equal): Similarly.
6327 (avail_expr_hash): Similarly.
6328 (pass_dominator::execute): Similarly.
6329 (dom_opt_dom_walker::thread_across_edge): Similarly.
6330 (record_cond): Similarly.
6331 (dom_opt_dom_walker::before_dom_children): Similarly.
6332 (dom_opt_dom_walker::after_dom_children): Similarly.
6333 (lookup_avail_expr): Likewise.
6334 (initialize_hash_element): Now a expr_hash_elt constructor.
6335 (initialize_hash_element_from_expr): Similarly.
6336 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
6337 (free_expr_hash_elt): Call dtor for the element.
6338 (remove_local_expressions_from_table): Now the "pop_to_marker"
6339 method in the available_exprs_stack class.
6340 (avail_expr_stack::record_expr): Method factored out.
6341 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
6343 (hashable_expr_equal_p): Fix formatting.
6345 2015-09-15 David Malcolm <dmalcolm@redhat.com>
6347 * input.h (location_get_source_line): Drop "expanded_location"
6348 param in favor of a file and line number.
6349 * input.c (location_get_source_line): Likewise.
6350 (dump_location_info): Update for change in signature of
6351 location_get_source_line.
6352 * diagnostic.c (diagnostic_print_caret_line): Likewise.
6354 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
6356 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
6357 Bump to 4KB for SJLJ exceptions.
6358 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
6359 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
6360 * doc/tm.texi: Regenerate.
6362 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6364 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
6365 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
6368 2015-09-15 Richard Biener <rguenther@suse.de>
6370 PR tree-optimization/67470
6371 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
6372 structure for PHI hoisting by inserting a forwarder block
6375 2015-09-15 Christian Bruel <christian.bruel@st.com>
6377 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
6378 (arm_option_print): New function.
6380 2015-09-15 Christian Bruel <christian.bruel@st.com>
6383 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
6384 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
6385 Remove flags parameter.
6386 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
6387 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
6388 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
6389 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
6390 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
6391 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
6392 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
6393 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
6395 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6397 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
6399 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
6400 AARCH64_VALID_SIMD_DREG_MODE.
6402 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6404 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
6405 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
6406 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
6407 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
6408 aarch64_ld4_lane<mode>): Combine together, making...
6409 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
6410 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
6411 aarch64_st4_lane<mode>): Combine together, making...
6412 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
6413 * config/aarch64/iterators.md (nregs): Add comment.
6415 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6417 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
6418 Change operand mode from <V_TWO_ELEM> to BLK.
6419 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
6420 (aarch64_vec_store_lanesoi_lane<mode): Likewise
6421 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
6422 (aarch64_ld2_lane<mode>): Likewise.
6423 (aarch64_st2_lane<VQ:mode>): Likewise.
6424 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
6426 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6428 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
6429 Change operand mode from <V_FOUR_ELEM> to BLK.
6430 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
6431 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
6432 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
6433 (aarch64_ld4_lane<mode>): Likewise.
6434 (aarch64_st4_lane<mode>): Likewise.
6435 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
6437 2015-09-15 Richard Biener <rguenther@suse.de>
6440 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
6441 transfer EH info from old to new stmt.
6442 (replace_call_with_value): Likewise.
6443 (replace_call_with_call_and_fold): Likewise.
6444 (gimple_fold_builtin_memory_op): Likewise.
6445 (gimple_fold_builtin_memset): Likewise.
6446 (gimple_fold_builtin_stpcpy): Likewise.
6447 (gimple_fold_call): Likewise.
6449 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6451 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
6453 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
6454 (aarch64_simd_intEI_type_node): Likewise.
6455 (aarch64_simd_builtin_std_type): Remove EImode case.
6456 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
6457 * config/aarch64/aarch64-modes.def: Remove EImode.
6459 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6461 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
6462 Change operand mode from <V_THREE_ELEM> to BLK.
6463 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
6464 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
6465 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
6466 (aarch64_ld3_lane<mode>): Likewise.
6467 (aarch64_st3_lane<mode>): Likewise.
6468 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
6470 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6472 * config/aarch64/aarch64-simd.md
6473 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
6474 Change all TImode operands to BLKmode.
6475 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
6476 Change all EImode operands to BLKmode.
6477 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
6478 Change all OImode operands to BLKmode.
6480 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
6481 and call set_mem_size.
6482 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
6484 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
6486 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6488 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
6490 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
6492 (vec_store_lanesci_lane<mode>): Rename to...
6493 (aarch64_vec_store_lanesci_lane<mode>): ...this.
6495 (vec_store_lanesxi_lane<mode>): Rename to...
6496 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
6498 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
6499 aarch64_st4_lane<mode>): Follow renaming.
6501 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6503 * config/s390/s390.c (s390_const_operand_ok): Add missing
6506 2015-09-15 Richard Biener <rguenther@suse.de>
6509 * lto-streamer.h (lto_location_cache::current_sysp): Properly
6511 * lto-streamer-out.c (clear_line_info): Likewise.
6513 2015-09-15 Richard Biener <rguenther@suse.de>
6515 * doc/match-and-simplify.texi: Fix wording.
6517 2015-09-15 Bin Cheng <bin.cheng@arm.com>
6519 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
6520 unnecessary type conversion in op1.
6522 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
6524 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
6525 (dup_block_and_redirect): Delete function.
6526 (can_dup_for_shrink_wrapping): New function.
6527 (fix_fake_fallthrough_edge): New function.
6528 (try_shrink_wrapping): Rewrite function.
6529 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
6531 2015-09-14 Rich Felker <dalias@libc.org>
6533 * configure.ac: Change target pattern for sh TLS support
6534 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
6535 * configure: Regenerate.
6537 2015-09-14 Jeff Law <law@redhat.com>
6539 PR tree-optimization/47679
6540 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
6541 type rather than void *.
6543 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
6546 * diagnostic.c (diagnostic_initialize): Do not set
6547 some_warnings_are_errors.
6548 (diagnostic_finish): Use DK_WERROR count instead.
6549 (diagnostic_report_diagnostic): Do not set
6550 some_warnings_are_errors.
6551 * diagnostic.h (struct diagnostic_context): Remove
6552 some_warnings_are_errors.
6554 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
6556 * config/sparc/predicates.md (const_all_ones_operand): Use
6557 CONSTM1_RTX to simplify definition.
6559 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
6562 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
6565 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
6567 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
6568 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
6569 OPT_fshow_column to handled saved option cases.
6570 (append_compiler_options): Do not skip the above added options.
6572 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6575 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
6576 nopcrelative_literal_loads.
6577 (aarch64_classify_address): Likewise.
6578 (aarch64_constant_pool_reload_icode): Define.
6579 (aarch64_secondary_reload): Handle secondary reloads for
6581 (aarch64_override_options): Handle nopcrelative_literal_loads.
6582 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
6583 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
6585 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
6586 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
6587 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
6589 * doc/invoke.texi (mpc-relative-literal-loads): Document.
6591 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
6594 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
6595 sync_compare_and_swap_optab libcall to target_oval.
6597 2015-09-14 Marek Polacek <polacek@redhat.com>
6599 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
6601 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
6603 2015-09-11 Mark Wielaard <mjw@redhat.com>
6606 * toplev.c (check_global_declaration): Check and use
6607 warn_unused_const_variable.
6608 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
6609 (-Wunused-variable): Remove non-constant. For C implies
6610 -Wunused-const-variable.
6611 (-Wunused-const-variable): New.
6613 2015-09-14 Richard Biener <rguenther@suse.de>
6615 * doc/match-and-simplify.texi: Update for changed syntax
6616 of inner ifs and the new switch expression.
6618 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
6620 * config/i386/haswell.md: New file describing Haswell pipeline.
6621 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
6622 haswell-like processors.
6623 (ix86_reassociation_width): Increase reassociation width for 64-bit
6624 Haswell processor family.
6625 * config/i386/i386.md: Introduce haswell cpu and include new md file.
6627 2015-09-14 Richard Biener <rguenther@suse.de>
6629 * doc/match-and-simplify.texi: Fixup some formatting issues
6630 and document the 's' flag.
6632 2015-09-13 Olivier Hainque <hainque@adacore.com>
6633 Eric Botcazou <ebotcazou@adacore.com>
6635 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
6636 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
6637 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
6638 (TARGET_CPU_gr5): Likewise.
6639 (TARGET_CPU_gr6): Likewise.
6640 (MULTILIB_DEFAULTS): Likewise.
6641 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
6642 for mcpu=gr5 and mcpu=gr6.
6643 (MULTILIB_DIRNAMES): Adjust accordingly.
6645 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6647 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
6648 (mem_ref_p): Likewise.
6649 (outermost_indep_loop): Adjust.
6650 (mem_ref_in_stmt): Likewise.
6651 (determine_max_movement): Likewise.
6652 (mem_ref_alloc): Likewise.
6653 (record_mem_ref_loc): Likewise.
6654 (set_ref_stored_in_loop): Likewise.
6655 (mark_ref_stored): Likewise.
6656 (gather_mem_refs_stmt): Likewise.
6657 (mem_refs_may_alias_p): Likewise.
6658 (for_all_locs_in_loop): Likewise.
6659 (struct rewrite_mem_ref_loc): Likewise.
6660 (rewrite_mem_refs): Likewise.
6661 (struct first_mem_ref_loc_1): Likewise.
6662 (first_mem_ref_loc): Likewise.
6663 (struct sm_set_flag_if_changed): Likewise.
6664 (execute_sm_if_changed_flag_set): Likewise.
6665 (execute_sm): Likewise.
6666 (hoist_memory_references):
6667 (struct ref_always_accessed): Likewise.
6668 (ref_always_accessed_p): Likewise.
6669 (refs_independent_p): Likewise.
6670 (record_dep_loop): Likewise.
6671 (ref_indep_loop_p_1): Likewise.
6672 (ref_indep_loop_p_2): Likewise.
6673 (ref_indep_loop_p): Likewise.
6674 (can_sm_ref_p): Likewise.
6675 (find_refs_for_sm): Likewise.
6676 (tree_ssa_lim_finalize): Likewise.
6678 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6680 * dwarf2out.c (dw_attr_ref): Remove typedef.
6681 (dw_line_info_ref): Likewise.
6682 (pubname_ref): Likewise.
6683 (dw_ranges_ref): Likewise.
6684 (dw_ranges_by_label_ref): Likewise.
6685 (comdat_type_node_ref): Likewise.
6687 (get_AT_low_pc): Likewise.
6688 (get_AT_hi_pc): Likewise.
6689 (get_AT_string): Likewise.
6690 (get_AT_flag): Likewise.
6691 (get_AT_unsigned): Likewise.
6692 (get_AT_ref): Likewise.
6693 (get_AT_file): Likewise.
6694 (remove_AT): Likewise.
6695 (print_die): Likewise.
6696 (check_die): Likewise.
6697 (die_checksum): Likewise.
6698 (attr_checksum_ordered): Likewise.
6699 (struct checksum_attributes): Likewise.
6700 (collect_checksum_attributes): Likewise.
6701 (die_checksum_ordered): Likewise.
6702 (same_die_p): Likewise.
6703 (is_declaration_die): Likewise.
6704 (clone_die): Likewise.
6705 (clone_as_declaration): Likewise.
6706 (copy_declaration_context): Likewise.
6707 (break_out_comdat_types): Likewise.
6708 (copy_decls_walk): Likewise.
6709 (output_location_lists): Likewise.
6710 (external_ref_hasher::hash): Likewise.
6711 (optimize_external_refs_1): Likewise.
6712 (build_abbrev_table): Likewise.
6713 (size_of_die): Likewise.
6714 (unmark_all_dies): Likewise.
6715 (size_of_pubnames): Likewise.
6716 (output_die_abbrevs): Likewise.
6717 (output_die): Likewise.
6718 (output_pubnames): Likewise.
6719 (add_ranges_num): Likewise.
6720 (add_ranges_by_labels): Likewise.
6721 (add_high_low_attributes): Likewise.
6722 (gen_producer_string): Likewise.
6723 (dwarf2out_set_name): Likewise.
6724 (new_line_info_table): Likewise.
6725 (prune_unused_types_walk_attribs): Likewise.
6726 (prune_unused_types_update_strings): Likewise.
6727 (prune_unused_types): Likewise.
6728 (resolve_addr): Likewise.
6729 (optimize_location_lists_1): Likewise.
6730 (index_location_lists): Likewise.
6731 (dwarf2out_finish): Likewise.
6733 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6735 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
6737 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6739 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
6740 (dump_asserts_for): Adjust.
6741 (register_new_assert_for): Likewise.
6742 (process_assert_insertions): Likewise.
6743 (insert_range_assertions): Likewise.
6745 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6747 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
6749 (new_temp_expr_table): Adjust.
6750 (free_temp_expr_table): Likewise.
6751 (version_to_be_replaced_p): Likewise.
6752 (make_dependent_on_partition): Likewise.
6753 (add_to_partition_kill_list): Likewise.
6754 (remove_from_partition_kill_list): Likewise.
6755 (add_dependence): Likewise.
6756 (finished_with_expr): Likewise.
6757 (process_replaceable): Likewise.
6758 (kill_expr): Likewise.
6759 (kill_virtual_exprs): Likewise.
6760 (mark_replaceable): Likewise.
6761 (find_replaceable_in_bb): Likewise.
6762 (find_replaceable_exprs): Likewise.
6763 (debug_ter): Likewise.
6765 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6767 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
6768 (struct btr_user): Rename from btr_user_s.
6769 (struct btr_def): Rename from btr_def_s.
6770 (find_btr_def_group): Adjust.
6771 (add_btr_def): Likewise.
6772 (new_btr_user): Likewise.
6773 (note_other_use_this_block): Likewise.
6774 (compute_defs_uses_and_gen): Likewise.
6775 (link_btr_uses): Likewise.
6776 (build_btr_def_use_webs): Likewise.
6777 (block_at_edge_of_live_range_p): Likewise.
6778 (btr_def_live_range): Likewise.
6779 (combine_btr_defs): Likewise.
6780 (move_btr_def): Likewise.
6781 (migrate_btr_def): Likewise.
6782 (migrate_btr_defs): Likewise.
6784 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6786 * var-tracking.c (shared_hash_def): Rename to shared_hash.
6787 (shared_hash): Remove typedef.
6788 (struct dataflow_set): Adjust.
6789 (shared_hash_unshare): Likewise.
6790 (dataflow_set_merge): Likewise.
6791 (vt_initialize): Likewise.
6792 (vt_finalize): Likewise.
6794 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6796 * var-tracking.c (struct location_chain): Rename from
6798 (struct variable_part): Adjust.
6799 (variable_htab_free): Likewise.
6800 (unshare_variable): Likewise.
6801 (get_init_value): Likewise.
6802 (get_addr_from_local_cache): Likewise.
6803 (drop_overlapping_mem_locs): Likewise.
6804 (val_reset): Likewise.
6805 (struct variable_union_info): Likewise.
6806 (variable_union): Likewise.
6807 (find_loc_in_1pdv): Likewise.
6808 (insert_into_intersection): Likewise.
6809 (intersect_loc_chains): Likewise.
6810 (canonicalize_loc_order_check): Likewise.
6811 (canonicalize_values_mark): Likewise.
6812 (canonicalize_values_star): Likewise.
6813 (canonicalize_vars_star): Likewise.
6814 (variable_merge_over_cur): Likewise.
6815 (remove_duplicate_values): Likewise.
6816 (variable_post_merge_new_vals): Likewise.
6817 (variable_post_merge_perm_vals): Likewise.
6818 (find_mem_expr_in_1pdv): Likewise.
6819 (dataflow_set_preserve_mem_locs): Likewise.
6820 (dataflow_set_remove_mem_locs): Likewise.
6821 (variable_part_different_p): Likewise.
6822 (onepart_variable_different_p): Likewise.
6823 (find_src_set_src): Likewise.
6824 (dump_var): Likewise.
6825 (set_slot_part): Likewise.
6826 (clobber_slot_part): Likewise.
6827 (delete_slot_part): Likewise.
6828 (vt_expand_var_loc_chain): Likewise.
6829 (emit_note_insn_var_location): Likewise.
6830 (vt_finalize): Likewise.
6832 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6834 * dse.c (store_info_t): Remove typedef.
6835 (group_info_t): Likewise.
6836 (const_group_info_t): Likewise.
6837 (deferred_change_t): Likewise.
6838 (get_group_info): Adjust.
6839 (free_store_info): Likewise.
6840 (canon_address): Likewise.
6841 (clear_rhs_from_active_local_stores): Likewise.
6842 (record_store): Likewise.
6843 (replace_read): Likewise.
6844 (check_mem_read_rtx): Likewise.
6845 (scan_insn): Likewise.
6846 (remove_useless_values): Likewise.
6847 (dse_step1): Likewise.
6848 (dse_step2_init): Likewise.
6849 (dse_step2_nospill): Likewise.
6850 (scan_stores_nospill): Likewise.
6851 (scan_reads_nospill): Likewise.
6852 (dse_step3_exit_block_scan): Likewise.
6853 (dse_step3): Likewise.
6854 (dse_step5_nospill): Likewise.
6855 (dse_step6): Likewise.
6857 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6859 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
6860 (alias_set_entry): Remove typedef.
6861 (alias_set_subset_of): Adjust.
6862 (alias_sets_conflict_p): Likewise.
6863 (init_alias_set_entry): Likewise.
6864 (get_alias_set): Likewise.
6865 (new_alias_set): Likewise.
6866 (record_alias_subset): Likewise.
6868 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
6870 * doc/install.texi (Downloading the source): Mark up
6871 contrib/download_prerequisites properly and drop leading "./".
6873 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6875 * config/arc/arc.h: Remove define of STRUCT_VALUE.
6876 * config/lm32/lm32.h: Likewise.
6877 * config/mep/mep.h: Likewise.
6878 * config/visium/visium.h: Likewise.
6879 * system.h: Poison STRUCT_VALUE macro.
6881 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
6883 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
6884 CONSTANT_P operands.
6886 2015-09-11 David S. Miller <davem@davemloft.net>
6888 * config/sparc/constraints.md: Make "U" constraint a real register
6890 * config/sparc/sparc.c (TARGET_LRA_P): Define.
6891 (D_MODES, DF_MODES): Add missing cast.
6892 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
6893 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
6894 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
6896 * config/sparc/sparc.h (PROMOTE_MODE): Define.
6897 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
6898 provide these insn when flag_pic.
6900 2015-09-11 Jeff Law <law@redhat.com>
6902 PR tree-optimization/47679
6903 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
6904 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
6905 member with m_. Update inline member functions as necessary. Add
6907 * tree-ssa-scopedtables.c: Update const_and_copies's member
6908 functions to use m_ prefix to access the stack.
6910 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
6912 * graphite-optimize-isl.c (disable_tiling): Remove.
6913 (get_schedule_for_band): Do not use disable_tiling.
6914 (get_prevector_map): Delete function.
6915 (enable_polly_vector): Remove.
6916 (get_schedule_for_band_list): Remove dead code.
6918 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
6920 * graphite-optimize-isl.c (get_tile_map): Refactor.
6921 (get_schedule_for_band): Same.
6922 (getScheduleForBand): Same.
6923 (get_prevector_map): Same.
6924 (get_schedule_for_band_list): Same.
6925 (get_schedule_map): Same.
6926 (get_single_map): Same.
6927 (apply_schedule_map_to_scop): Same.
6928 (optimize_isl): Same.
6930 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6933 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
6935 * config/aarch64/iterators.md (GPF_TF_F16): New.
6938 2015-09-10 Nathan Sidwell <nathan@acm.org>
6940 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
6941 (nvptx_reorg): Adjust comments.
6943 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
6946 * configure.ac: Check if setenv and unsetenv are declared.
6947 * configure: Rebuild.
6948 * config.in: Rebuild.
6949 * system.h: Declare setenv and unsetenv if not declared.
6951 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6953 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
6954 commentary to simplify permute mask adjustment equation.
6955 (special_handling_values): Add SH_VPERM.
6956 (const_load_sequence_p): New function.
6957 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
6958 the mask loaded from the constant pool.
6959 (adjust_vperm): New function.
6960 (handle_special_swappables): Call adjust_vperm.
6961 (dump_swap_insn_table): Handle SH_VPERM.
6963 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
6965 * shrink-wrap.c (requires_stack_frame_p): Remove static.
6966 * shrink-wrap.h (requires_stack_frame_p): Put back.
6968 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
6970 * reload1.c (elimination_costs_in_insn): Locally turn
6971 -Wmaybe-uninitialized into a warning.
6973 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
6975 * shrink-wrap.c (requires_stack_frame_p): Make static.
6976 (prepare_shrink_wrap): Likewise.
6977 (dup_block_and_redirect): Likewise.
6978 * shrink-wrap.h: Remove declarations of those functions.
6980 2015-09-10 Mark Wielaard <mjw@redhat.com>
6982 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
6984 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
6987 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
6988 missing simplify_gen_subreg.
6990 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6992 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
6993 the vector element is bigger than 64 bit.
6995 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6997 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
6998 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
7000 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7002 * config/s390/s390.c: Add V1TImode to constant pool modes.
7004 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7007 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
7008 predicate. Set predicable_short_it attr to "no".
7010 2015-09-10 Jiong Wang <jiong.wang@arm.com>
7012 PR rtl-optimization/67421
7013 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
7014 left wide shift tranformation.
7016 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
7018 * common/config/arc/arc-common.c: Remove references to A5.
7019 * config/arc/arc-opts.h: Likewise.
7020 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
7021 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
7022 * config/arc/t-arc-newlib: Likewise.
7024 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
7026 * config/arc/arc.md (length): Fix attribute length for conditional
7027 executed instructions with long immediate.
7029 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7031 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
7032 type for second alternative.
7034 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
7036 * doc/invoke.texi (Downloading GCC): Mention
7037 contrib/download_prerequisites script.
7039 2015-09-10 Jakub Jelinek <jakub@redhat.com>
7042 * gimplify.c (gimplify_omp_for): If inner stmt is not found
7043 for combined loop, assert seen_error () and return GS_ERROR.
7046 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
7047 if decl is already in outer->variables.
7050 * gimplify.c (gimplify_scan_omp_clauses): Instead of
7051 asserting that decl is not specified in octx->variables,
7052 break out of the loop if it is.
7055 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
7056 iterator is not explicitly determined, but is defined inside
7057 of the combined workshare region, handle it like if it has
7058 DECL_EXPR in OMP_FOR_PRE_BODY.
7060 2015-09-09 Nathan Sidwell <nathan@acm.org>
7062 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
7063 (*cmp<mode>): Add assembler spacing.
7064 (setcc_int<mode>, set_cc_float<mode>): Likewise.
7065 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
7067 (write_func_decl_from_insn): Refactor argument loops & comma emission.
7068 (nvptx_expand_call): Likewise.
7069 (nvptx_output_call_insn): Likewise.
7070 (nvptx_reorg_subreg): Add spacing.
7072 2015-09-09 Marek Polacek <polacek@redhat.com>
7075 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
7078 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
7081 * doc/invoke.texi ([Wsubobject-linkage]): Document.
7083 2015-09-09 Tom de Vries <tom@codesourcery.com>
7085 * params-list.h: Add missing copyright notice.
7087 2015-09-09 Nathan Sidwell <nathan@acm.org>
7089 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
7090 sel_truesi, not andsi.
7092 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7094 * config/arm/arm.md (*subsi3_compare0): Rename to...
7095 (subsi3_compare0): ... This.
7096 (modsi3): New define_expand.
7097 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
7098 when operand is power of 2.
7100 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7102 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
7103 (*neg<mode>2_compare0): Rename to...
7104 (neg<mode>2_compare0): ... This.
7105 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
7106 Move check for speed inside the if-then-elses. Reflect
7107 CSNEG sequence in MOD by power of 2 case.
7109 2015-09-09 Alan Modra <amodra@gmail.com>
7112 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
7113 reload replacement for PRE_MODIFY address reg.
7115 2015-09-09 Sebastian Pop <s.pop@samsung.com>
7117 PR tree-optimization/53852
7118 * config.in: Regenerate.
7119 * configure: Regenerate.
7120 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
7121 * graphite-optimize-isl.c (optimize_isl): Stop computation when
7122 PARAM_MAX_ISL_OPERATIONS is reached.
7123 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
7124 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
7125 result equal to isl_stat_ok as the status now can be isl_error_quota.
7126 (subtract_commutative_associative_deps): Same.
7127 (compute_deps): Same.
7129 2015-09-08 Aditya Kumar <hiraditya@msn.com>
7130 Sebastian Pop <s.pop@samsung.com>
7132 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
7133 Return the parameter if it was saved in corresponding
7134 parameter_rename_map of the region.
7135 (copy_def): Copy def from sese region to the newly created region.
7136 (copy_internal_parameters): Copy all the internal parameters defined
7137 within a region to the newly created region.
7138 (graphite_regenerate_ast_isl): Copy parameters to the new region before
7139 translating isl to gimple.
7140 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
7141 the loop-nest does not have any data-references.
7142 (build_graphite_scops): Create a scop only when there is at least one
7144 (contains_only_close_phi_nodes): Deleted.
7145 (print_graphite_scop_statistics): Deleted
7146 (print_graphite_statistics): Deleted
7147 (limit_scops): Deleted.
7148 (build_scops): Removed call to limit_scops.
7149 * sese.c (new_sese): Construct.
7150 (free_sese): Destruct.
7151 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
7153 (set_rename): Pass sese region so that parameters inside the region can
7154 be added to its parameter_rename_map.
7155 (rename_uses): Pass sese region.
7156 (graphite_copy_stmts_from_block): Do not copy parameters that have been
7157 generated in the header of the scop. For each SSA_NAME in the
7158 parameter_rename_map rename its usage.
7159 (invariant_in_sese_p_rec): Return false if tree t is defined outside
7161 (scalar_evolution_in_region): If the tree t is invariant just return t.
7162 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
7163 struct sese to keep track of all the parameters which need renaming.
7164 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
7166 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
7168 2015-09-08 Tom de Vries <tom@codesourcery.com>
7170 * Makefile.in (generated_files): Add params.list.
7171 (params.list, s-params.list): Add rule.
7172 * params.h (enum compiler_param): Include params-list.h. Move define
7173 DEFPARAM, include params.def and undef DEFPARAM ...
7174 * params-list.h: ... here. New file.
7176 2015-09-08 David Malcolm <dmalcolm@redhat.com>
7178 * pretty-print.h (printer_fn): Fix typo in comment.
7180 2015-09-07 Jeff Law <law@redhat.com>
7182 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
7184 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7186 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
7187 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
7188 (arm_neon_fp16_hw): New.
7190 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7192 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
7193 UNITS_PER_WORD >= 4.
7195 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7197 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
7198 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
7199 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
7200 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
7201 (aarch64_float_extend_lo_v2df): Rename to...
7202 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
7204 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
7205 (float_extend_lo): Add v4sf.
7207 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
7208 * config/aarch64/iterators.md (VQ_HSF): New iterator.
7209 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
7210 (Vwide): New mode_attr.
7212 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7214 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
7215 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
7216 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
7217 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
7218 V4HF and V8HF variants to iterator.
7220 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
7222 * config/aarch64/iterators.md (VDQF_F16): New.
7223 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
7225 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7227 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
7228 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
7229 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
7230 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
7231 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
7232 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
7233 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
7234 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
7235 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
7236 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
7237 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
7238 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
7239 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
7240 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
7241 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
7242 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
7243 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
7244 vld1q_dup_f16): New.
7246 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7248 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
7249 Reparameterize to...
7250 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
7251 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
7252 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
7254 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
7256 (float_truncate_lo_): Use BUILTIN_VDF iterator.
7258 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
7260 * config/aarch64/iterators.md (VDF, Vdtype): New.
7261 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
7263 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7265 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
7266 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
7267 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
7268 Add __builtin_aarch64_simd_hf.
7269 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
7270 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
7271 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
7272 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
7273 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
7274 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
7275 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
7276 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
7277 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
7279 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
7280 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
7281 (VDC, Vdbl): Add V4HF.
7283 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7285 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
7286 V4HFmode and V8HFmode.
7287 (aarch64_split_simd_move): Add case for V8HFmode.
7288 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
7289 (aarch64_simd_builtin_std_type): Handle HFmode.
7290 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
7292 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
7293 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
7294 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
7296 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
7299 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
7300 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
7302 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
7303 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
7304 vst1q_lane_f16): New.
7305 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
7306 (VALLDI_F16, VALL_F16): New.
7307 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
7308 Add cases for V4HF and V8HF.
7309 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
7311 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7313 * config/arm/arm-builtins.c (VAR11, VAR12): New.
7314 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
7315 vld4_dup): Add v4hf variant.
7316 (vget_high, vget_low): Add v8hf variant.
7317 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
7318 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
7319 v4hf and v8hf variants.
7321 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
7323 (V_DOUBLE): Add case for V4HF.
7325 (V_HALF): Add case for V8HF.
7326 (VDQX): Add V4HF, V8HF.
7327 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
7328 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
7330 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
7331 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
7332 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
7333 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
7334 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
7335 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
7336 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
7337 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
7338 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
7340 (neon_vcreate, neon_vreinterpretv8qi<mode>,
7341 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
7342 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
7343 Change VDX to VD_RE.
7345 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
7346 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
7347 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
7349 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
7350 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
7351 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
7352 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
7353 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
7354 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
7355 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
7356 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
7357 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
7359 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7361 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
7362 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
7363 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
7364 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
7365 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
7366 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
7367 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
7368 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
7369 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
7370 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
7373 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7375 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
7377 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
7379 * config/arm/arm-builtins.c (v8hf_UP): New.
7380 (arm_init_simd_builtin_types): Initialise Float16x8_t.
7382 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
7384 * config/arm/arm_neon.h (float16x8_t): New typedef.
7386 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7388 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
7389 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
7390 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
7391 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
7392 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
7393 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
7394 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
7395 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
7396 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
7397 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
7399 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
7401 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
7402 non-alphanumeric characters in the symbol name.
7404 2015-09-07 Marek Polacek <polacek@redhat.com>
7407 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
7410 2015-09-07 Marek Polacek <polacek@redhat.com>
7412 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
7414 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
7416 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
7419 2015-09-04 Jakub Jelinek <jakub@redhat.com>
7422 * tree-ssa-live.c: Include cfgloop.h.
7423 (remove_unused_locals): Clear loop->simduid if simduid is about
7424 to be removed from cfun->local_decls.
7426 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7429 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
7432 2015-09-04 Tom de Vries <tom@codesourcery.com>
7434 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
7436 2015-09-04 Jeff Law <law@redhat.com>
7438 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
7439 unnecessary constructor. It's now trivial and implemented inside...
7440 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
7441 constructor. Add comments to various methods. Remove unused
7443 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
7444 * tree-vrp.c (identify_jump_threads): Likewise.
7445 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
7447 (thread_across_edge): Similarly.
7448 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
7449 arguments in constructor call.
7451 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
7453 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
7454 temp path contains a '-'.
7456 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
7457 Petr Murzin <petr.murzin@intel.com>
7458 Kirill Yukhin <kirill.yukhin@intel.com>
7460 * config/i386/i386-builtin-types.def
7461 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
7462 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
7463 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
7464 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
7465 * config/i386/i386.c
7466 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
7467 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
7468 IX86_BUILTIN_SCATTERALTDIV16SI.
7469 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
7470 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
7471 __builtin_ia32_scatteraltdiv8si.
7472 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
7473 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
7474 IX86_BUILTIN_SCATTERALTDIV16SI.
7475 (ix86_vectorize_builtin_scatter): New.
7476 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
7477 ix86_vectorize_builtin_scatter.
7479 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
7480 Petr Murzin <petr.murzin@intel.com>
7481 Kirill Yukhin <kirill.yukhin@intel.com>
7483 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
7484 * doc/tm.texi: Regenerate.
7485 * target.def: Add scatter builtin.
7486 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
7487 for loads/stores in case of gather/scatter accordingly.
7488 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
7489 STMT_VINFO_GATHER_P(S).
7490 (vect_check_gather): Rename to ...
7491 (vect_check_gather_scatter): this.
7492 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
7493 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
7494 (vect_check_gather_scatter): Use it instead of vect_check_gather.
7495 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
7496 variable and new checkings for it accordingly.
7498 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
7499 STMT_VINFO_GATHER_P(S).
7500 (vect_check_gather_scatter): Use it instead of vect_check_gather.
7501 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
7503 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
7505 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
7507 (mulv16qi3): New define_expand.
7509 2015-09-03 Martin Sebor <msebor@redhat.com>
7512 * doc/extend.texi (Other Builtins): Document when the address
7513 of a built-in function can be taken.
7515 2015-09-03 Richard Biener <rguenther@suse.de>
7517 * dwarf2out.c (flush_limbo_die_list): Split out from ...
7518 (dwarf2out_early_finish): ... here.
7519 (dwarf2out_finish): Do not call dwarf2out_early_finish but
7520 flush_limbo_die_list. Assert we have no deferred asm names.
7522 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7524 * optabs.c (expand_binop): Don't create a broadcast vector with a
7525 source element wider than the inner mode.
7527 2015-09-03 Richard Biener <rguenther@suse.de>
7529 * varasm.c (output_constant): Use fold_convert instead of
7532 2015-09-03 Tom de Vries <tom@codesourcery.com>
7534 PR tree-optimization/65637
7535 * omp-low.c (expand_omp_for_static_chunk): Handle case that
7536 fin_bb has 2 predecessors.
7538 2015-09-03 Tom de Vries <tom@codesourcery.com>
7540 PR tree-optimization/65637
7541 * omp-low.c (find_phi_with_arg_on_edge): New function.
7542 (expand_omp_for_static_chunk): Fix inner loop phi.
7544 2015-09-03 Tom de Vries <tom@codesourcery.com>
7546 PR tree-optimization/65637
7547 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
7550 2015-09-03 Tom de Vries <tom@codesourcery.com>
7552 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
7554 2015-09-03 Tom de Vries <tom@codesourcery.com>
7556 * doc/invoke.texi (parloops-chunk-size): Add item.
7557 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
7558 * tree-parloops.c: Include params.h.
7559 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
7560 param parloops-chunk-size is used.
7562 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7565 * fold-const.c (fold_binary_loc) : Move
7566 Transform (x >> c) << c into x & (-1<<c) or
7567 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
7568 types using simplify and match.
7569 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
7570 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
7572 2015-09-03 Richard Biener <rguenther@suse.de>
7575 * tree-ssa-structalias.c (ctor_for_analysis): New function.
7576 (create_variable_info_for_1): Use ctor_for_analysis instead
7578 (create_variable_info_for): Likewise.
7580 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
7583 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
7584 in new callgraph edge.
7586 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
7591 * config/aarch64/aarch64-simd.md
7592 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
7593 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
7594 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
7595 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
7597 2015-09-02 Alan Modra <amodra@gmail.com>
7599 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
7600 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
7601 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
7603 2015-09-02 Alan Modra <amodra@gmail.com>
7606 * config/rs6000/predicates.md (current_file_function_operand): Don't
7607 return true for weak symbols.
7608 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
7610 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
7611 Andrew Bennett <andrew.bennett@imgtec.com>
7613 * config/mips/mips-opts.h (mips_cb_setting): New enum.
7614 * config/mips/mips-protos.h: Add definitions for
7615 mips_output_jump and mips_output_equal_conditional_branch
7616 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
7618 (mips_emit_compare): Add support for the MIPS R6 conditional
7620 (mips_process_sync_loop): Likewise.
7621 (mips_output_order_conditional_branch): Likewise.
7622 (mips16_build_call_stub): Change MIPS_CALL to
7624 (mips_print_operand_punctuation): Update 's' case to only
7625 apply to micromips r2.
7626 (mips_adjust_insn_length): Add support for forbidden slot
7628 (mips_avoid_hazard): Likewise.
7629 (mips_reorg_process_insns): Likewise.
7630 (mips_output_jump): New function.
7631 (mips_output_equal_conditional_branch): Likewise.
7632 (mips_output_conditional_branch): Use jrc/bc if compact
7633 branch support is enabled. Ensure the forbidden slots
7634 between the two branch instructions is filled with a nop.
7635 (mips_option_override): Add support to process the compact
7636 branch option and set the correct defaults. Prevent
7637 non-explict relocs being using for MIPS R6.
7638 (mips_trampoline_init): Add compact branch support.
7639 (mips_mult_zero_zero_cost): Allow zero initialisation of
7640 accumulators with TARGET_DSP.
7641 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
7642 (TARGET_CB_MAYBE): New define.
7643 (TARGET_CB_ALWAYS): New define.
7644 (ISA_HAS_DELAY_SLOTS): New define.
7645 (ISA_HAS_COMPACT_BRANCHES): New define.
7646 (ISA_HAS_JRC): New define.
7647 (MIPS_BRANCH_C): New define.
7648 (MIPS_CALL): Removed.
7649 (MICROMIPS_J): Removed.
7650 * config/mips/mips.md (compact_form): New attr.
7651 (hazard): Add support for forbidden slots.
7652 (define_delay): Add support for compact branches.
7653 (*branch_order<mode>): Likewise.
7654 (*branch_order<mode>_inverted): Likewise.
7655 (*branch_equality<mode>): Likewise.
7656 (*branch_equality<mode>_inverted): Likewise.
7657 (*jump_absolute): Likewise.
7658 (*jump_pic): Likewise.
7659 (indirect_jump): Use mips_output_jump to produce assembly output.
7660 (tablejump_<mode>"): Likewise.
7661 (*<optab>"): Likewise.
7662 (<optab>_internal): Likewise.
7663 (sibcall_internal): Likewise.
7664 (sibcall_value_internal): Likewise.
7665 (sibcall_value_multiple_internal): Likewise.
7666 (call_internal): Likewise.
7667 (call_split): Likewise.
7668 (call_internal_direct): Likewise.
7669 (call_direct_split): Likewise.
7670 (call_value_internal): Likewise.
7671 (call_value_split): Likewise.
7672 (call_value_internal_direct): Likewise.
7673 (call_value_direct_split): Likewise.
7674 (call_value_multiple_internal): Likewise.
7675 (call_value_multiple_split): Likewise.
7676 (mips_get_fcsr_mips16_<mode>): Likewise.
7677 (mips_set_fcsr_mips16_<mode>): Likewise.
7678 (tls_get_tp_mips16_<mode>): Likewise.
7679 * config/mips/mips.opt: Add -mcompact-branches option.
7680 * config/mips/predicates.md (order_operator): Ensure the
7681 conditional compact branches are only used if the ISA them.
7682 * doc/invoke.texi: Document -mcompact-branches option.
7684 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
7687 * lra-lives.c (process_bb_lives): Process move pseudos with the
7688 same value for copies and preferences
7689 * lra-constraints.c (match_reload): Create match reload pseudo
7690 with the same value from single dying input pseudo.
7692 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
7695 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
7697 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
7699 * trans-mem.c: Add contributed-by.
7700 * trans-mem.h: Same.
7702 2015-09-01 Richard Biener <rguenther@suse.de>
7704 * expr.c (expand_expr_real_1): For expanding TERed defs
7705 set the current location to that of the def if not UNKNOWN.
7707 2015-09-01 David Sherwood <david.sherwood@arm.com>
7709 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
7711 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7713 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
7714 then_cost, else_cost fields. Change branch_cost field to unsigned int.
7715 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
7717 (noce_simple_bbs): New function.
7718 (noce_try_move): Bail if basic blocks are not simple.
7719 (noce_try_store_flag): Likewise.
7720 (noce_try_store_flag_constants): Likewise.
7721 (noce_try_addcc): Likewise.
7722 (noce_try_store_flag_mask): Likewise.
7723 (noce_try_cmove): Likewise.
7724 (noce_try_minmax): Likewise.
7725 (noce_try_abs): Likewise.
7726 (noce_try_sign_mask): Likewise.
7727 (noce_try_bitop): Likewise.
7728 (bbs_ok_for_cmove_arith): New function.
7729 (noce_emit_all_but_last): Likewise.
7730 (noce_emit_insn): Likewise.
7731 (noce_emit_bb): Likewise.
7732 (noce_try_cmove_arith): Handle non-simple basic blocks.
7733 (insn_valid_noce_process_p): New function.
7734 (contains_mem_rtx_p): Likewise.
7735 (bb_valid_for_noce_process_p): Likewise.
7736 (noce_process_if_block): Allow non-simple basic blocks
7739 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
7741 * tree-ssa-dom.c (record_equivalences_from_phis,
7742 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
7743 (lookup_avail_expr): Likewise, and remove comment and unused temp.
7745 2015-09-01 Nick Clifton <nickc@redhat.com>
7747 * config/msp430/msp430.opt (mcpu): Fix typo.
7749 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7751 * config/aarch64/aarch64.c (aarch64_set_current_function):
7752 Re-layout any vector parameters have non-simd layout.
7753 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
7755 (aarch64_simd_expand_args): Delete call to the above.
7757 2015-08-31 Mike Frysinger <vapier@gentoo.org>
7759 * doc/invoke.texi (asan-stack): Add space before option.
7761 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
7763 * tree.h (zerop): New function.
7764 * tree.c (zerop): Likewise.
7765 (element_precision): Handle expressions.
7766 * match.pd (define_predicates): Add zerop.
7767 (x <= +Inf): Fix comment.
7768 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
7769 * fold-const.c (fold_binary_loc): ... here. Remove.
7771 2015-08-31 Richard Biener <rguenther@suse.de>
7774 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
7776 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
7778 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
7779 (CEXPI): New operator list.
7780 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
7781 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
7783 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
7785 2015-08-31 Tom de Vries <tom@codesourcery.com>
7787 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
7788 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
7790 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
7791 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
7792 (rewrite_into_loop_closed_ssa): ... here.
7793 (replace_uses_in_dominated_bbs): Remove function.
7794 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
7795 rewrite_into_loop_closed_ssa_1.
7797 2015-08-31 Michael Matz <matz@suse.de>
7799 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
7800 enter entry and exit blocks for reverse post order.
7802 2015-08-31 Richard Biener <rguenther@suse.de>
7804 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
7805 (lto_location_cache::current_sysp): Likewise.
7806 (output_block::current_sysp): Likewise.
7807 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
7808 (lto_location_cache::apply_location_cache): Properly record
7809 system header locations.
7810 (lto_location_cache::input_location): Input whether a file
7812 * lto-streamer-out.c (lto_output_location): Stream whether a file
7815 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7818 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
7820 2015-08-31 Tom de Vries <tom@codesourcery.com>
7822 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
7823 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
7824 Improve function header comments.
7826 2015-08-30 Michael Collison <michael.collison@linaro.org>
7829 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
7832 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7834 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
7835 special_handling bitfield.
7836 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
7837 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
7838 that represents a general xxpermdi.
7839 (insn_is_swappable_p): Add handling for vec_concat of two
7840 doublewords, which maps to a specific xxpermdi.
7841 (adjust_xxpermdi): New function.
7842 (adjust_concat): Likewise.
7843 (handle_special_swappables): Call adjust_xxpermdi and
7845 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
7847 2015-08-30 Rich Felker <dalias@libc.org>
7849 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
7850 case instead of sh[123456ble]-*-*.
7852 2015-08-29 Anatoly Sokolov <aesok@post.ru>
7854 * ira.c (print_unform_and_important_classes,
7855 print_translated_classes): Remove reg_class_names static array.
7856 (print_unform_and_important_classes): Rename to ...
7857 (print_uniform_and_important_classes): ... this.
7858 (ira_debug_allocno_classes): Update accordingly.
7860 2015-08-29 Tom de Vries <tom@codesourcery.com>
7862 PR tree-optimization/46193
7863 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
7866 2015-08-28 Jeff Law <law@redhat.com>
7869 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7870 unable to find X NE 0 in the tables, return X as the simplified
7872 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7873 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
7875 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7876 after removing the control flow statement and unnecessary edges.
7878 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
7881 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
7883 PR tree-optimization/67283
7884 * tree-sra.c (type_consists_of_records_p): Rename to...
7885 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7887 (completely_scalarize_record): Rename to...
7888 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
7890 (scalarize_elem): New.
7892 2015-08-28 Jiong Wang <jiong.wang@arm.com>
7894 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
7895 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
7896 (aarch64_symbol_type): Likewise.
7897 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7899 (aarch64_expand_mov_immediate): Likewise.
7900 (aarch64_print_operand): Likewise.
7901 (aarch64_classify_tls_symbol): Likewise.
7903 2015-08-28 Richard Biener <rguenther@suse.de>
7905 * cgraphunit.c (symbol_table::compile): Move early debug generation
7907 (symbol_table::finalize_compilation_unit): ... back here and
7908 add a !seen_error () guard.
7910 2015-08-27 Sebastian Pop <s.pop@samsung.com>
7912 * toplev.c (process_options): Do not use flag_loop_block,
7913 flag_loop_interchange, and flag_loop_strip_mine. Add check for
7914 flag_loop_optimize_isl.
7916 2015-08-27 Sebastian Pop <s.pop@samsung.com>
7918 * Makefile.in (OBJS): Remove graphite-blocking.o and
7919 graphite-interchange.o.
7920 * common.opt (floop-strip-mine, floop-interchange, floop-block):
7921 Alias of floop-nest-optimize.
7922 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
7923 Document as alias of -floop-nest-optimize.
7924 * graphite-blocking.c: Remove.
7925 * graphite-interchange.c: Remove.
7926 * graphite-optimize-isl.c: Include dumpfile.h.
7927 (getScheduleForBand): Add dump for tiled loops. Use
7928 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
7929 * graphite-poly.c (scop_max_loop_depth): Remove.
7930 (print_scattering_function_1): Remove.
7931 (print_scattering_function): Remove.
7932 (print_scattering_functions): Remove.
7933 (debug_scattering_function): Remove.
7934 (debug_scattering_functions): Remove.
7935 (apply_poly_transforms): Remove use of flag_loop_block,
7936 flag_loop_strip_mine, and flag_loop_interchange.
7937 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
7939 (print_pdr_access_layout): Remove.
7940 (print_pdr): Print ISL representation.
7941 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
7942 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
7944 (openscop_print_pbb_domain): Remove.
7945 (print_pbb): Remove call to print_scattering_function.
7946 (openscop_print_scop_context): Remove.
7947 (print_scop_context): Do not print matrices anymore.
7948 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
7949 SCOP_TRANSFORMED_SCHEDULE.
7950 (print_isl_set): Add printing of a new line.
7951 (print_isl_map): Same.
7952 (print_isl_aff): Same.
7953 (print_isl_constraint): Same.
7954 (loop_to_lst): Remove.
7955 (scop_to_lst): Remove.
7956 (lst_indent_to): Remove.
7957 (print_lst): Remove.
7958 (debug_lst): Remove.
7959 (dot_lst_1): Remove.
7961 (reverse_loop_at_level): Remove.
7962 (reverse_loop_for_pbbs): Remove.
7963 * graphite-poly.h (pdr_dim_iter_domain): Remove.
7964 (pdr_nb_params): Remove.
7965 (pdr_alias_set_dim): Remove.
7966 (pdr_subscript_dim): Remove.
7967 (pdr_iterator_dim): Remove.
7968 (pdr_parameter_dim): Remove.
7969 (same_pdr_p): Remove.
7970 (struct poly_scattering): Remove.
7971 (struct poly_bb): Remove _original, _transformed, _saved.
7972 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
7973 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
7974 (PBB_NB_LOCAL_VARIABLES): Remove.
7975 (PBB_NB_SCATTERING_TRANSFORM): Remove.
7976 (schedule_to_scattering): Remove.
7977 (number_of_write_pdrs): Remove.
7978 (pbb_dim_iter_domain): Remove.
7979 (pbb_nb_params): Remove.
7980 (pbb_nb_scattering_orig): Remove.
7981 (pbb_nb_scattering_transform): Remove.
7982 (pbb_nb_dynamic_scattering_transform): Remove.
7983 (pbb_nb_local_vars): Remove.
7984 (pbb_iterator_dim): Remove.
7985 (pbb_parameter_dim): Remove.
7986 (psco_scattering_dim): Remove.
7987 (psct_scattering_dim): Remove.
7988 (psct_local_var_dim): Remove.
7989 (psco_iterator_dim): Remove.
7990 (psct_iterator_dim): Remove.
7991 (psco_parameter_dim): Remove.
7992 (psct_parameter_dim): Remove.
7993 (psct_dynamic_dim): Remove.
7994 (psct_static_dim): Remove.
7995 (psct_add_local_variable): Remove.
7996 (new_lst_loop): Remove.
7997 (new_lst_stmt): Remove.
8000 (lst_add_loop_under_loop): Remove.
8001 (lst_depth): Remove.
8002 (lst_dewey_number): Remove.
8003 (lst_dewey_number_at_depth): Remove.
8006 (lst_find_pbb): Remove.
8007 (find_lst_loop): Remove.
8008 (lst_find_first_pbb): Remove.
8009 (lst_empty_p): Remove.
8010 (lst_find_last_pbb): Remove.
8011 (lst_contains_p): Remove.
8012 (lst_contains_pbb): Remove.
8013 (lst_create_nest): Remove.
8014 (lst_remove_from_sequence): Remove.
8015 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
8016 (lst_niter_for_loop): Remove.
8017 (pbb_update_scattering): Remove.
8018 (lst_update_scattering_under): Remove.
8019 (lst_update_scattering): Remove.
8020 (lst_insert_in_sequence): Remove.
8021 (lst_replace): Remove.
8022 (lst_substitute_3): Remove.
8023 (lst_distribute_lst): Remove.
8024 (lst_remove_all_before_including_pbb): Remove.
8025 (lst_remove_all_before_excluding_pbb): Remove.
8026 (struct scop): Remove original_schedule, transformed_schedule, and
8028 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
8029 (SCOP_SAVED_SCHEDULE): Remove.
8030 (poly_scattering_new): Remove.
8031 (poly_scattering_free): Remove.
8032 (poly_scattering_copy): Remove.
8033 (store_scattering_pbb): Remove.
8034 (store_lst_schedule): Remove.
8035 (restore_lst_schedule): Remove.
8036 (store_scattering): Remove.
8037 (restore_scattering_pbb): Remove.
8038 (restore_scattering): Remove.
8039 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
8040 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
8041 compute the scattering polyhedron dimension from the dimension of
8043 (build_scop_scattering): Update call to
8044 build_pbb_scattering_polyhedrons.
8045 (build_poly_scop): Remove call to scop_to_lst.
8046 * graphite.c (graphite_transform_loops): Add call to print_scop.
8047 (gate_graphite_transforms): Remove use of flag_loop_block,
8048 flag_loop_interchange, and flag_loop_strip_mine.
8050 2015-08-27 Sebastian Pop <s.pop@samsung.com>
8052 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
8053 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
8054 -floop-nest-optimize.
8055 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
8056 (generate_luj_sepclass): Remove.
8057 (generate_luj_options): Remove.
8058 (set_options): Remove opt_luj.
8059 (scop_to_isl_ast): Remove opt_luj.
8060 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
8061 flag_loop_unroll_jam.
8062 (getPrevectorMap_full): Remove.
8063 (getScheduleForBandList): Remove map_sepcl.
8064 (getScheduleMap): Same.
8065 (apply_schedule_map_to_scop): Remove sepcl.
8066 (optimize_isl): Same.
8067 * graphite-poly.c (apply_poly_transforms): Remove check for
8068 flag_loop_unroll_jam.
8069 (new_poly_bb): Remove map_sepclass.
8070 * graphite-poly.h (struct poly_bb): Same.
8071 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
8072 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
8073 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
8074 * toplev.c (process_options): Remove flag_loop_unroll_jam.
8076 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
8079 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
8081 (UNSPEC_ADD_CARRY): Remove.
8082 (addqi3_cconly_overflow): New expander.
8083 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
8084 Adjust for changed add<mode>3_carry.
8085 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
8086 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
8087 (<plusminus_insn><mode>3_carry): Remove expander.
8088 (*<plusminus_insn><mode>3_carry): Split insn pattern to
8089 add<mode>3_carry and sub<mode>3_carry.
8090 (plusminus_carry_mnemonic): Remove code attribute.
8091 (add<mode>3_carry): Canonicalize insn pattern.
8092 (*addsi3_carry_zext): Ditto.
8093 (sub<mode>3_carry): Ditto.
8094 (*subsi3_carry_zext): Ditto.
8095 (adcx<mode>3): Remove insn pattern.
8096 (addcarry<mode>): New insn pattern.
8097 (subborrow<mode>): Ditto.
8098 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
8099 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
8100 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
8101 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
8102 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
8103 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
8104 Rewrite expander to not clobber carry flag chains.
8106 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
8108 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
8109 instead of a rotate.
8111 2015-08-27 Marek Polacek <polacek@redhat.com>
8114 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
8115 an entry into an irreducible region.
8117 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8119 * configure: Regenerate.
8121 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
8123 PR tree-optimization/67283
8124 * tree-sra.c (type_consists_of_records_p): Rename to...
8125 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
8127 (completely_scalarize_record): Rename to...
8128 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
8129 (scalarize_elem): New.
8131 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
8133 * tree-sra.c (completely_scalarize_var): Rename to...
8134 (create_total_scalarization_access): ... Here. Drop call to
8135 completely_scalarize_record.
8137 (analyze_all_variable_accesses): Replace completely_scalarize_var
8138 with create_total_scalarization_access and completely_scalarize_record.
8140 2015-08-27 Alan Modra <amodra@gmail.com>
8143 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
8146 2015-08-27 Richard Biener <rguenther@suse.de>
8148 * passes.c (rest_of_decl_compilation): Guard early_global_decl
8149 call with !seen_error ().
8150 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
8151 early debug generation and finish...
8152 (symbol_table::compile): ... here to put it after a !seen_error ()
8155 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8157 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
8160 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8161 Andre Vieira <andre.simoesdiasvieira@arm.com>
8163 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
8164 (*cb<optab><mode>1): Likewise.
8165 (*tb<optab><mode>1): Likewise.
8166 (*cb<optab><mode>1): Likewise.
8167 * config/aarch64/iterators.md (inv_cb): New code attribute.
8169 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
8170 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
8172 2015-08-27 Richard Biener <rguenther@suse.de>
8174 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
8176 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
8178 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
8181 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8183 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
8186 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
8188 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
8189 floating point in VSX registers.
8190 (rs6000_output_move_128bit): Always print out the set insn if we
8191 can't generate an appropriate 128-bit move.
8192 (rs6000_generate_compare): Add support for IEEE 128-bit floating
8193 point in VSX registers comparisons.
8194 (rs6000_expand_float128_convert): Likewise.
8196 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
8197 predicate for only GPR hard registers.
8199 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
8200 modes to iterators. Add new iterators for moving 128-bit values in
8201 scalar FPR registers and VSX registers.
8202 (FMOVE128): Likewise.
8203 (FMOVE128_FPR): Likewise.
8204 (FMOVE128_GPR): Likewise.
8205 (FMOVE128_VSX): Likewise.
8206 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
8211 (RELOAD): Add IEEE 128-bit floating point modes.
8212 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
8213 floating point in VSX registers modes.
8214 (signbit<mode>2, IBM128 iterator): Likewise.
8215 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
8216 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
8218 (neg<mode>2, TFIFKF iterator): Likewise.
8219 (negtf2_internal): Likewise.
8221 (abs<mode>2, TFIFKF iterator): Likewise.
8222 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
8223 VSX insn support for negate, absolute value, and negative absolute
8225 (ieee_128bit_vsx_neg<mode>2): Likewise.
8226 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
8227 (ieee_128bit_vsx_abs<mode>2): Likewise.
8228 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
8229 (ieee_128bit_vsx_nabs<mode>2): Likewise.
8230 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
8231 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
8232 floating point in VSX registers.
8233 (unpack<mode>_dm): Likewise.
8234 (unpack<mode>_nodm): Likewise.
8235 (pack<mode>): Likewise.
8236 (unpackv1ti): Likewise.
8237 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
8238 (packv1ti): Likewise.
8239 (pack<mode>, FMOVE128_VSX iterator): Likewise.
8240 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
8242 (extenddftf2_internal): Likewise.
8243 (trunctfdf2): Likewise.
8244 (trunctfdf2_internal2): Likewise.
8245 (fix_trunc_helper): Likewise.
8246 (fix_trunctfdi2"): Likewise.
8247 (floatditf2): Likewise.
8248 (floatuns<mode>tf2): Likewise.
8249 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
8250 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
8251 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
8252 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
8253 (float<SDI:mode><IFKF:mode>2): Likewise.
8254 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
8256 2015-08-26 Renlin Li <renlin.li@arm.com>
8258 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
8260 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
8261 Jiong Wang <jiong.wang@arm.com>
8263 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
8264 (tlsie_tiny_<mode>): New define_insn.
8265 (tlsie_tiny_sidi): Likewise.
8266 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
8268 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
8269 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
8271 (aarch64_expand_mov_immediate): Likewise.
8272 (aarch64_print_operand): Likewise.
8273 (arch64_classify_tls_symbol): Likewise.
8275 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8277 * config/arm/arm-arches.def: Replace single value flags with
8278 an initializer built from ARM_FSET_MAKE_CPU1.
8279 * config/arm/arm-cores.def: Likewise.
8280 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
8281 derivation from the ARM_CORE macro definition, use the given value
8283 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
8284 ARM_ARCH macro definition, use the given value instead.
8286 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8288 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
8290 (struct builtin_description): Replace field mask with field
8292 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
8293 (IWMMXT2_BUILTIN): Likewise.
8294 (IWMMXT2_BUILTIN2): Likewise.
8295 (FP_BUILTIN): Likewise.
8296 (CRC32_BUILTIN): Likewise.
8297 (CRYPTO_BUILTIN): Likewise.
8298 (iwmmx_mbuiltin): Likewise.
8299 (iwmmx2_mbuiltin): Likewise.
8300 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
8301 struct builtin_description.
8303 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8305 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
8306 (struct builtin_description): Change type of mask to unsigned
8308 * config/arm/arm-protos.h (insn_flags): Declare as type
8310 (tune_flags): Likewise.
8311 * config/arm/arm.c (feature_count): New.
8312 (insn_flags): Define as type arm_feature_set.
8313 (tune_flags): Likewise.
8314 (struct processors): Define field flags as type arm_feature_set.
8315 (all_cores): Update for change to struct processors.
8316 (all_architectures): Likewise.
8317 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
8319 (arm_option_override_internal): Likewise.
8320 (arm_option_override): Likewise.
8322 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
8323 Jiong Wang <jiong.wang@arm.com>
8325 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
8326 tls size for tiny, small, large memory model.
8327 (aarch64_load_symref_appropriately): Support new symbol types.
8328 (aarch64_expand_mov_immediate): Likewise.
8329 (aarch64_print_operand): Likewise.
8330 (aarch64_classify_tls_symbol): Likewise.
8331 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
8332 (aarch64_symbol_type): Likewise.
8333 * config/aarch64/aarch64.md (tlsle): Deleted.
8334 (tlsle12_<mode>): New define_insn.
8335 (tlsle24_<mode>): Likewise.
8336 (tlsle32_<mode>): Likewise.
8337 (tlsle48_<mode>): Likewise.
8338 * doc/sourcebuild.texi (AArch64-specific attributes): Document
8341 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8343 * config/arm/arm-protos.h (FL_NONE): New.
8345 (arm_feature_set): New.
8346 (ARM_FSET_MAKE): New.
8347 (ARM_FSET_MAKE_CPU1): New.
8348 (ARM_FSET_MAKE_CPU2): New.
8349 (ARM_FSET_CPU1): New.
8350 (ARM_FSET_CPU2): New.
8351 (ARM_FSET_EMPTY): New.
8352 (ARM_FSET_ANY): New.
8353 (ARM_FSET_HAS_CPU1): New.
8354 (ARM_FSET_HAS_CPU2): New.
8355 (ARM_FSET_HAS_CPU): New.
8356 (ARM_FSET_ADD_CPU1): New.
8357 (ARM_FSET_ADD_CPU2): New.
8358 (ARM_FSET_DEL_CPU1): New.
8359 (ARM_FSET_DEL_CPU2): New.
8360 (ARM_FSET_UNION): New.
8361 (ARM_FSET_INTER): New.
8362 (ARM_FSET_XOR): New.
8363 (ARM_FSET_EXCLUDE): New.
8364 (AFM_FSET_IS_EMPTY): New.
8365 (ARM_FSET_CPU_SUBSET): New.
8367 2015-08-26 Jiong Wang <jiong.wang@arm.com>
8369 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
8370 SYMBOL_TLSLE to SYMBOL_TLSLE24.
8371 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8373 (aarch64_expand_mov_immediate): Likewise.
8374 (aarch64_print_operand): Likewise.
8375 (aarch64_classify_symbol): Likewise.
8377 2015-08-26 Jiong Wang <jiong.wang@arm.com>
8379 * config/aarch64/aarch64.opt (mtls-size): New entry.
8380 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
8381 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
8382 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
8384 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8386 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
8387 ARM_CORE entry. Fix some white-space.
8388 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
8389 ARM_CORE definition.
8391 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8393 * fold-const.c (fold_binary_loc) : Move Optimize
8394 root(x)*root(y) as root(x*y) to match.pd.
8395 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
8396 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
8397 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
8398 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
8399 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
8400 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
8401 (mult (exps:s @0) (exps:s @1)) : New simplifier.
8402 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
8403 (rdiv @0 (exps:s @1)) : New simplifier.
8405 2015-08-25 Joseph Myers <joseph@codesourcery.com>
8407 * gcc.c (driver::finalize): Only assign to extra_specs if
8410 2015-08-25 Marek Polacek <polacek@redhat.com>
8413 * varasm.c (declare_weak): Return after giving an error.
8415 2015-08-25 David Malcolm <dmalcolm@redhat.com>
8417 * gcc-main.c (main): Add params to driver ctor.
8418 * gcc.c (class env_manager): New.
8420 (env_manager::init): New.
8421 (env_manager::get): New.
8422 (env_manager::xput): New.
8423 (env_manager::restore): New.
8424 Poison getenv and putenv.
8425 (DEFAULT_TARGET_SYSTEM_ROOT): New.
8426 (target_system_root): Update initialization to use
8427 DEFAULT_TARGET_SYSTEM_ROOT.
8428 (struct spec_list): Add field "default_ptr".
8429 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
8430 (init_spec): Likewise.
8431 (set_spec): Clear field "default_ptr".
8432 (read_specs): Free "spec" and "buffer".
8433 (xputenv): Reimplement in terms of env_manager.
8434 (process_command): Replace ::getenv calls with calls to the
8435 env_manager singleton.
8436 (process_brace_body): Free string in three places.
8437 (driver::driver): New.
8438 (driver::~driver): New.
8439 (used_arg): Convert from a function to...
8440 (class used_arg_t): ...this class, and...
8441 (used_arg): ...this new global instance.
8442 (used_arg_t::finalize): New function.
8443 (getenv_spec_function): Add "const" to local "value". Replace
8444 ::getenv call with call to the env_manager singleton.
8445 (path_prefix_reset): New function.
8446 (driver::finalize): New function.
8447 * gcc.h (driver::driver): New.
8448 (driver::~driver): New.
8449 (driver::finalize): New.
8451 2015-08-25 Nathan Sidwell <nathan@acm.org>
8453 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
8454 target doesn't have one.
8456 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
8459 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
8461 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
8464 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
8465 a define_insn, remove second alternative.
8467 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
8468 Joseph Myers <joseph@codesourcery.com>
8470 * gcc.c (struct switchstr): Expand comment.
8472 2015-08-25 Nathan Sidwell <nathan@acm.org>
8474 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
8475 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
8477 2015-08-25 Richard Biener <rguenther@suse.de>
8480 * genmatch.c (expr::gen_transform): Verify the result of
8481 builtin_decl_implicit.
8482 (dt_simplify::gen_1): Likewise.
8484 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
8486 * config/arm/constraints.md: Also list Cs and US ARM-specific
8487 constraints as used.
8489 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
8492 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
8494 (nonpic_symbol_mentioned_p): Likewise.
8495 (sh_delegitimize_address): Likewise.
8496 (sh_function_ok_for_sibcall): Take into account weak symbols.
8497 (sh_expand_sym_label2reg): New.
8498 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
8499 * config/sh/sh.md (UNSPEC_PCREL): New enum.
8500 (call_pcrel): Use sh_expand_sym_label2reg.
8501 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
8502 (symPCREL_label2reg) New expand.
8504 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
8506 * graphite-poly.c: Change type of region from void* to sese.
8507 * graphite-poly.h (struct scop): Changing the type of scop::region
8508 from void* to sese. Change accessor macro accordingly.
8509 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
8511 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
8513 * graphite-scop-detection.c (stmt_simple_for_scop_p):
8514 Constrain only on INTEGER_TYPE.
8516 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
8519 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
8520 -mefficient-unaligned-vsx on ISA 2.7.
8522 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
8523 option to a masked option.
8525 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
8526 logic for -mefficient-unaligned-vsx so that it is set via an arch
8527 ISA option, instead of being set if -mtune=power8 is set. Move
8528 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
8529 near other default option handling.
8531 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8533 * genflags.c (gen_macro): Delete.
8534 (gen_proto): Don't create GEN.*CALL.* macros.
8535 * gensupport.h (get_file_location): Declare.
8536 * gensupport.c (rtx_locs): New variable.
8537 (read_md_rtx): Record rtx locations.
8538 (get_file_location): New function.
8539 * target-insns.def (call, call_pop, call_value, call_value_pop)
8540 (sibcall, sibcall_value): New patterns.
8541 * gentarget-def.c (parse_argument): New function.
8542 (def_target_insn): Use it. Handle optional operands. Raise an
8543 error if an .md pattern has the wrong number of operands for the
8544 pattern name. Remove the names of unused operands from the prototype.
8545 * builtins.c (expand_builtin_apply): Use targetm functions
8546 instead of HAVE_call_value and GEN_CALL_VALUE.
8547 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
8548 and sibcall_value_pop.
8549 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
8551 * config/alpha/alpha.md (untyped_call): Likewise.
8552 * config/iq2000/iq2000.md (untyped_call): Likewise.
8553 * config/m68k/m68k.md (untyped_call): Likewise.
8554 * config/mips/mips.md (untyped_call): Likewise.
8555 * config/pa/pa.md (untyped_call): Likewise.
8556 * config/rs6000/rs6000.md (untyped_call): Likewise.
8557 * config/sparc/sparc.md (untyped_call): Likewise.
8558 * config/tilegx/tilegx.md (untyped_call): Likewise.
8559 * config/tilepro/tilepro.md (untyped_call): Likewise.
8560 * config/visium/visium.md (untyped_call): Likewise.
8561 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
8562 gen_call_value instead of GEN_CALL_VALUE.
8563 * config/arm/arm.md (untyped_call): Likewise.
8564 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
8567 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8569 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
8570 (have_cbranchcc4): New variable.
8571 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
8572 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
8573 (if_convert): Initialize have_cbranchcc4.
8575 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8577 * builtins.c (expand_cmpstrn): Rename to...
8578 (expand_cmpstrn_or_cmpmem): ...this.
8579 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
8580 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
8581 Remove mode argument.
8582 (expand_builtin): Update accordingly.
8584 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8586 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
8587 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
8588 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
8589 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
8590 Add predicates for operands 0 and 3.
8591 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
8593 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
8594 immediate_operand to nonmemory_operand.
8596 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8598 * df-scan.c (df_insn_info_init_fields): New function, split out
8600 (df_insn_create_insn_record): ...here.
8601 (df_insn_info_free_fields): New function, split out from...
8602 (df_insn_info_delete): ...here.
8603 (df_insn_rescan): Use the new functions instead of freeing and
8604 reallocating the df_insn_info.
8606 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8608 * doc/install.texi (Binaries): Remove links no longer valid.
8610 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
8612 * config/nvptx/mkoffload.c (process): Replace
8613 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
8615 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
8618 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
8620 2015-08-24 Renlin Li <renlin.li@arm.com>
8622 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
8623 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
8624 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
8625 * config/arm/constraints.md ("j"): Add check for high code.
8627 2015-08-24 Tom de Vries <tom@codesourcery.com>
8629 PR tree-optimization/65468
8630 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
8633 2015-08-24 Nathan Sidwell <nathan@acm.org>
8635 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
8636 change to nvptx_type_from_mode call. Use arg_promotion for both
8637 split and non-split args.
8639 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8641 * target-insns.def (movstr): New pattern.
8642 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
8643 (expand_movstr): Use targetm rather than HAVE_movstr/
8646 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8648 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
8651 2015-08-24 Andrew Pinski <apinski@cavium.com>
8653 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
8654 AARCH64_EXTRA_TUNING_OPTION.
8655 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
8657 (aarch64_extra_tuning_flags): Base the shifted value on the index
8658 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
8659 * config/aarch64/aarch64.c: Remove the last argument to
8660 AARCH64_EXTRA_TUNING_OPTION.
8662 2015-08-23 Nathan Sidwell <nathan@acm.org>
8664 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
8666 (nvptx_declare_function_name): Insert formatting tabs for
8669 2015-08-23 Tom de Vries <tom@codesourcery.com>
8671 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
8672 parm_decl, rather than generating a dummy default def in cfun.
8673 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
8674 ssa_name from cfun and child_fn do not share a stmt as def stmt.
8675 (move_stmt_op): Handle PARM_DECl.
8676 (gather_ssa_name_hash_map_from): New function.
8677 (move_sese_region_to_fn): Add default defs for function params, and add
8678 them to vars_map. Release copied ssa names.
8679 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
8681 2015-08-23 Tom de Vries <tom@codesourcery.com>
8683 * doc/sourcebuild.texi: Rename vect_no_int_max with
8684 vect_no_int_min_max. Update description.
8686 2015-08-22 Andrew Pinski <apinski@cavium.com>
8688 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
8689 * config/aarch64/aarch64-protos.h
8690 (aarch64_fusion_pairs_index): New enum.
8691 (aarch64_fusion_pairs): Base the shifted value on the index instead
8692 Rewrite AARCH64_FUSE_ALL to be based on the end index.
8693 of the argument to AARCH64_FUSION_PAIR.
8694 * config/aarch64/aarch64.c: Remove the last argument to
8695 AARCH64_FUSION_PAIR.
8697 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
8699 * dominance.c (new_zero_array): Define.
8700 (dom_info): Redefine as class with proper encapsulation.
8701 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
8703 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
8704 allocations/deallocations. Pass function as parameter (instead of
8706 (dom_info::get_idom): Define accessor method.
8707 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
8708 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
8709 (calculate_dominance_info): Adjust to use dom_info class.
8710 (verify_dominators): Likewise.
8712 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
8714 * print-rtl.c (print_rtx): Check the correct range for
8715 flag_dump_unnumbered_links to behave as documented.
8717 PR rtl-optimization/67227
8718 PR rtl-optimization/64164
8719 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
8720 (nonoverlapping_memrefs_p): Test offsets and sizes when given
8721 identical gimple_reg exprs.
8723 2015-08-21 Nathan Sidwell <nathan@acm.org>
8725 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
8727 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
8728 crtl->stack_alignment_needed to determine alignment.
8729 (nvptx_get_drap_rtx): New.
8730 (TARGET_GET_DRAP_RTX): Override.
8731 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
8733 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8735 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
8737 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8739 * configure.ac: Remove uwin* cases.
8740 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
8741 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
8742 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
8743 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
8744 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
8745 i[34567]86-*-uwin*, powerpc-*-beos*.
8747 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
8749 * gencodes.c (gencodes): Print the comma for the preceding
8750 enum value rather than the current one. Use aliased enum values
8751 rather than #defines for compiled-out patterns.
8752 (main): Update accordingly. Replace LAST_INSN_CODE with
8754 * lra.c (insn_code_data): Update accordingly.
8755 (finish_insn_code_data_once, get_static_insn_data): Likewise.
8756 * recog.h (target_recog): Likewise.
8757 (preprocess_insn_constraints): Change parameter to unsigned int.
8758 * recog.c (preprocess_insn_constraints): Likewise.
8759 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
8760 * tree-vect-stmts.c (vectorizable_operation): Simplify.
8762 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
8764 PR rtl-optimization/61657
8765 * loop-iv.c (iv_number_of_iterations): Declare up and down as
8766 unsigned. Remove superflous uint64_t cast.
8768 2014-08-21 Felix Yang <felix.yang@huawei.com>
8769 Jiji Jiang <jiangjiji@huawei.com>
8771 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
8772 argument and get builtin function code directly from CALL.
8773 (gimple_stringop_fixed_value): Modified accordingly.
8774 (gimple_stringops_transform, gimple_stringops_values_to_profile):
8775 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
8777 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
8779 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
8781 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8783 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
8785 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
8786 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
8787 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
8788 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
8789 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
8790 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
8791 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
8792 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
8793 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
8794 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
8796 * match.pd (SIN ) : New Operator.
8797 (TAN) : New Operator.
8798 (mult (SQRT@1 @0) @1) : New simplifier.
8799 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
8800 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
8801 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
8802 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
8803 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
8804 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
8805 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
8806 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
8807 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
8808 (rdiv @0 (POW:s @1 @2)) : New simplifier.
8810 2015-08-21 Bin Cheng <bin.cheng@arm.com>
8812 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
8813 loop if EXPR is simplified to const value.
8815 2015-08-21 Yury Gribov <y.gribov@samsung.com>
8817 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
8818 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
8820 2015-08-21 Richard Biener <rguenther@suse.de>
8823 * gimple-fold.c (replace_stmt_with_simplification): Assert
8824 seq is empty when replacing a call with itself but different
8826 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
8827 a call require that it is const.
8829 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8831 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
8832 * builtins.c (get_object_alignment_2): Adjust.
8833 * varasm.c (align_variable): Likewise.
8834 (get_variable_align): Likewise.
8835 (build_constant_desc): Likewise.
8836 (force_const_mem): Likewise.
8837 * doc/tm.texi.in: Likewise.
8838 * doc/tm.texi: Regenerate.
8840 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8842 * genconfig.c (main): Always define HAVE_cc0.
8843 * recog.c (rest_of_handle_peephole2): Adjust.
8845 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8847 * reorg.c (relax_delay_slots): Don't use #if to check value of
8850 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8852 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
8853 * targhooks.c (default_have_conditional_execution): Adjust.
8855 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
8857 * rtl.h (rtvec_all_equal_p): Declare.
8858 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
8859 * rtl.c (rtvec_all_equal_p): New function.
8860 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
8861 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
8862 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
8863 * config/arm/arm.c (neon_vdup_constant): Likewise.
8864 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
8865 * config/tilegx/constraints.md (W, Y): Likewise.
8866 * config/tilepro/constraints.md (W, Y): Likewise.
8867 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
8868 (classify_immediate): Use unwrap_const_vec_duplicate.
8869 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
8870 (reg_or_v2s8bit_operand): Likewise.
8871 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
8872 (reg_or_v4s8bit_operand): Likewise.
8874 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8876 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
8877 (vec_shasigma_be): New #define.
8878 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
8879 (VPMSUMH): Likewise.
8880 (VPMSUMW): Likewise.
8881 (VPMSUMD): Likewise.
8882 (VPMSUM): New BU_P8V_OVERLOAD_2.
8883 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
8884 entries for VEC_MADD and VEC_VPMSUM.
8886 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
8888 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
8889 Multiply argument avr_n_flash by 64 to match unit of "KiB".
8890 (avr_pgm_check_var_decl): Same.
8892 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
8894 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
8895 initialization of HFmode scalar type (float16_t) to...
8896 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
8899 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
8901 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
8902 having an -mfp16-format.
8904 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
8906 * config/i386/predicates.md (vector_all_ones_operand): Use
8907 CONSTM1_RTX to simplify definition.
8909 2015-08-20 Richard Biener <rguenther@suse.de>
8911 * toplev.c (compile_file): Remove loop calling late_global_decl
8913 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
8914 on decls we assembled.
8916 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
8918 * common/config/aarch64/aarch64-common.c
8919 (AARCH64_CPU_NAME_LENGTH): Delete.
8920 (aarch64_option_extension): New.
8921 (all_extensions): Likewise.
8922 (processor_name_to_arch): Likewise.
8923 (arch_to_arch_name): Likewise.
8925 (all_architectures): Likewise.
8926 (aarch64_get_extension_string_for_isa_flags): Likewise.
8927 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
8929 * config/aarch64/aarch64-protos.h
8930 (aarch64_get_extension_string_for_isa_flags): New.
8931 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
8932 (aarch64_option_print): Get the string to print from
8933 aarch64_get_extension_string_for_isa_flags.
8934 (aarch64_declare_function_name): Likewise.
8935 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
8936 (MCPU_TO_MARCH_SPEC): This.
8937 (ASM_CPU_SPEC): Use it.
8938 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
8939 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
8940 (EXTRA_SPEC_FUNCTIONS): Use it.
8942 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
8944 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
8945 expansion when !ISA_HAS_LWL_LWR.
8946 (mips_block_move_straight): Update the size of elements copied to
8947 account for alignment when !ISA_HAS_LWL_LWR.
8948 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
8950 2015-08-19 Jiong Wang <jiong.wang@arm.com>
8952 * expr.c (expand_expr_real_2): Check gimple statement during
8955 2015-08-19 Magnus Granberg <zorry@gentoo.org>
8957 * common.opt (fstack-protector): Initialize to -1.
8958 (fstack-protector-all): Likewise.
8959 (fstack-protector-strong): Likewise.
8960 (fstack-protector-explicit): Likewise.
8961 * configure.ac: Add --enable-default-ssp.
8962 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
8963 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
8965 * doc/install.texi: Document --enable-default-ssp.
8966 * config.in: Regenerated.
8967 * configure: Likewise.
8969 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
8971 PR rtl-optimization/64164
8972 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
8973 (parm_in_stack_slot_p): ... this. Disregard mode, what
8974 matters is whether the parm will live in a pseudo or a stack
8976 (expand_one_ssa_partition): Deal with params without a default
8977 def. Disregard mode.
8978 * cfgexpand.h: Renamed function declaration.
8979 * tree-ssa-coalesce.c: Adjust.
8980 * function.c (split_complex_args): Allocate stack slot for
8981 unassigned parms before splitting.
8982 (parm_in_unassigned_mem_p): New. Use it instead of
8983 parm_maybe_byref_p throughout this file.
8984 (assign_parm_setup_block): Use it. Accept pseudos in the
8985 expand-assigned rtl.
8986 (assign_parm_setup_reg): Drop BLKmode requirement.
8987 (assign_parm_setup_stack): Allocate and fill in the address of
8988 unassigned MEM parms.
8990 2015-08-19 David Sherwood <david.sherwood@arm.com>
8992 * genmodes.c (emit_mode_unit_size_inline): New function.
8993 (emit_mode_unit_precision_inline): New function.
8994 (emit_insn_modes_h): Emit new #define. Emit new functions.
8995 (emit_mode_unit_size): New function.
8996 (emit_mode_unit_precision): New function.
8997 (emit_mode_adjustments): Add mode_unit_size adjustments.
8998 (emit_insn_modes_c): Emit new arrays.
8999 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
9000 use new inline methods.
9002 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9004 * config/aarch64/aarch64.c (bit_count): Delete prototype
9006 (aarch64_print_operand): Use popcount_hwi instead of the above.
9008 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9010 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
9013 2015-08-19 Marek Polacek <polacek@redhat.com>
9016 * gimple-ssa-isolate-paths.c
9017 (insert_trap_and_remove_trailing_statements): Rename to ...
9018 (insert_trap): ... this. Don't remove trailing statements; split
9020 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
9022 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
9025 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
9026 conditionalize the whole on __GNUC__. Add fallback code
9027 depending neither on undefined nor implementation-defined behaviour.
9029 2015-08-19 Jiong Wang <jiong.wang@arm.com>
9031 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
9032 whitespaces with tab.
9034 2015-08-19 Florian Weimer <fweimer@redhat.com>
9036 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
9037 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
9038 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
9039 Move Name_Ids instantiation to the Prj.Proc package, to avoid
9042 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9044 * config/arm/arm.c (bounds_check): Use %wd print format
9045 for HOST_WIDE_INT arguments.
9047 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
9049 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
9050 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
9051 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
9052 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
9053 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
9054 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
9055 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
9056 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
9057 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
9060 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
9062 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
9063 function.c, graphite-scop-detection.c, haifa-sched.c,
9064 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
9065 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
9066 varasm.c: Remove typedefs of structs.
9068 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
9070 * config/rs6000/altivec.h (vec_adde): New define.
9071 (vec_addec): Likewise.
9072 (vec_double): Likewise.
9073 (vec_bperm): Likewise.
9075 * config/rs6000/rs6000-builtin.def (ADDE): New
9076 BU_ALTIVEC_OVERLOAD_3.
9078 (DOUBLE): New BU_VSX_OVERLOAD_1.
9079 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
9080 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
9081 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
9082 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
9083 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
9084 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
9085 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
9086 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
9087 and P8V_BUILTIN_VEC_VBPERMQ.
9089 2015-08-18 Jason Merrill <jason@redhat.com>
9091 * print-tree.c (print_node): Handle TREE_BINFO.
9093 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9096 * builtins.c (expand_builtin_signbit): Add asserts to make sure
9097 we can expand BUILT_IN_SIGNBIT inline.
9098 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
9099 * doc/extend.texi: Document the type-generic __builtin_signbit.
9101 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
9103 PR rtl-optimization/67218
9104 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
9105 (simplify_unary_operation_1): Use it.
9107 2015-08-18 Marek Polacek <polacek@redhat.com>
9110 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
9111 if the call isn't valid.
9112 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
9113 gimple_call_builtin_p.
9114 (call_may_clobber_ref_p_1): Likewise.
9115 (stmt_kills_ref_p): Likewise.
9117 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
9119 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
9120 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
9121 (mips_hard_regno_scratch_ok): Likewise.
9122 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
9123 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
9125 2015-08-18 Bin Cheng <bin.cheng@arm.com>
9127 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
9128 (determine_value_range): Call refine_value_range_using_guard for
9129 each loop initial condition to improve value range.
9131 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
9133 * config/i386/i386.c: Remove include of fibheap.h.
9135 2015-08-17 Richard Biener <rguenther@suse.de>
9137 PR tree-optimization/67221
9138 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
9139 (sccvn_dom_walker::before_dom_children): Mark backedges of
9140 non-executable blocks as not executable.
9142 2015-08-17 David Sherwood <david.sherwood@arm.com>
9144 * config/arm/arm.c (neon_element_bits): Replace call to
9145 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
9146 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
9147 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
9148 (neon_vdup_lane<mode>): Likewise.
9149 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
9150 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
9151 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
9152 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
9153 * config/spu/spu.c (arith_immediate_p): Likewise.
9154 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
9155 * expr.c (expand_expr_real_2): Likewise.
9156 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
9157 * simplify-rtx.c (simplify_immed_subreg): Likewise.
9158 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
9159 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
9161 * fold-const.c (fold_binary_loc): Replace call to
9162 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
9163 GET_MODE_UNIT_PRECISION (m).
9165 2015-08-17 Mike Stump <mikestump@comcast.net>
9167 * config/arm/arm.c (arm_block_move_unaligned_straight):
9168 Emit normal move instead of unaligned load when source or destination
9169 are appropriately aligned.
9171 2015-08-17 Richard Biener <rguenther@suse.de>
9172 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9175 * match.pd (div (coss (op @0) : New simplifier.
9177 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
9179 PR rtl-optimization/64164
9182 PR rtl-optimization/67000
9185 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9186 * tree-ssa-copyrename.c: Removed.
9187 * opts.c (default_options_table): Drop -ftree-copyrename. Add
9188 -ftree-coalesce-vars.
9189 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9190 * common.opt (ftree-copyrename): Ignore.
9191 (ftree-coalesce-inlined-vars): Likewise.
9192 * doc/invoke.texi: Remove the ignored options above.
9193 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9194 * tree-ssa-coalesce.h: ... here.
9195 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9196 headers required by it.
9197 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9198 across variables when flag_tree_coalesce_vars. Check register
9199 use and promoted modes to allow coalescing. Do not coalesce
9200 maybe-byref parms with SSA_NAMEs of other variables, or
9201 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
9202 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9203 with its member functions to tree-ssa-coalesce.c.
9204 (var_map_base_init): Likewise. Renamed to
9205 compute_samebase_partition_bases.
9206 (partition_view_normal): Drop want_bases parameter.
9207 (partition_view_bitmap): Likewise.
9208 * tree-ssa-live.h: Adjust declarations.
9209 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
9210 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9211 default defs at the entry point.
9212 (dump_part_var_map): New.
9213 (compute_optimized_partition_bases): New, called by...
9214 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9215 of compute_samebase_partition_bases. Adjust.
9216 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9217 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
9218 (ssa_default_def_partition): New.
9219 (get_rtl_for_parm_ssa_default_def): New.
9220 (align_local_variable, add_stack_var): Support anonymous SSA
9222 (defer_stack_allocation): Likewise. Declare earlier.
9223 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9224 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9225 Do no record deferred-allocation marker in
9226 SA.partition_to_pseudo.
9227 (expand_stack_vars): Adjust check for the marker in it.
9228 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
9229 redundant MEM attr setting.
9230 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
9232 (expand_one_stack_var): ... this. New wrapper to check and
9233 skip already expanded SSA partitions.
9234 (record_alignment_for_reg_var): New, factored out of...
9235 (expand_one_var): ... this.
9236 (expand_one_ssa_partition): New.
9237 (adjust_one_expanded_partition_var): New.
9238 (expand_one_register_var): Check and skip already expanded SSA
9240 (expand_used_vars): Don't create DECLs for anonymous SSA
9241 names. Expand all SSA partitions, then adjust all SSA names.
9242 (pass::execute): Replace the loops that set
9243 SA.partition_to_pseudo from partition leaders and cleared
9244 DECL_RTL for multi-location variables, and that which used to
9245 rename vars and set attrs, with one that clears DECL_RTL and
9246 checks that PARMs and RESULTs default_defs match DECL_RTL.
9247 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9248 * emit-rtl.c: Include stor-layout.h.
9249 (set_reg_attrs_for_parm): Handle NULL decl.
9250 (set_reg_attrs_for_decl_rtl): Take mode from expression if
9252 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
9253 rather than its possibly-NULL DECL.
9254 * explow.c (promote_ssa_mode): New.
9255 * explow.h (promote_ssa_mode): Declare.
9256 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9257 (read_complex_part): Export.
9258 * expr.h (read_complex_part): Declare.
9259 * cfgexpand.h (parm_maybe_byref_p): Declare.
9260 * function.c: Include cfgexpand.h.
9261 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9262 (use_register_for_parm_decl): Wrapper for the above to
9263 special-case the result_ptr.
9264 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9265 (split_complex_args): Take assign_parm_data_all argument.
9266 Pass it to rtl_for_parm. Set up rtl and context for split
9267 args. Reset complex parm before fetching its default decl
9269 (assign_parms_unsplit_complex): Use the default-def complex
9270 parm rtl if it matches the components.
9271 (assign_parms_augmented_arg_list): Adjust.
9272 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9273 multiple locations. Recognize split complex args.
9274 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9275 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
9276 (assign_parm_setup_block): Prefer SSA-assigned location, and
9277 fill in its address if the memory location of a maybe-byref
9278 parm was not assigned by cfgexpand.
9279 (assign_parm_setup_reg): Likewise. Adjust its mode as
9280 needed. Use entry_parm for equiv if stack_parm is NULL. Make
9281 sure passed_pointer parms don't need conversion. Copy address
9283 (assign_parm_setup_stack): Prefer SSA-assigned location.
9284 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
9285 rtl before testing for pointer bounds. Special-case result_ptr.
9286 (expand_function_start): Maybe reset DECL_RTL of result.
9287 Prefer SSA-assigned location for result and static chain.
9288 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
9289 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
9290 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9291 anonymous SSA names. Use promote_ssa_mode.
9292 (get_temp_reg): Likewise.
9293 (remove_ssa_form): Adjust.
9294 * stor-layout.c (layout_decl): Don't set mem attributes of
9296 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9297 and get its reg_usage for reg invalidation.
9298 (compute_bb_dataflow): Pass it insn.
9299 (emit_notes_in_bb): Likewise.
9301 2015-08-14 Marek Polacek <polacek@redhat.com>
9303 * tree-core.h (tree_base): Fix typo.
9305 2015-08-14 Marek Polacek <polacek@redhat.com>
9308 * gimple.c (infer_nonnull_range_by_attribute): Check that the
9309 nonnull argument position is not outside function arguments.
9311 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
9314 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
9315 'lconst_atomic' with 'const_atomic'.
9316 (atomic_fetch_<optab><mode>): Likewise.
9317 (atomic_<optab>_fetch<mode>): Likewise.
9318 * config/aarch64/iterators.md (lconst-atomic): Move below
9320 (const_atomic): New.
9322 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
9323 Bernd Schmidt <bernds@codesourcery.com>
9325 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
9327 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
9328 (DWARF2_DEBUGGING_INFO): Don't define.
9329 * debug.h (dwarf2_lineno_debug_hooks): Declare.
9330 * toplev.c (process_options): Add a case for it.
9331 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
9332 (dwarf2out_init): Skip most initializations if
9333 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
9335 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
9336 DWARF2_LINENO_DEBUGGING_INFO.
9337 * opts.c (set_debug_level): Likewise.
9339 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
9341 * config/arm/types.md (is_neon_type): Add missing types.
9343 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
9345 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
9347 * config/i386/i386.c (PTA_SKYLAKE): New macros.
9348 (processor_alias_table): Add skylake description.
9349 (enum processor_model): Add skylake processor.
9350 (arch_names_table): Add skylake record.
9351 * doc/invoke.texi: Add skylake item.
9353 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
9355 * ira-int.h: Include recog.h.
9356 * ira-build.c: Don't include recog.h.
9357 * ira-color.c: Likewise.
9358 * ira-conflicts.c: Likewise.
9359 * ira-costs.c: Likewise.
9360 * ira-emit.c: Likewise.
9361 * ira-lives.c: Likewise.
9363 * sched-deps.c: Likewise.
9364 * sel-sched.c: Likewise.
9365 * target-globals.c: Likewise.
9367 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
9370 * reload1.c (elimination_costs_in_insn): Make it obvious to the
9371 compiler that the n_dups and n_operands loop bounds are invariant.
9373 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9375 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
9376 expressions in A and B.
9378 2015-08-13 Richard Biener <rguenther@suse.de>
9380 * tree.c (nonnull_arg_p): Move from ...
9381 * tree-vrp.c (nonnull_arg_p): ... here.
9382 * tree.h (nonnull_arg_p): Declare.
9383 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
9384 here, register ptr != 0 for nonnull_arg_p pointer arguments.
9385 Properly initialize static chain and by-reference result pointer.
9386 (run_scc_vn): Adjust.
9388 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
9390 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
9393 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
9395 * config/aarch64/aarch64-protos.h
9396 (aarch64_gen_atomic_cas): Declare.
9397 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
9398 Choose appropriate instruction pattern for the target.
9399 (aarch64_gen_atomic_cas): New.
9400 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
9401 (atomic_compare_and_swap<mode>_1): Rename to
9402 aarch64_compare_and_swap<mode>. Fix some indentation.
9403 (aarch64_compare_and_swap<mode>_lse): New.
9404 (aarch64_atomic_cas<mode>): New.
9406 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
9408 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
9411 2015-08-13 Richard Biener <rguenther@suse.de>
9413 PR tree-optimization/67191
9414 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
9415 assert we value-numbered last stmts operand because it can validly
9416 trigger for unreachable code.
9418 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9420 PR rtl-optimization/67103
9421 * ifcvt.c (noce_try_store_flag_constants): Move
9422 x = (-(test != 0) & (b - a)) + a transformation to...
9423 (noce_try_cmove): ... Here. Try it if normal conditional
9426 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
9428 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
9430 * config/mips/mips.md (processor): Remove w32 and w64.
9432 2015-08-13 Richard Biener <rguenther@suse.de>
9434 PR tree-optimization/66502
9435 PR tree-optimization/67167
9436 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
9438 (vn_phi_lookup): Adjust.
9439 (vn_phi_insert): Likewise.
9440 (visit_phi): Prefer to value-number to another PHI node
9441 over value-numbering to a PHI argument.
9442 (init_scc_vn): Mark DFS back edges.
9444 2015-08-13 Richard Biener <rguenther@suse.de>
9446 * gimple.h (gcall::code_): New constant static member.
9447 (gcond::code_): Likewise.
9448 * gimple.c (gcall::code_): Define.
9449 (gcond::code_): Likewise.
9450 (is_a_helper <const gcond *>): Add.
9451 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
9452 and forward to a new gcall overload with less checking and a
9453 cheaper way to access the operand.
9454 (gimple_call_lhs_ptr): Likewise.
9455 (gimple_call_set_lhs): Likewise.
9456 (gimple_call_internal_p): Likewise.
9457 (gimple_call_with_bounds_p): Likewise.
9458 (gimple_call_set_with_bounds): Likewise.
9459 (gimple_call_internal_fn): Likewise.
9460 (gimple_call_set_ctrl_altering): Likewise.
9461 (gimple_call_ctrl_altering_p): Likewise.
9462 (gimple_call_fntype): Likewise.
9463 (gimple_call_fn): Likewise.
9464 (gimple_call_fn_ptr): Likewise.
9465 (gimple_call_set_fndecl): Likewise.
9466 (gimple_call_fndecl): Likewise.
9467 (gimple_call_chain): Likewise.
9468 (gimple_call_num_args): Likewise.
9469 (gimple_call_arg): Likewise.
9470 (gimple_call_arg_ptr): Likewise.
9471 (gimple_call_set_arg): Likewise.
9472 (gimple_call_noreturn_p): Likewise.
9473 (gimple_cond_code): Likewise.
9474 (gimple_cond_lhs): Likewise.
9475 (gimple_cond_rhs): Likewise.
9476 (gimple_has_lhs): Reduce checking.
9478 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9481 * match.pd (div (mult @0 @1) @1) : New simplifier.
9483 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
9486 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
9487 predicate to allow construction of vector constants using the
9488 VSLDOI vector shift instruction.
9490 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
9493 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
9494 the number of bytes to be shifted left and filled in with either
9495 all zero or all one bits.
9496 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
9498 (output_vec_const_move): On power8, generate XXLORC to generate
9499 a vector constant with all 1's. Do a split if we need to use a
9502 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
9503 properly test for the MSB.
9505 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
9506 vector constants that can be created with VSLDOI.
9508 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
9511 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
9512 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
9513 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
9514 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
9515 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
9516 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9517 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
9518 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
9519 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
9521 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
9523 * config/xtensa/constraints.md (define_constraint "Y"): New
9525 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
9526 * config/xtensa/linux.h (ASM_SPEC): Likewise.
9527 * config/xtensa/predicates.md (move_operand): Match constants
9528 and symbols in the presence of TARGET_AUTO_LITPOOLS.
9529 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
9530 immediate references to TLS data.
9531 (xtensa_emit_move_sequence): Don't force constants to memory in
9532 the presence of TARGET_AUTO_LITPOOLS.
9533 (print_operand): Add 'y' format, same as default, but capable of
9534 printing SF mode constants as well.
9535 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
9536 (movsf_internal): Add movi pattern that loads literal.
9537 (movsf, movdf): Don't force constants to memory in the presence
9538 of TARGET_AUTO_LITPOOLS.
9539 (movdf_internal): Add 'Y' constraint.
9540 * config/xtensa/xtensa.opt (mauto-litpools): New option.
9541 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
9543 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
9545 * config/arm/arm-fpus.def: Replace booleans with feature flags.
9547 * config/arm/arm.c (ARM_FPU): Update macro.
9548 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
9549 (TARGET_FP16): Likewise.
9550 (TARGET_CRYPTO): Likewise.
9551 (TARGET_NEON): Likewise.
9552 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
9555 2015-08-12 Tom de Vries <tom@codesourcery.com>
9559 * doc/install.texi: Remove --with_host_libstdcxx item. Update
9560 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
9561 accordingly. Mention default for --with-stage1-ldflags.
9563 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
9565 * config/arm/arm.h (arm_fpu_feature_set): New.
9566 (ARM_FPU_FSET_HAS): New.
9570 (FPU_FL_CRYPTO): New.
9572 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9574 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
9575 after -mcmodel=large -fPIC sorry.
9577 2015-08-12 Richard Biener <rguenther@suse.de>
9579 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
9580 comparison operand order and commutative ternary op operand order.
9581 (sccvn_dom_walker::cond_stack): New state to track temporary
9583 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
9585 (sccvn_dom_walker::record_cond): Add a single temporary conditional
9587 (sccvn_dom_walker::record_conds): Add a temporary conditional
9588 expressions and all related expressions also true/false.
9589 (sccvn_dom_walker::before_dom_children): Record temporary
9590 expressions based on the controlling condition of a single
9591 predecessor. When trying to simplify a conditional statement
9592 lookup expressions we might have inserted earlier.
9594 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
9597 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
9598 to ARM core registers.
9600 2015-08-12 Nathan Sidwell <nathan@acm.org>
9602 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
9603 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
9605 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
9607 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
9609 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
9611 2015-08-12 Richard Biener <rguenther@suse.de>
9613 * gimple.h (remove_pointer): New trait.
9614 (GIMPLE_CHECK2): New inline template function.
9615 (gassign::code_): New constant static member.
9616 (is_a_helper<const gassign *>): Add.
9617 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
9618 and forward to a new gassign overload with less checking and a
9619 cheaper way to access the operand.
9620 (gimple_assign_lhs_ptr): Likewise.
9621 (gimple_assign_set_lhs): Likewise.
9622 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
9624 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
9626 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
9628 (gimple_assign_rhs_code): Likewise.
9629 * gimple.c (gassign::code_): Define.
9631 2015-08-12 Richard Biener <rguenther@suse.de>
9633 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9634 Eliminate edges marked as not executable by SCCVN.
9635 * tree-ssa-sccvn.c: Include gimple-iterator.h.
9636 (cond_dom_walker): Rename to sccvn_dom_walker.
9637 (sccvn_dom_walker::before_dom_children): Value-number defs
9639 (run_scc_vn): Remove loop value-numbering all SSA names.
9640 Drop not visited SSA names to varying.
9642 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
9644 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
9645 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
9646 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
9647 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
9648 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
9649 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9650 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
9651 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
9652 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
9654 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
9657 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
9658 to enum feature_priority and feature_list.
9659 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
9660 and isa_names_table.
9662 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
9664 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
9667 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9671 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
9672 account when deciding what was the command-line status.
9674 2015-08-11 Nathan Sidwell <nathan@acm.org>
9676 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
9678 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
9679 we're not the only contributor to target phi.
9681 2015-08-11 Jiong Wang <jiong.wang@arm.com>
9683 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
9686 2015-08-11 Tom de Vries <tom@codesourcery.com>
9688 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
9690 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
9692 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
9694 * config/i386/i386.md (cpu): Remove knl.
9696 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
9700 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
9701 open-coded sequence.
9702 * omp-low.c (oacc_process_reduction_data): Remove handline of
9703 GOMP_DEVICE_HOST_NONSHM.
9705 * lto-streamer-in.c (lto_input_mode_table): Adjust to
9706 GET_MODE_INNER changes.
9708 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
9709 Ilya Verbin <ilya.verbin@intel.com>
9711 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
9713 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
9715 * doc/options.texi (EnabledBy): Document that the argument must be
9717 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
9718 Not enabled by -Wall.
9719 * optc-gen.awk: Give nicer error messages. Detect if the argument
9720 of EnabledBy is not a Common option.
9721 * common.opt (Wnull-dereference): Not enabled by -Wall.
9722 * opt-functions.awk (lang_enabled_by): Nicer error messages.
9724 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
9726 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
9727 model == 0x4f as Broadwell.
9729 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
9731 PR rtl-optimization/67028
9732 * combine.c (simplify_comparison): Fix comment. Rearrange code.
9733 Add test to see if a const_int fits in the new mode.
9735 2015-08-07 DJ Delorie <dj@redhat.com>
9737 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
9739 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
9741 PR rtl-optimization/67029
9742 * ira-color.c: Include "recog.h" before including "ira-int.h".
9743 * target-globals.c: Likewise.
9744 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
9745 adds an alternative_mask argument and use it instead of
9746 preferred_alternatives.
9747 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
9748 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
9749 * sched-deps.c: Include "ira-int.h" after including "ira.h".
9750 (sched_analyze_insn): Update call to
9751 ira_implicitly_set_insn_hard_regs.
9752 * sel-sched.c: Include "ira-int.h" after including "ira.h".
9753 (implicit_clobber_conflict_p): Update call to
9754 ira_implicitly_set_insn_hard_regs.
9756 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
9758 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
9760 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
9763 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
9764 currently_expanding_to_rtl is set.
9766 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
9768 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
9769 * configure: Regenerate.
9771 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9772 Jiong Wang <jiong.wang@arm.com>
9774 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
9775 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
9776 (REG_CLASS_NAMES): Likewise.
9777 (REG_CLASS_CONTENTS): Likewise.
9778 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
9779 (aarch64_register_move_cost): Likewise.
9780 (aarch64_load_symref_appropriately): Invoke the new added pattern if
9782 * config/aarch64/constraints.md (Uc0): New constraint.
9784 2015-08-06 Jiong Wang <jiong.wang@arm.com>
9786 * config/aarch64/constraints.md (Usf): Add the test of
9787 aarch64_is_noplt_call_p.
9789 2015-08-06 Jiong Wang <jiong.wang@arm.com>
9791 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
9793 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
9794 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
9795 (call_symbol): Likewise.
9797 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
9799 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
9800 for vectorizing multiplication patterns.
9801 * tree-vectorizer.h: Adjust the number of patterns.
9803 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
9805 * config/i386/sse.md (*vec_concatv2df): Declare added
9806 alternatives as sselog type.
9808 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9810 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
9813 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9815 * config/s390/s390.c (s390_expand_tbegin): Expand either
9816 tbegin_1_z13 or tbegin_1 depending on VX flag.
9817 * config/s390/s390.md ("tbegin_1_z13"): New expander.
9819 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9821 * config/s390/s390.opt: Clarify description for -mzvector
9822 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
9825 2015-08-06 Richard Biener <rguenther@suse.de>
9827 * gimple.h (gimple_call_set_fn): Access op member directly.
9828 (gimple_call_chain_ptr): Likewise.
9829 (gimple_call_set_chain): Likewise.
9830 (gimple_cond_lhs_ptr): Likewise.
9831 (gimple_cond_set_lhs): Likewise.
9832 (gimple_cond_rhs_ptr): Likewise.
9833 (gimple_cond_set_rhs): Likewise.
9834 (gimple_cond_true_label): Likewise.
9835 (gimple_cond_set_true_label): Likewise.
9836 (gimple_cond_set_false_label): Likewise.
9837 (gimple_cond_false_label): Likewise.
9838 (gimple_label_label): Likewise.
9839 (gimple_label_set_label): Likewise.
9840 (gimple_goto_set_dest): Likewise.
9841 (gimple_asm_input_op): Likewise.
9842 (gimple_asm_input_op_ptr): Likewise.
9843 (gimple_asm_set_input_op): Likewise.
9844 (gimple_asm_output_op): Likewise.
9845 (gimple_asm_output_op_ptr): Likewise.
9846 (gimple_asm_set_output_op): Likewise.
9847 (gimple_asm_clobber_op): Likewise.
9848 (gimple_asm_set_clobber_op): Likewise.
9849 (gimple_asm_label_op): Likewise.
9850 (gimple_asm_set_label_op): Likewise.
9851 (gimple_switch_index): Likewise.
9852 (gimple_switch_index_ptr): Likewise.
9853 (gimple_return_retval_ptr): Likewise.
9854 (gimple_return_retval): Likewise.
9855 (gimple_return_set_retval): Likewise.
9856 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
9857 (gimple_switch_label): Likewise.
9858 (gimple_switch_set_label): Likewise.
9860 2015-08-06 Richard Biener <rguenther@suse.de>
9862 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
9863 bool comparison canonicalization and restrict to integers.
9865 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
9867 * coretypes.h (enum symbol_visibility): Relocate here.
9868 * flag-types.h (enum symbol_visibility): Remove.
9869 * tree-core.h (enum symbol_visibility): Remove.
9871 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
9874 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
9875 for no_split_stack function attribute along with
9877 (rs6000_expand_split_stack_prologue): Likewise.
9879 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
9880 Jeff Law <law@redhat.com>
9883 * doc/invoke.texi (Wnull-dereference): New.
9884 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
9885 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
9886 Warn for potential NULL dereferences.
9887 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
9888 * ubsan.c (instrument_nonnull_arg): Call
9889 infer_nonnull_range_by_attribute.
9890 (instrument_nonnull_return): Likewise.
9891 * common.opt (Wnull-dereference); New.
9892 * gimple.c (infer_nonnull_range): Remove bool arguments.
9893 (infer_nonnull_range_by_dereference): New.
9894 (infer_nonnull_range_by_attribute): New.
9895 * gimple.h: Update declarations.
9897 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9899 * gensupport.c (sequence_num): Replace with...
9900 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
9901 ...these new variables.
9902 (init_rtx_reader_args_cb): Update accordingly.
9903 (get_num_code_insns): Likewise.
9904 (read_md_rtx): Rework to use a while loop and get_c_test.
9905 Use the new counters. Remove redundant DEFINE_SUBST case.
9906 * genoutput.c (gen_split): Delete.
9907 (main): Don't call it.
9909 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9911 * gensupport.h (get_c_test): Declare.
9912 * gensupport.c (get_c_test): New function.
9913 * genconditions.c (main): Use it.
9914 * genrecog.c (validate_pattern): Likewise.
9915 (match_pattern_1): Likewise. Remove c_test argument.
9916 (match_pattern): Update accordingly and remove c_test argument.
9917 (main): Update accordingly.
9919 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9921 * gensupport.h (get_num_insn_codes): Declare.
9922 * gensupport.c (get_num_insn_codes): New function.
9923 * genattrtab.c (optimize_attrs): Rename max_insn_code to
9925 (main): Likewise. Use get_num_insn_codes.
9926 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
9928 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9931 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
9932 is zero- rather than sign-extended.
9934 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9936 * target-insns.def (can_extend): Delete.
9938 2015-08-05 Richard Biener <rguenther@suse.de>
9940 PR tree-optimization/67121
9941 * tree-if-conv.c (combine_blocks): Clear range-info produced
9942 by stmts no longer executed conditionally.
9944 2015-08-05 Nick Clifton <nickc@redhat.com>
9946 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
9947 to allow identical far pointers to remain.
9949 2015-08-05 Richard Biener <rguenther@suse.de>
9952 * match.pd: Compare address bases with == if they are decls
9953 or SSA names, not operand_equal_p. Otherwise fail.
9955 2015-08-05 Richard Biener <rguenther@suse.de>
9957 PR tree-optimization/67055
9958 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
9961 * g++.dg/torture/pr67055.C: New testcase.
9963 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
9965 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
9967 (define_attr "enabled"): Handle avx521vl and noavx512vl.
9968 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
9969 AVX-512 alternative out of SSE.
9970 (define_insn "*vec_concatv2df"): Ditto.
9972 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
9974 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
9975 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
9976 CODE_FOR_avx_ptestv4di.
9977 * config/i386/sse.md (define_mode_iterator V_AVX): New.
9978 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
9979 (define_insn "avx_ptest256"): Merge this ...
9980 (define_insn "sse4_1_ptest"): And this ...
9981 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
9983 2015-08-05 Richard Biener <rguenther@suse.de>
9985 PR tree-optimization/67109
9986 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
9987 against too big groups. Print whether this is a load or store
9988 group. Rename from ...
9989 (vect_analyze_group_access): ... this which is now a wrapper
9990 dissolving an invalid group.
9991 (vect_analyze_data_ref_accesses): Print whether this is a load
9994 2015-08-05 Richard Biener <rguenther@suse.de>
9997 * match.pd: Guard const_binop result checking against NULL_TREE
10000 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
10002 * cse.c (cse_insn): Restoring old behaviour for src_eqv
10003 when dest and value in the REG_EQUAL are same and dest
10004 is STRICT_LOW_PART.
10006 2015-08-04 Anatoly Sokolov <aesok@post.ru>
10008 * config/moxie/moxie.h (PRINT_OPERAND,
10009 PRINT_OPERAND_ADDRESS): Remove macros.
10010 * config/moxie/moxie-protos.h (moxie_print_operand,
10011 moxie_print_operand_address): Remove declaration.
10012 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
10013 TARGET_PRINT_OPERAND_ADDRESS): Define.
10014 (moxie_print_operand, moxie_print_operand_address): Make static.
10016 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
10019 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
10020 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
10022 2015-08-04 Richard Biener <rguenther@suse.de>
10024 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
10026 (dt_operand::gen_gimple_expr): Adjust.
10028 2015-08-04 Richard Biener <rguenther@suse.de>
10030 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
10031 bool compares on RHS.
10032 * match.pd: Add X ==/!= !X is false/true pattern.
10034 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
10036 * config/aarch64/aarch64.c: Change inner loop statement cost
10037 to be consistent with other targets.
10039 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
10041 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
10044 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
10046 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
10047 (machine_function): Remove pseudos field.
10049 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10051 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
10052 Exit early and use target_option_current_node if processing current
10055 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10057 * doc/extend.texi (AArch64 Function Attributes): New node.
10058 (AArch64 Pragmas): Likewise.
10060 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10062 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
10063 Initialize simd builtins if TARGET_SIMD.
10064 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
10065 Make sure that the builtins are initialized only once no matter how
10066 many times the function is called.
10067 (aarch64_init_builtins): Unconditionally initialize crc builtins.
10068 (aarch64_relayout_simd_param): New function.
10069 (aarch64_simd_expand_args): Use above during argument expansion.
10070 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
10071 simd builtins if TARGET_SIMD.
10072 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
10074 (aarch64_relayout_simd_types): Likewise.
10076 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10078 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
10079 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
10080 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
10081 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
10083 (aarch64_reset_previous_fndecl): New function.
10084 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
10086 * config/aarch64/aarch64-c.c: New file.
10087 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
10088 Push and pop options at beginning and end. Remove ifdef
10089 __ARM_FEATURE_CRC32.
10090 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
10091 Add pragma +nothing+simd and +nothing+crypto where appropriate.
10092 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
10093 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
10095 (aarch64_register_pragmas): Likewise.
10096 (aarch64_reset_previous_fndecl): Likewise.
10097 (aarch64_process_target_attr): Likewise.
10098 (aarch64_override_options_internal): Likewise.
10100 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10102 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
10104 (aarch64_can_inline_p): Likewise.
10105 (TARGET_CAN_INLINE_P): Define.
10107 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10109 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
10110 Remove static. Handle OPT_mgeneral_regs_only,
10111 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
10112 OPT_momit_leaf_frame_pointer.
10113 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
10114 (aarch64_attr_opt_type): New enum.
10115 (aarch64_attribute_info): New struct.
10116 (aarch64_handle_attr_arch): New function.
10117 (aarch64_handle_attr_cpu): Likewise.
10118 (aarch64_handle_attr_tune): Likewise.
10119 (aarch64_handle_attr_isa_flags): Likewise.
10120 (aarch64_attributes): New table.
10121 (aarch64_process_one_target_attr): New function.
10122 (num_occurences_in_str): Likewise.
10123 (aarch64_process_target_attr): Likewise.
10124 (aarch64_option_valid_attribute_p): Likewise.
10125 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
10126 * config/aarch64/aarch64-protos.h: Include input.h
10127 (aarch64_handle_option): Declare prototype.
10129 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10131 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
10132 * config/aarch64/aarch64.c: Include target-globals.h
10133 (aarch64_previous_fndecl): New variable.
10134 (aarch64_set_current_function): New function.
10135 (TARGET_SET_CURRENT_FUNCTION): Define.
10137 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10139 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
10140 (explicit_arch): Likewise.
10141 (x_aarch64_isa_flags): Likewise.
10142 (mgeneral-regs-only): Mark as Save.
10143 (mfix-cortex-a53-835769): Likewise.
10144 (mcmodel=): Likewise.
10145 (mstrict-align): Likewise.
10146 (momit-leaf-frame-pointer): Likewise.
10147 (mtls-dialect): Likewise.
10148 (master=): Likewise.
10149 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
10150 (aarch64_isa_flags): Remove extern declaration.
10151 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
10152 to indicate success or failure.
10153 (aarch64_validate_march): Likewise.
10154 (aarch64_validate_mtune): Likewise.
10155 (aarch64_isa_flags): Delete.
10156 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
10157 instead of aarch64_isa_flags.
10158 (aarch64_get_tune_cpu): New function.
10159 (aarch64_get_arch): Likewise.
10160 (aarch64_override_options): Use above and set up explicit_tune_core
10162 (aarch64_print_extension): Move earlier in file. Add isa_flags
10163 argument and use that instead of the global aarch64_isa_flags.
10164 (aarch64_option_save): New function.
10165 (aarch64_option_restore): Likewise.
10166 (aarch64_option_print): Likewise.
10167 (aarch64_declare_function_name): Likewise.
10168 (aarch64_start_file): Delete.
10169 (TARGET_ASM_FILE_START): Do not define.
10170 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
10171 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
10174 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10176 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
10177 flag_omit_leaf_frame_pointer to 2.
10179 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10181 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
10183 (TARGET_FIX_ERR_A53_835769): New macro.
10184 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
10185 handling of opts->x_aarch64_fix_a53_err835769.
10186 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
10187 than aarch64_fix_a53_err835769.
10188 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
10189 * config/aarch64/aarch64-linux.h: Likewise.
10191 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
10193 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
10194 ix86_expand_int_movcc as boolean.
10196 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10198 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
10199 (aarch64_cpu_string): Likewise.
10200 (aarch64_tune_string): Likewise.
10201 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
10202 (aarch64_parse_extension): Return aarch64_parse_opt_result.
10203 Add extra argument to put result into.
10204 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
10205 (aarch64_parse_cpu): Add arguments to put results into. Return
10206 aarch64_parse_opt_result.
10207 (aarch64_parse_tune): Likewise.
10208 (aarch64_override_options_after_change_1): New function.
10209 (aarch64_override_options_internal): New function.
10210 (aarch64_validate_mcpu): Likewise.
10211 (aarch64_validate_march): Likewise.
10212 (aarch64_validate_mtune): Likewise.
10213 (aarch64_override_options): Update to reflect above changes.
10214 Move some logic into aarch64_override_options_internal.
10215 Initialize target_option_default_node and target_option_current_node.
10216 (aarch64_override_options_after_change): Move logic into
10217 aarch64_override_options_after_change_1 and call it with global_options.
10218 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
10219 flag values from that.
10221 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10223 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
10224 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
10225 * config/aarch64/aarch64.c (struct processor): Add arch field.
10226 (all_architectures): Handle above, move above all_cores.
10227 (all_cores): Handle above.
10228 (aarch64_parse_arch): Handle above changes.
10229 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
10230 above. Update comments.
10231 (armv8.1-a): Likewise.
10232 * config/aarch64/aarch64-cores.def: Update according to above.
10233 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
10234 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
10235 aarch64_arch_driver_info.
10237 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10239 * config/aarch64/aarch64.c (struct processor): Add ident field.
10240 Rename core sched_core.
10241 (all_cores): Handle above changes.
10242 (all_architectures): Likewise.
10243 (aarch64_parse_arch): Likewise.
10244 (aarch64_override_options): Likewise.
10246 2015-08-04 Richard Biener <rguenther@suse.de>
10248 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
10249 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
10250 comparisons embedded in [VEC_]COND_EXPRs.
10252 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
10254 * tree-if-conv.c: Fix various typos in comments.
10255 * tree-vect-stmts.c: Likewise.
10257 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
10259 PR tree-optimization/67043
10260 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
10261 preheader after hoisting invariant in it.
10262 (find_defs): Force recomputation of all luids.
10264 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
10266 * config/rs6000/htm.md (tabort.): Restrict the source operand to
10267 using a base register.
10269 2015-08-03 David Malcolm <dmalcolm@redhat.com>
10271 * main.c (main): Pass in NULL for toplev's external_timer.
10272 * timevar.c: Include coretypes.h.
10273 (class timer::named_items): New.
10274 (timer::named_items::named_items): New.
10275 (timer::named_items::~named_items): New.
10276 (timer::named_items::push): New.
10277 (timer::named_items::pop): New.
10278 (timer::named_items::print): New.
10279 (timer::timer): Initialize field "m_jit_client_items".
10280 (timer::~timer): New.
10281 (timer::push): Move bulk of implementation to...
10282 (timer::push_internal): ...here. New function.
10283 (timer::pop): Move bulk of implementation to...
10284 (timer::pop_internal): ...here. New function.
10285 (timer::push_client_item): New.
10286 (timer::pop_client_item): New.
10287 (timer::print_row): New function, taken from timer::print.
10288 (timer::print): Print "GCC items" header if we also have client
10289 items. Move row-printing to timer::print_row. Print any client
10291 (timer::get_topmost_item_name): New method.
10292 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
10293 (TV_JIT_CLIENT_CODE): New.
10294 * timevar.h (timer::push_client_item): New declaration.
10295 (timer::pop_client_item): New declaration.
10296 (timer::get_topmost_item_name): New method.
10297 (timer::push_internal): New declaration.
10298 (timer::pop_internal): New declaration.
10299 (timer::print_row): New declaration.
10300 (timer::named_items): New declaration.
10301 (timer::m_jit_client_items): New field.
10302 (timer): Add friend class named_items.
10303 (auto_timevar::auto_timevar): Add timer param.
10304 (auto_timevar::~auto_timevar): Use field "m_timer".
10305 (auto_timevar::m_timer): New field.
10306 * toplev.c (initialize_rtl): Add g_timer as param when
10307 constructing auto_timevar instance.
10308 (toplev::toplev): Add "external_timer" param, and use it to
10309 initialize the "g_timer" global if non-NULL.
10310 (toplev::~toplev): If this created "g_timer", delete it.
10311 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
10312 with "external_timer" timer *.
10314 2015-08-03 Alexander Basov <coohpt@gmail.com>
10316 PR middle-end/64744
10317 PR middle-end/48470
10318 PR middle-end/43404
10319 * cfgexpand.c (expand_one_var): Add check if stack is going to
10320 be used in naked function.
10321 * expr.c (expand_expr_addr_expr_1): Remove excess checking
10322 whether expression should not reside in MEM.
10323 * function.c (use_register_for_decl): Do not use registers for
10324 non-register things (volatile, float, BLKMode) in naked functions.
10326 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
10329 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
10330 Adjust splits to match new pattern.
10332 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10334 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
10337 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
10338 point in VSX registers.
10340 * config/rs6000/constraints.md (wb constraint): Document unused
10342 (we constraint): Likewise.
10343 (wo constraint): Likewise.
10344 (wp constraint): New constraint for IEEE 128-bit floating point in
10346 (wq constraint): Likewise.
10348 * config/rs6000/predicates.md (easy_fp_constant): Add support for
10349 IEEE 128-bit floating point in VSX registers.
10350 (easy_scalar_constant): Likewise.
10352 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
10353 constraints (wp, wq) for IEEE 128-bit floating point in VSX
10355 (rs6000_init_hard_regno_mode_ok): Likewise.
10357 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
10358 floating point in VSX registers.
10361 (VSX_M2): Likewise.
10367 (vsx_le_permute_<mode>): Add support to properly swap bytes for
10368 IEEE 128-bit floating point in VSX registers on little endian.
10369 (vsx_le_undo_permute_<mode>): Likewise.
10370 (vsx_le_perm_load_<mode>): Likewise.
10371 (vsx_le_perm_store_<mode>): Likewise.
10372 (splitters for IEEE 128-bit fp moves): Likewise.
10374 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
10377 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
10378 floating point in VSX registers.
10381 * doc/md.text (Machine Constraints): Document wp and wq
10382 constraints on PowerPC.
10384 2015-08-03 Jeff Law <law@redhat.com>
10386 PR middle-end/66314
10387 PR gcov-profile/66899
10388 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
10389 iterate over the jump threading paths when an element in the
10390 jump threading paths array is eliminated.
10392 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
10394 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
10396 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
10398 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
10399 is_use_properly_guarded the variable def_preds. Free its
10400 contents before returning.
10401 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
10402 (is_use_properly_guarded): Replace local variable def_preds with
10403 a parameter. Adjust accordingly. Only update *def_preds if it's
10406 2015-08-03 Richard Biener <rguenther@suse.de>
10408 * genmatch.c (simplify::for_subst_vec): New member.
10409 (binary_ok): New helper for for lowering.
10410 (lower_for): Delay substituting operators into result expressions
10411 if we can merge the results eventually again.
10412 (capture_info::walk_result): Adjust for user_id appearing as
10413 result expression operator.
10414 (expr::gen_transform): Likewise.
10415 (dt_simplify::gen_1): Likewise.
10416 (dt_simplify::gen): Pass not substituted operators to tail
10417 functions or initialize local variable with it.
10418 (decision_tree::gen): Adjust function signature.
10419 * match.pd: Fix tests against global code and add default
10420 cases to switch stmts.
10422 2015-08-03 Richard Biener <rguenther@suse.de>
10424 * genmatch.c (dt_simplify::gen): Create captures array
10425 with an initializer.
10427 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10429 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
10430 the host compiler is affected by placement new aliasing bug.
10431 * configure: Regenerate.
10432 * Makefile.in (ALIASING_FLAGS): New variable.
10433 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
10435 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
10438 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
10439 (negmulsf3_vfp): Likewise.
10440 (muldf3negdf_vfp): Disable for -frounding-math.
10441 (mulsf3negsf_vfp): Likewise.
10442 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
10443 fix MULT cost with -frounding-math.
10445 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10447 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
10448 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
10449 explicit. Prefer to add the flag whenever possible.
10450 (noce_process_if_block): Try noce_try_store_flag_constants before
10453 2015-08-03 Richard Biener <rguenther@suse.de>
10455 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
10456 New hash-map to record equivalent transforms.
10457 (dt_node::analyze): Populate the equivalent transforms hash-map.
10458 (dt_simplify::info): Add reference to hash-map entry.
10459 (dt_simplify::gen): If we have split out a function for the
10460 transform, generate a call to it.
10461 (sinfo_hashmap_traits::hash): New function.
10462 (compare_op): New helper function for ...
10463 (sinfo_hashmap_traits::equal_keys): ... this new function.
10464 (decision_tree::gen): Split out common equivalent transforms
10467 2015-08-03 Richard Biener <rguenther@suse.de>
10469 * gimple-fold.c (fold_gimple_assign): Remove folding of
10470 the comparison in COND_EXPRs.
10472 2015-08-03 Richard Biener <rguenther@suse.de>
10474 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
10475 on the rhs of assignments first simplify the embedded
10478 2015-08-03 Richard Biener <rguenther@suse.de>
10480 PR tree-optimization/66917
10481 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
10483 (DR_VECT_AUX): New macro.
10484 (set_dr_misalignment): Adjust.
10485 (dr_misalignment): Likewise.
10486 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
10487 Compute whether the base is at least element aligned.
10488 * tree-vect-stmts.c (ensure_base_align): Adjust.
10489 (vectorizable_store): If the base is not element aligned
10490 preserve alignment of the original access if misalignment is unknown.
10491 (vectorizable_load): Likewise.
10493 2015-08-02 Martin Sebor <msebor@redhat.com>
10495 * c-family/c.opt (-Wframe-address): New warning option.
10496 * doc/invoke.texi (Wframe-address): Document it.
10497 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
10498 Clarify possible effects of calling the functions with non-zero
10499 arguments and mention -Wframe-address.
10500 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
10502 2015-08-01 Michael Collison <michael.collison@linaro.org
10503 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10505 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
10506 (*arm_umin_cmp): Likewise.
10508 2015-08-01 Caroline Tice <cmtice@google.com>
10511 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
10513 (vtbl_find_mangled_name): New function.
10514 (vtbl_register_mangled_name): New function.
10515 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
10516 mangled name in mangled name vectors.
10517 (find_or_create_vtbl_map_node): Ditto.
10518 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
10519 update recursion_depth on function entry; pass it to every recursive
10520 call; automatically exit if depth > 25 (give up looking at that point).
10521 (verify_bb_vtables): Initialize recursion_depth and pass it to
10522 var_is_used_for_virtual_call_p.
10523 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
10524 global variable decls.
10525 (vtbl_register_mangled_name): New extern function decl.
10527 2015-08-01 Tom de Vries <tom@codesourcery.com>
10529 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
10531 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
10533 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
10534 operation_no_trapping_overflow. Allow non-overflow operations.
10535 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
10538 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
10541 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
10543 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10545 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
10546 Enable for TARGET_32BIT.
10547 (*if_move_neg): Likewise.
10549 2015-07-31 Nick Clifton <nickc@redhat.com>
10551 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
10552 Returns true for __model__.
10553 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10555 2015-07-31 Alan Modra <amodra@gmail.com>
10558 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
10559 (rs6000_emit_prologue): Set it.
10560 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
10562 2015-07-31 Richard Biener <rguenther@suse.de>
10564 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
10565 -> X == (C1 ^ C2) which is already implemented in match.pd.
10566 Remove redundant dispatching to fold_relational_const.
10567 Move unordered self and NaN compares ...
10568 * match.pd: ... as patterns here. Remove some stray captures
10571 2015-07-31 Petr Murzin <petr.murzin@intel.com>
10573 * config/i386/i386.c
10574 (bdesc_special_args): Convert mask type from signed to unsigned for
10576 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
10577 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
10578 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
10579 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
10580 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
10581 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
10582 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
10583 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
10584 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
10585 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
10586 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
10587 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
10588 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
10589 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
10590 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
10591 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
10592 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
10593 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
10594 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
10595 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
10596 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
10597 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
10598 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
10599 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
10600 * config/i386/i386-builtin-types.def
10601 (V16QI_FTYPE_V16SI): Remove.
10602 (V8DF_FTYPE_V8SI): Ditto.
10603 (V8HI_FTYPE_V8DI): Ditto.
10604 (V8SI_FTYPE_V8DI): Ditto.
10605 (V8SF_FTYPE_V8DF): Ditto.
10606 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
10607 (V16HI_FTYPE_V16SI): Ditto.
10608 (V16SF_FTYPE_V16HI): Ditto.
10609 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
10610 (V16SF_FTYPE_V16SI): Ditto.
10611 (V4DI_FTYPE_V4DI): Ditto.
10612 (V16SI_FTYPE_V16SF): Ditto.
10613 (V16SF_FTYPE_FLOAT): Ditto.
10614 (V8DF_FTYPE_DOUBLE): Ditto.
10615 (V8DI_FTYPE_INT64): Ditto.
10616 (V8DI_FTYPE_V4DI): Ditto.
10617 (V16QI_FTYPE_V8DI): Ditto.
10618 (UINT_FTYPE_V4SF): Ditto.
10619 (UINT64_FTYPE_V4SF): Ditto.
10620 (UINT_FTYPE_V2DF): Ditto.
10621 (UINT64_FTYPE_V2DF): Ditto.
10622 (V16SI_FTYPE_V16SI): Ditto.
10623 (V8DI_FTYPE_V8DI): Ditto.
10624 (V16SI_FTYPE_PV4SI): Ditto.
10625 (V16SF_FTYPE_PV4SF): Ditto.
10626 (V8DI_FTYPE_PV2DI): Ditto.
10627 (V8DF_FTYPE_PV2DF): Ditto.
10628 (V4DI_FTYPE_PV2DI): Ditto.
10629 (V4DF_FTYPE_PV2DF): Ditto.
10630 (V16SI_FTYPE_PV2SI): Ditto.
10631 (V16SF_FTYPE_PV2SF): Ditto.
10632 (V8DI_FTYPE_PV4DI): Ditto.
10633 (V8DF_FTYPE_PV4DF): Ditto.
10634 (V8SF_FTYPE_FLOAT): Ditto.
10635 (V4SF_FTYPE_FLOAT): Ditto.
10636 (V4DF_FTYPE_DOUBLE): Ditto.
10637 (V8SF_FTYPE_PV4SF): Ditto.
10638 (V8SI_FTYPE_PV4SI): Ditto.
10639 (V4SI_FTYPE_PV2SI): Ditto.
10640 (V8SF_FTYPE_PV2SF): Ditto.
10641 (V8SI_FTYPE_PV2SI): Ditto.
10642 (V16SF_FTYPE_PV8SF): Ditto.
10643 (V16SI_FTYPE_PV8SI): Ditto.
10644 (V8DI_FTYPE_V8SF): Ditto.
10645 (V4DI_FTYPE_V4SF): Ditto.
10646 (V2DI_FTYPE_V4SF): Ditto.
10647 (V64QI_FTYPE_QI): Ditto.
10648 (V32HI_FTYPE_HI): Ditto.
10649 (V8UHI_FTYPE_V8UHI): Ditto.
10650 (V16UHI_FTYPE_V16UHI): Ditto.
10651 (V32UHI_FTYPE_V32UHI): Ditto.
10652 (V2UDI_FTYPE_V2UDI): Ditto.
10653 (V4UDI_FTYPE_V4UDI): Ditto.
10654 (V8UDI_FTYPE_V8UDI): Ditto.
10655 (V4USI_FTYPE_V4USI): Ditto.
10656 (V8USI_FTYPE_V8USI): Ditto.
10657 (V16USI_FTYPE_V16USI): Ditto.
10658 (V2DF_FTYPE_V2DF_UINT64): Ditto.
10659 (V2DI_FTYPE_V2DF_V2DF): Ditto.
10660 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
10661 (V8DF_FTYPE_V8DF_V8DI): Ditto.
10662 (V4SF_FTYPE_V4SF_UINT64): Ditto.
10663 (V4SI_FTYPE_V4SF_V4SF): Ditto.
10664 (V16SF_FTYPE_V16SF_V16SI): Ditto.
10665 (V64QI_FTYPE_V32HI_V32HI): Ditto.
10666 (V32HI_FTYPE_V16SI_V16SI): Ditto.
10667 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
10668 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
10669 (V32HI_FTYPE_V64QI_V64QI): Ditto.
10670 (V32HI_FTYPE_V32HI_V32HI): Ditto.
10671 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
10672 (V16SI_FTYPE_V16SI_V4SI): Ditto.
10673 (V16SI_FTYPE_V16SI_V16SI): Ditto.
10674 (V16SI_FTYPE_V32HI_V32HI): Ditto.
10675 (V16SI_FTYPE_V16SI_SI): Ditto.
10676 (V8DI_FTYPE_V8DI_V8DI): Ditto.
10677 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
10678 (V8DI_FTYPE_V16SI_V16SI): Ditto.
10679 (V8DI_FTYPE_V8DI_V2DI): Ditto.
10680 (QI_FTYPE_QI): Ditto.
10681 (SI_FTYPE_SI): Ditto.
10682 (DI_FTYPE_DI): Ditto.
10683 (QI_FTYPE_QI_QI): Ditto.
10684 (QI_FTYPE_QI_INT): Ditto.
10685 (HI_FTYPE_HI_INT): Ditto.
10686 (SI_FTYPE_SI_INT): Ditto.
10687 (DI_FTYPE_DI_INT): Ditto.
10688 (HI_FTYPE_V16QI_V16QI): Ditto.
10689 (SI_FTYPE_V32QI_V32QI): Ditto.
10690 (DI_FTYPE_V64QI_V64QI): Ditto.
10691 (QI_FTYPE_V8HI_V8HI): Ditto.
10692 (HI_FTYPE_V16HI_V16HI): Ditto.
10693 (SI_FTYPE_V32HI_V32HI): Ditto.
10694 (QI_FTYPE_V4SI_V4SI): Ditto.
10695 (QI_FTYPE_V8SI_V8SI): Ditto.
10696 (QI_FTYPE_V2DI_V2DI): Ditto.
10697 (QI_FTYPE_V4DI_V4DI): Ditto.
10698 (QI_FTYPE_V8DI_V8DI): Ditto.
10699 (HI_FTYPE_V16SI_V16SI): Ditto.
10700 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
10701 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
10702 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
10703 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
10704 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
10705 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
10706 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
10707 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
10708 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
10709 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
10710 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
10711 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
10712 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
10713 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
10714 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
10715 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
10716 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
10717 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
10718 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
10719 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
10720 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
10721 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
10722 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
10723 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
10724 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
10725 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
10726 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
10727 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
10728 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
10729 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
10730 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
10731 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
10732 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
10733 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
10734 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
10735 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
10736 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
10737 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
10738 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
10739 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
10740 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
10741 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
10742 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
10743 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
10744 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
10745 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
10746 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
10747 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
10748 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
10749 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
10750 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
10751 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
10752 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
10753 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
10754 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
10755 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
10756 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
10757 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
10758 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
10759 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
10760 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
10761 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
10762 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
10763 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
10764 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
10765 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
10766 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
10767 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
10768 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
10769 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
10770 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
10771 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
10772 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
10773 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
10774 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
10775 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
10776 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
10777 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
10778 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
10779 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
10780 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
10781 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
10782 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
10783 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
10784 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
10785 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
10786 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
10787 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
10788 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
10789 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
10790 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
10791 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
10792 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
10793 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
10794 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
10795 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
10796 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
10797 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
10798 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
10799 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
10800 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
10801 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
10802 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
10803 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
10804 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
10805 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
10806 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
10807 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
10808 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
10809 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
10810 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
10811 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
10812 (HI_FTYPE_HI): Ditto.
10813 (HI_FTYPE_V16QI): Ditto.
10814 (SI_FTYPE_V32QI): Ditto.
10815 (DI_FTYPE_V64QI): Ditto.
10816 (QI_FTYPE_V8HI): Ditto.
10817 (HI_FTYPE_V16HI): Ditto.
10818 (SI_FTYPE_V32HI): Ditto.
10819 (QI_FTYPE_V4SI): Ditto.
10820 (QI_FTYPE_V8SI): Ditto.
10821 (HI_FTYPE_V16SI): Ditto.
10822 (QI_FTYPE_V2DI): Ditto.
10823 (QI_FTYPE_V4DI): Ditto.
10824 (QI_FTYPE_V8DI): Ditto.
10825 (V16QI_FTYPE_HI): Ditto.
10826 (V32QI_FTYPE_SI): Ditto.
10827 (V64QI_FTYPE_DI): Ditto.
10828 (V8HI_FTYPE_QI): Ditto.
10829 (V16HI_FTYPE_HI): Ditto.
10830 (V32HI_FTYPE_SI): Ditto.
10831 (V4SI_FTYPE_QI): Ditto.
10832 (V4SI_FTYPE_HI): Ditto.
10833 (V8SI_FTYPE_QI): Ditto.
10834 (V8SI_FTYPE_HI): Ditto.
10835 (V2DI_FTYPE_QI): Ditto.
10836 (V4DI_FTYPE_QI): Ditto.
10837 (HI_FTYPE_HI_HI): Ditto.
10838 (SI_FTYPE_SI_SI): Ditto.
10839 (DI_FTYPE_DI_DI): Ditto.
10840 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
10841 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
10842 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
10843 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
10844 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
10845 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
10846 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
10847 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
10848 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
10849 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
10850 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
10851 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
10852 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
10853 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
10854 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
10855 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
10856 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
10857 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
10858 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
10859 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
10860 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
10861 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
10862 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
10863 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
10864 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
10865 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
10866 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
10867 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
10868 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
10869 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
10870 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
10871 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
10872 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
10873 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
10874 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
10875 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
10876 (V16SI_FTYPE_HI): Ditto.
10877 (V8DI_FTYPE_QI): Ditto.
10878 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
10879 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
10880 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
10881 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
10882 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
10883 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
10884 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
10885 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
10886 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
10887 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
10888 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
10889 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
10890 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
10891 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
10892 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
10893 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
10894 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
10895 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
10896 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
10897 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
10898 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
10899 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
10900 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
10901 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
10902 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
10903 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
10904 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
10905 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
10906 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
10907 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
10908 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
10909 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
10910 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
10911 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
10912 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
10913 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
10914 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
10915 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
10916 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
10917 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
10918 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
10919 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
10920 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
10921 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
10922 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
10923 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
10924 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
10925 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
10926 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
10927 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
10928 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
10929 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
10930 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
10931 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
10932 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
10933 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
10934 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
10935 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
10936 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
10937 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
10938 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
10939 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
10940 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
10941 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
10942 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
10943 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
10944 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
10945 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
10946 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
10947 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
10948 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
10949 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
10950 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
10951 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
10952 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
10953 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
10954 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
10955 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
10956 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
10957 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
10958 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
10959 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
10960 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
10961 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
10962 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
10963 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
10964 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
10965 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
10966 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
10967 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
10968 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
10969 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
10970 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
10971 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
10972 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
10973 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
10974 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
10975 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
10976 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
10977 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
10978 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
10979 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
10980 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
10981 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
10982 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
10983 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
10984 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
10985 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
10986 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
10987 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
10988 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
10989 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
10990 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
10991 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
10992 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
10993 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
10994 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
10995 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
10996 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
10997 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
10998 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
10999 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
11000 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
11001 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
11002 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
11003 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
11004 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
11005 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
11006 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
11007 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
11008 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
11009 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
11010 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
11011 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
11012 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
11013 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
11014 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
11015 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
11016 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
11017 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
11018 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
11019 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
11020 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
11021 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
11022 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
11023 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
11024 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
11025 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
11026 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
11027 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
11028 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
11029 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
11030 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
11031 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
11032 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
11033 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
11034 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
11035 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
11036 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
11037 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
11038 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
11039 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
11040 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
11041 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
11042 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
11043 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
11044 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
11045 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
11046 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
11047 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
11048 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
11049 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
11050 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
11051 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
11052 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
11053 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
11054 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
11055 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
11056 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
11057 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
11058 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
11059 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
11060 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
11061 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
11062 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
11063 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
11064 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
11065 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
11066 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
11067 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
11068 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
11069 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
11070 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
11071 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
11072 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
11073 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
11074 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
11075 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
11076 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
11077 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
11078 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
11079 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
11080 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
11081 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
11082 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
11083 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
11084 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
11085 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
11086 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
11087 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
11088 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
11089 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
11090 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
11091 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
11092 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
11093 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
11094 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
11095 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
11096 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
11097 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
11098 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
11099 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
11100 (QI_FTYPE_V8DF_INT_QI): Ditto.
11101 (QI_FTYPE_V4DF_INT_QI): Ditto.
11102 (QI_FTYPE_V2DF_INT_QI): Ditto.
11103 (HI_FTYPE_V16SF_INT_HI): Ditto.
11104 (QI_FTYPE_V8SF_INT_QI): Ditto.
11105 (QI_FTYPE_V4SF_INT_QI): Ditto.
11106 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
11108 2015-07-31 Richard Biener <rguenther@suse.de>
11110 * gimple-fold.c (fold_gimple_assign): Remove folding of
11113 2015-07-31 Tom de Vries <tom@codesourcery.com>
11115 PR tree-optimization/66846
11116 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
11117 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
11118 (expand_omp_target) [ENABLE_CHECKING]: Same.
11119 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
11120 cfun if !LOOPS_NEED_FIXUP.
11121 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
11122 that omp_for already has its own loop struct.
11123 * tree-parloops.c (create_phi_for_local_result)
11124 (create_call_for_reduction): Handle simple latch bb.
11125 (create_parallel_loop): Add simple latch bb to preserve
11126 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
11127 (gen_parallel_loop): Remove call to cancel_loop_tree.
11128 (parallelize_loops): Skip loops that are inner loops of parallelized
11130 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
11131 verify_loop_structure.
11133 2015-07-30 Anatoly Sokolov <aesok@post.ru>
11135 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
11136 * config/v850/v850.md (RV_REGNUM): New constants.
11137 * config/v850/v850.c (v850_libcall_value): New functions.
11138 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
11139 (TARGET_LIBCALL_VALUE): Define.
11141 2015-07-30 Anatoly Sokolov <aesok@post.ru>
11143 * rtl.h (lowpart_subreg): Move in file.
11144 * loop-iv.c (lowpart_subreg): Move to...
11145 * simplify-rtx.c (lowpart_subreg): ...here.
11146 (simplify_binary_operation_1): Use lowpart_subreg instead of
11147 simplify_gen_subreg.
11148 * expr.c (expand_expr_real_2): Ditto.
11149 * emit-rtl.c (gen_lowpart_common): Ditto.
11150 * combine.c (gen_lowpart_for_combine): Ditto.
11151 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
11152 expand_debug_source_expr): Ditto.
11154 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
11156 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
11157 (expand_builtin_atomic_clear): Remove support for atomic_clear
11160 2015-07-30 Richard Biener <rguenther@suse.de>
11162 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
11163 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
11164 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
11165 redundant operand canonicalization.
11167 2015-07-30 David Sherwood <david.sherwood@arm.com>
11169 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
11170 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
11171 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
11172 * config/arm/arm.c (neon_valid_immediate): Likewise.
11173 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
11174 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
11175 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
11176 (expand_vec_perm_vpshufb2_vpermq): Likewise.
11177 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
11178 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
11179 * config/i386/sse.md
11180 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
11181 (*ssse3_palignr<mode>_perm): Likewise.
11182 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
11183 * config/spu/spu.c (arith_immediate_p): Likewise.
11184 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11185 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
11187 2015-07-30 Richard Biener <rguenther@suse.de>
11189 * genmatch.c (decision_tree::gen_gimple): Merge with ...
11190 (decision_tree::gen_generic): ... this into ...
11191 (decision_tree::gen): ... this.
11192 (main): Adjust callers.
11194 2015-07-30 Richard Biener <rguenther@suse.de>
11196 * genmatch.c (verbose): New global.
11197 (warning_at): Add overload with source_location.
11198 (capture_info::capture_info): Add bool whether generating gimple
11199 or generic. Add gimple member.
11200 (capture_info::cinfo): Add capture member.
11201 (capture_info::walk_match): Record capture. Warn on
11202 non-captured leafs.
11203 (capture_info::walk_c_expr): Add more fragments captures cannot
11204 escape through. Warn on escaped captures.
11205 (dt_simplify::gen_1): Warn on operands we force to have no
11207 (main): Initialize verbose.
11208 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
11210 2015-07-30 Richard Biener <rguenther@suse.de>
11212 PR middle-end/67053
11213 * match.pd: Allow both operands to independently have conversion
11214 when simplifying compares of addresses.
11216 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
11220 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
11221 around those cases that need one.
11223 2015-07-29 Aditya Kumar <hiraditya@msn.com>
11225 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
11227 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
11229 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
11230 New. Copied from config/i386/gnu-user.h.
11231 (ASM_COMMENT_START): Likewise.
11232 (DBX_REGISTER_NUMBER): Likewise.
11234 2015-07-29 Richard Biener <rguenther@suse.de>
11236 * gimple-fold.c (fold_gimple_cond): Remove.
11237 (fold_stmt_1): Do not call it.
11239 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
11241 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
11242 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
11244 * config/aarch64/aarch64-modes.def: Add HFmode.
11246 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11247 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
11249 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
11250 aarch64_promoted_type): New.
11252 (aarch64_float_const_representable_p): Disable HFmode.
11253 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
11254 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
11255 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
11257 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
11258 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
11260 * config/aarch64/iterators.md (GPF_F16): New.
11262 2015-07-29 Richard Biener <rguenther@suse.de>
11264 * match.pd: Merge address comparison patterns and make them
11265 handle some more cases.
11267 2015-07-29 Richard Biener <rguenther@suse.de>
11269 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
11270 (parser::parse_capture): Add bool argument on whether to reject
11272 (parser::parse_expr): Adjust.
11273 (parser::parse_op): Likewise.
11274 (parser::parse_pattern): Likewise.
11276 2015-07-29 Richard Biener <rguenther@suse.de>
11278 * gimple-fold.c (has_use_on_stmt): New function.
11279 (replace_stmt_with_simplification): Use it to allow
11280 abnormals originally referenced in the stmt.
11281 (fold_stmt_1): Canonicalize operand order.
11283 2015-07-28 David Sherwood <david.sherwood@arm.com>
11285 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
11286 GET_MODE_INNER unconditionally.
11287 * config/spu/spu.c (arith_immediate_p): Likewise.
11288 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
11289 * expmed.c (synth_mult): Remove check for VOIDmode result from
11291 (expand_mult_const): Likewise.
11292 * fold-const.c (fold_binary_loc): Replace call to element_precision
11293 with call to GET_MODE_PRECISION.
11294 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
11296 (emit_mode_inner): Likewise.
11297 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
11299 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
11300 (GET_MODE_UNIT_PRECISION): Likewise.
11301 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
11302 * simplify-rtx.c (simplify_immed_subreg): Likewise.
11303 * stor-layout.c (bitwise_type_for_mode): Update assert.
11304 (element_precision): Remove.
11306 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11308 * target-insns.def (reload_load_address): New targetm instruction
11310 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
11312 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11314 * target-insns.def (atomic_test_and_set): New targetm instruction
11316 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
11317 HAVE_*/gen_* interface.
11319 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11321 * target-insns.def (can_extend, ptr_extend): New targetm instruction
11323 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
11324 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
11325 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
11326 * rtlanal.c (nonzero_bits1): Likewise.
11327 (num_sign_bit_copies1): Likewise.
11329 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11331 * target-insns.def (eh_return): New targetm instruction pattern.
11332 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
11334 * function.c (thread_prologue_and_epilogue_insns): Remove
11335 preprocessor condition.
11337 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11339 * target-insns.def (indirect_jump): New targetm instruction pattern.
11340 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
11343 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11345 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
11346 instead of nonimmediate_operand. Remove C condiition.
11348 2015-07-28 Richard Biener <rguenther@suse.de>
11350 * match.pd: Add more simplification of address comparisons.
11352 2015-07-28 Richard Biener <rguenther@suse.de>
11354 * match.pd: Re-order two cases in comparison with max/min
11355 value simplification to make it apply for bools.
11357 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11359 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
11360 Handle simple SIGN_EXTEND or ZERO_EXTEND.
11361 (aarch64_rtx_costs): Properly strip extend or extract before
11362 passing down to rtx costs again.
11364 2015-07-28 Nick Clifton <nickc@redhat.com>
11366 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
11367 Optimizes the case where -mes0 is active and a constant symbolic
11369 * config/rl78/rl78-protos.h: Prototype the new function.
11370 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
11372 2015-07-28 Tom de Vries <tom@codesourcery.com>
11374 * tree-parloops.c (reduc_stmt_res): New function.
11375 (initialize_reductions, add_field_for_reduction)
11376 (create_phi_for_local_result, create_loads_for_reductions)
11377 (create_stores_for_reduction, build_new_reduction): Handle case that
11378 reduc_stmt is a phi.
11379 (gather_scalar_reductions): Allow double_reduc reductions.
11381 2015-07-28 Richard Biener <rguenther@suse.de>
11383 * fold-const.c (fold_comparison): Remove equality folding
11384 of decl addresses ...
11385 * match.pd: ... here and merge with existing pattern.
11387 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
11389 PR tree-optimization/66828
11390 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
11391 from int64_t to uint64_t.
11393 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
11395 * opts-common.c (read_cmdline_option): List DriverOnly enum values
11396 as valid only in the error message of the driver, not in the
11397 messages of the language compilers.
11399 2015-07-27 Tom de Vries <tom@codesourcery.com>
11401 * tree-parloops.c (gather_scalar_reductions): Simplify function
11404 2015-07-27 Marek Polacek <polacek@redhat.com>
11406 * ipa-devirt.c (types_same_for_odr): Fix typo.
11408 2015-07-27 Jason Merrill <jason@redhat.com>
11411 * dwarf2out.c (gen_inlined_subroutine_die): Check
11412 cgraph_function_possibly_inlined_p.
11414 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
11416 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
11417 Place integer variant first.
11418 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
11420 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
11423 * config/arm/arm-builtins.c (enum arm_builtins):
11424 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
11425 (ARM_BUILTIN_NEON_BASE): Rename macro to....
11426 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
11427 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
11428 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
11430 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
11433 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
11434 Add qualifier_lane_index.
11435 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
11436 (arm_getlane_qualifiers): Use qualifier_lane_index.
11437 (arm_lanemac_qualifiers): Rename to...
11438 (arm_mac_n_qualifiers): ...this.
11439 (LANEMAC_QUALIFIERS): Rename to...
11440 (MAC_N_QUALIFIERS): ...this.
11441 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
11442 (arm_setlane_qualifiers): Use qualifier_lane_index.
11443 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
11444 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
11445 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
11446 (arm_expand_neon_builtin): Handle qualifier_lane_index.
11448 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
11449 * config/arm/arm.c (bounds_check): Likewise, improve error message.
11450 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
11451 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
11452 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
11453 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
11454 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
11455 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
11456 qualifiers to TERNOP_IMM.
11457 (vdup_lane): Change qualifiers to GETLANE.
11458 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
11459 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
11460 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
11461 vqdmlsl_n): Change qualifiers to MAC_N.
11463 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
11464 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
11465 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
11466 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
11467 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
11468 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
11469 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
11470 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
11471 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
11472 Remove call to neon_lane_bounds.
11474 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
11476 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
11477 Place integer variant first.
11479 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
11481 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
11482 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
11483 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
11484 for armv6kz targets.
11485 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
11486 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
11487 (FL_FOR_ARCH6ZK): Remove.
11488 (FL_FOR_ARCH6KZ): New.
11489 (arm_arch6zk): New declaration.
11490 * config/arm/arm-tables.opt: Regenerate.
11491 * config/arm/arm.c (arm_arch6kz): New.
11492 (arm_option_override): Set arm_arch6kz.
11493 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
11494 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
11495 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
11497 2015-07-27 Marek Polacek <polacek@redhat.com>
11501 * doc/invoke.texi: Document -Wtautological-compare.
11503 2015-07-27 Richard Biener <rguenther@suse.de>
11505 * genmatch.c (decision_tree::gen_gimple): Split out large
11506 subtrees into separate functions.
11507 (decision_tree::gen_generic): Likewise.
11509 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
11511 * config/alpha/alpha.c: Use SUBREG_P predicate.
11512 * config/alpha/predicates.md: Ditto.
11514 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
11516 * config.host (s390*-*-*): Include driver-native.c only when
11517 building with s390* as host *and* target.
11519 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
11522 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
11523 T bit register modified_between_p check.
11525 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11527 * config/i386/i386.c: Use SUBREG_P predicate.
11528 * config/i386/i386.md: Ditto.
11529 * config/i386/sse.md: Ditto.
11530 * config/i386/predicates.md: Ditto.
11532 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11535 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
11536 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
11538 2015-07-25 Sebastian Pop <s.pop@samsung.com>
11540 * Makefile.in: Remove use of TREEBROWSER.
11541 * config.in: Regenerated.
11542 * configure: Regenerated.
11543 * configure.ac: Remove definition of TREEBROWSER.
11544 * tree-browser.c: Removed.
11545 * tree-browser.def: Removed.
11547 2015-07-25 Sebastian Pop <s.pop@samsung.com>
11549 * graphite-scop-detection.c: Include gimple-pretty-print.h.
11550 (stmt_simple_for_scop_p): Print when a stmt is not handled in
11552 (scopdet_basic_block_info): Print when a loop or bb cannot be
11553 represented in Graphite.
11555 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11558 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
11559 execution guard when min_size is less than size_needed.
11561 2015-07-25 Sebastian Pop <s.pop@samsung.com>
11563 * doc/install.texi: Document supported versions of ISL.
11565 2015-07-25 Jeff Law <law@redhat.com>
11569 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11570 unable to find X NE 0 in the tables, return X as the simplified
11572 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11573 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
11574 to VISISTED_BBS. */
11575 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11576 after removing the control flow statement and unnecessary edges.
11578 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
11581 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
11583 PR rtl-optimization/64164
11584 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11585 * tree-ssa-copyrename.c: Removed.
11586 * opts.c (default_options_table): Drop -ftree-copyrename. Add
11587 -ftree-coalesce-vars.
11588 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11589 * common.opt (ftree-copyrename): Ignore.
11590 (ftree-coalesce-inlined-vars): Likewise.
11591 * doc/invoke.texi: Remove the ignored options above.
11592 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11593 * tree-ssa-coalesce.h: ... here.
11594 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11595 headers required by it.
11596 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11597 across variables when flag_tree_coalesce_vars. Check register
11598 use and promoted modes to allow coalescing. Moved to
11599 tree-ssa-coalesce.c.
11600 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11601 with its member functions to tree-ssa-coalesce.c.
11602 (var_map_base_init): Likewise. Renamed to
11603 compute_samebase_partition_bases.
11604 (partition_view_normal): Drop want_bases parameter.
11605 (partition_view_bitmap): Likewise.
11606 * tree-ssa-live.h: Adjust declarations.
11607 * tree-ssa-coalesce.c: Include explow.h.
11608 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11609 default defs at the entry point.
11610 (dump_part_var_map): New.
11611 (compute_optimized_partition_bases): New, called by...
11612 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11613 of compute_samebase_partition_bases. Adjust.
11614 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11615 * cfgexpand.c (leader_merge): New.
11616 (get_rtl_for_parm_ssa_default_def): New.
11617 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11618 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11619 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
11620 redundant MEM attr setting.
11621 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
11623 (expand_one_stack_var): ... this. New wrapper to check and
11624 skip already expanded SSA partitions.
11625 (record_alignment_for_reg_var): New, factored out of...
11626 (expand_one_var): ... this.
11627 (expand_one_ssa_partition): New.
11628 (adjust_one_expanded_partition_var): New.
11629 (expand_one_register_var): Check and skip already expanded SSA
11631 (expand_used_vars): Don't create DECLs for anonymous SSA
11632 names. Expand all SSA partitions, then adjust all SSA names.
11633 (pass::execute): Replace the loops that set
11634 SA.partition_to_pseudo from partition leaders and cleared
11635 DECL_RTL for multi-location variables, and that which used to
11636 rename vars and set attrs, with one that clears DECL_RTL and
11637 checks that PARMs and RESULTs default_defs match DECL_RTL.
11638 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11639 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11640 * explow.c (promote_ssa_mode): New.
11641 * explow.h (promote_ssa_mode): Declare.
11642 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11643 * function.c: Include cfgexpand.h.
11644 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11645 (use_register_for_parm_decl): Wrapper for the above to
11646 special-case the result_ptr.
11647 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11648 (split_complex_args): Take assign_parm_data_all argument.
11649 Pass it to rtl_for_parm. Set up rtl and context for split
11651 (assign_parms_augmented_arg_list): Adjust.
11652 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11653 multiple locations. Recognize split complex args.
11654 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11655 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
11656 (assign_parm_setup_block): Prefer SSA-assigned location.
11657 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
11658 if stack_parm is NULL.
11659 (assign_parm_setup_stack): Prefer SSA-assigned location.
11660 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
11661 rtl before testing for pointer bounds. Special-case result_ptr.
11662 (expand_function_start): Maybe reset DECL_RTL of result.
11663 Prefer SSA-assigned location for result and static chain.
11664 Factor out DECL_RESULT and SET_DECL_RTL.
11665 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11666 anonymous SSA names. Use promote_ssa_mode.
11667 (get_temp_reg): Likewise.
11668 (remove_ssa_form): Adjust.
11669 * stor-layout.c (layout_decl): Don't set mem attributes of
11671 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11672 and get its reg_usage for reg invalidation.
11673 (compute_bb_dataflow): Pass it insn.
11674 (emit_notes_in_bb): Likewise.
11676 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11678 * config/i386/i386.c (ix86_va_start): Remove
11679 unneeded !TARGET_64BIT check.
11680 (ix86_gimplify_va_arg): Ditto.
11682 2015-07-24 Tom de Vries <tom@codesourcery.com>
11684 * graphite-sese-to-poly.c (build_poly_scop): Always call
11685 rewrite_commutative_reductions_out_of_ssa.
11687 2015-07-24 Tom de Vries <tom@codesourcery.com>
11689 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
11690 flag_associative_math to FLOAT_TYPE_P. Honour
11691 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
11693 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
11696 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
11697 and "%qD" in warning_at instead of "%q+D" in warning.
11699 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
11701 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
11702 (ix86_function_abi): Cleanup.
11704 2015-07-24 Michael Darling <darlingm@gmail.com>
11707 * acinclude.m4: Reflects renaming of configure.in to configure.ac
11708 * configure: Likewise
11709 * configure.ac: Likewise
11710 * doc/install.texi: Likewise
11711 * doc/tm.texi: Likewise
11712 * doc/tm.texi.in: Likewise
11714 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11716 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
11717 manually swapping values.
11718 * cse.c (fold_rtx): Likewise.
11719 * lra-eliminations.c (form_sum): Likewise.
11721 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
11724 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
11725 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
11726 (*jcc_1, *jcc_2, jump, simple_return_internal)
11727 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
11728 Set length_nobnd attribute instead of length attribute.
11729 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
11730 (length_nobnd): Remove attribute.
11731 (length): Remove length_nobnd processing.
11733 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
11735 * gimplify.c (omp_default_clause): New function. Reorganize flow
11736 for clarity. Broken out of ...
11737 (omp_notice_variable): ... here.
11739 2015-07-24 Gary Funck <gary@intrepid.com>
11741 PR middle-end/66984
11742 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
11743 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
11745 2015-07-24 Tom de Vries <tom@codesourcery.com>
11747 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
11748 exit-first loop transform.
11750 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
11753 * tree-cfg.c (struct replace_decls_d): New struct.
11754 (replace_block_vars_by_duplicates_1): New function.
11755 (replace_block_vars_by_duplicates): Use it to replace the decls
11756 in the value exprs by duplicates.
11758 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
11760 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
11761 -shared, -symbolic, -rdynamic.
11763 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
11766 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
11767 -dynamic-linker within %{!static %{!shared, and -rdynamic within
11770 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
11773 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
11774 edge summary is available.
11776 2015-07-24 Richard Biener <rguenther@suse.de>
11778 * genmatch.c (struct dt_node): Add statistic fields.
11779 (dt_node::analyze): New method.
11780 (decision_tree::gen_gimple): Call analyze on the root node
11781 and print statistics to stderr.
11782 (decision_tree::gen_generic): Likewise.
11784 2015-07-24 Richard Biener <rguenther@suse.de>
11786 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
11787 against the highest or lowest possible integer ...
11788 * match.pd: ... as patterns here.
11790 2015-07-24 Richard Biener <rguenther@suse.de>
11792 * genmatch.c (struct capture_info): Add same_as field.
11793 (capture_info::capture_info): Initialize same_as.
11794 (capture_info::walk_match): Compute same_as.
11795 (capture_info::walk_result): Compute stuff for the leader.
11796 (capture_info::walk_c_expr): Likewise.
11797 (dt_simplify::gen_1): Only look at leaders when deciding
11798 to force no side-effects or emit side-effects of omitted operands.
11800 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11802 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
11803 reg note to the GPR -> FPR save instructions.
11805 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11807 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
11809 (s390_expand_insv): Don't generate risbg pattern for constant zero
11811 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
11812 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
11815 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11817 * config/s390/s390.c (s390_reorg): Clean up handling of processors
11820 (s390_issue_rate): Likewise.
11821 (s390_sched_reorder): Likewise.
11822 (s390_sched_variable_issue): Likewise.
11823 (s390_loop_unroll_adjust): Likewise.
11824 (s390_option_override): Likewise.
11826 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11828 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
11829 processor capabilities with -march=native.
11830 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
11831 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
11832 (S390_TARGET_BITS_STRING): Macro to simplify specs.
11834 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11836 * config/s390/s390.c (s390_issue_rate): Handle
11837 PROCESSOR_2094_Z9_EC.
11838 (s390_option_override): Likewise.
11839 (s390_adjust_priority): Likewise.
11841 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11843 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
11844 when cross compiling.
11846 2015-07-24 Richard Biener <rguenther@suse.de>
11848 * fold-const.c (maybe_canonicalize_comparison_1): Move
11849 A code CST canonicalization ...
11850 * match.pd: ... to a pattern here.
11852 2015-07-24 Jiong Wang <jiong.wang@arm.com>
11855 2015-07-22 Jiong Wang <jiong.wang@arm.com>
11857 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
11858 (HONOR_REG_ALLOC_ORDER): Define.
11860 2015-07-24 Richard Biener <rguenther@suse.de>
11862 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
11863 * fold-const.c (fold_comparison): Move parameter does not
11864 alias &local simplification ...
11865 * match.pd: ... as a pattern here.
11867 2015-07-24 Richard Biener <rguenther@suse.de>
11869 * gimple-fold.c (replace_stmt_with_simplification): Special-case
11870 valueizing call operands.
11871 * gimple-match-head.c (maybe_push_res_to_seq): Take
11872 number of call arguments from ops array.
11873 (do_valueize): New function.
11874 (gimple_simplify): Return true if valueization changed
11875 any operand even if the result didn't simplify further.
11877 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11879 PR middle-end/25530
11880 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
11882 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11884 PR middle-end/25529
11885 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
11887 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11889 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
11892 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11894 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
11897 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
11899 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
11900 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
11902 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
11903 ms_va_list_type_node initialization.
11905 2015-07-23 Jeff Law <law@redhat.com>
11908 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11909 unable to find X NE 0 in the tables, return X as the simplified
11911 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11912 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
11913 to VISISTED_BBS. */
11914 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11915 after removing the control flow statement and unnecessary edges.
11917 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
11919 * tree-pass.h (get_current_pass_name): Removed.
11921 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
11923 PR rtl-optimization/64164
11924 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11925 * tree-ssa-copyrename.c: Removed.
11926 * opts.c (default_options_table): Drop -ftree-copyrename. Add
11927 -ftree-coalesce-vars.
11928 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11929 * common.opt (ftree-copyrename): Ignore.
11930 (ftree-coalesce-inlined-vars): Likewise.
11931 * doc/invoke.texi: Remove the ignored options above.
11932 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11933 * tree-ssa-coalesce.h: ... here.
11934 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11935 headers required by it.
11936 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11937 across variables when flag_tree_coalesce_vars. Check register
11938 use and promoted modes to allow coalescing. Moved to
11939 tree-ssa-coalesce.c.
11940 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11941 with its member functions to tree-ssa-coalesce.c.
11942 (var_map_base_init): Likewise. Renamed to
11943 compute_samebase_partition_bases.
11944 (partition_view_normal): Drop want_bases parameter.
11945 (partition_view_bitmap): Likewise.
11946 * tree-ssa-live.h: Adjust declarations.
11947 * tree-ssa-coalesce.c: Include explow.h.
11948 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11949 default defs at the entry point.
11950 (dump_part_var_map): New.
11951 (compute_optimized_partition_bases): New, called by...
11952 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11953 of compute_samebase_partition_bases. Adjust.
11954 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11955 * cfgexpand.c (leader_merge): New.
11956 (get_rtl_for_parm_ssa_default_def): New.
11957 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11958 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11959 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
11960 redundant MEM attr setting.
11961 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
11963 (expand_one_stack_var): ... this. New wrapper to check and
11964 skip already expanded SSA partitions.
11965 (record_alignment_for_reg_var): New, factored out of...
11966 (expand_one_var): ... this.
11967 (expand_one_ssa_partition): New.
11968 (adjust_one_expanded_partition_var): New.
11969 (expand_one_register_var): Check and skip already expanded SSA
11971 (expand_used_vars): Don't create DECLs for anonymous SSA
11972 names. Expand all SSA partitions, then adjust all SSA names.
11973 (pass::execute): Replace the loops that set
11974 SA.partition_to_pseudo from partition leaders and cleared
11975 DECL_RTL for multi-location variables, and that which used to
11976 rename vars and set attrs, with one that clears DECL_RTL and
11977 checks that PARMs and RESULTs default_defs match DECL_RTL.
11978 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11979 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11980 * explow.c (promote_ssa_mode): New.
11981 * explow.h (promote_ssa_mode): Declare.
11982 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11983 * function.c: Include cfgexpand.h.
11984 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11985 (use_register_for_parm_decl): Wrapper for the above to
11986 special-case the result_ptr.
11987 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11988 (split_complex_args): Take assign_parm_data_all argument.
11989 Pass it to rtl_for_parm. Set up rtl and context for split
11991 (assign_parms_augmented_arg_list): Adjust.
11992 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11993 multiple locations. Recognize split complex args.
11994 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11995 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
11996 (assign_parm_setup_block): Prefer SSA-assigned location.
11997 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
11998 if stack_parm is NULL.
11999 (assign_parm_setup_stack): Prefer SSA-assigned location.
12000 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12001 rtl before testing for pointer bounds. Special-case result_ptr.
12002 (expand_function_start): Maybe reset DECL_RTL of result.
12003 Prefer SSA-assigned location for result and static chain.
12004 Factor out DECL_RESULT and SET_DECL_RTL.
12005 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12006 anonymous SSA names. Use promote_ssa_mode.
12007 (get_temp_reg): Likewise.
12008 (remove_ssa_form): Adjust.
12009 * stor-layout.c (layout_decl): Don't set mem attributes of
12011 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12012 and get its reg_usage for reg invalidation.
12013 (compute_bb_dataflow): Pass it insn.
12014 (emit_notes_in_bb): Likewise.
12016 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
12019 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
12021 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
12022 (rs6000_emit_2insn_and): Handle dot forms.
12023 * config/rs6000/rs6000.md (and<mode>3): Adjust.
12024 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
12025 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
12027 2015-07-23 Richard Biener <rguenther@suse.de>
12029 * generic-match-head.c: Include cgraph.h.
12030 * gimple-match-head.c: Likewise.
12031 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
12033 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
12034 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
12037 2015-07-23 Richard Biener <rguenther@suse.de>
12039 * gimple-fold.c (fold_gimple_cond): Do not require folding
12040 results to pass valid_gimple_rhs_p.
12041 * tree-cfg.h (fold_cond_expr_cond): Remove.
12042 * tree-cfg.c (fold_cond_expr_cond): Likewise.
12043 (make_edges): Do not call it.
12044 * tree-inline.c (tree_function_versioning): Likewise.
12046 2015-07-23 Tom de Vries <tom@codesourcery.com>
12048 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
12049 vect_force_simple_reduction.
12050 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
12051 (vect_is_simple_reduction_1): Add and handle
12052 need_wrapping_integral_overflow parameter.
12053 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
12054 need_wrapping_integral_overflow parameter.
12055 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
12056 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
12059 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
12061 PR tree-optimization/66926,66951
12062 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
12063 INNER_LOOP and fix up condition for renaming virtual operands.
12065 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12067 * combine.c (try_combine): Use std::swap instead of manually
12070 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
12072 * config/mips/i6400.md: New file.
12073 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
12074 (mips64r6): Likewise.
12076 * config/mips/mips-tables.opt: Regenerate.
12077 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
12078 (mips_issue_rate): Add support for i6400.
12079 (mips_multipass_dfa_lookahead): Likewise.
12080 * config/mips/mips.h (TUNE_I6400): Define.
12081 * config/mips/mips.md: Include i6400.md.
12082 (processor): Add i6400.
12083 * doc/invoke.texi (-march=@var{arch}): Add i6400.
12085 2015-07-23 Richard Biener <rguenther@suse.de>
12087 PR middle-end/66916
12088 * match.pd: Guard widen and sign-change comparison simplification
12091 2015-07-23 Richard Biener <rguenther@suse.de>
12093 PR tree-optimization/66945
12094 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
12095 ::before_dom_children): Force the propagators idea of
12096 non-executable edges to materialize, not what the folder
12099 2015-07-23 Richard Biener <rguenther@suse.de>
12101 * gimple.h (gimple_cond_make_false): Use 0 != 0.
12102 (gimple_cond_make_true): Use 1 != 0.
12104 2015-07-22 DJ Delorie <dj@redhat.com>
12106 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
12109 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
12110 (ashrhi3): Likewise.
12111 (lshrhi3): Likewise.
12112 (movhi): Take advantage of zero-extend to load small constants.
12113 (movpsi): Likewise.
12114 (and<mode>3): Likewise.
12115 (zero_extendqihi2): Likewise.
12116 (zero_extendqisi2): New.
12117 * config/msp430/constraints.md (N,O): New.
12118 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
12120 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
12123 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
12124 to enum feature_priority and feature_list.
12125 (fold_builtin_cpu): Add F_AES to enum processor_features
12126 and isa_names_table.
12128 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
12131 * config/i386/linux-common.h (MPX_SPEC): Use linker option
12132 for 64bit target only.
12134 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
12136 * config/nvptx/nvptx.c: Expand some comments.
12138 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
12140 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
12141 (cortex_a53_advsimd): ...This.
12143 2015-07-22 Richard Biener <rguenther@suse.de>
12145 * genmatch.c (expr::gen_transform): Clarify error message
12146 and display location.
12148 2015-07-22 Richard Biener <rguenther@suse.de>
12150 * genmatch.c (struct operand): Add location member.
12151 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
12153 (struct simplify): Remove match_location and result_location
12155 (elsehwere): Adjust.
12157 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
12159 * config/mips/m5100.md: New file.
12160 * config/mips/mips-cpus.def (m5100, m5101): Define.
12161 * config/mips/mips-tables.opt: Regenerate.
12162 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
12163 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
12164 -march=m5101 to -mips32r5.
12165 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
12166 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
12168 * config/mips/mips.md: Include m5100.md.
12169 (processor): Add m5100.
12170 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
12172 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
12174 * config/mips/mips-cpus.def (interaptiv): Define.
12175 * config/mips/mips-tables.opt: Regenerate.
12176 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
12178 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
12179 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
12181 2015-07-22 Jiong Wang <jiong.wang@arm.com>
12184 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
12185 (HONOR_REG_ALLOC_ORDER): Define.
12187 2015-07-22 Richard Biener <rguenther@suse.de>
12189 PR tree-optimization/66952
12190 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
12191 blocks we end up executing unconditionally reset all SSA
12192 info such as range and alignment.
12193 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
12194 * tree-ssanames.c (reset_flow_sensitive_info): New function.
12196 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
12198 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
12201 2015-07-22 Richard Biener <rguenther@suse.de>
12203 * genmatch.c (parser::parse_result): Properly handle
12204 match with result operands and conditions.
12206 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
12209 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
12210 Add qualifier_struct_load_store_lane_index.
12211 (aarch64_types_loadstruct_lane_qualifiers): Use
12212 qualifier_struct_load_store_lane_index for lane index argument for
12214 (aarch64_types_storestruct_lane_qualifiers): Ditto.
12215 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
12216 (aarch64_simd_expand_args): Add new argument describing mode of
12217 builtin. Check lane bounds for arguments with
12218 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
12219 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
12220 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
12221 (aarch64_simd_expand_builtin): Handle arguments with
12222 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
12223 aarch64_simd_expand_args.
12224 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
12225 vst[234]_lane with BUILTIN_VALLDIF.
12226 * config/aarch64/aarch64-simd.md:
12227 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
12228 endianness reversal on lane index.
12229 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
12230 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
12231 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
12232 (vec_store_lanesci_lane<mode>): Ditto.
12233 (vec_store_lanesxi_lane<mode>): Ditto.
12234 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
12235 reversal of lane index.
12236 (aarch64_ld3_lane<mode>): Ditto.
12237 (aarch64_ld4_lane<mode>): Ditto.
12238 (aarch64_st2_lane<mode>): Ditto.
12239 (aarch64_st3_lane<mode>): Ditto.
12240 (aarch64_st4_lane<mode>): Ditto.
12241 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
12242 to qmode. Add new mode parameter. Update uses.
12243 (__LD3_LANE_FUNC): Ditto.
12244 (__LD4_LANE_FUNC): Ditto.
12245 (__ST2_LANE_FUNC): Ditto.
12246 (__ST3_LANE_FUNC): Ditto.
12247 (__ST4_LANE_FUNC): Ditto.
12249 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
12251 * doc/invoke.texi (Language Independent Options): Rename node to
12252 Diagnostic Message Formatting Options.
12254 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
12257 * lra-remat.c (operand_to_remat): Prevent using insns with input
12258 subregs processed separately by IRA.
12260 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
12262 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
12264 (single_imm_use): Check for iterator node.
12265 (num_imm_uses): Likewise.
12266 * tree-ssa-operands.c (has_zero_uses_1): Delete.
12267 (single_imm_use_1): Check for iterator node.
12269 2015-07-21 Mike Frysinger <vapier@gentoo.org>
12270 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12272 * configure.ac: Add check for new options in isl-0.15.
12273 * config.in, configure: Rebuilt.
12274 * graphite-blocking.c: Include <isl/constraint.h>
12275 * graphite-interchange.c, graphite-poly.c: Likewise.
12276 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
12277 * graphite.c: Likewise.
12278 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
12280 * graphite-dependences.c: Include <isl/constraint.h>.
12281 (max_number_of_out_dimensions): Returns isl_stat.
12282 (extend_schedule_1): Likewise
12283 (extend_schedule): Corresponding changes.
12284 * graphite-optimize-isl.c: Include <isl/constraint.h> and
12286 (getSingleMap): Change return type of isl_stat.
12287 (optimize_isl): Conditionally use
12288 isl_options_set_schedule_serialize_sccs.
12289 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
12290 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
12292 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
12295 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
12296 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
12298 2015-07-21 Richard Biener <rguenther@suse.de>
12300 PR tree-optimization/66948
12301 * genmatch.c (capture_info::walk_match): Also recurse to
12302 captures. Properly compute expr state from captures of
12304 * match.pd: Add single-use guards to
12305 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
12307 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
12309 * config/nvptx/mkoffload.c (process): Add static destructor call.
12311 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12313 PR middle-end/66915
12314 * match.pd (A - B -> A + (-B)): Don't allow folding
12315 when type if a fixed-point type.
12317 2015-07-20 DJ Delorie <dj@redhat.com>
12319 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
12320 (iorqi3_real): Likewise for set1.
12322 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
12324 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
12327 2015-07-20 Aditya Kumar <hiraditya@msn.com>
12329 * graphite-isl-ast-to-gimple.c:
12330 Refactor so that each function can access 'region'. This will help
12331 maintain a parameter rename_map within a region.
12333 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
12335 * config/rs6000/rs6000.md (*lt0_disi): New.
12337 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
12340 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
12341 "available letters" comment.
12342 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
12343 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
12344 and_2rld_operand): Delete.
12345 (and_operand): Adjust.
12346 (rotate_mask_operator): New.
12347 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
12348 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
12349 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
12350 extract_ME): Delete.
12351 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
12352 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
12353 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
12354 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
12355 rs6000_emit_2insn_and): New.
12356 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
12357 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
12358 includes_rldic_lshift_p, includes_rldicr_lshift_p,
12359 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
12360 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
12361 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
12362 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
12363 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
12364 rs6000_emit_2insn_and): New.
12365 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
12366 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
12368 <NOT>: Don't fall through to next case.
12369 <AND>: Handle the various rotate-and-mask cases directly.
12370 <IOR>: Always cost as one insn.
12371 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
12372 (and<mode>3): Adjust expander for the new patterns.
12373 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
12374 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
12375 (*and<mode>3_imm_dot_shifted): New.
12376 (*and<mode>3_mask): Delete, rewrite as ...
12377 (and<mode>3_mask): ... New.
12378 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
12379 (andsi3_internal0_nomc): Delete.
12380 (*andsi3_internal6): Delete.
12381 (*and<mode>3_2insn): New.
12382 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
12383 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
12384 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
12385 *insvdi_internal3): Delete.
12386 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
12387 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
12388 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
12389 *ior<mode>_mask): New.
12390 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
12391 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
12392 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
12393 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
12395 (ashr<mode>3): Delete expander.
12396 (*ashr<mode>3): Rename to ...
12397 (ashr<mode>3): ... This.
12398 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
12399 (*rotldi3_internal4, *rotldi3_internal5 and split,
12400 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
12401 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
12402 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
12403 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
12404 (splitter for loading a mask): Adjust.
12405 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
12407 2015-07-20 Marek Polacek <polacek@redhat.com>
12409 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
12410 output_add_clobbers, output_added_clobbers_hard_reg_p,
12411 gen_rtx_scratch): Remove declarations.
12413 2015-07-20 Marek Polacek <polacek@redhat.com>
12416 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
12418 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12420 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
12421 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
12423 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12425 * combine.c (combine_simplify_rtx): Move simplification step
12426 before various transformations/substitutions.
12428 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
12430 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
12431 (struct int_traits): Likewise.
12433 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12435 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
12436 function to vmsdbgout_function_decl.
12438 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
12441 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
12442 from misaligned positions.
12443 (ix86_expand_pinsr): Reject insertions to misaligned positions.
12445 2015-07-18 Sebastian Pop <s.pop@samsung.com>
12447 PR middle-end/46851
12448 PR middle-end/60340
12449 * Makefile.in: Removed omega.o.
12450 * common.opt: Document flag fcheck-data-deps as deprecated.
12451 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
12452 its associated params: omega-max-vars, omega-max-geqs,
12453 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
12454 omega-max-keys, omega-eliminate-redundant-constraints.
12455 * doc/loop.texi: Remove all the section on Omega.
12456 * graphite-blocking.c: Include missing params.h: it used to be
12457 included through tree-data-ref.h and omega.h.
12458 * graphite-isl-ast-to-gimple.c: Same.
12459 * graphite-optimize-isl.c: Same.
12460 * graphite-sese-to-poly.c: Same.
12461 * graphite.c: Same.
12464 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
12465 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
12466 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
12467 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
12468 * passes.def: Remove pass_check_data_deps.
12469 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
12470 (dump_conflict_function): Same.
12471 (dump_subscript): Same.
12472 (print_direction_vector): Same.
12473 (print_dir_vectors): Same.
12474 (print_lambda_vector): Same.
12475 (print_dist_vectors): Same.
12476 (dump_data_dependence_relation): Same.
12477 (dump_data_dependence_relations): Same.
12478 (dump_dist_dir_vectors): Same.
12480 (init_omega_eq_with_af): Removed.
12481 (omega_extract_distance_vectors): Removed.
12482 (omega_setup_subscript): Removed.
12483 (init_omega_for_ddr_1): Removed.
12484 (init_omega_for_ddr): Removed.
12485 (ddr_consistent_p): Removed.
12486 (compute_affine_dependence): Do not use omega to check data
12488 (compute_data_dependences_for_bb): Removed.
12489 (analyze_all_data_dependences): Removed.
12490 (tree_check_data_deps): Removed.
12491 * tree-data-ref.h: Do not include omega.h.
12492 (compute_data_dependences_for_bb): Removed.
12493 (tree_check_data_deps): Removed.
12494 * tree-ssa-loop.c (pass_check_data_deps): Removed.
12495 (make_pass_check_data_deps): Removed.
12496 * tree-ssa-phiopt.c: Include params.h.
12497 * tree-vect-data-refs.c: Same.
12498 * tree-vect-slp.c: Same.
12500 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
12502 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
12503 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
12504 (mem->fpreg splitters): Ditto.
12505 (general_operand->nonimmediate_operand splitter): Use explicit modes.
12506 Disable DFmode for TARGET_64BIT.
12508 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
12511 * config/i386/i386.c (ix86_expand_prologue): Replicate static
12512 chain on the stack.
12514 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
12516 * config/nvptx/mkoffload.c (process): Constify host data.
12517 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
12518 Constify host data.
12519 (generate_host_descr_file): Likewise.
12521 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
12522 Sebastian Pop <s.pop@samsung.com>
12524 PR middle-end/61929
12525 * graphite-dependences.c (add_pdr_constraints): Renamed
12526 pdr->extent to pdr->subscript_sizes.
12527 * graphite-interchange.c (build_linearized_memory_access): Add
12528 back all gcc_assert's that the "isl_int to isl_val conversion"
12529 patch has removed. Refactored.
12530 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
12531 * graphite-poly.c (new_poly_dr): Same.
12532 (free_poly_dr): Same.
12533 * graphite-poly.h (struct poly_dr): Same.
12534 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
12535 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
12536 * graphite-scop-detection.h: Fix space.
12537 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
12538 back all gcc_assert's removed by a previous patch.
12539 (wrap): Remove the_isl_ctx global variable that the same patch has
12541 (build_loop_iteration_domains): Same.
12542 (add_param_constraints): Same.
12543 (pdr_add_data_dimensions): Same. Refactored.
12544 (build_poly_dr): Renamed extent to subscript_sizes.
12546 2015-07-17 Marek Polacek <polacek@redhat.com>
12548 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
12549 * match.pd: ... here.
12551 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
12553 * config/nvptx/mkoffload.c (process): Constify target data.
12554 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
12555 Constify target data.
12556 (generate_target_offloadend_file): Likewise.
12558 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
12560 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
12561 to allow renaming of PHI arguments on edges incoming from outer
12562 loop header, add corresponding check before start PHI iterator.
12563 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
12564 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
12565 with true force_vectorize. Set-up dominator for outer loop too.
12566 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
12567 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
12568 was marked with force_vectorize and has restricted cfg.
12569 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
12571 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
12572 do peeling for outer loops.
12574 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
12575 Matthias Klose <doko@ubuntu.com>
12577 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
12578 build-sysroot, sysroot from the `Miscenalleous configure options' to
12579 the `Directories' section and strip trailing `/' from with_sysroot.
12580 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
12581 * configure: Regenerated.
12583 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
12586 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
12587 (TARGET_HARD_DF_REGS): Ditto.
12588 (TARGET_HARD_XF_REGS): Ditto.
12589 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
12590 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
12591 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
12592 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
12593 (*movsf_internal): Add alternatives 16 and 17. Enable
12594 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
12596 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
12598 PR rtl-optimization/66891
12599 * calls.c (expand_call): Wrap precompute_register_parameters with
12600 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
12602 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
12604 * config/nvptx/mkoffload.c (process): Constify mapping variables.
12605 Define target data struct and initialize it.
12607 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
12609 PR rtl-optimization/66626
12610 * ira.h (emit-rtl.h): Include.
12611 (non_spilled_static_chain_regno_p): New.
12612 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
12613 unless it is non spilled static chain pseudo.
12614 (assign_hard_rego): Spill memory profitable allocno unless it is
12615 non spilled static chain pseudo.
12616 (allocno_spill_priority_compare): Put non spilled static chain
12617 pseudo at the end of sorted array.
12618 (improve_allocation): Do nothing if we have static chain and
12620 (allocno__priority_compare_func): Put non spilled static chain
12621 pseudo at the beginning of sorted array.
12622 (move_spill_restore): Ignore non spilled static chain pseudo.
12623 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
12624 to non spilled static chain pseudo.
12625 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
12626 pseudo at the beginning of sorted array.
12627 (spill_for): Spill non spilled static chain pseudo last.
12628 * lra-constraints.c (lra_constraints): Remove static chain pseudo
12629 check for equivalence.
12631 2015-07-16 Martin Liska <mliska@suse.cz>
12634 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
12635 dst_ctx if it does not exist.
12637 2015-07-16 Martin Liska <mliska@suse.cz>
12639 * hash-set.h (remove): New function.
12640 (iterator): New iteration class for hash_set.
12642 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12644 * genattrtab.c (make_canonical): Add a file_location parameter.
12645 Use fatal_at rather than fatal.
12646 (get_attr_value): Likewise. Update call to make_canonical.
12647 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
12648 (make_internal_attr): Update calls accordingly.
12650 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12652 * read-md.h (message_with_line, error_with_line): Delete.
12653 * read-md.c (message_with_line, error_with_line): Delete.
12654 * gensupport.h: Include read-md.h.
12655 (md_rtx_info): New structure.
12656 (read_md_rtx): Use it. Return a bool success value.
12657 * gensupport.c (read_md_rtx): Likewise.
12658 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
12659 (main): Update after interface changes.
12660 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
12661 (main): Update after interface changes.
12662 * genattrtab.c (insn_code_number): Delete.
12663 (optimize_attrs): Add a max_insn_code parameter and use it instead
12664 of insn_code_number.
12665 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
12666 Use *_at rather than *_with_line functions.
12667 (gen_insn): Likewise.
12668 (gen_delay): Likewise.
12669 (gen_insn_reserv): Likewise.
12670 (gen_bypass): Take an md_rtx_info rather than an rtx.
12671 (main): Update after interface changes. Use a local max_insn_code
12672 variable instead of insn_code_number.
12673 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
12674 an rtx. Use fatal_at rather than fatal.
12675 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
12676 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
12677 (gen_absence_set, gen_final_absence_set, gen_automaton)
12678 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
12679 (main): Update after interface changes.
12680 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
12682 (main): Update after interface changes.
12683 * genconditions.c (main): Use new read_md_rtx interface.
12684 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
12685 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
12686 (main): Update after interface changes.
12687 * genemit.c (insn_code_number, insn_index_number): Delete.
12688 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
12689 Use fatal_at rather than fatal.
12690 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
12692 (gen_split): Likewise.
12693 (main): Update after interface changes.
12694 * genextract.c (line_no): Delete.
12695 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
12696 Update call to walk_rtx.
12697 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
12698 rather than message_with_line.
12699 (walk_rtx): Add an md_rtx_info argument. Update call to
12700 VEC_safe_set_locstr.
12701 (main): Update after interface changes.
12702 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
12703 and lineno. Use error_at rather than separate message_with_line
12704 calls and have_error assignments.
12705 (main): Update after interface changes.
12706 * genmddump.c (main): Use new read_md_rtx interface.
12707 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
12708 (main): Update after interface changes.
12709 * genoutput.c (next_code_number): Delete.
12710 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
12711 (gen_peephole, gen_expand, gen_split): Likewise.
12712 (note_constraint): Likewise. Use *_at rather than *_with_line
12714 (main): Update after interface changes.
12715 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
12717 (main): Update after interface changes.
12718 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
12719 than an rtx and lineno.
12720 (process_define_constraint): Likewise.
12721 (process_define_register_constraint): Likewise.
12722 (main): Update after interface changes.
12723 * genrecog.c (next_insn_code, pattern_lineno): Delete.
12724 (validate_pattern): Replace top-level rtx with an md_rtx_info.
12725 Use *_at rather than *_with_line functions.
12726 (match_pattern_2): Likewise.
12727 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
12728 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
12729 Use *_at rather than *_with_line functions.
12730 * gentarget-def.c (add_insn): New function.
12731 (main): Use it. Use new read_md_rtx interface.
12733 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12735 * gensupport.h (compute_test_codes): Take a file_location rather
12736 than a line number.
12737 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
12738 rather than *_with_line functions.
12739 (process_define_predicate): Update call to compute_test_codes.
12740 * genpreds.c (validate_exp): Take a file_location rather than a
12741 line number. Use *_at functions rather than *_with_line functions.
12742 (process_define_predicate): Update call to validate_exp.
12743 (constraint_data): Replace lineno field with a file_location.
12744 (add_constraint): Take a file_location rather than a line number.
12745 Use *_at functions rather than *_with_line functions. Fix error
12746 message for address constraints. Update after changes to
12747 validate_exp, constraint_data and compute_test_codes.
12748 (process_define_constraint): Update accordingly.
12749 (process_define_register_constraint): Likewise.
12751 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12753 * genoutput.c (data): Use a file_location to record the source
12756 (idata, idata_end): Remove initialization.
12757 (constraint_data): Replace lineno with a file_location.
12758 (output_insn_data): Update after changes to data.
12759 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
12760 (scan_operands): Likewise, using *_at rather than *_with_line
12762 (process_template): Likewise.
12763 (validate_insn_alternatives): Likewise.
12764 (validate_insn_operands): Likewise.
12765 (validate_optab_operands): Likewise.
12766 (init_insn_for_nothing): Initialize idata and idata_end.
12767 (note_constraint): Update after changes to constraint_data,
12768 using at rather than with_line functions.
12769 (mdep_constraint_len): Take a file_location rather than a
12770 line number. Use at rather than with_line functions.
12772 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12774 * read-md.h (fatal_at): Declare.
12775 * read-md.c (fatal_at): New function.
12776 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
12777 to record the source position.
12778 (check_attr_test): Take a file_location instead of a line number.
12779 Use fatal_at instead of fatal.
12780 (check_attr_value): Update after above changes, using "at"
12781 rather than "with_line" reporting functions.
12782 (convert_set_attr_alternative): Likewise.
12783 (gen_attr): Likewise.
12784 (check_defs): Likewise. Don't assign to read_md_filename.
12785 (gen_insn): Update initialization after above changes.
12786 (gen_delay): Likewise.
12787 (write_insn_cases): Print the filename for a define_peephole.
12788 (gen_insn_reserv): Take a line number as argument and update
12789 the call to check_attr_test.
12790 (main): Pass a line number to gen_insn_reserv.
12792 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12794 * read-md.h (file_location): New structure.
12795 (directive_handler_t): Take a file_location rather than a line number.
12796 (message_at, error_at): Declare.
12797 (read_skip_construct): Delete.
12798 * read-md.c (message_with_line_1): Replace with...
12799 (message_at_1): ...this new function.
12800 (message_at, error_at): New functions.
12801 (message_with_line, error_with_line): Update to use message_at_1.
12802 (handle_enum): Take a file_location rather than a line number
12803 and use error_at for error reporting.
12804 (handle_include): Likewise.
12805 (read_skip_construct): Likewise. Make static.
12806 (handle_file): Update after above changes. Pass a file_location
12807 rather than a line number to handle_directive.
12808 * gensupport.c (queue_elem): Replace separate filename and lineno
12809 with a file_location.
12810 (queue_pattern): Replace filename and lineno arguments with a
12811 file_location. Update after change to queue_elem.
12812 (process_define_predicate): Replace lineno argument with a
12813 file_location and use error_at for error reporting. Update
12814 after above changes.
12815 (process_rtx): Likewise.
12816 (subst_pattern_match): Likewise.
12817 (get_alternatives_number): Likewise.
12818 (alter_predicate_for_insn): Likewise.
12819 (rtx_handle_directive): Likewise.
12820 (is_predicable): Update after above changes, using error_at rather
12821 than error_with_line.
12822 (has_subst_attribute): Likewise.
12823 (identify_predicable_attribute): Likewise.
12824 (alter_attrs_for_subst_insn): Likewise.
12825 (process_one_cond_exec): Likewise.
12826 (process_substs_on_one_elem): Likewise.
12827 (process_define_subst): Likewise.
12828 (check_define_attr_duplicates): Likewise.
12829 (read_md_rtx): Update after change to queue_elem.
12831 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12833 * genoutput.c (next_index_number): Delete.
12834 (data): Remove index_number.
12835 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
12836 (main): Remove manipulation of next_index_number.
12838 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12840 * genattrtab.c (check_attr_value): Remove handling of null attrs.
12841 (make_canonical): Likewise.
12843 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
12845 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
12846 instead of adjust_address_nv.
12847 (restore_stack_nonlocal): Likewise.
12848 (nonlocal_goto): Likewise.
12850 2015-07-16 Tom de Vries <tom@codesourcery.com>
12852 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
12853 not have a corresponding loop header phi.
12855 2015-07-16 Tom de Vries <tom@codesourcery.com>
12857 * tree-parloops.c (create_loads_for_reductions): Handle case that
12858 reduction is unused.
12860 2015-07-16 Richard Biener <rguenther@suse.de>
12862 PR tree-optimization/66894
12863 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
12864 about deriving NE_EXPR from truncated values.
12866 2015-07-16 Martin Liska <mliska@suse.cz>
12869 (object_allocator): Add new class.
12870 (pool_allocator::initialize): Use the underlying class.
12871 (pool_allocator::allocate): Likewise.
12872 (pool_allocator::remove): Likewise.
12873 (operator new): A new generic allocator.
12874 * asan.c (struct asan_mem_ref): Remove unused members.
12875 (asan_mem_ref_new): Replace new operator with
12876 object_allocator::allocate.
12877 (free_mem_ref_resources): Change deallocation.
12878 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
12879 with object_allocator.
12880 * config/sh/sh.c (add_constant): Replace new operator with
12881 object_allocator::allocate.
12882 (sh_reorg): Change call to a release method.
12883 * cselib.c (struct elt_list): Remove unused members.
12884 (new_elt_list): Replace new operator with
12885 object_allocator::allocate.
12886 (new_elt_loc_list): Likewise.
12887 (new_cselib_val): Likewise.
12888 (unchain_one_elt_list): Change delete operator with remove method.
12889 (unchain_one_elt_loc_list): Likewise.
12890 (unchain_one_value): Likewise.
12891 (cselib_finish): Release newly added static allocators.
12892 * cselib.h (struct cselib_val): Remove unused members.
12893 (struct elt_loc_list): Likewise.
12894 * df-problems.c (df_chain_alloc): Replace pool_allocator with
12896 * df-scan.c (struct df_scan_problem_data): Likewise.
12897 (df_scan_alloc): Likewise.
12898 * df.h (struct dataflow): Likewise.
12899 * dse.c (struct read_info_type): Likewise.
12900 (struct insn_info_type): Likewise.
12901 (struct dse_bb_info_type): Likewise.
12902 (struct group_info): Likewise.
12903 (struct deferred_change): Likewise.
12904 (get_group_info): Likewise.
12905 (delete_dead_store_insn): Likewise.
12906 (free_read_records): Likewise.
12907 (replace_read): Likewise.
12908 (check_mem_read_rtx): Likewise.
12909 (scan_insn): Likewise.
12910 (dse_step1): Likewise.
12911 (dse_step7): Likewise.
12912 * et-forest.c (struct et_occ): Remove unused members.
12913 (et_new_occ): Use allocate instead of new operator.
12914 (et_new_tree): Likewise.
12915 (et_free_tree): Call release method explicitly.
12916 (et_free_tree_force): Likewise.
12917 (et_free_pools): Likewise.
12918 (et_split): Use remove instead of delete operator.
12919 * et-forest.h (struct et_node): Remove unused members.
12920 * ipa-cp.c: Change pool_allocator to object_allocator.
12921 * ipa-inline-analysis.c: Likewise.
12922 * ipa-profile.c: Likewise.
12923 * ipa-prop.c: Likewise.
12924 * ipa-prop.h: Likewise.
12925 * ira-build.c (initiate_cost_vectors): Cast return value.
12926 (ira_allocate_cost_vector): Likewise.
12927 * ira-color.c (struct update_cost_record): Remove unused members.
12928 * lra-int.h (struct lra_live_range): Likewise.
12929 (struct lra_copy): Likewise.
12930 (struct lra_insn_reg): Likewise.
12931 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
12932 * lra.c (new_insn_reg): Replace new operator with allocate method.
12933 (free_insn_regs): Same for operator delete.
12934 (finish_insn_regs): Release new static allocator.
12935 (finish_insn_recog_data): Likewise.
12936 (lra_free_copies): Replace delete operator with remove method.
12937 (lra_create_copy): Replace operator new with allocate method.
12938 (invalidate_insn_data_regno_info): Same for remove method.
12939 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
12940 (free_debug_insn_changes): Replace delete operator with remove method.
12941 (replace_oldest_value_reg): Replace operator new with allocate method.
12942 (pass_cprop_hardreg::execute): Release new static variable.
12943 * sched-deps.c (sched_deps_init): Change pool_allocator to
12945 * sel-sched-ir.c: Likewise.
12946 * sel-sched-ir.h: Likewise.
12947 * stmt.c (expand_case): Likewise.
12948 (expand_sjlj_dispatch_table): Likewise.
12949 * tree-sra.c (struct access): Remove unused members.
12950 (struct assign_link): Likewise.
12951 (sra_deinitialize): Release newly added static pools.
12952 (create_access_1):Replace operator new with allocate method.
12953 (build_accesses_from_assign): Likewise.
12954 (create_artificial_child_access): Likewise.
12955 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
12956 pool_allocator to object_allocator.
12957 * tree-ssa-pre.c: Likewise.
12958 * tree-ssa-reassoc.c: Likewise.
12959 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
12960 * tree-ssa-strlen.c: Likewise.
12961 * tree-ssa-structalias.c: Likewise.
12962 * var-tracking.c (onepart_pool_allocate): New function.
12963 (unshare_variable): Use the newly added function.
12964 (variable_merge_over_cur): Likewise.
12965 (variable_from_dropped): Likewise.
12966 (variable_was_changed): Likewise.
12967 (set_slot_part): Likewise.
12968 (emit_notes_for_differences_1): Likewise.
12969 (vt_finalize): Release newly added static pools.
12971 2015-07-16 Martin Jambor <mjambor@suse.cz>
12973 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
12974 all uses. Fix two typos in its general comment.
12975 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
12977 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
12979 * config/i386/linux-common.h (LINK_MPX): New.
12980 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
12981 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
12982 indicating '-z bndplt' support by linker.
12983 * configure: Regenerate.
12984 * config.in: Regenerate.
12986 2015-07-16 Richard Biener <rguenther@suse.de>
12988 * fold-const.c (fold_widened_comparison): Remove.
12989 (fold_sign_changed_comparison): Likewise.
12990 (fold_comparison): Move widened and sign-changed comparison
12992 * match.pd: ... to patterns here.
12993 * generic-match-head.c: Include target.h.
12994 * gimple-match-head.c: Likewise.
12996 2015-07-16 Richard Biener <rguenther@suse.de>
12998 * tree-ssa-dom.c (dom_valueize): New function.
12999 (record_temporary_equivalences): Also record equivalences
13000 for dominating stmts that have uses of equivalences we are
13003 2015-07-16 Bin Cheng <bin.cheng@arm.com>
13005 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
13006 add_autoinc_candidates.
13007 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
13008 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
13009 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
13010 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
13012 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
13013 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
13014 Remove parameter struct iv*. Call add_autoinc_candidates here.
13015 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
13016 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
13018 (find_iv_candidates): Call new functions.
13020 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
13022 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
13023 uninitialized-variable warning.
13025 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
13028 * config/sh/sh.md (movdi): Split simple reg move to two movsi
13029 when the destination is R0.
13031 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
13034 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
13035 * config/i386/i386.c (ix86_expand_pextr): New function.
13036 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
13037 for non-lowpart subregs.
13038 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
13039 (insv<mode>): Use SWI248 mode iterator.
13040 (insv<mode>_1): Ditto.
13042 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
13043 Sebastian Pop <s.pop@samsung.com>
13045 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
13046 iterator to use_stmt.
13048 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
13049 Sebastian Pop <s.pop@samsung.com>
13051 * graphite-scop-detection.c (build_scops_1): Discard scops for
13054 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
13055 Sebastian Pop <s.pop@samsung.com>
13057 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
13058 case of a return statement in scop.
13060 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
13061 Sebastian Pop <s.pop@samsung.com>
13063 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
13064 INTEGER_TYPE parameters.
13065 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
13066 VECTOR_CST in scan_tree_for_params.
13067 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
13069 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
13071 * gimple-pretty-print.h: Don't include pretty-print.h.
13072 * tree-streamer.h: Don't include lto-streamer.h.
13073 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
13074 * gimple-streamer-in.c: Remove redundant includes.
13075 * gimple-streamer-out.c: Likewise.
13076 * ipa-devirt.c: Likewise.
13077 * ipa-icf.c: Likewise.
13078 * ipa-inline-analysis.c: Likewise.
13079 * ipa-polymorphic-call.c: Likewise.
13080 * ipa-profile.c: Likewise.
13081 * ipa-prop.c: Likewise.
13082 * ipa-pure-const.c: Likewise.
13083 * lto-cgraph.c: Likewise.
13084 * lto-streamer-in.c: Likewise.
13085 * lto-streamer-out.c: Likewise.
13086 * lto-streamer.c: Likewise.
13087 * tree-streamer-in.c: Likewise.
13088 * tree-streamer-out.c: Likewise.
13089 * tree-streamer.c: Likewise.
13091 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
13093 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
13095 * opts.c: Remove multiline #include comment.
13097 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
13099 * config/nvptx/mkoffload.c (process): Add C++ protection to
13102 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13105 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
13106 null before IEEE 128-bit floating point support patch.
13108 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13110 * simplify-rtx.c (simplify_ternary_operation): Add simplification
13111 for (!c) != {0,...,0} ? a : b for vector modes.
13113 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
13114 Martin Jambor <mjambor@suse.cz>
13116 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
13117 struct func_body_info* instead of struct ipa_node_params*, expecting
13118 fbi->info to be filled in. Replace throughout. Adjust call to
13119 ipa_load_from_parm_agg.
13120 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
13121 instead of struct ipa_node_params*. Adjust calls to other functions
13122 so that they pass either fbi or fbi->info.
13123 (set_switch_stmt_execution_predicate): Likewise.
13124 (will_be_nonconstant_predicate): Likewise.
13125 (compute_bb_predicates): Likewise.
13126 (estimate_function_body_sizes): Move asserts earlier. Fill in
13127 struct func_body_info, replace parms_info with fbi.info. Adjust
13128 calls to functions that now accept struct func_body_info.
13129 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
13130 (struct func_body_info): Likewise.
13131 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
13132 remove static. Adjust callers.
13133 (ipa_load_from_parm_agg): Remove.
13134 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
13135 (func_body_info): Likewise.
13136 (ipa_load_from_parm_agg): Adjust prototype.
13138 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13140 * gensupport.c (rtx_handle_directive): Adjust.
13141 * read-rtl.c (apply_iterators): Take vector to add rtxs to
13142 instead of expr list rtx.
13143 (add_define_attr_for_define_subst): Likewise.
13144 (add_define_subst_attr): Likewise.
13145 (read_subst_mapping): Likewise.
13146 (read_rtx): Likewise.
13147 * rtl.h (read_rtx): Adjust.
13149 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13151 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
13153 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
13156 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
13157 (*tls_local_dynamic_base_64_<mode>): Ditto.
13158 (*tls_local_dynamic_base_64_largepic): Ditto.
13159 (tls_global_dynamic_64_<mode>): Update expander pattern.
13160 (tls_local_dynamic_base_64_<mode>): Ditto.
13162 2015-07-15 Richard Biener <rguenther@suse.de>
13164 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
13165 and bool_var == 1 -> bool_var simplifications ...
13166 * match.pd: ... to patterns here. Factor out negate_expr_p
13167 cases from the A - B -> A + (-B) patterns as negate_expr_p
13168 predicate and add a -(A + B) -> (-B) - A pattern.
13170 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
13172 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
13174 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
13175 Robert Suchanek <robert.suchanek@imgtec.com>
13177 * config/mips/mips.c (mips_int_mask): New enum.
13178 (mips_shadow_set): Likewise.
13179 (int_mask): New variable.
13180 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
13181 (machine_function): Add int_mask and use_shadow_register_set.
13182 (mips_attribute_table): Add attribute handlers for interrupt and
13183 use_shadow_register_set.
13184 (mips_interrupt_mask): New static function.
13185 (mips_handle_interrupt_attr): Likewise.
13186 (mips_handle_use_shadow_register_set_attr): Likewise.
13187 (mips_use_shadow_register_set): Change return type to enum
13188 mips_shadow_set. Add argument handling for use_shadow_register_set
13190 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
13191 compare with mips_shadow_set enum.
13192 (mips_compute_frame_info): Add interrupt mask and
13193 use_shadow_register_set to per-function information structure.
13194 Add a stack slot for EPC unconditionally.
13195 (mips_expand_prologue): Compare use_shadow_register_set value
13196 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
13197 masked interrupt register but in EIC mode use K0 and save Cause in K0.
13198 EPC saved and restored unconditionally. Use PMODE_INSN macro when
13199 copying the stack pointer from the shadow register set.
13200 * config/mips/mips.h (SR_IM0): New define.
13201 * config/mips/mips.md (mips_rdpgpr): Rename to...
13202 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
13203 * doc/extend.texi (Declaring Attributes of Functions): Document
13204 optional arguments for interrupt and use_shadow_register_set
13207 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
13209 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
13210 interrupt attribute.
13211 (mips_expand_prologue): Disable the floating point unit in an ISR.
13212 * config/mips/mips.h (SR_COP1): New define.
13214 2015-07-15 Richard Biener <rguenther@suse.de>
13216 * genmatch.c (parser::peek, parser::peek_ident): Add argument
13217 to tell how many tokens to peek ahead (default 1).
13218 (parser::eat_token, parser::eat_ident): Return token consumed.
13219 (parser::parse_result): Parse new switch statement.
13220 * match.pd: Use case statements where appropriate.
13222 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
13224 PR rtl-optimization/58066
13225 * calls.c (expand_call): Precompute register parameters before stack
13226 alignment is performed.
13228 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
13230 PR rtl-optimization/66838
13231 * postreload.c (reload_cse_move2add): Also process
13232 CALL_INSN_FUNCTION_USAGE when resetting information of
13233 call-clobbered registers.
13235 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13236 Cesar Philippidis <cesar@codesourcery.com>
13237 Chung-Lin Tang <cltang@codesourcery.com>
13239 * config/nios2/constraints.md (U, v): New constraints.
13240 * config/nios2/predicates.md (rdprs_dcache_operand): New.
13241 (ldstex_memory_operand): New.
13242 * config/nios2/sync.md: New file.
13243 * config/nios2/nios2.md (unspecv): Add new builtin function
13245 (rdprs, flushd, flushda, wrpie, eni): New patterns.
13246 (top-level): Include sync.md.
13247 * config/nios2/nios2.c (N2_FTYPES): Add function types for
13249 (N2_BUILTINS): Add arch field setting, add new builtins.
13250 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
13252 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
13253 Also handle ldex/stex/ldsex/stsex builtins.
13254 (nios2_expand_rdprs_builtin): New function.
13255 (nios2_expand_cache_builtin): New function.
13256 (nios2_expand_wrpie_builtin): New function.
13257 (nios2_expand_eni_builtin): New function.
13258 (nios2_expand_builtin): Add arch field handling and new builtin
13260 * doc/extend.texi (Altera Nios II Built-in Functions): Document
13262 * doc/md.texi (Machine Constraints): Document U and v constraints.
13264 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13265 Cesar Philippidis <cesar@codesourcery.com>
13266 Chung-Lin Tang <cltang@codesourcery.com>
13268 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
13269 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
13270 callee_save_reg_size and uses_anonymous_args fields.
13271 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
13272 (nios2_create_cfa_notes): New function.
13273 (nios2_adjust_stack): New function for adjusting stack.
13274 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
13275 Use nios2_adjust_stack.
13276 (nios2_expand_epilogue): Likewise.
13277 (nios2_expand_return): New function.
13278 (nios2_can_use_return_insn): Update for CDX pop.n usage.
13279 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
13280 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
13281 * config/nios2/nios2.md (return): Use nios2_expand_return.
13283 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13284 Cesar Philippidis <cesar@codesourcery.com>
13285 Chung-Lin Tang <cltang@codesourcery.com>
13287 * config/nios2/predicates.md (pop_operation): New.
13288 (ldwm_operation, stwm_operation): New.
13289 (nios2_hard_register_operand): New.
13290 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
13291 (ldstwm_operation_p): Declare.
13292 (gen_ldstwm_peep): Declare.
13293 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
13294 (base_reg_adjustment_p): New.
13295 (pop_operation_p): New.
13296 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
13297 (nios2_ldstwm_regset_p): New.
13298 (ldstwm_operation_p): New.
13300 (nios2_ldst_parallel): New.
13301 (struct ldswm_operand): Declare.
13302 (compare_ldstwm_operands): New.
13303 (can_use_cdx_ldstw): New.
13304 (gen_ldstwm_peep): New.
13305 * config/nios2/nios2-ldstwm.sml: New.
13306 * config/nios2/nios2.md: Include ldstwm.md.
13307 * config/nios2/ldstwm.md: Generated.
13309 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13310 Cesar Philippidis <cesar@codesourcery.com>
13311 Chung-Lin Tang <cltang@codesourcery.com>
13313 * config/nios2/nios2.h (LABEL_ALIGN): Define.
13314 (REG_ALLOC_ORDER): Define.
13315 (ADJUST_REG_ALLOC_ORDER): Define.
13316 (HONOR_REG_ALLOC_ORDER): Define.
13317 (CDX_REG_P): Define.
13318 (ANDCLEAR_INT): Define.
13319 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
13320 (nios2_label_align): Declare.
13321 (nios2_cdx_narrow_form_p): Declare.
13322 (nios2_adjust_reg_alloc_order): Declare.
13323 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
13325 (nios2_large_unspec_reloc_p): New function, split from...
13326 (nios2_legitimate_pic_operand_p): ...here.
13327 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
13328 (nios2_print_operand_punct_valid_p): New.
13329 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
13330 (split_mem_address): New.
13331 (split_alu_insn): New.
13333 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
13334 (enum nios2_add_insn_kind): New.
13335 (nios2_add_insn_names, nios2_add_insn_narrow): New.
13336 (nios2_add_insn_classify): New.
13337 (nios2_add_insn_asm): New.
13338 (nios2_cdx_narrow_form_p): New.
13339 (label_align, min_labelno, max_labelno): New.
13340 (nios2_reorg): New.
13341 (nios2_label_align): New.
13342 (nios2_adjust_reg_alloc_order): New.
13343 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13344 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13345 * config/nios2/constraints.md (P): New constraint.
13346 * config/nios2/predicates.md (const_and_operand): New.
13347 (and_operand): New.
13348 (stack_memory_operand): New.
13349 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
13350 (length): Update to use nios2_cdx_narrow_form_p().
13351 (type): Add new insn type values.
13352 (control, alu, st, ld, shift): Update insn reservations with
13353 new insn type values.
13354 (*high, *lo_sum): Define new insn patterns for constant generation.
13355 (movqi_internal, movhi_internal, movsi_internal): Reduce
13356 alternatives, update asm template to handle CDX variants, update
13358 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
13359 template, update type attributes.
13360 (extendhisi2, extendqi<mode>2): Likewise.
13361 (addsi3): Change to use function for asm string.
13362 (subsi3): Add CDX notation to asm template, update type attributes.
13363 (negsi3, one_cmplsi3): Likewise.
13364 (andsi3): New pattern, specialized from logical patterns.
13365 (<code>si3): Remove and case, combine alternatives, update asm
13367 (<shift_op>si3): Add CDX notation, update type attributes.
13368 (rotrsi3): Update type attribute.
13369 (*merge, extzv, insv): New insn patterns.
13370 (return): Change to define_expand.
13371 (simple_return): Add CDX notation, update type attributes.
13372 (indirect_jump): Add CDX notation.
13373 (jump): Update asm cases, update length attribute expression.
13374 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
13375 (nios2_cbranch): Update asm cases and length attribute expression
13376 to handle CDX variants.
13377 (nios2_cmp<code>): Update asm template.
13378 (nop): Add CDX notation, update type attributes.
13379 (trap): Add CDX notation.
13380 (ctrapsi4): Update asm cases and length attribute expression to
13381 handle CDX variant.
13382 * doc/md.texi (Machine Constraints): Document P constraint.
13384 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13385 Cesar Philippidis <cesar@codesourcery.com>
13386 Chung-Lin Tang <cltang@codesourcery.com>
13388 * config/nios2/nios2.h (SMALL_INT12): New macro.
13389 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
13390 (nios2_valid_addr_expr_p): Use it.
13391 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
13392 with implicit "io" instructions on R2.
13393 * config/nios2/constraints.md (w): New constraint.
13394 * config/nios2/predicates.md (ldstio_memory_operand): New.
13395 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
13396 operand predicate and constraint.
13397 (ld<bh>io_signed, st<bhw>io>): Likewise.
13398 * doc/md.texi (Machine Constraints): Document w constraint.
13400 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13401 Cesar Philippidis <cesar@codesourcery.com>
13402 Chung-Lin Tang <cltang@codesourcery.com>
13404 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
13405 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
13406 Nios II architecture level.
13407 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
13408 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
13409 (OPTION_DEFAULT_SPECS): Define.
13410 (ASM_SPEC): Add -march= spec strings.
13411 * config/nios2/nios2.c (nios2_option_override): Check for
13412 conflicts involving new options.
13413 * config.gcc (nios2*-*-*): Support --with-arch=.
13414 * doc/invoke.texi (Option Summary, Nios II Options): Document
13415 -march=, -mbmx, and -mcdx.
13417 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
13419 PR rtl-optimization/66626
13420 * lra-constraints.c (lra_constraints): Prevent equivalence
13421 substitution for static chain pseudo in functions with nonlocal
13424 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13426 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
13427 (nios2_emit_stack_limit_check): Add size parameter. Handle
13428 -fstack-limit-symbol as well as -fstack-limit-register.
13429 (nios2_expand_prologue): Emit only a single stack limit check,
13430 even if multiple stack adjustments are required.
13431 (nios2_option_override): Diagnose unsupported combination of -fpic
13432 and -stack-limit-symbol.
13434 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
13436 * Makefile.in (top_srcdir): New.
13437 * configure.ac: Use AM_ZLIB.
13438 * configure: Regeneated.
13440 2015-07-14 Matthias Klose <doko@ubuntu.com>
13443 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
13445 2015-07-14 Richard Biener <rguenther@suse.de>
13447 PR tree-optimization/66863
13448 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
13449 what we record for conversion use stmt lhs inequalities.
13451 2015-07-14 Richard Biener <rguenther@suse.de>
13453 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
13454 (decision_tree::gen_gimple): Likewise.
13456 2015-07-14 Tom de Vries <tom@codesourcery.com>
13458 * gcc.c (greater_than_spec_func): Declare forward.
13459 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
13460 -ftree-parallelize-loops={0,1}.
13461 (static_spec_functions): Add greater_than_spec_func function with name
13463 (greater_than_spec_func): New function.
13465 2015-07-14 Richard Biener <rguenther@suse.de>
13467 * tree-ssa-dom.c (record_temporary_equivalences): Merge
13468 wideing type conversion case from record_equivalences_from_incoming_edge
13469 and use record_equality to record equivalences.
13470 (record_equivalences_from_incoming_edge): Call
13471 record_temporary_equivalences.
13473 2015-07-14 Richard Biener <rguenther@suse.de>
13475 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
13476 (struct if_expr): New.
13477 (struct with_expr): Likewise.
13478 (is_a_helper): Add helpers for if_expr and with_expr.
13479 (struct simplify): Add simplify_kind enum and member. Remove
13481 (simplify::simplify): Adjust.
13482 (lower_commutative): Adjust.
13483 (lower_opt_convert): Likewise.
13484 (lower_cond): Likewise.
13485 (replace_id): Handle with_expr and if_expr.
13486 (lower_for): Adjust.
13487 (dt_simplify::gen_1): New recursive worker, split out from ...
13488 (dt_simplify::gen): ... here. Deal with if and with expansion
13490 (capture_info::capture_info): Take context argument
13491 (capture_info::walk_result): Only analyze specific result.
13492 (parser::parse_result): New function.
13493 (parser::parse_simplify): Adjust to parse ifs with then end
13495 (parser::parse_if): Simplify.
13496 (parser::parse_pattern): Pass down simplify kind.
13497 * match.pd: Convert if structure to new syntax.
13499 2015-07-13 Marek Polacek <polacek@redhat.com>
13501 * rtl.c (rtx_equal_p_cb): Fix typo.
13503 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
13505 * omega.h: Don't include config.h, don't include params.h again if
13506 omega.h has already been included.
13507 * graphite-poly.h: Include sese.h.
13508 * graphite.c: Don't include sese.h, remove needless includes and
13509 minimize includes outside #ifdef HAVE_isl block.
13510 * graphite-blocking.c: Don't include sese.h, remove needless includes,
13511 and wrap entire file in #ifdef HAVE_isl
13512 * graphite-dependences.c: Likewise.
13513 * graphite-interchange.c: Likewise.
13514 * graphite-isl-ast-to-gimple.c: Likewise.
13515 * graphite-optimize-isl.c: Likewise.
13516 * graphite-poly.c: Likewise.
13517 * graphite-scop-detection.c: Likewise.
13518 * graphite-sese-to-poly.c: Likewise.
13520 2015-07-13 Tom de Vries <tom@codesourcery.com>
13522 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
13524 2015-07-13 Renlin Li <renlin.li@arm.com>
13527 * simplify-rtx.c (simplify_const_relational_operation): Add
13528 side_effects_p checks.
13530 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
13532 * bitmap.h: Fix double word typos.
13533 * builtins.c: Same.
13535 * cfgloopmanip.c: Same.
13538 * cgraphclones.c: Same.
13540 * config/aarch64/aarch64-protos.h: Same.
13541 * config/aarch64/aarch64.c: Same.
13542 * config/aarch64/aarch64.md: Same.
13543 * config/arm/arm.md: Same.
13544 * config/arm/arm1020e.md: Same.
13545 * config/arm/arm1026ejs.md: Same.
13546 * config/arm/arm926ejs.md: Same.
13547 * config/arm/fa526.md: Same.
13548 * config/arm/fa606te.md: Same.
13549 * config/arm/fa626te.md: Same.
13550 * config/arm/fa726te.md: Same.
13551 * config/arm/fmp626.md: Same.
13552 * config/darwin.c: Same.
13553 * config/epiphany/epiphany.c: Same.
13554 * config/frv/frv.c: Same.
13555 * config/ft32/ft32.c: Same.
13556 * config/gnu-user.h: Same.
13557 * config/h8300/constraints.md: Same.
13558 * config/i386/i386.c: Same.
13559 * config/i386/i386.md: Same.
13560 * config/iq2000/iq2000.md: Same.
13561 * config/mips/mips.c: Same.
13562 * config/mmix/mmix.md: Same.
13563 * config/moxie/moxie.c: Same.
13564 * config/nds32/nds32.md: Same.
13565 * config/pa/pa.h: Same.
13566 * config/rs6000/aix.h: Same.
13567 * config/rs6000/rs6000.h: Same.
13568 * config/sh/sh.c: Same.
13569 * config/tilegx/tilegx.md: Same.
13570 * config/tilepro/gen-mul-tables.cc: Same.
13573 * doc/invoke.texi: Same.
13575 * dwarf2out.c: Same.
13578 * genmatch.c: Same.
13579 * gimplify.c: Same.
13580 * hash-table.h: Same.
13581 * internal-fn.c: Same.
13583 * ipa-devirt.c: Same.
13586 * ipa-profile.c: Same.
13587 * ipa-prop.c: Same.
13588 * ipa-prop.h: Same.
13591 * reg-stack.c: Same.
13592 * regcprop.c: Same.
13597 * tree-inline.c: Same.
13598 * tree-sra.c: Same.
13599 * tree-ssa-dom.c: Same.
13600 * tree-ssa-loop-ivopts.c: Same.
13601 * tree-ssa-structalias.c: Same.
13602 * tree-ssa-tail-merge.c: Same.
13603 * tree-ssa-ter.c: Same.
13604 * tree-ssa-threadupdate.c: Same.
13605 * tree-ssa-uninit.c: Same.
13606 * tree-ssanames.c: Same.
13607 * tree-vect-loop-manip.c: Same.
13608 * tree-vrp.c: Same.
13610 * valtrack.c: Same.
13613 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
13615 PR middle-end/66726
13616 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
13617 tree_ssa_phiopt_worker): Call it.
13619 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
13621 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
13622 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
13625 2015-07-11 Marek Polacek <polacek@redhat.com>
13627 PR middle-end/66353
13628 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
13629 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
13630 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
13631 rather than bb_has_abnormal_call_pred.
13632 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
13633 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
13634 rather than bb_has_abnormal_call_pred.
13636 2015-07-10 Anatoly Sokolov <aesok@post.ru>
13638 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13639 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
13640 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13641 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
13642 v850_legitimate_address_p): New functions.
13643 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
13645 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
13648 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
13649 indirect sibcall with register arguments if register available
13650 for argument passing.
13651 (init_cumulative_args): Set cfun->machine->arg_reg_available
13652 to (cum->nregs > 0) or to true if function has a variable
13654 (function_arg_advance_32): Set cfun->machine->arg_reg_available
13655 to false if cum->nregs <= 0.
13656 * config/i386/i386.h (machine_function): Add arg_reg_available.
13658 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
13660 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
13661 and gen_higpart instead of gen_rtx_SUBREG.
13662 * config/i386/i386.md
13663 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
13664 (read-modify peephole2): Use gen_lowpart instead of
13665 gen_rtx_SUBREG for operand 5.
13667 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
13669 * config/tilepro/gen-mul-tables.cc (main): Change include list for
13671 * config/tilepro/mul-tables.c: Regenerate.
13672 * config/tilegx/mul-tables.c: Regenerate.
13674 2015-07-10 Richard Biener <rguenther@suse.de>
13676 * fold-const.c (distribute_bit_expr): Remove.
13677 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
13678 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
13679 to A & (B | C) and simplifying A << C1 << C2 to ...
13680 * match.pd: ... patterns here.
13682 2015-07-10 Jiong Wang <jiong.wang@arm.com>
13684 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
13685 Mark mem as READONLY and NOTRAP for PIC symbol.
13687 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
13689 * gimple-predict.h: New file.
13690 (gimple_predict_predictor, gimple_predict_set_predictor,
13691 gimple_predict_outcome, gimple_predict_set_outcome,
13692 gimple_build_predict): Relocate here.
13693 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
13694 gimple_predict_outcome, gimple_predict_set_outcome): Move to
13696 * gimple.c (gimple_build_predict): Move to gimple-predict.h
13697 * basic-block.h: Don't include cfghooks.h.
13698 * backend.h: Don't include predict.h.
13699 * cfghooks.h: Include predict.h.
13700 * gimple-pretty-print.c: Include gimple-predict.h.
13701 * gimplify.c: Likwise.
13702 * predict.c: Adjust includes.
13703 * tree-inline.c: Likewise.
13704 * asan.c: Likewise.
13705 * auto-inc-dec.c: Likewise.
13706 * auto-profile.c: Likewise.
13707 * bb-reorder.c: Likewise.
13708 * builtins.c: Likewise.
13709 * caller-save.c: Likewise.
13710 * calls.c: Likewise.
13711 * cfganal.c: Likewise.
13712 * cfgbuild.c: Likewise.
13714 * cfgcleanup.c: Likewise.
13715 * cfgexpand.c: Likewise.
13716 * cfghooks.c: Likewise.
13717 * cfgloopanal.c: Likewise.
13718 * cfgloop.c: Likewise.
13719 * cfgloopmanip.c: Likewise.
13720 * cfgrtl.c: Likewise.
13721 * cgraph.c: Likewise.
13722 * cgraphunit.c: Likewise.
13723 * combine.c: Likewise.
13724 * cprop.c: Likewise.
13727 * dojump.c: Likewise.
13729 * except.c: Likewise.
13730 * expmed.c: Likewise.
13731 * expr.c: Likewise.
13732 * final.c: Likewise.
13733 * fold-const.c: Likewise.
13734 * function.c: Likewise.
13735 * fwprop.c: Likewise.
13736 * gcc-plugin.h: Likewise.
13737 * gcse.c: Likewise.
13738 * genattrtab.c: Likewise.
13739 * genemit.c: Likewise.
13740 * gengtype.c: Likewise.
13741 * genopinit.c: Likewise.
13742 * genoutput.c: Likewise.
13743 * genpreds.c: Likewise.
13744 * genrecog.c: Likewise.
13745 * gimple-fold.c: Likewise.
13746 * gimple-iterator.c: Likewise.
13747 * gimple-ssa-isolate-paths.c: Likewise.
13748 * gimple-ssa-strength-reduction.c: Likewise.
13749 * graph.c: Likewise.
13750 * graphite-blocking.c: Likewise.
13751 * graphite.c: Likewise.
13752 * graphite-dependences.c: Likewise.
13753 * graphite-interchange.c: Likewise.
13754 * graphite-isl-ast-to-gimple.c: Likewise.
13755 * graphite-optimize-isl.c: Likewise.
13756 * graphite-poly.c: Likewise.
13757 * graphite-scop-detection.c: Likewise.
13758 * graphite-sese-to-poly.c: Likewise.
13759 * haifa-sched.c: Likewise.
13760 * ifcvt.c: Likewise.
13761 * internal-fn.c: Likewise.
13762 * ipa-cp.c: Likewise.
13763 * ipa-profile.c: Likewise.
13764 * ipa-split.c: Likewise.
13765 * ipa-utils.c: Likewise.
13766 * ira-build.c: Likewise.
13767 * ira-color.c: Likewise.
13768 * ira-conflicts.c: Likewise.
13769 * ira-costs.c: Likewise.
13770 * ira-emit.c: Likewise.
13771 * ira-lives.c: Likewise.
13772 * jump.c: Likewise.
13773 * loop-doloop.c: Likewise.
13774 * loop-init.c: Likewise.
13775 * loop-invariant.c: Likewise.
13776 * loop-unroll.c: Likewise.
13777 * lower-subreg.c: Likewise.
13778 * lra-assigns.c: Likewise.
13780 * lra-coalesce.c: Likewise.
13781 * lra-constraints.c: Likewise.
13782 * lra-lives.c: Likewise.
13783 * lto-cgraph.c: Likewise.
13784 * lto-streamer-in.c: Likewise.
13785 * mode-switching.c: Likewise.
13786 * modulo-sched.c: Likewise.
13787 * omp-low.c: Likewise.
13788 * optabs.c: Likewise.
13789 * passes.c: Likewise.
13790 * postreload.c: Likewise.
13791 * postreload-gcse.c: Likewise.
13792 * profile.c: Likewise.
13793 * recog.c: Likewise.
13794 * regstat.c: Likewise.
13795 * reload1.c: Likewise.
13796 * reorg.c: Likewise.
13797 * rtlanal.c: Likewise.
13798 * sched-ebb.c: Likewise.
13799 * sel-sched-ir.c: Likewise.
13800 * sese.c: Likewise.
13801 * shrink-wrap.c: Likewise.
13802 * simplify-rtx.c: Likewise.
13803 * stmt.c: Likewise.
13804 * store-motion.c: Likewise.
13805 * tracer.c: Likewise.
13806 * trans-mem.c: Likewise.
13807 * tree-call-cdce.c: Likewise.
13808 * tree-cfg.c: Likewise.
13809 * tree-cfgcleanup.c: Likewise.
13810 * tree-chkp.c: Likewise.
13811 * tree-complex.c: Likewise.
13812 * tree-eh.c: Likewise.
13813 * tree-if-conv.c: Likewise.
13814 * tree-loop-distribution.c: Likewise.
13815 * tree-outof-ssa.c: Likewise.
13816 * tree-parloops.c: Likewise.
13817 * tree-predcom.c: Likewise.
13818 * tree-pretty-print.c: Likewise.
13819 * tree-profile.c: Likewise.
13820 * tree-sra.c: Likewise.
13821 * tree-ssa.c: Likewise.
13822 * tree-ssa-coalesce.c: Likewise.
13823 * tree-ssa-dce.c: Likewise.
13824 * tree-ssa-dom.c: Likewise.
13825 * tree-ssa-forwprop.c: Likewise.
13826 * tree-ssa-ifcombine.c: Likewise.
13827 * tree-ssa-loop-ch.c: Likewise.
13828 * tree-ssa-loop-im.c: Likewise.
13829 * tree-ssa-loop-ivcanon.c: Likewise.
13830 * tree-ssa-loop-ivopts.c: Likewise.
13831 * tree-ssa-loop-manip.c: Likewise.
13832 * tree-ssa-loop-prefetch.c: Likewise.
13833 * tree-ssa-loop-unswitch.c: Likewise.
13834 * tree-ssa-math-opts.c: Likewise.
13835 * tree-ssa-phiopt.c: Likewise.
13836 * tree-ssa-pre.c: Likewise.
13837 * tree-ssa-reassoc.c: Likewise.
13838 * tree-ssa-sink.c: Likewise.
13839 * tree-ssa-tail-merge.c: Likewise.
13840 * tree-ssa-threadedge.c: Likewise.
13841 * tree-ssa-threadupdate.c: Likewise.
13842 * tree-switch-conversion.c: Likewise.
13843 * tree-tailcall.c: Likewise.
13844 * tree-vect-data-refs.c: Likewise.
13845 * tree-vect-loop.c: Likewise.
13846 * tree-vect-loop-manip.c: Likewise.
13847 * tree-vectorizer.c: Likewise.
13848 * tree-vrp.c: Likewise.
13849 * ubsan.c: Likewise.
13850 * value-prof.c: Likewise.
13851 * varasm.c: Likewise.
13852 * var-tracking.c: Likewise.
13853 * config/aarch64/aarch64-builtins.c: Likewise.
13854 * config/aarch64/aarch64.c: Likewise.
13855 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13856 * config/alpha/alpha.c: Likewise.
13857 * config/arc/arc.c: Likewise.
13858 * config/arm/arm.c: Likewise.
13859 * config/avr/avr.c: Likewise.
13860 * config/bfin/bfin.c: Likewise.
13861 * config/c6x/c6x.c: Likewise.
13862 * config/cr16/cr16.c: Likewise.
13863 * config/cris/cris.c: Likewise.
13864 * config/darwin.c: Likewise.
13865 * config/darwin-c.c: Likewise.
13866 * config/epiphany/epiphany.c: Likewise.
13867 * config/epiphany/mode-switch-use.c: Likewise.
13868 * config/epiphany/resolve-sw-modes.c: Likewise.
13869 * config/fr30/fr30.c: Likewise.
13870 * config/frv/frv.c: Likewise.
13871 * config/ft32/ft32.c: Likewise.
13872 * config/h8300/h8300.c: Likewise.
13873 * config/i386/i386.c: Likewise.
13874 * config/i386/winnt.c: Likewise.
13875 * config/ia64/ia64.c: Likewise.
13876 * config/iq2000/iq2000.c: Likewise.
13877 * config/lm32/lm32.c: Likewise.
13878 * config/m32c/m32c.c: Likewise.
13879 * config/m32r/m32r.c: Likewise.
13880 * config/m68k/m68k.c: Likewise.
13881 * config/mcore/mcore.c: Likewise.
13882 * config/mep/mep.c: Likewise.
13883 * config/microblaze/microblaze.c: Likewise.
13884 * config/mips/mips.c: Likewise.
13885 * config/mmix/mmix.c: Likewise.
13886 * config/mn10300/mn10300.c: Likewise.
13887 * config/moxie/moxie.c: Likewise.
13888 * config/msp430/msp430.c: Likewise.
13889 * config/nds32/nds32.c: Likewise.
13890 * config/nds32/nds32-cost.c: Likewise.
13891 * config/nds32/nds32-fp-as-gp.c: Likewise.
13892 * config/nds32/nds32-intrinsic.c: Likewise.
13893 * config/nds32/nds32-isr.c: Likewise.
13894 * config/nds32/nds32-md-auxiliary.c: Likewise.
13895 * config/nds32/nds32-memory-manipulation.c: Likewise.
13896 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13897 * config/nds32/nds32-predicates.c: Likewise.
13898 * config/nios2/nios2.c: Likewise.
13899 * config/nvptx/nvptx.c: Likewise.
13900 * config/pa/pa.c: Likewise.
13901 * config/pdp11/pdp11.c: Likewise.
13902 * config/rl78/rl78.c: Likewise.
13903 * config/rs6000/rs6000.c: Likewise.
13904 * config/rx/rx.c: Likewise.
13905 * config/s390/s390.c: Likewise.
13906 * config/sh/sh.c: Likewise.
13907 * config/sh/sh-mem.cc: Likewise.
13908 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13909 * config/sh/sh_treg_combine.cc: Likewise.
13910 * config/sparc/sparc.c: Likewise.
13911 * config/spu/spu.c: Likewise.
13912 * config/stormy16/stormy16.c: Likewise.
13913 * config/tilegx/tilegx.c: Likewise.
13914 * config/tilepro/tilepro.c: Likewise.
13915 * config/v850/v850.c: Likewise.
13916 * config/vax/vax.c: Likewise.
13917 * config/visium/visium.c: Likewise.
13918 * config/xtensa/xtensa.c: Likewise.
13920 2015-07-10 Richard Biener <rguenther@suse.de>
13922 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
13923 (decision_tree::gen_gimple): Likewise.
13924 (decision_tree::gen_generic): Likewise.
13926 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
13929 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
13930 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
13932 2015-07-10 Jakub Jelinek <jakub@redhat.com>
13934 PR middle-end/66820
13935 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
13936 or ORT_TASK contexts.
13937 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
13940 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13942 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
13945 2015-07-10 Tom de Vries <tom@codesourcery.com>
13947 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
13948 insert nit + 1 bound.
13950 2015-07-10 Richard Biener <rguenther@suse.de>
13952 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
13953 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
13954 (if_convertible_loop_p_1): For this always compute bb predicates.
13955 (if_convertible_loop_p): And free them.
13957 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13959 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
13962 2015-07-10 Richard Biener <rguenther@suse.de>
13964 PR tree-optimization/66823
13965 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
13966 inverted predicate.
13968 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
13970 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
13971 to handle mips[32|64]r3 and mips[32|64]r5.
13973 2015-07-09 Jakub Jelinek <jakub@redhat.com>
13975 PR middle-end/66633
13976 * tree-nested.c (get_static_chain): Or in a flag into
13977 info->static_chain_added.
13978 (get_frame_field, get_nonlocal_debug_decl): Likewise.
13979 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
13980 2015-07-01 changes.
13981 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
13982 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
13985 PR tree-optimization/66718
13986 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
13988 (vect_simd_lane_linear): New function.
13989 (vectorizable_simd_clone_call): Support using linear arguments for
13990 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
13992 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
13995 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
13997 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
13999 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
14000 Use machine mode, not enum machine_mode in the prototype.
14002 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
14003 classify 128-bit floating point support.
14004 (FLOAT128_IBM_P): Likewise.
14005 (FLOAT128_VECTOR_P): Likewise.
14006 (FLOAT128_2REG_P): Likewise.
14007 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
14008 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
14009 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
14010 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
14012 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
14013 tests against TFmode/TDmode, since those modes do not use VSX
14015 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
14017 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
14018 tests against TFmode, etc.
14019 (invalid_e500_subreg): Add tests against IFmode/KFmode.
14020 (reg_offset_addressing_ok_p): Likewise.
14021 (rs6000_legitimate_offset_address_p): Likewise.
14022 (rs6000_legitimize_address): Likewise.
14023 (rs6000_legitimize_reload_address): Likewise.
14024 (rs6000_legitimate_address_p): Clean up tests against TFmode and
14025 TDmode to use the new helper macros, which will include IFmode and
14027 (rs6000_emit_move): Likewise.
14028 (rs6000_darwin64_record_arg_recurse): Likewise.
14029 (print_operand): Likewise.
14030 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
14031 that uses a single vector register as a vector and not as a
14032 floating point register in terms of the calling sequence.
14033 (rs6000_discover_homogeneous_aggregate): Likewise.
14034 (rs6000_return_in_memory): Likewise.
14035 (init_cumulative_args): Likewise.
14036 (rs6000_function_arg_boundary): Likewise.
14037 (rs6000_function_arg_advance_1): Likewise.
14038 (rs6000_function_arg): Likewise.
14039 (rs6000_pass_by_reference): Likewise.
14040 (rs6000_gimplify_va_arg): Likewise.
14041 (rs6000_secondary_reload_memory): Use machine_mode not enum
14043 (rs6000_split_multireg_move): Use new helper macros.
14044 (spe_func_has_64bit_regs_p): Likewise.
14045 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
14046 (output_toc): Use new helper macros.
14047 (rs6000_register_move_cost): Likewise.
14048 (rs6000_function_value): Add IEEE 128-bit floating point calling
14050 (rs6000_libcall_value): Likewise.
14051 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
14052 floating point support.
14053 (rs6000_vector_mode_supported_p): Likewise.
14055 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
14057 PR rtl-optimization/66782
14058 * lra-int.h (struct lra_insn_recog_data): Add comment about
14059 clobbered hard regs for arg_hard_regs.
14060 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
14061 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
14062 Add condition for processing used hard regs.
14063 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
14064 Process clobbered hard regs.
14066 2015-07-09 Michael Matz <matz@suse.de>
14068 * genmatch.c (fprintf_indent): New function.
14069 (operand::gen_transform): Add indent parameter.
14070 (expr::gen_transform, c_expr::gen_transform,
14071 capture::gen_transform): Ditto and use fprintf_indent.
14072 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
14073 (dt_operand::gen, dt_operand::gen_predicate,
14074 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
14075 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
14076 (decision_tree::gen_gimple): Adjust calls and indent generated
14078 (decision_tree::gen_generic): Ditto.
14079 (write_predicate): Ditto.
14081 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
14084 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
14085 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
14086 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
14087 {GENERAL,SSE,MMX}_REG_P where appropriate.
14089 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
14091 * lto-streamer.h: Don't include target.h and alloc-pool.h.
14092 * builtins.c: Adjust includes.
14093 * gimple.c: Likewise.
14094 * ipa-icf.c: Likewise.
14095 * lto-opts.c: Likewise.
14096 * ipa-reference.c: Likewise.
14097 * lto-section-out.c: Likewise.
14098 * lto-streamer-in.c: Likewise.
14099 * lto-streamer-out.c: Likewise.
14100 * opts-global.c: Likewise.
14101 * symtab.c: Likewise.
14102 * tree-chkp.c: Likewise.
14103 * tree-ssa-live.c: Likewise.
14104 * tree-streamer-in.c: Likewise.
14105 * tree-streamer-out.c: Likewise.
14106 * config/darwin.c: Likewise.
14107 * config/i386/winnt.c: Likewise.
14109 2015-07-09 Richard Biener <rguenther@suse.de>
14111 * genmatch.c (struct expr): Add force_single_use flag.
14112 (expr::expr): Add copy constructor.
14113 (capture_info::walk_match): Gather force_single_use captures.
14114 (expr::gen_transform): Use possibly NULLified sequence.
14115 (dt_simplify::gen): Apply single-use restrictions by NULLifying
14116 seq if any constrained expr is not single-use.
14117 (parser::parse_expr): Refactor to allow multiple flags. Handle
14118 's' flag to force an expression have a single-use if the pattern
14119 simplifies to more than one statement.
14120 * match.pd: Convert most single_use conditionals to :s flags.
14122 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
14124 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
14125 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
14126 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
14128 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
14130 * flags.h: Don't include flag-types.h or options.h.
14131 * opts-common.c: Adjust includes.
14132 * opts-global.c: Likewise.
14133 * common/config/epiphany/epiphany-common.c: Likewise.
14135 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
14138 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
14141 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
14144 * config/i386/i386.c (ix86_return_in_memory): Return true
14145 if int_size_in_bytes returns negative for IA MCU.
14147 2015-07-09 Marek Polacek <polacek@redhat.com>
14149 PR tree-optimization/66718
14150 * Makefile.in (OBJS): Add gimple-laddress.o.
14151 * passes.def: Schedule pass_laddress.
14152 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
14153 * tree-pass.h (make_pass_laddress): Declare.
14154 * gimple-laddress.c: New file.
14156 2015-07-09 Richard Biener <rguenther@suse.de>
14158 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
14160 2015-07-09 Richard Biener <rguenther@suse.de>
14162 PR tree-optimization/66807
14163 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
14165 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
14167 * function.c (stack_protect_epilogue): Use if rather than switch for
14168 check targetm.have_stack_protect_test.
14170 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14172 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
14173 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
14174 * config/arc/arc.h: Likewise.
14175 * config/arm/arm.h: Likewise.
14176 * config/bfin/bfin.h: Likewise.
14177 * config/epiphany/epiphany.h: Likewise.
14178 * config/frv/frv.h: Likewise.
14179 * config/ia64/ia64.h: Likewise.
14180 * config/iq2000/iq2000.h: Likewise.
14181 * config/lm32/lm32.h: Likewise.
14182 * config/m32r/m32r.h: Likewise.
14183 * config/mcore/mcore.h: Likewise.
14184 * config/mep/mep.h: Likewise.
14185 * config/microblaze/microblaze.h: Likewise.
14186 * config/mips/mips.h: Likewise.
14187 * config/mmix/mmix.h: Likewise.
14188 * config/mn10300/mn10300.h: Likewise.
14189 * config/nds32/nds32.h: Likewise.
14190 * config/nios2/nios2.h: Likewise.
14191 * config/pa/pa.h: Likewise.
14192 * config/rl78/rl78.h: Likewise.
14193 * config/sh/sh.h: Likewise.
14194 * config/sparc/sparc.h: Likewise.
14195 * config/stormy16/stormy16.h: Likewise.
14196 * config/tilegx/tilegx.h: Likewise.
14197 * config/tilepro/tilepro.h: Likewise.
14198 * config/v850/v850.h: Likewise.
14199 * config/xtensa/xtensa.h: Likewise.
14200 * doc/tm.texi: Regenerate.
14201 * doc/tm.texi.in: Adjust.
14202 * combine.c (simplify_set): Likewise.
14203 (simplify_comparison): Likewise.
14204 * expr.c (store_constructor): Likewise.
14205 * internal-fn.c (expand_arith_overflow): Likewise.
14206 * reload.c (push_reload): Likewise.
14207 (find_reloads): Likewise.
14208 (find_reloads_subreg_address): Likewise.
14209 * reload1.c (eliminate_regs_1): Likewise.
14210 * rtlanal.c (nonzero_bits1): Likewise.
14211 (num_sign_bit_copies1): Likewise.
14212 * simplify-rtx.c (simplify_truncation): Likewise.
14214 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14216 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
14217 of AUTO_INC_DEC with the preprocessor.
14218 * combine.c (combine_instructions): Likewise.
14219 (can_combine_p): Likewise.
14220 (try_combine): Likewise.
14221 * emit-rtl.c (try_split): Likewise.
14222 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14223 * lower-subreg.c (resolve_simple_move): Likewise.
14224 * lra.c (update_inc_notes): Likewise.
14225 * recog.c (asm_operand_ok): Likewise.
14226 (constrain_operands): Likewise.
14227 * regrename.c (scan_rtx_address): Likewise.
14228 * reload.c (update_auto_inc_notes): Likewise.
14229 (reg_inc_found_and_valid_p): Likewise.
14230 * reload1.c (reload): Likewise.
14231 (emit_input_reload_insns): Likewise.
14232 (delete_output_reload): Likewise.
14233 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14234 * valtrack.c (cleanup_auto_inc_dec): Likewise.
14236 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14238 * rtl.h: Always define AUTO_INC_DEC.
14239 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
14240 * combine.c (combine_instructions): Likewise.
14241 (can_combine_p): Likewise.
14242 (try_combine): Likewise.
14243 * emit-rtl.c (try_split): Likewise.
14244 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14245 * lower-subreg.c (resolve_simple_move): Likewise.
14246 * lra.c (update_inc_notes): Likewise.
14247 * recog.c (asm_operand_ok): Likewise.
14248 (constrain_operands): Likewise.
14249 * regrename.c (scan_rtx_address): Likewise.
14250 * reload.c (update_auto_inc_notes): Likewise.
14251 (find_equiv_reg): Likewise.
14252 * reload1.c (reload): Likewise.
14253 (reload_as_needed): Likewise.
14254 (choose_reload_regs): Likewise.
14255 (emit_input_reload_insns): Likewise.
14256 (delete_output_reload): Likewise.
14257 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14258 * valtrack.c (cleanup_auto_inc_dec): Likewise.
14260 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14262 * combine.c (can_combine_def_p): Don't check the value of
14263 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
14264 (combinable_i3pat): Likewise.
14265 (mark_used_regs_combine): Likewise.
14266 * regrename.c (rename_chains): Likewise.
14267 * reload.c (find_reloads_address): Likewise.
14268 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14270 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14272 * combine.c (update_rsp_from_reg_equal): Don't check if
14273 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
14274 (reg_nonzero_bits_for_combine): Likewise.
14275 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
14277 * config/frv/frv.h: Likewise.
14278 * config/lm32/lm32.h: Likewise.
14279 * config/mep/mep.h: Likewise.
14280 * config/mips/mips.h: Likewise.
14281 * config/rs6000/rs6000.h: Likewise.
14282 * config/sh/sh.h: Likewise.
14283 * config/tilegx/tilegx.h (enum reg_class): Likewise.
14284 * config/tilepro/tilepro.h: Likewise.
14285 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
14286 * doc/tm.texi: Regenerate.
14287 * doc/tm.texi.in: Adjust.
14288 * rtlanal.c (nonzero_bits1): Likewise.
14290 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14292 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
14293 with the preprocessor.
14294 (combine_instructions): Likewise.
14295 (try_combine): Likewise.
14297 (distribute_notes): Likewise.
14299 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14301 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
14303 (simplify_set): Likewise.
14304 * cse.c (cse_insn): Likewise.
14305 * fold-const.c (fold_single_bit_test): Likewise.
14306 (fold_unary_loc): Likewise.
14307 * postreload.c (reload_cse_simplify_set): Likewise.
14308 (reload_cse_simplify_operands): Likewise.
14310 2015-07-08 Jiong Wang <jiong.wang@arm.com>
14312 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
14313 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
14315 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
14318 * config/i386/x86intrin.h: Include <adxintrin.h> even if
14319 __iamcu__ is defined.
14321 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
14323 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
14325 2015-07-08 Iain Sandoe <iain@codesourcery.com>
14328 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
14329 names from preservation.
14331 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
14334 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
14336 (function_arg_advance_32): Don't pass vectors in registers for
14338 (function_arg_32): Likewise.
14339 (ix86_return_in_memory): Don't return vectors in registers for
14342 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
14344 PR middle-end/66334
14345 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
14346 hard regno live at the start of BB with incoming abnormal edges.
14347 * lra-lives.c (process_bb_lives): Ditto.
14349 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
14352 * config/nvptx/mkoffload.c (main): Create an offload image only in
14353 64-bit configurations.
14355 2015-07-08 Martin Liska <mliska@suse.cz>
14358 * tree-sra.c (create_access_1): Call ctor without brackets.
14359 (create_artificial_child_access): Likewise.
14361 2015-07-08 Richard Biener <rguenther@suse.de>
14363 PR tree-optimization/66793
14364 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
14365 Properly split the block after stmts ending it.
14367 2015-07-08 Richard Biener <rguenther@suse.de>
14369 PR tree-optimization/66794
14370 * passes.c (execute_function_todo): Assert that post-dominators
14372 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
14373 Free post-dominators.
14375 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14377 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
14380 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
14382 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
14383 more than or equal 8 and less than 32 when optimizing for size.
14385 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14387 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
14388 COSTS_N_INSNS (1) and increment it appropriately throughout the
14391 2015-07-08 Richard Biener <rguenther@suse.de>
14393 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
14395 2015-07-08 Alan Modra <amodra@gmail.com>
14397 * target.def (rtx_costs): Remove "code" param, add "mode".
14398 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
14399 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
14400 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
14401 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
14402 call. Track mode when given in rtx.
14403 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
14404 (default_address_cost): Pass Pmode to rtx_cost.
14405 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
14406 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
14408 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
14409 (notreg_cost): Add mode param. Use it.
14410 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
14411 mode param and pass to set_src_cost. Update all calls.
14412 (hash_scan_set): Formatting.
14413 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
14414 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
14416 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
14417 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
14418 emit_store_flag): Update set_src_cost and rtx_cost calls.
14419 * auto-inc-dec.c (attempt_change): Likewise.
14420 * calls.c (precompute_register_parameters): Likewise.
14421 * combine.c (expand_compound_operation, make_extraction,
14422 force_to_mode, distribute_and_simplify_rtx): Likewise.
14423 * dojump.c (prefer_and_bit_test): Likewise.
14424 * dse.c (find_shift_sequence): Likewise.
14425 * expr.c (compress_float_constant): Likewise.
14426 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
14427 * ifcvt.c (noce_try_sign_mask): Likewise.
14428 * loop-doloop.c (doloop_optimize): Likewise.
14429 * loop-invariant.c (create_new_invariant): Likewise.
14430 * lower-subreg.c (shift_cost, compute_costs): Likewise.
14431 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
14432 lshift_cheap_p): Likewise.
14433 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
14434 try_replace_in_use, reload_cse_move2add): Likewise.
14435 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
14437 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14438 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
14439 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
14440 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
14441 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
14442 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
14444 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
14445 * config/arc/arc.c (arc_rtx_costs): Likewise.
14446 * config/arm/arm.c (arm_rtx_costs): Likewise.
14447 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
14448 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
14449 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
14450 * config/cris/cris.c (cris_rtx_costs): Likewise.
14451 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
14452 * config/frv/frv.c (frv_rtx_costs): Likewise.
14453 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
14454 * config/i386/i386.c (ix86_rtx_costs): Likewise.
14455 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
14456 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
14457 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
14458 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
14459 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
14460 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
14461 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
14462 * config/mep/mep.c (mep_rtx_cost): Likewise.
14463 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
14464 * config/mips/mips.c (mips_rtx_costs): Likewise.
14465 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
14466 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
14467 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
14468 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
14469 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
14470 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
14471 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
14472 * config/pa/pa.c (hppa_rtx_costs): Likewise.
14473 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
14474 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
14475 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
14476 * config/s390/s390.c (s390_rtx_costs): Likewise.
14477 * config/sh/sh.c (sh_rtx_costs): Likewise.
14478 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
14479 * config/spu/spu.c (spu_rtx_costs): Likewise.
14480 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
14481 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
14482 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
14483 * config/v850/v850.c (v850_rtx_costs): Likewise.
14484 * config/vax/vax.c (vax_rtx_costs): Likewise.
14485 * config/visium/visium.c (visium_rtx_costs): Likewise.
14486 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
14487 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
14488 "code" param, and pass as outer_code to first rtx_cost call. Pass
14489 mode to rtx_cost calls.
14490 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
14492 (aarch64_rtx_costs_wrapper): Update.
14493 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
14494 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
14496 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
14497 and rtx_cost calls.
14498 (avr_operand_rtx_cost): Similarly.
14499 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
14500 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
14501 * config/mips/mips.c (mips_stack_address_p): Comment typo.
14502 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
14503 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
14504 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
14506 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
14507 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
14508 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
14509 * doc/tm.texi: Regenerate.
14511 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
14513 * tree-core.h: Include symtab.h.
14514 * rtl.h: Include hard-reg-set.h but not flags.h.
14515 (HARD_CONST): Remove condition compilation involving HARD_CONST since
14516 hard-reg-set.h is always included.
14517 * regs.h: Don't include hard-reg-set.h or rtl.h.
14518 * cfg.h: Include dominance.h.
14519 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
14520 * backend.h: New. Aggregate commonly used backend header files.
14521 * gimple-ssa.h: Don't include tree-hasher.h.
14522 * ssa.h: New. Aggregate commonly used SSA header files.
14523 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
14524 * sel-sched-ir.h: Flatten includes.
14525 * lra-int.h: Flatten completely.
14526 * sel-sched-dump.h: Flatten includes.
14527 * ira-int.h: Flatten includes.
14528 * gimple-streamer.h: Remove all includes.
14529 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
14530 * resource.h: Flatten hard-reg-set.h and df.h.
14531 * sched-int.h: Flatten insn-arrt.h and df.h.
14532 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
14533 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
14534 * genattrtab.c (write_header): Adjust generated includes.
14535 * genautomata.c (main): Likewise.
14536 * genconditions.c (write-header): Likewise.
14537 * genemit.c (main): Likewise.
14538 * gengtype.c (open_base_files): Likewise.
14539 * genopinit.c (main): Likewise.
14540 * genoutput.c (output_prologue): Likewise.
14541 * genpeep.c (main): Likewise.
14542 * genpreds.c (write_insn_preds_c): Likewise.
14543 * genrecog.c (write_header): Likewise.
14544 * alias.c: Adjust includes.
14545 * asan.c: Likewise.
14546 * attribs.c: Likewise.
14547 * auto-inc-dec.c: Likewise.
14548 * auto-profile.c: Likewise.
14549 * bb-reorder.c: Likewise.
14550 * bt-load.c: Likewise.
14551 * builtins.c: Likewise.
14552 * caller-save.c: Likewise.
14553 * calls.c: Likewise.
14554 * ccmp.c: Likewise.
14556 * cfganal.c: Likewise.
14557 * cfgbuild.c: Likewise.
14558 * cfgcleanup.c: Likewise.
14559 * cfgexpand.c: Likewise.
14560 * cfghooks.c: Likewise.
14561 * cfgloop.c: Likewise.
14562 * cfgloopanal.c: Likewise.
14563 * cfgloopmanip.c: Likewise.
14564 * cfgrtl.c: Likewise.
14565 * cgraph.c: Likewise.
14566 * cgraphbuild.c: Likewise.
14567 * cgraphclones.c: Likewise.
14568 * cgraphunit.c: Likewise.
14569 * cilk-common.c: Likewise.
14570 * combine-stack-adj.c: Likewise.
14571 * combine.c: Likewise.
14572 * compare-elim.c: Likewise.
14573 * convert.c: Likewise.
14574 * coverage.c: Likewise.
14575 * cppbuiltin.c: Likewise.
14576 * cprop.c: Likewise.
14578 * cselib.c: Likewise.
14579 * data-streamer-in.c: Likewise.
14580 * data-streamer-out.c: Likewise.
14581 * data-streamer.c: Likewise.
14582 * dbxout.c: Likewise.
14585 * debug.c: Likewise.
14586 * df-core.c: Likewise.
14587 * df-problems.c: Likewise.
14588 * df-scan.c: Likewise.
14590 * dojump.c: Likewise.
14591 * dominance.c: Likewise.
14592 * domwalk.c: Likewise.
14593 * double-int.c: Likewise.
14595 * dumpfile.c: Likewise.
14596 * dwarf2asm.c: Likewise.
14597 * dwarf2cfi.c: Likewise.
14598 * dwarf2out.c: Likewise.
14599 * emit-rtl.c: Likewise.
14600 * et-forest.c: Likewise.
14601 * except.c: Likewise.
14602 * explow.c: Likewise.
14603 * expmed.c: Likewise.
14604 * expr.c: Likewise.
14605 * final.c: Likewise.
14606 * fixed-value.c: Likewise.
14607 * fold-const.c: Likewise.
14608 * function.c: Likewise.
14609 * fwprop.c: Likewise.
14610 * gcc-plugin.h: Likewise.
14611 * gcse-common.c: Likewise.
14612 * gcse.c: Likewise.
14613 * generic-match-head.c: Likewise.
14614 * ggc-page.c: Likewise.
14615 * gimple-builder.c: Likewise.
14616 * gimple-expr.c: Likewise.
14617 * gimple-fold.c: Likewise.
14618 * gimple-iterator.c: Likewise.
14619 * gimple-low.c: Likewise.
14620 * gimple-match-head.c: Likewise.
14621 * gimple-pretty-print.c: Likewise.
14622 * gimple-ssa-isolate-paths.c: Likewise.
14623 * gimple-ssa-strength-reduction.c: Likewise.
14624 * gimple-streamer-in.c: Likewise.
14625 * gimple-streamer-out.c: Likewise.
14626 * gimple-walk.c: Likewise.
14627 * gimple.c: Likewise.
14628 * gimplify-me.c: Likewise.
14629 * gimplify.c: Likewise.
14630 * godump.c: Likewise.
14631 * graph.c: Likewise.
14632 * graphite-blocking.c: Likewise.
14633 * graphite-dependences.c: Likewise.
14634 * graphite-interchange.c: Likewise.
14635 * graphite-isl-ast-to-gimple.c: Likewise.
14636 * graphite-optimize-isl.c: Likewise.
14637 * graphite-poly.c: Likewise.
14638 * graphite-scop-detection.c: Likewise.
14639 * graphite-sese-to-poly.c: Likewise.
14640 * graphite.c: Likewise.
14641 * haifa-sched.c: Likewise.
14642 * hw-doloop.c: Likewise.
14643 * ifcvt.c: Likewise.
14644 * init-regs.c: Likewise.
14645 * internal-fn.c: Likewise.
14646 * ipa-chkp.c: Likewise.
14647 * ipa-comdats.c: Likewise.
14648 * ipa-cp.c: Likewise.
14649 * ipa-devirt.c: Likewise.
14650 * ipa-icf-gimple.c: Likewise.
14651 * ipa-icf.c: Likewise.
14652 * ipa-inline-analysis.c: Likewise.
14653 * ipa-inline-transform.c: Likewise.
14654 * ipa-inline.c: Likewise.
14655 * ipa-polymorphic-call.c: Likewise.
14656 * ipa-profile.c: Likewise.
14657 * ipa-prop.c: Likewise.
14658 * ipa-pure-const.c: Likewise.
14659 * ipa-ref.c: Likewise.
14660 * ipa-reference.c: Likewise.
14661 * ipa-split.c: Likewise.
14662 * ipa-utils.c: Likewise.
14663 * ipa-visibility.c: Likewise.
14665 * ira-build.c: Likewise.
14666 * ira-color.c: Likewise.
14667 * ira-conflicts.c: Likewise.
14668 * ira-costs.c: Likewise.
14669 * ira-emit.c: Likewise.
14670 * ira-lives.c: Likewise.
14672 * jump.c: Likewise.
14673 * langhooks.c: Likewise.
14675 * loop-doloop.c: Likewise.
14676 * loop-init.c: Likewise.
14677 * loop-invariant.c: Likewise.
14678 * loop-iv.c: Likewise.
14679 * loop-unroll.c: Likewise.
14680 * lower-subreg.c: Likewise.
14681 * lra-assigns.c: Likewise.
14682 * lra-coalesce.c: Likewise.
14683 * lra-constraints.c: Likewise.
14684 * lra-eliminations.c: Likewise.
14685 * lra-lives.c: Likewise.
14686 * lra-remat.c: Likewise.
14687 * lra-spills.c: Likewise.
14689 * lto-cgraph.c: Likewise.
14690 * lto-compress.c: Likewise.
14691 * lto-opts.c: Likewise.
14692 * lto-section-in.c: Likewise.
14693 * lto-section-out.c: Likewise.
14694 * lto-streamer-in.c: Likewise.
14695 * lto-streamer-out.c: Likewise.
14696 * lto-streamer.c: Likewise.
14698 * mode-switching.c: Likewise.
14699 * modulo-sched.c: Likewise.
14700 * omega.c: Likewise.
14701 * omp-low.c: Likewise.
14702 * optabs.c: Likewise.
14703 * opts-global.c: Likewise.
14704 * passes.c: Likewise.
14705 * plugin.c: Likewise.
14706 * postreload-gcse.c: Likewise.
14707 * postreload.c: Likewise.
14708 * predict.c: Likewise.
14709 * print-rtl.c: Likewise.
14710 * print-tree.c: Likewise.
14711 * profile.c: Likewise.
14712 * real.c: Likewise.
14713 * realmpfr.c: Likewise.
14714 * recog.c: Likewise.
14716 * reg-stack.c: Likewise.
14717 * regcprop.c: Likewise.
14718 * reginfo.c: Likewise.
14719 * regrename.c: Likewise.
14720 * regstat.c: Likewise.
14721 * reload.c: Likewise.
14722 * reload1.c: Likewise.
14723 * reorg.c: Likewise.
14724 * resource.c: Likewise.
14725 * rtl-chkp.c: Likewise.
14726 * rtlanal.c: Likewise.
14727 * rtlhooks.c: Likewise.
14728 * sanopt.c: Likewise.
14729 * sched-deps.c: Likewise.
14730 * sched-ebb.c: Likewise.
14731 * sched-rgn.c: Likewise.
14732 * sched-vis.c: Likewise.
14733 * sdbout.c: Likewise.
14734 * sel-sched-dump.c: Likewise.
14735 * sel-sched-ir.c: Likewise.
14736 * sel-sched.c: Likewise.
14737 * sese.c: Likewise.
14738 * shrink-wrap.c: Likewise.
14739 * simplify-rtx.c: Likewise.
14740 * stack-ptr-mod.c: Likewise.
14741 * stmt.c: Likewise.
14742 * stor-layout.c: Likewise.
14743 * store-motion.c: Likewise.
14744 * stringpool.c: Likewise.
14745 * symtab.c: Likewise.
14746 * target-globals.c: Likewise.
14747 * targhooks.c: Likewise.
14748 * toplev.c: Likewise.
14749 * tracer.c: Likewise.
14750 * trans-mem.c: Likewise.
14751 * tree-affine.c: Likewise.
14752 * tree-browser.c: Likewise.
14753 * tree-call-cdce.c: Likewise.
14754 * tree-cfg.c: Likewise.
14755 * tree-cfgcleanup.c: Likewise.
14756 * tree-chkp-opt.c: Likewise.
14757 * tree-chkp.c: Likewise.
14758 * tree-chrec.c: Likewise.
14759 * tree-complex.c: Likewise.
14760 * tree-data-ref.c: Likewise.
14761 * tree-dfa.c: Likewise.
14762 * tree-diagnostic.c: Likewise.
14763 * tree-dump.c: Likewise.
14764 * tree-eh.c: Likewise.
14765 * tree-emutls.c: Likewise.
14766 * tree-if-conv.c: Likewise.
14767 * tree-inline.c: Likewise.
14768 * tree-into-ssa.c: Likewise.
14769 * tree-iterator.c: Likewise.
14770 * tree-loop-distribution.c: Likewise.
14771 * tree-nested.c: Likewise.
14772 * tree-nrv.c: Likewise.
14773 * tree-object-size.c: Likewise.
14774 * tree-outof-ssa.c: Likewise.
14775 * tree-parloops.c: Likewise.
14776 * tree-phinodes.c: Likewise.
14777 * tree-predcom.c: Likewise.
14778 * tree-pretty-print.c: Likewise.
14779 * tree-profile.c: Likewise.
14780 * tree-scalar-evolution.c: Likewise.
14781 * tree-sra.c: Likewise.
14782 * tree-ssa-address.c: Likewise.
14783 * tree-ssa-alias.c: Likewise.
14784 * tree-ssa-ccp.c: Likewise.
14785 * tree-ssa-coalesce.c: Likewise.
14786 * tree-ssa-copy.c: Likewise.
14787 * tree-ssa-copyrename.c: Likewise.
14788 * tree-ssa-dce.c: Likewise.
14789 * tree-ssa-dom.c: Likewise.
14790 * tree-ssa-dse.c: Likewise.
14791 * tree-ssa-forwprop.c: Likewise.
14792 * tree-ssa-ifcombine.c: Likewise.
14793 * tree-ssa-live.c: Likewise.
14794 * tree-ssa-loop-ch.c: Likewise.
14795 * tree-ssa-loop-im.c: Likewise.
14796 * tree-ssa-loop-ivcanon.c: Likewise.
14797 * tree-ssa-loop-ivopts.c: Likewise.
14798 * tree-ssa-loop-manip.c: Likewise.
14799 * tree-ssa-loop-niter.c: Likewise.
14800 * tree-ssa-loop-prefetch.c: Likewise.
14801 * tree-ssa-loop-unswitch.c: Likewise.
14802 * tree-ssa-loop.c: Likewise.
14803 * tree-ssa-math-opts.c: Likewise.
14804 * tree-ssa-operands.c: Likewise.
14805 * tree-ssa-phiopt.c: Likewise.
14806 * tree-ssa-phiprop.c: Likewise.
14807 * tree-ssa-pre.c: Likewise.
14808 * tree-ssa-propagate.c: Likewise.
14809 * tree-ssa-reassoc.c: Likewise.
14810 * tree-ssa-sccvn.c: Likewise.
14811 * tree-ssa-scopedtables.c: Likewise.
14812 * tree-ssa-sink.c: Likewise.
14813 * tree-ssa-strlen.c: Likewise.
14814 * tree-ssa-structalias.c: Likewise.
14815 * tree-ssa-tail-merge.c: Likewise.
14816 * tree-ssa-ter.c: Likewise.
14817 * tree-ssa-threadedge.c: Likewise.
14818 * tree-ssa-threadupdate.c: Likewise.
14819 * tree-ssa-uncprop.c: Likewise.
14820 * tree-ssa-uninit.c: Likewise.
14821 * tree-ssa.c: Likewise.
14822 * tree-ssanames.c: Likewise.
14823 * tree-stdarg.c: Likewise.
14824 * tree-streamer-in.c: Likewise.
14825 * tree-streamer-out.c: Likewise.
14826 * tree-streamer.c: Likewise.
14827 * tree-switch-conversion.c: Likewise.
14828 * tree-tailcall.c: Likewise.
14829 * tree-vect-data-refs.c: Likewise.
14830 * tree-vect-generic.c: Likewise.
14831 * tree-vect-loop-manip.c: Likewise.
14832 * tree-vect-loop.c: Likewise.
14833 * tree-vect-patterns.c: Likewise.
14834 * tree-vect-slp.c: Likewise.
14835 * tree-vect-stmts.c: Likewise.
14836 * tree-vectorizer.c: Likewise.
14837 * tree-vrp.c: Likewise.
14838 * tree.c: Likewise.
14839 * tsan.c: Likewise.
14840 * ubsan.c: Likewise.
14841 * valtrack.c: Likewise.
14842 * value-prof.c: Likewise.
14843 * var-tracking.c: Likewise.
14844 * varasm.c: Likewise.
14845 * varpool.c: Likewise.
14846 * vmsdbgout.c: Likewise.
14847 * vtable-verify.c: Likewise.
14849 * wide-int.cc: Likewise.
14850 * xcoffout.c: Likewise.
14851 * config/aarch64/aarch64-builtins.c: Likewise.
14852 * config/aarch64/aarch64.c: Likewise.
14853 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14854 * config/alpha/alpha.c: Likewise.
14855 * config/arc/arc.c: Likewise.
14856 * config/arm/aarch-common.c: Likewise.
14857 * config/arm/arm-builtins.c: Likewise.
14858 * config/arm/arm-c.c: Likewise.
14859 * config/arm/arm.c: Likewise.
14860 * config/avr/avr-c.c: Likewise.
14861 * config/avr/avr-log.c: Likewise.
14862 * config/avr/avr.c: Likewise.
14863 * config/bfin/bfin.c: Likewise.
14864 * config/c6x/c6x.c: Likewise.
14865 * config/cr16/cr16.c: Likewise.
14866 * config/cris/cris.c: Likewise.
14867 * config/darwin-c.c: Likewise.
14868 * config/darwin.c: Likewise.
14869 * config/epiphany/epiphany.c: Likewise.
14870 * config/epiphany/mode-switch-use.c: Likewise.
14871 * config/epiphany/resolve-sw-modes.c: Likewise.
14872 * config/fr30/fr30.c: Likewise.
14873 * config/frv/frv.c: Likewise.
14874 * config/ft32/ft32.c: Likewise.
14875 * config/h8300/h8300.c: Likewise.
14876 * config/i386/i386-c.c: Likewise.
14877 * config/i386/i386.c: Likewise.
14878 * config/i386/msformat-c.c: Likewise.
14879 * config/i386/winnt-cxx.c: Likewise.
14880 * config/i386/winnt-stubs.c: Likewise.
14881 * config/i386/winnt.c: Likewise.
14882 * config/ia64/ia64-c.c: Likewise.
14883 * config/ia64/ia64.c: Likewise.
14884 * config/iq2000/iq2000.c: Likewise.
14885 * config/lm32/lm32.c: Likewise.
14886 * config/m32c/m32c-pragma.c: Likewise.
14887 * config/m32c/m32c.c: Likewise.
14888 * config/m32r/m32r.c: Likewise.
14889 * config/m68k/m68k.c: Likewise.
14890 * config/mcore/mcore.c: Likewise.
14891 * config/mep/mep-pragma.c: Likewise.
14892 * config/mep/mep.c: Likewise.
14893 * config/microblaze/microblaze-c.c: Likewise.
14894 * config/microblaze/microblaze.c: Likewise.
14895 * config/mips/mips.c: Likewise.
14896 * config/mmix/mmix.c: Likewise.
14897 * config/mn10300/mn10300.c: Likewise.
14898 * config/moxie/moxie.c: Likewise.
14899 * config/msp430/msp430-c.c: Likewise.
14900 * config/msp430/msp430.c: Likewise.
14901 * config/nds32/nds32-cost.c: Likewise.
14902 * config/nds32/nds32-fp-as-gp.c: Likewise.
14903 * config/nds32/nds32-intrinsic.c: Likewise.
14904 * config/nds32/nds32-isr.c: Likewise.
14905 * config/nds32/nds32-md-auxiliary.c: Likewise.
14906 * config/nds32/nds32-memory-manipulation.c: Likewise.
14907 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14908 * config/nds32/nds32-predicates.c: Likewise.
14909 * config/nds32/nds32.c: Likewise.
14910 * config/nios2/nios2.c: Likewise.
14911 * config/nvptx/nvptx.c: Likewise.
14912 * config/pa/pa.c: Likewise.
14913 * config/pdp11/pdp11.c: Likewise.
14914 * config/rl78/rl78-c.c: Likewise.
14915 * config/rl78/rl78.c: Likewise.
14916 * config/rs6000/rs6000-c.c: Likewise.
14917 * config/rs6000/rs6000.c: Likewise.
14918 * config/rx/rx.c: Likewise.
14919 * config/s390/s390-c.c: Likewise.
14920 * config/s390/s390.c: Likewise.
14921 * config/sh/sh-c.c: Likewise.
14922 * config/sh/sh-mem.cc: Likewise.
14923 * config/sh/sh.c: Likewise.
14924 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14925 * config/sh/sh_treg_combine.cc: Likewise.
14926 * config/sol2-c.c: Likewise.
14927 * config/sol2-cxx.c: Likewise.
14928 * config/sol2-stubs.c: Likewise.
14929 * config/sol2.c: Likewise.
14930 * config/sparc/sparc-c.c: Likewise.
14931 * config/sparc/sparc.c: Likewise.
14932 * config/spu/spu-c.c: Likewise.
14933 * config/spu/spu.c: Likewise.
14934 * config/stormy16/stormy16.c: Likewise.
14935 * config/tilegx/mul-tables.c: Likewise.
14936 * config/tilegx/tilegx-c.c: Likewise.
14937 * config/tilegx/tilegx.c: Likewise.
14938 * config/tilepro/mul-tables.c: Likewise.
14939 * config/tilepro/tilepro-c.c: Likewise.
14940 * config/tilepro/tilepro.c: Likewise.
14941 * config/v850/v850-c.c: Likewise.
14942 * config/v850/v850.c: Likewise.
14943 * config/vax/vax.c: Likewise.
14944 * config/visium/visium.c: Likewise.
14945 * config/vms/vms-c.c: Likewise.
14946 * config/vms/vms.c: Likewise.
14947 * config/vxworks.c: Likewise.
14948 * config/xtensa/xtensa.c: Likewise.
14950 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
14952 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
14953 Remove operand constraints. Change operand 2 predicate to
14954 nonmemory operand. Limit const_int values to mode bitsize. Only
14955 allow const_int values less than 32 when optimizing for size.
14956 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
14957 Remove operand constraints.
14958 (*bt<mode>): Use SImode for const_int values less than 32.
14959 (regmode): Remove mode attribute.
14961 2015-07-07 Anatoly Sokolov <aesok@post.ru>
14963 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14964 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
14965 moxie_legitimate_address_p): New functions.
14966 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
14968 2015-07-07 Tom de Vries <tom@codesourcery.com>
14970 PR tree-optimization/66642
14971 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
14972 header comment. Rename split_edge variable to edge_at_split. Split
14973 exit edge to create new loop exit bb. Insert loop exit phis in new
14976 2015-07-07 Tom de Vries <tom@codesourcery.com>
14978 * tree-cfg.c (get_virtual_phi): New function.
14979 * tree-cfg.h (get_virtual_phi): Declare.
14980 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
14981 (rewrite_virtuals_into_loop_closed_ssa): New function.
14982 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
14984 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
14985 (transform_to_exit_first_loop_alt): Use
14986 rewrite_virtuals_into_loop_closed_ssa.
14988 2015-07-07 Richard Biener <rguenther@suse.de>
14990 * fold-const.c (fold_binary_loc): Move
14991 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
14992 * match.pd: ... here.
14993 Add (X * C1) % C2 -> 0 simplification pattern derived from
14996 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
14999 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
15000 change for target/65249.
15002 2015-07-07 Paulo Matos <pmatos@broadcom.com>
15004 * symtab.c (address_matters_1): Fix typo in comment above.
15005 (can_increase_alignment_p): Likewise.
15007 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15009 * function.c (free_after_compilation): Clear PROP_cfg in
15010 f->curr_properties.
15012 2015-07-07 Richard Biener <rguenther@suse.de>
15014 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
15016 (add_control_edge): Remove excessive vertical space in dumping.
15017 (process_ssa_edge_worklist): Simulate at most one statement and
15018 return whether we did. Do not simulate PHIs if they are in a
15019 BB not yet simulated.
15020 (ssa_propagate): Adjust to always drain the BB worklist whenever
15021 a BB is available there, likewise the VARYING edges list before
15022 the interesting edge list.
15024 2015-07-07 Christian Bruel <christian.bruel@st.com>
15027 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
15029 2015-07-07 Richard Biener <rguenther@suse.de>
15031 PR middle-end/66739
15032 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
15035 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
15037 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
15038 modes for operands 0 and 3. Use SImode for operands 2 and 3.
15039 Copy operand 0 to a temporary if !ext_register_operand. Remove
15040 ancient extract_bit_field workaround.
15041 (insv<mode>_1): Rename from mov<mode>_insv_1.
15042 (*insvqi): Rename from *movqi_insv_2.
15043 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
15044 for renamed insvsi_1.
15045 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
15047 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
15049 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
15050 call to nvptx_reorg_subreg.
15052 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
15054 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
15055 * graphite-dependencies.c, graphite-interchange.c,
15056 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
15057 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
15060 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
15062 * match.pd: Remove element_mode inside HONOR_*.
15063 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
15064 (~X | X -> -1, ~X ^ X -> -1): Merge.
15065 * tree.c (build_each_one_cst): New function.
15066 * tree.h (build_each_one_cst): Likewise.
15068 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
15070 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15073 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
15075 * config.gcc <mips*-*-*>: Add fused-madd.opt.
15076 * config/mips/mips.opt (mfused-madd): Remove.
15077 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
15078 * config/mips/mips.h (TARGET_MIPS8000): New.
15079 (ISA_HAS_FP_MADD4_MSUB4): Remove.
15080 (ISA_HAS_FP_MADDF_MSUBF): Remove.
15081 (ISA_HAS_FP_MADD3_MSUB3): Remove.
15082 (ISA_HAS_NMADD4_NMSUB4): Remove.
15083 (ISA_HAS_NMADD3_NMSUB3): Remove.
15084 (ISA_HAS_FUSED_MADD4): New.
15085 (ISA_HAS_UNFUSED_MADD4): New.
15086 (ISA_HAS_FUSED_MADDF): New.
15087 (ISA_HAS_FUSED_MADD3): New.
15088 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
15089 (*fma<mode>4_madd3) New.
15090 (*fma<mode>4_madd4) New.
15091 (*fma<mode>4_maddf) New.
15093 (*fms<mode>4_msub3) New.
15094 (*fms<mode>4_msub4) New.
15096 (*fnma<mode>4_nmadd3) New.
15097 (*fnma<mode>4_nmadd4) New.
15099 (*fnms<mode>4_nmsub3) New.
15100 (*fnms<mode>4_nmsub4) New.
15101 (*madd4<mode>) Modify to be unfused only.
15102 (*msub4<mode>) Modify to be unfused only.
15103 (*nmadd4<mode>) Modify to be unfused only.
15104 (*nmsub4<mode>) Modify to be unfused only.
15105 (*madd3<mode>) Remove.
15106 (*msub3<mode>) Remove.
15107 (*nmadd3<mode>) Remove.
15108 (*nmsub3<mode>) Remove.
15109 (*nmadd3<mode>_fastmath) Remove.
15110 (*nmsub3<mode>_fastmath) Remove.
15111 (*nmadd4<mode>_fastmath) Update condition.
15112 (*nmsub4<mode>_fastmath) Update condition.
15114 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
15117 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
15118 alignment attribute, exploring one level down for records and arrays.
15120 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
15122 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
15123 modes for operands 0 and 1. Use SImode for operands 2 and 3.
15124 Copy operand 1 to a temporary if !ext_register_operand. Remove
15125 ancient extract_bit_field workaround.
15126 (*extv<mode>): Rename from *mov<mode>_extv_1.
15127 (*extvqi): Rename from *movqi_extv_1.
15128 (extzv<mode>): Rename from extzv. Use SWI248 modes for
15129 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
15130 to a temporary if !ext_register_operand. Remove ancient
15131 extract_bit_field workaround.
15132 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
15133 (*extzvqi): Rename from *movqi_extzv_2.
15134 (*testqi_ext_3): Remove modes from const_int_operand predicated
15135 operands. Add "n" constraint.
15136 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
15137 operand. Add "J" constraint.
15138 (*btsq, *btrq, *btcq peephole2s): Remove mode from
15139 const_0_to_63 predicated operand.
15140 (regmode): New insn attribute.
15141 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
15142 to nonmemory_operand. Use regmode insn attribute.
15143 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
15144 (*jcc_bt<mode>_mask): Remove mode from operand 3.
15145 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
15146 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
15147 operands. Use "N" constraint instead of "n".
15149 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
15151 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
15153 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
15156 * config/i386/i386.c (iamcu_cost): New.
15157 (m_IAMCU): Likewise.
15158 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
15159 (processor_target_table): Add an entry for "iamcu".
15160 (processor_alias_table): Likewise.
15161 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
15162 (ix86_adjust_cost): Likewise.
15163 (ia32_multipass_dfa_lookahead): Likewise.
15164 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
15165 * config/i386/x86-tune.def: Updated for m_IAMCU.
15167 2015-07-06 Richard Biener <rguenther@suse.de>
15169 PR tree-optimization/66772
15170 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
15171 values are available in the PHI node BB when there are
15172 still unexecutable edges.
15174 2015-07-06 Richard Biener <rguenther@suse.de>
15176 PR tree-optimization/66767
15177 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
15178 Make sure to build the alignment test on a SSA name without
15179 final alignment info valid only if the alignment test
15182 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
15185 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
15186 loop start when inserting LSETUP.
15188 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
15191 * config/i386/i386.c (ix86_option_override_internal): Allow
15192 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
15194 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15196 * read-md.c (decimal_string): Rename to ...
15197 (md_decimal_string): ... this.
15198 (handle_enum): Reflect this.
15200 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15203 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
15205 2015-07-06 Richard Biener <rguenther@suse.de>
15207 PR middle-end/66759
15208 * match.pd: Add missing constraint of y to REAL_CST in
15209 REAL_CST - x CMP y to y - CST CMP x simplification.
15211 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
15213 PR tree-optimization/66757
15214 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
15216 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
15217 Sandra Loosemore <sandra@codesourcery.com>
15219 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
15220 Delete extern declaration.
15221 (gprel_constant_p): Add extern declaration.
15222 * config/nios2/constraints.md ("S"): Use gprel_constant_p
15223 instead of nios2_symbol_ref_in_small_data_p.
15224 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
15225 (nios2_symbol_ref_in_small_data_p): Make static.
15226 (gprel_constant_p): Make non-static.
15228 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
15230 * doc/fragments.texi (Target Fragment): Convert debian.org
15232 * doc/install.texi (Configuration): Ditto.
15234 2015-07-05 Jakub Jelinek <jakub@redhat.com>
15236 PR tree-optimization/66718
15237 * tree-vect-stmts.c (vectorizable_call): Replace uses of
15238 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
15240 PR tree-optimization/66718
15241 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
15242 vectorizable_load, vectorizable_condition): Move vectype,
15243 nunits, ncopies computation after checking what kind of statement
15246 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15248 * target-insns.def (extv, extzv, insv): New targetm instruction
15250 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
15252 * recog.c (simplify_while_replacing): Likewise.
15254 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15256 * target-insns.def (doloop_begin, doloop_end): New targetm
15257 instruction patterns.
15258 * loop-init.c: Include target.h.
15259 (pass_loop2::gate): Use the new targetm patterns instead of
15260 HAVE_*/gen_* interface.
15261 (pass_rtl_doloop::gate): Likewise.
15262 (pass_rtl_doloop::execute): Remove preprocessor condition.
15263 * hw-doloop.c: Build unconditionally.
15264 * loop-doloop.c: Likewise.
15265 (doloop_optimize): Use the new targetm patterns instead of
15266 HAVE_*/gen_* interface.
15267 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
15268 * modulo-sched.c (doloop_register_get): Likewise.
15270 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15272 * target-insns.def (clear_cache): New targetm instruction pattern.
15273 * builtins.c (expand_builtin___clear_cache): Use it instead of
15274 HAVE_*/gen_* interface.
15276 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15278 * target-insns.def (allocate_stack, check_stack, probe_stack)
15279 (probe_stack_address, split_stack_prologue, split_stack_space_check):
15280 New targetm instruction patterns.
15281 * explow.c (allocate_dynamic_stack_space): Use them instead of
15282 HAVE_*/gen_* interface.
15283 (emit_stack_probe): Likewise.
15284 (probe_stack_range): Likewise.
15285 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15287 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15289 * target-insns.def (stack_protect_set, stack_protect_test): New
15290 targetm instruction patterns.
15291 * cfgexpand.c (stack_protect_prologue): Use them instead of
15292 HAVE_*/gen_* interface.
15293 * function.c (stack_protect_epilogue): Likewise.
15295 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15297 * expr.h (gen_move_insn_uncast): Delete.
15298 * expr.c (gen_move_insn_uncast): Delete.
15300 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15302 * target-insns.def (restore_stack_block, restore_stack_function)
15303 (restore_stack_nonlocal, save_stack_block, save_stack_function)
15304 (save_stack_nonlocal): New targetm instruction patterns.
15305 * builtins.c (expand_builtin_apply): Use them instead of
15306 HAVE_*/gen_* interface.
15307 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
15309 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15311 * target-insns.def (trap): New targetm instruction pattern.
15312 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
15314 * explow.c (allocate_dynamic_stack_space): Likewise.
15315 * ifcvt.c (find_if_header): Likewise.
15317 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15319 * target-insns.def (prefetch): New targetm instruction pattern.
15320 * tree-ssa-loop-prefetch.c: Include targeth.
15321 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
15322 of HAVE_*/gen_* interface.
15323 * builtins.c (expand_builtin_prefetch): Likewise.
15324 * toplev.c (process_options): Likewise.
15326 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15328 * target-insns.def (untyped_call, untyped_return): New targetm
15329 instruction patterns.
15330 * builtins.c (expand_builtin_apply): Use them instead of
15331 HAVE_*/gen_* interface.
15332 (result_vector): Define unconditionally.
15334 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15336 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
15337 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
15338 (nonlocal_goto_receiver): New targetm instruction patterns.
15339 * builtins.c (expand_builtin_setjmp_setup): Use them instead
15340 of HAVE_*/gen_* interface.
15341 (expand_builtin_setjmp_receiver): Likewise.
15342 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
15343 * except.c (expand_dw2_landing_pad_for_region): Likewise.
15345 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15347 * target.def: Add code_for_* hooks.
15348 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
15349 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
15350 * target-insns.def (casesi, tablejump): New targetm instruction
15352 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
15353 (do_tablejump): Likewise.
15354 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
15355 (expand_sjlj_dispatch_table): Likewise.
15356 * targhooks.c (default_case_values_threshold): Likewise.
15358 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
15360 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
15361 Use rtx_insn * instead of rtx.
15362 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
15363 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
15364 (nios2_call_tls_get_addr): Likewise.
15365 (nios2_emit_expensive_div): Likewise.
15366 (nios2_emit_move_sequence): Change return type to bool.
15367 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
15368 Change return type to bool.
15370 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
15373 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
15375 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
15378 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
15379 of register_operand. Remove constraint.
15381 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
15383 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
15384 the first argument.
15386 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
15388 * attribs.c (decl_attributes): Guard inform with the return value
15389 of the preceding warning.
15391 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
15393 * doc/invoke.texi (moverride): Move to correct section.
15395 2015-07-03 Richard Biener <rguenther@suse.de>
15397 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
15399 (dt_operand::gen_gimple_expr): After valueizing operands
15400 re-canonicalize operand order for commutative tree codes.
15402 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
15405 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
15407 (__crc32w): Likewise.
15408 (__crc32d): Likewise.
15409 (__rdpmc): Likewise.
15410 (__rdtscp): Likewise.
15411 (_rdpmc): Likewise.
15412 (_rdtscp): Likewise.
15413 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
15416 2015-07-03 Richard Biener <rguenther@suse.de>
15418 * fold-const.c (fold_mathfn_compare): Remove.
15419 (fold_inf_compare): Likewise.
15420 (fold_comparison): Move floating point comparison simplifications...
15421 * match.pd: ... to patterns here. Introduce simple_comparisons
15422 operator list and use it for patterns formerly in fold_comparison.
15424 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
15426 PR tree-optimization/66119
15427 * toplev.c (process_options): Don't set up default values for
15428 the sra_max_scalarization_size_{speed,size} parameters.
15429 * tree-sra (analyze_all_variable_accesses): If no values
15430 have been set for the sra_max_scalarization_size_{speed,size}
15431 parameters, call get_move_ratio to get target defaults.
15433 2015-07-03 Richard Biener <rguenther@suse.de>
15435 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
15436 * match.pd: ... here.
15438 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
15441 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
15442 is not actually the default on FreeBSD.
15444 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15446 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
15448 (CMPGE_8HI): Likewise.
15449 (CMPGE_4SI): Likewise.
15450 (CMPGE_2DI): Likewise.
15451 (CMPGE_U16QI): Likewise.
15452 (CMPGE_U8HI): Likewise.
15453 (CMPGE_U4SI): Likewise.
15454 (CMPGE_U2DI): Likewise.
15455 (CMPLE_16QI): Likewise.
15456 (CMPLE_8HI): Likewise.
15457 (CMPLE_4SI): Likewise.
15458 (CMPLE_2DI): Likewise.
15459 (CMPLE_U16QI): Likewise.
15460 (CMPLE_U8HI): Likewise.
15461 (CMPLE_U4SI): Likewise.
15462 (CMPLE_U2DI): Likewise.
15463 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15464 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
15465 ALTIVEC_BUILTIN_VEC_CMPLE.
15466 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
15467 floating-point vector modes.
15468 (vector_nlt<mode>): New define_expand.
15469 (vector_nltu<mode>): Likewise.
15470 (vector_ngt<mode>): Likewise.
15471 (vector_ngtu<mode>): Likewise.
15473 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
15475 PR rtl-optimization/66706
15476 * combine.c (make_compound_operation): If an AND of SUBREG of
15477 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
15479 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
15481 * tree-pass.h (make_pass_ch_vect): New.
15482 * passes.def: Add pass_ch_vect just before pass_if_conversion.
15484 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
15485 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
15486 make_pass_ch_vect): New.
15487 (pass_ch): Extend ch_base.
15489 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
15490 (ch_base::copy_headers): ...here.
15492 2015-07-02 Richard Biener <rguenther@suse.de>
15494 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
15495 * fold-const.c (get_pointer_modulus_and_residue): Remove.
15496 (fold_binary_loc): Implement (T)ptr & CST in terms of
15497 get_pointer_alignment_1.
15498 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
15499 Make sure to build the alignment test on a SSA name without
15500 final alignment info valid only after the prologue.
15502 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
15504 * config/cris/cris.md ("epilogue"): Remove condition.
15505 ("prologue"): Ditto.
15507 2015-07-02 Richard Biener <rguenther@suse.de>
15509 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
15510 parameter to record a condition that is false.
15511 (record_conditions): When recording an extra NE_EXPR that is
15512 true also record a EQ_EXPR that is false.
15514 2015-07-02 Bin Cheng <bin.cheng@arm.com>
15516 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
15517 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
15518 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
15519 (set_iv, find_interesting_uses_address, add_candidate_1): New
15520 argument to alloc_iv.
15521 (find_interesting_uses_op, find_interesting_uses_cond): Don't
15522 duplicate struct iv.
15523 (free_loop_data): Don't free struct iv explicitly.
15524 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
15526 2015-07-01 DJ Delorie <dj@redhat.com>
15528 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
15530 (SUPPORTS_DISCRIMINATOR): Define.
15532 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
15535 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
15536 there are no CALLs in the same pattern.
15538 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
15540 PR rtl-optimization/61047
15541 * rtlanal.c (get_initial_register_offset): New function.
15542 (rtx_addr_can_trap_p_1): Check offsets of stack references.
15544 2015-07-01 Richard Biener <rguenther@suse.de>
15546 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
15547 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
15548 ~X CMP C -> X CMP' ~C to ...
15549 * match.pd: ... patterns here.
15551 2015-07-01 Nick Clifton <nickc@redhat.com>
15553 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
15554 a 16-bit value into a 20-bit memory slot.
15556 2015-07-01 Jiong Wang <jiong.wang@arm.com>
15558 * doc/sourcebuild.texi (AArch64-specific attributes): Document
15559 "aarch64_tiny", "aarch64_small", "aarch64_large",
15560 "aarch64_little_endian", "aarch64_big_endian".
15562 2015-07-01 Jiong Wang <jiong.wang@arm.com>
15564 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
15565 Document "aarch64_small_fpic".
15567 2015-07-01 Jiong Wang <jiong.wang@arm.com>
15569 * configure.ac: Add check for aarch64 assembler -fpic relocation
15571 * configure: Regenerate.
15572 * config.in: Regenerate.
15573 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
15574 to -fPIC if not support of -fpic relocation modifier in assembler.
15576 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
15579 * rtl.c (classify_insn): Handle returns in PARALLELs.
15581 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
15583 PR middle-end/66633
15584 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
15585 to true if the function is nested and if not optimizing.
15586 (convert_local_omp_clauses): Initialize need_frame to true if the
15587 function contains nested functions and if not optimizing.
15589 2015-07-01 Richard Biener <rguenther@suse.de>
15591 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
15592 (X & Y) ^ Y -> ~X & Y transforms to ...
15593 * match.pd: ... here.
15595 2015-07-01 Richard Biener <rguenther@suse.de>
15597 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
15598 of converts to avoid uninteresting noise from the conversion
15599 simplifying patterns.
15601 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
15603 * config/c6x/c6x.c (try_rename_operands): Do not depend on
15604 gcc_assert evaluating its argument for side-effect.
15606 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
15609 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
15612 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
15614 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
15615 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
15616 (hash_scc): Add this_ref_p and ref_p parameters and pass them
15617 to the inner DFS walk.
15619 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15621 * target-insns.def (jump): New targetm instruction pattern.
15622 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
15623 instead of gen_jump.
15624 (fix_up_crossing_landing_pad): Likewise.
15625 (add_labels_and_missing_jumps): Likewise.
15626 (fix_crossing_conditional_branches): Likewise.
15627 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
15628 (force_nonfallthru_and_redirect): Likewise.
15629 * cse.c (cse_insn): Likewise.
15630 * expmed.c (expand_divmod): Likewise.
15631 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
15632 * haifa-sched.c (init_before_recovery): Likewise.
15633 (sched_create_recovery_edges): Likewise.
15634 * ifcvt.c (find_cond_trap): Likewise.
15635 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
15636 (expand_float, expand_fix): Likewise.
15637 * stmt.c (emit_jump): Likewise.
15639 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15641 * defaults.h (HAVE_load_multiple, gen_load_multiple)
15642 (HAVE_store_multiple, gen_store_multiple): Delete.
15643 * target-insns.def (load_multiple, store_multiple): New targetm
15644 instruction patterns.
15645 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
15646 of HAVE_*/gen_* interface.
15648 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15650 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
15651 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
15652 (gen_mem_signal_fence): Delete.
15653 * target-insns.def (mem_signal_fence, mem_thread_fence)
15654 (memory_barrier): New targetm instruction patterns.
15655 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
15657 (expand_mem_signal_fence): Likewise.
15659 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15661 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
15662 * target-insns.def (epilogue, prologue, sibcall_prologue): New
15663 targetm instruction patterns.
15664 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
15666 * calls.c (expand_call): Likewise.
15667 * cfgrtl.c (cfg_layout_finalize): Likewise.
15668 * df-scan.c (df_get_entry_block_def_set): Likewise.
15669 (df_get_exit_block_use_set): Likewise.
15670 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
15671 * final.c (final_start_function): Likewise.
15672 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15673 (reposition_prologue_and_epilogue_notes): Likewise.
15674 * reorg.c (find_end_label): Likewise.
15675 * toplev.c (process_options): Likewise.
15677 2015-06-30 David Malcolm <dmalcolm@redhat.com>
15679 * typed-splay-tree.h: New file.
15681 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
15684 * lra-int.h (lra_substitute_pseudo): Add a parameter.
15685 (lra_substitute_pseudo_within_insn): Ditto.
15686 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
15688 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
15689 to lra_substitute_pseudo.
15690 * lra-lives.c (process_bb_lives): Add an argument to
15691 lra_substitute_pseudo_within_insn call.
15692 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
15693 argument to lra_substitute_pseudo and
15694 lra_substitute_pseudo_within_insn calls.
15695 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
15697 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
15699 * configure: Regenerated.
15701 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
15703 * config.gcc: Support i[34567]86-*-elfiamcu target.
15704 * config/i386/iamcu.h: New.
15705 * config/i386/i386.opt: Add -miamcu.
15706 * doc/invoke.texi: Document -miamcu.
15707 * common/config/i386/i386-common.c (ix86_handle_option): Turn
15708 off x87/MMX/SSE/AVX codegen for -miamcu.
15709 * config/i386/i386-c.c (ix86_target_macros_internal): Define
15710 __iamcu/__iamcu__ for -miamcu.
15711 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
15712 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
15713 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
15714 * config/i386/i386.c (ix86_option_override_internal): Ignore and
15715 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
15716 MCU by default. Default long double to 64-bit for Intel MCU.
15717 Turn on -freg-struct-return for Intel MCU. Issue an error when
15718 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
15720 (function_arg_advance_32): Pass value whose size is no larger
15721 than 8 bytes in registers for Intel MCU.
15722 (function_arg_32): Likewise.
15723 (ix86_return_in_memory): Return value whose size is no larger
15724 than 8 bytes in registers for Intel MCU.
15725 (iamcu_alignment): New function.
15726 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
15728 (ix86_local_alignment): Don't increase alignment for Intel MCU.
15729 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
15732 2015-06-30 Marek Polacek <polacek@redhat.com>
15734 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
15735 both operands of the resulting expression.
15737 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
15738 the final expression with the operand's type and then convert
15739 it to the type of the expression.
15741 2015-06-30 Richard Biener <rguenther@suse.de>
15743 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
15744 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
15745 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
15746 * match.pd: ... to patterns here.
15748 2015-06-30 Richard Biener <rguenther@suse.de>
15750 PR tree-optimization/66704
15751 * tree-vect-data-refs.c (vect_setup_realignment): Use
15752 make_ssa_name for non-SSA name source.
15754 2015-06-30 Jakub Jelinek <jakub@redhat.com>
15756 PR middle-end/66702
15757 * omp-low.c (simd_clone_adjust): Handle addressable linear
15758 or uniform parameters or non-gimple type uniform parameters.
15760 2015-06-30 Richard Biener <rguenther@suse.de>
15762 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
15763 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
15764 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
15765 * match.pd: ... here.
15766 Add a few cases of A - B -> A + (-B) when B "easily" negates.
15767 Move (x & y) | x -> x and friends before
15768 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
15770 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
15772 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
15773 -mfix-ut699 is not specified.
15774 (leon3_load): Rename into...
15775 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
15778 2015-06-30 Marek Polacek <polacek@redhat.com>
15780 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
15781 * match.pd: ... here.
15783 2015-06-30 Richard Biener <rguenther@suse.de>
15785 * target-insns.def (canonicalize_funcptr_for_compare): Add.
15786 * fold-const.c (build_range_check): Replace uses of
15787 HAVE_canonicalize_funcptr_for_compare.
15788 (fold_widened_comparison): Likewise.
15789 (fold_sign_changed_comparison): Likewise.
15790 * dojump.c: Include "target.h".
15791 (do_compare_and_jump): Replace uses of
15792 HAVE_canonicalize_funcptr_for_compare and
15793 gen_canonicalize_funcptr_for_compare.
15794 * expr.c (do_store_flag): Likewise.
15796 2015-06-30 Tom de Vries <tom@codesourcery.com>
15798 PR tree-optimization/66652
15799 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
15800 max_loop_iterations to determine if nit + 1 overflows.
15802 2015-06-30 Richard Biener <rguenther@suse.de>
15804 * tree-vrp.c (register_edge_assert_for_2): Also register
15805 asserts for dominating conversion results.
15807 2015-06-30 Bin Cheng <bin.cheng@arm.com>
15809 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
15810 field in struct iv.
15812 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
15815 * configure.ac: Fix filds and fildq test for 64-bit.
15816 * configure: Regenerated.
15818 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
15820 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
15821 (nvptx_reorg): Here. Keep the non-subreg pieces.
15823 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
15825 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
15826 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
15828 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
15830 * config/i386/i386.md (*jcc_1): Use %! in asm template.
15831 Set attribute "length_nobnd" instead of "length".
15834 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
15836 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
15838 * config/nios2/nios2.c (nios2_delegitimize_address): Make
15839 assert less restrictive.
15841 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
15844 * cgraphunit.c (cgraph_node::finalize_function): Do not call
15845 do_warn_unused_parameter.
15846 * function.c (do_warn_unused_parameter): Move from here.
15847 * function.h (do_warn_unused_parameter): Do not declare.
15849 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15852 * gcc.target/arm/armv-sync-comp-swap.c: New.
15853 * gcc.target/arm/armv-sync-op-acquire.c: New.
15854 * gcc.target/arm/armv-sync-op-full.c: New.
15855 * gcc.target/arm/armv-sync-op-release.c: New.
15857 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15860 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
15861 initial acquire barrier with final barrier.
15863 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15866 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
15867 initial acquire barrier with final barrier.
15869 2015-06-29 Richard Henderson <rth@redhat.com>
15871 * config/i386/constraints.md (Bf): New constraint.
15872 * config/i386/i386-c.c (ix86_target_macros): Define
15873 __GCC_ASM_FLAG_OUTPUTS__.
15874 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
15876 * doc/extend.texi (FlagOutputOperands): Document them.
15878 2015-06-29 Jiong Wang <jiong.wang@arm.com>
15880 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
15881 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
15883 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
15884 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
15885 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
15886 (aarch64_symbol_context): Ditto.
15887 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
15888 and use new pattern name.
15889 (aarch64_expand_mov_immediate): Ditto.
15890 (aarch64_print_operand): Ditto.
15891 (aarch64_classify_tls_symbol): Ditto.
15893 2015-06-29 Marek Polacek <polacek@redhat.com>
15894 Marc Glisse <marc.glisse@inria.fr>
15896 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
15897 * match.pd: ... pattern here.
15899 2015-06-29 Tom de Vries <tom@codesourcery.com>
15901 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
15902 function structure.
15904 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15906 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
15907 feature description, split out the native option, add a link to
15908 the feature documentation, rearrange and slightly rewrite text.
15909 (Aarch64 options, -mcpu): Likewise.
15910 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
15911 +rdma implies Adv. SIMD.
15913 2015-06-29 Marek Polacek <polacek@redhat.com>
15916 * function.c (stack_protect_epilogue): Remove a cast to int.
15917 * doc/invoke.texi: Update -Wswitch-bool description.
15919 2015-06-29 Richard Biener <rguenther@suse.de>
15921 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
15922 * fold-const.c (fold_binary_loc): Move &A - &B simplification
15923 via ptr_difference_const ...
15924 * match.pd: ... here.
15925 When matching (X ^ Y) == Y also match with swapped operands.
15927 2015-06-29 Richard Biener <rguenther@suse.de>
15929 * lto-streamer.h (LTO_major_version): Bump to 5.
15931 2015-06-29 Richard Biener <rguenther@suse.de>
15933 PR tree-optimization/66677
15934 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
15935 STMT_VINFO_VEC_STMT clobbering less strict.
15937 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
15939 PR middle-end/64130
15940 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
15941 division, compute max and min when value ranges for dividend and
15942 divisor are available.
15944 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
15945 Sandra Loosemore <sandra@codesourcery.com>
15947 * regrename.h (regrename_do_replace): Change to return bool.
15948 * regrename.c (rename_chains): Check return value of
15949 regname_do_replace.
15950 (regrename_do_replace): Re-validate the modified insns and
15951 return bool status.
15952 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
15953 Update to match rename_chains changes.
15954 * config/c6x/c6x.c (try_rename_operands): Assert that
15955 regrename_do_replace returns true.
15957 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
15959 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
15960 operand 2 here. Use copy_addr_to_reg to copy non-index
15961 register operand 2 to a temporary.
15962 (<mode>_stx): Ditto for operand 1.
15963 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
15964 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
15965 (ix86_store_bounds): Ditto.
15967 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
15969 * print-tree.c (print_node) [TREE_VEC]: Print its length.
15971 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
15973 * gimple.c (gimple_call_set_fndecl): Remove.
15974 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
15975 build1_loc directly instead of build_fold_addr_expr_loc.
15977 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
15979 * hash-map.h (hash_map::traverse): Use the definition of the
15980 Key typedef rather than the typedef itself.
15982 2015-06-26 Martin Jambor <mjambor@suse.cz>
15985 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
15986 NULL instead of calling dump_enabled_p.
15988 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
15990 * config/aarch64/aarch64.opt: (override): New.
15991 * doc/invoke.texi (override): Document.
15992 * config/aarch64/aarch64.c (aarch64_flag_desc): New
15993 (aarch64_fusible_pairs): Likewise.
15994 (aarch64_tuning_flags): Likewise.
15995 (aarch64_tuning_override_function): Likewise.
15996 (aarch64_tuning_override_functions): Likewise.
15997 (aarch64_parse_one_option_token): Likewise.
15998 (aarch64_parse_boolean_options): Likewise.
15999 (aarch64_parse_fuse_string): Likewise.
16000 (aarch64_parse_tune_string): Likewise.
16001 (aarch64_parse_one_override_token): Likewise.
16002 (aarch64_parse_override_string): Likewise.
16003 (aarch64_override_options): Parse the -override string if it
16006 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
16008 * config/aarch64/aarch64-protos.h (tune_params): Remove
16009 const from members.
16010 (aarch64_tune_params): Remove const, change to no longer be
16012 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
16013 change to no longer be a pointer, initialize to generic_tunings.
16014 (aarch64_min_divisions_for_recip_mul): Change dereference of
16015 aarch64_tune_params to member access.
16016 (aarch64_reassociation_width): Likewise.
16017 (aarch64_rtx_mult_cost): Likewise.
16018 (aarch64_address_cost): Likewise.
16019 (aarch64_branch_cost): Likewise.
16020 (aarch64_rtx_costs): Likewise.
16021 (aarch64_register_move_cost): Likewise.
16022 (aarch64_memory_move_cost): Likewise.
16023 (aarch64_sched_issue_rate): Likewise.
16024 (aarch64_builtin_vectorization_cost): Likewise.
16025 (aarch64_override_options): Take a copy of the selected tuning
16026 struct in to aarch64_tune_params, rather than just setting
16027 a pointer, change dereferences of aarch64_tune_params to member
16029 (aarch64_override_options_after_change): Change dereferences of
16030 aarch64_tune_params to member access.
16031 (aarch64_macro_fusion_p): Likewise.
16032 (aarch_macro_fusion_pair_p): Likewise.
16033 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
16035 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
16037 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
16038 (aarch64_tune_flags): Likewise.
16039 (AARCH64_TUNE_FMA_STEERING): Likewise.
16040 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
16041 to AARCH64_FL_USE_FMA_STEERING_PASS.
16042 (cortex-a57.cortex-a53): Likewise.
16043 (cortex-a72): Use cortexa72_tunings.
16044 (cortex-a72.cortex-a53): Likewise.
16045 (exynos-m1): Likewise.
16046 * config/aarch64/aarch64-protos.h (tune_params): Add
16047 a field: extra_tuning_flags.
16048 * config/aarch64/aarch64-tuning-flags.def: New.
16049 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
16050 (aarch64_extra_tuning_flags): Likewise.
16051 (aarch64_tune_params): Declare here.
16052 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
16053 (cortexa53_tunings): Likewise.
16054 (cortexa57_tunings): Likewise.
16055 (thunderx_tunings): Likewise.
16056 (xgene1_tunings): Likewise.
16057 (cortexa72_tunings): New.
16058 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
16059 (gate): Check against aarch64_tune_params.
16060 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
16063 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
16065 * config/aarch64/aarch64-fusion-pairs.def: New.
16066 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
16067 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
16068 aarch64_fusion_pairs.
16069 (AARCH64_FUSE_MOV_MOVK): Likewise.
16070 (AARCH64_FUSE_ADRP_ADD): Likewise.
16071 (AARCH64_FUSE_MOVK_MOVK): Likewise.
16072 (AARCH64_FUSE_ADRP_LDR): Likewise.
16073 (AARCH64_FUSE_CMP_BRANCH): Likewise.
16075 2015-06-26 Jiong Wang <jiong.wang@arm.com>
16077 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
16078 SYMBOL_SMALL_GOT_28K.
16079 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
16080 relocation modifiers.
16081 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
16082 (ldr_got_small_28k_<mode>): New.
16083 (ldr_got_small_28k_sidi): New.
16084 * config/aarch64/iterators.md (got_modifier): New mode iterator.
16085 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
16086 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
16087 SYMBOL_SMALL_GOT_28K.
16088 (aarch64_rtx_costs): Add costs for new instruction sequences.
16089 (initialize_aarch64_code_model): Initialize new model.
16090 (aarch64_classify_symbol): Recognize new model and new symbol classification.
16091 (aarch64_asm_preferred_eh_data_format): Support new model.
16092 (aarch64_load_symref_appropriately): Generate new instruction
16093 sequences for -fpic.
16094 (TARGET_USE_PSEUDO_PIC_REG): New definition.
16095 (aarch64_use_pseudo_pic_reg): New function.
16097 2015-06-26 Jiong Wang <jiong.wang@arm.com>
16099 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
16100 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
16101 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
16102 (aarch64_expand_mov_immediate): Ditto.
16103 (aarch64_print_operand): Ditto.
16104 (aarch64_classify_symbol): Ditto.
16106 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
16108 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
16110 2015-06-26 Bin Cheng <bin.cheng@arm.com>
16113 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
16114 assertion failed. Remove assertion itself.
16116 2015-06-26 Richard Biener <rguenther@suse.de>
16118 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
16119 and -A CMP CST -> A CMP -CST which is redundant with a pattern
16121 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
16122 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
16123 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
16124 * match.pd: ... patterns here.
16126 2015-06-26 Marek Polacek <polacek@redhat.com>
16128 * match.pd ((x | y) & ~(x & y) -> x ^ y,
16129 (x | y) & (~x ^ y) -> x & y): New patterns.
16131 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
16133 * rtl.h (emit): Add an optional boolean parameter to control
16134 whether barriers are emitted.
16135 * emit-rtl.c (emit): Likewise.
16136 * gensupport.c (get_emit_function): Return null rather than "emit".
16137 * genemit.c (gen_emit_seq): Handle the null return value.
16138 Don't emit barriers after the final instruction in the sequence.
16139 * gentarget-def.c (main): Don't emit barriers after the instruction.
16141 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16143 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
16144 TARGET_UNIFIED_ASM.
16146 2015-06-26 Richard Biener <rguenther@suse.de>
16148 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
16150 2015-06-26 Richard Biener <rguenther@suse.de>
16152 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
16153 irrespective on whether the inner operation has a single use
16154 of both off are constant.
16156 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
16157 Segher Boessenkool <segher@kernel.crashing.org>
16160 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
16161 before doing PUT_MODE or PUT_CODE on operands to avoid
16162 in-place RTX modification.
16164 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
16166 * gentarget-def.c (def_target_insn): Cast return of strtol to
16169 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16171 * gimple.h (gimple_call_set_fn): Move inline function.
16172 * gimple.c (gimple_call_set_fn): Relocate here.
16174 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
16178 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
16179 the replacement insn will work.
16181 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
16183 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
16186 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16188 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
16189 * cgraph.h: Include ipa-ref.h and plugin-api.h.
16190 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
16191 (symtab_node::address_can_be_compared_p): Move function.
16192 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
16194 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
16195 * auto-profile.c: Likewise.
16196 * bb-reorder.c: Likewise.
16197 * builtins.c: Likewise.
16198 * calls.c: Likewise.
16199 * cfgexpand.c: Likewise.
16200 * cgraphbuild.c: Likewise.
16201 * cgraphclones.c: Likewise.
16202 * cgraphunit.c: Likewise.
16203 * combine.c: Likewise.
16204 * coverage.c: Likewise.
16205 * data-streamer-in.c: Likewise.
16206 * data-streamer-out.c: Likewise.
16207 * data-streamer.c: Likewise.
16208 * dbxout.c: Likewise.
16209 * dwarf2out.c: Likewise.
16210 * except.c: Likewise.
16211 * expr.c: Likewise.
16212 * final.c: Likewise.
16213 * fold-const.c: Likewise.
16214 * ggc-page.c: Likewise.
16215 * gimple-fold.c: Likewise.
16216 * gimple-iterator.c: Likewise.
16217 * gimple-pretty-print.c: Likewise.
16218 * gimple-streamer-in.c: Likewise.
16219 * gimple-streamer-out.c: Likewise.
16220 * gimple.c: Likewise.
16221 * gimplify.c: Likewise.
16222 * ipa-chkp.c: Likewise.
16223 * ipa-comdats.c: Likewise.
16224 * ipa-cp.c: Likewise.
16225 * ipa-devirt.c: Likewise.
16226 * ipa-icf-gimple.c: Likewise.
16227 * ipa-icf.c: Likewise.
16228 * ipa-inline-analysis.c: Likewise.
16229 * ipa-inline-transform.c: Likewise.
16230 * ipa-inline.c: Likewise.
16231 * ipa-polymorphic-call.c: Likewise.
16232 * ipa-profile.c: Likewise.
16233 * ipa-prop.c: Likewise.
16234 * ipa-pure-const.c: Likewise.
16235 * ipa-ref.c: Likewise.
16236 * ipa-reference.c: Likewise.
16237 * ipa-split.c: Likewise.
16238 * ipa-utils.c: Likewise.
16239 * ipa-visibility.c: Likewise.
16241 * langhooks.c: Likewise.
16242 * lto-cgraph.c: Likewise.
16243 * lto-compress.c: Likewise.
16244 * lto-opts.c: Likewise.
16245 * lto-section-in.c: Likewise.
16246 * lto-section-out.c: Likewise.
16247 * lto-streamer-in.c: Likewise.
16248 * lto-streamer-out.c: Likewise.
16249 * lto-streamer.c: Likewise.
16250 * omp-low.c: Likewise.
16251 * opts-global.c: Likewise.
16252 * passes.c: Likewise.
16253 * predict.c: Likewise.
16254 * print-tree.c: Likewise.
16255 * profile.c: Likewise.
16257 * sanopt.c: Likewise.
16258 * stor-layout.c: Likewise.
16259 * symtab.c: Likewise.
16260 * toplev.c: Likewise.
16261 * trans-mem.c: Likewise.
16262 * tree-cfg.c: Likewise.
16263 * tree-chkp.c: Likewise.
16264 * tree-eh.c: Likewise.
16265 * tree-emutls.c: Likewise.
16266 * tree-inline.c: Likewise.
16267 * tree-nested.c: Likewise.
16268 * tree-parloops.c: Likewise.
16269 * tree-pretty-print.c: Likewise.
16270 * tree-profile.c: Likewise.
16271 * tree-sra.c: Likewise.
16272 * tree-ssa-alias.c: Likewise.
16273 * tree-ssa-live.c: Likewise.
16274 * tree-ssa-loop-ivcanon.c: Likewise.
16275 * tree-ssa-loop-ivopts.c: Likewise.
16276 * tree-ssa-pre.c: Likewise.
16277 * tree-ssa-sccvn.c: Likewise.
16278 * tree-ssa-strlen.c: Likewise.
16279 * tree-ssa-structalias.c: Likewise.
16280 * tree-streamer-in.c: Likewise.
16281 * tree-streamer-out.c: Likewise.
16282 * tree-streamer.c: Likewise.
16283 * tree-switch-conversion.c: Likewise.
16284 * tree-tailcall.c: Likewise.
16285 * tree-vect-data-refs.c: Likewise.
16286 * tree-vect-stmts.c: Likewise.
16287 * tree-vectorizer.c: Likewise.
16288 * tree.c: Likewise.
16289 * tsan.c: Likewise.
16290 * ubsan.c: Likewise.
16291 * value-prof.c: Likewise.
16292 * varasm.c: Likewise.
16293 * varpool.c: Likewise.
16294 * config/arm/arm.c: Likewise.
16295 * config/bfin/bfin.c: Likewise.
16296 * config/c6x/c6x.c: Likewise.
16297 * config/cris/cris.c: Likewise.
16298 * config/darwin-c.c: Likewise.
16299 * config/darwin.c: Likewise.
16300 * config/i386/i386.c: Likewise.
16301 * config/i386/winnt.c: Likewise.
16302 * config/microblaze/microblaze.c: Likewise.
16303 * config/mips/mips.c: Likewise.
16304 * config/rs6000/rs6000.c: Likewise.
16305 * config/rx/rx.c: Likewise.
16306 * config/s390/s390.c: Likewise.
16307 * config/tilegx/mul-tables.c: Likewise.
16309 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16311 * config/aarch64/aarch64.c, config/alpha/alpha.c,
16312 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
16313 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
16314 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
16315 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
16316 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
16317 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
16318 config/microblaze/microblaze.c, config/mips/mips.c,
16319 config/mmix/mmix.c, config/mn10300/mn10300.c,
16320 config/moxie/moxie.c, config/msp430/msp430.c,
16321 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
16322 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
16323 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
16324 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
16325 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16326 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
16327 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
16328 target-def.h include.
16329 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
16331 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16333 * Makefile.in (TARGET_DEF): Add target-insns.def.
16334 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
16335 (build/gentarget-def.o): New rule.
16336 (genprogrtl): Add target-def.
16337 * target-insns.def, gentarget-def.c: New files.
16338 * target.def: Add targetm.have_* and targetm.gen_* hooks,
16339 based on the contents of target-insns.def.
16340 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
16341 (HAVE_return, gen_return): Delete.
16342 * target-def.h: Include insn-target-def.h.
16343 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
16344 instead of direct calls. Rely on them to do the appropriate assertions.
16345 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
16346 (convert_jumps_to_returns): Use targetm interface instead of
16348 (thread_prologue_and_epilogue_insns): Likewise.
16349 * reorg.c (find_end_label, dbr_schedule): Likewise.
16350 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
16351 * shrink-wrap.c (convert_to_simple_return): Likewise.
16352 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
16354 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16356 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
16357 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
16358 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
16359 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
16360 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
16361 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
16362 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
16363 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
16364 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
16365 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
16366 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
16367 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
16368 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
16369 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16370 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
16371 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
16374 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16376 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
16377 (unbounded_int_hashmap_traits::key_type): Likewise.
16378 * hash-map.h (hash_map): Get the key type from the traits.
16379 * hash-traits.h (default_hash_traits): By default, inherit from the
16380 template parameter.
16381 * alias.c (alias_set_traits): Delete.
16382 (alias_set_entry_d::children): Use alias_set_hash as the first
16383 template parameter.
16384 (record_alias_subset): Update accordingly.
16385 * except.c (tree_hash_traits): Delete.
16386 (type_to_runtime_map): Use tree_hash as the first template parameter.
16387 (init_eh): Update accordingly.
16388 * genmatch.c (capture_id_map_hasher): Delete.
16389 (cid_map_t): Use nofree_string_hash as first template parameter.
16390 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
16391 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
16392 Use symbol_compare_hash as the first template parameter in
16393 subdivide_hash_map.
16394 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
16395 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
16396 template parameter.
16397 * passes.c (pass_registry_hasher): Delete.
16398 (name_to_pass_map): Use nofree_string_hash as the first template
16400 (register_pass_name): Update accordingly.
16401 * sanopt.c (sanopt_tree_map_traits): Delete.
16402 (sanopt_tree_triplet_map_traits): Delete.
16403 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
16404 template parameter.
16405 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
16406 the first template parameter.
16407 * sese.c (rename_map_hasher): Delete.
16408 (rename_map_type): Use tree_ssa_name_hash as the first template
16410 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
16411 (function_summary::m_map): Use map_hash as the first template
16413 (function_summary::release): Update accordingly.
16414 * tree-if-conv.c (phi_args_hash_traits): Delete.
16415 (predicate_scalar_phi): Use tree_operand_hash as the first template
16416 parameter to phi_arg_map.
16417 * tree-inline.h (dependence_hasher): Delete.
16418 (copy_body_data::dependence_map): Use dependence_hash as the first
16419 template parameter.
16420 * tree-inline.c (remap_dependence_clique): Update accordingly.
16421 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
16422 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
16424 (addr_stridxptr): Update accordingly.
16425 * value-prof.c (profile_id_traits): Delete.
16426 (cgraph_node_map): Use profile_id_hash as the first template
16428 (init_node_map): Update accordingly.
16429 * config/alpha/alpha.c (string_traits): Delete.
16430 (machine_function::links): Use nofree_string_hash as the first
16431 template parameter.
16432 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
16433 * config/m32c/m32c.c (pragma_traits): Delete.
16434 (pragma_htab): Use nofree_string_hash as the first template parameter.
16435 (m32c_note_pragma_address): Update accordingly.
16436 * config/mep/mep.c (pragma_traits): Delete.
16437 (pragma_htab): Use nofree_string_hash as the first template parameter.
16438 (mep_note_pragma_flag): Update accordingly.
16439 * config/mips/mips.c (mips16_flip_traits): Delete.
16440 (mflip_mips16_htab): Use nofree_string_hash as the first template
16442 (mflip_mips16_use_mips16_p): Update accordingly.
16443 (local_alias_traits): Delete.
16444 (mips16_local_aliases): Use nofree_string_hash as the first template
16446 (mips16_local_alias): Update accordingly.
16448 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16450 * hash-map-traits.h (default_hashmap_traits): Delete.
16452 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16454 * hash-map-traits.h (unbounded_hashmap_traits): New class.
16455 (unbounded_int_hashmap_traits): Likewise.
16456 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
16458 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16460 * ipa-icf.h (symbol_compare_hash): New class.
16461 (symbol_compare_hashmap_traits): Use it.
16462 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
16463 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
16464 (mem_alloc_description::reverse_mem_map_t): Remove redundant
16465 default_hashmap_traits.
16466 * sanopt.c (sanopt_tree_triplet_hash): New class.
16467 (sanopt_tree_triplet_map_traits): Use it.
16469 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16471 * gengtype-parse.c (require_template_declaration): Allow '+' in
16472 template parameters. Consolidate cases.
16473 * hash-traits.h (int_hash): New class.
16474 * alias.c (alias_set_hash): New structure.
16475 (alias_set_traits): Use it.
16476 * symbol-summary.h (function_summary::map_hash): New class.
16477 (function_summary::summary_hashmap_traits): Use it.
16478 * tree-inline.h (dependence_hash): New class.
16479 (dependence_hasher): Use it.
16480 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
16481 * value-prof.c (profile_id_hash): New class.
16482 (profile_id_traits): Use it.
16484 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16486 * config/mips/mips.c (mips16_flip_traits): Use it.
16487 (local_alias_traits, mips16_local_aliases): Convert from a map of
16488 rtxes to a map of symbol names.
16489 (mips16_local_alias): Update accordingly.
16491 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16493 * hash-traits.h (string_hash, nofree_string_hash): New classes.
16494 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
16495 * passes.c (pass_registry_hasher): Likewise.
16496 * config/alpha/alpha.c (string_traits): Likewise.
16497 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
16498 * config/m32c/m32c.c (pragma_traits): Likewise.
16499 * config/mep/mep.c (pragma_traits): Likewise.
16501 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16503 * tree-hash-traits.h (tree_hash): New class.
16504 * except.c: Include tree-hash-traits.h.
16505 (tree_hash_traits): Use tree_hash.
16507 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16509 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
16510 * sese.c: Include tree-hash-traits.h.
16511 (rename_map_hasher): Use tree_ssa_name_hasher.
16513 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16515 * tree-hash-traits.h (tree_decl_hash): New class.
16516 * tree-ssa-strlen.c: Include tree-hash-traits.h.
16517 (stridxlist_hash_traits): Use tree_decl_hash.
16519 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16521 * tree-hash-traits.h: New file.
16522 (tree_operand_hash): New class.
16523 * sanopt.c: Include tree-hash-traits.h.
16524 (sanopt_tree_map_traits): Use tree_operand_hash.
16525 * tree-if-conv.c: Include tree-hash-traits.h.
16526 (phi_args_hash_traits): Use tree_operand_hash.
16527 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
16528 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
16530 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16532 * hash-map-traits.h: Include hash-traits.h.
16533 (simple_hashmap_traits): New class.
16534 * mem-stats.h (hash_map): Change the default traits to
16535 simple_hashmap_traits<default_hash_traits<Key> >.
16537 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16539 * hash-table.h: Update comments.
16541 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16543 * hash-traits.h (default_hash_traits): New structure.
16544 * hash-set.h (default_hashset_traits): Delete.
16545 (hash_set): Use default_hash_traits<Key> instead of
16546 default_hashset_traits. Delete hash_entry type and use Key directly.
16547 * ipa-devirt.c (pair_traits): Delete.
16548 (default_hash_traits <type_pair>): Override.
16549 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
16550 (odr_types_equivalent_p, add_type_duplicate): Likewise.
16552 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16554 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
16556 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16558 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
16559 (has_is_empty, is_empty_helper): Delete.
16560 (has_mark_deleted, mark_deleted_helper): Delete.
16561 (has_mark_empty, mark_empty_helper): Delete.
16562 (hash_table::is_deleted): Call the Descriptor unconditionally.
16563 (hash_table::is_empty): Likewise.
16564 (hash_table::mark_deleted): Likewise.
16565 (hash_table::mark_empty): Likewise.
16567 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16569 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
16570 redundant typedefs and members.
16571 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
16572 redundant typedefs.
16573 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
16574 * ipa-devirt.c (odr_name_hasher): Likewise.
16575 (polymorphic_call_target_hasher): Likewise.
16576 * ira-costs.c (cost_classes_hasher): Likewise.
16577 * statistics.c (stats_counter_hasher): Likewise.
16578 * trans-mem.c (log_entry_hasher): Likewise.
16579 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
16580 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
16581 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
16582 * var-tracking.c (variable_hasher): Likewise.
16583 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
16584 Remove redundant typedefs and members.
16586 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16588 * hash-traits.h (ggc_cache_hasher): Rename to...
16589 (ggc_cache_remove): ...this and remove typedefs.
16590 (ggc_cache_ptr_hash): New class.
16591 * hash-table.h: Update commentary.
16592 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
16593 rather than ggc_cache_hasher.
16594 (const_wide_int_hasher, reg_attr_hasher): Likewise.
16595 (const_double_hasher, const_fixed_hasher): Likewise.
16596 * function.c (insn_cache_hasher): Likewise.
16597 * trans-mem.c (tm_wrapper_hasher): Likewise.
16598 * tree.h (tree_decl_map_cache_hasher): Likewise.
16599 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
16600 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
16601 * ubsan.c (tree_type_map_cache_hasher): Likewise.
16602 * varasm.c (tm_clone_hasher): Likewise.
16603 * config/i386/i386.c (dllimport_hasher): Likewise.
16604 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
16605 (tree_hasher): Likewise.
16607 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16609 * hash-traits.h (ggc_hasher): Rename to...
16610 (ggc_remover): ...this and remove typedefs.
16611 (ggc_cache_hasher): Update accordingly. Add typedefs.
16612 (ggc_ptr_hash): New class.
16613 * hash-table.h: Update comment.
16614 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
16616 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
16617 (tree_descriptor_hasher): Likewise.
16618 * cgraph.c (function_version_hasher): Likewise.
16619 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
16620 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
16621 (dw_loc_list_hasher, addr_hasher): Likewise.
16622 * function.h (used_type_hasher): Likewise.
16623 * function.c (temp_address_hasher): Likewise.
16624 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
16625 * libfuncs.h (libfunc_hasher): Likewise.
16626 * lto-streamer.h (decl_state_hasher): Likewise.
16627 * optabs.c (libfunc_decl_hasher): Likewise.
16628 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
16629 * varasm.c (section_hasher, object_block_hasher): Likewise.
16630 (const_rtx_desc_hasher): Likewise.
16631 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
16632 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
16634 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16636 * hash-traits.h (free_ptr_hash): New class.
16637 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
16638 rather than typed_free_remove. Remove redudant typedefs.
16639 (external_ref_hasher): Likewise.
16640 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
16641 (ehspec_hasher): Likewise.
16642 * ggc-common.c (saving_hasher): Likewise.
16643 * gimplify.c (gimplify_hasher): Likewise.
16644 * haifa-sched.c (delay_i2_hasher): Likewise.
16645 * loop-invariant.c (invariant_expr_hasher): Likewise.
16646 * loop-iv.c (biv_entry_hasher): Likewise.
16647 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
16648 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
16649 * tree-cfg.c (locus_discrim_hasher): Likewise.
16650 * tree-eh.c (finally_tree_hasher): Likewise.
16651 * tree-into-ssa.c (var_info_hasher): Likewise.
16652 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
16653 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
16654 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
16655 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
16656 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
16657 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
16658 (shared_bitmap_hasher): Likewise.
16659 * tree-ssa-threadupdate.c (redirection_data): Likewise.
16660 * tree-vectorizer.h (peel_info_hasher): Likewise.
16661 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
16662 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
16664 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16666 * hash-table.h: Update comments.
16667 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
16668 (nofree_ptr_hash): New class.
16669 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
16670 than typed_noop_remove. Remove redudant typedefs.
16671 * attribs.c (attribute_hasher): Likewise.
16672 * cfg.c (bb_copy_hasher): Likewise.
16673 * cselib.c (cselib_hasher): Likewise.
16674 * dse.c (invariant_group_base_hasher): Likewise.
16675 * dwarf2cfi.c (trace_info_hasher): Likewise.
16676 * dwarf2out.c (macinfo_entry_hasher): Likewise.
16677 (comdat_type_hasher, loc_list_hasher): Likewise.
16678 * gcse.c (pre_ldst_expr_hasher): Likewise.
16679 * genmatch.c (id_base): Likewise.
16680 * genrecog.c (test_pattern_hasher): Likewise.
16681 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
16682 * haifa-sched.c (delay_i1_hasher): Likewise.
16683 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
16684 * ipa-icf.h (congruence_class_group_hash): Likewise.
16685 * ipa-profile.c (histogram_hash): Likewise.
16686 * ira-color.c (allocno_hard_regs_hasher): Likewise.
16687 * lto-streamer.h (string_slot_hasher): Likewise.
16688 * lto-streamer.c (tree_entry_hasher): Likewise.
16689 * plugin.c (event_hasher): Likewise.
16690 * postreload-gcse.c (expr_hasher): Likewise.
16691 * store-motion.c (st_expr_hasher): Likewise.
16692 * tree-sra.c (uid_decl_hasher): Likewise.
16693 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
16694 (ssa_name_var_hash): Likewise.
16695 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
16696 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
16697 * tree-ssa-pre.c (pre_expr_d): Likewise.
16698 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
16699 * vtable-verify.h (registration_hasher): Likewise.
16700 * vtable-verify.c (vtbl_map_hasher): Likewise.
16701 * config/arm/arm.c (libcall_hasher): Likewise.
16702 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
16703 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
16704 * config/sol2.c (comdat_entry_hasher): Likewise.
16705 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
16706 (print_fold_checksum, fold_checksum_tree): Likewise.
16707 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
16708 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
16709 (fold_build_call_array_loc): Likewise.
16710 * tree-ssa-ccp.c (gimple_htab): Likewise.
16711 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
16712 rather than pointer_type.
16714 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16716 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
16717 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
16719 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16721 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
16722 (ggc_hasher::ggc_mx): Likewise.
16723 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
16724 that duplicate ggc_hasher ones.
16726 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16728 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
16729 (gt_cleare_cache): Check here for deleted and empty entries.
16730 Replace handle_cache_entry with a call to keep_cache_entry.
16731 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
16732 (ggc_cache_hasher::keep_cache_entry): New function.
16733 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
16734 (tm_wrapper_hasher::keep_cache_entry): New function.
16735 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
16736 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
16737 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
16738 (type_cache_hasher::keep_cache_entry): New function.
16739 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
16740 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
16741 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
16742 (tree_type_map_cache_hasher::keep_cache_entry): New function.
16743 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
16744 (tm_clone_hasher::keep_cache_entry): New function.
16745 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
16746 (dllimport_hasher::keep_cache_entry): New function.
16748 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16750 * hash-table.h: Include hash-traits.h.
16751 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
16752 (ggc_cache_hasher): Move to...
16753 * hash-traits.h: ...this new file.
16755 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16757 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
16758 struct cl_optimization.
16759 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
16760 * tree.c (make_node_stat): Allocate cl_optimization struct.
16761 (copy_node_stat): Allocate and copy cl_optimization struct.
16763 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16765 * function.h (struct incoming_args): Move struct.
16766 (pass_by_reference, reference_callee_copied): Remove prototypes.
16767 * emit-rtl.h (struct incoming_args): Relocate struct here.
16768 * calls.h (pass_by_reference, reference_callee_copied): Relocate
16770 * function.c (pass_by_reference, reference_callee_copied): Move.
16771 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
16772 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
16773 * ipa-chkp.c: Include calls.h.
16775 2015-06-25 Andrew Macleod <amacleod@redhat.com>
16777 * alias.h (alias_set_type): Move typedef.
16778 * coretypes.h (alias_set_type): Relocate typedef here.
16779 * rtl.h: Don't include alias.h.
16781 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16783 * cgraph.h (cgraph_rtl_info): Move to rtl.h
16784 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
16786 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
16787 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
16789 * calls.c: Include hard-reg-set.h before rtl.h.
16792 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16793 Vladimir Makarov <vmakarov@redhat.com>
16795 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
16798 2015-06-25 Richard Biener <rguenther@suse.de>
16800 * fold-const.c (fold_binary_loc): Move simplification of
16801 (X <<>> C1) & C2 ...
16802 * match.pd: ... here.
16804 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
16806 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
16808 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16810 * match.pd: Add patterns for vec_conds between 1 and 0.
16812 2015-06-25 Richard Biener <rguenther@suse.de>
16814 * tree-vect-stmts.c (vectorizable_conversion): Do not set
16815 STMT_VINFO_VEC_STMT for SLP.
16816 (vectorizable_store): Likewise.
16817 (vectorizable_load): Likewise.
16818 (vect_transform_stmt): Catch SLP vectorization clobbering
16819 STMT_VINFO_VEC_STMT.
16821 2015-06-25 Richard Biener <rguenther@suse.de>
16823 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
16825 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
16826 cleanup resulting dead code and parameters.
16827 (vect_transform_slp_perm_load): Adjust.
16829 2015-06-25 Nick Clifton <nickc@redhat.com>
16831 * config/bfin/bfin.c (bfin_expand_prologue): Set
16832 current_function_static_stack_size if flag_stack_usage_info is set.
16833 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
16834 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
16835 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
16836 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
16838 2015-06-25 Tom de Vries <tom@codesourcery.com>
16840 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
16841 comment that the generated IV is unsigned.
16843 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16846 * config/arm/arm.c (arm_dbx_register_number): Return
16847 DWARF_FRAME_REGISTERS by default.
16849 2015-06-25 Tom de Vries <tom@codesourcery.com>
16851 * dominance.c (calculate_dominance_info): Fix verify_dominators call
16852 argument. Call verify_dominator when reusing dominator info.
16854 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
16857 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
16858 an additional element of the unspec vector. Modify indices
16860 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
16861 * config/sh/sh.c (prepare_move_operands): Pass incremented
16862 const_int to gen_GOTaddr2picreg.
16863 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
16865 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
16867 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
16868 Condition on TARGET_FLOAT.
16870 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
16872 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
16875 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
16877 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
16879 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
16880 aarch64_err_no_fpadvsimd.
16882 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
16883 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
16884 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
16885 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
16886 Turn error into assert, test TARGET_FLOAT.
16887 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
16890 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
16893 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
16895 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
16897 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
16899 2015-06-24 Renlin Li <renlin.li@arm.com>
16901 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
16902 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
16904 2015-06-24 Richard Biener <rguenther@suse.de>
16906 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
16908 (lower_opt_convert): Support lowering of conditional view_convert.
16909 (parser::parse_operation): Likewise.
16910 (parser::parse_for): Likewise.
16912 2015-06-24 Renlin Li <renlin.li@arm.com>
16914 * varasm.c (emit_local): Use unsigned int for align variable.
16916 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16919 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
16920 for negative numbers.
16922 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16924 PR rtl-optimization/66306
16925 * reload.c (find_reloads): Swap the match_dup info for
16926 commutative operands.
16928 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16930 * config/s390/vx-builtins.md
16931 ("vec_scatter_element<mode>_<non_vec_int>")
16932 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
16933 attribute with bhfgq.
16935 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16937 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
16939 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16941 * config/s390/s390-builtin-types.def: Add flag to indicate the
16942 options under which the function type is needed.
16943 * config/s390/s390-builtins.def: Add flag to indicate the options
16944 under which the builtin is enabled.
16945 * config/s390/s390-builtins.h: Add flags parameter to macro
16947 (bflags_for_builtin): New function.
16948 (flags_for_builtin): Renamed to ...
16949 (opflags_for_builtin): ... this.
16950 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
16951 flags_for_builtin to bflags_for_builtin and
16952 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
16953 * config/s390/s390.c: Add initialization of bflags_builtin and
16954 opflags_builtin arrays.
16955 Remove code for flags_builtin.
16956 (s390_init_builtins): Only create builtin function types if one of
16957 their flags is active.
16958 Only create builtins if all of their flags are active.
16959 (s390_expand_builtin): Rename flags_for_builtin to
16960 opflags_for_builtin.
16962 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16964 * config/s390/vecintrin.h: Remove internal builtins.
16966 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16968 * config/s390/s390.c (s390_secondary_reload): Fix check for
16969 GENERAL_REGS register class.
16971 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16973 * config/s390/s390.c (s390_support_vector_misalignment): Call
16974 default implementation for !TARGET_VX.
16976 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16978 * config/s390/s390.c (s390_legitimate_constant_p): Add
16981 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16983 * config/s390/s390.c (s390_vector_abi): New variable definition.
16984 (s390_check_type_for_vector_abi): New function.
16985 (TARGET_ASM_FILE_END): New macro definition.
16986 (s390_asm_file_end): New function.
16987 (s390_function_arg): Call s390_check_type_for_vector_abi.
16988 (s390_gimplify_va_arg): Likewise.
16989 * configure: Regenerate.
16990 * configure.ac: Check for .gnu_attribute Binutils feature.
16992 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
16995 * config/bfin/bfin.c (hwloop_optimize): Initialize
16996 JUMP_LABEL for newly created jump.
16998 2015-06-23 Tristan Gingold <gingold@adacore.com>
17000 * collect-utils.c (collect_wait): Unlink the response file here
17002 (do_wait): ...here.
17003 (utils_cleanup): ...and here.
17005 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
17007 * df-scan.c: Don't include target-def.h.
17008 * targhooks.c: Likewise.
17009 * config/arm/arm-c.c: Likewise.
17010 * config/i386/i386-c.c: Likewise.
17011 * config/nds32/nds32-cost.c: Likewise.
17012 * config/nds32/nds32-fp-as-gp.c: Likewise.
17013 * config/nds32/nds32-intrinsic.c: Likewise.
17014 * config/nds32/nds32-isr.c: Likewise.
17015 * config/nds32/nds32-md-auxiliary.c: Likewise.
17016 * config/nds32/nds32-memory-manipulation.c: Likewise.
17017 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17018 * config/nds32/nds32-predicates.c: Likewise.
17020 2015-06-23 Richard Biener <rguenther@suse.de>
17022 PR tree-optimization/66636
17023 * tree-vect-stmts.c (vectorizable_store): Properly compute the
17024 def type for further defs for strided stores.
17026 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
17028 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
17029 conditional selects.
17030 (setcc_int<mode>, setcc_float<mode>): Reformat.
17032 2015-06-23 Marek Polacek <polacek@redhat.com>
17034 * match.pd ((x + y) - (x | y) -> x & y,
17035 (x + y) - (x & y) -> x | y): New patterns.
17037 2015-06-23 Ludovic Courtès <ludo@gnu.org>
17040 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
17041 '-dynamic-linker' within %{!shared: ...}.
17043 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
17046 * config/i386/predicates.md (addsub_vm_operator): New predicate.
17047 (addsub_vs_operator): Ditto.
17048 (addsub_vs_parallel): Ditto.
17049 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
17050 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
17051 Put minus RTX before plus and adjust vec_merge selector.
17052 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
17053 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
17054 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
17055 (addsub vec_merge splitters): New combiner splitters.
17056 (addsub vec_select/vec_concat splitters): Ditto.
17058 2015-06-23 Bin Cheng <bin.cheng@arm.com>
17060 PR tree-optimization/66449
17061 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
17062 POINTER_PLUS_EXPR for pointers.
17064 2015-06-23 Alan Modra <amodra@gmail.com>
17066 * rtlanal.c (commutative_operand_precedence): Correct comments.
17067 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
17068 declaration. Return an int. Distinguish REG,REG return from
17070 (struct simplify_plus_minus_op_data): Make local to function.
17071 (simplify_plus_minus): Don't set canonicalized if merely sorting
17072 registers. Avoid packing ops if nothing changes. White space fixes.
17074 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
17076 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
17077 -fdump-ada-spec is passed but not if -fsyntax-only is.
17079 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
17082 * lra-lives.c (process_bb_lives): Check insn copying the same
17083 reload pseudo and don't create a copy for it.
17085 2015-06-22 Tom de Vries <tom@codesourcery.com>
17087 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
17090 2015-06-22 Tom de Vries <tom@codesourcery.com>
17092 * builtins.def (DEF_GOMP_BUILTIN): Test
17093 'flag_tree_parallelize_loops > 1' instead of
17094 'flag_tree_parallelize_loops'. Test flag_cilkplus.
17096 2015-06-22 Tom de Vries <tom@codesourcery.com>
17098 * dominance.c (calculate_dominance_info): Verify dominators if
17101 2015-06-22 Marek Polacek <polacek@redhat.com>
17103 * match.pd ((x ^ y) ^ (x | y) -> x & y,
17104 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
17105 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
17106 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
17108 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
17111 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
17112 cost of embedded comparison.
17114 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17117 * config/rs6000/predicates.md (altivec_register_operand): Permit
17118 virtual stack registers.
17119 (vsx_register_operand): Likewise.
17120 (vfloat_operand): Likewise.
17121 (vint_operand): Likewise.
17122 (vlogical_operand): Likewise.
17124 2015-06-22 Richard Biener <rguenther@suse.de>
17126 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
17127 and single_scalar_iteration_cost members.
17128 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
17129 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
17130 (vect_get_single_scalar_iteration_cost): Remove.
17131 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
17132 Use LOOP_VINFO_SCALAR_ITERATION_COST.
17133 * tree-vect-loop.c (destroy_loop_vec_info): Free
17135 (vect_get_single_scalar_iteration_cost): Compute result into
17136 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
17137 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
17138 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
17139 (vect_estimate_min_profitable_iters): Use them.
17141 2015-06-22 Christian Bruel <christian.bruel@st.com>
17144 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
17145 (TARGET_INSERT_ATTRIBUTES): Define.
17146 (thumb_flipper): New var.
17147 * config/arm/arm.opt (-mflip-thumb): New switch.
17149 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
17150 Martin Liska <mliska@suse.cz>
17153 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
17154 construction of arg_types.
17155 (sem_function::sem_function): Likewise.
17156 (sem_function::~sem_function): Remove destruction of arg_types.
17157 (sem_function::compatible_parm_types_p): New function.
17158 (sem_function::equals_wpa): Reorg matching of return values
17159 and parameter types.
17160 (sem_function::equals_private): Reorg mathcing of argument types.
17161 (sem_function::parse_tree_args): Remove.
17162 * ipa-icf.h (init_wpa): Do not call it.
17163 (parse_tree_args): Remove.
17164 (compatible_parm_types_p): Declare.
17165 (result_type): Remove.
17166 (arg_types): Remove.
17168 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
17171 * ipa-polymorphic-call.c
17172 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
17173 initializing alias oracle; fix formating; set base_alias_set if it
17176 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
17178 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
17179 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
17180 (find_inc): Likewise.
17181 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
17183 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
17184 * df-scan.c (df_swap_refs): Remove.
17185 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
17186 * dominance.c (link_roots): Use std::swap instead of manually swapping.
17187 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
17188 * fold-const.c (fold_relational_const): Likewise.
17189 * genattrtab.c (simplify_test_exp): Likewise.
17190 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
17191 gimple_simplify): Likewise.
17192 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
17193 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
17194 * ipa-devirt.c (add_type_duplicate): Likewise.
17195 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
17196 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
17197 * lra.c (lra_create_copy): Likewise.
17198 * lto-streamer-out.c (DFS::DFS): Likewise.
17199 * modulo-sched.c (get_sched_window): Likewise.
17200 * omega.c (omega_pretty_print_problem): Likewise.
17201 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
17202 * reload1.c (reloads_unique_chain_p): Likewise.
17203 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
17204 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
17206 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
17208 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
17209 predicate_mem_writes): Likewise.
17210 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
17211 * tree-predcom.c (combine_chains): Likewise.
17212 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
17213 refs_may_alias_p_1): Likewise.
17214 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
17215 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
17216 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
17217 number_of_iterations_cond): Likewise.
17218 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
17219 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
17220 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
17221 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
17222 * tree-vrp.c (extract_range_from_binary_expr_1,
17223 extract_range_from_unary_expr_1): Likewise.
17225 2015-06-20 Marek Polacek <polacek@redhat.com>
17227 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
17229 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
17232 * config/sh/sh.c (prepare_move_operands): Replace subreg
17233 index term with R0 for base and index addressing.
17235 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
17237 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
17239 (movsf_aarch64): Change condition from register_operand to
17240 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
17241 load1. Change type for alternative 7 to store1.
17242 (movdf_aarch64): Likewise.
17244 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
17246 * config/vax/vax.md: Adjust sign/zero extend patterns to
17247 handle SUBREGs in operands[1].
17249 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17251 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
17252 of manually swapping.
17253 (expand_vec_perm_interleave2): Likewise.
17255 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
17257 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
17258 reuse bounds created for abnormal ssa names.
17260 2015-06-19 Jakub Jelinek <jakub@redhat.com>
17262 * config/nvptx/nvptx.md (allocate_stack): Rename to...
17263 (allocate_stack_<mode>): ... this, and add :P on both
17264 match_operand and unspec.
17265 (allocate_stack): New expander.
17267 2015-06-19 Christian Bruel <christian.bruel@st.com>
17271 * config/arm/arm.c (arm_set_current_function): Handle
17272 explicit default options.
17274 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
17276 * config/i386/i386.md (*movsicc_noc_zext): New insn.
17277 (zero-extended cmove with mem peephole2): New pattern.
17278 (cmove with mem peephole2): Merge patterns.
17280 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
17282 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
17284 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
17286 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
17287 * config/mips/mips.md (*madd4<mode>): Ditto.
17288 (*nmadd3<mode>) Ditto.
17289 (*nmadd4<mode>_fastmath): Ditto.
17290 (*nmadd3<mode>_fastmath): Ditto.
17291 (*nmsub4<mode>): Ditto.
17292 (*nmsub3<mode>): Ditto.
17293 (*nmsub4<mode>_fastmath): Ditto.
17294 (*nmsub3<mode>_fastmath): Ditto.
17296 2015-06-18 Michael Matz <matz@suse.de>
17298 PR middle-end/66253
17299 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
17300 grouped strided stores.
17301 (vectorizable_load): Don't use the DR from first_stmt in
17302 the non-SLP grouped strided case.
17304 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17307 * function.c (assign_bounds): Add arguments assign_regs,
17308 assign_special, assign_bt.
17309 (assign_parms): For vararg functions handle bounds in BT
17310 and special slots after incoming vararg bounds.
17312 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17314 PR middle-end/66568
17315 * cfgexpand.c (expand_return): Handle missing bounds.
17316 (expand_gimple_stmt_1): Likewise.
17317 * tree-chkp.c (chkp_expand_zero_bounds): New.
17318 * tree-chkp.h (chkp_expand_zero_bounds): New.
17320 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17322 PR middle-end/66567
17323 * ipa-chkp.c (chkp_maybe_create_clone): Require
17324 functions to be instrumentable.
17325 * tree-chkp.c (chkp_replace_function_pointer): Use
17326 chkp_instrumentable_p instead of attribute check.
17328 2015-06-18 Richard Biener <rguenther@suse.de>
17330 PR tree-optimization/66510
17331 * tree-vect-stmts.c (vectorizable_load): Properly compute the
17332 number of vector loads for SLP permuted loads.
17333 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
17334 check the stride for loop vectorization.
17335 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
17336 vectorization factor.
17337 (vect_analyze_group_access): If the group size is not a power
17338 of two require a epilogue loop.
17339 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
17340 compute and optimizing and alias test pruning after final
17341 vectorization factor computation.
17342 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
17344 (vect_transform_slp_perm_load): Properly compute the original
17345 number of vector load stmts.
17347 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
17349 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
17350 "unlikely character , in @var" warning.
17352 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
17354 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
17355 (ix86_function_arg_advance): Ditto.
17356 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
17358 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
17360 * function.h (struct rtl_data): Remove struct and accessor macros.
17361 * emit-rtl.h (struct rtl_data): Relocate to here.
17362 * Makefile.in (GTFILES): Add emit-rtl.h.
17363 * df-core.c: Include emit-rtl.h.
17364 * genattrtab.c: Likewise.
17365 * genconditions.c: Likewise.
17366 * genpreds.c: Likewise.
17367 * genrecog.c: Likewise.
17368 * regcprop.c: Likewise.
17369 * resource.c: Likewise.
17370 * sched-rgn.c: Likewise.
17371 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17372 * config/i386/winnt.c: Likewise.
17374 2015-06-17 Jakub Jelinek <jakub@redhat.com>
17376 PR middle-end/66429
17377 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
17378 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
17379 and has_force_vectorize_loops flags from cfun into
17381 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
17382 if simduid is non-NULL.
17383 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
17384 * passes.def (pass_simduid_cleanup): Add new pass after loop
17386 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
17387 indirection from htab argument's type.
17388 (shrink_simd_arrays): New function.
17389 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
17390 Don't call adjust_simduid_builtins if there are no loops.
17391 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
17392 (pass_simduid_cleanup::execute): New method.
17393 (make_pass_simduid_cleanup): New function.
17395 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
17397 * tree-core.h (tree_target_option): Make opts field a pointer to a
17398 cl_target_option instead of an instance of the struct.
17399 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
17401 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
17402 TARGET_OPTION_NODE.
17403 (copy_node_stat): Allocate and copy struct cl_target_option.
17405 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
17407 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
17408 Remove conditional exposure of prototypes.
17409 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
17410 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
17411 definitions in tree.h with functions.
17412 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
17414 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
17416 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
17418 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
17419 (*cmp<mode>_signed): ... this.
17420 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
17421 (*cmp<mode>_unsigned): ... this. Remove %b.
17423 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
17425 * coretypes.h: Include input.h and as-a.h.
17426 * rtl.h: Include input.h and as-a.h for generator files.
17427 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
17428 * vec.c: Don't include diagnostic-core.h.
17429 * alias.c: Do not include input.h, line-map.h or is-a.h.
17430 * asan.c: Likewise.
17431 * attribs.c: Likewise.
17432 * auto-inc-dec.c: Likewise.
17433 * auto-profile.c: Likewise.
17434 * bb-reorder.c: Likewise.
17435 * bt-load.c: Likewise.
17436 * builtins.c: Likewise.
17437 * caller-save.c: Likewise.
17438 * calls.c: Likewise.
17439 * ccmp.c: Likewise.
17441 * cfganal.c: Likewise.
17442 * cfgbuild.c: Likewise.
17443 * cfgcleanup.c: Likewise.
17444 * cfgexpand.c: Likewise.
17445 * cfghooks.c: Likewise.
17446 * cfgloop.c: Likewise.
17447 * cfgloop.h: Likewise.
17448 * cfgloopanal.c: Likewise.
17449 * cfgloopmanip.c: Likewise.
17450 * cfgrtl.c: Likewise.
17451 * cgraph.c: Likewise.
17452 * cgraphbuild.c: Likewise.
17453 * cgraphclones.c: Likewise.
17454 * cgraphunit.c: Likewise.
17455 * cilk-common.c: Likewise.
17456 * combine-stack-adj.c: Likewise.
17457 * combine.c: Likewise.
17458 * compare-elim.c: Likewise.
17459 * convert.c: Likewise.
17460 * coverage.c: Likewise.
17461 * cppbuiltin.c: Likewise.
17462 * cprop.c: Likewise.
17464 * cselib.c: Likewise.
17465 * data-streamer-in.c: Likewise.
17466 * data-streamer-out.c: Likewise.
17467 * data-streamer.c: Likewise.
17468 * dbxout.c: Likewise.
17471 * debug.c: Likewise.
17472 * df-core.c: Likewise.
17473 * df-problems.c: Likewise.
17474 * df-scan.c: Likewise.
17477 * diagnostic-core.h: Likewise.
17478 * diagnostic.c: Likewise.
17479 * dojump.c: Likewise.
17480 * dominance.c: Likewise.
17481 * domwalk.c: Likewise.
17482 * double-int.c: Likewise.
17484 * dumpfile.c: Likewise.
17485 * dumpfile.h: Likewise.
17486 * dwarf2asm.c: Likewise.
17487 * dwarf2cfi.c: Likewise.
17488 * dwarf2out.c: Likewise.
17489 * emit-rtl.c: Likewise.
17490 * et-forest.c: Likewise.
17491 * except.c: Likewise.
17492 * explow.c: Likewise.
17493 * expmed.c: Likewise.
17494 * expr.c: Likewise.
17495 * final.c: Likewise.
17496 * fixed-value.c: Likewise.
17497 * fold-const.c: Likewise.
17498 * function.c: Likewise.
17499 * fwprop.c: Likewise.
17500 * gcc-plugin.h: Likewise.
17501 * gcse.c: Likewise.
17502 * generic-match-head.c: Likewise.
17503 * ggc-page.c: Likewise.
17504 * gimple-builder.c: Likewise.
17505 * gimple-expr.c: Likewise.
17506 * gimple-fold.c: Likewise.
17507 * gimple-iterator.c: Likewise.
17508 * gimple-low.c: Likewise.
17509 * gimple-match-head.c: Likewise.
17510 * gimple-pretty-print.c: Likewise.
17511 * gimple-ssa-isolate-paths.c: Likewise.
17512 * gimple-ssa-strength-reduction.c: Likewise.
17513 * gimple-streamer-in.c: Likewise.
17514 * gimple-streamer-out.c: Likewise.
17515 * gimple-streamer.h: Likewise.
17516 * gimple-walk.c: Likewise.
17517 * gimple.c: Likewise.
17518 * gimplify-me.c: Likewise.
17519 * gimplify.c: Likewise.
17520 * godump.c: Likewise.
17521 * graph.c: Likewise.
17522 * graphite-blocking.c: Likewise.
17523 * graphite-dependences.c: Likewise.
17524 * graphite-interchange.c: Likewise.
17525 * graphite-isl-ast-to-gimple.c: Likewise.
17526 * graphite-optimize-isl.c: Likewise.
17527 * graphite-poly.c: Likewise.
17528 * graphite-scop-detection.c: Likewise.
17529 * graphite-sese-to-poly.c: Likewise.
17530 * graphite.c: Likewise.
17531 * haifa-sched.c: Likewise.
17532 * hw-doloop.c: Likewise.
17533 * ifcvt.c: Likewise.
17534 * init-regs.c: Likewise.
17535 * input.c: Likewise.
17536 * internal-fn.c: Likewise.
17537 * ipa-chkp.c: Likewise.
17538 * ipa-comdats.c: Likewise.
17539 * ipa-cp.c: Likewise.
17540 * ipa-devirt.c: Likewise.
17541 * ipa-icf-gimple.c: Likewise.
17542 * ipa-icf.c: Likewise.
17543 * ipa-inline-analysis.c: Likewise.
17544 * ipa-inline-transform.c: Likewise.
17545 * ipa-inline.c: Likewise.
17546 * ipa-polymorphic-call.c: Likewise.
17547 * ipa-profile.c: Likewise.
17548 * ipa-prop.c: Likewise.
17549 * ipa-pure-const.c: Likewise.
17550 * ipa-ref.c: Likewise.
17551 * ipa-reference.c: Likewise.
17552 * ipa-split.c: Likewise.
17553 * ipa-utils.c: Likewise.
17554 * ipa-visibility.c: Likewise.
17556 * ira-build.c: Likewise.
17557 * ira-color.c: Likewise.
17558 * ira-conflicts.c: Likewise.
17559 * ira-costs.c: Likewise.
17560 * ira-emit.c: Likewise.
17561 * ira-lives.c: Likewise.
17563 * jump.c: Likewise.
17564 * langhooks.c: Likewise.
17566 * loop-doloop.c: Likewise.
17567 * loop-init.c: Likewise.
17568 * loop-invariant.c: Likewise.
17569 * loop-iv.c: Likewise.
17570 * loop-unroll.c: Likewise.
17571 * lower-subreg.c: Likewise.
17572 * lra-assigns.c: Likewise.
17573 * lra-coalesce.c: Likewise.
17574 * lra-constraints.c: Likewise.
17575 * lra-eliminations.c: Likewise.
17576 * lra-lives.c: Likewise.
17577 * lra-remat.c: Likewise.
17578 * lra-spills.c: Likewise.
17580 * lto-cgraph.c: Likewise.
17581 * lto-compress.c: Likewise.
17582 * lto-opts.c: Likewise.
17583 * lto-section-in.c: Likewise.
17584 * lto-section-out.c: Likewise.
17585 * lto-streamer-in.c: Likewise.
17586 * lto-streamer-out.c: Likewise.
17587 * lto-streamer.c: Likewise.
17589 * mode-switching.c: Likewise.
17590 * modulo-sched.c: Likewise.
17591 * omega.c: Likewise.
17592 * omp-low.c: Likewise.
17593 * optabs.c: Likewise.
17594 * opts-global.c: Likewise.
17595 * opts.h: Likewise.
17596 * passes.c: Likewise.
17597 * plugin.c: Likewise.
17598 * postreload-gcse.c: Likewise.
17599 * postreload.c: Likewise.
17600 * predict.c: Likewise.
17601 * pretty-print.h: Likewise.
17602 * print-rtl.c: Likewise.
17603 * print-tree.c: Likewise.
17604 * profile.c: Likewise.
17605 * real.c: Likewise.
17606 * realmpfr.c: Likewise.
17607 * recog.c: Likewise.
17609 * reg-stack.c: Likewise.
17610 * regcprop.c: Likewise.
17611 * reginfo.c: Likewise.
17612 * regrename.c: Likewise.
17613 * regstat.c: Likewise.
17614 * reload.c: Likewise.
17615 * reload1.c: Likewise.
17616 * reorg.c: Likewise.
17617 * resource.c: Likewise.
17618 * rtl-chkp.c: Likewise.
17619 * rtl-error.c: Likewise.
17620 * rtlanal.c: Likewise.
17621 * rtlhooks.c: Likewise.
17622 * sanopt.c: Likewise.
17623 * sched-deps.c: Likewise.
17624 * sched-ebb.c: Likewise.
17625 * sched-rgn.c: Likewise.
17626 * sched-vis.c: Likewise.
17627 * sdbout.c: Likewise.
17628 * sel-sched-dump.c: Likewise.
17629 * sel-sched-ir.c: Likewise.
17630 * sel-sched.c: Likewise.
17631 * sese.c: Likewise.
17632 * shrink-wrap.c: Likewise.
17633 * simplify-rtx.c: Likewise.
17634 * stack-ptr-mod.c: Likewise.
17635 * statistics.c: Likewise.
17636 * stmt.c: Likewise.
17637 * stor-layout.c: Likewise.
17638 * store-motion.c: Likewise.
17639 * streamer-hooks.c: Likewise.
17640 * stringpool.c: Likewise.
17641 * symtab.c: Likewise.
17642 * target-globals.c: Likewise.
17643 * targhooks.c: Likewise.
17644 * toplev.c: Likewise.
17645 * tracer.c: Likewise.
17646 * trans-mem.c: Likewise.
17647 * tree-affine.c: Likewise.
17648 * tree-browser.c: Likewise.
17649 * tree-call-cdce.c: Likewise.
17650 * tree-cfg.c: Likewise.
17651 * tree-cfgcleanup.c: Likewise.
17652 * tree-chkp-opt.c: Likewise.
17653 * tree-chkp.c: Likewise.
17654 * tree-chrec.c: Likewise.
17655 * tree-complex.c: Likewise.
17656 * tree-data-ref.c: Likewise.
17657 * tree-dfa.c: Likewise.
17658 * tree-diagnostic.c: Likewise.
17659 * tree-dump.c: Likewise.
17660 * tree-eh.c: Likewise.
17661 * tree-emutls.c: Likewise.
17662 * tree-if-conv.c: Likewise.
17663 * tree-inline.c: Likewise.
17664 * tree-into-ssa.c: Likewise.
17665 * tree-iterator.c: Likewise.
17666 * tree-loop-distribution.c: Likewise.
17667 * tree-nested.c: Likewise.
17668 * tree-nrv.c: Likewise.
17669 * tree-object-size.c: Likewise.
17670 * tree-outof-ssa.c: Likewise.
17671 * tree-parloops.c: Likewise.
17672 * tree-phinodes.c: Likewise.
17673 * tree-predcom.c: Likewise.
17674 * tree-pretty-print.c: Likewise.
17675 * tree-profile.c: Likewise.
17676 * tree-scalar-evolution.c: Likewise.
17677 * tree-sra.c: Likewise.
17678 * tree-ssa-address.c: Likewise.
17679 * tree-ssa-alias.c: Likewise.
17680 * tree-ssa-ccp.c: Likewise.
17681 * tree-ssa-coalesce.c: Likewise.
17682 * tree-ssa-copy.c: Likewise.
17683 * tree-ssa-copyrename.c: Likewise.
17684 * tree-ssa-dce.c: Likewise.
17685 * tree-ssa-dom.c: Likewise.
17686 * tree-ssa-dse.c: Likewise.
17687 * tree-ssa-forwprop.c: Likewise.
17688 * tree-ssa-ifcombine.c: Likewise.
17689 * tree-ssa-live.c: Likewise.
17690 * tree-ssa-loop-ch.c: Likewise.
17691 * tree-ssa-loop-im.c: Likewise.
17692 * tree-ssa-loop-ivcanon.c: Likewise.
17693 * tree-ssa-loop-ivopts.c: Likewise.
17694 * tree-ssa-loop-manip.c: Likewise.
17695 * tree-ssa-loop-niter.c: Likewise.
17696 * tree-ssa-loop-prefetch.c: Likewise.
17697 * tree-ssa-loop-unswitch.c: Likewise.
17698 * tree-ssa-loop.c: Likewise.
17699 * tree-ssa-math-opts.c: Likewise.
17700 * tree-ssa-operands.c: Likewise.
17701 * tree-ssa-phiopt.c: Likewise.
17702 * tree-ssa-phiprop.c: Likewise.
17703 * tree-ssa-pre.c: Likewise.
17704 * tree-ssa-propagate.c: Likewise.
17705 * tree-ssa-reassoc.c: Likewise.
17706 * tree-ssa-sccvn.c: Likewise.
17707 * tree-ssa-scopedtables.c: Likewise.
17708 * tree-ssa-sink.c: Likewise.
17709 * tree-ssa-strlen.c: Likewise.
17710 * tree-ssa-structalias.c: Likewise.
17711 * tree-ssa-tail-merge.c: Likewise.
17712 * tree-ssa-ter.c: Likewise.
17713 * tree-ssa-threadedge.c: Likewise.
17714 * tree-ssa-threadupdate.c: Likewise.
17715 * tree-ssa-uncprop.c: Likewise.
17716 * tree-ssa-uninit.c: Likewise.
17717 * tree-ssa.c: Likewise.
17718 * tree-ssanames.c: Likewise.
17719 * tree-stdarg.c: Likewise.
17720 * tree-streamer-in.c: Likewise.
17721 * tree-streamer-out.c: Likewise.
17722 * tree-streamer.c: Likewise.
17723 * tree-switch-conversion.c: Likewise.
17724 * tree-tailcall.c: Likewise.
17725 * tree-vect-data-refs.c: Likewise.
17726 * tree-vect-generic.c: Likewise.
17727 * tree-vect-loop-manip.c: Likewise.
17728 * tree-vect-loop.c: Likewise.
17729 * tree-vect-patterns.c: Likewise.
17730 * tree-vect-slp.c: Likewise.
17731 * tree-vect-stmts.c: Likewise.
17732 * tree-vectorizer.c: Likewise.
17733 * tree-vrp.c: Likewise.
17734 * tree.c: Likewise.
17735 * tsan.c: Likewise.
17736 * ubsan.c: Likewise.
17737 * valtrack.c: Likewise.
17738 * value-prof.c: Likewise.
17739 * var-tracking.c: Likewise.
17740 * varasm.c: Likewise.
17741 * varpool.c: Likewise.
17742 * vmsdbgout.c: Likewise.
17743 * vtable-verify.c: Likewise.
17745 * wide-int.cc: Likewise.
17746 * xcoffout.c: Likewise.
17747 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
17748 * common/common-targhooks.c: Likewise.
17749 * config/aarch64/aarch64-builtins.c: Likewise.
17750 * config/aarch64/aarch64.c: Likewise.
17751 * config/alpha/alpha.c: Likewise.
17752 * config/arc/arc.c: Likewise.
17753 * config/arm/aarch-common.c: Likewise.
17754 * config/arm/arm-builtins.c: Likewise.
17755 * config/arm/arm-c.c: Likewise.
17756 * config/arm/arm.c: Likewise.
17757 * config/avr/avr-c.c: Likewise.
17758 * config/avr/avr-log.c: Likewise.
17759 * config/avr/avr.c: Likewise.
17760 * config/bfin/bfin.c: Likewise.
17761 * config/c6x/c6x.c: Likewise.
17762 * config/cr16/cr16.c: Likewise.
17763 * config/cris/cris.c: Likewise.
17764 * config/darwin-c.c: Likewise.
17765 * config/darwin.c: Likewise.
17766 * config/default-c.c: Likewise.
17767 * config/epiphany/epiphany.c: Likewise.
17768 * config/epiphany/mode-switch-use.c: Likewise.
17769 * config/epiphany/resolve-sw-modes.c: Likewise.
17770 * config/fr30/fr30.c: Likewise.
17771 * config/frv/frv.c: Likewise.
17772 * config/ft32/ft32.c: Likewise.
17773 * config/glibc-c.c: Likewise.
17774 * config/h8300/h8300.c: Likewise.
17775 * config/i386/i386-c.c: Likewise.
17776 * config/i386/i386.c: Likewise.
17777 * config/i386/msformat-c.c: Likewise.
17778 * config/i386/winnt-cxx.c: Likewise.
17779 * config/i386/winnt-stubs.c: Likewise.
17780 * config/i386/winnt.c: Likewise.
17781 * config/ia64/ia64-c.c: Likewise.
17782 * config/ia64/ia64.c: Likewise.
17783 * config/iq2000/iq2000.c: Likewise.
17784 * config/lm32/lm32.c: Likewise.
17785 * config/m32c/m32c-pragma.c: Likewise.
17786 * config/m32c/m32c.c: Likewise.
17787 * config/m32r/m32r.c: Likewise.
17788 * config/m68k/m68k.c: Likewise.
17789 * config/mcore/mcore.c: Likewise.
17790 * config/mep/mep-pragma.c: Likewise.
17791 * config/mep/mep.c: Likewise.
17792 * config/microblaze/microblaze-c.c: Likewise.
17793 * config/microblaze/microblaze.c: Likewise.
17794 * config/mips/mips.c: Likewise.
17795 * config/mmix/mmix.c: Likewise.
17796 * config/mn10300/mn10300.c: Likewise.
17797 * config/moxie/moxie.c: Likewise.
17798 * config/msp430/msp430-c.c: Likewise.
17799 * config/msp430/msp430.c: Likewise.
17800 * config/nds32/nds32-cost.c: Likewise.
17801 * config/nds32/nds32-fp-as-gp.c: Likewise.
17802 * config/nds32/nds32-intrinsic.c: Likewise.
17803 * config/nds32/nds32-isr.c: Likewise.
17804 * config/nds32/nds32-md-auxiliary.c: Likewise.
17805 * config/nds32/nds32-memory-manipulation.c: Likewise.
17806 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17807 * config/nds32/nds32-predicates.c: Likewise.
17808 * config/nds32/nds32.c: Likewise.
17809 * config/nios2/nios2.c: Likewise.
17810 * config/nvptx/nvptx.c: Likewise.
17811 * config/pa/pa.c: Likewise.
17812 * config/pdp11/pdp11.c: Likewise.
17813 * config/rl78/rl78-c.c: Likewise.
17814 * config/rl78/rl78.c: Likewise.
17815 * config/rs6000/rs6000-c.c: Likewise.
17816 * config/rs6000/rs6000.c: Likewise.
17817 * config/rx/rx.c: Likewise.
17818 * config/s390/s390-c.c: Likewise.
17819 * config/s390/s390.c: Likewise.
17820 * config/sh/sh-c.c: Likewise.
17821 * config/sh/sh-mem.cc: Likewise.
17822 * config/sh/sh.c: Likewise.
17823 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17824 * config/sh/sh_treg_combine.cc: Likewise.
17825 * config/sol2-c.c: Likewise.
17826 * config/sol2-cxx.c: Likewise.
17827 * config/sol2-stubs.c: Likewise.
17828 * config/sol2.c: Likewise.
17829 * config/sparc/sparc-c.c: Likewise.
17830 * config/sparc/sparc.c: Likewise.
17831 * config/spu/spu-c.c: Likewise.
17832 * config/spu/spu.c: Likewise.
17833 * config/stormy16/stormy16.c: Likewise.
17834 * config/tilegx/mul-tables.c: Likewise.
17835 * config/tilegx/tilegx-c.c: Likewise.
17836 * config/tilegx/tilegx.c: Likewise.
17837 * config/tilepro/mul-tables.c: Likewise.
17838 * config/tilepro/tilepro-c.c: Likewise.
17839 * config/tilepro/tilepro.c: Likewise.
17840 * config/v850/v850-c.c: Likewise.
17841 * config/v850/v850.c: Likewise.
17842 * config/vax/vax.c: Likewise.
17843 * config/visium/visium.c: Likewise.
17844 * config/vms/vms-c.c: Likewise.
17845 * config/vms/vms.c: Likewise.
17846 * config/vxworks.c: Likewise.
17847 * config/winnt-c.c: Likewise.
17848 * config/xtensa/xtensa.c: Likewise.
17850 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
17852 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
17854 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
17856 2015-06-17 Richard Biener <rguenther@suse.de>
17858 PR tree-optimization/66251
17859 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
17860 stmts for SLP strided stores.
17863 2015-05-22 Richard Biener <rguenther@suse.de>
17865 PR tree-optimization/66251
17866 * tree-vect-stmts.c (vectorizable_conversion): Properly
17867 set STMT_VINFO_VEC_STMT even for the SLP case.
17869 2015-05-26 Michael Matz <matz@suse.de>
17871 PR middle-end/66251
17872 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
17873 STMT_VINFO_VEC_STMT, also with SLP.
17875 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
17878 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
17879 (*avx_addsubv4df3_1s): Ditto.
17880 (*sse3_addsubv2df3_1): Ditto.
17881 (*sse3_addsubv2df3_1s): Ditto.
17882 (*avx_addsubv8sf3_1): Ditto.
17883 (*avx_addsubv8sf3_1s): Ditto.
17884 (*sse3_addsubv4sf3_1): Ditto.
17885 (*sse3_addsubv4sf3_1s): Ditto.
17887 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
17889 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
17890 (SYSROOT_SUFFIX_SPEC): Update.
17891 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
17892 (STARTFILE_PREFIX_SPEC): Update.
17893 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
17894 (MULTILIB_REQUIRED): New.
17895 (MULTILIB_OSDIRNAMES): New.
17896 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
17897 (MULTILIB_REQUIRED): New.
17898 (MULTILIB_OSDIRNAMES): New.
17900 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
17902 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
17903 * config/aarch64/aarch64-options-extensions.def: Update "fP",
17904 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
17905 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
17906 (AARCH64_FL_PAN): New.
17907 (AARCH64_FL_LOR): New.
17908 (AARCH64_FL_RDMA): New.
17909 (AARCH64_FL_FOR_ARCH8_1): New.
17910 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
17911 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
17913 2015-06-16 Martin Liska <mliska@suse.cz>
17915 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
17916 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
17919 2015-06-16 Richard Biener <rguenther@suse.de>
17921 * tree-vect-stmts.c (vectorizable_store): Adjust.
17922 (vectorizable_load): Likewise.
17923 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
17925 (vect_create_data_ref_ptr): Likewise.
17926 (bump_vector_ptr): Adjust.
17928 2015-06-16 Richard Biener <rguenther@suse.de>
17930 * tree-vect-stmts.c (vectorizable_load): Properly start loads
17931 with the first element if this is grouped loads.
17933 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
17935 * config/arm/arm-protos.h (struct tune_params): Rename
17936 log_op_non_sc to log_op_non_short_circuit, and rename enum
17937 values to expand SC to SHORT_CIRCUIT.
17938 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
17939 to LOG_OP_NON_SHORT_CIRCUIT.
17940 (arm_fastmul_tune):Likewise
17941 (arm_strongarm_tune): Likewise.
17942 (arm_xscale_tune): Likewise.
17943 (arm_9e_tune): Likewise.
17944 (arm_marvell_pj4_tune): Likewise.
17945 (arm_v6t2_tune): Likewise.
17946 (arm_cortex_tune): Likewise.
17947 (arm_cortex_a8_tune): Likewise.
17948 (arm_cortex_a7_tune): Likewise.
17949 (arm_cortex_a15_tune): Likewise.
17950 (arm_cortex_a53_tune): Likewise.
17951 (arm_cortex_a57_tune): Likewise.
17952 (arm_xgene1_tune): Likewise.
17953 (arm_cortex_a5_tune): Likewise.
17954 (arm_cortex_a9_tune): Likewise.
17955 (arm_cortex_a12_tune): Likewise.
17956 (arm_v7m_tune): Likewise.
17957 (arm_cortex_m7_tune): Likewise.
17958 (arm_v6m_tune): Likewise.
17959 (arm_fa726te_tune): Likewise.
17961 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
17963 * altivec.md: Delete UNSPEC_VMLADDUHM.
17964 (mulv4si3_p8): New pattern.
17965 (mulv4si3): Use it for POWER8.
17966 (mulv8hi3): Use vmladduhm with zero addend.
17967 (altivec_vmladduhm): Descriptive RTL.
17969 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
17971 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
17972 to use neon_move instead of mov_imm.
17973 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
17974 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
17976 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
17977 aarch64_float_const_zero_rtx_p check before TFmode check.
17978 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
17980 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
17981 code and attributes to match. Change condition from register_operand
17982 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
17983 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
17986 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
17989 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
17990 there is no parent.
17992 2015-06-14 Shiva Chen <shiva0217@gmail.com>
17994 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
17995 HOST_WIDE_INT parameter.
17997 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
18000 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
18001 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
18003 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
18005 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
18007 * rtl.h (classify_insn): Declare.
18008 * emit-rtl.c (classify_insn): Move to...
18009 * rtl.c: ...here and add generator support.
18010 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
18011 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
18012 * genemit.c (gen_emit_seq): New function.
18013 (gen_expand, gen_split): Use it.
18015 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
18017 * tree.c (make_vector_stat): Fix comment to state that the
18018 function returns a VECTOR_CST.
18020 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
18022 * gensupport.h (add_implicit_parallel): Declare.
18023 * genrecog.c (add_implicit_parallel): Move to...
18024 * gensupport.c (add_implicit_parallel): ...here.
18025 (process_one_cond_exec): Use it.
18026 * genemit.c (gen_insn): Likewise.
18028 2015-06-13 Iain Sandoe <iain@codesourcery.com>
18031 * passes.c (rest_of_decl_compilation): Do not register globals for
18032 early debug if they are declared in built-ins.
18034 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
18036 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
18038 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18040 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
18042 (noce_try_cmove_arith): Likewise.
18043 (noce_get_alt_condition): Likewise.
18045 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
18047 * common/config/i386/i386-common.c
18048 (OPTION_MASK_ISA_MWAITX_SET): New.
18049 (ix86_handle_option): Handle mwaitx.
18050 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
18051 (x86_64-*-*): Likewise.
18052 * config/i386/mwaitxintrin.h: New header.
18053 * config/i386/cpuid.h (bit_MWAITX): Define.
18054 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18056 * config/i386/i386.opt (mwaitx): New.
18057 * config/i386/i386-builtin-types.def
18058 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
18059 * config/i386/i386-c.c: Define __MWAITX__ if needed.
18060 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
18062 (ix86_option_override_internal): Handle new option.
18063 (processor_alias_table): Added PTA_MWAITX.
18064 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
18065 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
18066 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
18067 IX86_BUILTIN_MONITORX built-ins.
18068 * config/i386/i386.h (TARGET_MWAITX): New.
18069 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
18071 (mwaitx): New pattern.
18072 (monitorx_<mode>): New pattern.
18073 * config/i386/x86intrin.h: Include mwaitxintrin.h.
18074 * doc/extend.texi: Document monitorx and mwaitx builtins.
18075 * doc/invoke.texi: Document -mmwaitx option.
18077 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
18079 * emit-rtl.c (need_atomic_barrier_p): Mask model with
18080 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
18082 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
18084 * dbxout.c (xcoff_debug_hooks): Provide a function for
18085 register_main_translation_unit hook.
18087 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
18089 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
18090 variants cases from switch.
18091 (rs6000_post_atomic_barrier): Same.
18092 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
18093 (rs6000_expand_atomic_exchange): Same.
18094 (rs6000_expand_atomic_op): Same.
18095 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
18096 SYNC variants cases from switch.
18097 (atomic_load): Same.
18098 (atomic_store): Same.
18100 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
18102 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
18103 CONST_INT for goto.
18105 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
18108 * dwarf2out.c (check_die): Check for common duplicate attributes.
18109 (add_location_or_const_value_attribute): Do not add duplicate
18111 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
18113 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
18114 (gen_type_die_with_usage): Call check_die.
18115 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
18117 2015-06-11 Jason Merrill <jason@redhat.com>
18119 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
18122 2015-06-11 Marek Polacek <polacek@redhat.com>
18124 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
18126 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
18129 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
18130 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
18131 (*addx_extend_sp32): Fix pasto.
18132 (*subx_extend): Rename into...
18133 (*subx_extend_sp32): ...this.
18134 (*adddi3_extend_sp32): Add earlyclobber.
18135 (*subdi3_insn_sp32): Likewise.
18136 (*subdi3_extend_sp32): Likewise.
18137 (*and_not_di_sp32): Likewise.
18138 (*or_not_di_sp32): Likewise.
18139 (*xor_not_di_sp32): Likewise.
18140 (*negdi2_sp32): Likewise.
18141 (*one_cmpldi2_sp32): Likewise.
18143 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
18145 * debug.h (struct gcc_debug_hooks): Add a
18146 register_main_translation_unit hook.
18147 * debug.c (do_nothing_debug_hooks): Provide a function for this
18149 * dbxout.c (dbx_debug_hooks): Likewise.
18150 * sdbout.c (sdb_debug_hooks): Likewise.
18151 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
18152 * dwarf2out.c (main_translation_unit): New global variable.
18153 (dwarf2out_register_main_translation_unit): New function
18154 implementing the new hook.
18155 (dwarf2_debug_hooks): Assign
18156 dwarf2out_register_main_translation_unit to this new hook.
18157 (dwarf2out_init): Associate any main translation unit to
18160 2015-06-11 Marek Polacek <polacek@redhat.com>
18162 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
18164 2015-06-11 Marek Polacek <polacek@redhat.com>
18166 * match.pd: Use single_use throughout.
18168 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18170 * config/arm/arm.c (arm_option_params_internal): When optimising
18171 for speed set max_insns_skipped when arm_restrict_it.
18173 2015-06-11 Christian Bruel <christian.bruel@st.com>
18176 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
18178 (arm_cpu_builtins): New function.
18179 (arm_pragma_target_parse): Call arm_cpu_builtins.
18180 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
18181 (arm_register_target_pragmas): Likewise.
18182 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
18183 Call arm_register_target_pragmas.
18184 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
18185 (arm_pragma_target_parse): Likewise.
18187 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
18189 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
18190 of the second operand.
18192 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
18195 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
18196 to prepare mask operand for AVX512 modes.
18198 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
18201 * doc/md.texi (Machine Constraints): Document that on the PowerPC
18202 if you use a constraint that targets a VSX register, you must use
18203 %x<n> in the template.
18205 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
18207 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
18208 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
18209 (define_insn "trap"): New definition.
18211 2015-06-10 Richard Biener <rguenther@suse.de>
18213 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
18215 (vect_supported_load_permutation_p): ... here. Handle
18216 supportable permutations in reductions.
18217 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
18218 for vectorizing strided group loads.
18220 2015-06-10 Jakub Jelinek <jakub@redhat.com>
18223 * config/i386/i386.c (ix86_split_long_move): For collisions
18224 involving direct tls segment refs, move the UNSPEC_TP possibly
18225 wrapped in ZERO_EXTEND out of the address for lea, to each of
18228 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18230 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
18231 dmb sy. Adjust tabs.
18233 2015-06-10 Tom de Vries <tom@codesourcery.com>
18235 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
18237 2015-06-10 Martin Liska <mliska@suse.cz>
18240 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
18241 all enum values in mem_alloc_origin.
18242 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
18244 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
18245 * bitmap.c (bitmap_register): Likewise.
18246 (dump_bitmap_statistics): Likewise.
18247 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
18248 (ggc_record_overhead): Likewise.
18249 * hash-map.h: Likewise.
18250 * hash-set.h: Likewise.
18251 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
18252 * hash-table.h: Likewise.
18253 * vec.c (vec_prefix::register_overhead): Likewise.
18254 (vec_prefix::release_overhead): Likewise.
18255 (dump_vec_loc_statistics): Likewise.
18257 2015-06-09 Christian Bruel <christian.bruel@st.com>
18260 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
18261 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
18262 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
18263 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
18264 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
18265 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
18266 (arm_valid_target_attribute_p): Likewise.
18267 (arm_set_current_function, arm_can_inline_p): Likewise.
18268 (arm_valid_target_attribute_rec): Likewise.
18269 (arm_previous_fndecl): New variable.
18270 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
18271 (TARGET_CAN_INLINE_P): Define.
18272 (arm_asm_trampoline_template): Emit mode.
18273 (arm_file_start): Don't set unified syntax.
18274 (arm_declare_function_name): Set unified syntax and mode.
18275 (arm_option_override): Init target_option_default_node.
18276 and target_option_current_node.
18277 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
18278 (*call_symbol): Likewise.
18279 * doc/extend.texi: Document ARM/Thumb target attribute.
18280 * doc/invoke.texi: Likewise.
18282 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18285 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18286 PR rtl-optimization/64164
18287 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18288 * tree-ssa-copyrename.c: Removed.
18289 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18290 -ftree-coalesce-vars.
18291 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18292 * common.opt (ftree-copyrename): Ignore.
18293 (ftree-coalesce-inlined-vars): Likewise.
18294 * doc/invoke.texi: Remove the ignored options above.
18295 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18296 * tree-ssa-coalesce.h: ... here.
18297 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18298 headers required by it.
18299 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18300 across variables when flag_tree_coalesce_vars. Check register
18301 use and promoted modes to allow coalescing. Moved to
18302 tree-ssa-coalesce.c.
18303 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18304 with its member functions to tree-ssa-coalesce.c.
18305 (var_map_base_init): Likewise. Renamed to
18306 compute_samebase_partition_bases.
18307 (partition_view_normal): Drop want_bases parameter.
18308 (partition_view_bitmap): Likewise.
18309 * tree-ssa-live.h: Adjust declarations.
18310 * tree-ssa-coalesce.c: Include explow.h.
18311 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18312 default defs at the entry point.
18313 (dump_part_var_map): New.
18314 (compute_optimized_partition_bases): New, called by...
18315 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18316 of compute_samebase_partition_bases. Adjust.
18317 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18318 * cfgexpand.c (leader_merge): New.
18319 (get_rtl_for_parm_ssa_default_def): New.
18320 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18321 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18322 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18323 redundant MEM attr setting.
18324 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18326 (expand_one_stack_var): ... this. New wrapper to check and
18327 skip already expanded SSA partitions.
18328 (record_alignment_for_reg_var): New, factored out of...
18329 (expand_one_var): ... this.
18330 (expand_one_ssa_partition): New.
18331 (adjust_one_expanded_partition_var): New.
18332 (expand_one_register_var): Check and skip already expanded SSA
18334 (expand_used_vars): Don't create DECLs for anonymous SSA
18335 names. Expand all SSA partitions, then adjust all SSA names.
18336 (pass::execute): Replace the loops that set
18337 SA.partition_to_pseudo from partition leaders and cleared
18338 DECL_RTL for multi-location variables, and that which used to
18339 rename vars and set attrs, with one that clears DECL_RTL and
18340 checks that PARMs and RESULTs default_defs match DECL_RTL.
18341 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18342 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18343 * explow.c (promote_ssa_mode): New.
18344 * explow.h (promote_ssa_mode): Declare.
18345 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18346 * function.c: Include cfgexpand.h.
18347 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18348 (use_register_for_parm_decl): Wrapper for the above to
18349 special-case the result_ptr.
18350 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18351 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18352 multiple locations.
18353 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18354 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18355 (assign_parm_setup_block): Prefer SSA-assigned location.
18356 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18357 if stack_parm is NULL.
18358 (assign_parm_setup_stack): Prefer SSA-assigned location.
18359 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18360 rtl before testing for pointer bounds. Special-case result_ptr.
18361 (expand_function_start): Maybe reset DECL_RTL of result.
18362 Prefer SSA-assigned location for result and static chain.
18363 Factor out DECL_RESULT and SET_DECL_RTL.
18364 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18365 anonymous SSA names. Use promote_ssa_mode.
18366 (get_temp_reg): Likewise.
18367 (remove_ssa_form): Adjust.
18368 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18369 and get its reg_usage for reg invalidation.
18370 (compute_bb_dataflow): Pass it insn.
18371 (emit_notes_in_bb): Likewise.
18372 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
18373 fail assert on conversion between unsigned types.
18375 2015-06-09 Tom de Vries <tom@codesourcery.com>
18377 PR tree-optimization/65460
18378 * omp-low.c (expand_omp_target): Set parallelized_function on
18379 cgraph_node for child_fn.
18381 2015-06-09 Tom de Vries <tom@codesourcery.com>
18383 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
18384 parallelized_function before add_new_function.
18386 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
18388 * gcc-plugin.h: Move decls to plugin.h and include it.
18389 * plugin.h: Relocate decls from gcc-plugin.h
18390 * ggc-page.c: Include required header files.
18391 * passes.c: Likewise.
18392 * cgraphunit.c: Likewise.
18394 2015-06-09 Tom de Vries <tom@codesourcery.com>
18396 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
18398 2015-06-09 Jason Merrill <jason@redhat.com>
18401 * toplev.c (check_global_declaration): Don't warn about a clone.
18403 2015-06-09 Marek Polacek <polacek@redhat.com>
18405 PR tree-optimization/66299
18406 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
18407 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
18410 2015-06-09 Richard Biener <rguenther@suse.de>
18412 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
18413 (vect_analyze_slp_instance): Instead do not falsely drop
18416 2015-06-09 Richard Biener <rguenther@suse.de>
18418 PR middle-end/66423
18419 * match.pd: Handle A % (unsigned)(1 << B).
18421 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
18423 * varasm.c (output_object_block_htab): Remove.
18424 (output_object_block_compare): New.
18425 (output_object_blocks): Sort named object_blocks before outputting
18428 2015-06-09 Richard Biener <rguenther@suse.de>
18430 PR tree-optimization/66419
18431 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
18432 consider GROUP_GAP when detecting a perfect subchain.
18434 2015-06-09 Nick Clifton <nickc@redhat.com>
18436 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
18437 place read only data in the .frodata section.
18439 2015-06-09 Shiva Chen <shiva0217@gmail.com>
18441 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
18442 (atomic_store<mode>): Likewise.
18444 2015-06-09 Richard Biener <rguenther@suse.de>
18446 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
18448 2015-06-09 Richard Biener <rguenther@suse.de>
18450 PR middle-end/66413
18451 * tree-inline.c (insert_init_debug_bind): Unshare value.
18453 2015-06-09 Richard Biener <rguenther@suse.de>
18455 PR tree-optimization/66396
18456 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
18457 Rename virtual operands.
18459 2015-06-09 Tom de Vries <tom@codesourcery.com>
18461 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
18462 always return false.
18464 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18466 PR rtl-optimization/64164
18467 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18468 * tree-ssa-copyrename.c: Removed.
18469 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18470 -ftree-coalesce-vars.
18471 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18472 * common.opt (ftree-copyrename): Ignore.
18473 (ftree-coalesce-inlined-vars): Likewise.
18474 * doc/invoke.texi: Remove the ignored options above.
18475 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18476 * tree-ssa-coalesce.h: ... here.
18477 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18478 headers required by it.
18479 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18480 across variables when flag_tree_coalesce_vars. Check register
18481 use and promoted modes to allow coalescing. Moved to
18482 tree-ssa-coalesce.c.
18483 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18484 with its member functions to tree-ssa-coalesce.c.
18485 (var_map_base_init): Likewise. Renamed to
18486 compute_samebase_partition_bases.
18487 (partition_view_normal): Drop want_bases parameter.
18488 (partition_view_bitmap): Likewise.
18489 * tree-ssa-live.h: Adjust declarations.
18490 * tree-ssa-coalesce.c: Include explow.h.
18491 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18492 default defs at the entry point.
18493 (dump_part_var_map): New.
18494 (compute_optimized_partition_bases): New, called by...
18495 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18496 of compute_samebase_partition_bases. Adjust.
18497 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18498 * cfgexpand.c (leader_merge): New.
18499 (get_rtl_for_parm_ssa_default_def): New.
18500 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18501 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18502 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18503 redundant MEM attr setting.
18504 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18506 (expand_one_stack_var): ... this. New wrapper to check and
18507 skip already expanded SSA partitions.
18508 (record_alignment_for_reg_var): New, factored out of...
18509 (expand_one_var): ... this.
18510 (expand_one_ssa_partition): New.
18511 (adjust_one_expanded_partition_var): New.
18512 (expand_one_register_var): Check and skip already expanded SSA
18514 (expand_used_vars): Don't create DECLs for anonymous SSA
18515 names. Expand all SSA partitions, then adjust all SSA names.
18516 (pass::execute): Replace the loops that set
18517 SA.partition_to_pseudo from partition leaders and cleared
18518 DECL_RTL for multi-location variables, and that which used to
18519 rename vars and set attrs, with one that clears DECL_RTL and
18520 checks that PARMs and RESULTs default_defs match DECL_RTL.
18521 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18522 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18523 * explow.c (promote_ssa_mode): New.
18524 * explow.h (promote_ssa_mode): Declare.
18525 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18526 * function.c: Include cfgexpand.h.
18527 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18528 (use_register_for_parm_decl): Wrapper for the above to
18529 special-case the result_ptr.
18530 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18531 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18532 multiple locations.
18533 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18534 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18535 (assign_parm_setup_block): Prefer SSA-assigned location.
18536 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18537 if stack_parm is NULL.
18538 (assign_parm_setup_stack): Prefer SSA-assigned location.
18539 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18540 rtl before testing for pointer bounds. Special-case result_ptr.
18541 (expand_function_start): Maybe reset DECL_RTL of result.
18542 Prefer SSA-assigned location for result and static chain.
18543 Factor out DECL_RESULT and SET_DECL_RTL.
18544 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18545 anonymous SSA names. Use promote_ssa_mode.
18546 (get_temp_reg): Likewise.
18547 (remove_ssa_form): Adjust.
18548 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18549 and get its reg_usage for reg invalidation.
18550 (compute_bb_dataflow): Pass it insn.
18551 (emit_notes_in_bb): Likewise.
18552 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
18553 fail assert on conversion between unsigned types.
18555 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18558 * tree-inline.c (reset_debug_binding): New.
18559 (reset_debug_bindings): Likewise.
18560 (expand_call_inline): Call it.
18562 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
18564 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
18567 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
18569 * lto-streamer-out.c (lto_output_location): Stream
18570 reserved locations correctly.
18571 * lto-streamer-in.c (lto_output_location): Likewise.
18573 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
18575 * coretypes.h: Include hash-table.h and hash-set.h for host files.
18576 * ggc.h: Don't include statistics.h>
18577 * hash-map.h: Remove all includes.
18578 * hash-set.h: Likewise.
18579 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
18580 the include list. Remove <new>.
18581 * inchash.h: Remove all includes.
18582 * mem-stats.h: Likewise.
18583 * vec.h: No special processing for generators or ggc.
18584 * alias.c : Adjust include files.
18585 * alloc-pool.c : Likewise.
18586 * alloc-pool.h : Likewise.
18587 * asan.c : Likewise.
18588 * attribs.c : Likewise.
18589 * auto-inc-dec.c : Likewise.
18590 * auto-profile.c : Likewise.
18591 * bb-reorder.c : Likewise.
18592 * bitmap.c : Likewise.
18593 * bitmap.h : Likewise.
18594 * bt-load.c : Likewise.
18595 * builtins.c : Likewise.
18596 * caller-save.c : Likewise.
18597 * calls.c : Likewise.
18598 * ccmp.c : Likewise.
18599 * cfg.c : Likewise.
18600 * cfganal.c : Likewise.
18601 * cfgbuild.c : Likewise.
18602 * cfgcleanup.c : Likewise.
18603 * cfgexpand.c : Likewise.
18604 * cfghooks.c : Likewise.
18605 * cfgloop.c : Likewise.
18606 * cfgloop.h : Likewise.
18607 * cfgloopanal.c : Likewise.
18608 * cfgloopmanip.c : Likewise.
18609 * cfgrtl.c : Likewise.
18610 * cgraph.c : Likewise.
18611 * cgraphbuild.c : Likewise.
18612 * cgraphclones.c : Likewise.
18613 * cgraphunit.c : Likewise.
18614 * cilk-common.c : Likewise.
18615 * combine-stack-adj.c : Likewise.
18616 * combine.c : Likewise.
18617 * compare-elim.c : Likewise.
18618 * context.c : Likewise.
18619 * convert.c : Likewise.
18620 * coverage.c : Likewise.
18621 * cppbuiltin.c : Likewise.
18622 * cprop.c : Likewise.
18623 * cse.c : Likewise.
18624 * cselib.c : Likewise.
18625 * data-streamer-in.c : Likewise.
18626 * data-streamer-out.c : Likewise.
18627 * data-streamer.c : Likewise.
18628 * data-streamer.h : Likewise.
18629 * dbxout.c : Likewise.
18630 * dce.c : Likewise.
18631 * ddg.c : Likewise.
18632 * debug.c : Likewise.
18633 * df-core.c : Likewise.
18634 * df-problems.c : Likewise.
18635 * df-scan.c : Likewise.
18637 * dfp.c : Likewise.
18638 * dojump.c : Likewise.
18639 * dominance.c : Likewise.
18640 * domwalk.c : Likewise.
18641 * double-int.c : Likewise.
18642 * dse.c : Likewise.
18643 * dumpfile.c : Likewise.
18644 * dwarf2asm.c : Likewise.
18645 * dwarf2cfi.c : Likewise.
18646 * dwarf2out.c : Likewise.
18647 * emit-rtl.c : Likewise.
18648 * et-forest.c : Likewise.
18649 * except.c : Likewise.
18650 * except.h : Likewise.
18651 * explow.c : Likewise.
18652 * expmed.c : Likewise.
18653 * expr.c : Likewise.
18654 * final.c : Likewise.
18655 * fixed-value.c : Likewise.
18656 * fold-const.c : Likewise.
18657 * function.c : Likewise.
18658 * fwprop.c : Likewise.
18659 * gcc-plugin.h : Likewise.
18660 * gcc.c : Likewise.
18661 * gcse-common.c : Likewise.
18662 * gcse.c : Likewise.
18663 * genattrtab.c : Likewise.
18664 * genautomata.c : Likewise.
18665 * genconditions.c : Likewise.
18666 * genemit.c : Likewise.
18667 * generic-match-head.c : Likewise.
18668 * genextract.c : Likewise.
18669 * gengtype-state.c : Likewise.
18670 * gengtype.c : Likewise.
18671 * genhooks.c : Likewise.
18672 * genmatch.c : Likewise.
18673 * genmodes.c : Likewise.
18674 * genrecog.c : Likewise.
18675 * gensupport.c : Likewise.
18676 * ggc-common.c : Likewise.
18677 * ggc-internal.h : Likewise.
18678 * ggc-none.c : Likewise.
18679 * ggc-page.c : Likewise.
18680 * gimple-builder.c : Likewise.
18681 * gimple-expr.c : Likewise.
18682 * gimple-fold.c : Likewise.
18683 * gimple-iterator.c : Likewise.
18684 * gimple-low.c : Likewise.
18685 * gimple-match-head.c : Likewise.
18686 * gimple-pretty-print.c : Likewise.
18687 * gimple-ssa-isolate-paths.c : Likewise.
18688 * gimple-ssa-strength-reduction.c : Likewise.
18689 * gimple-ssa.h : Likewise.
18690 * gimple-streamer-in.c : Likewise.
18691 * gimple-streamer-out.c : Likewise.
18692 * gimple-streamer.h : Likewise.
18693 * gimple-walk.c : Likewise.
18694 * gimple.c : Likewise.
18695 * gimplify-me.c : Likewise.
18696 * gimplify.c : Likewise.
18697 * godump.c : Likewise.
18698 * graph.c : Likewise.
18699 * graphds.c : Likewise.
18700 * graphite-blocking.c : Likewise.
18701 * graphite-dependences.c : Likewise.
18702 * graphite-interchange.c : Likewise.
18703 * graphite-isl-ast-to-gimple.c : Likewise.
18704 * graphite-optimize-isl.c : Likewise.
18705 * graphite-poly.c : Likewise.
18706 * graphite-scop-detection.c : Likewise.
18707 * graphite-sese-to-poly.c : Likewise.
18708 * graphite.c : Likewise.
18709 * haifa-sched.c : Likewise.
18710 * hard-reg-set.h : Likewise.
18711 * hw-doloop.c : Likewise.
18712 * ifcvt.c : Likewise.
18713 * inchash.c : Likewise.
18714 * incpath.c : Likewise.
18715 * init-regs.c : Likewise.
18716 * input.c : Likewise.
18717 * internal-fn.c : Likewise.
18718 * ipa-chkp.c : Likewise.
18719 * ipa-comdats.c : Likewise.
18720 * ipa-cp.c : Likewise.
18721 * ipa-devirt.c : Likewise.
18722 * ipa-icf-gimple.c : Likewise.
18723 * ipa-icf.c : Likewise.
18724 * ipa-inline-analysis.c : Likewise.
18725 * ipa-inline-transform.c : Likewise.
18726 * ipa-inline.c : Likewise.
18727 * ipa-polymorphic-call.c : Likewise.
18728 * ipa-profile.c : Likewise.
18729 * ipa-prop.c : Likewise.
18730 * ipa-pure-const.c : Likewise.
18731 * ipa-ref.c : Likewise.
18732 * ipa-reference.c : Likewise.
18733 * ipa-split.c : Likewise.
18734 * ipa-utils.c : Likewise.
18735 * ipa-visibility.c : Likewise.
18736 * ipa.c : Likewise.
18737 * ira-build.c : Likewise.
18738 * ira-color.c : Likewise.
18739 * ira-conflicts.c : Likewise.
18740 * ira-costs.c : Likewise.
18741 * ira-emit.c : Likewise.
18742 * ira-lives.c : Likewise.
18743 * ira.c : Likewise.
18744 * jump.c : Likewise.
18745 * langhooks.c : Likewise.
18746 * lcm.c : Likewise.
18747 * libfuncs.h : Likewise.
18748 * lists.c : Likewise.
18749 * loop-doloop.c : Likewise.
18750 * loop-init.c : Likewise.
18751 * loop-invariant.c : Likewise.
18752 * loop-iv.c : Likewise.
18753 * loop-unroll.c : Likewise.
18754 * lower-subreg.c : Likewise.
18755 * lra-assigns.c : Likewise.
18756 * lra-coalesce.c : Likewise.
18757 * lra-constraints.c : Likewise.
18758 * lra-eliminations.c : Likewise.
18759 * lra-lives.c : Likewise.
18760 * lra-remat.c : Likewise.
18761 * lra-spills.c : Likewise.
18762 * lra.c : Likewise.
18763 * lto-cgraph.c : Likewise.
18764 * lto-compress.c : Likewise.
18765 * lto-opts.c : Likewise.
18766 * lto-section-in.c : Likewise.
18767 * lto-section-out.c : Likewise.
18768 * lto-streamer-in.c : Likewise.
18769 * lto-streamer-out.c : Likewise.
18770 * lto-streamer.c : Likewise.
18771 * lto-streamer.h : Likewise.
18772 * mcf.c : Likewise.
18773 * mode-switching.c : Likewise.
18774 * modulo-sched.c : Likewise.
18775 * omega.c : Likewise.
18776 * omp-low.c : Likewise.
18777 * optabs.c : Likewise.
18778 * opts-global.c : Likewise.
18779 * opts.h : Likewise.
18780 * passes.c : Likewise.
18781 * plugin.c : Likewise.
18782 * postreload-gcse.c : Likewise.
18783 * postreload.c : Likewise.
18784 * predict.c : Likewise.
18785 * print-rtl.c : Likewise.
18786 * print-tree.c : Likewise.
18787 * profile.c : Likewise.
18788 * read-md.c : Likewise.
18789 * read-md.h : Likewise.
18790 * read-rtl.c : Likewise.
18791 * real.c : Likewise.
18792 * realmpfr.c : Likewise.
18793 * recog.c : Likewise.
18794 * ree.c : Likewise.
18795 * reg-stack.c : Likewise.
18796 * regcprop.c : Likewise.
18797 * reginfo.c : Likewise.
18798 * regrename.c : Likewise.
18799 * regstat.c : Likewise.
18800 * reload.c : Likewise.
18801 * reload1.c : Likewise.
18802 * reorg.c : Likewise.
18803 * resource.c : Likewise.
18804 * rtl-chkp.c : Likewise.
18805 * rtl.c : Likewise.
18806 * rtl.h : Likewise.
18807 * rtlanal.c : Likewise.
18808 * rtlhash.c : Likewise.
18809 * rtlhash.h : Likewise.
18810 * rtlhooks.c : Likewise.
18811 * sanopt.c : Likewise.
18812 * sched-deps.c : Likewise.
18813 * sched-ebb.c : Likewise.
18814 * sched-rgn.c : Likewise.
18815 * sched-vis.c : Likewise.
18816 * sdbout.c : Likewise.
18817 * sel-sched-dump.c : Likewise.
18818 * sel-sched-ir.c : Likewise.
18819 * sel-sched-ir.h : Likewise.
18820 * sel-sched.c : Likewise.
18821 * sese.c : Likewise.
18822 * shrink-wrap.c : Likewise.
18823 * shrink-wrap.h : Likewise.
18824 * simplify-rtx.c : Likewise.
18825 * stack-ptr-mod.c : Likewise.
18826 * statistics.c : Likewise.
18827 * stmt.c : Likewise.
18828 * stor-layout.c : Likewise.
18829 * store-motion.c : Likewise.
18830 * stringpool.c : Likewise.
18831 * symtab.c : Likewise.
18832 * target-globals.c : Likewise.
18833 * targhooks.c : Likewise.
18834 * tlink.c : Likewise.
18835 * toplev.c : Likewise.
18836 * tracer.c : Likewise.
18837 * trans-mem.c : Likewise.
18838 * tree-affine.c : Likewise.
18839 * tree-affine.h : Likewise.
18840 * tree-browser.c : Likewise.
18841 * tree-call-cdce.c : Likewise.
18842 * tree-cfg.c : Likewise.
18843 * tree-cfgcleanup.c : Likewise.
18844 * tree-chkp-opt.c : Likewise.
18845 * tree-chkp.c : Likewise.
18846 * tree-chrec.c : Likewise.
18847 * tree-complex.c : Likewise.
18848 * tree-data-ref.c : Likewise.
18849 * tree-dfa.c : Likewise.
18850 * tree-diagnostic.c : Likewise.
18851 * tree-dump.c : Likewise.
18852 * tree-eh.c : Likewise.
18853 * tree-eh.h : Likewise.
18854 * tree-emutls.c : Likewise.
18855 * tree-hasher.h : Likewise.
18856 * tree-if-conv.c : Likewise.
18857 * tree-inline.c : Likewise.
18858 * tree-inline.h : Likewise.
18859 * tree-into-ssa.c : Likewise.
18860 * tree-iterator.c : Likewise.
18861 * tree-loop-distribution.c : Likewise.
18862 * tree-nested.c : Likewise.
18863 * tree-nrv.c : Likewise.
18864 * tree-object-size.c : Likewise.
18865 * tree-outof-ssa.c : Likewise.
18866 * tree-parloops.c : Likewise.
18867 * tree-phinodes.c : Likewise.
18868 * tree-predcom.c : Likewise.
18869 * tree-pretty-print.c : Likewise.
18870 * tree-profile.c : Likewise.
18871 * tree-scalar-evolution.c : Likewise.
18872 * tree-sra.c : Likewise.
18873 * tree-ssa-address.c : Likewise.
18874 * tree-ssa-alias.c : Likewise.
18875 * tree-ssa-ccp.c : Likewise.
18876 * tree-ssa-coalesce.c : Likewise.
18877 * tree-ssa-copy.c : Likewise.
18878 * tree-ssa-copyrename.c : Likewise.
18879 * tree-ssa-dce.c : Likewise.
18880 * tree-ssa-dom.c : Likewise.
18881 * tree-ssa-dse.c : Likewise.
18882 * tree-ssa-forwprop.c : Likewise.
18883 * tree-ssa-ifcombine.c : Likewise.
18884 * tree-ssa-live.c : Likewise.
18885 * tree-ssa-loop-ch.c : Likewise.
18886 * tree-ssa-loop-im.c : Likewise.
18887 * tree-ssa-loop-ivcanon.c : Likewise.
18888 * tree-ssa-loop-ivopts.c : Likewise.
18889 * tree-ssa-loop-manip.c : Likewise.
18890 * tree-ssa-loop-niter.c : Likewise.
18891 * tree-ssa-loop-prefetch.c : Likewise.
18892 * tree-ssa-loop-unswitch.c : Likewise.
18893 * tree-ssa-loop.c : Likewise.
18894 * tree-ssa-math-opts.c : Likewise.
18895 * tree-ssa-operands.c : Likewise.
18896 * tree-ssa-phiopt.c : Likewise.
18897 * tree-ssa-phiprop.c : Likewise.
18898 * tree-ssa-pre.c : Likewise.
18899 * tree-ssa-propagate.c : Likewise.
18900 * tree-ssa-reassoc.c : Likewise.
18901 * tree-ssa-sccvn.c : Likewise.
18902 * tree-ssa-scopedtables.c : Likewise.
18903 * tree-ssa-sink.c : Likewise.
18904 * tree-ssa-strlen.c : Likewise.
18905 * tree-ssa-structalias.c : Likewise.
18906 * tree-ssa-tail-merge.c : Likewise.
18907 * tree-ssa-ter.c : Likewise.
18908 * tree-ssa-threadedge.c : Likewise.
18909 * tree-ssa-threadupdate.c : Likewise.
18910 * tree-ssa-uncprop.c : Likewise.
18911 * tree-ssa-uninit.c : Likewise.
18912 * tree-ssa.c : Likewise.
18913 * tree-ssanames.c : Likewise.
18914 * tree-stdarg.c : Likewise.
18915 * tree-streamer-in.c : Likewise.
18916 * tree-streamer-out.c : Likewise.
18917 * tree-streamer.c : Likewise.
18918 * tree-streamer.h : Likewise.
18919 * tree-switch-conversion.c : Likewise.
18920 * tree-tailcall.c : Likewise.
18921 * tree-vect-data-refs.c : Likewise.
18922 * tree-vect-generic.c : Likewise.
18923 * tree-vect-loop-manip.c : Likewise.
18924 * tree-vect-loop.c : Likewise.
18925 * tree-vect-patterns.c : Likewise.
18926 * tree-vect-slp.c : Likewise.
18927 * tree-vect-stmts.c : Likewise.
18928 * tree-vectorizer.c : Likewise.
18929 * tree-vectorizer.h : Likewise.
18930 * tree-vrp.c : Likewise.
18931 * tree.c : Likewise.
18932 * tsan.c : Likewise.
18933 * ubsan.c : Likewise.
18934 * valtrack.c : Likewise.
18935 * valtrack.h : Likewise.
18936 * value-prof.c : Likewise.
18937 * var-tracking.c : Likewise.
18938 * varasm.c : Likewise.
18939 * varpool.c : Likewise.
18941 * vmsdbgout.c : Likewise.
18942 * vtable-verify.c : Likewise.
18943 * vtable-verify.h : Likewise.
18944 * web.c : Likewise.
18945 * wide-int.cc : Likewise.
18946 * xcoffout.c : Likewise.
18947 * config/aarch64/aarch64-builtins.c : Likewise.
18948 * config/aarch64/aarch64.c : Likewise.
18949 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
18950 * config/alpha/alpha.c : Likewise.
18951 * config/arc/arc.c : Likewise.
18952 * config/arm/aarch-common.c : Likewise.
18953 * config/arm/arm-builtins.c : Likewise.
18954 * config/arm/arm-c.c : Likewise.
18955 * config/arm/arm.c : Likewise.
18956 * config/avr/avr-c.c : Likewise.
18957 * config/avr/avr-log.c : Likewise.
18958 * config/avr/avr.c : Likewise.
18959 * config/bfin/bfin.c : Likewise.
18960 * config/c6x/c6x.c : Likewise.
18961 * config/cr16/cr16.c : Likewise.
18962 * config/cris/cris.c : Likewise.
18963 * config/darwin-c.c : Likewise.
18964 * config/darwin.c : Likewise.
18965 * config/default-c.c : Likewise.
18966 * config/epiphany/epiphany.c : Likewise.
18967 * config/epiphany/mode-switch-use.c : Likewise.
18968 * config/epiphany/resolve-sw-modes.c : Likewise.
18969 * config/fr30/fr30.c : Likewise.
18970 * config/frv/frv.c : Likewise.
18971 * config/ft32/ft32.c : Likewise.
18972 * config/glibc-c.c : Likewise.
18973 * config/h8300/h8300.c : Likewise.
18974 * config/i386/i386-c.c : Likewise.
18975 * config/i386/i386.c : Likewise.
18976 * config/i386/msformat-c.c : Likewise.
18977 * config/i386/winnt-cxx.c : Likewise.
18978 * config/i386/winnt-stubs.c : Likewise.
18979 * config/i386/winnt.c : Likewise.
18980 * config/ia64/ia64-c.c : Likewise.
18981 * config/ia64/ia64.c : Likewise.
18982 * config/iq2000/iq2000.c : Likewise.
18983 * config/lm32/lm32.c : Likewise.
18984 * config/m32c/m32c-pragma.c : Likewise.
18985 * config/m32c/m32c.c : Likewise.
18986 * config/m32r/m32r.c : Likewise.
18987 * config/m68k/m68k.c : Likewise.
18988 * config/mcore/mcore.c : Likewise.
18989 * config/mep/mep-pragma.c : Likewise.
18990 * config/mep/mep.c : Likewise.
18991 * config/microblaze/microblaze-c.c : Likewise.
18992 * config/microblaze/microblaze.c : Likewise.
18993 * config/mips/mips.c : Likewise.
18994 * config/mmix/mmix.c : Likewise.
18995 * config/mn10300/mn10300.c : Likewise.
18996 * config/moxie/moxie.c : Likewise.
18997 * config/msp430/msp430-c.c : Likewise.
18998 * config/msp430/msp430.c : Likewise.
18999 * config/nds32/nds32-cost.c : Likewise.
19000 * config/nds32/nds32-fp-as-gp.c : Likewise.
19001 * config/nds32/nds32-intrinsic.c : Likewise.
19002 * config/nds32/nds32-isr.c : Likewise.
19003 * config/nds32/nds32-md-auxiliary.c : Likewise.
19004 * config/nds32/nds32-memory-manipulation.c : Likewise.
19005 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
19006 * config/nds32/nds32-predicates.c : Likewise.
19007 * config/nds32/nds32.c : Likewise.
19008 * config/nios2/nios2.c : Likewise.
19009 * config/nvptx/nvptx.c : Likewise.
19010 * config/pa/pa.c : Likewise.
19011 * config/pdp11/pdp11.c : Likewise.
19012 * config/rl78/rl78-c.c : Likewise.
19013 * config/rl78/rl78.c : Likewise.
19014 * config/rs6000/rs6000-c.c : Likewise.
19015 * config/rs6000/rs6000.c : Likewise.
19016 * config/rx/rx.c : Likewise.
19017 * config/s390/s390-c.c : Likewise.
19018 * config/s390/s390.c : Likewise.
19019 * config/sh/sh-c.c : Likewise.
19020 * config/sh/sh-mem.cc : Likewise.
19021 * config/sh/sh.c : Likewise.
19022 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
19023 * config/sh/sh_treg_combine.cc : Likewise.
19024 * config/sol2-c.c : Likewise.
19025 * config/sol2-cxx.c : Likewise.
19026 * config/sol2-stubs.c : Likewise.
19027 * config/sol2.c : Likewise.
19028 * config/sparc/sparc-c.c : Likewise.
19029 * config/sparc/sparc.c : Likewise.
19030 * config/spu/spu-c.c : Likewise.
19031 * config/spu/spu.c : Likewise.
19032 * config/stormy16/stormy16.c : Likewise.
19033 * config/tilegx/mul-tables.c : Likewise.
19034 * config/tilegx/tilegx-c.c : Likewise.
19035 * config/tilegx/tilegx.c : Likewise.
19036 * config/tilepro/mul-tables.c : Likewise.
19037 * config/tilepro/tilepro-c.c : Likewise.
19038 * config/tilepro/tilepro.c : Likewise.
19039 * config/v850/v850-c.c : Likewise.
19040 * config/v850/v850.c : Likewise.
19041 * config/vax/vax.c : Likewise.
19042 * config/visium/visium.c : Likewise.
19043 * config/vms/vms-c.c : Likewise.
19044 * config/vms/vms.c : Likewise.
19045 * config/vxworks.c : Likewise.
19046 * config/winnt-c.c : Likewise.
19047 * config/xtensa/xtensa.c : Likewise.
19049 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
19052 * ipa-utils.h (warn_types_mismatch): Update prototype.
19053 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
19055 (type_mismatch_p): New function.
19056 (warn_types_mismatch): Reorg to work better on non-C++ types.
19057 (odr_types_equivalent_p): Add loc1/loc2 parameters.
19058 (add_type_duplicate): Update.
19060 2015-06-08 Tom de Vries <tom@codesourcery.com>
19062 PR rtl-optimization/66444
19063 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
19066 2015-06-08 Richard Biener <rguenther@suse.de>
19068 PR tree-optimization/66422
19069 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
19070 block after inserted gcc_unreachable.
19072 2015-06-08 Nick Clifton <nickc@redhat.com>
19074 * config/rx/rx.c (rx_function_value): Do not promote vector types.
19075 (rx_promote_function_mode): Likewise.
19076 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
19078 2015-06-08 Jakub Jelinek <jakub@redhat.com>
19080 * genattrtab.c (insn_alternatives): Change type from int *
19082 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
19083 (get_attr_value): Change type of num_alt to uint64_t.
19084 (compute_alternative_mask): Change return type from
19085 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
19086 (make_alternative_compare, mk_attr_alt): Change argument type
19087 from int to uint64_t.
19088 (simplify_test_exp): Change type of i from int to uint64_t.
19089 Shift ((uint64_t) 1) instead of 1 up.
19090 (main): Adjust oballocvec first argument from int to uint64_t.
19091 Shift ((uint64_t) 1) instead of 1 up.
19093 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
19096 * gdbhooks.py: Import sys.
19097 (intptr): New function. Replace int(...) by intptr(...).
19099 2015-06-08 Richard Biener <rguenther@suse.de>
19101 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
19102 adjustment for gaps at the end of a SLP load group properly.
19103 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
19104 all permutations we can generate.
19105 (vect_transform_slp_perm_load): Use the correct group-size.
19107 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
19109 * genmatch.c (expr::gen_transform): For conditions, guess the type
19110 from the second operand.
19112 2015-06-08 Tom de Vries <tom@codesourcery.com>
19114 PR tree-optimization/66442
19115 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
19116 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
19117 if the loop latch is not a singleton. Use
19118 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
19120 2015-06-08 Marek Polacek <polacek@redhat.com>
19123 * toplev.c (check_global_declaration): Don't warn about artificial
19126 2015-06-08 Tom de Vries <tom@codesourcery.com>
19128 PR tree-optimization/66436
19129 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
19131 * gimplify.c: Add tree-dump.h include.
19132 (gimplify_function_tree): Dump function to gimple dump file.
19133 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
19136 2015-06-08 Tom de Vries <tom@codesourcery.com>
19138 PR tree-optimization/66435
19139 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
19142 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
19144 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
19145 of ptr_type_node to not be ptr_to_node.
19146 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
19147 TREE_TYPE of pointers.
19148 * gimple-expr.c (useless_type_conversion): Reorder the check for
19149 function pointers and TYPE_CANONICAL.
19151 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
19154 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
19155 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
19156 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
19158 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
19159 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
19160 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
19161 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
19162 and non iso if unix2003.
19164 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
19166 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
19168 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
19170 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
19171 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
19172 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
19173 except.c, final.c, function.c, gcse-common.c, genemit.c,
19174 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
19175 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
19176 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
19177 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
19180 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
19182 * combine.c (combine_split_insns): Remove cast.
19183 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
19184 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
19185 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
19186 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
19187 * genemit.c (gen_split): Change return type of generated functions to
19189 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
19190 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
19191 gen_peephole2_* functions.
19192 (print_subroutine, main): Likewise.
19193 * recog.c (peephole2_optimize): Remove cast.
19194 (peep2_next_insn): Promote return type to rtx_insn.
19195 * recog.h (peep2_next_insn): Fix prototype.
19196 * rtl.h (try_split, split_insns): Likewise.
19198 2015-06-06 DJ Delorie <dj@redhat.com>
19200 * config/msp430/msp430.c (msp430_asm_integer): Support addition
19201 and subtraction too.
19203 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
19206 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
19207 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
19208 instead of Snd. Disparage Sid/z alternative with '^'.
19210 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
19212 * dwarf2out.c: Remove deferred_locations*.
19213 (dwarf2_debug_hooks): Add early_finish hook.
19214 Remove global_decl hook.
19215 Add early_global_decl and late_global_decl hook.
19216 New global early_dwarf.
19217 New structure set_early_dwarf.
19218 (output_die): Indicate whether a DIE was generated early
19219 when generating assembly with -dA.
19220 (struct limbo_die_struct): Document created_for field.
19221 Remove file_table_last_lookup.
19222 (remove_AT): Return TRUE if successful.
19223 (remove_child_TAG): Clear die_parent.
19224 (reparent_child): New function abstracted from...
19225 (splice_child_die): ...here.
19226 (new_die): ICE if a DIE ends up in limbo too late.
19228 (defer_location): Remove.
19229 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
19230 (fill_variable_array_bounds): New.
19231 (decl_start_label): Call fill_variable_array_bounds.
19232 (gen_formal_parameter_die): Rewrite to reuse previously generated
19234 (gen_subprogram_die): Same.
19235 (gen_variable_die): Same.
19236 (gen_const_die): Same.
19237 (gen_label_die): Same.
19238 (gen_lexical_block_die): Same.
19239 (decl_will_get_specification_p): New.
19240 (local_function_static): New.
19241 (gen_struct_or_union_type_die): Fill in variable-length fields.
19242 (gen_typedef_die): Fill in variable-length typedefs.
19243 (gen_tagged_type_die): Gracefully return on error_mark_node.
19244 Handle re-entrancy.
19245 (gen_type_die_with_usage): Handle variable-length types.
19246 Remove duplicate code for ARRAY_TYPE case.
19247 (process_scope_var): Only process imported modules during early
19249 (dwarf2out_early_global_decl): New.
19250 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
19251 (dwarf2out_type_decl): Set early_dwarf while calling
19253 (dwarf2out_decl): Verify that we did not recreate a previously
19255 Do not return on DECL_EXTERNALs in VAR_DECLs.
19256 Abstract some code to local_function_static.
19257 (lookup_filename): Remove use of file_table_last_lookup.
19258 Gracefully exit on missing file_name.
19259 (dwarf2out_finish): Verify limbo list.
19260 Remove deferred_locations_list use.
19261 Move deferred_asm_name and limbo flushing to...
19262 (dwarf2out_early_finish): ...here. New.
19263 (dwarf2out_c_finalize): Remove set of deferred_location_list,
19264 deferred_asm_name, and file_table_last_lookup.
19265 * cgraph.h (referred_to_p): Add default argument.
19266 * cgraphunit.c (referred_to_p): Add and handle include_self
19268 (analyze_functions): Add first_time argument.
19269 Call check_global_declaration for all symbols.
19270 Call late_global_decl for nodes for moribund nodes.
19271 (finalize_compilation_unit): Add new argument to
19273 Call early_global_decl for functions.
19274 Call early_finish debug hook.
19275 * dbxout.c (dbxout_early_global_decl): New.
19276 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
19277 (dbx_debug_hooks): Add new hooks.
19278 (xcoff_debug_hooks): Same.
19279 * debug.c (do_nothing_debug_hooks): Add early_finish field.
19280 Add early and late debug hooks.
19281 Remove global_decl hook.
19282 * debug.h (struct gcc_debug_hooks): Add early_finish,
19283 early_global_decl, and late_global_decl fields.
19284 Remove global_decl field.
19285 Document gcc_debug_hooks.
19286 * gengtype.c (output_typename): Remove.
19287 * godump.c (go_early_global_decl): New.
19288 (go_late_global_decl): New.
19289 (go_global_decl): Remove.
19290 (dump_go_spec_init): Remove global_decl. Add
19291 {early,late}_global_decl.
19292 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
19293 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
19294 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
19295 (write_global_declarations): Remove.
19296 (global_decl_processing): New.
19297 * langhooks.h (struct lang_hooks_for_decls): Remove
19298 final_write_globals field.
19299 Add post_compilation_parsing_cleanups field.
19300 * passes.c (rest_of_decl_compilation): Call early_global_decl.
19301 * sdbout.c: Add early and late_global_decl hooks. Remove
19302 sdbout_global_decl hook.
19303 Add early_finish field for sdb_debug_hooks.
19304 (sdbout_global_decl): Remove.
19305 (sdbout_early_global_decl): New.
19306 (sdbout_late_global_decl): New.
19307 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
19308 * toplev.c (check_global_declaration): Rename from
19309 check_global_declaration_1.
19310 Adapt to use symtab infrastructure.
19311 (check_global_declarations): Remove.
19312 (emit_debug_global_declarations): Remove.
19313 (compile_file): Remove call to final_write_globals langhook.
19314 Run the actual compilation process.
19315 Perform any post compilation parser cleanups.
19316 Generate late debug info.
19317 * toplev.h (check_global_declaration): New.
19318 (check_global_declaration_1): Remove.
19319 (check_global_declarations): Remove.
19320 (write_global_declarations): Remove.
19321 (emit_debug_global_declarations): Remove.
19322 (global_decl_processing): New.
19323 * tree-core.h (struct tree_block): Add DIE field.
19324 * tree.h (BLOCK_DIE): New.
19325 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
19327 (vmsdbgout_early_global_decl): New.
19328 (vmsdbgout_late_global_decl): New.
19329 Add early_finish debug hook field to vmsdbg_debug_hooks.
19330 Remove vmsdbgout_decl to vmsdbgout_function_decl.
19331 Add early and late_global_decl debug hooks.
19333 2015-06-05 Julian Brown <julian@codesourcery.com>
19334 Sandra Loosemore <sandra@codesourcery.com>
19336 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
19337 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
19338 to print-sysroot-suffix.sh script.
19340 2015-06-05 Tom de Vries <tom@codesourcery.com>
19342 merge from gomp4 branch:
19343 2015-05-28 Tom de Vries <tom@codesourcery.com>
19345 PR tree-optimization/65443
19346 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
19347 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
19348 (try_transform_to_exit_first_loop_alt): New function.
19349 (transform_to_exit_first_loop): Use
19350 try_transform_to_exit_first_loop_alt.
19352 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
19354 * builtins.c (expand_builtin_atomic_compare_exchange): Call
19355 emit_cmp_and_jump_insns with the mode of target.
19357 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19359 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
19361 2015-06-04 DJ Delorie <dj@redhat.com>
19363 * config/msp430/msp430.md (movsi_s): New. Special case for
19364 storing a 20-bit symbol into a 32-bit register.
19365 * config/msp430/msp430.c (msp430_subreg): Add support for it.
19366 * config/msp430/predicates.md (msp430_symbol_operand): New.
19368 2015-06-04 Sriraman Tallam <tmsriram@google.com>
19370 * c-family/c-common.c (noplt): New attribute.
19371 (handle_noplt_attribute): New handler.
19372 * calls.c (prepare_call_address): Check for noplt
19374 * config/i386/i386.c (ix86_expand_call): Check
19375 for noplt attribute.
19376 (ix86_nopic_noplt_attribute_p): New function.
19377 (ix86_output_call_insn): Output indirect call for non-pic
19379 * doc/extend.texi (noplt): Document new attribute.
19380 * doc/invoke.texi: Document new attribute.
19382 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
19384 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
19385 real.h, and fixed-value.h when included in host source files.
19386 * double-int.h: Remove redundant #includes listed above.
19387 * fixed-value.h: Likewise.
19388 * real.h: Likewise.
19389 * wide-int.h: Likewise.
19390 * inchash.h: Likewise.
19391 * rtl.h: Add some include files When included from a generator file.
19392 * target.h: Remove wide-int.h and insn-modes.h from the include list.
19393 * internal-fn.h: Don't include coretypes.h.
19394 * alias.c: Adjust includes for restructured coretypes.h.
19395 * asan.c: Likewise.
19396 * attribs.c: Likewise.
19397 * auto-inc-dec.c: Likewise.
19398 * auto-profile.c: Likewise.
19399 * bb-reorder.c: Likewise.
19400 * bt-load.c: Likewise.
19401 * builtins.c: Likewise.
19402 * caller-save.c: Likewise.
19403 * calls.c: Likewise.
19404 * ccmp.c: Likewise.
19406 * cfganal.c: Likewise.
19407 * cfgbuild.c: Likewise.
19408 * cfgcleanup.c: Likewise.
19409 * cfgexpand.c: Likewise.
19410 * cfghooks.c: Likewise.
19411 * cfgloop.c: Likewise.
19412 * cfgloop.h: Likewise.
19413 * cfgloopanal.c: Likewise.
19414 * cfgloopmanip.c: Likewise.
19415 * cfgrtl.c: Likewise.
19416 * cgraph.c: Likewise.
19417 * cgraphbuild.c: Likewise.
19418 * cgraphclones.c: Likewise.
19419 * cgraphunit.c: Likewise.
19420 * cilk-common.c: Likewise.
19421 * combine-stack-adj.c: Likewise.
19422 * combine.c: Likewise.
19423 * compare-elim.c: Likewise.
19424 * convert.c: Likewise.
19425 * coverage.c: Likewise.
19426 * cppbuiltin.c: Likewise.
19427 * cprop.c: Likewise.
19429 * cselib.c: Likewise.
19430 * data-streamer-in.c: Likewise.
19431 * data-streamer-out.c: Likewise.
19432 * data-streamer.c: Likewise.
19433 * dbxout.c: Likewise.
19436 * debug.c: Likewise.
19437 * df-core.c: Likewise.
19438 * df-problems.c: Likewise.
19439 * df-scan.c: Likewise.
19442 * dojump.c: Likewise.
19443 * dominance.c: Likewise.
19444 * domwalk.c: Likewise.
19445 * double-int.c: Likewise.
19447 * dumpfile.c: Likewise.
19448 * dwarf2asm.c: Likewise.
19449 * dwarf2cfi.c: Likewise.
19450 * dwarf2out.c: Likewise.
19451 * dwarf2out.h: Likewise.
19452 * emit-rtl.c: Likewise.
19453 * et-forest.c: Likewise.
19454 * except.c: Likewise.
19455 * explow.c: Likewise.
19456 * expmed.c: Likewise.
19457 * expr.c: Likewise.
19458 * final.c: Likewise.
19459 * fixed-value.c: Likewise.
19460 * fold-const.c: Likewise.
19461 * function.c: Likewise.
19462 * fwprop.c: Likewise.
19463 * gcc-plugin.h: Likewise.
19464 * gcse.c: Likewise.
19465 * generic-match-head.c: Likewise.
19466 * ggc-page.c: Likewise.
19467 * gimple-builder.c: Likewise.
19468 * gimple-expr.c: Likewise.
19469 * gimple-fold.c: Likewise.
19470 * gimple-iterator.c: Likewise.
19471 * gimple-low.c: Likewise.
19472 * gimple-match-head.c: Likewise.
19473 * gimple-pretty-print.c: Likewise.
19474 * gimple-ssa-isolate-paths.c: Likewise.
19475 * gimple-ssa-strength-reduction.c: Likewise.
19476 * gimple-streamer-in.c: Likewise.
19477 * gimple-streamer-out.c: Likewise.
19478 * gimple-streamer.h: Likewise.
19479 * gimple-walk.c: Likewise.
19480 * gimple.c: Likewise.
19481 * gimplify-me.c: Likewise.
19482 * gimplify.c: Likewise.
19483 * godump.c: Likewise.
19484 * graph.c: Likewise.
19485 * graphite-blocking.c: Likewise.
19486 * graphite-dependences.c: Likewise.
19487 * graphite-interchange.c: Likewise.
19488 * graphite-isl-ast-to-gimple.c: Likewise.
19489 * graphite-optimize-isl.c: Likewise.
19490 * graphite-poly.c: Likewise.
19491 * graphite-scop-detection.c: Likewise.
19492 * graphite-sese-to-poly.c: Likewise.
19493 * graphite.c: Likewise.
19494 * haifa-sched.c: Likewise.
19495 * hooks.h: Likewise.
19496 * hw-doloop.c: Likewise.
19497 * ifcvt.c: Likewise.
19498 * incpath.c: Likewise.
19499 * init-regs.c: Likewise.
19500 * internal-fn.c: Likewise.
19501 * ipa-chkp.c: Likewise.
19502 * ipa-comdats.c: Likewise.
19503 * ipa-cp.c: Likewise.
19504 * ipa-devirt.c: Likewise.
19505 * ipa-icf-gimple.c: Likewise.
19506 * ipa-icf.c: Likewise.
19507 * ipa-inline-analysis.c: Likewise.
19508 * ipa-inline-transform.c: Likewise.
19509 * ipa-inline.c: Likewise.
19510 * ipa-polymorphic-call.c: Likewise.
19511 * ipa-profile.c: Likewise.
19512 * ipa-prop.c: Likewise.
19513 * ipa-pure-const.c: Likewise.
19514 * ipa-ref.c: Likewise.
19515 * ipa-reference.c: Likewise.
19516 * ipa-split.c: Likewise.
19517 * ipa-utils.c: Likewise.
19518 * ipa-visibility.c: Likewise.
19520 * ira-build.c: Likewise.
19521 * ira-color.c: Likewise.
19522 * ira-conflicts.c: Likewise.
19523 * ira-costs.c: Likewise.
19524 * ira-emit.c: Likewise.
19525 * ira-lives.c: Likewise.
19527 * jump.c: Likewise.
19528 * langhooks.c: Likewise.
19530 * loop-doloop.c: Likewise.
19531 * loop-init.c: Likewise.
19532 * loop-invariant.c: Likewise.
19533 * loop-iv.c: Likewise.
19534 * loop-unroll.c: Likewise.
19535 * lower-subreg.c: Likewise.
19536 * lra-assigns.c: Likewise.
19537 * lra-coalesce.c: Likewise.
19538 * lra-constraints.c: Likewise.
19539 * lra-eliminations.c: Likewise.
19540 * lra-lives.c: Likewise.
19541 * lra-remat.c: Likewise.
19542 * lra-spills.c: Likewise.
19544 * lto-cgraph.c: Likewise.
19545 * lto-compress.c: Likewise.
19546 * lto-opts.c: Likewise.
19547 * lto-section-in.c: Likewise.
19548 * lto-section-out.c: Likewise.
19549 * lto-streamer-in.c: Likewise.
19550 * lto-streamer-out.c: Likewise.
19551 * lto-streamer.c: Likewise.
19553 * mode-switching.c: Likewise.
19554 * modulo-sched.c: Likewise.
19555 * omega.c: Likewise.
19556 * omp-low.c: Likewise.
19557 * optabs.c: Likewise.
19558 * opts-global.c: Likewise.
19559 * passes.c: Likewise.
19560 * plugin.c: Likewise.
19561 * postreload-gcse.c: Likewise.
19562 * postreload.c: Likewise.
19563 * predict.c: Likewise.
19564 * print-rtl.c: Likewise.
19565 * print-tree.c: Likewise.
19566 * profile.c: Likewise.
19567 * real.c: Likewise.
19568 * realmpfr.c: Likewise.
19569 * realmpfr.h: Likewise.
19570 * recog.c: Likewise.
19572 * reg-stack.c: Likewise.
19573 * regcprop.c: Likewise.
19574 * reginfo.c: Likewise.
19575 * regrename.c: Likewise.
19576 * regs.h: Likewise.
19577 * regstat.c: Likewise.
19578 * reload.c: Likewise.
19579 * reload1.c: Likewise.
19580 * reorg.c: Likewise.
19581 * resource.c: Likewise.
19582 * rtl-chkp.c: Likewise.
19583 * rtlanal.c: Likewise.
19584 * rtlhooks.c: Likewise.
19585 * sanopt.c: Likewise.
19586 * sched-deps.c: Likewise.
19587 * sched-ebb.c: Likewise.
19588 * sched-rgn.c: Likewise.
19589 * sched-vis.c: Likewise.
19590 * sdbout.c: Likewise.
19591 * sel-sched-dump.c: Likewise.
19592 * sel-sched-ir.c: Likewise.
19593 * sel-sched.c: Likewise.
19594 * sese.c: Likewise.
19595 * shrink-wrap.c: Likewise.
19596 * shrink-wrap.h: Likewise.
19597 * simplify-rtx.c: Likewise.
19598 * stack-ptr-mod.c: Likewise.
19599 * statistics.c: Likewise.
19600 * stmt.c: Likewise.
19601 * stor-layout.c: Likewise.
19602 * store-motion.c: Likewise.
19603 * stringpool.c: Likewise.
19604 * symtab.c: Likewise.
19605 * target-globals.c: Likewise.
19606 * targhooks.c: Likewise.
19607 * toplev.c: Likewise.
19608 * tracer.c: Likewise.
19609 * trans-mem.c: Likewise.
19610 * tree-affine.c: Likewise.
19611 * tree-affine.h: Likewise.
19612 * tree-browser.c: Likewise.
19613 * tree-call-cdce.c: Likewise.
19614 * tree-cfg.c: Likewise.
19615 * tree-cfgcleanup.c: Likewise.
19616 * tree-chkp-opt.c: Likewise.
19617 * tree-chkp.c: Likewise.
19618 * tree-chrec.c: Likewise.
19619 * tree-complex.c: Likewise.
19620 * tree-data-ref.c: Likewise.
19621 * tree-dfa.c: Likewise.
19622 * tree-diagnostic.c: Likewise.
19623 * tree-dump.c: Likewise.
19624 * tree-eh.c: Likewise.
19625 * tree-emutls.c: Likewise.
19626 * tree-if-conv.c: Likewise.
19627 * tree-inline.c: Likewise.
19628 * tree-into-ssa.c: Likewise.
19629 * tree-iterator.c: Likewise.
19630 * tree-loop-distribution.c: Likewise.
19631 * tree-nested.c: Likewise.
19632 * tree-nrv.c: Likewise.
19633 * tree-object-size.c: Likewise.
19634 * tree-outof-ssa.c: Likewise.
19635 * tree-parloops.c: Likewise.
19636 * tree-phinodes.c: Likewise.
19637 * tree-predcom.c: Likewise.
19638 * tree-pretty-print.c: Likewise.
19639 * tree-pretty-print.h: Likewise.
19640 * tree-profile.c: Likewise.
19641 * tree-scalar-evolution.c: Likewise.
19642 * tree-sra.c: Likewise.
19643 * tree-ssa-address.c: Likewise.
19644 * tree-ssa-alias.c: Likewise.
19645 * tree-ssa-ccp.c: Likewise.
19646 * tree-ssa-coalesce.c: Likewise.
19647 * tree-ssa-copy.c: Likewise.
19648 * tree-ssa-copyrename.c: Likewise.
19649 * tree-ssa-dce.c: Likewise.
19650 * tree-ssa-dom.c: Likewise.
19651 * tree-ssa-dse.c: Likewise.
19652 * tree-ssa-forwprop.c: Likewise.
19653 * tree-ssa-ifcombine.c: Likewise.
19654 * tree-ssa-live.c: Likewise.
19655 * tree-ssa-loop-ch.c: Likewise.
19656 * tree-ssa-loop-im.c: Likewise.
19657 * tree-ssa-loop-ivcanon.c: Likewise.
19658 * tree-ssa-loop-ivopts.c: Likewise.
19659 * tree-ssa-loop-manip.c: Likewise.
19660 * tree-ssa-loop-niter.c: Likewise.
19661 * tree-ssa-loop-prefetch.c: Likewise.
19662 * tree-ssa-loop-unswitch.c: Likewise.
19663 * tree-ssa-loop.c: Likewise.
19664 * tree-ssa-loop.h: Likewise.
19665 * tree-ssa-math-opts.c: Likewise.
19666 * tree-ssa-operands.c: Likewise.
19667 * tree-ssa-phiopt.c: Likewise.
19668 * tree-ssa-phiprop.c: Likewise.
19669 * tree-ssa-pre.c: Likewise.
19670 * tree-ssa-propagate.c: Likewise.
19671 * tree-ssa-reassoc.c: Likewise.
19672 * tree-ssa-sccvn.c: Likewise.
19673 * tree-ssa-scopedtables.c: Likewise.
19674 * tree-ssa-sink.c: Likewise.
19675 * tree-ssa-strlen.c: Likewise.
19676 * tree-ssa-structalias.c: Likewise.
19677 * tree-ssa-tail-merge.c: Likewise.
19678 * tree-ssa-ter.c: Likewise.
19679 * tree-ssa-threadedge.c: Likewise.
19680 * tree-ssa-threadupdate.c: Likewise.
19681 * tree-ssa-uncprop.c: Likewise.
19682 * tree-ssa-uninit.c: Likewise.
19683 * tree-ssa.c: Likewise.
19684 * tree-ssanames.c: Likewise.
19685 * tree-stdarg.c: Likewise.
19686 * tree-streamer-in.c: Likewise.
19687 * tree-streamer-out.c: Likewise.
19688 * tree-streamer.c: Likewise.
19689 * tree-switch-conversion.c: Likewise.
19690 * tree-tailcall.c: Likewise.
19691 * tree-vect-data-refs.c: Likewise.
19692 * tree-vect-generic.c: Likewise.
19693 * tree-vect-loop-manip.c: Likewise.
19694 * tree-vect-loop.c: Likewise.
19695 * tree-vect-patterns.c: Likewise.
19696 * tree-vect-slp.c: Likewise.
19697 * tree-vect-stmts.c: Likewise.
19698 * tree-vectorizer.c: Likewise.
19699 * tree-vrp.c: Likewise.
19700 * tree.c: Likewise.
19701 * tsan.c: Likewise.
19702 * ubsan.c: Likewise.
19703 * valtrack.c: Likewise.
19704 * value-prof.c: Likewise.
19705 * var-tracking.c: Likewise.
19706 * varasm.c: Likewise.
19707 * varpool.c: Likewise.
19708 * vmsdbgout.c: Likewise.
19709 * vtable-verify.c: Likewise.
19711 * wide-int-print.cc: Likewise.
19712 * wide-int-print.h: Likewise.
19713 * wide-int.cc: Likewise.
19714 * xcoffout.c: Likewise.
19715 * config/aarch64/aarch64-builtins.c: Likewise.
19716 * config/aarch64/aarch64.c: Likewise.
19717 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19718 * config/alpha/alpha.c: Likewise.
19719 * config/arc/arc.c: Likewise.
19720 * config/arm/aarch-common.c: Likewise.
19721 * config/arm/arm-builtins.c: Likewise.
19722 * config/arm/arm-c.c: Likewise.
19723 * config/arm/arm.c: Likewise.
19724 * config/avr/avr-c.c: Likewise.
19725 * config/avr/avr-log.c: Likewise.
19726 * config/avr/avr.c: Likewise.
19727 * config/bfin/bfin.c: Likewise.
19728 * config/c6x/c6x.c: Likewise.
19729 * config/cr16/cr16.c: Likewise.
19730 * config/cris/cris.c: Likewise.
19731 * config/darwin-c.c: Likewise.
19732 * config/darwin.c: Likewise.
19733 * config/default-c.c: Likewise.
19734 * config/epiphany/epiphany.c: Likewise.
19735 * config/epiphany/mode-switch-use.c: Likewise.
19736 * config/epiphany/resolve-sw-modes.c: Likewise.
19737 * config/fr30/fr30.c: Likewise.
19738 * config/frv/frv.c: Likewise.
19739 * config/ft32/ft32.c: Likewise.
19740 * config/glibc-c.c: Likewise.
19741 * config/h8300/h8300.c: Likewise.
19742 * config/i386/i386-c.c: Likewise.
19743 * config/i386/i386.c: Likewise.
19744 * config/i386/msformat-c.c: Likewise.
19745 * config/i386/winnt-cxx.c: Likewise.
19746 * config/i386/winnt-stubs.c: Likewise.
19747 * config/i386/winnt.c: Likewise.
19748 * config/ia64/ia64-c.c: Likewise.
19749 * config/ia64/ia64.c: Likewise.
19750 * config/iq2000/iq2000.c: Likewise.
19751 * config/lm32/lm32.c: Likewise.
19752 * config/m32c/m32c-pragma.c: Likewise.
19753 * config/m32c/m32c.c: Likewise.
19754 * config/m32r/m32r.c: Likewise.
19755 * config/m68k/m68k.c: Likewise.
19756 * config/mcore/mcore.c: Likewise.
19757 * config/mep/mep-pragma.c: Likewise.
19758 * config/mep/mep.c: Likewise.
19759 * config/microblaze/microblaze-c.c: Likewise.
19760 * config/microblaze/microblaze.c: Likewise.
19761 * config/mips/mips.c: Likewise.
19762 * config/mmix/mmix.c: Likewise.
19763 * config/mn10300/mn10300.c: Likewise.
19764 * config/moxie/moxie.c: Likewise.
19765 * config/msp430/msp430-c.c: Likewise.
19766 * config/msp430/msp430.c: Likewise.
19767 * config/nds32/nds32-cost.c: Likewise.
19768 * config/nds32/nds32-fp-as-gp.c: Likewise.
19769 * config/nds32/nds32-intrinsic.c: Likewise.
19770 * config/nds32/nds32-isr.c: Likewise.
19771 * config/nds32/nds32-md-auxiliary.c: Likewise.
19772 * config/nds32/nds32-memory-manipulation.c: Likewise.
19773 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19774 * config/nds32/nds32-predicates.c: Likewise.
19775 * config/nds32/nds32.c: Likewise.
19776 * config/nios2/nios2.c: Likewise.
19777 * config/nvptx/nvptx.c: Likewise.
19778 * config/pa/pa.c: Likewise.
19779 * config/pdp11/pdp11.c: Likewise.
19780 * config/rl78/rl78-c.c: Likewise.
19781 * config/rl78/rl78.c: Likewise.
19782 * config/rs6000/rs6000-c.c: Likewise.
19783 * config/rs6000/rs6000.c: Likewise.
19784 * config/rx/rx.c: Likewise.
19785 * config/s390/s390-c.c: Likewise.
19786 * config/s390/s390.c: Likewise.
19787 * config/sh/sh-c.c: Likewise.
19788 * config/sh/sh-mem.cc: Likewise.
19789 * config/sh/sh.c: Likewise.
19790 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19791 * config/sh/sh_treg_combine.cc: Likewise.
19792 * config/sol2-c.c: Likewise.
19793 * config/sol2-cxx.c: Likewise.
19794 * config/sol2-stubs.c: Likewise.
19795 * config/sol2.c: Likewise.
19796 * config/sparc/sparc-c.c: Likewise.
19797 * config/sparc/sparc.c: Likewise.
19798 * config/spu/spu-c.c: Likewise.
19799 * config/spu/spu.c: Likewise.
19800 * config/stormy16/stormy16.c: Likewise.
19801 * config/tilegx/mul-tables.c: Likewise.
19802 * config/tilegx/tilegx-c.c: Likewise.
19803 * config/tilegx/tilegx.c: Likewise.
19804 * config/tilepro/mul-tables.c: Likewise.
19805 * config/tilepro/tilepro-c.c: Likewise.
19806 * config/tilepro/tilepro.c: Likewise.
19807 * config/v850/v850-c.c: Likewise.
19808 * config/v850/v850.c: Likewise.
19809 * config/vax/vax.c: Likewise.
19810 * config/visium/visium.c: Likewise.
19811 * config/vms/vms-c.c: Likewise.
19812 * config/vms/vms.c: Likewise.
19813 * config/vxworks.c: Likewise.
19814 * config/winnt-c.c: Likewise.
19815 * config/xtensa/xtensa.c: Likewise.
19816 * common/config/bfin/bfin-common.c: Likewise.
19818 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
19820 * tree.h (tree_code_for_canonical_type_merging): New function.
19821 * tree.c (gimple_canonical_types_compatible_p): Use
19822 tree_code_for_canonical_type_merging..
19824 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19828 * doc/tm.texi: Regenerate.
19829 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
19830 * target.def (TARGET_RELAXED_ORDERING): Likewise.
19831 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
19832 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
19833 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
19834 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
19835 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
19836 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
19837 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
19839 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19841 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
19842 register fma steering pass.
19843 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
19844 AARCH64_TUNE_FMA_STEERING.
19846 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
19848 * tree.c (verify_type_variant): Verify that type and variant is
19850 (gimple_canonical_types_compatible_p): Look for main variants.
19852 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
19854 * config.gcc (powerpc*-*-*): Add support for a new configure
19855 option --with-advance-toolchain=<xxx> which overrides using the
19856 default header files, libraries and dynamic linker.
19858 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
19859 specs to support the configure --with-advance-toolchain=<xxx>
19861 (INCLUDE_EXTRA_SPEC): Likewise.
19862 (LINK_OS_EXTRA_SPEC32): Likewise.
19863 (LINK_OK_EXTRA_SPEC64): Likewise.
19864 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
19865 (DYNAMIC_LINKER_PREFIX): Likewise.
19866 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
19868 (GLIBC_DYNAMIC_LINKER32): Likewise.
19869 (GLIBC_DYNAMIC_LINKER64): Likewise.
19870 (LINK_OS_LINUX_SPEC32): Likewise.
19871 (LINK_OS_LINUX_SPEC64): Likewise.
19873 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
19874 configuration option.
19876 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
19879 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
19880 to determine current function ABI.
19881 (ix86_function_value_regno_p): Ditto.
19883 2015-06-03 Martin Liska <mliska@suse.cz>
19885 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
19886 * bitmap.h (struct bitmap_usage): Likewise.
19887 * ggc-common.c (struct ggc_usage): Likewise.
19888 * mem-stats.h (struct mem_location): Likewise.
19889 (struct mem_usage): Likewise.
19890 * vec.c (struct vec_usage): Likewise.
19892 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
19894 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
19897 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
19899 * doc/plugins.texi (enum plugin_event): New event.
19900 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
19901 and PLUGIN_FINISH_FUNCTION.
19902 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
19903 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
19905 2015-06-03 Richard Biener <rguenther@suse.de>
19907 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
19908 compute GROUP_GAP for the first element.
19909 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
19912 2015-06-03 Nick Clifton <nickc@redhat.com>
19914 * config/rl78/rl78-real.md: Add peepholes to avoid a register
19915 copy when calling a function.
19916 * config/rl78/rl78.c (need_to_save): Do not push the frame
19917 pointer in an interrupt handler prologue if it is never used.
19919 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19921 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
19923 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
19925 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
19926 reference when cloning alias node.
19928 2015-06-03 Martin Liska <mliska@suse.cz>
19930 * alloc-pool.h (struct pool_usage): Correct space padding.
19931 * ggc-page.c (ggc_print_statistics): Align columns in a report.
19932 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
19933 * tree.c (dump_tree_statistics): Align columns in a report.
19935 2015-06-03 Martin Liska <mliska@suse.cz>
19937 * alloc-pool.c (allocate_pool_descriptor): Remove.
19938 (struct pool_output_info): Likewise.
19939 (print_alloc_pool_statistics): Likewise.
19940 (dump_alloc_pool_statistics): Likewise.
19941 * alloc-pool.h (struct pool_usage): New struct.
19942 (pool_allocator::initialize): Change usage of memory statistics
19943 to a new interface.
19944 (pool_allocator::release): Likewise.
19945 (pool_allocator::allocate): Likewise.
19946 (pool_allocator::remove): Likewise.
19947 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
19948 for a pool allocator.
19949 * mem-stats.h (struct mem_location): Add new ctor.
19950 (struct mem_usage): Add counter for number of
19952 (mem_alloc_description::register_descriptor): New overload of
19953 * mem-stats.h (mem_location::to_string): New function.
19954 * bitmap.h (struct bitmap_usage): Use this new function.
19955 * ggc-common.c (struct ggc_usage): Likewise.
19958 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
19960 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
19961 of GCC_INSN_FLAGS_H block.
19963 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
19965 * explow.c (plus_constant): Update check after force_const_mem call
19966 to see if the value returned is not a NULL_RTX.
19968 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
19970 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
19971 remove instumentation thunks calling reachable functions.
19972 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
19973 * lto/lto-partition.c (privatize_symbol_name_1): New.
19974 (privatize_symbol_name): Privatize both decl and orig_decl
19975 names for instrumented functions.
19976 * cgraph.c (cgraph_node::verify_node): Add transparent
19977 alias chain check for instrumented node.
19979 2015-06-03 Marek Polacek <polacek@redhat.com>
19983 * tree.c (attribute_value_equal): Handle attribute format.
19984 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
19986 2015-06-03 Richard Biener <rguenther@suse.de>
19988 PR tree-optimization/63916
19989 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
19990 Forward-propagate non-invariant addresses by splicing their
19991 reference ops if the result isn't going to be used by PRE.
19992 (vn_reference_lookup_3): Remove pointless assert.
19994 2015-06-03 Richard Biener <rguenther@suse.de>
19996 PR tree-optimization/66375
19997 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
19998 add to the evolution before following SSA edges.
20000 2015-06-03 Bin Cheng <bin.cheng@arm.com>
20002 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
20003 (dump_use, dump_cand, find_induction_variables): Pass new argument
20005 (record_use): Preserve the ssa name information in IV.
20007 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
20009 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
20011 (add_mode_tests): Don't add mode tests if the predicate only
20012 accepts scalar constant integers. Otherwise, allow the mode
20013 of "op" to be VOIDmode if the predicate does accept such integers.
20015 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
20018 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
20019 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
20020 (aarch64_secondary_reload): Likewise
20021 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
20023 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
20026 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
20027 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20030 * cprop.c (try_replace_reg): Check cost of constants before propagating.
20032 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20034 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
20035 provide access to the IBM extended double floating point mode if
20036 long double is IEEE 128-bit floating point.
20037 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
20038 point if long double is the IBM extended double type.
20040 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
20041 enable adding IEEE 128-bit floating point support.
20042 (-mfloat128-software): Likewise.
20043 (-mfloat128-sw): Likewise.
20045 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
20046 128-bit floating point types to occupy any register if
20047 -mlong-double-64. Do not allow use of IFmode/KFmode unless
20048 -mfloat128-software is enabled.
20049 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
20051 (rs6000_option_override_internal): Add -mfloat128-* support.
20052 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
20054 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
20055 and float128 type nodes.
20056 (ieee128_float_type_node): Likewise.
20057 (ibm128_float_type_node): Likewise.
20059 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
20062 * config/aarch64/geniterators.sh: Rewrite in awk.
20064 2015-06-02 Martin Liska <mliska@suse.cz>
20066 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
20067 values to avoid -Wmaybe-uninitialized errors.
20069 2015-06-02 Richard Biener <rguenther@suse.de>
20072 * dwarf2out.c (lookup_context_die): New function.
20073 (resolve_addr): Avoid forcing a full DIE for the
20074 target of a DW_TAG_GNU_call_site during late compilation.
20075 Instead create a stub DIE without a type if we have a
20076 context DIE present.
20078 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
20080 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
20082 2015-06-02 Bin Cheng <bin.cheng@arm.com>
20084 PR tree-optimization/48052
20085 * cfgloop.h (struct control_iv): New.
20086 (struct loop): New field control_ivs.
20087 * tree-ssa-loop-niter.c : Include "stor-layout.h".
20088 (number_of_iterations_lt): Set no_overflow information.
20089 (number_of_iterations_exit): Init control iv in niter struct.
20090 (record_control_iv): New.
20091 (estimate_numbers_of_iterations_loop): Call record_control_iv.
20092 (loop_exits_before_overflow): New. Interface factored out of
20093 scev_probably_wraps_p.
20094 (scev_probably_wraps_p): Factor loop niter related code into
20095 loop_exits_before_overflow.
20096 (free_numbers_of_iterations_estimates_loop): Free control ivs.
20097 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
20099 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
20101 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
20102 the target doesn't belong to the current function.
20104 2015-06-02 Marek Polacek <polacek@redhat.com>
20106 PR middle-end/66345
20107 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
20108 get_maxval_strlen does not produce an INTEGER_CST.
20110 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
20112 * config/arc/constraints.md: Use lower-case names in match_code.
20113 * config/mmix/constraints.md: Likewise.
20115 2015-06-02 Richard Biener <rguenther@suse.de>
20117 PR tree-optimization/65961
20118 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
20119 check and clarify dump message.
20120 (vect_build_slp_tree): If all children are built up from scalars
20121 build up the parent from scalars instead.
20122 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
20124 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
20127 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
20128 instead of print ... .
20130 2015-06-02 Alan Modra <amodra@gmail.com>
20132 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
20135 2015-06-02 Bin Cheng <bin.cheng@arm.com>
20137 PR tree-optimization/52563
20138 PR tree-optimization/62173
20139 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
20140 (alloc_iv, set_iv): New parameter.
20141 (determine_biv_step): Delete.
20142 (find_bivs): Inline original determine_biv_step. Pass new
20143 argument to set_iv.
20144 (idx_find_step): Use no_overflow information for conversion.
20145 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
20146 resolve_mixers handle folded_casts.
20147 (instantiate_scev_name): Change bool parameter to bool pointer.
20148 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
20149 (instantiate_array_ref, instantiate_scev_not): Ditto.
20150 (instantiate_scev_3, instantiate_scev_2): Ditto.
20151 (instantiate_scev_1, instantiate_scev_r): Ditto.
20152 (instantiate_scev_convert, ): Change parameter. Pass argument
20153 to chrec_convert_aggressive.
20154 (instantiate_scev): Change argument.
20155 (resolve_mixers): New parameter and set it.
20156 (scev_const_prop): New argument.
20157 * tree-scalar-evolution.h (resolve_mixers): New parameter.
20158 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
20160 (chrec_convert): New parameter. Move definition below.
20161 (chrec_convert_aggressive): New parameter and set it. Call
20162 convert_affine_scev.
20163 * tree-chrec.h (chrec_convert): New parameter.
20164 (chrec_convert_aggressive): Ditto.
20166 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
20168 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
20169 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
20170 the LHS of a no-return call if its type has variable size.
20171 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
20172 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
20174 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
20176 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
20177 * config.in: Regenerate.
20179 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
20181 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
20182 consecutive accesses within outer-loop with force_vectorize
20183 for references with zero step in inner-loop.
20185 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
20187 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
20188 rather than from gcc/build directory.
20190 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
20193 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
20194 for __sync memory models, emit initial loads and final barriers as
20197 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
20200 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
20201 (aarch64_split_atomic_op): Check for __sync memory models, emit
20202 appropriate initial loads and final barriers.
20204 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
20206 * Makefile.in: Fix gcov dependencies that should
20207 not point to a build folder.
20209 2015-06-01 Richard Biener <rguenther@suse.de>
20212 2015-05-29 Richard Biener <rguenther@suse.de>
20214 PR tree-optimization/66314
20215 * tree-ssa-threadupdate.c (create_block_for_threading): Add
20216 parameter that says which loop the new block belongs to.
20217 (ssa_create_duplicates): Blocks duplicated for the threaded
20218 path belong to the loop of the thread destination.
20220 2015-06-01 Martin Liska <mliska@suse.cz>
20222 * sched-deps.c: Include pool-alloc.h before
20223 cselib.h header file is included.
20225 2015-06-01 Richard Biener <rguenther@suse.de>
20227 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
20230 2015-06-01 Martin Liska <mliska@suse.cz>
20232 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
20233 a function local variable.
20235 2015-06-01 Martin Liska <mliska@suse.cz>
20237 * alloc-pool.c (create_alloc_pool): Remove.
20238 (empty_alloc_pool): Likewise.
20239 (free_alloc_pool): Likewise.
20240 (free_alloc_pool_if_empty): Likewise.
20241 (pool_alloc): Likewise.
20242 (pool_free): Likewise.
20243 * alloc-pool.h: Remove old declarations.
20245 2015-06-01 Martin Liska <mliska@suse.cz>
20247 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
20248 (ira_create_object): Likewise.
20249 (ira_create_allocno): Likewise.
20250 (ira_create_live_range): Likewise.
20251 (copy_live_range): Likewise.
20252 (ira_finish_live_range): Likewise.
20253 (ira_free_allocno_costs): Likewise.
20254 (finish_allocno): Likewise.
20255 (finish_allocnos): Likewise.
20256 (initiate_prefs): Likewise.
20257 (ira_create_pref): Likewise.
20258 (finish_pref): Likewise.
20259 (finish_prefs): Likewise.
20260 (initiate_copies): Likewise.
20261 (ira_create_copy): Likewise.
20262 (finish_copy): Likewise.
20263 (finish_copies): Likewise.
20264 (finish_prefs): Likewise.
20266 2015-06-01 Martin Liska <mliska@suse.cz>
20268 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
20269 (allocate_and_init_ipcp_value): Likewise.
20270 (ipcp_lattice::add_value): Likewise.
20271 (merge_agg_lats_step): Likewise.
20272 (ipcp_driver): Likewise.
20273 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
20274 (ipa_free_all_structures_after_iinln): Likewise.
20275 * ipa-prop.h: Likewise.
20277 2015-06-01 Martin Liska <mliska@suse.cz>
20279 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
20281 (set_hint_predicate): Likewise.
20282 (inline_summary_alloc): Likewise.
20283 (reset_inline_edge_summary): Likewise.
20284 (reset_inline_summary): Likewise.
20285 (set_cond_stmt_execution_predicate): Likewise.
20286 (set_switch_stmt_execution_predicate): Likewise.
20287 (compute_bb_predicates): Likewise.
20288 (estimate_function_body_sizes): Likewise.
20289 (inline_free_summary): Likewise.
20291 2015-06-01 Martin Liska <mliska@suse.cz>
20293 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
20294 (ipa_edge_duplication_hook): Likewise.
20295 (ipa_free_all_structures_after_ipa_cp): Likewise.
20296 (ipa_free_all_structures_after_iinln): Likewise.
20298 2015-06-01 Martin Liska <mliska@suse.cz>
20300 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
20301 (ipa_profile_generate_summary): Likewise.
20302 (ipa_profile_read_summary): Likewise.
20303 (ipa_profile): Likewise.
20305 2015-06-01 Martin Liska <mliska@suse.cz>
20307 * tree-ssa-structalias.c (new_var_info): Use new type-based
20309 (new_constraint): Likewise.
20310 (init_alias_vars): Likewise.
20311 (delete_points_to_sets): Likewise.
20313 2015-06-01 Martin Liska <mliska@suse.cz>
20315 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
20316 (free_strinfo): Likewise.
20317 (pass_strlen::execute): Likewise.
20319 2015-06-01 Martin Liska <mliska@suse.cz>
20321 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
20323 (vn_reference_insert_pieces): Likewise.
20324 (vn_phi_insert): Likewise.
20325 (visit_reference_op_call): Likewise.
20326 (copy_phi): Likewise.
20327 (copy_reference): Likewise.
20328 (process_scc): Likewise.
20329 (allocate_vn_table): Likewise.
20330 (free_vn_table): Likewise.
20332 2015-06-01 Martin Liska <mliska@suse.cz>
20334 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
20336 (add_repeat_to_ops_vec): Likewise.
20337 (get_ops): Likewise.
20338 (maybe_optimize_range_tests): Likewise.
20339 (init_reassoc): Likewise.
20340 (fini_reassoc): Likewise.
20342 2015-06-01 Martin Liska <mliska@suse.cz>
20344 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
20346 (bitmap_set_new): Likewise.
20347 (get_or_alloc_expr_for_constant): Likewise.
20348 (get_or_alloc_expr_for): Likewise.
20349 (phi_translate_1): Likewise.
20350 (compute_avail): Likewise.
20351 (init_pre): Likewise.
20352 (fini_pre): Likewise.
20354 2015-06-01 Martin Liska <mliska@suse.cz>
20356 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
20357 (delete_dep_node): Likewise.
20358 (create_deps_list): Likewise.
20359 (free_deps_list): Likewise.
20360 (sched_deps_init): Likewise.
20361 (sched_deps_finish): Likewise.
20363 2015-06-01 Martin Liska <mliska@suse.cz>
20365 * regcprop.c (free_debug_insn_changes): Use new type-based
20367 (replace_oldest_value_reg): Likewise.
20368 (pass_cprop_hardreg::execute): Likewise.
20370 2015-06-01 Martin Liska <mliska@suse.cz>
20372 * ira-build.c (initiate_cost_vectors): Use new type-based
20374 (ira_allocate_cost_vector): Likewise.
20375 (ira_free_cost_vector): Likewise.
20376 (finish_cost_vectors): Likewise.
20378 2015-06-01 Martin Liska <mliska@suse.cz>
20380 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
20382 (free_sched_pools): Likewise.
20383 * sel-sched-ir.h (_list_alloc): Likewise.
20384 (_list_remove): Likewise.
20386 2015-06-01 Martin Liska <mliska@suse.cz>
20388 * stmt.c (add_case_node): Use new type-based pool allocator.
20389 (expand_case): Likewise.
20390 (expand_sjlj_dispatch_table): Likewise.
20392 2015-06-01 Martin Liska <mliska@suse.cz>
20394 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
20395 (free_bb): Likewise.
20396 (pass_cse_reciprocals::execute): Likewise.
20398 2015-06-01 Martin Liska <mliska@suse.cz>
20400 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
20401 (sra_deinitialize) Likewise.
20402 (create_access_1) Likewise.
20403 (build_accesses_from_assign) Likewise.
20404 (create_artificial_child_access) Likewise.
20406 2015-06-01 Martin Liska <mliska@suse.cz>
20408 * dse.c (get_group_info):Use new type-based pool allocator.
20409 (dse_step0) Likewise.
20410 (free_store_info) Likewise.
20411 (delete_dead_store_insn) Likewise.
20412 (free_read_records) Likewise.
20413 (record_store) Likewise.
20414 (replace_read) Likewise.
20415 (check_mem_read_rtx) Likewise.
20416 (scan_insn) Likewise.
20417 (dse_step1) Likewise.
20418 (dse_step7) Likewise.
20420 2015-06-01 Martin Liska <mliska@suse.cz>
20422 * df-scan.c (struct df_scan_problem_data):Use new type-based
20424 (df_scan_free_internal) Likewise.
20425 (df_scan_alloc) Likewise.
20426 (df_grow_reg_info) Likewise.
20427 (df_free_ref) Likewise.
20428 (df_insn_create_insn_record) Likewise.
20429 (df_mw_hardreg_chain_delete) Likewise.
20430 (df_insn_info_delete) Likewise.
20431 (df_free_collection_rec) Likewise.
20432 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
20433 (df_sort_and_compress_mws) Likewise.
20434 (df_ref_create_structure) Likewise.
20435 (df_ref_record) Likewise.
20437 2015-06-01 Martin Liska <mliska@suse.cz>
20439 * df-problems.c (df_chain_create):Use new type-based pool allocator.
20440 (df_chain_unlink_1) Likewise.
20441 (df_chain_unlink) Likewise.
20442 (df_chain_remove_problem) Likewise.
20443 (df_chain_alloc) Likewise.
20444 (df_chain_free) Likewise.
20445 * df.h (struct dataflow) Likewise.
20447 2015-06-01 Martin Liska <mliska@suse.cz>
20449 * cselib.c (new_elt_list):Use new type-based pool allocator.
20450 (new_elt_loc_list) Likewise.
20451 (unchain_one_elt_list) Likewise.
20452 (unchain_one_elt_loc_list) Likewise.
20453 (unchain_one_value) Likewise.
20454 (new_cselib_val) Likewise.
20455 (cselib_init) Likewise.
20456 (cselib_finish) Likewise.
20458 2015-06-01 Martin Liska <mliska@suse.cz>
20460 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
20461 (sh_reorg) Likewise.
20463 2015-06-01 Martin Liska <mliska@suse.cz>
20465 * cfg.c (initialize_original_copy_tables):Use new type-based
20467 (free_original_copy_tables) Likewise.
20468 (copy_original_table_clear) Likewise.
20469 (copy_original_table_set) Likewise.
20471 2015-06-01 Martin Liska <mliska@suse.cz>
20473 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
20475 (asan_mem_ref_new) Likewise.
20476 (free_mem_ref_resources) Likewise.
20478 2015-06-01 Martin Liska <mliska@suse.cz>
20480 * var-tracking.c (variable_htab_free):Use new type-based
20482 (attrs_list_clear) Likewise.
20483 (attrs_list_insert) Likewise.
20484 (attrs_list_copy) Likewise.
20485 (shared_hash_unshare) Likewise.
20486 (shared_hash_destroy) Likewise.
20487 (unshare_variable) Likewise.
20488 (var_reg_delete_and_set) Likewise.
20489 (var_reg_delete) Likewise.
20490 (var_regno_delete) Likewise.
20491 (drop_overlapping_mem_locs) Likewise.
20492 (variable_union) Likewise.
20493 (insert_into_intersection) Likewise.
20494 (canonicalize_values_star) Likewise.
20495 (variable_merge_over_cur) Likewise.
20496 (dataflow_set_merge) Likewise.
20497 (remove_duplicate_values) Likewise.
20498 (variable_post_merge_new_vals) Likewise.
20499 (dataflow_set_preserve_mem_locs) Likewise.
20500 (dataflow_set_remove_mem_locs) Likewise.
20501 (variable_from_dropped) Likewise.
20502 (variable_was_changed) Likewise.
20503 (set_slot_part) Likewise.
20504 (clobber_slot_part) Likewise.
20505 (delete_slot_part) Likewise.
20506 (loc_exp_insert_dep) Likewise.
20507 (notify_dependents_of_changed_value) Likewise.
20508 (emit_notes_for_differences_1) Likewise.
20509 (vt_emit_notes) Likewise.
20510 (vt_initialize) Likewise.
20511 (vt_finalize) Likewise.
20513 2015-06-01 Martin Liska <mliska@suse.cz>
20515 * ira-color.c (init_update_cost_records):Use new type-based
20517 (get_update_cost_record) Likewise.
20518 (free_update_cost_record_list) Likewise.
20519 (finish_update_cost_records) Likewise.
20520 (initiate_cost_update) Likewise.
20522 2015-06-01 Martin Liska <mliska@suse.cz>
20524 * lra.c (init_insn_regs): Use new type-based pool allocator.
20525 (new_insn_reg) Likewise.
20526 (free_insn_reg) Likewise.
20527 (free_insn_regs) Likewise.
20528 (finish_insn_regs) Likewise.
20529 (init_insn_recog_data) Likewise.
20530 (init_reg_info) Likewise.
20531 (finish_reg_info) Likewise.
20532 (lra_free_copies) Likewise.
20533 (lra_create_copy) Likewise.
20534 (invalidate_insn_data_regno_info) Likewise.
20536 2015-06-01 Martin Liska <mliska@suse.cz>
20538 * lra-lives.c (free_live_range): Use new type-based pool allocator.
20539 (free_live_range_list) Likewise.
20540 (create_live_range) Likewise.
20541 (copy_live_range) Likewise.
20542 (lra_merge_live_ranges) Likewise.
20543 (remove_some_program_points_and_update_live_ranges) Likewise.
20544 (lra_live_ranges_init) Likewise.
20545 (lra_live_ranges_finish) Likewise.
20547 2015-06-01 Martin Liska <mliska@suse.cz>
20549 * et-forest.c (et_new_occ): Use new type-based pool allocator.
20550 (et_new_tree): Likewise.
20551 (et_free_tree): Likewise.
20552 (et_free_tree_force): Likewise.
20553 (et_free_pools): Likewise.
20554 (et_split): Likewise.
20556 2015-06-01 Martin Liska <mliska@suse.cz>
20558 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
20560 * alloc-pool.h (pool_allocator::pool_allocator): New function.
20561 (pool_allocator::release): Likewise.
20562 (inline pool_allocator::release_if_empty): Likewise.
20563 (inline pool_allocator::~pool_allocator): Likewise.
20564 (pool_allocator::allocate): Likewise.
20565 (pool_allocator::remove): Likewise.
20567 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
20569 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
20572 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
20574 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
20576 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
20577 (arm_macro_fusion_p): Likewise.
20578 (arm_macro_fusion_pair_p): Likewise.
20580 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
20582 * config/aarch64/aarch64-protos.h (tune_params): Rename
20583 fuseable_ops to fusible_ops.
20584 * config/aarch64/aarch64.c (generic_tunings): Rename
20585 fuseable_ops to fusible_ops.
20586 (cortexa53_tunings): Likewise.
20587 (cortexa57_tunings): Likewise.
20588 (thunderx_tunings): Likewise.
20589 (xgene1_tunings): Likewise.
20590 (aarch64_macro_fusion_p): Likewise.
20591 (aarch64_macro_fusion_pair_p): Likewise.
20593 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
20595 * config/s390/driver-native.c: New file.
20596 * config/s390/x-native: New file.
20597 * config.host: Add new files for s390.
20598 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
20600 * config.gcc: Likewise.
20601 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
20602 * config/s390/s390-opts.h (enum processor_type): Ditto.
20603 * config/s390/s390.c (s390_option_override): Catch unhandled
20606 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
20609 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
20610 redirection for instrumented calls.
20611 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
20612 (append_compiler_options): Append -fcheck-pointer-bounds.
20613 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
20614 (chkp_redirect_edge): New.
20615 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
20616 (chkp_redirect_edge): New.
20618 2015-06-01 Richard Biener <rguenther@suse.de>
20620 PR tree-optimization/66280
20621 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
20624 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20626 * config/aarch64/aarch64.md
20627 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
20630 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
20632 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
20633 Remove obsolete kludge.
20635 2015-06-01 Richard Biener <rguenther@suse.de>
20637 * tree-ssa-reassoc.c (get_rank): Simplify.
20639 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
20641 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
20642 * configure: Regenerated.
20644 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
20646 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
20647 issue (add space between string literal and macro).
20648 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
20650 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
20652 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
20653 implict or explicit -fPIE or -fpie.
20655 2015-05-30 Mike Frysinger <vapier@gentoo.org>
20657 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
20659 2015-05-28 DJ Delorie <dj@redhat.com>
20661 * expmed.c (extract_bit_field_1): Avoid clobbering a
20662 yet-to-be-used base/index register.
20664 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
20666 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
20667 (alias_stats): Add num_universal.
20668 (alias_set_subset_of): Special case pointers; be ready for NULL
20670 (alias_sets_conflict_p): Special case pointers; be ready for NULL
20672 (init_alias_set_entry): Break out from ...
20673 (record_alias_subset): ... here; propagate new fields;
20674 allocate children only when really needed.
20675 (get_alias_set): Do less generous pointer globbing.
20676 (dump_alias_stats_in_alias_c): Update statistics.
20678 2015-05-30 Alan Modra <amodra@gmail.com>
20680 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
20681 correct block for use of r12.
20682 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
20684 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
20687 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
20690 2015-05-29 Jakub Jelinek <jakub@redhat.com>
20692 PR tree-optimization/66142
20693 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
20694 virtual phis that feed themselves.
20696 2015-05-29 Richard Biener <rguenther@suse.de>
20698 PR tree-optimization/66314
20699 * tree-ssa-threadupdate.c (create_block_for_threading): Add
20700 parameter that says which loop the new block belongs to.
20701 (ssa_create_duplicates): Blocks duplicated for the threaded
20702 path belong to the loop of the thread destination.
20704 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20706 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
20707 to cleanup-saved-temps.
20708 * doc/sourcebuild.texi (Clean up generated test files): Expand
20710 (dg-keep-saved-temps): Document new proc.
20711 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
20712 cleanup-saved-temps): Remove.
20714 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
20716 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
20717 gcc_AC_CHECK_DECLS.
20718 * configure: Regenerate.
20720 2015-05-28 Mike Frysinger <vapier@gentoo.org>
20722 * config/nios2/linux.h (CPP_SPEC): Define.
20724 2015-05-28 Mike Frysinger <vapier@gentoo.org>
20726 * config/microblaze/linux.h (CPP_SPEC): Define.
20728 2015-05-28 Mike Frysinger <vapier@gentoo.org>
20730 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
20731 -pthread is specified.
20733 2015-05-28 Richard Biener <rguenther@suse.de>
20735 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
20736 (vect_fixup_scalar_cycles_with_patterns): Likewise.
20737 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
20738 after pattern recog.
20739 (vect_create_epilog_for_reduction): Properly handle reductions
20741 (vectorizable_reduction): Likewise.
20742 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
20744 (vect_get_constant_vectors): Create the correct number of
20745 initial values for reductions.
20746 (vect_schedule_slp_instance): Handle reduction chains that are
20747 type changing properly.
20748 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
20750 2015-05-28 Richard Biener <rguenther@suse.de>
20752 PR tree-optimization/66142
20753 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
20754 values better in memcpy destination handling. Handle non-aliasing
20757 2015-05-28 Lawrence Velázquez <vq@larryv.me>
20760 * config/darwin-c.c (version_components): New global enum.
20761 (parse_version, version_as_legacy_macro)
20762 (version_as_modern_macro, macosx_version_as_macro): New functions.
20763 (version_as_macro): Remove.
20764 (darwin_cpp_builtins): Use new function.
20766 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
20768 * builtins.c (expand_builtin_acc_on_device): Mark parameters
20769 with ATTRIBUTE_UNUSED.
20771 2015-05-28 Julian Brown <julian@codesourcery.com>
20775 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
20776 sequence for !ACCEL_COMPILER.
20778 2015-05-28 Nick Clifton <nickc@redhat.com>
20780 * config/rx/rx.c (push_regs): New function. Extracts code from...
20781 (rx_expand_prologue): ... here. Use push_regs to push even small
20782 spans of registers.
20783 (pop_regs): New function.
20784 (rx_expand_epilogue): Use pop_regs to pop even small spans of
20787 2015-05-28 Richard Biener <rguenther@suse.de>
20789 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
20791 (SLP_INSTANCE_BODY_COST_VEC): Remove.
20792 (vect_update_slp_costs_according_to_vf): Likewise.
20793 (vect_slp_analyze_operations): Update prototype.
20794 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
20795 vect_update_slp_costs_according_to_vf, adjust.
20796 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
20797 (vect_analyze_slp_cost_1): Likewise.
20798 (vect_analyze_slp_cost): Likewise. Properly deal with
20799 widening reduction ops. Commit body costs.
20800 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
20801 cost for loops from here.
20802 (vect_slp_analyze_operations): But do it from here when
20803 the vectorization factor is known and stmts are analyzed.
20804 (vect_bb_vectorization_profitable_p): Simplify.
20805 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
20806 (vect_update_slp_costs_according_to_vf): Remove.
20808 2015-05-27 Magnus Granberg <zorry@gentoo.org>
20809 H.J. Lu <hongjiu.lu@intel.com>
20811 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
20812 (BUILD_CFLAGS): Likewise.
20813 (BUILD_CXXFLAGS): Likewise.
20814 (LINKER): Add @NO_PIE_FLAG@.
20815 (BUILD_LDFLAGS): Likewise.
20816 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
20817 --enable-default-pie.
20818 * common.opt (fPIE): Initialize to -1.
20820 (no-pie): New option.
20821 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
20822 * configure.ac: Add --enable-default-pie.
20823 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
20824 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
20825 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
20826 * gcc.c (NO_PIE_SPEC): New.
20827 (PIE_SPEC): Likewise.
20828 (NO_FPIE1_SPEC): Likewise.
20829 (FPIE1_SPEC): Likewise.
20830 (NO_FPIE2_SPEC): Likewise.
20831 (FPIE2_SPEC): Likewise.
20832 (NO_FPIE2_SPEC): Likewise.
20833 (FPIE_SPEC): Likewise.
20834 (NO_FPIE_SPEC): Likewise.
20835 (NO_FPIC1_SPEC): Likewise.
20836 (FPIC1_SPEC): Likewise.
20837 (NO_FPIC2_SPEC): Likewise.
20838 (FPIC2_SPEC): Likewise.
20839 (NO_FPIC2_SPEC): Likewise.
20840 (FPIC_SPEC): Likewise.
20841 (NO_FPIC_SPEC): Likewise.
20842 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
20843 (FPIE1_OR_FPIC1_SPEC): Likewise.
20844 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
20845 (FPIE2_OR_FPIC2_SPEC): Likewise.
20846 (NO_FPIE_AND_FPIC_SPEC): Likewise.
20847 (FPIE_OR_FPIC_SPEC): Likewise.
20848 (LD_PIE_SPEC): Likewise.
20849 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
20850 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
20851 * config/darwin.h (PIE_SPEC): Renamed to ...
20852 (DARWIN_PIE_SPEC): This.
20853 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
20854 * config/darwin9.h (PIE_SPEC): Renamed to ...
20855 (DARWIN_PIE_SPEC): This.
20856 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
20857 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
20858 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
20859 FPIE2_OR_FPIC2_SPEC.
20860 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
20861 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
20862 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
20863 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20864 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20865 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20866 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
20867 * config/m32r/m32r.h (ASM_SPEC): Likewise.
20868 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
20869 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
20870 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
20871 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
20872 * config/sparc/linux.h (ASM_SPEC): Likewise.
20873 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20874 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
20875 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
20876 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20877 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
20878 * config/sparc/sparc.h (ASM_SPEC): Likewise.
20879 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
20880 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
20881 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
20882 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
20883 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
20884 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
20885 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
20886 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
20887 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
20888 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
20889 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
20890 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
20891 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20892 * config/vax/linux.h (ASM_SPEC): Likewise.
20893 * doc/install.texi: Document --enable-default-pie.
20894 * doc/invoke.texi: Document -no-pie.
20895 * config.in: Regenerated.
20896 * configure: Likewise.
20898 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
20900 PR rtl-optimization/66168
20901 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
20902 can_move_invariant_reg.
20904 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
20907 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
20908 REG_EQUAL note when doing insert.
20910 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
20911 instead of "%d" for 'o' operand.
20913 2015-05-27 Nathan Sidwell <nathan@acm.org>
20916 * tree.c (build_pointer_type_for_mode): Canonical type does not
20917 inherit can_alias_all.
20918 (build_reference_type_for_mode): Likewise.
20920 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
20922 * expr.h (array_at_struct_end_p): Move to...
20923 (array_ref_element_size): Likewise.
20924 (component_ref_field_offset): Likewise.
20925 * tree.h (array_ref_element_size): ...here.
20926 (array_at_struct_end_p): Likewise.
20927 (component_ref_field_offset): Likewise.
20928 * expr.c (array_ref_element_size): Move to...
20929 (array_ref_low_bound): Likewise.
20930 (array_at_struct_end_p): Likewise.
20931 (array_ref_up_bound): Likewise.
20932 (component_ref_field_offset): Likewise.
20933 * tree.c (array_ref_element_size): ...here.
20934 (array_ref_low_bound): Likewise.
20935 (array_ref_up_bound): Likewise.
20936 (array_at_struct_end_p): Likewise.
20937 (component_ref_field_offset): Likewise.
20939 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
20940 Szabolcs Nagy <szabolcs.nagy@arm.com>
20942 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
20944 2015-05-27 Jason Merrill <jason@redhat.com>
20947 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
20948 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
20949 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
20951 2015-05-22 Aditya Kumar <hiraditya@msn.com>
20953 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
20956 * statistics.c (statistics_fini_pass): Print pass name.
20958 2015-05-27 Richard Biener <rguenther@suse.de>
20960 PR tree-optimization/66272
20962 2014-08-15 Richard Biener <rguenther@suse.de>
20964 PR tree-optimization/62031
20965 * tree-data-ref.c (dr_analyze_indices): Do not set
20966 DR_UNCONSTRAINED_BASE.
20967 (dr_may_alias_p): All indirect accesses have to go the
20968 formerly DR_UNCONSTRAINED_BASE path.
20969 * tree-data-ref.h (struct indices): Remove
20970 unconstrained_base member.
20971 (DR_UNCONSTRAINED_BASE): Remove.
20973 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
20975 * dwarf2out.c: Remove block_map.
20976 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
20977 (gen_lexical_block_die): Same.
20978 (dwarf2out_function_decl): Remove block_map use.
20979 (dwarf2out_c_finalize): Same.
20980 * tree-core.h (struct tree_block): Add die field.
20981 * tree.h (BLOCK_DIE): New.
20983 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20986 * expr.c (memory_load_overlap): New function.
20987 (emit_push_insn): When pushing partial args to the stack would
20988 clobber the register part load the overlapping part into a pseudo
20989 and put it into the hard reg after pushing. Change return type
20990 to bool. Add bool argument.
20991 * expr.h (emit_push_insn): Change return type to bool.
20993 * calls.c (expand_call): Cancel sibcall optimization when encountering
20994 partial argument on targets with ARGS_GROW_DOWNWARD and
20995 !STACK_GROWS_DOWNWARD.
20996 (emit_library_call_value_1): Update callsite of emit_push_insn.
20997 (store_one_arg): Likewise.
20999 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
21001 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
21003 2015-05-27 Martin Liska <mliska@suse.cz>
21005 * Makefile.in: Add additional dependencies related to memory report
21007 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
21008 * bitmap.c (struct bitmap_descriptor_d): Remove.
21009 (struct loc): Likewise.
21010 (struct bitmap_desc_hasher): Likewise.
21011 (bitmap_desc_hasher::hash): Likewise.
21012 (bitmap_desc_hasher::equal): Likewise.
21013 (get_bitmap_descriptor): Likewise.
21014 (bitmap_register): User new memory descriptor API.
21015 (register_overhead): Likewise.
21016 (bitmap_find_bit): Register nsearches and search_iter statistics.
21017 (struct bitmap_output_info): Remove.
21018 (print_statistics): Likewise.
21019 (dump_bitmap_statistics): Use new memory descriptor.
21020 * bitmap.h (struct bitmap_usage): New class.
21021 * genmatch.c: Extend header file inclusion.
21022 * genpreds.c: Likewise.
21023 * ggc-common.c (struct ggc_usage): New class.
21024 (struct ggc_loc_desc_hasher): Remove.
21025 (ggc_loc_desc_hasher::hash): Likewise.
21026 (ggc_loc_desc_hasher::equal): Likewise.
21027 (struct ggc_ptr_hash_entry): Likewise.
21028 (struct ptr_hash_hasher): Likewise.
21029 (ptr_hash_hasher::hash): Likewise.
21030 (ptr_hash_hasher::equal): Likewise.
21031 (make_loc_descriptor): Likewise.
21032 (ggc_prune_ptr): Likewise.
21033 (dump_ggc_loc_statistics): Use new memory descriptor.
21034 (ggc_record_overhead): Likewise.
21035 (ggc_free_overhead): Likewise.
21036 (final_cmp_statistic): Remove.
21037 (cmp_statistic): Likewise.
21038 (ggc_add_statistics): Liekwise.
21039 (ggc_prune_overhead_list): Likewise.
21040 * hash-map-traits.h: New file.
21041 * hash-map.h (struct default_hashmap_traits): Move the traits to a
21042 separate header file.
21043 * hash-set.h: Pass memory statistics info to ctor.
21044 * hash-table.c (void dump_hash_table_loc_statistics): New function.
21045 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
21046 (hash_table::~hash_table): Register memory release operation.
21047 (hash_table::alloc_entries): Handle memory allocation operation.
21048 (hash_table::expand): Likewise.
21049 * inchash.c (iterative_hash_hashval_t): Move implementation to header
21051 (iterative_hash_host_wide_int): Likewise.
21052 * inchash.h (class hash): Likewise.
21053 * mem-stats-traits.h: New file.
21054 * mem-stats.h: New file.
21055 (mem_location): Add new class.
21056 (mem_usage): Likewise.
21057 (mem_alloc_description): Likewise.
21058 * sese.c: Add new header file inclusision.
21059 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
21061 * tree-sra.c: Add new header file inclusision.
21062 * vec.c (struct vec_descriptor): Remove.
21063 (hash_descriptor): Likewise.
21064 (struct vec_usage): Likewise.
21065 (struct ptr_hash_entry): Likewise.
21066 (hash_ptr): Likewise.
21067 (eq_ptr): Likewise.
21068 (vec_prefix::register_overhead): Use new memory descriptor API.
21069 (vec_prefix::release_overhead): Likewise.
21070 (add_statistics): Remove.
21071 (dump_vec_loc_statistics): Use new memory descriptor API.
21072 * vec.h (struct vec_prefix): Likewise.
21073 (va_heap::reserve): Likewise.
21074 (va_heap::release): Likewise.
21075 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
21077 2015-05-27 Richard Biener <rguenther@suse.de>
21079 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
21080 earlier and remove ??? comment.
21081 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
21082 and got called from loop analysis bail out. Always pass the SLP
21083 node to the vectorizable_* functions.
21084 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
21085 the premature SLP check here.
21086 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
21087 detected SLP stmts.
21088 (vect_detect_hybrid_slp_1): Likewise.
21090 2015-05-26 Jeff Law <law@redhat.com>
21092 * combine.c (find_split_point): Verify that the shift count is a
21093 constant when choosing (plus (ashift ...)) as a split point.
21095 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
21096 No functional changes.
21098 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
21100 * ipa-polymorphic-call.c
21101 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
21102 case when call target is already known.
21104 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
21107 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
21108 take into account the case that operands[1] and operands[2]
21109 are the same register.
21111 2015-05-26 Michael Matz <matz@suse.de>
21113 PR middle-end/66251
21115 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
21117 (vect_create_vectorized_demotion_stmts): Always set
21118 STMT_VINFO_VEC_STMT, also with SLP.
21119 (vectorizable_store): Handle strided group stores.
21121 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21124 * config/aarch64/aarch64.md
21125 (*adds_shift_imm_<mode>): New pattern.
21126 (*subs_shift_imm_<mode>): Likewise.
21127 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
21128 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
21129 (*add_uxt<mode>_shift2): Likewise.
21130 (*add_uxtsi_shift2_uxtw): Likewise.
21131 (*sub_uxt<mode>_shift2): Likewise.
21132 (*sub_uxtsi_shift2_uxtw): Likewise.
21134 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
21136 * config/rs6000/constraints.md (Y, U): Use match_test.
21138 2015-05-26 Christian Bruel <christian.bruel@st.com>
21141 * config/arm/arm.c (arm_option_check_internal)
21142 (arm_option_params_internal): Check opts->target_flags to set macros.
21143 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
21144 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
21145 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
21146 (builtin_define): Replaced with def_or_undef_macro.
21147 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
21148 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
21149 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
21150 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
21151 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
21152 (TARGET_ARM_FEATURE_LDREX_P)
21153 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
21154 * config/arm/arm-c.c (def_or_undef_macro): New function.
21155 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
21157 2015-05-26 Christian Bruel <christian.bruel@st.com>
21159 * c-common.h (builtin_define_with_int_value)
21160 (builtin_define_type_sizeof): Declare.
21161 * c-cppbuiltin.c (builtin_define_with_int_value)
21162 (builtin_define_type_sizeof): Externalize.
21163 (builtin_define_std): Cleanup declaration.
21164 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
21165 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
21166 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
21167 (builtin_define, builtin_assert): New macros.
21169 2015-05-26 Richard Biener <rguenther@suse.de>
21171 PR tree-optimization/66142
21172 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
21173 MEM_REFs for the same base address.
21175 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21178 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
21180 2015-05-26 Jason Merrill <jason@redhat.com>
21182 * configure.ac: Set CXXFLAGS for ISL test.
21183 * configure: Regenerate.
21185 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
21186 strstr and basename.
21187 * configure: Regenerate.
21189 2015-05-26 Richard Biener <rguenther@suse.de>
21191 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
21192 X % C -> X & (C - 1) for C being a power-of two to ...
21193 * match.pd: ... patterns.
21195 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
21197 * match.pd (swapped_tcc_comparison): New operator list.
21198 (-A CMP -B): New simplification.
21199 * fold-const.c (fold_comparison): Remove corresponding code.
21201 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
21203 * caller-save.c (init_caller_save): Base temporary register numbers
21204 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
21205 * cfgloopanal.c (init_set_costs): Likewise.
21206 * dojump.c (prefer_and_bit_test): Likewise.
21207 * expr.c (init_expr_target): Likewise.
21208 * ira.c (setup_prohibited_mode_move_regs): Likewise.
21209 * lower-subreg.c (init_lower_subreg): Likewise.
21210 * postreload.c (reload_cse_regs_1): Likewise.
21212 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
21214 * gensupport.h (compute_test_codes): Declare.
21215 * gensupport.c (compute_predicate_codes): Rename to...
21216 (compute_test_codes): ...this. Generalize error message.
21217 (process_define_predicate): Update accordingly.
21218 * genpreds.c (compute_maybe_allows): Delete.
21219 (add_constraint): Use compute_test_codes to determine whether
21220 something can accept a SUBREG, REG or MEM.
21222 2015-05-26 Torvald Riegel <triegel@redhat.com>
21224 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
21225 'memory model' to align with C++11; fix description of memory orders;
21228 2015-05-26 Richard Biener <rguenther@suse.de>
21230 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
21231 (vect_analyze_loop_operations): ... here. Remove slp parameter,
21232 detect whether we apply SLP. Remove call to
21233 vect_update_slp_costs_according_to_vf.
21234 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
21235 vect_update_slp_costs_according_to_vf from here. Dispatch
21236 to vect_slp_analyze_operations to analyze SLP stmts.
21237 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
21238 unused bb_vec_info parameter, adjust assert.
21239 (vect_slp_analyze_operations): Pass in the slp instance tree
21240 instead of bb_vec_info.
21241 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
21242 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
21244 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
21246 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
21247 Q_REGS. Expand comment.
21248 (REG_CLASS_NAMES): Ditto.
21249 (REG_CLASS_CONTENTS): Ditto.
21251 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
21254 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
21255 when LEGACY_INT_REGNO_P is processed.
21257 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
21259 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
21261 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
21263 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
21264 register if not marked dead/unused, before return.
21266 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
21269 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
21270 is set; check for assembler name at LTO time.
21271 (type_in_anonymous_namespace): Remove hacks, check that all
21272 anonymous types are called "<anon>"
21273 (odr_type_p): Simplify; add check for "<anon>"
21274 (odr_subtypes_equivalent): Add odr_type_p check.
21275 * tree.c (need_assembler_name_p): Even anonymous namespace needs
21278 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
21280 * ipa-utils.h (method_class_type): Remove.
21281 * cgraphunit.c (walk_polymorphic_call_targets): Use
21282 TYPE_METHOD_BASETYPE.
21283 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
21284 on main variants only.
21285 (method_class_type): Remove.
21286 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
21287 (build_type_inheritance_graph): Likewise.
21288 * ipa-icf.c (sem_function::equals_wpa): Likewise.
21289 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
21290 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
21292 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
21294 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
21295 is_typedef_decl, typedef_variant_p): Constify.
21296 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
21297 is_typedef_decl, typedef_variant_p): Constify.
21299 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21301 * defaults.h (gen_tablejump): New function.
21302 (HAVE_tablejump): Add default value.
21304 * stmt.c: Likewise.
21306 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21308 * defaults.h (gen_store_multiple): New function.
21309 (HAVE_store_multiple): Add default value.
21310 * expr.c (move_block_from_reg): Adjust.
21312 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21314 * defaults.h (gen_load_multiple): New function.
21315 (HAVE_load_multiple): Add default value.
21316 * expr.c (move_block_to_reg): Adjust.
21318 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21320 * defaults.h (gen_mem_signal_fence): New function.
21321 (HAVE_mem_signal_fence): Add default value.
21322 * optabs.c: Adjust.
21324 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21326 * defaults.h (gen_memory_barrier): New function.
21327 (HAVE_memory_barrier): Add default value.
21328 * optabs.c: Adjust.
21330 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21332 * defaults.h (gen_mem_thread_fence): New function.
21333 (HAVE_mem_thread_fence): Add default definition.
21334 * optabs.c: Adjust.
21336 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21338 * combine.c (find_split_point): Check the value of HAVE_lo_sum
21339 instead of if it is defined.
21340 (combine_simplify_rtx): Likewise.
21341 * lra-constraints.c (process_address_1): Likewise.
21342 * config/darwin.c: Adjust.
21343 * genconfig.c (main): Always define HAVE_lo_sum.
21345 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21347 * genmatch.c (parser::parse_operation): Reject expanding
21348 operator-list inside 'for'.
21350 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21352 * genmatch.c (parser::parse_for): Reject iterator if used as
21355 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21357 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
21358 after end of id-list.
21360 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
21362 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
21363 we do not try to compute canonical type for type that does not need
21365 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
21367 * tree.h (type_with_alias_set_p): New.
21369 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
21371 * tree.c (gimple_canonical_types_compatible_p): Do not compare
21372 function attributes.
21373 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
21375 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
21377 * Makefile.in (check_gcc_parallelize): Delete.
21378 (lang_checks_parallelized): Update comment.
21380 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
21382 PR rtl-optimization/66237
21383 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
21384 location of an "as_a" cast.
21386 2015-05-22 Jeff Law <law@redhat.com>
21388 * config/pa/pa.md (non-canonical shift-add insns): Remove.
21389 (peepholes with non-canonical RTL sources): Remove.
21390 (peepholes for indexed stores of FP regs in integer modes): Match and
21391 generate canonical RTL.
21393 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
21395 PR tree-optimization/63387
21396 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
21397 ((x ord x) & (y ord y) -> (x ord y),
21398 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
21399 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
21400 vectors like scalars.
21402 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
21404 * convert.c (convert_to_integer, convert_to_vector): Include the
21405 types in the error message.
21407 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
21409 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
21412 2015-05-22 Jeff Law <law@redhat.com>
21414 * config/pa/pa.md (integer_indexed_store splitters): Use
21415 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
21416 insns -- adjusting the constant 2nd operand accordingly.
21418 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
21419 (plus (ashift X log2) Y) if it is a split point.
21421 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
21422 out of hppa_legitimize_address to handle both forms of a multiply
21424 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
21425 Always generate the ASHIFT variant as the result is not directly
21426 used in a MEM. Update comments and refactor slightly to improve
21429 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21432 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
21433 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
21434 (aarch64_composite_type_p): Return false if given type and mode are
21435 for a short vector.
21437 2015-05-22 Richard Biener <rguenther@suse.de>
21439 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
21441 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
21442 patterns when determining whether SLP is pure.
21443 (vect_is_slp_reduction): Remove check for pattern stmts.
21444 (vect_is_simple_reduction_1): Remove dead code.
21445 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
21446 (vect_get_and_check_slp_defs): Pass in the stmt number.
21447 Allow the first def in a reduction to be not a pattern stmt when
21448 the rest of the stmts def are patterns.
21449 (vect_build_slp_tree_1): Allow tcc_expression codes like
21450 SAD_EXPR and DOT_PROD_EXPR.
21451 (vect_build_slp_tree): Adjust.
21452 (vect_analyze_slp): Refactor and move BB vect error message ...
21453 (vect_slp_analyze_bb_1): ... here.
21455 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
21457 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
21458 for CSWTCH temporary.
21460 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21462 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
21463 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
21466 2015-05-22 Richard Biener <rguenther@suse.de>
21468 PR tree-optimization/66251
21469 * tree-vect-stmts.c (vectorizable_conversion): Properly
21470 set STMT_VINFO_VEC_STMT even for the SLP case.
21472 2015-05-22 Marek Polacek <polacek@redhat.com>
21474 * doc/extend.texi: Use @pxref instead of @xref.
21476 2015-05-22 hiraditya <hiraditya@msn.com>
21478 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
21481 2015-05-22 Richard Biener <rguenther@suse.de>
21483 PR tree-optimization/65701
21484 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21485 Move peeling cost models into one place. Peel for alignment
21486 for single loads only if an aligned load is cheaper than
21489 2015-05-22 Marek Polacek <polacek@redhat.com>
21492 * doc/extend.texi (Enumerator Attributes): New section.
21493 Document syntax of enumerator attributes.
21495 2015-05-22 Richard Biener <rguenther@suse.de>
21497 * tree-vect-loop.c (get_reduction_op): New function.
21498 (vect_model_reduction_cost): Use it, add reduc_index parameter.
21499 Make ready for BB reductions.
21500 (vect_create_epilog_for_reduction): Use get_reduction_op.
21501 (vectorizable_reduction): Init reduc_index to a valid value.
21502 Adjust vect_model_reduction_cost call.
21503 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
21504 operand for reduction defaults. Add SAD_EXPR support.
21505 Assert we have a neutral op for SLP reductions.
21506 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
21507 walking pattern stmt ops only recurse to SSA names.
21509 2015-05-22 Richard Biener <rguenther@suse.de>
21511 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
21512 assert with guard, remove check on detected reduction.
21513 (vect_recog_sad_pattern): Likewise.
21514 (vect_recog_widen_sum_pattern): Likewise.
21516 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21518 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
21519 __always_inline__ attribute.
21520 (vaesdq_u8): Likewise.
21521 (vaesmcq_u8): Likewise.
21522 (vaesimcq_u8): Likewise.
21523 (vsha1cq_u32): Likewise.
21524 (vsha1mq_u32): Likewise.
21525 (vsha1pq_u32): Likewise.
21526 (vsha1h_u32): Likewise.
21527 (vsha1su0q_u32): Likewise.
21528 (vsha1su1q_u32): Likewise.
21529 (vsha256hq_u32): Likewise.
21530 (vsha256h2q_u32): Likewise.
21531 (vsha256su0q_u32): Likewise.
21532 (vsha256su1q_u32): Likewise.
21533 (vmull_p64): Likewise.
21534 (vmull_high_p64): Likewise.
21536 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21538 * final.c (final_scan_insn): Don't check HAVE_peephole with the
21540 * output.h: Likewise.
21541 * genconfig.c (main): Alwways define HAVE_peephole.
21542 * genpeep.c: Don't emit checks of HAVE_peephole.
21544 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21546 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
21547 check HAVE_conditional_move with the preprocessor.
21549 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21551 * genconfig.c (main): Always define HAVE_conditional_move.
21552 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
21553 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
21556 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21558 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
21559 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
21560 and FRAME_POINTER_REGNUM with the preprocessor.
21562 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21564 * defaults.h: Add default for STACK_PUSH_CODE.
21565 * expr.c: Don't redefine STACK_PUSH_CODE.
21566 * recog.c: Likewise.
21568 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21570 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
21571 sched-deps.c: Use if instead of preprocessor checks with
21572 STACK_GROWS_DOWNWARD.
21574 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21576 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
21578 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
21579 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
21580 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
21581 * doc/tm.texi: Regenerate.
21583 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
21586 * config/i386/constraints.md (Bg): New constraint for GOT memory
21588 * config/i386/i386.md (*call_got_x32): New pattern.
21589 (*call_value_got_x32): Likewise.
21590 * config/i386/predicates.md (GOT_memory_operand): New predicate.
21592 2015-05-21 Jakub Jelinek <jakub@redhat.com>
21594 PR tree-optimization/66233
21595 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
21598 2015-05-21 Jeff Law <law@redhat.com>
21600 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
21601 than MULT for shadd sequences.
21603 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
21605 * alias.c (alias_stats): New static var.
21606 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
21607 (dump_alias_stats_in_alias_c): New function.
21608 * alias.h (dump_alias_stats_in_alias_c): Declare.
21609 * tree-ssa-alias.c (dump_alias_stats): Call it.
21611 2015-05-08 Michael Matz <matz@suse.de>
21613 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
21615 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
21616 (STMT_VINFO_STRIDED_P): ... this.
21617 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
21618 (vect_verify_datarefs_alignment): Likewise.
21619 (vect_enhance_data_refs_alignment): Likewise.
21620 (vect_analyze_data_ref_access): Likewise.
21621 (vect_analyze_data_refs): Accept strided stores.
21622 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
21623 (vect_model_load_cost): Adjust for macro rename.
21624 (vectorizable_mask_load_store): Likewise.
21625 (vectorizable_load): Likewise.
21626 (vectorizable_store): Open code strided stores.
21628 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21630 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
21631 Document sqrt_insn.
21633 2015-05-21 Richard Biener <rguenther@suse.de>
21636 * match.pd: Guard pattern optimzing (int)(float)int
21637 conversions to apply only on GIMPLE.
21639 2015-05-21 Jeff Law <law@redhat.com>
21641 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
21642 multiply-accumulate/shift-add insn generation.
21644 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
21647 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
21648 operands[1] are the same.
21650 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
21652 PR middle-end/66221
21653 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
21654 build_distinct_type_copy to copy bounds.
21656 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
21658 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
21659 Change to unsigned int.
21661 2015-05-20 Jeff Law <law@redhat.com>
21663 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
21664 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
21665 (pa_shadd_constant_p): Allow constants for shadd insns rather
21666 than valid scaling constants for memory addresses.
21667 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
21668 * config/pa/predicates.md (mem_shadd_operand): New predicate.
21669 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
21670 (shift-add insns using ASHIFT): New patterns.
21672 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
21674 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
21676 (fix_up_fall_thru_edges): Likewise.
21677 (fix_crossing_conditional_branches): Likewise. Promote jump targets
21678 from to rtx_insn to rtx_code_label where feasible.
21679 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
21680 gen_move_insn (returned type changed to rtx_insn).
21681 * builtins.c (expand_errno_check): Fix arguments of
21682 do_compare_rtx_and_jump (now expects rtx_code_label).
21683 (expand_builtin_acc_on_device): Likewise.
21684 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
21685 invert_jump (now exprects rtx_jump_insn).
21686 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
21687 (construct_init_block): Use rtx_code_label.
21688 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
21689 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
21690 calling redirect_jump.
21691 (patch_jump_insn): Likewise.
21692 (redirect_branch_edge): Likewise.
21693 (force_nonfallthru_and_redirect): Likewise.
21694 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
21696 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
21697 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
21698 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
21699 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
21700 to store the value retured by gen_label_rtx.
21701 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
21703 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
21704 (split_branches): Fix calls of redirect_jump.
21705 * dojump.c (jumpifnot): Promote argument type from rtx to
21707 (jumpifnot_1): Likewise.
21708 (jumpif): Likewise.
21709 (jumpif_1): Likewise.
21710 (do_jump_1): Likewise.
21711 (do_jump): Likewise. Use rtx_code_label when feasible.
21712 (do_jump_by_parts_greater_rtx): Likewise.
21713 (do_jump_by_parts_zero_rtx): Likewise.
21714 (do_jump_by_parts_equality_rtx): Likewise.
21715 (do_compare_rtx_and_jump): Likewise.
21716 * dojump.h: Update function prototypes.
21717 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
21719 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
21721 (emit_label_before): Likewise.
21722 (emit_jump_insn_after_noloc): Likewise.
21723 (emit_jump_insn_after_setloc): Likewise.
21724 (emit_jump_insn_after): Likewise
21725 (emit_jump_insn_before_setloc): Likewise.
21726 (emit_jump_insn_before): Likewise.
21727 (emit_label_before): Promote return type to rtx_code_label.
21728 (emit_label): Likewise.
21729 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
21730 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
21732 (emit_stack_restore): Likewise.
21733 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
21734 (do_cmp_and_jump): Likewise.
21735 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
21736 from rtx to rtx_code_label.
21737 (gen_move_insn_uncast): New function.
21738 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
21739 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
21740 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
21741 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
21742 invert_jump_1 and redirect_jump_1.
21743 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
21744 do_compare_rtx_and_jump.
21745 (expand_addsub_overflow): Likewise.
21746 (expand_neg_overflow): Likewise.
21747 (expand_mul_overflow): Likewise.
21748 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
21749 return value of gen_move_insn.
21750 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
21751 * loop-doloop.c (add_test): Use rtx_code_label.
21752 (doloop_modify): Likewise.
21753 (doloop_optimize): Likewise.
21754 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
21755 * lra-constraints.c (emit_spill_move): Remove cast of value returned
21757 (inherit_reload_reg): Add cast when calling dump_insn_slim.
21758 (split_reg): Likewise.
21759 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
21761 * optabs.c (expand_binop_directly): Remove casts of values returned by
21763 (expand_unop_direct): Likewise.
21764 (expand_abs): Likewise.
21765 (maybe_emit_unop_insn): Likewise.
21766 (maybe_gen_insn): Promote return type to rtx_insn.
21767 * optabs.h: Update prototype of maybe_gen_insn.
21768 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
21770 * recog.c (struct peep2_insn_data): Promote type of insn field to
21772 (peep2_reinit_state): Use NULL instead of NULL_RTX.
21773 (peep2_attempt): Remove casts of insn in peep2_insn_data.
21774 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
21775 * recog.h (struct insn_gen_fn): Promote return types of function
21776 pointers and operator ().from rtx to rtx_insn.
21777 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
21778 (fill_eager_delay_slots): Likewise.
21779 (relax_delay_slots): Likewise.
21780 (make_return_insns): Likewise.
21781 (dbr_schedule): Likewise.
21782 (optimize_skips): Likewise.
21783 (reorg_redirect_jump): Likewise.
21784 (fill_slots_from_thread): Likewise.
21785 * reorg.h: Update prototypes.
21786 * resource.c (find_dead_or_set_registers): Use dyn_cast to
21787 rtx_jump_insn instead of check. Use it's jump_target method.
21788 * rtl.h (rtx_jump_insn::jump_label): Define new method.
21789 (rtx_jump_insn::jump_target): Define new method.
21790 (rtx_jump_insn::set_jump_target): Define new method.
21791 * rtlanal.c (tablejump_p): Promote type of one local variable.
21792 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
21793 (sched_analyze_insn): Likewise.
21794 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
21795 (print_insn): Likewise.
21796 * stmt.c (label_rtx): Promote return type to rtx_insn.
21797 (force_label_rtx): Likewise.
21798 (jump_target_rtx): Define new function.
21799 (expand_label): Use it, get rid of one cast.
21800 (expand_naked_return): Promote rtx to rtx_code_label.
21801 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
21802 (expand_case): Use rtx_code_label instread of rtx where feasible.
21803 (expand_sjlj_dispatch_table): Likewise.
21804 (emit_case_nodes): Likewise.
21805 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
21806 * store-motion.c (insert_store): Make use of new return type of
21807 gen_move_insn and remove a cast.
21808 (replace_store_insn): Likewise.
21810 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
21812 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
21813 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
21815 2015-05-20 Jeff Law <law@redhat.com>
21817 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
21818 dispose of the jump thread path when the jump threading
21819 opportunity is cancelled.
21821 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
21823 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
21824 when printing the caret character.
21826 2015-05-20 Marek Polacek <polacek@redhat.com>
21828 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
21830 2015-05-20 Marek Polacek <polacek@redhat.com>
21832 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
21833 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
21834 * gimple-fold.c (canonicalize_bool): Likewise.
21835 (same_bool_result_p): Likewise.
21836 * tree-if-conv.c (parse_predicate): Likewise.
21838 2015-05-20 Marek Polacek <polacek@redhat.com>
21840 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
21841 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
21843 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21845 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
21846 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
21849 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
21851 * config/mips/mips.h (micromips_globals): Declare.
21853 2015-05-20 David Malcolm <dmalcolm@redhat.com>
21855 * timevar.def (TV_INITIALIZE_RTL): New.
21856 * toplev.c (initialize_rtl): Use an auto_timevar to account this
21857 function's time to TV_INITIALIZE_RTL.
21859 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
21861 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
21862 gimple_build_nop calls.
21863 (chkp_find_bounds_for_elem): Likewise.
21864 (chkp_get_zero_bounds): Likewise.
21865 (chkp_get_none_bounds): Likewise.
21866 (chkp_get_bounds_by_definition): Likewise.
21867 (chkp_generate_extern_var_bounds): Likewise.
21868 (chkp_get_bounds_for_decl_addr): Likewise.
21869 (chkp_get_bounds_for_string_cst): Likewise.
21871 2015-05-20 Bin Cheng <bin.cheng@arm.com>
21873 PR tree-optimization/65447
21874 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
21875 (dump_use, dump_uses): Support to dump sub use.
21876 (record_use): New parameters to support sub use. Remove call to
21878 (record_sub_use, record_group_use): New functions.
21879 (compute_max_addr_offset, split_all_small_groups): New functions.
21880 (group_address_uses, rewrite_use_address): New functions.
21881 (strip_offset): New declaration.
21882 (find_interesting_uses_address): Call record_group_use.
21883 (add_candidate): New assertion.
21884 (infinite_cost_p): Move definition forward.
21885 (add_costs): Check INFTY cost and return immediately.
21886 (get_computation_cost_at): Clear setup cost and dependent bitmap
21888 (determine_use_iv_cost_address): Compute cost for sub uses.
21889 (rewrite_use_address_1): Rename from old rewrite_use_address.
21890 (free_loop_data): Free sub uses.
21891 (tree_ssa_iv_optimize_loop): Call group_address_uses.
21893 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
21894 Jim Wilson <jim.wilson@linaro.org>
21896 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
21897 new fields loadv and storev.
21898 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
21899 Initialize loadv and storev.
21900 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
21901 (cortexa53_extra_costs): Likewise.
21902 (cortexa57_extra_costs): Likewise.
21903 (xgene1_extra_costs): Likewise.
21904 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
21907 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
21909 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
21911 (cortexa8_extra_costs): Likewise.
21912 (cortexa5_extra_costs): Likewise.
21913 (cortexa7_extra_costs): Likewise.
21914 (cortexa12_extra_costs): Likewise.
21915 (cortexa15_extra_costs): Likewise.
21916 (v7m_extra_costs): Likewise.
21918 2015-05-20 Jeff Law <law@redhat.com>
21920 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
21921 instead of open-coded version. Also delete the jump thread created
21922 within this function.
21924 2015-05-20 Alan Modra <amodra@gmail.com>
21926 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
21927 stack adjusting insn. Formatting.
21928 (rs6000_emit_prologue): Track stack adjusting insn, and use of
21929 r12. If possible, emit first -fsplit-stack arg pointer insn
21930 before stack adjust. Don't use r12 to save cr if split-stack.
21932 2015-05-20 Alan Modra <amodra@gmail.com>
21934 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
21936 (rs6000_supports_split_stack): New function.
21937 * gcc/config/rs6000/rs6000.c (machine_function): Add
21938 split_stack_arg_pointer.
21939 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
21940 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
21941 rather than virtual_incoming_args_rtx.
21942 (rs6000_va_start): Likewise.
21943 (split_stack_arg_pointer_used_p): New function.
21944 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
21945 (morestack_ref): New var.
21946 (gen_add3_const, rs6000_expand_split_stack_prologue,
21947 rs6000_internal_arg_pointer, rs6000_live_on_entry,
21948 rs6000_split_stack_space_check): New functions.
21949 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
21950 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
21951 (UNSPECV_SPLIT_STACK_RETURN): Define.
21952 (split_stack_prologue, load_split_stack_limit,
21953 load_split_stack_limit_di, load_split_stack_limit_si,
21954 split_stack_return, split_stack_space_check): New expands and insns.
21955 * gcc/config/rs6000/rs6000-protos.h
21956 (rs6000_expand_split_stack_prologue): Declare.
21957 (rs6000_split_stack_space_check): Declare.
21959 2015-05-20 Alan Modra <amodra@gmail.com>
21961 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
21962 (direct_return): Test vrsave_size rather than vrsave_mask.
21963 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
21964 (rs6000_emit_epilogue): Likewise.
21966 2015-05-20 Alan Modra <amodra@gmail.com>
21968 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
21969 when not saving registers.
21970 (debug_stack_info): Adjust to omit printing unused offsets,
21972 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
21975 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21978 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
21979 value_type to const char *.
21981 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
21983 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
21984 to build a biarch toolchain again.
21986 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
21988 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
21989 or implicit declarations.
21990 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
21992 (get_odr_type): Check type has linkage before adding bases.
21993 (register_odr_type): Check that type has linkage before adding it.
21994 (type_known_to_have_no_deriavations_p): Rename to ..
21995 (type_known_to_have_no_derivations_p): This one.
21996 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
21997 (type_known_to_have_no_derivations_p): This one.
21998 * ipa-polymorphic-call.c
21999 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
22002 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
22004 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
22005 (layout_type): Use RECORD_OR_UNION_TYPE_P.
22007 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22009 * config/s390/s390.c (s390_vector_bool_type_p): New function.
22010 (s390_invalid_binary_op): New function.
22011 (TARGET_INVALID_BINARY_OP): Define macro.
22013 2015-05-19 David Sherwood <david.sherwood@arm.com>
22015 * loop-invariant.c (create_new_invariant): Don't calculate address cost
22016 if mode is not a scalar integer.
22017 (get_inv_cost): Increase computational cost for unused invariants.
22019 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22021 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
22022 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
22023 * config/s390/s390-builtin-types.def: New file.
22024 * config/s390/s390-builtins.def: New file.
22025 * config/s390/s390-builtins.h: New file.
22026 * config/s390/s390-c.c: New file.
22027 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
22028 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
22029 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
22030 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
22032 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
22034 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
22035 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
22036 variable definitions.
22037 (s390_const_operand_ok): New function.
22038 (s390_expand_builtin): Rewrite.
22039 (s390_init_builtins): New function.
22040 (s390_handle_vectorbool_attribute): New function.
22041 (s390_attribute_table): Add s390_vector_bool attribute.
22042 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
22043 (s390_branch_condition_mask): Generate masks for new modes.
22044 (s390_expand_vec_compare_cc): New function.
22045 (s390_mangle_type): Add mangling for vector bool types.
22046 (enum s390_builtin): Remove.
22047 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
22049 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
22050 s390_cpu_cpp_builtins.
22051 (REGISTER_TARGET_PRAGMAS): New macro.
22052 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
22053 (insn_cmp mode attribute): Add new CC modes.
22054 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
22055 (lcbb): New pattern definition.
22056 * config/s390/s390intrin.h: Include vecintrin.h.
22057 * config/s390/t-s390: New file.
22058 * config/s390/vecintrin.h: New file.
22059 * config/s390/vector.md: Include vx-builtins.md.
22060 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
22063 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22065 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
22067 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
22068 (s390_select_ccmode): Likewise.
22069 (s390_canonicalize_comparison): Swap operands if necessary.
22070 (s390_expand_vec_compare_scalar): Expand DFmode compare using
22071 single element vector instructions.
22072 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
22073 (s390_branch_condition_mask): Generate CC masks for the new modes.
22074 * config/s390/s390.md (v0, vf, vd): New mode attributes.
22075 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
22076 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
22077 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
22078 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
22079 (*extend<DSF:mode><BFP:mode>2): New insn definition.
22080 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
22081 (extend<DSF:mode><BFP:mode>2): Turn into expander.
22082 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
22083 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
22084 (sqrt<mode>2): Add vector instruction.
22086 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22088 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
22090 * config/s390/predicates.md (const0_operand, constm1_operand)
22091 (constable_operand): Accept vector operands.
22092 * config/s390/s390-modes.def: Add supported vector modes.
22093 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
22094 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
22095 (s390_bytemask_vector_p, s390_expand_vec_strlen)
22096 (s390_expand_vec_compare, s390_expand_vcond)
22097 (s390_expand_vec_init): Add prototypes.
22098 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
22099 (s390_vector_mode_supported_p): New function.
22100 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
22101 (s390_contiguous_bitmask_vector_p): New function.
22102 (s390_bytemask_vector_p): New function.
22103 (s390_split_ok_p): Vector regs don't work either.
22104 (regclass_map): Add VEC_REGS.
22105 (s390_legitimate_constant_p): Handle vector constants.
22106 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
22107 (legitimate_reload_vector_constant_p): New function.
22108 (s390_preferred_reload_class): Handle CONST_VECTOR.
22109 (s390_reload_symref_address): Likewise.
22110 (s390_secondary_reload): Vector memory instructions only support
22111 short displacements. Rename reload*_nonoffmem* to reload*_la*.
22112 (s390_emit_ccraw_jump): New function.
22113 (s390_expand_vec_strlen): New function.
22114 (s390_expand_vec_compare): New function.
22115 (s390_expand_vcond): New function.
22116 (s390_expand_vec_init): New function.
22117 (s390_dwarf_frame_reg_mode): New function.
22118 (print_operand): Handle addresses with 'O' and 'R' constraints.
22119 (NR_C_MODES, constant_modes): Add vector modes.
22120 (s390_output_pool_entry): Handle vector constants.
22121 (s390_hard_regno_mode_ok): Handle vector registers.
22122 (s390_class_max_nregs): Likewise.
22123 (s390_cannot_change_mode_class): New function.
22124 (s390_invalid_arg_for_unprototyped_fn): New function.
22125 (s390_function_arg_vector): New function.
22126 (s390_function_arg_float): Remove size variable.
22127 (s390_pass_by_reference): Handle vector arguments.
22128 (s390_function_arg_advance): Likewise.
22129 (s390_function_arg): Likewise.
22130 (s390_return_in_memory): Vector values are returned in a VR if
22132 (s390_function_and_libcall_value): Handle vector arguments.
22133 (s390_gimplify_va_arg): Likewise.
22134 (s390_call_saved_register_used): Consider the arguments named.
22135 (s390_conditional_register_usage): Disable v16-v31 for non-vec
22137 (s390_preferred_simd_mode): New function.
22138 (s390_support_vector_misalignment): New function.
22139 (s390_vector_alignment): New function.
22140 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
22141 (TARGET_VECTOR_MODE_SUPPORTED_P)
22142 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
22143 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
22144 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
22145 (TARGET_VECTOR_ALIGNMENT): Define target macro.
22146 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
22147 (FIRST_PSEUDO_REGISTER): Increase value.
22148 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
22149 (VECTOR_REG_P): Define macros.
22150 (FIXED_REGISTERS, CALL_USED_REGISTERS)
22151 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
22152 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
22153 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
22154 Add vector registers.
22155 (CANNOT_CHANGE_MODE_CLASS): Call C function.
22156 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
22157 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
22159 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
22160 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
22161 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
22162 (VR*_REGNUM): New constants.
22163 (ALL): New mode iterator.
22164 (INTALL): Remove mode iterator.
22166 (movti): Implement TImode moves for VRs.
22167 Disable TImode splitter for VR targets.
22168 Implement splitting TImode GPR<->VR moves.
22169 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
22170 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
22171 reload<mode>_la_in, reload<mode>_la_out.
22172 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
22173 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
22174 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
22175 (mov<mode> SF SD): Prefer lder, lde for loading.
22176 Add lrl and strl instructions.
22177 Add vector instructions.
22178 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
22179 Call s390_expand_vec_strlen on z13.
22180 (*cc_to_int): Change predicate to nonimmediate_operand.
22181 (addti3): Rename to *addti3. New expander.
22182 (subti3): Rename to *subti3. New expander.
22183 * config/s390/vector.md: New file.
22185 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22187 * common/config/s390/s390-common.c (processor_flags_table): Add
22189 * config.gcc: Add z13.
22190 * config/s390/s390-opts.h (enum processor_type): Add
22191 PROCESSOR_2964_Z13.
22192 * config/s390/s390.c (s390_adjust_priority): Check for
22193 PROCESSOR_2964_Z13.
22194 (s390_reorg): Likewise.
22195 (s390_sched_reorder): Likewise.
22196 (s390_sched_variable_issue): Likewise.
22197 (s390_loop_unroll_adjust): Likewise.
22198 (s390_option_override): Likewise. Default to -mvx when available.
22199 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
22200 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
22201 (TARGET_VX_ABI): Define macros.
22203 (TARGET_DEFAULT): Add MASK_OPT_VX.
22204 * config/s390/s390.md ("cpu" attribute): Add z13.
22205 ("cpu_facility" attribute): Add vec.
22206 * config/s390/s390.opt (processor_type): Add z13.
22207 (mvx): New options.
22208 * doc/invoke.texi: Add z13 option for -march.
22210 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22212 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
22213 mode check to make sure that only scalar integer values are
22216 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
22218 * tree.c (verify_type_variant): Fix #undef.
22219 (gimple_canonical_types_compatible_p): Move here from lto.c
22220 (verify_type): Verify TYPE_CANONICAL compatibility.
22221 * tree.h (gimple_canonical_types_compatible_p): Declare.
22223 2015-05-19 Jakub Jelinek <jakub@redhat.com>
22225 PR middle-end/66199
22226 * tree.h (OMP_TEAMS_COMBINED): Define.
22227 * gimplify.c (enum gimplify_omp_var_data): Add
22228 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
22229 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
22230 (omp_notice_variable): Accept both ORT_TEAMS
22231 and ORT_COMBINED_TEAMS. Don't recurse if
22232 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
22233 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
22235 (omp_no_lastprivate): New function.
22236 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
22237 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
22238 notice_outer and set appropriate bits, otherwise make
22239 sure default(none) combined constructs won't complain.
22240 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
22241 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
22242 omp_no_lastprivate either remove the clause or turn it
22243 into OMP_CLAUSE_PRIVATE.
22244 (gimplify_omp_for): Fix up handling of implicit
22245 lastprivate or linear iterators.
22246 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
22247 ORT_COMBINED_TEAMS.
22248 * omp-low.c (lower_omp_for_lastprivate): For combined
22249 for simd use fd.loop.n2 from the for rather than simd.
22251 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22253 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
22254 instead of gen_rtx_raw_REG.
22255 (cris_expand_epilogue): Likewise.
22256 * config/microblaze/microblaze.c (microblaze_classify_address):
22258 * config/sparc/sparc.md: Likewise.
22260 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
22262 * config/alpha/alpha.c (alpha_legitimize_reload_address)
22263 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
22264 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
22265 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
22266 Use CASE_CONST_SCALAR_INT.
22267 (print_operand) <case 'M'>: Use mode_width_operand to check the
22268 value of the constant.
22269 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
22270 * config/alpha/predicates.md (input_operand): Use general_operand
22271 instead of match_code as operand check.
22272 (symbolic_operand): Use match_code with subexpression digits.
22273 * config/alpha/constraints.md (Q): Ditto.
22275 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22277 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
22279 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22281 * config/s390/s390.c (s390_secondary_reload): Fix check for
22282 load/store relative.
22284 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22286 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
22287 alternative_mask to uint64_t.
22289 2015-05-19 Jakub Jelinek <jakub@redhat.com>
22291 PR tree-optimization/66187
22292 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
22293 Pass TYPE_SIGN to tree_int_cst_min_precision. If
22294 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
22296 2015-05-19 David Malcolm <dmalcolm@redhat.com>
22298 * diagnostic.c (diagnostic_report_current_module): Strengthen
22299 local "new_map" from const line_map * to
22300 const line_map_ordinary *.
22301 * genmatch.c (error_cb): Likewise for local "map".
22302 (output_line_directive): Likewise for local "map".
22303 * input.c (expand_location_1): Likewise for local "map".
22304 Pass NULL rather than &map to
22305 linemap_unwind_to_first_non_reserved_loc, since the value is never
22306 read from there, and the value written back not read from here.
22307 (is_location_from_builtin_token): Strengthen local "map" from
22308 const line_map * to const line_map_ordinary *.
22309 (dump_location_info): Strengthen locals "map" from
22310 line_map *, one to const line_map_ordinary *, the other
22311 to const line_map_macro *.
22312 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
22313 const line_map * to const line_map_macro *.
22314 (maybe_unwind_expanded_macro_loc): Add a call to
22315 linemap_check_macro when writing to the "map" field of the
22317 Introduce local const line_map_ordinary * "ord_map", using it in
22318 place of "map" in the part of the function where we know we have
22319 an ordinary map. Strengthen local "m" from const line_map * to
22320 const line_map_ordinary *.
22322 2015-05-19 Nick Clifton <nickc@redhat.com>
22325 * config/msp430/msp430.md (zero_extendhisi2): Add support for
22326 separate source and destination registers.
22328 2015-05-19 Richard Biener <rguenther@suse.de>
22330 PR tree-optimization/66165
22331 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
22332 for no load permutation.
22334 PR tree-optimization/66185
22335 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
22336 when building the SLP node from scalars.
22338 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
22339 Tristan Gingold <gingold@adacore.com>
22341 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
22342 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
22343 (expand_stack_restore): Call record_new_stack_level.
22344 (expand_stack_save): Do not call do_pending_stack_adjust.
22345 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
22346 * calls.c (expand_call): Call record_new_stack_level for alloca.
22347 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
22348 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
22349 (update_sjlj_context): New global function.
22350 * except.h (update_sjlj_context): Declare.
22351 * explow.c (record_new_stack_level): New global function.
22352 (allocate_dynamic_stack_space): Call record_new_stack_level.
22353 * explow.h (record_new_stack_level): Declare.
22354 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
22355 * cfgrtl.c (duplicate_insn_chain): Likewise.
22357 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22359 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
22360 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
22361 STACK_GROWS_DOWNWARD as normal if.
22362 (expand_call): Likewise.
22364 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
22367 * config/sh/sh.md (*round_int_even): New insn_and_split and
22368 accompanying new unnamed split.
22370 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22372 * bitmap.c (bitmap_set_range): Handle count==1 specially.
22373 (bitmap_clear_range): Likewise.
22374 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
22375 bitmap_set_range unconditionally.
22376 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
22377 * df-scan.c (df_mark_reg): Likewise.
22378 * haifa-sched.c (setup_ref_regs): Likewise.
22379 * sched-rgn.c (update_live_1): Likewise.
22381 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22383 * regs.h (END_HARD_REGNO): Delete.
22384 (END_REGNO): Move to...
22386 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
22387 * caller-save.c (mark_set_regs): Likewise.
22388 * combine.c (move_deaths, distribute_notes): Likewise.
22389 * cse.c (invalidate, invalidate_for_call): Likewise.
22390 * df-scan.c (df_ref_record): Likewise.
22391 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
22392 (record_last_reg_set_info): Likewise.
22393 * reg-stack.c (convert_regs_exit): Likewise.
22394 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
22395 * resource.c (update_live_status): Likewise.
22396 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
22398 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22400 * rtl.h (reg_info): Add an nregs field.
22401 (REG_NREGS): Use it.
22402 (SET_REGNO_RAW): Delete.
22403 (set_regno_raw): New function.
22404 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
22405 (END_REGNO): Redefine in terms of REG_NREGS.
22406 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
22408 * emit-rtl.c (set_mode_and_regno): Likewise.
22409 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
22410 instead of SET_REGNO_RAW.
22412 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22414 * rtl.h (PUT_MODE_RAW): New macro.
22415 (PUT_REG_NOTE_KIND): Use it.
22416 (set_mode_and_regno): Declare.
22417 (gen_raw_REG): Change regno to "unsigned int".
22418 (gen_rtx_REG): Change "unsigned" to "unsigned int".
22419 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
22420 use set_mode_and_regno to change the mode of registers.
22421 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
22422 * emit-rtl.c (set_mode_and_regno): New function.
22423 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
22424 * caller-save.c (reg_save_code): Use set_mode_and_regno.
22425 * expr.c (init_expr_target): Likewise.
22426 * ira.c (setup_prohibited_mode_move_regs): Likewise.
22427 * postreload.c (reload_cse_simplify_operands): Likewise.
22429 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22431 * caller-save.c (init_caller_save): Use word_mode and
22432 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
22433 * expr.c (init_expr_target): Likewise.
22434 * ira.c (setup_prohibited_mode_move_regs): Likewise.
22435 * postreload.c (reload_cse_regs_1): Likewise.
22437 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22439 * rtl.def (REG): Change format to "r".
22440 * rtl.h (rtunion): Remove rt_reg.
22441 (reg_info): New structure.
22442 (rtx_def): Add reg field to main union.
22443 (X0REGATTR): Delete.
22444 (REG_CHECK): New macro.
22445 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
22446 * rtl.c (rtx_format): Document "r".
22447 (rtx_code_size): Handle REG specially.
22448 * gengenrtl.c (special_format): Return true for formats
22450 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
22451 Deal with REG_ATTRS after the field loop.
22452 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
22453 * expmed.c (init_expmed): Call gen_raw_REG instead of
22455 * expr.c (init_expr_target): Likewise.
22456 * regcprop.c (maybe_mode_change): Likewise.
22457 * varasm.c (make_decl_rtl): Likewise.
22458 * final.c (leaf_renumber_regs_insn): Return early after
22460 * genemit.c (gen_exp): Handle 'r' fields.
22461 * genpeep.c (match_rtx): Likewise.
22462 * gensupport.c (subst_pattern_match): Likewise.
22463 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
22464 (alter_constraints, subst_dup): Likewise.
22465 * read-rtl.c (read_rtx_code): Likewise.
22466 * print-rtl.c (print_rtx): Likewise.
22467 * genrecog.c (find_operand, find_matching_operand): Likewise.
22468 (validate_pattern, match_pattern_2): Likewise.
22469 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
22470 (rtx_test::regno_field): New function.
22471 (operator ==, safe_to_hoist_p, transition_parameter_type)
22472 (parameter_type_string, print_parameter_value)
22473 (print_nonbool_test, print_test): Handle new enum values.
22474 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
22475 * lra-constraints.c (operands_match_p): Likewise.
22477 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22479 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
22480 Change type of new_regno to unsigned int.
22481 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
22482 new_regno to unsigned int.
22483 (df_ref_change_reg_with_loc): Remove old_regno parameter.
22484 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
22485 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
22486 (SET_REGNO_RAW): Add space after ",".
22488 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22490 * rtl.h (REG_NREGS): New macro
22491 * alias.c (record_set): Use it.
22492 * cfgcleanup.c (mark_effect): Likewise.
22493 * combine.c (likely_spilled_retval_1): Likewise.
22494 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
22495 (move_deaths, distribute_notes): Likewise.
22496 * cselib.c (cselib_record_set): Likewise.
22497 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
22498 * df-scan.c (df_mark_reg): Likewise.
22499 * dse.c (look_for_hardregs): Likewise.
22500 * dwarf2out.c (reg_loc_descriptor): Likewise.
22501 (multiple_reg_loc_descriptor): Likewise.
22502 * expr.c (write_complex_part, read_complex_part): Likewise.
22503 (emit_move_complex): Likewise.
22504 * haifa-sched.c (setup_ref_regs): Likewise.
22505 * ira-lives.c (mark_hard_reg_live): Likewise.
22506 * lra.c (lra_set_insn_recog_data): Likewise.
22507 * mode-switching.c (create_pre_exit): Likewise.
22508 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
22509 (reload_combine_recognize_pattern): Likewise.
22510 (reload_combine_note_use, move2add_record_mode): Likewise.
22511 (reload_cse_move2add): Likewise.
22512 * reg-stack.c (subst_stack_regs_pat): Likewise.
22513 * regcprop.c (kill_value, copy_value): Likewise.
22514 (copyprop_hardreg_forward_1): Likewise.
22515 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
22516 (build_def_use): Likewise.
22517 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
22518 (deps_analyze_insn): Likewise.
22519 * sched-rgn.c (check_live_1, update_live_1): Likewise.
22520 * sel-sched.c (count_occurrences_equiv): Likewise.
22521 * valtrack.c (dead_debug_insert_temp): Likewise.
22523 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22525 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
22526 * dse.c (note_add_store): Likewise.
22527 * ira-lives.c (mark_hard_reg_dead): Likewise.
22528 * loop-invariant.c (mark_reg_store): Likewise.
22529 (mark_reg_death): Likewise.
22530 * postreload.c (reload_combine): Likewise.
22531 (reload_combine_note_store): Likewise.
22532 (reload_combine_note_use): Likewise.
22533 * recog.c (peep2_reg_dead_p): Likewise.
22535 2015-05-19 Alan Modra <amodra@gmail.com>
22537 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
22538 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
22539 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
22541 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
22542 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
22543 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
22544 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
22546 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
22548 * config/mips/mips.md (JOIN_MODE): New mode iterator.
22549 (join2_load_Store<JOIN_MODE:mode>): New pattern.
22550 (join2_loadhi): Likewise.
22551 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
22552 load-load and store-stores.
22553 * config/mips/mips.opt (mload-store-pairs): New option.
22554 (TARGET_LOAD_STORE_PAIRS): New macro.
22555 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
22556 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
22557 * config/mips/mips.c (mips_load_store_bonding_p): New function.
22559 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
22561 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
22563 * dojump.c (do_compare_rtx_and_jump): Likewise.
22564 * expmed.c (emit_store_flag_1): Likewise.
22565 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
22566 * final.c (sprint_ul): Use std::reverse for reversing a string.
22567 * fold-const.c (extract_muldiv_1): Use std::swap.
22568 * genmodes.c (emit_mode_int_n): Likewise.
22569 * ifcvt.c (dead_or_predicable): Likewise.
22570 * ira-build.c (ira_merge_live_ranges): Likewise.
22571 (swap_allocno_copy_ends_if_necessary): Likewise.
22572 * ira.c (ira_setup_alts): Likewise.
22573 * loop-iv.c (iv_analyze_expr): Likewise.
22574 (implies_p): Likewise.
22575 (canon_condition): Likewise.
22576 * lra-constraints.c (swap_operands): Likewise.
22577 * lra-lives.c (lra_merge_live_ranges): Likewise.
22578 * omega.c (swap): Remove.
22580 (omega_unprotect_1): Use std::swap.
22581 (omega_solve_geq): Likewise.
22582 * optabs.c (expand_binop_directly): Likewise.
22583 (expand_binop): Likewise.
22584 (emit_conditional_move): Likewise.
22585 (emit_conditional_add): Likewise.
22586 * postreload.c (reload_cse_simplify_operands): Likewise.
22587 * reg-stack.c (emit_swap_insn): Likewise.
22588 (swap_to_top): Likewise.
22589 (compare_for_stack_reg): Likewise.
22590 (subst_asm_stack_regs): Likewise.
22591 * reload.c (find_reloads): Likewise.
22592 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
22593 * sel-sched.c (invoke_reorder_hooks): Likewise.
22594 (create_block_for_bookkeeping): Likewise.
22595 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
22596 (lambda_matrix_right_hermite): Use std::swap.
22597 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
22598 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
22599 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
22600 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
22601 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
22602 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
22603 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
22604 * tree-vrp.c (compare_ranges): Likewise.
22605 * var-tracking.c (add_with_sets): Likewise.
22606 (vt_find_locations): Likewise.
22608 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
22610 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
22612 (FBSD_ENDFILE_SPEC): Likewise.
22613 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
22614 config/freebsd-spec.h.
22615 (ENDFILE_SPEC): Likewise.
22617 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
22618 Richard Henderson <rth@redhat.com>
22621 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
22622 Check for a memory location that is not a reference (using an AND)
22623 to an unaligned location here.
22624 * config/alpha/predicates.md (normal_memory_operand): Remove.
22626 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
22628 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
22629 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
22631 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
22633 * config/mips/mips.c (micromips_globals): New variable.
22634 (mips_set_compression_mode): Save and reinitialize target-dependent
22635 state for microMIPS.
22637 2015-05-18 Martin Liska <mliska@suse.cz>
22639 * dbgcnt.def: Add new counter.
22640 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
22642 2015-05-18 Martin Liska <mliska@suse.cz>
22644 * dbgcnt.def: Sort counters.
22645 * opts.c (common_handle_option): Do not compile if
22646 -fdbg-cnt-list is enabled.
22648 2015-05-18 Tom de Vries <tom@codesourcery.com>
22650 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
22651 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
22652 address operator to va_list operand.
22653 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
22655 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
22657 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
22658 * config/s390/s390.c (s390_gimplify_va_arg): Same.
22659 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
22661 2015-05-18 Tom de Vries <tom@codesourcery.com>
22663 * tree-ssa-tail-merge.c: Fix whitespace.
22665 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
22667 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
22668 cortex-a17, and cortex-a17.cortex-a7.
22670 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
22673 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
22675 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
22678 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
22679 QImode inner modes for TARGET_AVX512BW. Force mask operand
22680 to a register for AVX512F modes.
22682 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
22684 * toplev.c (emit_debug_global_declarations): Do not output debug info
22685 when doing slim LTO objects.
22687 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
22689 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
22690 odr_types_equivalent_p): Declare.
22691 (odr_type_p): Use gcc_checking_assert.
22692 (type_in_anonymous_namespace_p) Declare.
22693 (type_with_linkage_p): Declare.
22694 * common.opt (Wlto-type-mismatch): New warning.
22695 * ipa-devirt.c (compound_type_base): New function.
22696 (odr_or_derived_type_p): New function.
22697 (odr_types_equivalent_p): New function.
22698 (add_type_duplicate): Simplify.
22699 (type_with_linkage_p): Add hack to prevent false positives on C types
22700 (type_in_anonymous_namespace_p): Likewise.
22701 * tree.c (need_assembler_name_p): Use type_with_linkage.
22702 * tree.h (type_in_anonymous_namespace_p): Remove.
22703 * doc/invoke.texi (-Wlto-type-mismatch): Document
22705 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
22707 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
22708 (verify_type): Verify STRING_FLAG.
22710 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
22713 * tree-pretty-print.c (percent_K_format): Replace locus pointer
22714 with accessor function.
22715 * tree-diagnostic.c (diagnostic_report_current_function): Use
22716 diagnostic_location function.
22717 (maybe_unwind_expanded_macro_loc): Likewise.
22718 (virt_loc_aware_diagnostic_finalizer): Likewise.
22719 (default_tree_printer): Replace locus pointer with accessor function.
22720 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
22721 (diagnostic_set_info_translated): Initialize second location.
22722 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
22723 (diagnostic_show_locus): Handle two locations. Call
22724 diagnostic_print_caret_line.
22725 (diagnostic_print_caret_line): New.
22726 (default_diagnostic_starter): Use diagnostic_location function.
22727 (diagnostic_report_diagnostic): Use diagnostic_location function.
22728 (verbatim): Do not set text.locus.
22729 * diagnostic.h (struct diagnostic_info): Remove location field.
22730 (struct diagnostic_context): Make caret_chars an array of two.
22731 (diagnostic_location): New inline.
22732 (diagnostic_expand_location): Handle two locations.
22733 (diagnostic_same_line): New inline.
22734 (diagnostic_print_caret_line): Declare.
22735 (CARET_LINE_MARGIN): New constant.
22736 * pretty-print.c (pp_printf): Do not set text.locus.
22737 (pp_verbatim): Do not set text.locus.
22738 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
22739 (struct text_info): Replace locus pointer with locations
22740 array. Add accessor functions.
22742 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
22743 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22746 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
22747 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
22748 large constants in register instead of splitting them.
22750 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
22753 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
22754 replacements in memory addresses.
22755 (get_unaligned_address): Ditto.
22757 2015-05-16 James Bowman <james.bowman@ftdichip.com>
22759 * config/ft32/*: New files for FT32 port.
22760 * doc/install.texi: Add FT32 information.
22761 * doc/invoke.texi: Add FT32 information.
22762 * doc/md.texi: Add FT32 information.
22763 * doc/contrib.texi: Self added.
22765 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
22767 PR tree-optimization/64454
22768 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
22769 (-1 - A -> ~A): Remove unnecessary condition.
22771 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
22773 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
22774 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
22775 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
22777 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
22779 * ipa-chkp.h (chkp_wrap_function): New.
22780 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
22781 (chkp_wrap_function_name): New.
22782 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
22783 to get wrapper name.
22784 * lto-cgraph.c: Include ipa-chkp.h.
22785 (input_cgraph_1): Avoid alias chain for wrappers.
22787 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
22789 PR middle-end/66134
22790 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
22791 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
22793 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22795 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
22796 (AARCH64_FL_SLOWMUL): Delete.
22797 (AARCH64_FL_CRC): Redefine to 1<<3.
22798 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
22800 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22802 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
22805 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
22807 * config/alpha/alpha.md (extendqidi2): Use general_operand
22808 instead of some_operand for operand[1] predicate.
22809 (extendhidi2): Ditto.
22810 (cbranchdi4): Use general_operand instead of some_operand
22811 for operand[1] and operands[2] predicates.
22812 (cstoredi4): Ditto.
22813 * config/alpha/predicates.md (some_operand): Remove unused predicate.
22814 (some_ni_operand): Ditto.
22816 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
22818 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
22819 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
22820 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
22821 low part of the constant using alpha_emit_set_const_1.
22822 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
22824 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
22826 * varasm.c (output_constant_pool_1): Pass down alignment from
22827 constant pool entry's descriptor to output_constant_pool_2.
22828 (output_object_block): Add comment prior to call to
22829 output_constant_pool_1.
22831 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
22833 PR rtl-optimization/65862
22834 * target.def (ira_change_pseudo_allocno_class): New hook.
22835 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
22837 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
22838 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
22840 * ira-costs.c (find_costs_and_classes): Call the hook and change
22841 classes when it is necessary.
22842 * doc/tm.texi: Update.
22844 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
22846 * config/i386/i386.md (sibcall_memory): Check that register with
22847 callee address is not also used as one of the arguments, instead
22848 of checking that it is not live after the sibcall.
22849 (sibcall_pop_memory): Ditto.
22850 (sibcall_value_memory): Ditto.
22851 (sibcall_value_pop_memory): Ditto.
22853 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
22855 * generic-match-head.c (types_match): Handle non-types.
22856 * gimple-match-head.c (types_match): Likewise.
22857 * match.pd: Remove unnecessary TREE_TYPE for types_match.
22859 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
22861 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
22862 (csneg3<mode>_insn): Enable expansion of pattern.
22864 2015-05-14 Nick Clifton <nickc@redhat.com>
22866 * config/rl78/rl78.c (rl78_select_section): Select the correct
22867 default section based upon the category of the decl.
22869 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
22871 PR rtl-optimization/30967
22872 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
22873 destination mode for the cost of scc patterns.
22875 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
22877 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
22878 using SWIM248 mode iterator.
22879 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
22880 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
22881 for operand[2] constraint.
22882 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
22884 2015-05-13 Jakub Jelinek <jakub@redhat.com>
22886 PR middle-end/66133
22887 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
22888 make sure it is never noreturn, even when the task body does not
22890 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
22891 right before GIMPLE_OMP_RETURN.
22892 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
22893 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
22894 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
22896 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22898 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
22899 * tree-ssa-math-opts.c: Include params.h
22900 (pow_synth_sqrt_info): New struct.
22901 (representable_as_half_series_p): New function.
22902 (get_fn_chain): Likewise.
22903 (print_nested_fn): Likewise.
22904 (dump_fractional_sqrt_sequence): Likewise.
22905 (dump_integer_part): Likewise.
22906 (expand_pow_as_sqrts): Likewise.
22907 (gimple_expand_builtin_pow): Use above to attempt to expand
22908 pow as series of square roots. Removed now unused variables.
22910 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
22912 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
22913 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
22914 Remove *p0 and *p1 arguments. Rewrite function.
22915 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
22916 (alpha_split_const_mov): Update calls to alpha_extract_integer and
22917 alpha_emit_set_long_const.
22918 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
22919 (alpha_output_mi_thunk_osf): Ditto.
22920 * config/alpha/alpha.md (movti): Do not check operands[1]
22923 2015-05-13 Richard Biener <rguenther@suse.de>
22925 PR tree-optimization/66129
22926 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
22928 (vect_schedule_slp_instance): Fix typo.
22930 2015-05-13 David Malcolm <dmalcolm@redhat.com>
22932 * common.opt (fdump-internal-locations): New option.
22933 * input.c: Include diagnostic-core.h.
22934 (get_end_location): New function.
22935 (write_digit): New function.
22936 (write_digit_row): New function.
22937 (dump_location_range): New function.
22938 (dump_labelled_location_range): New function.
22939 (dump_location_info): New function.
22940 * input.h (dump_location_info): New prototype.
22941 * toplev.c (compile_file): Handle flag_dump_locations.
22943 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
22945 * gimple-expr.h (is_gimple_constant): Reorder.
22946 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
22948 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
22950 * combine.c (simplify_set): When generating a CC set, if the
22951 source already is in the correct mode, do not wrap it in a
22952 compare. Simplify the rest of that code.
22954 2015-05-13 Richard Biener <rguenther@suse.de>
22956 PR tree-optimization/66123
22957 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
22960 2015-05-13 Richard Biener <rguenther@suse.de>
22962 PR middle-end/66110
22963 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
22965 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
22967 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
22969 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
22970 * aclocal.m4: Regenerated with automake-1.11.6.
22972 2015-05-13 Tom de Vries <tom@codesourcery.com>
22974 PR tree-optimization/66010
22975 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
22976 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
22977 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
22978 and rval based on do_deref.
22980 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
22983 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
22984 link time constants into adress expressions and therefore set
22987 2015-05-13 Jakub Jelinek <jakub@redhat.com>
22990 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
22991 Use SWI248 iterator instead of SWI.
22992 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
22993 Use eq_attr "alternative" "0" instead of match_test in
22994 length_immediate attribute computation.
22995 (*mulvhi4, *mulvhi4_1): New define_insns.
22998 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
22999 SIGNED to get precision of non-negative value.
23001 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
23004 * function.c (diddle_return_value_1): Process bounds first.
23005 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
23008 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
23010 PR rtl-optimization/64616
23011 * loop-invariant.c (can_move_invariant_reg): New.
23012 (move_invariant_reg): Call above new function to decide whether
23013 instruction can just be moved, skipping creation of temporary
23016 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
23018 PR target/pr66047.c
23019 * i386.c (ix86_function_sseregparm): Only return -1 if local function
23020 with implied regparm is called from -mno-sse function.
23021 (init_cumulative_args): Output error if ix86_function_sseregparm
23022 return -1 and SSE register would be needed.
23023 (function_arg_advance_32): Likewise.
23024 (function_arg_32): Likewise.
23025 * i386.h (ix86_args): Add decl field.
23027 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
23030 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
23031 inlines across optimization boundary.
23033 2015-05-12 Jason Merrill <jason@redhat.com>
23035 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
23036 string literal and macro name.
23038 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
23040 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
23041 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
23042 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
23044 2015-05-12 David Malcolm <dmalcolm@redhat.com>
23046 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
23047 (-Wmisleading-indentation): New option.
23048 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
23050 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
23052 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
23053 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
23054 (alpha_extract_integer): Ditto.
23055 (alpha_legitimate_constant_p): Ditto.
23056 (alpha_split_tmode_pair): Ditto.
23057 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
23058 (alpha_expand_mov): Ditto.
23059 (print_operand): Remove handling of 'H' modifier.
23060 <case 'm'>: Remove CONST_DOUBLE handling.
23061 (summarize_insn): Handle CONST_WIDE_INT.
23062 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
23064 (movti): Handle CONST_WIDE_INT.
23065 * config/alpha/constraints.md ('H'): Remove constraint definition.
23066 ('G'): Do not match MODE_FLOAT class.
23067 * config/alpha/predicates.md (const0_operand): Also match
23069 (non_add_const_operand): Ditto.
23070 (non_zero_const_operand): Ditto.
23071 (some_operand): Ditto.
23072 (input_operand): Ditto. Handle CONST_WIDE_INT.
23073 (and_operand): Do not match const_double.
23074 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
23076 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
23079 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
23080 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
23081 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
23082 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
23083 is_mm_seq_cst, is_mm_sync): New accessor functions.
23084 * builtins.c (expand_builtin_sync_operation,
23085 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
23086 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
23087 (get_memmodel, expand_builtin_atomic_compare_exchange,
23088 expand_builtin_atomic_load, expand_builtin_atomic_store,
23089 expand_builtin_atomic_clear): Use new accessor routines.
23090 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
23091 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
23092 (maybe_emit_sync_lock_test_and_set): Use new accessors and
23093 MEMMODEL_SYNC_ACQUIRE.
23094 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
23095 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
23096 expand_atomic_store): Use new accessors.
23097 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
23098 * tsan.c (instrument_builtin_call): Update check for memory model beyond
23099 final enum to use MEMMODEL_LAST.
23100 * c-family/c-common.c: Use new accessor for memmodel_base.
23101 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
23103 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
23104 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
23105 mem_thread_fence, *dmb): Likewise.
23106 * config/alpha/alpha.c (alpha_split_compare_and_swap,
23107 alpha_split_compare_and_swap_12): Likewise.
23108 * config/arm/arm.c (arm_expand_compare_and_swap,
23109 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
23110 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
23111 atomic_loaddi): Likewise.
23112 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
23114 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
23115 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
23117 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
23118 atomic_store<mode>, atomic_compare_and_swap<mode>,
23119 atomic_exchange<mode>): Use new accessors.
23120 * config/mips/mips.c (mips_process_sync_loop): Likewise.
23121 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
23122 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
23123 rs6000_post_atomic_barrier): Add new cases.
23124 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
23125 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
23126 (atomic_load<mode>): Add new cases and use new accessors.
23127 (store_quadpti): Add new cases.
23128 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
23130 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
23131 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
23134 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
23136 * ipa-devirt.c (type_with_linkage_p): New function.
23137 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
23139 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
23140 (can_be_name_hashed_p): Simplify.
23141 (hash_odr_name): Check that type has linkage before checking if it is
23143 (types_same_for_odr): Likewise.
23144 (odr_name_hasher::equal): Likewise.
23145 (odr_subtypes_equivalent_p): Likewise.
23146 (warn_types_mismatch): Likewise.
23147 (get_odr_type): Likewise.
23148 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
23149 * ipa-utils.h (odr_type_p): Move offline.
23150 * tree.c (need_assembler_name_p): Fix handling of types
23152 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
23154 2015-05-12 David Malcolm <dmalcolm@redhat.com>
23156 * timevar.c (timevar_enable): Delete in favor of...
23157 (g_timer): New global.
23158 (struct timevar_def): Move to timevar.h inside class timer.
23159 (struct timevar_stack_def): Likewise.
23160 (timevars): Delete global in favor of field "m_timevars" within
23161 class timer in timevar.h
23162 (stack): Likewise, in favor of field "m_stack".
23163 (unused_stack_instances): Likewise, in favor of field
23164 "m_unused_stack_instances".
23165 (start_time): Likewise, in favor of field "m_start_time".
23166 (get_time): Eliminate check for timevar_enable.
23167 (timer::timer): New function, built from part of timevar_init.
23168 (timevar_init): Rewrite idempotency test from using
23169 "timevar_enable" bool to using dynamic allocation of "g_timer".
23170 Move rest of implementation into timer's constructor.
23171 (timevar_push_1): Rename to...
23172 (timer::push): ...this, adding "m_" prefixes to variables that
23173 are now fields of timer.
23174 (timevar_pop_1): Likewise, rename to...
23175 (timer::pop): ...this, and add "m_" prefixes.
23176 (timevar_start): Replace test for "timevar_enable" with one for
23177 "g_timer", and move bulk of implementation to...
23178 (timer::start): ...here, adding "m_" prefixes.
23179 (timevar_stop): Likewise, from here...
23180 (timer::stop): ...to here.
23181 (timevar_cond_start): Likewise, from here...
23182 (timer::cond_start): ...to here.
23183 (timevar_cond_stop): Likewise, from here...
23184 (timer::cond_stop): ...to here.
23185 (validate_phases): Rename to...
23186 (timer::validate_phases): ...this, and add "m_" prefixes. Make
23187 locals "total" and "tv" const.
23188 (timevar_print): Rename to...
23189 (timer::print): ...this, and add "m_" prefixes. Make locals
23190 "total" and "tv" const. Eliminate test for timevar_enable.
23191 * timevar.h (timevar_enable): Eliminate.
23192 (g_timer): New declaration.
23193 (timevar_push_1): Eliminate.
23194 (timevar_pop_1): Eliminate.
23195 (timevar_print): Eliminate.
23196 (class timer): New class.
23197 (timevar_push): Rewrite to use g_timer.
23198 (timevar_pop): Likewise.
23199 * toplev.c (toplev::~toplev): Likewise.
23201 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
23203 * arm-protos.h (arm_sched_autopref): Delete.
23204 (tune_params): Re-organize, use enums for flag values.
23205 (FUSE_OPS): New macro.
23206 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
23207 (ARM_PREFETCH_BENEFICIAL): Likewise.
23208 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
23209 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
23210 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
23211 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
23212 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
23213 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
23214 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
23215 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
23217 (arm_option_override, thumb2_reorg, arm_print_tune_info)
23218 (aarch_macro_fusion_pair_p): Update uses of current_tune.
23219 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
23221 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
23223 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
23226 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
23227 Sandra Loosemore <sandra@codesourcery.com>
23229 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
23231 (REG_CLASS_NAMES): Add "IJMP_REGS".
23232 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
23233 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
23234 use new "c" register constraint.
23235 * config/nios2/constraint.md (c): New register constraint
23236 corresponding to IJMP_REGS.
23238 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23240 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
23241 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
23242 define_splits): Delete, revamp, transmogrify into ...
23243 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
23244 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
23245 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
23248 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23250 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
23251 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
23253 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23255 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
23256 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
23257 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
23258 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
23259 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
23260 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
23261 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
23262 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
23263 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
23264 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
23265 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
23266 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
23267 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
23268 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
23269 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
23270 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
23271 and 30 corresponding splitters): Delete.
23273 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23275 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
23278 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23280 * combine.c (recog_for_combine_1): New function, factored out
23281 from recog_for_combine.
23282 (change_zero_ext): New function.
23283 (recog_for_combine): If recog fails, try again with the pattern
23284 modified by change_zero_ext; if that still fails, restore the
23287 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23289 * combine.c (get_undo_marker): New function.
23290 (undo_to_marker): New function, largely factored out from ...
23291 (undo_all): ... this. Adjust.
23293 2015-05-12 Richard Biener <rguenther@suse.de>
23295 PR tree-optimization/66101
23296 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
23297 fixup if we turn a loop exit edge to a fallthru edge.
23299 2015-05-12 Richard Biener <rguenther@suse.de>
23301 PR tree-optimization/37021
23302 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
23303 (SLP_TREE_TWO_OPERATORS): New define.
23304 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
23305 SLP_TREE_TWO_OPERATORS.
23306 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
23308 (vect_build_slp_tree): Adjust.
23309 (vect_analyze_slp_cost_1): Likewise.
23310 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
23311 emitting two vector stmts and mixing the results.
23313 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
23315 * call.c (print_z_candidates): Remove dead code.
23317 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23319 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
23320 and zEC12_simple_fp.
23321 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
23324 2015-05-12 Tom de Vries <tom@codesourcery.com>
23326 PR tree-optimization/66010
23327 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
23329 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
23330 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
23331 va_lists are passed, and remove corresponding handling.
23332 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
23333 do_deref argument to ifn_va_arg.
23334 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
23337 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23340 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
23341 REG before taking its REGNO.
23343 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
23345 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
23346 rsp->sign_bit_copies and rsp->nonzero_bits into ...
23347 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
23348 present to get more accurate information about the number of sign bit
23349 copies and non zero bits.
23351 2015-05-12 Richard Biener <rguenther@suse.de>
23353 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
23354 do not allow unrolling.
23356 2015-05-11 Richard Henderson <rth@redhat.com>
23358 * config/i386/i386-modes.def (CCP): New.
23359 * config/i386/i386.c (put_condition_code): Handle it.
23360 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
23362 2015-05-11 Richard Henderson <rth@redhat.com>
23364 * target.def (md_asm_clobbers): Replace with...
23365 (md_asm_adjust): this.
23366 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
23367 (TARGET_MD_ASM_ADJUST): New.
23368 * tm.texi: Rebuild.
23369 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
23370 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
23371 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
23373 * cfgexpand.c (check_operand_nalternatives): Accept vector of
23374 constraints instead of lists of outputs and inputs.
23375 (expand_asm_stmt): Save and restore input_location around the
23376 body of the function. Move asm data into vectors instead of
23377 building tree lists. Generate cleanup sequences as needed,
23378 rather than waiting til the end. Use new md_asm_adjust hook.
23380 * config/vxworks.c: Include vec.h before target.h.
23381 * gimple.c: Likewise.
23382 * incpath.c: Likewise.
23383 * mode-switching.c: Likewise.
23385 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
23386 (cris_md_asm_adjust): this.
23387 (TARGET_MD_ASM_CLOBBERS): Remove.
23388 (TARGET_MD_ASM_ADJUST): New.
23389 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
23390 (ix86_md_asm_adjust): this.
23391 (TARGET_MD_ASM_CLOBBERS): Remove.
23392 (TARGET_MD_ASM_ADJUST): New.
23393 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
23394 (mn10300_md_asm_adjust): this.
23395 (TARGET_MD_ASM_CLOBBERS): Remove.
23396 (TARGET_MD_ASM_ADJUST): New.
23397 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
23398 (rs6000_md_asm_adjust): this.
23399 (TARGET_MD_ASM_CLOBBERS): Remove.
23400 (TARGET_MD_ASM_ADJUST): New.
23401 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
23402 (visium_md_asm_adjust): this.
23403 (TARGET_MD_ASM_CLOBBERS): Remove.
23404 (TARGET_MD_ASM_ADJUST): New.
23406 2015-05-11 Richard Henderson <rth@redhat.com>
23408 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
23409 if noutputs is zero.
23410 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
23412 * cfgexpand.c (expand_asm_operands): Merge into...
23413 (expand_asm_stmt): ... here.
23415 * cfgexpand.c (expand_asm_operands): Don't call
23416 resolve_asm_operand_names.
23417 * stmt.c (resolve_asm_operand_names): Clarify block comment.
23419 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
23421 * dwarf2out.c (gen_member_die): Sanity check that we access
23422 TYPE_MAIN_VARIANT for TYPE_METHODS.
23423 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
23424 checking TYPE_METHODS.
23425 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
23427 (build_distinct_type_copy): Clear TYPE_METHODS.
23428 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
23429 (verify_type): Allow TYPE_METHODS to be error_mark_node.
23430 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
23432 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
23434 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
23435 (emit_pattern_before_setloc): Likewise.
23437 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
23439 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
23440 for define_peephole2s.
23441 (get_peephole2_pattern): New function.
23442 (main): Use it. Call validate_pattern.
23444 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23446 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
23447 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
23448 (Last callee saved reg is different for AVR_TINY architecture)
23450 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
23452 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
23453 when looking for memory references.
23455 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
23458 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
23459 via function pointers.
23461 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
23463 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
23464 indirect call by forcing address into a pseudo with -fno-plt.
23465 * common.opt (flag_plt): New option.
23466 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
23467 ([-fno-plt]): Document.
23469 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
23472 * config/rs6000/option-defaults.h: Add space between string literal
23475 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
23477 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
23478 accross ARM targets.
23480 2015-05-11 Christian Bruel <christian.bruel@st.com>
23482 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
23483 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
23485 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
23487 PR rtl-optimization/66076
23488 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
23489 Don't grow the heap array if it is already big enough from a
23490 previous iteration.
23492 2015-05-11 Christian Bruel <christian.bruel@st.com>
23494 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
23495 (is_called_in_ARM_mode): Remove.
23496 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
23497 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
23498 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
23499 arm_declare_function_name.
23501 2015-05-11 Christian Bruel <christian.bruel@st.com>
23503 * config/arm/arm.c (arm_option_override): Reoganized and split into :
23504 (arm_option_params_internal); New function.
23505 (arm_option_check_internal): New function.
23506 (arm_option_override_internal): New function.
23507 (thumb_code, thumb1_code): Remove.
23508 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
23509 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
23510 (thumb_code, thumb1_code): Remove.
23511 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
23513 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
23515 * config/alpha/alpha.c (alpha_emit_set_const_1)
23516 (alpha_emit_set_long_const, alpha_extract_integer)
23517 (alpha_legitimate_constant_p, alpha_split_const_mov)
23518 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
23519 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
23520 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
23522 * config/alpha/predicates.md (mode_mask_operand): Do not match
23524 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
23525 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
23526 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
23527 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
23528 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
23530 2015-05-11 Jakub Jelinek <jakub@redhat.com>
23533 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
23534 default_binds_local_p_2.
23535 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
23536 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
23538 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23540 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
23542 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23544 Patch by Richard Biener
23545 * coverage.c (coverage_obj_init): Delay building of type variant
23546 until the type is finished.
23548 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23550 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
23551 mismatch between C and C++ type; compoare correctly ARG_TYPES
23552 for non-prototypes and output correctly parameter index for METHOD_TYPE.
23553 (odr_types_equivalent_p): Fix wording of warning about attributes;
23554 it is OK to match prototype and non-prototype.
23556 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23558 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
23559 TYPE_ARG_TYPES list.
23560 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
23561 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
23563 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23565 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
23566 * tree.h (is_lang_specific): Constify.
23568 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
23570 PR tree-optimization/64454
23571 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
23574 2015-05-08 Jason Merrill <jason@redhat.com>
23576 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
23577 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
23578 config/darwin.h, config/darwin9.h, config/elfos.h,
23579 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
23580 config/microblaze/microblaze.h, config/mips/mips.h,
23581 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
23582 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
23583 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
23584 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
23585 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
23586 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
23587 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
23588 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
23589 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
23590 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
23591 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
23592 between string literal and macro name.
23594 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23596 * jump.c: Change argument types to rtx_insn *.
23599 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23601 * lra-constraints.c: Change argument type to rtx_insn *.
23603 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23605 * df-problems.c: Change argument type to rtx_insn *.
23607 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23609 * combine.c: Change argument type to rtx_insn *.
23611 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23614 * rtlanal.c: Change argument type to rtx_insn *.
23616 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23618 * sched-deps.c: Change argument types to rtx_insn *.
23619 * sched-int.h: Adjust.
23621 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23623 * dwarf2cfi.c: Change argument type to rtx_insn *.
23625 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23627 * ira.c (decrease_live_ranges_number): Changetype of local
23628 variable to rtx_insn *.
23629 * recog.c: Change argument types to rtx_insn *.
23632 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23634 * reorg.c: Change argument types to rtx_insn *.
23636 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23638 * ira-color.c: Change argument types to rtx_insn *.
23639 * lra-eliminations.c: Likewise.
23642 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23644 * gcse.c: Change argument types to rtx_insn *.
23646 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23648 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
23650 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23652 * emit-rtl.c (emit_debug_insn_before): Change argument type to
23656 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23658 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
23661 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23663 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
23666 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23668 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
23671 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23673 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
23676 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23678 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
23682 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23684 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
23688 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23690 * except.c (can_nonlocal_goto): Change type of argument to
23694 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23696 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
23699 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23701 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
23702 * cfgrtl.c (can_delete_label_p): Adjust.
23705 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23707 * reorg.c (stop_search_p): Change argument to rtx_insn *.
23709 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23711 * except.c (make_reg_eh_region_note): Change argument to
23713 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
23714 * except.h: Adjust.
23716 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23718 * mode-switching.c (commit_mode_sets): Change type of local
23719 variable from rtx to rtx_insn *.
23721 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
23723 * doc/install.texi (--enable-languages): Add missing jit and lto info.
23724 Add ^ to grep command.
23725 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
23726 arg to last gimple_simplify declaration. Add missing gimple_build
23727 declaration for built-in function case with four tree args.
23729 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
23730 Szabolcs Nagy <szabolcs.nagy@arm.com>
23732 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
23733 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
23734 (GNU_USER_DYNAMIC_LINKERN32): Update.
23736 2015-05-08 Richard Biener <rguenther@suse.de>
23738 PR tree-optimization/66036
23739 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
23740 Handle strided group loads.
23741 (vect_verify_datarefs_alignment): Likewise.
23742 (vect_enhance_data_refs_alignment): Likewise.
23743 (vect_analyze_group_access): Likewise.
23744 (vect_analyze_data_ref_access): Likewise.
23745 (vect_analyze_data_ref_accesses): Likewise.
23746 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
23747 (vectorizable_load): Likewise.
23749 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
23751 * config/rs6000/rs6000.md: Require operand inequality in one
23754 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
23755 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
23757 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
23759 * config/rx/rx.md (movdi, movdf): Likewise.
23760 Likewise for define_peephole2s.
23762 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
23764 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
23765 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
23766 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
23767 vtst_u64): Rewrite using gcc vector extensions.
23769 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
23771 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
23772 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
23774 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
23776 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
23778 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
23780 * config/glibc-stdint.h (OPTION_MUSL): Define.
23781 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
23782 Change the definition based on OPTION_MUSL for 64 bit targets.
23783 * config/linux.h (OPTION_MUSL): Redefine.
23784 * config/alpha/linux.h (OPTION_MUSL): Redefine.
23785 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
23786 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
23788 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
23789 Szabolcs Nagy <szabolcs.nagy@arm.com>
23791 * config.gcc (LIBC_MUSL): New tm_defines macro.
23792 * config/linux.h (OPTION_MUSL): Define.
23793 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
23794 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
23795 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
23796 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
23797 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
23798 * config/linux.opt (mmusl): New option.
23799 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
23800 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
23801 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
23802 * configure: Regenerate.
23804 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
23805 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23808 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
23809 * config/i386/knetbsd-gnu64.h: New file.
23811 2015-05-08 Marek Polacek <polacek@redhat.com>
23814 * doc/invoke.texi: Document -Woverride-init-side-effects.
23816 2015-05-07 Marek Polacek <polacek@redhat.com>
23819 * doc/invoke.texi: Document -Wshift-negative-value.
23821 2015-05-06 Aditya Kumar <hiraditya@msn.com>
23823 * gcov-tool.c (do_merge): Refactore to remove int ret.
23824 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
23825 !type == FUNC to type != FUNC.
23826 * reload.h (struct target_reload): Changee to type of
23827 x_spill_indirect_levels from bool to unsigned char.
23829 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
23831 * rtl.h (always_void_p): New function.
23832 * gengenrtl.c (always_void_p): Likewise.
23833 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
23834 with code foo are always VOIDmode.
23835 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
23836 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
23837 compare-elim.c, config/aarch64/aarch64.c,
23838 config/aarch64/aarch64.md, config/alpha/alpha.c,
23839 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
23840 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
23841 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
23842 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
23843 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
23844 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
23845 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
23846 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
23847 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
23848 config/ia64/vect.md, config/iq2000/iq2000.c,
23849 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
23850 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
23851 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
23852 config/mep/mep.c, config/microblaze/microblaze.c,
23853 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
23854 config/mn10300/mn10300.c, config/msp430/msp430.c,
23855 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
23856 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
23857 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
23858 config/rs6000/altivec.md, config/rs6000/rs6000.c,
23859 config/rs6000/rs6000.md, config/rs6000/vector.md,
23860 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
23861 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
23862 config/sh/sh.md, config/sh/sh_treg_combine.cc,
23863 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
23864 config/spu/spu.md, config/stormy16/stormy16.c,
23865 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
23866 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
23867 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
23868 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
23869 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
23870 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
23871 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
23872 var-tracking.c: Update calls accordingly.
23874 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
23877 PR middle-end/54303
23878 * varasm.c (function_mergeable_rodata_prefix): New function.
23879 (mergeable_string_section): Use it.
23880 (mergeable_constant_section): Use it.
23882 2015-05-07 Jeff Law <law@redhat.com>
23885 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23886 simplifier to narrow arithmetic.
23887 * generic-match-head.c: (types_match, single_use): New functions.
23888 * gimple-match-head.c: (types_match, single_use): New functions.
23890 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23892 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
23895 2015-05-07 Richard Biener <rguenther@suse.de>
23897 PR tree-optimization/66002
23898 * passes.def: Schedule another pass_merge_phi after ifcombine, right
23901 2015-05-07 Marek Polacek <polacek@redhat.com>
23902 Martin Uecker <uecker@eecs.berkeley.edu>
23904 * doc/invoke.texi: Document -fsanitize=bounds-strict.
23905 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
23906 into SANITIZE_NONDEFAULT.
23907 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
23909 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
23912 * config/alpha/alpha.c (alpha_override_options_after_change): New.
23913 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
23914 (alpha_override_options): Move align_loops, align_jumps and
23915 align_functions handling into alpha_override_options_after_change.
23917 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
23918 Chris Jones <chrisj@nvidia.com>
23919 Joshua Conner <jconner@nvidia.com>
23921 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
23922 linking of crtfastmath.o.
23923 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
23925 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
23927 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
23928 (cstore<mode>4_unsigned_imm): New expander.
23929 (cstore<mode>4): Remove empty constraint strings. Use the new
23932 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
23935 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
23938 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
23940 * config/aarch64/geniterators.sh: Use standard BRE in sed.
23942 2015-05-06 Alan Modra <amodra@gmail.com>
23945 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
23946 (UNSPEC_NOP): Define.
23947 (reload_vsx_from_gpr<mode>): Add missing DONE.
23948 (reload_gpr_from_vsx<mode>): Likewise.
23949 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
23950 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
23952 2015-05-06 Christian Bruel <christian.bruel@st.com>
23955 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
23956 align_jumps, align_functions into aarch64_override_options_after_change.
23958 2015-05-06 Richard Biener <rguenther@suse.de>
23960 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
23961 vect_transform_slp_perm_load to check if we support a permutation
23962 for basic-block vectorization.
23964 2015-05-06 Nick Clifton <nickc@redhat.com>
23966 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
23967 used, even if it is not being used as a frame pointer.
23969 2015-05-05 Jason Merrill <jason@redhat.com>
23971 * dwarf2out.c (gen_member_die): Don't emit anything for an
23972 anonymous class constructor.
23974 2015-05-05 David Malcolm <dmalcolm@redhat.com>
23976 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
23977 that it reflects the block structure.
23978 (afdo_propagate_edge): Likewise.
23979 (afdo_calculate_branch_prob): Likewise.
23980 (afdo_annotate_cfg): Likewise.
23981 * cfgcleanup.c (equal_different_set_p): Likewise.
23982 (try_crossjump_to_edge): Likewise.
23983 * cgraph.c (cgraph_node::verify_node): Likewise.
23984 * cgraphunit.c (expand_all_functions): Likewise.
23985 * config/i386/i386.c (ix86_expand_copysign): Likewise.
23986 (exact_dependency_1): Likewise.
23987 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
23988 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
23989 * gensupport.c (process_define_subst): Likewise.
23990 * lto-wrapper.c (merge_and_complain): Likewise.
23991 * tree-if-conv.c (if_convertible_bb_p): Likewise.
23992 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
23993 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
23994 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
23995 * tree-vect-loop.c (vectorizable_reduction): Likewise.
23996 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
23997 * tree-vect-stmts.c (vectorizable_shift): Likewise.
23998 * tree-vrp.c (vrp_finalize): Likewise.
23999 * tree.c (variably_modified_type_p): Likewise.
24001 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
24003 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
24004 on darwin12 and later.
24005 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
24006 file to pass -rdynamic on darwin12 and later.
24007 * config/darwin.opt (rdynamic): Add.
24009 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
24011 * doc/extend.texi (C Extensions): Update menu for moved Variable
24012 Attributes and Type Attributes sections.
24014 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
24017 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
24018 if rep_8byte stringop strategy was specified for 32-bit target.
24020 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
24023 * config/i386/i386.md (vector convert to float spltiter): Check for
24024 xmm16+, when splitting scalar float conversion.
24025 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
24027 2015-05-05 Nick Clifton <nickc@redhat.com>
24029 * config/msp430/msp430-opts.h (enum msp430_regions): New.
24030 * config/msp430/msp430.c (msp430_override_options): Complain if
24031 -mcode-region or -mdata-region is used on a non MSP430X.
24032 (msp430_section_attr): New function. Checks lower, upper and
24034 (msp430_attribute_table): Add lower, upper and either.
24035 (gen_prefix): New function. Generates a prefix for a section
24037 (msp430_select_section): New function - handles the choice of
24038 section for an object. Takes into account memory region
24039 attributes and options.
24040 (msp430_function_section): Use gen_prefix.
24041 (TARGET_SECTION_TYPE_FLAGS): Define.
24042 (msp430_section_type_flags): New function.
24043 (TARGET_ASM_UNIQUE_SECTION): Define.
24044 (msp430_unique_section): New function.
24045 (msp430_output_aligned_decl_common): New function.
24046 (msp430_do_not_relax_short_jumps): New function.
24047 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
24049 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
24050 * config/msp430/msp430-protos.h
24051 (msp430_do_not_relax_short_jumps): New prototype.
24052 (msp430_output_aligned_decl_common): New prototype.
24053 * config/msp430/msp430.md (length): New attribute.
24054 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
24055 then use a long code sequence for short jumps.
24056 * config/msp430/msp430.opt (mcode-region): New.
24057 (mdata-region): New.
24058 * doc/invoke.texi: Document new options.
24059 * doc/extend.texi: Document new attributes.
24061 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
24063 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
24064 (tune_params): Add field branch_costs.
24065 (aarch64_branch_cost): Declare.
24066 * gcc/config/aarch64.c (generic_branch_cost): New.
24067 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
24068 (cortexa53_tunings): Likewise.
24069 (cortexa57_tunings): Likewise.
24070 (thunderx_tunings): Likewise.
24071 (xgene1_tunings): Likewise.
24072 (aarch64_branch_cost): Define.
24073 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
24075 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
24077 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
24078 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
24079 * config/i386/i386.md: Ditto.
24080 * config/i386/winnt.c: Ditto.
24082 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
24084 * doc/extend.texi (__atomic Builtins): Move implementation details
24085 to the end of the description, rewrite opening paragraphs, state
24086 difference with __sync builtins, state C11/C++11 assumptions,
24087 weaken itemized descriptions, add explanation of memory model
24088 behaviour, expand description of compare-exchange, simplify text.
24090 2015-05-05 Renlin Li <renlin.li@arm.com>
24092 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
24094 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
24096 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
24097 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
24098 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
24099 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
24100 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
24101 * configure: Regenerate.
24102 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
24103 * doc/install.texi (aarch64*-*-*): Document new
24104 --enable-fix-cortex-a53-843419 option.
24105 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
24106 and -mno-fix-cortex-a53-843419 options.
24108 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
24111 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
24113 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
24115 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
24116 fix overactive TYPE_MIN_VALUE check and add FIXME for type
24117 compatibility problems.
24119 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
24121 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
24123 (cbranchsi4_reg): New.
24124 * config/microblaze/microblaze.c
24125 (microblaze_expand_conditional_branch_reg): New.
24126 * config/microblaze/microblaze-protos.h
24127 (microblaze_expand_conditional_branch_reg): New prototype.
24129 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
24131 * config/microblaze/microblaze.md (peephole2): New.
24133 2015-05-04 Jeff Law <law@redhat.com>
24136 2015-05-04 Jeff Law <law@redhat.com>
24138 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
24139 simplifier to narrow arithmetic.
24140 * generic-match-head.c: (types_match, single_use): New functions.
24141 * gimple-match-head.c: (types_match, single_use): New functions.
24143 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
24146 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
24147 (split_branches): Likewise.
24149 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
24151 * common.opt (fdelete-null-pointer-checks): Init to -1.
24152 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
24153 override flag_delete_null_pointer_checks default.
24154 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
24155 behavior re address zero. Better document target-specific behavior.
24156 (-fisolate-errneous-paths-dereference): Mention relationship to
24157 -fdelete-null-pointer-checks.
24159 2015-05-04 Jakub Jelinek <jakub@redhat.com>
24161 PR tree-optimization/65984
24162 * ubsan.c: Include tree-cfg.h.
24163 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
24164 stmt_could_throw_p test, rename can_throw variable to ends_bb.
24166 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
24168 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
24169 to CONST_DOUBLE_P predicate.
24170 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
24171 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
24172 allow only operands that satisfy standard_sse_constant_p predicate.
24173 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
24174 to CONST_DOUBLE_P predicate.
24176 2015-05-04 Jeff Law <law@redhat.com>
24178 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
24179 simplifier to narrow arithmetic.
24180 * generic-match-head.c: (types_match, single_use): New functions.
24181 * gimple-match-head.c: (types_match, single_use): New functions.
24183 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
24185 * config/arm/arm.c: Restore bootstrap.
24187 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
24189 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
24190 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
24191 as CONST_WIDE_INT, not CONST_DOUBLE.
24192 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
24193 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
24194 (ix86_find_base_term): Do not check for CONST_DOUBLE.
24195 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
24196 (ix86_build_signbit_mask): Rewrite using wide ints.
24197 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
24198 (ix86_rtx_costs): Handle CONST_WIDE_INT.
24199 (find_constant): Ditto.
24200 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
24201 using gen_int_mode.
24202 * config/i386/predicates.md (x86_64_immediate_operand)
24203 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
24204 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
24205 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
24206 (const0_operand): Also match const_wide_int.
24207 (constm1_operand): Ditto.
24208 (const1_operand): Ditto.
24210 2015-05-04 Richard Biener <rguenther@suse.de>
24212 PR tree-optimization/65965
24213 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
24214 store groups at gaps.
24216 2015-05-04 Richard Biener <rguenther@suse.de>
24218 PR tree-optimization/65935
24219 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
24220 then make sure to apply that swapping to the IL.
24222 2015-05-04 Jakub Jelinek <jakub@redhat.com>
24224 * Makefile.in (PATCHLEVEL_c): New variable.
24225 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
24226 expand the same way as if DEVPHASE_c was non-empty.
24228 2015-05-04 Kai Tietz <ktietz@redhat.com>
24231 * lto-wrapper.c (run_gcc): Open filename
24234 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
24236 * doc/extend.texi (Variable Attributes, Type Attributes): Move
24237 sections up in file, to immediately after the Function Attributes
24240 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
24242 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
24244 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24246 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
24247 (insert_partition_copy_on_edge): Adjust.
24248 (insert_rtx_to_part_on_edge): Likewise.
24249 (insert_part_to_rtx_on_edge): Likewise.
24251 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24253 * function.c (set_return_jump_label): Change type of argument to
24255 * function.h (set_return_jump_label): Adjust.
24257 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24259 * reload.h (struct reg_equivs_t): Change type of init to
24261 * ira.c (fix_reg_equiv_init): Adjust.
24262 * reload1.c (eliminate_regs_1): Likewise.
24263 (init_eliminable_invariants): Likewise.
24265 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24267 * cselib.c (fp_setter_insn): Take a rtx_insn *.
24268 * cselib.h (fp_setter_insn): Adjust.
24270 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24272 * recog.c (struct validate_replace_src_data): Change type of
24273 insn field to rtx_insn *.
24274 (validate_replace_src_group): Change type of argument to rtx_insn *.
24275 * recog.h (validate_replace_src_group): Adjust.
24277 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24279 * haifa-sched.c: Change the type of some variables to rtx_insn *.
24280 * sched-deps.c: Likewise.
24281 * sched-int.h: Likewise.
24282 * sched-rgn.c: Likewise.
24283 * sel-sched.c: Likewise.
24285 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24288 * config/i386/i386.c: Change the type of some arguments to
24290 * config/arm/arm.c: Likewise.
24292 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24294 * lra-constraints.c: Change type of some arguments to rtx_insn *.
24296 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24298 * regcprop.c (kill_autoinc_value): Change type of argument to
24301 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24303 * genrecog.c (print_subroutine): Adjust.
24304 * recog.c (get_bool_attr_mask_uncached): Likewise.
24305 * recog.h (struct recog_data_d): Change the type of insn to
24308 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24310 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
24312 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24314 * df-problems.c (df_set_note): Change type of argument to
24317 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24319 * builtins.c (expand_builtin_trap): Change type of local
24320 variable to rtx_insn *.
24321 (add_sched_insns_for_speculation): Likewise.
24322 (ix86_emit_save_regs): Likewise.
24323 (get_scratch_register_on_entry): Likewise.
24324 (ix86_emit_restore_reg_using_pop): Likewise.
24325 (ix86_emit_leave): Likewise.
24326 (ix86_emit_restore_regs_using_mov): Likewise.
24327 (ix86_expand_epilogue): Likewise.
24329 (rl78_alloc_physical_registers_umul): Likewise.
24330 * cselib.c (discard_useless_locs): Likewise.
24331 (cselib_invalidate_regno): Likewise.
24332 (cselib_invalidate_mem): Likewise.
24333 * function.c (expand_function_start): Likewise.
24334 (emit_use_return_register_into_block): Likewise.
24335 * gcse.c: Likewise.
24336 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
24337 * ifcvt.c (noce_get_alt_condition): Likewise.
24338 * loop-doloop.c (doloop_condition_get): Likewise.
24339 * lra-constraints.c (inherit_in_ebb): Likewise.
24340 * modulo-sched.c (sms_schedule_by_order): Likewise.
24341 * recog.c (next_insn_tests_no_inequality): Likewise.
24342 * reorg.c (emit_delay_sequence): Likewise.
24343 (update_reg_dead_notes): Likewise.
24344 (fix_reg_dead_note): Likewise.
24345 (fill_slots_from_thread): Likewise.
24346 (delete_computation): Likewise.
24348 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
24350 * doc/extend.texi (Variable Attributes): Add menu and proper
24351 @nodes to subsections. Move Microsoft Windows attributes to
24352 their own subsection.
24353 (Type Attributes): Reorganize introduction to remove duplicate
24354 list of attributes. Add menu and proper @nodes to subsections.
24355 Alphabetize the main table of common attributes.
24357 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
24359 * match.pd: New simplification patterns.
24360 (x + (x & 1)) -> ((x + 1) & ~1)
24361 (x & ~(x & y)) -> ((x & ~y))
24362 (x | ~(x | y)) -> ((x | ~y))
24364 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24366 * target.def (attribute_table): Mention that struct attribute_spec
24367 is defined in tree-core.h rather than tree.h
24368 * doc/tm.texi: Regenerate.
24370 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
24372 * genrecog.c (test): Rename to rtx_test. Update rest of file
24375 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
24377 PR translation/65959
24378 * params.h (DEFPARAM): Rename msgid to nocmsgid.
24380 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
24382 * gcc/config/aarch64/aarch64-protos.h (tune_params):
24383 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
24384 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
24385 Return value depending on target.
24386 (generic_tunings): Initialize new target settings.
24387 (cortexa53_tunings): Likewise.
24388 (cortexa57_tunings): Likewise.
24389 (thunderx_tunings): Likewise.
24390 (xgene1_tunings): Likewise.
24392 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
24394 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
24395 Make Cortex-A53 shift costs more accurate.
24397 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24399 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
24402 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
24404 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
24405 Calculate cost of op0 and op1 in PLUS and MINUS cases.
24407 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24409 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
24410 Add cost of op0 in the compare-with-fpzero case.
24412 2015-04-30 David Malcolm <dmalcolm@redhat.com>
24414 * builtins.c (fold_builtin_1): Remove spurious second
24416 * cgraph.h (symtab_node::get_availability): Likewise.
24417 * opts.c (common_handle_option): Remove spurious second semicolon.
24418 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
24419 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
24421 2015-04-30 Caroline Tice <cmtice@google.com>
24423 PR gcov-profile/65929
24424 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
24425 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
24426 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
24427 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
24428 * doc/tm.texi: Regenerate.
24429 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
24430 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
24431 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
24432 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
24434 2015-04-30 Marek Polacek <polacek@redhat.com>
24436 * varasm.c (handle_cache_entry): Fix logic.
24438 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24440 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
24441 (*extrsi5_insn_uxtw_alt): Likewise.
24442 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
24443 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
24446 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24448 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
24451 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24453 * config/aarch64/aarch64.md
24454 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
24455 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
24456 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
24457 appropriately. Handle alternative EON form.
24459 2015-04-30 Renlin Li <renlin.li@arm.com>
24461 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
24462 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
24464 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
24467 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
24468 -fstrict-aliasing boundaries.
24470 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24472 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
24473 and [SU]MNEGL patterns.
24475 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24477 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
24478 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
24479 combined arithmetic-shift ops. Properly handle all shift and extend
24480 operations that can occur in combination with PLUS/MINUS.
24481 Rename maybe_fma to compound_p.
24482 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
24483 arithmetic and shift operations.
24485 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24487 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
24488 rather than arith_shift cost when costing ADD/MINUS of an
24491 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
24494 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
24497 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
24499 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
24500 are for the same position.
24502 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
24504 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
24506 (vectorize_loops): Use it.
24508 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
24510 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
24511 for aggregate types.
24512 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
24513 type to be non_ODR.
24514 * tree.c (need_assembler_name_p): Compute mangled name for
24515 non-fundamental types and integer types.
24517 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
24519 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
24521 * expr.c (expand_expr_real_2): Likewise.
24523 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
24525 * tree.c (build_common_builtin_nodes): Do not build
24526 __builtin_alloca_with_align as equivalent of library alloca.
24528 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
24530 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
24531 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
24533 * tree.c: Include print-tree.h and ipa-utils.h
24534 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
24535 (free_lang_data_in_cgraph): Call verify_type.
24536 (verify_type_variant): New function.
24537 (verify_type): New function.
24538 * tree.h (verify_type): Declare.
24540 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
24542 * config/mips/mips-cpus.def: (mips4): Change default processor
24543 from PROCESSOR_R8000 to PROCESSOR_R10000.
24545 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
24547 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
24548 la/jalr instead of jal.
24550 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
24553 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
24554 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
24555 (setcc+movzbl peephole2): Check also clobbered reg.
24556 (setcc+andl peephole2): Ditto.
24558 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
24561 * config/nvptx/mkoffload.c (target_ilp32): New variable.
24562 (main): Set it depending on "-foffload-abi=[...]".
24563 (compile_native, main): Use it to pass "-m32" or "-m64" to the
24566 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
24569 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
24570 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
24571 Flip lane index back at assembly time for bigendian.
24573 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
24575 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
24576 * gimplify.c (gimplify_omp_workshare): Use it.
24578 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
24580 * Makefile.in (build/genrecog.o): Depend on inchash.h.
24581 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
24583 * genrecog.c: Rewrite most of the code except for the third page.
24585 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
24587 * inchash.h, inchash.c: Include bconfig.h for build objects.
24588 * Makefile.in (build/inchash.o): New rule.
24590 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
24593 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
24594 number in type attribute expression.
24596 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
24598 * loop-iv.c (canon_condition): Generalize to all types of integer
24601 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
24603 * gimple-walk.c: Prune duplicate or unneeded includes.
24604 (walk_gimple_asm): Only call parse_input_constraint or
24605 parse_output_constraint if their findings are used.
24606 Honour parse_input_constraint and parse_output_constraint
24609 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
24611 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
24613 2015-04-29 Tom de Vries <tom@codesourcery.com>
24615 PR tree-optimization/65893
24616 * passes.def (pass_all_optimizations): Move pass_stdarg to after
24619 2015-04-29 Richard Biener <rguenther@suse.de>
24621 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
24622 compute GROUP_SIZE for basic-block SLP.
24623 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
24624 take into account gaps.
24625 (vect_get_mask_element): Properly reject references to previous
24627 (vect_transform_slp_perm_load): Likewise.
24629 2015-04-29 Christian Bruel <christian.bruel@st.com>
24632 * config/i386/i386.c (ix86_default_align): New function.
24633 (ix86_override_options_after_change): Call ix86_default_align.
24634 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
24635 (ix86_override_options_after_change): New function.
24637 2015-04-28 Jeff Law <law@redhat.com>
24639 * tree-ssa-dom.c (record_equality); Fix comment typos.
24641 2015-04-28 Tom de Vries <tom@codesourcery.com>
24643 PR tree-optimization/65887
24644 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
24646 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
24648 * doc/extend.texi (Declaring Attributes of Functions): Split into
24649 subsections by target. Alphabetize the table of common attributes.
24650 Rewrite some of the introductory text to reflect the new structure.
24651 Update some cross-references to point to the new subsections.
24652 (Attribute Syntax): Put paragraph about "__" naming here. Remove
24653 duplicate copies in the discussion of function, label, and type
24656 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
24659 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
24661 2015-04-28 Jason Merrill <jason@redhat.com>
24664 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
24665 (finalize_type_size): Respect TYPE_USER_ALIGN.
24666 (layout_type) [ARRAY_TYPE]: Likewise.
24668 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
24670 * config/arm/arm.md (*arm_movt): Fix type attribute.
24671 (*cmpsi_shiftsi): Likewise.
24672 (*cmpsi_shiftsi_swp): Likewise.
24673 (*movsicc_insn): Likewise.
24674 (*cond_move): Likewise.
24675 (*if_plus_move): Likewise.
24676 (*if_move_plus): Likewise.
24677 (*if_arith_move): Likewise.
24678 (*if_move_arith): Likewise.
24679 (*if_shift_move): Likewise.
24680 (*if_move_shift): Likewise.
24681 (*arm_movtas_ze): Likewise.
24682 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
24683 redundancy and type attribute.
24684 (*thumb2_movsi_insn): Fix type attribute.
24685 (*thumb2_addsi_short): Likewise.
24686 (thumb2_addsi3_compare0): Likewise.
24687 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
24688 attributes accordingly.
24690 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
24693 * function.c (pad_to_arg_alignment): Add parentheses.
24695 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
24697 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
24698 libgcc/config/frv/elf-lib.h.
24700 2015-04-28 Tom de Vries <tom@codesourcery.com>
24702 * tree-call-cdce.c: Fix example in header comment.
24704 2015-04-28 Richard Biener <rguenther@suse.de>
24706 PR tree-optimization/62283
24707 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
24708 fails fatally and we are vectorizing a basic-block simply
24709 cause the child to be constructed piecewise.
24710 (vect_analyze_slp_cost_1): Adjust.
24711 (vect_detect_hybrid_slp_stmts): Likewise.
24712 (vect_bb_slp_scalar_cost): Likewise.
24713 (vect_get_constant_vectors): For piecewise constructed
24714 constants place them after the last def.
24715 (vect_get_slp_defs): Adjust.
24716 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
24717 externals for basic-block vectorization.
24719 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
24722 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
24724 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
24725 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
24726 (AARCH64_TUNE_FMA_STEERING): Likewise.
24727 * config/aarch64/aarch64-cores.def: Set
24728 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
24729 FMUL/FMADD instructions.
24730 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
24731 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
24732 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
24733 * config/aarch64/cortex-a57-fma-steering.h: New file.
24734 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24736 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
24738 * gensupport.c (std_preds): Add missing codes to address_operand entry.
24740 2015-04-28 Richard Biener <rguenther@suse.de>
24742 PR tree-optimization/65851
24743 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
24744 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
24745 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
24746 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
24747 (ccp_visit_phi_node): Adjust.
24748 (evaluate_stmt): For simplifications to SSA names return its
24749 lattice value if that isn't VARYING. Return immediately when
24750 simplified to a constant.
24751 (visit_assignment): Adjust.
24752 (ccp_visit_stmt): Likewise.
24754 2015-04-28 Tom de Vries <tom@codesourcery.com>
24756 PR tree-optimization/65818
24757 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
24760 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24762 * calls.c (save_fixed_argument_area): Don't check
24763 ARGS_GROW_DOWNWARD with the preprocessor.
24764 (restore_fixed_argument_area): Likewise.
24765 (mem_overlaps_already_clobbered_arg_p): Likewise.
24766 (check_sibcall_argument_overlap): Likewise.
24767 (expand_call): Likewise.
24768 (emit_library_call_value_1): Likewise.
24769 (store_one_arg): Likewise.
24770 * function.c (assign_parms): Likewise.
24771 (locate_and_pad_parm): Likewise.
24772 (pad_to_arg_alignment): Likewise.
24773 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
24775 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24777 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
24778 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
24779 * calls.c (save_fixed_argument_area): Don't chekc if
24780 ARGS_GROW_DOWNWARD is defined.
24781 (restore_fixed_argument_area): Likewise.
24782 (mem_overlaps_already_clobbered_arg_p): Likewise.
24783 (check_sibcall_argument_overlap): Likewise.
24784 (expand_call): Likewise.
24785 (emit_library_call_value_1): Likewise.
24786 (store_one_arg): Likewise.
24787 * function.c (assign_parms): Likewise.
24788 (locate_and_pad_parm): Likewise.
24789 (pad_to_arg_alignment): Likewise.
24790 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
24792 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24794 * defaults.h (gen_epilogue): New function.
24795 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
24797 * cfgrtl.c (cfg_layout_finalize): Likewise.
24798 * df-scan.c: Likewise.
24799 * function.c (thread_prologue_and_epilogue_insns): Likewise.
24800 (reposition_prologue_and_epilogue_notes): Likewise.
24801 * reorg.c (find_end_label): Likewise.
24802 * toplev.c: Likewise.
24804 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24806 * bb-reorder.c (HAVE_return): Don't check if its undefined.
24807 * defaults.h (gen_simple_return): New function.
24808 (gen_simple_return): Likewise.
24809 (HAVE_return): Add default definition to false.
24810 (HAVE_simple_return): Likewise.
24811 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
24812 HAVE_return and HAVE_simple_return are defined.
24813 * function.c (gen_return_pattern): Likewise.
24814 (convert_jumps_to_returns): Likewise.
24815 (thread_prologue_and_epilogue_insns): Likewise.
24816 * reorg.c (find_end_label): Likewise.
24817 (dbr_schedule): Likewise.
24818 * shrink-wrap.c: Likewise.
24819 * shrink-wrap.h: Likewise.
24821 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24823 * defaults.h (EPILOGUE_USES): Add default definition of false.
24824 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
24825 * resource.c (init_resource_info): Likewise.
24827 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24829 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
24831 * dwarf2out.c (field_byte_offset): REmove check if
24832 PCC_BITFIELD_TYPE_MATTERS is defined.
24833 * stor-layout.c (layout_decl): Likewise.
24834 (update_alignment_for_field): Likewise.
24835 (place_field): Likewise.
24837 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24839 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
24841 * regrename.c (check_new_reg_p): Remove check if
24842 HARD_REGNO_RENAME_OK is defined.
24843 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
24845 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24847 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
24848 * cse.c (fold_rtx): Likewise.
24849 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
24850 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
24851 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
24852 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
24853 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
24854 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
24855 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
24856 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
24857 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
24858 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
24860 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
24861 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
24862 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
24863 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
24864 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
24865 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
24866 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
24867 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
24868 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
24869 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
24870 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
24871 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
24872 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
24873 * doc/tm.texi: Regenerate.
24874 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
24875 either true or false.
24877 2015-04-27 Jeff Law <law@redhat.com>
24879 PR tree-optimization/65217
24880 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
24881 of them has a single use, make sure it is the LHS of the implied
24884 2015-04-28 Alan Modra <amodra@gmail.com>
24887 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
24888 (offsettable_ok_by_alignment): Use minimum of decl and toc
24889 pointer alignment. Replace dead code with assertion.
24890 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
24891 case if size exceeds toc pointer alignment.
24892 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
24893 (rs6000_emit_move): Likewise.
24894 * configure.ac: Add linker toc pointer alignment check.
24895 * configure: Regenerate.
24896 * config.in: Regenerate.
24898 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
24900 * config.gcc: Add h8300-*-linux.
24901 * config/h8300/linux.h: New.
24902 * config/h8300/t-linux: New.
24903 * config/h8300/h8300.c (h8300_option_override): Normal mode
24904 is not supported for h8300-*-linux.
24905 (h8300_file_start): Target priority change.
24906 (get_shift_alg): Likewise.
24907 (h8300_shift_need_scratch_p): Likewise.
24908 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
24909 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
24911 2015-04-27 Caroline Tice <cmtice@google.com>
24913 * final.c (final_scan_insn): Output cold_function_name as function
24915 * varasm.c (cold_function_name): Make global.
24916 (assemble_start_function): Re-set cold_function_name.
24917 (assemble_end_function): Output cold partition size.
24918 * varasm.h (cold_function_name): Declare global.
24920 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
24922 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
24923 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
24925 (*movxi_internal_avx512f): Ditto.
24926 (define_split): Check for xmm16+, when splitting scalar float_extend.
24927 (*extendsfdf2_mixed): Use "v" constraint.
24928 (define_split): Check for xmm16+, when splitting scalar float_truncate.
24929 (*truncdfsf_fast_sse): Use "v" constraint.
24930 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
24931 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
24932 (define_peephole2): Check for xmm16+, when converting scalar
24934 (define_peephole2): Check for xmm16+, when converting scalar
24936 (*fop_<mode>_comm_mixed): Use "v" constraint.
24937 (*fop_<mode>_comm_sse): Ditto.
24938 (*fop_<mode>_1_mixed): Ditto.
24939 (*sqrt<mode>2_sse): Ditto.
24940 (*ieee_s<ieee_maxmin><mode>3): Ditto.
24942 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24944 * combine.c (simplify_if_then_else): Use std::swap instead
24945 of manually swapping.
24946 (known_cond): Likewise.
24947 (simplify_comparison): Likewise.
24949 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
24952 * config/rs6000/htm.md: Remove all define_expands.
24953 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
24954 UNSPECV_HTM_TABORTWCI): Remove.
24955 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
24956 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
24957 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
24958 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
24959 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
24960 tabortwci_internal): Remove define_insns.
24961 (tabort<wd>c, tabort<wd>ci): New define_insns.
24962 (tabort): Use gpc_reg_operand.
24963 (tcheck): Remove operand.
24964 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
24965 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
24967 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
24968 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
24969 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
24970 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
24971 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
24972 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
24973 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
24974 (tcheck): Remove builtin argument.
24975 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
24977 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
24978 tabortdc and tabortdci builtins when not in 64-bit mode.
24979 Modify code to handle the loss of the HTM define_expands.
24980 Emit code to copy the CR register to TARGET.
24981 (htm_init_builtins): Modify code to handle the loss of the HTM
24983 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
24984 (RS6000_BTC_64BIT): Likewise.
24985 (RS6000_BTC_CR): New macro.
24986 * doc/extend.texi: Update documentation for htm builtins.
24988 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24990 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
24991 of manually swapping.
24992 (simplify_associative_operation): Likewise.
24993 (simplify_binary_operation): Likewise.
24994 (simplify_plus_minus): Likewise.
24995 (simplify_relational_operation): Likewise.
24996 (simplify_ternary_operation): Likewise.
24998 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
25000 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
25001 (xs_hi_nonmemory_operand): Remove error.
25002 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
25003 general_operand rather than xs_hi_general_operand.
25005 2015-04-27 Richard Biener <rguenther@suse.de>
25007 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
25008 (record_equivalences_from_stmt): Valueize rhs.
25009 (record_equality): Canonicalize x and y order via
25010 tree_swap_operands_p. Do not swap operands for same loop depth.
25012 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
25016 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
25017 Add hint how to use own spec file.
25019 2015-04-27 Jakub Jelinek <jakub@redhat.com>
25021 PR tree-optimization/65875
25022 * tree-vrp.c (update_value_range): If in is_new case setting
25023 old_vr to VR_VARYING, also set new_vr to it. Remove
25024 old_vr->type == VR_VARYING test.
25025 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
25026 SSA_PROP_INTERESTING if update_value_range returned true,
25027 but new range is VR_VARYING.
25029 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
25031 * combine.c (sign_extend_short_imm): New.
25032 (set_nonzero_bits_and_sign_copies): Use above new function for sign
25033 extension of src short immediate.
25034 (reg_nonzero_bits_for_combine): Likewise for tem.
25036 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
25038 * stor-layout.c (self_referential_component_ref_p): New predicate.
25039 (copy_self_referential_tree_r): Use it.
25040 (self_referential_size): Punt for simple operations directly involving
25041 self-referential component references.
25042 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
25044 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
25046 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
25048 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
25050 * vec.h (vec): Make splice arguments const. Update definitions
25053 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
25055 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
25058 2015-04-26 Tom de Vries <tom@codesourcery.com>
25060 PR tree-optimization/65826
25061 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
25063 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
25065 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
25066 (*madd3<mode>): Ditto.
25067 (*msub4<mode>): Ditto.
25068 (*msub3<mode>): Ditto.
25069 (*nmadd4<mode>): Ditto.
25070 (*nmadd3<mode>): Ditto.
25071 (*nmadd4<mode>_fastmath): Ditto.
25072 (*nmadd3<mode>_fastmath): Ditto.
25073 (*nmsub4<mode>): Ditto.
25074 (*nmsub3<mode>): Ditto.
25075 (*nmsub4<mode>_fastmath): Ditto.
25076 (*nmsub3<mode>_fastmath): Ditto.
25078 2015-04-24 Jason Merrill <jason@redhat.com>
25081 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
25082 down when building TYPE_CANONICAL.
25083 (build_pointer_type_for_mode): Likewise.
25085 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
25087 * genrecog.c (validate_pattern): Check matching constraint refers
25088 to a lower numbered operand.
25090 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
25093 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
25094 save to independent variables use the Save attribute. This will
25095 allow these options to be modified with the #pragma/attribute
25097 (-mallow-movmisalign): Likewise.
25098 (-mallow-df-permute): Likewise.
25099 (-msched-groups): Likewise.
25100 (-malways-hint): Likewise.
25101 (-malign-branch-targets): Likewise.
25102 (-mvectorize-builtins): Likewise.
25103 (-msave-toc-indirect): Likewise.
25105 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
25106 can be set via the #pragma/attribute target support.
25107 (rs6000_opt_vars): Likewise.
25108 (rs6000_inner_target_options): If VSX was set, also set
25109 -mno-avoid-indexed-addresses.
25111 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25113 * config/arm/iterators.md (shiftable_ops): Rename to...
25114 (SHIFTABLE_OPS): ... This. Update use in comments.
25115 (ior_xor): Rename to...
25116 (IOR_XOR): ... This.
25117 (vqh_ops): Rename to...
25118 (VQH_OPS): ... This.
25119 (vqhs_ops): Rename to...
25120 (VQHS_OPS): ... This.
25121 (rshifts): Rename to...
25122 (RSHIFTS): ... This.
25123 (returns): Rename to...
25124 (RETURNS): ... This.
25125 * config/arm/arm.md: Update uses of the above.
25126 * config/arm/neon.md: Likewise.
25128 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25130 * config.host (case ${host}): Add aarch64*-*-linux case.
25131 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
25132 fields to all the cores.
25133 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
25134 Add MCPU_MTUNE_NATIVE_SPECS.
25135 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
25136 field to all extensions.
25137 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
25138 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
25139 Adjust definition of AARCH64_OPT_EXTENSION.
25140 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
25141 (MCPU_MTUNE_NATIVE_SPECS): Define.
25142 * config/aarch64/driver-aarch64.c: New file.
25143 * config/aarch64/x-arch64: New file.
25144 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
25147 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
25148 Wei Mi <wmi@google.com>
25150 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
25151 * config/i386/i386.c (extract_base_offset_in_addr): New function.
25152 (ix86_operands_ok_for_move_multiple): Ditto.
25153 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
25154 (movlpd/movhpd to movupd peephole2): Ditto.
25156 2015-04-24 Marek Polacek <polacek@redhat.com>
25159 * input.h (from_macro_expansion_at): Define.
25162 * doc/invoke.texi: Update description of -Wlogical-op.
25164 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
25166 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
25167 ternary operator in fprintf and harmonize spacing.
25169 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
25171 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
25172 Mark operand1 commutative.
25174 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
25176 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
25177 input operands in memory.
25178 (*vec_concatv2si_sse4_1): Ditto.
25179 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
25180 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
25182 (vec_extract_hi_v32hi): Ditto.
25183 (vec_extract_hi_v64hi): Ditto.
25184 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
25186 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
25187 Steven Bosscher <steven@gcc.gnu.org>
25189 PR rtl-optimization/34503
25190 * cprop.c (cprop_reg_p): New.
25191 (hash_scan_set): Use above function to check if register can be
25193 (find_avail_set): Return up to two sets, one whose source is a
25194 register and one whose source is a constant. Sets are returned in an
25195 array passed as parameter rather than as a return value.
25196 (cprop_insn): Use a do while loop rather than a goto. Try each of the
25197 sets returned by find_avail_set, starting with the one whose source is
25198 a constant. Use cprop_reg_p to check if register can be propagated.
25199 (do_local_cprop): Use cprop_reg_p to check if register can be
25201 (implicit_set_cond_p): Likewise.
25203 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25205 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
25206 (sem_function::equals): IGNORED_NODES parameter is now unused;
25207 update call of equals_private.
25208 (sem_function::equals_private): Do not call equals_wpa; skip
25209 gimple body matching if there is no body.
25210 (sem_function::init): Add logic to hash tthunk info.
25211 (sem_function::parse): Also parse thunks.
25212 * ipa-icf.h (equals_private): Update declaration.
25214 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25216 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
25217 asterisk from name so this can be generated directly.
25218 (*altivec_stvx_<mode>_internal): Likewise.
25219 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
25220 that this is never called during or after reload/lra.
25221 (rs6000_frame_related): Remove split_reg
25222 argument and logic that references it.
25223 (emit_frame_save): Remove last parameter from call to
25224 rs6000_frame_related.
25225 (rs6000_emit_prologue): Remove last parameter from eight calls to
25226 rs6000_frame_related. Force generation of stvx instruction for
25227 Altivec register saves. Remove split_reg handling, which is no
25229 (rs6000_emit_epilogue): Force generation of lvx instruction for
25230 Altivec register restores.
25232 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25234 * config/rs6000/rs6000.opt (mcrypto): Change option description to
25235 match category changes in ISA 2.07B.
25237 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25239 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
25241 (cmp_op, cmp_type): New code attributes.
25242 (NEON_VCMP, NEON_VACMP): New int iterators.
25243 (cmp_op_unsp): New int attribute.
25244 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
25245 (neon_vceq<mode>): Delete.
25246 (neon_vc<cmp_op><mode>_insn): New pattern.
25247 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
25248 (neon_vcgeu<mode>): Delete.
25249 (neon_vcle<mode>): Likewise.
25250 (neon_vclt<mode>: Likewise.
25251 (neon_vcage<mode>): Likewise.
25252 (neon_vcagt<mode>): Likewise.
25253 (neon_vca<cmp_op><mode>): New define_expand.
25254 (neon_vca<cmp_op><mode>_insn): New pattern.
25255 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
25257 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25259 * tree.h (attribute_value_equal): Declare.
25260 * tree.c (attribute_value_equal): Export.
25262 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25264 * ipa-icf.c (sem_item::compare_attributes): New function.
25265 (sem_item::compare_referenced_symbol_properties): Compare variable
25267 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
25268 (sem_function::param_used_p): New function.
25269 (sem_function::equals_wpa): Fix attribute comparsion; match
25270 parameter type codes; do not compare paremter flags when
25271 they are not used; compare edge flags; compare indirect calls.
25272 (sem_item::update_hash_by_addr_refs): Hash reference type.
25273 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
25274 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
25275 reference use type.
25276 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
25277 * ipa-icf.h (compare_attributes, param_used_p): Declare.
25279 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25281 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
25283 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
25284 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
25285 (sem_item::compare_referenced_symbol_properties): New.
25286 (sem_item::hash_referenced_symbol_properties): New.
25287 (sem_item::compare_cgraph_references): Rename to ...
25288 (sem_item::compare_symbol_references): ... this one; use
25289 compare_referenced_symbol_properties.
25290 (sem_function::equals_wpa): Do not compare
25291 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
25292 DECL_IS_OPERATOR_NEW; compare pointer sizes.
25293 (sem_item::update_hash_by_addr_refs): Call
25294 hash_referenced_symbol_properties.
25295 (sem_item::update_hash_by_local_refs): Cleanup.
25296 (sem_function::merge): Do not mix up symbol properties.
25297 (sem_variable::equals_wpa): Use compare_symbol_references.
25298 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
25299 (sem_item::hash_referenced_symbol_properties): New.
25300 (sem_item::compare_symbol_references): New.
25301 (sem_item::compare_cgraph_references): Remove.
25303 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
25306 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
25307 Emit size of local.
25309 2015-04-23 Nick Clifton <nickc@redhat.com>
25311 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
25312 ATTRIBUTE_UNUSED to x parameter.
25313 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
25315 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25317 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
25318 TARGET_CRYPTO to TARGET_P8_VECTOR>
25319 (crypto_vpermxor_<mode>): Likewise.
25320 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
25321 (BU_CRYPTO_3A): Likewise.
25322 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
25323 (BU_CRYPTO_OVERLOAD_3A): New #define.
25324 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
25325 (VPMSUMH): Likewise.
25326 (VPMSUMW): Likewise.
25327 (VPMSUMD): Likewise.
25328 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
25329 (VPERMXOR_V4SI): Likewise.
25330 (VPERMXOR_V8HI): Likewise.
25331 (VPERMXOR_V16QI): Likewise.
25332 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
25333 BU_CRYPTO_OVERLOAD_2A.
25334 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
25335 BU_CRYPTO_OVERLOAD_3A.
25336 * config/rs6000/rs6000.opt (mcrypto): Change description of
25339 2015-04-23 Richard Biener <rguenther@suse.de>
25341 * passes.def: Remove copy propagation passes run directly after CCP.
25342 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
25344 (ccp_visit_phi_node): Rework to handle first executable edge
25347 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
25349 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
25350 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
25351 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
25352 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
25353 (thumb_legimitimize_reload_address): Remove.
25354 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
25356 (thumb_legimitimize_reload_address): Remove.
25358 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25360 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
25362 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25364 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
25366 (store_multiple): Likewise.
25368 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25370 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
25371 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
25372 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
25373 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
25374 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
25375 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
25376 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
25377 Specify issue_rate value.
25378 (arm_issue_rate): Look up issue rate from tuning structs. Remove
25379 large switch statement.
25380 (arm_marvell_pj4_tune): New struct.
25381 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
25384 2015-04-23 Richard Biener <rguenther@suse.de>
25386 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
25387 (vect_find_last_store_in_slp_instance): Rename to ...
25388 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
25389 (vect_analyze_slp_cost_1): Use vector_load for constant defs
25390 and vec_construct for external defs when estimating prologue cost.
25391 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
25392 Compute costs here only when vectorizing loops.
25393 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
25394 have been determined.
25395 (vect_schedule_slp_instance): Simplify vectorized code placement
25396 and prepare for in-BB external defs.
25397 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
25398 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
25399 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
25401 (vect_model_load_cost): Likewise.
25402 (vectorizable_store): Instead add it here.
25403 (vectorizable_load): Likewise.
25404 (vect_is_simple_use): Dump def type textually.
25406 2015-04-23 Richard Biener <rguenther@suse.de>
25408 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
25409 * cfgloop.c (verify_loop_structure): Verify the root loop node.
25410 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
25411 instead of get_eh_region_from_lp_number.
25412 * loop-init.c (fix_loop_structure): If we removed a loop, reset
25415 2015-04-23 Anton Blanchard <anton@samba.org>
25417 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
25418 need for -mprofile-kernel to save LR to stack.
25420 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25422 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
25424 (insn_is_swappable_p): Return 1 for a convert from double to
25425 single precision when all of its uses are splats of BE element
25428 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
25430 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
25432 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25435 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
25436 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
25437 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
25439 (rs6000_builtin_mask_for_load): Return 0 for targets with
25440 efficient unaligned VSX accesses so that the vectorizer will use
25441 direct unaligned loads.
25442 (rs6000_builtin_support_vector_misalignment): Always return true
25443 for targets with efficient unaligned VSX accesses.
25444 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
25445 stores on targets with efficient unaligned VSX accesses is almost
25446 always the same as the cost of an aligned load or store, so model
25448 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
25449 unaligned vectors if we have efficient unaligned VSX accesses.
25450 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
25451 undocumented option.
25453 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25456 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
25458 * config.gcc (LIBC_MUSL): New tm_defines macro.
25459 * config/linux.h (OPTION_MUSL): Define.
25460 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
25461 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
25462 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
25464 * config/linux.opt (mmusl): New option.
25465 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
25466 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
25468 * configure: Regenerate.
25470 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
25472 * config.gcc (LIBC_MUSL): New tm_defines macro.
25473 * config/linux.h (OPTION_MUSL): Define.
25474 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
25475 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
25476 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
25478 * config/linux.opt (mmusl): New option.
25479 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
25480 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
25482 * configure: Regenerate.
25484 2015-04-22 Yury Gribov <y.gribov@samsung.com>
25486 * doc/invoke.texi (-fsanitize-sections): Update description.
25487 * asan.c (set_sanitized_sections): Parse incoming arg.
25488 (section_sanitized_p): Support wildcards.
25490 2015-04-22 Tom de Vries <tom@codesourcery.com>
25492 PR tree-optimization/65823
25493 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
25494 equality between ap_copy and ap.
25496 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25499 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
25501 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25504 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
25506 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25509 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
25510 remove already contained t-files.
25512 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25514 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
25515 Remove unneeded forward declarations.
25516 (suitable_for_tail_call_opt_p): Commentary typo fix.
25518 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25520 * varasm.c (emit_bss): Remove redundant guard.
25522 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25524 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
25526 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25528 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
25530 2015-04-22 Hale Wang <hale.wang@arm.com>
25531 Terry Guo <terry.guo@arm.com>
25533 PR rtl-optimization/64818
25534 * combine.c (can_combine_p): Don't combine user-specified
25535 register if it is in an asm input.
25537 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
25540 * passes.def (early_optimizations): Add pass_dse.
25542 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25544 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
25545 * reorg.c (redundant_insn): Remove ifdef
25546 INSN_REFERENCES_ARE_DELAYED.
25547 * resource.c (mark_referenced_resources): Likewise.
25549 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25551 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
25552 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
25553 * resource.c (mark_set_resources): Likewise.
25555 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25557 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
25558 * cfgcleanup.c (flow_find_cross_jump): Likewise.
25559 (flow_find_head_matching_sequence): Likewise.
25560 (try_head_merge_bb): Likewise.
25561 * combine.c (can_combine_p): Likewise.
25562 (try_combine): Likewise.
25563 (distribute_notes): Likewise.
25564 * df-problems.c (can_move_insns_across): Likewise.
25565 * final.c (final): Likewise.
25566 * gcse.c (insert_insn_end_basic_block): Likewise.
25567 * ira.c (find_moveable_pseudos): Likewise.
25568 * reorg.c (try_merge_delay_insns): Likewise.
25569 (fill_simple_delay_slots): Likewise.
25570 (fill_slots_from_thread): Likewise.
25571 * sched-deps.c (sched_analyze_2): Likewise.
25573 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25575 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
25576 PIC_OFFSET_TABLE_REGNUM.
25578 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25580 * alias.c (init_alias_target): Remove ifdef
25581 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
25582 * df-scan.c (df_insn_refs_collect): Likewise.
25583 (df_get_regular_block_artificial_uses): Likewise.
25584 (df_get_eh_block_artificial_uses): Likewise.
25585 (df_get_entry_block_def_set): Likewise.
25586 (df_get_exit_block_use_set): Likewise.
25587 * emit-rtl.c (gen_rtx_REG): Likewise.
25588 * ira.c (ira_setup_eliminable_regset): Likewise.
25589 * reginfo.c (init_reg_sets_1): Likewise.
25590 * regrename.c (rename_chains): Likewise.
25591 * reload1.c (reload): Likewise.
25592 (eliminate_regs_in_insn): Likewise.
25593 * resource.c (mark_referenced_resources): Likewise.
25594 (init_resource_info): Likewise.
25596 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25598 * defaults.h (MASK_RETURN_ADDR): New definition.
25599 * except.c (expand_builtin_extract_return_addr): Remove ifdef
25602 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25604 * defaults.h (RETURN_ADDR_OFFSET): New definition.
25605 * except.c (expand_builtin_extract_return_addr): Remove ifdef
25606 RETURN_ADDR_OFFSET.
25607 (expand_builtin_frob_return_addr): Likewise.
25609 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25611 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
25612 (try_redirect_by_replacing_jump): Likewise.
25613 (rtl_tidy_fallthru_edge): Likewise.
25614 * combine.c (insn_a_feeds_b): Likewise.
25615 (find_split_point): Likewise.
25616 (simplify_set): Likewise.
25617 * cprop.c (cprop_jump): Likewise.
25618 * cse.c (cse_extended_basic_block): Likewise.
25619 * df-problems.c (can_move_insns_across): Likewise.
25620 * function.c (emit_use_return_register_into_block): Likewise.
25621 * haifa-sched.c (sched_init): Likewise.
25622 * ira.c (find_moveable_pseudos): Likewise.
25623 * loop-invariant.c (find_invariant_insn): Likewise.
25624 * lra-constraints.c (curr_insn_transform): Likewise.
25625 * postreload.c (reload_combine_recognize_const_pattern):
25627 * reload.c (find_reloads): Likewise.
25628 * reorg.c (delete_scheduled_jump): Likewise.
25629 (steal_delay_list_from_target): Likewise.
25630 (steal_delay_list_from_fallthrough): Likewise.
25631 (redundant_insn): Likewise.
25632 (fill_simple_delay_slots): Likewise.
25633 (fill_slots_from_thread): Likewise.
25634 (delete_computation): Likewise.
25635 * sched-rgn.c (add_branch_dependences): Likewise.
25637 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25639 * genconfig.c (main): Always define HAVE_cc0.
25640 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
25642 * cfgcleanup.c (flow_find_cross_jump): Likewise.
25643 (flow_find_head_matching_sequence): Likewise.
25644 (try_head_merge_bb): Likewise.
25645 * cfgrtl.c (rtl_merge_blocks): Likewise.
25646 (try_redirect_by_replacing_jump): Likewise.
25647 (rtl_tidy_fallthru_edge): Likewise.
25648 * combine.c (do_SUBST_MODE): Likewise.
25649 (insn_a_feeds_b): Likewise.
25650 (combine_instructions): Likewise.
25651 (can_combine_p): Likewise.
25652 (try_combine): Likewise.
25653 (find_split_point): Likewise.
25655 (simplify_set): Likewise.
25656 (distribute_notes): Likewise.
25657 * cprop.c (cprop_jump): Likewise.
25658 * cse.c (cse_extended_basic_block): Likewise.
25659 * df-problems.c (can_move_insns_across): Likewise.
25660 * final.c (final): Likewise.
25661 (final_scan_insn): Likewise.
25662 * function.c (emit_use_return_register_into_block): Likewise.
25663 * gcse.c (insert_insn_end_basic_block): Likewise.
25664 * haifa-sched.c (sched_init): Likewise.
25665 * ira.c (find_moveable_pseudos): Likewise.
25666 * loop-invariant.c (find_invariant_insn): Likewise.
25667 * lra-constraints.c (curr_insn_transform): Likewise.
25668 * optabs.c (prepare_cmp_insn): Likewise.
25669 * postreload.c (reload_combine_recognize_const_pattern):
25671 * reload.c (find_reloads): Likewise.
25672 (find_reloads_address_1): Likewise.
25673 * reorg.c (delete_scheduled_jump): Likewise.
25674 (steal_delay_list_from_target): Likewise.
25675 (steal_delay_list_from_fallthrough): Likewise.
25676 (try_merge_delay_insns): Likewise.
25677 (redundant_insn): Likewise.
25678 (fill_simple_delay_slots): Likewise.
25679 (fill_slots_from_thread): Likewise.
25680 (delete_computation): Likewise.
25681 (relax_delay_slots): Likewise.
25682 * sched-deps.c (sched_analyze_2): Likewise.
25683 * sched-rgn.c (add_branch_dependences): Likewise.
25685 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25687 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
25688 that is trivially ded on non cc0 targets.
25689 (simplify_set): Likewise.
25690 (mark_used_regs_combine): Likewise.
25691 * cse.c (new_basic_block): Likewise.
25692 (fold_rtx): Likewise.
25693 (cse_insn): Likewise.
25694 (cse_extended_basic_block): Likewise.
25695 (set_live_p): Likewise.
25696 * rtlanal.c (canonicalize_condition): Likewise.
25697 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
25699 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25701 * conditions.h: Define macros even if HAVE_cc0 is undefined.
25702 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
25703 * final.c: Likewise.
25704 * jump.c: Likewise.
25705 * recog.c: Likewise.
25706 * recog.h: Declare functions even when HAVE_cc0 is undefined.
25707 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
25709 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25711 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
25712 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
25713 * builtins.c (expand_builtin): Remove check if
25714 EH_RETURN_DATA_REGNO is defined.
25715 * df-scan.c (df_bb_refs_collect): Likewise.
25716 (df_get_exit_block_use_set): Likewise.
25717 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
25718 * ira-lives.c (process_bb_node_lives): Likewise.
25719 * lra-lives.c (process_bb_lives): Likewise.
25721 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
25723 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
25724 FIRST_PSEUDO_REG): New.
25725 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
25726 (ARG_POINTER_REGNUM): Define to ARGP_REG.
25727 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
25728 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
25729 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
25730 (FIRST_INT_REG): New.
25731 (LAST_INT_REG): New.
25732 (FIRST_*_REG): Define using *_REG.
25733 (LAST_*_REG): Ditto.
25734 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
25735 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
25736 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
25738 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25740 * expmed.c: (synth_mult): Only assume overlapping
25741 shift with previous steps in alg_sub_t_m2 case.
25743 2015-04-21 Richard Biener <rguenther@suse.de>
25745 PR tree-optimization/65650
25746 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
25747 transitions involving copies.
25748 (set_lattice_value): Adjust for copy lattice state.
25749 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
25750 if that doesn't dominate the merge point.
25751 (bit_value_unop): Adjust what we treat as varying mask.
25752 (bit_value_binop): Likewise.
25753 (bit_value_assume_aligned): Likewise.
25754 (evaluate_stmt): When we simplified to a SSA name record a copy
25755 instead of dropping to varying.
25756 (visit_assignment): Simplify.
25758 * gimple-match.h (gimple_simplify): Add another callback.
25759 * gimple-fold.c (fold_stmt_1): Adjust caller.
25760 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
25761 for the 2nd callback.
25762 * gimple-match-head.c (gimple_simplify): Add a callback that is
25763 used to valueize the stmt operands and use it that way.
25765 2015-04-21 Richard Biener <rguenther@suse.de>
25767 PR tree-optimization/65788
25768 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
25770 2015-04-21 Richard Biener <rguenther@suse.de>
25772 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
25773 vec_construct cost by vec_stmt_cost.
25775 2015-04-21 Richard Biener <rguenther@suse.de>
25777 * cfghooks.h (create_basic_block): Replace with two overloads
25778 for RTL and GIMPLE.
25779 (split_block): Likewise.
25780 * cfghooks.c (split_block): Rename to ...
25781 (split_block_1): ... this.
25782 (split_block): Add two type-safe overloads for RTL and GIMPLE.
25783 (split_block_after_labels): Call split_block_1.
25784 (create_basic_block): Rename to ...
25785 (create_basic_block_1): ... this.
25786 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
25787 (create_empty_bb): Call create_basic_block_1.
25788 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
25789 split_block_after_labels.
25790 * omp-low.c (expand_parallel_call): Likewise.
25791 (expand_omp_target): Likewise.
25792 (simd_clone_adjust): Likewise.
25793 * tree-chkp.c (chkp_get_entry_block): Likewise.
25794 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
25795 create_basic_block overload.
25796 (cgraph_node::expand_thunk): Likewise.
25797 * tree-cfg.c (make_blocks): Likewise.
25798 (handle_abnormal_edges): Likewise.
25799 * tree-inline.c (copy_bb): Likewise.
25801 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25803 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
25805 (*xor_one_cmplsidi3_ze): Likewise.
25807 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
25809 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
25810 use df_remove_problem rather than manually removing problems, leaving
25811 holes in df->problems_in_order[].
25813 2015-04-21 Tom de Vries <tom@codesourcery.com>
25815 PR tree-optimization/65802
25816 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
25818 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25820 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
25822 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
25823 at '.'. Assert that there's enough space for everything.
25825 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
25827 PR tree-optimization/64950
25829 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
25832 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
25835 2015-04-20 Shiva Chen <shiva0217@gmail.com>
25837 PR rtl-optimization/64916
25838 * cfgcleanup.c (values_equal_p): New function.
25839 (can_replace_by): Use it.
25841 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
25844 * doc/invoke.texi ([-Wnarrowing]): Update.
25846 2015-04-20 Jeff Law <law@redhat.com>
25848 PR tree-optimization/65658
25849 * tree-ssa-threadupdate.c (redirection_block_p): Remove
25850 redundant test for GIMPLE_ASSIGN in last change.
25852 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
25854 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
25855 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
25856 (legitimize_tls_address): Ditto.
25857 (ix86_expand_move): Ditto.
25858 (ix86_expand_binary_operator): Remove reload_in_progress checks.
25859 (ix86_expand_unary_operator): Ditto.
25860 * config/i386/predicates.md (index_register_operand): Ditto.
25862 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
25864 * reorg.c (try_merge_delay_insns): Improve correctness checking
25865 for targets with multiple delay slots.
25867 2015-04-20 Jeff Law <law@redhat.com>
25869 PR tree-optimization/65658
25870 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
25873 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
25875 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
25876 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
25879 2015-04-20 Jakub Jelinek <jakub@redhat.com>
25882 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
25884 2015-04-20 Richard Biener <rguenther@suse.de>
25886 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
25887 * gimple-fold.c (gimple_build_valueize): New function.
25888 (gimple_build): Always use gimple_build_valueize as valueize hook.
25890 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
25893 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
25894 and overwrite variable parts if <= 1/2 the elements are variable.
25896 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
25898 PR rtl-optimization/65805
25899 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
25900 Don't use difference of offset and previous offset if
25901 update_sp_offset is non-zero.
25902 (eliminate_regs_in_insn): Ditto.
25903 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
25904 lra_eliminate_regs_1 call.
25905 * lra-constraints.c (get_equiv_with_elimination): Ditto.
25907 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
25909 * hash-table.h: Remove version of hash_table that stored value_type *.
25910 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
25911 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
25912 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
25913 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
25914 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
25915 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
25916 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
25917 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
25918 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
25919 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
25920 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
25921 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
25922 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
25923 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
25924 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
25925 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
25927 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25928 Jakub Jelinek <jakub@redhat.com>
25931 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
25932 subsequent SH_NONE operand does not overwrite an existing *special
25934 (adjust_extract): Handle case where a vec_extract operation is
25935 wrapped in a PARALLEL.
25937 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
25940 * config/i386/i386.c (ix86_binds_local_p): Define only if
25941 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
25943 2015-04-17 Jeff Law <law@redhat.com>
25945 PR tree-optimization/47679
25946 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
25947 * tree-ssa-scopedtables.c: New file.
25948 * tree-ssa-scopedtables.h: New file.
25949 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
25950 (const_and_copies): Change name/type.
25951 (record_const_or_copy): Move into tree-ssa-scopedtables.c
25952 (record_const_or_copy_1): Similarly.
25953 (restore_vars_to_original_value): Similarly.
25954 (pass_dominator::execute): Create and destroy const_and_copies table.
25955 (thread_across_edge): Update passing of const_and_copies.
25956 (record_temporary_equivalence): Use method calls rather than
25957 manipulating const_and_copies directly.
25958 (record_equality, cprop_into_successor_phis): Similarly.
25959 (dom_opt_dom_walker::before_dom_children): Similarly.
25960 (dom_opt_dom_walker::after_dom_children): Similarly.
25961 (eliminate_redundant_computations): Similarly.
25962 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
25963 (record_temporary_equivalence): Likewise.
25964 (invalidate_equivalences): Likewise.
25965 (record_temporary_equivalences_from_phis): Update due to type
25966 change of const_and_copies. Use method calls rather than
25967 manipulating the stack directly.
25968 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
25969 (thread_through_normal_block, thread_across_edge): Likewise.
25970 (thread_across_edge): Likewise.
25971 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
25972 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
25974 (identify_jump_threads): Update due to type change of equiv_stack.
25975 (finalize_jump_threads): Delete the equiv_stack when complete.
25977 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
25979 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
25980 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
25981 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
25983 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
25986 * config.gcc: Exit with a comment when we do not have a major version
25987 number for the FreeBSD target.
25989 2015-04-17 Jakub Jelinek <jakub@redhat.com>
25992 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
25993 maybe_allows_mem bitfields.
25994 (maybe_allows_none_start, maybe_allows_none_end,
25995 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
25996 maybe_allows_mem_end): New variables.
25997 (compute_maybe_allows): New function.
25998 (add_constraint): Use it to initialize maybe_allows_reg and
25999 maybe_allows_mem fields.
26000 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
26001 is_address constraints such that those that allow neither mem nor
26002 reg come first, then those that only allow reg but not mem, then
26003 those that only allow mem but not reg, then the rest.
26004 (write_allows_reg_mem_function): New function.
26005 (write_tm_preds_h): Call it.
26006 * stmt.c (parse_output_constraint, parse_input_constraint): Use
26007 the generated insn_extra_constraint_allows_reg_mem function
26008 instead of always setting *allows_reg = true; *allows_mem = true;
26009 for unknown extra constraints.
26011 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
26014 * output.h (default_binds_local_p_3): New.
26015 * varasm.c (default_binds_local_p_3): Make it public. Take an
26016 argument to indicate if common symbol may be local. If common
26017 symbol may be local, treat non-external variable as defined
26019 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
26020 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
26021 * config/i386/i386.c (ix86_binds_local_p): New.
26022 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
26023 ix86_binds_local_p.
26025 2015-04-17 Jakub Jelinek <jakub@redhat.com>
26028 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
26029 trying mem_loc_descriptor on XEXP (rtl, 0).
26031 2015-04-17 Martin Liska <mliska@suse.cz>
26033 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
26034 Release symbol_compare_collection.
26035 * ipa-reference.c: Add TODO that a vector should be released.
26037 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
26040 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
26041 to new AVR-LibC file layout (bug #44574).
26042 (*avrlibc_devicelib): Same.
26043 * config/avr/avr-mcus.def: Adjust comments.
26044 * config/avr/avr.opt (nodevicelib): Adjust help.
26046 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
26048 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
26050 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
26053 * gimplify.c (gimplify_init_constructor): Always emit a
26054 side-effecting constructor.
26056 2015-04-17 Tom de Vries <tom@codesourcery.com>
26058 PR tree-optimization/64950
26059 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
26060 in cfun->curr_properties.
26061 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
26062 if we generate an IFN_VA_ARG.
26063 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
26064 function if PROP_gimple_lva is not set in src function.
26066 2015-04-17 Tom de Vries <tom@codesourcery.com>
26067 Michael Matz <matz@suse.de>
26069 PR tree-optimization/64950
26070 * gimple-iterator.c (update_modified_stmts): Remove static.
26071 * gimple-iterator.h (update_modified_stmts): Declare.
26072 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
26073 (gimplify_va_arg_internal): New function.
26074 (gimplify_va_arg_expr): Use IFN_VA_ARG.
26075 * gimplify.h (gimplify_va_arg_internal): Declare.
26076 * internal-fn.c (expand_VA_ARG): New unreachable function.
26077 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
26078 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
26079 (expand_ifn_va_arg): New function.
26080 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
26081 (pass_stdarg::execute): Call expand_ifn_va_arg.
26082 (pass_data_lower_vaarg): New pass_data.
26083 (pass_lower_vaarg): New gimple_opt_pass.
26084 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
26085 (make_pass_lower_vaarg): New function.
26086 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
26087 properties_required field.
26088 * passes.def (all_passes): Add pass_lower_vaarg.
26089 * tree-pass.h (PROP_gimple_lva): Add define.
26090 (make_pass_lower_vaarg): Declare.
26092 2015-04-17 Tom de Vries <tom@codesourcery.com>
26094 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
26095 * calls.c (call_expr_flags): Same.
26097 2015-04-17 Tom de Vries <tom@codesourcery.com>
26099 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
26100 (pass_stdarg::execute): ... here.
26102 2015-04-17 Tom de Vries <tom@codesourcery.com>
26103 Michael Matz <matz@suse.de>
26105 * tree-cfg.c (make_blocks_1): Factor out of ...
26106 (make_blocks): ... here.
26107 (make_edges_bb): Factor out of ...
26108 (make_edges): ... here.
26109 (gimple_find_sub_bbs): New function.
26110 * tree-cfg.h (gimple_find_sub_bbs): Declare.
26112 2015-04-17 Tom de Vries <tom@codesourcery.com>
26114 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
26116 2015-04-17 Yury Gribov <y.gribov@samsung.com>
26118 * asan.c (set_sanitized_sections): New function.
26119 (section_sanitized_p): Ditto.
26120 (asan_protect_global): Optionally sanitize user-defined
26122 * asan.h (set_sanitized_sections): Declare new function.
26123 * common.opt (fsanitize-sections): New option.
26124 * doc/invoke.texi (-fsanitize-sections): Document new option.
26125 * opts-global.c (handle_common_deferred_options): Handle new
26128 2015-04-17 Jakub Jelinek <jakub@redhat.com>
26131 * dwarf2out.c (loc_list_from_tree): Return NULL
26132 for DEBUG_EXPR_DECL.
26134 2015-04-17 Christian Bruel <christian.bruel@st.com>
26136 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
26139 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
26141 * ira-color.c (setup_left_conflict_sizes_p): Do not process
26142 node itself when computing left conflict subnode size.
26144 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
26146 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
26147 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
26148 *fop_<mode>_1_sse using enabled attribute. Use
26149 register_mixssei387nonimm_operand operand 1 predicate. Change
26150 alternative 3 constraints from "x" to "v".
26152 2015-04-16 Richard Biener <rguenther@suse.de>
26154 PR tree-optimization/65774
26155 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
26156 bit-value tracking on.
26158 2015-04-16 Richard Biener <rguenther@suse.de>
26160 PR tree-optimization/64277
26161 * tree-vrp.c (check_array_ref): Fix anti-range handling,
26162 simplify upper bound handling.
26163 (search_for_addr_array): Simplify.
26164 (check_array_bounds): Handle ADDR_EXPRs here.
26165 (check_all_array_refs): Simplify.
26167 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
26169 * config/i386/i386.c (print_reg): Rewrite function.
26171 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26173 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
26174 Invert the condition.
26176 2015-04-16 Renlin Li <renlin.li@arm.com>
26178 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
26179 simplifications for UNSIGNED_FLOAT.
26181 2015-04-16 Nick Clifton <nickc@redhat.com>
26183 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
26185 (enum rl78_cpu_type): New.
26186 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
26187 (umulhi3_shift_virt): Remove m constraint from operand 1.
26188 (umulqihi3_virt): Likewise.
26189 * config/rl78/rl78.c (rl78_option_override): Add code to process
26190 -mcpu and -mmul options.
26191 (rl78_alloc_physical_registers): Add code to handle divhi and
26192 divsi valloc attributes.
26193 (set_origin): Likewise.
26194 * config/rl78/rl78.h (RL78_MUL_G14): Define.
26195 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
26196 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
26198 (ASM_SPEC): Pass -mcpu on to assembler.
26199 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
26200 (mulqi3_rl78): Likewise.
26201 (mulhi3_g13): Likewise.
26202 (mulhi3): Generate the G13 or G14 versions of the insn directly.
26203 (mulsi3): Likewise.
26204 (mulhi3_g14): Add clobbers of AX and BC.
26205 (mulsi3_g14): Likewise.
26206 (mulsi3_g13): Likewise.
26207 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
26208 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
26209 * config/rl78/rl78.opt (mmul): Initialise value to
26211 (mcpu): New option.
26212 (m13, m14, mrl78): New option aliases.
26213 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
26214 (MULTILIB_DIRNAMES): Add g13 and g14.
26215 * doc/invoke.texi: Document -mcpu and -mmul options.
26217 2015-04-16 Richard Biener <rguenther@suse.de>
26219 * tree-ssa-ccp.c (likely_value): See if we have operands that
26220 are marked as never simulate again and return CONSTANT in this
26222 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
26223 not have any operands that will be simulated again as
26224 not being simulated again.
26226 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
26228 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
26229 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
26230 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
26232 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
26234 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
26235 *float<SWI48:mode><MODEF:mode>2_sse.
26236 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
26238 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
26241 2015-04-15 Tom de Vries <tom@codesourcery.com>
26244 * function.c (push_dummy_function): New function.
26245 (init_dummy_function_start): Use push_dummy_function.
26246 (pop_dummy_function): New function. Factored out of ...
26247 (expand_dummy_function_end): ... here.
26248 * function.h (push_dummy_function, pop_dummy_function): Declare.
26249 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
26250 pop_dummy_function.
26251 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
26253 2015-04-15 Jeff Law <law@redhat.com>
26255 PR tree-optimization/47679
26256 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
26257 need for forward declaration in upcoming changes.
26258 (record_conditions, record_edge_info): Likewise.
26260 PR rtl-optimization/42522
26261 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
26262 SIGN_EXTRACT as a whole object rather than simplifying
26265 2015-04-15 Jakub Jelinek <jakub@redhat.com>
26268 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
26269 and GIMPLE_PREDICT use break instead of return true. For
26270 GIMPLE_EH_DISPATCH, compare dispatch region.
26272 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
26274 * doc/extend.texi (__sync Builtins): Simplify some text. Update
26275 details about the implementation. Make clear preference for
26276 __atomic builtins. Reduce possibility of future change.
26278 2015-04-15 Nick Clifton <nickc@redhat.com>
26280 * config/rx/rx.opt (mallow-string-insns): New option.
26281 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
26282 builtin if string instructions are denied.
26283 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
26284 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
26286 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
26287 * config/rx/rx.md (movstr): Enable pattern only if string
26288 instructions are allowed.
26289 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
26290 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
26291 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
26292 (MULTILIB_DIRNAMES): Add no-strings.
26293 * doc/invoke.texi: Document -mno-allow-string-insns.
26295 2015-04-15 Alan Modra <amodra@gmail.com>
26299 PR middle-end/36043
26300 * calls.c (load_register_parameters): Don't load past end of
26301 mem unless suitably aligned.
26303 2015-04-15 Nick Clifton <nickc@redhat.com>
26305 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
26306 decrement instruction as being frame related.
26307 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
26309 If zero extending a function address enclose the operation in
26311 (rl78_preferred_reload_class): New function.
26312 (TARGET_PREFERRED_RELOAD_CLASS): Define.
26313 * config/rl78/rl78.md: Remove useless constraints in expanders.
26314 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
26315 (mulhi3_rl78): Likewise.
26316 (mulhi3_g13): Likewise.
26317 (mulsi3_rl78): Likewise.
26318 (es_addr): Move to before the multiply patterns.
26320 2015-04-15 Alan Modra <amodra@gmail.com>
26322 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
26323 and sequence_stack. Add seq.
26324 (seq_stack): Delete.
26325 * function.c (prepare_function_start): Don't access x_last_insn.
26326 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
26327 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
26328 * emit_rtl.c (start_sequence, push_topmost_sequence,
26329 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
26330 sequence accessors.
26331 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
26332 remove_insn): Likewise. Simplify.
26333 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
26334 and pop_topmost_sequence.
26335 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
26337 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
26339 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
26342 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
26345 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
26347 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
26348 (LEGACY_INT_REGNO_P): Ditto.
26349 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
26350 (ANY_MASK_REG_P): Remove.
26351 (BND_REG_P): Rename from ANY_BND_REG_P.
26352 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
26353 legacy integer registers. Do not handle MMX_REG_P in a special way.
26354 Merge 64byte and 32byte SSE handling.
26356 2015-04-14 Nick Clifton <nickc@redhat.com>
26358 * expr.c (expand_assignment): Force an address offset computation
26359 into a register before changing its mode.
26360 (expand_expr_real_1): Likewise.
26362 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
26364 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
26365 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
26366 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
26367 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
26368 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
26369 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
26370 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
26371 and __aarch64_vget_lane_any.
26373 2015-04-14 Jakub Jelinek <jakub@redhat.com>
26375 PR rtl-optimization/65761
26376 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
26377 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
26379 2015-04-14 Richard Biener <rguenther@suse.de>
26381 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
26382 (graphite_can_represent_scev): Use POINTER_TYPE_P.
26384 2015-04-14 Richard Biener <rguenther@suse.de>
26386 PR tree-optimization/65758
26387 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
26389 (ccp_lattice_meet): Likewise.
26390 (bit_value_unop): Likewise.
26391 (bit_value_binop): Likewise.
26392 (bit_value_assume_aligned): Likewise.
26394 2015-04-14 Christian Bruel <christian.bruel@st.com>
26396 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
26399 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
26401 PR tree-optimization/63387
26402 * match.pd ((x unord x) | (y unord y) -> (x unord y),
26403 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
26405 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
26407 * config/i386/predicates.md (any_QIreg_operand): Rename from
26408 q_regs_operand. Do not process subregs.
26409 (QIreg_operand): Use QI_REGNO_P predicate.
26410 (ext_QIreg_operand): Ditto.
26411 (ext_register_operand): Ditto.
26412 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
26413 (AND splitters): Ditto.
26414 (AND with -65536 splitter): Add SWI48 mode for operand 0.
26415 (AND with -256 splitter): Use any_QIreg_operand predicate and
26416 SWI248 mode for operand 0.
26417 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
26418 mode for operand 0.
26419 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
26421 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
26423 * doc/plugins.texi: Rewrite first introductory paragraph.
26425 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26427 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
26428 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
26430 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26432 * ipa-profie.c (ipa_profile): Check number of parameters
26433 and possible polymorphic call targets before
26436 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
26438 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
26439 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
26441 2015-04-13 Richard Biener <rguenther@suse.de>
26443 PR tree-optimization/65204
26444 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
26445 takens for bit-CCP.
26447 2015-04-13 Richard Biener <rguenther@suse.de>
26450 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
26451 and cond_not_taken_branch_cost to 4 and 2.
26452 (bdver2_cost): Likewise.
26453 (bdver3_cost): Likewise.
26454 (bdver4_cost): Likewise.
26456 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26458 * hash-table.h (hash_table constructor): Add mem stats.
26459 (alloc_entries): Likewise.
26461 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26463 * ipa-cp.c (ipcp_driver): Relase prev_edge.
26464 * passes.c (execute_one_pass): Only add transform if pass has one.
26466 2015-04-12 Joseph Myers <joseph@codesourcery.com>
26468 * config/i386/i386.c (ix86_option_override_internal): Don't set
26469 -fprefetch-loop-arrays if optimizing for size.
26471 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26472 Gerald Pfeifer <gerald@pfeifer.com>
26474 * doc/contrib.texi (Contributors): Add Martin Jambor and
26477 2015-04-12 Jakub Jelinek <jakub@redhat.com>
26479 * BASE-VER: Set to 6.0.0.
26481 PR tree-optimization/65747
26482 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
26483 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
26485 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
26487 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
26488 sentence. Improve grammar.
26490 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
26492 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
26494 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
26497 * ipa-inline-transform.c (speculation_removed): Remove static var.
26498 (check_speculations): New function.
26499 (clone_inlined_nodes): Do not check spculations.
26500 (inline_call): Call check_speculations.
26501 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
26502 consider non-invariants.
26504 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
26505 Martin Liska <mliska@suse.cz>
26508 * ipa-icf.c (sem_item::compare_cgraph_references): function and
26509 variable can not match.
26510 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
26511 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
26513 2015-04-11 Jakub Jelinek <jakub@redhat.com>
26515 PR tree-optimization/65735
26516 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
26517 Remove visited_phis argument, add visited_bbs, avoid recursing into the
26518 same bb rather than just into the same phi node.
26519 (thread_through_normal_block): Adjust caller.
26521 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
26523 * doc/contrib.texi (Contributors): Add Ira Rosen.
26525 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
26527 * gcov.c (find_source): Fix miswording in error message.
26528 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
26529 (ix86_expand_sse_comi_round): Fix typo in error message.
26531 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
26533 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
26535 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
26537 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
26539 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
26542 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
26543 Print bad_spills_num and insn_pseudos_num.
26545 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26548 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
26549 when creating +1 values for SImode.
26551 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
26554 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
26557 2015-04-10 Jakub Jelinek <jakub@redhat.com>
26558 Iain Sandoe <iain@codesourcery.com>
26561 * configure: Regenerate.
26563 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
26566 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
26568 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
26570 * doc/contrib.texi (Contributors): Add John Marino.
26572 2015-04-09 Jakub Jelinek <jakub@redhat.com>
26574 PR tree-optimization/65709
26575 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
26576 TREE_TYPE (TREE_TYPE (t)).
26578 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
26581 * lra-int.h (lra_bad_spill_regno_start): New.
26582 * lra.c (lra_bad_spill_regno_start): New.
26583 (lra): Set up lra_bad_spill_regno_start. Set up
26584 lra_constraint_new_regno_start unconditionally.
26585 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
26588 2015-04-09 Marek Polacek <polacek@redhat.com>
26589 Jakub Jelinek <jakub@redhat.com>
26591 PR middle-end/65554
26592 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
26593 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
26596 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
26598 PR rtl-optimization/65693
26599 * combine.c (is_parallel_of_n_reg_sets): Move outside of
26602 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
26605 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
26606 device specs file if "device-specs%s" didn't resolve to a path.
26608 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
26611 * config/i386/i386.c (fixup_modeless_constant): New.
26612 (ix86_expand_args_builtin): Fixup modeless constant operand.
26613 (ix86_expand_round_builtin): Ditto.
26614 (ix86_expand_special_args_builtin): Ditto.
26615 (ix86_expand_builtin): Ditto.
26617 2015-04-09 Jakub Jelinek <jakub@redhat.com>
26620 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
26621 any pow2 integer in between 2 and 0x80000000U inclusive.
26623 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
26625 PR rtl-optimization/65693
26626 * combine.c (is_parallel_of_n_reg_sets): Change first argument
26627 from an rtx_insn * to an rtx.
26628 (try_combine): Adjust both callers. Use it once more.
26630 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
26632 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
26633 (chkp_make_static_const_bounds): Search existing
26634 symbol by assembler name. Use make_decl_one_only.
26635 (chkp_get_zero_bounds_var): Remove node search which
26636 is now performed in chkp_make_static_const_bounds.
26637 (chkp_get_none_bounds_var): Likewise.
26639 2015-04-08 Michael Witten <mfwitten@gmail.com>
26641 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
26644 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26646 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
26648 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
26650 * doc/extend.texi (__sync Builtins): Fix grammar.
26652 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26654 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
26656 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26658 * varasm.c (emit_local): Move definition of align.
26660 2015-04-08 Julian Brown <julian@codesourcery.com>
26662 * config/nvptx/mkoffload.c (process): Support variable mapping.
26664 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
26666 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
26668 (alpha_write_one_linkage): Correct typo.
26670 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
26672 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
26674 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
26676 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
26678 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
26680 * tree-chkp.h (chkp_insert_retbnd_call): New.
26681 * tree-chkp.c (chkp_insert_retbnd_call): New.
26682 * ipa-split.c (insert_bndret_call_after): Remove.
26683 (split_function): Use chkp_insert_retbnd_call.
26684 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
26685 bounds for instrumented functions.
26687 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
26690 * calls.c (initialize_argument_information): When producing tail
26691 call also turn SSA_NAMES passed by references to original PARM_DECLs
26693 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
26696 * lra-remat.c (do_remat): Process input and non-input insn
26697 registers separately.
26699 2015-04-07 Jakub Jelinek <jakub@redhat.com>
26702 * valtrack.c (debug_lowpart_subreg): New function.
26703 (dead_debug_insert_temp): Use it.
26705 PR middle-end/65680
26706 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
26707 into signed HOST_WIDE_INT the same as negative bit_offset.
26709 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
26711 * ipa-comdats.c (ipa_comdats): Visit all thunks
26712 to set proper comdat group.
26714 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26717 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
26718 on constants for NEON VSTRUCT modes.
26720 2015-04-07 Jakub Jelinek <jakub@redhat.com>
26721 Iain Sandoe <iain@codesourcery.com>
26724 * configure: Regenerate.
26726 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
26729 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
26730 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
26731 that LFD is used to load double constants instead of LFS. Add
26732 defaults for all costs structures. Add comments for missing
26733 initialization fields.
26734 (size32_cost): Likewise.
26735 (size64_cost): Likewise.
26736 (rs64a_cost): Likewise.
26737 (mpccore_cost): Likewise.
26738 (ppc403_cost): Likewise.
26739 (ppc405_cost): Likewise.
26740 (ppc440_cost): Likewise.
26741 (ppc476_cost): Likewise.
26742 (ppc601_cost): Likewise.
26743 (ppc603_cost): Likewise.
26744 (ppc604_cost): Likewise.
26745 (ppc604e_cost): Likewise.
26746 (ppc620_cost): Likewise.
26747 (ppc630_cost): Likewise.
26748 (ppccell_cost): Likewise.
26749 (ppc750_cost): Likewise.
26750 (ppc7450_cost): Likewise.
26751 (ppc8540_cost): Likewise.
26752 (ppce300c2c3_cost): Likewise.
26753 (ppce500mc_cost): Likewise.
26754 (ppce500mc64_cost): Likewise.
26755 (ppce5500_cost): Likewise.
26756 (ppce6500_cost): Likewise.
26757 (titan_cost): Likewise.
26758 (power4_cost): Likewise.
26759 (power6_cost): Likewise.
26760 (power7_cost): Likewise.
26761 (power8_cost): Likewise.
26762 (ppca2_cost): Likewise.
26763 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
26765 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
26766 instead of XXLOR to copy SFmode to clear out dirty bits created
26767 when SFmode denormals are generated.
26768 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
26769 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
26771 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
26773 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
26774 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
26775 * config/aarch64/aarch64-tune.md: Regenerate.
26777 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
26779 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
26780 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
26781 * config/arm/arm-cores.def (exynos-m1): New core.
26782 * config/arm/arm-tune.md: Regenerate.
26783 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
26784 * config/arm/bpabi.h: Likewise.
26786 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
26788 * ipa-cp (set_single_call_flag): Remove too
26789 restrictive assert.
26791 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
26793 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
26794 GOMP_offload_unregister from the destructor.
26796 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
26798 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
26799 flags for instrumentation thunk.
26800 (chkp_produce_thunks): Likewise.
26802 2015-04-05 Martin Liska <mliska@suse.cz>
26805 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
26806 has computed data structure.
26807 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
26809 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
26811 * invoke.texi (inline-unit-growth): Increase growth to 20%
26812 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
26814 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
26817 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
26819 (lra_rematerialization_iter): New.
26820 * lra.c (lra): Initialize lra_rematerialization_iter.
26821 Stop updating lra_constraint_new_regno_start after switching of
26822 inheritance and rematerialization.
26823 * lra-remat.c (lra_rematerialization_iter): New.
26824 (lra_remat): Add printing pass iteration. Do rematerialization
26825 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
26827 2015-04-04 Richard Biener <rguenther@suse.de>
26829 PR tree-optimization/64909
26830 PR tree-optimization/65660
26831 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
26832 to take a cost vector for scalar iteration cost.
26833 (vect_get_single_scalar_iteration_cost): Likewise.
26834 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
26835 Compute the scalar iteration cost into a cost vector.
26836 (vect_get_known_peeling_cost): Use the scalar cost vector to
26837 account for the cost of the peeled iterations.
26838 (vect_estimate_min_profitable_iters): Likewise.
26839 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
26842 2015-04-04 Alan Modra <amodra@gmail.com>
26846 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
26847 0.0 constant unless TARGET_VSX.
26848 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
26851 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
26854 * ipa-inline-transform.c (inline_call): Skip sanity check to work
26857 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
26860 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
26861 speculative indirect edges to avoid ordering issue.
26863 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
26866 * ipa-inline.c (edge_badness): Add combined size to the denominator.
26868 2015-04-03 Jakub Jelinek <jakub@redhat.com>
26870 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
26871 TYPE_ARTIFICIAL on the .omp_data* types.
26873 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26875 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
26876 instrumentation thunks.
26878 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26880 * config/i386/i386.c (ix86_expand_call): Avoid nested
26881 PARALLEL in returned call value.
26883 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26885 * lto-cgraph.c (input_cgraph_1): Always link instrumented
26886 assembler name with original one.
26888 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
26890 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
26892 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
26894 Revert parts of r216820.
26895 * config/i386/i386.md (movqi_internal): Correct type calculation
26896 for alternatives 3 and 5.
26898 2015-04-02 Jakub Jelinek <jakub@redhat.com>
26900 PR preprocessor/61977
26901 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
26902 predefine __vector/__bool/__pixel macros nor context sensitive
26903 macros for CLK_ASM.
26904 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
26906 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
26908 * config/pa/pa.c (pa_output_move_double): Directly handle register
26909 indexed memory operand. Simplify handling of scaled register indexed
26912 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26915 * config/i386/linux-common.h (MPX_SPEC): New.
26916 (CHKP_SPEC): Add MPX_SPEC.
26917 * doc/invoke.texi (-fcheck-pointer-boudns): Document
26918 possible issues with '-z bndplt' support in linker.
26920 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
26922 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
26923 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
26924 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
26925 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
26926 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
26928 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
26930 * config/i386/sync.md (UNSPEC_MOVA): Remove.
26931 (atomic_load<mode>): Change operand 0 predicate to
26932 nonimmediate_operand and fix up the destination when needed.
26934 (atomic_loaddi_fpu): Use UNSPEC_LDA.
26935 (atomic_store<mode>): Change operand 1 predicate to
26936 nonimmendate_operand and move the source to register when needed.
26938 (atomic_store<mode>_1): Use UNSPEC_STA.
26939 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
26940 Fix moves from memory operand. Use UNSPEC_STA.
26942 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
26944 * expmed.c (strict_volatile_bitfield_p): Check that the access will
26945 not cross a MODESIZE boundary.
26946 (store_bit_field, extract_bit_field): Added assertions in the
26947 strict volatile bitfields code path.
26949 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
26952 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
26953 Increase args array size by one to avoid buffer overflow.
26955 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
26957 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
26959 * ipa-inline.c (edge_badness): Add wrapper penalty.
26960 (sum_callers): Move up.
26961 (inline_small_functions): Set single_caller.
26962 * ipa-inline.h (inline_summary): Add single_caller.
26963 * ipa-split.c (split_function): Set split_part.
26964 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
26965 * cgraph.h (cgraph_node): Add split_part.
26967 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
26970 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
26971 Do not split operands 0 and operands 2 to halfmode.
26972 (atomic_compare_and_swap<mode>): Update for
26973 atomic_compare_and_swap<dwi>_doubleword changes.
26975 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
26977 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
26978 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
26979 no caching is done.
26981 2015-03-31 Martin Liska <mliska@suse.cz>
26984 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
26985 has already filled up function summary.
26986 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
26988 2015-03-31 Richard Biener <rguenther@suse.de>
26990 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
26993 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
26995 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
26997 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
26998 (s390_asm_output_function_label): Adapt to new signature of
26999 s390_function_num_hotpatch_hw
27000 Optimise the code generating assembler output.
27001 Add comments to assembler file.
27003 2015-03-31 Richard Biener <rguenther@suse.de>
27005 PR middle-end/65626
27006 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
27007 of the noreturn call so it is last and cleanup_control_flow_bb
27008 can do the CFG part.
27010 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
27013 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
27014 same_comdat_group for external symbols.
27015 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
27016 infinite same_comdat_group traversal loop.
27018 2015-03-31 Jakub Jelinek <jakub@redhat.com>
27021 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
27022 automatically to $headers.
27024 2015-03-30 Jakub Jelinek <jakub@redhat.com>
27027 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
27028 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
27030 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
27032 * ipa-prop.c (param_type_may_change_p): Likewise.
27033 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
27034 (remove_unused_scope_block_p): Add in_ctor_dtor_block
27035 argument. Before inlining, preserve
27036 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
27037 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
27039 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
27041 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
27044 * ipa-inline.c (edge_badness): Base denominator on callee's
27047 2015-03-27 Martin Jambor <mjambor@suse.cz>
27050 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
27051 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
27052 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
27053 node_calling_single_call.
27054 * ipa-cp.c (count_callers): New function.
27055 (set_single_call_flag): Likewise.
27056 (initialize_node_lattices): Count callers and set single_flag_call if
27058 (incorporate_penalties): New function.
27059 (good_cloning_opportunity_p): Use it, dump new flags.
27060 (propagate_constants_topo): Set node_within_scc flag if appropriate.
27061 * doc/invoke.texi (ipa-cp-recursion-penalty,
27062 ipa-cp-single-call-pentalty): Document.
27064 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
27067 * symtab.c (symtab_node::get_partitioning_class): Register vars
27069 * varpool.c (symbol_table::output_variables) Do not assemble unefined
27070 decls for non-symbols.
27072 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
27075 * output.h (default_binds_local_p_2): New.
27076 * varasm.c (default_binds_local_p_2): Renamed to ...
27077 (default_binds_local_p_3): This. Don't return true on protected
27078 data symbol if protected data may be external.
27079 (default_binds_local_p): Use default_binds_local_p_3.
27080 (default_binds_local_p_1): Likewise.
27081 (default_binds_local_p_2): New.
27082 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
27083 default_binds_local_p_2 if TARGET_MACHO is undefined.
27085 2015-03-27 Jakub Jelinek <jakub@redhat.com>
27088 * config/i386/i386.c (legitimize_pic_address): If base
27089 is SYMBOL_REF or LABEL_REF using %rip addressing, force
27090 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
27092 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
27095 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
27098 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
27101 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
27102 of optimized out indirect call.
27103 (redirect_to_unreachable): Always build symbol table node for
27104 BUILT_IN_UNREACHABLE
27106 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
27109 * ira-costs.c (record_reg_classes): Process all constraint string
27112 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
27114 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
27118 * config/c6x/constraints.md (S3): New constraint.
27119 * config/c6x/c6x.md (real_jump): Use it.
27121 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27123 PR middle-end/65595
27124 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
27125 do redirection if the call is not optimized out.
27127 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
27130 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
27131 (fchkp-check-incomplete-type): Add LTO.
27132 (fchkp-zero-input-bounds-for-main): Likewise.
27133 (fchkp-first-field-has-own-bounds): Likewise.
27134 (fchkp-narrow-bounds): Likewise.
27135 (fchkp-narrow-to-innermost-array): Likewise.
27136 (fchkp-use-static-bounds): Likewise.
27137 (fchkp-use-static-const-bounds): Likewise.
27138 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
27140 2015-03-27 Marek Polacek <polacek@redhat.com>
27142 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
27144 2015-03-27 Marek Polacek <polacek@redhat.com>
27147 * ubsan.c (ubsan_create_edge): New function.
27148 (instrument_bool_enum_load): Call it.
27149 (instrument_nonnull_arg): Likewise.
27150 (instrument_nonnull_return): Likewise.
27151 (instrument_object_size): Likewise.
27153 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27155 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
27158 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27161 * lto-streamer.h (class lto_location_cache): New.
27162 (struct data_in): Add location_cache.
27163 (lto_input_location): Update prototype.
27164 (stream_input_location_now): New.
27165 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
27166 pointer to location.
27167 (stream_input_location): Update.
27168 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
27169 (warn_odr): Apply location cache before warning.
27170 (lto_input_location): Update prototype.
27171 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
27172 Use stream_input_location_now.
27173 * lto-streamer-in.c (lto_location_cache::current_cache): New static
27175 (lto_location_cache::cmp_loc): New function.
27176 (lto_location_cache::apply_location_cache): New function.
27177 (lto_location_cache::accept_location_cache): New function.
27178 (lto_location_cache::revert_location_cache): New function.
27179 (lto_location_cache::input_location): New function.
27180 (lto_input_location): Do location caching.
27181 (stream_input_location_now): New function.
27182 (input_eh_region, input_struct_function_base): Use
27183 stream_input_location_now.
27184 (lto_data_in_create): use new.
27185 (lto_data_in_delete): Use delete.
27186 * tree-streamer-in.c (unpack_ts_block_value_fields,
27187 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
27188 lto_input_ts_exp_tree_pointers): Update for cached location api.
27190 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27193 * passes.def: Add pass_nothrow.
27194 * ipa-pure-const.c: (pass_data_nothrow): New.
27195 (pass_nothrow): New.
27196 (pass_nothrow::execute): New.
27197 (make_pass_nothrow): New.
27198 * tree-pass.h (make_pass_nothrow): Declare.
27200 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27202 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
27203 edge to change by speculation resolution or redirection.
27204 (edge_set_predicate): Likewise.
27205 (inline_summary_t::duplicate): Likewise.
27206 (remap_edge_summaries): Likewise.
27208 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27210 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
27212 (can_inline_edge_p): Relax option matching for always inline functions.
27214 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
27217 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
27218 Check operand 4 and operand 0 for equality.
27219 (avx512f_vextract<shuffletype>32x4_1_maskm):
27220 Check operand 6 and operand 0 for equality.
27221 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
27223 (vec_extract_hi_<mode>_maskm): Ditto.
27225 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27227 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
27228 dead calls back to live.
27229 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
27231 (cgraph_node::verify_node): ... here; verify only callee edges,
27233 * cif-code.def (CILK_SPAWN): New code.
27235 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27237 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
27238 (edge_set_predicate): Use it to mark unreachable edges.
27239 (inline_summary_t::duplicate): Remove unnecesary code.
27240 (remap_edge_summaries): Likewise.
27241 (dump_inline_summary): Report contains_cilk_spawn.
27242 (compute_inline_parameters): Compute contains_cilk_spawn.
27243 (inline_read_section, inline_write_summary): Stream
27244 contains_cilk_spawn.
27245 * ipa-inline.c (can_inline_edge_p): Do not touch
27246 DECL_STRUCT_FUNCTION that may not be available;
27247 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
27248 remove check for callee_fun->can_throw_non_call_exceptions and
27249 replace it by optimization attribute check; check for flag_exceptions.
27250 * ipa-inline-transform.c (inline_call): Maintain
27251 DECL_FUNCTION_PERSONALITY
27252 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
27254 2015-03-26 Jakub Jelinek <jakub@redhat.com>
27256 PR tree-optimization/65551
27257 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
27258 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
27260 2015-03-26 Richard Biener <rguenther@suse.de>
27262 PR middle-end/65555
27263 * tree-cfg.c (verify_gimple_call): Do not require a call to
27264 have no LHS if it wasn't recognized as control altering yet.
27266 2015-03-26 Jakub Jelinek <jakub@redhat.com>
27268 PR tree-optimization/64715
27269 * passes.def: Add another instance of pass_object_sizes before ccp1.
27270 * tree-object-size.c (pass_object_sizes::execute): In
27271 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
27272 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
27273 __bos result and the computed constant. Remove redundant
27274 checks, obsoleted by gimple_call_builtin_p test.
27276 * var-tracking.c (variable_tracking_main_1): Don't track
27277 variables for targetm.no_register_allocation targets.
27279 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
27281 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
27282 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
27284 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
27287 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
27288 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
27289 0.0 is correctly setup.
27290 (extenddftf2_internal): Likewise.
27292 2015-03-25 Sebastian Pop <s.pop@samsung.com>
27294 PR tree-optimization/65177
27295 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
27297 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
27298 edges not adjacent on the path to the original code.
27300 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
27303 * doc/install.texi (Building a native compiler): Document new
27304 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
27305 configuration assumes that the host supports the linker plugin.
27307 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
27310 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
27311 chain for generated call.
27313 2015-03-25 Richard Biener <rguenther@suse.de>
27315 * passes.c (pass_manager::execute_early_local_passes): Guard
27316 execution of pass_chkp_instrumentation_passes with
27317 flag_check_pointer_bounds.
27318 (pass_chkp_instrumentation_passes::gate): Likewise.
27320 2015-03-25 Martin Liska <mliska@suse.cz>
27322 PR tree-optimization/65538
27323 * symbol-summary.h (function_summary::~function_summary):
27324 Relese memory for allocated summaries.
27325 (function_summary::release): New function.
27327 2015-03-25 Jakub Jelinek <jakub@redhat.com>
27330 * lto-streamer-out.c (DFS::worklist): New struct.
27331 (DFS::worklist_vec): New data member.
27332 (DFS::next_dfs_num): Remove.
27333 (DFS::DFS): Rewritten using worklist instead of recursion,
27334 using most of code from DFS::DFS_write_tree.
27335 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
27336 pass it to DFS_write_tree calls.
27337 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
27338 quick initial checks push it into worklist_vec and return.
27340 2015-03-25 Richard Biener <rguenther@suse.de>
27342 PR middle-end/65519
27343 * genmatch.c (expr::gen_transform): Re-write to avoid
27344 using gimple_build.
27346 2015-03-25 Bin Cheng <bin.cheng@arm.com>
27348 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
27350 2015-03-25 Bin Cheng <bin.cheng@arm.com>
27352 * config/arm/arm.opt (print_tune_info): New option.
27353 * config/arm/arm.c (arm_print_tune_info): New function.
27354 (arm_file_start): Call arm_print_tune_info.
27355 * config/arm/arm-protos.h (struct tune_params): Add comment.
27356 * doc/invoke.texi (@item -mprint-tune-info): New item.
27357 (-mtune): mention it in ARM Option Summary.
27359 2015-03-25 DJ Delorie <dj@redhat.com>
27361 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
27364 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
27365 Martin Liska <mliska@suse.cz>
27367 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
27368 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
27369 (sem_item::add_type): New function.
27370 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
27371 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
27372 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
27373 (sem_function::equals_wpa): Fix typo.
27374 * ipa-icf.h (sem_item::add_type): New function.
27375 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
27378 2015-03-24 Jakub Jelinek <jakub@redhat.com>
27380 PR tree-optimization/65533
27381 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
27382 with swapped operands, call vect_free_slp_tree on
27383 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
27386 2015-03-24 Richard Biener <rguenther@suse.de>
27388 PR middle-end/65517
27389 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
27390 for fixup if necessary.
27392 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
27394 * doc/extend.texi (Function Attributes): Add @cindex entries
27395 for all attributes and regularize their format. Delete text
27396 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
27397 information about "eightbit_data", "tiny_data", and "model"
27398 variable attributes to the Variable Attributes section. Fix
27399 some obvious typos and copy-editing issues.
27400 (Variable Attributes, Type Attributes): Likewise add/fix
27401 @cindex entries for all attributes.
27403 2015-03-23 Jakub Jelinek <jakub@redhat.com>
27406 * tree-chkp.c (chkp_build_returned_bound): Ignore
27407 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
27409 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
27412 * config/sh/predicates.md (simple_mem_operand,
27413 displacement_mem_operand): Add test for reg.
27414 (short_displacement_mem_operand): Test for displacement_mem_operand
27415 before invoking sh_disp_addr_displacement.
27416 * config/sh/constraints.md (Sdd, Sra): Simplify.
27417 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
27418 Remove redundant displacement_mem_operand tests.
27420 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
27423 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
27424 the same -mmcu=MCU more than once.
27426 2015-03-23 Jakub Jelinek <jakub@redhat.com>
27429 * ipa-devirt.c: Remove duplicate demangle.h include.
27432 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
27434 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
27435 REG_POINTER on *destptr after adjusting it for prologue size.
27438 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
27439 ultimate_alias_target ()->order ints instead of
27440 ultimate_alias_target () pointers.
27442 2015-03-23 Richard Biener <rguenther@suse.de>
27444 PR tree-optimization/65518
27445 * tree-vect-stmts.c (vectorizable_load): Reject single-element
27446 interleaving cases we generate absymal code for.
27448 2015-03-23 Richard Biener <rguenther@suse.de>
27450 PR tree-optimization/65494
27451 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
27453 (vect_analyze_slp_instance): But do that here, always and once.
27455 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27457 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
27458 adding T or multiplying by T+1 and subracting T.
27460 2015-03-22 Jeff Law <law@redhat.com>
27462 PR rtl-optimization/64317
27463 * Makefile.in (OBJS): Add gcse-common.c
27464 * gcse.c: Include gcse-common.h
27465 (struct modify_pair_s): Move structure definition to gcse-common.h
27466 (compute_transp): Move function to gcse-common.c.
27467 (canon_list_insert): Similarly.
27468 (record_last_mem_set_info): Break out some code and put it into
27469 gcse-common.c. Call into the new common code.
27470 (compute_local_properties): Pass additional arguments to compute_transp.
27471 * postreload-gcse.c: Include gcse-common.h and df.h
27472 (modify_mem_list_set, blocks_with_calls): New variables.
27473 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
27474 (get_bb_avail_insn): Pass in the expression index too.
27475 (alloc_mem): Allocate memory for the new bitmaps and lists.
27476 (free_mem): Free memory for the new bitmaps and lists.
27477 (insert_expr_in_table): Record a bitmap index for each entry we
27479 (record_last_mem_set_info): Call into common code in gcse-common.c.
27480 (get_bb_avail_insn): If no available insn was found in the requested
27481 BB. If BB has a single predecessor, see if the expression is
27482 transparent in BB and available in that single predecessor.
27483 (compute_expr_transp): New wrapper for compute_transp.
27484 (eliminate_partially_redundant_load): Pass expression's bitmap_index
27485 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
27486 (gcse_after_reload_main): If there are elements in the hash table,
27487 then compute transparency for all the elements in the hash table.
27488 * gcse-common.h: New file.
27489 * gcse-common.c: New file.
27491 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
27493 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
27495 (System Headers): Likewise.
27497 (Traditional macros): Likewise.
27498 (Invocation): Likewise.
27499 (Option Index): Likewise.
27500 * doc/cppopts.texi (-M): Likewise.
27501 (-finput-charset): Likewise.
27502 (--help): Likewise.
27503 * doc.invoke.texi (AVR Options): Likewise.
27504 (V850 Options): Likewise.
27506 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
27509 * ipa-devirt.c: Include demangle.h
27510 (odr_type_d): Add field rtti_broken.
27511 (odr_subtypes_equivalent_p): Do not require name to match.
27512 (compare_virtual_tables): Fix typo; if type already has ODR violation,
27513 bypass the tests; be ready for function referneces in vtables that are
27514 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
27515 (warn_odr): Give up for nameless types.
27516 (warn_types_mismatch): Report mismatch in mangled names;
27517 report mismatch in anonymous namespaces; look into component types to
27518 give useful error; report when mismatch is dragged in from other ODR
27520 (odr_types_equivalent_p): Match types for being polymorphic; avoid
27521 duplicated diagnostics.
27522 (add_type_duplicate): Reorder checks so more informative ones come
27523 first; fix typo; do not output "the extra base is defined here" when
27525 (BINFO_N_BASE_BINFOS): Relax sanity check.
27527 2015-03-22 Martin Liska <mliska@suse.cz>
27528 Jakub Jelinek <jakub@redhat.com>
27530 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
27531 masks that can potentially include a builtin.
27532 (ix86_add_new_builtins): Introduce fast filter for isa values
27533 that cannot trigger builtin inclusion.
27535 2015-03-22 Martin Liska <mliska@suse.cz>
27537 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
27538 (sem_item::update_hash_by_local_refs): Likewise.
27539 (sem_variable::get_hash): Empty line is fixed.
27540 (sem_item_optimizer::execute): Include adding of hash references.
27541 (sem_item_optimizer::update_hash_by_addr_refs): New function.
27542 (sem_item_optimizer::build_hash_based_classes): Use local hash.
27543 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
27544 (sem_item::update_hash_by_local_refs): Likewise.
27546 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
27549 * ipa-comdats.c (enqueue_references): Walk through thunks.
27550 (ipa_comdats): Likewise.
27551 (set_comdat_group_1): New function.
27553 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
27556 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
27559 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
27560 Gerald Pfeifer <gerald@pfeifer.com>
27562 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
27564 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
27565 Sandra Loosemore <sandra@codesourcery.com>
27567 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
27568 function parameter declaration.
27569 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
27570 Update arguments to nios2_adjust_call_address().
27571 (sibcall_internal): Rename from *sibcall.
27572 (sibcall_value_internal): Rename from *sibcall_value.
27573 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
27574 (nios2_large_got_address): Add target temp reg parameter.
27575 (nios2_got_address): Adjust call to nios2_large_got_address, add
27576 force_reg around it.
27577 (nios2_load_pic_address): Add target temp reg parameter, replace call
27578 to nios2_got_address with corresponding code.
27579 (nios2_legitimize_constant_address): Update call to
27580 nios2_load_pic_address.
27581 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
27582 to use temp reg for PIC loading purposes.
27583 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
27584 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
27585 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
27587 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
27589 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
27590 usage of "the @option{...}".
27591 (-Wopenmp-simd): Likewise.
27592 (-fsanitize-recover): Likewise.
27593 (-fsanitize-undefined-trap-on-error): Likewise.
27595 (tracer-dynamic-coverage-feedback): Likewise.
27596 (reorder-block-duplicate-feedback): Likewise.
27597 (loop-unroll-jam-size): Likewise.
27600 (-mabs=legacy): Likewise.
27601 (-mupper-regs-df): Likewise.
27602 (-mupper-regs-sf): Likewise.
27603 (-mpointers-to-nested-functions): Likewise.
27605 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
27607 * doc/extend.texi (Cilk Plus Builtins): Add markup.
27609 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
27611 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
27612 additional index entries and cross-references.
27613 (-fchkp-check-incomplete-type): Likewise.
27614 (-fchkp-first-field-has-own-bounds): Likewise.
27615 (-fchkp-narrow-to-innermost-array): Likewise.
27616 (-fchkp-use-fast-string-functions): Likewise.
27617 (-fchkp-use-nochk-string-functions): Likewise.
27618 (-fchkp-use-static-const-bounds): Likewise.
27619 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
27620 (-fchkp-instrument-marked-only): Likewise.
27621 (-fchkp-use-wrappers): Likewise.
27622 (-static-libmpx): Likewise.
27623 (-static-libmpxwrappers): Likewise.
27624 * doc/extend.texi (bnd_legacy): Likewise.
27625 (bnd_instrument): Likewise.
27626 (bnd_variable_size): Likewise.
27627 (Pointer Bounds Checker builtins): Likewise.
27629 2015-03-21 Tom de Vries <tom@codesourcery.com>
27631 PR tree-optimization/65458
27632 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
27633 * cgraph.h (cgraph_node): Add parallelized_function field.
27634 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
27635 (input_overwrite_node): Read parallelized_function field.
27636 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
27637 parallelized_function on cgraph_node for child_fn.
27638 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
27639 Remove include of gt-tree-parloops.h.
27640 (parallelized_functions): Remove static variable.
27641 (parallelized_function_p): Rewrite using parallelized_function field of
27643 (create_loop_fn): Remove adding to parallelized_functions.
27644 * Makefile.in (GTFILES): Remove tree-parloops.c
27646 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
27648 PR rtl-optimization/64366
27649 * lra.c (lra_update_insn_regno_info): Consider regs in
27650 CALL_INSN_FUNCTION_USAGE memory.
27652 2015-03-20 Richard Biener <rguenther@suse.de>
27654 PR middle-end/64715
27655 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
27656 for type comparison and gcc_checking_assert.
27657 (chrec_fold_plus_poly_poly): Likewise.
27658 (chrec_fold_multiply_poly_poly): Likewise.
27659 (chrec_convert_1): Likewise.
27660 * gimplify.c (gimplify_expr): Remove premature folding of
27661 &X + CST to &MEM[&X, CST].
27663 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
27665 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
27667 (ipa_inline): Recompute inline_failed codes.
27668 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
27669 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
27672 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
27674 PR rtl-optimization/60851
27675 * recog.c (constrain_operands): Accept a pseudo register before reload
27676 for LRA enabled targets.
27678 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
27681 * config/rs6000/predicates.md (easy_fp_constant): Remove special
27682 -ffast-math handling that kept non-0 constants live in the RTL
27683 until reload. Remove logic testing the number of instructions it
27684 took to create a constant in a GPR that was never used, due to a
27685 test for soft-float earlier.
27686 (memory_fp_constant): Delete, no longer used.
27688 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
27689 alternatives for loading non-0 constants into GPRs for hard
27690 floating point that is no longer needed due to changes in
27691 easy_fp_constant. Add support for loading 0.0 into GPRs.
27692 (mov<mode>_hardfloat32): Likewise.
27693 (mov<mode>_hardfloat64): Likewise.
27694 (mov<mode>_64bit_dm): Likewise.
27695 (movtd_64bit_nodm): Likewise.
27696 (pre-reload move FP constant define_split): Delete define_split,
27697 since it is no longer used.
27698 (extenddftf2_internal): Remove GHF constraints that are not valid
27701 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
27703 PR rtl-optimization/63491
27704 * lra-constraints.c (check_and_process_move): Use src instead of
27705 sreg. Remove some dead code.
27707 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
27710 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
27711 (sem_variable::merge): Likewise.
27713 2015-03-19 Martin Liska <mliska@suse.cz>
27716 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
27717 all fields of cgraph_thunk_info.
27719 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
27721 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
27722 clone instrumented thunks.
27724 2015-03-19 Richard Biener <rguenther@suse.de>
27727 2015-03-10 Richard Biener <rguenther@suse.de>
27729 PR middle-end/63155
27730 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
27731 * tree-ssa-coalesce.c: Include timevar.h.
27732 (attempt_coalesce): Handle graph being NULL.
27733 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
27734 Split out abnormal coalescing to ...
27735 (perform_abnormal_coalescing): ... this function.
27736 (coalesce_ssa_name): Perform abnormal coalescing without computing
27738 (verify_ssa_coalescing_worker): New function.
27739 (verify_ssa_coalescing): Likewise.
27741 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
27742 Jakub Jelinek <jakub@redhat.com>
27745 * tsan.c (instrument_gimple): Clear tail call flag on
27748 2015-03-19 Jakub Jelinek <jakub@redhat.com>
27751 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
27752 call in the return bb.
27753 (find_split_points): Add RETURN_BB argument, don't call
27755 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
27756 if true append TSAN_FUNC_EXIT internal call after the call to
27757 the split off function.
27758 (execute_split_functions): Call find_return_bb here.
27759 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
27760 Adjust find_split_points and split_function calls.
27762 2015-03-18 DJ Delorie <dj@redhat.com>
27764 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
27765 (iorqi3_virt): Likewise.
27767 2015-03-18 Tom de Vries <tom@codesourcery.com>
27769 * tree-parloops.c (parallelize_loops): Make static.
27770 * tree-parloops.h (parallelize_loops): Remove extern declaration.
27772 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
27774 PR middle-end/64491
27776 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
27778 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
27779 condition would be removed due to undefined behaviour.
27781 2015-03-18 Martin Liska <mliska@suse.cz>
27784 * cgraph.c (cgraph_node::get_create): Remove unnecessary
27785 xstrdup_for_dump wrapper.
27786 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
27788 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
27789 with xstrdup_for_dump.
27790 (sem_variable::equals): Likewise.
27791 (sem_item_optimizer::read_section): Use symtab_node::name instead of
27793 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
27794 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
27795 symtab_node::asm_name with xstrdup_for_dump.
27796 (congruence_class::dump): Use symtab_node::name instead of
27798 * ipa-icf.h (symtab_node::name): Remove.
27799 (symtab_node::asm_name): Likewise.
27801 2015-03-18 Jakub Jelinek <jakub@redhat.com>
27803 PR tree-optimization/65450
27804 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
27806 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
27807 it instead of duplicate_ssa_name_ptr_info.
27810 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
27812 2015-03-18 Richard Biener <rguenther@suse.de>
27814 * tree-data-ref.h (struct access_matrix): Remove.
27815 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
27816 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
27817 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
27818 (am_vector_index_for_loop): Likewise.
27819 (struct data_reference): Remove access_matrix member.
27820 (DR_ACCESS_MATRIX): Remove.
27821 (lambda_vector_new): Add comment.
27822 (lambda_matrix_new): Use XOBNEWVEC.
27824 2015-03-18 Richard Biener <rguenther@suse.de>
27826 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
27827 (pass_ch::execute): Cleanup the CFG only if we did sth.
27828 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
27830 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27832 * expmed.c (synth_mult): Use std::swap instead of manually
27833 swapping algorithms.
27835 2015-03-18 Jakub Jelinek <jakub@redhat.com>
27838 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
27840 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
27843 * config/avr/avr.opt (-nodevicelib): New option.
27844 * doc/invoke.texi (AVR Options): Document it.
27845 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
27846 libgcc.a, libc.a, libm.a.
27847 * config/avr/specs.h: Same.
27848 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
27849 which don't (directly) depend on the device. Print more help.
27850 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
27851 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
27852 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
27854 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
27855 for specs file name.
27856 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
27857 * config/avr/avr-mcus.def: Adjust initializers and comments.
27859 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
27861 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
27862 DECL_ONE_ONLY to check if decl is one only.
27863 * ipa-split.c (consider_split): Limit splitt of one only functions.
27865 2015-03-16 Jakub Jelinek <jakub@redhat.com>
27867 PR tree-optimization/65427
27868 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
27870 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
27872 2015-03-16 Marek Polacek <polacek@redhat.com>
27874 * cgraph.h (add_new_static_var): Remove declaration.
27875 * varpool.c (add_new_static_var): Remove function.
27877 2015-03-16 Jakub Jelinek <jakub@redhat.com>
27879 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
27880 instead of vec<tree> * with vec_alloc and release for args.
27883 PR middle-end/65431
27884 * omp-low.c (delete_omp_context): Only splay_tree_delete
27885 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
27886 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
27888 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
27891 * cfgexpand.c (align_base): New function.
27892 (alloc_stack_frame_space): Call it.
27893 (expand_stack_vars): Align prev_frame to be sure
27894 data->asan_vec elements aligned properly.
27896 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
27898 PR middle-end/65409
27899 * expr.c (store_field): Do not do a direct block copy if the source is
27900 a PARALLEL with BLKmode.
27902 2015-03-16 Tom de Vries <tom@codesourcery.com>
27904 PR middle-end/65414
27906 2015-03-12 Tom de Vries <tom@codesourcery.com>
27908 PR rtl-optimization/64895
27909 * lra-lives.c (check_pseudos_live_through_calls): Use
27910 actual_call_used_reg_set instead of call_used_reg_set, if available.
27912 2015-03-16 Alan Modra <amodra@gmail.com>
27915 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
27916 Modify Z->r bswapdi splitter to use dest in place of scratch.
27917 In r->Z and Z->r bswapdi splitter rename word_high, word_low
27918 to word1, word2 and rearrange logic to suit.
27919 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
27920 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
27921 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
27922 Add one '?' on r->r. Modify Z->r splitter to avoid need for
27925 2015-03-14 Jakub Jelinek <jakub@redhat.com>
27927 PR tree-optimization/65369
27928 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
27929 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
27930 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
27932 PR tree-optimization/65418
27933 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
27934 are casts in the first PLUS_EXPR operand, ensure tbias and
27935 *totallowp are in the inner type.
27937 PR rtl-optimization/65401
27938 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
27939 argument. If true, adjust_address_nv of x with big-endian
27940 correction for the mode widening to GET_MODE (y).
27941 (make_field_assignment): Don't do MEM mode widening here.
27942 Use MEM_P instead of GET_CODE == MEM.
27944 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
27946 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
27947 the external decls.
27949 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27952 * config/arm/arm.c (arm_gen_constant, AND case): Use
27953 ARM_SIGN_EXTEND when constructing AND mask.
27955 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
27957 * graph.c (print_graph_cfg): Make function names visible and append
27958 parenthesis to it. Also make groups of basic blocks belonging to the
27959 same function visible.
27961 2015-03-12 Richard Biener <rguenther@suse.de>
27963 PR middle-end/44563
27964 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
27965 to avoid quadratic behavior with inline expansion splitting blocks.
27966 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
27967 with the successor if the predecessor will be merged with it.
27968 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
27969 entry block with its successor.
27971 2015-03-13 Richard Biener <rguenther@suse.de>
27973 PR middle-end/44563
27974 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
27975 (cleanup_tree_cfg_1): Do not call it.
27976 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
27977 (fixup_noreturn_call): Mark the stmt as control altering.
27978 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
27980 (pass_data_fixup_cfg): Produce a dump file.
27981 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
27982 (need_noreturn_fixup): New global.
27983 (pass_dominator::execute): Fixup queued noreturn calls.
27984 (optimize_stmt): Queue calls that became noreturn for fixup.
27985 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
27986 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
27987 (el_to_fixup): New global.
27988 (eliminate_dom_walker::before_dom_childre): Queue calls that
27989 became noreturn for fixup.
27990 (eliminate): Fixup queued noreturn calls.
27991 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
27992 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
27993 (substitute_and_fold_dom_walker::before_dom_children): Queue
27994 alls that became noreturn for fixup.
27995 (substitute_and_fold): Fixup queued noreturn calls.
27997 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
27999 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
28000 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
28001 are building; for methods check ODR type of class they belong to if
28002 they may lead to a polymorphic call.
28003 (sem_function::compare_polymorphic_p): Be bit smarter about testing
28004 when function may lead to a polymorphic call.
28005 (sem_function::compare_type_list): Remove.
28006 (sem_variable::equals): Update use of compatible_types_p.
28007 (sem_variable::parse_tree_refs): Remove.
28008 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
28010 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
28012 (func_checker::compatible_polymorphic_types_p): Break out from ...
28013 (unc_checker::compatible_types_p): ... here.
28014 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
28016 (unc_checker::compatible_types_p): Update.
28017 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
28020 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28022 PR rtl-optimization/65235
28023 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
28024 When first element of vec_concat is const_int, calculate its size
28025 using second element.
28027 2015-03-12 Richard Biener <rguenther@suse.de>
28029 PR middle-end/65270
28030 * fold-const.c (operand_equal_p): Fix ordering of resetting
28031 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
28033 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
28035 * config/s390/s390.c (s390_reorg): Move code to output nops after label
28037 (s390_asm_output_function_label): Likewise.
28038 * config/s390/s390.c (s390_asm_output_function_label):
28039 Fix function label alignment with -mhtopatch.
28040 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
28041 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
28042 ("nop_2_byte"): New define_insn.
28043 ("nop_4_byte"): Likewise.
28044 ("nop_6_byte"): Likewise.
28045 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
28046 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
28048 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
28051 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
28054 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
28057 * toplev.c (process_options): Restrict Pointer Bounds Checker
28058 usage with Address Sanitizer.
28060 2015-03-12 Richard Biener <rguenther@suse.de>
28062 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
28064 * omp-low.c (expand_omp_taskreg): Split block before removing
28066 (expand_omp_target): Likewise.
28067 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
28068 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
28069 stmt to split_block.
28071 2015-03-12 Tom de Vries <tom@codesourcery.com>
28073 PR rtl-optimization/64895
28074 * lra-lives.c (check_pseudos_live_through_calls): Use
28075 actual_call_used_reg_set instead of call_used_reg_set, if available.
28077 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
28079 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
28080 (cgraph_node::remove): Likewise.
28081 (cgraph_node::get_untransformed_body): Likewise.
28082 * varpool.c (varpool_node::remove): Likewise.
28083 (varpool_node::get_constructor): Add sanity check.
28085 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
28087 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
28089 (-fabi-compat-version): Likewise.
28090 (-ffriend-injection): Likewise.
28091 (-Wdeclaration-after-statement): Likewise.
28092 (-fomit-frame-pointer): Likewise.
28093 (-ftree-coalesce-inlined-vars): Likewise.
28094 (-fvisibility=): Likewise.
28095 * doc/extend.texi (Typeof): Likewise.
28096 (Zero Length): Likewise.
28097 (Escaped Newlines): Likewise.
28098 (Compound Literals): Likewise.
28099 (Function Attributes): Likewise.
28100 (Label Attributes): Likewise.
28101 (Type Attributes): Likewise.
28102 (Function Names): Likewise.
28103 (Other Builtins): Likewise.
28104 (Function Specific Option Pragmas): Likewise.
28105 (C++ Interface): Likewise.
28107 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
28109 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
28111 2015-03-11 Marek Polacek <polacek@redhat.com>
28113 PR tree-optimization/65388
28114 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
28116 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
28119 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
28120 * configure: Regenerate.
28121 * config.in: Regenerate.
28122 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
28123 [-mn-flash]: Document it.
28124 [__AVR_ARCH__]: Document avrtiny.
28126 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
28127 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
28128 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
28130 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28132 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
28134 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28137 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
28138 allow reloads of PLUS in floating point/VSX registers.
28140 2015-03-11 Junmo Park <junmoz.park@samsung.com>
28142 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
28143 crypto_sha256_fast.
28144 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
28146 2015-03-11 Richard Biener <rguenther@suse.de>
28148 PR tree-optimization/65310
28149 * tree-sra.c (build_ref_for_offset): Also preserve larger
28152 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
28154 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
28156 2015-03-10 Jakub Jelinek <jakub@redhat.com>
28159 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
28161 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
28163 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
28165 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
28166 (sem_function::equals_wpa): ... here.
28168 2015-03-10 Marek Polacek <polacek@redhat.com>
28169 Jakub Jelinek <jakub@redhat.com>
28172 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
28173 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
28176 2015-03-10 Jakub Jelinek <jakub@redhat.com>
28179 * config/rs6000/t-linux: For powerpc64* target set
28180 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
28182 2015-03-10 Richard Biener <rguenther@suse.de>
28184 PR middle-end/44563
28185 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
28186 for redirect_all_calls.
28188 2015-03-10 Marek Polacek <polacek@redhat.com>
28190 * gdbinit.in (pcfun): Define and document.
28192 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
28194 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
28195 of libgomp-plugin.h.
28196 (find_target_compiler): Support a case when the path to gcc is
28197 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
28198 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
28199 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
28201 (main): Use GCC_INSTALL_NAME as target_driver_name.
28202 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
28204 (mkoffload.o): Remove obsolete include path and defines.
28205 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
28207 2015-03-10 Richard Biener <rguenther@suse.de>
28209 PR middle-end/63155
28210 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
28211 * tree-ssa-coalesce.c: Include timevar.h.
28212 (attempt_coalesce): Handle graph being NULL.
28213 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
28214 Split out abnormal coalescing to ...
28215 (perform_abnormal_coalescing): ... this function.
28216 (coalesce_ssa_name): Perform abnormal coalescing without computing
28218 (verify_ssa_coalescing_worker): New function.
28219 (verify_ssa_coalescing): Likewise.
28221 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
28224 * config.gcc (extra_options) [avr]: Remove.
28225 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
28226 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
28227 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
28229 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
28230 (-mmcu=): Add Var and MissingArgError properties.
28232 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
28233 * config/avr/t-multilib: Regenerate.
28234 * config/avr/specs.h: New file.
28235 * config/avr/driver-avr.c: New file.
28236 * config/avr/genopt.sh: Remove file.
28237 * config/avr/avr-tables.opt: Remove file.
28238 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
28239 * config/avr/avr-c.c: Same.
28240 * avr-arch.h: Same.
28241 (avr_current_device): Remove proto.
28242 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
28243 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
28244 (EXTRA_SPEC_FUNCTIONS): Define.
28245 (avr_devicespecs_file): New specs function proto.
28246 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
28247 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
28248 (avr_current_device): Remove definition and usage.
28249 (avr_set_core_architecture): New static function.
28250 (avr_option_override): Use it.
28251 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
28252 (mcu_name): New static array.
28253 (comparator, avr_archs_str, avr_mcus_str): New static functions.
28254 (avr_inform_devices, avr_inform_core_architectures): New functions.
28255 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
28256 (avrlibc.h) [WITH_AVRLIBC]: Include.
28257 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
28258 (print_mcu): Rewrite from scratch.
28259 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
28260 Forward to avr-specific specs defined in device-specs file.
28261 * config/avr/t-avr (driver-avr.o): New rule.
28262 (avr-devices.o): Depend on avr-arch.h.
28263 (avr-mcus): No more depend on avr-tables.opt.
28264 (avr-tables.opt): Remove rule.
28265 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
28267 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
28269 * c-family/c.opt (fchkp-use-wrappers): New.
28270 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
28271 (chkp_wrap_function): New.
28272 (chkp_build_instrumented_fndecl): Support wrapped
28274 * doc/invoke.texi (-fcheck-pointer-bounds): New.
28275 (-fchkp-check-incomplete-type): New.
28276 (-fchkp-first-field-has-own-bounds): New.
28277 (-fchkp-narrow-bounds): New.
28278 (-fchkp-narrow-to-innermost-array): New.
28279 (-fchkp-optimize): New.
28280 (-fchkp-use-fast-string-functions): New.
28281 (-fchkp-use-nochk-string-functions): New.
28282 (-fchkp-use-static-bounds): New.
28283 (-fchkp-use-static-const-bounds): New.
28284 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
28285 (-fchkp-check-read): New.
28286 (-fchkp-check-write): New.
28287 (-fchkp-store-bounds): New.
28288 (-fchkp-instrument-calls): New.
28289 (-fchkp-instrument-marked-only): New.
28290 (-fchkp-use-wrappers): New.
28291 (-static-libmpx): New.
28292 (-static-libmpxwrappers): New.
28294 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
28296 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
28297 (CHKP_SPEC): Add wrappers library.
28298 * c-family/c.opt (static-libmpxwrappers): New.
28300 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
28302 * config/i386/linux-common.h (LIBMPX_LIBS): New.
28303 (LIBMPX_SPEC): New.
28305 * gcc.c (CHKP_SPEC): New.
28306 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
28307 * c-family/c.opt (static-libmpx): New.
28309 2015-03-10 Richard Biener <rguenther@suse.de>
28311 PR middle-end/44563
28312 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
28314 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
28315 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
28316 (cgraph_add_edge_to_call_site_hash): Likewise.
28317 (cgraph_node::get_edge): Likewise.
28318 (cgraph_edge::set_call_stmt): Likewise.
28319 (cgraph_edge::remove_caller): Likewise.
28321 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
28323 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
28324 (callee_saved_gpr_regs_size): ... this.
28325 (callee_saved_regs_first_regno): Rename to ...
28326 (callee_saved_first_gpr_regno): ... this.
28327 (callee_saved_regs_last_regno) Rename to ...
28328 (callee_saved_last_gpr_regno): ... this.
28329 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
28331 (nds32_initial_elimination_offset): Likewise.
28332 (nds32_expand_prologue): Likewise.
28333 (nds32_expand_epilogue): Likewise.
28334 (nds32_expand_prologue_v3push): Likewise.
28335 (nds32_expand_epilogue_v3pop): Likewise.
28336 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
28337 Adjust renamed variables.
28338 (nds32_output_stack_pop): Likewise.
28340 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
28342 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
28345 2015-03-10 Jakub Jelinek <jakub@redhat.com>
28347 PR rtl-optimization/65321
28348 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
28350 * var-tracking.c (use_narrower_mode): Likewise.
28352 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
28354 PR tree-optimization/65355
28355 * varasm.c (notice_global_symbol): Do not produce RTL.
28356 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
28358 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
28359 check for section anchors.
28361 2015-03-10 Alan Modra <amodra@gmail.com>
28364 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
28365 to be single-arch by default. Set cpu_is_64bit for powerpc64
28366 given --with-cpu=native.
28367 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
28368 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
28370 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
28371 rs6000_isa_flags rather than TARGET_64BIT.
28373 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
28374 Kaz Kojima <kkojima@gcc.gnu.org>
28376 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
28378 2015-03-09 Jakub Jelinek <jakub@redhat.com>
28381 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
28382 on a TREE_BINFO, instead use BINFO_TYPE.
28384 2015-03-09 Richard Biener <rguenther@suse.de>
28386 PR middle-end/65270
28387 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
28388 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
28389 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
28390 of that. When comparing dereferences compare alignment.
28391 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
28393 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
28395 * ipa-inline-analysis.c (check_callers): Check
28396 node->can_remove_if_no_direct_calls_and_refs_p.
28397 (growth_likely_positive): Reorganize to call
28398 can_remove_if_no_direct_calls_p later.
28399 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
28400 will_be_removed_from_program_if_no_direct_calls_p): Add
28401 will_inline parameter.
28402 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
28403 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
28404 Handle inliner case correctly.
28406 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
28408 PR tree-optimization/63743
28409 * cfgexpand.c (reorder_operands): Also reorder if only second operand
28410 had its definition forwarded by TER.
28412 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
28415 * ipa-utils.h (types_odr_comparable): Add strict argument.
28416 * ipa-devirt.c: Fix whitespace;
28417 (odr_hasher): Remove.
28418 (odr_name_hasher, odr_vtable_hasher): New hashers.
28419 (can_be_name_hashed_p): New predicate.
28420 (hash_type_name): remove.
28421 (hash_odr_name): New.
28422 (odr_name_hasher::hash): new.
28423 (can_be_vtable_hashed_p): New.
28424 (hash_odr_vtable): New.
28425 (odr_vtable_hasher::hash): New.
28426 (types_same_for_odr): Add strict parameter.
28427 (types_odr_comparable): Likewise.
28428 (odr_name_hasher::equal): New.
28429 (odr_vtable_hasher::equal): New.
28430 (odr_name_hasher::remove): New.
28431 (odr_hash_type): Change to hash_table<odr_name_hasher>.
28432 (odr_vtable_hash_type): New.
28433 (odr_vtable_hash): New.
28434 (odr_subtypes_equivalent_p): Do strict comparsion.
28435 (add_type_duplicate): Merge type names; cleanup; avoid type
28437 (register_odr_type): Initialize vtable hash.
28438 (build_type_inheritance_graph): Likewise
28439 (get_odr_type): Reorg to use two hashes.
28440 (dump_possible_polymorphic_call_targets): Move sanity check after debug
28442 (ipa_devirt): Dump type_inheritance_graph.
28443 (types_same_for_odr): Add strict mode.
28445 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
28448 * cgraph.h (symtab_node): Add definition_alignment,
28449 can_increase_alignment_p and increase_alignment.
28450 * symtab.c (symtab_node::can_increase_alignment_p,
28451 increase_alignment_1, symtab_node::increase_alignment,
28452 symtab_node::definition_alignment): New.
28453 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
28454 can_increase_alignment_p.
28455 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
28456 * tree-vect-stmts.c (ensure_base_align): Likewise.
28457 * varasm.c (function_section_1): Use definition_alignment.
28458 (assemble_start_function): Likewise.
28459 (emit_local): likewise.
28460 (build_constant_desc): Likewsie.
28461 (output_constant_def_contents): Likewise.
28462 (place_block_symbol): Likewise.
28463 (output_object_block): Likewise.
28465 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
28468 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
28469 when outputting debug.
28471 2015-03-07 Marek Polacek <polacek@redhat.com>
28472 Martin Uecker <uecker@eecs.berkeley.edu>
28475 * doc/invoke.texi: Update description of -fsanitize=bounds.
28477 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
28479 * tree-ssa-phiopt.c (neg_replacement): Remove.
28480 (tree_ssa_phiopt_worker): Remove negate optimization.
28482 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
28485 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
28487 2015-03-06 Richard Biener <rguenther@suse.de>
28489 PR middle-end/64928
28490 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
28491 and liveout_obstack members.
28492 (calculate_live_on_exit): Remove.
28493 (calculate_live_ranges): Change declaration.
28494 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
28495 (new_tree_live_info): Adjust.
28496 (calculate_live_ranges): Delete livein when not wanted.
28497 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
28498 Deal with partly deleted live info.
28499 (loe_visit_block): Remove temporary bitmap by using
28500 bitmap_ior_and_compl_into.
28501 (live_worklist): Adjust accordingly.
28502 (calculate_live_on_exit): Make static.
28503 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
28504 we do not need livein.
28506 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
28508 * real.c (real_from_string): Fix typo in assertion.
28510 2015-03-06 Alex Velenko <alex.velenko@arm.com>
28512 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
28515 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
28517 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
28519 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
28522 * lra-assigns.c (find_hard_regno_for): Rename to
28523 find_hard_regno_for_1. Add a new parameter.
28524 (find_hard_regno_for): New function using find_hard_regno_for_1.
28526 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
28528 PR rtl-optimization/65067
28529 * expmed.c (store_bit_field, extract_bit_field): Reworked the
28530 strict volatile bitfield handling.
28532 2015-03-05 Martin Liska <mliska@suse.cz>
28535 * ipa-icf.c (sem_variable::equals): Compare variables types.
28537 2015-03-05 Richard Henderson <rth@redhat.com>
28540 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
28541 correctly check weak symbol binding.
28543 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
28545 PR middle-end/65315
28546 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
28549 2015-03-05 Martin Liska <mliska@suse.cz>
28551 * ipa-inline.c (inline_small_functions): Set default value to
28552 prevent warning during bootstrap.
28553 * tree.h: Add pragma guard that ignores false positives during
28556 2015-03-05 Richard Biener <rguenther@suse.de>
28558 PR tree-optimization/65310
28559 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
28560 Properly preserve alignment of the base of the access.
28562 2015-03-05 Richard Biener <rguenther@suse.de>
28565 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
28566 Compare dependence info.
28568 2015-03-05 Richard Biener <rguenther@suse.de>
28570 PR middle-end/65233
28571 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
28573 (walk_ssa_copies): Revert last chage. Instead do not walk
28574 SSA names registered for SSA update.
28576 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
28579 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
28580 vtable references for their containing type.
28581 (sem_function::equals_wpa): Compare TYPE_RESTRICT
28582 and type attributes.
28584 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
28586 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
28587 before negating it.
28588 * stor-layout.c (finalize_record_size): Revert latest change.
28590 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
28592 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
28594 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
28596 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
28597 for correct comdat handling.
28598 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
28600 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
28601 (used_from_object_file_p_worker): Remove.
28602 (cgraph_node::only_called_directly_or_alised): Add
28603 used_from_object_file_p.
28604 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
28605 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
28606 can_remove_if_no_direct_calls_and_refs_p.
28608 2015-03-04 Nick Clifton <nickc@redhat.com>
28610 * config/rl78/rl78.h (enum reg_class): Remove real registers from
28611 General register class.
28612 * config/rl78/rl78-real.md: Replace general register constraints
28613 with real+virtual register constraints.
28615 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28617 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
28618 from checking for -mhtm option.
28620 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
28622 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
28623 (struct ipa_sra_check_caller_data): Add has_thunk field.
28624 (ipa_sra_check_caller): Check for thunk.
28625 (ipa_sra_preliminary_function_checks): Give up on function with
28627 (ipa_early_sra): Use call_for_symbol_and_aliases.
28629 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
28632 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
28633 called for __stack_chk_guard symbol.
28635 2015-03-03 DJ Delorie <dj@redhat.com>
28637 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
28639 (*addhi3_real): Likewise.
28640 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
28641 pattern to match incrementing memory.
28642 * config/rl78/predicates.md (rl78_1_2_operand): New.
28643 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
28644 it's the same and only mem.
28645 (rl78_alloc_physical_registers_op2): If there's effectively only
28646 one MEM, transcode it into HL.
28647 (rl78_far_p): Reject addresses that aren't legitimate.
28649 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
28651 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
28654 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
28656 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
28658 Implement call0 ABI for xtensa
28659 * config/xtensa/constraints.md ("a" constraint): Include stack
28660 pointer in case of call0 ABI.
28661 ("q" constraint): Make empty in case of call0 ABI.
28662 ("D" constraint): Include stack pointer in case of call0 ABI.
28663 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
28664 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
28666 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
28668 (xtensa_regno_to_class): Make it a local variable in the
28669 function xtensa_regno_to_class.
28670 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
28671 macro, function prototype and implementation.
28672 (reg_nonleaf_alloc_order): Make it a local variable in the
28673 function order_regs_for_local_alloc.
28674 (xtensa_conditional_register_usage): New function.
28675 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
28676 (xtensa_valid_move): Allow direct moves to stack pointer
28677 register in call0 ABI.
28678 (xtensa_setup_frame_addresses): Only spill register windows in
28680 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
28681 call0 ABI respectively.
28682 (xtensa_function_arg_1): Only mark a7 register for copying in
28684 (xtensa_call_save_reg): New function.
28685 (compute_frame_size): Add space for callee saved register
28686 storage to the frame size in call0 ABI.
28687 (xtensa_expand_prologue): Generate code to set up stack frame
28688 and save callee-saved registers in call0 ABI.
28689 (xtensa_expand_epilogue): New function.
28690 (xtensa_set_return_address): New function.
28691 (xtensa_return_addr): Calculate return address in call0 ABI.
28692 (xtensa_builtin_saveregs): Only mark a7 register for copying and
28693 emit copying code in windowed ABI.
28694 (order_regs_for_local_alloc): Add preferred register allocation
28695 order for non-leaf function in call0 ABI.
28696 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
28697 (xtensa_asm_trampoline_template): Add trampoline generation for
28699 (xtensa_trampoline_init): Add trampoline initialization for
28701 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
28703 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
28704 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
28705 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
28706 ABI call-used registers.
28707 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
28708 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
28710 (REG_CLASS_CONTENTS): Include all registers into the preferred
28711 reload registers set, adjust the set in the
28712 xtensa_conditional_register_usage.
28713 (xtensa_regno_to_class): Drop variable declaration.
28714 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
28716 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
28718 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
28719 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
28720 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
28721 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
28722 location in call0 ABI.
28723 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
28724 stack adjustment size when handling exception.
28725 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
28726 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
28728 ("return" pattern): Generate ret.n/ret in call0 ABI.
28729 ("epilogue" pattern): Expand epilogue.
28730 ("nonlocal_goto" pattern): Use default in call0 ABI.
28731 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
28732 emit eh_set_a0_* depending on ABI.
28733 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
28734 ("eh_set_a0_call0", "blockage"): New patterns.
28736 2015-03-03 Martin Liska <mliska@suse.cz>
28739 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
28741 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
28744 * config/rs6000/rs6000-tables.opt: Regenerate table.
28746 2015-03-03 Renlin Li <renlin.li@arm.com>
28748 * doc/md.texi (@item ^): Change ? into ^.
28750 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
28752 * doc/tm.texi: Regenerated.
28754 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
28756 * builtins.c (expand_builtin_return_addr): Add
28757 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
28758 surrounding #ifdef.
28759 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
28761 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
28763 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
28765 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
28768 2015-03-03 Martin Jambor <mjambor@suse.cz>
28769 Eric Botcazou <ebotcazou@adacore.com>
28771 * tree-sra.c (ipa_sra_check_caller_data): New type.
28772 (has_caller_p): Removed.
28773 (ipa_sra_check_caller): New function.
28774 (ipa_sra_preliminary_function_checks): Use it.
28776 2015-03-03 Martin Liska <mliska@suse.cz>
28778 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
28779 instead of if branch.
28781 2015-03-03 Martin Liska <mliska@suse.cz>
28784 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
28786 2015-03-23 Jeff Law <law@redhat.com>
28788 PR tree-optimization/65241
28789 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
28790 hash table if INSERT is true.
28792 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
28795 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
28797 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
28800 * config/avr/avr.c (context.h, tree-pass.h): Include them.
28801 (avr_pass_data_recompute_notes): New static variable.
28802 (avr_pass_recompute_notes): New class.
28803 (avr_register_passes): New static function.
28804 (avr_option_override): Call it.
28806 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
28808 Fix various problems with specs file generation.
28811 * config.gcc (extra_gcc_objs) [avr]: Remove.
28812 * config/avr/driver-avr.c: Remove file.
28813 * config/avr/t-avr (driver-avr.o): Remove rule.
28814 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
28815 INCLUDES to build. Depend on TM_H.
28816 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
28817 build warnings. Fix non-matching types and non-existing %-codes.
28819 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
28820 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
28821 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
28822 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
28823 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
28824 (LIBGCC_SPEC): Remove definitions.
28826 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
28828 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
28829 to create a register in testing mode.
28831 2015-03-03 Martin Liska <mliska@suse.cz>
28832 Jan Hubicka <hubicka@ucw.cz>
28835 * cgraph.c (cgraph_node::has_thunk_p): New function.
28836 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
28837 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
28838 (sem_function::merge): Assert is changed.
28840 2015-03-03 Martin Liska <mliska@suse.cz>
28841 Martin Jambor <mjambor@suse.cz>
28844 * ipa-icf.c (sem_item_optimizer::execute): Change function
28845 return value to boolean.
28846 (sem_item_optimizer::merge_classes): Likewise.
28847 (ipa_icf_driver): Return TODO_remove_functions in case there's
28848 a merge operation processed.
28849 * ipa-icf.h: Change function return value to boolean.
28851 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
28854 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
28855 processor type for 64-bit little endian PowerPC.
28857 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
28858 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
28859 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
28860 printing built-in mask so it does not pass NULL pointers.
28862 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
28865 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
28868 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
28869 !ISA_HAS_FP_CONDMOVE.
28871 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
28873 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
28876 2015-03-02 Ulrich Drepper <drepper@gmail.com>
28878 * doc/invoke.texi (Options for Code Generation Conventions):
28879 Fix URL of DSO paper.
28881 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
28884 * ipa-inline.c (check_callers): Looks for recursion.
28885 (inline_to_all_callers): Give up on uninlinable or recursive edges.
28886 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
28887 summary of inline clones.
28888 (do_estimate_growth_1): Fix recursion check.
28890 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
28893 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
28896 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
28897 Aldy Hernandez <aldyh@redhat.com>
28900 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
28901 when checking TYPE_BINFO.
28903 2015-03-02 Richard Biener <rguenther@suse.de>
28906 * ipa-icf-gimple.c: Include builtins.h.
28907 (func_checker::compare_memory_operand): Compare base alignment.
28909 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
28912 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
28913 are never passed by reference.
28915 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
28918 * tree-chkp.c (chkp_check_lower): Don't check against
28919 zero bounds for already instrumented functions.
28920 (chkp_check_upper): Likewise.
28921 (chkp_fini): Clean pass local data to avoid wrong reusage.
28923 2015-02-28 Martin Liska <mliska@suse.cz>
28924 Jan Hubicka <hubicka@ucw.cz>
28926 * ipa-icf.c (sem_variable::equals): Improve debug output;
28927 get variable constructor.
28928 (sem_variable::parse): Do not filter out too early; give up on
28929 volatile and register vars.
28930 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
28932 * ipa-icf.h (sem_variable::init): Do not set ctor.
28933 (sem_variable::ctor): Remove.
28935 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
28937 PR middle-end/65233
28938 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
28940 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28942 * ipa-icf.c: Include stor-layout.h
28943 (sem_function::compare_cgraph_references): Rename to ...
28944 (sem_item::compare_cgraph_references): ... this one.
28945 (sem_variable::equals_wpa): New function
28946 (sem_variable::equals): Do not check stuff already verified by
28948 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
28949 * ipa-icf.h (sem_item): Add compare_cgraph_references.
28950 (sem_function): Remove compare_cgraph_references.
28951 (sem_variable): Turns equals_wpa into non-inline.
28953 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28955 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
28956 (sem_item::add_expr): New function.
28957 (sem_function::hash_stmt): Handle operands of most statements.
28958 (sem_variable::get_hash): Hash the actual constructor.
28959 * ipa-icf.h (sem_item): Add add_expr.
28960 (sem_function): Update prototype of hash_stmt
28962 2015-02-28 Martin Liska <mliska@suse.cz>
28963 Jan Hubicka <hubicka@ucw.cz>
28966 * ipa-icf-gimple.c (func_checker::compare_function_decl):
28968 (func_checker::compare_variable_decl): Skip symtab vars.
28969 (func_checker::compare_cst_or_decl): Update.
28970 * ipa-icf.c (sem_function::parse): Do not consider aliases.
28971 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
28972 use correct symtab predicates.
28973 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
28974 (sem_variable::parse): Update comment.
28975 (sem_item_optimizer::build_graph): Consider ultimate aliases
28978 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28980 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
28983 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28985 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
28986 (sem_variable::merge) Likewise.
28988 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28990 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
28991 target; also match flag_ipa_devirt.
28993 2015-03-01 Martin Liska <mliska@suse.cz>
28994 Jan Hubicka <hubicka@ucw.cz>
28996 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
28997 Validate variable alignment.
28998 * ipa-icf.c (sem_function::equals_private): Be more precise
28999 about non-common function attributes.
29000 (sem_variable::equals): Likewise.
29002 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29005 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
29006 across COMDAT group boundary.
29008 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29011 * ipa-icf.c (clear_decl_rtl): New function.
29012 (sem_function::merge): Clear RTL before forming alias.
29013 (sem_variable::merge): Clear RTL before forming alias.
29015 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29018 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
29020 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
29022 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
29025 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
29027 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
29028 a typo in the description.
29030 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
29033 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
29034 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
29035 * lra-constraints.c: Include "params.h".
29036 (EBB_PROBABILITY_CUTOFF): Use
29037 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
29038 (lra_inheritance): Use '<' instead of '<=' for
29039 EBB_PROBABILITY_CUTOFF.
29040 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
29043 2015-02-27 Martin Liska <mliska@suse.cz>
29045 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
29046 vector length condition.
29048 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
29050 * doc/extend.texi (x86 transactional memory intrinsics):
29051 Reorganize discussion of _xbegin. Clarify that the return
29052 value is a bit mask. Expand example and move to end of section.
29054 2015-02-26 Jakub Jelinek <jakub@redhat.com>
29055 Aldy Hernandez <aldyh@redhat.com>
29057 PR rtl-optimization/65220
29058 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
29060 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
29063 * lra-remat.c (update_scratch_ops): New.
29064 (do_remat): Call it.
29065 * lra.c (lra_register_new_scratch_op): New. Take code from ...
29066 (remove_scratches): ... here.
29067 * lra-int.h (lra_register_new_scratch_op): New prototype.
29069 2015-02-27 Marek Polacek <polacek@redhat.com>
29072 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
29073 -Wformat-signedness anymore.
29075 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29077 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
29079 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
29081 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29083 * config/s390/s390.c (enum s390_builtin):
29084 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
29085 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
29086 (s390_init_builtins): Generate new builtin functions.
29087 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
29088 (s390_sfpc, s390_efpc): New pattern definitions.
29090 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29092 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
29093 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
29094 (s390_builtin_decls): New array.
29095 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
29096 (s390_builtin_decl): New function.
29097 (TARGET_BUILTIN_DECL): Define macro.
29099 2015-02-27 Richard Biener <rguenther@suse.de>
29101 PR middle-end/63175
29102 * builtins.c (get_object_alignment_2): Make sure to re-apply
29103 the ANDed mask after recursing to its operand gets us a new
29104 misalignment bit position.
29106 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
29107 Martin Liska <mliska@suse.cz>
29110 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
29111 Use address_matters_p.
29112 (redirect_all_callers, set_addressable): New functions.
29113 (sem_function::merge): Reorganize and fix merging issues.
29114 (sem_variable::merge): Likewise.
29115 (sem_variable::compare_sections): Remove.
29116 * common.opt (fmerge-all-constants, fmerge-constants): Remove
29118 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
29120 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
29122 (address_matters_1): New function.
29123 (symtab_node::address_matters_p): New function.
29124 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
29125 check for merged flag.
29126 * cgraph.h (address_matters_p): Declare.
29127 (symtab_node::address_taken_from_non_vtable_p): Remove.
29128 (symtab_node::address_can_be_compared_p): New method.
29129 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
29130 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
29132 (comdat_can_be_unshared_p_1) Use address_matters_p.
29133 (update_vtable_references): Fix formating.
29134 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
29135 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
29136 * cgraphclones.c: Preserve merged and icf_merged flags.
29138 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
29140 * doc/extend.texi (Function Attributes): Fix spelling and typos.
29141 (Label Attributes): Likewise.
29142 (Cilk Plus Builtins): Likewise.
29143 (ARC SIMD Built-in Functions): Likewise.
29144 (ARM C Language Extensions (ACLE)): Likewise.
29145 (PowerPC Built-in Functions): Likewise.
29146 (PowerPC Hardware Transactional Memory Built-in Functions):
29149 2015-02-26 Jakub Jelinek <jakub@redhat.com>
29151 PR tree-optimization/65216
29152 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
29153 new stmt and new SSA_NAME for lhs whenever the arguments have
29154 changed and weren't just swapped. Fix comment typo.
29156 PR tree-optimization/65215
29157 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
29158 for PDP endian targets.
29159 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
29160 Fix up formatting issues.
29161 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
29162 size is smaller than the original, adjust MEM_REF offset by the
29163 difference of sizes. Use is_gimple_mem_ref_addr instead of
29164 is_gimple_min_invariant test to avoid adding address temporaries.
29166 2015-02-26 Martin Liska <mliska@suse.cz>
29167 Jan Hubicka <hubicka@ucw.cz>
29170 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
29171 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
29172 (sem_item_optimizer::process_cong_reduction): Include division by
29173 sensitive references.
29174 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
29175 * ipa-ref.c (ipa_ref::address_matters_p): New function.
29176 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
29178 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
29181 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
29183 * config/avr/avr.c: Same.
29184 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
29185 Refuse any constant address not in 0..0xbf.
29186 * config/avr/avr.md (*mov<mode>, *movsf): Remove
29187 tiny_valid_direct_memory_access_range from insn conditions.
29188 (mov<mode>): Don't special-case expansion of avrtiny addresses.
29190 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
29193 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
29194 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
29195 * config/sh/predicates.md (const_logical_operand): New predicate.
29196 * config/sh/sh.md: Add new peephole2 patterns.
29198 2015-02-26 Marek Polacek <polacek@redhat.com>
29201 * ipa-inline.c (early_inliner): Recompute inline parameters.
29203 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29206 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
29207 instructions with TImode operands are included in the analysis.
29209 2015-02-26 Sebastian Pop <s.pop@samsung.com>
29211 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
29212 of an EDGE_FSM_THREAD.
29214 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
29216 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
29218 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
29221 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
29223 2015-02-26 Sebastian Pop <s.pop@samsung.com>
29225 PR tree-optimization/65048
29226 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
29227 (thread_through_all_blocks): Call valid_jump_thread_path.
29228 Remove invalid FSM jump-thread paths.
29230 2015-02-26 Jakub Jelinek <jakub@redhat.com>
29232 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
29233 (ipa_write_optimization_summaries): Likewise.
29234 * tree-streamer.h: Include data-streamer.h.
29235 (streamer_mode_table): Declare extern variable.
29236 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
29237 * lto-streamer-out.c (lto_output_init_mode_table,
29238 lto_write_mode_table): New functions.
29239 (produce_asm_for_decls): Call lto_write_mode_table when streaming
29241 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
29242 (lto_create_simple_input_block): Add mode_table argument to the
29243 lto_input_block constructors.
29244 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
29246 * data-streamer-in.c (string_for_index): Likewise.
29247 * ipa-inline-analysis.c (inline_read_section): Likewise.
29248 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
29249 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
29250 * lto-streamer-in.c (lto_read_body_or_constructor,
29251 lto_input_toplevel_asms): Likewise.
29252 (lto_input_mode_table): New function.
29253 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
29254 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
29255 Use bp_pack_machine_mode.
29256 * real.h (struct real_format): Add name field.
29257 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
29258 (class lto_input_block): Add mode_table member.
29259 (lto_input_block::lto_input_block): Add mode_table_ argument,
29260 initialize mode_table.
29261 (struct lto_file_decl_data): Add mode_table field.
29262 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
29263 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
29264 unpack_ts_decl_common_value_fields,
29265 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
29266 * tree-streamer.c (streamer_mode_table): New variable.
29267 * real.c (ieee_single_format, mips_single_format,
29268 motorola_single_format, spu_single_format, ieee_double_format,
29269 mips_double_format, motorola_double_format,
29270 ieee_extended_motorola_format, ieee_extended_intel_96_format,
29271 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
29272 ibm_extended_format, mips_extended_format, ieee_quad_format,
29273 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
29274 decimal_single_format, decimal_double_format, decimal_quad_format,
29275 ieee_half_format, arm_half_format, real_internal_format): Add name
29277 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
29279 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
29282 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
29283 reordering for selective scheduling.
29285 2015-02-26 Terry Guo <terry.guo@arm.com>
29287 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
29288 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
29289 (arm_arch_no_volatile_ce): Declare new global variable.
29290 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
29291 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
29292 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
29293 (TARGET_NO_VOLATILE_CE): New macro.
29294 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
29295 volatile memory access in IT block
29297 2015-02-25 Kai Tietz <ktietz@redhat.com>
29299 PR tree-optimization/61917
29300 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
29301 that reduc_def_stmt is null.
29303 2015-02-25 Martin Liska <mliska@suse.cz>
29305 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
29306 hard register variables.
29308 2015-02-25 Kai Tietz <ktietz@redhat.com>
29311 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
29312 (symtab::noninterposable_alias): Likewise.
29314 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
29317 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
29319 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
29321 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
29324 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
29325 as split condition; force split via '#' in output pattern.
29327 2015-02-25 Richard Biener <rguenther@suse.de>
29328 Kai Tietz <ktietz@redhat.com>
29330 PR tree-optimization/61917
29331 * tree-vect-loop.c (vectorizable_reduction): Allow
29332 vect_internal_def without reduction to exit graceful.
29334 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
29337 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
29338 only with NONDEBUG_INSN_P.
29340 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
29342 Use variadic macros with avr-log.c.
29344 * config/avr/avr-protos.h (avr_vdump): New prototype.
29345 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
29346 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
29347 * config/avr/avr-log.c: Adjust comments.
29348 (avr_vdump): New function.
29349 (avr_vadump): Pass caller as 2nd argument instead of format string.
29350 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
29351 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
29353 2015-02-25 Jakub Jelinek <jakub@redhat.com>
29356 * target.def (target_option_stream_in): New target hook.
29357 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
29358 targetm.target_option.post_stream_in if non-NULL.
29359 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
29360 * doc/tm.texi: Updated.
29361 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
29363 (TARGET_OPTION_POST_STREAM_IN): Redefine.
29365 2015-02-24 Jeff Law <law@redhat.com>
29368 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
29369 of operand 0 and operand 2.
29370 (zero_cost_loop_end, loop_end): Similarly.
29372 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
29374 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
29377 2015-02-24 DJ Delorie <dj@redhat.com>
29379 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
29380 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
29381 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
29382 instead of hardcoding SImode.
29384 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
29386 * omp-low.c (create_omp_child_function): Tag entrypoint
29387 functions with a special attribute.
29389 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
29392 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
29394 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
29396 PR rtl-optimization/65123
29397 * lra-remat.c (operand_to_remat): Check hard regs in insn
29400 2015-02-24 Nick Clifton <nickc@redhat.com>
29402 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
29405 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
29408 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
29409 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
29410 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
29411 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
29412 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
29413 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
29414 (BUILT_IN_GOACC_PARALLEL): Specify as
29415 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
29416 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
29417 * builtin-types.def
29418 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
29419 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
29420 Remove function types.
29421 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
29422 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
29423 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
29424 New function types.
29426 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
29428 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
29430 2015-02-24 Jakub Jelinek <jakub@redhat.com>
29432 PR tree-optimization/65170
29433 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
29434 if val[1] < 0, clear also val[2] and return 3.
29436 2015-02-24 Alan Modra <amodra@gmail.com>
29439 * config/rs6000/rs6000.c (get_memref_parts): Only return true
29440 when *base is a reg. Handle nested plus addresses. Simplify
29443 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
29445 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
29446 use natural alignment when optimizing for size.
29448 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
29451 * config/sh/sh.md (movsicc_true+3): Remove peephole.
29452 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
29453 * config/sh/sh.c (replace_n_hard_rtx): Remove.
29455 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
29458 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
29459 too big for a wide_int. Implement missing wrapping operation.
29461 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
29464 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
29465 instead of const_int 4294901760.
29467 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
29469 * config/avr/t-avr: Fix typo in comment.
29471 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
29473 * doc/rtl.texi (fma): Clarify documentation.
29475 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
29478 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
29479 over input_location.
29481 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
29483 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
29484 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
29485 restrict alignments to absolute_biggest_alignment.
29486 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
29488 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
29489 * doc/tm.texi: Regenerate.
29490 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
29492 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
29495 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
29497 2015-02-20 Richard Biener <rguenther@suse.de>
29499 PR tree-optimization/65136
29500 * tree-ssa-propagate.c: Include cfgloop.h.
29501 (replace_phi_args_in): Avoid replacing loop latch edge PHI
29502 arguments with constants.
29504 2015-02-20 Jakub Jelinek <jakub@redhat.com>
29505 Martin Liska <mliska@suse.cz>
29508 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
29509 don't try to create_thunk if stdarg_p. If
29510 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
29511 redirect_callers if possible.
29512 (sem_item_optimizer::execute): Call unregister_hooks here...
29513 (ipa_icf_driver): ... instead of here.
29515 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29517 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
29518 Mark operand 0 as earlyclobber in 2nd alternative.
29519 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
29520 Write negated shift amount into QI lowpart operand 0 and use it
29522 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
29524 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
29526 * cgraph.h (clone_function_name_1): Declare.
29527 * cgraphclones.c (clone_function_name_1): New function.
29528 (clone_function_name): Use it.
29529 * lto-partition.c: Include "stringpool.h".
29530 (must_not_rename, maybe_rewrite_identifier)
29531 (validize_symbol_for_target): New static functions.
29532 (privatize_symbol_name): Use must_not_rename.
29533 (promote_symbol): Call validize_symbol_for_target.
29534 (lto_promote_cross_file_statics): Likewise.
29535 (lto_promote_statics_nonwpa): Likewise.
29537 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
29540 * config/avr/avr.md (pushhi_insn): New insn.
29541 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
29543 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
29544 Jakub Jelinek <jakub@redhat.com>
29546 * tree-streamer.c (preload_common_nodes): Don't preload
29547 TI_VA_LIST* for offloading.
29548 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
29551 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
29553 * config/pa/pa.c (pa_emit_move_sequence): Always force
29554 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
29557 * config/pa/pa.c (pa_reloc_rw_mask): New function.
29558 (TARGET_ASM_RELOC_RW_MASK): Define.
29559 (pa_cannot_force_const_mem): Revert previous change.
29561 2015-02-19 Martin Jambor <mjmabor@suse.cz>
29562 Jan Hubicka <hubicka@ucw.cz>
29565 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
29566 across jump functions.
29568 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
29570 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
29572 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
29574 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
29576 2015-02-19 Richard Henderson <rth@redhat.com>
29578 PR middle-end/65074
29579 * varasm.c (default_binds_local_p_2): Don't test node->definition;
29580 test DECL_EXTERNAL independent of symtab_node.
29582 2015-02-19 Jakub Jelinek <jakub@redhat.com>
29585 * varpool.c (varpool_node::get_constructor): Return early
29586 if this->lto_file_data is NULL.
29588 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29590 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
29591 (rank_for_schedule_debug): Update.
29592 (ready_sort): Make static. Move sorting logic to ...
29593 (ready_sort_debug, ready_sort_real): New static functions.
29594 (schedule_block): Sort both debug insns and real insns in preparation
29595 for ready list trimming. Improve debug output.
29596 * sched-int.h (ready_sort): Remove global declaration.
29598 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
29600 * ipa-icf.c (sem_function::equals_private): Adjust.
29601 (sem_function::bb_dict_test): Take a vec<int> * instead of
29603 * ipa-icf.h (bb_dict_test): Likewise.
29605 2015-02-18 Jakub Jelinek <jakub@redhat.com>
29607 PR gcov-profile/64634
29608 * tree-eh.c (frob_into_branch_around): Fix up typos
29609 in function comment.
29610 (lower_catch): Put eh_seq resulting from EH lowering of
29611 the cleanup sequence after the cleanup rather than before it.
29613 2015-02-18 Tom de Vries <tom@codesourcery.com>
29615 * common.opt (fstdarg-opt): New option.
29616 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
29617 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
29618 (@item -fstdarg-opt): New item.
29620 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
29623 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
29624 for common symbols.
29626 2015-02-18 Jakub Jelinek <jakub@redhat.com>
29628 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
29630 (ALL_HOST_OBJS): Add mkoffload.o.
29631 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
29633 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
29635 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
29636 (compare_virtual_tables): Be smarter about skipping typeinfos;
29637 do sane output on virtual table table mismatch.
29638 (warn_odr): Be ready for forward declarations of enums;
29639 output sane info on base mismatch and virtual table mismatch.
29640 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
29641 when only one type is polymorphic.
29642 (get_odr_type): Fix hashtable corruption.
29643 (dump_odr_type): Dump mangled names.
29645 2015-02-18 Richard Biener <rguenther@suse.de>
29647 PR tree-optimization/65063
29648 * tree-predcom.c (determine_unroll_factor): Return 1 if we
29649 have replaced looparound PHIs.
29651 2015-02-18 Martin Liska <mliska@suse.cz>
29653 * lto-streamer.c (lto_streamer_init): Encapsulate
29654 streamer_check_handled_ts_structures with checking macro.
29656 2015-02-18 Jakub Jelinek <jakub@redhat.com>
29659 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
29660 section if !implicit_section.
29661 (cgraph_node::create_version_clone_with_body): Likewise.
29662 * trans-mem.c (ipa_tm_create_version): Likewise.
29664 2015-02-18 Richard Biener <rguenther@suse.de>
29666 PR tree-optimization/62217
29667 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
29670 2015-02-18 Marek Polacek <polacek@redhat.com>
29673 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
29674 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
29675 is in range [-16K, -1]. Don't issue run-time error if
29676 (ptr > ptr + offset).
29678 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
29680 * doc/install.texi (nvptx-*-none): New section.
29681 * doc/invoke.texi (Nvidia PTX Options): Likewise.
29682 * config/nvptx/nvptx.opt: Update.
29684 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
29685 (access_check): New functions, copied from
29686 config/i386/intelmic-mkoffload.c.
29687 (main): For non-installed testing, look in all COMPILER_PATHs for
29690 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
29692 2015-02-18 Andrew Pinski <apinski@cavium.com>
29693 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29695 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
29696 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
29698 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
29700 * ipa-visibility.c (function_and_variable_visibility): Only
29701 check locality if node is not already local.
29702 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
29703 call_for_symbol_and_aliases instead of
29704 call_for_symbol_thunks_and_aliases.
29705 (ipa_inline): Likewise.
29706 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
29707 first walk aliases.
29708 * ipa.c (symbol_table::remove_unreachable_nodes): Use
29709 call_for_symbol_and_aliases.
29710 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
29711 (ipa_propagate_frequency_1): Use it; use opt_for_fn
29712 (ipa_propagate_frequency): Update.
29713 (ipa_profile): Add opt_for_fn gueards.
29715 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
29717 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
29718 * doc/invoke.texi (SH options): Document it.
29719 * config/sh/sh.c (sh_insn_length_adjustment): Check
29720 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
29722 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
29724 * common.opt (fipa-cp-alignment): New.
29725 * ipa-cp.c (ipcp_store_alignment_results): Check
29726 flag_ipa_cp_alignment.
29727 * opts.c (default_options_table): Enable -fipa-cp-alignment for
29729 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
29730 * doc/invoke.texi: Document -fipa-cp-alignment.
29732 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
29735 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
29736 to nil. Adjust comments.
29738 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
29740 * ipa-visibility.c (function_and_variable_visibility): Only
29741 check locality if node is not already local.
29742 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
29743 call_for_symbol_and_aliases instead of
29744 call_for_symbol_thunks_and_aliases.
29745 (ipa_inline): Likewise.
29746 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
29747 first walk aliases.
29748 * ipa.c (symbol_table::remove_unreachable_nodes): Use
29749 call_for_symbol_and_aliases.
29750 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
29751 (ipa_propagate_frequency_1): Use it; use opt_for_fn
29752 (ipa_propagate_frequency): Update.
29753 (ipa_profile): Add opt_for_fn guards.
29755 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
29757 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
29758 skipping of "strange" tokens.
29760 2015-02-17 Jeff Law <law@redhat.com>
29762 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
29765 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
29767 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
29768 as forcing a HARD_DEP between instructions, thereby
29769 disallowing rewriting to break dependencies.
29771 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
29773 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
29774 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
29775 variables in boundary that have no inlitalizer encoded and are
29777 * varasm.c (default_binds_local_p_2): External definitions do not
29778 count as definitions here.
29780 2015-02-16 Jeff Law <law@redhat.com>
29782 PR tree-optimization/64823
29783 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
29785 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
29786 threading through blocks with PHIs, but no statements.
29787 (thread_through_normal_block): Distinguish between blocks where
29788 we did not process all the statements and blocks with no statements.
29790 2015-02-16 Jakub Jelinek <jakub@redhat.com>
29791 James Greenhalgh <james.greenhalgh@arm.com>
29794 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
29795 section if not linkonce. Fix up formatting.
29796 (cgraph_node::create_version_clone_with_body): Copy section.
29797 * trans-mem.c (ipa_tm_create_version): Likewise.
29799 2015-02-16 Richard Biener <rguenther@suse.de>
29801 PR tree-optimization/65077
29802 * tree-ssa-structalias.c (get_constraint_for_1): Handle
29803 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
29804 (find_func_aliases): Allow float values to carry pointers again.
29806 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
29808 * doc/install.texi (Specific): Reorder targets list to put
29809 aarch64 in alphabetical order. Add a link to aarch64*-*-*
29812 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
29813 David Edelsohn <dje.gcc@gmail.com>
29816 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
29817 mapping class to external variable or function reference.
29818 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
29821 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
29824 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
29825 ASM_WEAKEN_DECL if defined.
29827 2015-02-16 Richard Biener <rguenther@suse.de>
29830 * varasm.c (default_file_start): For LTO produced units
29831 emit <artificial> as file directive.
29833 2015-02-16 Richard Biener <rguenther@suse.de>
29835 PR tree-optimization/63593
29836 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
29837 stmts and releasing SSA names until...
29838 (execute_pred_commoning): ... after processing all chains.
29840 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
29843 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
29844 external functions.
29846 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
29848 * doc/bugreport.texi: Adjust section titles throughout the file
29849 to use "Title Case".
29850 * doc/extend.texi: Likewise.
29851 * doc/gcov.texi: Likewise.
29852 * doc/implement-c.texi: Likewise.
29853 * doc/implement-cxx.texi: Likewise.
29854 * doc/invoke.texi: Likewise.
29855 * doc/objc.texi: Likewise.
29856 * doc/standards.texi: Likewise.
29857 * doc/trouble.texi: Likewise.
29859 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
29861 * cgraph.h (symtab_node::has_aliases_p): Simplify.
29862 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
29863 * tree.c (lookup_binfo_at_offset): Make static.
29864 (get_binfo_at_offset): Do not shadow offset; add explanatory
29867 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
29869 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
29870 for all floading point loads and stores except those using a register
29872 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
29875 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
29877 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
29878 (do_estimate_growth_1): Record if any uninlinable edge was seen.
29879 (estimate_growth): Handle uninlinable edges correctly.
29880 (check_callers): New.
29881 (growth_likely_positive): Handle aliases correctly.
29883 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
29885 * ipa-chkp.c: Use iterate_direct_aliases.
29886 * symtab.c (resolution_used_from_other_file_p): Move inline.
29887 (symtab_node::create_reference): Fix formating.
29888 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
29889 (symtab_node::iterate_reference): Move inline.
29890 (symtab_node::iterate_referring): Move inline.
29891 (symtab_node::iterate_direct_aliases): Move inline.
29892 (symtab_node::used_from_object_file_p_worker): Inline into ...
29893 (symtab_node::used_from_object_file_p): ... this one; move inline.
29894 (symtab_node::call_for_symbol_and_aliases): Move inline;
29895 use iterate_direct_aliases.
29896 (symtab_node::call_for_symbol_and_aliases_1): New method.
29897 (cgraph_node::call_for_symbol_and_aliases): Move inline;
29898 use iterate_direct_aliases.
29899 (cgraph_node::call_for_symbol_and_aliases_1): New method.
29900 (varpool_node::call_for_node_and_aliases): Rename to ...
29901 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
29902 use iterate_direct_aliases.
29903 (varpool_node::call_for_symbol_and_aliases_1): New method.
29904 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
29905 (ipa_discover_readonly_nonaddressable_var): Update.
29906 * ipa-devirt.c: Fix formating.
29907 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
29909 (cgraph_node::call_for_symbol_and_aliases): Move inline.
29910 (cgraph_node::call_for_symbol_and_aliases_1): New function..
29911 * cgraph.h (used_from_object_file_p_worker): Remove.
29912 (resolution_used_from_other_file_p): Move inline.
29913 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
29914 (symtab_node::iterate_reference): Move inline.
29915 (symtab_node::iterate_referring): Move inline.
29916 (symtab_node::iterate_direct_aliases): Move inline.
29917 (symtab_node::used_from_object_file_p_worker): Inline into ...
29918 (symtab_node::used_from_object_file_p): Move inline.
29919 * tree-emutls.c (ipa_lower_emutls): Update.
29920 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
29921 (varpool_node::call_for_node_and_aliases): Remove.
29923 2015-02-14 Jakub Jelinek <jakub@redhat.com>
29925 PR tree-optimization/62209
29926 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
29927 op == range->exp, insert seq and gimplified code after labels
29928 instead of after the phi.
29930 2015-02-13 Jeff Law <law@redhat.com>
29933 Revert my change for tree-optimization/64823.
29935 2015-02-13 Jakub Jelinek <jakub@redhat.com>
29937 PR tree-optimization/65053
29938 * tree-ssa-phiopt.c (value_replacement): When moving assign before
29939 cond, either reset VR on lhs or set it to phi result VR.
29941 2015-02-13 Jeff Law <law@redhat.com>
29943 PR tree-optimization/64823
29944 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
29945 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
29946 threading through blocks with PHIs, but no statements.
29947 (thread_through_normal_block): Distinguish between blocks where
29948 we did not process all the statements and blocks with no statements.
29950 PR rtl-optimization/47477
29951 * match.pd (convert (plus/minus (convert @0) (convert @1): New
29952 simplifier to narrow arithmetic.
29954 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
29957 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
29958 polymorphic call info when type is not known to be preserved.
29960 2015-02-13 Maritn Jambor <mjambor@suse.cz>
29963 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
29964 (inline_call): Use it.
29966 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
29968 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
29969 GOMP_DEVICE_NVIDIA_PTX.
29971 2015-02-13 Jakub Jelinek <jakub@redhat.com>
29974 * stmt.c (emit_case_nodes): Use void_type_node instead of
29975 NULL_TREE as LABEL_DECL type.
29977 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
29979 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
29981 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
29982 symbolic references to data to be forced to constant memory on the
29985 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
29987 PR tree-optimization/65002
29988 * tree-cfg.c (pass_data_fixup_cfg): Don't update
29990 * tree-sra.c (some_callers_have_no_vuse_p): New.
29991 (ipa_early_sra): Reject functions whose callers
29992 assume function is read only.
29994 2015-02-13 Richard Biener <rguenther@suse.de>
29997 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
29998 for LTO produced CUs.
30000 2015-02-13 Bin Cheng <bin.cheng@arm.com>
30002 PR tree-optimization/64705
30003 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
30004 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
30005 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
30006 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
30007 expand_simple_operations.
30009 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
30010 Richard Henderson <rth@redhat.com>
30013 * cgraphunit.c (cgraph_node::finalize_function): Set definition
30014 before notice_global_symbol.
30015 (varpool_node::finalize_decl): Likewise.
30016 * varasm.c (default_binds_local_p_2): Rename from
30017 default_binds_local_p_1, add weak_dominate argument. Use direct
30018 returns instead of assigning to local variable. Unify varpool and
30019 cgraph paths via symtab_node. Reject undef weak variables before
30020 testing visibility. Reorder tests for simplicity.
30021 (default_binds_local_p): Use default_binds_local_p_2.
30022 (default_binds_local_p_1): Likewise.
30023 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
30025 (default_elf_asm_output_external): Emit visibility when specified.
30027 2015-02-13 Alan Modra <amodra@gmail.com>
30029 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
30030 code setting up r11 for out-of-line fp restore.
30032 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
30034 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
30035 (muser-mode): Likewise.
30037 2015-02-13 Alan Modra <amodra@gmail.com>
30039 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
30040 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
30042 2015-02-12 David Howells <dhowells@redhat.com>
30044 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
30046 * tree-ssa-uninit.c (dump_predicates): Likewise.
30047 * opts.c (print_filtered_help): Likewise.
30049 2015-02-12 Jakub Jelinek <jakub@redhat.com>
30051 * dwarf2out.c (output_die): Use "%s", name instead of name to
30052 avoid -Wformat-security warning.
30054 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
30055 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
30056 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
30057 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
30059 2015-02-12 Jason Merrill <jason@redhat.com>
30061 * common.opt (-flifetime-dse): New.
30063 2015-02-12 Jakub Jelinek <jakub@redhat.com>
30066 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
30068 PR tree-optimization/65014
30069 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
30070 use original second operand of arg0 or arg1 instead of
30071 that adjusted by STRIP_NOPS.
30073 2015-02-11 Jeff Law <law@redhat.com>
30076 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
30077 that needs to be queued, just queue it for a single cycle.
30079 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
30081 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
30082 bodies of thunks; comment on why.
30083 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
30084 symbols are extern.
30086 2015-02-11 Richard Henderson <rth@redhat.com>
30089 * tree-eh.c (mark_reachable_handlers): Mark source and destination
30090 regions of __builtin_eh_copy_values.
30092 2015-02-11 Jakub Jelinek <jakub@redhat.com>
30094 PR middle-end/65003
30095 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
30096 ultimate alias is MEM with SYMBOL_REF satisfying
30097 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
30098 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
30100 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
30102 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
30103 "diagnostic-core.h".
30104 (main): Initialize progname, and call diagnostic_initialize.
30106 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
30107 instead of __OPENMP_TARGET__.
30109 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
30110 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
30111 hard-coding PTX_ID.
30113 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
30115 * doc/sourcebuild.texi (pie_enabled): Document.
30117 2015-02-11 Martin Liska <mliska@suse.cz>
30120 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
30121 a return value for call to a function that is noreturn.
30123 2015-02-11 Richard Biener <rguenther@suse.de>
30126 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
30129 2015-02-11 Andrew Pinski <apinski@cavium.com>
30132 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
30133 Change the first argument type to size_type_node and add another
30135 (aarch64_simd_expand_builtin): Handle the new argument to
30136 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
30137 print an out when the first two arguments are not
30138 nonzero integer constants.
30139 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
30140 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
30142 2015-02-11 Jakub Jelinek <jakub@redhat.com>
30145 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
30146 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
30147 (ix86_set_current_function): Rewritten.
30148 (ix86_add_new_builtins): Temporarily clear current_target_pragma
30149 when creating builtin fndecls.
30151 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
30154 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
30156 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
30157 have no comdat group.
30158 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
30159 (lto_output_varpool_node): Always output alias info.
30160 (output_refs): Output refs of boundary aliases, too.
30161 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
30162 (output_symtab): Output call eges in thunks in boundary.
30163 (get_alias_symbol): Remove.
30164 (input_node, input_varpool_node): Do not special case weakrefs.
30165 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
30166 alias and thunks targets in the boundary; do not take removed symbols
30167 from their comdat groups.
30168 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
30169 (cgraph_node::global_info): Remove.
30170 (cgraph_node::rtl_info): Look through aliases and thunks.
30171 * cgrpah.h (global_info): Remove.
30172 (non_local_p): Remove.
30174 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
30175 Sandra Loosemore <sandra@codesourcery.com>
30177 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
30178 to inline asm. List dialects in proper order.
30180 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
30181 Sandra Loosemore <sandra@codesourcery.com>
30183 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
30185 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
30187 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
30188 modified) reference to Solaris.
30190 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
30192 * doc/extend.texi (Extended Asm): Fix typos.
30194 2015-02-10 Jakub Jelinek <jakub@redhat.com>
30197 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
30199 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
30202 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
30203 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
30204 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
30205 * config/sh/constraints.md (Ara, Add): New constraints.
30206 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
30208 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
30209 atomic_mem_operand_0. Don't use force_reg on the memory address.
30210 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
30211 Sra constraint. Convert to insn_and_split. Add workaround for
30213 (atomic_compare_and_swap<mode>_hard): Copy to
30214 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
30215 Use atomic_mem_operand_0 predicate.
30216 (atomic_compare_and_swap<mode>_soft_gusa,
30217 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
30218 AraAdd constraints.
30219 (atomic_compare_and_swap<mode>_soft_tcb,
30220 atomic_compare_and_swap<mode>_soft_imask,
30221 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
30222 atomic_mem_operand_0 predicate and SraSdd constraints.
30223 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
30225 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
30226 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
30227 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
30228 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
30229 force_reg on the memory address.
30230 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
30231 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
30232 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
30233 atomic_mem_operand_1 predicate and Sra constraint.
30234 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
30235 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
30236 Use atomic_mem_operand_1 predicate.
30237 (atomic_<fetchop_name><mode>_hard): Copy to
30238 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
30239 Use atomic_mem_operand_1 predicate.
30240 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
30241 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
30242 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
30243 insn_and_split. Use atomic_mem_operand_1 predicate.
30244 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
30245 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
30246 Use atomic_mem_operand_1 predicate.
30247 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
30248 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
30249 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
30250 in generated insn with original mem operand before emitting the insn.
30251 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
30252 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
30253 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
30254 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
30255 Use atomic_mem_operand_1 predicate and AraAdd constraints.
30256 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
30257 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
30258 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
30259 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
30260 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
30261 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
30262 atomic_not_fetch<mode>_soft_tcb,
30263 atomic_<fetchop_name>_fetch<mode>_soft_imask,
30264 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
30265 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
30266 Use atomic_mem_operand_1 predicate and SraSdd constraints.
30268 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
30270 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
30271 and 3 earlyclobber operands.
30273 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
30275 * common.opt (fstack-reuse): Mark as optimization.
30277 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
30280 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
30282 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
30284 PR tree-optimization/64326
30285 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
30287 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
30289 PR gcov-profile/61889
30290 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
30292 2015-02-10 Richard Biener <rguenther@suse.de>
30294 PR tree-optimization/64995
30295 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
30296 value we use is final.
30297 (visit_reference_op_store): Always valueize op.
30298 (visit_use): Properly valueize vuses.
30300 2015-02-10 Richard Biener <rguenther@suse.de>
30302 PR tree-optimization/64909
30303 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
30304 pass a scalar-stmt count estimate to the cost model.
30305 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
30307 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
30309 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
30310 enabled by default together with var-tracking.
30312 2015-02-10 Nick Clifton <nickc@redhat.com>
30314 * config/rl78/rl78.c: Remove DIV attribute code accidentally
30315 included in previous rl78 commit.
30317 2015-02-10 Richard Biener <rguenther@suse.de>
30319 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
30320 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
30321 return the bitpack.
30323 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
30325 PR gcov-profile/61889
30326 * config.in: regenerate.
30327 * configure.in: Likewise.
30328 * configure.ac: Check for ftw.h.
30329 * gcov-tool.c: Check for ftw.h before using nftw.
30331 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
30334 * ipa-visibility.c (update_visibility_by_resolution_info): Only
30335 assert when not in lto mode.
30337 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
30339 * ira-color.c (setup_left_conflict_sizes_p): Simplify
30340 initialization/assignment of conflict_size.
30342 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
30345 * ipa-cp.c (gather_caller_stats): Skip thunks.
30346 (propagate_constants_topo): Skip aliases.
30348 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
30351 * config/sh/sh.c (sh_option_override): Don't change
30352 -freorder-blocks-and-partition to -freorder-blocks even when
30353 unwinding is enabled.
30354 (sh_can_follow_jump): Return false if the followee jump is
30355 a crossing jump when -freorder-blocks-and-partition is specified.
30356 * config/sh/sh.md (*jump_compact_crossing): New insn.
30358 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
30359 Kaz Kojima <kkojima@gcc.gnu.org>
30362 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
30363 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
30364 (sh_can_redirect_branch): Rename to ...
30365 (sh_can_follow_jump): ... this. Constify argument types.
30366 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
30367 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
30368 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
30369 * doc/tm.texi: Regenerate.
30371 2015-02-09 Jakub Jelinek <jakub@redhat.com>
30374 * builtins.c (expand_builtin): Call targetm.expand_builtin
30375 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
30377 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30380 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
30382 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30385 * ipa-icf.c (set_local): New function.
30386 (sem_function::merge): Use it.
30388 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30390 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
30391 (add_type_duplicate): Fix comparison of BINFOs.
30393 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30395 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
30396 on getting VOID pointer.
30398 2015-02-09 Jakub Jelinek <jakub@redhat.com>
30401 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
30404 2015-02-09 Richard Biener <rguenther@suse.de>
30406 * genmatch.c (replace_id): Copy expr_type.
30408 2015-02-09 Richard Biener <rguenther@suse.de>
30410 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
30411 (streamer_write_tree_bitfields): Declare.
30412 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
30413 properly unpack padding.
30414 (unpack_value_fields): Inline ...
30415 (streamer_read_tree_bitfields): ... here.
30416 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
30417 and properly add padding bits.
30418 (streamer_pack_tree_bitfields): Fold into ...
30419 (streamer_write_tree_bitfields): ... this new function,
30420 exposing the bitpack object.
30421 * lto-streamer-out.c (lto_write_tree_1): Call
30422 streamer_write_tree_bitfields.
30424 2015-02-09 Richard Biener <rguenther@suse.de>
30426 PR tree-optimization/54000
30427 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
30428 (struct ivopts_data): Add loop_loc member.
30429 (tree_ssa_iv_optimize_loop): Dump loop location.
30430 (create_new_ivs): Likewise, also dump number of IVs generated.
30432 2015-02-09 Martin Liska <mliska@suse.cz>
30434 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
30435 just if not yet registered.
30436 (ipa_icf_generate_summary): Register callgraph hooks.
30438 2015-02-08 Andrew Pinski <apinski@cavium.com>
30440 * config/aarch64/aarch64.c (gty_dummy): Delete.
30442 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30445 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
30446 (cgraph_node::local_p): Remove thunk related FIXME.
30448 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30451 * i386.c (ix86_function_regparm): Look through aliases to see if callee
30452 is local and optimized.
30453 (ix86_function_sseregparm): Likewise; also use target's SSE math
30454 settings; error out instead of silently generating wrong code
30456 (init_cumulative_args): Look through aliases.
30458 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30461 * ipa-split.c (execute_split_functions): Split if function has aliases.
30463 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30466 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
30467 aliases before trying to expand it.
30468 (cgraph_node::expand_thunk): Fix formating.
30470 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
30472 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
30473 (Using Assembly Language with C): Expand introduction.
30474 (Basic Asm): Copy-edit. Add more information about uses of
30476 (Extended Asm): Copy-edit. Document new escape syntax and
30478 (Global Reg Vars): Copy-edit.
30479 (Local Reg Vars): Likewise.
30481 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
30485 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
30486 (DBX_CONTIN_CHAR): Define.
30488 2015-02-06 Sebastian Pop <s.pop@samsung.com>
30489 Brian Rzycki <b.rzycki@samsung.com>
30491 PR tree-optimization/64878
30492 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
30493 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
30494 Stop recursion at loop phi nodes after having visited a loop phi node.
30496 2015-02-06 Jakub Jelinek <jakub@redhat.com>
30498 * toplev.c (process_options): Change flag_ipa_ra before creating
30499 optimization_{default,current}_node.
30502 * cgraphunit.c (cgraph_node::expand_thunk): If
30503 restype is not is_gimple_reg_type nor the thunk_fndecl
30504 returns aggregate_value_p, set restmp to a temporary variable
30505 instead of resdecl.
30507 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
30509 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
30511 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
30514 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
30515 add a general secondary reload handler for SDmode, unless we have
30516 both read/write support for SDmode.
30518 2015-02-06 Jakub Jelinek <jakub@redhat.com>
30520 PR middle-end/64937
30521 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
30522 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
30523 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
30524 1 before, push it to abstract_vec.
30525 (dwarf2out_abstract_function): Adjust caller. Don't call
30526 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
30527 DECL_ABSTRACT_P flags for all abstract_vec elts.
30529 2015-02-06 Renlin Li <renlin.li@arm.com>
30531 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
30533 * tree-ssa.c (execute_update_addresses_taken): Likewise.
30535 2015-02-06 Jeff Law <law@redhat.com>
30538 * config/h8300/h8300.c (push): New argument "in_prologue".
30539 Pass "in_prologue" along to "F".
30540 (h8300_push_pop): Corresponding changes.
30541 (h8300_expand_prologue): Likewise.
30542 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
30544 2015-02-06 Jakub Jelinek <jakub@redhat.com>
30546 PR rtl-optimization/64957
30548 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
30549 IOR rather than for AND.
30551 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
30554 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
30555 of shift-add and (add + shift) operations. Rename local variable.
30557 2015-02-05 Jeff Law <law@redhat.com>
30560 * config/h8300/constraints.md (U): Correctly dectect
30561 "eightbit_data" memory addresses.
30562 * config/h8300/h8300.c (eightbit_constant_address_p): Also
30563 handle (const (plus (symbol_ref (x)))) where x is declared
30564 as an 8-bit data memory address.
30565 * config/h8300/h8300.md (call, call_value): Correctly detect
30566 "funcvec" functions.
30569 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
30570 24 to 28 bits for the H8/300.
30572 2015-02-06 Alan Modra <amodra@gmail.com>
30575 * config/rs6000/rs6000.c (chain_already_loaded): New function.
30576 (rs6000_call_aix): Use it.
30578 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
30580 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
30583 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
30585 * config/h8300/constraints.md ("U" constraint): Use strict
30586 variant of REG_OK_FOR_BASE_P after reload has started.
30588 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
30590 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
30591 define to zero if !TARGET_NEON.
30592 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
30594 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30595 Trevor Saunders <tsaunders@mozilla.com>
30598 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
30600 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30603 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
30604 when removing varpool nodes.
30606 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30609 * varpool.c (varpool_node::remove): Fix order of variables.
30611 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30614 * ipa-inline.c (inline_small_functions): Fix ordering issue between
30615 speculation resolution and key updates.
30617 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30619 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
30620 about not letting any speculative edges unupdated.
30622 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30625 * gcov-io.c (gcov_var): Export.
30627 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30629 PR middle-end/64922
30630 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
30631 edges that become speculative.
30633 2015-02-04 Jakub Jelinek <jakub@redhat.com>
30635 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
30636 or DW_LANG_Fortran08.
30637 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
30639 (gen_compile_unit_die): Handle "GNU Fortran2003" and
30640 "GNU Fortran2008" language strings.
30641 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
30642 * langhooks.h (lang_GNU_Fortran): New prototype.
30643 * langhooks.c (lang_GNU_Fortran): New function.
30644 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
30647 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
30649 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
30650 (RTX_OK_FOR_OLO10_P): Likewise.
30652 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
30654 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
30656 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30658 PR middle-end/64922
30659 * gimple.c: Include gimple-ssa.h.
30660 (maybe_remove_unused_call_args): New function.
30661 * gimple.h (maybe_remove_unused_call_args): Declare.
30662 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
30663 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
30664 * gimple-fold.c (gimple_fold_call): Likewise.
30666 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
30668 PR rtl-optimization/64905
30669 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
30670 pointer alignment if it isn't needed.
30672 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
30674 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
30675 cortex-a72.cortex-a53.
30676 * config/aarch64/aarch64-tune.md: Regenerate.
30677 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
30679 2015-02-04 Nick Clifton <nickc@redhat.com>
30681 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
30684 2015-02-04 Jakub Jelinek <jakub@redhat.com>
30686 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
30687 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
30688 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
30690 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
30691 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
30692 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
30693 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
30694 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
30695 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
30696 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
30697 * tree-core.h (enum built_in_function): In between
30698 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
30699 for builtins that use DEF_BUILTIN_CHKP macro.
30701 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
30704 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
30705 operands for tcc_comparison exprs. Fix typos.
30708 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
30709 of two XORs that have an intervening AND or IOR.
30712 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
30713 simplification of XOR of AND to not allocate new rtx before
30714 committing to a simplification.
30716 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30718 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
30719 manual swaps in all peepholes.
30721 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30723 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
30724 of manual swapping implementation.
30725 (aarch64_expand_vec_perm_const_1): Likewise.
30727 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
30729 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
30730 (generic_addrcost_table): Remove NAMED_PARAM.
30731 (cortexa57_addrcost_table): Likewise.
30732 (xgene1_addrcost_table): Likewise.
30733 (generic_regmove_table): Likewise.
30734 (cortexa53_regmove_table): Likewise.
30735 (xgene1_regmove_table): Likewise.
30736 (generic_vector_table): Likewise.
30737 (cortexa57_vector_table): Likewise.
30738 (xgene1_vector_table): Likewise.
30739 (generic_tunings): Likewise.
30740 (cortexa53_tunings): Likewise.
30741 (cortexa57_tunings): Likewise.
30742 (xgene1_tunings): Likewise.
30744 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
30746 * config/arm/arm-cores.def: Add cortex-a72 and
30747 cortex-a72.cortex-a53.
30748 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
30749 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
30750 * config/arm/arm-tune.md: Regenerate.
30751 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
30752 "cortex-a72.cortex-a53".
30753 * doc/invoke.texi (ARM Options/-mtune): Likewise.
30755 2015-02-04 Nick Clifton <nickc@redhat.com>
30758 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
30760 (nonimmediate_di_operand): Likewise.
30762 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
30763 prefixes of known F5 using MSP430 MCUs.
30765 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30767 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
30768 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
30769 instead of __builtin_sqrt.
30771 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
30773 * varasm.c (do_assemble_alias): Follow transparent alias
30775 (default_assemble_visibility): Follow transparent alias
30776 chain for decl name.
30778 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
30780 PR middle-end/62103
30781 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
30782 to compute size of referenced value in the constant case.
30784 2015-02-03 Jakub Jelinek <jakub@redhat.com>
30786 PR rtl-optimization/64756
30787 * cse.c (invalidate_dest): New function.
30788 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
30789 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
30790 invalidate and do not record it.
30792 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
30795 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
30796 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
30797 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
30798 atomic_nand<mode>_soft_tcb): New insns.
30799 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
30800 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
30801 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
30802 Split into atomic_not_fetchsi_hard if operands[0] is unused.
30803 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
30804 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
30805 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
30806 atomic_not<mode>_hard if operands[0] is unused.
30807 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
30808 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
30809 if operands[0] is unused.
30810 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
30811 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
30812 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
30813 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
30815 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
30816 into atomic_not<mode>_soft_tcb if operands[0] is unused.
30817 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
30818 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
30819 if operands[0] is unused.
30820 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
30821 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
30822 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
30823 atomic_nand_fetchsi_hard if operands[0] is unused.
30824 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
30825 atomic_nand<mode>_hard if operands[0] is unused.
30826 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
30827 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
30828 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
30829 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
30830 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
30831 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
30832 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
30833 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
30834 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
30835 atomic_not<mode>_hard if operands[0] is unused.
30836 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
30837 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
30839 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
30840 into atomic_not<mode>_soft_tcb if operands[0] is unused.
30841 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
30842 atomic_nand<mode>_hard if operands[0] is unused.
30843 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
30844 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
30846 2015-02-03 David Malcolm <dmalcolm@redhat.com>
30849 * Makefile.in (GCC_OBJS): Add gcc-main.o.
30850 * gcc-main.c: New file, containing "main" taken from gcc.c.
30851 * gcc.c (do_self_spec): Free decoded_options.
30852 (class driver): Move declaration to gcc.h.
30853 (main): Move declaration and implementation to new file
30855 (driver_get_configure_time_options): New function.
30856 * gcc.h (class driver): Move this declaration here, from
30858 (driver_get_configure_time_options): New declaration.
30860 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
30862 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
30863 cross-module inlining.
30864 * cgraph.h (cgraph_node): Add flag merged.
30865 * ipa-icf.c (sem_function::merge): Maintain it.
30867 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
30869 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
30870 instead of OBJECT_P.
30872 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
30875 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
30876 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
30877 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
30878 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
30880 2015-02-03 Jakub Jelinek <jakub@redhat.com>
30883 * combine.c (reg_n_sets_max): New variable.
30884 (can_change_dest_mode, reg_nonzero_bits_for_combine,
30885 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
30886 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
30887 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
30888 (rest_of_handle_combine): Initialize reg_n_sets_max.
30890 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
30892 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
30893 if some always_inline was inlined, apply changes before inlining
30896 2015-02-02 David Malcolm <dmalcolm@redhat.com>
30899 * config/arm/arm.c (arm_option_override): Set
30900 arm_selected_arch/cpu/tune to NULL on entry.
30902 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
30903 Andrew Pinski <pinskia@gcc.gnu.org>
30904 Jakub Jelinek <jakub@gcc.gnu.org>
30907 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
30908 integer typing for small model. Use IN_RANGE.
30910 2015-02-02 Richard Biener <rguenther@suse.de>
30912 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
30913 * tree-vrp.c (vrp_valueize_1): Likewise.
30915 2015-02-02 Alan Modra <amodra@gmail.com>
30917 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
30918 than mem for toc_restore.
30919 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
30920 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
30921 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
30923 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
30926 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
30927 explicit default options.
30929 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
30932 * ipa-utils.c (ipa_merge_profiles): Add release argument.
30933 * ipa-icf.c (sem_function::merge): Do not release body when merging.
30934 * ipa-utils.h (ipa_merge_profiles): Update prototype.
30936 2015-02-01 Jakub Jelinek <jakub@redhat.com>
30939 * cfgexpand.c (deep_ter_debug_map): New variable.
30940 (avoid_deep_ter_for_debug): New function.
30941 (expand_debug_expr): If TERed SSA_NAME is in
30942 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
30943 instead of trying to expand SSA_NAME's def stmt.
30944 (expand_debug_locations): When expanding debug bind
30945 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
30946 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
30948 (pass_expand::execute): Call avoid_deep_ter_for_debug on
30949 all debug bind stmts. Delete deep_ter_debug_map after
30950 expand_debug_location if non-NULL and clear it.
30952 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
30955 * config/sh/sync.md (atomic_fetch_notsi_hard,
30956 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
30957 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
30958 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
30959 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
30960 atomic_not_fetch<mode>_soft_imask): New insns.
30962 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30964 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
30965 (rank_for_schedule_debug): Split from ...
30966 (rank_for_schedule): ... this.
30967 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
30968 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
30970 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
30972 * doc/md.texi (Machine Constraints): Alphabetize table by target.
30973 * doc/extend.texi (x86 Variable Attributes): Move section to
30974 correct alphabetization after renaming.
30975 (x86 Type Attributes): Likewise.
30976 (Target Builtins): Re-alphabetize menu.
30977 (x86 Built-in Functions): Move section to correct alphabetization
30979 (x86 transactional memory intrinsics): Likewise.
30980 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
30981 and x86 Windows Options in table and menu.
30982 (x86 Options): Move section to correct alphabetization after
30984 (x86 Windows Options): Likewise.
30986 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
30988 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
30989 preferred names of the architecture and its 32- and 64-bit
30991 * doc/invoke.texi: Likewise.
30992 * doc/md.texi: Likewise.
30994 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
30997 * config/i386/predicates.md (address_no_seg_operand): Reject
30998 non-CONST_INT_P operands in invalid mode.
31000 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
31002 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
31003 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
31004 * config/i386/predicates.md (address_no_seg_operand): Call
31005 address_operand with VOIDmode.
31006 (vsib_address_operand): Ditto.
31007 (address_mpx_no_base_operand): Ditto.
31008 (address_mpx_no_index_operand): Ditto.
31010 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
31013 * lra-constraints.c (original_subreg_reg_mode): New.
31014 (simplify_operand_subreg): Try to simplify subreg of const. Use
31015 original_subreg_reg_mode for it.
31016 (swap_operands): Update original_subreg_reg_mode.
31017 (curr_insn_transform): Set up original_subreg_reg_mode.
31019 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
31022 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
31024 (process_alt_operands): Use it.
31025 (curr_insn_transform): Check the optional reload pseudo class is
31028 2015-01-30 Joseph Myers <joseph@codesourcery.com>
31030 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
31031 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
31033 * toplev.h (init_asm_output): Update comment on use of
31034 UNKNOWN_LOCATION with fatal_error.
31035 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
31036 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
31037 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
31038 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
31039 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
31040 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
31041 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
31042 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
31043 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
31044 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
31045 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
31046 fatal_error changed to pass input_location as first argument.
31048 2015-01-30 Martin Liska <mliska@suse.cz>
31050 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
31051 in #pragma GCC diagnostic guards.
31053 2015-01-30 Richard Biener <rguenther@suse.de>
31055 PR tree-optimization/64829
31056 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
31057 not add a widening conversion pattern but hand off extra
31058 widenings to callers.
31059 (vect_recog_widen_mult_pattern): Handle extra widening produced
31060 by vect_handle_widen_op_by_const.
31061 (vect_recog_widen_shift_pattern): Likewise.
31062 (vect_pattern_recog_1): Remove excess vertical space in dumping.
31063 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
31064 (vect_init_vector_1): Likewise.
31065 (vect_get_vec_def_for_operand): Likewise.
31066 (vect_finish_stmt_generation): Likewise.
31067 (vectorizable_load): Likewise.
31068 (vect_analyze_stmt): Likewise.
31069 (vect_is_simple_use): Likewise.
31071 2015-01-29 Jeff Law <law@redhat.com>
31073 * combine.c (try_combine): Fix typo in comment.
31075 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
31078 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
31079 (rs6000_stack_info): Add assert.
31080 (rs6000_output_savres_externs): New function, split off from...
31081 (rs6000_output_function_prologue): ... here. Do not call it for
31084 2015-01-29 Jeff Law <law@redhat.com>
31087 * combine.c (try_combine): If I0 is a memory load and I3 a store
31088 to a related address, increase the "goodness" of doing a 4-insn
31089 combination with I0-I3.
31090 (make_field_assignment): Handle SUBREGs in the ior+and case.
31092 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
31094 PR tree-optimization/64746
31095 * tree-if-conv.c (mask_exists): New function.
31096 (predicate_mem_writes): Save created mask with given size for further
31098 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
31099 (ifcvt_repair_bool_pattern): Collect all statements that are root
31100 of bool pattern and use iterative algorithm to remove multiple uses
31101 of predicates, display number of required iterations.
31103 2015-01-29 Richard Biener <rguenther@suse.de>
31105 PR tree-optimization/64853
31106 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
31107 stmt will get simulated again.
31108 * tree-ssa-ccp.c (valueize_op_1): Likewise.
31110 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31112 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
31113 return_in_pc. Remove redundant assignments.
31114 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
31115 (arm_expand_epilogue): Don't compare boolean with true in if condition.
31117 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
31119 * config/i386/i386.c (ix86_mode_after): Make static.
31121 2015-01-29 Richard Biener <rguenther@suse.de>
31123 PR tree-optimization/64844
31124 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
31125 dump cost model analysis.
31126 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31127 Do not register adjusted load/store costs here.
31129 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
31130 Uros Bizjak <ubizjak@gmail.com>
31132 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
31133 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
31134 using x86_use_pseudo_pic_reg.
31135 * config/i386/i386.c (ix86_conditional_register_usage): Remove
31136 support for fixed PIC register.
31137 (ix86_use_pseudo_pic_reg): Not static any more.
31139 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
31141 PR middle-end/64805
31142 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
31143 to avoid error in cgraph node verification.
31145 2015-01-29 Marek Polacek <polacek@redhat.com>
31147 * doc/standards.texi: Reflect that the default for C is gnu11.
31149 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
31152 * reorg.c (switch_text_sections_between_p): New function.
31153 (relax_delay_slots): Call it when testing if the jump insn
31154 is removable. Use targetm.can_follow_jump when testing if
31155 the conditional branch can follow an unconditional jump.
31157 2015-01-27 Caroline Tice <cmtice@google.com>
31159 Committing VTV Cywin/Ming patch for Patrick Wollgast
31160 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
31161 if -fvtable-verify=preinit/std is used.
31162 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
31163 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
31164 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
31165 if -fvtable-verify=preinit/std is used.
31166 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
31167 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
31168 if -fvtable-verify=preinit/std is used.
31169 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
31170 * config/i386/mingw32.h (LIB_SPEC): Likewise.
31171 * varasm.c (assemble_variable): Add code to properly set the comdat
31172 section and name for the .vtable_map_vars section in case the
31173 target is PE or COFF.
31175 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
31178 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
31179 make sane BB profile.
31180 (cgraph_node::expand_thunk): Make sane BB profile.
31181 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
31182 * cgraph.h (init_lowered_empty_function): Update prototype.
31183 * config/i386/i386.c (make_resolver_func): Update call.
31184 * predict.c (gate): Disable branch prediction pass if
31185 profile is already there.
31187 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
31189 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
31190 * opth-gen.awk: Likewise.
31191 * common.opt: Mark flag_fp_contract_mode as Optimization.
31193 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
31195 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
31196 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
31198 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
31201 * config/sh/predicates.md (atomic_arith_operand,
31202 atomic_logical_operand): Remove.
31203 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
31204 (atomic_arith_operand_0): New predicate.
31205 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
31206 Use atomic_arith_operand_0 for input values.
31207 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
31208 atomic_compare_and_swap<mode>_soft_gusa,
31209 atomic_compare_and_swap<mode>_soft_tcb,
31210 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
31211 arith_reg_operand instead of register_operand.
31212 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
31213 atomic_arith_operand_0 for newval input.
31214 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
31215 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
31216 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
31217 arith_reg_operand instead of register_operand.
31218 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
31219 fetchop_predicate_1, fetchop_constraint_1_llcs,
31220 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
31221 fetchop_constraint_1_imask): New code iterator attributes.
31222 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
31223 register_operand. Use fetchop_predicate_1.
31224 (atomic_fetch_<fetchop_name>si_hard,
31225 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
31226 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
31227 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
31228 and arith_reg_operand instead of register_operand. Use
31229 fetchop_predicate_1, fetchop_constraint_1_gusa.
31230 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
31231 and arith_reg_operand instead of register_operand. Use
31232 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
31234 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
31235 and arith_reg_operand instead of register_operand. Use
31236 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
31238 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
31239 register_operand. Use atomic_logical_operand_1.
31240 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
31241 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
31242 arith_reg_operand instead of register_operand.
31243 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
31244 Use arith_reg_dest and arith_reg_operand instead of register_operand.
31245 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
31246 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
31247 register_operand. Use fetchop_predicate_1.
31248 (atomic_<fetchop_name>_fetchsi_hard,
31249 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
31250 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31251 fetchop_constraint_1_llcs.
31252 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
31253 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31254 fetchop_constraint_1_gusa.
31255 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
31256 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31257 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
31258 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
31259 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31260 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
31261 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
31262 register_operand. Use atomic_logical_operand_1.
31263 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
31264 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
31265 arith_reg_operand instead of register_operand.
31266 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
31267 arith_reg_operand instead of register_operand. Use logical_operand
31268 and K08. Adjust asm sequence to allow R0 usage.
31269 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
31270 arith_reg_operand instead of register_operand. Use logical_operand
31273 2015-01-28 Jakub Jelinek <jakub@redhat.com>
31276 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
31277 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
31278 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
31279 only get_full_len HOST_WIDE_INTs from get_val () array rather than
31280 all bits in *val_wide.
31282 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
31284 * varpool.c (tls_model_names): Fix names.
31285 (varpool_node::dump): Dump tls- prefix for tls models.
31287 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
31288 Bernd Schmidt <bernds@codesourcery.com>
31289 Nathan Sidwell <nathan@codesourcery.com>
31291 * config/nvptx/mkoffload.c: New file.
31292 * config/nvptx/t-nvptx: Add build rules for it.
31293 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
31294 (extra_programs): Add mkoffload.
31295 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
31297 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
31299 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
31301 PR middle-end/64809
31302 * cfgexpand.c (reorder_operands): Skip debug gimples.
31304 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
31306 PR tree-optimization/64277
31307 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
31308 range info when possible to refine estimation.
31310 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
31312 PR tree-optimization/64718
31313 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
31314 be a 16bit unsigned integer when n->range is 16.
31315 (bswap_replace): Convert src to that type if necessary for all bswap
31316 sizes. Fix rotation right notation in nearby comment. Use bswap_type
31317 set in pass_optimize_bswap::execute ().
31319 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
31321 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
31322 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
31323 integer and floating point variants.
31324 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
31326 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
31328 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
31329 for all vector modes.
31331 2015-01-28 Jakub Jelinek <jakub@redhat.com>
31334 * doc/sourcebuild.texi (comdat_group): Document.
31336 2015-01-28 Terry Guo <terry.guo@arm.com>
31338 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
31340 2015-01-27 David Malcolm <dmalcolm@redhat.com>
31342 * toplev.c (print_version): Add param "show_global_state", and
31343 only print GGC and plugin information if it is true.
31344 (init_asm_output): Pass in "true" for the new param when calling
31346 (process_options): Likewise.
31347 (toplev::main): Likewise.
31348 * toplev.h (print_version): Add new param to decl.
31350 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
31354 * tree.c (lookup_binfo_at_offset): New function.
31355 (get_binfo_at_offset): Use it.
31357 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
31360 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
31361 on vtable being vtable.
31363 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
31365 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
31366 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
31367 -mhotpatch= option.
31368 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
31369 -mno-hotpatch options. Change syntax of -mhotpatch= option.
31370 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
31372 (s390_hotpatch_trampoline_halfwords_max): Renamed.
31373 (s390_hotpatch_hw_max): New name.
31374 (s390_hotpatch_trampoline_halfwords): Renamed.
31375 (s390_hotpatch_hw_before_label): New name.
31376 (get_hotpatch_attribute): Removed.
31377 (s390_hotpatch_hw_after_label): New name.
31378 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
31380 (s390_attribute_table): Ditto.
31381 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
31382 (s390_function_num_hotpatch_hw): New name.
31383 Remove special handling of inline functions and hotpatching.
31384 Return number of nops before and after the function label.
31385 (s390_can_inline_p): Removed.
31386 (s390_asm_output_function_label): Emit a configurable number of nops
31387 after the function label.
31388 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
31389 (TARGET_CAN_INLINE_P) Removed.
31390 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
31392 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31393 Jiong Wang <jiong.wang@arm.com>
31395 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
31397 (cb<optab><mode>1): Likewise.
31398 * config/aarch64/iterators.md (bcond): New define_code_attr.
31400 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31402 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
31405 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31407 * config/s390/s390.c (s390_register_move_cost): Increase costs for
31410 2015-01-27 Richard Biener <rguenther@suse.de>
31412 * tree-vrp.c (update_value_range): Intersect the range with
31413 old recorded SSA name range information.
31415 2015-01-27 Nick Clifton <nickc@redhat.com>
31417 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
31418 BC, DE and HL registers directly, not via AX.
31419 When decrementing the stack pointer by a large amount, transfer SP
31420 into AX and perform the subtraction there.
31421 (rl78_expand_epilogue): Perform the inverse of the above
31424 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31426 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
31428 2015-01-27 Jakub Jelinek <jakub@redhat.com>
31429 Yury Gribov <y.gribov@samsung.com>
31432 * ubsan.c (ubsan_source_location): Refactor code.
31433 (ubsan_type_descriptor): Update type size. Refactor code.
31435 2015-01-27 Richard Biener <rguenther@suse.de>
31437 PR tree-optimization/56273
31438 PR tree-optimization/59124
31439 PR tree-optimization/64277
31440 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
31441 from the first VRP pass.
31443 2015-01-27 Jakub Jelinek <jakub@redhat.com>
31446 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
31447 handle the first argument in the same loop as all the other arguments.
31449 PR rtl-optimization/61058
31450 * jump.c (cleanup_barriers): Update basic block boundaries
31451 if BLOCK_FOR_INSN is non-NULL on PREV.
31453 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
31455 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
31456 bounds narrowing, already instrumented calls and calls to
31457 not instrumentable functions.
31459 2015-01-27 Jakub Jelinek <jakub@redhat.com>
31461 PR tree-optimization/64807
31462 * wide-int.cc (wi::divmod_internal): Clear
31463 b_dividend[dividend_blocks_needed].
31465 2015-01-26 DJ Delorie <dj@redhat.com>
31467 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
31468 volatile memory references.
31470 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
31473 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
31475 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
31476 shifts if it already fits into K08.
31478 2015-01-26 Jakub Jelinek <jakub@redhat.com>
31481 * ipa-inline.c (inline_small_functions): Print "unknown" even
31482 if edge->call_stmt is non-NULL, but has builtins or unknown
31485 PR middle-end/64421
31486 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
31487 with asterisk, skip the first character.
31489 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
31492 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
31495 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
31498 * config/i386/i386.md (*movdi_internal): Also check operand 0
31499 to determine TYPE_LEA operand.
31500 (*movsi_internal): Ditto.
31502 2015-01-26 Jakub Jelinek <jakub@redhat.com>
31504 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
31505 OPTION_MASK_QUAD_MEMORY_ATOMIC.
31507 2015-01-26 Renlin Li <renlin.li@arm.com>
31509 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
31511 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
31514 2015-01-26 Richard Biener <rguenther@suse.de>
31516 PR middle-end/64764
31517 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
31518 combining two BIT_AND_EXPR predicates.
31520 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
31523 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
31525 2015-01-26 Terry Guo <terry.guo@arm.com>
31527 * config/arm/arm.c (arm_file_start): Update the assignment of
31528 Tag_ABI_HardFP_use.
31530 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
31532 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
31534 config/arm/arm.md: Include the new Cortex-A57 model.
31535 (generic_sched): Don't use generic_sched when tuning for
31538 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
31539 Uros Bizjak <ubizjak@gmail.com>
31541 * config/i386/i386.c (get_builtin_code_for_version): Add
31542 support for BMI and BMI2 multiversion functions.
31544 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31546 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
31547 (extract_bit_field): Likewise.
31548 (extract_low_bits): Likewise.
31549 (expand_mult): Likewise.
31550 (expand_mult_highpart_adjust): Likewise.
31552 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
31554 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
31555 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
31556 * config/i386/i386.c (processor_model): Add
31557 M_INTEL_COREI7_BROADWELL.
31558 (arch_names_table): Add "broadwell".
31560 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
31569 * config/sh/sh-protos.h
31570 (sh_extending_set_of_reg::can_use_as_unextended_reg,
31571 sh_extending_set_of_reg::use_as_unextended_reg,
31572 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
31573 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
31574 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
31575 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
31576 (sh_treg_insns): New class.
31577 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
31578 (scope_counter): New class.
31579 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
31580 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
31581 sh_extending_set_of_reg::can_use_as_unextended_reg,
31582 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
31583 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
31584 sh_split_treg_set_expr): New functions.
31585 (addsubcosts): Handle treg_set_expr.
31586 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
31587 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
31588 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
31589 (sh_insn_operands_modified_between_p): Make non-static.
31590 * config/sh/predicates.md (zero_extend_movu_operand): Allow
31591 simple_mem_operand in addition to displacement_mem_operand.
31592 (zero_extend_operand): Don't allow zero_extend_movu_operand.
31593 (treg_set_expr, treg_set_expr_not_const01,
31594 arith_reg_or_treg_set_expr): New predicates.
31595 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
31596 arith_or_int_operand instead of logical_operand. Convert to
31597 insn_and_split. Try to optimize constant operand in splitter.
31598 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
31599 (*tstqi_t_zero): Delete.
31600 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
31601 (tstsi_t_and_not): Delete.
31602 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
31603 Convert to insn_and_split.
31604 (unnamed split, tstsi_t_zero_extract_xor,
31605 tstsi_t_zero_extract_subreg_xor_little,
31606 tstsi_t_zero_extract_subreg_xor_big): Delete.
31607 (*tstsi_t_shift_mask): New insn_and_split.
31608 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
31609 to recombine with surrounding insns when splitting.
31610 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
31611 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
31612 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
31613 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
31614 (*cbranch_div0s: Delete.
31615 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
31616 Try to recombine with surrounding insns when splitting. Add operand
31618 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
31619 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
31620 *addc_r_r_msb, *addc_2r_msb): Delete.
31621 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
31623 (*addc_negreg_t): New insn_and_split.
31624 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
31625 Try to recombine with surrounding insns when splitting.
31626 Add operand order variants.
31627 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
31628 insn_and_split patterns.
31629 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
31630 surrounding insns when splitting.
31631 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
31632 (*rotcl): Likewise. Add zero_extract variant.
31633 (*ashrsi2_31): New insn_and_split.
31634 (*negc): Convert to insn_and_split. Use treg_set_expr.
31635 (*zero_extend<mode>si2_disp_mem): Update comment.
31636 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
31638 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
31639 with surrounding insns when splitting.
31640 (any_treg_expr_to_reg): New insn_and_split.
31641 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
31642 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
31643 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
31644 *zero_extract_2): New single bit zero extract patterns.
31645 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
31646 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
31647 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
31648 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
31650 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
31651 register_operand for set source.
31653 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
31655 * i386.opt (prefetch_sse): New targetsave.
31656 * i386.c (ix86_function_specific_save): Save prefetch_sse.
31657 (ix86_function_specific_restore): Restore prefetch_sse and initialize
31658 ix86_cost/ix86_tune_cost.
31660 2015-01-23 David Malcolm <dmalcolm@redhat.com>
31662 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
31663 Support the JIT by using 0 as the language type.
31665 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
31668 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
31669 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
31670 (mark_regno_live, process_bb_lives): Pass new parameter value to
31671 make_hard_regno_born.
31673 2015-01-23 Jakub Jelinek <jakub@redhat.com>
31675 PR rtl-optimization/63637
31676 PR rtl-optimization/60663
31677 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
31678 if elt->cost is MAX_COST for ASM_OPERANDS.
31679 (find_sets_in_insn): Fix up comment typo.
31680 (cse_insn): Don't set src_volatile for all non-volatile
31681 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
31682 or with "memory" clobber. Set elt->cost to MAX_COST
31683 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
31684 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
31686 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
31688 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
31691 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
31693 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
31694 libgcc/config/i386/elf-lib.h.
31696 2015-01-23 Jakub Jelinek <jakub@redhat.com>
31699 * gcc.c (print_configuration): Don't print a blank line at the end
31701 (run_attempt): ... but here unstead.
31703 PR middle-end/64734
31704 * omp-low.c (scan_sharing_clauses): Don't ignore
31705 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
31706 on target data/update constructs.
31708 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
31711 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
31712 (DEBUG_RELOAD): Removed define.
31713 (m32c_limit_reload_class): Enable traces with if DEBUG0.
31714 (m32c_function_arg): Added a type cast.
31715 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
31716 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
31717 * config/m32c/bitops.md (andqi3_16): Likewise.
31718 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
31719 (push_a01_l): Likewise.
31721 2015-01-23 David Malcolm <dmalcolm@redhat.com>
31724 * main.c (main): Construct toplev instances with init_signals=true.
31725 * toplev.c (general_init): Add param "init_signals", and use it to
31726 conditionalize the calls to signal and host_hooks.extra_signals.
31727 (toplev::toplev): Add param "init_signals".
31728 (toplev::main): When invoking general_init, pass m_init_signals
31729 to control whether signal-handlers are installed.
31730 * toplev.h (toplev::toplev): Add param "init_signals".
31731 (toplev::m_init_signals): New field.
31733 2015-01-23 David Malcolm <dmalcolm@redhat.com>
31736 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
31737 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
31738 latter may be affected by the former (e.g. on i686).
31740 2015-01-23 Martin Liska <mliska@suse.cz>
31742 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
31743 false positive during profiledbootstrap.
31745 2015-01-23 Tom de Vries <tom@codesourcery.com>
31748 * lto-opts.c (lto_write_options): Output non-explicit conservative
31750 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
31751 (append_compiler_options): Pass -fopenacc through.
31753 2015-01-23 Tom de Vries <tom@codesourcery.com>
31756 * lto-opts.c (lto_write_options): Output non-explicit conservative
31758 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
31759 (append_compiler_options): Pass -fopenmp through.
31761 2015-01-23 Jakub Jelinek <jakub@redhat.com>
31764 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
31767 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
31768 * diagnostic.def (DK_ICE_NOBT): New kind.
31769 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
31770 like DK_ICE, but never print backtrace.
31771 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
31772 (internal_error_no_backtrace): New function.
31773 * gcc.c (execute): Use internal_error_no_backtrace instead of
31776 2015-01-22 Jeff Law <law@redhat.com>
31779 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
31780 improve code density for small immediate to memory case.
31781 (insv): Better handle bitfield assignments when the field is
31782 being set to all ones.
31783 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
31786 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31787 Jakub Jelinek <jakub@redhat.com>
31789 PR middle-end/64729
31790 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
31791 for !TARGET_LIBC_PROVIDES_SSP version and
31792 -fstack-protector-{all,strong,explicit} otherwise.
31793 * config/freebsd.h (LINK_SSP_SPEC): Handle
31794 -fstack-protector-{strong,explicit}.
31796 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
31797 H.J. Lu <hongjiu.lu@intel.com>
31800 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
31803 2015-01-22 Wei Mi <wmi@google.com>
31805 PR rtl-optimization/64557
31806 * dse.c (record_store): Call get_addr for mem_addr.
31807 (check_mem_read_rtx): Likewise.
31809 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
31811 * fold-const.c (const_binop): Add early return for non-tcc_binary.
31813 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
31815 * toplev.c (init_local_tick): Process the failure when read
31816 fails for random_seed.
31818 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
31819 'pretty_name' to avoid memory overflow.
31821 2015-01-22 Richard Biener <rguenther@suse.de>
31823 PR middle-end/64728
31824 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
31825 abnormal coalescing on undefined SSA names.
31827 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
31831 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
31833 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
31835 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
31837 PR middle-end/63325
31838 * fold-const.c (fold_checksum_tree): Don't include value of
31839 expr->decl_with_vis.symtab_node in the checksum.
31841 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31843 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
31845 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
31848 * gcc.c (insert_comments): New function.
31849 (try_generate_repro): Call it.
31850 (append_text): Removed.
31852 2015-01-22 Richard Biener <rguenther@suse.de>
31854 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
31855 with IL incompatible options. Properly honor user optimize
31858 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
31860 PR rtl-optimization/64682
31861 * combine.c (distribute_notes): When moving a death note for
31862 a register that is set in the new I2, make sure to put it
31863 before that new I2.
31865 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
31867 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
31868 not TARGET_DEFAULT.
31870 2015-01-21 Jakub Jelinek <jakub@redhat.com>
31873 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
31874 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
31875 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
31878 * doc/invoke.texi (-fsanitize=vptr): Document.
31880 PR rtl-optimization/62078
31881 * dse.c: Include cfgcleanup.h.
31882 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
31883 anything call purge_all_dead_edges and cleanup_cfg at the end
31886 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
31888 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
31891 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
31893 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
31896 2015-01-21 David Sherwood <david.sherwood@arm.com>
31897 Tejas Belagod <Tejas.Belagod@arm.com>
31899 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
31900 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
31901 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
31904 2015-01-21 David Sherwood <david.sherwood@arm.com>
31905 Tejas Belagod <Tejas.Belagod@arm.com>
31907 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
31908 (aarch64_reverse_mask): New decls.
31909 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
31910 (insn_count): New mode_attr.
31911 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
31912 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
31913 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
31914 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
31915 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
31916 (aarch64_simd_st4): New patterns.
31917 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
31918 (aarch64_reverse_mask): New functions.
31920 2015-01-21 Alan Hayward <alan.hayward@arm.com>
31922 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
31924 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
31925 addressing modes for BE.
31926 (aarch64_print_operand): Add 'R' specifier.
31927 (aarch64_simd_disambiguate_copy): Delete.
31928 (aarch64_simd_emit_reg_reg_move): New function.
31929 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
31930 in define_splits for structural moves.
31931 (mov<mode>): Use less restrictive predicates.
31932 (*aarch64_mov<mode>): Simplify and only allow for LE.
31933 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
31935 2015-01-21 Alan Hayward <alan.hayward@arm.com>
31937 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
31939 2015-01-21 Richard Henderson <rth@redhat.com>
31942 * ccmp.c (used_in_cond_stmt_p): Remove.
31943 (expand_ccmp_expr): Don't use it.
31945 2015-01-21 Nick Clifton <nickc@redhat.com>
31947 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
31950 2015-01-21 Richard Biener <rguenther@suse.de>
31952 PR middle-end/64313
31953 * tree-core.h (builtin_info, builtin_info_type): Turn from
31954 an object with two arrays into an array of an object with
31955 decl and two flags, implicit_p and declared_p.
31956 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
31957 set_builtin_decl, set_builtin_decl_implicit_p,
31958 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
31959 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
31960 * builtins.c (builtin_info): Adjust.
31961 * gimplify.c (gimplify_addr_expr): References to builtins
31962 that have been declared by the user makes them eligible for
31963 use by the compiler. Call set_builtin_decl_implicit_p on them.
31965 2015-01-20 Jeff Law <law@redhat.com>
31968 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
31969 allow pc-relative addresses in operand predicates or constraints.
31971 2015-01-21 Bin Cheng <bin.cheng@arm.com>
31973 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
31974 neon on aarch32 processors for stringops.
31976 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31979 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
31981 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31984 * ipa-inline.c: Include lto-streamer.h
31985 (report_inline_failed_reason): Output source file differences and
31986 flags on optimization/target node mismatch.
31987 (can_inline_edge_p): Consider caller to be the outer inline function;
31988 be less restrictive about matching opimize and optimize_size attributes.
31989 (inline_account_function_p): Break out from ...
31990 (inline_small_functions): ... here.
31991 * ipa-inline-transform.c (clone_inlined_nodes): Use
31992 inline_account_function_p.
31993 (inline_call): Use optimize attribution; use inline_account_function_p.
31994 (inline_transform): Use opt_for_fn.
31995 * ipa-inline.h (inline_account_function_p): Declare.
31997 2015-01-20 Jakub Jelinek <jakub@redhat.com>
32000 * dwarf2out.c (decl_piece_node): Don't put bitsize into
32001 mode if bitsize <= 0.
32002 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
32003 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
32004 sizes and positions.
32006 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
32008 * config/nios2/nios2.c (nios2_asm_file_end): Implement
32009 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
32011 (TARGET_ASM_FILE_END): Define.
32013 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32015 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
32016 (struct tune_params): Use the enum.
32017 * arm.c (arm_*_tune): Update.
32018 (arm_option_override): Update.
32020 2015-01-20 Richard Biener <rguenther@suse.de>
32023 * ipa-reference.c (add_static_var): Inline ...
32024 (analyze_function): ... here after splitting out from ...
32025 (is_proper_for_analysis): ... this.
32027 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
32030 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
32031 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
32032 replace the conditional with it's true branch.
32033 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
32034 (arm_lra_p): Remove.
32036 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
32038 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
32040 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32042 * config/tilegx/mul-tables.c: Move symtab.h include after
32043 coretypes.h include.
32044 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
32045 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
32046 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
32047 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
32048 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
32050 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
32054 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
32056 PR rtl-optimization/64081
32057 * loop-iv.c (def_pred_latch_p): New function.
32058 (latch_dominating_def): Allow specific cases with non-single
32060 (iv_get_reaching_def): Likewise.
32061 (check_complex_exit_p): New function.
32062 (check_simple_exit): Use check_complex_exit_p to allow certain cases
32063 with exits not executing on any iteration.
32065 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32068 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
32069 to set branch cost.
32071 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32074 * i386.c (gate): Check flag_expensive_optimizations and
32076 (ix86_option_override_internal): Drop optimize_size condition
32077 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
32078 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
32079 MASK_PREFER_AVX128.
32080 (ix86_avx256_split_vector_move_misalign,
32081 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
32082 * sse.md (all uses of TARGET_PREFER_AVX128): Add
32083 optimize_insn_for_speed_p check.
32085 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
32087 * config/mips/mips.h (FP_ASM_SPEC): New define.
32088 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
32091 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
32094 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
32095 nullptr for insn when reaching the first insn.
32096 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
32097 (sh_insn_operands_modified_between_p): Add nullptr check.
32098 (sh_find_extending_set_of_reg): Fix log message. Don't accept
32099 sign extending mem load if the insn contains any UNSPEC or
32102 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32104 * params.def (inline-unit-growth): Drop to 15%.
32105 * invoke.texi (inline-unit-growth): Document change.
32107 2015-01-19 Martin Liska <mliska@suse.cz>
32110 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
32111 function for second argument of OBJ_TYPE_REF.
32113 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32116 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
32117 whether function is an alias.
32119 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32121 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
32124 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
32126 PR rtl-optimization/64671
32127 * lra-remat.c (operand_to_remat): Don't consider jump and call
32130 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
32133 * config/rs6000/default64.h: Include rs6000-cpus.def.
32134 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
32135 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
32136 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
32138 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
32140 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
32141 pseudo-op to specify assembler dialect.
32143 2015-01-19 Martin Liska <mliska@suse.cz>
32146 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
32147 Handle safe potentially removed nodes during filtering.
32149 2015-01-19 Martin Liska <mliska@suse.cz>
32151 * doc/extend.texi (no_icf): Add new attribute description.
32152 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
32153 where the pass attempts to merge a function with no_icf attribute.
32155 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32158 * doc/md.texi (ARM Options): Document register constraints.
32160 2015-01-19 Jiong Wang <jiong.wang@arm.com>
32161 Andrew Pinski <apinski@cavium.com>
32164 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
32165 (ashl<mode>3): Don't expand if operands[2] is not constant.
32167 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32170 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
32171 Match xor-and-xor RTL pattern.
32173 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
32175 PR rtl-optimization/64081
32176 * loop-iv.c (def_pred_latch_p): New function.
32177 (latch_dominating_def): Allow specific cases with non-single
32179 (iv_get_reaching_def): Likewise.
32180 (check_complex_exit_p): New function.
32181 (check_simple_exit): Use check_complex_exit_p to allow certain cases
32182 with exits not executing on any iteration.
32184 2015-01-19 Jakub Jelinek <jakub@redhat.com>
32186 * common.opt (fgraphite): Fix a typo.
32188 2015-01-19 Felix Yang <felix.yang@huawei.com>
32190 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
32192 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
32193 uminp, smax_nanp, smin_nanp): New builtins.
32194 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
32195 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
32196 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
32197 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
32198 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
32199 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
32200 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
32201 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
32202 vpminnms_f32): Rewrite using builtin functions.
32204 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
32207 * omp-low.c (offload_symbol_decl): Remove variable.
32208 (get_offload_symbol_decl): Remove function.
32209 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
32210 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
32211 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
32212 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
32213 BUILT_IN_GOACC_UPDATE don't pass it at all.
32215 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
32217 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
32220 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
32222 * ipa-chkp.c (chkp_produce_thunks): Add early param
32223 to split thunks production into two passes. Keep
32224 'always_inline' function bodies after the first pass.
32225 (pass_data_ipa_chkp_early_produce_thunks): New.
32226 (pass_ipa_chkp_early_produce_thunks): New.
32227 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
32228 chkp_produce_thunks signature.
32229 (make_pass_ipa_chkp_early_produce_thunks): New.
32230 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
32231 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
32232 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
32234 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
32236 * cgraph.c (cgraph_node::dump): Dump profile flags.
32238 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
32241 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
32242 reg appear first in the parallel.
32244 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
32246 * ipa-reference.c (set_reference_optimization_summary,
32247 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
32249 (ignore_module_statics): New static var.
32250 (propagate_bits): If ipa-reference is disabled, do not look into local
32252 (analyze_function): Disable analysis when ipa_reference is disabled.
32253 (generate_summary): Do not dump when reference is disabled;
32254 collect vars accessed from functions with ipa-reference disabled.
32255 (get_read_write_all_from_node): When ipa-reference is disabled, use the
32257 (gate): Enable for LTO.
32258 (ignore_edge_p): New function.
32259 (propagate): Skip functions w/o ipa-reference analysis.
32260 * optc-save-gen.awk: Handle optimize_debug correctly.
32261 * opth-gen.awk: Likewise.
32262 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
32263 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
32264 fira-share-save-slots, fira-share-spill-slots,
32265 fmodulo-sched-allow-regmoves, fpartial-inlining,
32266 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
32267 ftracer, ftree-parallelize-loops, fassociative-math,
32268 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
32270 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
32271 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
32273 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
32276 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
32279 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
32281 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
32283 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
32285 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
32286 Remove duplicate option listings.
32288 2015-01-18 Felix Yang <felix.yang@huawei.com>
32290 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
32291 (autofdo_source_profile::get_callsite_total_count,
32292 function_instance::get_function_instance_by_decl,
32293 string_table::get_index, string_table::get_index_by_decl,
32294 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
32295 Fix comment typos. Reformatting and minor code rearrangement.
32297 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
32299 * config/rs6000/rs6000.md (probe_stack): Delete.
32300 (probe_stack_address): New.
32302 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
32304 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
32305 to test for 32-bit ABIs, not !TARGET_POWERPC64.
32307 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
32309 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
32310 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
32311 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
32313 (rs6000_libcall_value): Use the new function.
32315 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
32317 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
32319 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
32321 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
32322 implement a more precise life analysis for it during backward scan.
32324 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
32326 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
32328 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
32330 PR rtl-optimization/52773
32331 * calls.c (emit_library_call_value): When pushing arguments use
32332 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
32333 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
32334 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
32336 2015-01-17 Jeff Law <law@redhat.com>
32338 PR rtl-optimization/32790
32339 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
32340 not ZERO_EXTEND in SET_DESTs.
32342 2015-01-17 Alan Modra <amodra@gmail.com>
32344 * cprop.c (do_local_cprop): Revert last change.
32346 2015-01-16 DJ Delorie <dj@redhat.com>
32347 Nick Clifton <nickc@redhat.com>
32349 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
32350 (addhi3_real): Likewise. Fix [HL+0] syntax.
32351 (subqi3_real): Likewise.
32352 (subhi3_real): Likewise.
32353 (cbranchqi4_real): Likewise. Allow saddr,#imm.
32354 (cbranchhi4_real): Likewise.
32355 (cbranchhi4_real_inverted): Likewise.
32356 (cbranchsi4_real_lt): Likewise.
32357 (cbranchsi4_real_ge): Likewise.
32358 (cbranchsi4_real_ge): Likewise.
32359 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
32360 (sub<mode>3_virt): Likewise.
32361 (cbranchqi4_virt): Likewise.
32362 (cbranchhi4_virt): Likewise.
32363 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
32364 always use '[reg+imm]' even when imm is zero.
32365 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
32366 (rl78_general_operand): New.
32367 (rl78_nonimmediate_operand): New.
32368 (rl78_nonfar_operand): Use them.
32369 (rl78_nonfar_nonimm_operand): Likewise.
32370 (rl78_stack_based_mem): Fix.
32371 * config/rl78/constraints.md (Ibqi): New.
32376 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
32377 (iorqi3): Likewise.
32378 (xorqi3): Likewise.
32379 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
32381 * config/rl78/constrains (Qs8): New constraint.
32382 * config/rl78/rl78.c (rl78_flags_already_set): New function.
32383 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
32384 * config/rl78/rl78-real.md (update_Z): New attribute.
32385 Update patterns to set it.
32386 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
32387 shorter compare and branch sequence can be used.
32388 (cbranchhi4_real): Likewise.
32389 (cbranchhi4_real_inverted): Likewise.
32391 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
32392 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
32394 * config/rl78/rl78.c (rl78_get_name_encoding): New.
32395 (rl78_option_override): Allow -mes0 only if C.
32396 (characterize_address): Support subregs of symbol_refs.
32397 (rl78_addr_space_address_mode): Move. Add __near.
32398 (rl78_far_p): Likewise.
32399 (rl78_addr_space_pointer_mode): Likewise.
32400 (rl78_as_legitimate_address): Likewise.
32401 (rl78_addr_space_subset_p): Likewise.
32402 (rl78_addr_space_convert): Likewise.
32403 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
32404 symbols with -mes0.
32405 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
32407 (rl78_alloc_physical_registers_op1): Change logic to prefer
32408 symbol[BC] addressing.
32409 (frodata_section): New.
32410 (rl78_asm_init_sections): Initialize it.
32411 (rl78_select_section): Put __far readonly symbols in .frodata.
32412 (rl78_make_type_far): New.
32413 (rl78_insert_attributes): Force all readonly symbols to be
32415 (rl78_asm_out_integer): New.
32416 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
32417 * config/rl78/rl78.opt (-mes0): New.
32419 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
32420 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
32421 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
32422 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
32423 (rl78_saddr_p): New.
32424 (rl78_output_aligned_common): New.
32425 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
32426 (rl78_handle_saddr_attribute): New.
32427 (rl78_handle_naked_attribute): New.
32428 (rl78_attribute_table): Add saddr.
32429 (rl78_print_operand_1): Don't print '!' on saddr operands.
32430 (rl78_print_operand_1): Strip encodings.
32432 (rl78_strip_name_encoding): New.
32433 (rl78_attrlist_to_encoding): New.
32434 (rl78_encode_section_info): New.
32435 (rl78_asm_init_sections): New.
32436 (rl78_select_section): New.
32437 (rl78_output_labelref): New.
32438 (rl78_output_aligned_common): New.
32439 (rl78_asm_out_integer): New.
32440 (rl78_asm_ctor_dtor): New.
32441 (rl78_asm_constructor): New.
32442 (rl78_asm_destructor): New.
32444 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
32445 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
32446 (transcode_memory_rtx): Update.
32447 (rl78_expand_epilogue): Use A_REG instead of 0.
32449 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32451 * config/arm/arm-protos.h (struct tune_params): New field
32452 sched_autopref_queue_depth.
32453 * config/arm/arm.c (sched-int.h): Include header.
32454 (arm_first_cycle_multipass_dfa_lookahead_guard,)
32455 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
32456 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
32457 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
32458 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
32459 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
32460 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
32461 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
32462 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
32463 * config/arm/t-arm (arm.o): Update.
32464 * haifa-sched.c (update_insn_after_change): Update.
32465 (rank_for_schedule): Use auto-prefetcher model, if requested.
32466 (autopref_multipass_init): New static function.
32467 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
32468 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
32469 variable for debug dumps.
32470 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
32471 (autopref_multipass_dfa_lookahead_guard): New global function that
32472 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
32473 (init_h_i_d): Update.
32474 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
32475 * sched-int.h (enum autopref_multipass_data_status): New const enum.
32476 (autopref_multipass_data_): Structure for auto-prefetcher data.
32477 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
32478 (struct _haifa_insn_data:autopref_multipass_data): New field.
32479 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
32480 (autopref_multipass_dfa_lookahead_guard): Declare.
32482 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32484 * rtlanal.c (get_base_term): Handle SCRATCH.
32486 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32488 * config/aarch64/aarch64.c
32489 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
32490 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
32492 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
32493 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
32495 2015-01-17 Alan Modra <amodra@gmail.com>
32497 * cprop.c (do_local_cprop): Disallow replacement of fixed
32500 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32503 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
32506 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
32508 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
32509 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
32511 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32513 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
32514 * config/arm/thumb1.md: ... Here.
32516 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32518 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
32519 TImode for TARGET_32BIT.
32521 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32523 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
32524 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
32526 (rs6000_abi_word_mode): New function.
32528 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32530 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
32531 instead of UNITS_PER_WORD to describe the size of stack slots.
32533 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32535 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
32536 as rs6000_promote_function_mode. Move comment to there.
32537 (rs6000_promote_function_mode): New function.
32539 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32541 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
32542 -mpowerpc64 is active.
32544 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
32546 PR middle-end/64353
32547 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
32550 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
32552 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
32553 introduced in revision 219724.
32555 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32556 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32559 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
32560 destination is not a GP reg.
32561 (*movdi_aarch64): Likewise.
32563 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
32566 * config/rs6000/default64.h: Revert ISA change.
32568 2015-01-16 Richard Biener <rguenther@suse.de>
32570 PR middle-end/64614
32571 * tree-ssa-uninit.c: Include tree-cfg.h.
32572 (MAX_SWITCH_CASES): New define.
32573 (convert_control_dep_chain_into_preds): Handle switch statements.
32574 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
32575 (normalize_one_pred_1): Do not split bit-manipulations.
32578 2015-01-16 Richard Biener <rguenther@suse.de>
32580 PR tree-optimization/64568
32581 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
32582 complex load rewriting for TARGET_MEM_REFs.
32584 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
32586 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
32588 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
32591 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
32593 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
32594 (aarch64_lra_p): Remove.
32596 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
32599 * ipa-chkp.h (chkp_instrumentable_p): New.
32600 * ipa-chkp.c: Include tree-inline.h.
32601 (chkp_instrumentable_p): New.
32602 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
32603 Fix processing of not instrumentable functions.
32604 (chkp_versioning): Use chkp_instrumentable_p. Warn about
32605 not instrumentable functions.
32606 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
32607 chkp_instrumentable_p.
32608 * tree-inline.h (copy_forbidden): New.
32609 * tree-inline.c (copy_forbidden): Not static anymore.
32611 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32613 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
32616 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
32618 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
32619 type OP_OUT to OP_INOUT.
32621 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
32623 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
32624 (high x) y) to y if x and y have the same base.
32626 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
32628 * config/arm/cortex-a57.md: New.
32629 * config/aarch64/aarch64.md: Include it.
32630 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
32631 * config/aarch64/aarch64-tune.md: Regenerate.
32633 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
32636 * ccmp.c (expand_ccmp_next): New function.
32637 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
32638 and compare insn sequence.
32639 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
32640 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
32641 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
32642 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
32643 (*ccmp_ior): Changed to ccmp_ior<mode>.
32644 (cmp<mode>): New pattern.
32645 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
32647 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
32649 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
32651 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
32652 _mm256_bsrli_epi128): New.
32653 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
32655 2015-01-15 Jiong Wang <jiong.wang@arm.com>
32657 * expmed.c (store_bit_field_using_insv): Improve warning message.
32658 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
32660 2015-01-15 Jiong Wang <jiong.wang@arm.com>
32662 PR rtl-optimization/64011
32663 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
32664 there is partial overflow.
32666 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32668 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
32670 (nds32_expand_epilogue_v3pop): Likewise.
32671 * config/nds32/nds32.md (sibcall): Define this for sibling call
32673 (sibcall_register): Likewise.
32674 (sibcall_immediate): Likewise.
32675 (sibcall_value): Likewise.
32676 (sibcall_value_register): Likewise.
32677 (sibcall_value_immediate): Likewise.
32678 (sibcall_epilogue): Likewise.
32679 (epilogue): Pass false to indicate this is not a sibcall epilogue.
32680 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
32681 (nds32_expand_epilogue_v3pop): Likewise.
32683 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32685 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
32686 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
32687 (return_internal): New.
32688 (return): Define this named pattern.
32689 (simple_return): Define this named pattern.
32690 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
32691 pattern instead of unspec_volatile_func_return.
32692 (nds32_expand_epilogue_v3pop): Likewise.
32693 (nds32_can_use_return_insn): New function.
32695 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32697 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
32698 * config/nds32/nds32.md (pop25return): New.
32699 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
32700 pop25return pattern.
32702 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32704 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
32705 -mforbid-fp-as-gp, and -mex9 options.
32707 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32709 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
32710 remove -mgp-direct option.
32712 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
32714 * doc/invoke.texi (--param early-inlining-insns): Update default value.
32715 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
32717 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
32719 * ipa-inline.c (inline_small_functions): Work around hints
32722 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
32725 * doc/invoke.texi (Option Summary): Document new Nios II
32727 (Nios II Options): Likewise.
32728 * config/nios2/nios2.opt: Add -mgpopt= option support.
32729 Modify existing -mgpopt and -mno-gpopt options to be aliases.
32730 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
32731 * config/nios2/nios2.c (nios2_option_override): Adjust
32732 -mgpopt defaulting.
32733 (nios2_in_small_data_p): Return true for explicit small data
32734 sections even with -G0.
32735 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
32738 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
32741 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
32743 (inline_call): Fix removal of aliases.
32745 2015-01-15 Jakub Jelinek <jakub@redhat.com>
32747 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
32748 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
32749 * opts.c (common_handle_option): Add -fsanitize=vptr.
32750 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
32751 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
32752 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
32753 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
32754 (ubsan_expand_vptr_ifn): New prototype.
32755 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
32756 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
32757 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
32758 expand_LOOP_VECTORIZED): Make argument nameless, remove
32760 (expand_UBSAN_VPTR): New function.
32761 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
32763 (UBSAN_VPTR): New internal function.
32764 * sanopt.c (tree_map_traits): Renamed to ...
32765 (sanopt_tree_map_traits): ... this.
32766 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
32767 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
32768 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
32769 (maybe_optimize_ubsan_vptr_ifn): New function.
32770 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
32771 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
32773 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
32774 internal calls like pure functions for aliasing, even when they
32775 have other side-effects that prevent making them ECF_PURE.
32776 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
32777 (ubsan_expand_vptr_ifn): New function.
32779 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
32781 PR rtl-optimization/64110
32782 * stmt.c (parse_output_constraint): Process '^' and '$'.
32783 (parse_input_constraint): Ditto.
32784 * lra-constraints.c (process_alt_operands): Process the new
32786 * ira-costs.c (record_reg_classes): Process the new constraint
32788 * genoutput.c (indep_constraints): Add '^' and '$'.
32789 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
32790 * doc/md.texi: Add description of the new constraints.
32792 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
32793 Bernd Schmidt <bernds@codesourcery.com>
32794 Cesar Philippidis <cesar@codesourcery.com>
32795 James Norris <jnorris@codesourcery.com>
32796 Tom de Vries <tom@codesourcery.com>
32797 Ilmir Usmanov <i.usmanov@samsung.com>
32798 Dmitry Bocharnikov <dmitry.b@samsung.com>
32799 Evgeny Gavrin <e.gavrin@samsung.com>
32800 Jakub Jelinek <jakub@redhat.com>
32802 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
32803 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
32804 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
32805 New function types.
32806 * builtins.c: Include "gomp-constants.h".
32807 (expand_builtin_acc_on_device): New function.
32808 (expand_builtin, is_inexpensive_builtin): Handle
32809 BUILT_IN_ACC_ON_DEVICE.
32810 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
32812 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
32814 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
32815 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
32816 i386/intelmic-offload.h.
32817 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
32818 to libgomp and its dependencies.
32819 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
32820 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
32821 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
32822 * config/ia64/hpux.h (LIB_SPEC): Likewise.
32823 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
32824 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
32825 * doc/generic.texi: Update for OpenACC changes.
32826 * doc/gimple.texi: Likewise.
32827 * doc/invoke.texi: Likewise.
32828 * doc/sourcebuild.texi: Likewise.
32829 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
32830 GF_OMP_FOR_KIND_OACC_LOOP.
32831 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
32832 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
32833 GF_OMP_TARGET_KIND_OACC_UPDATE,
32834 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
32836 * gimple.c: Update comments for OpenACC changes.
32837 * gimple.def: Likewise.
32838 * gimple.h: Likewise.
32839 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
32840 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
32841 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
32842 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
32843 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
32845 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
32846 * gimplify.c: Include "gomp-constants.h".
32847 Update comments for OpenACC changes.
32848 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
32849 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
32850 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
32851 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
32852 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
32853 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
32854 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
32855 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
32856 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
32858 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
32859 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
32860 OMP_CLAUSE_SET_MAP_KIND.
32861 (gimplify_oacc_cache): New function.
32862 (gimplify_omp_for): Handle OACC_LOOP.
32863 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
32865 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
32866 OACC_EXIT_DATA, OACC_UPDATE.
32867 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
32868 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
32869 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
32870 (gimplify_body): Consider flag_openacc next to flag_openmp.
32871 * lto-streamer-out.c: Include "gomp-constants.h".
32872 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
32873 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
32874 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
32875 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
32876 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
32877 (BUILT_IN_ACC_ON_DEVICE): New builtins.
32878 * omp-low.c: Include "gomp-constants.h".
32879 Update comments for OpenACC changes.
32880 (struct omp_context): Add reduction_map, gwv_below, gwv_this
32882 (extract_omp_for_data, use_pointer_for_field, install_var_field)
32883 (new_omp_context, delete_omp_context, scan_sharing_clauses)
32884 (create_omp_child_function, scan_omp_for, scan_omp_target)
32885 (check_omp_nesting_restrictions, lower_reduction_clauses)
32886 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
32887 Update for OpenACC changes.
32888 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
32889 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
32890 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
32891 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
32892 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
32893 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
32895 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
32896 Handle GF_OMP_FOR_KIND_OACC_LOOP.
32897 (expand_omp_target, lower_omp_target): Handle
32898 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
32899 GF_OMP_TARGET_KIND_OACC_UPDATE,
32900 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
32901 GF_OMP_TARGET_KIND_OACC_DATA.
32902 (pass_expand_omp::execute, execute_lower_omp)
32903 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
32905 (offload_symbol_decl): New variable.
32906 (oacc_get_reduction_array_id, oacc_max_threads)
32907 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
32908 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
32909 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
32910 (oacc_gimple_assign, oacc_initialize_reduction_data)
32911 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
32913 (is_targetreg_ctx): Remove function.
32914 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
32915 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
32916 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
32917 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
32918 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
32919 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
32920 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
32921 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
32922 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
32923 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
32924 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
32925 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
32926 * tree-core.h: Update comments for OpenACC changes.
32927 (enum omp_clause_map_kind): Remove.
32928 (struct tree_omp_clause): Change type of map_kind member from enum
32929 omp_clause_map_kind to unsigned char.
32930 * tree-inline.c: Update comments for OpenACC changes.
32931 * tree-nested.c: Likewise. Include "gomp-constants.h".
32932 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
32933 (convert_tramp_reference_stmt, convert_gimple_call): Update for
32934 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
32935 OMP_CLAUSE_SET_MAP_KIND.
32936 * tree-pretty-print.c: Include "gomp-constants.h".
32937 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
32938 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
32939 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
32940 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
32941 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
32942 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
32943 instead of OMP_CLAUSE_MAP_*.
32944 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
32945 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
32946 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
32947 * tree-streamer-in.c: Include "gomp-constants.h".
32948 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
32949 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
32950 * tree-streamer-out.c: Include "gomp-constants.h".
32951 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
32953 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
32954 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
32955 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
32956 * tree.c (omp_clause_num_ops): Update accordingly.
32957 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
32959 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
32960 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
32961 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
32962 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
32963 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
32964 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
32965 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
32966 (OMP_CLAUSE_SET_MAP_KIND): New macro.
32967 * varpool.c (varpool_node::get_create): Consider flag_openacc next
32969 * config/i386/intelmic-offload.h: New file.
32970 * config/nvptx/offload.h: Likewise.
32972 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32974 * explow.h: Remove duplicate contents.
32975 * dojump.h: Likewise.
32977 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
32979 * arm.c (arm_xgene_tune): Add default initializer for instruction
32982 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
32986 * ipa.c (symbol_table::remove_unreachable_nodes):
32987 Do not put abstract origins into boundary.
32989 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
32991 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
32992 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
32994 2015-01-15 Steve Ellcey <sellcey@mips.com>
32996 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
32997 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
32998 builtins.def, and chkp-builtins.def.
33000 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
33002 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
33005 2015-01-15 Richard Biener <rguenther@suse.de>
33007 PR tree-optimization/61743
33008 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
33009 information on PHIs for some simple cases.
33011 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
33013 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
33015 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
33016 * config/arm/arm-cores.def (xgene1): New entry.
33017 * config/arm/arm-tables.opt: Regenerate.
33018 * config/arm/arm-tune.md: Regenerate.
33019 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
33021 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
33023 * tree-if-conv.c: Include hash-map.h.
33024 (aggressive_if_conv): New variable.
33025 (fold_build_cond_expr): Add simplification of non-zero condition.
33026 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
33027 destination block is not always executed.
33028 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
33029 than two predecessors if AGGRESSIVE_IF_CONV is true.
33030 (if_convertible_stmt_p): Fix commentary.
33031 (all_preds_critical_p): New function.
33032 (has_pred_critical_p): New function.
33033 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
33034 BB can have more than two predecessors and all incoming edges can be
33036 (predicate_bbs): Skip predication for loop exit block, use build2_loc
33037 to compute predicate for true edge.
33038 (find_phi_replacement_condition): Delete this function.
33039 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
33040 Allow interchange PHI arguments if EXTENDED is false.
33041 Change check that block containing reduction statement candidate
33042 is predecessor of phi-block since phi may have more than two arguments.
33043 (phi_args_hash_traits): New helper structure.
33044 (struct phi_args_hash_traits): New type.
33045 (phi_args_hash_traits::hash): New function.
33046 (phi_args_hash_traits::equal_keys): New function.
33047 (gen_phi_arg_condition): New function.
33048 (predicate_scalar_phi): Add handling of phi nodes with more than two
33049 arguments, delete COND and TRUE_BB arguments, insert body of
33050 find_phi_replacement_condition to predicate ordinary phi nodes.
33051 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
33052 delete call of find_phi_replacement_condition and invoke
33053 predicate_scalar_phi with two arguments.
33054 (insert_gimplified_predicates): Add assert that non-predicated block
33055 don't have statements to insert.
33056 (ifcvt_split_critical_edges): New function.
33057 (ifcvt_split_def_stmt): Likewise.
33058 (ifcvt_walk_pattern_tree): Likewise.
33059 (stmt_is_root_of_bool_pattern): Likewise.
33060 (ifcvt_repair_bool_pattern): Likewise.
33061 (ifcvt_local_dce): Likewise.
33062 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
33063 is copy of inner or outer loop force_vectorize field, invoke
33064 ifcvt_split_critical_edges, ifcvt_local_dce and
33065 ifcvt_repair_bool_pattern for aggressive if-conversion.
33067 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
33069 * config/aarch64/aarch64.md: Include xgene1.md.
33070 * config/aarch64/xgene1.md: New file.
33072 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
33074 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
33075 xgene1 (APM XGene-1) core definition.
33076 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
33077 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
33078 * doc/invoke.texi: Document -mcpu=xgene1.
33080 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33082 * dojump.h: New header file.
33083 * explow.h: Likewise.
33084 * expr.h: Remove includes.
33085 Move expmed.c prototypes to expmed.h.
33086 Move dojump.c prototypes to dojump.h.
33087 Move alias.c prototypes to alias.h.
33088 Move explow.c prototypes to explow.h.
33089 Move calls.c prototypes to calls.h.
33090 Move emit-rtl.c prototypes to emit-rtl.h.
33091 Move varasm.c prototypes to varasm.h.
33092 Move stmt.c prototypes to stmt.h.
33093 (saved_pending_stack_adjust): Move to dojump.h.
33094 (adjust_address): Move to explow.h.
33095 (adjust_address_nv): Move to emit-rtl.h.
33096 (adjust_bitfield_address): Likewise.
33097 (adjust_bitfield_address_size): Likewise.
33098 (adjust_bitfield_address_nv): Likewise.
33099 (adjust_automodify_address_nv): Likewise.
33100 * explow.c (expr_size): Move to expr.c.
33101 (int_expr_size): Likewise.
33102 (tree_expr_size): Likewise.
33103 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33104 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
33105 * genemit.c (main): Generate includes statistics.h, real.h,
33106 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
33108 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
33109 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
33110 explow.h, emit-rtl.h, stmt.h.
33111 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
33112 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
33113 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
33114 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
33115 emit-rtl.h, varasm.h, stmt.h.
33116 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
33117 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
33118 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
33119 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
33120 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
33121 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
33122 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
33123 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
33124 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
33125 tm.h tree.h varasm.h vec.h wide-int.h.
33126 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33127 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
33128 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
33129 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
33130 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
33131 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
33132 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
33133 * loop-iv.c: Likewise.
33134 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
33135 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
33136 statistics.h stmt.h tree.h varasm.h wide-int.h.
33137 * lra-constraints.c: Likewise.
33138 * lra-eliminations.c: Likewise.
33139 * lra-lives.c: Likewise.
33140 * lra-remat.c: Likewise.
33141 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33142 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
33143 statistics.h stmt.h tree.h varasm.h wide-int.h.
33144 * hw-doloop.c: Likewise.
33145 * ira-color.c: Likewise.
33146 * ira-emit.c: Likewise.
33147 * loop-doloop.c: Likewise.
33148 * loop-invariant.c: Likewise.
33149 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33150 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
33151 statistics.h stmt.h tree.h varasm.h wide-int.h.
33152 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
33153 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
33154 statistics.h stmt.h tree.h varasm.h wide-int.h.
33155 * combine-stack-adj.c: Likewise.
33158 * ifcvt.c: Likewise.
33159 * ira-costs.c: Likewise.
33160 * jump.c: Likewise.
33161 * lra-coalesce.c: Likewise.
33162 * lra-spills.c: Likewise.
33163 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33164 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
33165 stmt.h varasm.h wide-int.h.
33166 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33167 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
33169 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
33170 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
33171 statistics.h stmt.h varasm.h wide-int.h.
33172 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
33173 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
33174 varasm.h wide-int.h.
33175 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
33176 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
33177 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
33178 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
33179 statistics.h stmt.h.
33180 * config/tilepro/tilepro.c: Likewise.
33181 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
33182 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
33183 * config/pdp11/pdp11.c: Likewise.
33184 * config/xtensa/xtensa.c: Likewise.
33185 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
33186 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
33188 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33189 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
33190 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
33191 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33192 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
33193 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
33194 * rtl-chkp.c: Likewise.
33195 * tree-chkp-opt.c: Likewise.
33196 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
33197 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
33198 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
33199 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33200 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
33201 statistics.h stmt.h.
33202 * tree-vect-data-refs.c: Likewise.
33203 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
33204 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33205 rtl.h statistics.h stmt.h varasm.h.
33206 * internal-fn.c: Likewise.
33207 * ipa-icf-gimple.c: Likewise.
33208 * lto-section-out.c: Likewise.
33209 * tree-data-ref.c: Likewise.
33210 * tree-nested.c: Likewise.
33211 * tree-outof-ssa.c: Likewise.
33212 * tree-predcom.c: Likewise.
33213 * tree-pretty-print.c: Likewise.
33214 * tree-scalar-evolution.c: Likewise.
33215 * tree-ssa-strlen.c: Likewise.
33216 * tree-vect-loop.c: Likewise.
33217 * tree-vect-patterns.c: Likewise.
33218 * tree-vect-slp.c: Likewise.
33219 * tree-vect-stmts.c: Likewise.
33220 * tsan.c: Likewise.
33221 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33222 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
33224 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
33225 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33226 statistics.h stmt.h varasm.h.
33227 * loop-unroll.c: Likewise.
33228 * ubsan.c: Likewise.
33229 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
33230 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
33232 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33233 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
33234 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
33235 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
33236 statistics.h stmt.h.
33237 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
33238 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
33239 statistics.h stmt.h varasm.h.
33240 * gimple-match-head.c: Likewise.
33241 * lto-cgraph.c: Likewise.
33242 * lto-section-in.c: Likewise.
33243 * lto-streamer-in.c: Likewise.
33244 * lto-streamer-out.c: Likewise.
33245 * tree-affine.c: Likewise.
33246 * tree-cfg.c: Likewise.
33247 * tree-cfgcleanup.c: Likewise.
33248 * tree-if-conv.c: Likewise.
33249 * tree-into-ssa.c: Likewise.
33250 * tree-ssa-alias.c: Likewise.
33251 * tree-ssa-copyrename.c: Likewise.
33252 * tree-ssa-dse.c: Likewise.
33253 * tree-ssa-forwprop.c: Likewise.
33254 * tree-ssa-live.c: Likewise.
33255 * tree-ssa-math-opts.c: Likewise.
33256 * tree-ssa-pre.c: Likewise.
33257 * tree-ssa-sccvn.c: Likewise.
33258 * tree-tailcall.c: Likewise.
33259 * tree-vect-generic.c: Likewise.
33260 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33261 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
33262 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33263 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
33264 * varasm.c: Likewise.
33265 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33266 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
33268 * init-regs.c: Likewise.
33270 * omp-low.c: Likewise.
33271 * stack-ptr-mod.c: Likewise.
33272 * tree-ssa-reassoc.c: Likewise.
33273 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33274 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
33276 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33277 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
33278 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33279 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
33280 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33281 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
33282 * tree-ssa-phiopt.c: Likewise.
33283 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33284 fixed-value.h hashtab.h real.h statistics.h stmt.h.
33285 * config/fr30/fr30.c: Likewise.
33286 * config/frv/frv.c: Likewise.
33287 * expr.c: Likewise.
33288 * final.c: Likewise.
33289 * optabs.c: Likewise.
33290 * passes.c: Likewise.
33291 * simplify-rtx.c: Likewise.
33292 * stmt.c: Likewise.
33293 * toplev.c: Likewise.
33294 * var-tracking.c: Likewise.
33295 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33296 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
33297 * lower-subreg.c: Likewise.
33298 * postreload-gcse.c: Likewise.
33300 * reginfo.c: Likewise.
33301 * store-motion.c: Likewise.
33302 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33303 fixed-value.h hashtab.h real.h stmt.h varasm.h.
33304 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33305 fixed-value.h hashtab.h statistics.h stmt.h.
33306 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33307 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
33308 * except.c: Likewise.
33309 * explow.c: Likewise.
33310 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33311 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
33313 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33314 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
33315 * tree-ssa-structalias.c: Likewise.
33316 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33317 fixed-value.h insn-config.h real.h statistics.h.
33318 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33319 fixed-value.h insn-config.h real.h statistics.h stmt.h.
33320 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33321 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
33322 * cfgbuild.c: Likewise.
33323 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33324 fixed-value.h real.h rtl.h statistics.h stmt.h.
33325 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33326 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
33327 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33328 fixed-value.h real.h statistics.h stmt.h.
33329 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33330 fixed-value.h real.h statistics.h stmt.h varasm.h.
33331 * cprop.c: Likewise.
33332 * modulo-sched.c: Likewise.
33333 * postreload.c: Likewise.
33334 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
33335 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
33336 statistics.h stmt.h varasm.h.
33337 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
33338 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33339 rtl.h statistics.h stmt.h varasm.h.
33340 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
33341 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
33343 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
33344 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
33346 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
33347 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
33349 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
33350 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
33351 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
33352 function.h real.h statistics.h stmt.h varasm.h.
33353 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
33354 insn-config.h real.h statistics.h stmt.h.
33355 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
33356 statistics.h stmt.h.
33357 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
33358 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
33359 statistics.h stmt.h varasm.h.
33360 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
33361 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
33362 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
33363 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
33364 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
33365 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
33366 statistics.h stmt.h varasm.h.
33367 * ipa-polymorphic-call.c: Likewise.
33368 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
33369 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33370 statistics.h stmt.h.
33371 * config/c6x/c6x.c: Likewise.
33372 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
33373 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33374 statistics.h stmt.h varasm.h.
33375 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
33376 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
33378 * ipa-split.c: Likewise.
33379 * tree-eh.c: Likewise.
33380 * tree-ssa-dce.c: Likewise.
33381 * tree-ssa-loop-niter.c: Likewise.
33382 * tree-vrp.c: Likewise.
33383 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
33384 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
33386 * config/nds32/nds32-fp-as-gp.c: Likewise.
33387 * config/nds32/nds32-intrinsic.c: Likewise.
33388 * config/nds32/nds32-isr.c: Likewise.
33389 * config/nds32/nds32-md-auxiliary.c: Likewise.
33390 * config/nds32/nds32-memory-manipulation.c: Likewise.
33391 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
33392 * config/nds32/nds32-predicates.c: Likewise.
33393 * config/nds32/nds32.c: Likewise.
33394 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
33395 fixed-value.h hashtab.h real.h statistics.h.
33396 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
33397 fixed-value.h hashtab.h real.h statistics.h stmt.h.
33398 * config/arm/arm.c: Likewise.
33399 * config/avr/avr.c: Likewise.
33400 * config/bfin/bfin.c: Likewise.
33401 * config/h8300/h8300.c: Likewise.
33402 * config/i386/i386.c: Likewise.
33403 * config/ia64/ia64.c: Likewise.
33404 * config/iq2000/iq2000.c: Likewise.
33405 * config/m32c/m32c.c: Likewise.
33406 * config/m32r/m32r.c: Likewise.
33407 * config/m68k/m68k.c: Likewise.
33408 * config/mcore/mcore.c: Likewise.
33409 * config/mep/mep.c: Likewise.
33410 * config/mips/mips.c: Likewise.
33411 * config/mn10300/mn10300.c: Likewise.
33412 * config/moxie/moxie.c: Likewise.
33413 * config/pa/pa.c: Likewise.
33414 * config/rl78/rl78.c: Likewise.
33415 * config/rx/rx.c: Likewise.
33416 * config/s390/s390.c: Likewise.
33417 * config/sh/sh.c: Likewise.
33418 * config/sparc/sparc.c: Likewise.
33419 * config/spu/spu.c: Likewise.
33420 * config/stormy16/stormy16.c: Likewise.
33421 * config/v850/v850.c: Likewise.
33422 * config/vax/vax.c: Likewise.
33423 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
33424 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
33425 * config/msp430/msp430.c: Likewise.
33426 * predict.c: Likewise.
33427 * value-prof.c: Likewise.
33428 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
33429 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
33430 * config/microblaze/microblaze.c: Likewise.
33431 * config/nios2/nios2.c: Likewise.
33432 * config/rs6000/rs6000.c: Likewise.
33433 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
33434 insn-config.h real.h rtl.h statistics.h stmt.h.
33435 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
33436 insn-config.h real.h statistics.h stmt.h.
33437 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
33438 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
33439 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
33440 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
33441 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
33442 fixed-value.h real.h statistics.h stmt.h.
33443 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
33444 fixed-value.h statistics.h stmt.h.
33445 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
33448 2015-01-15 Jakub Jelinek <jakub@redhat.com>
33450 * gengtype.c (create_user_defined_type): Workaround
33451 -Wmaybe-uninitialized false positives.
33452 * cse.c (fold_rtx): Likewise.
33453 * loop-invariant.c (gain_for_invariant): Likewise.
33455 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
33457 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
33458 set the memory attributes in all cases but clear MEM_EXPR if need be.
33460 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
33462 PR tree-optimization/64434
33463 * cfgexpand.c (reorder_operands): New function.
33464 (expand_gimple_basic_block): Insert call of reorder_operands if
33467 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
33469 * config/mips/micromips.md (*swp): Remove explicit parallel.
33470 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
33471 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
33472 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
33473 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
33474 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
33475 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
33476 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
33477 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
33478 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
33479 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
33480 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
33481 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
33482 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
33483 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
33484 (mips_wrdsp): Likewise.
33485 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
33487 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
33488 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
33489 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
33490 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
33491 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
33492 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
33493 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
33494 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
33495 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
33497 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
33499 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
33500 (mips_print_operand): Support 'y' to print exact log2 in decimal
33502 * config/mips/mips.h (ISA_HAS_LSA): New define.
33503 (ISA_HAS_DLSA): Likewise.
33504 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
33505 * config/mips/predicates.md (const_immlsa_operand): New predicate.
33507 2015-01-15 Martin Liska <mliska@suse.cz>
33510 * optc-save-gen.awk: Add support for array types.
33512 2015-01-15 Richard Biener <rguenther@suse.de>
33514 PR middle-end/64365
33515 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
33516 for MEM_REF access functions with the same base can never partially
33519 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
33521 * common.opt: New option -fstack-protector-explicit.
33522 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
33523 (stack_protect_decl_phase): Handle stack_protect attribute for
33524 explicit stack protection requests.
33525 (expand_used_vars): Similarly.
33526 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
33527 * doc/extend.texi: Add documentation for "stack_protect" attribute.
33528 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
33530 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
33533 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
33535 (sh_extending_set_of_reg): New struct.
33536 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
33537 sh_remove_reg_dead_or_unused_notes): New Declarations.
33538 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
33539 sh_find_extending_set_of_reg, sh_split_tst_subregs,
33540 sh_extending_set_of_reg::use_as_extended_reg): New functions.
33541 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
33542 convert to insn_and_split and use new function sh_split_tst_subregs.
33544 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
33546 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
33548 (Optimization Options): Move -fuse-ld documentation to...
33549 (Link Options): ...here.
33551 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
33553 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
33555 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
33556 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
33557 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
33558 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
33559 instead of ZR for the memory operand of LL/SC.
33560 (compare_and_swap_12, sync_add<mode>): Likewise.
33561 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
33562 (sync_new_<optab>_12, sync_nand_12): Likewise.
33563 (sync_old_nand_12, sync_new_nand_12): Likewise.
33564 (sync_sub<mode>, sync_old_add<mode>): Likewise.
33565 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
33566 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
33567 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
33568 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
33569 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
33570 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
33571 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
33572 * doc/md.texi (ZC): Update description.
33574 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
33576 * builtins.c (expand_builtin_atomic_exchange): Remove error when
33577 memory model is CONSUME.
33578 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
33579 expand_builtin_atomic_store): Change invalid memory model errors to
33581 (expand_builtin_atomic_clear): Change invalid model errors to warnings
33582 and issue warning for CONSUME.
33584 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
33586 * lto-cgraph: Update function comments for
33587 lto_symtab_encoder_encode_*.
33589 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
33591 * Makefile.in (site.exp): Do not set ENABLE_LTO.
33593 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
33595 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
33596 * lto-cgraph.c (select_what_to_stream): Remove argument, use
33597 lto_stream_offload_p instead.
33598 * lto-streamer.h (select_what_to_stream): Remove argument.
33599 * passes.c (ipa_write_summaries): Likewise.
33600 * tree-pass.h (ipa_write_summaries): Likewise.
33602 2015-01-14 Richard Biener <rguenther@suse.de>
33604 PR tree-optimization/59354
33605 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
33606 groups larger than the slp group size as having gaps.
33608 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
33610 PR middle-end/59448
33611 * builtins.c (get_memmodel): Promote consume to acquire always.
33613 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
33616 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
33619 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
33622 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
33624 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
33625 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
33626 AVX512VBMI, as it implies AVX512BW.
33628 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
33631 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
33632 (vec_unpacks_hi_v16sf): Ditto.
33634 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33636 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
33639 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33641 * doc/invoke.texi (mapcs): Mention deprecation.
33642 (mapcs-frame): Likewise.
33644 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
33647 * config/arm/arm.c (callee_saved_reg_p): Define.
33648 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
33649 register is callee saved instead of !call_used_regs[reg].
33650 (thumb1_compute_save_reg_mask): Likewise.
33652 2015-01-14 Hale Wang <hale.wang@arm.com>
33654 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
33657 2015-01-14 Richard Biener <rguenther@suse.de>
33660 * tree-inline.c (insert_debug_decl_map): Check destination
33661 function MAY_HAVE_DEBUG_STMTS.
33662 (insert_init_debug_bind): Likewise.
33663 (insert_init_stmt): Remove redundant check.
33664 (remap_gimple_stmt): Drop debug stmts if the destination
33665 function has var-tracking assignments disabled.
33667 2015-01-14 Martin Liska <mliska@suse.cz>
33669 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
33670 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
33672 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33675 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
33676 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
33678 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
33680 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
33681 level from an ARCH; do not inject the default.
33682 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
33683 MIPS_ISA_LEVEL_SPEC.
33684 (MIPS_ISA_NAN2008_SPEC): Update comment.
33685 (BASE_DRIVER_SELF_SPECS): Likewise.
33686 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
33687 MIPS_DEFAULT_ISA_LEVEL_SPEC.
33688 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
33689 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
33690 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
33692 2015-01-14 Richard Biener <rguenther@suse.de>
33694 PR tree-optimization/64493
33695 PR tree-optimization/64495
33696 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
33697 assign the proper vectorized PHI to the inner loop exit PHIs.
33699 2015-01-14 Joey Ye <joey.ye@arm.com>
33701 * config/arm/arm.c (arm_compute_save_reg_mask):
33702 Do not save lr in case of tail call.
33703 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
33705 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
33707 * tree-vrp.c (check_array_ref): Emit more warnings
33708 for warn_array_bounds >= 2.
33709 * common.opt: New option -Warray-bounds=.
33710 * doc/invoke.texi: Document -Warray-bounds=.
33712 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
33714 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
33715 (mforbid-fp-as-gp): Remove.
33717 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
33718 (nds32_symbol_load_store_p): Remove.
33719 (nds32_fp_as_gp_check_available): Clean up implementation.
33720 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
33722 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
33723 fp-as-gp and ex9 cases.
33725 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
33727 * tree-profile.c (init_ic_make_global_vars): Drop workaround
33728 for bintuils bug 14342.
33729 (init_ic_make_global_vars): Likewise.
33730 (gimple_init_edge_profiler): Likewise.
33731 (gimple_gen_ic_func_profiler): Likewise.
33733 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33735 * ipa-inline.c (inline_small_functions): Swap the operands in
33738 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
33741 * ipa-inline-analysis.c (node_growth_cache): Remove.
33742 (initialize_growth_caches): Do not initialize it.
33743 (free_growth_caches): Do not free it.
33744 (do_estimate_growth): Rename to ...
33745 (estimate_growth): ... this one; drop growth cache code.
33746 (growth_likely_positive): Always go the heuristics way.
33747 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
33748 (reset_edge_caches): Do not reset node growth.
33749 (heap_edge_removal_hook): Do not maintain cache.
33750 (inline_small_functions): Likewise; strenghten sanity check.
33751 (ipa_inline): Do not maintain caches.
33752 * ipa-inline.h (node_growth_cache): Remove.
33753 (do_estimate_growth): Remove to ...
33754 (estimate_growth): this one; remove inline version.
33755 (reset_node_growth_cache): Remove.
33757 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
33760 * ipa-inline.c (inline_small_functions): Update callee keys after
33761 resolving speculation
33762 (inline_small_functions): Always check monotonicity of the queue.
33764 2015-01-13 Marek Polacek <polacek@redhat.com>
33766 PR middle-end/64391
33767 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
33769 2015-01-13 Jakub Jelinek <jakub@redhat.com>
33771 PR rtl-optimization/64286
33772 * ree.c (combine_reaching_defs): Move part of comment earlier,
33773 remove !SCALAR_INT_MODE_P check.
33774 (add_removable_extension): Don't add vector mode
33775 extensions if all uses of the source register aren't the same
33778 2015-01-13 Renlin Li <renlin.li@arm.com>
33780 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
33781 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
33783 2015-01-13 Martin Liska <mliska@suse.cz>
33785 * ipa-icf.c (sem_function::equals_private): Call new functions
33786 cl_target_option_print_diff and cl_optimization_print_diff.
33787 * optc-save-gen.awk (cl_target_option_print_diff): New function.
33788 (cl_optimization_print_diff): Likewise.
33789 * opth-gen.awk: Likewise.
33791 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
33793 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
33794 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
33795 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
33796 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
33797 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
33798 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
33800 2015-01-13 Andrew Pinski <apinski@cavium.com>
33802 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
33803 instead of src mode.
33805 2015-01-13 Richard Biener <rguenther@suse.de>
33808 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
33811 2015-01-13 Andrew Pinski <apinski@cavium.com>
33813 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
33815 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
33817 2015-01-13 Jakub Jelinek <jakub@redhat.com>
33819 PR middle-end/63974
33820 * cfgexpand.c (expand_computed_goto): Don't call
33821 convert_memory_address here.
33823 2015-01-13 Richard Biener <rguenther@suse.de>
33825 PR tree-optimization/64406
33826 * tree-loop-distibution.c (pass_loop_distribution::execute):
33827 Reset the SCEV hashtable if we distributed anything.
33829 2015-01-13 Richard Biener <rguenther@suse.de>
33831 PR tree-optimization/64404
33832 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
33833 SLP types for CSEd loads.
33835 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
33837 PR tree-optimization/64436
33838 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
33839 merge of two symbolic numbers for a bitwise OR to ...
33840 (perform_symbolic_merge): This. Also fix computation of the range and
33841 end of the symbolic number corresponding to the result of a bitwise OR.
33843 2015-01-13 Richard Biener <rguenther@suse.de>
33845 PR tree-optimization/64568
33846 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
33847 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
33849 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33851 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
33852 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
33854 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33856 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
33857 target-specific symbol_ref flag.
33858 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
33859 resides in rodata section.
33860 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
33861 (nds32_encode_section_info): New function.
33863 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33865 * config/nds32/nds32.md (call): Use pseudo instruction bal which
33866 clobbers TA_REGNUM if large code model is specified.
33867 (call_register): Likewise.
33868 (call_immediate): Likewise.
33869 (call_value): Likewise.
33870 (call_value_register): Likewise.
33871 (call_value_immediate): Likewise.
33873 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33875 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
33876 (TARGET_CMODEL_MEDIUM): New macro.
33877 (TARGET_CMODEL_LARGE): New macro.
33878 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
33879 code model setting in assembly code.
33881 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33883 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
33884 Remove MASK_GP_DIRECT flag.
33885 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
33886 one of the multilib default options.
33887 * config/nds32/nds32.opt (mgp-direct): Remove.
33888 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
33889 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
33891 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33893 * config/nds32/nds32.opt (mcmodel): Add new option.
33894 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
33895 to describe code model.
33897 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
33900 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
33902 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
33904 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
33905 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33906 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
33907 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
33908 __builtin_sh_set_fpscr.
33910 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
33912 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
33913 after a funtion name just to indicate it is a function.
33914 ([-fsanitize-undefined-trap-on-error]): Likewise.
33915 ([-fdbg-cnt=]): Likewise.
33916 ([-mmemcpy]): Likewise.
33917 ([-mflush-func]): Likewise.
33918 ([-msynci]): Likewise.
33920 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
33922 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
33925 2015-01-12 Jakub Jelinek <jakub@redhat.com>
33927 PR tree-optimization/64563
33928 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
33929 instead of != VR_VARYING.
33932 * config/i386/i386.c (ix86_expand_prologue): Add
33933 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
33935 PR tree-optimization/64454
33936 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
33937 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
33938 for signed or [0, op1 - 1] for unsigned modulo.
33939 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
33940 even if op1 does not satisfy integer_pow2p.
33943 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
33945 2015-01-12 Jeff Law <law@redhat.com>
33948 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
33949 (trunchiqi2, truncsihi2): Similarly.
33951 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
33952 rather than calling F.
33954 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
33956 * tsan.c (instrument_expr): Use force_gimple_operand.
33957 Use may_be_nonaddressable_p instead of is_gimple_addressable.
33959 2015-01-12 Richard Biener <rguenther@suse.de>
33961 PR tree-optimization/64530
33962 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
33965 2015-01-12 Richard Biener <rguenther@suse.de>
33967 PR middle-end/64357
33968 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
33971 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33973 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
33974 Cortex-A17 tuning parameters.
33975 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
33977 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33979 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
33980 * config/arm/arm.c (arm_macro_fusion_p): New function.
33981 (arm_macro_fusion_pair_p): Likewise.
33982 (TARGET_SCHED_MACRO_FUSION_P): Define.
33983 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
33984 (ARM_FUSE_NOTHING): Likewise.
33985 (ARM_FUSE_MOVW_MOVT): Likewise.
33986 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
33987 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
33988 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
33989 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
33990 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
33991 arm_cortex_a5_tune): Specify fuseable_ops value.
33993 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
33996 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
33997 test for PIE with copy reloc.
33998 * configure: Regenerated.
34000 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34002 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
34004 (arm_tls_descseq_addr): Likewise.
34005 (arm_gen_movmemqi): Likewise.
34006 (arm_expand_epilogue_apcs_frame): Likewise.
34007 (arm_expand_epilogue): Likewise.
34008 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
34011 2015-01-12 Martin Liska <mliska@suse.cz>
34014 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
34015 volatility for correct operands.
34017 2015-01-12 Martin Liska <mliska@suse.cz>
34019 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
34020 indication that a function is not leaf.
34021 (sem_function::compare_polymorphic_p): Likewise.
34023 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34025 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
34026 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
34027 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
34028 fold-const.h, tree-check.h.
34030 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
34034 * ipa-inline.c (compute_uninlined_call_time,
34035 compute_inlined_call_time): Use counts for extra precision when
34037 (big_speedup_p): Fix formating.
34038 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
34039 (relative_time_benefit): Remove.
34040 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
34041 merge guessed and read profile paths.
34042 (inline_small_functions): Count only !optimize_size functions into
34043 initial size; be more lax about sanity check when profile is used;
34044 be sure to update inlined function profile when profile is read.
34046 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
34049 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
34050 cost when edge becomes direct.
34051 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
34052 is resolved or when introducing new speculation.
34054 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
34058 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
34059 '||' to fix typo issue.
34061 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
34062 accept and return NULL.
34064 2015-01-12 Martin Liska <mliska@suse.cz>
34066 * cgraph.c (cgraph_edge::remove_callee): Move function to header
34067 file for being inlined.
34068 (cgraph_set_edge_callee): Delete.
34069 (cgraph_edge::redirect_callee): Move function to header file
34071 (cgraph_edge::make_direct): Use new function.
34072 (cgraph_edge::dump_edge_flags): New function created from
34073 static dump_edge_flags function.
34074 (cgraph_node::dump): Use new function.
34075 (cgraph_edge::verify_count_and_frequency): New function created
34076 from verify_edge_count_and_frequency.
34077 (cgraph_edge::verify_corresponds_to_fndecl): New function created
34078 from verify_edge_corresponds_to_fndecl.
34079 (verify_edge_corresponds_to_fndecl): Delete.
34080 (cgraph_node::verify_node): Use new function.
34081 * cgraph.h (cgraph_edge::set_callee): New function.
34082 (cgraph_edge::dump_edge_flags): Likewise.
34083 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
34085 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
34087 * ipa-utils.c (estimate_function_body_sizes): Do not
34088 free node params when called late with early=true.
34090 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
34092 * doc/md.texi (Instruction Patterns): Rewrite text for
34094 (Example): Likewise.
34096 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
34098 * doc/invoke.texi (Option Summary): Break long lines.
34099 [(-fdiagnostics-color)]: Put long literal in @smallexample
34101 [(-fsanitize-recover)]: Likewise.
34102 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
34103 [(-ffast-math)]: Likewise.
34104 [(--param max-inline-insns-recursive)]: Likewise.
34105 [(--param max-inline-recursive-depth)]: Likewise.
34106 [(-mno-text-section-literals)]: Likewise.
34108 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
34110 * doc/install.texi: Update for libgomp being renamed from "GNU
34111 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
34113 * doc/sourcebuild.texi: Likewise.
34115 2015-01-10 Anthony Green <green@moxielogic.com>
34117 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
34118 mul.x availability for moxiebox configuration.
34120 2015-01-09 Anthony Green <green@moxielogic.com>
34122 * config/moxie/moxie.md: Tabify assembly output.
34124 2015-01-09 Anthony Green <green@moxielogic.com>
34126 * config/moxie/moxie.md (CC_REG): Correct register definition.
34128 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
34130 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
34131 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
34134 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
34136 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
34138 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
34139 Jakub Jelinek <jakub@redhat.com>
34141 PR middle-end/64412
34142 * lto-streamer.h (lto_stream_offload_p): New declaration.
34143 * lto-streamer.c (lto_stream_offload_p): New variable.
34144 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
34145 at the same time as section_name_prefix.
34146 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
34147 if lto_stream_offload_p.
34148 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
34149 stream TREE_TARGET_OPTION if lto_stream_offload_p.
34150 (write_ts_function_decl_tree_pointers): Don't
34151 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
34152 * tree-streamer-in.c (unpack_value_fields): Don't stream
34153 TREE_TARGET_OPTION in if ACCEL_COMPILER.
34154 (lto_input_ts_function_decl_tree_pointers): Don't stream
34155 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
34156 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
34157 instead of section_name_prefix string comparisons.
34159 2015-01-09 Jakub Jelinek <jakub@redhat.com>
34161 PR rtl-optimization/64536
34162 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
34165 2015-01-09 Michael Collison <michael.collison@linaro.org>
34167 PR tree-optimization/64322
34168 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
34169 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
34171 2015-01-09 Tom de Vries <tom@codesourcery.com>
34173 PR rtl-optimization/64539
34174 * regcprop.c (kill_clobbered_values): Factor out of ...
34175 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
34176 instead of note_stores with kill_clobbered_value.
34178 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
34180 * ginclude/unwind-arm-common.h: Revert previous commit.
34182 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
34184 * config.gcc (arm*-*-freebsd*): New configuration.
34185 * config/arm/freebsd.h: New file.
34186 * config.host: Add extra components for arm*-*-freebsd*.
34187 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
34188 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
34190 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34192 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
34194 * config/rs6000/t-rtems: Add e6500 multilibs.
34196 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34198 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
34201 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34203 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
34204 MULTILIB_EXCEPTIONS.
34206 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34208 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
34209 MULTILIB_EXCEPTIONS.
34211 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34213 * config/arm/t-rtems-eabi: Rename to...
34214 * config/arm/t-rtems: ...this.
34215 * config/arm/rtems-eabi.h: Rename to...
34216 * config/arm/rtems.h: ...this.
34217 * config.gcc (arm*-*-rtems*): Reflect changes above.
34219 2015-01-09 Richard Biener <rguenther@suse.de>
34221 PR tree-optimization/64410
34222 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
34224 (execute_update_addresses_taken): Deal with that.
34225 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
34226 loads/stores for complex variables.
34228 2015-01-09 Martin Liska <mliska@suse.cz>
34230 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
34232 (func_checker::compare_memory_operand): New function.
34233 (func_checker::compare_operand): Split case to newly
34235 (func_checker::compare_cst_or_decl): New function.
34236 (func_checker::compare_gimple_call): Identify
34238 (func_checker::compare_gimple_assign): Likewise.
34239 * ipa-icf-gimple.h: New function.
34241 2015-01-09 Martin Liska <mliska@suse.cz>
34244 * sreal.c (sreal::dump): Change unsigned format to signed for
34246 (sreal::to_double): Replace exp2 with scalbln.
34248 2015-01-09 Martin Liska <mliska@suse.cz>
34250 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
34251 * ipa-icf.c (sem_function::equals_private): Add support for target and
34252 (sem_item_optimizer::merge_classes): Remove redundant function
34253 optimization flags comparison.
34254 * tree.h (target_opts_for_fn): New function.
34256 2015-01-09 Tom de Vries <tom@codesourcery.com>
34258 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
34260 2015-01-09 Kito Cheng <kito@0xlab.org>
34262 PR rtl-optimization/64348
34263 * lra-constraints.c (split_reg): Fix caller-save store/restore
34264 instruction generation.
34266 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
34268 PR gcov-profile/61790
34269 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
34270 long long. Fallback to int64_t if host doesn't have long long and
34271 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
34273 2015-01-08 Jakub Jelinek <jakub@redhat.com>
34275 PR tree-optimization/63989
34276 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
34277 from 1000 to 10000.
34278 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
34279 (get_stridx): If we don't have a record for certain SSA_NAME,
34280 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
34281 constant offset, call get_stridx_plus_constant.
34282 (get_stridx_plus_constant): New function.
34283 (zero_length_string): Don't use get_stridx here.
34286 PR middle-end/64388
34287 * dse.c (struct insn_info): Mention frame_read set also
34288 before reload for tail calls on some targets.
34289 (scan_insn): Revert 2014-12-22 change. Set frame_read
34290 also before reload for tail calls if
34291 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
34292 instead of add_non_frame_wild_read for non-const/memset
34293 tail calls after reload.
34295 2015-01-08 Jason Merrill <jason@redhat.com>
34297 * ubsan.c (do_ubsan_in_current_function): New.
34298 (pass_ubsan::gate): Use it.
34299 * ubsan.h: Declare it.
34300 * convert.c (convert_to_integer): Use it.
34302 2015-01-08 Jakub Jelinek <jakub@redhat.com>
34305 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
34306 compare_code when it is unconditionally overwritten afterwards.
34307 Use ix86_reverse_condition instead of reverse_condition. Don't
34308 change code if *reverse_condition* returned UNKNOWN and don't
34309 swap ct/cf and negate diff in that case.
34311 2015-01-08 Mike Stump <mikestump@comcast.net>
34313 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
34314 (pass_tsan_O0::gate): Likewise.
34315 * extend.texi (Function Attributes): Add no_sanitize_thread
34318 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
34320 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
34321 for registering builtins.
34322 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
34323 add -fopenmp to the argv_obstack used when invoking
34324 compile_for_target.
34326 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
34327 add "-m32" or "-m64" to argv_obstack.
34328 (generate_host_descr_file): Likewise, when invoking host_compiler.
34329 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
34332 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
34334 * config/sh/sh-mem.cc: Use constant as second operand when emitting
34337 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
34340 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
34341 constant load if constant operand fits into I08.
34343 2015-01-08 Jakub Jelinek <jakub@redhat.com>
34346 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
34347 and TREE_THIS_VOLATILE for MEM_REFs.
34348 (build5_stat): Fix up initialization of TREE_READONLY and
34349 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
34351 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
34354 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
34355 of r for the second alternative of the destination operand.
34357 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
34360 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
34362 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
34364 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
34366 ([-fivar-visibility], [-fvisibility]): Likewise.
34368 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
34370 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
34371 the file where @code, @command, etc is more appropriate.
34373 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
34375 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
34376 of -mrecip= documentation.
34378 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34381 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
34382 correct reload handler if -m32 -mpowerpc64 is used.
34384 2015-01-06 Tom de Vries <tom@codesourcery.com>
34386 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
34388 2015-01-08 Christian Bruel <christian.bruel@st.com>
34391 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
34393 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
34395 PR tree-optimization/63259
34396 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
34397 if optab exists for 16bit byteswap.
34399 2015-01-06 Jakub Jelinek <jakub@redhat.com>
34401 * opts.c (common_handle_option): Add support for
34402 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
34403 * doc/invoke.texi: Document -fno-sanitize=all,
34404 -f{,no-}sanitize-recover=all. Document that
34405 -fsanitize=float-cast-overflow is not enabled
34406 by -fsanitize=undefined. Fix up documentation
34407 of -f{,no-}sanitize-recover.
34409 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
34411 * config.gcc: Add Visium support.
34412 * configure.ac: Likewise.
34413 * configure: Regenerate.
34414 * doc/extend.texi (interrupt attribute): Add Visium.
34415 * doc/invoke.texi: Document Visium options.
34416 * doc/install.texi: Document Visium target.
34417 * doc/md.texi: Document Visium constraints.
34418 * common/config/visium: New directory.
34419 * config/visium: Likewise.
34421 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
34423 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
34424 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
34426 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
34428 * combine.c (combine_validate_cost): Do not count the cost of a
34429 split I2 twice. Do not display it twice in the dump, either.
34431 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
34433 Revert parts of r219199.
34434 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
34436 ([-Wtraditional]): Restore markup on <limits.h>.
34438 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
34441 * doc/invoke.texi: Document -Wsuggest-override.
34443 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
34445 PR rtl-optimization/64287
34446 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
34447 (process_options): Disable flag_ipa_ra if profiling.
34449 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
34451 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
34453 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
34455 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
34456 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
34457 put under #if TARGET_LOOPS guard.
34459 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
34461 * config/i386/i386.c (output_387_binary_op): Use std::swap.
34463 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
34465 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
34466 * rtl.h (refers_to_regno_p): Add overload.
34468 * bt-load.c: Likewise.
34469 * combine.c: Likewise.
34470 * df-scan.c: Likewise.
34471 * sched-deps.c: Likewise.
34472 * config/s390/s390.c: Likewise.
34473 * config/m32r/m32r.c: Likewise.
34474 * config/rs6000/spe.md: Likewise.
34475 * config/rs6000/rs6000.c: Likewise.
34476 * config/pa/pa.c: Likewise.
34477 * config/stormy16/stormy16.c: Likewise.
34478 * config/cris/cris.c: Likewise.
34479 * config/arc/arc.md: Likewise.
34480 * config/arc/arc.c: Likewise.
34481 * config/sh/sh.md: Likewise.
34482 * config/sh/sh.c: Likewise.
34483 * config/frv/frv.c: Likewise.
34485 2015-01-05 Jakub Jelinek <jakub@redhat.com>
34488 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
34489 call as cleanup of the whole body.
34490 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
34491 * tsan.c (replace_func_exit): New function.
34492 (instrument_func_exit): Moved earlier.
34493 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
34494 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
34496 (tsan_pass): Don't call instrument_func_exit.
34497 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
34498 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
34502 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
34503 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
34504 it to libubsan handler instead of EXPR. Fold comparisons earlier,
34505 if the result is integer_zerop, return NULL_TREE.
34506 * convert.c (convert_to_integer): Pass expr as ARG.
34508 PR tree-optimization/64465
34509 * tree-inline.c (redirect_all_calls): During inlining
34510 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
34511 changed the stmt to a non-throwing call.
34513 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
34515 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
34516 etc markup throughout the file.
34518 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
34520 Enable experimental TSAN support for Ada.
34521 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
34523 2015-01-05 Jakub Jelinek <jakub@redhat.com>
34525 PR tree-optimization/64494
34526 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
34527 clear SSA_NAME_ANTI_RANGE_P flag.
34529 2015-01-05 Marek Polacek <polacek@redhat.com>
34531 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
34533 2015-01-05 Jakub Jelinek <jakub@redhat.com>
34535 Update copyright years.
34537 * gcc.c (process_command): Update copyright notice dates.
34538 * gcov-dump.c: Ditto.
34540 * doc/cpp.texi: Bump @copying's copyright year.
34541 * doc/cppinternals.texi: Ditto.
34542 * doc/gcc.texi: Ditto.
34543 * doc/gccint.texi: Ditto.
34544 * doc/gcov.texi: Ditto.
34545 * doc/install.texi: Ditto.
34546 * doc/invoke.texi: Ditto.
34548 * auto-profile.c, auto-profile.h: Fix up Copyright line.
34550 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
34552 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
34554 ([-fvtable-verify], [-fvtv-debug]): Likewise.
34555 ([-Wabi]): Likewise.
34556 ([-fmessage-length]): Likewise.
34557 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
34558 ([-Wno-discarded-qualifiers]): Likewise.
34559 ([-Wnodiscarded-array-qualifiers]): Likewise.
34560 ([-Wno-virtual-move-assign]): Likewise.
34561 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
34562 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
34563 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
34564 ([-fsanitize-undefined-trap-on-error]): Likewise.
34565 ([-floop-interchange]): Likewise.
34566 ([-ftree-coalesce-inlined-vars]): Likewise.
34567 ([-fvect-cost-model]): Likewise.
34568 ([-flto]): Likewise.
34569 ([--param]): Likewise.
34570 (Spec Files): Likewise.
34571 ([-mstrict-align]): Likewise.
34572 ([-mfix-cortex-a53-835769]): Likewise.
34573 ([-march], [-mtune]): Likewise.
34574 ([-mpic-register]): Likewise.
34575 ([-munaligned-access]): Likewise.
34576 ([-msp8]): Likewise.
34577 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
34578 (AVR Built-in Macros): Likewise.
34579 ([-mpreferred-stack-boundary]): Likewise.
34580 ([-mtune-crtl]): Likewise.
34581 ([-mashf]): Likewise.
34582 ([-mmcu=]): Likewise.
34583 ([-minrt]): Likewise.
34584 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
34585 ([-mupper-regs]): Likewise.
34586 ([-matomic-model]): Likewise.
34587 ([-mdiv]): Likewise.
34588 ([-mzdcbranch]): Likewise.
34589 ([-mdisable-callt]): Likewise.
34590 ([-msoft-float]): Likewise.
34591 ([-m8byte-align]): Likewise.
34592 ([-fstack-reuse]): Likewise.
34594 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34596 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
34597 Fix markup, light copy-editing.
34598 ([-fauto-profile]): Rewrite to fix formatting and content
34601 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34603 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
34604 Copy-edit description.
34605 ([-fisolate-erroneous-paths-attribute]): Likewise.
34606 * common.opt (fisolate-erroneous-paths-dereference):
34607 Copy-edit description.
34608 (fisolate-erroneous-paths-attribute): Likewise.
34610 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34612 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
34615 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34617 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
34618 ([-fvtv-debug]): Likewise.
34619 ([-Wc++-compat]): Likewise.
34620 ([-Wc++11-compat]): Likewise.
34621 ([-Wc++14-compat]): Likewise.
34622 ([-Wno-sized-deallocation]): Likewise.
34623 ([-femit-class-debug-always]): Likewise.
34624 ([-femit-struct-debug-detailed]): Likewise.
34625 ([-fno-keep-inline-dllexport]): Likewise.
34626 ([-fira-algorithm]): Likewise.
34627 ([-fira-region]): Likewise.
34628 ([-flra-remat]): Likewise.
34629 ([-fipa-ra]): Likewise.
34630 ([-fhoist-adjacent-loads]): Likewise.
34631 ([-fisolate-erroneous-paths-dereference]): Likewise.
34632 ([-fisolate-erroneous-paths-attribute]): Likewise.
34633 ([-ftree-switch-conversion]): Likewise.
34634 ([-ftree-tail-merge]): Likewise.
34635 ([-ftree-loop-if-convert]): Likewise.
34636 ([-ftree-loop-if-convert-stores]): Likewise.
34637 ([-ftree-loop-distribution]): Likewise.
34638 ([-ftree-loop-distribute-patterns]): Likewise.
34639 ([-flto-compression-level]): Likewise.
34640 ([-flto-report]): Likewise.
34641 ([-flto-report-wpa]): Likewise.
34642 ([-fuse-linker-plugin]): Likewise.
34643 ([-mfix-cortex-a53-835769]): Likewise.
34644 ([-mno-fix-cortex-a53-835769]): Likewise.
34645 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
34646 explicit listing; add a note to the discussion indicating they
34647 exist. Reorder table to group similar options. Add missing
34648 @opindex entries. Add @need commands throughout the table to
34649 allow it to be split across multiple pages.
34650 ([-m8bit-idiv]): Fix @opindex.
34651 ([-mavx256-split-unaligned-load]): Likewise.
34652 ([-mavx256-split-unaligned-store]): Likewise.
34653 ([-mstack-protector-guard]): Likewise.
34654 ([-mcpu=]): Likewise.
34655 ([-mcpu]): Likewise.
34656 ([-mpointer-size=]): Likewise.
34658 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
34660 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
34661 instead of `m' constraint. Likewise for unnamed movb comparison
34662 patterns using reg_before_reload_operand predicate.
34663 * config/pa/predicates.md (reg_before_reload_operand): Tighten
34664 predicate to reject register index and LO_SUM DLT memory forms
34667 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
34669 * doc/invoke.texi (Option Summary): Fix spelling of
34670 -fdevirtualize-at-ltrans.
34671 ([-fdevirtualize]): Fix markup.
34672 ([-fdevirtualize-speculatively]): Fix typo.
34673 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
34674 implementor-speaky.
34675 * common.opt (fdevirtualize-at-ltrans): Likewise.
34676 * ipa-devirt.c: Fix typos in comments throughout the file.
34677 (ipa_devirt): Fix typos in format strings for dump output.
34679 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
34681 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
34682 discussion of defaults, light copy-editing.
34684 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
34686 * tsan.c (instrument_expr): corrected previous checkin.
34688 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
34690 Instrument bit field and unaligned accesses for TSAN.
34691 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
34692 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
34693 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
34694 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
34695 unaligned memory regions.
34697 2015-01-01 Anthony Green <green@moxielogic.com>
34699 * config/moxie/predicates.md (moxie_general_movsrc_operand):
34700 Restrict move source register offsets to 16 bits.
34702 Copyright (C) 2015 Free Software Foundation, Inc.
34704 Copying and distribution of this file, with or without modification,
34705 are permitted in any medium without royalty provided the copyright
34706 notice and this notice are preserved.