1 2015-10-28 Jason Merrill <jason@redhat.com>
3 * Makefile.in (TAGS): Include libcpp and libiberty.
5 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
7 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
8 (extract_omp_for_data): Remove OpenACC special handling of
11 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
12 (struct parallel): Update comment.
13 (nvptx_reorg): Likewise.
14 (nvptx_neuter): Cleanup whitespace.
16 2015-10-28 Richard Henderson <rth@redhat.com>
18 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
20 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23 * config/avr/predicates.md (low_io_address_operand): Don't
24 consider MODE when computing upper bound.
25 (io_address_operand): Likewise.
27 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
29 * fold-const.c (operand_equal_p): Do not verify that types are
30 compatible for MEM_REFs.
32 2015-10-28 Richard Biener <rguenther@suse.de>
34 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
35 in simplifying VEC_COND_EXPR conditions.
37 2015-10-28 Tom de Vries <tom@codesourcery.com>
39 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
40 into vi_next of a full_var.
42 2015-10-28 Tom de Vries <tom@codesourcery.com>
44 * tree-ssa-structalias.c (new_var_info, make_heapvar)
45 (make_constraint_from_restrict, make_constraint_from_global_restrict)
46 (create_function_info_for, create_variable_info_for_1)
47 (create_variable_info_for): Add and handle add_id parameter.
48 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
49 (init_base_vars): Add extra argument to calls to new_var_info.
50 (get_vi_for_tree): Add extra argument to call to
51 create_variable_info_for.
52 (process_constraint, do_deref, process_all_all_constraints): Add extra
53 argument to calls to new_scalar_tmp_constraint_exp.
54 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
55 argument to calls to make_heapvar.
56 (make_restrict_var_constraints): Add extra argument to call to
57 make_constraint_from_global_restrict.
58 (intra_create_variable_infos): Add extra argument to call to
59 create_variable_info_for_1.
60 (ipa_pta_execute): Add extra argument to call to
61 create_function_info_for.
63 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
65 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
66 (sibcall_value): Likewise.
68 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
70 * config/nvptx/nvptx.h (struct machine_function): Add
72 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
73 nvptx_expand_oacc_join): Declare.
74 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
75 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
76 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
77 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
78 UNSPECV_JOINING, UNSPECV_JOIN): New.
79 (BITS, BITD): New mode iterators.
80 (br_true_uni, br_false_uni): New.
81 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
82 (oacc_dim_size, oacc_dim_pos): New.
83 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
84 (oacc_fork, oacc_join): New.
85 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
86 (worker_load<mode>, worker_store<mode>): New.
88 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
89 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
90 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
91 worker_bcast_sym): New.
92 (nvptx_option_override): Initialize worker broadcast buffer.
93 (nvptx_emit_forking, nvptx_emit_joining): New.
94 (nvptx_init_axis_predicate): New.
95 (nvptx_declare_function_name): Init axis predicates.
96 (nvptx_expand_call): Add fork/join markers around routine call.
97 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
98 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
99 (nvptx_gen_vcast): New.
100 (struct wcast_data_t): New.
101 (enum propagate_mask): New.
102 (nvptx_gen_wcast): New.
103 (nvptx_print_operand): Add 'S' case.
104 (struct parallel): New.
105 (parallel::parallel, parallel::~parallel): New.
106 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
107 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
108 nvptx_find_par, nvptx_discover_pars): New.
109 (nvptx_propagate): New.
110 (vprop_gen, nvptx_vpropagate): New.
111 (wprop_gen, nvptx_wpropagate): New.
113 (nvptx_single, nvptx_skip_par): New.
114 (nvptx_process_pars, nvptx_neuter_pars): New.
115 (ntptx_reorg): Split blocks, generate parallel structure, apply
117 (nvptx_cannot_copy_insn_p): New.
118 (nvptx_file_end): Emit worker broadcast decl.
119 (nvptx_goacc_fork_join): New.
120 (TARGET_CANNOT_COPY_INSN_P): Override.
121 (TARGET_GOACC_FORK_JOIN): Override.
123 2015-10-28 Richard Biener <rguenther@suse.de>
125 * fold-const.c (negate_expr_p): Adjust the division case to
126 properly avoid introducing undefined overflow.
127 (fold_negate_expr): Likewise.
129 2015-10-28 Richard Biener <rguenther@suse.de>
131 PR tree-optimization/65962
132 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
133 Avoid creating loop carried dependences also for outer loops
134 of the loop a use to replace is in.
136 2015-10-28 Richard Biener <rguenther@suse.de>
138 * common.opt (fchecking): New flag controlling flag_checking.
139 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
140 * timevar.c (timer::print): Adjust output.
141 * doc/invoke.texi (fchecking): Document.
143 2015-10-28 Richard Biener <rguenther@suse.de>
146 * fold-const.c (negate_expr_p): We cannot negate plus or minus
147 if overflow is not wrapping. Likewise multiplication unless
148 one operand is constant and not power of two.
149 (fold_negate_expr): Adjust accordingly.
151 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
153 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
155 (is_oacc_parallel, is_oacc_kernels): New.
156 (enclosing_target_ctx): May return NULL.
157 (ctx_in_oacc_kernels_region): New.
158 (check_oacc_kernel_gwv): New.
159 (oacc_loop_or_target_p): Delete.
160 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
161 operands. Strip reductions fro kernels.
162 (scan_omp_target): Don't calculate gwv mask.
163 (lower_oacc_head_mark, lower_oacc_loop_marker,
164 lower_oacc_head_tail): New.
165 (struct oacc_collapse): New.
166 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
167 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
168 Remove OpenACC handling.
169 (expand_oacc_for): New.
170 (expand_omp_for): Call expand_oacc_for.
171 (lower_omp_for): Call lower_oacc_head_tail.
173 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
175 * attribs.c (check_attribute_tables): New function, broken out from...
176 (init_attributes): Use it.
177 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
178 gcc_checking_assert and checking_* functions to eliminate
179 ENABLE_CHECKING conditionals.
180 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
181 (pass_expand::execute): Likewise.
182 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
183 * cgraphunit.c (mark_functions_to_output): Likewise.
184 (cgraph_node::expand_thunk): Likewise.
185 (symbol_table::compile): Likewise.
186 * ddg.c (add_cross_iteration_register_deps): Likewise.
187 (create_ddg_all_sccs): Likewise.
188 * df-core.c (df_finish_pass, df_analyze): Likewise.
189 * diagnostic-core.h: Likewise.
190 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
191 * dominance.c (calculate_dominance_info): Likewise.
192 * dwarf2out.c (add_AT_die_ref): Likewise.
193 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
194 (loc_list_from_tree, gen_lexical_block_die): Likewise.
195 gen_type_die_with_usage, gen_type_die): Likewise.
196 (dwarf2out_decl): Likewise.
197 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
198 * except.c (duplicate_eh_regions): Likewise.
199 * fwprop.c (register_active_defs, update_df_init): Likewise.
200 (fwprop_init, fwprop_done): Likewise.
201 (update_uses): Likewise.
202 * ggc-page.c (ggc_grow): Likewise.
203 * gimplify.c (gimplify_body): Likewise.
204 (gimplify_hasher::equal): Likewise.
205 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
206 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
208 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
209 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
210 * hash-table.h (::find_empty_slot_for_expand): Likewise.
211 * ifcvt.c (if_convert): Likewise.
212 * ipa-cp.c (ipcp_propagate_stage): Likewise.
213 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
214 (odr_type_p, odr_types_equivalent_p): Likewise.
215 (add_type_duplicate, get_odr_type): Likewise.
216 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
217 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
218 (sem_item_optimizer::verify_classes): Likewise.
219 (sem_item_optimizer::traverse_congruence_split): Likewise.
220 (sem_item_optimizer::checking_verify_classes): New.
221 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
223 * cfgrtl.c (commit_edge_insertions): Likewise.
224 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
225 (rtl_flow_call_edges_add): Likewise.
226 * cgraph.c (symbol_table::create_edge): Likewise.
227 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
228 * cgraph.h (symtab_node): Likewise.
229 (symtab_node::checking_verify_symtab_nodes): Define.
230 (cgraph_node::checking_verify_cgraph_nodes): Define.
231 * cfghooks.h (checking_verify_flow_info): Define.
232 * cfgloop.h (checking_verify_loop_structure): Define.
233 * dominance.h (checking_verify_dominators): Define.
234 * et-forest.c: Fix comment.
235 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
236 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
237 ENABLE_CHECKING conditionals.
238 * ipa-inline-transform.c (save_inline_function_body): Likewise.
239 * ipa-inline.c (inline_small_functions): Likewise.
240 (early_inliner): Likewise.
241 * ipa-inline.h (estimate_edge_growth): Likewise.
242 * ipa-visibility.c (function_and_variable_visibility): Likewise.
243 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
244 (ipa_single_use): Likewise.
245 * ira-int.h: Likewise.
246 * ira.c (ira): Likewise.
247 * loop-doloop.c (doloop_optimize_loops): Likewise.
248 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
249 * loop-invariant.c (move_loop_invariants): Likewise.
250 * lra-assigns.c (lra_assign): Likewise.
251 * lra-constraints.c (lra_constraints): Likewise.
252 * lra-eliminations.c (lra_eliminate): Likewise.
253 * lra-int.h (struct lra_reg): Likewise.
254 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
255 (lra_create_live_ranges_1): Likewise.
256 * lra-remat.c (create_remat_bb_data): Likewise.
257 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
259 (check_rtl): Always define. Remove incorrect guard around
260 extract_constrain_insn call.
261 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
262 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
263 ENABLE_CHECKING conditionals.
264 * lto-streamer-out.c (DFS::DFS): Likewise.
265 (lto_output): Likewise.
266 * lto-streamer.c (lto_streamer_init): Likewise.
267 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
268 expand_omp_target, execute_expand_omp): Likewise.
269 (lower_omp_target): Likewise.
270 * passes.c (execute_function_todo): Likewise.
271 (execute_todo, execute_one_pass): Likewise.
272 (verify_curr_properties): Always define.
273 * predict.c (tree_estimate_probability: Use flag_checking,
274 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
275 ENABLE_CHECKING conditionals.
276 (propagate_freq): Likewise.
277 * pretty-print.c (pp_format): Likewise.
278 * real.c (real_to_decimal_for_mode): Likewise.
279 * recog.c (split_all_insns): Likewise.
280 * regcprop.c (kill_value_one_regno): Likewise.
281 (copy_value): Likewise.
282 (validate_value_data): Define unconditionally.
283 * reload.c: Fix comment.
284 * timevar.c: Include options.h
285 * tree-ssa.h (checking_verify_ssa): Define.
286 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
287 * sched-deps.c (CHECK): Remove unused macro.
288 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
289 gcc_checking_assert and checking_* functions to eliminate
290 ENABLE_CHECKING conditionals.
291 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
292 * sel-sched.c (struct moveop_static_params): Likewise.
293 (find_best_reg_for_expr, move_cond_jump): Likewise.
294 (move_op_orig_expr_not_found): Likewise.
295 (code_motion_process_successors, move_op): Likewise.
296 * ssa-iterators.h (first_readonly_imm_use): Likewise.
297 (next_readonly_imm_use): Likewise.
298 * store-motion.c (compute_store_table): Likewise.
299 * symbol-summary.h (function_summary::function_summary): Likewise.
300 * target.h (cumulative_args_t): Likewise.
301 (get_cumulative_args, pack_cumulative_args): Likewise.
302 * timevar.c: (timer::print): Likewise.
303 * trans-mem.c (ipa_tm_execute): Likewise.
304 * tree-cfg.c (move_stmt_op): Likewise.
305 (move_sese_region_to_fn): Likewise.
306 (gimple_flow_call_edges_add): Likewise.
307 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
309 * tree-eh.c (remove_unreachable_handlers): Likewise.
310 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
311 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
312 * tree-into-ssa.c (update_ssa): Likewise.
313 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
314 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
315 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
316 * tree-predcom.c (suitable_component_p): Likewise.
317 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
318 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
319 * tree-ssa-live.c (verify_live_on_entry): Likewise.
320 * tree-ssa-live.h (register_ssa_partition): Likewise.
321 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
322 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
323 (tree_transform_and_unroll_loop): Likewise.
324 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
325 * tree-ssa-operands.c (get_expr_operands): Likewise.
326 * tree-ssa-propagate.c (replace_exp_1): Likewise.
327 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
328 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
329 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
330 * tree-ssanames.c (release_ssa_name_fn): Likewise.
331 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
332 * tree-vect-loop-manip.c
333 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
334 (slpeel_checking_verify_cfg_after_peeling): Likewise.
335 (vect_do_peeling_for_loop_bound): Likewise.
336 (vect_do_peeling_for_alignment): Likewise.
337 * tree-vrp.c (supports_overflow_infinity): Likewise.
338 (set_value_range): Likewise.
339 * tree.c (free_lang_data_in_cgraph): Likewise.
340 * value-prof.c (gimple_remove_histogram_value): Likewise.
341 (free_hist): Likewise.
342 * var-tracking.c (canonicalize_values_star): Likewise.
343 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
345 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
347 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
348 IFN_GOACC_LOOP): New.
349 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
350 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
351 IFN_UNIQUE_OACC_TAIL_MARK.
352 (enum ifn_goacc_loop_kind): New.
353 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
354 IFN_UNIQUE_OACC_JOIN cases.
355 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
356 (expand_GOACC_LOOP): New.
357 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
358 * omp-low.c: Include gimple-pretty-print.h.
359 (struct oacc_loop): New.
360 (enum oacc_loop_flags): New.
361 (oacc_thread_numbers): New.
362 (oacc_xform_loop): New.
363 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
364 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
365 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
366 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
367 oacc_loop_discovery): New.
368 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
369 oacc_loop_process): New.
370 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
371 (execute_oacc_device_lower): Discover & process loops. Process
373 * target.def (goacc.fork_join): Change sense of hook, clarify
375 * doc/tm.texi: Regenerated.
377 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
379 * target-insns.def (oacc_fork, oacc_join): Define.
380 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
381 (goacc.fork_join): New GOACC hook.
382 * targhooks.h (default_goacc_fork_join): Declare.
383 * omp-low.c (default_goacc_forkjoin): New.
384 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
385 * doc/tm.texi: Regenerate.
387 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
389 * omp-low.c (oacc_init_rediction_array): New.
390 (oacc_initialize_reduction_data): Initialize array.
392 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
394 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
396 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
398 * internal-fn.c (expand_UNIQUE): New.
399 * internal-fn.h (enum ifn_unique_kind): New.
400 * internal-fn.def (IFN_UNIQUE): New.
401 * target-insns.def (unique): Define.
402 * gimple.h (gimple_call_internal_unique_p): New.
403 * gimple.c (gimple_call_same_target_p): Check internal fn
405 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
406 * tree-ssa-threadedge.c
407 (record_temporary_equivalences_from_stmts): Likewise.
408 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
410 2015-10-27 Richard Henderson <rth@redhat.com>
413 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
414 narrowing subregs on SSE and MMX registers.
415 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
416 appear to be sub-words of multi-register pseudos must be rejected.
417 * doc/tm.texi: Regenerate.
419 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
422 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
423 operands[0] is a reg before taking its REGNO in split condition.
424 (*movdi_aarch64): Likewise.
426 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
428 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
429 Handle floating point inner modes properly.
431 2015-10-27 Alan Hayward <alan.hayward@arm.com>
434 (vectorizable_live_operation): Change iterator.
436 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
437 Aditya Kumar <aditya.k7@samsung.com>
439 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
440 function to schedule based on isl_schedule_node.
441 (get_schedule_map_st): New schedule optimizer based on
443 (scop_get_domains): New. Return the isl_union_set containing the
444 domains of all the pbbs.
445 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
447 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
450 * calls.c (prepare_call_address): Don't handle -fno-plt here.
451 * config/i386/i386.c (ix86_expand_call): Generate indirect call
452 via GOT for -fno-plt. Support indirect call via GOT for x32.
453 * config/i386/predicates.md (sibcall_memory_operand): Allow
456 2015-10-27 Richard Biener <rguenther@suse.de>
458 PR tree-optimization/68104
459 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
460 strided access check ...
461 (vect_compute_data_refs_alignment): ... here.
463 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
464 Joseph Myers <joseph@codesourcery.com>
465 Mark Shinwell <shinwell@codesourcery.com>
466 Andrew Stubbs <ams@codesourcery.com>
467 Rich Felker <dalias@libc.org>
469 * config.gcc: Handle --enable-fdpic.
470 * config/sh/constraints.md (Ccl): New constraint.
471 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
472 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
474 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
476 * config/sh/sh-protos.h (function_symbol_result): New struct.
477 (function_symbol): Return function_symbol_result.
478 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
480 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
482 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
483 (sh_option_override): Force -fPIC if FDPIC is in effect.
484 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
485 UNSPEC_GOTOFFFUNCDESC cases.
486 (prepare_move_operands): Use FDPIC initial GOT register for
487 TLS-related GOT access; inhibit cross-section address offset constants
489 (sh_assemble_integer): New function.
490 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
491 PC-relative call sites.
492 (expand_ashiftrt): Adapt invocation of function_symbol.
493 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
494 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
495 UNSPEC_GOTOFFFUNCDESC.
496 (legitimize_pic_address): Resolve function symbols to function
497 descriptors for FDPIC. Do not use GOT-relative addressing for local
498 data that may be read-only on FDPIC.
499 (sh_emit_storesi, sh_emit_storehi): New functions.
500 (sh_trampoline_init): Generate FDPIC trampolines.
501 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
502 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
503 (sh_output_mi_thunk): Generate FDPIC call.
504 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
505 FDPIC, generate call site labels to use PC-relative addressing rather
506 than GOT-relative addressing.
507 (sh_conditional_register_usage): Make PIC register fixed and call used
508 when FDPIC is in effect.
509 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
510 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
511 sh_get_fdpic_reg_initial_val): New functions.
512 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
514 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
515 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
516 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
517 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
519 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
520 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
521 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
522 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
524 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
525 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
526 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
527 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
528 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
529 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
530 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
531 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
532 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
533 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
534 block_move_real, block_lump_real, block_move_real_i4,
535 block_lump_real_i4): Add support for FDPIC calls.
536 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
537 call_value_pop): Adjust for new function_symbol signature.
538 * config/sh/sh.opt (-mfdpic): New option.
539 * doc/install.texi (Options specification): Document --enable-fdpic.
540 * doc/invoke.texi (SH Options): Document -mfdpic.
543 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
545 PR tree-optimization/65963
546 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some LSHIFT_EXPRs
547 as equivalent MULT_EXPRs.
549 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
552 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
553 * config/arm/constraints.md (Dp): Update callsite.
554 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
556 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
558 * builtins.c (fold_builtin_load_exponent): Rename to...
559 (fold_const_builtin_load_exponent): ...this and only handle
561 (fold_builtin_2): Update accordingly.
562 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
564 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
566 * builtins.c (fold_builtin_logb): Rename to...
567 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
568 (fold_builtin_significand): Rename to...
569 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
570 (fold_builtin_1): Update accordingly.
572 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
574 * builtins.c (fold_builtin_fmin_fmax): Delete.
575 (fold_builtin_2): Handle constant fmin and fmax arguments here.
576 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
578 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
580 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
581 for register extension into sign and zero register extension.
582 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
583 for sign and zero register extension.
584 (cortexa57_addrcost_table): Likewise.
585 (xgene1_addrcost_table): Likewise.
587 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
589 * fold-const.c (fold_minmax): Delete.
590 (fold_binary_loc): Don't call it.
591 * match.pd: Add rules previously handled by fold_minmax.
593 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
595 * builtins.c (fold_builtin_fma): Remove constant handling.
596 (fold_builtin_3): Handle constant fma arguments here.
598 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
600 * builtins.c (fold_builtin_fabs): Remove constant handling.
601 (fold_builtin_abs): Likewise.
603 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
605 * builtins.c (fold_builtin_copysign): Delete.
606 (fold_builtin_2): Handle constant copysign arguments here.
607 * match.pd: Add rules previously handled by fold_builtin_copysign.
609 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
611 * builtins.c (fold_builtin_signbit): Delete.
612 (fold_builtin_2): Handle constant signbit arguments here.
613 * match.pd: Add rules previously handled by fold_builtin_signbit.
615 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
617 * match.pd: Handle sqrt(x) cmp 0 specially.
619 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
621 * tree-vect-generic.c (expand_vector_operations_1): Check
622 optab type before using it.
624 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
626 * config/aarch64/aarch64-protos.h
627 (struct tune_params): Add autoprefetcher_model field.
628 * config/aarch64/aarch64.c: Include params.h
629 (generic_tunings): Specify autoprefetcher_model value.
630 (cortexa53_tunings): Likewise.
631 (cortexa57_tunings): Likewise.
632 (cortexa72_tunings): Likewise.
633 (thunderx_tunings): Likewise.
634 (xgene1_tunings): Likewise.
635 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
636 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
637 (aarch64_override_options_internal): Set
638 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
640 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
642 * builtins.c (fold_builtin_exponent): Delete.
643 (fold_builtin_2): Handle constant expN arguments here.
644 * match.pd: Fold expN(logN(x)) -> x.
646 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
648 * builtins.c (fold_builtin_powi): Delete.
649 (fold_builtin_2): Handle constant powi arguments here.
650 * match.pd: Add rules previously handled by fold_builtin_powi.
652 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
654 * builtins.c (fold_builtin_pow): Delete in favor of...
655 (fold_const_builtin_pow): ...this new function. Only handle constant
657 (fold_builtin_2): Update accordingly.
658 * match.pd: Add rules previously handled by fold_builtin_pow.
660 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
662 * builtins.c (fold_builtin_hypot): Delete.
663 (fold_builtin_2): Handle constant hypot arguments here.
664 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
665 hypot(x, x) to fabs(x)*sqrt(2).
667 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
669 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
670 instead of make_ssa_name if not yet in SSA form.
672 2015-10-27 Richard Biener <rguenther@suse.de>
674 * cfg.c (free_edge): Add function argument and use it instead of cfun.
675 (clear_edges): Likewise.
676 * cfg.h (clear_edges): Adjust prototype.
677 * cfgexpand.c (pass_expand::execute): Adjust.
678 * cfgloop.c (release_recorded_exits): Add function argument and use
680 * cfgloop.h (release_recorded_exits): Adjust prototype.
681 (loops_state_satisfies_p): Add overload with function argument.
682 (loops_state_set): Likewise.
683 (loops_state_clear): Likewise.
684 (struct loop_iterator): Add function argument to constructor
685 and iterator and use it instead of cfun.
686 (FOR_EACH_LOOP_FN): New macro.
687 (loop_optimizer_finalize): Add overload with function argument.
688 * loop-init.c (loop_optimizer_init): Adjust.
689 (fix_loop_structure): Likewise.
690 (loop_optimizer_finaliz): Add function argument and use it
692 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
693 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
694 * cgraph.c (release_function_body): Do not push/pop cfun.
695 * final.c (rest_of_clean_state): Adjust.
696 * graphite.c (graphite_finalize): Likewise.
697 * tree-ssa-copy.c (fini_copy_prop): Likewise.
698 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
699 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
700 (tree_unroll_loops_completely): Likewise.
701 (pass_complete_unrolli::execute): Likewise.
702 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
703 Add function argument and use it instead of cfun.
704 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
706 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
707 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
709 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
710 * tree-ssanames.c (fini_ssanames): Add function argument and use it
712 * tree-ssanames.c (fini_ssanames): Adjust prototype.
713 * tree-vrp.c (execute_vrp): Adjust.
714 * value-prof.c (free_histograms): Add function argument and use it
716 * value-prof.h (free_histograms): Adjust prototype.
718 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
720 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
721 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
722 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
724 2015-10-27 Tom de Vries <tom@codesourcery.com>
726 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
729 2015-10-27 Bin Cheng <bin.cheng@arm.com>
731 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
732 (inv_can_prop_to_addr_use): New function.
733 (record_use): Call can_prop_to_addr_uses, set the new field.
734 (get_inv_cost): Count cost if inv can't be propagated into its
737 2015-10-26 Doug Evans <dje@google.com>
739 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
741 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
743 * match.pd (fold_widened_comparison): Apply simplifications to all
746 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
748 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
749 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
750 * doc/tm.texi: Regenerated.
751 * reorg.c (dbr_schedule): Use new hook.
752 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
754 2015-10-26 Jeff Law <law@redhat.com>
756 PR tree-optimization/68013
757 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
758 Make sure the first block in the path is in VISITED_BBs.
760 2015-10-26 Richard Biener <rguenther@suse.de>
761 Dominik Vogt <vogt@linux.vnet.ibm.com>
764 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
765 Properly prune ref->ref for accesses outside of ref.
767 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
769 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
770 new statements to be inserted if inplace. Allow calls to have
773 2015-10-26 Richard Biener <rguenther@suse.de>
775 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
776 (do_valueize): New function.
777 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
779 * tree-ssa-threadedge.c: Remove builtins.h include, include
781 (fold_assignment_stmt): Remove.
782 (threadedge_valueize): New function.
783 (record_temporary_equivalences_from_stmts): Use
784 gimple_fold_stmt_to_constant_1, note additional cleanup
787 2015-10-26 Richard Biener <rguenther@suse.de>
789 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
790 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
792 2015-10-26 Alan Hayward <alan.hayward@arm.com>
794 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
797 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
799 * auto-inc-dec.c (insert_move_insn_before): Delete.
800 (attempt_change): Remember to cost the simple move in the
801 FORM_PRE_ADD and FORM_POST_ADD cases.
803 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
806 * config/sh/sh.c (sh_vector_mode_supported_p): Use
807 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
809 2015-10-26 Tom de Vries <tom@codesourcery.com>
811 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
813 (intra_create_variable_infos): ... here.
815 2015-10-26 Tom de Vries <tom@codesourcery.com>
817 * tree-ssa-structalias.c (intra_create_variable_infos): Add
818 restrict_pointer_p and recursive_restrict_p variables.
820 2015-10-26 Tom de Vries <tom@codesourcery.com>
822 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
823 get_vi_for_tree call.
825 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
828 * optabs.c (expand_atomic_compare_and_swap): Handle case when
829 ptarget_oval or ptarget_bool are const0_rtx.
831 2015-10-26 Christian Bruel <christian.bruel@st.com>
833 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
834 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
835 * cp/method.c (implicitly_declare_fn): Likewise.
836 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
837 * java/class.c (add_method_1): Likewise.
839 2015-10-26 Richard Biener <rguenther@suse.de>
841 * alloc-pool.h (base_pool_allocator): Use placement new.
842 (base_pool_allocator::remove): Likewise. Compute size outside of
845 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
847 * builtins.c (do_real_to_int_conversion): New function.
848 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
849 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
851 * match.pd: Add rules previously handled by fold_fixed_mathfn
852 and fold_builtin_int_roundingfn.
854 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
856 * match.pd: Use macros to define built-in operator lists.
858 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
859 Richard Biener <rguenther@suse.de>
861 * genmatch.c (dt_simplify::gen): Skip captures that are
863 (parser::parse_expr): Allow captures in results too.
864 * builtins.c (fold_builtin_cexp): Delete.
865 (fold_builtin_1): Handle constant cexp arguments here.
866 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
868 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
870 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
871 conditional compilation.
872 (base_pool_allocator::remove): Use flag_checking.
874 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
876 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
879 * dojump.c (do_compare_and_jump): Canonicalize both function and
882 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
885 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
888 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
891 * ipa-polymorphic-call.c
892 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
893 instance offset with offset of outer type.
895 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
897 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
899 2015-10-23 Caroline Tice <cmtice@google.com>
902 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
903 call to iterative_hash_host_wide_int.
905 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
907 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
910 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
912 * tree-vect-generic.c (expand_vector_operations_1): Check
913 optab exists before use it.
915 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
917 * tree-vect-generic.c (expand_vector_condition): Avoid
918 uninitialized variable warning.
920 2015-10-23 Jeff Law <law@redhat.com>
922 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
924 (execute_todo): Call it here.
925 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
927 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
929 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
930 Szabolcs Nagy <szabolcs.nagy@arm.com>
932 * config.gcc (enable_secureplt): Add *-linux*-musl*.
934 2015-10-23 Jeff Law <law@redhat.com>
936 PR tree-optimization/67830
937 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
938 Explicitly verify the mask has no bits outside the type of
939 the innermost operands.
941 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
942 Szabolcs Nagy <szabolcs.nagy@arm.com>
944 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
945 (MUSL_DYNAMIC_LINKER64): Define.
946 (GNU_USER_DYNAMIC_LINKER32): Update.
947 (GNU_USER_DYNAMIC_LINKER64): Update.
948 (CHOOSE_DYNAMIC_LINKER): Update.
950 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
951 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
952 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
953 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
954 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
955 (CHOOSE_DYNAMIC_LINKER): Update.
956 (INCLUDE_DEFAULTS): Redefine.
958 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
960 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
962 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
965 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
967 * fold-const.c (operand_equal_p): Handle matching of vector
970 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
972 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
974 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
975 Andrew Pinski <apinski@cavium.com>
977 PR rtl-optimization/67736
978 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
981 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
984 * tree.c (build_truth_vector_type): Support BLK mode
985 returned for boolean vector.
987 2015-10-23 Alan Hayward <alan.hayward@arm.com>
989 PR tree-optimization/65947
991 (vect_is_simple_reduction_1): Find condition reductions.
992 (vect_model_reduction_cost): Add condition reduction costs.
993 (get_initial_def_for_reduction): Add condition reduction initial var.
994 (vect_create_epilog_for_reduction): Add condition reduction epilog.
995 (vectorizable_reduction): Condition reduction support.
996 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
997 * doc/sourcebuild.texi (Vector-specific attributes): Document
1000 2015-10-23 Richard Biener <rguenther@suse.de>
1002 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
1005 2015-10-23 Richard Biener <rguenther@suse.de>
1006 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1008 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
1009 into (A ^ B) - B to match.pd
1010 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
1012 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
1014 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
1016 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
1018 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
1020 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
1021 INTEGER_CST@1)): New simplifier.
1023 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
1025 * builtins.c (integer_valued_real_p): Move to fold-const.c.
1026 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
1027 (fold_builtin_ceil, fold_builtin_round): Delete.
1028 (fold_builtin_1): Handle constant trunc, floor, ceil and round
1030 * convert.c (convert_to_real): Remove narrowing of rounding
1032 * fold-const.h (integer_valued_real_unary_p)
1033 (integer_valued_real_binary_p, integer_valued_real_call_p)
1034 (integer_valued_real_single_p, integer_valued_real_p): Declare.
1035 * fold-const.c (tree_single_nonnegative_warnv_p): Move
1036 name_registered_for_update_p check to SSA_NAME case statement.
1037 Don't call tree_simple_nonnegative_warnv_p for SSA names.
1038 (integer_valued_real_unary_p, integer_valued_real_binary_p)
1039 (integer_valued_real_call_p, integer_valued_real_single_p)
1040 (integer_valued_real_invalid_p): New functions.
1041 (integer_valued_real_p): Move from fold-const.c and rework
1042 to call the functions above. Handle SSA names.
1043 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
1044 * gimple-fold.c (gimple_assign_integer_valued_real_p)
1045 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
1046 (gimple_stmt_integer_valued_real_p): New functions.
1047 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
1048 Fold f(x)->x for the same f if x is known to be integer-valued.
1049 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
1050 the result. Canonicalize floor(x) as trunc(x) if x is
1053 2015-10-23 Tom de Vries <tom@codesourcery.com>
1055 * tree-ssa-structalias.c (intra_create_variable_infos): Use
1056 make_constraint_from.
1058 2015-10-23 Tom de Vries <tom@codesourcery.com>
1060 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
1061 setting of is_full_var in case of a single field.
1063 2015-10-22 Martin Sebor <msebor@redhat.com>
1066 * config/i386/i386.opt: Add missing periods to the ends of sentences.
1067 * config/msp430/msp430.opt: Same.
1069 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
1071 * doc/extend.exp (Global Register Variables): Rewrite.
1073 2015-10-22 Jeff Law <law@redhat.com>
1075 * genattrtab.c (main): If we do not have any annul-true or annul-false
1076 slots, then write out a dummy eligible_for_annul_true or
1077 eligible_for_annul_false as needed.
1079 2015-10-22 Nick Clifton <nickc@redhat.com>
1081 * config/msp430/msp430.opt: Add -msilicon-errata and
1082 -msilicon-errata-warn.
1083 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
1085 * doc/invoke.texi: Document new options.
1087 2015-10-22 Richard Biener <rguenther@suse.de>
1089 PR tree-optimization/58497
1090 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
1091 (expand_vector_operations_1): Use it. Lower operations on
1092 all uniform vectors to scalar operations if the HW supports it.
1094 2015-10-22 Richard Biener <rguenther@suse.de>
1096 PR tree-optimization/19049
1097 PR tree-optimization/65962
1098 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
1099 to strided accesses if single-element interleaving doesn't work.
1101 2015-10-22 Richard Biener <rguenther@suse.de>
1105 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
1106 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
1107 (expand_unop): Likewise.
1109 2015-10-22 Richard Biener <rguenther@suse.de>
1111 * fold-const.c (fold_addr_of_array_ref_difference): Properly
1112 convert operands before folding a MINUS_EXPR.
1113 (fold_binary_loc): Move simplification of MINUS_EXPR on
1114 converted POINTER_PLUS_EXPRs ...
1115 * match.pd: ... here.
1117 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
1119 * builtins.c (fold_builtin_tan): Delete.
1120 (fold_builtin_1): Handle constant tan arguments here.
1121 * match.pd: Simplify (tan (atan x)) to x.
1123 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
1125 * builtins.c (fold_builtin_cproj): Delete.
1126 (fold_builtin_1): Handle constant arguments here.
1127 (build_complex_cproj): Move and rename to...
1128 * tree.c: (build_complex_inf): ...this.
1129 * tree.h (build_complex_inf): Declare.
1130 * match.pd: Fold cproj(x)->x if x has no infinity.
1131 Use build_complex_inf for existing cproj rules.
1133 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1136 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
1137 already have a comparison result.
1139 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1142 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
1143 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
1144 (aarch64_classify_address): Likewise.
1145 (aarch64_secondary_reload): Likewise.
1146 (aarch64_override_options_after_change_1): Adjust.
1147 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
1148 Use aarch64_nopcrelative_literal_loads.
1149 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
1150 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
1153 2015-10-21 Martin Sebor <msebor@redhat.com>
1156 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
1157 (print_filtered_help): Reference aliased option's name and encourage
1158 readers to use it in preference to the alias if the former is not
1159 documented. Mention when using an option is diagnosed.
1160 * gcc.c (display_help): End each sentence with a period.
1162 * common.opt: End each sentence that describes an option with
1164 * config/aarch64/aarch64.opt: Same.
1165 * config/alpha/alpha.opt: Same.
1166 * config/arc/arc.opt: Same.
1167 * config/arm/arm.opt: Same.
1168 * config/avr/avr.opt: Same.
1169 * config/bfin/bfin.opt: Same.
1170 * config/c6x/c6x.opt: Same.
1171 * config/cr16/cr16.opt: Same.
1172 * config/cris/cris.opt: Same.
1173 * config/cris/linux.opt: Same.
1174 * config/darwin.opt: Same.
1175 * config/epiphany/epiphany.opt: Same.
1176 * config/fr30/fr30.opt: Same.
1177 * config/frv/frv.opt: Same.
1178 * config/ft32/ft32.opt: Same.
1179 * config/g.opt: Same.
1180 * config/h8300/h8300.opt: Same.
1181 * config/i386/cygming.opt: Same.
1182 * config/i386/djgpp.opt: Same.
1183 * config/i386/i386.opt: Same.
1184 * config/i386/interix.opt: Same.
1185 * config/i386/mingw-w64.opt: Same.
1186 * config/i386/mingw.opt: Same.
1187 * config/ia64/ia64.opt: Same.
1188 * config/ia64/ilp32.opt: Same.
1189 * config/iq2000/iq2000.opt: Same.
1190 * config/linux.opt: Same.
1191 * config/lm32/lm32.opt: Same.
1192 * config/lynx.opt: Same.
1193 * config/m32c/m32c.opt: Same.
1194 * config/m32r/m32r.opt: Same.
1195 * config/m68k/ieee.opt: Same.
1196 * config/m68k/m68k.opt: Same.
1197 * config/mcore/mcore.opt: Same.
1198 * config/mep/mep.opt: Same.
1199 * config/microblaze/microblaze.opt: Same.
1200 * config/mips/mips.opt: Same.
1201 * config/mmix/mmix.opt: Same.
1202 * config/mn10300/mn10300.opt: Same.
1203 * config/moxie/moxie.opt: Same.
1204 * config/msp430/msp430.opt: Same.
1205 * config/nios2/elf.opt: Same.
1206 * config/nios2/nios2.opt: Same.
1207 * config/nvptx/nvptx.opt: Same.
1208 * config/pa/pa-hpux.opt: Same.
1209 * config/pa/pa-hpux1010.opt: Same.
1210 * config/pa/pa-hpux1111.opt: Same.
1211 * config/pa/pa-hpux1131.opt: Same.
1212 * config/pa/pa.opt: Same.
1213 * config/pa/pa64-hpux.opt: Same.
1214 * config/pdp11/pdp11.opt: Same.
1215 * config/rl78/rl78.opt: Same.
1216 * config/rs6000/476.opt: Same.
1217 * config/rs6000/aix64.opt: Same.
1218 * config/rs6000/darwin.opt: Same.
1219 * config/rs6000/linux64.opt: Same.
1220 * config/rs6000/rs6000.opt: Same.
1221 * config/rs6000/sysv4.opt: Same.
1222 * config/s390/s390.opt: Same.
1223 * config/s390/tpf.opt: Same.
1224 * config/sh/sh.opt: Same.
1225 * config/sol2.opt: Same.
1226 * config/sparc/long-double-switch.opt: Same.
1227 * config/sparc/sparc.opt: Same.
1228 * config/spu/spu.opt: Same.
1229 * config/stormy16/stormy16.opt: Same.
1230 * config/tilegx/tilegx.opt: Same.
1231 * config/tilepro/tilepro.opt: Same.
1232 * config/v850/v850.opt: Same.
1233 * config/vax/vax.opt: Same.
1234 * config/visium/visium.opt: Same.
1235 * config/vms/vms.opt: Same.
1236 * config/vxworks.opt: Same.
1237 * config/xtensa/xtensa.opt: Same.
1239 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1240 Sebastian Pop <s.pop@samsung.com>
1242 * graphite-scop-detection.c (parameter_index_in_region): Update call to
1243 invariant_in_sese_p_rec.
1244 * graphite-sese-to-poly.c (extract_affine): Same.
1245 * sese.c (invariant_in_sese_p_rec): Pass in an extra
1246 parameter has_vdefs.
1247 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
1248 variable depends on virtual definitions in the current region.
1249 * sese.h (invariant_in_sese_p_rec): Update declaration.
1251 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1252 Sebastian Pop <s.pop@samsung.com>
1254 * graphite-scop-detection.c (build_scops): Do not handle scops
1255 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
1256 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
1258 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
1260 * config.in: Regenerate.
1261 * configure: Regenerate.
1262 * configure.ac (CHECKING_P): Define.
1263 * system.h: Use CHECKING_P.
1265 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1268 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
1269 is negative we don't know the type.
1270 (check_stmt_for_type_change): Skip constructors of non-polymorphic
1271 types as those won't help devirutalization.
1273 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1275 * fold-const.c (operand_equal_p): Add code matching empty constructors.
1277 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
1279 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
1281 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
1282 Add comments on sign of the result.
1283 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
1284 Recurse on operand #1 instead of operand #0.
1285 <CEIL_MOD_EXPR>: Do not recurse.
1286 <ROUND_MOD_EXPR>: Likewise.
1288 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1290 * cfgrtl.c (pass_free_cfg::execute): Adjust.
1291 * final.c (dbr_sequence_length): Always define.
1292 (shorten_branches): Adjust.
1293 * genattr-common.c (main): Always define DELAY_SLOTS.
1294 * genattr.c (main): Unconditionally declare functions and define
1295 macros related to delay slots.
1296 * genattrtab.c (write_eligible_delay): Adjust.
1297 (main): Always write out delay slot functions.
1298 * opts.c (default_options_table): Adjust.
1299 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
1300 (redirect_with_delay_list_safe_p): Likewise.
1301 (fill_simple_delay_slots): Likewise.
1302 (fill_slots_from_thread): Likewise.
1303 (make_return_insns): Likewise.
1304 (dbr_schedule): Likewise.
1305 (rest_of_handle_delay_slots): Likewise.
1306 (pass_delay_slots::gate): Likewise.
1307 * toplev.c (process_options): Likewise.
1309 2015-10-21 Richard Henderson <rth@redhat.com>
1311 * targhooks.c (default_addr_space_pointer_mode): Remove check
1312 for generic address space.
1313 (default_addr_space_address_mode): Likewise.
1314 (default_addr_space_valid_pointer_mode): Likewise.
1315 (default_addr_space_legitimate_address_p): Likewise.
1316 (default_addr_space_legitimize_address): Likewise.
1317 * target.def (addr_space.pointer_mode): Update documentation
1318 of default behavior.
1319 (addr_space.address_mode): Likewise.
1322 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
1325 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1327 * builtins.c (fold_builtin_cabs): Delete.
1328 (fold_builtin_1): Update accordingly. Handle constant arguments here.
1329 * match.pd: Add rules previously handled by fold_builtin_cabs.
1331 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1333 * fold-const.h (fold_strip_sign_ops): Delete.
1334 * fold-const.c (fold_strip_sign_ops): Likewise.
1335 (fold_unary_loc, fold_binary_loc): Remove calls to it.
1336 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
1337 (fold_builtin_ccos): Delete.
1338 (fold_builtin_pow): Don't call fold_strip_sign_ops.
1339 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
1340 Remove fndecl argument.
1341 (fold_builtin_1): Update calls accordingly. Handle constant
1342 cos, cosh, ccos and ccosh here.
1344 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1346 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
1347 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
1348 * common.opt (fssa-backprop): New option.
1349 * fold-const.h (negate_mathfn_p): Declare.
1350 * fold-const.c (negate_mathfn_p): Make public.
1351 * timevar.def (TV_TREE_BACKPROP): New.
1352 * tree-pass.h (make_pass_backprop): Declare.
1353 * passes.def (pass_backprop): Add.
1354 * gimple-ssa-backprop.c: New file.
1356 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1357 Sebastian Pop <s.pop@samsung.com>
1359 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
1360 Do not call create_empty_if_region_on_edge when cond_expr is true.
1361 (translate_isl_ast_node_for): Check whether a guard has been generated.
1363 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1365 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
1366 (operator=): Removed.
1367 (dr_info): Make alias_set number the last argument with default
1368 value of invalid_alias_set.
1369 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
1371 (rewrite_reductions_out_of_ssa): Iterate only through the
1372 basic blocks which are inside region.
1373 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1374 * sese.h (struct sese_l): Removed assignment operator.
1375 (split_region_for_bb): Removed dead code.
1377 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1379 * graphite-poly.h (struct dr_info): Removed conversion constructor.
1380 (struct scop): Renamed scop::region to scop::scop_info
1381 (scop_set_region): Same.
1382 (SCOP_REGION): Removed
1383 (SCOP_CONTEXT): Removed.
1384 (POLY_SCOP_P): Removed.
1385 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1386 Rename scop->region to scop->scop_info.
1387 (add_parameters_to_ivs_params): Same.
1388 (graphite_regenerate_ast_isl): Same.
1389 * graphite-poly.c (new_scop): Same.
1391 (print_scop_params): Same.
1392 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
1393 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
1394 (dot_all_scops_1): Rename scop->region to scop->scop_info.
1395 (scop_detection::nb_pbbs_in_loops): Same.
1396 (find_scop_parameters): Same.
1397 (try_generate_gimple_bb): Same.
1398 (gather_bbs::before_dom_children): Same.
1399 (gather_bbs::after_dom_children): Same.
1400 (build_scops): Same.
1401 * graphite-sese-to-poly.c (build_scop_scattering): Same.
1402 (extract_affine_chrec): Same.
1403 (extract_affine): Same.
1404 (set_scop_parameter_dim): Same.
1405 (build_loop_iteration_domains): Same.
1406 (create_pw_aff_from_tree): Same.
1407 (add_param_constraints): Same.
1408 (build_scop_iteration_domain): Same.
1409 (build_scop_drs): Same.
1410 (analyze_drs_in_stmts): Same.
1411 (insert_out_of_ssa_copy_on_edge): Same.
1412 (rewrite_close_phi_out_of_ssa):Same.
1413 (rewrite_reductions_out_of_ssa):Same.
1414 (handle_scalar_deps_crossing_scop_limits):Same.
1415 (rewrite_cross_bb_scalar_deps):Same.
1416 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
1417 (build_poly_scop):Same.
1418 (build_alias_set): Use pointer to dr_info.
1419 * graphite.c (print_graphite_scop_statistics):
1420 (graphite_transform_loops):
1421 * sese.h (struct sese_l): Remove conversion constructor.
1423 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1426 * tree.c (verify_type): Verify that TYPE_MODE match
1427 between TYPE_CANONICAL and type.
1428 * expr.c (store_expr_with_bounds): Revert my previous change.
1429 * expmed.c (store_bit_field_1): Revert prevoius change.
1430 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
1431 to match for all types.
1433 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
1435 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
1438 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
1440 * doc/tm.texi: Regenerated.
1441 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
1442 * stor-layout.c (layout_type): Use mode to get vector mask size.
1443 * target.def (get_mask_mode): New.
1444 * targhooks.c (default_get_mask_mode): New.
1445 * targhooks.h (default_get_mask_mode): New.
1446 * gcc/tree-vect-stmts.c (get_same_sized_vectype): Add special case
1448 * tree.c (MAX_BOOL_CACHED_PREC): New.
1449 (nonstandard_boolean_type_cache): New.
1450 (build_nonstandard_boolean_type): New.
1451 (make_vector_type): Vector mask has no canonical type.
1452 (build_truth_vector_type): New.
1453 (build_same_sized_truth_vector_type): New.
1454 (truth_type_for): Support vector masks.
1455 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
1456 (build_truth_vector_type): New.
1457 (build_same_sized_truth_vector_type): New.
1458 (build_nonstandard_boolean_type): New.
1459 * tree-cfg.c (verify_gimple_comparison) Require boolean
1460 vector type for vector comparison.
1461 (verify_gimple_assign_ternary): Likewise.
1462 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
1464 * tree-vect-stmts.c (vectorizable_condition): Use boolean
1465 vector type for vector comparison.
1466 * tree-vect-generic.c (elem_op_func): Add new operand to hold
1468 (do_unop): Adjust to modified function type.
1469 (do_binop): Likewise.
1470 (do_plus_minus): Likewise.
1471 (do_negate); Likewise.
1472 (expand_vector_piecewise): Likewise.
1473 (do_cond): Likewise.
1474 (do_compare): Use comparison instead of condition.
1475 (expand_vector_divmod): Use boolean vector type for comparison.
1476 (expand_vector_operations_1): Skip scalar mask operations.
1478 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
1480 * omp-low.c (simd_clone_create): Set in_other_partition
1483 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
1485 * doc/extend.exp (Local Register Variables): Rewrite.
1487 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1489 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
1490 and x*x in cases where the operands are sign ops. Extend these
1491 rules to handle copysign as a sign op (including for cos, cosh
1492 and pow, which already treated negate and abs as sign ops).
1494 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
1497 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
1498 for 64-bit MS_ABI targets also when default incoming stack boundary
1501 2015-10-21 Richard Biener <rguenther@suse.de>
1503 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
1504 cond stmts, enhanced and split out from ...
1505 (vn_phi_eq): ... here.
1507 2015-10-21 Richard Biener <rguenther@suse.de>
1510 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
1511 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
1512 (tree_single_nonnegative_warnv_p): ... here. For SSA names
1513 make sure they are not registered for update.
1515 2015-10-21 Richard Biener <rguenther@suse.de>
1517 PR tree-optimization/68026
1518 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
1519 unsigned VARYING values.
1521 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1523 * asan.c (asan_emit_stack_protection): Don't pass local stack to
1524 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
1525 NULL and use local stack than.
1526 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
1527 in addition to __asan_init.
1528 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
1529 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
1530 * asan.h (asan_intercepted_p): Handle new string builtins.
1531 * ubsan.c (ubsan_use_new_style_p): New function.
1532 (ubsan_instrument_float_cast): If location is unknown, assign
1533 input_location to loc. Propagate loc to ubsan_create_data if
1534 ubsan_use_new_style_p returned true.
1536 2015-10-21 Jeff Law <law@redhat.com>
1538 * Makefile.in (OBJS): Remove sched-vis.c
1539 * sched-vis.c: Removed. Code moved into...
1540 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
1541 * rtl.h: Remove prototypes for functions now living in print-rtl.c
1542 * print-rtl.h Add prototypes for new functions in print-rtl.c.
1543 * auto-inc-dec.c: Include print-rtl.h
1544 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
1545 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
1547 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
1550 2015-10-21 Richard Biener <rguenther@suse.de>
1551 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1553 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
1555 Move (a * (1 << b)) is (a << b) to match.pd.
1556 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
1557 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
1558 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
1560 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
1562 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
1563 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
1564 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
1566 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
1568 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
1570 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
1571 Szabolcs Nagy <szabolcs.nagy@arm.com>
1572 Alan Modra <amodra@gmail.com>
1574 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
1575 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
1576 (LINK_SPEC): Add %(link_secure_plt).
1577 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
1578 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
1580 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
1581 Szabolcs Nagy <szabolcs.nagy@arm.com>
1583 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
1584 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
1586 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1588 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
1590 (fusion_load_store): Use it.
1591 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
1592 ldp and stp in VD modes.
1593 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
1594 (store_pair<mode>, VD): Likewise.
1596 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
1598 PR rtl-optimization/67609
1599 * lra-splill.c (lra_final_code_change): Don't remove all
1602 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1604 * simplify-rtx.c (simplify_binary_operation): If either operand was
1605 a constant pool reference use them if all other simplifications failed.
1607 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1609 * config/aarch64/aarch64.md
1610 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
1611 * config/aarch64/aarch64-simd.md
1612 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
1613 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
1614 (aarch64_fpconst_pow_of_2): New function.
1615 (aarch64_vec_fpconst_pow_of_2): Likewise.
1616 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
1618 (aarch64_vec_fpconst_pow_of_2): Likewise.
1619 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
1620 (aarch64_fp_vec_pow2): Likewise.
1622 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
1624 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
1625 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
1626 * config/alpha/alpha.c (alpha_function_arg_advance): Update
1627 ALPHA_ARG_SIZE usage.
1628 (alpha_arg_partial_bytes): Ditto.
1630 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
1633 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
1634 error_mark_node decls.
1636 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
1640 * common/config/i386/i386-common.c (ix86_handle_option): Remove
1641 OPT_miamcu handling.
1642 * config/i386/i386.c (PTA_NO_80387): New macro.
1643 (processor_alias_table): Add PTA_NO_80387 to lakemont.
1644 (ix86_option_override_internal): Update MASK_80387 from
1645 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
1646 SSE math only if 80387 is supported. Don't change
1648 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
1650 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
1651 if TARGET_80387 is true and TARGET_IAMCU is false.
1652 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
1653 is true and TARGET_IAMCU_P is false.
1655 2015-10-20 Richard Biener <rguenther@suse.de>
1657 PR tree-optimization/68017
1658 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
1660 2015-10-20 Martin Liska <mliska@suse.cz>
1662 * cgraphclones.c (cgraph_node::create_virtual_clone):
1663 Verify cgraph_node.local.versionable instead of calling
1664 tree_versionable_function_p.
1665 * ipa-cp.c (determine_versionability): Save the information
1666 to ipa_node_params summary.
1667 (ipcp_versionable_function_p): Use it.
1668 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
1669 (ipcp_generate_summary): Do not compute cgraph_node
1671 * ipa-inline-analysis.c (inline_generate_summary): Compute
1672 versionability for all cgraph nodes.
1673 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
1674 ipa_node_params::versionability.
1675 * ipa-prop.h (struct ipa_node_params): Declare it.
1677 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1680 * varasm.c (assemble_variable): Move special vtv handling to..
1681 (handle_vtv_comdat_sections): .. here. New function.
1682 (output_object_block): Handle vtv sections.
1684 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
1687 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
1689 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
1691 * doc/extend.texi: Update documentation WRT inline functions.
1693 2015-10-20 Alan Modra <amodra@gmail.com>
1696 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
1697 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
1698 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
1700 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
1702 PR rtl-optimization/66790
1703 * df.h (DF_MIR): New macro.
1704 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
1705 (DF_MIR_INFO_BB): New macro.
1706 (DF_MIR_IN, DF_MIR_OUT): New macros.
1707 (struct df_mir_bb_info): New.
1708 (df_mir): New macro.
1709 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
1711 (df_mir_get_bb_info): New.
1712 * df-problems.c (struct df_mir_problem_data): New.
1713 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
1714 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
1715 df_mir_confluence_0, df_mir_confluence_n,
1716 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
1717 df_mir_bottom_dump, df_mir_verify_solution_start,
1718 df_mir_verify_solution_end): New.
1720 (df_mir_add_problem, df_mir_simulate_one_insn): New.
1721 * timevar.def (TV_DF_MIR): New.
1722 * ree.c: Include bitmap.h
1723 (add_removable_extension): Add an INIT_REGS parameter. Use it
1724 to skip zero-extensions that may get an uninitialized register.
1725 (find_removable_extensions): Compute must-initialized registers
1726 using the MIR dataflow problem. Update the call to
1727 add_removable_extension.
1728 (find_and_remove_re): Call df_mir_add_problem.
1730 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
1732 * common/config/mn10300/mn10300-common.c
1733 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
1734 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
1736 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
1738 * doc/extend.texi (Explicit Register Variables): Simplify and
1739 avoid unnecessary and confusion abbreviations. Update cross
1741 doc/implement-c.tex: Update cross reference.
1743 2015-10-19 Jeff Law <law@redhat.com>
1745 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
1746 that create irreducible loops unless the path elimiantes a multiway
1749 2015-10-19 Richard Biener <rguenther@suse.de>
1751 PR tree-optimization/67975
1752 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
1753 * tree-cfg.c (extract_true_false_controlled_edges): Split out
1754 core worker from ...
1755 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
1756 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
1757 instead of block number for PHIs with two or one args.
1758 (vn_phi_eq): Compare edge predicates of PHIs that are in different
1761 2015-10-19 Richard Biener <rguenther@suse.de>
1763 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
1764 (gimple_stmt_nonnegative_warnv_p): Use it.
1765 * match.pd (CPROJ): New operator list.
1766 (cproj (complex ...)): Move simplifications from ...
1767 * builtins.c (fold_builtin_cproj): ... here.
1769 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
1771 * config/i386/i386.c (ix86_expand_vector_move): Use
1772 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
1775 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
1777 * doc/invoke.texi: Replace @optindex with @opindex.
1779 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
1782 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
1783 arch= is set, clear all bits in x_ix86_isa_flags, except for
1784 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
1786 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
1789 * common.opt (fkeep-static-functions): New option.
1790 * doc/invoke.texi: Document it.
1791 * cgraphunit.c (cgraph_node::finalize_function): Use it.
1793 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1795 * sched-int.h (struct autopref_multipass_data_): Remove offset
1796 field. Add min_offset, max_offset, multi_mem_insn_p fields.
1797 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
1798 (autopref_multipass_init): Use it. Handle PARALLEL sets.
1799 (autopref_rank_data): New function.
1800 (autopref_rank_for_schedule): Use it.
1801 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
1803 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
1806 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
1808 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1810 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
1811 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
1812 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
1813 (STANDARD_STARTFILE_PREFIX_1): New.
1814 (STANDARD_STARTFILE_PREFIX_2): New.
1816 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1818 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
1819 (darwin_driver_init): Note a version-min when provided on the c/l.
1820 * config/darwin.h (%darwin_minversion): Remove.
1821 * config/i386/darwin.h: Likewise.
1822 * config/rs6000/darwin.h: Likewise.
1823 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
1824 rather than an arbitrary constant.
1826 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1828 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
1829 PPC, detect conflicts between -arch and multilib settings. Detect
1830 and warn about conflicts between multiple -arch definitions.
1832 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1834 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
1836 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1838 * lra-constraints.c (add_next_usage_insn): Change argument type
1839 from rtx to rtx_insn *.
1841 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
1843 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
1846 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
1848 * config/tilepro/gen-mul-tables.cc: Adjust include files.
1849 * config/tilegx/mul-tables.c: Regenerate.
1850 * config/tilepro/mul-tables.c: Regenerate.
1852 * config/tilegx/tilegx-c.c: Adjust include files.
1853 * config/tilegx/tilegx.c: Likewise.
1854 * config/tilepro/tilepro-c.c: Likewise.
1855 * config/tilepro/tilepro.c: Likewise.
1856 * config/aarch64/aarch64-builtins.c: Likewise.
1857 * config/aarch64/aarch64.c: Likewise.
1858 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1859 * config/alpha/alpha.c: Likewise.
1860 * config/arc/arc.c: Likewise.
1861 * config/arm/aarch-common.c: Likewise.
1862 * config/arm/arm-builtins.c: Likewise.
1863 * config/arm/arm-c.c: Likewise.
1864 * config/arm/arm.c: Likewise.
1865 * config/avr/avr-c.c: Likewise.
1866 * config/avr/avr-devices.c: Likewise.
1867 * config/avr/avr-log.c: Likewise.
1868 * config/avr/avr.c: Likewise.
1869 * config/bfin/bfin.c: Likewise.
1870 * config/c6x/c6x.c: Likewise.
1871 * config/cr16/cr16.c: Likewise.
1872 * config/cris/cris.c: Likewise.
1873 * config/darwin-c.c: Likewise.
1874 * config/darwin-driver.c: Likewise.
1875 * config/darwin.c: Likewise.
1876 * config/default-c.c: Likewise.
1877 * config/epiphany/epiphany.c: Likewise.
1878 * config/epiphany/mode-switch-use.c: Likewise.
1879 * config/epiphany/resolve-sw-modes.c: Likewise.
1880 * config/fr30/fr30.c: Likewise.
1881 * config/frv/frv.c: Likewise.
1882 * config/ft32/ft32.c: Likewise.
1883 * config/glibc-c.c: Likewise.
1884 * config/h8300/h8300.c: Likewise.
1885 * config/i386/host-cygwin.c: Likewise.
1886 * config/i386/host-mingw32.c: Likewise.
1887 * config/i386/i386-c.c: Likewise.
1888 * config/i386/i386.c: Likewise.
1889 * config/i386/msformat-c.c: Likewise.
1890 * config/i386/winnt-cxx.c: Likewise.
1891 * config/i386/winnt-stubs.c: Likewise.
1892 * config/i386/winnt.c: Likewise.
1893 * config/ia64/ia64-c.c: Likewise.
1894 * config/ia64/ia64.c: Likewise.
1895 * config/iq2000/iq2000.c: Likewise.
1896 * config/lm32/lm32.c: Likewise.
1897 * config/m32c/m32c-pragma.c: Likewise.
1898 * config/m32c/m32c.c: Likewise.
1899 * config/m32r/m32r.c: Likewise.
1900 * config/mcore/mcore.c: Likewise.
1901 * config/mep/mep-pragma.c: Likewise.
1902 * config/mep/mep.c: Likewise.
1903 * config/microblaze/microblaze-c.c: Likewise.
1904 * config/microblaze/microblaze.c: Likewise.
1905 * config/mips/mips-tables.opt
1906 * config/mips/mips.c: Likewise.
1907 * config/mmix/mmix.c: Likewise.
1908 * config/mn10300/mn10300.c: Likewise.
1909 * config/moxie/moxie.c: Likewise.
1910 * config/msp430/msp430-c.c: Likewise.
1911 * config/msp430/msp430.c: Likewise.
1912 * config/nds32/nds32-cost.c: Likewise.
1913 * config/nds32/nds32-fp-as-gp.c: Likewise.
1914 * config/nds32/nds32-intrinsic.c: Likewise.
1915 * config/nds32/nds32-isr.c: Likewise.
1916 * config/nds32/nds32-md-auxiliary.c: Likewise.
1917 * config/nds32/nds32-memory-manipulation.c: Likewise.
1918 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1919 * config/nds32/nds32-predicates.c: Likewise.
1920 * config/nds32/nds32.c: Likewise.
1921 * config/nios2/nios2.c: Likewise.
1922 * config/nvptx/mkoffload.c: Likewise.
1923 * config/nvptx/nvptx.c: Likewise.
1924 * config/pa/pa.c: Likewise.
1925 * config/pdp11/pdp11.c: Likewise.
1926 * config/rl78/rl78-c.c: Likewise.
1927 * config/rl78/rl78.c: Likewise.
1928 * config/rs6000/host-darwin.c: Likewise.
1929 * config/rs6000/rs6000-c.c: Likewise.
1930 * config/rs6000/rs6000-linux.c: Likewise.
1931 * config/rs6000/rs6000.c: Likewise.
1932 * config/rx/rx.c: Likewise.
1933 * config/s390/s390-c.c: Likewise.
1934 * config/s390/s390.c: Likewise.
1935 * config/sh/sh-c.c: Likewise.
1936 * config/sh/sh-mem.cc: Likewise.
1937 * config/sh/sh.c: Likewise.
1938 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
1939 * config/sh/sh_treg_combine.cc: Likewise.
1940 * config/sol2-c.c: Likewise.
1941 * config/sol2-cxx.c: Likewise.
1942 * config/sol2-stubs.c: Likewise.
1943 * config/sol2.c: Likewise.
1944 * config/sparc/sparc-c.c: Likewise.
1945 * config/sparc/sparc.c: Likewise.
1946 * config/spu/spu-c.c: Likewise.
1947 * config/spu/spu.c: Likewise.
1948 * config/stormy16/stormy16.c: Likewise.
1949 * config/v850/v850-c.c: Likewise.
1950 * config/v850/v850.c: Likewise.
1951 * config/vax/vax.c: Likewise.
1952 * config/visium/visium.c: Likewise.
1953 * config/vms/vms-c.c: Likewise.
1954 * config/vms/vms.c: Likewise.
1955 * config/vxworks.c: Likewise.
1956 * config/winnt-c.c: Likewise.
1957 * config/xtensa/xtensa.c: Likewise.
1959 2015-10-16 Christian Bruel <christian.bruel@st.com>
1962 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
1963 (FUNCTION_BOUNDARY_P): New macro:
1964 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
1966 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
1967 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
1968 * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
1969 * gcc/function.c (allocate_struct_function): Call
1970 relayout_function hook.
1971 * gcc/passes.c (rest_of_decl_compilation): Likewise.
1973 2015-10-16 Christian Bruel <christian.bruel@st.com>
1976 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
1977 * config/arm/arm.c (arm_option_override_internal): Call
1978 arm_override_options_after_change_1.
1979 (arm_override_options_after_change): New function.
1980 (arm_override_options_after_change_1): Likewise.
1981 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
1983 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1986 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
1989 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
1991 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
1992 argument is an ADDR_EXPR.
1994 2015-10-16 Richard Biener <rguenther@suse.de>
1996 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
1997 and get rid of force_gimple_operand_gsi.
1998 (gimple_fold_builtin_memory_chk): Likewise.
1999 (gimple_fold_builtin_stxcpy_chk): Likewise.
2000 (rewrite_to_defined_overflow): Likewise.
2001 (gimple_convert_to_ptrofftype): New function.
2002 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
2004 2015-10-16 Richard Biener <rguenther@suse.de>
2006 * tree-nested.h (build_addr): Adjust prototype.
2007 * tree-nested.c (build_addr): Remove context argument and use
2009 (get_static_chain): Adjust calls to build_addr.
2010 (convert_nl_goto_reference): Likewise.
2011 (convert_tramp_reference_op): Likewise.
2012 (finalize_nesting_tree_1): Likewise.
2013 * value-prof.c (gimple_ic): Likewise.
2014 * gimple-low.c (lower_builtin_setjmp): Likewise.
2015 * tree-parloops.c (take_address_of): Likewise.
2016 (create_call_for_reduction_1): Likewise.
2017 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
2018 (gimple_gen_ic_func_profiler): Likewise.
2020 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2022 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
2025 2015-10-16 Michael Collison <michael.collison@linaro.org>
2026 Andrew Pinski <andrew.pinski@caviumnetworks.com>
2028 * match.pd ((x < y) && (x < z) -> x < min (y,z),
2029 (x > y) and (x > z) -> x > max (y,z))
2031 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
2032 Szabolcs Nagy <szabolcs.nagy@arm.com>
2034 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
2035 (DYNAMIC_LINKER): Renamed to ...
2036 (GLIBC_DYNAMIC_LINKER): This.
2037 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
2039 2015-10-15 Marek Polacek <polacek@redhat.com>
2041 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
2042 gimple_call_builtin instead of is_gimple_call.
2044 2015-10-15 Richard Biener <rguenther@suse.de>
2046 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
2048 2015-10-15 Richard Biener <rguenther@suse.de>
2050 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
2051 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
2052 * tree-vect-loop.c (get_initial_def_for_induction): Drop
2053 use of force_gimple_operand in favor of gimple_build.
2054 Use vect_get_new_ssa_name.
2055 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
2056 (vectorizable_mask_load_store): Likewise.
2057 (vectorizable_call): Likewise.
2058 (vectorizable_store): Likewise.
2059 (vectorizable_load): Likewise.
2060 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
2062 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
2064 PR tree-optimization/67945
2065 * tree-pass.h (PROP_gimple_opt_math): New property flag.
2066 * generic-match-head.c (canonicalize_math_p): New function.
2067 * gimple-match-head.c: Include tree-pass.h.
2068 (canonicalize_math_p): New function.
2069 * match.pd: Group math built-in rules into simplifications
2070 and canonicalizations. Guard the latter with canonicalize_math_p.
2071 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
2072 PROP_gimple_opt_math property.
2074 2015-10-15 Marek Polacek <polacek@redhat.com>
2076 PR tree-optimization/67953
2077 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
2079 2015-10-15 Jiong Wang <jiong.wang@arm.com>
2081 * config.gcc: Recognize "." in architecture base name for AArch64.
2083 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
2085 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
2087 * config/mips/mips.c (mips_setup_incoming_varargs): Use
2088 ROUND_DOWN to calculate off.
2089 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
2090 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
2093 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
2095 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
2097 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
2098 Torvald Riegel <triegel@redhat.com>
2101 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
2102 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
2103 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
2104 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
2105 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
2106 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
2107 trechkpt, treclaim, tsr, ttest): New define_expands.
2108 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2109 __TM_FENCE__ for htm.
2110 * doc/extend.texi: Update documentation for htm builtins.
2112 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
2115 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
2116 REG_CFA_EXPRESSION to aligned SSE stores.
2118 2015-10-14 Jeff Law <law@redhat.com>
2120 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
2121 num_threaded_edges for successful FSM threads too.
2123 2015-10-14 Richard Biener <rguenther@suse.de>
2125 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
2126 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
2127 (vect_get_vec_def_for_operand): Remove unused parameter.
2128 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
2129 (vect_create_epilog_for_reduction): Likewise.
2130 (vectorizable_reduction): Likewise.
2131 (vectorizable_live_operation): Likewise.
2132 * tree-vect-patterns.c (type_conversion_p): Likewise.
2133 (vect_recog_vector_vector_shift_pattern): Likewise.
2134 (check_bool_pattern): Likewise.
2135 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
2136 (vect_analyze_slp_cost_1): Likewise.
2137 * tree-vect-stmts.c (process_use): Likewise.
2138 (vect_get_vec_def_for_operand): Do not handle reductions.
2139 (vect_get_vec_defs): Adjust.
2140 (vectorizable_mask_load_store): Likewise.
2141 (vectorizable_call): Likewise.
2142 (vectorizable_simd_clone_call): Likewise.
2143 (vect_get_loop_based_defs): Likewise.
2144 (vectorizable_conversion): Likewise.
2145 (vectorizable_assignment): Likewise.
2146 (vectorizable_shift): Likewise.
2147 (vectorizable_operation): Likewise.
2148 (vectorizable_store): Likewise.
2149 (vectorizable_load): Likewise.
2150 (vect_is_simple_cond): Likewise.
2151 (vectorizable_condition): Likewise.
2152 (vect_is_simple_use): Remove unused parameters.
2153 (vect_is_simple_use_1): Adjust and rename.
2155 2015-10-14 Richard Biener <rguenther@suse.de>
2157 PR tree-optimization/67915
2158 * match.pd: Handle comparisons of addresses of STRING_CSTs.
2159 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
2160 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
2161 stmt folding in favor of GIMPLE one.
2163 2015-10-14 Marek Polacek <polacek@redhat.com>
2165 PR tree-optimization/67815
2166 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
2167 (reassociate_bb): Call it.
2169 2015-10-14 Richard Biener <rguenther@suse.de>
2171 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2172 Reset info at start.
2173 (vect_analyze_group_access_1): Add debug print.
2174 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
2175 (vect_compute_single_scalar_iteration_cost): ... to this.
2176 (vect_analyze_loop_2): Adjust.
2177 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
2178 * tree-vectorizer.h: ... here.
2179 (add_stmt_info_to_vec): Remove.
2180 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
2182 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
2184 * targhooks.c (default_target_option_pragma_parse): Do not warn if
2185 called on behalf of "#pragma GCC pop_options".
2187 2015-10-14 Tom de Vries <tom@codesourcery.com>
2189 * cfganal.c (verify_no_unreachable_blocks): New function.
2190 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
2191 verify_no_unreachable_blocks.
2192 cfganal.h (verify_no_unreachable_blocks): Declare.
2194 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
2196 * common.opt: Add flag_checking.
2197 * system.h (CHECKING_P): Define.
2199 2015-10-13 Jakub Jelinek <jakub@redhat.com>
2200 Aldy Hernandez <aldyh@redhat.com>
2201 Ilya Verbin <ilya.verbin@intel.com>
2203 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
2204 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
2205 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
2206 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
2207 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
2208 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
2209 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
2210 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
2211 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
2212 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
2213 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
2214 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
2215 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
2216 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
2217 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
2218 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
2219 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
2220 (struct cgraph_simd_clone_arg): Adjust comment.
2221 * coretypes.h (struct gomp_ordered): New forward decl.
2222 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
2223 set critical clauses to it.
2224 (gimple_build_omp_ordered): Return gomp_ordered * instead of
2225 gimple *. Add CLAUSES argument, set ordered clauses to it.
2226 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
2228 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
2229 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
2230 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
2231 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
2232 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
2233 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
2234 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
2235 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
2237 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
2238 (gomp_critical): Add clauses field.
2239 (gomp_ordered): New struct.
2240 (is_a_helper <gomp_ordered *>::test): New inline.
2241 (gimple_build_omp_critical): Add CLAUSES argument.
2242 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
2243 instead of gimple *.
2244 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
2245 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
2246 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
2247 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
2249 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
2250 (dump_gimple_omp_target): Handle enter data and exit data.
2251 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
2252 (dump_gimple_omp_critical): Print clauses.
2253 (dump_gimple_omp_ordered): New function.
2254 (dump_gimple_omp_task): Handle taskloop.
2255 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
2257 * gimple-walk.c (walk_gimple_op): Walk clauses on
2258 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
2259 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
2260 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
2261 (struct gimplify_omp_ctx): Add loop_iter_var,
2262 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
2263 and target_firstprivatize_array_bases fields.
2264 (delete_omp_context): Release loop_iter_var.
2265 (gimplify_bind_expr): Handle ORT_NONE.
2266 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
2267 ORT_COMBINED_TARGET.
2268 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
2269 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
2270 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
2271 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
2272 ctx->target_map_scalars_firstprivate.
2273 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
2274 data sharing clauses. For data sharing clause with VLA decl
2275 on omp target/target data don't add firstprivate for the pointer.
2276 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
2277 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
2278 the addition of ORT_COMBINED_TARGET.
2279 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
2280 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
2281 pointers as zero length array sections and
2282 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
2284 (omp_check_private): Handle omp_member_access_dummy_var vars.
2285 (find_decl_expr): New function.
2286 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
2287 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
2288 Handle OMP_CLAUSE_GANG separately. Handle
2289 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
2290 clauses. Diagnose linear clause on combined
2291 distribute {, parallel for} simd construct, unless it is the loop
2292 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
2293 Handle map clauses with COMPONENT_REF. Initialize
2294 ctx->target_map_scalars_firstprivate,
2295 ctx->target_firstprivatize_array_bases and
2296 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
2297 linear clause even to target region if combined. Remove
2298 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
2299 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
2300 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
2301 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
2302 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
2303 For linear clause on worksharing loop combined with parallel add
2304 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
2305 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
2306 omp_member_access_dummy_var vars. Add lastprivate clause to outer
2308 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
2309 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
2310 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
2312 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
2313 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
2314 in target body. Handle removal of struct mapping if struct is not
2315 seen in target body. Remove GOMP_MAP_STRUCT map clause on
2316 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
2317 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
2318 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
2319 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
2320 clause appear together. Handle
2321 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
2322 clause if it has map-type-modifier always. Handle
2323 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
2325 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
2326 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
2328 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
2329 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
2330 iterators in doacross loops.
2331 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
2332 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
2333 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
2334 for the addition of ORT_COMBINED_TARGET.
2335 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
2336 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
2337 and OMP_TARGET_EXIT_DATA.
2338 (gimplify_omp_ordered): New function.
2339 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
2340 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
2341 Gimplify clauses on OMP_CRITICAL.
2342 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
2343 expand_GOMP_SIMD_ORDERED_END): New functions.
2344 * internal-fn.def (GOMP_SIMD_ORDERED_START,
2345 GOMP_SIMD_ORDERED_END): New internal functions.
2346 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
2347 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
2348 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
2349 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
2350 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
2351 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
2352 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
2353 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
2354 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
2355 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
2356 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
2357 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
2358 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
2359 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
2361 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
2362 GOMP_target_data_41, adjust type.
2363 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
2364 GOMP_target_update_41, adjust type.
2365 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
2367 (struct omp_for_data): Add ordered and simd_schedule fields.
2368 (omp_member_access_dummy_var, unshare_and_remap_1,
2369 unshare_and_remap, is_taskloop_ctx): New functions.
2370 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
2371 (extract_omp_for_data): Handle taskloops and doacross loops
2372 and simd schedule modifier.
2373 (omp_adjust_chunk_size): New function.
2374 (get_ws_args_for): Use it.
2375 (lookup_sfield): Change first argument to splay_tree_key,
2376 add overload with first argument tree.
2377 (maybe_lookup_field): Likewise.
2378 (use_pointer_for_field): Handle omp_member_access_dummy_var.
2379 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
2380 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
2381 (build_outer_var_ref): Add LASTPRIVATE argument, handle
2382 taskloops and omp_member_access_dummy_var vars.
2383 (build_sender_ref): Change first argument to splay_tree_key,
2384 add overload with first argument tree.
2385 (install_var_field): For mask & 8 use &DECL_UID as key instead
2387 (fixup_child_record_type): Const qualify *.omp_data_i.
2388 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
2389 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
2390 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
2391 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
2392 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
2393 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
2394 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
2396 (add_taskreg_looptemp_clauses): New function.
2397 (scan_omp_parallel): Use it.
2398 (scan_omp_task): Likewise.
2399 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
2400 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
2401 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
2402 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
2403 sandwiched taskloop constructs. Type check
2404 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
2405 region. Diagnose depend(source) or depend(sink:...) on
2406 target constructs or task/taskloop.
2407 (handle_simd_reference): Use get_name.
2408 (lower_rec_input_clauses): Likewise. Ignore all
2409 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
2410 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
2411 before passing it to omp_clause_{default,copy}_ctor. Handle
2412 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
2413 lastprivate_firstprivate flag for linear that needs copyin and
2414 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
2415 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
2416 on taskloop lookup decl in outer context. Pass true to
2417 build_outer_var_ref lastprivate argument. Handle
2418 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
2419 outside of outer taskloop for.
2420 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
2422 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
2423 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
2424 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
2425 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
2426 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
2427 abstract origin. Handle omp_member_access_dummy_var vars.
2428 (expand_parallel_call): Use expand_omp_build_assign.
2429 (expand_task_call): Handle taskloop construct expansion. Add
2430 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
2431 integers. Add priority argument to GOMP_task* calls. Or in
2432 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
2434 (expand_omp_build_assign): Add prototype. Add AFTER
2435 argument, if true emit statements after *GSI_P and continue linking.
2436 (expand_omp_taskreg): Adjust expand_task_call caller.
2437 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
2438 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
2439 zero_iter2_bb and first_zero_iter2 arguments, handle computation
2440 of counts even for ordered loops.
2441 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
2442 (expand_omp_ordered_source, expand_omp_ordered_sink,
2443 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
2445 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
2446 clauses on worksharing loop. Handle DOACROSS loop expansion.
2447 (expand_omp_for_static_nochunk): Handle linear clauses on
2448 worksharing loop. Adjust expand_omp_for_init_counts
2450 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
2451 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
2452 expand_omp_for_init_counts callers.
2453 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
2455 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
2456 Handle doacross loops.
2457 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
2458 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
2459 GOMP_target_{41,update_41,enter_exit_data} libcalls.
2460 (expand_omp): Don't expand ordered depend constructs here, record
2461 ord_stmt instead for later expand_omp_for_generic.
2462 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
2463 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
2464 clause as stand-alone directive.
2465 (lower_omp_ordered_clauses): New function.
2466 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
2467 don't lower anything.
2468 (lower_omp_for_lastprivate): Use last _looptemp_ clause
2469 on taskloop for comparison.
2470 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
2471 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
2472 expansion for linear adjustments.
2473 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
2474 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
2475 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
2476 to tree * pointing to the stmt's clauses.
2477 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
2478 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
2479 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
2480 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
2481 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
2482 clauses. Always use short kind and 8-bit align shift.
2483 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
2484 (struct lower_omp_regimplify_operands_data): New type.
2485 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
2487 (lower_omp_1): Use lower_omp_regimplify_operands instead of
2488 gimple_regimplify_operands.
2489 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
2490 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
2491 clause as stand-alone directive.
2492 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
2493 (simd_clone_mangle): Mangle the various linear kinds
2495 (simd_clone_adjust_argument_types): Handle
2496 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
2497 (simd_clone_init_simd_arrays): Don't do anything for uval.
2498 (simd_clone_adjust): Handle
2499 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
2500 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
2501 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
2502 * omp-low.h (omp_member_access_dummy_var): New prototype.
2503 * passes.def (pass_simduid_cleanup): Schedule another copy of the
2504 pass after all optimizations.
2505 * tree.c (omp_clause_code_name): Add entries for
2506 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
2507 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
2508 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
2509 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
2510 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
2511 OMP_CLAUSE_REDUCTION 5 arguments. Handle
2512 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
2513 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
2515 * tree-core.h (enum omp_clause_linear_kind): New.
2516 (struct tree_omp_clause): Change type of map_kind
2517 from unsigned char to unsigned int. Add subcode.if_modifier
2518 and subcode.linear_kind fields.
2519 (enum omp_clause_code): Add
2520 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
2521 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
2522 (OMP_CLAUSE_REDUCTION): Document
2523 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
2524 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
2525 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
2526 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
2528 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
2530 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
2532 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
2533 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
2535 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
2536 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
2537 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
2538 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
2539 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
2540 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
2541 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
2542 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
2543 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
2544 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
2545 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
2546 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
2547 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
2548 * tree-inline.c (remap_gimple_stmt): Handle clauses on
2549 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
2550 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
2551 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
2552 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
2553 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
2554 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
2555 (convert_local_omp_clauses): Likewise.
2556 * tree-pretty-print.c (dump_omp_clause): Handle
2557 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
2558 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
2559 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
2560 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
2561 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
2562 GOMP_MAP_FORCE_DEALLOC. Handle
2563 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
2564 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
2565 and clauses on OMP_ORDERED and OMP_CRITICAL.
2566 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
2567 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
2568 (vectorize_loops): Adjust comments.
2569 (pass_simduid_cleanup::execute): Likewise.
2570 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
2571 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
2572 * wide-int.h (wi::gcd): New.
2574 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
2576 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
2577 (ix86_function_arg_advance): Ditto.
2578 (ix86_function_arg): Ditto.
2579 (ix86_gimplify_va_arg): Ditto.
2580 (ix86_class_max_nregs): Ditto.
2581 (inline_memory_move_cost): Ditto.
2582 (ix86_set_reg_reg_cost): Ditto.
2583 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
2585 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
2588 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
2590 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
2592 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
2593 ROUND_UP macro and UNITS_PER_WORD * 2.
2594 * config/sparc/sparc.c (sparc_compute_frame_size):
2595 Use ROUND_UP and ROUND_DOWN macros where applicable.
2596 (function_arg_record_value, function_arg_record_value_1)
2597 (function_arg_record_value_1): Ditto.
2598 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
2599 alignment to double-word.
2600 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
2601 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
2604 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
2606 * gcc/rtl.h (print_insn): Fix prototype.
2608 2015-10-13 Tom de Vries <tom@codesourcery.com>
2610 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
2611 -1. Add assert that returned entry matches phi argument.
2612 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
2613 free_stmt_vec_info_vec ...
2614 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
2617 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
2619 PR tree-optimization/67909, 67947
2620 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
2621 really skip the inner loop.
2623 2015-10-13 Jeff Law <law@redhat.com>
2625 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2626 Allow single block jump threading paths.
2628 2015-10-13 Tom de Vries <tom@codesourcery.com>
2630 PR tree-optimization/67476
2631 * doc/invoke.texi (@item parloops-schedule): New item.
2632 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
2633 * tree-parloops.c: Include params-enum.h.
2634 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
2636 2015-10-13 Tom de Vries <tom@codesourcery.com>
2638 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
2639 * params-enum.h: New file.
2640 * opts.c (handle_param): Handle case that param arg is a string.
2641 * params-list.h: Handle DEFPARAMENUM5 in params.def.
2642 * params.c (find_param): New function, factored out of ...
2643 (set_param_value): ... here.
2644 (param_string_value_p): New function.
2645 * params.h (struct param_info): Add value_names field.
2646 (find_param, param_string_value_p): Declare.
2648 2015-10-13 Tom de Vries <tom@codesourcery.com>
2650 PR tree-optimization/67476
2651 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
2653 2015-10-13 Richard Biener <rguenther@suse.de>
2655 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
2656 the data dependence vector.
2657 (vect_peeling_hash_insert): Get the peeling hash table as argument.
2658 (vect_peeling_hash_get_lowest_cost): Likewise.
2659 (vect_enhance_data_refs_alignment): Adjust.
2660 (struct _vect_peel_info, struct _vect_peel_extended_info,
2661 struct peel_info_hasher): Move from ...
2662 * tree-vectorizer.h: ... here.
2663 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
2664 (LOOP_VINFO_PEELING_HTAB): Likewise.
2665 (struct _loop_vec_info): Remove min_profitable_iters and
2666 peeling_htab members.
2667 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
2669 (destroy_loop_vec_info): Adjust.
2670 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
2671 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
2672 to estimate alias versioning cost.
2673 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
2675 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
2677 * real.h (real_isinteger): Declare.
2678 * real.c (real_isinteger): New function.
2679 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
2680 if y is an even integer.
2682 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2685 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2686 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
2687 counts when these are more informative.
2689 2015-10-12 Jeff Law <law@redhat.com>
2691 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
2692 (fsm_find_control_stmt_paths): Change name of first argument to
2693 more accurately relfect what it really is. Handle simplification
2694 of GIMPLE_COND after finding a thread path for NAME.
2695 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
2696 nontrivial conditions to be handled by FSM threader.
2697 (thread_through_normal_block): Extract the name to looup via
2698 FSM threader from COND_EXPR.
2700 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
2701 restriction that traced SSA_NAME is a user variable.
2703 2015-10-12 Tom de Vries <tom@codesourcery.com>
2705 PR tree-optimization/67476
2706 * omp-low.c (expand_omp_for_generic): Add missing phis.
2708 2015-10-12 Tom de Vries <tom@codesourcery.com>
2710 PR tree-optimization/67476
2711 * omp-low.c (expand_omp_for_generic): Handle simple latch.
2713 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
2715 * config/aarch64/aarch64-simd-builtins.def: Update builtins
2716 tables: add tbl3 and tbx4.
2717 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
2718 (aarch64_tbx4v8qi): New.
2719 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
2720 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
2721 Rewrite using builtin functions.
2722 * config/aarch64/iterators.md (UNSPEC_TBX): New.
2724 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
2726 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
2728 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
2729 Use ROUND_UP and ROUND_DOWN macros where applicable.
2730 (rs6000_darwin64_record_arg_flush): Ditto.
2731 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
2732 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
2735 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
2737 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
2738 (AARCH64_ROUND_DOWN): Ditto.
2739 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
2741 2015-10-12 Richard Biener <rguenther@suse.de>
2744 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
2745 code that analyzes IVs on each stmt but in a cheaper way avoiding
2748 2015-10-12 Nick Clifton <nickc@redhat.com>
2750 * config/msp430/msp430.c (msp430_mcu_names): Rename to
2751 msp430_mcu_data, add fields for ISA and hardware multiply
2752 support. Import latest data from the devices.csv file.
2753 (msp430_override_option): Use the data from the new array.
2754 (msp430_use_f5_series_hwmult): Likewise.
2755 (use_32bit_hwmult): Likewise.
2756 (msp430_no_hwmult): Likewise.
2757 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
2759 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
2760 not recognised then no hardware multiply support is assumed and
2761 that only the MSP430 ISA is allowed.
2763 2015-10-12 Richard Biener <rguenther@suse.de>
2765 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
2767 (vect_analyze_loop_2): ... here.
2769 2015-10-11 Jason Merrill <jason@redhat.com>
2772 * expr.c (store_field): Call store_constructor directly when
2773 storing a CONSTRUCTOR into a target smaller than its type.
2774 Guard against unsafe bitwise copy.
2776 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2778 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
2779 counts when these are more informative.
2781 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2783 * tree-profile.c (tree_profiling): Do not clear
2784 pure/const when not instrumenting.
2785 (pass tree_profile): Add dump of symtab.
2787 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2789 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
2791 (fold_addr_of_array_ref_difference): Likewise.
2793 2015-10-11 Jeff Law <law@redhat.com>
2795 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
2796 tree-ssa-threadbackward.c.
2797 (fsm_find_control_statement_thread_paths): Likewise.
2798 (thread_through_normal_block): Break out FSM bits and move them
2799 into a new function in tree-ssa-threadbackward.c. Call new function
2801 Minimize header file usage.
2802 * tree-ssa-threadbackward.h: New file.
2803 * tree-ssa-threadbackward.c: Likewise.
2804 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
2806 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
2808 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
2810 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
2812 PR rtl-optimization/67864
2813 * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
2814 fallthrough edges for conditional jumps. Don't sort candidate
2815 edges if not optimizing for speed.
2817 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2819 * defaults.h (REVERSE_CONDITION): New default definition.
2820 * jump.c (reversed_comparison_code_parts): Adjust.
2822 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2824 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
2825 check HARD_FRAME_POINTER_IS_ARG_POINTER.
2827 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2829 * defaults.h (FRAME_ADDR_RTX): New default definition.
2830 * builtins.c (expand_builtin_return_addr): Adjust.
2832 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2834 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
2835 * builtins.c (expand_builtin_return_addr): Adjust.
2837 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2839 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
2840 * builtins.c (expand_builtin_return_addr): Adjust.
2841 * doc/tm.texi: Likewise.
2842 * doc/tm.texi.in: Likewise.
2843 * except.c (expand_builtin_unwind_init): Likewise.
2845 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2847 * builtins.c (expand_builtin_return_addr): Adjust.
2848 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
2850 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
2852 * tree.c (type_with_interoperable_signedness): New.
2853 (gimple_canonical_types_compatible_p): Use it.
2854 * tree.h (type_with_interoperable_signedness): Declare
2856 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
2858 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
2859 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
2860 when OEP_ADDRESS_OF is se.
2862 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
2863 Sebastian Pop <s.pop@samsung.com>
2865 * graphite-dependences.c (scop_get_dependences): Add dump of the
2866 data dependence graph.
2867 * graphite-poly.c (print_isl_union_map): New.
2868 (debug_isl_union_map): New.
2869 * graphite-poly.h (print_isl_union_map): Declare.
2870 (debug_isl_union_map): Declare.
2872 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
2873 Sebastian Pop <s.pop@samsung.com>
2875 * graphite-poly.c (print_iteration_domain): Remove verbosity.
2876 Remove OpenScop formatting.
2877 (print_iteration_domains): Same.
2878 (debug_iteration_domain): Same.
2879 (debug_iteration_domains): Same.
2882 (dump_gbb_cases): Same.
2883 (dump_gbb_conditions): Same.
2886 (print_pbb_body): Same.
2888 (print_scop_params): Same.
2889 (print_scop_context): Same.
2891 (debug_pbb_domain): Same.
2893 (debug_scop_context): Same.
2895 (debug_scop_params): Same.
2896 * graphite-poly.h: Same.
2897 * graphite.c (graphite_transform_loops): Same.
2899 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2901 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
2902 call that isn't needed.
2904 2015-10-09 Jeff Law <law@redhat.com>
2906 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
2907 rather than moving each name to the freelist individually.
2909 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
2911 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
2912 * frame-header-opt.c: New file.
2913 * config/mips/mips-proto.h (mips_register_frame_header_opt):
2915 * config/mips/mips.c (mips_compute_frame_info): Check
2916 optimize_call_stack flag.
2917 (mips_option_override): Register new frame_header_opt pass.
2918 (mips_frame_info, mips_int_mask, mips_shadow_set,
2919 machine_function): Move these types to...
2920 * config/mips/mips.h: here.
2921 (machine_function): Add does_not_use_frame_header and
2922 optimize_call_stack fields.
2923 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
2924 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
2926 * config/mips/mips.opt (mframe-header-opt): Add new option.
2928 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
2930 * config/i386/i386.c
2931 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
2932 ROUND_DOWN where applicable.
2934 2015-10-09 Jeff Law <law@redhat.com>
2936 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
2939 2015-10-09 Renlin Li <renlin.li@arm.com>
2941 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
2942 operands[0] and operands[2].
2943 (neon_vtrn<mode>_insn): Likewise.
2944 (neon_vzip<mode>_insn): Likewise.
2946 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
2948 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
2949 ((X & C2) << C1): Expand to...
2950 (X {&,^,|} C2 << C1): ...This.
2951 ((X & C2) >> C1): Expand to...
2952 (X {&,^,|} C2 >> C1): ...This.
2954 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
2957 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
2958 Adjust embedded rounding/SAE specifier position.
2959 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
2960 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
2961 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
2962 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
2963 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
2965 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
2967 2015-10-09 Martin Jambor <mjambor@suse.cz>
2969 tree-optimization/67794
2970 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
2971 between types of state,ents but accept original definitions as a
2973 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
2974 iterate over definitions.
2976 2015-10-09 James Norris <jnorris@codesourcery.com>
2978 * config/rs6000/rs6000.c (rs6000_offload_options): New.
2979 (TARGET_OFFLOAD_OPTIONS): New.
2981 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
2984 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
2987 * function.c (expand_function_end): Move return value
2988 promotion past the handling of PARALLELs and CONCATs.
2990 PR rtl-optimization/67828
2991 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
2992 (tree_may_unswitch_on): Don't unswitch on expressions
2993 involving undefined values.
2995 2015-10-09 Richard Biener <rguenther@suse.de>
2997 * genmatch.c (print_operand): Fix formatting.
2998 (dt_node::append_simplify): Warn for multiple simplifiers
2999 that match the same pattern.
3000 * match.pd (log (exp @0)): Remove duplicates.
3002 2015-10-09 Richard Biener <rguenth@suse.de>
3005 * gimple-fold.c (optabs-query.h): Include
3006 (gimple_fold_builtin_memory_op): Allow unaligned stores
3007 when movmisalign_optabs are available.
3009 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3012 * config/arm/arm.md (movmisalign<mode>): New.
3013 * config/arm/iterators.md (HSI): New.
3015 2015-10-09 Richard Biener <rguenther@suse.de>
3017 PR tree-optimization/67891
3018 * gimple-match.h (gimple_simplified_result_is_gimple_val):
3020 (gimple_resimplify1): Declare.
3021 (gimple_resimplify2): Likewise.
3022 (gimple_resimplify3): Likewise.
3023 * gimple-match-head.c (gimple_resimplify1): Export.
3024 (gimple_resimplify2): Likewise.
3025 (gimple_resimplify3): Likewise.
3026 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
3027 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
3028 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
3029 to avoid creating stmts without VN info.
3031 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
3033 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
3036 2015-10-08 Jeff Law <law@redhat.com>
3038 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
3039 and release_ssa_name in two places.
3040 (gimple_stringop_fixed_value): Similarly.
3042 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
3045 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
3046 unlink_stmt_vdef and release_ssa_name_fn.
3048 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
3051 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
3053 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
3054 SSE register save area to 16 bytes only if the incoming stack
3055 boundary is no less than 16 bytes.
3057 2015-10-08 Jeff Law <law@redhat.com>
3059 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
3060 release_ssa_name. Fix typo in comment.
3062 2015-10-08 Nathan Sidwell <nathan@acm.org>
3064 * config/nvptx/nvptx.h (struct machine_function): Add comment.
3065 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
3066 may return pointer as well as in memory.
3067 (nvptx_output_return): Likewise.
3069 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
3071 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
3072 (fold_builtin_1): Update accordingly. Handle constant arguments here.
3073 * match.pd: Add rules previously handled by fold_builtin_sqrt
3074 and fold_builtin_cbrt.
3076 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
3078 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
3079 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
3080 * fold-const.h (tree_unary_nonnegative_warnv_p)
3081 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
3082 (tree_expr_nonnegative_warnv_p): Add depth parameters.
3083 * fold-const.c: Include gimple-fold.h and params.h.
3084 (tree_ssa_name_nonnegative_warnv_p): New function.
3085 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
3086 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
3087 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
3088 Add a depth parameter and increment it for recursive calls to
3089 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
3090 to handle SSA names.
3091 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
3092 (gimple_stmt_nonnegative_warnv_p): Declare.
3093 * tree-vrp.c (remove_range_assertions): Remove assert that condition
3094 cannot be proven false.
3095 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
3096 (gimple_stmt_nonnegative_warnv_p): Move to...
3097 * gimple-fold.c: ...here. Add depth parameters and pass them
3098 down to the tree routines. Accept statements that aren't
3099 assignments or calls but just return false for them.
3100 (gimple_val_nonnegative_real_p): Delete.
3101 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
3102 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
3103 Check HONOR_NANs first.
3105 2015-10-08 Martin Jambor <mjambor@suse.cz>
3107 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
3110 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
3112 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
3113 in the tail of outer-loop.
3115 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
3117 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
3120 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
3122 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
3123 "cfghooks.h", add prototypes for introduced new functions.
3124 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
3125 checks on ability of loop unswitching to tree_unswitch_single_loop;
3126 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
3127 on innermost loop check.
3128 (tree_unswitch_single_loop): Add all required checks on ability of
3129 loop unswitching under zero recursive level guard.
3130 (tree_unswitch_outer_loop): New function.
3131 (find_loop_guard): Likewise.
3132 (empty_bb_without_guard_p): Likewise.
3133 (used_outside_loop_p): Likewise.
3134 (get_vop_from_header): Likewise.
3135 (hoist_guard): Likewise.
3136 (check_exit_phi): Likewise.
3138 2015-10-08 Marek Polacek <polacek@redhat.com>
3140 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
3143 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3146 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
3147 create_tmp_var_raw instead of create_tmp_var.
3149 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
3151 * expr.c (store_expr_with_bounds): Handle aggregate moves from
3153 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
3154 to define gimple type system; compare aggregates only by size.
3156 2015-10-07 Jeff Law <law@redhat.com>
3158 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
3159 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
3160 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
3163 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
3164 Sebastian Pop <s.pop@samsung.com>
3166 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
3167 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
3168 (generate_isl_schedule): Same.
3169 * graphite-optimize-isl.c (scop_get_domains): Same.
3170 (apply_schedule_map_to_scop): Same.
3171 * graphite-poly.c (print_iteration_domains): Same.
3172 (remove_gbbs_in_scop): Same.
3176 * graphite-poly.h (struct scop): Rename bbs to pbbs.
3178 * graphite-scop-detection.c (compare_bb_depths): Remove.
3179 (graphite_sort_dominated_info): Remove.
3180 (try_generate_gimple_bb): Move out of scop_detection.
3181 (all_non_dominated_preds_marked_p): Remove.
3182 (build_scop_bbs_1): Remove.
3183 (build_scop_bbs): Remove.
3184 (nb_pbbs_in_loops): Do not use SCOP_BBS.
3185 (find_scop_parameters): Same.
3186 (sese_dom_walker): Rename gather_bbs.
3187 (before_dom_children): Call try_generate_gimple_bb and collect gbb
3189 (build_scops): Call gather_bbs.
3190 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
3191 (add_conditions_to_constraints): Same.
3192 (build_scop_iteration_domain): Same.
3193 (build_scop_drs): Same.
3194 (new_pbb_from_pbb): Same.
3195 * sese.c (new_sese_info): Create bbs.
3196 * sese.h (struct sese_info_t): Add bbs.
3198 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
3200 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
3201 encoding in 64-bit mode.
3203 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
3206 * config/i386/i386.c (ix86_option_override_internal): Always use
3207 8-byte minimum stack boundary in 64-bit mode.
3208 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
3209 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
3210 Add a REG_CFA_EXPRESSION note if needed.
3211 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
3212 (ix86_handle_force_align_arg_pointer_attribute): New.
3213 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
3214 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
3215 with ix86_handle_force_align_arg_pointer_attribute.
3216 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
3218 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
3219 Sebastian Pop <s.pop@samsung.com>
3221 * graphite-scop-detection.c (parameter_index_in_region): Remove
3222 use of SESE_ADD_PARAMS.
3223 (find_scop_parameters): Same.
3224 * sese.c (new_sese_info): Same.
3225 * sese.h (struct sese_info_t): Remove add_params.
3226 (SESE_ADD_PARAMS): Remove.
3228 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
3229 Sebastian Pop <s.pop@samsung.com>
3231 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
3234 (copy_internal_parameters): Same.
3235 (translate_isl_ast_to_gimple): Use an sese_l.
3236 (build_iv_mapping): Same.
3237 * graphite-poly.c (new_sese): Rename new_sese_info.
3238 (free_sese): Rename free_sese_info.
3239 * graphite-poly.h (struct scop): Use an sese_info_p.
3240 (scop_set_region): Same.
3241 * graphite-scop-detection.c (struct sese_l): Moved...
3242 (get_entry_bb): Moved...
3243 (get_exit_bb): Moved...
3244 (parameter_index_in_region_1): Use an sese_info_p.
3245 (parameter_index_in_region): Same.
3246 (scan_tree_for_params): Same.
3247 (find_params_in_bb): Same.
3248 (sese_dom_walker): Use an sese_l.
3249 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
3250 (reduction_phi_p): Same.
3251 (parameter_index_in_region_1): Use an sese_info_p.
3252 (propagate_expr_outside_region): Use an sese_l.
3253 * graphite.c: Replace uses of SCOP_REGION.
3254 * sese.c (sese_record_loop): Use an sese_info_p.
3255 (build_sese_loop_nests): Same.
3256 (sese_build_liveouts_use): Same.
3257 (sese_build_liveouts_bb): Same.
3258 (sese_build_liveouts_bb): Same.
3259 (sese_bad_liveouts_use): Same.
3260 (sese_reset_debug_liveouts_bb): Same.
3261 (sese_build_liveouts): Same.
3262 (new_sese): Renamed new_sese_info.
3263 (free_sese): Renamed free_sese_info.
3264 (set_rename): Use an sese_info_p.
3265 (graphite_copy_stmts_from_block): Same.
3266 (copy_bb_and_scalar_dependences): Same.
3267 (outermost_loop_in_sese_1): Use an sese_l.
3268 (outermost_loop_in_sese): Same.
3269 (if_region_set_false_region): Use an sese_info_p.
3270 (move_sese_in_condition): Same.
3271 (scalar_evolution_in_region): Use an sese_l.
3272 * sese.h (struct sese_l): ... here.
3273 (SESE_ENTRY): Remove.
3274 (SESE_ENTRY_BB): Remove.
3275 (SESE_EXIT): Remove.
3276 (SESE_EXIT_BB): Remove.
3277 (sese_contains_loop): Use an sese_info_p.
3278 (sese_nb_params): Same.
3279 (bb_in_sese_p): Use an sese_l.
3280 (stmt_in_sese_p): Same.
3281 (defined_in_sese_p): Same.
3282 (loop_in_sese_p): Same.
3283 (sese_loop_depth): Same.
3284 (struct ifsese_s): Use an sese_info_p.
3285 (gbb_loop_at_index): Use an sese_l.
3286 (nb_common_loops): Same.
3287 (scev_analyzable_p): Same.
3289 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
3291 * config/i386/i386.c (ix86_conditional_register_usage): Use
3292 CALL_USED_REGISTERS_MASK.
3293 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
3295 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
3298 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
3299 * configure: Regenerated.
3301 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
3304 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
3305 (ix86_set_current_function): This.
3306 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
3308 2015-10-07 Richard Biener <rguenther@suse.de>
3310 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
3311 (vinfo_for_stmt): Adjust.
3312 (set_vinfo_for_stmt): Likewise.
3313 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
3314 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
3315 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
3317 (vect_analyze_loop_1): Remove.
3318 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
3319 inner loop when vectorizing an outer loop by splitting out from ...
3320 (vect_analyze_loop_form): ... here.
3322 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3325 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
3326 Use create_tmp_var_raw instead of create_tmp_var.
3328 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
3330 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
3331 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
3332 * real.c (CACHED_FRACTION): New helper macro.
3333 (dconst_third_ptr): Use it.
3334 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
3335 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
3337 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
3339 2015-10-06 Jeff Law <law@redhat.com>
3341 PR tree-optimization/67816
3342 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
3343 from remove_jump_threads_starting_at. Accept an edge rather than
3345 * tree-ssa-threadupdate.c (removed_edges): New hash table.
3346 (remove_jump_threads_including): Note edges that get removed from
3347 the CFG for later pruning of jump threading paths including them.
3348 (thread_through_all_blocks): Remove paths which include edges that
3350 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
3351 on each outgoing edges when optimizing away a control statement.
3353 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3355 * reorg.c (emit_delay_sequence): Store list of delay slot insns
3356 in a vector instead of rtx_insn_list.
3357 (add_to_delay_list): Likewise.
3358 (delete_from_delay_slot): Likewise.
3359 (optimize_skip): Likewise.
3360 (redirect_with_delay_list_safe_p): Likewise.
3361 (check_annul_list_true_false): Likewise.
3362 (steal_delay_list_from_target): Likewise.
3363 (steal_delay_list_from_fallthrough): Likewise.
3364 (redundant_insn): Likewise.
3365 (fill_simple_delay_slots): Likewise.
3366 (fill_slots_from_thread): Likewise.
3367 (fill_eager_delay_slots): Likewise.
3368 (relax_delay_slots): Likewise.
3370 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
3372 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
3373 For -mgpopt=local, also exclude unintialized common symbols.
3374 * doc/invoke.texi (Nios II Options): Document the change.
3376 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
3378 * config/aarch64/iterators.md (vwcore): Add missing cases for
3381 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
3382 Sebastian Pop <s.pop@samsung.com>
3384 * graphite-poly.c (new_scop): Initialize drs.
3385 * graphite-poly.h (struct dr_info): New.
3386 (struct scop): Add drs.
3387 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
3388 (pdr_add_memory_accesses): Same.
3389 (build_poly_dr): Same.
3390 (build_alias_set): Same.
3391 (build_scop_drs): Same.
3392 (build_pbb_drs): Remove.
3393 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
3394 * tree-data-ref.h (data_reference): Remove alias_set.
3396 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
3397 Sebastian Pop <s.pop@samsung.com>
3399 * graphite-poly.c (free_data_refs_aux): Remove.
3400 (free_gimple_poly_bb): Do not call free_data_refs_aux.
3401 * graphite-poly.h (struct base_alias_pair): Remove.
3402 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
3403 base_alias_pair and dr->aux.
3404 (build_alias_set): Same.
3405 * tree-data-ref.c (create_data_ref): Initialize alias_set.
3406 * tree-data-ref.h (data_reference): Add alias_set.
3408 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
3409 Sebastian Pop <s.pop@samsung.com>
3411 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
3412 Do not set PDR_BASE_OBJECT_SET.
3413 * graphite-poly.h (poly_dr): Same.
3414 (PDR_BASE_OBJECT_SET): Remove.
3415 (new_poly_dr): Update decl.
3416 * graphite-sese-to-poly.c (build_poly_dr): Update call to
3418 (write_alias_graph_to_ascii_dimacs): Remove.
3419 (write_alias_graph_to_ascii_dot): Remove.
3420 (write_alias_graph_to_ascii_ecc): Remove.
3421 (dr_same_base_object_p): Remove.
3422 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
3424 (build_base_obj_set_for_drs): Remove.
3425 (dump_alias_graphs): Remove.
3426 (build_scop_drs): Remove dead code.
3428 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
3429 Peter Bergner <bergner@vnet.ibm.com>
3432 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
3433 allow registers, but provide insns for the combiner to create for
3434 loads from memory. Separate VSX code from non-VSX code. For
3435 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
3436 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
3437 so that registers come before memory operations. Drop support from
3438 converting DFmode to TFmode, if the DFmode value is in a GPR
3440 (extenddftf2_fprs): Likewise.
3441 (extenddftf2_internal): Likewise.
3442 (extenddftf2_vsx): Likewise.
3443 (extendsftf2): In the expander, only allow registers, but provide
3444 insns for the combiner to create for stores and loads.
3446 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3448 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
3449 from the decl parameter.
3451 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
3454 * gimple-fold.c (gimple_fold_builtin): Add break after
3455 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
3457 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
3459 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
3460 to scop->isl_context.
3462 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
3464 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
3465 (output_probe_stack_range): Rotate the loop and simplify.
3466 (thumb1_expand_prologue): Tweak sorry message.
3467 * config/arm/arm.md (probe_stack): Use bare string.
3469 2015-10-06 Nick Clifton <nickc@redhat.com>
3471 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
3473 2015-10-06 Nick Clifton <nickc@redhat.com>
3475 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
3476 (ATTR_PERSIST): New constant.
3477 (msp430_data_attr): New function - verifies an attribute that only
3478 applies to variables.
3479 (msp430_attributes): Add noinit and persistent attributes.
3480 (noinit_section): New variable.
3481 (presis_section): New variable.
3482 (TARGET_ASM_INIT_SECTIONS): Define.
3483 (msp430_init_sections): New function - initialises the noinit and
3484 persist section variables.
3485 (msp430_select_section): Add support for noinit and persist
3487 (msp430_section_type_flags): Likewise.
3488 * doc/extend.texi: Document the reent, critical, wakeup, noinit
3489 and persistent attributes.
3491 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3492 Sebastian Pop <s.pop@samsung.com>
3494 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
3495 (no_violations): Remove.
3496 (subtract_commutative_associative_deps): Remove.
3497 (compute_deps): Do not call subtract_commutative_associative_deps.
3498 (transform_is_safe): Remove.
3499 (graphite_legal_transform): Remove.
3500 * graphite-poly.h (graphite_legal_transform): Remove.
3502 2015-10-05 Aditya Kumar <hiraditya@msn.com>
3504 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
3505 which are in this region are passed so gcc_assert and remove redundant
3507 * sese.c (sese_build_liveouts): Pass only those bbs which are not
3509 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
3510 gcc_assert on that and remove unnecessary computation.
3511 (sese_build_liveouts_use): Same.
3513 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3515 * graphite-dependences.c (scop_get_reads): Renamed scop->context
3516 to scop->param_context.
3517 (scop_get_must_writes): Same.
3518 (scop_get_may_writes): Same.
3519 (scop_get_original_schedule): Same.
3520 (scop_get_transformed_schedule): Same.
3521 (subtract_commutative_associative_deps): Same.
3522 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
3523 (generate_isl_context): Same.
3524 (generate_isl_schedule): Same.
3525 (scop_to_isl_ast): Same.
3526 (graphite_regenerate_ast_isl): Same.
3527 * graphite-optimize-isl.c (scop_get_domains): Same.
3528 (optimize_isl): Renamed scop->context to scop->param_context.
3529 * graphite-poly.c (new_poly_bb): Change the type of argument to
3531 (new_scop): Renamed scop->context to scop->param_context.
3533 (print_scop_context): Same.
3534 * graphite-poly.h (new_poly_dr): Change the type of argument from
3535 void* to data_reference_p.
3536 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
3537 (new_poly_bb): Change the type of argument from void* to
3539 (pbb_set_black_box): Same.
3540 (struct scop): Rename context to param_context, ctx to isl_context.
3541 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
3542 Move declarations closer to assignment.
3543 (find_params_in_bb): Same.
3544 (find_scop_parameters): Same.
3545 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
3546 Global to be used for statement IDs.
3547 (isl_id_for_pbb): Use ssa_name_version_typesize.
3548 (simple_copy_phi_p): Move declarations closer to assignment.
3549 (build_pbb_scattering_polyhedrons): Same.
3550 (build_scop_scattering): Same.
3551 (isl_id_for_ssa_name): Same.
3552 (extract_affine_name): Same.
3553 (extract_affine_int): Same.
3554 (extract_affine): Same.
3555 (set_scop_parameter_dim): Use renamed member.
3556 (build_loop_iteration_domains): Same.
3557 (add_param_constraints): Same.
3558 (build_scop_iteration_domain): Same.
3559 (pdr_add_data_dimensions): Same.
3560 (build_poly_dr): Same.
3561 (build_scop_drs): Move declarations closer to assignment.
3562 (analyze_drs_in_stmts): Same.
3563 (insert_out_of_ssa_copy): Same.
3564 (insert_out_of_ssa_copy_on_edge): Same.
3565 (propagate_expr_outside_region): Same.
3566 (rewrite_phi_out_of_ssa): Same.
3567 (rewrite_degenerate_phi): Same.
3568 (rewrite_reductions_out_of_ssa): Same.
3569 (rewrite_cross_bb_scalar_dependence): Same.
3570 (handle_scalar_deps_crossing_scop_limits): Same.
3571 (rewrite_cross_bb_scalar_deps): Same.
3572 * graphite.c (graphite_transform_loops): Use renamed member.
3574 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
3577 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
3578 create_tmp_var_raw instead of create_tmp_var.
3580 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3583 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
3584 Use create_tmp_var_raw instead of create_tmp_var.
3586 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
3589 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
3590 split for upper-bank registers when target does not support
3592 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
3593 split when target does not support AVX512VL.
3595 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
3598 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
3599 Adjust to use create_tmp_var_raw instead of create_tmp_var.
3601 2015-10-06 Nick Clifton <nickc@redhat.com>
3603 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
3606 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3608 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
3609 (case ${target}): Add znver1.
3610 * config/i386/cpuid.h(bit_CLZERO): Define.
3611 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
3612 -march=native recognize znver1 processors.
3613 * config/i386/i386-c.c (ix86_target_macros_internal): Add
3614 znver1, clzero def_and_undef.
3615 * config/i386/i386.c (struct processor_costs znver1_cost): New.
3616 (m_znver1): New definition.
3617 (m_AMD_MULTIPLE): Includes m_znver1.
3618 (processor_target_table): Add znver1 entry.
3619 (ix86_target_string) : Add clzero entry.
3620 (static const char *const cpu_names): Add znver1 entry.
3621 (ix86_option_override_internal): Add znver1 instruction sets.
3622 (PTA_CLZERO) : New definition.
3623 (ix86_option_override_internal): Handle new clzerooption.
3624 (ix86_issue_rate): Add znver1.
3625 (ix86_adjust_cost): Add znver1.
3626 (ia32_multipass_dfa_lookahead): Add znver1.
3627 (has_dispatch): Add znver1.
3628 * config/i386/i386.h (TARGET_znver1): New definition.
3629 (TARGET_CLZERO): Define.
3630 (TARGET_CLZERO_P): Define.
3631 (struct ix86_size_cost): Add TARGET_ZNVER1.
3632 (enum processor_type): Add PROCESSOR_znver1.
3633 * config/i386/i386.md (define_attr "cpu"): Add znver1.
3634 (set_attr znver1_decode): New definitions for znver1.
3635 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
3637 * config/i386/mmx.md (set_attr znver1_decode): New definitions
3639 * config/i386/sse.md (set_attr znver1_decode): Likewise.
3640 * config/i386/x86-tune.def: Add znver1 tunings.
3641 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
3642 * gcc/doc/invoke.texi: Add details about znver1
3644 2015-10-06 Richard Biener <rguenther@suse.de>
3646 PR tree-optimization/67859
3647 * tree-ssa-pre.c (create_expression_by_pieces): Properly
3648 discard not inserted stmts.
3650 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
3652 * doc/extend.texi (Template Instantiation): Reorder options and
3653 de-emphasize -frepo.
3654 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
3655 example instead of -frepo.
3657 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
3660 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
3661 use create_tmp_var_raw rather than create_tmp_var.
3663 2015-10-06 Richard Biener <rguenther@suse.de>
3665 * tree-vectorizer.h (vec_info): New base class for...
3666 (_loop_vec_info): ... this and ...
3667 (_bb_vec_info): ... this.
3668 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
3669 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
3670 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
3671 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
3672 vect_destroy_datarefs): Adjust interface to take a vec_info *
3673 rather than both a loop_vec_info and a bb_vec_info argument.
3674 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
3675 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
3676 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
3677 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
3679 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
3680 (destroy_loop_vec_info, vect_analyze_loop_2,
3681 vect_is_simple_reduction_1, get_initial_def_for_induction,
3682 vect_create_epilog_for_reduction, vectorizable_reduction,
3683 vectorizable_live_operation, vect_transform_loop): Adjust.
3684 * tree-vect-patterns.c (type_conversion_p,
3685 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
3686 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
3687 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
3688 check_bool_pattern, vect_recog_bool_pattern,
3689 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
3690 * tree-vect-slp.c (vect_get_and_check_slp_defs,
3691 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
3692 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
3693 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
3694 (new_bb_vec_info): Initialize base classs.
3695 * tree-vect-stmts.c (record_stmt_cost, process_use,
3696 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
3697 vectorizable_mask_load_store, vectorizable_call,
3698 vectorizable_simd_clone_call, vectorizable_conversion,
3699 vectorizable_assignment, vectorizable_shift,
3700 vectorizable_operation, vectorizable_store,
3701 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
3702 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
3703 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
3705 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
3708 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
3709 create_tmp_var_raw rather than create_tmp_var.
3711 2015-10-05 Marek Polacek <polacek@redhat.com>
3713 * tree-ssa-loop-im.c
3714 (move_computations_dom_walker::before_dom_children): Don't set
3715 SSA_NAME_ANTI_RANGE_P.
3716 * tree-ssa-phiopt.c (value_replacement): Likewise.
3718 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3719 Sebastian Pop <s.pop@samsung.com>
3721 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
3723 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3724 Sebastian Pop <s.pop@samsung.com>
3726 * graphite-poly.c (new_gimple_poly_bb): ... here.
3727 (free_data_refs_aux): ... here.
3728 (free_gimple_poly_bb): ... here.
3729 (remove_gbbs_in_scop): ... here.
3730 (new_scop): Call new_sese.
3731 (free_scop): Call remove_gbbs_in_scop and free_sese.
3732 * graphite-poly.h (base_alias_pair): ... here.
3733 (new_gimple_poly_bb): Declare.
3734 (free_gimple_poly_bb): Declare.
3735 * graphite-scop-detection.c (parameter_index_in_region_1):
3736 (parameter_index_in_region): ... here.
3737 (scan_tree_for_params): ... here.
3738 (find_params_in_bb): ... here.
3739 (find_scop_parameters): ... here.
3740 (build_scops): Call find_scop_parameters.
3741 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
3742 (free_scops): Move...
3743 (single_pred_cond_non_loop_exit): Move...
3744 (sese_dom_walker::before_dom_children): Move...
3745 (sese_dom_walker::after_dom_children): Move...
3746 (build_poly_scop): Move...
3747 * graphite-sese-to-poly.h (base_alias_pair): Move...
3748 * graphite.c (free_scops): ... here.
3750 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3751 Sebastian Pop <s.pop@samsung.com>
3753 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
3754 (trivially_empty_bb_p): Move...
3755 (same_close_phi_node): Move...
3756 (new_gimple_poly_bb): Move...
3757 (compare_bb_depths): Move...
3758 (graphite_sort_dominated_info): Move...
3759 (remove_duplicate_close_phi): Move...
3760 (make_close_phi_nodes_unique): Move...
3761 (canonicalize_loop_closed_ssa): Move...
3762 (canonicalize_loop_closed_ssa_form): Move...
3763 (loop_ivs_can_be_represented): Move...
3764 (single_pred_cond_non_loop_exit): Move...
3765 (graphite_can_represent_init): Move...
3766 (graphite_can_represent_scev): Move...
3767 (stmt_has_simple_data_refs_p): Move...
3768 (stmt_has_side_effects): Move...
3769 (graphite_can_represent_stmt): Move...
3770 (scop_detection): ... here.
3771 (sese_dom_walker): ... and here.
3772 (build_scops): Call all moved functions.
3773 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
3774 (all_non_dominated_preds_marked_p): Move...
3775 (build_scop_bbs_1): Move...
3776 (build_scop_bbs): Move...
3777 (set_scop_parameter_dim): Move...
3778 (nb_pbbs_in_loops): Move...
3779 (build_poly_scop): Do not call all the moved functions.
3781 2015-10-05 Martin Jambor <mjambor@suse.cz>
3782 Jan Hubicka <hubicka@ucw.cz>
3784 * ipa-cp.c (ipcp_alignment_lattice): New type.
3785 (ipcp_param_lattices): Use the above to represent alignment.
3786 (ipcp_alignment_lattice::print): New function.
3787 (print_all_lattices): Use it to print alignment information.
3788 (ipcp_alignment_lattice::top_p): New function.
3789 (ipcp_alignment_lattice::bottom_p): Likewise.
3790 (ipcp_alignment_lattice::set_to_bottom): Likewise.
3791 (ipcp_alignment_lattice::meet_with_1): Likewise.
3792 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
3793 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
3794 (initialize_node_lattices): Likewise.
3795 (propagate_alignment_accross_jump_function): Work with the new class
3796 for alignment lattices.
3797 (propagate_constants_accross_call): Pass only the alignment lattice to
3798 propagate_alignment_accross_jump_function.
3799 (ipcp_store_alignment_results): Work with the new class for alignment
3802 2015-10-05 Marek Polacek <polacek@redhat.com>
3804 PR tree-optimization/67821
3805 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
3807 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
3810 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
3812 (mkoffload_cleanup): ... this. Adjust all users.
3813 (maybe_unlink): Look at save_temps and verbose flags instead of
3815 (main): Parse "-save-temps" flag.
3816 (generate_target_descr_file, generate_target_offloadend_file)
3817 (generate_host_descr_file, prepare_target_image): Pass it on.
3818 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
3819 (mkoffload_cleanup): New function.
3820 (maybe_unlink): Look at save_temps and verbose flags instead of
3822 (main): Instead of calling utils_cleanup, register atexit handler
3823 for mkoffload_cleanup.
3824 (main): Parse "-save-temps" flag.
3825 (compile_native, main): Pass it on.
3826 * lto-wrapper.c (compile_offload_image): Likewise.
3828 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3830 * gimple.h (gimple_op_ptr): Require a non const gimple *.
3831 (gimple_assign_lhs_ptr): Likewise.
3832 (gimple_assign_rhs1_ptr): Likewise.
3833 (gimple_assign_rhs2_ptr): Likewise.
3834 (gimple_assign_rhs3_ptr): Likewise.
3835 (gimple_call_lhs_ptr): Likewise.
3836 (gimple_call_fn_ptr): Likewise.
3837 (gimple_call_chain_ptr): Likewise.
3838 (gimple_call_arg_ptr): Likewise.
3839 (gimple_cond_lhs_ptr): Likewise.
3840 (gimple_cond_rhs_ptr): Likewise.
3841 (gimple_switch_index_ptr): Likewise.
3842 (gimple_return_retval_ptr): Likewise.
3844 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3846 * gimple.h (gimple_asm_input_op_ptr): Remove.
3847 (gimple_asm_output_op_ptr): Likewise.
3849 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3851 * gimple.h (gimple_location_ptr): Remove.
3852 * tree-vrp.c (check_all_array_refs): Adjust.
3854 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3856 * tree-ssa-operands.c (build_uses): store tree * instead of
3858 (finalize_ssa_uses): Adjust.
3859 (append_use): Likewise.
3860 (verify_ssa_operands): Likewise.
3862 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3864 * real.h (build_real_truncate): Declare.
3865 * tree.c (build_real_truncate): New function.
3866 (strip_float_extensions): Use it.
3867 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
3868 (fold_builtin_hypot, fold_builtin_pow): Likewise.
3869 * match.pd: Likewise.
3871 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
3872 Jiong Wang <jiong.wang@arm.com>
3874 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
3876 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3878 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
3879 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
3880 (aarch64_print_operand, aarch64_float_const_representable_p)
3881 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
3882 instead of REAL_VALUE_FROM_CONST_DOUBLE.
3883 * config/arc/arc.c (arc_print_operand): Likewise.
3884 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
3885 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
3886 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
3888 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
3889 (consttable_16): Likewise.
3890 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
3891 * config/avr/avr.c (avr_print_operand): Likewise.
3892 * config/bfin/bfin.md: Likewise (in a define_split).
3893 * config/c6x/c6x.md: Likewise (in a define_split).
3894 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
3895 (cr16_print_operand): Likewise.
3896 * config/cris/cris.c (cris_print_operand): Likewise.
3897 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
3898 * config/fr30/fr30.c (fr30_print_operand): Likewise.
3899 (fr30_const_double_is_zero): Likewise.
3900 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
3901 * config/frv/frv.md: Likewise (in a define_split).
3902 * config/frv/predicates.md (int_2word_operand): Likewise.
3903 * config/h8300/h8300.c (h8300_print_operand): Likewise.
3904 * config/i386/i386.c (standard_80387_constant_p): Likewise.
3905 (ix86_print_operand, ix86_split_to_parts): Likewise.
3906 * config/i386/i386.md: Likewise (in a define_split).
3907 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
3908 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
3909 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
3910 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
3911 (print_operand): Likewise.
3912 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
3913 * config/mep/mep.md: Likewise (in define_split).
3914 * config/microblaze/microblaze.c (microblaze_const_double_ok)
3915 (print_operand): Likewise.
3916 * config/mips/mips.md (consttable_float): Likewise.
3917 * config/mmix/mmix.c (mmix_intval): Likewise.
3918 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
3919 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
3920 * config/pa/pa.c (pa_singlemove_string): Likewise.
3921 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
3922 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
3923 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
3924 (output_toc): Likewise.
3925 * config/rs6000/rs6000.md: Likewise (in define_splits).
3926 * config/rx/rx.c (rx_print_operand): Likewise.
3927 * config/s390/s390.c (s390_output_pool_entry): Likewise.
3928 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
3929 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
3930 (and also in define_splits).
3931 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
3932 (fp_high_losum_p): Likewise.
3933 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
3934 (*movsf_high): Likewise.
3935 * config/spu/spu.c (const_double_to_hwint): Likewise.
3936 * config/v850/v850.c (const_double_split): Likewise.
3937 * config/vax/vax.c (vax_float_literal): Likewise.
3938 * config/visium/visium.c (visium_expand_copysign): Likewise.
3939 * config/visium/visium.md: Likewise (in define_split).
3940 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
3941 * config/xtensa/xtensa.c (print_operand): Likewise.
3942 (xtensa_output_literal): Likewise.
3943 * cprop.c (implicit_set_cond_p): Likewise.
3944 * dwarf2out.c (insert_float): Likewise.
3945 * expmed.c (expand_mult, make_tree): Likewise.
3946 * expr.c (compress_float_constant): Likewise.
3947 * rtlanal.c (split_double): Likewise.
3948 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
3949 (simplify_const_unary_operation, simplify_binary_operation_1)
3950 (simplify_const_binary_operation): Likewise.
3951 (simplify_const_relational_operation): Likewise.
3952 * varasm.c (output_constant_pool_2): Likewise.
3954 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3956 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
3957 instead of CONST_DOUBLE_FROM_REAL_VALUE.
3958 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
3959 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
3960 instead of CONST_DOUBLE_FROM_REAL_VALUE.
3961 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
3962 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
3963 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
3964 (ix86_emit_swsqrtsf): Likewise.
3965 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
3966 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
3967 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
3968 * config/pa/pa.c (pa_expand_builtin): Likewise.
3969 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
3970 (rs6000_scale_v2df): Likewise.
3971 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
3972 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
3973 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
3974 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
3975 (vec_ctul): Likewise.
3976 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
3977 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
3978 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
3979 * cse.c (fold_rtx): Likewise.
3980 * emit-rtl.c (immed_double_const): Likewise (in comments).
3981 (init_emit_once): Likewise.
3982 * expr.c (compress_float_constant, expand_expr_real_1)
3983 (const_vector_from_tree): Likewise.
3984 * optabs.c (expand_float, expand_fix): Likewise.
3985 * reg-stack.c (reg_to_stack): Likewise.
3986 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
3987 (simplify_const_unary_operation, simplify_binary_operation_1)
3988 (simplify_const_binary_operation, simplify_relational_operation)
3989 (simplify_immed_subreg): Likewise.
3991 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3993 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
3994 * doc/tm.texi: Regenerate.
3995 * real.h (REAL_ARITHMETIC): Delete.
3996 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
3997 (ix86_expand_round_sse4): Use real_arithmetic instead of
3999 * config/i386/sse.md (round<mode>2): Likewise.
4000 * rtl.h (rtx_to_tree_code): Likewise (in comment).
4001 * explow.c (rtx_to_tree_code): Likewise (in comment).
4002 * match.pd: Likewise.
4003 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4004 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
4005 (expand_pow_as_sqrts): Likewise.
4006 * tree-pretty-print.c (dump_generic_node): Remove code that
4007 was conditional on REAL_ARITHMETIC being undefined.
4009 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4011 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
4012 * doc/tm.texi: Regenerate.
4013 * real.h (real_less): Declare.
4014 (REAL_VALUES_LESS): Delete.
4015 * real.c (real_less): New function.
4016 (real_compare): Use it.
4017 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
4018 of REAL_VALUES_LESS.
4019 * config/microblaze/microblaze.c (microblaze_const_double_ok):
4021 * fold-const.c (fold_convert_const_int_from_real): Likewise.
4022 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
4023 (simplify_const_relational_operation): Likewise.
4024 * tree-call-cdce.c (check_pow): Likewise.
4025 (gen_conditions_for_pow_cst_base): Likewise.
4027 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4029 * real.h (REAL_VALUES_IDENTICAL): Delete.
4030 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
4031 instead of REAL_VALUES_IDENTICAL.
4032 * fold-const.c (operand_equal_p): Likewise.
4033 * ipa-icf.c (sem_variable::equals): Likewise.
4034 * tree-complex.c (some_nonzerop): Likewise.
4035 (expand_complex_multiplication): Likewise.
4036 * tree.c (simple_cst_equal): Likewise.
4037 * varasm.c (compare_constant): Likewise.
4039 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4041 * real.h (real_equal): Declare.
4042 (REAL_VALUES_EQUAL): Delete.
4043 * real.c (real_equal): New function.
4044 (real_compare): Use it.
4045 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
4046 * doc/tm.texi: Regenerate.
4047 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
4048 real_equal instead of REAL_VALUES_EQUAL.
4049 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
4050 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
4051 (fp_const_from_val): Likewise.
4052 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
4053 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
4054 (floating_exact_log2): Likewise.
4055 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
4056 * config/vax/vax.c (vax_float_literal): Likewise.
4057 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
4058 * cprop.c (implicit_set_cond_p): Likewise.
4059 * expmed.c (expand_mult): Likewise.
4060 * fold-const.c (const_binop): Likewise.
4061 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4062 (simplify_const_binary_operation): Likewise.
4063 (simplify_const_relational_operation): Likewise.
4064 * tree-call-cdce.c (check_pow): Likewise.
4065 (gen_conditions_for_pow_cst_base): Likewise.
4066 * tree-inline.c (estimate_num_insns): Likewise.
4067 * tree-ssa-dom.c (record_equality): Likewise.
4068 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
4069 (gimple_expand_builtin_pow): Likewise.
4070 (pass_optimize_widening_mul::execute): Likewise.
4071 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
4072 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
4073 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
4075 2015-10-05 Richard Biener <rguenther@suse.de>
4078 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
4079 consider loop header PHI defs as IVs.
4081 2015-10-05 Richard Biener <rguenther@suse.de>
4083 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
4085 (create_expression_by_pieces): ... here and build GIMPLE
4086 calls directly. Use gimple_build API and avoid force_gimple_operand.
4087 (insert_into_preds_of_block): Simplify.
4088 (do_regular_insertion): Add comment.
4090 2015-10-04 Jason Merrill <jason@redhat.com>
4092 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
4094 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
4096 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
4097 check for general register.
4098 (ix86_emit_save_regs): Ditto.
4099 (ix86_emit_save_regs_using_mov): Ditto.
4100 (ix86_emit_restore_regs_using_pop): Ditto.
4101 (ix86_emit_restore_regs_using_mov): Ditto.
4103 2015-10-03 Marek Polacek <polacek@redhat.com>
4105 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
4106 (insn-dfatab.o): Likewise.
4108 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
4110 * config.gcc (xtensa*-*-uclinux*): New configuration.
4111 * config/xtensa/uclinux.h: New file.
4112 * config/xtensa/uclinux.opt: New file.
4114 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
4116 * doc/cpp.texi (Standard Predefined Macros): Document value of
4117 __cplusplus for C++14.
4119 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
4121 * gcc.c (process_command): Use spec_machine rather than
4122 spec_host_machine to build tooldir_prefix2.
4124 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
4125 Bernd Schmidt <bernds@codesourcery.com>
4127 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
4128 (Token, Stmt): Remove structs.
4129 (decls, vars, fns): Remove variables.
4130 (alloc_comment, append_stmt, is_keyword): Remove macros.
4131 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
4132 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
4133 (parse_init, parse_file): Remove functions.
4134 (read_file): Accept a pointer to a length and store into it.
4135 (process): Don't try to parse the input file, just write it out as
4136 a string, but looking for maps. Also write out the length.
4137 (main): Don't use "-S" to compile PTX code.
4139 2015-10-02 Jeff Law <law@redhat.com>
4141 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
4144 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
4147 * config/nvptx/mkoffload.c (main): Scan the argument vector for
4148 -fopenmp, and skip generating an offloading image if specified.
4150 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
4152 * system.h (ROUND_UP): New macro definition.
4153 (ROUND_DOWN): Ditto.
4154 * ggc-page.c (ROUND_UP): Remove local macro definition.
4155 (PAGE_ALIGN): Implement using ROUND_UP macro.
4157 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
4158 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
4160 (ix86_compute_frame_layout): Ditto.
4161 (ix86_expand_prologue): Ditto.
4162 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
4163 to round down values.
4164 (expand_set_or_movmem_via_rep): Ditto.
4166 2015-10-02 Marek Polacek <polacek@redhat.com>
4168 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
4170 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
4172 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
4173 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
4174 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
4175 (free_gimple_bb): Renamed free_gimple_poly_bb.
4176 (try_generate_gimple_bb): Hoist loop invariant code.
4177 (analyze_drs_in_stmts): Same.
4178 (build_scop_drs): Call renamed functions.
4179 (new_pbb_from_pbb): Same.
4180 (scop_ivs_can_be_represented): Delete as functionality now moved to
4181 graphite-scop-detection.c
4182 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
4184 2015-10-02 Aditya Kumar <hiraditya@msn.com>
4186 * graphite-scop-detection.c (stmt_has_side_effects): New function
4187 outlined from stmt_simple_for_scop_p.
4188 (graphite_can_represent_stmt): Same.
4189 (stmt_simple_for_scop_p): Moved code out of this function for better
4192 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
4194 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
4196 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
4198 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4200 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
4202 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
4204 PR rtl-optimization/67756
4205 * lra-constraints.c (match_reload): Add a new parameter. Use it
4206 for creating a pseudo with the same value.
4207 (curr_insn_transform): Pass a new argument to match_reload.
4209 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
4211 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
4212 (expand_vec_perm_even_odd_1): Handle V64QImode.
4213 (ix86_expand_vec_perm_const_1): Try expansion with
4214 expand_vec_perm_even_odd_trunc as well.
4215 * config/i386/sse.md (VI124_AVX512F): Rename to ...
4216 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
4218 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
4219 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
4221 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
4222 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
4223 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
4224 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
4225 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
4226 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
4228 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
4230 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
4231 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
4233 2015-10-02 Jason Merrill <jason@redhat.com>
4236 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
4237 (diagnose_tm_1_op): Also diagnose volatile accesses in
4238 transaction_safe function.
4240 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
4242 * system.h (malloc.h): Don't include obsolete header.
4244 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4246 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
4247 (TLS_SECTION_ASM_FLAG): Delete.
4249 2015-10-02 Marek Polacek <polacek@redhat.com>
4252 * doc/invoke.texi: Document -Wduplicated-cond.
4253 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
4254 (insn-dfatab.o): Likewise.
4255 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
4258 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
4260 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
4263 2015-10-02 Renlin Li <renlin.li@arm.com>
4265 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
4267 2015-10-02 Renlin Li <renlin.li@arm.com>
4270 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
4272 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4274 PR rtl-optimization/67786
4275 PR rtl-optimization/67787
4276 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
4277 it modifies a reg used in the condition calculation.
4279 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
4281 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
4282 alternatives for reads from memory and moves from general-purpose
4284 (*aarch64_combinez_be<mode>): Likewise.
4286 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
4289 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
4290 selectany within this function without need to keep attribute.
4291 (i386_pe_encode_section_info): Remove selectany-code.
4293 2015-10-02 Richard Biener <rguenther@suse.de>
4295 * tree-ssa-sccvn.c (has_VN_INFO): New function.
4296 (free_scc_vn): Use it.
4297 (visit_use): Remove dead code and refactor to use gassign
4298 and use less indentation.
4300 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4304 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
4305 (rs6000_cannot_copy_insn_p): New function.
4306 * config/rs6000/rs6000.md (cannot_copy): New attribute.
4307 (load_toc_v4_PIC_1_normal): Set cannot_copy.
4308 (load_toc_v4_PIC_1_476): Ditto.
4310 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
4312 * graphite-scop-detection.c (struct sese_l): New conversion constructor
4313 so that this type can be pushed into a vec.
4314 (class scop_builder): use sese_l to collect scops.
4315 (get_scops): New getter function.
4316 (remove_intersecting_scops): Use sese_l instead of scops_p.
4320 (remove_subscops): Same.
4321 (build_scops): Add scops to vec<scops_p> once all the scops have been
4324 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
4326 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
4327 Renamed type from gimple_bb_p to gimple_poly_bb_p.
4328 (translate_isl_ast_node_user): Same.
4329 * graphite-poly.c (new_poly_bb): Same.
4330 * graphite-poly.h (gbb_from_bb): Same.
4332 * graphite-sese-to-poly.c (new_gimple_bb):
4333 gimple_bb_p -> gimple_poly_bb_p
4334 (build_scop_scattering): Same.
4335 (find_params_in_bb): Same.
4336 (add_conditions_to_domain): Same.
4337 (sese_dom_walker::before_dom_children): Same.
4338 (analyze_drs_in_stmts): Same.
4339 (new_pbb_from_pbb): Same.
4340 (free_data_refs_aux): New pointer to type base_alias_pair.
4341 * graphite-sese-to-poly.h: Same.
4342 * sese.c (if_region_set_false_region): Fixed Indentation.
4343 (move_sese_in_condition): Same.
4345 2015-10-01 Sebastian Pop <s.pop@samsung.com>
4346 Aditya Kumar <aditya.k7@samsung.com>
4348 PR tree-optimization/66980
4349 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
4350 when data reference analysis has failed.
4352 2015-10-01 Sebastian Pop <s.pop@samsung.com>
4353 Aditya Kumar <aditya.k7@samsung.com>
4355 PR tree-optimization/67754
4356 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
4357 scev analysis on the same loop nest as analyze_drs_in_stmts.
4358 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
4360 (try_generate_gimple_bb): Call outermost_loop_in_sese.
4361 (analyze_drs_in_stmts): Same.
4362 * sese.c (outermost_loop_in_sese): ...here.
4364 2015-10-01 Sebastian Pop <s.pop@samsung.com>
4365 Aditya Kumar <aditya.k7@samsung.com>
4367 PR tree-optimization/67754
4368 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
4369 recursion on the inner loops.
4371 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4373 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
4374 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
4375 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
4376 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
4377 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
4379 2015-10-01 Marek Polacek <polacek@redhat.com>
4382 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
4383 create_tmp_var_raw rather than create_tmp_var.
4385 2015-10-01 Marek Polacek <polacek@redhat.com>
4387 PR tree-optimization/67769
4388 * tree-ssa-phiopt.c (conditional_replacement): Call
4389 reset_flow_sensitive_info_in_bb.
4390 (minmax_replacement): Likewise.
4391 (abs_replacement): Likewise.
4393 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
4395 * builtins.c: Don't include gomp-constants.h.
4396 (fold_builtin_1): Don't fold acc_on_device here.
4397 * gimple-fold.c: Include gomp-constants.h.
4398 (gimple_fold_builtin_acc_on_device): New.
4399 (gimple_fold_builtin): Call it.
4401 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
4403 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
4404 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
4406 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
4408 * config/arm/aarch-common-protos.h
4409 (aarch_accumulator_forwarding): New.
4410 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
4411 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
4412 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
4413 * config/arm/cortex-a53.md: Rewrite.
4415 2015-10-01 Richard Biener <rguenther@suse.de>
4417 * gimple-match.h (mprts_hook): Declare.
4418 * gimple-match.head.c (mprts_hook): Define.
4419 (maybe_push_res_to_seq): Use new hook.
4420 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
4421 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
4422 (vn_ssa_aux::has_constants): Remove.
4423 * tree-ssa-sccvn.c: Include gimple-match.h.
4424 (VN_INFO_GET): Assert we don't re-use SSA names.
4425 (vn_get_expr_for): Remove.
4426 (expr_has_constants): Likewise.
4427 (stmt_has_constants): Likewise.
4428 (simplify_binary_expression): Likewise.
4429 (simplify_unary_expression): Likewise.
4430 (vn_lookup_simplify_result): New hook.
4431 (visit_copy): Adjust.
4432 (visit_reference_op_call): Likewise.
4433 (visit_phi): Likewise.
4434 (visit_use): Likewise.
4435 (process_scc): Likewise.
4436 (init_scc_vn): Likewise.
4437 (visit_reference_op_load): Likewise. Use match-and-simplify and
4438 a gimple seq for inserted expressions.
4439 (try_to_simplify): Remove GENERIC stmt combining code.
4440 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
4441 * tree-ssa-pre.c (eliminate_insert): Adjust.
4442 (eliminate_dom_walker::before_dom_children): Likewise.
4444 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4446 * doc/invoke.texi (Optimization Options): Add
4447 -freorder-blocks-algorithm=.
4448 (Optimize Options) <-O>: Add -freorder-blocks.
4449 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
4450 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
4451 <-freorder-blocks>: Also enabled at levels -O and -Os.
4452 <-freorder-blocks-algorithm=>: Document new option.
4454 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4456 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
4457 with flag_reorder_blocks_algorithm.
4458 * common.opt (freorder-blocks-algorithm=): New flag.
4459 (reorder_blocks_algorithm): New enum.
4460 * flag-types.h (reorder_blocks_algorithm): New enum.
4461 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
4462 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
4464 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4466 * bb-reorder.c: Add intro comment.
4467 (reorder_basic_blocks_software_trace_cache): Print a header to
4469 (edge_order): New function.
4470 (reorder_basic_blocks_simple): New function.
4471 (reorder_basic_blocks): Choose between the STC and the simple
4472 algorithms (always choose the former).
4474 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4476 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
4477 function, factored out from ...
4478 (reorder_basic_blocks): ... here.
4480 2015-10-01 Tom de Vries <tom@codesourcery.com>
4482 * tree-cfg.c (dump_function_to_file): Dump function attributes using
4483 __attribute__(()) string. Move dumping of function attributes to before
4486 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
4489 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
4490 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
4491 based on gold linker version.
4492 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
4493 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
4494 * configure, config.in: Regenerate.
4496 2015-10-01 Alan Modra <amodra@gmail.com>
4498 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
4499 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
4500 (rs6000_output_mi_thunk): Likewise.
4502 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
4504 * config/nvptx/mkoffload.c (process): Change offload data format.
4506 2015-09-30 Jeff Law <law@redhat.com>
4508 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
4509 with constant conditions.
4510 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
4511 (remove_ctrl_stmt_and_useless_edges): No longer static.
4512 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
4513 (remove_ctrl_stmt_and_useless_edges): Likewise.
4515 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
4516 Cesar Philippidis <cesar@codesourcery.com>
4518 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
4519 (TARGET_GOACC_VALIDATE_DIMS): Override.
4520 * target.def (TARGET_GOACC): New target hook prefix.
4521 (validate_dims): New hook.
4522 * targhooks.h (default_goacc_validate_dims): New.
4523 * omp-low.c (oacc_validate_dims): New.
4524 (execute_oacc_device_lower): New.
4525 (default_goacc_validate_dims): New.
4526 (pass_data_oacc_device_lower): New.
4527 (pass_oacc_device_lower): New pass.
4528 (make_pass_oacc_device_lower): New.
4529 * tree-pass.h (make_pass_oacc_device_lower): Declare.
4530 * passes.def (pass_oacc_device_lower): Add it.
4531 * doc/tm.texi: Rebuilt.
4532 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
4533 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
4535 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
4537 PR rtl-optimization/67037
4538 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
4540 2015-09-30 Bernd Schmidt <bernds@redhat.com>
4542 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
4543 * passes.c: Include tree-ssanames.h.
4544 (execute_function_todo): Flush the pending free SSA_NAMEs after
4545 eliminating unreachable basic blocks.
4546 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
4547 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
4548 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
4549 (flush_ssanames_freelist): New function.
4550 (release_ssaname_fn): Put released names on the queue.
4551 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
4552 * tree-ssanames.h (flush_ssanames_freelist): Declare.
4554 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
4556 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
4557 (generate_target_descr_file, generate_target_offloadend_file)
4558 (generate_host_descr_file, prepare_target_image): Pass it on.
4559 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
4560 (compile_native, main): Pass it on.
4561 * lto-wrapper.c (compile_offload_image): Likewise.
4563 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
4564 Ilya Verbin <ilya.verbin@intel.com>
4565 Andrey Turetskiy <andrey.turetskiy@intel.com>
4567 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
4568 (prepare_target_image, main): Refactor argv building to use
4571 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4573 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
4574 * config/spu/spu.c (spu_expand_atomic_op): New function.
4575 * config/spu/spu.md (AINT): New mode iterator.
4576 (ATOMIC): New code iterator.
4577 (atomic_name, atomic_pred): New code predicates.
4578 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
4579 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
4580 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
4581 "atomic_<atomic_name>_fetch<mode>"): Likewise.
4583 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
4585 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
4587 (scalar_chain::convert_reg): Likewise.
4589 2015-09-30 Richard Biener <rguenther@suse.de>
4591 * builtins.c: Add comment that no new simplifications should
4594 2015-09-30 Marek Polacek <polacek@redhat.com>
4596 PR tree-optimization/67690
4597 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
4598 reset_flow_sensitive_info_in_bb.
4599 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
4600 * tree-ssanames.c: Include "gimple-iterator.h".
4601 (reset_flow_sensitive_info_in_bb): New function.
4602 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
4604 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
4606 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
4607 variable, replacing it with...
4608 (offload_abi): ... this new variable. Adjust all users.
4609 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
4611 2015-09-30 Matthias Klose <doko@ubuntu.com>
4613 * configure.ac: Remove extraneous ;;.
4614 * configure: Regenerate.
4616 2015-09-29 James Bowman <james.bowman@ftdichip.com>
4618 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
4619 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
4620 predicate, disallow register for operand 2.
4622 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
4624 * graphite-dependences.c (scop_get_dependences): Moved in down
4625 in order to be visible to its caller.
4626 * graphite-poly.h: Removed compute_deps, and extend_schedule.
4628 2015-09-29 Sebastian Pop <s.pop@samsung.com>
4629 Aditya Kumar <aditya.k7@samsung.com>
4631 PR tree-optimization/67754
4632 * graphite-optimize-isl.c (optimize_isl): Call
4633 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
4635 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
4637 * builtins.c (expand_builtin_acc_on_device): Delete.
4638 (expand_builtin): Don't call it.
4639 (fold_builtin_1): Fold acc_on_device.
4641 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
4643 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
4644 (ix86_nsaved_sseregs): Likewise.
4646 2015-09-29 Jeff Law <law@redhat.com>
4648 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
4649 computation of unused value.
4651 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
4652 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
4653 inline macro expansion.
4655 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
4657 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
4658 (gen_shl_sext): Likewise.
4659 * config/sh/sh.md (divsi3): Likewise.
4660 (imm->ext_dest_operand splitter): Likewise.
4662 2015-09-29 Sebastian Pop <s.pop@samsung.com>
4663 Aditya Kumar <aditya.k7@samsung.com>
4665 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
4666 (nb_data_writes_in_bb): Remove.
4667 (split_pbb): Remove.
4668 (split_reduction_stmt): Remove.
4669 (is_reduction_operation_p): Remove.
4670 (phi_contains_arg): Remove.
4671 (follow_ssa_with_commutative_ops): Remove.
4672 (detect_commutative_reduction_arg): Remove.
4673 (detect_commutative_reduction_assign): Remove.
4674 (follow_inital_value_to_phi): Remove.
4675 (edge_initial_value_for_loop_phi): Remove.
4676 (initial_value_for_loop_phi): Remove.
4677 (used_outside_reduction): Remove.
4678 (detect_commutative_reduction): Remove.
4679 (translate_scalar_reduction_to_array_for_stmt): Remove.
4680 (remove_phi): Remove.
4681 (dr_indices_valid_in_loop): Remove.
4682 (close_phi_written_to_memory): Remove.
4683 (translate_scalar_reduction_to_array): Remove.
4684 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
4685 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
4686 (rewrite_commutative_reductions_out_of_ssa): Remove.
4687 (build_poly_scop): Remove call to
4688 rewrite_commutative_reductions_out_of_ssa.
4690 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
4692 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
4693 Add new insn types for vector load and store pairs.
4694 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
4695 types "neon_ldp{,_q}".
4696 * config/arm/cortex-a57.md (neon_load_c): Add insn types
4698 (neon_store_complex): Add insn types "neon_stp{,_q}".
4699 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
4702 2015-09-29 Jeff Law <law@redhat.com>
4704 * config/rx/constraints.md (Int08): Fix undefined left shift
4706 (Sint08, Sint16, Sint24): Likewise.
4707 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4709 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
4712 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
4713 left shift behaviour.
4714 * config/msp430/constraints.md ('L' constraint): Similarly.
4715 ('Ys' constraint): Similarly.
4717 2015-09-29 Richard Biener <rguenther@suse.de>
4719 PR tree-optimization/67170
4720 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
4721 the translate function pointer parameter to get the
4722 bool whether to disambiguate only by reference.
4723 (walk_non_aliased_vuses): Likewise.
4724 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4725 (get_continuation_for_phi_1): Likewise.
4726 (get_continuation_for_phi): Likewise.
4727 (walk_non_aliased_vuses): Likewise.
4728 * tree-ssa-sccvn.c (const_parms): New bitmap.
4729 (vn_reference_lookup_3): Adjust for interface change.
4730 Disambiguate parameters pointing to readonly memory.
4731 (free_scc_vn): Free const_parms.
4732 (run_scc_vn): Initialize const_parms from a fn spec attribute.
4734 2015-09-29 Richard Biener <rguenther@suse.de>
4736 PR tree-optimization/67741
4737 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
4738 builtin calls with correct signature.
4740 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
4743 * config/i386/i386.c: Include dbgcnt.h.
4744 (has_non_address_hard_reg): New.
4745 (convertible_comparison_p): New.
4746 (scalar_to_vector_candidate_p): New.
4747 (remove_non_convertible_regs): New.
4748 (scalar_chain): New.
4749 (scalar_chain::scalar_chain): New.
4750 (scalar_chain::~scalar_chain): New.
4751 (scalar_chain::add_to_queue): New.
4752 (scalar_chain::mark_dual_mode_def): New.
4753 (scalar_chain::analyze_register_chain): New.
4754 (scalar_chain::add_insn): New.
4755 (scalar_chain::build): New.
4756 (scalar_chain::compute_convert_gain): New.
4757 (scalar_chain::replace_with_subreg): New.
4758 (scalar_chain::replace_with_subreg_in_insn): New.
4759 (scalar_chain::emit_conversion_insns): New.
4760 (scalar_chain::make_vector_copies): New.
4761 (scalar_chain::convert_reg): New.
4762 (scalar_chain::convert_op): New.
4763 (scalar_chain::convert_insn): New.
4764 (scalar_chain::convert): New.
4765 (convert_scalars_to_vector): New.
4766 (pass_data_stv): New.
4768 (make_pass_stv): New.
4769 (ix86_option_override): Created and register stv pass.
4770 (flag_opts): Add -mstv.
4771 (ix86_option_override_internal): Likewise.
4772 * config/i386/i386.md (SWIM1248x): New.
4773 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
4774 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
4775 (*anddi3_doubleword): New.
4776 (*zext<mode>_doubleword): New.
4777 (*zextsi_doubleword): New.
4778 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
4779 (*<code>di3_doubleword): New.
4780 * config/i386/i386.opt (mstv): New.
4781 * dbgcnt.def (stv_conversion): New.
4783 2015-09-29 Tom de Vries <tom@codesourcery.com>
4785 * tree-cfg.c (dump_function_to_file): Dump function attributes.
4787 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
4790 * config/sh/sh.c (sh_override_options_after_change): New.
4791 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
4792 (sh_option_override): Move align_loops, align_jumps and
4793 align_functions handling into sh_override_options_after_change.
4795 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
4797 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
4798 (nvptx_record_offload_symbol): Record function execution geometry.
4799 * config/nvptx/mkoffload.c (process): Include launch geometry in
4801 * omp-low.c (oacc_launch_pack): New.
4802 (replace_oacc_fn_attrib): New.
4803 (set_oacc_fn_attrib): New.
4804 (get_oacc_fn_attrib): New.
4805 (expand_omp_target): Create keyed varargs for GOACC_parallel call
4807 * omp-low.h (get_oacc_fn_attrib): Declare.
4808 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
4809 (DEF_FUNCTION_TYPE_VAR_11): Delete.
4810 * tree.h (OMP_CLAUSE_EXPR): New.
4811 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
4813 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
4814 Sebastian Pop <s.pop@samsung.com>
4816 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
4818 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
4819 Sebastian Pop <s.pop@samsung.com>
4821 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
4822 * graphite-scop-detection.c (struct sese_l): New type.
4823 (get_entry_bb): API for getting entry bb of SESE.
4824 (get_exit_bb): API for getting exit bb of SESE.
4825 (class debug_printer): New type. Simple printer in debug mode.
4826 (trivially_empty_bb_p): New. Return true when BB is empty or
4827 contains only debug instructions.
4828 (graphite_can_represent_expr): Call scalar_evoution_in_region
4829 instead of analyze_scalar_evolution. Pass in scop instead of only
4831 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
4833 (stmt_simple_for_scop_p): Same.
4834 (harmful_stmt_in_bb): Same.
4835 (graphite_can_represent_loop): Deleted.
4836 (struct scopdet_info): Deleted.
4837 (scopdet_basic_block_info): Deleted.
4838 (build_scops_1): Deleted.
4839 (bb_in_sd_region): Deleted.
4840 (find_single_entry_edge): Deleted.
4841 (find_single_exit_edge): Deleted.
4842 (create_single_entry_edge): Deleted.
4843 (sd_region_without_exit): Deleted.
4844 (create_single_exit_edge): Deleted.
4845 (unmark_exit_edges): Deleted.
4846 (mark_exit_edges): Deleted.
4847 (create_sese_edges): Deleted.
4848 (build_graphite_scops): Deleted.
4849 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
4850 (build_scops): Use the new scop_builder to build scops.
4851 (dot_all_scops_1): Use the new pretty printer. Print loop father
4853 (loop_body_is_valid_scop): New. Return true if loop body is a
4855 (class scop_builder): New. Builds SCoPs for polyhedral
4857 (scop_builder): New constructor.
4858 (static sese_l invalid_sese): sese_l with invalid edges.
4859 (get_sese): Get an sese (from a loop) if possible, invalid_sese
4861 (get_nearest_dom_with_single_entry): Get nearest dominator of a
4862 basic_block with single entry. Return NULL if we get to the
4863 beginning of a function.
4864 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
4865 a basic_block with single exit. Return NULL if we get to the
4866 beginning of a function.
4867 (print_sese): Pretty-print SESE.
4868 (merge_sese): Merge two SESEs if possible and return the new SESE.
4869 (build_scop_depth): Start building the SCoP within a loop nest.
4870 (build_scop_breadth): Start building the SCoP at a single loop
4871 depth. Merge adjacent SESEs if valid.
4872 (can_represent_loop_1): Returns true if Graphite can represent
4873 loop inside SCoP. Helper for can_represent_loop.
4874 (can_represent_loop): Returns true if Graphite can represent LOOP
4875 and all its nested loops in SCoP.
4876 (loop_is_valid_scop): Returns true if LOOP and all its nests
4877 constitute a valid SCoP.
4878 (region_has_one_loop): Returns true of a region has only one loop.
4879 (add_scop): Add SCoP to the list of valid scops. Removes an
4880 already existing scop if it intersects with or subsumed by this one.
4881 (harmful_stmt_in_region): Returns true if SCoP has any statment
4882 which cannot be represented by Graphite.
4883 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
4884 (remove_subscops): Remove any SCoP from the list of already found
4885 SCoPs, if subsumed by S1.
4886 (intersects): Return true if region bounded by SCoPs S1 and S2
4888 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
4889 * graphite.c (print_graphite_scop_statistics):
4890 (print_graphite_statistics): Print SCoP info while debugging.
4891 (graphite_initialize): Early exit in case number of loops in a
4892 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
4893 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
4894 (graphite_finalize):
4895 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
4896 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
4897 (recompute_all_dominators): Recalculate POST_DOMINATORS.
4898 * tree-cfg.c (print_loops): Print the function name while printing
4901 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
4902 Sebastian Pop <s.pop@samsung.com>
4904 PR tree-optimization/67700
4905 * graphite-sese-to-poly.c (parameter_index_in_region): Call
4906 invariant_in_sese_p_rec.
4907 (extract_affine): Same.
4908 (rewrite_cross_bb_scalar_deps): Call update_ssa.
4909 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
4910 * sese.h (invariant_in_sese_p_rec): Declare.
4912 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
4914 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
4916 2015-09-28 Jiong Wang <jiong.wang@arm.com>
4919 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4920 Jiong Wang <jiong.wang@arm.com>
4922 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
4923 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
4924 (REG_CLASS_NAMES): Likewise.
4925 (REG_CLASS_CONTENTS): Likewise.
4926 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
4927 (aarch64_register_move_cost): Likewise.
4928 (aarch64_load_symref_appropriately): Invoke the new added pattern if
4930 * config/aarch64/constraints.md (Uc0): New constraint.
4932 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
4934 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
4936 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
4938 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
4939 SECTION_EXCLUDE in XO mapping class.
4941 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
4944 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
4945 and handle ne and eq codes.
4946 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
4947 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
4948 CONST_INT_P. Use reverse_condition.
4949 (sh_split_treg_set_expr): Likewise.
4951 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
4953 * config/arm/types.md (type): Add rotate_imm.
4954 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
4956 (*rorsi3_insn_uxtw): Likewise.
4957 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
4958 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
4959 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
4961 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4963 PR rtl-optimization/67481
4964 * ifcvt.c (contains_ccmode_rtx_p): New function.
4965 (insn_valid_noce_process_p): Use it.
4967 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4969 PR rtl-optimization/67456
4970 PR rtl-optimization/67464
4971 PR rtl-optimization/67465
4972 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
4973 move in the mode of x. Handle combination of complex and simple
4974 block pairs as well as the case when one is empty.
4976 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4978 * doc/gimple.texi: Update references to gimple_statement_base.
4979 * gdbhooks.py: Likewise.
4980 * gimple.h: Likewise.
4982 2015-09-28 Daniel Cederman <cederman@gaisler.com>
4984 * config/sparc/driver-sparc.c: map LEON to leon3
4986 2015-09-28 Daniel Cederman <cederman@gaisler.com>
4988 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
4989 and make it inverse to change default
4990 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
4992 * doc/invoke.texi: Document change of default
4994 2015-09-28 Daniel Cederman <cederman@gaisler.com>
4996 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
4997 true on %f0 for a target without FPU.
4998 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
5000 (untyped_return): Do not load %f0 for a target without FPU.
5002 2015-09-28 Andrew Pinski <apinski@cavium.com>
5004 * config/aarch64/aarch64.md (prefetch):
5005 Change the predicate of operand 0 to register_operand.
5007 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
5009 * config/i386/predicates.md (register_sse4nonimm_operand): New
5011 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
5012 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
5013 Use register_sse4nonimm_operand as operand 0 predicate.
5014 (*vec_extractv8hi_sse2): Remove insn pattern.
5015 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
5016 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
5018 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
5019 Kaz Kojima <kkojima@gcc.gnu.org>
5022 * config/sh/sh-protos.h (sh_lra_p): Declare.
5023 * config/sh/sh.c (sh_lra_p): Make non-static.
5024 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
5025 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
5026 Expand into addsi3_scr if operands[2] if needed.
5027 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
5028 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
5029 (addsi3_scr, *addsi3): New insn_and_split patterns.
5031 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
5033 PR rtl-optimization/64164
5034 PR tree-optimization/67312
5038 * cfgexpand.c (parm_in_stack_slot_p): Remove.
5039 (ssa_default_def_partition): Remove.
5040 (get_rtl_for_parm_ssa_default_def): Remove.
5041 (set_rtl): Check that RTL assignments match expectations.
5042 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
5043 default def location for params and results. Record SSA names
5044 or types in REG and MEM attrs, respectively.
5045 (set_parm_rtl): New.
5046 (expand_one_ssa_partition): Drop logic that assigned MEMs with
5047 unassigned addresses.
5048 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
5049 deferred stack alloc vars.
5050 (expand_used_vars): Skip partitions holding parm default defs.
5051 Move adjust_one_expanded_partition_var loop...
5052 (pass_expand::execute): ... here. Drop redundant assert.
5053 Adjust comments before the final loop over all ssa names.
5054 Require assigned rtl of parms and results to match exactly.
5055 Reset its attributes to match them, not any other variables in
5057 (expand_debug_expr): Use entry value for PARM's default defs
5058 only iff they have zero nondebug uses.
5059 * cfgexpand.h (parm_in_stack_slot_p): Remove.
5060 (get_rtl_for_parm_ssa_default_def): Remove.
5061 (set_parm_rtl): Declare.
5062 * doc/invoke.texi: Improve wording.
5063 * explow.c (promote_decl_mode): Fix promote_function_mode for
5064 result decls not by reference.
5065 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
5066 bypass TYPE_MODE to get the actual vector mode.
5067 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
5068 2015-08-19's changes as follows. Drop include of
5069 basic-block.h and df.h.
5070 (rtl_for_parm): Remove.
5071 (maybe_reset_rtl_for_parm): Remove.
5072 (parm_in_unassigned_mem_p): Remove.
5073 (use_register_for_decl): Add logic for RESULT_DECLs matching
5074 assign_parms' behavior.
5075 (split_complex_args): Revert.
5076 (assign_parms_augmented_arg_list): Revert. Add comment
5077 referencing the logic above.
5078 (assign_parm_adjust_stack_rtl): Revert.
5079 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
5080 of SET_DECL_RTL. Set up a REG if the parm demands so.
5081 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
5082 calls into a single set_parm_rtl. Set up a temporary RTL
5083 temporarily for expand_assignment.
5084 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
5085 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
5086 (assign_bounds): Revert.
5087 (assign_parms): Revert. Use set_parm_rtl.
5088 (allocate_struct_function): Relayout result and parms of
5089 non-abstruct functions.
5090 (expand_function_start): Revert. Use set_parm_rtl. If the
5091 result is not a hard reg, create a pseudo from the promoted
5092 mode of the default def. Promote static chain mode.
5093 * tree-outof-ssa.c (remove_ssa_form): Drop unused
5094 partition_has_default_def. Set up
5095 partitions_for_parm_default_defs.
5096 (finish_out_of_ssa): Remove partition_has_default_def.
5097 Release partitions_for_parm_default_defs.
5098 * tree-outof-ssa.h (struct ssaexpand): Remove
5099 partition_has_default_def. Add
5100 partitions_for_parm_default_defs.
5101 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
5103 (build_ssa_conflict_graph): Fix conflict-detection of default
5104 defs of even unused default defs of params and results.
5105 (for_all_parms): New.
5106 (create_default_def): New.
5107 (register_default_def): New.
5108 (coalesce_with_default): New.
5109 (create_outofssa_var_map): Create default defs for all parms
5110 and results, and register their partitions. Add GIMPLE_RETURN
5111 operands as coalesce candidates with results. Add default
5112 defs of each parm or result as coalesce candidates with its
5113 other defs. Mark each result def, and each default def of
5114 parms, as used_in_copy.
5115 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
5116 with the ssa names, even anonymous ones. Drop
5117 parm_in_stack_slot_p calls. Require same signedness and
5119 (coalesce_ssa_name): Add coalesce candidates for all defs of
5120 each parm and result, even unused ones.
5121 (parm_default_def_partition_arg): New type.
5122 (set_parm_default_def_partition): New.
5123 (get_parm_default_def_partitions): New.
5124 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
5125 * tree-ssa-live.c (partition_view_init): Regard unused defs of
5126 parms and results as used.
5127 (verify_live_on_entry): Don't error out just because they're
5130 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
5132 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
5133 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
5134 (output_fde): Don't output length for debug_frame on AIX.
5135 (output_call_frame_info): Don't output length for debug_frame on AIX.
5136 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
5137 HAVE_XCOFF_DWARF_EXTRAS.
5138 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
5139 HAVE_XCOFF_DWARF_EXTRAS.
5140 (output_compilation_unit_header): Don't output length on AIX.
5141 (output_pubnames): Don't output length on AIX.
5142 (output_aranges): Delete argument. Compute length locally. Don't
5143 output length on AIX.
5144 (output_line_info): Don't output length on AIX.
5145 (dwarf2out_finish): Don't compute aranges_length.
5146 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
5147 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
5148 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
5149 symbol decoration for AIX.
5150 (rs6000_xcoff_debug_unwind_info): New.
5151 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
5153 (rs6000_xcoff_declare_function_name): Emit different
5154 .function pseudo-op when DWARF2_DEBUG. Don't call
5155 xcoffout_declare_function for DWARF2_DEBUG.
5156 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
5158 * config/rs6000/aix71.h: New.
5159 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
5161 * configure: Regenerate.
5162 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
5165 2015-09-26 Jeff Law <law@redhat.com>
5167 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
5169 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
5172 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
5175 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
5176 undefined behaviour.
5178 * config/cris/cris.md (asrandb): Fix left shift undefined
5180 (asrandw): Likewise.
5182 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
5185 * lra-constarints.c (match_reload): Check presence of the input pseudo
5186 in the output operand.
5188 2015-09-25 Tobias Burnus <burnus@net-b.de>
5190 * doc/invoke.texi (-fsanitize): Minor wording tweak.
5192 2015-09-25 Tobias Burnus <burnus@net-b.de>
5194 * doc/invoke.texi (-fsanitize): Update URLs.
5196 2015-09-25 Teresa Johnson <tejohnson@google.com>
5198 * opts.c (finish_options): Unset -freorder-blocks-and-partition
5199 if not using profile.
5201 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
5203 PR pretty-print/67567
5204 * pretty-print.c (pp_string): Add gcc_checking_assert.
5205 * pretty-print.h (output_buffer_append_r): Likewise.
5207 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
5210 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
5211 addr2 individually. Don't emit logical or insn if one is known to
5212 be aligned approriately.
5213 (sh_expand_cmpnstr): Likewise.
5215 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
5217 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
5218 __builtin_aarch64_fp[sc]r arguments into a register.
5220 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
5222 * config.gcc (x86_archs): Replace lakemount with lakemont.
5223 (with_cpu): Likewise.
5224 (with_arch): Likewise.
5225 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
5226 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
5227 __tune_lakemount__ with __tune_lakemont__.
5228 * config/i386/i386.c (lakemount_cost): Renamed to ...
5229 (lakemont_cost): This.
5230 (m_LAKEMOUNT): Renamed to ...
5232 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
5233 (processor_target_table): Replace "lakemount" with "lakemont".
5234 (processor_alias_table): Likewise.
5235 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
5237 (ix86_adjust_cost): Likewise.
5238 (ia32_multipass_dfa_lookahead): Likewise.
5239 * config/i386/i386.h (processor_type): Likewise.
5240 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
5241 * doc/invoke.texi: Replace lakemount with lakemont. Replace
5242 Lakemount with Lakemont.
5244 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
5246 * config.gcc (x86_archs): Replace iamcu with lakemount.
5247 (with_cpu): Likewise.
5248 (with_arch): Likewise.
5249 * doc/invoke.texi: Likewise.
5250 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
5251 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
5252 __tune_iamcu__ with __tune_lakemount__.
5253 * config/i386/i386.c (iamcu_cost): Renamed to ...
5254 (lakemount_cost): This.
5255 (m_IAMCU): Renamed to ...
5256 (m_LAKEMOUNT): This.
5257 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
5258 (processor_target_table): Replace "iamcu" with "lakemount".
5259 (processor_alias_table): Likewise.
5260 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
5261 PROCESSOR_LAKEMOUNT.
5262 (ix86_adjust_cost): Likewise.
5263 (ia32_multipass_dfa_lookahead): Likewise.
5264 * config/i386/i386.h (processor_type): Likewise.
5265 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
5267 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
5269 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
5270 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
5272 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
5273 (pa_expand_compare_and_swap_loop): New.
5274 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
5275 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
5276 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
5277 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
5278 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
5281 2015-09-24 Michael Collison <michael.collison@linaro.org>
5284 * read-md.c (read_name): Allow mode iterators inside angle
5285 brackets in rtl expressions.
5287 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
5290 * ira-color.c (update_allocno_cost): Add parameter.
5291 (update_costs_from_allocno): Decrease conflict cost. Pass the new
5294 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
5297 * opts-common.c (prune_options): Discard all -fdiagnostics-color
5298 but the last one, which is moved to the front to be processed
5300 * opts.c (enable_warning_as_error): Reject options that do not
5303 2015-09-24 Jiong Wang <jiong.wang@arm.com>
5305 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
5307 2015-09-24 Jiong Wang <jiong.wang@arm.com>
5309 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
5310 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
5311 (aarch64_cannot_force_const_mem): Likewise.
5312 (aarch64_classify_address): Likewise.
5313 (aarch64_classify_symbolic_expression): Likewise.
5314 (aarch64_print_operand): Likewise.
5315 (aarch64_classify_symbol): Likewise.
5316 (aarch64_mov_operand_p): Likewise.
5317 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
5318 (aarch64_mov_operand): Likewise.
5320 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
5322 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
5323 for info->spe_gp_size.
5325 2015-09-24 Richard Biener <rguenther@suse.de>
5328 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
5331 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
5333 * tree-object-size.c (plus_stmt_object_size)
5334 (cond_expr_object_size): Change the formal parameters from gimple
5336 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
5337 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
5338 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
5340 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5342 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
5343 Check for ld -type pie on Solaris 11.x and 12.
5344 * configure: Regenerate.
5345 * config.in: Regenerate.
5347 * gcc.c (LD_PIE_SPEC): Allow redefinition.
5349 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
5350 (STARTFILE_SPEC): Use it.
5351 (ENDFILE_CRTEND_SPEC): Define.
5352 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
5353 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
5354 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
5355 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
5356 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
5357 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
5358 (ENDFILE_ARCH_SPEC): Define.
5359 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
5361 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5363 * configure.ac (gcc_cv_solaris_crts): New test.
5364 * configure. Regenerate.
5365 * config.in: Regenerate.
5366 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
5367 HAVE_SOLARIS_CRTS variant.
5369 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5371 * tree-inline.h (count_insns_seq): Delete prototype.
5372 (estimate_num_insns_seq): Define prototype.
5373 * tree-inline.c (count_insns_seq): Delete.
5374 (estimate_num_insns_seq): Remove static qualifier.
5375 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
5376 with estimate_num_insns_seq.
5378 2015-09-24 Richard Biener <rguenther@suse.de>
5380 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
5382 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
5383 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
5385 (ao_ref_init_from_vn_reference): Record clique and base in the
5387 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
5389 2015-09-24 Richard Biener <rguenther@suse.de>
5391 PR tree-optimization/48885
5392 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
5393 as not including any restrict tags from other pointers.
5395 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
5397 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
5398 character when appending to offload_targets.
5400 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
5401 offload targets by commas, not colons.
5402 * config.in: Regenerate.
5403 * configure: Likewise.
5404 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
5405 instead of setting up the default offload targets here...
5406 (process_command): ..., do it here.
5408 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
5409 targets are separated by commas.
5410 * config.h.in: Regenerate.
5412 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
5413 Nathan Sidwell <nathan@codesourcery.com>
5415 * omp-low.h (omp_reduction_init_op): Declare.
5416 * omp-low.c (omp_reduction_init_op): New, broken out of ...
5417 (omp_reduction_init): ... here. Call it.
5418 * tree-parloops.c (initialize_reductions): Use
5419 omp_reduction_init_op.
5421 2015-09-23 Richard Biener <rguenther@suse.de>
5424 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
5425 undefined overflow unless they will cancel out.
5427 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
5429 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
5432 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
5435 * opts.h (write_langs): Declare.
5436 * opts-global.c (write_langs): Make it extern.
5438 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
5441 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
5442 overlapping regs when matching the pattern.
5444 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
5446 * config/aarch64/aarch64-simd.md
5447 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
5448 (aarch64_float_truncate_hi_v4sf_le): New.
5449 (aarch64_float_truncate_hi_v4sf_be): Likewise.
5451 2015-09-23 Richard Biener <rguenther@suse.de>
5453 * tree-ssa-structalias.c (intra_create_variable_infos): Build
5454 representatives for all restrict qualified pointer destinations.
5456 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
5458 * config/i386/i386.md (define_code_attr mshift): New.
5459 (define_mode_iterator SWI1248_AVX512BW): Rename ...
5460 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
5462 (define_insn "*k<logic><mode>"): Use new iterator name.
5463 (define_insn "*<mshift><mode>3"): New.
5465 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
5468 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
5469 mark the block as accessible.
5471 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
5473 * function.c (thread_prologue_and_epilogue_insns): Delete
5474 orig_entry_edge argument to try_shrink_wrapping.
5475 * shrink-wrap.c (can_get_prologue): New function.
5476 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
5477 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
5478 can_get_prologue where needed. Remove code that finds a single
5479 edge for the prologue. Remove code that tests if any reg clobbered
5480 by the prologue is live on the prologue edge. Remove code that finds
5481 the new prologue edge after duplicating blocks. Make a new prologue
5483 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
5485 2015-09-22 Jeff Law <law@redhat.com>
5487 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
5490 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
5492 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
5493 -Wtemplates, -Wnamespaces): Document.
5495 2015-09-22 Tom de Vries <tom@codesourcery.com>
5497 PR tree-optimization/67671
5498 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
5499 pointer references as restrict.
5501 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
5503 * config/nios2/nios2.c (nios2_legitimize_address): When handling
5504 'reg + reloc' cases, allow first operand to be non-REG, and use
5505 force_reg() to enforce address pattern.
5507 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
5510 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
5511 (define_mode_iterator VI12_AVX_AVX512F): New.
5512 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
5513 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
5514 (define_insn "*<code><mode>3"): ... Into new pattern using
5515 VI12_AVX_AVX512F iterators without masking.
5517 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
5519 * config.gcc: Support "skylake-avx512".
5520 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5521 PROCESSOR_SKYLAKE_AVX512.
5522 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
5523 (processor_target_table): Add "skylake-avx512".
5524 (PTA_SKYLAKE_AVX512): Define.
5525 (ix86_option_override_internal): Add "skylake_avx512".
5526 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
5527 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
5528 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
5529 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
5530 * doc/invoke.texi (skylake-avx512): New.
5532 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
5534 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
5536 (define_insn "kunpcksi"): Ditto.
5537 (define_insn "kunpckdi"): Ditto.
5539 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
5541 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
5542 iterator instead of fixed modes.
5544 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5546 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
5548 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
5549 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
5550 out_result. Update to support update-fetch operations.
5551 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
5552 Adjust for change to aarch64_gen_atomic_ldop.
5553 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
5554 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
5555 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
5556 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
5557 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
5559 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5561 * config/aarch64/aarch64-protos.h
5562 (aarch64_atomic_ldop_supported_p): Declare.
5563 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
5564 (enum aarch64_atomic_load_op_code): New.
5565 (aarch64_emit_atomic_load_op): New.
5566 (aarch64_gen_atomic_ldop): Update to support load-operate
5568 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
5570 (aarch64_atomic_<atomic_optab><mode>): New.
5571 (aarch64_atomic_<atomic_optab><mode>_lse): New.
5572 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
5573 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
5574 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
5576 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5578 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
5579 (UNSPECV_ATOMIC_LDOP_OR): New.
5580 (UNSPECV_ATOMIC_LDOP_BIC): New.
5581 (UNSPECV_ATOMIC_LDOP_XOR): New.
5582 (UNSPECV_ATOMIC_LDOP_PLUS): New.
5585 (aarch64_atomic_load<atomic_ldop><mode>): New.
5587 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5589 * config/aarch64/aarch64.md
5590 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
5593 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5595 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
5597 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
5598 (aarch64_gen_atomic_ldop): New.
5599 (aarch64_split_atomic_op): Fix whitespace and add a comment.
5600 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
5601 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
5602 (atomic_exchange<mode>): Replace with an expander.
5603 (aarch64_atomic_exchange<mode>): New.
5604 (aarch64_atomic_exchange<mode>_lse): New.
5605 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
5606 (aarch64_atomic_swp<mode>): New.
5608 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5610 * tree-inline.c (expand_call_inline): Use inform for extra note.
5611 Do not give a note with UNKNOWN_LOCATION.
5612 Replace input_location with gimple_location (stmt).
5613 Use true/false instead of TRUE/FALSE.
5615 2015-09-22 Tom de Vries <tom@codesourcery.com>
5617 PR tree-optimization/67666
5618 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
5619 with single field non-conservative.
5621 2015-09-21 David S. Miller <davem@davemloft.net>
5625 2015-09-11 David S. Miller <davem@davemloft.net>
5627 * config/sparc/constraints.md: Make "U" constraint a real register
5629 * config/sparc/sparc.c (TARGET_LRA_P): Define.
5630 (D_MODES, DF_MODES): Add missing cast.
5631 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
5632 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
5633 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
5635 * config/sparc/sparc.h (PROMOTE_MODE): Define.
5636 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
5637 provide these insn when flag_pic.
5639 2015-09-17 David S. Miller <davem@davemloft.net>
5641 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
5643 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
5645 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
5646 (HARD_REGNO_CALLER_SAVE_MODE): Define.
5647 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
5648 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
5649 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
5650 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
5651 provide when flag_pic.
5653 2015-09-21 Jeff Law <law@redhat.com>
5655 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
5658 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5660 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
5662 2015-09-21 Richard Biener <rguenther@suse.de>
5664 * passes.c (rest_of_decl_compilation): Do not call
5665 dwarf2out_early_global_decl for aliases.
5667 2015-09-21 Richard Biener <rguenther@suse.de>
5670 * dwarf2out.c (add_location_or_const_value_attribute): Remove
5671 attribute parameter. Early exit if either DW_AT_const_value
5672 or DW_AT_location are present already.
5673 (gen_variable_die): Adjust caller.
5674 (dwarf2out_late_global_decl): Likewise.
5676 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
5679 * config/sh/sh.c (sh_remove_overlapping_post_inc,
5680 sh_peephole_emit_move_insn): Add new functions.
5681 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
5682 sh_peephole_emit_move_insn): Declere them.
5683 * config/sh/sh.md: Use them in various peephole2 patterns.
5685 2015-09-21 Richard Biener <rguenther@suse.de>
5688 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
5689 address with -fno-delete-null-pointer-checks.
5691 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
5693 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
5694 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
5695 (reduc_uplus_v16qi): Remove.
5697 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
5698 (reduc_<VEC_reduc_name>_v2df): Remove.
5699 (reduc_<VEC_reduc_name>_v4sf): Remove.
5700 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
5702 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
5703 gen_ function by removing * prefix.
5704 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
5706 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5709 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
5710 Print i_bound without converting it to a tree.
5712 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
5714 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
5715 operands[4] operands[5] swap with std::swap, removed tmp variable.
5716 (arm_evpc_neon_vzip): Replaced in0/in1 and
5717 out0/out1 swaps with std::swap, removed x variable.
5718 (arm_evpc_neon_vtrn): Replaced in0/int1 and
5719 out0/out1 swaos with std::swap, removed x variable.
5720 (arm_expand_vec_perm_const_1): Replaced
5721 d->op0/d->op1 swap with std::swap, removed x variable.
5722 (arm_evpc_neon_vuzp): Replaced in0/in1 and
5723 out0/out1 swaps with std::swap, removed x variable.
5725 2015-09-21 Jonathan Yong <10walls@gmail.com>
5727 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
5728 sysroot/usr/lib/32api for additional win32 libraries,
5729 fixes failing Cygwin bootstrapping.
5731 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
5733 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
5735 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
5738 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
5739 (*mov_t_msb_neg): Rewrite negc pattern.
5741 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5743 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
5744 immediate generation code.
5746 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5748 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
5749 redundant immediate generation code.
5751 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5753 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
5754 (AARCH64_NUM_BITMASKS): Remove.
5755 (aarch64_bitmasks_cmp): Remove.
5756 (aarch64_build_bitmask_table): Remove.
5758 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5760 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
5761 slow immediate matching loops with a faster algorithm.
5763 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5765 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
5768 2015-09-20 Jeff Law <law@redhat.com>
5770 PR tree-optimization/47679
5771 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
5772 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
5773 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
5774 (thread_through_normal_block): Use record_temporary_equivalences.
5776 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
5778 * coretypes.h (gimple): Change typedef to be a forward declaration.
5779 * gimple.h (gimple_statement_base): rename to gimple.
5780 * (all functions and types using gimple): Adjust.
5783 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
5784 David Edelsohn <dje.gcc@gmail.com>
5786 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
5787 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5788 (EH_FRAME_THROUGH_COLLECT2): Define.
5789 (EH_TABLES_CAN_BE_READ_ONLY): Define.
5790 (ASM_OUTPUT_DWARF_PCREL): Define.
5791 (ASM_OUTPUT_DWARF_DATAREL): Define.
5793 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
5795 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
5798 2015-09-18 Jeff Law <law@redhat.com>
5800 PR tree-optimization/47679
5801 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
5803 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
5804 object. Update constructor.
5805 (pass_dominator::execute): Corresponding chagnes to declaration
5806 and initialization of avail_exprs_stack. Update constructor call
5807 for dom_opt_dom_walker object.
5808 (lookup_avail_expr, record_cond): Accept additional argument. Pass
5809 it down to children as needed.
5810 (record_equivalences_from_incoming_edge): Likewise.
5811 (eliminate_redundant_computations): Likewise.
5812 (record_equivalences_from_stmt): Likewise.
5813 (simplify_stmt_for_jump_threading): Likewise.
5814 (record_temporary_equivalences): Likewise.
5815 (optimize_stmt): Likewise.
5816 (dom_opt_dom_walker::thread_across_edge): Update access to
5817 avail_exprs_stack object and pass it to children as needed.
5818 (dom_opt_dom_walker::before_dom_children): Similarly.
5819 (dom_opt_dom_walker::after_dom_children): Similarly.
5820 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
5821 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
5822 Add avail_expr_stack argument. Pass it to children as needed.
5823 (dummy_simplify): Likewise.
5824 (simplify_control_stmt_condition): Likewise.
5825 (thread_around_empty_blocks): Likewise.
5826 (thread_through_normal_block): Likewise.
5827 (thread_across_edge): Likewise.
5828 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
5829 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
5831 PR tree-optimization/47679
5832 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
5834 (dom_opt_dom_walker): New private member holding the const_and_copies
5835 object. Update constructor.
5836 (pass_dominator::execute): Corresponding changes to declaration
5837 and initialization of const_and_copies. Update constructor call
5838 for the dom_opt_dom_walker object.
5839 (record_temporary_equivalences): Accept const_and_copies argument
5840 pass it down to children as needed.
5841 (record_equality): Likewise.
5842 (record_equivalences_from_incoming_edge): Likewise.
5843 (cprop_into_successor_phis, optimize_stmt): Likewise.
5844 (eliminate_redundant_computations): Likewise.
5845 (dom_opt_dom_walker::thread_across_edge): Update access to
5846 const_and_copies object and pass it to children as needed.
5847 (dom_opt_dom_walker::before_dom_children): Similarly.
5848 (dom_opt_dom_walker::after_dom_children): Similarly.
5850 PR tree-optimization/47679
5851 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
5852 it into the avail_exprs_stack class.
5853 (pass_dominator::execute): Corresponding changes to declaration
5854 and initialization of avail_exprs. Pass avail_exprs to
5855 dump_dominator_optimization_stats.
5856 (record_cond): Extract avail_exprs from avail_exprs_stack.
5857 (lookup_avail_expr): Similarly.
5858 (htab_staticstics): Remove unnecessary prototype. Move to earlier
5860 (dump_dominator_optimization_stats): Make static and prototype.
5861 Add argument for the hash table to dump.
5862 (debug_dominator_optimization_stats): Remove.
5863 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
5865 (debug_dominator_optimization_stats): Similarly.
5866 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
5867 "void" in prototype for pop_to_marker method. Add accessor method
5868 for the underlying avail_exprs table.
5870 * tree-ssa-threadedge.c: Remove trailing whitespace.
5872 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
5874 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
5876 (pa_ldil_cint_p): Likewise.
5877 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
5878 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
5880 * config/pa/pa.md: Likewise.
5882 2015-09-18 David Malcolm <dmalcolm@redhat.com>
5884 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
5885 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
5886 (diagnostic_show_locus): Likewise.
5887 (diagnostic_print_caret_line): Likewise.
5888 * diagnostic-show-locus.c: New file.
5890 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
5892 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
5893 "back" parameter. Declare label in #if block.
5895 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
5898 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
5899 the address to a register.
5901 2015-09-18 Jeff Law <law@redhat.com>
5903 PR tree-optimization/47679
5904 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
5905 * tree-ssa-dom.c: Remove unnecessary header includes.
5906 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
5907 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
5908 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
5909 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
5910 (pass_phi_only_cprop::execute): Likewise.
5911 (make_pass_phi_only_cprop): Likewise.
5912 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
5913 uses of file scoped statics by passing the required objects
5914 as parameters wherever needed.
5916 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
5917 David Edelsohn <dje.gcc@gmail.com>
5919 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
5920 EH_FRAME_THROUGH_COLLECT2.
5921 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
5923 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
5924 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
5925 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
5926 * except.c (switch_to_exception_section): Use a read-only section
5927 even if EH_FRAME_SECTION_NAME is undefined.
5928 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
5929 * collect2.c (write_c_file_stat): Provide dbase on AIX.
5930 (scan_prog_file): Don't export __dso_handle nor
5932 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5933 (EH_TABLES_CAN_BE_READ_ONLY): Define.
5934 (ASM_OUTPUT_DWARF_PCREL): Define.
5935 (ASM_OUTPUT_DWARF_DATAREL): Define.
5936 (EH_FRAME_THROUGH_COLLECT2): Define.
5937 (EH_FRAME_IN_DATA_SECTION): Delete.
5938 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
5939 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
5941 (rs6000_asm_output_dwarf_datarel): Declare.
5942 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
5943 (rs6000_aix_asm_output_dwarf_datarel): New.
5944 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
5945 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
5946 (EH_FRAME_THROUGH_COLLECT2): Define.
5947 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
5948 (EH_FRAME_THROUGH_COLLECT2): Define.
5949 (EH_TABLES_CAN_BE_READ_ONLY): Define.
5950 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
5951 (EH_FRAME_THROUGH_COLLECT2): New.
5952 (ASM_OUTPUT_DWARF_DATAREL): New.
5953 * doc/tm.texi: Regenerate.
5955 2015-09-18 Richard Biener <rguenther@suse.de>
5957 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
5958 we're in early phase.
5959 (schedule_generic_params_dies_gen): Likewise.
5960 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
5961 work as possible, retaining unhandled cases.
5962 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
5963 clear out generic_type_instances at the end.
5964 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
5965 (dwarf2out_early_finish): ... here. Do most of
5966 gen_remaining_tmpl_value_param_die_attribute here.
5968 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
5970 PR tree-optimization/67283
5971 * tree-sra.c (type_consists_of_records_p): Rename to...
5972 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
5973 (completely_scalarize_record): Rename to...
5974 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
5975 (scalarize_elem): New.
5976 (analyze_all_variable_accesses): Follow renamings.
5978 2015-09-18 Richard Biener <rguenther@suse.de>
5980 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
5983 2015-09-18 Richard Biener <rguenther@suse.de>
5985 PR tree-optimization/66142
5986 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
5987 treat MEM[&x] and x the same.
5988 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
5989 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
5990 when we simplified sth.
5991 (vn_reference_maybe_forwprop_address): Likewise.
5992 (valueize_refs_1): When we simplified through
5993 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
5994 set valueized_anything to true.
5995 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
5996 one ref kills the other instead of just a offset-based test.
5997 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
5998 for the operand_equal_p test to compare bases and also compare
6001 2015-09-17 Christian Bruel <christian.bruel@st.com>
6003 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
6005 2015-09-17 Richard Henderson <rth@redhat.com>
6008 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
6009 pointers that encode the alignment of the object.
6011 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
6013 PR rtl-optimization/66790
6014 * df-problems.c (LIVE): Amend documentation.
6016 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
6018 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
6020 (GTFILES): Replace optabs.c with optabs-libfunc.c.
6021 * genopinit.c (main): Add an include guard to insn-opinit.h.
6022 Protect the rtx_code parts with NUM_RTX_CODE.
6023 * optabs.h: Split parts out to...
6024 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
6025 * optabs.c: Split parts out to...
6026 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
6027 * cilk-common.c: Include optabs-query.h rather than optabs.h.
6028 * fold-const.c: Likewise.
6029 * target-globals.c: Likewise.
6030 * tree-if-conv.c: Likewise.
6031 * tree-ssa-forwprop.c: Likewise.
6032 * tree-ssa-loop-prefetch.c: Likewise.
6033 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
6034 Remove unncessary include files.
6035 * tree-ssa-phiopt.c: Likewise.
6036 * tree-ssa-reassoc.c: Likewise.
6037 * tree-switch-conversion.c: Likewise.
6038 * tree-vect-data-refs.c: Likewise.
6039 * tree-vect-generic.c: Likewise.
6040 * tree-vect-loop.c: Likewise.
6041 * tree-vect-patterns.c: Likewise.
6042 * tree-vect-slp.c: Likewise.
6043 * tree-vect-stmts.c: Likewise.
6044 * tree-vrp.c: Likewise.
6045 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
6046 rather than optabs.h.
6047 * expr.c: Include optabs-tree.h.
6048 * function.c: Likewise.
6050 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
6053 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
6054 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
6055 * config/arm/arm.c: Include common/common-target.h.
6056 (use_return_insn): Return 0 if the static chain register was saved
6057 above a non-APCS frame.
6058 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
6059 (struct scratch_reg): New.
6060 (get_scratch_register_on_entry): New function.
6061 (release_scratch_register_on_entry): Likewise.
6062 (arm_emit_probe_stack_range): Likewise.
6063 (output_probe_stack_range): Likewise.
6064 (arm_expand_prologue): Factor out code dealing with the IP register
6065 for nested function and adjust it for stack checking.
6066 Invoke arm_emit_probe_stack_range if static builtin stack checking
6068 (thumb1_expand_prologue): Sorry out if static builtin stack checking
6070 (arm_expand_epilogue): Add the saved static chain register, if any, to
6071 the amount of pre-pushed registers to pop.
6072 (arm_frame_pointer_required): Return true if static stack checking is
6073 enabled and we want to catch the exception with the EABI unwinder.
6074 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
6075 (UNSPEC_PROBE_STACK_RANGE): Likewise.
6076 * config/arm/arm.md (probe_stack): New insn.
6077 (probe_stack_range): Likewise.
6079 2015-09-17 Richard Biener <rguenther@suse.de>
6081 * genmatch.c (parser::parse_expr): Improve error message
6082 for mis-placed flags.
6084 2015-09-17 Richard Biener <rguenther@suse.de>
6086 * passes.c (rest_of_decl_compilation): Always call early_global_decl
6087 debug hook when we created a varpool node.
6088 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
6089 dwarf2out_early_global_decl, when not just add location or
6090 value attributes to existing DIEs.
6092 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
6094 * config/aarch64/aarch64.md (copysigndf3): New.
6095 (copysignsf3): Likewise.
6097 2015-09-17 David S. Miller <davem@davemloft.net>
6099 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
6100 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
6101 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
6102 (HARD_REGNO_CALLER_SAVE_MODE): Define.
6103 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
6104 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
6105 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
6106 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
6107 provide when flag_pic.
6109 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
6111 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
6112 object_allocator change.
6114 2015-09-17 Bin Cheng <bin.cheng@arm.com>
6116 PR tree-optimization/66388
6117 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
6118 (dump_iv): Dump no_overflow information.
6119 (alloc_iv): Initialize new field for struct iv.
6120 (mark_bivs): Count number of no_overflow bivs.
6121 (find_deriving_biv_for_expr, record_biv_for_address_use): New
6123 (idx_find_step): Call new functions above.
6124 (add_candidate_1, add_candidate): New paramter.
6125 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
6126 (get_computation_aff): Simplify convertion of cand for BIV.
6127 (get_computation_cost_at): Step cand's base if necessary.
6129 2015-09-17 Bin Cheng <bin.cheng@arm.com>
6131 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
6133 (tree_simplify_using_condition): Ditto.
6134 (simplify_using_initial_conditions): Ditto.
6135 (loop_exits_before_overflow): Pass new argument to function
6136 simplify_using_initial_conditions. Remove case for type conversions
6138 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
6140 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
6141 in iv base using loop initial conditions.
6143 2015-09-16 Jeff Law <law@redhat.com>
6145 PR tree-optimization/47679
6146 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
6147 (free_all_edge_infos): Use it.
6148 (allocate_edge_info): Free preexisting edge info data.
6149 (pass_dominator::execute): Set up initial edge info structures.
6150 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
6152 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
6153 If non-null, then push/pop markers appropriately.
6154 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
6155 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
6158 2015-09-16 James Bowman <james.bowman@ftdichip.com>
6160 * config/ft32/ft32.c: Fix the memory address space predicate.
6162 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
6165 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
6166 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
6168 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6170 * toplev.h (check_global_declaration): Remove declaration.
6171 * toplev.c (check_global_declaration): Move to ...
6172 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
6173 (analyze_functions): Update call.
6175 2015-09-16 David S. Miller <davem@davemloft.net>
6177 * lra-constraints.c (simplify_operand_subreg): Do not assume that
6178 lowpart of a SUBREG has offset zero.
6180 2015-09-16 Jeff Law <law@redhat.com>
6182 PR tree-optimization/47679
6183 * tree-ssa-dom.c (enum expr_kind): Moved from here to
6184 tree-ssa-scopedtables.h.
6185 (struct hashable_expr, class expr_hash_elt): Likewise.
6186 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
6187 Move associated methods into tree-ssa-scopedtables.c.
6188 (avail_expr_hash, initialize_expr_from_cond): Similarly.
6189 (hashable_expr_equal_p, add_expr_commutative): Likewise.
6190 (add_hashable_expr): Likewise.
6191 (record_cond): Delete element directly.
6192 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
6193 private copy ctor and assignment operator methods.
6194 (expr_elt_hasher): Inline trivial methods.
6195 (initialize_expr_from_cond): Prototype.
6196 * tree-ssa-scopedtables.c: Add necessary includes, functions and
6197 methods that were previously in tree-ssa-dom.c. Improve various
6200 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
6202 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
6204 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
6207 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
6210 2015-09-16 Richard Biener <rguenther@suse.de>
6213 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
6214 location of possibly shared trees.
6216 2015-09-16 Richard Biener <rguenther@suse.de>
6219 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
6221 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
6223 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
6224 offset and size computations instead of HOST_WIDE_INT.
6226 2015-09-16 Richard Biener <rguenther@suse.de>
6229 * fold-const.c (extract_muldiv_1): Properly extend multiplication
6230 result before builting a tree via wide_int_to_tree.
6232 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
6234 * Makefile.in: Add memory-block.cc
6235 (pool_allocator::initialize): Use fixed block size.
6236 (pool_allocator::release): Use memory_block_pool.
6237 (pool_allocator::allocate): Likewise.
6238 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
6240 * cfg.c (initialize_original_copy_tables): Likewise.
6241 * cselib.c (elt_list_pool, elt_loc_list_pool,
6242 cselib_val_pool): Likewise.
6243 * df-problems.c (df_chain_alloc): Likewise.
6244 * df-scan.c (df_scan_alloc): Likewise.
6245 * dse.c (cse_store_info_pool, rtx_store_info_pool,
6246 read_info_type_pool, insn_info_type_pool, bb_info_pool,
6247 group_info_pool, deferred_change_pool): Likewise.
6248 * et-forest.c (et_nodes, et_occurrences): Likewise.
6249 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
6250 ipcp_agg_lattice_pool): Likewise.
6251 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
6252 * ipa-profile.c (histogram_pool): Likewise.
6253 * ipa-prop.c (ipa_refdesc_pool): Likewise.
6254 * ira-build.c (live_range_pool, allocno_pool, object_pool,
6255 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
6256 * ira-color.c (update_cost_record_pool): Likewise.
6257 * lra-lives.c (lra_live_range_pool): Likewise.
6258 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
6259 * memory-block.cc: New file.
6260 * memory-block.h: New file.
6261 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
6262 * sched-deps.c (sched_deps_init): Likewise.
6263 * sel-sched-ir.c (sched_lists_pool): Likewise.
6264 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
6265 * tree-sra.c (access_pool): Likewise.
6266 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
6267 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
6268 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
6269 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
6270 * tree-ssa-strlen.c (strinfo_pool): Likewise.
6271 * tree-ssa-structalias.c (variable_info_pool): Likewise.
6272 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
6273 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
6275 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
6277 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
6279 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
6282 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
6284 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
6285 to pass TLS call argument, according to current ABI.
6286 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
6287 callx0 for TLS call, according to current ABI.
6289 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
6291 * tree-eh.c (lower_try_finally_dup_block): Clear location information
6292 on stack restore statements.
6293 (decide_copy_try_finally): Do not consider a stack restore statement as
6294 coming from sources.
6296 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
6298 * config/alpha/alpha.c (alpha_expand_block_clear): Use
6299 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
6301 2015-09-15 Jeff Law <law@redhat.com>
6303 PR tree-optimization/47679
6304 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
6305 methods and private members.
6306 (avail_exprs_stack): Similarly. Change type of global
6307 from a pair of expr_hash_elt_t to the new class.
6308 (expr_elt_hasher::hash): Corresponding changes.
6309 (expr_elt_hasher::equal): Similarly.
6310 (avail_expr_hash): Similarly.
6311 (pass_dominator::execute): Similarly.
6312 (dom_opt_dom_walker::thread_across_edge): Similarly.
6313 (record_cond): Similarly.
6314 (dom_opt_dom_walker::before_dom_children): Similarly.
6315 (dom_opt_dom_walker::after_dom_children): Similarly.
6316 (lookup_avail_expr): Likewise.
6317 (initialize_hash_element): Now a expr_hash_elt constructor.
6318 (initialize_hash_element_from_expr): Similarly.
6319 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
6320 (free_expr_hash_elt): Call dtor for the element.
6321 (remove_local_expressions_from_table): Now the "pop_to_marker"
6322 method in the available_exprs_stack class.
6323 (avail_expr_stack::record_expr): Method factored out.
6324 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
6326 (hashable_expr_equal_p): Fix formatting.
6328 2015-09-15 David Malcolm <dmalcolm@redhat.com>
6330 * input.h (location_get_source_line): Drop "expanded_location"
6331 param in favor of a file and line number.
6332 * input.c (location_get_source_line): Likewise.
6333 (dump_location_info): Update for change in signature of
6334 location_get_source_line.
6335 * diagnostic.c (diagnostic_print_caret_line): Likewise.
6337 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
6339 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
6340 Bump to 4KB for SJLJ exceptions.
6341 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
6342 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
6343 * doc/tm.texi: Regenerate.
6345 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6347 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
6348 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
6351 2015-09-15 Richard Biener <rguenther@suse.de>
6353 PR tree-optimization/67470
6354 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
6355 structure for PHI hoisting by inserting a forwarder block
6358 2015-09-15 Christian Bruel <christian.bruel@st.com>
6360 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
6361 (arm_option_print): New function.
6363 2015-09-15 Christian Bruel <christian.bruel@st.com>
6366 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
6367 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
6368 Remove flags parameter.
6369 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
6370 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
6371 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
6372 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
6373 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
6374 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
6375 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
6376 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
6378 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6380 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
6382 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
6383 AARCH64_VALID_SIMD_DREG_MODE.
6385 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6387 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
6388 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
6389 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
6390 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
6391 aarch64_ld4_lane<mode>): Combine together, making...
6392 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
6393 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
6394 aarch64_st4_lane<mode>): Combine together, making...
6395 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
6396 * config/aarch64/iterators.md (nregs): Add comment.
6398 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6400 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
6401 Change operand mode from <V_TWO_ELEM> to BLK.
6402 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
6403 (aarch64_vec_store_lanesoi_lane<mode): Likewise
6404 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
6405 (aarch64_ld2_lane<mode>): Likewise.
6406 (aarch64_st2_lane<VQ:mode>): Likewise.
6407 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
6409 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6411 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
6412 Change operand mode from <V_FOUR_ELEM> to BLK.
6413 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
6414 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
6415 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
6416 (aarch64_ld4_lane<mode>): Likewise.
6417 (aarch64_st4_lane<mode>): Likewise.
6418 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
6420 2015-09-15 Richard Biener <rguenther@suse.de>
6423 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
6424 transfer EH info from old to new stmt.
6425 (replace_call_with_value): Likewise.
6426 (replace_call_with_call_and_fold): Likewise.
6427 (gimple_fold_builtin_memory_op): Likewise.
6428 (gimple_fold_builtin_memset): Likewise.
6429 (gimple_fold_builtin_stpcpy): Likewise.
6430 (gimple_fold_call): Likewise.
6432 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6434 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
6436 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
6437 (aarch64_simd_intEI_type_node): Likewise.
6438 (aarch64_simd_builtin_std_type): Remove EImode case.
6439 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
6440 * config/aarch64/aarch64-modes.def: Remove EImode.
6442 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6444 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
6445 Change operand mode from <V_THREE_ELEM> to BLK.
6446 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
6447 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
6448 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
6449 (aarch64_ld3_lane<mode>): Likewise.
6450 (aarch64_st3_lane<mode>): Likewise.
6451 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
6453 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6455 * config/aarch64/aarch64-simd.md
6456 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
6457 Change all TImode operands to BLKmode.
6458 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
6459 Change all EImode operands to BLKmode.
6460 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
6461 Change all OImode operands to BLKmode.
6463 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
6464 and call set_mem_size.
6465 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
6467 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
6469 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6471 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
6473 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
6475 (vec_store_lanesci_lane<mode>): Rename to...
6476 (aarch64_vec_store_lanesci_lane<mode>): ...this.
6478 (vec_store_lanesxi_lane<mode>): Rename to...
6479 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
6481 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
6482 aarch64_st4_lane<mode>): Follow renaming.
6484 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6486 * config/s390/s390.c (s390_const_operand_ok): Add missing
6489 2015-09-15 Richard Biener <rguenther@suse.de>
6492 * lto-streamer.h (lto_location_cache::current_sysp): Properly
6494 * lto-streamer-out.c (clear_line_info): Likewise.
6496 2015-09-15 Richard Biener <rguenther@suse.de>
6498 * doc/match-and-simplify.texi: Fix wording.
6500 2015-09-15 Bin Cheng <bin.cheng@arm.com>
6502 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
6503 unnecessary type conversion in op1.
6505 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
6507 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
6508 (dup_block_and_redirect): Delete function.
6509 (can_dup_for_shrink_wrapping): New function.
6510 (fix_fake_fallthrough_edge): New function.
6511 (try_shrink_wrapping): Rewrite function.
6512 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
6514 2015-09-14 Rich Felker <dalias@libc.org>
6516 * configure.ac: Change target pattern for sh TLS support
6517 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
6518 * configure: Regenerate.
6520 2015-09-14 Jeff Law <law@redhat.com>
6522 PR tree-optimization/47679
6523 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
6524 type rather than void *.
6526 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
6529 * diagnostic.c (diagnostic_initialize): Do not set
6530 some_warnings_are_errors.
6531 (diagnostic_finish): Use DK_WERROR count instead.
6532 (diagnostic_report_diagnostic): Do not set
6533 some_warnings_are_errors.
6534 * diagnostic.h (struct diagnostic_context): Remove
6535 some_warnings_are_errors.
6537 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
6539 * config/sparc/predicates.md (const_all_ones_operand): Use
6540 CONSTM1_RTX to simplify definition.
6542 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
6545 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
6548 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
6550 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
6551 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
6552 OPT_fshow_column to handled saved option cases.
6553 (append_compiler_options): Do not skip the above added options.
6555 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6558 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
6559 nopcrelative_literal_loads.
6560 (aarch64_classify_address): Likewise.
6561 (aarch64_constant_pool_reload_icode): Define.
6562 (aarch64_secondary_reload): Handle secondary reloads for
6564 (aarch64_override_options): Handle nopcrelative_literal_loads.
6565 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
6566 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
6568 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
6569 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
6570 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
6572 * doc/invoke.texi (mpc-relative-literal-loads): Document.
6574 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
6577 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
6578 sync_compare_and_swap_optab libcall to target_oval.
6580 2015-09-14 Marek Polacek <polacek@redhat.com>
6582 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
6584 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
6586 2015-09-11 Mark Wielaard <mjw@redhat.com>
6589 * toplev.c (check_global_declaration): Check and use
6590 warn_unused_const_variable.
6591 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
6592 (-Wunused-variable): Remove non-constant. For C implies
6593 -Wunused-const-variable.
6594 (-Wunused-const-variable): New.
6596 2015-09-14 Richard Biener <rguenther@suse.de>
6598 * doc/match-and-simplify.texi: Update for changed syntax
6599 of inner ifs and the new switch expression.
6601 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
6603 * config/i386/haswell.md: New file describing Haswell pipeline.
6604 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
6605 haswell-like processors.
6606 (ix86_reassociation_width): Increase reassociation width for 64-bit
6607 Haswell processor family.
6608 * config/i386/i386.md: Introduce haswell cpu and include new md file.
6610 2015-09-14 Richard Biener <rguenther@suse.de>
6612 * doc/match-and-simplify.texi: Fixup some formatting issues
6613 and document the 's' flag.
6615 2015-09-13 Olivier Hainque <hainque@adacore.com>
6616 Eric Botcazou <ebotcazou@adacore.com>
6618 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
6619 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
6620 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
6621 (TARGET_CPU_gr5): Likewise.
6622 (TARGET_CPU_gr6): Likewise.
6623 (MULTILIB_DEFAULTS): Likewise.
6624 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
6625 for mcpu=gr5 and mcpu=gr6.
6626 (MULTILIB_DIRNAMES): Adjust accordingly.
6628 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6630 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
6631 (mem_ref_p): Likewise.
6632 (outermost_indep_loop): Adjust.
6633 (mem_ref_in_stmt): Likewise.
6634 (determine_max_movement): Likewise.
6635 (mem_ref_alloc): Likewise.
6636 (record_mem_ref_loc): Likewise.
6637 (set_ref_stored_in_loop): Likewise.
6638 (mark_ref_stored): Likewise.
6639 (gather_mem_refs_stmt): Likewise.
6640 (mem_refs_may_alias_p): Likewise.
6641 (for_all_locs_in_loop): Likewise.
6642 (struct rewrite_mem_ref_loc): Likewise.
6643 (rewrite_mem_refs): Likewise.
6644 (struct first_mem_ref_loc_1): Likewise.
6645 (first_mem_ref_loc): Likewise.
6646 (struct sm_set_flag_if_changed): Likewise.
6647 (execute_sm_if_changed_flag_set): Likewise.
6648 (execute_sm): Likewise.
6649 (hoist_memory_references):
6650 (struct ref_always_accessed): Likewise.
6651 (ref_always_accessed_p): Likewise.
6652 (refs_independent_p): Likewise.
6653 (record_dep_loop): Likewise.
6654 (ref_indep_loop_p_1): Likewise.
6655 (ref_indep_loop_p_2): Likewise.
6656 (ref_indep_loop_p): Likewise.
6657 (can_sm_ref_p): Likewise.
6658 (find_refs_for_sm): Likewise.
6659 (tree_ssa_lim_finalize): Likewise.
6661 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6663 * dwarf2out.c (dw_attr_ref): Remove typedef.
6664 (dw_line_info_ref): Likewise.
6665 (pubname_ref): Likewise.
6666 (dw_ranges_ref): Likewise.
6667 (dw_ranges_by_label_ref): Likewise.
6668 (comdat_type_node_ref): Likewise.
6670 (get_AT_low_pc): Likewise.
6671 (get_AT_hi_pc): Likewise.
6672 (get_AT_string): Likewise.
6673 (get_AT_flag): Likewise.
6674 (get_AT_unsigned): Likewise.
6675 (get_AT_ref): Likewise.
6676 (get_AT_file): Likewise.
6677 (remove_AT): Likewise.
6678 (print_die): Likewise.
6679 (check_die): Likewise.
6680 (die_checksum): Likewise.
6681 (attr_checksum_ordered): Likewise.
6682 (struct checksum_attributes): Likewise.
6683 (collect_checksum_attributes): Likewise.
6684 (die_checksum_ordered): Likewise.
6685 (same_die_p): Likewise.
6686 (is_declaration_die): Likewise.
6687 (clone_die): Likewise.
6688 (clone_as_declaration): Likewise.
6689 (copy_declaration_context): Likewise.
6690 (break_out_comdat_types): Likewise.
6691 (copy_decls_walk): Likewise.
6692 (output_location_lists): Likewise.
6693 (external_ref_hasher::hash): Likewise.
6694 (optimize_external_refs_1): Likewise.
6695 (build_abbrev_table): Likewise.
6696 (size_of_die): Likewise.
6697 (unmark_all_dies): Likewise.
6698 (size_of_pubnames): Likewise.
6699 (output_die_abbrevs): Likewise.
6700 (output_die): Likewise.
6701 (output_pubnames): Likewise.
6702 (add_ranges_num): Likewise.
6703 (add_ranges_by_labels): Likewise.
6704 (add_high_low_attributes): Likewise.
6705 (gen_producer_string): Likewise.
6706 (dwarf2out_set_name): Likewise.
6707 (new_line_info_table): Likewise.
6708 (prune_unused_types_walk_attribs): Likewise.
6709 (prune_unused_types_update_strings): Likewise.
6710 (prune_unused_types): Likewise.
6711 (resolve_addr): Likewise.
6712 (optimize_location_lists_1): Likewise.
6713 (index_location_lists): Likewise.
6714 (dwarf2out_finish): Likewise.
6716 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6718 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
6720 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6722 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
6723 (dump_asserts_for): Adjust.
6724 (register_new_assert_for): Likewise.
6725 (process_assert_insertions): Likewise.
6726 (insert_range_assertions): Likewise.
6728 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6730 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
6732 (new_temp_expr_table): Adjust.
6733 (free_temp_expr_table): Likewise.
6734 (version_to_be_replaced_p): Likewise.
6735 (make_dependent_on_partition): Likewise.
6736 (add_to_partition_kill_list): Likewise.
6737 (remove_from_partition_kill_list): Likewise.
6738 (add_dependence): Likewise.
6739 (finished_with_expr): Likewise.
6740 (process_replaceable): Likewise.
6741 (kill_expr): Likewise.
6742 (kill_virtual_exprs): Likewise.
6743 (mark_replaceable): Likewise.
6744 (find_replaceable_in_bb): Likewise.
6745 (find_replaceable_exprs): Likewise.
6746 (debug_ter): Likewise.
6748 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6750 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
6751 (struct btr_user): Rename from btr_user_s.
6752 (struct btr_def): Rename from btr_def_s.
6753 (find_btr_def_group): Adjust.
6754 (add_btr_def): Likewise.
6755 (new_btr_user): Likewise.
6756 (note_other_use_this_block): Likewise.
6757 (compute_defs_uses_and_gen): Likewise.
6758 (link_btr_uses): Likewise.
6759 (build_btr_def_use_webs): Likewise.
6760 (block_at_edge_of_live_range_p): Likewise.
6761 (btr_def_live_range): Likewise.
6762 (combine_btr_defs): Likewise.
6763 (move_btr_def): Likewise.
6764 (migrate_btr_def): Likewise.
6765 (migrate_btr_defs): Likewise.
6767 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6769 * var-tracking.c (shared_hash_def): Rename to shared_hash.
6770 (shared_hash): Remove typedef.
6771 (struct dataflow_set): Adjust.
6772 (shared_hash_unshare): Likewise.
6773 (dataflow_set_merge): Likewise.
6774 (vt_initialize): Likewise.
6775 (vt_finalize): Likewise.
6777 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6779 * var-tracking.c (struct location_chain): Rename from
6781 (struct variable_part): Adjust.
6782 (variable_htab_free): Likewise.
6783 (unshare_variable): Likewise.
6784 (get_init_value): Likewise.
6785 (get_addr_from_local_cache): Likewise.
6786 (drop_overlapping_mem_locs): Likewise.
6787 (val_reset): Likewise.
6788 (struct variable_union_info): Likewise.
6789 (variable_union): Likewise.
6790 (find_loc_in_1pdv): Likewise.
6791 (insert_into_intersection): Likewise.
6792 (intersect_loc_chains): Likewise.
6793 (canonicalize_loc_order_check): Likewise.
6794 (canonicalize_values_mark): Likewise.
6795 (canonicalize_values_star): Likewise.
6796 (canonicalize_vars_star): Likewise.
6797 (variable_merge_over_cur): Likewise.
6798 (remove_duplicate_values): Likewise.
6799 (variable_post_merge_new_vals): Likewise.
6800 (variable_post_merge_perm_vals): Likewise.
6801 (find_mem_expr_in_1pdv): Likewise.
6802 (dataflow_set_preserve_mem_locs): Likewise.
6803 (dataflow_set_remove_mem_locs): Likewise.
6804 (variable_part_different_p): Likewise.
6805 (onepart_variable_different_p): Likewise.
6806 (find_src_set_src): Likewise.
6807 (dump_var): Likewise.
6808 (set_slot_part): Likewise.
6809 (clobber_slot_part): Likewise.
6810 (delete_slot_part): Likewise.
6811 (vt_expand_var_loc_chain): Likewise.
6812 (emit_note_insn_var_location): Likewise.
6813 (vt_finalize): Likewise.
6815 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6817 * dse.c (store_info_t): Remove typedef.
6818 (group_info_t): Likewise.
6819 (const_group_info_t): Likewise.
6820 (deferred_change_t): Likewise.
6821 (get_group_info): Adjust.
6822 (free_store_info): Likewise.
6823 (canon_address): Likewise.
6824 (clear_rhs_from_active_local_stores): Likewise.
6825 (record_store): Likewise.
6826 (replace_read): Likewise.
6827 (check_mem_read_rtx): Likewise.
6828 (scan_insn): Likewise.
6829 (remove_useless_values): Likewise.
6830 (dse_step1): Likewise.
6831 (dse_step2_init): Likewise.
6832 (dse_step2_nospill): Likewise.
6833 (scan_stores_nospill): Likewise.
6834 (scan_reads_nospill): Likewise.
6835 (dse_step3_exit_block_scan): Likewise.
6836 (dse_step3): Likewise.
6837 (dse_step5_nospill): Likewise.
6838 (dse_step6): Likewise.
6840 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6842 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
6843 (alias_set_entry): Remove typedef.
6844 (alias_set_subset_of): Adjust.
6845 (alias_sets_conflict_p): Likewise.
6846 (init_alias_set_entry): Likewise.
6847 (get_alias_set): Likewise.
6848 (new_alias_set): Likewise.
6849 (record_alias_subset): Likewise.
6851 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
6853 * doc/install.texi (Downloading the source): Mark up
6854 contrib/download_prerequisites properly and drop leading "./".
6856 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6858 * config/arc/arc.h: Remove define of STRUCT_VALUE.
6859 * config/lm32/lm32.h: Likewise.
6860 * config/mep/mep.h: Likewise.
6861 * config/visium/visium.h: Likewise.
6862 * system.h: Poison STRUCT_VALUE macro.
6864 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
6866 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
6867 CONSTANT_P operands.
6869 2015-09-11 David S. Miller <davem@davemloft.net>
6871 * config/sparc/constraints.md: Make "U" constraint a real register
6873 * config/sparc/sparc.c (TARGET_LRA_P): Define.
6874 (D_MODES, DF_MODES): Add missing cast.
6875 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
6876 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
6877 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
6879 * config/sparc/sparc.h (PROMOTE_MODE): Define.
6880 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
6881 provide these insn when flag_pic.
6883 2015-09-11 Jeff Law <law@redhat.com>
6885 PR tree-optimization/47679
6886 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
6887 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
6888 member with m_. Update inline member functions as necessary. Add
6890 * tree-ssa-scopedtables.c: Update const_and_copies's member
6891 functions to use m_ prefix to access the stack.
6893 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
6895 * graphite-optimize-isl.c (disable_tiling): Remove.
6896 (get_schedule_for_band): Do not use disable_tiling.
6897 (get_prevector_map): Delete function.
6898 (enable_polly_vector): Remove.
6899 (get_schedule_for_band_list): Remove dead code.
6901 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
6903 * graphite-optimize-isl.c (get_tile_map): Refactor.
6904 (get_schedule_for_band): Same.
6905 (getScheduleForBand): Same.
6906 (get_prevector_map): Same.
6907 (get_schedule_for_band_list): Same.
6908 (get_schedule_map): Same.
6909 (get_single_map): Same.
6910 (apply_schedule_map_to_scop): Same.
6911 (optimize_isl): Same.
6913 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6916 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
6918 * config/aarch64/iterators.md (GPF_TF_F16): New.
6921 2015-09-10 Nathan Sidwell <nathan@acm.org>
6923 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
6924 (nvptx_reorg): Adjust comments.
6926 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
6929 * configure.ac: Check if setenv and unsetenv are declared.
6930 * configure: Rebuild.
6931 * config.in: Rebuild.
6932 * system.h: Declare setenv and unsetenv if not declared.
6934 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6936 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
6937 commentary to simplify permute mask adjustment equation.
6938 (special_handling_values): Add SH_VPERM.
6939 (const_load_sequence_p): New function.
6940 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
6941 the mask loaded from the constant pool.
6942 (adjust_vperm): New function.
6943 (handle_special_swappables): Call adjust_vperm.
6944 (dump_swap_insn_table): Handle SH_VPERM.
6946 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
6948 * shrink-wrap.c (requires_stack_frame_p): Remove static.
6949 * shrink-wrap.h (requires_stack_frame_p): Put back.
6951 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
6953 * reload1.c (elimination_costs_in_insn): Locally turn
6954 -Wmaybe-uninitialized into a warning.
6956 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
6958 * shrink-wrap.c (requires_stack_frame_p): Make static.
6959 (prepare_shrink_wrap): Likewise.
6960 (dup_block_and_redirect): Likewise.
6961 * shrink-wrap.h: Remove declarations of those functions.
6963 2015-09-10 Mark Wielaard <mjw@redhat.com>
6965 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
6967 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
6970 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
6971 missing simplify_gen_subreg.
6973 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6975 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
6976 the vector element is bigger than 64 bit.
6978 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6980 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
6981 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
6983 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6985 * config/s390/s390.c: Add V1TImode to constant pool modes.
6987 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6990 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
6991 predicate. Set predicable_short_it attr to "no".
6993 2015-09-10 Jiong Wang <jiong.wang@arm.com>
6995 PR rtl-optimization/67421
6996 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
6997 left wide shift tranformation.
6999 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
7001 * common/config/arc/arc-common.c: Remove references to A5.
7002 * config/arc/arc-opts.h: Likewise.
7003 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
7004 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
7005 * config/arc/t-arc-newlib: Likewise.
7007 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
7009 * config/arc/arc.md (length): Fix attribute length for conditional
7010 executed instructions with long immediate.
7012 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7014 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
7015 type for second alternative.
7017 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
7019 * doc/invoke.texi (Downloading GCC): Mention
7020 contrib/download_prerequisites script.
7022 2015-09-10 Jakub Jelinek <jakub@redhat.com>
7025 * gimplify.c (gimplify_omp_for): If inner stmt is not found
7026 for combined loop, assert seen_error () and return GS_ERROR.
7029 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
7030 if decl is already in outer->variables.
7033 * gimplify.c (gimplify_scan_omp_clauses): Instead of
7034 asserting that decl is not specified in octx->variables,
7035 break out of the loop if it is.
7038 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
7039 iterator is not explicitly determined, but is defined inside
7040 of the combined workshare region, handle it like if it has
7041 DECL_EXPR in OMP_FOR_PRE_BODY.
7043 2015-09-09 Nathan Sidwell <nathan@acm.org>
7045 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
7046 (*cmp<mode>): Add assembler spacing.
7047 (setcc_int<mode>, set_cc_float<mode>): Likewise.
7048 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
7050 (write_func_decl_from_insn): Refactor argument loops & comma emission.
7051 (nvptx_expand_call): Likewise.
7052 (nvptx_output_call_insn): Likewise.
7053 (nvptx_reorg_subreg): Add spacing.
7055 2015-09-09 Marek Polacek <polacek@redhat.com>
7058 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
7061 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
7064 * doc/invoke.texi ([Wsubobject-linkage]): Document.
7066 2015-09-09 Tom de Vries <tom@codesourcery.com>
7068 * params-list.h: Add missing copyright notice.
7070 2015-09-09 Nathan Sidwell <nathan@acm.org>
7072 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
7073 sel_truesi, not andsi.
7075 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7077 * config/arm/arm.md (*subsi3_compare0): Rename to...
7078 (subsi3_compare0): ... This.
7079 (modsi3): New define_expand.
7080 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
7081 when operand is power of 2.
7083 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7085 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
7086 (*neg<mode>2_compare0): Rename to...
7087 (neg<mode>2_compare0): ... This.
7088 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
7089 Move check for speed inside the if-then-elses. Reflect
7090 CSNEG sequence in MOD by power of 2 case.
7092 2015-09-09 Alan Modra <amodra@gmail.com>
7095 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
7096 reload replacement for PRE_MODIFY address reg.
7098 2015-09-09 Sebastian Pop <s.pop@samsung.com>
7100 PR tree-optimization/53852
7101 * config.in: Regenerate.
7102 * configure: Regenerate.
7103 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
7104 * graphite-optimize-isl.c (optimize_isl): Stop computation when
7105 PARAM_MAX_ISL_OPERATIONS is reached.
7106 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
7107 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
7108 result equal to isl_stat_ok as the status now can be isl_error_quota.
7109 (subtract_commutative_associative_deps): Same.
7110 (compute_deps): Same.
7112 2015-09-08 Aditya Kumar <hiraditya@msn.com>
7113 Sebastian Pop <s.pop@samsung.com>
7115 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
7116 Return the parameter if it was saved in corresponding
7117 parameter_rename_map of the region.
7118 (copy_def): Copy def from sese region to the newly created region.
7119 (copy_internal_parameters): Copy all the internal parameters defined
7120 within a region to the newly created region.
7121 (graphite_regenerate_ast_isl): Copy parameters to the new region before
7122 translating isl to gimple.
7123 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
7124 the loop-nest does not have any data-references.
7125 (build_graphite_scops): Create a scop only when there is at least one
7127 (contains_only_close_phi_nodes): Deleted.
7128 (print_graphite_scop_statistics): Deleted
7129 (print_graphite_statistics): Deleted
7130 (limit_scops): Deleted.
7131 (build_scops): Removed call to limit_scops.
7132 * sese.c (new_sese): Construct.
7133 (free_sese): Destruct.
7134 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
7136 (set_rename): Pass sese region so that parameters inside the region can
7137 be added to its parameter_rename_map.
7138 (rename_uses): Pass sese region.
7139 (graphite_copy_stmts_from_block): Do not copy parameters that have been
7140 generated in the header of the scop. For each SSA_NAME in the
7141 parameter_rename_map rename its usage.
7142 (invariant_in_sese_p_rec): Return false if tree t is defined outside
7144 (scalar_evolution_in_region): If the tree t is invariant just return t.
7145 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
7146 struct sese to keep track of all the parameters which need renaming.
7147 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
7149 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
7151 2015-09-08 Tom de Vries <tom@codesourcery.com>
7153 * Makefile.in (generated_files): Add params.list.
7154 (params.list, s-params.list): Add rule.
7155 * params.h (enum compiler_param): Include params-list.h. Move define
7156 DEFPARAM, include params.def and undef DEFPARAM ...
7157 * params-list.h: ... here. New file.
7159 2015-09-08 David Malcolm <dmalcolm@redhat.com>
7161 * pretty-print.h (printer_fn): Fix typo in comment.
7163 2015-09-07 Jeff Law <law@redhat.com>
7165 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
7167 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7169 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
7170 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
7171 (arm_neon_fp16_hw): New.
7173 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7175 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
7176 UNITS_PER_WORD >= 4.
7178 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7180 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
7181 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
7182 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
7183 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
7184 (aarch64_float_extend_lo_v2df): Rename to...
7185 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
7187 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
7188 (float_extend_lo): Add v4sf.
7190 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
7191 * config/aarch64/iterators.md (VQ_HSF): New iterator.
7192 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
7193 (Vwide): New mode_attr.
7195 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7197 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
7198 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
7199 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
7200 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
7201 V4HF and V8HF variants to iterator.
7203 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
7205 * config/aarch64/iterators.md (VDQF_F16): New.
7206 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
7208 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7210 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
7211 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
7212 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
7213 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
7214 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
7215 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
7216 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
7217 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
7218 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
7219 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
7220 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
7221 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
7222 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
7223 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
7224 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
7225 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
7226 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
7227 vld1q_dup_f16): New.
7229 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7231 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
7232 Reparameterize to...
7233 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
7234 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
7235 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
7237 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
7239 (float_truncate_lo_): Use BUILTIN_VDF iterator.
7241 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
7243 * config/aarch64/iterators.md (VDF, Vdtype): New.
7244 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
7246 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7248 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
7249 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
7250 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
7251 Add __builtin_aarch64_simd_hf.
7252 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
7253 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
7254 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
7255 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
7256 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
7257 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
7258 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
7259 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
7260 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
7262 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
7263 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
7264 (VDC, Vdbl): Add V4HF.
7266 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7268 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
7269 V4HFmode and V8HFmode.
7270 (aarch64_split_simd_move): Add case for V8HFmode.
7271 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
7272 (aarch64_simd_builtin_std_type): Handle HFmode.
7273 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
7275 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
7276 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
7277 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
7279 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
7282 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
7283 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
7285 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
7286 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
7287 vst1q_lane_f16): New.
7288 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
7289 (VALLDI_F16, VALL_F16): New.
7290 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
7291 Add cases for V4HF and V8HF.
7292 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
7294 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7296 * config/arm/arm-builtins.c (VAR11, VAR12): New.
7297 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
7298 vld4_dup): Add v4hf variant.
7299 (vget_high, vget_low): Add v8hf variant.
7300 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
7301 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
7302 v4hf and v8hf variants.
7304 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
7306 (V_DOUBLE): Add case for V4HF.
7308 (V_HALF): Add case for V8HF.
7309 (VDQX): Add V4HF, V8HF.
7310 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
7311 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
7313 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
7314 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
7315 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
7316 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
7317 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
7318 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
7319 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
7320 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
7321 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
7323 (neon_vcreate, neon_vreinterpretv8qi<mode>,
7324 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
7325 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
7326 Change VDX to VD_RE.
7328 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
7329 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
7330 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
7332 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
7333 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
7334 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
7335 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
7336 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
7337 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
7338 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
7339 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
7340 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
7342 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7344 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
7345 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
7346 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
7347 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
7348 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
7349 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
7350 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
7351 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
7352 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
7353 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
7356 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7358 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
7360 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
7362 * config/arm/arm-builtins.c (v8hf_UP): New.
7363 (arm_init_simd_builtin_types): Initialise Float16x8_t.
7365 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
7367 * config/arm/arm_neon.h (float16x8_t): New typedef.
7369 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7371 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
7372 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
7373 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
7374 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
7375 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
7376 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
7377 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
7378 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
7379 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
7380 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
7382 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
7384 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
7385 non-alphanumeric characters in the symbol name.
7387 2015-09-07 Marek Polacek <polacek@redhat.com>
7390 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
7393 2015-09-07 Marek Polacek <polacek@redhat.com>
7395 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
7397 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
7399 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
7402 2015-09-04 Jakub Jelinek <jakub@redhat.com>
7405 * tree-ssa-live.c: Include cfgloop.h.
7406 (remove_unused_locals): Clear loop->simduid if simduid is about
7407 to be removed from cfun->local_decls.
7409 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7412 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
7415 2015-09-04 Tom de Vries <tom@codesourcery.com>
7417 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
7419 2015-09-04 Jeff Law <law@redhat.com>
7421 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
7422 unnecessary constructor. It's now trivial and implemented inside...
7423 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
7424 constructor. Add comments to various methods. Remove unused
7426 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
7427 * tree-vrp.c (identify_jump_threads): Likewise.
7428 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
7430 (thread_across_edge): Similarly.
7431 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
7432 arguments in constructor call.
7434 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
7436 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
7437 temp path contains a '-'.
7439 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
7440 Petr Murzin <petr.murzin@intel.com>
7441 Kirill Yukhin <kirill.yukhin@intel.com>
7443 * config/i386/i386-builtin-types.def
7444 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
7445 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
7446 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
7447 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
7448 * config/i386/i386.c
7449 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
7450 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
7451 IX86_BUILTIN_SCATTERALTDIV16SI.
7452 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
7453 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
7454 __builtin_ia32_scatteraltdiv8si.
7455 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
7456 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
7457 IX86_BUILTIN_SCATTERALTDIV16SI.
7458 (ix86_vectorize_builtin_scatter): New.
7459 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
7460 ix86_vectorize_builtin_scatter.
7462 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
7463 Petr Murzin <petr.murzin@intel.com>
7464 Kirill Yukhin <kirill.yukhin@intel.com>
7466 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
7467 * doc/tm.texi: Regenerate.
7468 * target.def: Add scatter builtin.
7469 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
7470 for loads/stores in case of gather/scatter accordingly.
7471 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
7472 STMT_VINFO_GATHER_P(S).
7473 (vect_check_gather): Rename to ...
7474 (vect_check_gather_scatter): this.
7475 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
7476 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
7477 (vect_check_gather_scatter): Use it instead of vect_check_gather.
7478 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
7479 variable and new checkings for it accordingly.
7481 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
7482 STMT_VINFO_GATHER_P(S).
7483 (vect_check_gather_scatter): Use it instead of vect_check_gather.
7484 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
7486 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
7488 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
7490 (mulv16qi3): New define_expand.
7492 2015-09-03 Martin Sebor <msebor@redhat.com>
7495 * doc/extend.texi (Other Builtins): Document when the address
7496 of a built-in function can be taken.
7498 2015-09-03 Richard Biener <rguenther@suse.de>
7500 * dwarf2out.c (flush_limbo_die_list): Split out from ...
7501 (dwarf2out_early_finish): ... here.
7502 (dwarf2out_finish): Do not call dwarf2out_early_finish but
7503 flush_limbo_die_list. Assert we have no deferred asm names.
7505 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7507 * optabs.c (expand_binop): Don't create a broadcast vector with a
7508 source element wider than the inner mode.
7510 2015-09-03 Richard Biener <rguenther@suse.de>
7512 * varasm.c (output_constant): Use fold_convert instead of
7515 2015-09-03 Tom de Vries <tom@codesourcery.com>
7517 PR tree-optimization/65637
7518 * omp-low.c (expand_omp_for_static_chunk): Handle case that
7519 fin_bb has 2 predecessors.
7521 2015-09-03 Tom de Vries <tom@codesourcery.com>
7523 PR tree-optimization/65637
7524 * omp-low.c (find_phi_with_arg_on_edge): New function.
7525 (expand_omp_for_static_chunk): Fix inner loop phi.
7527 2015-09-03 Tom de Vries <tom@codesourcery.com>
7529 PR tree-optimization/65637
7530 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
7533 2015-09-03 Tom de Vries <tom@codesourcery.com>
7535 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
7537 2015-09-03 Tom de Vries <tom@codesourcery.com>
7539 * doc/invoke.texi (parloops-chunk-size): Add item.
7540 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
7541 * tree-parloops.c: Include params.h.
7542 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
7543 param parloops-chunk-size is used.
7545 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7548 * fold-const.c (fold_binary_loc) : Move
7549 Transform (x >> c) << c into x & (-1<<c) or
7550 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
7551 types using simplify and match.
7552 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
7553 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
7555 2015-09-03 Richard Biener <rguenther@suse.de>
7558 * tree-ssa-structalias.c (ctor_for_analysis): New function.
7559 (create_variable_info_for_1): Use ctor_for_analysis instead
7561 (create_variable_info_for): Likewise.
7563 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
7566 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
7567 in new callgraph edge.
7569 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
7574 * config/aarch64/aarch64-simd.md
7575 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
7576 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
7577 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
7578 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
7580 2015-09-02 Alan Modra <amodra@gmail.com>
7582 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
7583 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
7584 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
7586 2015-09-02 Alan Modra <amodra@gmail.com>
7589 * config/rs6000/predicates.md (current_file_function_operand): Don't
7590 return true for weak symbols.
7591 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
7593 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
7594 Andrew Bennett <andrew.bennett@imgtec.com>
7596 * config/mips/mips-opts.h (mips_cb_setting): New enum.
7597 * config/mips/mips-protos.h: Add definitions for
7598 mips_output_jump and mips_output_equal_conditional_branch
7599 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
7601 (mips_emit_compare): Add support for the MIPS R6 conditional
7603 (mips_process_sync_loop): Likewise.
7604 (mips_output_order_conditional_branch): Likewise.
7605 (mips16_build_call_stub): Change MIPS_CALL to
7607 (mips_print_operand_punctuation): Update 's' case to only
7608 apply to micromips r2.
7609 (mips_adjust_insn_length): Add support for forbidden slot
7611 (mips_avoid_hazard): Likewise.
7612 (mips_reorg_process_insns): Likewise.
7613 (mips_output_jump): New function.
7614 (mips_output_equal_conditional_branch): Likewise.
7615 (mips_output_conditional_branch): Use jrc/bc if compact
7616 branch support is enabled. Ensure the forbidden slots
7617 between the two branch instructions is filled with a nop.
7618 (mips_option_override): Add support to process the compact
7619 branch option and set the correct defaults. Prevent
7620 non-explict relocs being using for MIPS R6.
7621 (mips_trampoline_init): Add compact branch support.
7622 (mips_mult_zero_zero_cost): Allow zero initialisation of
7623 accumulators with TARGET_DSP.
7624 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
7625 (TARGET_CB_MAYBE): New define.
7626 (TARGET_CB_ALWAYS): New define.
7627 (ISA_HAS_DELAY_SLOTS): New define.
7628 (ISA_HAS_COMPACT_BRANCHES): New define.
7629 (ISA_HAS_JRC): New define.
7630 (MIPS_BRANCH_C): New define.
7631 (MIPS_CALL): Removed.
7632 (MICROMIPS_J): Removed.
7633 * config/mips/mips.md (compact_form): New attr.
7634 (hazard): Add support for forbidden slots.
7635 (define_delay): Add support for compact branches.
7636 (*branch_order<mode>): Likewise.
7637 (*branch_order<mode>_inverted): Likewise.
7638 (*branch_equality<mode>): Likewise.
7639 (*branch_equality<mode>_inverted): Likewise.
7640 (*jump_absolute): Likewise.
7641 (*jump_pic): Likewise.
7642 (indirect_jump): Use mips_output_jump to produce assembly output.
7643 (tablejump_<mode>"): Likewise.
7644 (*<optab>"): Likewise.
7645 (<optab>_internal): Likewise.
7646 (sibcall_internal): Likewise.
7647 (sibcall_value_internal): Likewise.
7648 (sibcall_value_multiple_internal): Likewise.
7649 (call_internal): Likewise.
7650 (call_split): Likewise.
7651 (call_internal_direct): Likewise.
7652 (call_direct_split): Likewise.
7653 (call_value_internal): Likewise.
7654 (call_value_split): Likewise.
7655 (call_value_internal_direct): Likewise.
7656 (call_value_direct_split): Likewise.
7657 (call_value_multiple_internal): Likewise.
7658 (call_value_multiple_split): Likewise.
7659 (mips_get_fcsr_mips16_<mode>): Likewise.
7660 (mips_set_fcsr_mips16_<mode>): Likewise.
7661 (tls_get_tp_mips16_<mode>): Likewise.
7662 * config/mips/mips.opt: Add -mcompact-branches option.
7663 * config/mips/predicates.md (order_operator): Ensure the
7664 conditional compact branches are only used if the ISA them.
7665 * doc/invoke.texi: Document -mcompact-branches option.
7667 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
7670 * lra-lives.c (process_bb_lives): Process move pseudos with the
7671 same value for copies and preferences
7672 * lra-constraints.c (match_reload): Create match reload pseudo
7673 with the same value from single dying input pseudo.
7675 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
7678 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
7680 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
7682 * trans-mem.c: Add contributed-by.
7683 * trans-mem.h: Same.
7685 2015-09-01 Richard Biener <rguenther@suse.de>
7687 * expr.c (expand_expr_real_1): For expanding TERed defs
7688 set the current location to that of the def if not UNKNOWN.
7690 2015-09-01 David Sherwood <david.sherwood@arm.com>
7692 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
7694 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7696 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
7697 then_cost, else_cost fields. Change branch_cost field to unsigned int.
7698 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
7700 (noce_simple_bbs): New function.
7701 (noce_try_move): Bail if basic blocks are not simple.
7702 (noce_try_store_flag): Likewise.
7703 (noce_try_store_flag_constants): Likewise.
7704 (noce_try_addcc): Likewise.
7705 (noce_try_store_flag_mask): Likewise.
7706 (noce_try_cmove): Likewise.
7707 (noce_try_minmax): Likewise.
7708 (noce_try_abs): Likewise.
7709 (noce_try_sign_mask): Likewise.
7710 (noce_try_bitop): Likewise.
7711 (bbs_ok_for_cmove_arith): New function.
7712 (noce_emit_all_but_last): Likewise.
7713 (noce_emit_insn): Likewise.
7714 (noce_emit_bb): Likewise.
7715 (noce_try_cmove_arith): Handle non-simple basic blocks.
7716 (insn_valid_noce_process_p): New function.
7717 (contains_mem_rtx_p): Likewise.
7718 (bb_valid_for_noce_process_p): Likewise.
7719 (noce_process_if_block): Allow non-simple basic blocks
7722 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
7724 * tree-ssa-dom.c (record_equivalences_from_phis,
7725 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
7726 (lookup_avail_expr): Likewise, and remove comment and unused temp.
7728 2015-09-01 Nick Clifton <nickc@redhat.com>
7730 * config/msp430/msp430.opt (mcpu): Fix typo.
7732 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7734 * config/aarch64/aarch64.c (aarch64_set_current_function):
7735 Re-layout any vector parameters have non-simd layout.
7736 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
7738 (aarch64_simd_expand_args): Delete call to the above.
7740 2015-08-31 Mike Frysinger <vapier@gentoo.org>
7742 * doc/invoke.texi (asan-stack): Add space before option.
7744 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
7746 * tree.h (zerop): New function.
7747 * tree.c (zerop): Likewise.
7748 (element_precision): Handle expressions.
7749 * match.pd (define_predicates): Add zerop.
7750 (x <= +Inf): Fix comment.
7751 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
7752 * fold-const.c (fold_binary_loc): ... here. Remove.
7754 2015-08-31 Richard Biener <rguenther@suse.de>
7757 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
7759 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
7761 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
7762 (CEXPI): New operator list.
7763 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
7764 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
7766 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
7768 2015-08-31 Tom de Vries <tom@codesourcery.com>
7770 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
7771 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
7773 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
7774 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
7775 (rewrite_into_loop_closed_ssa): ... here.
7776 (replace_uses_in_dominated_bbs): Remove function.
7777 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
7778 rewrite_into_loop_closed_ssa_1.
7780 2015-08-31 Michael Matz <matz@suse.de>
7782 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
7783 enter entry and exit blocks for reverse post order.
7785 2015-08-31 Richard Biener <rguenther@suse.de>
7787 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
7788 (lto_location_cache::current_sysp): Likewise.
7789 (output_block::current_sysp): Likewise.
7790 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
7791 (lto_location_cache::apply_location_cache): Properly record
7792 system header locations.
7793 (lto_location_cache::input_location): Input whether a file
7795 * lto-streamer-out.c (lto_output_location): Stream whether a file
7798 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7801 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
7803 2015-08-31 Tom de Vries <tom@codesourcery.com>
7805 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
7806 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
7807 Improve function header comments.
7809 2015-08-30 Michael Collison <michael.collison@linaro.org>
7812 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
7815 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7817 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
7818 special_handling bitfield.
7819 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
7820 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
7821 that represents a general xxpermdi.
7822 (insn_is_swappable_p): Add handling for vec_concat of two
7823 doublewords, which maps to a specific xxpermdi.
7824 (adjust_xxpermdi): New function.
7825 (adjust_concat): Likewise.
7826 (handle_special_swappables): Call adjust_xxpermdi and
7828 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
7830 2015-08-30 Rich Felker <dalias@libc.org>
7832 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
7833 case instead of sh[123456ble]-*-*.
7835 2015-08-29 Anatoly Sokolov <aesok@post.ru>
7837 * ira.c (print_unform_and_important_classes,
7838 print_translated_classes): Remove reg_class_names static array.
7839 (print_unform_and_important_classes): Rename to ...
7840 (print_uniform_and_important_classes): ... this.
7841 (ira_debug_allocno_classes): Update accordingly.
7843 2015-08-29 Tom de Vries <tom@codesourcery.com>
7845 PR tree-optimization/46193
7846 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
7849 2015-08-28 Jeff Law <law@redhat.com>
7852 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7853 unable to find X NE 0 in the tables, return X as the simplified
7855 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7856 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
7858 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7859 after removing the control flow statement and unnecessary edges.
7861 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
7864 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
7866 PR tree-optimization/67283
7867 * tree-sra.c (type_consists_of_records_p): Rename to...
7868 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7870 (completely_scalarize_record): Rename to...
7871 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
7873 (scalarize_elem): New.
7875 2015-08-28 Jiong Wang <jiong.wang@arm.com>
7877 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
7878 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
7879 (aarch64_symbol_type): Likewise.
7880 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7882 (aarch64_expand_mov_immediate): Likewise.
7883 (aarch64_print_operand): Likewise.
7884 (aarch64_classify_tls_symbol): Likewise.
7886 2015-08-28 Richard Biener <rguenther@suse.de>
7888 * cgraphunit.c (symbol_table::compile): Move early debug generation
7890 (symbol_table::finalize_compilation_unit): ... back here and
7891 add a !seen_error () guard.
7893 2015-08-27 Sebastian Pop <s.pop@samsung.com>
7895 * toplev.c (process_options): Do not use flag_loop_block,
7896 flag_loop_interchange, and flag_loop_strip_mine. Add check for
7897 flag_loop_optimize_isl.
7899 2015-08-27 Sebastian Pop <s.pop@samsung.com>
7901 * Makefile.in (OBJS): Remove graphite-blocking.o and
7902 graphite-interchange.o.
7903 * common.opt (floop-strip-mine, floop-interchange, floop-block):
7904 Alias of floop-nest-optimize.
7905 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
7906 Document as alias of -floop-nest-optimize.
7907 * graphite-blocking.c: Remove.
7908 * graphite-interchange.c: Remove.
7909 * graphite-optimize-isl.c: Include dumpfile.h.
7910 (getScheduleForBand): Add dump for tiled loops. Use
7911 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
7912 * graphite-poly.c (scop_max_loop_depth): Remove.
7913 (print_scattering_function_1): Remove.
7914 (print_scattering_function): Remove.
7915 (print_scattering_functions): Remove.
7916 (debug_scattering_function): Remove.
7917 (debug_scattering_functions): Remove.
7918 (apply_poly_transforms): Remove use of flag_loop_block,
7919 flag_loop_strip_mine, and flag_loop_interchange.
7920 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
7922 (print_pdr_access_layout): Remove.
7923 (print_pdr): Print ISL representation.
7924 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
7925 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
7927 (openscop_print_pbb_domain): Remove.
7928 (print_pbb): Remove call to print_scattering_function.
7929 (openscop_print_scop_context): Remove.
7930 (print_scop_context): Do not print matrices anymore.
7931 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
7932 SCOP_TRANSFORMED_SCHEDULE.
7933 (print_isl_set): Add printing of a new line.
7934 (print_isl_map): Same.
7935 (print_isl_aff): Same.
7936 (print_isl_constraint): Same.
7937 (loop_to_lst): Remove.
7938 (scop_to_lst): Remove.
7939 (lst_indent_to): Remove.
7940 (print_lst): Remove.
7941 (debug_lst): Remove.
7942 (dot_lst_1): Remove.
7944 (reverse_loop_at_level): Remove.
7945 (reverse_loop_for_pbbs): Remove.
7946 * graphite-poly.h (pdr_dim_iter_domain): Remove.
7947 (pdr_nb_params): Remove.
7948 (pdr_alias_set_dim): Remove.
7949 (pdr_subscript_dim): Remove.
7950 (pdr_iterator_dim): Remove.
7951 (pdr_parameter_dim): Remove.
7952 (same_pdr_p): Remove.
7953 (struct poly_scattering): Remove.
7954 (struct poly_bb): Remove _original, _transformed, _saved.
7955 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
7956 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
7957 (PBB_NB_LOCAL_VARIABLES): Remove.
7958 (PBB_NB_SCATTERING_TRANSFORM): Remove.
7959 (schedule_to_scattering): Remove.
7960 (number_of_write_pdrs): Remove.
7961 (pbb_dim_iter_domain): Remove.
7962 (pbb_nb_params): Remove.
7963 (pbb_nb_scattering_orig): Remove.
7964 (pbb_nb_scattering_transform): Remove.
7965 (pbb_nb_dynamic_scattering_transform): Remove.
7966 (pbb_nb_local_vars): Remove.
7967 (pbb_iterator_dim): Remove.
7968 (pbb_parameter_dim): Remove.
7969 (psco_scattering_dim): Remove.
7970 (psct_scattering_dim): Remove.
7971 (psct_local_var_dim): Remove.
7972 (psco_iterator_dim): Remove.
7973 (psct_iterator_dim): Remove.
7974 (psco_parameter_dim): Remove.
7975 (psct_parameter_dim): Remove.
7976 (psct_dynamic_dim): Remove.
7977 (psct_static_dim): Remove.
7978 (psct_add_local_variable): Remove.
7979 (new_lst_loop): Remove.
7980 (new_lst_stmt): Remove.
7983 (lst_add_loop_under_loop): Remove.
7984 (lst_depth): Remove.
7985 (lst_dewey_number): Remove.
7986 (lst_dewey_number_at_depth): Remove.
7989 (lst_find_pbb): Remove.
7990 (find_lst_loop): Remove.
7991 (lst_find_first_pbb): Remove.
7992 (lst_empty_p): Remove.
7993 (lst_find_last_pbb): Remove.
7994 (lst_contains_p): Remove.
7995 (lst_contains_pbb): Remove.
7996 (lst_create_nest): Remove.
7997 (lst_remove_from_sequence): Remove.
7998 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
7999 (lst_niter_for_loop): Remove.
8000 (pbb_update_scattering): Remove.
8001 (lst_update_scattering_under): Remove.
8002 (lst_update_scattering): Remove.
8003 (lst_insert_in_sequence): Remove.
8004 (lst_replace): Remove.
8005 (lst_substitute_3): Remove.
8006 (lst_distribute_lst): Remove.
8007 (lst_remove_all_before_including_pbb): Remove.
8008 (lst_remove_all_before_excluding_pbb): Remove.
8009 (struct scop): Remove original_schedule, transformed_schedule, and
8011 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
8012 (SCOP_SAVED_SCHEDULE): Remove.
8013 (poly_scattering_new): Remove.
8014 (poly_scattering_free): Remove.
8015 (poly_scattering_copy): Remove.
8016 (store_scattering_pbb): Remove.
8017 (store_lst_schedule): Remove.
8018 (restore_lst_schedule): Remove.
8019 (store_scattering): Remove.
8020 (restore_scattering_pbb): Remove.
8021 (restore_scattering): Remove.
8022 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
8023 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
8024 compute the scattering polyhedron dimension from the dimension of
8026 (build_scop_scattering): Update call to
8027 build_pbb_scattering_polyhedrons.
8028 (build_poly_scop): Remove call to scop_to_lst.
8029 * graphite.c (graphite_transform_loops): Add call to print_scop.
8030 (gate_graphite_transforms): Remove use of flag_loop_block,
8031 flag_loop_interchange, and flag_loop_strip_mine.
8033 2015-08-27 Sebastian Pop <s.pop@samsung.com>
8035 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
8036 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
8037 -floop-nest-optimize.
8038 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
8039 (generate_luj_sepclass): Remove.
8040 (generate_luj_options): Remove.
8041 (set_options): Remove opt_luj.
8042 (scop_to_isl_ast): Remove opt_luj.
8043 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
8044 flag_loop_unroll_jam.
8045 (getPrevectorMap_full): Remove.
8046 (getScheduleForBandList): Remove map_sepcl.
8047 (getScheduleMap): Same.
8048 (apply_schedule_map_to_scop): Remove sepcl.
8049 (optimize_isl): Same.
8050 * graphite-poly.c (apply_poly_transforms): Remove check for
8051 flag_loop_unroll_jam.
8052 (new_poly_bb): Remove map_sepclass.
8053 * graphite-poly.h (struct poly_bb): Same.
8054 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
8055 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
8056 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
8057 * toplev.c (process_options): Remove flag_loop_unroll_jam.
8059 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
8062 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
8064 (UNSPEC_ADD_CARRY): Remove.
8065 (addqi3_cconly_overflow): New expander.
8066 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
8067 Adjust for changed add<mode>3_carry.
8068 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
8069 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
8070 (<plusminus_insn><mode>3_carry): Remove expander.
8071 (*<plusminus_insn><mode>3_carry): Split insn pattern to
8072 add<mode>3_carry and sub<mode>3_carry.
8073 (plusminus_carry_mnemonic): Remove code attribute.
8074 (add<mode>3_carry): Canonicalize insn pattern.
8075 (*addsi3_carry_zext): Ditto.
8076 (sub<mode>3_carry): Ditto.
8077 (*subsi3_carry_zext): Ditto.
8078 (adcx<mode>3): Remove insn pattern.
8079 (addcarry<mode>): New insn pattern.
8080 (subborrow<mode>): Ditto.
8081 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
8082 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
8083 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
8084 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
8085 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
8086 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
8087 Rewrite expander to not clobber carry flag chains.
8089 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
8091 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
8092 instead of a rotate.
8094 2015-08-27 Marek Polacek <polacek@redhat.com>
8097 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
8098 an entry into an irreducible region.
8100 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8102 * configure: Regenerate.
8104 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
8106 PR tree-optimization/67283
8107 * tree-sra.c (type_consists_of_records_p): Rename to...
8108 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
8110 (completely_scalarize_record): Rename to...
8111 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
8112 (scalarize_elem): New.
8114 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
8116 * tree-sra.c (completely_scalarize_var): Rename to...
8117 (create_total_scalarization_access): ... Here. Drop call to
8118 completely_scalarize_record.
8120 (analyze_all_variable_accesses): Replace completely_scalarize_var
8121 with create_total_scalarization_access and completely_scalarize_record.
8123 2015-08-27 Alan Modra <amodra@gmail.com>
8126 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
8129 2015-08-27 Richard Biener <rguenther@suse.de>
8131 * passes.c (rest_of_decl_compilation): Guard early_global_decl
8132 call with !seen_error ().
8133 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
8134 early debug generation and finish...
8135 (symbol_table::compile): ... here to put it after a !seen_error ()
8138 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8140 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
8143 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8144 Andre Vieira <andre.simoesdiasvieira@arm.com>
8146 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
8147 (*cb<optab><mode>1): Likewise.
8148 (*tb<optab><mode>1): Likewise.
8149 (*cb<optab><mode>1): Likewise.
8150 * config/aarch64/iterators.md (inv_cb): New code attribute.
8152 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
8153 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
8155 2015-08-27 Richard Biener <rguenther@suse.de>
8157 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
8159 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
8161 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
8164 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8166 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
8169 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
8171 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
8172 floating point in VSX registers.
8173 (rs6000_output_move_128bit): Always print out the set insn if we
8174 can't generate an appropriate 128-bit move.
8175 (rs6000_generate_compare): Add support for IEEE 128-bit floating
8176 point in VSX registers comparisons.
8177 (rs6000_expand_float128_convert): Likewise.
8179 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
8180 predicate for only GPR hard registers.
8182 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
8183 modes to iterators. Add new iterators for moving 128-bit values in
8184 scalar FPR registers and VSX registers.
8185 (FMOVE128): Likewise.
8186 (FMOVE128_FPR): Likewise.
8187 (FMOVE128_GPR): Likewise.
8188 (FMOVE128_VSX): Likewise.
8189 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
8194 (RELOAD): Add IEEE 128-bit floating point modes.
8195 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
8196 floating point in VSX registers modes.
8197 (signbit<mode>2, IBM128 iterator): Likewise.
8198 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
8199 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
8201 (neg<mode>2, TFIFKF iterator): Likewise.
8202 (negtf2_internal): Likewise.
8204 (abs<mode>2, TFIFKF iterator): Likewise.
8205 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
8206 VSX insn support for negate, absolute value, and negative absolute
8208 (ieee_128bit_vsx_neg<mode>2): Likewise.
8209 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
8210 (ieee_128bit_vsx_abs<mode>2): Likewise.
8211 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
8212 (ieee_128bit_vsx_nabs<mode>2): Likewise.
8213 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
8214 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
8215 floating point in VSX registers.
8216 (unpack<mode>_dm): Likewise.
8217 (unpack<mode>_nodm): Likewise.
8218 (pack<mode>): Likewise.
8219 (unpackv1ti): Likewise.
8220 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
8221 (packv1ti): Likewise.
8222 (pack<mode>, FMOVE128_VSX iterator): Likewise.
8223 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
8225 (extenddftf2_internal): Likewise.
8226 (trunctfdf2): Likewise.
8227 (trunctfdf2_internal2): Likewise.
8228 (fix_trunc_helper): Likewise.
8229 (fix_trunctfdi2"): Likewise.
8230 (floatditf2): Likewise.
8231 (floatuns<mode>tf2): Likewise.
8232 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
8233 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
8234 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
8235 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
8236 (float<SDI:mode><IFKF:mode>2): Likewise.
8237 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
8239 2015-08-26 Renlin Li <renlin.li@arm.com>
8241 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
8243 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
8244 Jiong Wang <jiong.wang@arm.com>
8246 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
8247 (tlsie_tiny_<mode>): New define_insn.
8248 (tlsie_tiny_sidi): Likewise.
8249 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
8251 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
8252 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
8254 (aarch64_expand_mov_immediate): Likewise.
8255 (aarch64_print_operand): Likewise.
8256 (arch64_classify_tls_symbol): Likewise.
8258 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8260 * config/arm/arm-arches.def: Replace single value flags with
8261 an initializer built from ARM_FSET_MAKE_CPU1.
8262 * config/arm/arm-cores.def: Likewise.
8263 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
8264 derivation from the ARM_CORE macro definition, use the given value
8266 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
8267 ARM_ARCH macro definition, use the given value instead.
8269 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8271 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
8273 (struct builtin_description): Replace field mask with field
8275 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
8276 (IWMMXT2_BUILTIN): Likewise.
8277 (IWMMXT2_BUILTIN2): Likewise.
8278 (FP_BUILTIN): Likewise.
8279 (CRC32_BUILTIN): Likewise.
8280 (CRYPTO_BUILTIN): Likewise.
8281 (iwmmx_mbuiltin): Likewise.
8282 (iwmmx2_mbuiltin): Likewise.
8283 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
8284 struct builtin_description.
8286 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8288 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
8289 (struct builtin_description): Change type of mask to unsigned
8291 * config/arm/arm-protos.h (insn_flags): Declare as type
8293 (tune_flags): Likewise.
8294 * config/arm/arm.c (feature_count): New.
8295 (insn_flags): Define as type arm_feature_set.
8296 (tune_flags): Likewise.
8297 (struct processors): Define field flags as type arm_feature_set.
8298 (all_cores): Update for change to struct processors.
8299 (all_architectures): Likewise.
8300 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
8302 (arm_option_override_internal): Likewise.
8303 (arm_option_override): Likewise.
8305 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
8306 Jiong Wang <jiong.wang@arm.com>
8308 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
8309 tls size for tiny, small, large memory model.
8310 (aarch64_load_symref_appropriately): Support new symbol types.
8311 (aarch64_expand_mov_immediate): Likewise.
8312 (aarch64_print_operand): Likewise.
8313 (aarch64_classify_tls_symbol): Likewise.
8314 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
8315 (aarch64_symbol_type): Likewise.
8316 * config/aarch64/aarch64.md (tlsle): Deleted.
8317 (tlsle12_<mode>): New define_insn.
8318 (tlsle24_<mode>): Likewise.
8319 (tlsle32_<mode>): Likewise.
8320 (tlsle48_<mode>): Likewise.
8321 * doc/sourcebuild.texi (AArch64-specific attributes): Document
8324 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8326 * config/arm/arm-protos.h (FL_NONE): New.
8328 (arm_feature_set): New.
8329 (ARM_FSET_MAKE): New.
8330 (ARM_FSET_MAKE_CPU1): New.
8331 (ARM_FSET_MAKE_CPU2): New.
8332 (ARM_FSET_CPU1): New.
8333 (ARM_FSET_CPU2): New.
8334 (ARM_FSET_EMPTY): New.
8335 (ARM_FSET_ANY): New.
8336 (ARM_FSET_HAS_CPU1): New.
8337 (ARM_FSET_HAS_CPU2): New.
8338 (ARM_FSET_HAS_CPU): New.
8339 (ARM_FSET_ADD_CPU1): New.
8340 (ARM_FSET_ADD_CPU2): New.
8341 (ARM_FSET_DEL_CPU1): New.
8342 (ARM_FSET_DEL_CPU2): New.
8343 (ARM_FSET_UNION): New.
8344 (ARM_FSET_INTER): New.
8345 (ARM_FSET_XOR): New.
8346 (ARM_FSET_EXCLUDE): New.
8347 (AFM_FSET_IS_EMPTY): New.
8348 (ARM_FSET_CPU_SUBSET): New.
8350 2015-08-26 Jiong Wang <jiong.wang@arm.com>
8352 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
8353 SYMBOL_TLSLE to SYMBOL_TLSLE24.
8354 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8356 (aarch64_expand_mov_immediate): Likewise.
8357 (aarch64_print_operand): Likewise.
8358 (aarch64_classify_symbol): Likewise.
8360 2015-08-26 Jiong Wang <jiong.wang@arm.com>
8362 * config/aarch64/aarch64.opt (mtls-size): New entry.
8363 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
8364 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
8365 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
8367 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8369 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
8370 ARM_CORE entry. Fix some white-space.
8371 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
8372 ARM_CORE definition.
8374 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8376 * fold-const.c (fold_binary_loc) : Move Optimize
8377 root(x)*root(y) as root(x*y) to match.pd.
8378 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
8379 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
8380 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
8381 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
8382 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
8383 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
8384 (mult (exps:s @0) (exps:s @1)) : New simplifier.
8385 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
8386 (rdiv @0 (exps:s @1)) : New simplifier.
8388 2015-08-25 Joseph Myers <joseph@codesourcery.com>
8390 * gcc.c (driver::finalize): Only assign to extra_specs if
8393 2015-08-25 Marek Polacek <polacek@redhat.com>
8396 * varasm.c (declare_weak): Return after giving an error.
8398 2015-08-25 David Malcolm <dmalcolm@redhat.com>
8400 * gcc-main.c (main): Add params to driver ctor.
8401 * gcc.c (class env_manager): New.
8403 (env_manager::init): New.
8404 (env_manager::get): New.
8405 (env_manager::xput): New.
8406 (env_manager::restore): New.
8407 Poison getenv and putenv.
8408 (DEFAULT_TARGET_SYSTEM_ROOT): New.
8409 (target_system_root): Update initialization to use
8410 DEFAULT_TARGET_SYSTEM_ROOT.
8411 (struct spec_list): Add field "default_ptr".
8412 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
8413 (init_spec): Likewise.
8414 (set_spec): Clear field "default_ptr".
8415 (read_specs): Free "spec" and "buffer".
8416 (xputenv): Reimplement in terms of env_manager.
8417 (process_command): Replace ::getenv calls with calls to the
8418 env_manager singleton.
8419 (process_brace_body): Free string in three places.
8420 (driver::driver): New.
8421 (driver::~driver): New.
8422 (used_arg): Convert from a function to...
8423 (class used_arg_t): ...this class, and...
8424 (used_arg): ...this new global instance.
8425 (used_arg_t::finalize): New function.
8426 (getenv_spec_function): Add "const" to local "value". Replace
8427 ::getenv call with call to the env_manager singleton.
8428 (path_prefix_reset): New function.
8429 (driver::finalize): New function.
8430 * gcc.h (driver::driver): New.
8431 (driver::~driver): New.
8432 (driver::finalize): New.
8434 2015-08-25 Nathan Sidwell <nathan@acm.org>
8436 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
8437 target doesn't have one.
8439 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
8442 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
8444 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
8447 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
8448 a define_insn, remove second alternative.
8450 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
8451 Joseph Myers <joseph@codesourcery.com>
8453 * gcc.c (struct switchstr): Expand comment.
8455 2015-08-25 Nathan Sidwell <nathan@acm.org>
8457 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
8458 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
8460 2015-08-25 Richard Biener <rguenther@suse.de>
8463 * genmatch.c (expr::gen_transform): Verify the result of
8464 builtin_decl_implicit.
8465 (dt_simplify::gen_1): Likewise.
8467 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
8469 * config/arm/constraints.md: Also list Cs and US ARM-specific
8470 constraints as used.
8472 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
8475 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
8477 (nonpic_symbol_mentioned_p): Likewise.
8478 (sh_delegitimize_address): Likewise.
8479 (sh_function_ok_for_sibcall): Take into account weak symbols.
8480 (sh_expand_sym_label2reg): New.
8481 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
8482 * config/sh/sh.md (UNSPEC_PCREL): New enum.
8483 (call_pcrel): Use sh_expand_sym_label2reg.
8484 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
8485 (symPCREL_label2reg) New expand.
8487 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
8489 * graphite-poly.c: Change type of region from void* to sese.
8490 * graphite-poly.h (struct scop): Changing the type of scop::region
8491 from void* to sese. Change accessor macro accordingly.
8492 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
8494 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
8496 * graphite-scop-detection.c (stmt_simple_for_scop_p):
8497 Constrain only on INTEGER_TYPE.
8499 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
8502 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
8503 -mefficient-unaligned-vsx on ISA 2.7.
8505 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
8506 option to a masked option.
8508 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
8509 logic for -mefficient-unaligned-vsx so that it is set via an arch
8510 ISA option, instead of being set if -mtune=power8 is set. Move
8511 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
8512 near other default option handling.
8514 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8516 * genflags.c (gen_macro): Delete.
8517 (gen_proto): Don't create GEN.*CALL.* macros.
8518 * gensupport.h (get_file_location): Declare.
8519 * gensupport.c (rtx_locs): New variable.
8520 (read_md_rtx): Record rtx locations.
8521 (get_file_location): New function.
8522 * target-insns.def (call, call_pop, call_value, call_value_pop)
8523 (sibcall, sibcall_value): New patterns.
8524 * gentarget-def.c (parse_argument): New function.
8525 (def_target_insn): Use it. Handle optional operands. Raise an
8526 error if an .md pattern has the wrong number of operands for the
8527 pattern name. Remove the names of unused operands from the prototype.
8528 * builtins.c (expand_builtin_apply): Use targetm functions
8529 instead of HAVE_call_value and GEN_CALL_VALUE.
8530 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
8531 and sibcall_value_pop.
8532 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
8534 * config/alpha/alpha.md (untyped_call): Likewise.
8535 * config/iq2000/iq2000.md (untyped_call): Likewise.
8536 * config/m68k/m68k.md (untyped_call): Likewise.
8537 * config/mips/mips.md (untyped_call): Likewise.
8538 * config/pa/pa.md (untyped_call): Likewise.
8539 * config/rs6000/rs6000.md (untyped_call): Likewise.
8540 * config/sparc/sparc.md (untyped_call): Likewise.
8541 * config/tilegx/tilegx.md (untyped_call): Likewise.
8542 * config/tilepro/tilepro.md (untyped_call): Likewise.
8543 * config/visium/visium.md (untyped_call): Likewise.
8544 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
8545 gen_call_value instead of GEN_CALL_VALUE.
8546 * config/arm/arm.md (untyped_call): Likewise.
8547 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
8550 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8552 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
8553 (have_cbranchcc4): New variable.
8554 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
8555 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
8556 (if_convert): Initialize have_cbranchcc4.
8558 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8560 * builtins.c (expand_cmpstrn): Rename to...
8561 (expand_cmpstrn_or_cmpmem): ...this.
8562 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
8563 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
8564 Remove mode argument.
8565 (expand_builtin): Update accordingly.
8567 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8569 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
8570 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
8571 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
8572 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
8573 Add predicates for operands 0 and 3.
8574 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
8576 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
8577 immediate_operand to nonmemory_operand.
8579 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8581 * df-scan.c (df_insn_info_init_fields): New function, split out
8583 (df_insn_create_insn_record): ...here.
8584 (df_insn_info_free_fields): New function, split out from...
8585 (df_insn_info_delete): ...here.
8586 (df_insn_rescan): Use the new functions instead of freeing and
8587 reallocating the df_insn_info.
8589 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8591 * doc/install.texi (Binaries): Remove links no longer valid.
8593 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
8595 * config/nvptx/mkoffload.c (process): Replace
8596 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
8598 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
8601 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
8603 2015-08-24 Renlin Li <renlin.li@arm.com>
8605 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
8606 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
8607 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
8608 * config/arm/constraints.md ("j"): Add check for high code.
8610 2015-08-24 Tom de Vries <tom@codesourcery.com>
8612 PR tree-optimization/65468
8613 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
8616 2015-08-24 Nathan Sidwell <nathan@acm.org>
8618 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
8619 change to nvptx_type_from_mode call. Use arg_promotion for both
8620 split and non-split args.
8622 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8624 * target-insns.def (movstr): New pattern.
8625 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
8626 (expand_movstr): Use targetm rather than HAVE_movstr/
8629 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8631 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
8634 2015-08-24 Andrew Pinski <apinski@cavium.com>
8636 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
8637 AARCH64_EXTRA_TUNING_OPTION.
8638 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
8640 (aarch64_extra_tuning_flags): Base the shifted value on the index
8641 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
8642 * config/aarch64/aarch64.c: Remove the last argument to
8643 AARCH64_EXTRA_TUNING_OPTION.
8645 2015-08-23 Nathan Sidwell <nathan@acm.org>
8647 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
8649 (nvptx_declare_function_name): Insert formatting tabs for
8652 2015-08-23 Tom de Vries <tom@codesourcery.com>
8654 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
8655 parm_decl, rather than generating a dummy default def in cfun.
8656 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
8657 ssa_name from cfun and child_fn do not share a stmt as def stmt.
8658 (move_stmt_op): Handle PARM_DECl.
8659 (gather_ssa_name_hash_map_from): New function.
8660 (move_sese_region_to_fn): Add default defs for function params, and add
8661 them to vars_map. Release copied ssa names.
8662 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
8664 2015-08-23 Tom de Vries <tom@codesourcery.com>
8666 * doc/sourcebuild.texi: Rename vect_no_int_max with
8667 vect_no_int_min_max. Update description.
8669 2015-08-22 Andrew Pinski <apinski@cavium.com>
8671 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
8672 * config/aarch64/aarch64-protos.h
8673 (aarch64_fusion_pairs_index): New enum.
8674 (aarch64_fusion_pairs): Base the shifted value on the index instead
8675 Rewrite AARCH64_FUSE_ALL to be based on the end index.
8676 of the argument to AARCH64_FUSION_PAIR.
8677 * config/aarch64/aarch64.c: Remove the last argument to
8678 AARCH64_FUSION_PAIR.
8680 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
8682 * dominance.c (new_zero_array): Define.
8683 (dom_info): Redefine as class with proper encapsulation.
8684 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
8686 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
8687 allocations/deallocations. Pass function as parameter (instead of
8689 (dom_info::get_idom): Define accessor method.
8690 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
8691 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
8692 (calculate_dominance_info): Adjust to use dom_info class.
8693 (verify_dominators): Likewise.
8695 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
8697 * print-rtl.c (print_rtx): Check the correct range for
8698 flag_dump_unnumbered_links to behave as documented.
8700 PR rtl-optimization/67227
8701 PR rtl-optimization/64164
8702 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
8703 (nonoverlapping_memrefs_p): Test offsets and sizes when given
8704 identical gimple_reg exprs.
8706 2015-08-21 Nathan Sidwell <nathan@acm.org>
8708 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
8710 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
8711 crtl->stack_alignment_needed to determine alignment.
8712 (nvptx_get_drap_rtx): New.
8713 (TARGET_GET_DRAP_RTX): Override.
8714 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
8716 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8718 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
8720 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8722 * configure.ac: Remove uwin* cases.
8723 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
8724 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
8725 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
8726 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
8727 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
8728 i[34567]86-*-uwin*, powerpc-*-beos*.
8730 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
8732 * gencodes.c (gencodes): Print the comma for the preceding
8733 enum value rather than the current one. Use aliased enum values
8734 rather than #defines for compiled-out patterns.
8735 (main): Update accordingly. Replace LAST_INSN_CODE with
8737 * lra.c (insn_code_data): Update accordingly.
8738 (finish_insn_code_data_once, get_static_insn_data): Likewise.
8739 * recog.h (target_recog): Likewise.
8740 (preprocess_insn_constraints): Change parameter to unsigned int.
8741 * recog.c (preprocess_insn_constraints): Likewise.
8742 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
8743 * tree-vect-stmts.c (vectorizable_operation): Simplify.
8745 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
8747 PR rtl-optimization/61657
8748 * loop-iv.c (iv_number_of_iterations): Declare up and down as
8749 unsigned. Remove superflous uint64_t cast.
8751 2014-08-21 Felix Yang <felix.yang@huawei.com>
8752 Jiji Jiang <jiangjiji@huawei.com>
8754 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
8755 argument and get builtin function code directly from CALL.
8756 (gimple_stringop_fixed_value): Modified accordingly.
8757 (gimple_stringops_transform, gimple_stringops_values_to_profile):
8758 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
8760 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
8762 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
8764 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8766 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
8768 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
8769 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
8770 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
8771 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
8772 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
8773 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
8774 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
8775 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
8776 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
8777 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
8779 * match.pd (SIN ) : New Operator.
8780 (TAN) : New Operator.
8781 (mult (SQRT@1 @0) @1) : New simplifier.
8782 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
8783 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
8784 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
8785 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
8786 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
8787 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
8788 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
8789 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
8790 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
8791 (rdiv @0 (POW:s @1 @2)) : New simplifier.
8793 2015-08-21 Bin Cheng <bin.cheng@arm.com>
8795 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
8796 loop if EXPR is simplified to const value.
8798 2015-08-21 Yury Gribov <y.gribov@samsung.com>
8800 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
8801 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
8803 2015-08-21 Richard Biener <rguenther@suse.de>
8806 * gimple-fold.c (replace_stmt_with_simplification): Assert
8807 seq is empty when replacing a call with itself but different
8809 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
8810 a call require that it is const.
8812 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8814 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
8815 * builtins.c (get_object_alignment_2): Adjust.
8816 * varasm.c (align_variable): Likewise.
8817 (get_variable_align): Likewise.
8818 (build_constant_desc): Likewise.
8819 (force_const_mem): Likewise.
8820 * doc/tm.texi.in: Likewise.
8821 * doc/tm.texi: Regenerate.
8823 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8825 * genconfig.c (main): Always define HAVE_cc0.
8826 * recog.c (rest_of_handle_peephole2): Adjust.
8828 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8830 * reorg.c (relax_delay_slots): Don't use #if to check value of
8833 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8835 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
8836 * targhooks.c (default_have_conditional_execution): Adjust.
8838 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
8840 * rtl.h (rtvec_all_equal_p): Declare.
8841 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
8842 * rtl.c (rtvec_all_equal_p): New function.
8843 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
8844 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
8845 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
8846 * config/arm/arm.c (neon_vdup_constant): Likewise.
8847 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
8848 * config/tilegx/constraints.md (W, Y): Likewise.
8849 * config/tilepro/constraints.md (W, Y): Likewise.
8850 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
8851 (classify_immediate): Use unwrap_const_vec_duplicate.
8852 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
8853 (reg_or_v2s8bit_operand): Likewise.
8854 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
8855 (reg_or_v4s8bit_operand): Likewise.
8857 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8859 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
8860 (vec_shasigma_be): New #define.
8861 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
8862 (VPMSUMH): Likewise.
8863 (VPMSUMW): Likewise.
8864 (VPMSUMD): Likewise.
8865 (VPMSUM): New BU_P8V_OVERLOAD_2.
8866 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
8867 entries for VEC_MADD and VEC_VPMSUM.
8869 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
8871 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
8872 Multiply argument avr_n_flash by 64 to match unit of "KiB".
8873 (avr_pgm_check_var_decl): Same.
8875 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
8877 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
8878 initialization of HFmode scalar type (float16_t) to...
8879 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
8882 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
8884 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
8885 having an -mfp16-format.
8887 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
8889 * config/i386/predicates.md (vector_all_ones_operand): Use
8890 CONSTM1_RTX to simplify definition.
8892 2015-08-20 Richard Biener <rguenther@suse.de>
8894 * toplev.c (compile_file): Remove loop calling late_global_decl
8896 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
8897 on decls we assembled.
8899 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
8901 * common/config/aarch64/aarch64-common.c
8902 (AARCH64_CPU_NAME_LENGTH): Delete.
8903 (aarch64_option_extension): New.
8904 (all_extensions): Likewise.
8905 (processor_name_to_arch): Likewise.
8906 (arch_to_arch_name): Likewise.
8908 (all_architectures): Likewise.
8909 (aarch64_get_extension_string_for_isa_flags): Likewise.
8910 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
8912 * config/aarch64/aarch64-protos.h
8913 (aarch64_get_extension_string_for_isa_flags): New.
8914 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
8915 (aarch64_option_print): Get the string to print from
8916 aarch64_get_extension_string_for_isa_flags.
8917 (aarch64_declare_function_name): Likewise.
8918 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
8919 (MCPU_TO_MARCH_SPEC): This.
8920 (ASM_CPU_SPEC): Use it.
8921 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
8922 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
8923 (EXTRA_SPEC_FUNCTIONS): Use it.
8925 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
8927 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
8928 expansion when !ISA_HAS_LWL_LWR.
8929 (mips_block_move_straight): Update the size of elements copied to
8930 account for alignment when !ISA_HAS_LWL_LWR.
8931 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
8933 2015-08-19 Jiong Wang <jiong.wang@arm.com>
8935 * expr.c (expand_expr_real_2): Check gimple statement during
8938 2015-08-19 Magnus Granberg <zorry@gentoo.org>
8940 * common.opt (fstack-protector): Initialize to -1.
8941 (fstack-protector-all): Likewise.
8942 (fstack-protector-strong): Likewise.
8943 (fstack-protector-explicit): Likewise.
8944 * configure.ac: Add --enable-default-ssp.
8945 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
8946 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
8948 * doc/install.texi: Document --enable-default-ssp.
8949 * config.in: Regenerated.
8950 * configure: Likewise.
8952 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
8954 PR rtl-optimization/64164
8955 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
8956 (parm_in_stack_slot_p): ... this. Disregard mode, what
8957 matters is whether the parm will live in a pseudo or a stack
8959 (expand_one_ssa_partition): Deal with params without a default
8960 def. Disregard mode.
8961 * cfgexpand.h: Renamed function declaration.
8962 * tree-ssa-coalesce.c: Adjust.
8963 * function.c (split_complex_args): Allocate stack slot for
8964 unassigned parms before splitting.
8965 (parm_in_unassigned_mem_p): New. Use it instead of
8966 parm_maybe_byref_p throughout this file.
8967 (assign_parm_setup_block): Use it. Accept pseudos in the
8968 expand-assigned rtl.
8969 (assign_parm_setup_reg): Drop BLKmode requirement.
8970 (assign_parm_setup_stack): Allocate and fill in the address of
8971 unassigned MEM parms.
8973 2015-08-19 David Sherwood <david.sherwood@arm.com>
8975 * genmodes.c (emit_mode_unit_size_inline): New function.
8976 (emit_mode_unit_precision_inline): New function.
8977 (emit_insn_modes_h): Emit new #define. Emit new functions.
8978 (emit_mode_unit_size): New function.
8979 (emit_mode_unit_precision): New function.
8980 (emit_mode_adjustments): Add mode_unit_size adjustments.
8981 (emit_insn_modes_c): Emit new arrays.
8982 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
8983 use new inline methods.
8985 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8987 * config/aarch64/aarch64.c (bit_count): Delete prototype
8989 (aarch64_print_operand): Use popcount_hwi instead of the above.
8991 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8993 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
8996 2015-08-19 Marek Polacek <polacek@redhat.com>
8999 * gimple-ssa-isolate-paths.c
9000 (insert_trap_and_remove_trailing_statements): Rename to ...
9001 (insert_trap): ... this. Don't remove trailing statements; split
9003 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
9005 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
9008 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
9009 conditionalize the whole on __GNUC__. Add fallback code
9010 depending neither on undefined nor implementation-defined behaviour.
9012 2015-08-19 Jiong Wang <jiong.wang@arm.com>
9014 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
9015 whitespaces with tab.
9017 2015-08-19 Florian Weimer <fweimer@redhat.com>
9019 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
9020 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
9021 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
9022 Move Name_Ids instantiation to the Prj.Proc package, to avoid
9025 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9027 * config/arm/arm.c (bounds_check): Use %wd print format
9028 for HOST_WIDE_INT arguments.
9030 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
9032 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
9033 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
9034 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
9035 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
9036 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
9037 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
9038 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
9039 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
9040 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
9043 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
9045 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
9046 function.c, graphite-scop-detection.c, haifa-sched.c,
9047 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
9048 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
9049 varasm.c: Remove typedefs of structs.
9051 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
9053 * config/rs6000/altivec.h (vec_adde): New define.
9054 (vec_addec): Likewise.
9055 (vec_double): Likewise.
9056 (vec_bperm): Likewise.
9058 * config/rs6000/rs6000-builtin.def (ADDE): New
9059 BU_ALTIVEC_OVERLOAD_3.
9061 (DOUBLE): New BU_VSX_OVERLOAD_1.
9062 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
9063 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
9064 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
9065 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
9066 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
9067 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
9068 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
9069 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
9070 and P8V_BUILTIN_VEC_VBPERMQ.
9072 2015-08-18 Jason Merrill <jason@redhat.com>
9074 * print-tree.c (print_node): Handle TREE_BINFO.
9076 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9079 * builtins.c (expand_builtin_signbit): Add asserts to make sure
9080 we can expand BUILT_IN_SIGNBIT inline.
9081 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
9082 * doc/extend.texi: Document the type-generic __builtin_signbit.
9084 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
9086 PR rtl-optimization/67218
9087 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
9088 (simplify_unary_operation_1): Use it.
9090 2015-08-18 Marek Polacek <polacek@redhat.com>
9093 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
9094 if the call isn't valid.
9095 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
9096 gimple_call_builtin_p.
9097 (call_may_clobber_ref_p_1): Likewise.
9098 (stmt_kills_ref_p): Likewise.
9100 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
9102 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
9103 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
9104 (mips_hard_regno_scratch_ok): Likewise.
9105 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
9106 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
9108 2015-08-18 Bin Cheng <bin.cheng@arm.com>
9110 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
9111 (determine_value_range): Call refine_value_range_using_guard for
9112 each loop initial condition to improve value range.
9114 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
9116 * config/i386/i386.c: Remove include of fibheap.h.
9118 2015-08-17 Richard Biener <rguenther@suse.de>
9120 PR tree-optimization/67221
9121 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
9122 (sccvn_dom_walker::before_dom_children): Mark backedges of
9123 non-executable blocks as not executable.
9125 2015-08-17 David Sherwood <david.sherwood@arm.com>
9127 * config/arm/arm.c (neon_element_bits): Replace call to
9128 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
9129 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
9130 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
9131 (neon_vdup_lane<mode>): Likewise.
9132 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
9133 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
9134 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
9135 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
9136 * config/spu/spu.c (arith_immediate_p): Likewise.
9137 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
9138 * expr.c (expand_expr_real_2): Likewise.
9139 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
9140 * simplify-rtx.c (simplify_immed_subreg): Likewise.
9141 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
9142 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
9144 * fold-const.c (fold_binary_loc): Replace call to
9145 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
9146 GET_MODE_UNIT_PRECISION (m).
9148 2015-08-17 Mike Stump <mikestump@comcast.net>
9150 * config/arm/arm.c (arm_block_move_unaligned_straight):
9151 Emit normal move instead of unaligned load when source or destination
9152 are appropriately aligned.
9154 2015-08-17 Richard Biener <rguenther@suse.de>
9155 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9158 * match.pd (div (coss (op @0) : New simplifier.
9160 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
9162 PR rtl-optimization/64164
9165 PR rtl-optimization/67000
9168 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9169 * tree-ssa-copyrename.c: Removed.
9170 * opts.c (default_options_table): Drop -ftree-copyrename. Add
9171 -ftree-coalesce-vars.
9172 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9173 * common.opt (ftree-copyrename): Ignore.
9174 (ftree-coalesce-inlined-vars): Likewise.
9175 * doc/invoke.texi: Remove the ignored options above.
9176 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9177 * tree-ssa-coalesce.h: ... here.
9178 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9179 headers required by it.
9180 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9181 across variables when flag_tree_coalesce_vars. Check register
9182 use and promoted modes to allow coalescing. Do not coalesce
9183 maybe-byref parms with SSA_NAMEs of other variables, or
9184 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
9185 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9186 with its member functions to tree-ssa-coalesce.c.
9187 (var_map_base_init): Likewise. Renamed to
9188 compute_samebase_partition_bases.
9189 (partition_view_normal): Drop want_bases parameter.
9190 (partition_view_bitmap): Likewise.
9191 * tree-ssa-live.h: Adjust declarations.
9192 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
9193 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9194 default defs at the entry point.
9195 (dump_part_var_map): New.
9196 (compute_optimized_partition_bases): New, called by...
9197 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9198 of compute_samebase_partition_bases. Adjust.
9199 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9200 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
9201 (ssa_default_def_partition): New.
9202 (get_rtl_for_parm_ssa_default_def): New.
9203 (align_local_variable, add_stack_var): Support anonymous SSA
9205 (defer_stack_allocation): Likewise. Declare earlier.
9206 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9207 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9208 Do no record deferred-allocation marker in
9209 SA.partition_to_pseudo.
9210 (expand_stack_vars): Adjust check for the marker in it.
9211 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
9212 redundant MEM attr setting.
9213 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
9215 (expand_one_stack_var): ... this. New wrapper to check and
9216 skip already expanded SSA partitions.
9217 (record_alignment_for_reg_var): New, factored out of...
9218 (expand_one_var): ... this.
9219 (expand_one_ssa_partition): New.
9220 (adjust_one_expanded_partition_var): New.
9221 (expand_one_register_var): Check and skip already expanded SSA
9223 (expand_used_vars): Don't create DECLs for anonymous SSA
9224 names. Expand all SSA partitions, then adjust all SSA names.
9225 (pass::execute): Replace the loops that set
9226 SA.partition_to_pseudo from partition leaders and cleared
9227 DECL_RTL for multi-location variables, and that which used to
9228 rename vars and set attrs, with one that clears DECL_RTL and
9229 checks that PARMs and RESULTs default_defs match DECL_RTL.
9230 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9231 * emit-rtl.c: Include stor-layout.h.
9232 (set_reg_attrs_for_parm): Handle NULL decl.
9233 (set_reg_attrs_for_decl_rtl): Take mode from expression if
9235 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
9236 rather than its possibly-NULL DECL.
9237 * explow.c (promote_ssa_mode): New.
9238 * explow.h (promote_ssa_mode): Declare.
9239 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9240 (read_complex_part): Export.
9241 * expr.h (read_complex_part): Declare.
9242 * cfgexpand.h (parm_maybe_byref_p): Declare.
9243 * function.c: Include cfgexpand.h.
9244 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9245 (use_register_for_parm_decl): Wrapper for the above to
9246 special-case the result_ptr.
9247 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9248 (split_complex_args): Take assign_parm_data_all argument.
9249 Pass it to rtl_for_parm. Set up rtl and context for split
9250 args. Reset complex parm before fetching its default decl
9252 (assign_parms_unsplit_complex): Use the default-def complex
9253 parm rtl if it matches the components.
9254 (assign_parms_augmented_arg_list): Adjust.
9255 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9256 multiple locations. Recognize split complex args.
9257 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9258 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
9259 (assign_parm_setup_block): Prefer SSA-assigned location, and
9260 fill in its address if the memory location of a maybe-byref
9261 parm was not assigned by cfgexpand.
9262 (assign_parm_setup_reg): Likewise. Adjust its mode as
9263 needed. Use entry_parm for equiv if stack_parm is NULL. Make
9264 sure passed_pointer parms don't need conversion. Copy address
9266 (assign_parm_setup_stack): Prefer SSA-assigned location.
9267 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
9268 rtl before testing for pointer bounds. Special-case result_ptr.
9269 (expand_function_start): Maybe reset DECL_RTL of result.
9270 Prefer SSA-assigned location for result and static chain.
9271 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
9272 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
9273 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9274 anonymous SSA names. Use promote_ssa_mode.
9275 (get_temp_reg): Likewise.
9276 (remove_ssa_form): Adjust.
9277 * stor-layout.c (layout_decl): Don't set mem attributes of
9279 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9280 and get its reg_usage for reg invalidation.
9281 (compute_bb_dataflow): Pass it insn.
9282 (emit_notes_in_bb): Likewise.
9284 2015-08-14 Marek Polacek <polacek@redhat.com>
9286 * tree-core.h (tree_base): Fix typo.
9288 2015-08-14 Marek Polacek <polacek@redhat.com>
9291 * gimple.c (infer_nonnull_range_by_attribute): Check that the
9292 nonnull argument position is not outside function arguments.
9294 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
9297 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
9298 'lconst_atomic' with 'const_atomic'.
9299 (atomic_fetch_<optab><mode>): Likewise.
9300 (atomic_<optab>_fetch<mode>): Likewise.
9301 * config/aarch64/iterators.md (lconst-atomic): Move below
9303 (const_atomic): New.
9305 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
9306 Bernd Schmidt <bernds@codesourcery.com>
9308 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
9310 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
9311 (DWARF2_DEBUGGING_INFO): Don't define.
9312 * debug.h (dwarf2_lineno_debug_hooks): Declare.
9313 * toplev.c (process_options): Add a case for it.
9314 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
9315 (dwarf2out_init): Skip most initializations if
9316 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
9318 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
9319 DWARF2_LINENO_DEBUGGING_INFO.
9320 * opts.c (set_debug_level): Likewise.
9322 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
9324 * config/arm/types.md (is_neon_type): Add missing types.
9326 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
9328 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
9330 * config/i386/i386.c (PTA_SKYLAKE): New macros.
9331 (processor_alias_table): Add skylake description.
9332 (enum processor_model): Add skylake processor.
9333 (arch_names_table): Add skylake record.
9334 * doc/invoke.texi: Add skylake item.
9336 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
9338 * ira-int.h: Include recog.h.
9339 * ira-build.c: Don't include recog.h.
9340 * ira-color.c: Likewise.
9341 * ira-conflicts.c: Likewise.
9342 * ira-costs.c: Likewise.
9343 * ira-emit.c: Likewise.
9344 * ira-lives.c: Likewise.
9346 * sched-deps.c: Likewise.
9347 * sel-sched.c: Likewise.
9348 * target-globals.c: Likewise.
9350 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
9353 * reload1.c (elimination_costs_in_insn): Make it obvious to the
9354 compiler that the n_dups and n_operands loop bounds are invariant.
9356 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9358 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
9359 expressions in A and B.
9361 2015-08-13 Richard Biener <rguenther@suse.de>
9363 * tree.c (nonnull_arg_p): Move from ...
9364 * tree-vrp.c (nonnull_arg_p): ... here.
9365 * tree.h (nonnull_arg_p): Declare.
9366 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
9367 here, register ptr != 0 for nonnull_arg_p pointer arguments.
9368 Properly initialize static chain and by-reference result pointer.
9369 (run_scc_vn): Adjust.
9371 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
9373 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
9376 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
9378 * config/aarch64/aarch64-protos.h
9379 (aarch64_gen_atomic_cas): Declare.
9380 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
9381 Choose appropriate instruction pattern for the target.
9382 (aarch64_gen_atomic_cas): New.
9383 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
9384 (atomic_compare_and_swap<mode>_1): Rename to
9385 aarch64_compare_and_swap<mode>. Fix some indentation.
9386 (aarch64_compare_and_swap<mode>_lse): New.
9387 (aarch64_atomic_cas<mode>): New.
9389 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
9391 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
9394 2015-08-13 Richard Biener <rguenther@suse.de>
9396 PR tree-optimization/67191
9397 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
9398 assert we value-numbered last stmts operand because it can validly
9399 trigger for unreachable code.
9401 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9403 PR rtl-optimization/67103
9404 * ifcvt.c (noce_try_store_flag_constants): Move
9405 x = (-(test != 0) & (b - a)) + a transformation to...
9406 (noce_try_cmove): ... Here. Try it if normal conditional
9409 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
9411 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
9413 * config/mips/mips.md (processor): Remove w32 and w64.
9415 2015-08-13 Richard Biener <rguenther@suse.de>
9417 PR tree-optimization/66502
9418 PR tree-optimization/67167
9419 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
9421 (vn_phi_lookup): Adjust.
9422 (vn_phi_insert): Likewise.
9423 (visit_phi): Prefer to value-number to another PHI node
9424 over value-numbering to a PHI argument.
9425 (init_scc_vn): Mark DFS back edges.
9427 2015-08-13 Richard Biener <rguenther@suse.de>
9429 * gimple.h (gcall::code_): New constant static member.
9430 (gcond::code_): Likewise.
9431 * gimple.c (gcall::code_): Define.
9432 (gcond::code_): Likewise.
9433 (is_a_helper <const gcond *>): Add.
9434 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
9435 and forward to a new gcall overload with less checking and a
9436 cheaper way to access the operand.
9437 (gimple_call_lhs_ptr): Likewise.
9438 (gimple_call_set_lhs): Likewise.
9439 (gimple_call_internal_p): Likewise.
9440 (gimple_call_with_bounds_p): Likewise.
9441 (gimple_call_set_with_bounds): Likewise.
9442 (gimple_call_internal_fn): Likewise.
9443 (gimple_call_set_ctrl_altering): Likewise.
9444 (gimple_call_ctrl_altering_p): Likewise.
9445 (gimple_call_fntype): Likewise.
9446 (gimple_call_fn): Likewise.
9447 (gimple_call_fn_ptr): Likewise.
9448 (gimple_call_set_fndecl): Likewise.
9449 (gimple_call_fndecl): Likewise.
9450 (gimple_call_chain): Likewise.
9451 (gimple_call_num_args): Likewise.
9452 (gimple_call_arg): Likewise.
9453 (gimple_call_arg_ptr): Likewise.
9454 (gimple_call_set_arg): Likewise.
9455 (gimple_call_noreturn_p): Likewise.
9456 (gimple_cond_code): Likewise.
9457 (gimple_cond_lhs): Likewise.
9458 (gimple_cond_rhs): Likewise.
9459 (gimple_has_lhs): Reduce checking.
9461 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9464 * match.pd (div (mult @0 @1) @1) : New simplifier.
9466 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
9469 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
9470 predicate to allow construction of vector constants using the
9471 VSLDOI vector shift instruction.
9473 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
9476 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
9477 the number of bytes to be shifted left and filled in with either
9478 all zero or all one bits.
9479 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
9481 (output_vec_const_move): On power8, generate XXLORC to generate
9482 a vector constant with all 1's. Do a split if we need to use a
9485 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
9486 properly test for the MSB.
9488 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
9489 vector constants that can be created with VSLDOI.
9491 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
9494 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
9495 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
9496 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
9497 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
9498 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
9499 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9500 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
9501 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
9502 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
9504 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
9506 * config/xtensa/constraints.md (define_constraint "Y"): New
9508 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
9509 * config/xtensa/linux.h (ASM_SPEC): Likewise.
9510 * config/xtensa/predicates.md (move_operand): Match constants
9511 and symbols in the presence of TARGET_AUTO_LITPOOLS.
9512 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
9513 immediate references to TLS data.
9514 (xtensa_emit_move_sequence): Don't force constants to memory in
9515 the presence of TARGET_AUTO_LITPOOLS.
9516 (print_operand): Add 'y' format, same as default, but capable of
9517 printing SF mode constants as well.
9518 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
9519 (movsf_internal): Add movi pattern that loads literal.
9520 (movsf, movdf): Don't force constants to memory in the presence
9521 of TARGET_AUTO_LITPOOLS.
9522 (movdf_internal): Add 'Y' constraint.
9523 * config/xtensa/xtensa.opt (mauto-litpools): New option.
9524 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
9526 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
9528 * config/arm/arm-fpus.def: Replace booleans with feature flags.
9530 * config/arm/arm.c (ARM_FPU): Update macro.
9531 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
9532 (TARGET_FP16): Likewise.
9533 (TARGET_CRYPTO): Likewise.
9534 (TARGET_NEON): Likewise.
9535 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
9538 2015-08-12 Tom de Vries <tom@codesourcery.com>
9542 * doc/install.texi: Remove --with_host_libstdcxx item. Update
9543 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
9544 accordingly. Mention default for --with-stage1-ldflags.
9546 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
9548 * config/arm/arm.h (arm_fpu_feature_set): New.
9549 (ARM_FPU_FSET_HAS): New.
9553 (FPU_FL_CRYPTO): New.
9555 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9557 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
9558 after -mcmodel=large -fPIC sorry.
9560 2015-08-12 Richard Biener <rguenther@suse.de>
9562 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
9563 comparison operand order and commutative ternary op operand order.
9564 (sccvn_dom_walker::cond_stack): New state to track temporary
9566 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
9568 (sccvn_dom_walker::record_cond): Add a single temporary conditional
9570 (sccvn_dom_walker::record_conds): Add a temporary conditional
9571 expressions and all related expressions also true/false.
9572 (sccvn_dom_walker::before_dom_children): Record temporary
9573 expressions based on the controlling condition of a single
9574 predecessor. When trying to simplify a conditional statement
9575 lookup expressions we might have inserted earlier.
9577 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
9580 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
9581 to ARM core registers.
9583 2015-08-12 Nathan Sidwell <nathan@acm.org>
9585 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
9586 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
9588 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
9590 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
9592 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
9594 2015-08-12 Richard Biener <rguenther@suse.de>
9596 * gimple.h (remove_pointer): New trait.
9597 (GIMPLE_CHECK2): New inline template function.
9598 (gassign::code_): New constant static member.
9599 (is_a_helper<const gassign *>): Add.
9600 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
9601 and forward to a new gassign overload with less checking and a
9602 cheaper way to access the operand.
9603 (gimple_assign_lhs_ptr): Likewise.
9604 (gimple_assign_set_lhs): Likewise.
9605 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
9607 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
9609 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
9611 (gimple_assign_rhs_code): Likewise.
9612 * gimple.c (gassign::code_): Define.
9614 2015-08-12 Richard Biener <rguenther@suse.de>
9616 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9617 Eliminate edges marked as not executable by SCCVN.
9618 * tree-ssa-sccvn.c: Include gimple-iterator.h.
9619 (cond_dom_walker): Rename to sccvn_dom_walker.
9620 (sccvn_dom_walker::before_dom_children): Value-number defs
9622 (run_scc_vn): Remove loop value-numbering all SSA names.
9623 Drop not visited SSA names to varying.
9625 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
9627 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
9628 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
9629 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
9630 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
9631 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
9632 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9633 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
9634 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
9635 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
9637 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
9640 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
9641 to enum feature_priority and feature_list.
9642 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
9643 and isa_names_table.
9645 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
9647 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
9650 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9654 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
9655 account when deciding what was the command-line status.
9657 2015-08-11 Nathan Sidwell <nathan@acm.org>
9659 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
9661 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
9662 we're not the only contributor to target phi.
9664 2015-08-11 Jiong Wang <jiong.wang@arm.com>
9666 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
9669 2015-08-11 Tom de Vries <tom@codesourcery.com>
9671 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
9673 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
9675 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
9677 * config/i386/i386.md (cpu): Remove knl.
9679 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
9683 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
9684 open-coded sequence.
9685 * omp-low.c (oacc_process_reduction_data): Remove handline of
9686 GOMP_DEVICE_HOST_NONSHM.
9688 * lto-streamer-in.c (lto_input_mode_table): Adjust to
9689 GET_MODE_INNER changes.
9691 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
9692 Ilya Verbin <ilya.verbin@intel.com>
9694 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
9696 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
9698 * doc/options.texi (EnabledBy): Document that the argument must be
9700 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
9701 Not enabled by -Wall.
9702 * optc-gen.awk: Give nicer error messages. Detect if the argument
9703 of EnabledBy is not a Common option.
9704 * common.opt (Wnull-dereference): Not enabled by -Wall.
9705 * opt-functions.awk (lang_enabled_by): Nicer error messages.
9707 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
9709 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
9710 model == 0x4f as Broadwell.
9712 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
9714 PR rtl-optimization/67028
9715 * combine.c (simplify_comparison): Fix comment. Rearrange code.
9716 Add test to see if a const_int fits in the new mode.
9718 2015-08-07 DJ Delorie <dj@redhat.com>
9720 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
9722 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
9724 PR rtl-optimization/67029
9725 * ira-color.c: Include "recog.h" before including "ira-int.h".
9726 * target-globals.c: Likewise.
9727 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
9728 adds an alternative_mask argument and use it instead of
9729 preferred_alternatives.
9730 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
9731 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
9732 * sched-deps.c: Include "ira-int.h" after including "ira.h".
9733 (sched_analyze_insn): Update call to
9734 ira_implicitly_set_insn_hard_regs.
9735 * sel-sched.c: Include "ira-int.h" after including "ira.h".
9736 (implicit_clobber_conflict_p): Update call to
9737 ira_implicitly_set_insn_hard_regs.
9739 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
9741 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
9743 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
9746 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
9747 currently_expanding_to_rtl is set.
9749 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
9751 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
9752 * configure: Regenerate.
9754 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9755 Jiong Wang <jiong.wang@arm.com>
9757 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
9758 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
9759 (REG_CLASS_NAMES): Likewise.
9760 (REG_CLASS_CONTENTS): Likewise.
9761 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
9762 (aarch64_register_move_cost): Likewise.
9763 (aarch64_load_symref_appropriately): Invoke the new added pattern if
9765 * config/aarch64/constraints.md (Uc0): New constraint.
9767 2015-08-06 Jiong Wang <jiong.wang@arm.com>
9769 * config/aarch64/constraints.md (Usf): Add the test of
9770 aarch64_is_noplt_call_p.
9772 2015-08-06 Jiong Wang <jiong.wang@arm.com>
9774 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
9776 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
9777 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
9778 (call_symbol): Likewise.
9780 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
9782 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
9783 for vectorizing multiplication patterns.
9784 * tree-vectorizer.h: Adjust the number of patterns.
9786 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
9788 * config/i386/sse.md (*vec_concatv2df): Declare added
9789 alternatives as sselog type.
9791 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9793 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
9796 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9798 * config/s390/s390.c (s390_expand_tbegin): Expand either
9799 tbegin_1_z13 or tbegin_1 depending on VX flag.
9800 * config/s390/s390.md ("tbegin_1_z13"): New expander.
9802 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9804 * config/s390/s390.opt: Clarify description for -mzvector
9805 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
9808 2015-08-06 Richard Biener <rguenther@suse.de>
9810 * gimple.h (gimple_call_set_fn): Access op member directly.
9811 (gimple_call_chain_ptr): Likewise.
9812 (gimple_call_set_chain): Likewise.
9813 (gimple_cond_lhs_ptr): Likewise.
9814 (gimple_cond_set_lhs): Likewise.
9815 (gimple_cond_rhs_ptr): Likewise.
9816 (gimple_cond_set_rhs): Likewise.
9817 (gimple_cond_true_label): Likewise.
9818 (gimple_cond_set_true_label): Likewise.
9819 (gimple_cond_set_false_label): Likewise.
9820 (gimple_cond_false_label): Likewise.
9821 (gimple_label_label): Likewise.
9822 (gimple_label_set_label): Likewise.
9823 (gimple_goto_set_dest): Likewise.
9824 (gimple_asm_input_op): Likewise.
9825 (gimple_asm_input_op_ptr): Likewise.
9826 (gimple_asm_set_input_op): Likewise.
9827 (gimple_asm_output_op): Likewise.
9828 (gimple_asm_output_op_ptr): Likewise.
9829 (gimple_asm_set_output_op): Likewise.
9830 (gimple_asm_clobber_op): Likewise.
9831 (gimple_asm_set_clobber_op): Likewise.
9832 (gimple_asm_label_op): Likewise.
9833 (gimple_asm_set_label_op): Likewise.
9834 (gimple_switch_index): Likewise.
9835 (gimple_switch_index_ptr): Likewise.
9836 (gimple_return_retval_ptr): Likewise.
9837 (gimple_return_retval): Likewise.
9838 (gimple_return_set_retval): Likewise.
9839 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
9840 (gimple_switch_label): Likewise.
9841 (gimple_switch_set_label): Likewise.
9843 2015-08-06 Richard Biener <rguenther@suse.de>
9845 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
9846 bool comparison canonicalization and restrict to integers.
9848 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
9850 * coretypes.h (enum symbol_visibility): Relocate here.
9851 * flag-types.h (enum symbol_visibility): Remove.
9852 * tree-core.h (enum symbol_visibility): Remove.
9854 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
9857 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
9858 for no_split_stack function attribute along with
9860 (rs6000_expand_split_stack_prologue): Likewise.
9862 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
9863 Jeff Law <law@redhat.com>
9866 * doc/invoke.texi (Wnull-dereference): New.
9867 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
9868 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
9869 Warn for potential NULL dereferences.
9870 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
9871 * ubsan.c (instrument_nonnull_arg): Call
9872 infer_nonnull_range_by_attribute.
9873 (instrument_nonnull_return): Likewise.
9874 * common.opt (Wnull-dereference); New.
9875 * gimple.c (infer_nonnull_range): Remove bool arguments.
9876 (infer_nonnull_range_by_dereference): New.
9877 (infer_nonnull_range_by_attribute): New.
9878 * gimple.h: Update declarations.
9880 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9882 * gensupport.c (sequence_num): Replace with...
9883 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
9884 ...these new variables.
9885 (init_rtx_reader_args_cb): Update accordingly.
9886 (get_num_code_insns): Likewise.
9887 (read_md_rtx): Rework to use a while loop and get_c_test.
9888 Use the new counters. Remove redundant DEFINE_SUBST case.
9889 * genoutput.c (gen_split): Delete.
9890 (main): Don't call it.
9892 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9894 * gensupport.h (get_c_test): Declare.
9895 * gensupport.c (get_c_test): New function.
9896 * genconditions.c (main): Use it.
9897 * genrecog.c (validate_pattern): Likewise.
9898 (match_pattern_1): Likewise. Remove c_test argument.
9899 (match_pattern): Update accordingly and remove c_test argument.
9900 (main): Update accordingly.
9902 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9904 * gensupport.h (get_num_insn_codes): Declare.
9905 * gensupport.c (get_num_insn_codes): New function.
9906 * genattrtab.c (optimize_attrs): Rename max_insn_code to
9908 (main): Likewise. Use get_num_insn_codes.
9909 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
9911 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9914 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
9915 is zero- rather than sign-extended.
9917 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9919 * target-insns.def (can_extend): Delete.
9921 2015-08-05 Richard Biener <rguenther@suse.de>
9923 PR tree-optimization/67121
9924 * tree-if-conv.c (combine_blocks): Clear range-info produced
9925 by stmts no longer executed conditionally.
9927 2015-08-05 Nick Clifton <nickc@redhat.com>
9929 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
9930 to allow identical far pointers to remain.
9932 2015-08-05 Richard Biener <rguenther@suse.de>
9935 * match.pd: Compare address bases with == if they are decls
9936 or SSA names, not operand_equal_p. Otherwise fail.
9938 2015-08-05 Richard Biener <rguenther@suse.de>
9940 PR tree-optimization/67055
9941 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
9944 * g++.dg/torture/pr67055.C: New testcase.
9946 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
9948 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
9950 (define_attr "enabled"): Handle avx521vl and noavx512vl.
9951 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
9952 AVX-512 alternative out of SSE.
9953 (define_insn "*vec_concatv2df"): Ditto.
9955 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
9957 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
9958 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
9959 CODE_FOR_avx_ptestv4di.
9960 * config/i386/sse.md (define_mode_iterator V_AVX): New.
9961 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
9962 (define_insn "avx_ptest256"): Merge this ...
9963 (define_insn "sse4_1_ptest"): And this ...
9964 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
9966 2015-08-05 Richard Biener <rguenther@suse.de>
9968 PR tree-optimization/67109
9969 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
9970 against too big groups. Print whether this is a load or store
9971 group. Rename from ...
9972 (vect_analyze_group_access): ... this which is now a wrapper
9973 dissolving an invalid group.
9974 (vect_analyze_data_ref_accesses): Print whether this is a load
9977 2015-08-05 Richard Biener <rguenther@suse.de>
9980 * match.pd: Guard const_binop result checking against NULL_TREE
9983 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
9985 * cse.c (cse_insn): Restoring old behaviour for src_eqv
9986 when dest and value in the REG_EQUAL are same and dest
9989 2015-08-04 Anatoly Sokolov <aesok@post.ru>
9991 * config/moxie/moxie.h (PRINT_OPERAND,
9992 PRINT_OPERAND_ADDRESS): Remove macros.
9993 * config/moxie/moxie-protos.h (moxie_print_operand,
9994 moxie_print_operand_address): Remove declaration.
9995 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
9996 TARGET_PRINT_OPERAND_ADDRESS): Define.
9997 (moxie_print_operand, moxie_print_operand_address): Make static.
9999 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
10002 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
10003 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
10005 2015-08-04 Richard Biener <rguenther@suse.de>
10007 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
10009 (dt_operand::gen_gimple_expr): Adjust.
10011 2015-08-04 Richard Biener <rguenther@suse.de>
10013 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
10014 bool compares on RHS.
10015 * match.pd: Add X ==/!= !X is false/true pattern.
10017 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
10019 * config/aarch64/aarch64.c: Change inner loop statement cost
10020 to be consistent with other targets.
10022 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
10024 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
10027 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
10029 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
10030 (machine_function): Remove pseudos field.
10032 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10034 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
10035 Exit early and use target_option_current_node if processing current
10038 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10040 * doc/extend.texi (AArch64 Function Attributes): New node.
10041 (AArch64 Pragmas): Likewise.
10043 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10045 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
10046 Initialize simd builtins if TARGET_SIMD.
10047 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
10048 Make sure that the builtins are initialized only once no matter how
10049 many times the function is called.
10050 (aarch64_init_builtins): Unconditionally initialize crc builtins.
10051 (aarch64_relayout_simd_param): New function.
10052 (aarch64_simd_expand_args): Use above during argument expansion.
10053 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
10054 simd builtins if TARGET_SIMD.
10055 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
10057 (aarch64_relayout_simd_types): Likewise.
10059 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10061 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
10062 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
10063 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
10064 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
10066 (aarch64_reset_previous_fndecl): New function.
10067 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
10069 * config/aarch64/aarch64-c.c: New file.
10070 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
10071 Push and pop options at beginning and end. Remove ifdef
10072 __ARM_FEATURE_CRC32.
10073 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
10074 Add pragma +nothing+simd and +nothing+crypto where appropriate.
10075 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
10076 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
10078 (aarch64_register_pragmas): Likewise.
10079 (aarch64_reset_previous_fndecl): Likewise.
10080 (aarch64_process_target_attr): Likewise.
10081 (aarch64_override_options_internal): Likewise.
10083 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10085 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
10087 (aarch64_can_inline_p): Likewise.
10088 (TARGET_CAN_INLINE_P): Define.
10090 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10092 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
10093 Remove static. Handle OPT_mgeneral_regs_only,
10094 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
10095 OPT_momit_leaf_frame_pointer.
10096 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
10097 (aarch64_attr_opt_type): New enum.
10098 (aarch64_attribute_info): New struct.
10099 (aarch64_handle_attr_arch): New function.
10100 (aarch64_handle_attr_cpu): Likewise.
10101 (aarch64_handle_attr_tune): Likewise.
10102 (aarch64_handle_attr_isa_flags): Likewise.
10103 (aarch64_attributes): New table.
10104 (aarch64_process_one_target_attr): New function.
10105 (num_occurences_in_str): Likewise.
10106 (aarch64_process_target_attr): Likewise.
10107 (aarch64_option_valid_attribute_p): Likewise.
10108 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
10109 * config/aarch64/aarch64-protos.h: Include input.h
10110 (aarch64_handle_option): Declare prototype.
10112 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10114 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
10115 * config/aarch64/aarch64.c: Include target-globals.h
10116 (aarch64_previous_fndecl): New variable.
10117 (aarch64_set_current_function): New function.
10118 (TARGET_SET_CURRENT_FUNCTION): Define.
10120 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10122 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
10123 (explicit_arch): Likewise.
10124 (x_aarch64_isa_flags): Likewise.
10125 (mgeneral-regs-only): Mark as Save.
10126 (mfix-cortex-a53-835769): Likewise.
10127 (mcmodel=): Likewise.
10128 (mstrict-align): Likewise.
10129 (momit-leaf-frame-pointer): Likewise.
10130 (mtls-dialect): Likewise.
10131 (master=): Likewise.
10132 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
10133 (aarch64_isa_flags): Remove extern declaration.
10134 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
10135 to indicate success or failure.
10136 (aarch64_validate_march): Likewise.
10137 (aarch64_validate_mtune): Likewise.
10138 (aarch64_isa_flags): Delete.
10139 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
10140 instead of aarch64_isa_flags.
10141 (aarch64_get_tune_cpu): New function.
10142 (aarch64_get_arch): Likewise.
10143 (aarch64_override_options): Use above and set up explicit_tune_core
10145 (aarch64_print_extension): Move earlier in file. Add isa_flags
10146 argument and use that instead of the global aarch64_isa_flags.
10147 (aarch64_option_save): New function.
10148 (aarch64_option_restore): Likewise.
10149 (aarch64_option_print): Likewise.
10150 (aarch64_declare_function_name): Likewise.
10151 (aarch64_start_file): Delete.
10152 (TARGET_ASM_FILE_START): Do not define.
10153 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
10154 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
10157 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10159 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
10160 flag_omit_leaf_frame_pointer to 2.
10162 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10164 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
10166 (TARGET_FIX_ERR_A53_835769): New macro.
10167 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
10168 handling of opts->x_aarch64_fix_a53_err835769.
10169 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
10170 than aarch64_fix_a53_err835769.
10171 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
10172 * config/aarch64/aarch64-linux.h: Likewise.
10174 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
10176 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
10177 ix86_expand_int_movcc as boolean.
10179 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10181 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
10182 (aarch64_cpu_string): Likewise.
10183 (aarch64_tune_string): Likewise.
10184 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
10185 (aarch64_parse_extension): Return aarch64_parse_opt_result.
10186 Add extra argument to put result into.
10187 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
10188 (aarch64_parse_cpu): Add arguments to put results into. Return
10189 aarch64_parse_opt_result.
10190 (aarch64_parse_tune): Likewise.
10191 (aarch64_override_options_after_change_1): New function.
10192 (aarch64_override_options_internal): New function.
10193 (aarch64_validate_mcpu): Likewise.
10194 (aarch64_validate_march): Likewise.
10195 (aarch64_validate_mtune): Likewise.
10196 (aarch64_override_options): Update to reflect above changes.
10197 Move some logic into aarch64_override_options_internal.
10198 Initialize target_option_default_node and target_option_current_node.
10199 (aarch64_override_options_after_change): Move logic into
10200 aarch64_override_options_after_change_1 and call it with global_options.
10201 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
10202 flag values from that.
10204 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10206 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
10207 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
10208 * config/aarch64/aarch64.c (struct processor): Add arch field.
10209 (all_architectures): Handle above, move above all_cores.
10210 (all_cores): Handle above.
10211 (aarch64_parse_arch): Handle above changes.
10212 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
10213 above. Update comments.
10214 (armv8.1-a): Likewise.
10215 * config/aarch64/aarch64-cores.def: Update according to above.
10216 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
10217 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
10218 aarch64_arch_driver_info.
10220 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10222 * config/aarch64/aarch64.c (struct processor): Add ident field.
10223 Rename core sched_core.
10224 (all_cores): Handle above changes.
10225 (all_architectures): Likewise.
10226 (aarch64_parse_arch): Likewise.
10227 (aarch64_override_options): Likewise.
10229 2015-08-04 Richard Biener <rguenther@suse.de>
10231 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
10232 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
10233 comparisons embedded in [VEC_]COND_EXPRs.
10235 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
10237 * tree-if-conv.c: Fix various typos in comments.
10238 * tree-vect-stmts.c: Likewise.
10240 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
10242 PR tree-optimization/67043
10243 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
10244 preheader after hoisting invariant in it.
10245 (find_defs): Force recomputation of all luids.
10247 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
10249 * config/rs6000/htm.md (tabort.): Restrict the source operand to
10250 using a base register.
10252 2015-08-03 David Malcolm <dmalcolm@redhat.com>
10254 * main.c (main): Pass in NULL for toplev's external_timer.
10255 * timevar.c: Include coretypes.h.
10256 (class timer::named_items): New.
10257 (timer::named_items::named_items): New.
10258 (timer::named_items::~named_items): New.
10259 (timer::named_items::push): New.
10260 (timer::named_items::pop): New.
10261 (timer::named_items::print): New.
10262 (timer::timer): Initialize field "m_jit_client_items".
10263 (timer::~timer): New.
10264 (timer::push): Move bulk of implementation to...
10265 (timer::push_internal): ...here. New function.
10266 (timer::pop): Move bulk of implementation to...
10267 (timer::pop_internal): ...here. New function.
10268 (timer::push_client_item): New.
10269 (timer::pop_client_item): New.
10270 (timer::print_row): New function, taken from timer::print.
10271 (timer::print): Print "GCC items" header if we also have client
10272 items. Move row-printing to timer::print_row. Print any client
10274 (timer::get_topmost_item_name): New method.
10275 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
10276 (TV_JIT_CLIENT_CODE): New.
10277 * timevar.h (timer::push_client_item): New declaration.
10278 (timer::pop_client_item): New declaration.
10279 (timer::get_topmost_item_name): New method.
10280 (timer::push_internal): New declaration.
10281 (timer::pop_internal): New declaration.
10282 (timer::print_row): New declaration.
10283 (timer::named_items): New declaration.
10284 (timer::m_jit_client_items): New field.
10285 (timer): Add friend class named_items.
10286 (auto_timevar::auto_timevar): Add timer param.
10287 (auto_timevar::~auto_timevar): Use field "m_timer".
10288 (auto_timevar::m_timer): New field.
10289 * toplev.c (initialize_rtl): Add g_timer as param when
10290 constructing auto_timevar instance.
10291 (toplev::toplev): Add "external_timer" param, and use it to
10292 initialize the "g_timer" global if non-NULL.
10293 (toplev::~toplev): If this created "g_timer", delete it.
10294 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
10295 with "external_timer" timer *.
10297 2015-08-03 Alexander Basov <coohpt@gmail.com>
10299 PR middle-end/64744
10300 PR middle-end/48470
10301 PR middle-end/43404
10302 * cfgexpand.c (expand_one_var): Add check if stack is going to
10303 be used in naked function.
10304 * expr.c (expand_expr_addr_expr_1): Remove excess checking
10305 whether expression should not reside in MEM.
10306 * function.c (use_register_for_decl): Do not use registers for
10307 non-register things (volatile, float, BLKMode) in naked functions.
10309 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
10312 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
10313 Adjust splits to match new pattern.
10315 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10317 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
10320 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
10321 point in VSX registers.
10323 * config/rs6000/constraints.md (wb constraint): Document unused
10325 (we constraint): Likewise.
10326 (wo constraint): Likewise.
10327 (wp constraint): New constraint for IEEE 128-bit floating point in
10329 (wq constraint): Likewise.
10331 * config/rs6000/predicates.md (easy_fp_constant): Add support for
10332 IEEE 128-bit floating point in VSX registers.
10333 (easy_scalar_constant): Likewise.
10335 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
10336 constraints (wp, wq) for IEEE 128-bit floating point in VSX
10338 (rs6000_init_hard_regno_mode_ok): Likewise.
10340 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
10341 floating point in VSX registers.
10344 (VSX_M2): Likewise.
10350 (vsx_le_permute_<mode>): Add support to properly swap bytes for
10351 IEEE 128-bit floating point in VSX registers on little endian.
10352 (vsx_le_undo_permute_<mode>): Likewise.
10353 (vsx_le_perm_load_<mode>): Likewise.
10354 (vsx_le_perm_store_<mode>): Likewise.
10355 (splitters for IEEE 128-bit fp moves): Likewise.
10357 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
10360 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
10361 floating point in VSX registers.
10364 * doc/md.text (Machine Constraints): Document wp and wq
10365 constraints on PowerPC.
10367 2015-08-03 Jeff Law <law@redhat.com>
10369 PR middle-end/66314
10370 PR gcov-profile/66899
10371 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
10372 iterate over the jump threading paths when an element in the
10373 jump threading paths array is eliminated.
10375 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
10377 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
10379 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
10381 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
10382 is_use_properly_guarded the variable def_preds. Free its
10383 contents before returning.
10384 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
10385 (is_use_properly_guarded): Replace local variable def_preds with
10386 a parameter. Adjust accordingly. Only update *def_preds if it's
10389 2015-08-03 Richard Biener <rguenther@suse.de>
10391 * genmatch.c (simplify::for_subst_vec): New member.
10392 (binary_ok): New helper for for lowering.
10393 (lower_for): Delay substituting operators into result expressions
10394 if we can merge the results eventually again.
10395 (capture_info::walk_result): Adjust for user_id appearing as
10396 result expression operator.
10397 (expr::gen_transform): Likewise.
10398 (dt_simplify::gen_1): Likewise.
10399 (dt_simplify::gen): Pass not substituted operators to tail
10400 functions or initialize local variable with it.
10401 (decision_tree::gen): Adjust function signature.
10402 * match.pd: Fix tests against global code and add default
10403 cases to switch stmts.
10405 2015-08-03 Richard Biener <rguenther@suse.de>
10407 * genmatch.c (dt_simplify::gen): Create captures array
10408 with an initializer.
10410 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10412 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
10413 the host compiler is affected by placement new aliasing bug.
10414 * configure: Regenerate.
10415 * Makefile.in (ALIASING_FLAGS): New variable.
10416 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
10418 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
10421 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
10422 (negmulsf3_vfp): Likewise.
10423 (muldf3negdf_vfp): Disable for -frounding-math.
10424 (mulsf3negsf_vfp): Likewise.
10425 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
10426 fix MULT cost with -frounding-math.
10428 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10430 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
10431 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
10432 explicit. Prefer to add the flag whenever possible.
10433 (noce_process_if_block): Try noce_try_store_flag_constants before
10436 2015-08-03 Richard Biener <rguenther@suse.de>
10438 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
10439 New hash-map to record equivalent transforms.
10440 (dt_node::analyze): Populate the equivalent transforms hash-map.
10441 (dt_simplify::info): Add reference to hash-map entry.
10442 (dt_simplify::gen): If we have split out a function for the
10443 transform, generate a call to it.
10444 (sinfo_hashmap_traits::hash): New function.
10445 (compare_op): New helper function for ...
10446 (sinfo_hashmap_traits::equal_keys): ... this new function.
10447 (decision_tree::gen): Split out common equivalent transforms
10450 2015-08-03 Richard Biener <rguenther@suse.de>
10452 * gimple-fold.c (fold_gimple_assign): Remove folding of
10453 the comparison in COND_EXPRs.
10455 2015-08-03 Richard Biener <rguenther@suse.de>
10457 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
10458 on the rhs of assignments first simplify the embedded
10461 2015-08-03 Richard Biener <rguenther@suse.de>
10463 PR tree-optimization/66917
10464 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
10466 (DR_VECT_AUX): New macro.
10467 (set_dr_misalignment): Adjust.
10468 (dr_misalignment): Likewise.
10469 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
10470 Compute whether the base is at least element aligned.
10471 * tree-vect-stmts.c (ensure_base_align): Adjust.
10472 (vectorizable_store): If the base is not element aligned
10473 preserve alignment of the original access if misalignment is unknown.
10474 (vectorizable_load): Likewise.
10476 2015-08-02 Martin Sebor <msebor@redhat.com>
10478 * c-family/c.opt (-Wframe-address): New warning option.
10479 * doc/invoke.texi (Wframe-address): Document it.
10480 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
10481 Clarify possible effects of calling the functions with non-zero
10482 arguments and mention -Wframe-address.
10483 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
10485 2015-08-01 Michael Collison <michael.collison@linaro.org
10486 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10488 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
10489 (*arm_umin_cmp): Likewise.
10491 2015-08-01 Caroline Tice <cmtice@google.com>
10494 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
10496 (vtbl_find_mangled_name): New function.
10497 (vtbl_register_mangled_name): New function.
10498 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
10499 mangled name in mangled name vectors.
10500 (find_or_create_vtbl_map_node): Ditto.
10501 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
10502 update recursion_depth on function entry; pass it to every recursive
10503 call; automatically exit if depth > 25 (give up looking at that point).
10504 (verify_bb_vtables): Initialize recursion_depth and pass it to
10505 var_is_used_for_virtual_call_p.
10506 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
10507 global variable decls.
10508 (vtbl_register_mangled_name): New extern function decl.
10510 2015-08-01 Tom de Vries <tom@codesourcery.com>
10512 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
10514 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
10516 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
10517 operation_no_trapping_overflow. Allow non-overflow operations.
10518 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
10521 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
10524 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
10526 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10528 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
10529 Enable for TARGET_32BIT.
10530 (*if_move_neg): Likewise.
10532 2015-07-31 Nick Clifton <nickc@redhat.com>
10534 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
10535 Returns true for __model__.
10536 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10538 2015-07-31 Alan Modra <amodra@gmail.com>
10541 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
10542 (rs6000_emit_prologue): Set it.
10543 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
10545 2015-07-31 Richard Biener <rguenther@suse.de>
10547 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
10548 -> X == (C1 ^ C2) which is already implemented in match.pd.
10549 Remove redundant dispatching to fold_relational_const.
10550 Move unordered self and NaN compares ...
10551 * match.pd: ... as patterns here. Remove some stray captures
10554 2015-07-31 Petr Murzin <petr.murzin@intel.com>
10556 * config/i386/i386.c
10557 (bdesc_special_args): Convert mask type from signed to unsigned for
10559 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
10560 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
10561 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
10562 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
10563 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
10564 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
10565 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
10566 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
10567 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
10568 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
10569 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
10570 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
10571 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
10572 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
10573 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
10574 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
10575 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
10576 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
10577 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
10578 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
10579 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
10580 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
10581 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
10582 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
10583 * config/i386/i386-builtin-types.def
10584 (V16QI_FTYPE_V16SI): Remove.
10585 (V8DF_FTYPE_V8SI): Ditto.
10586 (V8HI_FTYPE_V8DI): Ditto.
10587 (V8SI_FTYPE_V8DI): Ditto.
10588 (V8SF_FTYPE_V8DF): Ditto.
10589 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
10590 (V16HI_FTYPE_V16SI): Ditto.
10591 (V16SF_FTYPE_V16HI): Ditto.
10592 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
10593 (V16SF_FTYPE_V16SI): Ditto.
10594 (V4DI_FTYPE_V4DI): Ditto.
10595 (V16SI_FTYPE_V16SF): Ditto.
10596 (V16SF_FTYPE_FLOAT): Ditto.
10597 (V8DF_FTYPE_DOUBLE): Ditto.
10598 (V8DI_FTYPE_INT64): Ditto.
10599 (V8DI_FTYPE_V4DI): Ditto.
10600 (V16QI_FTYPE_V8DI): Ditto.
10601 (UINT_FTYPE_V4SF): Ditto.
10602 (UINT64_FTYPE_V4SF): Ditto.
10603 (UINT_FTYPE_V2DF): Ditto.
10604 (UINT64_FTYPE_V2DF): Ditto.
10605 (V16SI_FTYPE_V16SI): Ditto.
10606 (V8DI_FTYPE_V8DI): Ditto.
10607 (V16SI_FTYPE_PV4SI): Ditto.
10608 (V16SF_FTYPE_PV4SF): Ditto.
10609 (V8DI_FTYPE_PV2DI): Ditto.
10610 (V8DF_FTYPE_PV2DF): Ditto.
10611 (V4DI_FTYPE_PV2DI): Ditto.
10612 (V4DF_FTYPE_PV2DF): Ditto.
10613 (V16SI_FTYPE_PV2SI): Ditto.
10614 (V16SF_FTYPE_PV2SF): Ditto.
10615 (V8DI_FTYPE_PV4DI): Ditto.
10616 (V8DF_FTYPE_PV4DF): Ditto.
10617 (V8SF_FTYPE_FLOAT): Ditto.
10618 (V4SF_FTYPE_FLOAT): Ditto.
10619 (V4DF_FTYPE_DOUBLE): Ditto.
10620 (V8SF_FTYPE_PV4SF): Ditto.
10621 (V8SI_FTYPE_PV4SI): Ditto.
10622 (V4SI_FTYPE_PV2SI): Ditto.
10623 (V8SF_FTYPE_PV2SF): Ditto.
10624 (V8SI_FTYPE_PV2SI): Ditto.
10625 (V16SF_FTYPE_PV8SF): Ditto.
10626 (V16SI_FTYPE_PV8SI): Ditto.
10627 (V8DI_FTYPE_V8SF): Ditto.
10628 (V4DI_FTYPE_V4SF): Ditto.
10629 (V2DI_FTYPE_V4SF): Ditto.
10630 (V64QI_FTYPE_QI): Ditto.
10631 (V32HI_FTYPE_HI): Ditto.
10632 (V8UHI_FTYPE_V8UHI): Ditto.
10633 (V16UHI_FTYPE_V16UHI): Ditto.
10634 (V32UHI_FTYPE_V32UHI): Ditto.
10635 (V2UDI_FTYPE_V2UDI): Ditto.
10636 (V4UDI_FTYPE_V4UDI): Ditto.
10637 (V8UDI_FTYPE_V8UDI): Ditto.
10638 (V4USI_FTYPE_V4USI): Ditto.
10639 (V8USI_FTYPE_V8USI): Ditto.
10640 (V16USI_FTYPE_V16USI): Ditto.
10641 (V2DF_FTYPE_V2DF_UINT64): Ditto.
10642 (V2DI_FTYPE_V2DF_V2DF): Ditto.
10643 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
10644 (V8DF_FTYPE_V8DF_V8DI): Ditto.
10645 (V4SF_FTYPE_V4SF_UINT64): Ditto.
10646 (V4SI_FTYPE_V4SF_V4SF): Ditto.
10647 (V16SF_FTYPE_V16SF_V16SI): Ditto.
10648 (V64QI_FTYPE_V32HI_V32HI): Ditto.
10649 (V32HI_FTYPE_V16SI_V16SI): Ditto.
10650 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
10651 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
10652 (V32HI_FTYPE_V64QI_V64QI): Ditto.
10653 (V32HI_FTYPE_V32HI_V32HI): Ditto.
10654 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
10655 (V16SI_FTYPE_V16SI_V4SI): Ditto.
10656 (V16SI_FTYPE_V16SI_V16SI): Ditto.
10657 (V16SI_FTYPE_V32HI_V32HI): Ditto.
10658 (V16SI_FTYPE_V16SI_SI): Ditto.
10659 (V8DI_FTYPE_V8DI_V8DI): Ditto.
10660 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
10661 (V8DI_FTYPE_V16SI_V16SI): Ditto.
10662 (V8DI_FTYPE_V8DI_V2DI): Ditto.
10663 (QI_FTYPE_QI): Ditto.
10664 (SI_FTYPE_SI): Ditto.
10665 (DI_FTYPE_DI): Ditto.
10666 (QI_FTYPE_QI_QI): Ditto.
10667 (QI_FTYPE_QI_INT): Ditto.
10668 (HI_FTYPE_HI_INT): Ditto.
10669 (SI_FTYPE_SI_INT): Ditto.
10670 (DI_FTYPE_DI_INT): Ditto.
10671 (HI_FTYPE_V16QI_V16QI): Ditto.
10672 (SI_FTYPE_V32QI_V32QI): Ditto.
10673 (DI_FTYPE_V64QI_V64QI): Ditto.
10674 (QI_FTYPE_V8HI_V8HI): Ditto.
10675 (HI_FTYPE_V16HI_V16HI): Ditto.
10676 (SI_FTYPE_V32HI_V32HI): Ditto.
10677 (QI_FTYPE_V4SI_V4SI): Ditto.
10678 (QI_FTYPE_V8SI_V8SI): Ditto.
10679 (QI_FTYPE_V2DI_V2DI): Ditto.
10680 (QI_FTYPE_V4DI_V4DI): Ditto.
10681 (QI_FTYPE_V8DI_V8DI): Ditto.
10682 (HI_FTYPE_V16SI_V16SI): Ditto.
10683 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
10684 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
10685 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
10686 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
10687 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
10688 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
10689 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
10690 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
10691 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
10692 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
10693 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
10694 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
10695 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
10696 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
10697 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
10698 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
10699 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
10700 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
10701 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
10702 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
10703 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
10704 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
10705 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
10706 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
10707 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
10708 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
10709 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
10710 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
10711 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
10712 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
10713 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
10714 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
10715 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
10716 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
10717 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
10718 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
10719 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
10720 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
10721 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
10722 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
10723 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
10724 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
10725 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
10726 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
10727 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
10728 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
10729 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
10730 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
10731 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
10732 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
10733 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
10734 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
10735 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
10736 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
10737 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
10738 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
10739 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
10740 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
10741 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
10742 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
10743 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
10744 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
10745 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
10746 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
10747 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
10748 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
10749 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
10750 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
10751 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
10752 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
10753 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
10754 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
10755 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
10756 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
10757 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
10758 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
10759 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
10760 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
10761 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
10762 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
10763 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
10764 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
10765 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
10766 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
10767 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
10768 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
10769 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
10770 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
10771 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
10772 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
10773 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
10774 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
10775 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
10776 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
10777 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
10778 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
10779 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
10780 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
10781 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
10782 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
10783 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
10784 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
10785 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
10786 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
10787 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
10788 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
10789 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
10790 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
10791 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
10792 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
10793 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
10794 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
10795 (HI_FTYPE_HI): Ditto.
10796 (HI_FTYPE_V16QI): Ditto.
10797 (SI_FTYPE_V32QI): Ditto.
10798 (DI_FTYPE_V64QI): Ditto.
10799 (QI_FTYPE_V8HI): Ditto.
10800 (HI_FTYPE_V16HI): Ditto.
10801 (SI_FTYPE_V32HI): Ditto.
10802 (QI_FTYPE_V4SI): Ditto.
10803 (QI_FTYPE_V8SI): Ditto.
10804 (HI_FTYPE_V16SI): Ditto.
10805 (QI_FTYPE_V2DI): Ditto.
10806 (QI_FTYPE_V4DI): Ditto.
10807 (QI_FTYPE_V8DI): Ditto.
10808 (V16QI_FTYPE_HI): Ditto.
10809 (V32QI_FTYPE_SI): Ditto.
10810 (V64QI_FTYPE_DI): Ditto.
10811 (V8HI_FTYPE_QI): Ditto.
10812 (V16HI_FTYPE_HI): Ditto.
10813 (V32HI_FTYPE_SI): Ditto.
10814 (V4SI_FTYPE_QI): Ditto.
10815 (V4SI_FTYPE_HI): Ditto.
10816 (V8SI_FTYPE_QI): Ditto.
10817 (V8SI_FTYPE_HI): Ditto.
10818 (V2DI_FTYPE_QI): Ditto.
10819 (V4DI_FTYPE_QI): Ditto.
10820 (HI_FTYPE_HI_HI): Ditto.
10821 (SI_FTYPE_SI_SI): Ditto.
10822 (DI_FTYPE_DI_DI): Ditto.
10823 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
10824 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
10825 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
10826 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
10827 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
10828 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
10829 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
10830 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
10831 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
10832 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
10833 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
10834 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
10835 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
10836 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
10837 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
10838 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
10839 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
10840 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
10841 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
10842 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
10843 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
10844 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
10845 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
10846 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
10847 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
10848 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
10849 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
10850 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
10851 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
10852 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
10853 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
10854 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
10855 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
10856 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
10857 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
10858 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
10859 (V16SI_FTYPE_HI): Ditto.
10860 (V8DI_FTYPE_QI): Ditto.
10861 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
10862 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
10863 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
10864 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
10865 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
10866 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
10867 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
10868 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
10869 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
10870 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
10871 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
10872 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
10873 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
10874 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
10875 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
10876 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
10877 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
10878 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
10879 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
10880 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
10881 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
10882 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
10883 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
10884 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
10885 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
10886 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
10887 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
10888 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
10889 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
10890 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
10891 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
10892 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
10893 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
10894 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
10895 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
10896 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
10897 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
10898 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
10899 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
10900 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
10901 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
10902 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
10903 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
10904 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
10905 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
10906 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
10907 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
10908 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
10909 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
10910 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
10911 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
10912 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
10913 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
10914 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
10915 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
10916 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
10917 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
10918 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
10919 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
10920 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
10921 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
10922 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
10923 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
10924 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
10925 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
10926 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
10927 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
10928 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
10929 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
10930 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
10931 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
10932 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
10933 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
10934 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
10935 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
10936 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
10937 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
10938 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
10939 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
10940 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
10941 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
10942 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
10943 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
10944 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
10945 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
10946 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
10947 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
10948 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
10949 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
10950 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
10951 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
10952 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
10953 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
10954 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
10955 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
10956 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
10957 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
10958 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
10959 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
10960 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
10961 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
10962 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
10963 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
10964 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
10965 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
10966 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
10967 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
10968 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
10969 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
10970 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
10971 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
10972 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
10973 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
10974 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
10975 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
10976 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
10977 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
10978 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
10979 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
10980 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
10981 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
10982 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
10983 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
10984 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
10985 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
10986 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
10987 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
10988 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
10989 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
10990 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
10991 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
10992 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
10993 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
10994 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
10995 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
10996 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
10997 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
10998 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
10999 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
11000 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
11001 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
11002 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
11003 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
11004 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
11005 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
11006 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
11007 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
11008 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
11009 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
11010 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
11011 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
11012 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
11013 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
11014 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
11015 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
11016 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
11017 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
11018 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
11019 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
11020 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
11021 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
11022 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
11023 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
11024 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
11025 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
11026 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
11027 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
11028 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
11029 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
11030 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
11031 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
11032 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
11033 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
11034 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
11035 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
11036 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
11037 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
11038 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
11039 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
11040 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
11041 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
11042 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
11043 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
11044 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
11045 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
11046 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
11047 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
11048 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
11049 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
11050 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
11051 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
11052 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
11053 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
11054 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
11055 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
11056 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
11057 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
11058 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
11059 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
11060 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
11061 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
11062 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
11063 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
11064 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
11065 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
11066 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
11067 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
11068 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
11069 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
11070 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
11071 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
11072 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
11073 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
11074 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
11075 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
11076 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
11077 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
11078 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
11079 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
11080 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
11081 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
11082 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
11083 (QI_FTYPE_V8DF_INT_QI): Ditto.
11084 (QI_FTYPE_V4DF_INT_QI): Ditto.
11085 (QI_FTYPE_V2DF_INT_QI): Ditto.
11086 (HI_FTYPE_V16SF_INT_HI): Ditto.
11087 (QI_FTYPE_V8SF_INT_QI): Ditto.
11088 (QI_FTYPE_V4SF_INT_QI): Ditto.
11089 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
11091 2015-07-31 Richard Biener <rguenther@suse.de>
11093 * gimple-fold.c (fold_gimple_assign): Remove folding of
11096 2015-07-31 Tom de Vries <tom@codesourcery.com>
11098 PR tree-optimization/66846
11099 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
11100 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
11101 (expand_omp_target) [ENABLE_CHECKING]: Same.
11102 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
11103 cfun if !LOOPS_NEED_FIXUP.
11104 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
11105 that omp_for already has its own loop struct.
11106 * tree-parloops.c (create_phi_for_local_result)
11107 (create_call_for_reduction): Handle simple latch bb.
11108 (create_parallel_loop): Add simple latch bb to preserve
11109 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
11110 (gen_parallel_loop): Remove call to cancel_loop_tree.
11111 (parallelize_loops): Skip loops that are inner loops of parallelized
11113 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
11114 verify_loop_structure.
11116 2015-07-30 Anatoly Sokolov <aesok@post.ru>
11118 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
11119 * config/v850/v850.md (RV_REGNUM): New constants.
11120 * config/v850/v850.c (v850_libcall_value): New functions.
11121 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
11122 (TARGET_LIBCALL_VALUE): Define.
11124 2015-07-30 Anatoly Sokolov <aesok@post.ru>
11126 * rtl.h (lowpart_subreg): Move in file.
11127 * loop-iv.c (lowpart_subreg): Move to...
11128 * simplify-rtx.c (lowpart_subreg): ...here.
11129 (simplify_binary_operation_1): Use lowpart_subreg instead of
11130 simplify_gen_subreg.
11131 * expr.c (expand_expr_real_2): Ditto.
11132 * emit-rtl.c (gen_lowpart_common): Ditto.
11133 * combine.c (gen_lowpart_for_combine): Ditto.
11134 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
11135 expand_debug_source_expr): Ditto.
11137 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
11139 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
11140 (expand_builtin_atomic_clear): Remove support for atomic_clear
11143 2015-07-30 Richard Biener <rguenther@suse.de>
11145 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
11146 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
11147 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
11148 redundant operand canonicalization.
11150 2015-07-30 David Sherwood <david.sherwood@arm.com>
11152 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
11153 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
11154 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
11155 * config/arm/arm.c (neon_valid_immediate): Likewise.
11156 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
11157 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
11158 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
11159 (expand_vec_perm_vpshufb2_vpermq): Likewise.
11160 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
11161 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
11162 * config/i386/sse.md
11163 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
11164 (*ssse3_palignr<mode>_perm): Likewise.
11165 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
11166 * config/spu/spu.c (arith_immediate_p): Likewise.
11167 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11168 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
11170 2015-07-30 Richard Biener <rguenther@suse.de>
11172 * genmatch.c (decision_tree::gen_gimple): Merge with ...
11173 (decision_tree::gen_generic): ... this into ...
11174 (decision_tree::gen): ... this.
11175 (main): Adjust callers.
11177 2015-07-30 Richard Biener <rguenther@suse.de>
11179 * genmatch.c (verbose): New global.
11180 (warning_at): Add overload with source_location.
11181 (capture_info::capture_info): Add bool whether generating gimple
11182 or generic. Add gimple member.
11183 (capture_info::cinfo): Add capture member.
11184 (capture_info::walk_match): Record capture. Warn on
11185 non-captured leafs.
11186 (capture_info::walk_c_expr): Add more fragments captures cannot
11187 escape through. Warn on escaped captures.
11188 (dt_simplify::gen_1): Warn on operands we force to have no
11190 (main): Initialize verbose.
11191 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
11193 2015-07-30 Richard Biener <rguenther@suse.de>
11195 PR middle-end/67053
11196 * match.pd: Allow both operands to independently have conversion
11197 when simplifying compares of addresses.
11199 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
11203 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
11204 around those cases that need one.
11206 2015-07-29 Aditya Kumar <hiraditya@msn.com>
11208 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
11210 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
11212 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
11213 New. Copied from config/i386/gnu-user.h.
11214 (ASM_COMMENT_START): Likewise.
11215 (DBX_REGISTER_NUMBER): Likewise.
11217 2015-07-29 Richard Biener <rguenther@suse.de>
11219 * gimple-fold.c (fold_gimple_cond): Remove.
11220 (fold_stmt_1): Do not call it.
11222 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
11224 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
11225 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
11227 * config/aarch64/aarch64-modes.def: Add HFmode.
11229 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11230 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
11232 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
11233 aarch64_promoted_type): New.
11235 (aarch64_float_const_representable_p): Disable HFmode.
11236 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
11237 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
11238 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
11240 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
11241 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
11243 * config/aarch64/iterators.md (GPF_F16): New.
11245 2015-07-29 Richard Biener <rguenther@suse.de>
11247 * match.pd: Merge address comparison patterns and make them
11248 handle some more cases.
11250 2015-07-29 Richard Biener <rguenther@suse.de>
11252 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
11253 (parser::parse_capture): Add bool argument on whether to reject
11255 (parser::parse_expr): Adjust.
11256 (parser::parse_op): Likewise.
11257 (parser::parse_pattern): Likewise.
11259 2015-07-29 Richard Biener <rguenther@suse.de>
11261 * gimple-fold.c (has_use_on_stmt): New function.
11262 (replace_stmt_with_simplification): Use it to allow
11263 abnormals originally referenced in the stmt.
11264 (fold_stmt_1): Canonicalize operand order.
11266 2015-07-28 David Sherwood <david.sherwood@arm.com>
11268 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
11269 GET_MODE_INNER unconditionally.
11270 * config/spu/spu.c (arith_immediate_p): Likewise.
11271 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
11272 * expmed.c (synth_mult): Remove check for VOIDmode result from
11274 (expand_mult_const): Likewise.
11275 * fold-const.c (fold_binary_loc): Replace call to element_precision
11276 with call to GET_MODE_PRECISION.
11277 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
11279 (emit_mode_inner): Likewise.
11280 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
11282 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
11283 (GET_MODE_UNIT_PRECISION): Likewise.
11284 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
11285 * simplify-rtx.c (simplify_immed_subreg): Likewise.
11286 * stor-layout.c (bitwise_type_for_mode): Update assert.
11287 (element_precision): Remove.
11289 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11291 * target-insns.def (reload_load_address): New targetm instruction
11293 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
11295 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11297 * target-insns.def (atomic_test_and_set): New targetm instruction
11299 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
11300 HAVE_*/gen_* interface.
11302 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11304 * target-insns.def (can_extend, ptr_extend): New targetm instruction
11306 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
11307 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
11308 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
11309 * rtlanal.c (nonzero_bits1): Likewise.
11310 (num_sign_bit_copies1): Likewise.
11312 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11314 * target-insns.def (eh_return): New targetm instruction pattern.
11315 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
11317 * function.c (thread_prologue_and_epilogue_insns): Remove
11318 preprocessor condition.
11320 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11322 * target-insns.def (indirect_jump): New targetm instruction pattern.
11323 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
11326 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11328 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
11329 instead of nonimmediate_operand. Remove C condiition.
11331 2015-07-28 Richard Biener <rguenther@suse.de>
11333 * match.pd: Add more simplification of address comparisons.
11335 2015-07-28 Richard Biener <rguenther@suse.de>
11337 * match.pd: Re-order two cases in comparison with max/min
11338 value simplification to make it apply for bools.
11340 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11342 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
11343 Handle simple SIGN_EXTEND or ZERO_EXTEND.
11344 (aarch64_rtx_costs): Properly strip extend or extract before
11345 passing down to rtx costs again.
11347 2015-07-28 Nick Clifton <nickc@redhat.com>
11349 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
11350 Optimizes the case where -mes0 is active and a constant symbolic
11352 * config/rl78/rl78-protos.h: Prototype the new function.
11353 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
11355 2015-07-28 Tom de Vries <tom@codesourcery.com>
11357 * tree-parloops.c (reduc_stmt_res): New function.
11358 (initialize_reductions, add_field_for_reduction)
11359 (create_phi_for_local_result, create_loads_for_reductions)
11360 (create_stores_for_reduction, build_new_reduction): Handle case that
11361 reduc_stmt is a phi.
11362 (gather_scalar_reductions): Allow double_reduc reductions.
11364 2015-07-28 Richard Biener <rguenther@suse.de>
11366 * fold-const.c (fold_comparison): Remove equality folding
11367 of decl addresses ...
11368 * match.pd: ... here and merge with existing pattern.
11370 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
11372 PR tree-optimization/66828
11373 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
11374 from int64_t to uint64_t.
11376 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
11378 * opts-common.c (read_cmdline_option): List DriverOnly enum values
11379 as valid only in the error message of the driver, not in the
11380 messages of the language compilers.
11382 2015-07-27 Tom de Vries <tom@codesourcery.com>
11384 * tree-parloops.c (gather_scalar_reductions): Simplify function
11387 2015-07-27 Marek Polacek <polacek@redhat.com>
11389 * ipa-devirt.c (types_same_for_odr): Fix typo.
11391 2015-07-27 Jason Merrill <jason@redhat.com>
11394 * dwarf2out.c (gen_inlined_subroutine_die): Check
11395 cgraph_function_possibly_inlined_p.
11397 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
11399 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
11400 Place integer variant first.
11401 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
11403 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
11406 * config/arm/arm-builtins.c (enum arm_builtins):
11407 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
11408 (ARM_BUILTIN_NEON_BASE): Rename macro to....
11409 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
11410 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
11411 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
11413 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
11416 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
11417 Add qualifier_lane_index.
11418 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
11419 (arm_getlane_qualifiers): Use qualifier_lane_index.
11420 (arm_lanemac_qualifiers): Rename to...
11421 (arm_mac_n_qualifiers): ...this.
11422 (LANEMAC_QUALIFIERS): Rename to...
11423 (MAC_N_QUALIFIERS): ...this.
11424 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
11425 (arm_setlane_qualifiers): Use qualifier_lane_index.
11426 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
11427 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
11428 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
11429 (arm_expand_neon_builtin): Handle qualifier_lane_index.
11431 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
11432 * config/arm/arm.c (bounds_check): Likewise, improve error message.
11433 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
11434 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
11435 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
11436 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
11437 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
11438 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
11439 qualifiers to TERNOP_IMM.
11440 (vdup_lane): Change qualifiers to GETLANE.
11441 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
11442 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
11443 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
11444 vqdmlsl_n): Change qualifiers to MAC_N.
11446 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
11447 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
11448 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
11449 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
11450 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
11451 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
11452 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
11453 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
11454 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
11455 Remove call to neon_lane_bounds.
11457 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
11459 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
11460 Place integer variant first.
11462 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
11464 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
11465 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
11466 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
11467 for armv6kz targets.
11468 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
11469 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
11470 (FL_FOR_ARCH6ZK): Remove.
11471 (FL_FOR_ARCH6KZ): New.
11472 (arm_arch6zk): New declaration.
11473 * config/arm/arm-tables.opt: Regenerate.
11474 * config/arm/arm.c (arm_arch6kz): New.
11475 (arm_option_override): Set arm_arch6kz.
11476 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
11477 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
11478 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
11480 2015-07-27 Marek Polacek <polacek@redhat.com>
11484 * doc/invoke.texi: Document -Wtautological-compare.
11486 2015-07-27 Richard Biener <rguenther@suse.de>
11488 * genmatch.c (decision_tree::gen_gimple): Split out large
11489 subtrees into separate functions.
11490 (decision_tree::gen_generic): Likewise.
11492 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
11494 * config/alpha/alpha.c: Use SUBREG_P predicate.
11495 * config/alpha/predicates.md: Ditto.
11497 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
11499 * config.host (s390*-*-*): Include driver-native.c only when
11500 building with s390* as host *and* target.
11502 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
11505 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
11506 T bit register modified_between_p check.
11508 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11510 * config/i386/i386.c: Use SUBREG_P predicate.
11511 * config/i386/i386.md: Ditto.
11512 * config/i386/sse.md: Ditto.
11513 * config/i386/predicates.md: Ditto.
11515 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11518 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
11519 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
11521 2015-07-25 Sebastian Pop <s.pop@samsung.com>
11523 * Makefile.in: Remove use of TREEBROWSER.
11524 * config.in: Regenerated.
11525 * configure: Regenerated.
11526 * configure.ac: Remove definition of TREEBROWSER.
11527 * tree-browser.c: Removed.
11528 * tree-browser.def: Removed.
11530 2015-07-25 Sebastian Pop <s.pop@samsung.com>
11532 * graphite-scop-detection.c: Include gimple-pretty-print.h.
11533 (stmt_simple_for_scop_p): Print when a stmt is not handled in
11535 (scopdet_basic_block_info): Print when a loop or bb cannot be
11536 represented in Graphite.
11538 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11541 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
11542 execution guard when min_size is less than size_needed.
11544 2015-07-25 Sebastian Pop <s.pop@samsung.com>
11546 * doc/install.texi: Document supported versions of ISL.
11548 2015-07-25 Jeff Law <law@redhat.com>
11552 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11553 unable to find X NE 0 in the tables, return X as the simplified
11555 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11556 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
11557 to VISISTED_BBS. */
11558 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11559 after removing the control flow statement and unnecessary edges.
11561 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
11564 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
11566 PR rtl-optimization/64164
11567 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11568 * tree-ssa-copyrename.c: Removed.
11569 * opts.c (default_options_table): Drop -ftree-copyrename. Add
11570 -ftree-coalesce-vars.
11571 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11572 * common.opt (ftree-copyrename): Ignore.
11573 (ftree-coalesce-inlined-vars): Likewise.
11574 * doc/invoke.texi: Remove the ignored options above.
11575 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11576 * tree-ssa-coalesce.h: ... here.
11577 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11578 headers required by it.
11579 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11580 across variables when flag_tree_coalesce_vars. Check register
11581 use and promoted modes to allow coalescing. Moved to
11582 tree-ssa-coalesce.c.
11583 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11584 with its member functions to tree-ssa-coalesce.c.
11585 (var_map_base_init): Likewise. Renamed to
11586 compute_samebase_partition_bases.
11587 (partition_view_normal): Drop want_bases parameter.
11588 (partition_view_bitmap): Likewise.
11589 * tree-ssa-live.h: Adjust declarations.
11590 * tree-ssa-coalesce.c: Include explow.h.
11591 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11592 default defs at the entry point.
11593 (dump_part_var_map): New.
11594 (compute_optimized_partition_bases): New, called by...
11595 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11596 of compute_samebase_partition_bases. Adjust.
11597 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11598 * cfgexpand.c (leader_merge): New.
11599 (get_rtl_for_parm_ssa_default_def): New.
11600 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11601 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11602 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
11603 redundant MEM attr setting.
11604 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
11606 (expand_one_stack_var): ... this. New wrapper to check and
11607 skip already expanded SSA partitions.
11608 (record_alignment_for_reg_var): New, factored out of...
11609 (expand_one_var): ... this.
11610 (expand_one_ssa_partition): New.
11611 (adjust_one_expanded_partition_var): New.
11612 (expand_one_register_var): Check and skip already expanded SSA
11614 (expand_used_vars): Don't create DECLs for anonymous SSA
11615 names. Expand all SSA partitions, then adjust all SSA names.
11616 (pass::execute): Replace the loops that set
11617 SA.partition_to_pseudo from partition leaders and cleared
11618 DECL_RTL for multi-location variables, and that which used to
11619 rename vars and set attrs, with one that clears DECL_RTL and
11620 checks that PARMs and RESULTs default_defs match DECL_RTL.
11621 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11622 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11623 * explow.c (promote_ssa_mode): New.
11624 * explow.h (promote_ssa_mode): Declare.
11625 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11626 * function.c: Include cfgexpand.h.
11627 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11628 (use_register_for_parm_decl): Wrapper for the above to
11629 special-case the result_ptr.
11630 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11631 (split_complex_args): Take assign_parm_data_all argument.
11632 Pass it to rtl_for_parm. Set up rtl and context for split
11634 (assign_parms_augmented_arg_list): Adjust.
11635 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11636 multiple locations. Recognize split complex args.
11637 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11638 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
11639 (assign_parm_setup_block): Prefer SSA-assigned location.
11640 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
11641 if stack_parm is NULL.
11642 (assign_parm_setup_stack): Prefer SSA-assigned location.
11643 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
11644 rtl before testing for pointer bounds. Special-case result_ptr.
11645 (expand_function_start): Maybe reset DECL_RTL of result.
11646 Prefer SSA-assigned location for result and static chain.
11647 Factor out DECL_RESULT and SET_DECL_RTL.
11648 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11649 anonymous SSA names. Use promote_ssa_mode.
11650 (get_temp_reg): Likewise.
11651 (remove_ssa_form): Adjust.
11652 * stor-layout.c (layout_decl): Don't set mem attributes of
11654 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11655 and get its reg_usage for reg invalidation.
11656 (compute_bb_dataflow): Pass it insn.
11657 (emit_notes_in_bb): Likewise.
11659 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11661 * config/i386/i386.c (ix86_va_start): Remove
11662 unneeded !TARGET_64BIT check.
11663 (ix86_gimplify_va_arg): Ditto.
11665 2015-07-24 Tom de Vries <tom@codesourcery.com>
11667 * graphite-sese-to-poly.c (build_poly_scop): Always call
11668 rewrite_commutative_reductions_out_of_ssa.
11670 2015-07-24 Tom de Vries <tom@codesourcery.com>
11672 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
11673 flag_associative_math to FLOAT_TYPE_P. Honour
11674 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
11676 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
11679 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
11680 and "%qD" in warning_at instead of "%q+D" in warning.
11682 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
11684 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
11685 (ix86_function_abi): Cleanup.
11687 2015-07-24 Michael Darling <darlingm@gmail.com>
11690 * acinclude.m4: Reflects renaming of configure.in to configure.ac
11691 * configure: Likewise
11692 * configure.ac: Likewise
11693 * doc/install.texi: Likewise
11694 * doc/tm.texi: Likewise
11695 * doc/tm.texi.in: Likewise
11697 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11699 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
11700 manually swapping values.
11701 * cse.c (fold_rtx): Likewise.
11702 * lra-eliminations.c (form_sum): Likewise.
11704 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
11707 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
11708 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
11709 (*jcc_1, *jcc_2, jump, simple_return_internal)
11710 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
11711 Set length_nobnd attribute instead of length attribute.
11712 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
11713 (length_nobnd): Remove attribute.
11714 (length): Remove length_nobnd processing.
11716 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
11718 * gimplify.c (omp_default_clause): New function. Reorganize flow
11719 for clarity. Broken out of ...
11720 (omp_notice_variable): ... here.
11722 2015-07-24 Gary Funck <gary@intrepid.com>
11724 PR middle-end/66984
11725 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
11726 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
11728 2015-07-24 Tom de Vries <tom@codesourcery.com>
11730 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
11731 exit-first loop transform.
11733 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
11736 * tree-cfg.c (struct replace_decls_d): New struct.
11737 (replace_block_vars_by_duplicates_1): New function.
11738 (replace_block_vars_by_duplicates): Use it to replace the decls
11739 in the value exprs by duplicates.
11741 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
11743 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
11744 -shared, -symbolic, -rdynamic.
11746 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
11749 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
11750 -dynamic-linker within %{!static %{!shared, and -rdynamic within
11753 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
11756 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
11757 edge summary is available.
11759 2015-07-24 Richard Biener <rguenther@suse.de>
11761 * genmatch.c (struct dt_node): Add statistic fields.
11762 (dt_node::analyze): New method.
11763 (decision_tree::gen_gimple): Call analyze on the root node
11764 and print statistics to stderr.
11765 (decision_tree::gen_generic): Likewise.
11767 2015-07-24 Richard Biener <rguenther@suse.de>
11769 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
11770 against the highest or lowest possible integer ...
11771 * match.pd: ... as patterns here.
11773 2015-07-24 Richard Biener <rguenther@suse.de>
11775 * genmatch.c (struct capture_info): Add same_as field.
11776 (capture_info::capture_info): Initialize same_as.
11777 (capture_info::walk_match): Compute same_as.
11778 (capture_info::walk_result): Compute stuff for the leader.
11779 (capture_info::walk_c_expr): Likewise.
11780 (dt_simplify::gen_1): Only look at leaders when deciding
11781 to force no side-effects or emit side-effects of omitted operands.
11783 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11785 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
11786 reg note to the GPR -> FPR save instructions.
11788 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11790 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
11792 (s390_expand_insv): Don't generate risbg pattern for constant zero
11794 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
11795 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
11798 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11800 * config/s390/s390.c (s390_reorg): Clean up handling of processors
11803 (s390_issue_rate): Likewise.
11804 (s390_sched_reorder): Likewise.
11805 (s390_sched_variable_issue): Likewise.
11806 (s390_loop_unroll_adjust): Likewise.
11807 (s390_option_override): Likewise.
11809 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11811 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
11812 processor capabilities with -march=native.
11813 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
11814 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
11815 (S390_TARGET_BITS_STRING): Macro to simplify specs.
11817 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11819 * config/s390/s390.c (s390_issue_rate): Handle
11820 PROCESSOR_2094_Z9_EC.
11821 (s390_option_override): Likewise.
11822 (s390_adjust_priority): Likewise.
11824 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11826 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
11827 when cross compiling.
11829 2015-07-24 Richard Biener <rguenther@suse.de>
11831 * fold-const.c (maybe_canonicalize_comparison_1): Move
11832 A code CST canonicalization ...
11833 * match.pd: ... to a pattern here.
11835 2015-07-24 Jiong Wang <jiong.wang@arm.com>
11838 2015-07-22 Jiong Wang <jiong.wang@arm.com>
11840 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
11841 (HONOR_REG_ALLOC_ORDER): Define.
11843 2015-07-24 Richard Biener <rguenther@suse.de>
11845 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
11846 * fold-const.c (fold_comparison): Move parameter does not
11847 alias &local simplification ...
11848 * match.pd: ... as a pattern here.
11850 2015-07-24 Richard Biener <rguenther@suse.de>
11852 * gimple-fold.c (replace_stmt_with_simplification): Special-case
11853 valueizing call operands.
11854 * gimple-match-head.c (maybe_push_res_to_seq): Take
11855 number of call arguments from ops array.
11856 (do_valueize): New function.
11857 (gimple_simplify): Return true if valueization changed
11858 any operand even if the result didn't simplify further.
11860 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11862 PR middle-end/25530
11863 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
11865 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11867 PR middle-end/25529
11868 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
11870 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11872 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
11875 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11877 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
11880 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
11882 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
11883 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
11885 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
11886 ms_va_list_type_node initialization.
11888 2015-07-23 Jeff Law <law@redhat.com>
11891 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11892 unable to find X NE 0 in the tables, return X as the simplified
11894 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11895 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
11896 to VISISTED_BBS. */
11897 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11898 after removing the control flow statement and unnecessary edges.
11900 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
11902 * tree-pass.h (get_current_pass_name): Removed.
11904 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
11906 PR rtl-optimization/64164
11907 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11908 * tree-ssa-copyrename.c: Removed.
11909 * opts.c (default_options_table): Drop -ftree-copyrename. Add
11910 -ftree-coalesce-vars.
11911 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11912 * common.opt (ftree-copyrename): Ignore.
11913 (ftree-coalesce-inlined-vars): Likewise.
11914 * doc/invoke.texi: Remove the ignored options above.
11915 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11916 * tree-ssa-coalesce.h: ... here.
11917 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11918 headers required by it.
11919 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11920 across variables when flag_tree_coalesce_vars. Check register
11921 use and promoted modes to allow coalescing. Moved to
11922 tree-ssa-coalesce.c.
11923 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11924 with its member functions to tree-ssa-coalesce.c.
11925 (var_map_base_init): Likewise. Renamed to
11926 compute_samebase_partition_bases.
11927 (partition_view_normal): Drop want_bases parameter.
11928 (partition_view_bitmap): Likewise.
11929 * tree-ssa-live.h: Adjust declarations.
11930 * tree-ssa-coalesce.c: Include explow.h.
11931 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11932 default defs at the entry point.
11933 (dump_part_var_map): New.
11934 (compute_optimized_partition_bases): New, called by...
11935 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11936 of compute_samebase_partition_bases. Adjust.
11937 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11938 * cfgexpand.c (leader_merge): New.
11939 (get_rtl_for_parm_ssa_default_def): New.
11940 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11941 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11942 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
11943 redundant MEM attr setting.
11944 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
11946 (expand_one_stack_var): ... this. New wrapper to check and
11947 skip already expanded SSA partitions.
11948 (record_alignment_for_reg_var): New, factored out of...
11949 (expand_one_var): ... this.
11950 (expand_one_ssa_partition): New.
11951 (adjust_one_expanded_partition_var): New.
11952 (expand_one_register_var): Check and skip already expanded SSA
11954 (expand_used_vars): Don't create DECLs for anonymous SSA
11955 names. Expand all SSA partitions, then adjust all SSA names.
11956 (pass::execute): Replace the loops that set
11957 SA.partition_to_pseudo from partition leaders and cleared
11958 DECL_RTL for multi-location variables, and that which used to
11959 rename vars and set attrs, with one that clears DECL_RTL and
11960 checks that PARMs and RESULTs default_defs match DECL_RTL.
11961 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11962 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11963 * explow.c (promote_ssa_mode): New.
11964 * explow.h (promote_ssa_mode): Declare.
11965 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11966 * function.c: Include cfgexpand.h.
11967 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11968 (use_register_for_parm_decl): Wrapper for the above to
11969 special-case the result_ptr.
11970 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11971 (split_complex_args): Take assign_parm_data_all argument.
11972 Pass it to rtl_for_parm. Set up rtl and context for split
11974 (assign_parms_augmented_arg_list): Adjust.
11975 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11976 multiple locations. Recognize split complex args.
11977 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11978 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
11979 (assign_parm_setup_block): Prefer SSA-assigned location.
11980 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
11981 if stack_parm is NULL.
11982 (assign_parm_setup_stack): Prefer SSA-assigned location.
11983 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
11984 rtl before testing for pointer bounds. Special-case result_ptr.
11985 (expand_function_start): Maybe reset DECL_RTL of result.
11986 Prefer SSA-assigned location for result and static chain.
11987 Factor out DECL_RESULT and SET_DECL_RTL.
11988 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11989 anonymous SSA names. Use promote_ssa_mode.
11990 (get_temp_reg): Likewise.
11991 (remove_ssa_form): Adjust.
11992 * stor-layout.c (layout_decl): Don't set mem attributes of
11994 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11995 and get its reg_usage for reg invalidation.
11996 (compute_bb_dataflow): Pass it insn.
11997 (emit_notes_in_bb): Likewise.
11999 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
12002 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
12004 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
12005 (rs6000_emit_2insn_and): Handle dot forms.
12006 * config/rs6000/rs6000.md (and<mode>3): Adjust.
12007 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
12008 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
12010 2015-07-23 Richard Biener <rguenther@suse.de>
12012 * generic-match-head.c: Include cgraph.h.
12013 * gimple-match-head.c: Likewise.
12014 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
12016 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
12017 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
12020 2015-07-23 Richard Biener <rguenther@suse.de>
12022 * gimple-fold.c (fold_gimple_cond): Do not require folding
12023 results to pass valid_gimple_rhs_p.
12024 * tree-cfg.h (fold_cond_expr_cond): Remove.
12025 * tree-cfg.c (fold_cond_expr_cond): Likewise.
12026 (make_edges): Do not call it.
12027 * tree-inline.c (tree_function_versioning): Likewise.
12029 2015-07-23 Tom de Vries <tom@codesourcery.com>
12031 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
12032 vect_force_simple_reduction.
12033 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
12034 (vect_is_simple_reduction_1): Add and handle
12035 need_wrapping_integral_overflow parameter.
12036 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
12037 need_wrapping_integral_overflow parameter.
12038 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
12039 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
12042 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
12044 PR tree-optimization/66926,66951
12045 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
12046 INNER_LOOP and fix up condition for renaming virtual operands.
12048 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12050 * combine.c (try_combine): Use std::swap instead of manually
12053 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
12055 * config/mips/i6400.md: New file.
12056 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
12057 (mips64r6): Likewise.
12059 * config/mips/mips-tables.opt: Regenerate.
12060 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
12061 (mips_issue_rate): Add support for i6400.
12062 (mips_multipass_dfa_lookahead): Likewise.
12063 * config/mips/mips.h (TUNE_I6400): Define.
12064 * config/mips/mips.md: Include i6400.md.
12065 (processor): Add i6400.
12066 * doc/invoke.texi (-march=@var{arch}): Add i6400.
12068 2015-07-23 Richard Biener <rguenther@suse.de>
12070 PR middle-end/66916
12071 * match.pd: Guard widen and sign-change comparison simplification
12074 2015-07-23 Richard Biener <rguenther@suse.de>
12076 PR tree-optimization/66945
12077 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
12078 ::before_dom_children): Force the propagators idea of
12079 non-executable edges to materialize, not what the folder
12082 2015-07-23 Richard Biener <rguenther@suse.de>
12084 * gimple.h (gimple_cond_make_false): Use 0 != 0.
12085 (gimple_cond_make_true): Use 1 != 0.
12087 2015-07-22 DJ Delorie <dj@redhat.com>
12089 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
12092 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
12093 (ashrhi3): Likewise.
12094 (lshrhi3): Likewise.
12095 (movhi): Take advantage of zero-extend to load small constants.
12096 (movpsi): Likewise.
12097 (and<mode>3): Likewise.
12098 (zero_extendqihi2): Likewise.
12099 (zero_extendqisi2): New.
12100 * config/msp430/constraints.md (N,O): New.
12101 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
12103 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
12106 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
12107 to enum feature_priority and feature_list.
12108 (fold_builtin_cpu): Add F_AES to enum processor_features
12109 and isa_names_table.
12111 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
12114 * config/i386/linux-common.h (MPX_SPEC): Use linker option
12115 for 64bit target only.
12117 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
12119 * config/nvptx/nvptx.c: Expand some comments.
12121 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
12123 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
12124 (cortex_a53_advsimd): ...This.
12126 2015-07-22 Richard Biener <rguenther@suse.de>
12128 * genmatch.c (expr::gen_transform): Clarify error message
12129 and display location.
12131 2015-07-22 Richard Biener <rguenther@suse.de>
12133 * genmatch.c (struct operand): Add location member.
12134 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
12136 (struct simplify): Remove match_location and result_location
12138 (elsehwere): Adjust.
12140 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
12142 * config/mips/m5100.md: New file.
12143 * config/mips/mips-cpus.def (m5100, m5101): Define.
12144 * config/mips/mips-tables.opt: Regenerate.
12145 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
12146 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
12147 -march=m5101 to -mips32r5.
12148 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
12149 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
12151 * config/mips/mips.md: Include m5100.md.
12152 (processor): Add m5100.
12153 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
12155 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
12157 * config/mips/mips-cpus.def (interaptiv): Define.
12158 * config/mips/mips-tables.opt: Regenerate.
12159 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
12161 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
12162 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
12164 2015-07-22 Jiong Wang <jiong.wang@arm.com>
12167 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
12168 (HONOR_REG_ALLOC_ORDER): Define.
12170 2015-07-22 Richard Biener <rguenther@suse.de>
12172 PR tree-optimization/66952
12173 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
12174 blocks we end up executing unconditionally reset all SSA
12175 info such as range and alignment.
12176 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
12177 * tree-ssanames.c (reset_flow_sensitive_info): New function.
12179 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
12181 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
12184 2015-07-22 Richard Biener <rguenther@suse.de>
12186 * genmatch.c (parser::parse_result): Properly handle
12187 match with result operands and conditions.
12189 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
12192 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
12193 Add qualifier_struct_load_store_lane_index.
12194 (aarch64_types_loadstruct_lane_qualifiers): Use
12195 qualifier_struct_load_store_lane_index for lane index argument for
12197 (aarch64_types_storestruct_lane_qualifiers): Ditto.
12198 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
12199 (aarch64_simd_expand_args): Add new argument describing mode of
12200 builtin. Check lane bounds for arguments with
12201 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
12202 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
12203 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
12204 (aarch64_simd_expand_builtin): Handle arguments with
12205 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
12206 aarch64_simd_expand_args.
12207 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
12208 vst[234]_lane with BUILTIN_VALLDIF.
12209 * config/aarch64/aarch64-simd.md:
12210 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
12211 endianness reversal on lane index.
12212 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
12213 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
12214 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
12215 (vec_store_lanesci_lane<mode>): Ditto.
12216 (vec_store_lanesxi_lane<mode>): Ditto.
12217 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
12218 reversal of lane index.
12219 (aarch64_ld3_lane<mode>): Ditto.
12220 (aarch64_ld4_lane<mode>): Ditto.
12221 (aarch64_st2_lane<mode>): Ditto.
12222 (aarch64_st3_lane<mode>): Ditto.
12223 (aarch64_st4_lane<mode>): Ditto.
12224 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
12225 to qmode. Add new mode parameter. Update uses.
12226 (__LD3_LANE_FUNC): Ditto.
12227 (__LD4_LANE_FUNC): Ditto.
12228 (__ST2_LANE_FUNC): Ditto.
12229 (__ST3_LANE_FUNC): Ditto.
12230 (__ST4_LANE_FUNC): Ditto.
12232 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
12234 * doc/invoke.texi (Language Independent Options): Rename node to
12235 Diagnostic Message Formatting Options.
12237 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
12240 * lra-remat.c (operand_to_remat): Prevent using insns with input
12241 subregs processed separately by IRA.
12243 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
12245 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
12247 (single_imm_use): Check for iterator node.
12248 (num_imm_uses): Likewise.
12249 * tree-ssa-operands.c (has_zero_uses_1): Delete.
12250 (single_imm_use_1): Check for iterator node.
12252 2015-07-21 Mike Frysinger <vapier@gentoo.org>
12253 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12255 * configure.ac: Add check for new options in isl-0.15.
12256 * config.in, configure: Rebuilt.
12257 * graphite-blocking.c: Include <isl/constraint.h>
12258 * graphite-interchange.c, graphite-poly.c: Likewise.
12259 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
12260 * graphite.c: Likewise.
12261 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
12263 * graphite-dependences.c: Include <isl/constraint.h>.
12264 (max_number_of_out_dimensions): Returns isl_stat.
12265 (extend_schedule_1): Likewise
12266 (extend_schedule): Corresponding changes.
12267 * graphite-optimize-isl.c: Include <isl/constraint.h> and
12269 (getSingleMap): Change return type of isl_stat.
12270 (optimize_isl): Conditionally use
12271 isl_options_set_schedule_serialize_sccs.
12272 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
12273 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
12275 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
12278 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
12279 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
12281 2015-07-21 Richard Biener <rguenther@suse.de>
12283 PR tree-optimization/66948
12284 * genmatch.c (capture_info::walk_match): Also recurse to
12285 captures. Properly compute expr state from captures of
12287 * match.pd: Add single-use guards to
12288 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
12290 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
12292 * config/nvptx/mkoffload.c (process): Add static destructor call.
12294 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12296 PR middle-end/66915
12297 * match.pd (A - B -> A + (-B)): Don't allow folding
12298 when type if a fixed-point type.
12300 2015-07-20 DJ Delorie <dj@redhat.com>
12302 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
12303 (iorqi3_real): Likewise for set1.
12305 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
12307 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
12310 2015-07-20 Aditya Kumar <hiraditya@msn.com>
12312 * graphite-isl-ast-to-gimple.c:
12313 Refactor so that each function can access 'region'. This will help
12314 maintain a parameter rename_map within a region.
12316 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
12318 * config/rs6000/rs6000.md (*lt0_disi): New.
12320 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
12323 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
12324 "available letters" comment.
12325 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
12326 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
12327 and_2rld_operand): Delete.
12328 (and_operand): Adjust.
12329 (rotate_mask_operator): New.
12330 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
12331 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
12332 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
12333 extract_ME): Delete.
12334 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
12335 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
12336 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
12337 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
12338 rs6000_emit_2insn_and): New.
12339 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
12340 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
12341 includes_rldic_lshift_p, includes_rldicr_lshift_p,
12342 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
12343 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
12344 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
12345 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
12346 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
12347 rs6000_emit_2insn_and): New.
12348 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
12349 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
12351 <NOT>: Don't fall through to next case.
12352 <AND>: Handle the various rotate-and-mask cases directly.
12353 <IOR>: Always cost as one insn.
12354 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
12355 (and<mode>3): Adjust expander for the new patterns.
12356 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
12357 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
12358 (*and<mode>3_imm_dot_shifted): New.
12359 (*and<mode>3_mask): Delete, rewrite as ...
12360 (and<mode>3_mask): ... New.
12361 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
12362 (andsi3_internal0_nomc): Delete.
12363 (*andsi3_internal6): Delete.
12364 (*and<mode>3_2insn): New.
12365 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
12366 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
12367 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
12368 *insvdi_internal3): Delete.
12369 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
12370 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
12371 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
12372 *ior<mode>_mask): New.
12373 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
12374 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
12375 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
12376 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
12378 (ashr<mode>3): Delete expander.
12379 (*ashr<mode>3): Rename to ...
12380 (ashr<mode>3): ... This.
12381 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
12382 (*rotldi3_internal4, *rotldi3_internal5 and split,
12383 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
12384 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
12385 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
12386 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
12387 (splitter for loading a mask): Adjust.
12388 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
12390 2015-07-20 Marek Polacek <polacek@redhat.com>
12392 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
12393 output_add_clobbers, output_added_clobbers_hard_reg_p,
12394 gen_rtx_scratch): Remove declarations.
12396 2015-07-20 Marek Polacek <polacek@redhat.com>
12399 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
12401 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12403 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
12404 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
12406 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12408 * combine.c (combine_simplify_rtx): Move simplification step
12409 before various transformations/substitutions.
12411 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
12413 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
12414 (struct int_traits): Likewise.
12416 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12418 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
12419 function to vmsdbgout_function_decl.
12421 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
12424 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
12425 from misaligned positions.
12426 (ix86_expand_pinsr): Reject insertions to misaligned positions.
12428 2015-07-18 Sebastian Pop <s.pop@samsung.com>
12430 PR middle-end/46851
12431 PR middle-end/60340
12432 * Makefile.in: Removed omega.o.
12433 * common.opt: Document flag fcheck-data-deps as deprecated.
12434 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
12435 its associated params: omega-max-vars, omega-max-geqs,
12436 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
12437 omega-max-keys, omega-eliminate-redundant-constraints.
12438 * doc/loop.texi: Remove all the section on Omega.
12439 * graphite-blocking.c: Include missing params.h: it used to be
12440 included through tree-data-ref.h and omega.h.
12441 * graphite-isl-ast-to-gimple.c: Same.
12442 * graphite-optimize-isl.c: Same.
12443 * graphite-sese-to-poly.c: Same.
12444 * graphite.c: Same.
12447 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
12448 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
12449 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
12450 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
12451 * passes.def: Remove pass_check_data_deps.
12452 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
12453 (dump_conflict_function): Same.
12454 (dump_subscript): Same.
12455 (print_direction_vector): Same.
12456 (print_dir_vectors): Same.
12457 (print_lambda_vector): Same.
12458 (print_dist_vectors): Same.
12459 (dump_data_dependence_relation): Same.
12460 (dump_data_dependence_relations): Same.
12461 (dump_dist_dir_vectors): Same.
12463 (init_omega_eq_with_af): Removed.
12464 (omega_extract_distance_vectors): Removed.
12465 (omega_setup_subscript): Removed.
12466 (init_omega_for_ddr_1): Removed.
12467 (init_omega_for_ddr): Removed.
12468 (ddr_consistent_p): Removed.
12469 (compute_affine_dependence): Do not use omega to check data
12471 (compute_data_dependences_for_bb): Removed.
12472 (analyze_all_data_dependences): Removed.
12473 (tree_check_data_deps): Removed.
12474 * tree-data-ref.h: Do not include omega.h.
12475 (compute_data_dependences_for_bb): Removed.
12476 (tree_check_data_deps): Removed.
12477 * tree-ssa-loop.c (pass_check_data_deps): Removed.
12478 (make_pass_check_data_deps): Removed.
12479 * tree-ssa-phiopt.c: Include params.h.
12480 * tree-vect-data-refs.c: Same.
12481 * tree-vect-slp.c: Same.
12483 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
12485 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
12486 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
12487 (mem->fpreg splitters): Ditto.
12488 (general_operand->nonimmediate_operand splitter): Use explicit modes.
12489 Disable DFmode for TARGET_64BIT.
12491 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
12494 * config/i386/i386.c (ix86_expand_prologue): Replicate static
12495 chain on the stack.
12497 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
12499 * config/nvptx/mkoffload.c (process): Constify host data.
12500 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
12501 Constify host data.
12502 (generate_host_descr_file): Likewise.
12504 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
12505 Sebastian Pop <s.pop@samsung.com>
12507 PR middle-end/61929
12508 * graphite-dependences.c (add_pdr_constraints): Renamed
12509 pdr->extent to pdr->subscript_sizes.
12510 * graphite-interchange.c (build_linearized_memory_access): Add
12511 back all gcc_assert's that the "isl_int to isl_val conversion"
12512 patch has removed. Refactored.
12513 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
12514 * graphite-poly.c (new_poly_dr): Same.
12515 (free_poly_dr): Same.
12516 * graphite-poly.h (struct poly_dr): Same.
12517 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
12518 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
12519 * graphite-scop-detection.h: Fix space.
12520 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
12521 back all gcc_assert's removed by a previous patch.
12522 (wrap): Remove the_isl_ctx global variable that the same patch has
12524 (build_loop_iteration_domains): Same.
12525 (add_param_constraints): Same.
12526 (pdr_add_data_dimensions): Same. Refactored.
12527 (build_poly_dr): Renamed extent to subscript_sizes.
12529 2015-07-17 Marek Polacek <polacek@redhat.com>
12531 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
12532 * match.pd: ... here.
12534 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
12536 * config/nvptx/mkoffload.c (process): Constify target data.
12537 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
12538 Constify target data.
12539 (generate_target_offloadend_file): Likewise.
12541 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
12543 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
12544 to allow renaming of PHI arguments on edges incoming from outer
12545 loop header, add corresponding check before start PHI iterator.
12546 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
12547 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
12548 with true force_vectorize. Set-up dominator for outer loop too.
12549 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
12550 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
12551 was marked with force_vectorize and has restricted cfg.
12552 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
12554 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
12555 do peeling for outer loops.
12557 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
12558 Matthias Klose <doko@ubuntu.com>
12560 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
12561 build-sysroot, sysroot from the `Miscenalleous configure options' to
12562 the `Directories' section and strip trailing `/' from with_sysroot.
12563 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
12564 * configure: Regenerated.
12566 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
12569 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
12570 (TARGET_HARD_DF_REGS): Ditto.
12571 (TARGET_HARD_XF_REGS): Ditto.
12572 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
12573 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
12574 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
12575 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
12576 (*movsf_internal): Add alternatives 16 and 17. Enable
12577 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
12579 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
12581 PR rtl-optimization/66891
12582 * calls.c (expand_call): Wrap precompute_register_parameters with
12583 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
12585 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
12587 * config/nvptx/mkoffload.c (process): Constify mapping variables.
12588 Define target data struct and initialize it.
12590 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
12592 PR rtl-optimization/66626
12593 * ira.h (emit-rtl.h): Include.
12594 (non_spilled_static_chain_regno_p): New.
12595 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
12596 unless it is non spilled static chain pseudo.
12597 (assign_hard_rego): Spill memory profitable allocno unless it is
12598 non spilled static chain pseudo.
12599 (allocno_spill_priority_compare): Put non spilled static chain
12600 pseudo at the end of sorted array.
12601 (improve_allocation): Do nothing if we have static chain and
12603 (allocno__priority_compare_func): Put non spilled static chain
12604 pseudo at the beginning of sorted array.
12605 (move_spill_restore): Ignore non spilled static chain pseudo.
12606 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
12607 to non spilled static chain pseudo.
12608 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
12609 pseudo at the beginning of sorted array.
12610 (spill_for): Spill non spilled static chain pseudo last.
12611 * lra-constraints.c (lra_constraints): Remove static chain pseudo
12612 check for equivalence.
12614 2015-07-16 Martin Liska <mliska@suse.cz>
12617 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
12618 dst_ctx if it does not exist.
12620 2015-07-16 Martin Liska <mliska@suse.cz>
12622 * hash-set.h (remove): New function.
12623 (iterator): New iteration class for hash_set.
12625 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12627 * genattrtab.c (make_canonical): Add a file_location parameter.
12628 Use fatal_at rather than fatal.
12629 (get_attr_value): Likewise. Update call to make_canonical.
12630 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
12631 (make_internal_attr): Update calls accordingly.
12633 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12635 * read-md.h (message_with_line, error_with_line): Delete.
12636 * read-md.c (message_with_line, error_with_line): Delete.
12637 * gensupport.h: Include read-md.h.
12638 (md_rtx_info): New structure.
12639 (read_md_rtx): Use it. Return a bool success value.
12640 * gensupport.c (read_md_rtx): Likewise.
12641 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
12642 (main): Update after interface changes.
12643 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
12644 (main): Update after interface changes.
12645 * genattrtab.c (insn_code_number): Delete.
12646 (optimize_attrs): Add a max_insn_code parameter and use it instead
12647 of insn_code_number.
12648 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
12649 Use *_at rather than *_with_line functions.
12650 (gen_insn): Likewise.
12651 (gen_delay): Likewise.
12652 (gen_insn_reserv): Likewise.
12653 (gen_bypass): Take an md_rtx_info rather than an rtx.
12654 (main): Update after interface changes. Use a local max_insn_code
12655 variable instead of insn_code_number.
12656 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
12657 an rtx. Use fatal_at rather than fatal.
12658 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
12659 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
12660 (gen_absence_set, gen_final_absence_set, gen_automaton)
12661 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
12662 (main): Update after interface changes.
12663 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
12665 (main): Update after interface changes.
12666 * genconditions.c (main): Use new read_md_rtx interface.
12667 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
12668 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
12669 (main): Update after interface changes.
12670 * genemit.c (insn_code_number, insn_index_number): Delete.
12671 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
12672 Use fatal_at rather than fatal.
12673 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
12675 (gen_split): Likewise.
12676 (main): Update after interface changes.
12677 * genextract.c (line_no): Delete.
12678 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
12679 Update call to walk_rtx.
12680 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
12681 rather than message_with_line.
12682 (walk_rtx): Add an md_rtx_info argument. Update call to
12683 VEC_safe_set_locstr.
12684 (main): Update after interface changes.
12685 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
12686 and lineno. Use error_at rather than separate message_with_line
12687 calls and have_error assignments.
12688 (main): Update after interface changes.
12689 * genmddump.c (main): Use new read_md_rtx interface.
12690 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
12691 (main): Update after interface changes.
12692 * genoutput.c (next_code_number): Delete.
12693 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
12694 (gen_peephole, gen_expand, gen_split): Likewise.
12695 (note_constraint): Likewise. Use *_at rather than *_with_line
12697 (main): Update after interface changes.
12698 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
12700 (main): Update after interface changes.
12701 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
12702 than an rtx and lineno.
12703 (process_define_constraint): Likewise.
12704 (process_define_register_constraint): Likewise.
12705 (main): Update after interface changes.
12706 * genrecog.c (next_insn_code, pattern_lineno): Delete.
12707 (validate_pattern): Replace top-level rtx with an md_rtx_info.
12708 Use *_at rather than *_with_line functions.
12709 (match_pattern_2): Likewise.
12710 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
12711 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
12712 Use *_at rather than *_with_line functions.
12713 * gentarget-def.c (add_insn): New function.
12714 (main): Use it. Use new read_md_rtx interface.
12716 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12718 * gensupport.h (compute_test_codes): Take a file_location rather
12719 than a line number.
12720 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
12721 rather than *_with_line functions.
12722 (process_define_predicate): Update call to compute_test_codes.
12723 * genpreds.c (validate_exp): Take a file_location rather than a
12724 line number. Use *_at functions rather than *_with_line functions.
12725 (process_define_predicate): Update call to validate_exp.
12726 (constraint_data): Replace lineno field with a file_location.
12727 (add_constraint): Take a file_location rather than a line number.
12728 Use *_at functions rather than *_with_line functions. Fix error
12729 message for address constraints. Update after changes to
12730 validate_exp, constraint_data and compute_test_codes.
12731 (process_define_constraint): Update accordingly.
12732 (process_define_register_constraint): Likewise.
12734 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12736 * genoutput.c (data): Use a file_location to record the source
12739 (idata, idata_end): Remove initialization.
12740 (constraint_data): Replace lineno with a file_location.
12741 (output_insn_data): Update after changes to data.
12742 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
12743 (scan_operands): Likewise, using *_at rather than *_with_line
12745 (process_template): Likewise.
12746 (validate_insn_alternatives): Likewise.
12747 (validate_insn_operands): Likewise.
12748 (validate_optab_operands): Likewise.
12749 (init_insn_for_nothing): Initialize idata and idata_end.
12750 (note_constraint): Update after changes to constraint_data,
12751 using at rather than with_line functions.
12752 (mdep_constraint_len): Take a file_location rather than a
12753 line number. Use at rather than with_line functions.
12755 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12757 * read-md.h (fatal_at): Declare.
12758 * read-md.c (fatal_at): New function.
12759 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
12760 to record the source position.
12761 (check_attr_test): Take a file_location instead of a line number.
12762 Use fatal_at instead of fatal.
12763 (check_attr_value): Update after above changes, using "at"
12764 rather than "with_line" reporting functions.
12765 (convert_set_attr_alternative): Likewise.
12766 (gen_attr): Likewise.
12767 (check_defs): Likewise. Don't assign to read_md_filename.
12768 (gen_insn): Update initialization after above changes.
12769 (gen_delay): Likewise.
12770 (write_insn_cases): Print the filename for a define_peephole.
12771 (gen_insn_reserv): Take a line number as argument and update
12772 the call to check_attr_test.
12773 (main): Pass a line number to gen_insn_reserv.
12775 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12777 * read-md.h (file_location): New structure.
12778 (directive_handler_t): Take a file_location rather than a line number.
12779 (message_at, error_at): Declare.
12780 (read_skip_construct): Delete.
12781 * read-md.c (message_with_line_1): Replace with...
12782 (message_at_1): ...this new function.
12783 (message_at, error_at): New functions.
12784 (message_with_line, error_with_line): Update to use message_at_1.
12785 (handle_enum): Take a file_location rather than a line number
12786 and use error_at for error reporting.
12787 (handle_include): Likewise.
12788 (read_skip_construct): Likewise. Make static.
12789 (handle_file): Update after above changes. Pass a file_location
12790 rather than a line number to handle_directive.
12791 * gensupport.c (queue_elem): Replace separate filename and lineno
12792 with a file_location.
12793 (queue_pattern): Replace filename and lineno arguments with a
12794 file_location. Update after change to queue_elem.
12795 (process_define_predicate): Replace lineno argument with a
12796 file_location and use error_at for error reporting. Update
12797 after above changes.
12798 (process_rtx): Likewise.
12799 (subst_pattern_match): Likewise.
12800 (get_alternatives_number): Likewise.
12801 (alter_predicate_for_insn): Likewise.
12802 (rtx_handle_directive): Likewise.
12803 (is_predicable): Update after above changes, using error_at rather
12804 than error_with_line.
12805 (has_subst_attribute): Likewise.
12806 (identify_predicable_attribute): Likewise.
12807 (alter_attrs_for_subst_insn): Likewise.
12808 (process_one_cond_exec): Likewise.
12809 (process_substs_on_one_elem): Likewise.
12810 (process_define_subst): Likewise.
12811 (check_define_attr_duplicates): Likewise.
12812 (read_md_rtx): Update after change to queue_elem.
12814 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12816 * genoutput.c (next_index_number): Delete.
12817 (data): Remove index_number.
12818 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
12819 (main): Remove manipulation of next_index_number.
12821 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12823 * genattrtab.c (check_attr_value): Remove handling of null attrs.
12824 (make_canonical): Likewise.
12826 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
12828 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
12829 instead of adjust_address_nv.
12830 (restore_stack_nonlocal): Likewise.
12831 (nonlocal_goto): Likewise.
12833 2015-07-16 Tom de Vries <tom@codesourcery.com>
12835 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
12836 not have a corresponding loop header phi.
12838 2015-07-16 Tom de Vries <tom@codesourcery.com>
12840 * tree-parloops.c (create_loads_for_reductions): Handle case that
12841 reduction is unused.
12843 2015-07-16 Richard Biener <rguenther@suse.de>
12845 PR tree-optimization/66894
12846 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
12847 about deriving NE_EXPR from truncated values.
12849 2015-07-16 Martin Liska <mliska@suse.cz>
12852 (object_allocator): Add new class.
12853 (pool_allocator::initialize): Use the underlying class.
12854 (pool_allocator::allocate): Likewise.
12855 (pool_allocator::remove): Likewise.
12856 (operator new): A new generic allocator.
12857 * asan.c (struct asan_mem_ref): Remove unused members.
12858 (asan_mem_ref_new): Replace new operator with
12859 object_allocator::allocate.
12860 (free_mem_ref_resources): Change deallocation.
12861 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
12862 with object_allocator.
12863 * config/sh/sh.c (add_constant): Replace new operator with
12864 object_allocator::allocate.
12865 (sh_reorg): Change call to a release method.
12866 * cselib.c (struct elt_list): Remove unused members.
12867 (new_elt_list): Replace new operator with
12868 object_allocator::allocate.
12869 (new_elt_loc_list): Likewise.
12870 (new_cselib_val): Likewise.
12871 (unchain_one_elt_list): Change delete operator with remove method.
12872 (unchain_one_elt_loc_list): Likewise.
12873 (unchain_one_value): Likewise.
12874 (cselib_finish): Release newly added static allocators.
12875 * cselib.h (struct cselib_val): Remove unused members.
12876 (struct elt_loc_list): Likewise.
12877 * df-problems.c (df_chain_alloc): Replace pool_allocator with
12879 * df-scan.c (struct df_scan_problem_data): Likewise.
12880 (df_scan_alloc): Likewise.
12881 * df.h (struct dataflow): Likewise.
12882 * dse.c (struct read_info_type): Likewise.
12883 (struct insn_info_type): Likewise.
12884 (struct dse_bb_info_type): Likewise.
12885 (struct group_info): Likewise.
12886 (struct deferred_change): Likewise.
12887 (get_group_info): Likewise.
12888 (delete_dead_store_insn): Likewise.
12889 (free_read_records): Likewise.
12890 (replace_read): Likewise.
12891 (check_mem_read_rtx): Likewise.
12892 (scan_insn): Likewise.
12893 (dse_step1): Likewise.
12894 (dse_step7): Likewise.
12895 * et-forest.c (struct et_occ): Remove unused members.
12896 (et_new_occ): Use allocate instead of new operator.
12897 (et_new_tree): Likewise.
12898 (et_free_tree): Call release method explicitly.
12899 (et_free_tree_force): Likewise.
12900 (et_free_pools): Likewise.
12901 (et_split): Use remove instead of delete operator.
12902 * et-forest.h (struct et_node): Remove unused members.
12903 * ipa-cp.c: Change pool_allocator to object_allocator.
12904 * ipa-inline-analysis.c: Likewise.
12905 * ipa-profile.c: Likewise.
12906 * ipa-prop.c: Likewise.
12907 * ipa-prop.h: Likewise.
12908 * ira-build.c (initiate_cost_vectors): Cast return value.
12909 (ira_allocate_cost_vector): Likewise.
12910 * ira-color.c (struct update_cost_record): Remove unused members.
12911 * lra-int.h (struct lra_live_range): Likewise.
12912 (struct lra_copy): Likewise.
12913 (struct lra_insn_reg): Likewise.
12914 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
12915 * lra.c (new_insn_reg): Replace new operator with allocate method.
12916 (free_insn_regs): Same for operator delete.
12917 (finish_insn_regs): Release new static allocator.
12918 (finish_insn_recog_data): Likewise.
12919 (lra_free_copies): Replace delete operator with remove method.
12920 (lra_create_copy): Replace operator new with allocate method.
12921 (invalidate_insn_data_regno_info): Same for remove method.
12922 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
12923 (free_debug_insn_changes): Replace delete operator with remove method.
12924 (replace_oldest_value_reg): Replace operator new with allocate method.
12925 (pass_cprop_hardreg::execute): Release new static variable.
12926 * sched-deps.c (sched_deps_init): Change pool_allocator to
12928 * sel-sched-ir.c: Likewise.
12929 * sel-sched-ir.h: Likewise.
12930 * stmt.c (expand_case): Likewise.
12931 (expand_sjlj_dispatch_table): Likewise.
12932 * tree-sra.c (struct access): Remove unused members.
12933 (struct assign_link): Likewise.
12934 (sra_deinitialize): Release newly added static pools.
12935 (create_access_1):Replace operator new with allocate method.
12936 (build_accesses_from_assign): Likewise.
12937 (create_artificial_child_access): Likewise.
12938 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
12939 pool_allocator to object_allocator.
12940 * tree-ssa-pre.c: Likewise.
12941 * tree-ssa-reassoc.c: Likewise.
12942 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
12943 * tree-ssa-strlen.c: Likewise.
12944 * tree-ssa-structalias.c: Likewise.
12945 * var-tracking.c (onepart_pool_allocate): New function.
12946 (unshare_variable): Use the newly added function.
12947 (variable_merge_over_cur): Likewise.
12948 (variable_from_dropped): Likewise.
12949 (variable_was_changed): Likewise.
12950 (set_slot_part): Likewise.
12951 (emit_notes_for_differences_1): Likewise.
12952 (vt_finalize): Release newly added static pools.
12954 2015-07-16 Martin Jambor <mjambor@suse.cz>
12956 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
12957 all uses. Fix two typos in its general comment.
12958 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
12960 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
12962 * config/i386/linux-common.h (LINK_MPX): New.
12963 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
12964 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
12965 indicating '-z bndplt' support by linker.
12966 * configure: Regenerate.
12967 * config.in: Regenerate.
12969 2015-07-16 Richard Biener <rguenther@suse.de>
12971 * fold-const.c (fold_widened_comparison): Remove.
12972 (fold_sign_changed_comparison): Likewise.
12973 (fold_comparison): Move widened and sign-changed comparison
12975 * match.pd: ... to patterns here.
12976 * generic-match-head.c: Include target.h.
12977 * gimple-match-head.c: Likewise.
12979 2015-07-16 Richard Biener <rguenther@suse.de>
12981 * tree-ssa-dom.c (dom_valueize): New function.
12982 (record_temporary_equivalences): Also record equivalences
12983 for dominating stmts that have uses of equivalences we are
12986 2015-07-16 Bin Cheng <bin.cheng@arm.com>
12988 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
12989 add_autoinc_candidates.
12990 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
12991 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
12992 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
12993 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
12995 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
12996 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
12997 Remove parameter struct iv*. Call add_autoinc_candidates here.
12998 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
12999 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
13001 (find_iv_candidates): Call new functions.
13003 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
13005 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
13006 uninitialized-variable warning.
13008 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
13011 * config/sh/sh.md (movdi): Split simple reg move to two movsi
13012 when the destination is R0.
13014 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
13017 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
13018 * config/i386/i386.c (ix86_expand_pextr): New function.
13019 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
13020 for non-lowpart subregs.
13021 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
13022 (insv<mode>): Use SWI248 mode iterator.
13023 (insv<mode>_1): Ditto.
13025 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
13026 Sebastian Pop <s.pop@samsung.com>
13028 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
13029 iterator to use_stmt.
13031 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
13032 Sebastian Pop <s.pop@samsung.com>
13034 * graphite-scop-detection.c (build_scops_1): Discard scops for
13037 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
13038 Sebastian Pop <s.pop@samsung.com>
13040 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
13041 case of a return statement in scop.
13043 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
13044 Sebastian Pop <s.pop@samsung.com>
13046 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
13047 INTEGER_TYPE parameters.
13048 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
13049 VECTOR_CST in scan_tree_for_params.
13050 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
13052 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
13054 * gimple-pretty-print.h: Don't include pretty-print.h.
13055 * tree-streamer.h: Don't include lto-streamer.h.
13056 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
13057 * gimple-streamer-in.c: Remove redundant includes.
13058 * gimple-streamer-out.c: Likewise.
13059 * ipa-devirt.c: Likewise.
13060 * ipa-icf.c: Likewise.
13061 * ipa-inline-analysis.c: Likewise.
13062 * ipa-polymorphic-call.c: Likewise.
13063 * ipa-profile.c: Likewise.
13064 * ipa-prop.c: Likewise.
13065 * ipa-pure-const.c: Likewise.
13066 * lto-cgraph.c: Likewise.
13067 * lto-streamer-in.c: Likewise.
13068 * lto-streamer-out.c: Likewise.
13069 * lto-streamer.c: Likewise.
13070 * tree-streamer-in.c: Likewise.
13071 * tree-streamer-out.c: Likewise.
13072 * tree-streamer.c: Likewise.
13074 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
13076 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
13078 * opts.c: Remove multiline #include comment.
13080 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
13082 * config/nvptx/mkoffload.c (process): Add C++ protection to
13085 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13088 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
13089 null before IEEE 128-bit floating point support patch.
13091 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13093 * simplify-rtx.c (simplify_ternary_operation): Add simplification
13094 for (!c) != {0,...,0} ? a : b for vector modes.
13096 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
13097 Martin Jambor <mjambor@suse.cz>
13099 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
13100 struct func_body_info* instead of struct ipa_node_params*, expecting
13101 fbi->info to be filled in. Replace throughout. Adjust call to
13102 ipa_load_from_parm_agg.
13103 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
13104 instead of struct ipa_node_params*. Adjust calls to other functions
13105 so that they pass either fbi or fbi->info.
13106 (set_switch_stmt_execution_predicate): Likewise.
13107 (will_be_nonconstant_predicate): Likewise.
13108 (compute_bb_predicates): Likewise.
13109 (estimate_function_body_sizes): Move asserts earlier. Fill in
13110 struct func_body_info, replace parms_info with fbi.info. Adjust
13111 calls to functions that now accept struct func_body_info.
13112 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
13113 (struct func_body_info): Likewise.
13114 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
13115 remove static. Adjust callers.
13116 (ipa_load_from_parm_agg): Remove.
13117 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
13118 (func_body_info): Likewise.
13119 (ipa_load_from_parm_agg): Adjust prototype.
13121 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13123 * gensupport.c (rtx_handle_directive): Adjust.
13124 * read-rtl.c (apply_iterators): Take vector to add rtxs to
13125 instead of expr list rtx.
13126 (add_define_attr_for_define_subst): Likewise.
13127 (add_define_subst_attr): Likewise.
13128 (read_subst_mapping): Likewise.
13129 (read_rtx): Likewise.
13130 * rtl.h (read_rtx): Adjust.
13132 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13134 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
13136 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
13139 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
13140 (*tls_local_dynamic_base_64_<mode>): Ditto.
13141 (*tls_local_dynamic_base_64_largepic): Ditto.
13142 (tls_global_dynamic_64_<mode>): Update expander pattern.
13143 (tls_local_dynamic_base_64_<mode>): Ditto.
13145 2015-07-15 Richard Biener <rguenther@suse.de>
13147 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
13148 and bool_var == 1 -> bool_var simplifications ...
13149 * match.pd: ... to patterns here. Factor out negate_expr_p
13150 cases from the A - B -> A + (-B) patterns as negate_expr_p
13151 predicate and add a -(A + B) -> (-B) - A pattern.
13153 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
13155 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
13157 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
13158 Robert Suchanek <robert.suchanek@imgtec.com>
13160 * config/mips/mips.c (mips_int_mask): New enum.
13161 (mips_shadow_set): Likewise.
13162 (int_mask): New variable.
13163 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
13164 (machine_function): Add int_mask and use_shadow_register_set.
13165 (mips_attribute_table): Add attribute handlers for interrupt and
13166 use_shadow_register_set.
13167 (mips_interrupt_mask): New static function.
13168 (mips_handle_interrupt_attr): Likewise.
13169 (mips_handle_use_shadow_register_set_attr): Likewise.
13170 (mips_use_shadow_register_set): Change return type to enum
13171 mips_shadow_set. Add argument handling for use_shadow_register_set
13173 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
13174 compare with mips_shadow_set enum.
13175 (mips_compute_frame_info): Add interrupt mask and
13176 use_shadow_register_set to per-function information structure.
13177 Add a stack slot for EPC unconditionally.
13178 (mips_expand_prologue): Compare use_shadow_register_set value
13179 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
13180 masked interrupt register but in EIC mode use K0 and save Cause in K0.
13181 EPC saved and restored unconditionally. Use PMODE_INSN macro when
13182 copying the stack pointer from the shadow register set.
13183 * config/mips/mips.h (SR_IM0): New define.
13184 * config/mips/mips.md (mips_rdpgpr): Rename to...
13185 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
13186 * doc/extend.texi (Declaring Attributes of Functions): Document
13187 optional arguments for interrupt and use_shadow_register_set
13190 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
13192 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
13193 interrupt attribute.
13194 (mips_expand_prologue): Disable the floating point unit in an ISR.
13195 * config/mips/mips.h (SR_COP1): New define.
13197 2015-07-15 Richard Biener <rguenther@suse.de>
13199 * genmatch.c (parser::peek, parser::peek_ident): Add argument
13200 to tell how many tokens to peek ahead (default 1).
13201 (parser::eat_token, parser::eat_ident): Return token consumed.
13202 (parser::parse_result): Parse new switch statement.
13203 * match.pd: Use case statements where appropriate.
13205 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
13207 PR rtl-optimization/58066
13208 * calls.c (expand_call): Precompute register parameters before stack
13209 alignment is performed.
13211 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
13213 PR rtl-optimization/66838
13214 * postreload.c (reload_cse_move2add): Also process
13215 CALL_INSN_FUNCTION_USAGE when resetting information of
13216 call-clobbered registers.
13218 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13219 Cesar Philippidis <cesar@codesourcery.com>
13220 Chung-Lin Tang <cltang@codesourcery.com>
13222 * config/nios2/constraints.md (U, v): New constraints.
13223 * config/nios2/predicates.md (rdprs_dcache_operand): New.
13224 (ldstex_memory_operand): New.
13225 * config/nios2/sync.md: New file.
13226 * config/nios2/nios2.md (unspecv): Add new builtin function
13228 (rdprs, flushd, flushda, wrpie, eni): New patterns.
13229 (top-level): Include sync.md.
13230 * config/nios2/nios2.c (N2_FTYPES): Add function types for
13232 (N2_BUILTINS): Add arch field setting, add new builtins.
13233 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
13235 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
13236 Also handle ldex/stex/ldsex/stsex builtins.
13237 (nios2_expand_rdprs_builtin): New function.
13238 (nios2_expand_cache_builtin): New function.
13239 (nios2_expand_wrpie_builtin): New function.
13240 (nios2_expand_eni_builtin): New function.
13241 (nios2_expand_builtin): Add arch field handling and new builtin
13243 * doc/extend.texi (Altera Nios II Built-in Functions): Document
13245 * doc/md.texi (Machine Constraints): Document U and v constraints.
13247 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13248 Cesar Philippidis <cesar@codesourcery.com>
13249 Chung-Lin Tang <cltang@codesourcery.com>
13251 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
13252 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
13253 callee_save_reg_size and uses_anonymous_args fields.
13254 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
13255 (nios2_create_cfa_notes): New function.
13256 (nios2_adjust_stack): New function for adjusting stack.
13257 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
13258 Use nios2_adjust_stack.
13259 (nios2_expand_epilogue): Likewise.
13260 (nios2_expand_return): New function.
13261 (nios2_can_use_return_insn): Update for CDX pop.n usage.
13262 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
13263 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
13264 * config/nios2/nios2.md (return): Use nios2_expand_return.
13266 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13267 Cesar Philippidis <cesar@codesourcery.com>
13268 Chung-Lin Tang <cltang@codesourcery.com>
13270 * config/nios2/predicates.md (pop_operation): New.
13271 (ldwm_operation, stwm_operation): New.
13272 (nios2_hard_register_operand): New.
13273 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
13274 (ldstwm_operation_p): Declare.
13275 (gen_ldstwm_peep): Declare.
13276 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
13277 (base_reg_adjustment_p): New.
13278 (pop_operation_p): New.
13279 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
13280 (nios2_ldstwm_regset_p): New.
13281 (ldstwm_operation_p): New.
13283 (nios2_ldst_parallel): New.
13284 (struct ldswm_operand): Declare.
13285 (compare_ldstwm_operands): New.
13286 (can_use_cdx_ldstw): New.
13287 (gen_ldstwm_peep): New.
13288 * config/nios2/nios2-ldstwm.sml: New.
13289 * config/nios2/nios2.md: Include ldstwm.md.
13290 * config/nios2/ldstwm.md: Generated.
13292 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13293 Cesar Philippidis <cesar@codesourcery.com>
13294 Chung-Lin Tang <cltang@codesourcery.com>
13296 * config/nios2/nios2.h (LABEL_ALIGN): Define.
13297 (REG_ALLOC_ORDER): Define.
13298 (ADJUST_REG_ALLOC_ORDER): Define.
13299 (HONOR_REG_ALLOC_ORDER): Define.
13300 (CDX_REG_P): Define.
13301 (ANDCLEAR_INT): Define.
13302 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
13303 (nios2_label_align): Declare.
13304 (nios2_cdx_narrow_form_p): Declare.
13305 (nios2_adjust_reg_alloc_order): Declare.
13306 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
13308 (nios2_large_unspec_reloc_p): New function, split from...
13309 (nios2_legitimate_pic_operand_p): ...here.
13310 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
13311 (nios2_print_operand_punct_valid_p): New.
13312 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
13313 (split_mem_address): New.
13314 (split_alu_insn): New.
13316 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
13317 (enum nios2_add_insn_kind): New.
13318 (nios2_add_insn_names, nios2_add_insn_narrow): New.
13319 (nios2_add_insn_classify): New.
13320 (nios2_add_insn_asm): New.
13321 (nios2_cdx_narrow_form_p): New.
13322 (label_align, min_labelno, max_labelno): New.
13323 (nios2_reorg): New.
13324 (nios2_label_align): New.
13325 (nios2_adjust_reg_alloc_order): New.
13326 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13327 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13328 * config/nios2/constraints.md (P): New constraint.
13329 * config/nios2/predicates.md (const_and_operand): New.
13330 (and_operand): New.
13331 (stack_memory_operand): New.
13332 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
13333 (length): Update to use nios2_cdx_narrow_form_p().
13334 (type): Add new insn type values.
13335 (control, alu, st, ld, shift): Update insn reservations with
13336 new insn type values.
13337 (*high, *lo_sum): Define new insn patterns for constant generation.
13338 (movqi_internal, movhi_internal, movsi_internal): Reduce
13339 alternatives, update asm template to handle CDX variants, update
13341 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
13342 template, update type attributes.
13343 (extendhisi2, extendqi<mode>2): Likewise.
13344 (addsi3): Change to use function for asm string.
13345 (subsi3): Add CDX notation to asm template, update type attributes.
13346 (negsi3, one_cmplsi3): Likewise.
13347 (andsi3): New pattern, specialized from logical patterns.
13348 (<code>si3): Remove and case, combine alternatives, update asm
13350 (<shift_op>si3): Add CDX notation, update type attributes.
13351 (rotrsi3): Update type attribute.
13352 (*merge, extzv, insv): New insn patterns.
13353 (return): Change to define_expand.
13354 (simple_return): Add CDX notation, update type attributes.
13355 (indirect_jump): Add CDX notation.
13356 (jump): Update asm cases, update length attribute expression.
13357 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
13358 (nios2_cbranch): Update asm cases and length attribute expression
13359 to handle CDX variants.
13360 (nios2_cmp<code>): Update asm template.
13361 (nop): Add CDX notation, update type attributes.
13362 (trap): Add CDX notation.
13363 (ctrapsi4): Update asm cases and length attribute expression to
13364 handle CDX variant.
13365 * doc/md.texi (Machine Constraints): Document P constraint.
13367 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13368 Cesar Philippidis <cesar@codesourcery.com>
13369 Chung-Lin Tang <cltang@codesourcery.com>
13371 * config/nios2/nios2.h (SMALL_INT12): New macro.
13372 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
13373 (nios2_valid_addr_expr_p): Use it.
13374 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
13375 with implicit "io" instructions on R2.
13376 * config/nios2/constraints.md (w): New constraint.
13377 * config/nios2/predicates.md (ldstio_memory_operand): New.
13378 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
13379 operand predicate and constraint.
13380 (ld<bh>io_signed, st<bhw>io>): Likewise.
13381 * doc/md.texi (Machine Constraints): Document w constraint.
13383 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13384 Cesar Philippidis <cesar@codesourcery.com>
13385 Chung-Lin Tang <cltang@codesourcery.com>
13387 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
13388 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
13389 Nios II architecture level.
13390 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
13391 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
13392 (OPTION_DEFAULT_SPECS): Define.
13393 (ASM_SPEC): Add -march= spec strings.
13394 * config/nios2/nios2.c (nios2_option_override): Check for
13395 conflicts involving new options.
13396 * config.gcc (nios2*-*-*): Support --with-arch=.
13397 * doc/invoke.texi (Option Summary, Nios II Options): Document
13398 -march=, -mbmx, and -mcdx.
13400 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
13402 PR rtl-optimization/66626
13403 * lra-constraints.c (lra_constraints): Prevent equivalence
13404 substitution for static chain pseudo in functions with nonlocal
13407 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13409 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
13410 (nios2_emit_stack_limit_check): Add size parameter. Handle
13411 -fstack-limit-symbol as well as -fstack-limit-register.
13412 (nios2_expand_prologue): Emit only a single stack limit check,
13413 even if multiple stack adjustments are required.
13414 (nios2_option_override): Diagnose unsupported combination of -fpic
13415 and -stack-limit-symbol.
13417 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
13419 * Makefile.in (top_srcdir): New.
13420 * configure.ac: Use AM_ZLIB.
13421 * configure: Regeneated.
13423 2015-07-14 Matthias Klose <doko@ubuntu.com>
13426 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
13428 2015-07-14 Richard Biener <rguenther@suse.de>
13430 PR tree-optimization/66863
13431 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
13432 what we record for conversion use stmt lhs inequalities.
13434 2015-07-14 Richard Biener <rguenther@suse.de>
13436 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
13437 (decision_tree::gen_gimple): Likewise.
13439 2015-07-14 Tom de Vries <tom@codesourcery.com>
13441 * gcc.c (greater_than_spec_func): Declare forward.
13442 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
13443 -ftree-parallelize-loops={0,1}.
13444 (static_spec_functions): Add greater_than_spec_func function with name
13446 (greater_than_spec_func): New function.
13448 2015-07-14 Richard Biener <rguenther@suse.de>
13450 * tree-ssa-dom.c (record_temporary_equivalences): Merge
13451 wideing type conversion case from record_equivalences_from_incoming_edge
13452 and use record_equality to record equivalences.
13453 (record_equivalences_from_incoming_edge): Call
13454 record_temporary_equivalences.
13456 2015-07-14 Richard Biener <rguenther@suse.de>
13458 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
13459 (struct if_expr): New.
13460 (struct with_expr): Likewise.
13461 (is_a_helper): Add helpers for if_expr and with_expr.
13462 (struct simplify): Add simplify_kind enum and member. Remove
13464 (simplify::simplify): Adjust.
13465 (lower_commutative): Adjust.
13466 (lower_opt_convert): Likewise.
13467 (lower_cond): Likewise.
13468 (replace_id): Handle with_expr and if_expr.
13469 (lower_for): Adjust.
13470 (dt_simplify::gen_1): New recursive worker, split out from ...
13471 (dt_simplify::gen): ... here. Deal with if and with expansion
13473 (capture_info::capture_info): Take context argument
13474 (capture_info::walk_result): Only analyze specific result.
13475 (parser::parse_result): New function.
13476 (parser::parse_simplify): Adjust to parse ifs with then end
13478 (parser::parse_if): Simplify.
13479 (parser::parse_pattern): Pass down simplify kind.
13480 * match.pd: Convert if structure to new syntax.
13482 2015-07-13 Marek Polacek <polacek@redhat.com>
13484 * rtl.c (rtx_equal_p_cb): Fix typo.
13486 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
13488 * omega.h: Don't include config.h, don't include params.h again if
13489 omega.h has already been included.
13490 * graphite-poly.h: Include sese.h.
13491 * graphite.c: Don't include sese.h, remove needless includes and
13492 minimize includes outside #ifdef HAVE_isl block.
13493 * graphite-blocking.c: Don't include sese.h, remove needless includes,
13494 and wrap entire file in #ifdef HAVE_isl
13495 * graphite-dependences.c: Likewise.
13496 * graphite-interchange.c: Likewise.
13497 * graphite-isl-ast-to-gimple.c: Likewise.
13498 * graphite-optimize-isl.c: Likewise.
13499 * graphite-poly.c: Likewise.
13500 * graphite-scop-detection.c: Likewise.
13501 * graphite-sese-to-poly.c: Likewise.
13503 2015-07-13 Tom de Vries <tom@codesourcery.com>
13505 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
13507 2015-07-13 Renlin Li <renlin.li@arm.com>
13510 * simplify-rtx.c (simplify_const_relational_operation): Add
13511 side_effects_p checks.
13513 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
13515 * bitmap.h: Fix double word typos.
13516 * builtins.c: Same.
13518 * cfgloopmanip.c: Same.
13521 * cgraphclones.c: Same.
13523 * config/aarch64/aarch64-protos.h: Same.
13524 * config/aarch64/aarch64.c: Same.
13525 * config/aarch64/aarch64.md: Same.
13526 * config/arm/arm.md: Same.
13527 * config/arm/arm1020e.md: Same.
13528 * config/arm/arm1026ejs.md: Same.
13529 * config/arm/arm926ejs.md: Same.
13530 * config/arm/fa526.md: Same.
13531 * config/arm/fa606te.md: Same.
13532 * config/arm/fa626te.md: Same.
13533 * config/arm/fa726te.md: Same.
13534 * config/arm/fmp626.md: Same.
13535 * config/darwin.c: Same.
13536 * config/epiphany/epiphany.c: Same.
13537 * config/frv/frv.c: Same.
13538 * config/ft32/ft32.c: Same.
13539 * config/gnu-user.h: Same.
13540 * config/h8300/constraints.md: Same.
13541 * config/i386/i386.c: Same.
13542 * config/i386/i386.md: Same.
13543 * config/iq2000/iq2000.md: Same.
13544 * config/mips/mips.c: Same.
13545 * config/mmix/mmix.md: Same.
13546 * config/moxie/moxie.c: Same.
13547 * config/nds32/nds32.md: Same.
13548 * config/pa/pa.h: Same.
13549 * config/rs6000/aix.h: Same.
13550 * config/rs6000/rs6000.h: Same.
13551 * config/sh/sh.c: Same.
13552 * config/tilegx/tilegx.md: Same.
13553 * config/tilepro/gen-mul-tables.cc: Same.
13556 * doc/invoke.texi: Same.
13558 * dwarf2out.c: Same.
13561 * genmatch.c: Same.
13562 * gimplify.c: Same.
13563 * hash-table.h: Same.
13564 * internal-fn.c: Same.
13566 * ipa-devirt.c: Same.
13569 * ipa-profile.c: Same.
13570 * ipa-prop.c: Same.
13571 * ipa-prop.h: Same.
13574 * reg-stack.c: Same.
13575 * regcprop.c: Same.
13580 * tree-inline.c: Same.
13581 * tree-sra.c: Same.
13582 * tree-ssa-dom.c: Same.
13583 * tree-ssa-loop-ivopts.c: Same.
13584 * tree-ssa-structalias.c: Same.
13585 * tree-ssa-tail-merge.c: Same.
13586 * tree-ssa-ter.c: Same.
13587 * tree-ssa-threadupdate.c: Same.
13588 * tree-ssa-uninit.c: Same.
13589 * tree-ssanames.c: Same.
13590 * tree-vect-loop-manip.c: Same.
13591 * tree-vrp.c: Same.
13593 * valtrack.c: Same.
13596 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
13598 PR middle-end/66726
13599 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
13600 tree_ssa_phiopt_worker): Call it.
13602 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
13604 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
13605 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
13608 2015-07-11 Marek Polacek <polacek@redhat.com>
13610 PR middle-end/66353
13611 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
13612 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
13613 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
13614 rather than bb_has_abnormal_call_pred.
13615 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
13616 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
13617 rather than bb_has_abnormal_call_pred.
13619 2015-07-10 Anatoly Sokolov <aesok@post.ru>
13621 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13622 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
13623 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13624 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
13625 v850_legitimate_address_p): New functions.
13626 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
13628 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
13631 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
13632 indirect sibcall with register arguments if register available
13633 for argument passing.
13634 (init_cumulative_args): Set cfun->machine->arg_reg_available
13635 to (cum->nregs > 0) or to true if function has a variable
13637 (function_arg_advance_32): Set cfun->machine->arg_reg_available
13638 to false if cum->nregs <= 0.
13639 * config/i386/i386.h (machine_function): Add arg_reg_available.
13641 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
13643 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
13644 and gen_higpart instead of gen_rtx_SUBREG.
13645 * config/i386/i386.md
13646 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
13647 (read-modify peephole2): Use gen_lowpart instead of
13648 gen_rtx_SUBREG for operand 5.
13650 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
13652 * config/tilepro/gen-mul-tables.cc (main): Change include list for
13654 * config/tilepro/mul-tables.c: Regenerate.
13655 * config/tilegx/mul-tables.c: Regenerate.
13657 2015-07-10 Richard Biener <rguenther@suse.de>
13659 * fold-const.c (distribute_bit_expr): Remove.
13660 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
13661 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
13662 to A & (B | C) and simplifying A << C1 << C2 to ...
13663 * match.pd: ... patterns here.
13665 2015-07-10 Jiong Wang <jiong.wang@arm.com>
13667 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
13668 Mark mem as READONLY and NOTRAP for PIC symbol.
13670 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
13672 * gimple-predict.h: New file.
13673 (gimple_predict_predictor, gimple_predict_set_predictor,
13674 gimple_predict_outcome, gimple_predict_set_outcome,
13675 gimple_build_predict): Relocate here.
13676 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
13677 gimple_predict_outcome, gimple_predict_set_outcome): Move to
13679 * gimple.c (gimple_build_predict): Move to gimple-predict.h
13680 * basic-block.h: Don't include cfghooks.h.
13681 * backend.h: Don't include predict.h.
13682 * cfghooks.h: Include predict.h.
13683 * gimple-pretty-print.c: Include gimple-predict.h.
13684 * gimplify.c: Likwise.
13685 * predict.c: Adjust includes.
13686 * tree-inline.c: Likewise.
13687 * asan.c: Likewise.
13688 * auto-inc-dec.c: Likewise.
13689 * auto-profile.c: Likewise.
13690 * bb-reorder.c: Likewise.
13691 * builtins.c: Likewise.
13692 * caller-save.c: Likewise.
13693 * calls.c: Likewise.
13694 * cfganal.c: Likewise.
13695 * cfgbuild.c: Likewise.
13697 * cfgcleanup.c: Likewise.
13698 * cfgexpand.c: Likewise.
13699 * cfghooks.c: Likewise.
13700 * cfgloopanal.c: Likewise.
13701 * cfgloop.c: Likewise.
13702 * cfgloopmanip.c: Likewise.
13703 * cfgrtl.c: Likewise.
13704 * cgraph.c: Likewise.
13705 * cgraphunit.c: Likewise.
13706 * combine.c: Likewise.
13707 * cprop.c: Likewise.
13710 * dojump.c: Likewise.
13712 * except.c: Likewise.
13713 * expmed.c: Likewise.
13714 * expr.c: Likewise.
13715 * final.c: Likewise.
13716 * fold-const.c: Likewise.
13717 * function.c: Likewise.
13718 * fwprop.c: Likewise.
13719 * gcc-plugin.h: Likewise.
13720 * gcse.c: Likewise.
13721 * genattrtab.c: Likewise.
13722 * genemit.c: Likewise.
13723 * gengtype.c: Likewise.
13724 * genopinit.c: Likewise.
13725 * genoutput.c: Likewise.
13726 * genpreds.c: Likewise.
13727 * genrecog.c: Likewise.
13728 * gimple-fold.c: Likewise.
13729 * gimple-iterator.c: Likewise.
13730 * gimple-ssa-isolate-paths.c: Likewise.
13731 * gimple-ssa-strength-reduction.c: Likewise.
13732 * graph.c: Likewise.
13733 * graphite-blocking.c: Likewise.
13734 * graphite.c: Likewise.
13735 * graphite-dependences.c: Likewise.
13736 * graphite-interchange.c: Likewise.
13737 * graphite-isl-ast-to-gimple.c: Likewise.
13738 * graphite-optimize-isl.c: Likewise.
13739 * graphite-poly.c: Likewise.
13740 * graphite-scop-detection.c: Likewise.
13741 * graphite-sese-to-poly.c: Likewise.
13742 * haifa-sched.c: Likewise.
13743 * ifcvt.c: Likewise.
13744 * internal-fn.c: Likewise.
13745 * ipa-cp.c: Likewise.
13746 * ipa-profile.c: Likewise.
13747 * ipa-split.c: Likewise.
13748 * ipa-utils.c: Likewise.
13749 * ira-build.c: Likewise.
13750 * ira-color.c: Likewise.
13751 * ira-conflicts.c: Likewise.
13752 * ira-costs.c: Likewise.
13753 * ira-emit.c: Likewise.
13754 * ira-lives.c: Likewise.
13755 * jump.c: Likewise.
13756 * loop-doloop.c: Likewise.
13757 * loop-init.c: Likewise.
13758 * loop-invariant.c: Likewise.
13759 * loop-unroll.c: Likewise.
13760 * lower-subreg.c: Likewise.
13761 * lra-assigns.c: Likewise.
13763 * lra-coalesce.c: Likewise.
13764 * lra-constraints.c: Likewise.
13765 * lra-lives.c: Likewise.
13766 * lto-cgraph.c: Likewise.
13767 * lto-streamer-in.c: Likewise.
13768 * mode-switching.c: Likewise.
13769 * modulo-sched.c: Likewise.
13770 * omp-low.c: Likewise.
13771 * optabs.c: Likewise.
13772 * passes.c: Likewise.
13773 * postreload.c: Likewise.
13774 * postreload-gcse.c: Likewise.
13775 * profile.c: Likewise.
13776 * recog.c: Likewise.
13777 * regstat.c: Likewise.
13778 * reload1.c: Likewise.
13779 * reorg.c: Likewise.
13780 * rtlanal.c: Likewise.
13781 * sched-ebb.c: Likewise.
13782 * sel-sched-ir.c: Likewise.
13783 * sese.c: Likewise.
13784 * shrink-wrap.c: Likewise.
13785 * simplify-rtx.c: Likewise.
13786 * stmt.c: Likewise.
13787 * store-motion.c: Likewise.
13788 * tracer.c: Likewise.
13789 * trans-mem.c: Likewise.
13790 * tree-call-cdce.c: Likewise.
13791 * tree-cfg.c: Likewise.
13792 * tree-cfgcleanup.c: Likewise.
13793 * tree-chkp.c: Likewise.
13794 * tree-complex.c: Likewise.
13795 * tree-eh.c: Likewise.
13796 * tree-if-conv.c: Likewise.
13797 * tree-loop-distribution.c: Likewise.
13798 * tree-outof-ssa.c: Likewise.
13799 * tree-parloops.c: Likewise.
13800 * tree-predcom.c: Likewise.
13801 * tree-pretty-print.c: Likewise.
13802 * tree-profile.c: Likewise.
13803 * tree-sra.c: Likewise.
13804 * tree-ssa.c: Likewise.
13805 * tree-ssa-coalesce.c: Likewise.
13806 * tree-ssa-dce.c: Likewise.
13807 * tree-ssa-dom.c: Likewise.
13808 * tree-ssa-forwprop.c: Likewise.
13809 * tree-ssa-ifcombine.c: Likewise.
13810 * tree-ssa-loop-ch.c: Likewise.
13811 * tree-ssa-loop-im.c: Likewise.
13812 * tree-ssa-loop-ivcanon.c: Likewise.
13813 * tree-ssa-loop-ivopts.c: Likewise.
13814 * tree-ssa-loop-manip.c: Likewise.
13815 * tree-ssa-loop-prefetch.c: Likewise.
13816 * tree-ssa-loop-unswitch.c: Likewise.
13817 * tree-ssa-math-opts.c: Likewise.
13818 * tree-ssa-phiopt.c: Likewise.
13819 * tree-ssa-pre.c: Likewise.
13820 * tree-ssa-reassoc.c: Likewise.
13821 * tree-ssa-sink.c: Likewise.
13822 * tree-ssa-tail-merge.c: Likewise.
13823 * tree-ssa-threadedge.c: Likewise.
13824 * tree-ssa-threadupdate.c: Likewise.
13825 * tree-switch-conversion.c: Likewise.
13826 * tree-tailcall.c: Likewise.
13827 * tree-vect-data-refs.c: Likewise.
13828 * tree-vect-loop.c: Likewise.
13829 * tree-vect-loop-manip.c: Likewise.
13830 * tree-vectorizer.c: Likewise.
13831 * tree-vrp.c: Likewise.
13832 * ubsan.c: Likewise.
13833 * value-prof.c: Likewise.
13834 * varasm.c: Likewise.
13835 * var-tracking.c: Likewise.
13836 * config/aarch64/aarch64-builtins.c: Likewise.
13837 * config/aarch64/aarch64.c: Likewise.
13838 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13839 * config/alpha/alpha.c: Likewise.
13840 * config/arc/arc.c: Likewise.
13841 * config/arm/arm.c: Likewise.
13842 * config/avr/avr.c: Likewise.
13843 * config/bfin/bfin.c: Likewise.
13844 * config/c6x/c6x.c: Likewise.
13845 * config/cr16/cr16.c: Likewise.
13846 * config/cris/cris.c: Likewise.
13847 * config/darwin.c: Likewise.
13848 * config/darwin-c.c: Likewise.
13849 * config/epiphany/epiphany.c: Likewise.
13850 * config/epiphany/mode-switch-use.c: Likewise.
13851 * config/epiphany/resolve-sw-modes.c: Likewise.
13852 * config/fr30/fr30.c: Likewise.
13853 * config/frv/frv.c: Likewise.
13854 * config/ft32/ft32.c: Likewise.
13855 * config/h8300/h8300.c: Likewise.
13856 * config/i386/i386.c: Likewise.
13857 * config/i386/winnt.c: Likewise.
13858 * config/ia64/ia64.c: Likewise.
13859 * config/iq2000/iq2000.c: Likewise.
13860 * config/lm32/lm32.c: Likewise.
13861 * config/m32c/m32c.c: Likewise.
13862 * config/m32r/m32r.c: Likewise.
13863 * config/m68k/m68k.c: Likewise.
13864 * config/mcore/mcore.c: Likewise.
13865 * config/mep/mep.c: Likewise.
13866 * config/microblaze/microblaze.c: Likewise.
13867 * config/mips/mips.c: Likewise.
13868 * config/mmix/mmix.c: Likewise.
13869 * config/mn10300/mn10300.c: Likewise.
13870 * config/moxie/moxie.c: Likewise.
13871 * config/msp430/msp430.c: Likewise.
13872 * config/nds32/nds32.c: Likewise.
13873 * config/nds32/nds32-cost.c: Likewise.
13874 * config/nds32/nds32-fp-as-gp.c: Likewise.
13875 * config/nds32/nds32-intrinsic.c: Likewise.
13876 * config/nds32/nds32-isr.c: Likewise.
13877 * config/nds32/nds32-md-auxiliary.c: Likewise.
13878 * config/nds32/nds32-memory-manipulation.c: Likewise.
13879 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13880 * config/nds32/nds32-predicates.c: Likewise.
13881 * config/nios2/nios2.c: Likewise.
13882 * config/nvptx/nvptx.c: Likewise.
13883 * config/pa/pa.c: Likewise.
13884 * config/pdp11/pdp11.c: Likewise.
13885 * config/rl78/rl78.c: Likewise.
13886 * config/rs6000/rs6000.c: Likewise.
13887 * config/rx/rx.c: Likewise.
13888 * config/s390/s390.c: Likewise.
13889 * config/sh/sh.c: Likewise.
13890 * config/sh/sh-mem.cc: Likewise.
13891 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13892 * config/sh/sh_treg_combine.cc: Likewise.
13893 * config/sparc/sparc.c: Likewise.
13894 * config/spu/spu.c: Likewise.
13895 * config/stormy16/stormy16.c: Likewise.
13896 * config/tilegx/tilegx.c: Likewise.
13897 * config/tilepro/tilepro.c: Likewise.
13898 * config/v850/v850.c: Likewise.
13899 * config/vax/vax.c: Likewise.
13900 * config/visium/visium.c: Likewise.
13901 * config/xtensa/xtensa.c: Likewise.
13903 2015-07-10 Richard Biener <rguenther@suse.de>
13905 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
13906 (decision_tree::gen_gimple): Likewise.
13907 (decision_tree::gen_generic): Likewise.
13909 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
13912 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
13913 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
13915 2015-07-10 Jakub Jelinek <jakub@redhat.com>
13917 PR middle-end/66820
13918 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
13919 or ORT_TASK contexts.
13920 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
13923 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13925 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
13928 2015-07-10 Tom de Vries <tom@codesourcery.com>
13930 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
13931 insert nit + 1 bound.
13933 2015-07-10 Richard Biener <rguenther@suse.de>
13935 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
13936 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
13937 (if_convertible_loop_p_1): For this always compute bb predicates.
13938 (if_convertible_loop_p): And free them.
13940 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13942 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
13945 2015-07-10 Richard Biener <rguenther@suse.de>
13947 PR tree-optimization/66823
13948 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
13949 inverted predicate.
13951 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
13953 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
13954 to handle mips[32|64]r3 and mips[32|64]r5.
13956 2015-07-09 Jakub Jelinek <jakub@redhat.com>
13958 PR middle-end/66633
13959 * tree-nested.c (get_static_chain): Or in a flag into
13960 info->static_chain_added.
13961 (get_frame_field, get_nonlocal_debug_decl): Likewise.
13962 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
13963 2015-07-01 changes.
13964 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
13965 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
13968 PR tree-optimization/66718
13969 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
13971 (vect_simd_lane_linear): New function.
13972 (vectorizable_simd_clone_call): Support using linear arguments for
13973 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
13975 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
13978 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
13980 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
13982 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
13983 Use machine mode, not enum machine_mode in the prototype.
13985 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
13986 classify 128-bit floating point support.
13987 (FLOAT128_IBM_P): Likewise.
13988 (FLOAT128_VECTOR_P): Likewise.
13989 (FLOAT128_2REG_P): Likewise.
13990 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
13991 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
13992 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
13993 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
13995 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
13996 tests against TFmode/TDmode, since those modes do not use VSX
13998 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
14000 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
14001 tests against TFmode, etc.
14002 (invalid_e500_subreg): Add tests against IFmode/KFmode.
14003 (reg_offset_addressing_ok_p): Likewise.
14004 (rs6000_legitimate_offset_address_p): Likewise.
14005 (rs6000_legitimize_address): Likewise.
14006 (rs6000_legitimize_reload_address): Likewise.
14007 (rs6000_legitimate_address_p): Clean up tests against TFmode and
14008 TDmode to use the new helper macros, which will include IFmode and
14010 (rs6000_emit_move): Likewise.
14011 (rs6000_darwin64_record_arg_recurse): Likewise.
14012 (print_operand): Likewise.
14013 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
14014 that uses a single vector register as a vector and not as a
14015 floating point register in terms of the calling sequence.
14016 (rs6000_discover_homogeneous_aggregate): Likewise.
14017 (rs6000_return_in_memory): Likewise.
14018 (init_cumulative_args): Likewise.
14019 (rs6000_function_arg_boundary): Likewise.
14020 (rs6000_function_arg_advance_1): Likewise.
14021 (rs6000_function_arg): Likewise.
14022 (rs6000_pass_by_reference): Likewise.
14023 (rs6000_gimplify_va_arg): Likewise.
14024 (rs6000_secondary_reload_memory): Use machine_mode not enum
14026 (rs6000_split_multireg_move): Use new helper macros.
14027 (spe_func_has_64bit_regs_p): Likewise.
14028 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
14029 (output_toc): Use new helper macros.
14030 (rs6000_register_move_cost): Likewise.
14031 (rs6000_function_value): Add IEEE 128-bit floating point calling
14033 (rs6000_libcall_value): Likewise.
14034 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
14035 floating point support.
14036 (rs6000_vector_mode_supported_p): Likewise.
14038 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
14040 PR rtl-optimization/66782
14041 * lra-int.h (struct lra_insn_recog_data): Add comment about
14042 clobbered hard regs for arg_hard_regs.
14043 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
14044 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
14045 Add condition for processing used hard regs.
14046 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
14047 Process clobbered hard regs.
14049 2015-07-09 Michael Matz <matz@suse.de>
14051 * genmatch.c (fprintf_indent): New function.
14052 (operand::gen_transform): Add indent parameter.
14053 (expr::gen_transform, c_expr::gen_transform,
14054 capture::gen_transform): Ditto and use fprintf_indent.
14055 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
14056 (dt_operand::gen, dt_operand::gen_predicate,
14057 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
14058 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
14059 (decision_tree::gen_gimple): Adjust calls and indent generated
14061 (decision_tree::gen_generic): Ditto.
14062 (write_predicate): Ditto.
14064 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
14067 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
14068 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
14069 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
14070 {GENERAL,SSE,MMX}_REG_P where appropriate.
14072 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
14074 * lto-streamer.h: Don't include target.h and alloc-pool.h.
14075 * builtins.c: Adjust includes.
14076 * gimple.c: Likewise.
14077 * ipa-icf.c: Likewise.
14078 * lto-opts.c: Likewise.
14079 * ipa-reference.c: Likewise.
14080 * lto-section-out.c: Likewise.
14081 * lto-streamer-in.c: Likewise.
14082 * lto-streamer-out.c: Likewise.
14083 * opts-global.c: Likewise.
14084 * symtab.c: Likewise.
14085 * tree-chkp.c: Likewise.
14086 * tree-ssa-live.c: Likewise.
14087 * tree-streamer-in.c: Likewise.
14088 * tree-streamer-out.c: Likewise.
14089 * config/darwin.c: Likewise.
14090 * config/i386/winnt.c: Likewise.
14092 2015-07-09 Richard Biener <rguenther@suse.de>
14094 * genmatch.c (struct expr): Add force_single_use flag.
14095 (expr::expr): Add copy constructor.
14096 (capture_info::walk_match): Gather force_single_use captures.
14097 (expr::gen_transform): Use possibly NULLified sequence.
14098 (dt_simplify::gen): Apply single-use restrictions by NULLifying
14099 seq if any constrained expr is not single-use.
14100 (parser::parse_expr): Refactor to allow multiple flags. Handle
14101 's' flag to force an expression have a single-use if the pattern
14102 simplifies to more than one statement.
14103 * match.pd: Convert most single_use conditionals to :s flags.
14105 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
14107 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
14108 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
14109 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
14111 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
14113 * flags.h: Don't include flag-types.h or options.h.
14114 * opts-common.c: Adjust includes.
14115 * opts-global.c: Likewise.
14116 * common/config/epiphany/epiphany-common.c: Likewise.
14118 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
14121 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
14124 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
14127 * config/i386/i386.c (ix86_return_in_memory): Return true
14128 if int_size_in_bytes returns negative for IA MCU.
14130 2015-07-09 Marek Polacek <polacek@redhat.com>
14132 PR tree-optimization/66718
14133 * Makefile.in (OBJS): Add gimple-laddress.o.
14134 * passes.def: Schedule pass_laddress.
14135 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
14136 * tree-pass.h (make_pass_laddress): Declare.
14137 * gimple-laddress.c: New file.
14139 2015-07-09 Richard Biener <rguenther@suse.de>
14141 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
14143 2015-07-09 Richard Biener <rguenther@suse.de>
14145 PR tree-optimization/66807
14146 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
14148 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
14150 * function.c (stack_protect_epilogue): Use if rather than switch for
14151 check targetm.have_stack_protect_test.
14153 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14155 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
14156 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
14157 * config/arc/arc.h: Likewise.
14158 * config/arm/arm.h: Likewise.
14159 * config/bfin/bfin.h: Likewise.
14160 * config/epiphany/epiphany.h: Likewise.
14161 * config/frv/frv.h: Likewise.
14162 * config/ia64/ia64.h: Likewise.
14163 * config/iq2000/iq2000.h: Likewise.
14164 * config/lm32/lm32.h: Likewise.
14165 * config/m32r/m32r.h: Likewise.
14166 * config/mcore/mcore.h: Likewise.
14167 * config/mep/mep.h: Likewise.
14168 * config/microblaze/microblaze.h: Likewise.
14169 * config/mips/mips.h: Likewise.
14170 * config/mmix/mmix.h: Likewise.
14171 * config/mn10300/mn10300.h: Likewise.
14172 * config/nds32/nds32.h: Likewise.
14173 * config/nios2/nios2.h: Likewise.
14174 * config/pa/pa.h: Likewise.
14175 * config/rl78/rl78.h: Likewise.
14176 * config/sh/sh.h: Likewise.
14177 * config/sparc/sparc.h: Likewise.
14178 * config/stormy16/stormy16.h: Likewise.
14179 * config/tilegx/tilegx.h: Likewise.
14180 * config/tilepro/tilepro.h: Likewise.
14181 * config/v850/v850.h: Likewise.
14182 * config/xtensa/xtensa.h: Likewise.
14183 * doc/tm.texi: Regenerate.
14184 * doc/tm.texi.in: Adjust.
14185 * combine.c (simplify_set): Likewise.
14186 (simplify_comparison): Likewise.
14187 * expr.c (store_constructor): Likewise.
14188 * internal-fn.c (expand_arith_overflow): Likewise.
14189 * reload.c (push_reload): Likewise.
14190 (find_reloads): Likewise.
14191 (find_reloads_subreg_address): Likewise.
14192 * reload1.c (eliminate_regs_1): Likewise.
14193 * rtlanal.c (nonzero_bits1): Likewise.
14194 (num_sign_bit_copies1): Likewise.
14195 * simplify-rtx.c (simplify_truncation): Likewise.
14197 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14199 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
14200 of AUTO_INC_DEC with the preprocessor.
14201 * combine.c (combine_instructions): Likewise.
14202 (can_combine_p): Likewise.
14203 (try_combine): Likewise.
14204 * emit-rtl.c (try_split): Likewise.
14205 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14206 * lower-subreg.c (resolve_simple_move): Likewise.
14207 * lra.c (update_inc_notes): Likewise.
14208 * recog.c (asm_operand_ok): Likewise.
14209 (constrain_operands): Likewise.
14210 * regrename.c (scan_rtx_address): Likewise.
14211 * reload.c (update_auto_inc_notes): Likewise.
14212 (reg_inc_found_and_valid_p): Likewise.
14213 * reload1.c (reload): Likewise.
14214 (emit_input_reload_insns): Likewise.
14215 (delete_output_reload): Likewise.
14216 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14217 * valtrack.c (cleanup_auto_inc_dec): Likewise.
14219 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14221 * rtl.h: Always define AUTO_INC_DEC.
14222 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
14223 * combine.c (combine_instructions): Likewise.
14224 (can_combine_p): Likewise.
14225 (try_combine): Likewise.
14226 * emit-rtl.c (try_split): Likewise.
14227 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14228 * lower-subreg.c (resolve_simple_move): Likewise.
14229 * lra.c (update_inc_notes): Likewise.
14230 * recog.c (asm_operand_ok): Likewise.
14231 (constrain_operands): Likewise.
14232 * regrename.c (scan_rtx_address): Likewise.
14233 * reload.c (update_auto_inc_notes): Likewise.
14234 (find_equiv_reg): Likewise.
14235 * reload1.c (reload): Likewise.
14236 (reload_as_needed): Likewise.
14237 (choose_reload_regs): Likewise.
14238 (emit_input_reload_insns): Likewise.
14239 (delete_output_reload): Likewise.
14240 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14241 * valtrack.c (cleanup_auto_inc_dec): Likewise.
14243 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14245 * combine.c (can_combine_def_p): Don't check the value of
14246 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
14247 (combinable_i3pat): Likewise.
14248 (mark_used_regs_combine): Likewise.
14249 * regrename.c (rename_chains): Likewise.
14250 * reload.c (find_reloads_address): Likewise.
14251 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14253 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14255 * combine.c (update_rsp_from_reg_equal): Don't check if
14256 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
14257 (reg_nonzero_bits_for_combine): Likewise.
14258 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
14260 * config/frv/frv.h: Likewise.
14261 * config/lm32/lm32.h: Likewise.
14262 * config/mep/mep.h: Likewise.
14263 * config/mips/mips.h: Likewise.
14264 * config/rs6000/rs6000.h: Likewise.
14265 * config/sh/sh.h: Likewise.
14266 * config/tilegx/tilegx.h (enum reg_class): Likewise.
14267 * config/tilepro/tilepro.h: Likewise.
14268 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
14269 * doc/tm.texi: Regenerate.
14270 * doc/tm.texi.in: Adjust.
14271 * rtlanal.c (nonzero_bits1): Likewise.
14273 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14275 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
14276 with the preprocessor.
14277 (combine_instructions): Likewise.
14278 (try_combine): Likewise.
14280 (distribute_notes): Likewise.
14282 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14284 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
14286 (simplify_set): Likewise.
14287 * cse.c (cse_insn): Likewise.
14288 * fold-const.c (fold_single_bit_test): Likewise.
14289 (fold_unary_loc): Likewise.
14290 * postreload.c (reload_cse_simplify_set): Likewise.
14291 (reload_cse_simplify_operands): Likewise.
14293 2015-07-08 Jiong Wang <jiong.wang@arm.com>
14295 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
14296 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
14298 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
14301 * config/i386/x86intrin.h: Include <adxintrin.h> even if
14302 __iamcu__ is defined.
14304 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
14306 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
14308 2015-07-08 Iain Sandoe <iain@codesourcery.com>
14311 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
14312 names from preservation.
14314 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
14317 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
14319 (function_arg_advance_32): Don't pass vectors in registers for
14321 (function_arg_32): Likewise.
14322 (ix86_return_in_memory): Don't return vectors in registers for
14325 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
14327 PR middle-end/66334
14328 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
14329 hard regno live at the start of BB with incoming abnormal edges.
14330 * lra-lives.c (process_bb_lives): Ditto.
14332 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
14335 * config/nvptx/mkoffload.c (main): Create an offload image only in
14336 64-bit configurations.
14338 2015-07-08 Martin Liska <mliska@suse.cz>
14341 * tree-sra.c (create_access_1): Call ctor without brackets.
14342 (create_artificial_child_access): Likewise.
14344 2015-07-08 Richard Biener <rguenther@suse.de>
14346 PR tree-optimization/66793
14347 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
14348 Properly split the block after stmts ending it.
14350 2015-07-08 Richard Biener <rguenther@suse.de>
14352 PR tree-optimization/66794
14353 * passes.c (execute_function_todo): Assert that post-dominators
14355 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
14356 Free post-dominators.
14358 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14360 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
14363 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
14365 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
14366 more than or equal 8 and less than 32 when optimizing for size.
14368 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14370 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
14371 COSTS_N_INSNS (1) and increment it appropriately throughout the
14374 2015-07-08 Richard Biener <rguenther@suse.de>
14376 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
14378 2015-07-08 Alan Modra <amodra@gmail.com>
14380 * target.def (rtx_costs): Remove "code" param, add "mode".
14381 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
14382 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
14383 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
14384 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
14385 call. Track mode when given in rtx.
14386 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
14387 (default_address_cost): Pass Pmode to rtx_cost.
14388 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
14389 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
14391 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
14392 (notreg_cost): Add mode param. Use it.
14393 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
14394 mode param and pass to set_src_cost. Update all calls.
14395 (hash_scan_set): Formatting.
14396 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
14397 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
14399 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
14400 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
14401 emit_store_flag): Update set_src_cost and rtx_cost calls.
14402 * auto-inc-dec.c (attempt_change): Likewise.
14403 * calls.c (precompute_register_parameters): Likewise.
14404 * combine.c (expand_compound_operation, make_extraction,
14405 force_to_mode, distribute_and_simplify_rtx): Likewise.
14406 * dojump.c (prefer_and_bit_test): Likewise.
14407 * dse.c (find_shift_sequence): Likewise.
14408 * expr.c (compress_float_constant): Likewise.
14409 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
14410 * ifcvt.c (noce_try_sign_mask): Likewise.
14411 * loop-doloop.c (doloop_optimize): Likewise.
14412 * loop-invariant.c (create_new_invariant): Likewise.
14413 * lower-subreg.c (shift_cost, compute_costs): Likewise.
14414 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
14415 lshift_cheap_p): Likewise.
14416 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
14417 try_replace_in_use, reload_cse_move2add): Likewise.
14418 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
14420 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14421 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
14422 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
14423 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
14424 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
14425 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
14427 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
14428 * config/arc/arc.c (arc_rtx_costs): Likewise.
14429 * config/arm/arm.c (arm_rtx_costs): Likewise.
14430 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
14431 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
14432 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
14433 * config/cris/cris.c (cris_rtx_costs): Likewise.
14434 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
14435 * config/frv/frv.c (frv_rtx_costs): Likewise.
14436 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
14437 * config/i386/i386.c (ix86_rtx_costs): Likewise.
14438 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
14439 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
14440 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
14441 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
14442 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
14443 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
14444 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
14445 * config/mep/mep.c (mep_rtx_cost): Likewise.
14446 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
14447 * config/mips/mips.c (mips_rtx_costs): Likewise.
14448 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
14449 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
14450 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
14451 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
14452 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
14453 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
14454 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
14455 * config/pa/pa.c (hppa_rtx_costs): Likewise.
14456 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
14457 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
14458 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
14459 * config/s390/s390.c (s390_rtx_costs): Likewise.
14460 * config/sh/sh.c (sh_rtx_costs): Likewise.
14461 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
14462 * config/spu/spu.c (spu_rtx_costs): Likewise.
14463 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
14464 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
14465 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
14466 * config/v850/v850.c (v850_rtx_costs): Likewise.
14467 * config/vax/vax.c (vax_rtx_costs): Likewise.
14468 * config/visium/visium.c (visium_rtx_costs): Likewise.
14469 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
14470 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
14471 "code" param, and pass as outer_code to first rtx_cost call. Pass
14472 mode to rtx_cost calls.
14473 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
14475 (aarch64_rtx_costs_wrapper): Update.
14476 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
14477 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
14479 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
14480 and rtx_cost calls.
14481 (avr_operand_rtx_cost): Similarly.
14482 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
14483 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
14484 * config/mips/mips.c (mips_stack_address_p): Comment typo.
14485 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
14486 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
14487 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
14489 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
14490 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
14491 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
14492 * doc/tm.texi: Regenerate.
14494 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
14496 * tree-core.h: Include symtab.h.
14497 * rtl.h: Include hard-reg-set.h but not flags.h.
14498 (HARD_CONST): Remove condition compilation involving HARD_CONST since
14499 hard-reg-set.h is always included.
14500 * regs.h: Don't include hard-reg-set.h or rtl.h.
14501 * cfg.h: Include dominance.h.
14502 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
14503 * backend.h: New. Aggregate commonly used backend header files.
14504 * gimple-ssa.h: Don't include tree-hasher.h.
14505 * ssa.h: New. Aggregate commonly used SSA header files.
14506 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
14507 * sel-sched-ir.h: Flatten includes.
14508 * lra-int.h: Flatten completely.
14509 * sel-sched-dump.h: Flatten includes.
14510 * ira-int.h: Flatten includes.
14511 * gimple-streamer.h: Remove all includes.
14512 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
14513 * resource.h: Flatten hard-reg-set.h and df.h.
14514 * sched-int.h: Flatten insn-arrt.h and df.h.
14515 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
14516 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
14517 * genattrtab.c (write_header): Adjust generated includes.
14518 * genautomata.c (main): Likewise.
14519 * genconditions.c (write-header): Likewise.
14520 * genemit.c (main): Likewise.
14521 * gengtype.c (open_base_files): Likewise.
14522 * genopinit.c (main): Likewise.
14523 * genoutput.c (output_prologue): Likewise.
14524 * genpeep.c (main): Likewise.
14525 * genpreds.c (write_insn_preds_c): Likewise.
14526 * genrecog.c (write_header): Likewise.
14527 * alias.c: Adjust includes.
14528 * asan.c: Likewise.
14529 * attribs.c: Likewise.
14530 * auto-inc-dec.c: Likewise.
14531 * auto-profile.c: Likewise.
14532 * bb-reorder.c: Likewise.
14533 * bt-load.c: Likewise.
14534 * builtins.c: Likewise.
14535 * caller-save.c: Likewise.
14536 * calls.c: Likewise.
14537 * ccmp.c: Likewise.
14539 * cfganal.c: Likewise.
14540 * cfgbuild.c: Likewise.
14541 * cfgcleanup.c: Likewise.
14542 * cfgexpand.c: Likewise.
14543 * cfghooks.c: Likewise.
14544 * cfgloop.c: Likewise.
14545 * cfgloopanal.c: Likewise.
14546 * cfgloopmanip.c: Likewise.
14547 * cfgrtl.c: Likewise.
14548 * cgraph.c: Likewise.
14549 * cgraphbuild.c: Likewise.
14550 * cgraphclones.c: Likewise.
14551 * cgraphunit.c: Likewise.
14552 * cilk-common.c: Likewise.
14553 * combine-stack-adj.c: Likewise.
14554 * combine.c: Likewise.
14555 * compare-elim.c: Likewise.
14556 * convert.c: Likewise.
14557 * coverage.c: Likewise.
14558 * cppbuiltin.c: Likewise.
14559 * cprop.c: Likewise.
14561 * cselib.c: Likewise.
14562 * data-streamer-in.c: Likewise.
14563 * data-streamer-out.c: Likewise.
14564 * data-streamer.c: Likewise.
14565 * dbxout.c: Likewise.
14568 * debug.c: Likewise.
14569 * df-core.c: Likewise.
14570 * df-problems.c: Likewise.
14571 * df-scan.c: Likewise.
14573 * dojump.c: Likewise.
14574 * dominance.c: Likewise.
14575 * domwalk.c: Likewise.
14576 * double-int.c: Likewise.
14578 * dumpfile.c: Likewise.
14579 * dwarf2asm.c: Likewise.
14580 * dwarf2cfi.c: Likewise.
14581 * dwarf2out.c: Likewise.
14582 * emit-rtl.c: Likewise.
14583 * et-forest.c: Likewise.
14584 * except.c: Likewise.
14585 * explow.c: Likewise.
14586 * expmed.c: Likewise.
14587 * expr.c: Likewise.
14588 * final.c: Likewise.
14589 * fixed-value.c: Likewise.
14590 * fold-const.c: Likewise.
14591 * function.c: Likewise.
14592 * fwprop.c: Likewise.
14593 * gcc-plugin.h: Likewise.
14594 * gcse-common.c: Likewise.
14595 * gcse.c: Likewise.
14596 * generic-match-head.c: Likewise.
14597 * ggc-page.c: Likewise.
14598 * gimple-builder.c: Likewise.
14599 * gimple-expr.c: Likewise.
14600 * gimple-fold.c: Likewise.
14601 * gimple-iterator.c: Likewise.
14602 * gimple-low.c: Likewise.
14603 * gimple-match-head.c: Likewise.
14604 * gimple-pretty-print.c: Likewise.
14605 * gimple-ssa-isolate-paths.c: Likewise.
14606 * gimple-ssa-strength-reduction.c: Likewise.
14607 * gimple-streamer-in.c: Likewise.
14608 * gimple-streamer-out.c: Likewise.
14609 * gimple-walk.c: Likewise.
14610 * gimple.c: Likewise.
14611 * gimplify-me.c: Likewise.
14612 * gimplify.c: Likewise.
14613 * godump.c: Likewise.
14614 * graph.c: Likewise.
14615 * graphite-blocking.c: Likewise.
14616 * graphite-dependences.c: Likewise.
14617 * graphite-interchange.c: Likewise.
14618 * graphite-isl-ast-to-gimple.c: Likewise.
14619 * graphite-optimize-isl.c: Likewise.
14620 * graphite-poly.c: Likewise.
14621 * graphite-scop-detection.c: Likewise.
14622 * graphite-sese-to-poly.c: Likewise.
14623 * graphite.c: Likewise.
14624 * haifa-sched.c: Likewise.
14625 * hw-doloop.c: Likewise.
14626 * ifcvt.c: Likewise.
14627 * init-regs.c: Likewise.
14628 * internal-fn.c: Likewise.
14629 * ipa-chkp.c: Likewise.
14630 * ipa-comdats.c: Likewise.
14631 * ipa-cp.c: Likewise.
14632 * ipa-devirt.c: Likewise.
14633 * ipa-icf-gimple.c: Likewise.
14634 * ipa-icf.c: Likewise.
14635 * ipa-inline-analysis.c: Likewise.
14636 * ipa-inline-transform.c: Likewise.
14637 * ipa-inline.c: Likewise.
14638 * ipa-polymorphic-call.c: Likewise.
14639 * ipa-profile.c: Likewise.
14640 * ipa-prop.c: Likewise.
14641 * ipa-pure-const.c: Likewise.
14642 * ipa-ref.c: Likewise.
14643 * ipa-reference.c: Likewise.
14644 * ipa-split.c: Likewise.
14645 * ipa-utils.c: Likewise.
14646 * ipa-visibility.c: Likewise.
14648 * ira-build.c: Likewise.
14649 * ira-color.c: Likewise.
14650 * ira-conflicts.c: Likewise.
14651 * ira-costs.c: Likewise.
14652 * ira-emit.c: Likewise.
14653 * ira-lives.c: Likewise.
14655 * jump.c: Likewise.
14656 * langhooks.c: Likewise.
14658 * loop-doloop.c: Likewise.
14659 * loop-init.c: Likewise.
14660 * loop-invariant.c: Likewise.
14661 * loop-iv.c: Likewise.
14662 * loop-unroll.c: Likewise.
14663 * lower-subreg.c: Likewise.
14664 * lra-assigns.c: Likewise.
14665 * lra-coalesce.c: Likewise.
14666 * lra-constraints.c: Likewise.
14667 * lra-eliminations.c: Likewise.
14668 * lra-lives.c: Likewise.
14669 * lra-remat.c: Likewise.
14670 * lra-spills.c: Likewise.
14672 * lto-cgraph.c: Likewise.
14673 * lto-compress.c: Likewise.
14674 * lto-opts.c: Likewise.
14675 * lto-section-in.c: Likewise.
14676 * lto-section-out.c: Likewise.
14677 * lto-streamer-in.c: Likewise.
14678 * lto-streamer-out.c: Likewise.
14679 * lto-streamer.c: Likewise.
14681 * mode-switching.c: Likewise.
14682 * modulo-sched.c: Likewise.
14683 * omega.c: Likewise.
14684 * omp-low.c: Likewise.
14685 * optabs.c: Likewise.
14686 * opts-global.c: Likewise.
14687 * passes.c: Likewise.
14688 * plugin.c: Likewise.
14689 * postreload-gcse.c: Likewise.
14690 * postreload.c: Likewise.
14691 * predict.c: Likewise.
14692 * print-rtl.c: Likewise.
14693 * print-tree.c: Likewise.
14694 * profile.c: Likewise.
14695 * real.c: Likewise.
14696 * realmpfr.c: Likewise.
14697 * recog.c: Likewise.
14699 * reg-stack.c: Likewise.
14700 * regcprop.c: Likewise.
14701 * reginfo.c: Likewise.
14702 * regrename.c: Likewise.
14703 * regstat.c: Likewise.
14704 * reload.c: Likewise.
14705 * reload1.c: Likewise.
14706 * reorg.c: Likewise.
14707 * resource.c: Likewise.
14708 * rtl-chkp.c: Likewise.
14709 * rtlanal.c: Likewise.
14710 * rtlhooks.c: Likewise.
14711 * sanopt.c: Likewise.
14712 * sched-deps.c: Likewise.
14713 * sched-ebb.c: Likewise.
14714 * sched-rgn.c: Likewise.
14715 * sched-vis.c: Likewise.
14716 * sdbout.c: Likewise.
14717 * sel-sched-dump.c: Likewise.
14718 * sel-sched-ir.c: Likewise.
14719 * sel-sched.c: Likewise.
14720 * sese.c: Likewise.
14721 * shrink-wrap.c: Likewise.
14722 * simplify-rtx.c: Likewise.
14723 * stack-ptr-mod.c: Likewise.
14724 * stmt.c: Likewise.
14725 * stor-layout.c: Likewise.
14726 * store-motion.c: Likewise.
14727 * stringpool.c: Likewise.
14728 * symtab.c: Likewise.
14729 * target-globals.c: Likewise.
14730 * targhooks.c: Likewise.
14731 * toplev.c: Likewise.
14732 * tracer.c: Likewise.
14733 * trans-mem.c: Likewise.
14734 * tree-affine.c: Likewise.
14735 * tree-browser.c: Likewise.
14736 * tree-call-cdce.c: Likewise.
14737 * tree-cfg.c: Likewise.
14738 * tree-cfgcleanup.c: Likewise.
14739 * tree-chkp-opt.c: Likewise.
14740 * tree-chkp.c: Likewise.
14741 * tree-chrec.c: Likewise.
14742 * tree-complex.c: Likewise.
14743 * tree-data-ref.c: Likewise.
14744 * tree-dfa.c: Likewise.
14745 * tree-diagnostic.c: Likewise.
14746 * tree-dump.c: Likewise.
14747 * tree-eh.c: Likewise.
14748 * tree-emutls.c: Likewise.
14749 * tree-if-conv.c: Likewise.
14750 * tree-inline.c: Likewise.
14751 * tree-into-ssa.c: Likewise.
14752 * tree-iterator.c: Likewise.
14753 * tree-loop-distribution.c: Likewise.
14754 * tree-nested.c: Likewise.
14755 * tree-nrv.c: Likewise.
14756 * tree-object-size.c: Likewise.
14757 * tree-outof-ssa.c: Likewise.
14758 * tree-parloops.c: Likewise.
14759 * tree-phinodes.c: Likewise.
14760 * tree-predcom.c: Likewise.
14761 * tree-pretty-print.c: Likewise.
14762 * tree-profile.c: Likewise.
14763 * tree-scalar-evolution.c: Likewise.
14764 * tree-sra.c: Likewise.
14765 * tree-ssa-address.c: Likewise.
14766 * tree-ssa-alias.c: Likewise.
14767 * tree-ssa-ccp.c: Likewise.
14768 * tree-ssa-coalesce.c: Likewise.
14769 * tree-ssa-copy.c: Likewise.
14770 * tree-ssa-copyrename.c: Likewise.
14771 * tree-ssa-dce.c: Likewise.
14772 * tree-ssa-dom.c: Likewise.
14773 * tree-ssa-dse.c: Likewise.
14774 * tree-ssa-forwprop.c: Likewise.
14775 * tree-ssa-ifcombine.c: Likewise.
14776 * tree-ssa-live.c: Likewise.
14777 * tree-ssa-loop-ch.c: Likewise.
14778 * tree-ssa-loop-im.c: Likewise.
14779 * tree-ssa-loop-ivcanon.c: Likewise.
14780 * tree-ssa-loop-ivopts.c: Likewise.
14781 * tree-ssa-loop-manip.c: Likewise.
14782 * tree-ssa-loop-niter.c: Likewise.
14783 * tree-ssa-loop-prefetch.c: Likewise.
14784 * tree-ssa-loop-unswitch.c: Likewise.
14785 * tree-ssa-loop.c: Likewise.
14786 * tree-ssa-math-opts.c: Likewise.
14787 * tree-ssa-operands.c: Likewise.
14788 * tree-ssa-phiopt.c: Likewise.
14789 * tree-ssa-phiprop.c: Likewise.
14790 * tree-ssa-pre.c: Likewise.
14791 * tree-ssa-propagate.c: Likewise.
14792 * tree-ssa-reassoc.c: Likewise.
14793 * tree-ssa-sccvn.c: Likewise.
14794 * tree-ssa-scopedtables.c: Likewise.
14795 * tree-ssa-sink.c: Likewise.
14796 * tree-ssa-strlen.c: Likewise.
14797 * tree-ssa-structalias.c: Likewise.
14798 * tree-ssa-tail-merge.c: Likewise.
14799 * tree-ssa-ter.c: Likewise.
14800 * tree-ssa-threadedge.c: Likewise.
14801 * tree-ssa-threadupdate.c: Likewise.
14802 * tree-ssa-uncprop.c: Likewise.
14803 * tree-ssa-uninit.c: Likewise.
14804 * tree-ssa.c: Likewise.
14805 * tree-ssanames.c: Likewise.
14806 * tree-stdarg.c: Likewise.
14807 * tree-streamer-in.c: Likewise.
14808 * tree-streamer-out.c: Likewise.
14809 * tree-streamer.c: Likewise.
14810 * tree-switch-conversion.c: Likewise.
14811 * tree-tailcall.c: Likewise.
14812 * tree-vect-data-refs.c: Likewise.
14813 * tree-vect-generic.c: Likewise.
14814 * tree-vect-loop-manip.c: Likewise.
14815 * tree-vect-loop.c: Likewise.
14816 * tree-vect-patterns.c: Likewise.
14817 * tree-vect-slp.c: Likewise.
14818 * tree-vect-stmts.c: Likewise.
14819 * tree-vectorizer.c: Likewise.
14820 * tree-vrp.c: Likewise.
14821 * tree.c: Likewise.
14822 * tsan.c: Likewise.
14823 * ubsan.c: Likewise.
14824 * valtrack.c: Likewise.
14825 * value-prof.c: Likewise.
14826 * var-tracking.c: Likewise.
14827 * varasm.c: Likewise.
14828 * varpool.c: Likewise.
14829 * vmsdbgout.c: Likewise.
14830 * vtable-verify.c: Likewise.
14832 * wide-int.cc: Likewise.
14833 * xcoffout.c: Likewise.
14834 * config/aarch64/aarch64-builtins.c: Likewise.
14835 * config/aarch64/aarch64.c: Likewise.
14836 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14837 * config/alpha/alpha.c: Likewise.
14838 * config/arc/arc.c: Likewise.
14839 * config/arm/aarch-common.c: Likewise.
14840 * config/arm/arm-builtins.c: Likewise.
14841 * config/arm/arm-c.c: Likewise.
14842 * config/arm/arm.c: Likewise.
14843 * config/avr/avr-c.c: Likewise.
14844 * config/avr/avr-log.c: Likewise.
14845 * config/avr/avr.c: Likewise.
14846 * config/bfin/bfin.c: Likewise.
14847 * config/c6x/c6x.c: Likewise.
14848 * config/cr16/cr16.c: Likewise.
14849 * config/cris/cris.c: Likewise.
14850 * config/darwin-c.c: Likewise.
14851 * config/darwin.c: Likewise.
14852 * config/epiphany/epiphany.c: Likewise.
14853 * config/epiphany/mode-switch-use.c: Likewise.
14854 * config/epiphany/resolve-sw-modes.c: Likewise.
14855 * config/fr30/fr30.c: Likewise.
14856 * config/frv/frv.c: Likewise.
14857 * config/ft32/ft32.c: Likewise.
14858 * config/h8300/h8300.c: Likewise.
14859 * config/i386/i386-c.c: Likewise.
14860 * config/i386/i386.c: Likewise.
14861 * config/i386/msformat-c.c: Likewise.
14862 * config/i386/winnt-cxx.c: Likewise.
14863 * config/i386/winnt-stubs.c: Likewise.
14864 * config/i386/winnt.c: Likewise.
14865 * config/ia64/ia64-c.c: Likewise.
14866 * config/ia64/ia64.c: Likewise.
14867 * config/iq2000/iq2000.c: Likewise.
14868 * config/lm32/lm32.c: Likewise.
14869 * config/m32c/m32c-pragma.c: Likewise.
14870 * config/m32c/m32c.c: Likewise.
14871 * config/m32r/m32r.c: Likewise.
14872 * config/m68k/m68k.c: Likewise.
14873 * config/mcore/mcore.c: Likewise.
14874 * config/mep/mep-pragma.c: Likewise.
14875 * config/mep/mep.c: Likewise.
14876 * config/microblaze/microblaze-c.c: Likewise.
14877 * config/microblaze/microblaze.c: Likewise.
14878 * config/mips/mips.c: Likewise.
14879 * config/mmix/mmix.c: Likewise.
14880 * config/mn10300/mn10300.c: Likewise.
14881 * config/moxie/moxie.c: Likewise.
14882 * config/msp430/msp430-c.c: Likewise.
14883 * config/msp430/msp430.c: Likewise.
14884 * config/nds32/nds32-cost.c: Likewise.
14885 * config/nds32/nds32-fp-as-gp.c: Likewise.
14886 * config/nds32/nds32-intrinsic.c: Likewise.
14887 * config/nds32/nds32-isr.c: Likewise.
14888 * config/nds32/nds32-md-auxiliary.c: Likewise.
14889 * config/nds32/nds32-memory-manipulation.c: Likewise.
14890 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14891 * config/nds32/nds32-predicates.c: Likewise.
14892 * config/nds32/nds32.c: Likewise.
14893 * config/nios2/nios2.c: Likewise.
14894 * config/nvptx/nvptx.c: Likewise.
14895 * config/pa/pa.c: Likewise.
14896 * config/pdp11/pdp11.c: Likewise.
14897 * config/rl78/rl78-c.c: Likewise.
14898 * config/rl78/rl78.c: Likewise.
14899 * config/rs6000/rs6000-c.c: Likewise.
14900 * config/rs6000/rs6000.c: Likewise.
14901 * config/rx/rx.c: Likewise.
14902 * config/s390/s390-c.c: Likewise.
14903 * config/s390/s390.c: Likewise.
14904 * config/sh/sh-c.c: Likewise.
14905 * config/sh/sh-mem.cc: Likewise.
14906 * config/sh/sh.c: Likewise.
14907 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14908 * config/sh/sh_treg_combine.cc: Likewise.
14909 * config/sol2-c.c: Likewise.
14910 * config/sol2-cxx.c: Likewise.
14911 * config/sol2-stubs.c: Likewise.
14912 * config/sol2.c: Likewise.
14913 * config/sparc/sparc-c.c: Likewise.
14914 * config/sparc/sparc.c: Likewise.
14915 * config/spu/spu-c.c: Likewise.
14916 * config/spu/spu.c: Likewise.
14917 * config/stormy16/stormy16.c: Likewise.
14918 * config/tilegx/mul-tables.c: Likewise.
14919 * config/tilegx/tilegx-c.c: Likewise.
14920 * config/tilegx/tilegx.c: Likewise.
14921 * config/tilepro/mul-tables.c: Likewise.
14922 * config/tilepro/tilepro-c.c: Likewise.
14923 * config/tilepro/tilepro.c: Likewise.
14924 * config/v850/v850-c.c: Likewise.
14925 * config/v850/v850.c: Likewise.
14926 * config/vax/vax.c: Likewise.
14927 * config/visium/visium.c: Likewise.
14928 * config/vms/vms-c.c: Likewise.
14929 * config/vms/vms.c: Likewise.
14930 * config/vxworks.c: Likewise.
14931 * config/xtensa/xtensa.c: Likewise.
14933 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
14935 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
14936 Remove operand constraints. Change operand 2 predicate to
14937 nonmemory operand. Limit const_int values to mode bitsize. Only
14938 allow const_int values less than 32 when optimizing for size.
14939 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
14940 Remove operand constraints.
14941 (*bt<mode>): Use SImode for const_int values less than 32.
14942 (regmode): Remove mode attribute.
14944 2015-07-07 Anatoly Sokolov <aesok@post.ru>
14946 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14947 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
14948 moxie_legitimate_address_p): New functions.
14949 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
14951 2015-07-07 Tom de Vries <tom@codesourcery.com>
14953 PR tree-optimization/66642
14954 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
14955 header comment. Rename split_edge variable to edge_at_split. Split
14956 exit edge to create new loop exit bb. Insert loop exit phis in new
14959 2015-07-07 Tom de Vries <tom@codesourcery.com>
14961 * tree-cfg.c (get_virtual_phi): New function.
14962 * tree-cfg.h (get_virtual_phi): Declare.
14963 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
14964 (rewrite_virtuals_into_loop_closed_ssa): New function.
14965 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
14967 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
14968 (transform_to_exit_first_loop_alt): Use
14969 rewrite_virtuals_into_loop_closed_ssa.
14971 2015-07-07 Richard Biener <rguenther@suse.de>
14973 * fold-const.c (fold_binary_loc): Move
14974 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
14975 * match.pd: ... here.
14976 Add (X * C1) % C2 -> 0 simplification pattern derived from
14979 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
14982 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
14983 change for target/65249.
14985 2015-07-07 Paulo Matos <pmatos@broadcom.com>
14987 * symtab.c (address_matters_1): Fix typo in comment above.
14988 (can_increase_alignment_p): Likewise.
14990 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14992 * function.c (free_after_compilation): Clear PROP_cfg in
14993 f->curr_properties.
14995 2015-07-07 Richard Biener <rguenther@suse.de>
14997 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
14999 (add_control_edge): Remove excessive vertical space in dumping.
15000 (process_ssa_edge_worklist): Simulate at most one statement and
15001 return whether we did. Do not simulate PHIs if they are in a
15002 BB not yet simulated.
15003 (ssa_propagate): Adjust to always drain the BB worklist whenever
15004 a BB is available there, likewise the VARYING edges list before
15005 the interesting edge list.
15007 2015-07-07 Christian Bruel <christian.bruel@st.com>
15010 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
15012 2015-07-07 Richard Biener <rguenther@suse.de>
15014 PR middle-end/66739
15015 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
15018 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
15020 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
15021 modes for operands 0 and 3. Use SImode for operands 2 and 3.
15022 Copy operand 0 to a temporary if !ext_register_operand. Remove
15023 ancient extract_bit_field workaround.
15024 (insv<mode>_1): Rename from mov<mode>_insv_1.
15025 (*insvqi): Rename from *movqi_insv_2.
15026 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
15027 for renamed insvsi_1.
15028 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
15030 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
15032 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
15033 call to nvptx_reorg_subreg.
15035 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
15037 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
15038 * graphite-dependencies.c, graphite-interchange.c,
15039 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
15040 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
15043 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
15045 * match.pd: Remove element_mode inside HONOR_*.
15046 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
15047 (~X | X -> -1, ~X ^ X -> -1): Merge.
15048 * tree.c (build_each_one_cst): New function.
15049 * tree.h (build_each_one_cst): Likewise.
15051 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
15053 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15056 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
15058 * config.gcc <mips*-*-*>: Add fused-madd.opt.
15059 * config/mips/mips.opt (mfused-madd): Remove.
15060 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
15061 * config/mips/mips.h (TARGET_MIPS8000): New.
15062 (ISA_HAS_FP_MADD4_MSUB4): Remove.
15063 (ISA_HAS_FP_MADDF_MSUBF): Remove.
15064 (ISA_HAS_FP_MADD3_MSUB3): Remove.
15065 (ISA_HAS_NMADD4_NMSUB4): Remove.
15066 (ISA_HAS_NMADD3_NMSUB3): Remove.
15067 (ISA_HAS_FUSED_MADD4): New.
15068 (ISA_HAS_UNFUSED_MADD4): New.
15069 (ISA_HAS_FUSED_MADDF): New.
15070 (ISA_HAS_FUSED_MADD3): New.
15071 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
15072 (*fma<mode>4_madd3) New.
15073 (*fma<mode>4_madd4) New.
15074 (*fma<mode>4_maddf) New.
15076 (*fms<mode>4_msub3) New.
15077 (*fms<mode>4_msub4) New.
15079 (*fnma<mode>4_nmadd3) New.
15080 (*fnma<mode>4_nmadd4) New.
15082 (*fnms<mode>4_nmsub3) New.
15083 (*fnms<mode>4_nmsub4) New.
15084 (*madd4<mode>) Modify to be unfused only.
15085 (*msub4<mode>) Modify to be unfused only.
15086 (*nmadd4<mode>) Modify to be unfused only.
15087 (*nmsub4<mode>) Modify to be unfused only.
15088 (*madd3<mode>) Remove.
15089 (*msub3<mode>) Remove.
15090 (*nmadd3<mode>) Remove.
15091 (*nmsub3<mode>) Remove.
15092 (*nmadd3<mode>_fastmath) Remove.
15093 (*nmsub3<mode>_fastmath) Remove.
15094 (*nmadd4<mode>_fastmath) Update condition.
15095 (*nmsub4<mode>_fastmath) Update condition.
15097 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
15100 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
15101 alignment attribute, exploring one level down for records and arrays.
15103 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
15105 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
15106 modes for operands 0 and 1. Use SImode for operands 2 and 3.
15107 Copy operand 1 to a temporary if !ext_register_operand. Remove
15108 ancient extract_bit_field workaround.
15109 (*extv<mode>): Rename from *mov<mode>_extv_1.
15110 (*extvqi): Rename from *movqi_extv_1.
15111 (extzv<mode>): Rename from extzv. Use SWI248 modes for
15112 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
15113 to a temporary if !ext_register_operand. Remove ancient
15114 extract_bit_field workaround.
15115 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
15116 (*extzvqi): Rename from *movqi_extzv_2.
15117 (*testqi_ext_3): Remove modes from const_int_operand predicated
15118 operands. Add "n" constraint.
15119 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
15120 operand. Add "J" constraint.
15121 (*btsq, *btrq, *btcq peephole2s): Remove mode from
15122 const_0_to_63 predicated operand.
15123 (regmode): New insn attribute.
15124 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
15125 to nonmemory_operand. Use regmode insn attribute.
15126 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
15127 (*jcc_bt<mode>_mask): Remove mode from operand 3.
15128 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
15129 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
15130 operands. Use "N" constraint instead of "n".
15132 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
15134 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
15136 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
15139 * config/i386/i386.c (iamcu_cost): New.
15140 (m_IAMCU): Likewise.
15141 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
15142 (processor_target_table): Add an entry for "iamcu".
15143 (processor_alias_table): Likewise.
15144 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
15145 (ix86_adjust_cost): Likewise.
15146 (ia32_multipass_dfa_lookahead): Likewise.
15147 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
15148 * config/i386/x86-tune.def: Updated for m_IAMCU.
15150 2015-07-06 Richard Biener <rguenther@suse.de>
15152 PR tree-optimization/66772
15153 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
15154 values are available in the PHI node BB when there are
15155 still unexecutable edges.
15157 2015-07-06 Richard Biener <rguenther@suse.de>
15159 PR tree-optimization/66767
15160 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
15161 Make sure to build the alignment test on a SSA name without
15162 final alignment info valid only if the alignment test
15165 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
15168 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
15169 loop start when inserting LSETUP.
15171 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
15174 * config/i386/i386.c (ix86_option_override_internal): Allow
15175 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
15177 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15179 * read-md.c (decimal_string): Rename to ...
15180 (md_decimal_string): ... this.
15181 (handle_enum): Reflect this.
15183 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15186 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
15188 2015-07-06 Richard Biener <rguenther@suse.de>
15190 PR middle-end/66759
15191 * match.pd: Add missing constraint of y to REAL_CST in
15192 REAL_CST - x CMP y to y - CST CMP x simplification.
15194 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
15196 PR tree-optimization/66757
15197 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
15199 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
15200 Sandra Loosemore <sandra@codesourcery.com>
15202 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
15203 Delete extern declaration.
15204 (gprel_constant_p): Add extern declaration.
15205 * config/nios2/constraints.md ("S"): Use gprel_constant_p
15206 instead of nios2_symbol_ref_in_small_data_p.
15207 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
15208 (nios2_symbol_ref_in_small_data_p): Make static.
15209 (gprel_constant_p): Make non-static.
15211 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
15213 * doc/fragments.texi (Target Fragment): Convert debian.org
15215 * doc/install.texi (Configuration): Ditto.
15217 2015-07-05 Jakub Jelinek <jakub@redhat.com>
15219 PR tree-optimization/66718
15220 * tree-vect-stmts.c (vectorizable_call): Replace uses of
15221 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
15223 PR tree-optimization/66718
15224 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
15225 vectorizable_load, vectorizable_condition): Move vectype,
15226 nunits, ncopies computation after checking what kind of statement
15229 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15231 * target-insns.def (extv, extzv, insv): New targetm instruction
15233 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
15235 * recog.c (simplify_while_replacing): Likewise.
15237 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15239 * target-insns.def (doloop_begin, doloop_end): New targetm
15240 instruction patterns.
15241 * loop-init.c: Include target.h.
15242 (pass_loop2::gate): Use the new targetm patterns instead of
15243 HAVE_*/gen_* interface.
15244 (pass_rtl_doloop::gate): Likewise.
15245 (pass_rtl_doloop::execute): Remove preprocessor condition.
15246 * hw-doloop.c: Build unconditionally.
15247 * loop-doloop.c: Likewise.
15248 (doloop_optimize): Use the new targetm patterns instead of
15249 HAVE_*/gen_* interface.
15250 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
15251 * modulo-sched.c (doloop_register_get): Likewise.
15253 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15255 * target-insns.def (clear_cache): New targetm instruction pattern.
15256 * builtins.c (expand_builtin___clear_cache): Use it instead of
15257 HAVE_*/gen_* interface.
15259 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15261 * target-insns.def (allocate_stack, check_stack, probe_stack)
15262 (probe_stack_address, split_stack_prologue, split_stack_space_check):
15263 New targetm instruction patterns.
15264 * explow.c (allocate_dynamic_stack_space): Use them instead of
15265 HAVE_*/gen_* interface.
15266 (emit_stack_probe): Likewise.
15267 (probe_stack_range): Likewise.
15268 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15270 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15272 * target-insns.def (stack_protect_set, stack_protect_test): New
15273 targetm instruction patterns.
15274 * cfgexpand.c (stack_protect_prologue): Use them instead of
15275 HAVE_*/gen_* interface.
15276 * function.c (stack_protect_epilogue): Likewise.
15278 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15280 * expr.h (gen_move_insn_uncast): Delete.
15281 * expr.c (gen_move_insn_uncast): Delete.
15283 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15285 * target-insns.def (restore_stack_block, restore_stack_function)
15286 (restore_stack_nonlocal, save_stack_block, save_stack_function)
15287 (save_stack_nonlocal): New targetm instruction patterns.
15288 * builtins.c (expand_builtin_apply): Use them instead of
15289 HAVE_*/gen_* interface.
15290 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
15292 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15294 * target-insns.def (trap): New targetm instruction pattern.
15295 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
15297 * explow.c (allocate_dynamic_stack_space): Likewise.
15298 * ifcvt.c (find_if_header): Likewise.
15300 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15302 * target-insns.def (prefetch): New targetm instruction pattern.
15303 * tree-ssa-loop-prefetch.c: Include targeth.
15304 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
15305 of HAVE_*/gen_* interface.
15306 * builtins.c (expand_builtin_prefetch): Likewise.
15307 * toplev.c (process_options): Likewise.
15309 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15311 * target-insns.def (untyped_call, untyped_return): New targetm
15312 instruction patterns.
15313 * builtins.c (expand_builtin_apply): Use them instead of
15314 HAVE_*/gen_* interface.
15315 (result_vector): Define unconditionally.
15317 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15319 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
15320 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
15321 (nonlocal_goto_receiver): New targetm instruction patterns.
15322 * builtins.c (expand_builtin_setjmp_setup): Use them instead
15323 of HAVE_*/gen_* interface.
15324 (expand_builtin_setjmp_receiver): Likewise.
15325 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
15326 * except.c (expand_dw2_landing_pad_for_region): Likewise.
15328 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15330 * target.def: Add code_for_* hooks.
15331 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
15332 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
15333 * target-insns.def (casesi, tablejump): New targetm instruction
15335 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
15336 (do_tablejump): Likewise.
15337 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
15338 (expand_sjlj_dispatch_table): Likewise.
15339 * targhooks.c (default_case_values_threshold): Likewise.
15341 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
15343 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
15344 Use rtx_insn * instead of rtx.
15345 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
15346 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
15347 (nios2_call_tls_get_addr): Likewise.
15348 (nios2_emit_expensive_div): Likewise.
15349 (nios2_emit_move_sequence): Change return type to bool.
15350 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
15351 Change return type to bool.
15353 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
15356 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
15358 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
15361 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
15362 of register_operand. Remove constraint.
15364 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
15366 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
15367 the first argument.
15369 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
15371 * attribs.c (decl_attributes): Guard inform with the return value
15372 of the preceding warning.
15374 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
15376 * doc/invoke.texi (moverride): Move to correct section.
15378 2015-07-03 Richard Biener <rguenther@suse.de>
15380 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
15382 (dt_operand::gen_gimple_expr): After valueizing operands
15383 re-canonicalize operand order for commutative tree codes.
15385 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
15388 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
15390 (__crc32w): Likewise.
15391 (__crc32d): Likewise.
15392 (__rdpmc): Likewise.
15393 (__rdtscp): Likewise.
15394 (_rdpmc): Likewise.
15395 (_rdtscp): Likewise.
15396 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
15399 2015-07-03 Richard Biener <rguenther@suse.de>
15401 * fold-const.c (fold_mathfn_compare): Remove.
15402 (fold_inf_compare): Likewise.
15403 (fold_comparison): Move floating point comparison simplifications...
15404 * match.pd: ... to patterns here. Introduce simple_comparisons
15405 operator list and use it for patterns formerly in fold_comparison.
15407 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
15409 PR tree-optimization/66119
15410 * toplev.c (process_options): Don't set up default values for
15411 the sra_max_scalarization_size_{speed,size} parameters.
15412 * tree-sra (analyze_all_variable_accesses): If no values
15413 have been set for the sra_max_scalarization_size_{speed,size}
15414 parameters, call get_move_ratio to get target defaults.
15416 2015-07-03 Richard Biener <rguenther@suse.de>
15418 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
15419 * match.pd: ... here.
15421 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
15424 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
15425 is not actually the default on FreeBSD.
15427 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15429 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
15431 (CMPGE_8HI): Likewise.
15432 (CMPGE_4SI): Likewise.
15433 (CMPGE_2DI): Likewise.
15434 (CMPGE_U16QI): Likewise.
15435 (CMPGE_U8HI): Likewise.
15436 (CMPGE_U4SI): Likewise.
15437 (CMPGE_U2DI): Likewise.
15438 (CMPLE_16QI): Likewise.
15439 (CMPLE_8HI): Likewise.
15440 (CMPLE_4SI): Likewise.
15441 (CMPLE_2DI): Likewise.
15442 (CMPLE_U16QI): Likewise.
15443 (CMPLE_U8HI): Likewise.
15444 (CMPLE_U4SI): Likewise.
15445 (CMPLE_U2DI): Likewise.
15446 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15447 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
15448 ALTIVEC_BUILTIN_VEC_CMPLE.
15449 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
15450 floating-point vector modes.
15451 (vector_nlt<mode>): New define_expand.
15452 (vector_nltu<mode>): Likewise.
15453 (vector_ngt<mode>): Likewise.
15454 (vector_ngtu<mode>): Likewise.
15456 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
15458 PR rtl-optimization/66706
15459 * combine.c (make_compound_operation): If an AND of SUBREG of
15460 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
15462 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
15464 * tree-pass.h (make_pass_ch_vect): New.
15465 * passes.def: Add pass_ch_vect just before pass_if_conversion.
15467 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
15468 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
15469 make_pass_ch_vect): New.
15470 (pass_ch): Extend ch_base.
15472 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
15473 (ch_base::copy_headers): ...here.
15475 2015-07-02 Richard Biener <rguenther@suse.de>
15477 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
15478 * fold-const.c (get_pointer_modulus_and_residue): Remove.
15479 (fold_binary_loc): Implement (T)ptr & CST in terms of
15480 get_pointer_alignment_1.
15481 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
15482 Make sure to build the alignment test on a SSA name without
15483 final alignment info valid only after the prologue.
15485 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
15487 * config/cris/cris.md ("epilogue"): Remove condition.
15488 ("prologue"): Ditto.
15490 2015-07-02 Richard Biener <rguenther@suse.de>
15492 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
15493 parameter to record a condition that is false.
15494 (record_conditions): When recording an extra NE_EXPR that is
15495 true also record a EQ_EXPR that is false.
15497 2015-07-02 Bin Cheng <bin.cheng@arm.com>
15499 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
15500 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
15501 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
15502 (set_iv, find_interesting_uses_address, add_candidate_1): New
15503 argument to alloc_iv.
15504 (find_interesting_uses_op, find_interesting_uses_cond): Don't
15505 duplicate struct iv.
15506 (free_loop_data): Don't free struct iv explicitly.
15507 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
15509 2015-07-01 DJ Delorie <dj@redhat.com>
15511 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
15513 (SUPPORTS_DISCRIMINATOR): Define.
15515 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
15518 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
15519 there are no CALLs in the same pattern.
15521 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
15523 PR rtl-optimization/61047
15524 * rtlanal.c (get_initial_register_offset): New function.
15525 (rtx_addr_can_trap_p_1): Check offsets of stack references.
15527 2015-07-01 Richard Biener <rguenther@suse.de>
15529 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
15530 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
15531 ~X CMP C -> X CMP' ~C to ...
15532 * match.pd: ... patterns here.
15534 2015-07-01 Nick Clifton <nickc@redhat.com>
15536 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
15537 a 16-bit value into a 20-bit memory slot.
15539 2015-07-01 Jiong Wang <jiong.wang@arm.com>
15541 * doc/sourcebuild.texi (AArch64-specific attributes): Document
15542 "aarch64_tiny", "aarch64_small", "aarch64_large",
15543 "aarch64_little_endian", "aarch64_big_endian".
15545 2015-07-01 Jiong Wang <jiong.wang@arm.com>
15547 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
15548 Document "aarch64_small_fpic".
15550 2015-07-01 Jiong Wang <jiong.wang@arm.com>
15552 * configure.ac: Add check for aarch64 assembler -fpic relocation
15554 * configure: Regenerate.
15555 * config.in: Regenerate.
15556 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
15557 to -fPIC if not support of -fpic relocation modifier in assembler.
15559 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
15562 * rtl.c (classify_insn): Handle returns in PARALLELs.
15564 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
15566 PR middle-end/66633
15567 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
15568 to true if the function is nested and if not optimizing.
15569 (convert_local_omp_clauses): Initialize need_frame to true if the
15570 function contains nested functions and if not optimizing.
15572 2015-07-01 Richard Biener <rguenther@suse.de>
15574 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
15575 (X & Y) ^ Y -> ~X & Y transforms to ...
15576 * match.pd: ... here.
15578 2015-07-01 Richard Biener <rguenther@suse.de>
15580 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
15581 of converts to avoid uninteresting noise from the conversion
15582 simplifying patterns.
15584 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
15586 * config/c6x/c6x.c (try_rename_operands): Do not depend on
15587 gcc_assert evaluating its argument for side-effect.
15589 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
15592 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
15595 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
15597 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
15598 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
15599 (hash_scc): Add this_ref_p and ref_p parameters and pass them
15600 to the inner DFS walk.
15602 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15604 * target-insns.def (jump): New targetm instruction pattern.
15605 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
15606 instead of gen_jump.
15607 (fix_up_crossing_landing_pad): Likewise.
15608 (add_labels_and_missing_jumps): Likewise.
15609 (fix_crossing_conditional_branches): Likewise.
15610 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
15611 (force_nonfallthru_and_redirect): Likewise.
15612 * cse.c (cse_insn): Likewise.
15613 * expmed.c (expand_divmod): Likewise.
15614 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
15615 * haifa-sched.c (init_before_recovery): Likewise.
15616 (sched_create_recovery_edges): Likewise.
15617 * ifcvt.c (find_cond_trap): Likewise.
15618 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
15619 (expand_float, expand_fix): Likewise.
15620 * stmt.c (emit_jump): Likewise.
15622 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15624 * defaults.h (HAVE_load_multiple, gen_load_multiple)
15625 (HAVE_store_multiple, gen_store_multiple): Delete.
15626 * target-insns.def (load_multiple, store_multiple): New targetm
15627 instruction patterns.
15628 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
15629 of HAVE_*/gen_* interface.
15631 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15633 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
15634 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
15635 (gen_mem_signal_fence): Delete.
15636 * target-insns.def (mem_signal_fence, mem_thread_fence)
15637 (memory_barrier): New targetm instruction patterns.
15638 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
15640 (expand_mem_signal_fence): Likewise.
15642 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15644 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
15645 * target-insns.def (epilogue, prologue, sibcall_prologue): New
15646 targetm instruction patterns.
15647 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
15649 * calls.c (expand_call): Likewise.
15650 * cfgrtl.c (cfg_layout_finalize): Likewise.
15651 * df-scan.c (df_get_entry_block_def_set): Likewise.
15652 (df_get_exit_block_use_set): Likewise.
15653 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
15654 * final.c (final_start_function): Likewise.
15655 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15656 (reposition_prologue_and_epilogue_notes): Likewise.
15657 * reorg.c (find_end_label): Likewise.
15658 * toplev.c (process_options): Likewise.
15660 2015-06-30 David Malcolm <dmalcolm@redhat.com>
15662 * typed-splay-tree.h: New file.
15664 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
15667 * lra-int.h (lra_substitute_pseudo): Add a parameter.
15668 (lra_substitute_pseudo_within_insn): Ditto.
15669 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
15671 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
15672 to lra_substitute_pseudo.
15673 * lra-lives.c (process_bb_lives): Add an argument to
15674 lra_substitute_pseudo_within_insn call.
15675 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
15676 argument to lra_substitute_pseudo and
15677 lra_substitute_pseudo_within_insn calls.
15678 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
15680 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
15682 * configure: Regenerated.
15684 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
15686 * config.gcc: Support i[34567]86-*-elfiamcu target.
15687 * config/i386/iamcu.h: New.
15688 * config/i386/i386.opt: Add -miamcu.
15689 * doc/invoke.texi: Document -miamcu.
15690 * common/config/i386/i386-common.c (ix86_handle_option): Turn
15691 off x87/MMX/SSE/AVX codegen for -miamcu.
15692 * config/i386/i386-c.c (ix86_target_macros_internal): Define
15693 __iamcu/__iamcu__ for -miamcu.
15694 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
15695 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
15696 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
15697 * config/i386/i386.c (ix86_option_override_internal): Ignore and
15698 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
15699 MCU by default. Default long double to 64-bit for Intel MCU.
15700 Turn on -freg-struct-return for Intel MCU. Issue an error when
15701 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
15703 (function_arg_advance_32): Pass value whose size is no larger
15704 than 8 bytes in registers for Intel MCU.
15705 (function_arg_32): Likewise.
15706 (ix86_return_in_memory): Return value whose size is no larger
15707 than 8 bytes in registers for Intel MCU.
15708 (iamcu_alignment): New function.
15709 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
15711 (ix86_local_alignment): Don't increase alignment for Intel MCU.
15712 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
15715 2015-06-30 Marek Polacek <polacek@redhat.com>
15717 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
15718 both operands of the resulting expression.
15720 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
15721 the final expression with the operand's type and then convert
15722 it to the type of the expression.
15724 2015-06-30 Richard Biener <rguenther@suse.de>
15726 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
15727 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
15728 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
15729 * match.pd: ... to patterns here.
15731 2015-06-30 Richard Biener <rguenther@suse.de>
15733 PR tree-optimization/66704
15734 * tree-vect-data-refs.c (vect_setup_realignment): Use
15735 make_ssa_name for non-SSA name source.
15737 2015-06-30 Jakub Jelinek <jakub@redhat.com>
15739 PR middle-end/66702
15740 * omp-low.c (simd_clone_adjust): Handle addressable linear
15741 or uniform parameters or non-gimple type uniform parameters.
15743 2015-06-30 Richard Biener <rguenther@suse.de>
15745 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
15746 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
15747 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
15748 * match.pd: ... here.
15749 Add a few cases of A - B -> A + (-B) when B "easily" negates.
15750 Move (x & y) | x -> x and friends before
15751 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
15753 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
15755 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
15756 -mfix-ut699 is not specified.
15757 (leon3_load): Rename into...
15758 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
15761 2015-06-30 Marek Polacek <polacek@redhat.com>
15763 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
15764 * match.pd: ... here.
15766 2015-06-30 Richard Biener <rguenther@suse.de>
15768 * target-insns.def (canonicalize_funcptr_for_compare): Add.
15769 * fold-const.c (build_range_check): Replace uses of
15770 HAVE_canonicalize_funcptr_for_compare.
15771 (fold_widened_comparison): Likewise.
15772 (fold_sign_changed_comparison): Likewise.
15773 * dojump.c: Include "target.h".
15774 (do_compare_and_jump): Replace uses of
15775 HAVE_canonicalize_funcptr_for_compare and
15776 gen_canonicalize_funcptr_for_compare.
15777 * expr.c (do_store_flag): Likewise.
15779 2015-06-30 Tom de Vries <tom@codesourcery.com>
15781 PR tree-optimization/66652
15782 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
15783 max_loop_iterations to determine if nit + 1 overflows.
15785 2015-06-30 Richard Biener <rguenther@suse.de>
15787 * tree-vrp.c (register_edge_assert_for_2): Also register
15788 asserts for dominating conversion results.
15790 2015-06-30 Bin Cheng <bin.cheng@arm.com>
15792 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
15793 field in struct iv.
15795 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
15798 * configure.ac: Fix filds and fildq test for 64-bit.
15799 * configure: Regenerated.
15801 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
15803 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
15804 (nvptx_reorg): Here. Keep the non-subreg pieces.
15806 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
15808 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
15809 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
15811 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
15813 * config/i386/i386.md (*jcc_1): Use %! in asm template.
15814 Set attribute "length_nobnd" instead of "length".
15817 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
15819 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
15821 * config/nios2/nios2.c (nios2_delegitimize_address): Make
15822 assert less restrictive.
15824 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
15827 * cgraphunit.c (cgraph_node::finalize_function): Do not call
15828 do_warn_unused_parameter.
15829 * function.c (do_warn_unused_parameter): Move from here.
15830 * function.h (do_warn_unused_parameter): Do not declare.
15832 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15835 * gcc.target/arm/armv-sync-comp-swap.c: New.
15836 * gcc.target/arm/armv-sync-op-acquire.c: New.
15837 * gcc.target/arm/armv-sync-op-full.c: New.
15838 * gcc.target/arm/armv-sync-op-release.c: New.
15840 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15843 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
15844 initial acquire barrier with final barrier.
15846 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15849 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
15850 initial acquire barrier with final barrier.
15852 2015-06-29 Richard Henderson <rth@redhat.com>
15854 * config/i386/constraints.md (Bf): New constraint.
15855 * config/i386/i386-c.c (ix86_target_macros): Define
15856 __GCC_ASM_FLAG_OUTPUTS__.
15857 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
15859 * doc/extend.texi (FlagOutputOperands): Document them.
15861 2015-06-29 Jiong Wang <jiong.wang@arm.com>
15863 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
15864 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
15866 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
15867 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
15868 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
15869 (aarch64_symbol_context): Ditto.
15870 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
15871 and use new pattern name.
15872 (aarch64_expand_mov_immediate): Ditto.
15873 (aarch64_print_operand): Ditto.
15874 (aarch64_classify_tls_symbol): Ditto.
15876 2015-06-29 Marek Polacek <polacek@redhat.com>
15877 Marc Glisse <marc.glisse@inria.fr>
15879 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
15880 * match.pd: ... pattern here.
15882 2015-06-29 Tom de Vries <tom@codesourcery.com>
15884 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
15885 function structure.
15887 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15889 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
15890 feature description, split out the native option, add a link to
15891 the feature documentation, rearrange and slightly rewrite text.
15892 (Aarch64 options, -mcpu): Likewise.
15893 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
15894 +rdma implies Adv. SIMD.
15896 2015-06-29 Marek Polacek <polacek@redhat.com>
15899 * function.c (stack_protect_epilogue): Remove a cast to int.
15900 * doc/invoke.texi: Update -Wswitch-bool description.
15902 2015-06-29 Richard Biener <rguenther@suse.de>
15904 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
15905 * fold-const.c (fold_binary_loc): Move &A - &B simplification
15906 via ptr_difference_const ...
15907 * match.pd: ... here.
15908 When matching (X ^ Y) == Y also match with swapped operands.
15910 2015-06-29 Richard Biener <rguenther@suse.de>
15912 * lto-streamer.h (LTO_major_version): Bump to 5.
15914 2015-06-29 Richard Biener <rguenther@suse.de>
15916 PR tree-optimization/66677
15917 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
15918 STMT_VINFO_VEC_STMT clobbering less strict.
15920 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
15922 PR middle-end/64130
15923 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
15924 division, compute max and min when value ranges for dividend and
15925 divisor are available.
15927 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
15928 Sandra Loosemore <sandra@codesourcery.com>
15930 * regrename.h (regrename_do_replace): Change to return bool.
15931 * regrename.c (rename_chains): Check return value of
15932 regname_do_replace.
15933 (regrename_do_replace): Re-validate the modified insns and
15934 return bool status.
15935 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
15936 Update to match rename_chains changes.
15937 * config/c6x/c6x.c (try_rename_operands): Assert that
15938 regrename_do_replace returns true.
15940 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
15942 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
15943 operand 2 here. Use copy_addr_to_reg to copy non-index
15944 register operand 2 to a temporary.
15945 (<mode>_stx): Ditto for operand 1.
15946 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
15947 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
15948 (ix86_store_bounds): Ditto.
15950 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
15952 * print-tree.c (print_node) [TREE_VEC]: Print its length.
15954 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
15956 * gimple.c (gimple_call_set_fndecl): Remove.
15957 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
15958 build1_loc directly instead of build_fold_addr_expr_loc.
15960 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
15962 * hash-map.h (hash_map::traverse): Use the definition of the
15963 Key typedef rather than the typedef itself.
15965 2015-06-26 Martin Jambor <mjambor@suse.cz>
15968 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
15969 NULL instead of calling dump_enabled_p.
15971 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
15973 * config/aarch64/aarch64.opt: (override): New.
15974 * doc/invoke.texi (override): Document.
15975 * config/aarch64/aarch64.c (aarch64_flag_desc): New
15976 (aarch64_fusible_pairs): Likewise.
15977 (aarch64_tuning_flags): Likewise.
15978 (aarch64_tuning_override_function): Likewise.
15979 (aarch64_tuning_override_functions): Likewise.
15980 (aarch64_parse_one_option_token): Likewise.
15981 (aarch64_parse_boolean_options): Likewise.
15982 (aarch64_parse_fuse_string): Likewise.
15983 (aarch64_parse_tune_string): Likewise.
15984 (aarch64_parse_one_override_token): Likewise.
15985 (aarch64_parse_override_string): Likewise.
15986 (aarch64_override_options): Parse the -override string if it
15989 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
15991 * config/aarch64/aarch64-protos.h (tune_params): Remove
15992 const from members.
15993 (aarch64_tune_params): Remove const, change to no longer be
15995 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
15996 change to no longer be a pointer, initialize to generic_tunings.
15997 (aarch64_min_divisions_for_recip_mul): Change dereference of
15998 aarch64_tune_params to member access.
15999 (aarch64_reassociation_width): Likewise.
16000 (aarch64_rtx_mult_cost): Likewise.
16001 (aarch64_address_cost): Likewise.
16002 (aarch64_branch_cost): Likewise.
16003 (aarch64_rtx_costs): Likewise.
16004 (aarch64_register_move_cost): Likewise.
16005 (aarch64_memory_move_cost): Likewise.
16006 (aarch64_sched_issue_rate): Likewise.
16007 (aarch64_builtin_vectorization_cost): Likewise.
16008 (aarch64_override_options): Take a copy of the selected tuning
16009 struct in to aarch64_tune_params, rather than just setting
16010 a pointer, change dereferences of aarch64_tune_params to member
16012 (aarch64_override_options_after_change): Change dereferences of
16013 aarch64_tune_params to member access.
16014 (aarch64_macro_fusion_p): Likewise.
16015 (aarch_macro_fusion_pair_p): Likewise.
16016 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
16018 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
16020 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
16021 (aarch64_tune_flags): Likewise.
16022 (AARCH64_TUNE_FMA_STEERING): Likewise.
16023 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
16024 to AARCH64_FL_USE_FMA_STEERING_PASS.
16025 (cortex-a57.cortex-a53): Likewise.
16026 (cortex-a72): Use cortexa72_tunings.
16027 (cortex-a72.cortex-a53): Likewise.
16028 (exynos-m1): Likewise.
16029 * config/aarch64/aarch64-protos.h (tune_params): Add
16030 a field: extra_tuning_flags.
16031 * config/aarch64/aarch64-tuning-flags.def: New.
16032 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
16033 (aarch64_extra_tuning_flags): Likewise.
16034 (aarch64_tune_params): Declare here.
16035 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
16036 (cortexa53_tunings): Likewise.
16037 (cortexa57_tunings): Likewise.
16038 (thunderx_tunings): Likewise.
16039 (xgene1_tunings): Likewise.
16040 (cortexa72_tunings): New.
16041 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
16042 (gate): Check against aarch64_tune_params.
16043 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
16046 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
16048 * config/aarch64/aarch64-fusion-pairs.def: New.
16049 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
16050 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
16051 aarch64_fusion_pairs.
16052 (AARCH64_FUSE_MOV_MOVK): Likewise.
16053 (AARCH64_FUSE_ADRP_ADD): Likewise.
16054 (AARCH64_FUSE_MOVK_MOVK): Likewise.
16055 (AARCH64_FUSE_ADRP_LDR): Likewise.
16056 (AARCH64_FUSE_CMP_BRANCH): Likewise.
16058 2015-06-26 Jiong Wang <jiong.wang@arm.com>
16060 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
16061 SYMBOL_SMALL_GOT_28K.
16062 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
16063 relocation modifiers.
16064 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
16065 (ldr_got_small_28k_<mode>): New.
16066 (ldr_got_small_28k_sidi): New.
16067 * config/aarch64/iterators.md (got_modifier): New mode iterator.
16068 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
16069 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
16070 SYMBOL_SMALL_GOT_28K.
16071 (aarch64_rtx_costs): Add costs for new instruction sequences.
16072 (initialize_aarch64_code_model): Initialize new model.
16073 (aarch64_classify_symbol): Recognize new model and new symbol classification.
16074 (aarch64_asm_preferred_eh_data_format): Support new model.
16075 (aarch64_load_symref_appropriately): Generate new instruction
16076 sequences for -fpic.
16077 (TARGET_USE_PSEUDO_PIC_REG): New definition.
16078 (aarch64_use_pseudo_pic_reg): New function.
16080 2015-06-26 Jiong Wang <jiong.wang@arm.com>
16082 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
16083 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
16084 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
16085 (aarch64_expand_mov_immediate): Ditto.
16086 (aarch64_print_operand): Ditto.
16087 (aarch64_classify_symbol): Ditto.
16089 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
16091 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
16093 2015-06-26 Bin Cheng <bin.cheng@arm.com>
16096 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
16097 assertion failed. Remove assertion itself.
16099 2015-06-26 Richard Biener <rguenther@suse.de>
16101 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
16102 and -A CMP CST -> A CMP -CST which is redundant with a pattern
16104 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
16105 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
16106 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
16107 * match.pd: ... patterns here.
16109 2015-06-26 Marek Polacek <polacek@redhat.com>
16111 * match.pd ((x | y) & ~(x & y) -> x ^ y,
16112 (x | y) & (~x ^ y) -> x & y): New patterns.
16114 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
16116 * rtl.h (emit): Add an optional boolean parameter to control
16117 whether barriers are emitted.
16118 * emit-rtl.c (emit): Likewise.
16119 * gensupport.c (get_emit_function): Return null rather than "emit".
16120 * genemit.c (gen_emit_seq): Handle the null return value.
16121 Don't emit barriers after the final instruction in the sequence.
16122 * gentarget-def.c (main): Don't emit barriers after the instruction.
16124 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16126 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
16127 TARGET_UNIFIED_ASM.
16129 2015-06-26 Richard Biener <rguenther@suse.de>
16131 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
16133 2015-06-26 Richard Biener <rguenther@suse.de>
16135 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
16136 irrespective on whether the inner operation has a single use
16137 of both off are constant.
16139 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
16140 Segher Boessenkool <segher@kernel.crashing.org>
16143 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
16144 before doing PUT_MODE or PUT_CODE on operands to avoid
16145 in-place RTX modification.
16147 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
16149 * gentarget-def.c (def_target_insn): Cast return of strtol to
16152 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16154 * gimple.h (gimple_call_set_fn): Move inline function.
16155 * gimple.c (gimple_call_set_fn): Relocate here.
16157 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
16161 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
16162 the replacement insn will work.
16164 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
16166 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
16169 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16171 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
16172 * cgraph.h: Include ipa-ref.h and plugin-api.h.
16173 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
16174 (symtab_node::address_can_be_compared_p): Move function.
16175 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
16177 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
16178 * auto-profile.c: Likewise.
16179 * bb-reorder.c: Likewise.
16180 * builtins.c: Likewise.
16181 * calls.c: Likewise.
16182 * cfgexpand.c: Likewise.
16183 * cgraphbuild.c: Likewise.
16184 * cgraphclones.c: Likewise.
16185 * cgraphunit.c: Likewise.
16186 * combine.c: Likewise.
16187 * coverage.c: Likewise.
16188 * data-streamer-in.c: Likewise.
16189 * data-streamer-out.c: Likewise.
16190 * data-streamer.c: Likewise.
16191 * dbxout.c: Likewise.
16192 * dwarf2out.c: Likewise.
16193 * except.c: Likewise.
16194 * expr.c: Likewise.
16195 * final.c: Likewise.
16196 * fold-const.c: Likewise.
16197 * ggc-page.c: Likewise.
16198 * gimple-fold.c: Likewise.
16199 * gimple-iterator.c: Likewise.
16200 * gimple-pretty-print.c: Likewise.
16201 * gimple-streamer-in.c: Likewise.
16202 * gimple-streamer-out.c: Likewise.
16203 * gimple.c: Likewise.
16204 * gimplify.c: Likewise.
16205 * ipa-chkp.c: Likewise.
16206 * ipa-comdats.c: Likewise.
16207 * ipa-cp.c: Likewise.
16208 * ipa-devirt.c: Likewise.
16209 * ipa-icf-gimple.c: Likewise.
16210 * ipa-icf.c: Likewise.
16211 * ipa-inline-analysis.c: Likewise.
16212 * ipa-inline-transform.c: Likewise.
16213 * ipa-inline.c: Likewise.
16214 * ipa-polymorphic-call.c: Likewise.
16215 * ipa-profile.c: Likewise.
16216 * ipa-prop.c: Likewise.
16217 * ipa-pure-const.c: Likewise.
16218 * ipa-ref.c: Likewise.
16219 * ipa-reference.c: Likewise.
16220 * ipa-split.c: Likewise.
16221 * ipa-utils.c: Likewise.
16222 * ipa-visibility.c: Likewise.
16224 * langhooks.c: Likewise.
16225 * lto-cgraph.c: Likewise.
16226 * lto-compress.c: Likewise.
16227 * lto-opts.c: Likewise.
16228 * lto-section-in.c: Likewise.
16229 * lto-section-out.c: Likewise.
16230 * lto-streamer-in.c: Likewise.
16231 * lto-streamer-out.c: Likewise.
16232 * lto-streamer.c: Likewise.
16233 * omp-low.c: Likewise.
16234 * opts-global.c: Likewise.
16235 * passes.c: Likewise.
16236 * predict.c: Likewise.
16237 * print-tree.c: Likewise.
16238 * profile.c: Likewise.
16240 * sanopt.c: Likewise.
16241 * stor-layout.c: Likewise.
16242 * symtab.c: Likewise.
16243 * toplev.c: Likewise.
16244 * trans-mem.c: Likewise.
16245 * tree-cfg.c: Likewise.
16246 * tree-chkp.c: Likewise.
16247 * tree-eh.c: Likewise.
16248 * tree-emutls.c: Likewise.
16249 * tree-inline.c: Likewise.
16250 * tree-nested.c: Likewise.
16251 * tree-parloops.c: Likewise.
16252 * tree-pretty-print.c: Likewise.
16253 * tree-profile.c: Likewise.
16254 * tree-sra.c: Likewise.
16255 * tree-ssa-alias.c: Likewise.
16256 * tree-ssa-live.c: Likewise.
16257 * tree-ssa-loop-ivcanon.c: Likewise.
16258 * tree-ssa-loop-ivopts.c: Likewise.
16259 * tree-ssa-pre.c: Likewise.
16260 * tree-ssa-sccvn.c: Likewise.
16261 * tree-ssa-strlen.c: Likewise.
16262 * tree-ssa-structalias.c: Likewise.
16263 * tree-streamer-in.c: Likewise.
16264 * tree-streamer-out.c: Likewise.
16265 * tree-streamer.c: Likewise.
16266 * tree-switch-conversion.c: Likewise.
16267 * tree-tailcall.c: Likewise.
16268 * tree-vect-data-refs.c: Likewise.
16269 * tree-vect-stmts.c: Likewise.
16270 * tree-vectorizer.c: Likewise.
16271 * tree.c: Likewise.
16272 * tsan.c: Likewise.
16273 * ubsan.c: Likewise.
16274 * value-prof.c: Likewise.
16275 * varasm.c: Likewise.
16276 * varpool.c: Likewise.
16277 * config/arm/arm.c: Likewise.
16278 * config/bfin/bfin.c: Likewise.
16279 * config/c6x/c6x.c: Likewise.
16280 * config/cris/cris.c: Likewise.
16281 * config/darwin-c.c: Likewise.
16282 * config/darwin.c: Likewise.
16283 * config/i386/i386.c: Likewise.
16284 * config/i386/winnt.c: Likewise.
16285 * config/microblaze/microblaze.c: Likewise.
16286 * config/mips/mips.c: Likewise.
16287 * config/rs6000/rs6000.c: Likewise.
16288 * config/rx/rx.c: Likewise.
16289 * config/s390/s390.c: Likewise.
16290 * config/tilegx/mul-tables.c: Likewise.
16292 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16294 * config/aarch64/aarch64.c, config/alpha/alpha.c,
16295 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
16296 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
16297 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
16298 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
16299 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
16300 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
16301 config/microblaze/microblaze.c, config/mips/mips.c,
16302 config/mmix/mmix.c, config/mn10300/mn10300.c,
16303 config/moxie/moxie.c, config/msp430/msp430.c,
16304 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
16305 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
16306 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
16307 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
16308 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16309 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
16310 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
16311 target-def.h include.
16312 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
16314 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16316 * Makefile.in (TARGET_DEF): Add target-insns.def.
16317 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
16318 (build/gentarget-def.o): New rule.
16319 (genprogrtl): Add target-def.
16320 * target-insns.def, gentarget-def.c: New files.
16321 * target.def: Add targetm.have_* and targetm.gen_* hooks,
16322 based on the contents of target-insns.def.
16323 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
16324 (HAVE_return, gen_return): Delete.
16325 * target-def.h: Include insn-target-def.h.
16326 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
16327 instead of direct calls. Rely on them to do the appropriate assertions.
16328 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
16329 (convert_jumps_to_returns): Use targetm interface instead of
16331 (thread_prologue_and_epilogue_insns): Likewise.
16332 * reorg.c (find_end_label, dbr_schedule): Likewise.
16333 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
16334 * shrink-wrap.c (convert_to_simple_return): Likewise.
16335 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
16337 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16339 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
16340 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
16341 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
16342 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
16343 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
16344 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
16345 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
16346 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
16347 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
16348 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
16349 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
16350 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
16351 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
16352 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16353 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
16354 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
16357 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16359 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
16360 (unbounded_int_hashmap_traits::key_type): Likewise.
16361 * hash-map.h (hash_map): Get the key type from the traits.
16362 * hash-traits.h (default_hash_traits): By default, inherit from the
16363 template parameter.
16364 * alias.c (alias_set_traits): Delete.
16365 (alias_set_entry_d::children): Use alias_set_hash as the first
16366 template parameter.
16367 (record_alias_subset): Update accordingly.
16368 * except.c (tree_hash_traits): Delete.
16369 (type_to_runtime_map): Use tree_hash as the first template parameter.
16370 (init_eh): Update accordingly.
16371 * genmatch.c (capture_id_map_hasher): Delete.
16372 (cid_map_t): Use nofree_string_hash as first template parameter.
16373 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
16374 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
16375 Use symbol_compare_hash as the first template parameter in
16376 subdivide_hash_map.
16377 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
16378 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
16379 template parameter.
16380 * passes.c (pass_registry_hasher): Delete.
16381 (name_to_pass_map): Use nofree_string_hash as the first template
16383 (register_pass_name): Update accordingly.
16384 * sanopt.c (sanopt_tree_map_traits): Delete.
16385 (sanopt_tree_triplet_map_traits): Delete.
16386 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
16387 template parameter.
16388 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
16389 the first template parameter.
16390 * sese.c (rename_map_hasher): Delete.
16391 (rename_map_type): Use tree_ssa_name_hash as the first template
16393 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
16394 (function_summary::m_map): Use map_hash as the first template
16396 (function_summary::release): Update accordingly.
16397 * tree-if-conv.c (phi_args_hash_traits): Delete.
16398 (predicate_scalar_phi): Use tree_operand_hash as the first template
16399 parameter to phi_arg_map.
16400 * tree-inline.h (dependence_hasher): Delete.
16401 (copy_body_data::dependence_map): Use dependence_hash as the first
16402 template parameter.
16403 * tree-inline.c (remap_dependence_clique): Update accordingly.
16404 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
16405 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
16407 (addr_stridxptr): Update accordingly.
16408 * value-prof.c (profile_id_traits): Delete.
16409 (cgraph_node_map): Use profile_id_hash as the first template
16411 (init_node_map): Update accordingly.
16412 * config/alpha/alpha.c (string_traits): Delete.
16413 (machine_function::links): Use nofree_string_hash as the first
16414 template parameter.
16415 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
16416 * config/m32c/m32c.c (pragma_traits): Delete.
16417 (pragma_htab): Use nofree_string_hash as the first template parameter.
16418 (m32c_note_pragma_address): Update accordingly.
16419 * config/mep/mep.c (pragma_traits): Delete.
16420 (pragma_htab): Use nofree_string_hash as the first template parameter.
16421 (mep_note_pragma_flag): Update accordingly.
16422 * config/mips/mips.c (mips16_flip_traits): Delete.
16423 (mflip_mips16_htab): Use nofree_string_hash as the first template
16425 (mflip_mips16_use_mips16_p): Update accordingly.
16426 (local_alias_traits): Delete.
16427 (mips16_local_aliases): Use nofree_string_hash as the first template
16429 (mips16_local_alias): Update accordingly.
16431 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16433 * hash-map-traits.h (default_hashmap_traits): Delete.
16435 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16437 * hash-map-traits.h (unbounded_hashmap_traits): New class.
16438 (unbounded_int_hashmap_traits): Likewise.
16439 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
16441 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16443 * ipa-icf.h (symbol_compare_hash): New class.
16444 (symbol_compare_hashmap_traits): Use it.
16445 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
16446 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
16447 (mem_alloc_description::reverse_mem_map_t): Remove redundant
16448 default_hashmap_traits.
16449 * sanopt.c (sanopt_tree_triplet_hash): New class.
16450 (sanopt_tree_triplet_map_traits): Use it.
16452 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16454 * gengtype-parse.c (require_template_declaration): Allow '+' in
16455 template parameters. Consolidate cases.
16456 * hash-traits.h (int_hash): New class.
16457 * alias.c (alias_set_hash): New structure.
16458 (alias_set_traits): Use it.
16459 * symbol-summary.h (function_summary::map_hash): New class.
16460 (function_summary::summary_hashmap_traits): Use it.
16461 * tree-inline.h (dependence_hash): New class.
16462 (dependence_hasher): Use it.
16463 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
16464 * value-prof.c (profile_id_hash): New class.
16465 (profile_id_traits): Use it.
16467 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16469 * config/mips/mips.c (mips16_flip_traits): Use it.
16470 (local_alias_traits, mips16_local_aliases): Convert from a map of
16471 rtxes to a map of symbol names.
16472 (mips16_local_alias): Update accordingly.
16474 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16476 * hash-traits.h (string_hash, nofree_string_hash): New classes.
16477 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
16478 * passes.c (pass_registry_hasher): Likewise.
16479 * config/alpha/alpha.c (string_traits): Likewise.
16480 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
16481 * config/m32c/m32c.c (pragma_traits): Likewise.
16482 * config/mep/mep.c (pragma_traits): Likewise.
16484 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16486 * tree-hash-traits.h (tree_hash): New class.
16487 * except.c: Include tree-hash-traits.h.
16488 (tree_hash_traits): Use tree_hash.
16490 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16492 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
16493 * sese.c: Include tree-hash-traits.h.
16494 (rename_map_hasher): Use tree_ssa_name_hasher.
16496 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16498 * tree-hash-traits.h (tree_decl_hash): New class.
16499 * tree-ssa-strlen.c: Include tree-hash-traits.h.
16500 (stridxlist_hash_traits): Use tree_decl_hash.
16502 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16504 * tree-hash-traits.h: New file.
16505 (tree_operand_hash): New class.
16506 * sanopt.c: Include tree-hash-traits.h.
16507 (sanopt_tree_map_traits): Use tree_operand_hash.
16508 * tree-if-conv.c: Include tree-hash-traits.h.
16509 (phi_args_hash_traits): Use tree_operand_hash.
16510 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
16511 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
16513 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16515 * hash-map-traits.h: Include hash-traits.h.
16516 (simple_hashmap_traits): New class.
16517 * mem-stats.h (hash_map): Change the default traits to
16518 simple_hashmap_traits<default_hash_traits<Key> >.
16520 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16522 * hash-table.h: Update comments.
16524 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16526 * hash-traits.h (default_hash_traits): New structure.
16527 * hash-set.h (default_hashset_traits): Delete.
16528 (hash_set): Use default_hash_traits<Key> instead of
16529 default_hashset_traits. Delete hash_entry type and use Key directly.
16530 * ipa-devirt.c (pair_traits): Delete.
16531 (default_hash_traits <type_pair>): Override.
16532 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
16533 (odr_types_equivalent_p, add_type_duplicate): Likewise.
16535 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16537 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
16539 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16541 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
16542 (has_is_empty, is_empty_helper): Delete.
16543 (has_mark_deleted, mark_deleted_helper): Delete.
16544 (has_mark_empty, mark_empty_helper): Delete.
16545 (hash_table::is_deleted): Call the Descriptor unconditionally.
16546 (hash_table::is_empty): Likewise.
16547 (hash_table::mark_deleted): Likewise.
16548 (hash_table::mark_empty): Likewise.
16550 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16552 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
16553 redundant typedefs and members.
16554 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
16555 redundant typedefs.
16556 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
16557 * ipa-devirt.c (odr_name_hasher): Likewise.
16558 (polymorphic_call_target_hasher): Likewise.
16559 * ira-costs.c (cost_classes_hasher): Likewise.
16560 * statistics.c (stats_counter_hasher): Likewise.
16561 * trans-mem.c (log_entry_hasher): Likewise.
16562 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
16563 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
16564 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
16565 * var-tracking.c (variable_hasher): Likewise.
16566 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
16567 Remove redundant typedefs and members.
16569 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16571 * hash-traits.h (ggc_cache_hasher): Rename to...
16572 (ggc_cache_remove): ...this and remove typedefs.
16573 (ggc_cache_ptr_hash): New class.
16574 * hash-table.h: Update commentary.
16575 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
16576 rather than ggc_cache_hasher.
16577 (const_wide_int_hasher, reg_attr_hasher): Likewise.
16578 (const_double_hasher, const_fixed_hasher): Likewise.
16579 * function.c (insn_cache_hasher): Likewise.
16580 * trans-mem.c (tm_wrapper_hasher): Likewise.
16581 * tree.h (tree_decl_map_cache_hasher): Likewise.
16582 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
16583 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
16584 * ubsan.c (tree_type_map_cache_hasher): Likewise.
16585 * varasm.c (tm_clone_hasher): Likewise.
16586 * config/i386/i386.c (dllimport_hasher): Likewise.
16587 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
16588 (tree_hasher): Likewise.
16590 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16592 * hash-traits.h (ggc_hasher): Rename to...
16593 (ggc_remover): ...this and remove typedefs.
16594 (ggc_cache_hasher): Update accordingly. Add typedefs.
16595 (ggc_ptr_hash): New class.
16596 * hash-table.h: Update comment.
16597 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
16599 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
16600 (tree_descriptor_hasher): Likewise.
16601 * cgraph.c (function_version_hasher): Likewise.
16602 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
16603 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
16604 (dw_loc_list_hasher, addr_hasher): Likewise.
16605 * function.h (used_type_hasher): Likewise.
16606 * function.c (temp_address_hasher): Likewise.
16607 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
16608 * libfuncs.h (libfunc_hasher): Likewise.
16609 * lto-streamer.h (decl_state_hasher): Likewise.
16610 * optabs.c (libfunc_decl_hasher): Likewise.
16611 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
16612 * varasm.c (section_hasher, object_block_hasher): Likewise.
16613 (const_rtx_desc_hasher): Likewise.
16614 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
16615 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
16617 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16619 * hash-traits.h (free_ptr_hash): New class.
16620 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
16621 rather than typed_free_remove. Remove redudant typedefs.
16622 (external_ref_hasher): Likewise.
16623 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
16624 (ehspec_hasher): Likewise.
16625 * ggc-common.c (saving_hasher): Likewise.
16626 * gimplify.c (gimplify_hasher): Likewise.
16627 * haifa-sched.c (delay_i2_hasher): Likewise.
16628 * loop-invariant.c (invariant_expr_hasher): Likewise.
16629 * loop-iv.c (biv_entry_hasher): Likewise.
16630 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
16631 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
16632 * tree-cfg.c (locus_discrim_hasher): Likewise.
16633 * tree-eh.c (finally_tree_hasher): Likewise.
16634 * tree-into-ssa.c (var_info_hasher): Likewise.
16635 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
16636 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
16637 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
16638 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
16639 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
16640 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
16641 (shared_bitmap_hasher): Likewise.
16642 * tree-ssa-threadupdate.c (redirection_data): Likewise.
16643 * tree-vectorizer.h (peel_info_hasher): Likewise.
16644 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
16645 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
16647 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16649 * hash-table.h: Update comments.
16650 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
16651 (nofree_ptr_hash): New class.
16652 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
16653 than typed_noop_remove. Remove redudant typedefs.
16654 * attribs.c (attribute_hasher): Likewise.
16655 * cfg.c (bb_copy_hasher): Likewise.
16656 * cselib.c (cselib_hasher): Likewise.
16657 * dse.c (invariant_group_base_hasher): Likewise.
16658 * dwarf2cfi.c (trace_info_hasher): Likewise.
16659 * dwarf2out.c (macinfo_entry_hasher): Likewise.
16660 (comdat_type_hasher, loc_list_hasher): Likewise.
16661 * gcse.c (pre_ldst_expr_hasher): Likewise.
16662 * genmatch.c (id_base): Likewise.
16663 * genrecog.c (test_pattern_hasher): Likewise.
16664 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
16665 * haifa-sched.c (delay_i1_hasher): Likewise.
16666 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
16667 * ipa-icf.h (congruence_class_group_hash): Likewise.
16668 * ipa-profile.c (histogram_hash): Likewise.
16669 * ira-color.c (allocno_hard_regs_hasher): Likewise.
16670 * lto-streamer.h (string_slot_hasher): Likewise.
16671 * lto-streamer.c (tree_entry_hasher): Likewise.
16672 * plugin.c (event_hasher): Likewise.
16673 * postreload-gcse.c (expr_hasher): Likewise.
16674 * store-motion.c (st_expr_hasher): Likewise.
16675 * tree-sra.c (uid_decl_hasher): Likewise.
16676 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
16677 (ssa_name_var_hash): Likewise.
16678 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
16679 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
16680 * tree-ssa-pre.c (pre_expr_d): Likewise.
16681 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
16682 * vtable-verify.h (registration_hasher): Likewise.
16683 * vtable-verify.c (vtbl_map_hasher): Likewise.
16684 * config/arm/arm.c (libcall_hasher): Likewise.
16685 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
16686 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
16687 * config/sol2.c (comdat_entry_hasher): Likewise.
16688 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
16689 (print_fold_checksum, fold_checksum_tree): Likewise.
16690 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
16691 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
16692 (fold_build_call_array_loc): Likewise.
16693 * tree-ssa-ccp.c (gimple_htab): Likewise.
16694 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
16695 rather than pointer_type.
16697 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16699 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
16700 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
16702 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16704 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
16705 (ggc_hasher::ggc_mx): Likewise.
16706 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
16707 that duplicate ggc_hasher ones.
16709 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16711 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
16712 (gt_cleare_cache): Check here for deleted and empty entries.
16713 Replace handle_cache_entry with a call to keep_cache_entry.
16714 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
16715 (ggc_cache_hasher::keep_cache_entry): New function.
16716 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
16717 (tm_wrapper_hasher::keep_cache_entry): New function.
16718 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
16719 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
16720 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
16721 (type_cache_hasher::keep_cache_entry): New function.
16722 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
16723 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
16724 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
16725 (tree_type_map_cache_hasher::keep_cache_entry): New function.
16726 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
16727 (tm_clone_hasher::keep_cache_entry): New function.
16728 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
16729 (dllimport_hasher::keep_cache_entry): New function.
16731 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16733 * hash-table.h: Include hash-traits.h.
16734 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
16735 (ggc_cache_hasher): Move to...
16736 * hash-traits.h: ...this new file.
16738 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16740 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
16741 struct cl_optimization.
16742 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
16743 * tree.c (make_node_stat): Allocate cl_optimization struct.
16744 (copy_node_stat): Allocate and copy cl_optimization struct.
16746 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16748 * function.h (struct incoming_args): Move struct.
16749 (pass_by_reference, reference_callee_copied): Remove prototypes.
16750 * emit-rtl.h (struct incoming_args): Relocate struct here.
16751 * calls.h (pass_by_reference, reference_callee_copied): Relocate
16753 * function.c (pass_by_reference, reference_callee_copied): Move.
16754 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
16755 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
16756 * ipa-chkp.c: Include calls.h.
16758 2015-06-25 Andrew Macleod <amacleod@redhat.com>
16760 * alias.h (alias_set_type): Move typedef.
16761 * coretypes.h (alias_set_type): Relocate typedef here.
16762 * rtl.h: Don't include alias.h.
16764 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16766 * cgraph.h (cgraph_rtl_info): Move to rtl.h
16767 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
16769 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
16770 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
16772 * calls.c: Include hard-reg-set.h before rtl.h.
16775 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16776 Vladimir Makarov <vmakarov@redhat.com>
16778 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
16781 2015-06-25 Richard Biener <rguenther@suse.de>
16783 * fold-const.c (fold_binary_loc): Move simplification of
16784 (X <<>> C1) & C2 ...
16785 * match.pd: ... here.
16787 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
16789 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
16791 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16793 * match.pd: Add patterns for vec_conds between 1 and 0.
16795 2015-06-25 Richard Biener <rguenther@suse.de>
16797 * tree-vect-stmts.c (vectorizable_conversion): Do not set
16798 STMT_VINFO_VEC_STMT for SLP.
16799 (vectorizable_store): Likewise.
16800 (vectorizable_load): Likewise.
16801 (vect_transform_stmt): Catch SLP vectorization clobbering
16802 STMT_VINFO_VEC_STMT.
16804 2015-06-25 Richard Biener <rguenther@suse.de>
16806 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
16808 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
16809 cleanup resulting dead code and parameters.
16810 (vect_transform_slp_perm_load): Adjust.
16812 2015-06-25 Nick Clifton <nickc@redhat.com>
16814 * config/bfin/bfin.c (bfin_expand_prologue): Set
16815 current_function_static_stack_size if flag_stack_usage_info is set.
16816 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
16817 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
16818 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
16819 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
16821 2015-06-25 Tom de Vries <tom@codesourcery.com>
16823 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
16824 comment that the generated IV is unsigned.
16826 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16829 * config/arm/arm.c (arm_dbx_register_number): Return
16830 DWARF_FRAME_REGISTERS by default.
16832 2015-06-25 Tom de Vries <tom@codesourcery.com>
16834 * dominance.c (calculate_dominance_info): Fix verify_dominators call
16835 argument. Call verify_dominator when reusing dominator info.
16837 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
16840 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
16841 an additional element of the unspec vector. Modify indices
16843 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
16844 * config/sh/sh.c (prepare_move_operands): Pass incremented
16845 const_int to gen_GOTaddr2picreg.
16846 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
16848 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
16850 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
16851 Condition on TARGET_FLOAT.
16853 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
16855 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
16858 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
16860 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
16862 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
16863 aarch64_err_no_fpadvsimd.
16865 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
16866 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
16867 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
16868 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
16869 Turn error into assert, test TARGET_FLOAT.
16870 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
16873 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
16876 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
16878 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
16880 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
16882 2015-06-24 Renlin Li <renlin.li@arm.com>
16884 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
16885 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
16887 2015-06-24 Richard Biener <rguenther@suse.de>
16889 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
16891 (lower_opt_convert): Support lowering of conditional view_convert.
16892 (parser::parse_operation): Likewise.
16893 (parser::parse_for): Likewise.
16895 2015-06-24 Renlin Li <renlin.li@arm.com>
16897 * varasm.c (emit_local): Use unsigned int for align variable.
16899 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16902 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
16903 for negative numbers.
16905 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16907 PR rtl-optimization/66306
16908 * reload.c (find_reloads): Swap the match_dup info for
16909 commutative operands.
16911 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16913 * config/s390/vx-builtins.md
16914 ("vec_scatter_element<mode>_<non_vec_int>")
16915 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
16916 attribute with bhfgq.
16918 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16920 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
16922 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16924 * config/s390/s390-builtin-types.def: Add flag to indicate the
16925 options under which the function type is needed.
16926 * config/s390/s390-builtins.def: Add flag to indicate the options
16927 under which the builtin is enabled.
16928 * config/s390/s390-builtins.h: Add flags parameter to macro
16930 (bflags_for_builtin): New function.
16931 (flags_for_builtin): Renamed to ...
16932 (opflags_for_builtin): ... this.
16933 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
16934 flags_for_builtin to bflags_for_builtin and
16935 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
16936 * config/s390/s390.c: Add initialization of bflags_builtin and
16937 opflags_builtin arrays.
16938 Remove code for flags_builtin.
16939 (s390_init_builtins): Only create builtin function types if one of
16940 their flags is active.
16941 Only create builtins if all of their flags are active.
16942 (s390_expand_builtin): Rename flags_for_builtin to
16943 opflags_for_builtin.
16945 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16947 * config/s390/vecintrin.h: Remove internal builtins.
16949 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16951 * config/s390/s390.c (s390_secondary_reload): Fix check for
16952 GENERAL_REGS register class.
16954 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16956 * config/s390/s390.c (s390_support_vector_misalignment): Call
16957 default implementation for !TARGET_VX.
16959 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16961 * config/s390/s390.c (s390_legitimate_constant_p): Add
16964 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16966 * config/s390/s390.c (s390_vector_abi): New variable definition.
16967 (s390_check_type_for_vector_abi): New function.
16968 (TARGET_ASM_FILE_END): New macro definition.
16969 (s390_asm_file_end): New function.
16970 (s390_function_arg): Call s390_check_type_for_vector_abi.
16971 (s390_gimplify_va_arg): Likewise.
16972 * configure: Regenerate.
16973 * configure.ac: Check for .gnu_attribute Binutils feature.
16975 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
16978 * config/bfin/bfin.c (hwloop_optimize): Initialize
16979 JUMP_LABEL for newly created jump.
16981 2015-06-23 Tristan Gingold <gingold@adacore.com>
16983 * collect-utils.c (collect_wait): Unlink the response file here
16985 (do_wait): ...here.
16986 (utils_cleanup): ...and here.
16988 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
16990 * df-scan.c: Don't include target-def.h.
16991 * targhooks.c: Likewise.
16992 * config/arm/arm-c.c: Likewise.
16993 * config/i386/i386-c.c: Likewise.
16994 * config/nds32/nds32-cost.c: Likewise.
16995 * config/nds32/nds32-fp-as-gp.c: Likewise.
16996 * config/nds32/nds32-intrinsic.c: Likewise.
16997 * config/nds32/nds32-isr.c: Likewise.
16998 * config/nds32/nds32-md-auxiliary.c: Likewise.
16999 * config/nds32/nds32-memory-manipulation.c: Likewise.
17000 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17001 * config/nds32/nds32-predicates.c: Likewise.
17003 2015-06-23 Richard Biener <rguenther@suse.de>
17005 PR tree-optimization/66636
17006 * tree-vect-stmts.c (vectorizable_store): Properly compute the
17007 def type for further defs for strided stores.
17009 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
17011 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
17012 conditional selects.
17013 (setcc_int<mode>, setcc_float<mode>): Reformat.
17015 2015-06-23 Marek Polacek <polacek@redhat.com>
17017 * match.pd ((x + y) - (x | y) -> x & y,
17018 (x + y) - (x & y) -> x | y): New patterns.
17020 2015-06-23 Ludovic Courtès <ludo@gnu.org>
17023 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
17024 '-dynamic-linker' within %{!shared: ...}.
17026 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
17029 * config/i386/predicates.md (addsub_vm_operator): New predicate.
17030 (addsub_vs_operator): Ditto.
17031 (addsub_vs_parallel): Ditto.
17032 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
17033 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
17034 Put minus RTX before plus and adjust vec_merge selector.
17035 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
17036 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
17037 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
17038 (addsub vec_merge splitters): New combiner splitters.
17039 (addsub vec_select/vec_concat splitters): Ditto.
17041 2015-06-23 Bin Cheng <bin.cheng@arm.com>
17043 PR tree-optimization/66449
17044 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
17045 POINTER_PLUS_EXPR for pointers.
17047 2015-06-23 Alan Modra <amodra@gmail.com>
17049 * rtlanal.c (commutative_operand_precedence): Correct comments.
17050 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
17051 declaration. Return an int. Distinguish REG,REG return from
17053 (struct simplify_plus_minus_op_data): Make local to function.
17054 (simplify_plus_minus): Don't set canonicalized if merely sorting
17055 registers. Avoid packing ops if nothing changes. White space fixes.
17057 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
17059 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
17060 -fdump-ada-spec is passed but not if -fsyntax-only is.
17062 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
17065 * lra-lives.c (process_bb_lives): Check insn copying the same
17066 reload pseudo and don't create a copy for it.
17068 2015-06-22 Tom de Vries <tom@codesourcery.com>
17070 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
17073 2015-06-22 Tom de Vries <tom@codesourcery.com>
17075 * builtins.def (DEF_GOMP_BUILTIN): Test
17076 'flag_tree_parallelize_loops > 1' instead of
17077 'flag_tree_parallelize_loops'. Test flag_cilkplus.
17079 2015-06-22 Tom de Vries <tom@codesourcery.com>
17081 * dominance.c (calculate_dominance_info): Verify dominators if
17084 2015-06-22 Marek Polacek <polacek@redhat.com>
17086 * match.pd ((x ^ y) ^ (x | y) -> x & y,
17087 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
17088 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
17089 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
17091 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
17094 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
17095 cost of embedded comparison.
17097 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17100 * config/rs6000/predicates.md (altivec_register_operand): Permit
17101 virtual stack registers.
17102 (vsx_register_operand): Likewise.
17103 (vfloat_operand): Likewise.
17104 (vint_operand): Likewise.
17105 (vlogical_operand): Likewise.
17107 2015-06-22 Richard Biener <rguenther@suse.de>
17109 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
17110 and single_scalar_iteration_cost members.
17111 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
17112 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
17113 (vect_get_single_scalar_iteration_cost): Remove.
17114 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
17115 Use LOOP_VINFO_SCALAR_ITERATION_COST.
17116 * tree-vect-loop.c (destroy_loop_vec_info): Free
17118 (vect_get_single_scalar_iteration_cost): Compute result into
17119 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
17120 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
17121 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
17122 (vect_estimate_min_profitable_iters): Use them.
17124 2015-06-22 Christian Bruel <christian.bruel@st.com>
17127 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
17128 (TARGET_INSERT_ATTRIBUTES): Define.
17129 (thumb_flipper): New var.
17130 * config/arm/arm.opt (-mflip-thumb): New switch.
17132 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
17133 Martin Liska <mliska@suse.cz>
17136 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
17137 construction of arg_types.
17138 (sem_function::sem_function): Likewise.
17139 (sem_function::~sem_function): Remove destruction of arg_types.
17140 (sem_function::compatible_parm_types_p): New function.
17141 (sem_function::equals_wpa): Reorg matching of return values
17142 and parameter types.
17143 (sem_function::equals_private): Reorg mathcing of argument types.
17144 (sem_function::parse_tree_args): Remove.
17145 * ipa-icf.h (init_wpa): Do not call it.
17146 (parse_tree_args): Remove.
17147 (compatible_parm_types_p): Declare.
17148 (result_type): Remove.
17149 (arg_types): Remove.
17151 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
17154 * ipa-polymorphic-call.c
17155 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
17156 initializing alias oracle; fix formating; set base_alias_set if it
17159 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
17161 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
17162 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
17163 (find_inc): Likewise.
17164 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
17166 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
17167 * df-scan.c (df_swap_refs): Remove.
17168 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
17169 * dominance.c (link_roots): Use std::swap instead of manually swapping.
17170 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
17171 * fold-const.c (fold_relational_const): Likewise.
17172 * genattrtab.c (simplify_test_exp): Likewise.
17173 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
17174 gimple_simplify): Likewise.
17175 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
17176 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
17177 * ipa-devirt.c (add_type_duplicate): Likewise.
17178 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
17179 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
17180 * lra.c (lra_create_copy): Likewise.
17181 * lto-streamer-out.c (DFS::DFS): Likewise.
17182 * modulo-sched.c (get_sched_window): Likewise.
17183 * omega.c (omega_pretty_print_problem): Likewise.
17184 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
17185 * reload1.c (reloads_unique_chain_p): Likewise.
17186 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
17187 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
17189 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
17191 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
17192 predicate_mem_writes): Likewise.
17193 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
17194 * tree-predcom.c (combine_chains): Likewise.
17195 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
17196 refs_may_alias_p_1): Likewise.
17197 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
17198 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
17199 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
17200 number_of_iterations_cond): Likewise.
17201 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
17202 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
17203 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
17204 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
17205 * tree-vrp.c (extract_range_from_binary_expr_1,
17206 extract_range_from_unary_expr_1): Likewise.
17208 2015-06-20 Marek Polacek <polacek@redhat.com>
17210 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
17212 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
17215 * config/sh/sh.c (prepare_move_operands): Replace subreg
17216 index term with R0 for base and index addressing.
17218 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
17220 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
17222 (movsf_aarch64): Change condition from register_operand to
17223 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
17224 load1. Change type for alternative 7 to store1.
17225 (movdf_aarch64): Likewise.
17227 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
17229 * config/vax/vax.md: Adjust sign/zero extend patterns to
17230 handle SUBREGs in operands[1].
17232 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17234 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
17235 of manually swapping.
17236 (expand_vec_perm_interleave2): Likewise.
17238 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
17240 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
17241 reuse bounds created for abnormal ssa names.
17243 2015-06-19 Jakub Jelinek <jakub@redhat.com>
17245 * config/nvptx/nvptx.md (allocate_stack): Rename to...
17246 (allocate_stack_<mode>): ... this, and add :P on both
17247 match_operand and unspec.
17248 (allocate_stack): New expander.
17250 2015-06-19 Christian Bruel <christian.bruel@st.com>
17254 * config/arm/arm.c (arm_set_current_function): Handle
17255 explicit default options.
17257 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
17259 * config/i386/i386.md (*movsicc_noc_zext): New insn.
17260 (zero-extended cmove with mem peephole2): New pattern.
17261 (cmove with mem peephole2): Merge patterns.
17263 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
17265 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
17267 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
17269 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
17270 * config/mips/mips.md (*madd4<mode>): Ditto.
17271 (*nmadd3<mode>) Ditto.
17272 (*nmadd4<mode>_fastmath): Ditto.
17273 (*nmadd3<mode>_fastmath): Ditto.
17274 (*nmsub4<mode>): Ditto.
17275 (*nmsub3<mode>): Ditto.
17276 (*nmsub4<mode>_fastmath): Ditto.
17277 (*nmsub3<mode>_fastmath): Ditto.
17279 2015-06-18 Michael Matz <matz@suse.de>
17281 PR middle-end/66253
17282 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
17283 grouped strided stores.
17284 (vectorizable_load): Don't use the DR from first_stmt in
17285 the non-SLP grouped strided case.
17287 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17290 * function.c (assign_bounds): Add arguments assign_regs,
17291 assign_special, assign_bt.
17292 (assign_parms): For vararg functions handle bounds in BT
17293 and special slots after incoming vararg bounds.
17295 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17297 PR middle-end/66568
17298 * cfgexpand.c (expand_return): Handle missing bounds.
17299 (expand_gimple_stmt_1): Likewise.
17300 * tree-chkp.c (chkp_expand_zero_bounds): New.
17301 * tree-chkp.h (chkp_expand_zero_bounds): New.
17303 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17305 PR middle-end/66567
17306 * ipa-chkp.c (chkp_maybe_create_clone): Require
17307 functions to be instrumentable.
17308 * tree-chkp.c (chkp_replace_function_pointer): Use
17309 chkp_instrumentable_p instead of attribute check.
17311 2015-06-18 Richard Biener <rguenther@suse.de>
17313 PR tree-optimization/66510
17314 * tree-vect-stmts.c (vectorizable_load): Properly compute the
17315 number of vector loads for SLP permuted loads.
17316 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
17317 check the stride for loop vectorization.
17318 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
17319 vectorization factor.
17320 (vect_analyze_group_access): If the group size is not a power
17321 of two require a epilogue loop.
17322 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
17323 compute and optimizing and alias test pruning after final
17324 vectorization factor computation.
17325 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
17327 (vect_transform_slp_perm_load): Properly compute the original
17328 number of vector load stmts.
17330 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
17332 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
17333 "unlikely character , in @var" warning.
17335 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
17337 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
17338 (ix86_function_arg_advance): Ditto.
17339 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
17341 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
17343 * function.h (struct rtl_data): Remove struct and accessor macros.
17344 * emit-rtl.h (struct rtl_data): Relocate to here.
17345 * Makefile.in (GTFILES): Add emit-rtl.h.
17346 * df-core.c: Include emit-rtl.h.
17347 * genattrtab.c: Likewise.
17348 * genconditions.c: Likewise.
17349 * genpreds.c: Likewise.
17350 * genrecog.c: Likewise.
17351 * regcprop.c: Likewise.
17352 * resource.c: Likewise.
17353 * sched-rgn.c: Likewise.
17354 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17355 * config/i386/winnt.c: Likewise.
17357 2015-06-17 Jakub Jelinek <jakub@redhat.com>
17359 PR middle-end/66429
17360 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
17361 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
17362 and has_force_vectorize_loops flags from cfun into
17364 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
17365 if simduid is non-NULL.
17366 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
17367 * passes.def (pass_simduid_cleanup): Add new pass after loop
17369 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
17370 indirection from htab argument's type.
17371 (shrink_simd_arrays): New function.
17372 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
17373 Don't call adjust_simduid_builtins if there are no loops.
17374 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
17375 (pass_simduid_cleanup::execute): New method.
17376 (make_pass_simduid_cleanup): New function.
17378 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
17380 * tree-core.h (tree_target_option): Make opts field a pointer to a
17381 cl_target_option instead of an instance of the struct.
17382 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
17384 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
17385 TARGET_OPTION_NODE.
17386 (copy_node_stat): Allocate and copy struct cl_target_option.
17388 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
17390 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
17391 Remove conditional exposure of prototypes.
17392 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
17393 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
17394 definitions in tree.h with functions.
17395 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
17397 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
17399 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
17401 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
17402 (*cmp<mode>_signed): ... this.
17403 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
17404 (*cmp<mode>_unsigned): ... this. Remove %b.
17406 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
17408 * coretypes.h: Include input.h and as-a.h.
17409 * rtl.h: Include input.h and as-a.h for generator files.
17410 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
17411 * vec.c: Don't include diagnostic-core.h.
17412 * alias.c: Do not include input.h, line-map.h or is-a.h.
17413 * asan.c: Likewise.
17414 * attribs.c: Likewise.
17415 * auto-inc-dec.c: Likewise.
17416 * auto-profile.c: Likewise.
17417 * bb-reorder.c: Likewise.
17418 * bt-load.c: Likewise.
17419 * builtins.c: Likewise.
17420 * caller-save.c: Likewise.
17421 * calls.c: Likewise.
17422 * ccmp.c: Likewise.
17424 * cfganal.c: Likewise.
17425 * cfgbuild.c: Likewise.
17426 * cfgcleanup.c: Likewise.
17427 * cfgexpand.c: Likewise.
17428 * cfghooks.c: Likewise.
17429 * cfgloop.c: Likewise.
17430 * cfgloop.h: Likewise.
17431 * cfgloopanal.c: Likewise.
17432 * cfgloopmanip.c: Likewise.
17433 * cfgrtl.c: Likewise.
17434 * cgraph.c: Likewise.
17435 * cgraphbuild.c: Likewise.
17436 * cgraphclones.c: Likewise.
17437 * cgraphunit.c: Likewise.
17438 * cilk-common.c: Likewise.
17439 * combine-stack-adj.c: Likewise.
17440 * combine.c: Likewise.
17441 * compare-elim.c: Likewise.
17442 * convert.c: Likewise.
17443 * coverage.c: Likewise.
17444 * cppbuiltin.c: Likewise.
17445 * cprop.c: Likewise.
17447 * cselib.c: Likewise.
17448 * data-streamer-in.c: Likewise.
17449 * data-streamer-out.c: Likewise.
17450 * data-streamer.c: Likewise.
17451 * dbxout.c: Likewise.
17454 * debug.c: Likewise.
17455 * df-core.c: Likewise.
17456 * df-problems.c: Likewise.
17457 * df-scan.c: Likewise.
17460 * diagnostic-core.h: Likewise.
17461 * diagnostic.c: Likewise.
17462 * dojump.c: Likewise.
17463 * dominance.c: Likewise.
17464 * domwalk.c: Likewise.
17465 * double-int.c: Likewise.
17467 * dumpfile.c: Likewise.
17468 * dumpfile.h: Likewise.
17469 * dwarf2asm.c: Likewise.
17470 * dwarf2cfi.c: Likewise.
17471 * dwarf2out.c: Likewise.
17472 * emit-rtl.c: Likewise.
17473 * et-forest.c: Likewise.
17474 * except.c: Likewise.
17475 * explow.c: Likewise.
17476 * expmed.c: Likewise.
17477 * expr.c: Likewise.
17478 * final.c: Likewise.
17479 * fixed-value.c: Likewise.
17480 * fold-const.c: Likewise.
17481 * function.c: Likewise.
17482 * fwprop.c: Likewise.
17483 * gcc-plugin.h: Likewise.
17484 * gcse.c: Likewise.
17485 * generic-match-head.c: Likewise.
17486 * ggc-page.c: Likewise.
17487 * gimple-builder.c: Likewise.
17488 * gimple-expr.c: Likewise.
17489 * gimple-fold.c: Likewise.
17490 * gimple-iterator.c: Likewise.
17491 * gimple-low.c: Likewise.
17492 * gimple-match-head.c: Likewise.
17493 * gimple-pretty-print.c: Likewise.
17494 * gimple-ssa-isolate-paths.c: Likewise.
17495 * gimple-ssa-strength-reduction.c: Likewise.
17496 * gimple-streamer-in.c: Likewise.
17497 * gimple-streamer-out.c: Likewise.
17498 * gimple-streamer.h: Likewise.
17499 * gimple-walk.c: Likewise.
17500 * gimple.c: Likewise.
17501 * gimplify-me.c: Likewise.
17502 * gimplify.c: Likewise.
17503 * godump.c: Likewise.
17504 * graph.c: Likewise.
17505 * graphite-blocking.c: Likewise.
17506 * graphite-dependences.c: Likewise.
17507 * graphite-interchange.c: Likewise.
17508 * graphite-isl-ast-to-gimple.c: Likewise.
17509 * graphite-optimize-isl.c: Likewise.
17510 * graphite-poly.c: Likewise.
17511 * graphite-scop-detection.c: Likewise.
17512 * graphite-sese-to-poly.c: Likewise.
17513 * graphite.c: Likewise.
17514 * haifa-sched.c: Likewise.
17515 * hw-doloop.c: Likewise.
17516 * ifcvt.c: Likewise.
17517 * init-regs.c: Likewise.
17518 * input.c: Likewise.
17519 * internal-fn.c: Likewise.
17520 * ipa-chkp.c: Likewise.
17521 * ipa-comdats.c: Likewise.
17522 * ipa-cp.c: Likewise.
17523 * ipa-devirt.c: Likewise.
17524 * ipa-icf-gimple.c: Likewise.
17525 * ipa-icf.c: Likewise.
17526 * ipa-inline-analysis.c: Likewise.
17527 * ipa-inline-transform.c: Likewise.
17528 * ipa-inline.c: Likewise.
17529 * ipa-polymorphic-call.c: Likewise.
17530 * ipa-profile.c: Likewise.
17531 * ipa-prop.c: Likewise.
17532 * ipa-pure-const.c: Likewise.
17533 * ipa-ref.c: Likewise.
17534 * ipa-reference.c: Likewise.
17535 * ipa-split.c: Likewise.
17536 * ipa-utils.c: Likewise.
17537 * ipa-visibility.c: Likewise.
17539 * ira-build.c: Likewise.
17540 * ira-color.c: Likewise.
17541 * ira-conflicts.c: Likewise.
17542 * ira-costs.c: Likewise.
17543 * ira-emit.c: Likewise.
17544 * ira-lives.c: Likewise.
17546 * jump.c: Likewise.
17547 * langhooks.c: Likewise.
17549 * loop-doloop.c: Likewise.
17550 * loop-init.c: Likewise.
17551 * loop-invariant.c: Likewise.
17552 * loop-iv.c: Likewise.
17553 * loop-unroll.c: Likewise.
17554 * lower-subreg.c: Likewise.
17555 * lra-assigns.c: Likewise.
17556 * lra-coalesce.c: Likewise.
17557 * lra-constraints.c: Likewise.
17558 * lra-eliminations.c: Likewise.
17559 * lra-lives.c: Likewise.
17560 * lra-remat.c: Likewise.
17561 * lra-spills.c: Likewise.
17563 * lto-cgraph.c: Likewise.
17564 * lto-compress.c: Likewise.
17565 * lto-opts.c: Likewise.
17566 * lto-section-in.c: Likewise.
17567 * lto-section-out.c: Likewise.
17568 * lto-streamer-in.c: Likewise.
17569 * lto-streamer-out.c: Likewise.
17570 * lto-streamer.c: Likewise.
17572 * mode-switching.c: Likewise.
17573 * modulo-sched.c: Likewise.
17574 * omega.c: Likewise.
17575 * omp-low.c: Likewise.
17576 * optabs.c: Likewise.
17577 * opts-global.c: Likewise.
17578 * opts.h: Likewise.
17579 * passes.c: Likewise.
17580 * plugin.c: Likewise.
17581 * postreload-gcse.c: Likewise.
17582 * postreload.c: Likewise.
17583 * predict.c: Likewise.
17584 * pretty-print.h: Likewise.
17585 * print-rtl.c: Likewise.
17586 * print-tree.c: Likewise.
17587 * profile.c: Likewise.
17588 * real.c: Likewise.
17589 * realmpfr.c: Likewise.
17590 * recog.c: Likewise.
17592 * reg-stack.c: Likewise.
17593 * regcprop.c: Likewise.
17594 * reginfo.c: Likewise.
17595 * regrename.c: Likewise.
17596 * regstat.c: Likewise.
17597 * reload.c: Likewise.
17598 * reload1.c: Likewise.
17599 * reorg.c: Likewise.
17600 * resource.c: Likewise.
17601 * rtl-chkp.c: Likewise.
17602 * rtl-error.c: Likewise.
17603 * rtlanal.c: Likewise.
17604 * rtlhooks.c: Likewise.
17605 * sanopt.c: Likewise.
17606 * sched-deps.c: Likewise.
17607 * sched-ebb.c: Likewise.
17608 * sched-rgn.c: Likewise.
17609 * sched-vis.c: Likewise.
17610 * sdbout.c: Likewise.
17611 * sel-sched-dump.c: Likewise.
17612 * sel-sched-ir.c: Likewise.
17613 * sel-sched.c: Likewise.
17614 * sese.c: Likewise.
17615 * shrink-wrap.c: Likewise.
17616 * simplify-rtx.c: Likewise.
17617 * stack-ptr-mod.c: Likewise.
17618 * statistics.c: Likewise.
17619 * stmt.c: Likewise.
17620 * stor-layout.c: Likewise.
17621 * store-motion.c: Likewise.
17622 * streamer-hooks.c: Likewise.
17623 * stringpool.c: Likewise.
17624 * symtab.c: Likewise.
17625 * target-globals.c: Likewise.
17626 * targhooks.c: Likewise.
17627 * toplev.c: Likewise.
17628 * tracer.c: Likewise.
17629 * trans-mem.c: Likewise.
17630 * tree-affine.c: Likewise.
17631 * tree-browser.c: Likewise.
17632 * tree-call-cdce.c: Likewise.
17633 * tree-cfg.c: Likewise.
17634 * tree-cfgcleanup.c: Likewise.
17635 * tree-chkp-opt.c: Likewise.
17636 * tree-chkp.c: Likewise.
17637 * tree-chrec.c: Likewise.
17638 * tree-complex.c: Likewise.
17639 * tree-data-ref.c: Likewise.
17640 * tree-dfa.c: Likewise.
17641 * tree-diagnostic.c: Likewise.
17642 * tree-dump.c: Likewise.
17643 * tree-eh.c: Likewise.
17644 * tree-emutls.c: Likewise.
17645 * tree-if-conv.c: Likewise.
17646 * tree-inline.c: Likewise.
17647 * tree-into-ssa.c: Likewise.
17648 * tree-iterator.c: Likewise.
17649 * tree-loop-distribution.c: Likewise.
17650 * tree-nested.c: Likewise.
17651 * tree-nrv.c: Likewise.
17652 * tree-object-size.c: Likewise.
17653 * tree-outof-ssa.c: Likewise.
17654 * tree-parloops.c: Likewise.
17655 * tree-phinodes.c: Likewise.
17656 * tree-predcom.c: Likewise.
17657 * tree-pretty-print.c: Likewise.
17658 * tree-profile.c: Likewise.
17659 * tree-scalar-evolution.c: Likewise.
17660 * tree-sra.c: Likewise.
17661 * tree-ssa-address.c: Likewise.
17662 * tree-ssa-alias.c: Likewise.
17663 * tree-ssa-ccp.c: Likewise.
17664 * tree-ssa-coalesce.c: Likewise.
17665 * tree-ssa-copy.c: Likewise.
17666 * tree-ssa-copyrename.c: Likewise.
17667 * tree-ssa-dce.c: Likewise.
17668 * tree-ssa-dom.c: Likewise.
17669 * tree-ssa-dse.c: Likewise.
17670 * tree-ssa-forwprop.c: Likewise.
17671 * tree-ssa-ifcombine.c: Likewise.
17672 * tree-ssa-live.c: Likewise.
17673 * tree-ssa-loop-ch.c: Likewise.
17674 * tree-ssa-loop-im.c: Likewise.
17675 * tree-ssa-loop-ivcanon.c: Likewise.
17676 * tree-ssa-loop-ivopts.c: Likewise.
17677 * tree-ssa-loop-manip.c: Likewise.
17678 * tree-ssa-loop-niter.c: Likewise.
17679 * tree-ssa-loop-prefetch.c: Likewise.
17680 * tree-ssa-loop-unswitch.c: Likewise.
17681 * tree-ssa-loop.c: Likewise.
17682 * tree-ssa-math-opts.c: Likewise.
17683 * tree-ssa-operands.c: Likewise.
17684 * tree-ssa-phiopt.c: Likewise.
17685 * tree-ssa-phiprop.c: Likewise.
17686 * tree-ssa-pre.c: Likewise.
17687 * tree-ssa-propagate.c: Likewise.
17688 * tree-ssa-reassoc.c: Likewise.
17689 * tree-ssa-sccvn.c: Likewise.
17690 * tree-ssa-scopedtables.c: Likewise.
17691 * tree-ssa-sink.c: Likewise.
17692 * tree-ssa-strlen.c: Likewise.
17693 * tree-ssa-structalias.c: Likewise.
17694 * tree-ssa-tail-merge.c: Likewise.
17695 * tree-ssa-ter.c: Likewise.
17696 * tree-ssa-threadedge.c: Likewise.
17697 * tree-ssa-threadupdate.c: Likewise.
17698 * tree-ssa-uncprop.c: Likewise.
17699 * tree-ssa-uninit.c: Likewise.
17700 * tree-ssa.c: Likewise.
17701 * tree-ssanames.c: Likewise.
17702 * tree-stdarg.c: Likewise.
17703 * tree-streamer-in.c: Likewise.
17704 * tree-streamer-out.c: Likewise.
17705 * tree-streamer.c: Likewise.
17706 * tree-switch-conversion.c: Likewise.
17707 * tree-tailcall.c: Likewise.
17708 * tree-vect-data-refs.c: Likewise.
17709 * tree-vect-generic.c: Likewise.
17710 * tree-vect-loop-manip.c: Likewise.
17711 * tree-vect-loop.c: Likewise.
17712 * tree-vect-patterns.c: Likewise.
17713 * tree-vect-slp.c: Likewise.
17714 * tree-vect-stmts.c: Likewise.
17715 * tree-vectorizer.c: Likewise.
17716 * tree-vrp.c: Likewise.
17717 * tree.c: Likewise.
17718 * tsan.c: Likewise.
17719 * ubsan.c: Likewise.
17720 * valtrack.c: Likewise.
17721 * value-prof.c: Likewise.
17722 * var-tracking.c: Likewise.
17723 * varasm.c: Likewise.
17724 * varpool.c: Likewise.
17725 * vmsdbgout.c: Likewise.
17726 * vtable-verify.c: Likewise.
17728 * wide-int.cc: Likewise.
17729 * xcoffout.c: Likewise.
17730 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
17731 * common/common-targhooks.c: Likewise.
17732 * config/aarch64/aarch64-builtins.c: Likewise.
17733 * config/aarch64/aarch64.c: Likewise.
17734 * config/alpha/alpha.c: Likewise.
17735 * config/arc/arc.c: Likewise.
17736 * config/arm/aarch-common.c: Likewise.
17737 * config/arm/arm-builtins.c: Likewise.
17738 * config/arm/arm-c.c: Likewise.
17739 * config/arm/arm.c: Likewise.
17740 * config/avr/avr-c.c: Likewise.
17741 * config/avr/avr-log.c: Likewise.
17742 * config/avr/avr.c: Likewise.
17743 * config/bfin/bfin.c: Likewise.
17744 * config/c6x/c6x.c: Likewise.
17745 * config/cr16/cr16.c: Likewise.
17746 * config/cris/cris.c: Likewise.
17747 * config/darwin-c.c: Likewise.
17748 * config/darwin.c: Likewise.
17749 * config/default-c.c: Likewise.
17750 * config/epiphany/epiphany.c: Likewise.
17751 * config/epiphany/mode-switch-use.c: Likewise.
17752 * config/epiphany/resolve-sw-modes.c: Likewise.
17753 * config/fr30/fr30.c: Likewise.
17754 * config/frv/frv.c: Likewise.
17755 * config/ft32/ft32.c: Likewise.
17756 * config/glibc-c.c: Likewise.
17757 * config/h8300/h8300.c: Likewise.
17758 * config/i386/i386-c.c: Likewise.
17759 * config/i386/i386.c: Likewise.
17760 * config/i386/msformat-c.c: Likewise.
17761 * config/i386/winnt-cxx.c: Likewise.
17762 * config/i386/winnt-stubs.c: Likewise.
17763 * config/i386/winnt.c: Likewise.
17764 * config/ia64/ia64-c.c: Likewise.
17765 * config/ia64/ia64.c: Likewise.
17766 * config/iq2000/iq2000.c: Likewise.
17767 * config/lm32/lm32.c: Likewise.
17768 * config/m32c/m32c-pragma.c: Likewise.
17769 * config/m32c/m32c.c: Likewise.
17770 * config/m32r/m32r.c: Likewise.
17771 * config/m68k/m68k.c: Likewise.
17772 * config/mcore/mcore.c: Likewise.
17773 * config/mep/mep-pragma.c: Likewise.
17774 * config/mep/mep.c: Likewise.
17775 * config/microblaze/microblaze-c.c: Likewise.
17776 * config/microblaze/microblaze.c: Likewise.
17777 * config/mips/mips.c: Likewise.
17778 * config/mmix/mmix.c: Likewise.
17779 * config/mn10300/mn10300.c: Likewise.
17780 * config/moxie/moxie.c: Likewise.
17781 * config/msp430/msp430-c.c: Likewise.
17782 * config/msp430/msp430.c: Likewise.
17783 * config/nds32/nds32-cost.c: Likewise.
17784 * config/nds32/nds32-fp-as-gp.c: Likewise.
17785 * config/nds32/nds32-intrinsic.c: Likewise.
17786 * config/nds32/nds32-isr.c: Likewise.
17787 * config/nds32/nds32-md-auxiliary.c: Likewise.
17788 * config/nds32/nds32-memory-manipulation.c: Likewise.
17789 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17790 * config/nds32/nds32-predicates.c: Likewise.
17791 * config/nds32/nds32.c: Likewise.
17792 * config/nios2/nios2.c: Likewise.
17793 * config/nvptx/nvptx.c: Likewise.
17794 * config/pa/pa.c: Likewise.
17795 * config/pdp11/pdp11.c: Likewise.
17796 * config/rl78/rl78-c.c: Likewise.
17797 * config/rl78/rl78.c: Likewise.
17798 * config/rs6000/rs6000-c.c: Likewise.
17799 * config/rs6000/rs6000.c: Likewise.
17800 * config/rx/rx.c: Likewise.
17801 * config/s390/s390-c.c: Likewise.
17802 * config/s390/s390.c: Likewise.
17803 * config/sh/sh-c.c: Likewise.
17804 * config/sh/sh-mem.cc: Likewise.
17805 * config/sh/sh.c: Likewise.
17806 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17807 * config/sh/sh_treg_combine.cc: Likewise.
17808 * config/sol2-c.c: Likewise.
17809 * config/sol2-cxx.c: Likewise.
17810 * config/sol2-stubs.c: Likewise.
17811 * config/sol2.c: Likewise.
17812 * config/sparc/sparc-c.c: Likewise.
17813 * config/sparc/sparc.c: Likewise.
17814 * config/spu/spu-c.c: Likewise.
17815 * config/spu/spu.c: Likewise.
17816 * config/stormy16/stormy16.c: Likewise.
17817 * config/tilegx/mul-tables.c: Likewise.
17818 * config/tilegx/tilegx-c.c: Likewise.
17819 * config/tilegx/tilegx.c: Likewise.
17820 * config/tilepro/mul-tables.c: Likewise.
17821 * config/tilepro/tilepro-c.c: Likewise.
17822 * config/tilepro/tilepro.c: Likewise.
17823 * config/v850/v850-c.c: Likewise.
17824 * config/v850/v850.c: Likewise.
17825 * config/vax/vax.c: Likewise.
17826 * config/visium/visium.c: Likewise.
17827 * config/vms/vms-c.c: Likewise.
17828 * config/vms/vms.c: Likewise.
17829 * config/vxworks.c: Likewise.
17830 * config/winnt-c.c: Likewise.
17831 * config/xtensa/xtensa.c: Likewise.
17833 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
17835 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
17837 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
17839 2015-06-17 Richard Biener <rguenther@suse.de>
17841 PR tree-optimization/66251
17842 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
17843 stmts for SLP strided stores.
17846 2015-05-22 Richard Biener <rguenther@suse.de>
17848 PR tree-optimization/66251
17849 * tree-vect-stmts.c (vectorizable_conversion): Properly
17850 set STMT_VINFO_VEC_STMT even for the SLP case.
17852 2015-05-26 Michael Matz <matz@suse.de>
17854 PR middle-end/66251
17855 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
17856 STMT_VINFO_VEC_STMT, also with SLP.
17858 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
17861 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
17862 (*avx_addsubv4df3_1s): Ditto.
17863 (*sse3_addsubv2df3_1): Ditto.
17864 (*sse3_addsubv2df3_1s): Ditto.
17865 (*avx_addsubv8sf3_1): Ditto.
17866 (*avx_addsubv8sf3_1s): Ditto.
17867 (*sse3_addsubv4sf3_1): Ditto.
17868 (*sse3_addsubv4sf3_1s): Ditto.
17870 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
17872 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
17873 (SYSROOT_SUFFIX_SPEC): Update.
17874 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
17875 (STARTFILE_PREFIX_SPEC): Update.
17876 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
17877 (MULTILIB_REQUIRED): New.
17878 (MULTILIB_OSDIRNAMES): New.
17879 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
17880 (MULTILIB_REQUIRED): New.
17881 (MULTILIB_OSDIRNAMES): New.
17883 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
17885 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
17886 * config/aarch64/aarch64-options-extensions.def: Update "fP",
17887 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
17888 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
17889 (AARCH64_FL_PAN): New.
17890 (AARCH64_FL_LOR): New.
17891 (AARCH64_FL_RDMA): New.
17892 (AARCH64_FL_FOR_ARCH8_1): New.
17893 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
17894 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
17896 2015-06-16 Martin Liska <mliska@suse.cz>
17898 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
17899 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
17902 2015-06-16 Richard Biener <rguenther@suse.de>
17904 * tree-vect-stmts.c (vectorizable_store): Adjust.
17905 (vectorizable_load): Likewise.
17906 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
17908 (vect_create_data_ref_ptr): Likewise.
17909 (bump_vector_ptr): Adjust.
17911 2015-06-16 Richard Biener <rguenther@suse.de>
17913 * tree-vect-stmts.c (vectorizable_load): Properly start loads
17914 with the first element if this is grouped loads.
17916 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
17918 * config/arm/arm-protos.h (struct tune_params): Rename
17919 log_op_non_sc to log_op_non_short_circuit, and rename enum
17920 values to expand SC to SHORT_CIRCUIT.
17921 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
17922 to LOG_OP_NON_SHORT_CIRCUIT.
17923 (arm_fastmul_tune):Likewise
17924 (arm_strongarm_tune): Likewise.
17925 (arm_xscale_tune): Likewise.
17926 (arm_9e_tune): Likewise.
17927 (arm_marvell_pj4_tune): Likewise.
17928 (arm_v6t2_tune): Likewise.
17929 (arm_cortex_tune): Likewise.
17930 (arm_cortex_a8_tune): Likewise.
17931 (arm_cortex_a7_tune): Likewise.
17932 (arm_cortex_a15_tune): Likewise.
17933 (arm_cortex_a53_tune): Likewise.
17934 (arm_cortex_a57_tune): Likewise.
17935 (arm_xgene1_tune): Likewise.
17936 (arm_cortex_a5_tune): Likewise.
17937 (arm_cortex_a9_tune): Likewise.
17938 (arm_cortex_a12_tune): Likewise.
17939 (arm_v7m_tune): Likewise.
17940 (arm_cortex_m7_tune): Likewise.
17941 (arm_v6m_tune): Likewise.
17942 (arm_fa726te_tune): Likewise.
17944 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
17946 * altivec.md: Delete UNSPEC_VMLADDUHM.
17947 (mulv4si3_p8): New pattern.
17948 (mulv4si3): Use it for POWER8.
17949 (mulv8hi3): Use vmladduhm with zero addend.
17950 (altivec_vmladduhm): Descriptive RTL.
17952 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
17954 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
17955 to use neon_move instead of mov_imm.
17956 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
17957 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
17959 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
17960 aarch64_float_const_zero_rtx_p check before TFmode check.
17961 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
17963 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
17964 code and attributes to match. Change condition from register_operand
17965 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
17966 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
17969 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
17972 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
17973 there is no parent.
17975 2015-06-14 Shiva Chen <shiva0217@gmail.com>
17977 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
17978 HOST_WIDE_INT parameter.
17980 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
17983 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
17984 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
17986 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
17988 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
17990 * rtl.h (classify_insn): Declare.
17991 * emit-rtl.c (classify_insn): Move to...
17992 * rtl.c: ...here and add generator support.
17993 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
17994 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
17995 * genemit.c (gen_emit_seq): New function.
17996 (gen_expand, gen_split): Use it.
17998 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
18000 * tree.c (make_vector_stat): Fix comment to state that the
18001 function returns a VECTOR_CST.
18003 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
18005 * gensupport.h (add_implicit_parallel): Declare.
18006 * genrecog.c (add_implicit_parallel): Move to...
18007 * gensupport.c (add_implicit_parallel): ...here.
18008 (process_one_cond_exec): Use it.
18009 * genemit.c (gen_insn): Likewise.
18011 2015-06-13 Iain Sandoe <iain@codesourcery.com>
18014 * passes.c (rest_of_decl_compilation): Do not register globals for
18015 early debug if they are declared in built-ins.
18017 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
18019 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
18021 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18023 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
18025 (noce_try_cmove_arith): Likewise.
18026 (noce_get_alt_condition): Likewise.
18028 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
18030 * common/config/i386/i386-common.c
18031 (OPTION_MASK_ISA_MWAITX_SET): New.
18032 (ix86_handle_option): Handle mwaitx.
18033 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
18034 (x86_64-*-*): Likewise.
18035 * config/i386/mwaitxintrin.h: New header.
18036 * config/i386/cpuid.h (bit_MWAITX): Define.
18037 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18039 * config/i386/i386.opt (mwaitx): New.
18040 * config/i386/i386-builtin-types.def
18041 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
18042 * config/i386/i386-c.c: Define __MWAITX__ if needed.
18043 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
18045 (ix86_option_override_internal): Handle new option.
18046 (processor_alias_table): Added PTA_MWAITX.
18047 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
18048 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
18049 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
18050 IX86_BUILTIN_MONITORX built-ins.
18051 * config/i386/i386.h (TARGET_MWAITX): New.
18052 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
18054 (mwaitx): New pattern.
18055 (monitorx_<mode>): New pattern.
18056 * config/i386/x86intrin.h: Include mwaitxintrin.h.
18057 * doc/extend.texi: Document monitorx and mwaitx builtins.
18058 * doc/invoke.texi: Document -mmwaitx option.
18060 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
18062 * emit-rtl.c (need_atomic_barrier_p): Mask model with
18063 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
18065 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
18067 * dbxout.c (xcoff_debug_hooks): Provide a function for
18068 register_main_translation_unit hook.
18070 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
18072 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
18073 variants cases from switch.
18074 (rs6000_post_atomic_barrier): Same.
18075 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
18076 (rs6000_expand_atomic_exchange): Same.
18077 (rs6000_expand_atomic_op): Same.
18078 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
18079 SYNC variants cases from switch.
18080 (atomic_load): Same.
18081 (atomic_store): Same.
18083 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
18085 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
18086 CONST_INT for goto.
18088 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
18091 * dwarf2out.c (check_die): Check for common duplicate attributes.
18092 (add_location_or_const_value_attribute): Do not add duplicate
18094 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
18096 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
18097 (gen_type_die_with_usage): Call check_die.
18098 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
18100 2015-06-11 Jason Merrill <jason@redhat.com>
18102 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
18105 2015-06-11 Marek Polacek <polacek@redhat.com>
18107 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
18109 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
18112 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
18113 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
18114 (*addx_extend_sp32): Fix pasto.
18115 (*subx_extend): Rename into...
18116 (*subx_extend_sp32): ...this.
18117 (*adddi3_extend_sp32): Add earlyclobber.
18118 (*subdi3_insn_sp32): Likewise.
18119 (*subdi3_extend_sp32): Likewise.
18120 (*and_not_di_sp32): Likewise.
18121 (*or_not_di_sp32): Likewise.
18122 (*xor_not_di_sp32): Likewise.
18123 (*negdi2_sp32): Likewise.
18124 (*one_cmpldi2_sp32): Likewise.
18126 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
18128 * debug.h (struct gcc_debug_hooks): Add a
18129 register_main_translation_unit hook.
18130 * debug.c (do_nothing_debug_hooks): Provide a function for this
18132 * dbxout.c (dbx_debug_hooks): Likewise.
18133 * sdbout.c (sdb_debug_hooks): Likewise.
18134 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
18135 * dwarf2out.c (main_translation_unit): New global variable.
18136 (dwarf2out_register_main_translation_unit): New function
18137 implementing the new hook.
18138 (dwarf2_debug_hooks): Assign
18139 dwarf2out_register_main_translation_unit to this new hook.
18140 (dwarf2out_init): Associate any main translation unit to
18143 2015-06-11 Marek Polacek <polacek@redhat.com>
18145 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
18147 2015-06-11 Marek Polacek <polacek@redhat.com>
18149 * match.pd: Use single_use throughout.
18151 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18153 * config/arm/arm.c (arm_option_params_internal): When optimising
18154 for speed set max_insns_skipped when arm_restrict_it.
18156 2015-06-11 Christian Bruel <christian.bruel@st.com>
18159 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
18161 (arm_cpu_builtins): New function.
18162 (arm_pragma_target_parse): Call arm_cpu_builtins.
18163 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
18164 (arm_register_target_pragmas): Likewise.
18165 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
18166 Call arm_register_target_pragmas.
18167 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
18168 (arm_pragma_target_parse): Likewise.
18170 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
18172 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
18173 of the second operand.
18175 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
18178 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
18179 to prepare mask operand for AVX512 modes.
18181 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
18184 * doc/md.texi (Machine Constraints): Document that on the PowerPC
18185 if you use a constraint that targets a VSX register, you must use
18186 %x<n> in the template.
18188 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
18190 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
18191 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
18192 (define_insn "trap"): New definition.
18194 2015-06-10 Richard Biener <rguenther@suse.de>
18196 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
18198 (vect_supported_load_permutation_p): ... here. Handle
18199 supportable permutations in reductions.
18200 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
18201 for vectorizing strided group loads.
18203 2015-06-10 Jakub Jelinek <jakub@redhat.com>
18206 * config/i386/i386.c (ix86_split_long_move): For collisions
18207 involving direct tls segment refs, move the UNSPEC_TP possibly
18208 wrapped in ZERO_EXTEND out of the address for lea, to each of
18211 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18213 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
18214 dmb sy. Adjust tabs.
18216 2015-06-10 Tom de Vries <tom@codesourcery.com>
18218 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
18220 2015-06-10 Martin Liska <mliska@suse.cz>
18223 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
18224 all enum values in mem_alloc_origin.
18225 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
18227 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
18228 * bitmap.c (bitmap_register): Likewise.
18229 (dump_bitmap_statistics): Likewise.
18230 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
18231 (ggc_record_overhead): Likewise.
18232 * hash-map.h: Likewise.
18233 * hash-set.h: Likewise.
18234 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
18235 * hash-table.h: Likewise.
18236 * vec.c (vec_prefix::register_overhead): Likewise.
18237 (vec_prefix::release_overhead): Likewise.
18238 (dump_vec_loc_statistics): Likewise.
18240 2015-06-09 Christian Bruel <christian.bruel@st.com>
18243 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
18244 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
18245 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
18246 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
18247 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
18248 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
18249 (arm_valid_target_attribute_p): Likewise.
18250 (arm_set_current_function, arm_can_inline_p): Likewise.
18251 (arm_valid_target_attribute_rec): Likewise.
18252 (arm_previous_fndecl): New variable.
18253 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
18254 (TARGET_CAN_INLINE_P): Define.
18255 (arm_asm_trampoline_template): Emit mode.
18256 (arm_file_start): Don't set unified syntax.
18257 (arm_declare_function_name): Set unified syntax and mode.
18258 (arm_option_override): Init target_option_default_node.
18259 and target_option_current_node.
18260 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
18261 (*call_symbol): Likewise.
18262 * doc/extend.texi: Document ARM/Thumb target attribute.
18263 * doc/invoke.texi: Likewise.
18265 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18268 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18269 PR rtl-optimization/64164
18270 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18271 * tree-ssa-copyrename.c: Removed.
18272 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18273 -ftree-coalesce-vars.
18274 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18275 * common.opt (ftree-copyrename): Ignore.
18276 (ftree-coalesce-inlined-vars): Likewise.
18277 * doc/invoke.texi: Remove the ignored options above.
18278 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18279 * tree-ssa-coalesce.h: ... here.
18280 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18281 headers required by it.
18282 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18283 across variables when flag_tree_coalesce_vars. Check register
18284 use and promoted modes to allow coalescing. Moved to
18285 tree-ssa-coalesce.c.
18286 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18287 with its member functions to tree-ssa-coalesce.c.
18288 (var_map_base_init): Likewise. Renamed to
18289 compute_samebase_partition_bases.
18290 (partition_view_normal): Drop want_bases parameter.
18291 (partition_view_bitmap): Likewise.
18292 * tree-ssa-live.h: Adjust declarations.
18293 * tree-ssa-coalesce.c: Include explow.h.
18294 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18295 default defs at the entry point.
18296 (dump_part_var_map): New.
18297 (compute_optimized_partition_bases): New, called by...
18298 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18299 of compute_samebase_partition_bases. Adjust.
18300 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18301 * cfgexpand.c (leader_merge): New.
18302 (get_rtl_for_parm_ssa_default_def): New.
18303 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18304 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18305 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18306 redundant MEM attr setting.
18307 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18309 (expand_one_stack_var): ... this. New wrapper to check and
18310 skip already expanded SSA partitions.
18311 (record_alignment_for_reg_var): New, factored out of...
18312 (expand_one_var): ... this.
18313 (expand_one_ssa_partition): New.
18314 (adjust_one_expanded_partition_var): New.
18315 (expand_one_register_var): Check and skip already expanded SSA
18317 (expand_used_vars): Don't create DECLs for anonymous SSA
18318 names. Expand all SSA partitions, then adjust all SSA names.
18319 (pass::execute): Replace the loops that set
18320 SA.partition_to_pseudo from partition leaders and cleared
18321 DECL_RTL for multi-location variables, and that which used to
18322 rename vars and set attrs, with one that clears DECL_RTL and
18323 checks that PARMs and RESULTs default_defs match DECL_RTL.
18324 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18325 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18326 * explow.c (promote_ssa_mode): New.
18327 * explow.h (promote_ssa_mode): Declare.
18328 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18329 * function.c: Include cfgexpand.h.
18330 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18331 (use_register_for_parm_decl): Wrapper for the above to
18332 special-case the result_ptr.
18333 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18334 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18335 multiple locations.
18336 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18337 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18338 (assign_parm_setup_block): Prefer SSA-assigned location.
18339 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18340 if stack_parm is NULL.
18341 (assign_parm_setup_stack): Prefer SSA-assigned location.
18342 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18343 rtl before testing for pointer bounds. Special-case result_ptr.
18344 (expand_function_start): Maybe reset DECL_RTL of result.
18345 Prefer SSA-assigned location for result and static chain.
18346 Factor out DECL_RESULT and SET_DECL_RTL.
18347 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18348 anonymous SSA names. Use promote_ssa_mode.
18349 (get_temp_reg): Likewise.
18350 (remove_ssa_form): Adjust.
18351 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18352 and get its reg_usage for reg invalidation.
18353 (compute_bb_dataflow): Pass it insn.
18354 (emit_notes_in_bb): Likewise.
18355 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
18356 fail assert on conversion between unsigned types.
18358 2015-06-09 Tom de Vries <tom@codesourcery.com>
18360 PR tree-optimization/65460
18361 * omp-low.c (expand_omp_target): Set parallelized_function on
18362 cgraph_node for child_fn.
18364 2015-06-09 Tom de Vries <tom@codesourcery.com>
18366 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
18367 parallelized_function before add_new_function.
18369 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
18371 * gcc-plugin.h: Move decls to plugin.h and include it.
18372 * plugin.h: Relocate decls from gcc-plugin.h
18373 * ggc-page.c: Include required header files.
18374 * passes.c: Likewise.
18375 * cgraphunit.c: Likewise.
18377 2015-06-09 Tom de Vries <tom@codesourcery.com>
18379 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
18381 2015-06-09 Jason Merrill <jason@redhat.com>
18384 * toplev.c (check_global_declaration): Don't warn about a clone.
18386 2015-06-09 Marek Polacek <polacek@redhat.com>
18388 PR tree-optimization/66299
18389 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
18390 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
18393 2015-06-09 Richard Biener <rguenther@suse.de>
18395 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
18396 (vect_analyze_slp_instance): Instead do not falsely drop
18399 2015-06-09 Richard Biener <rguenther@suse.de>
18401 PR middle-end/66423
18402 * match.pd: Handle A % (unsigned)(1 << B).
18404 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
18406 * varasm.c (output_object_block_htab): Remove.
18407 (output_object_block_compare): New.
18408 (output_object_blocks): Sort named object_blocks before outputting
18411 2015-06-09 Richard Biener <rguenther@suse.de>
18413 PR tree-optimization/66419
18414 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
18415 consider GROUP_GAP when detecting a perfect subchain.
18417 2015-06-09 Nick Clifton <nickc@redhat.com>
18419 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
18420 place read only data in the .frodata section.
18422 2015-06-09 Shiva Chen <shiva0217@gmail.com>
18424 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
18425 (atomic_store<mode>): Likewise.
18427 2015-06-09 Richard Biener <rguenther@suse.de>
18429 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
18431 2015-06-09 Richard Biener <rguenther@suse.de>
18433 PR middle-end/66413
18434 * tree-inline.c (insert_init_debug_bind): Unshare value.
18436 2015-06-09 Richard Biener <rguenther@suse.de>
18438 PR tree-optimization/66396
18439 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
18440 Rename virtual operands.
18442 2015-06-09 Tom de Vries <tom@codesourcery.com>
18444 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
18445 always return false.
18447 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18449 PR rtl-optimization/64164
18450 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18451 * tree-ssa-copyrename.c: Removed.
18452 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18453 -ftree-coalesce-vars.
18454 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18455 * common.opt (ftree-copyrename): Ignore.
18456 (ftree-coalesce-inlined-vars): Likewise.
18457 * doc/invoke.texi: Remove the ignored options above.
18458 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18459 * tree-ssa-coalesce.h: ... here.
18460 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18461 headers required by it.
18462 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18463 across variables when flag_tree_coalesce_vars. Check register
18464 use and promoted modes to allow coalescing. Moved to
18465 tree-ssa-coalesce.c.
18466 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18467 with its member functions to tree-ssa-coalesce.c.
18468 (var_map_base_init): Likewise. Renamed to
18469 compute_samebase_partition_bases.
18470 (partition_view_normal): Drop want_bases parameter.
18471 (partition_view_bitmap): Likewise.
18472 * tree-ssa-live.h: Adjust declarations.
18473 * tree-ssa-coalesce.c: Include explow.h.
18474 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18475 default defs at the entry point.
18476 (dump_part_var_map): New.
18477 (compute_optimized_partition_bases): New, called by...
18478 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18479 of compute_samebase_partition_bases. Adjust.
18480 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18481 * cfgexpand.c (leader_merge): New.
18482 (get_rtl_for_parm_ssa_default_def): New.
18483 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18484 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18485 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18486 redundant MEM attr setting.
18487 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18489 (expand_one_stack_var): ... this. New wrapper to check and
18490 skip already expanded SSA partitions.
18491 (record_alignment_for_reg_var): New, factored out of...
18492 (expand_one_var): ... this.
18493 (expand_one_ssa_partition): New.
18494 (adjust_one_expanded_partition_var): New.
18495 (expand_one_register_var): Check and skip already expanded SSA
18497 (expand_used_vars): Don't create DECLs for anonymous SSA
18498 names. Expand all SSA partitions, then adjust all SSA names.
18499 (pass::execute): Replace the loops that set
18500 SA.partition_to_pseudo from partition leaders and cleared
18501 DECL_RTL for multi-location variables, and that which used to
18502 rename vars and set attrs, with one that clears DECL_RTL and
18503 checks that PARMs and RESULTs default_defs match DECL_RTL.
18504 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18505 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18506 * explow.c (promote_ssa_mode): New.
18507 * explow.h (promote_ssa_mode): Declare.
18508 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18509 * function.c: Include cfgexpand.h.
18510 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18511 (use_register_for_parm_decl): Wrapper for the above to
18512 special-case the result_ptr.
18513 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18514 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18515 multiple locations.
18516 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18517 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18518 (assign_parm_setup_block): Prefer SSA-assigned location.
18519 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18520 if stack_parm is NULL.
18521 (assign_parm_setup_stack): Prefer SSA-assigned location.
18522 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18523 rtl before testing for pointer bounds. Special-case result_ptr.
18524 (expand_function_start): Maybe reset DECL_RTL of result.
18525 Prefer SSA-assigned location for result and static chain.
18526 Factor out DECL_RESULT and SET_DECL_RTL.
18527 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18528 anonymous SSA names. Use promote_ssa_mode.
18529 (get_temp_reg): Likewise.
18530 (remove_ssa_form): Adjust.
18531 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18532 and get its reg_usage for reg invalidation.
18533 (compute_bb_dataflow): Pass it insn.
18534 (emit_notes_in_bb): Likewise.
18535 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
18536 fail assert on conversion between unsigned types.
18538 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18541 * tree-inline.c (reset_debug_binding): New.
18542 (reset_debug_bindings): Likewise.
18543 (expand_call_inline): Call it.
18545 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
18547 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
18550 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
18552 * lto-streamer-out.c (lto_output_location): Stream
18553 reserved locations correctly.
18554 * lto-streamer-in.c (lto_output_location): Likewise.
18556 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
18558 * coretypes.h: Include hash-table.h and hash-set.h for host files.
18559 * ggc.h: Don't include statistics.h>
18560 * hash-map.h: Remove all includes.
18561 * hash-set.h: Likewise.
18562 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
18563 the include list. Remove <new>.
18564 * inchash.h: Remove all includes.
18565 * mem-stats.h: Likewise.
18566 * vec.h: No special processing for generators or ggc.
18567 * alias.c : Adjust include files.
18568 * alloc-pool.c : Likewise.
18569 * alloc-pool.h : Likewise.
18570 * asan.c : Likewise.
18571 * attribs.c : Likewise.
18572 * auto-inc-dec.c : Likewise.
18573 * auto-profile.c : Likewise.
18574 * bb-reorder.c : Likewise.
18575 * bitmap.c : Likewise.
18576 * bitmap.h : Likewise.
18577 * bt-load.c : Likewise.
18578 * builtins.c : Likewise.
18579 * caller-save.c : Likewise.
18580 * calls.c : Likewise.
18581 * ccmp.c : Likewise.
18582 * cfg.c : Likewise.
18583 * cfganal.c : Likewise.
18584 * cfgbuild.c : Likewise.
18585 * cfgcleanup.c : Likewise.
18586 * cfgexpand.c : Likewise.
18587 * cfghooks.c : Likewise.
18588 * cfgloop.c : Likewise.
18589 * cfgloop.h : Likewise.
18590 * cfgloopanal.c : Likewise.
18591 * cfgloopmanip.c : Likewise.
18592 * cfgrtl.c : Likewise.
18593 * cgraph.c : Likewise.
18594 * cgraphbuild.c : Likewise.
18595 * cgraphclones.c : Likewise.
18596 * cgraphunit.c : Likewise.
18597 * cilk-common.c : Likewise.
18598 * combine-stack-adj.c : Likewise.
18599 * combine.c : Likewise.
18600 * compare-elim.c : Likewise.
18601 * context.c : Likewise.
18602 * convert.c : Likewise.
18603 * coverage.c : Likewise.
18604 * cppbuiltin.c : Likewise.
18605 * cprop.c : Likewise.
18606 * cse.c : Likewise.
18607 * cselib.c : Likewise.
18608 * data-streamer-in.c : Likewise.
18609 * data-streamer-out.c : Likewise.
18610 * data-streamer.c : Likewise.
18611 * data-streamer.h : Likewise.
18612 * dbxout.c : Likewise.
18613 * dce.c : Likewise.
18614 * ddg.c : Likewise.
18615 * debug.c : Likewise.
18616 * df-core.c : Likewise.
18617 * df-problems.c : Likewise.
18618 * df-scan.c : Likewise.
18620 * dfp.c : Likewise.
18621 * dojump.c : Likewise.
18622 * dominance.c : Likewise.
18623 * domwalk.c : Likewise.
18624 * double-int.c : Likewise.
18625 * dse.c : Likewise.
18626 * dumpfile.c : Likewise.
18627 * dwarf2asm.c : Likewise.
18628 * dwarf2cfi.c : Likewise.
18629 * dwarf2out.c : Likewise.
18630 * emit-rtl.c : Likewise.
18631 * et-forest.c : Likewise.
18632 * except.c : Likewise.
18633 * except.h : Likewise.
18634 * explow.c : Likewise.
18635 * expmed.c : Likewise.
18636 * expr.c : Likewise.
18637 * final.c : Likewise.
18638 * fixed-value.c : Likewise.
18639 * fold-const.c : Likewise.
18640 * function.c : Likewise.
18641 * fwprop.c : Likewise.
18642 * gcc-plugin.h : Likewise.
18643 * gcc.c : Likewise.
18644 * gcse-common.c : Likewise.
18645 * gcse.c : Likewise.
18646 * genattrtab.c : Likewise.
18647 * genautomata.c : Likewise.
18648 * genconditions.c : Likewise.
18649 * genemit.c : Likewise.
18650 * generic-match-head.c : Likewise.
18651 * genextract.c : Likewise.
18652 * gengtype-state.c : Likewise.
18653 * gengtype.c : Likewise.
18654 * genhooks.c : Likewise.
18655 * genmatch.c : Likewise.
18656 * genmodes.c : Likewise.
18657 * genrecog.c : Likewise.
18658 * gensupport.c : Likewise.
18659 * ggc-common.c : Likewise.
18660 * ggc-internal.h : Likewise.
18661 * ggc-none.c : Likewise.
18662 * ggc-page.c : Likewise.
18663 * gimple-builder.c : Likewise.
18664 * gimple-expr.c : Likewise.
18665 * gimple-fold.c : Likewise.
18666 * gimple-iterator.c : Likewise.
18667 * gimple-low.c : Likewise.
18668 * gimple-match-head.c : Likewise.
18669 * gimple-pretty-print.c : Likewise.
18670 * gimple-ssa-isolate-paths.c : Likewise.
18671 * gimple-ssa-strength-reduction.c : Likewise.
18672 * gimple-ssa.h : Likewise.
18673 * gimple-streamer-in.c : Likewise.
18674 * gimple-streamer-out.c : Likewise.
18675 * gimple-streamer.h : Likewise.
18676 * gimple-walk.c : Likewise.
18677 * gimple.c : Likewise.
18678 * gimplify-me.c : Likewise.
18679 * gimplify.c : Likewise.
18680 * godump.c : Likewise.
18681 * graph.c : Likewise.
18682 * graphds.c : Likewise.
18683 * graphite-blocking.c : Likewise.
18684 * graphite-dependences.c : Likewise.
18685 * graphite-interchange.c : Likewise.
18686 * graphite-isl-ast-to-gimple.c : Likewise.
18687 * graphite-optimize-isl.c : Likewise.
18688 * graphite-poly.c : Likewise.
18689 * graphite-scop-detection.c : Likewise.
18690 * graphite-sese-to-poly.c : Likewise.
18691 * graphite.c : Likewise.
18692 * haifa-sched.c : Likewise.
18693 * hard-reg-set.h : Likewise.
18694 * hw-doloop.c : Likewise.
18695 * ifcvt.c : Likewise.
18696 * inchash.c : Likewise.
18697 * incpath.c : Likewise.
18698 * init-regs.c : Likewise.
18699 * input.c : Likewise.
18700 * internal-fn.c : Likewise.
18701 * ipa-chkp.c : Likewise.
18702 * ipa-comdats.c : Likewise.
18703 * ipa-cp.c : Likewise.
18704 * ipa-devirt.c : Likewise.
18705 * ipa-icf-gimple.c : Likewise.
18706 * ipa-icf.c : Likewise.
18707 * ipa-inline-analysis.c : Likewise.
18708 * ipa-inline-transform.c : Likewise.
18709 * ipa-inline.c : Likewise.
18710 * ipa-polymorphic-call.c : Likewise.
18711 * ipa-profile.c : Likewise.
18712 * ipa-prop.c : Likewise.
18713 * ipa-pure-const.c : Likewise.
18714 * ipa-ref.c : Likewise.
18715 * ipa-reference.c : Likewise.
18716 * ipa-split.c : Likewise.
18717 * ipa-utils.c : Likewise.
18718 * ipa-visibility.c : Likewise.
18719 * ipa.c : Likewise.
18720 * ira-build.c : Likewise.
18721 * ira-color.c : Likewise.
18722 * ira-conflicts.c : Likewise.
18723 * ira-costs.c : Likewise.
18724 * ira-emit.c : Likewise.
18725 * ira-lives.c : Likewise.
18726 * ira.c : Likewise.
18727 * jump.c : Likewise.
18728 * langhooks.c : Likewise.
18729 * lcm.c : Likewise.
18730 * libfuncs.h : Likewise.
18731 * lists.c : Likewise.
18732 * loop-doloop.c : Likewise.
18733 * loop-init.c : Likewise.
18734 * loop-invariant.c : Likewise.
18735 * loop-iv.c : Likewise.
18736 * loop-unroll.c : Likewise.
18737 * lower-subreg.c : Likewise.
18738 * lra-assigns.c : Likewise.
18739 * lra-coalesce.c : Likewise.
18740 * lra-constraints.c : Likewise.
18741 * lra-eliminations.c : Likewise.
18742 * lra-lives.c : Likewise.
18743 * lra-remat.c : Likewise.
18744 * lra-spills.c : Likewise.
18745 * lra.c : Likewise.
18746 * lto-cgraph.c : Likewise.
18747 * lto-compress.c : Likewise.
18748 * lto-opts.c : Likewise.
18749 * lto-section-in.c : Likewise.
18750 * lto-section-out.c : Likewise.
18751 * lto-streamer-in.c : Likewise.
18752 * lto-streamer-out.c : Likewise.
18753 * lto-streamer.c : Likewise.
18754 * lto-streamer.h : Likewise.
18755 * mcf.c : Likewise.
18756 * mode-switching.c : Likewise.
18757 * modulo-sched.c : Likewise.
18758 * omega.c : Likewise.
18759 * omp-low.c : Likewise.
18760 * optabs.c : Likewise.
18761 * opts-global.c : Likewise.
18762 * opts.h : Likewise.
18763 * passes.c : Likewise.
18764 * plugin.c : Likewise.
18765 * postreload-gcse.c : Likewise.
18766 * postreload.c : Likewise.
18767 * predict.c : Likewise.
18768 * print-rtl.c : Likewise.
18769 * print-tree.c : Likewise.
18770 * profile.c : Likewise.
18771 * read-md.c : Likewise.
18772 * read-md.h : Likewise.
18773 * read-rtl.c : Likewise.
18774 * real.c : Likewise.
18775 * realmpfr.c : Likewise.
18776 * recog.c : Likewise.
18777 * ree.c : Likewise.
18778 * reg-stack.c : Likewise.
18779 * regcprop.c : Likewise.
18780 * reginfo.c : Likewise.
18781 * regrename.c : Likewise.
18782 * regstat.c : Likewise.
18783 * reload.c : Likewise.
18784 * reload1.c : Likewise.
18785 * reorg.c : Likewise.
18786 * resource.c : Likewise.
18787 * rtl-chkp.c : Likewise.
18788 * rtl.c : Likewise.
18789 * rtl.h : Likewise.
18790 * rtlanal.c : Likewise.
18791 * rtlhash.c : Likewise.
18792 * rtlhash.h : Likewise.
18793 * rtlhooks.c : Likewise.
18794 * sanopt.c : Likewise.
18795 * sched-deps.c : Likewise.
18796 * sched-ebb.c : Likewise.
18797 * sched-rgn.c : Likewise.
18798 * sched-vis.c : Likewise.
18799 * sdbout.c : Likewise.
18800 * sel-sched-dump.c : Likewise.
18801 * sel-sched-ir.c : Likewise.
18802 * sel-sched-ir.h : Likewise.
18803 * sel-sched.c : Likewise.
18804 * sese.c : Likewise.
18805 * shrink-wrap.c : Likewise.
18806 * shrink-wrap.h : Likewise.
18807 * simplify-rtx.c : Likewise.
18808 * stack-ptr-mod.c : Likewise.
18809 * statistics.c : Likewise.
18810 * stmt.c : Likewise.
18811 * stor-layout.c : Likewise.
18812 * store-motion.c : Likewise.
18813 * stringpool.c : Likewise.
18814 * symtab.c : Likewise.
18815 * target-globals.c : Likewise.
18816 * targhooks.c : Likewise.
18817 * tlink.c : Likewise.
18818 * toplev.c : Likewise.
18819 * tracer.c : Likewise.
18820 * trans-mem.c : Likewise.
18821 * tree-affine.c : Likewise.
18822 * tree-affine.h : Likewise.
18823 * tree-browser.c : Likewise.
18824 * tree-call-cdce.c : Likewise.
18825 * tree-cfg.c : Likewise.
18826 * tree-cfgcleanup.c : Likewise.
18827 * tree-chkp-opt.c : Likewise.
18828 * tree-chkp.c : Likewise.
18829 * tree-chrec.c : Likewise.
18830 * tree-complex.c : Likewise.
18831 * tree-data-ref.c : Likewise.
18832 * tree-dfa.c : Likewise.
18833 * tree-diagnostic.c : Likewise.
18834 * tree-dump.c : Likewise.
18835 * tree-eh.c : Likewise.
18836 * tree-eh.h : Likewise.
18837 * tree-emutls.c : Likewise.
18838 * tree-hasher.h : Likewise.
18839 * tree-if-conv.c : Likewise.
18840 * tree-inline.c : Likewise.
18841 * tree-inline.h : Likewise.
18842 * tree-into-ssa.c : Likewise.
18843 * tree-iterator.c : Likewise.
18844 * tree-loop-distribution.c : Likewise.
18845 * tree-nested.c : Likewise.
18846 * tree-nrv.c : Likewise.
18847 * tree-object-size.c : Likewise.
18848 * tree-outof-ssa.c : Likewise.
18849 * tree-parloops.c : Likewise.
18850 * tree-phinodes.c : Likewise.
18851 * tree-predcom.c : Likewise.
18852 * tree-pretty-print.c : Likewise.
18853 * tree-profile.c : Likewise.
18854 * tree-scalar-evolution.c : Likewise.
18855 * tree-sra.c : Likewise.
18856 * tree-ssa-address.c : Likewise.
18857 * tree-ssa-alias.c : Likewise.
18858 * tree-ssa-ccp.c : Likewise.
18859 * tree-ssa-coalesce.c : Likewise.
18860 * tree-ssa-copy.c : Likewise.
18861 * tree-ssa-copyrename.c : Likewise.
18862 * tree-ssa-dce.c : Likewise.
18863 * tree-ssa-dom.c : Likewise.
18864 * tree-ssa-dse.c : Likewise.
18865 * tree-ssa-forwprop.c : Likewise.
18866 * tree-ssa-ifcombine.c : Likewise.
18867 * tree-ssa-live.c : Likewise.
18868 * tree-ssa-loop-ch.c : Likewise.
18869 * tree-ssa-loop-im.c : Likewise.
18870 * tree-ssa-loop-ivcanon.c : Likewise.
18871 * tree-ssa-loop-ivopts.c : Likewise.
18872 * tree-ssa-loop-manip.c : Likewise.
18873 * tree-ssa-loop-niter.c : Likewise.
18874 * tree-ssa-loop-prefetch.c : Likewise.
18875 * tree-ssa-loop-unswitch.c : Likewise.
18876 * tree-ssa-loop.c : Likewise.
18877 * tree-ssa-math-opts.c : Likewise.
18878 * tree-ssa-operands.c : Likewise.
18879 * tree-ssa-phiopt.c : Likewise.
18880 * tree-ssa-phiprop.c : Likewise.
18881 * tree-ssa-pre.c : Likewise.
18882 * tree-ssa-propagate.c : Likewise.
18883 * tree-ssa-reassoc.c : Likewise.
18884 * tree-ssa-sccvn.c : Likewise.
18885 * tree-ssa-scopedtables.c : Likewise.
18886 * tree-ssa-sink.c : Likewise.
18887 * tree-ssa-strlen.c : Likewise.
18888 * tree-ssa-structalias.c : Likewise.
18889 * tree-ssa-tail-merge.c : Likewise.
18890 * tree-ssa-ter.c : Likewise.
18891 * tree-ssa-threadedge.c : Likewise.
18892 * tree-ssa-threadupdate.c : Likewise.
18893 * tree-ssa-uncprop.c : Likewise.
18894 * tree-ssa-uninit.c : Likewise.
18895 * tree-ssa.c : Likewise.
18896 * tree-ssanames.c : Likewise.
18897 * tree-stdarg.c : Likewise.
18898 * tree-streamer-in.c : Likewise.
18899 * tree-streamer-out.c : Likewise.
18900 * tree-streamer.c : Likewise.
18901 * tree-streamer.h : Likewise.
18902 * tree-switch-conversion.c : Likewise.
18903 * tree-tailcall.c : Likewise.
18904 * tree-vect-data-refs.c : Likewise.
18905 * tree-vect-generic.c : Likewise.
18906 * tree-vect-loop-manip.c : Likewise.
18907 * tree-vect-loop.c : Likewise.
18908 * tree-vect-patterns.c : Likewise.
18909 * tree-vect-slp.c : Likewise.
18910 * tree-vect-stmts.c : Likewise.
18911 * tree-vectorizer.c : Likewise.
18912 * tree-vectorizer.h : Likewise.
18913 * tree-vrp.c : Likewise.
18914 * tree.c : Likewise.
18915 * tsan.c : Likewise.
18916 * ubsan.c : Likewise.
18917 * valtrack.c : Likewise.
18918 * valtrack.h : Likewise.
18919 * value-prof.c : Likewise.
18920 * var-tracking.c : Likewise.
18921 * varasm.c : Likewise.
18922 * varpool.c : Likewise.
18924 * vmsdbgout.c : Likewise.
18925 * vtable-verify.c : Likewise.
18926 * vtable-verify.h : Likewise.
18927 * web.c : Likewise.
18928 * wide-int.cc : Likewise.
18929 * xcoffout.c : Likewise.
18930 * config/aarch64/aarch64-builtins.c : Likewise.
18931 * config/aarch64/aarch64.c : Likewise.
18932 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
18933 * config/alpha/alpha.c : Likewise.
18934 * config/arc/arc.c : Likewise.
18935 * config/arm/aarch-common.c : Likewise.
18936 * config/arm/arm-builtins.c : Likewise.
18937 * config/arm/arm-c.c : Likewise.
18938 * config/arm/arm.c : Likewise.
18939 * config/avr/avr-c.c : Likewise.
18940 * config/avr/avr-log.c : Likewise.
18941 * config/avr/avr.c : Likewise.
18942 * config/bfin/bfin.c : Likewise.
18943 * config/c6x/c6x.c : Likewise.
18944 * config/cr16/cr16.c : Likewise.
18945 * config/cris/cris.c : Likewise.
18946 * config/darwin-c.c : Likewise.
18947 * config/darwin.c : Likewise.
18948 * config/default-c.c : Likewise.
18949 * config/epiphany/epiphany.c : Likewise.
18950 * config/epiphany/mode-switch-use.c : Likewise.
18951 * config/epiphany/resolve-sw-modes.c : Likewise.
18952 * config/fr30/fr30.c : Likewise.
18953 * config/frv/frv.c : Likewise.
18954 * config/ft32/ft32.c : Likewise.
18955 * config/glibc-c.c : Likewise.
18956 * config/h8300/h8300.c : Likewise.
18957 * config/i386/i386-c.c : Likewise.
18958 * config/i386/i386.c : Likewise.
18959 * config/i386/msformat-c.c : Likewise.
18960 * config/i386/winnt-cxx.c : Likewise.
18961 * config/i386/winnt-stubs.c : Likewise.
18962 * config/i386/winnt.c : Likewise.
18963 * config/ia64/ia64-c.c : Likewise.
18964 * config/ia64/ia64.c : Likewise.
18965 * config/iq2000/iq2000.c : Likewise.
18966 * config/lm32/lm32.c : Likewise.
18967 * config/m32c/m32c-pragma.c : Likewise.
18968 * config/m32c/m32c.c : Likewise.
18969 * config/m32r/m32r.c : Likewise.
18970 * config/m68k/m68k.c : Likewise.
18971 * config/mcore/mcore.c : Likewise.
18972 * config/mep/mep-pragma.c : Likewise.
18973 * config/mep/mep.c : Likewise.
18974 * config/microblaze/microblaze-c.c : Likewise.
18975 * config/microblaze/microblaze.c : Likewise.
18976 * config/mips/mips.c : Likewise.
18977 * config/mmix/mmix.c : Likewise.
18978 * config/mn10300/mn10300.c : Likewise.
18979 * config/moxie/moxie.c : Likewise.
18980 * config/msp430/msp430-c.c : Likewise.
18981 * config/msp430/msp430.c : Likewise.
18982 * config/nds32/nds32-cost.c : Likewise.
18983 * config/nds32/nds32-fp-as-gp.c : Likewise.
18984 * config/nds32/nds32-intrinsic.c : Likewise.
18985 * config/nds32/nds32-isr.c : Likewise.
18986 * config/nds32/nds32-md-auxiliary.c : Likewise.
18987 * config/nds32/nds32-memory-manipulation.c : Likewise.
18988 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
18989 * config/nds32/nds32-predicates.c : Likewise.
18990 * config/nds32/nds32.c : Likewise.
18991 * config/nios2/nios2.c : Likewise.
18992 * config/nvptx/nvptx.c : Likewise.
18993 * config/pa/pa.c : Likewise.
18994 * config/pdp11/pdp11.c : Likewise.
18995 * config/rl78/rl78-c.c : Likewise.
18996 * config/rl78/rl78.c : Likewise.
18997 * config/rs6000/rs6000-c.c : Likewise.
18998 * config/rs6000/rs6000.c : Likewise.
18999 * config/rx/rx.c : Likewise.
19000 * config/s390/s390-c.c : Likewise.
19001 * config/s390/s390.c : Likewise.
19002 * config/sh/sh-c.c : Likewise.
19003 * config/sh/sh-mem.cc : Likewise.
19004 * config/sh/sh.c : Likewise.
19005 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
19006 * config/sh/sh_treg_combine.cc : Likewise.
19007 * config/sol2-c.c : Likewise.
19008 * config/sol2-cxx.c : Likewise.
19009 * config/sol2-stubs.c : Likewise.
19010 * config/sol2.c : Likewise.
19011 * config/sparc/sparc-c.c : Likewise.
19012 * config/sparc/sparc.c : Likewise.
19013 * config/spu/spu-c.c : Likewise.
19014 * config/spu/spu.c : Likewise.
19015 * config/stormy16/stormy16.c : Likewise.
19016 * config/tilegx/mul-tables.c : Likewise.
19017 * config/tilegx/tilegx-c.c : Likewise.
19018 * config/tilegx/tilegx.c : Likewise.
19019 * config/tilepro/mul-tables.c : Likewise.
19020 * config/tilepro/tilepro-c.c : Likewise.
19021 * config/tilepro/tilepro.c : Likewise.
19022 * config/v850/v850-c.c : Likewise.
19023 * config/v850/v850.c : Likewise.
19024 * config/vax/vax.c : Likewise.
19025 * config/visium/visium.c : Likewise.
19026 * config/vms/vms-c.c : Likewise.
19027 * config/vms/vms.c : Likewise.
19028 * config/vxworks.c : Likewise.
19029 * config/winnt-c.c : Likewise.
19030 * config/xtensa/xtensa.c : Likewise.
19032 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
19035 * ipa-utils.h (warn_types_mismatch): Update prototype.
19036 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
19038 (type_mismatch_p): New function.
19039 (warn_types_mismatch): Reorg to work better on non-C++ types.
19040 (odr_types_equivalent_p): Add loc1/loc2 parameters.
19041 (add_type_duplicate): Update.
19043 2015-06-08 Tom de Vries <tom@codesourcery.com>
19045 PR rtl-optimization/66444
19046 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
19049 2015-06-08 Richard Biener <rguenther@suse.de>
19051 PR tree-optimization/66422
19052 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
19053 block after inserted gcc_unreachable.
19055 2015-06-08 Nick Clifton <nickc@redhat.com>
19057 * config/rx/rx.c (rx_function_value): Do not promote vector types.
19058 (rx_promote_function_mode): Likewise.
19059 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
19061 2015-06-08 Jakub Jelinek <jakub@redhat.com>
19063 * genattrtab.c (insn_alternatives): Change type from int *
19065 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
19066 (get_attr_value): Change type of num_alt to uint64_t.
19067 (compute_alternative_mask): Change return type from
19068 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
19069 (make_alternative_compare, mk_attr_alt): Change argument type
19070 from int to uint64_t.
19071 (simplify_test_exp): Change type of i from int to uint64_t.
19072 Shift ((uint64_t) 1) instead of 1 up.
19073 (main): Adjust oballocvec first argument from int to uint64_t.
19074 Shift ((uint64_t) 1) instead of 1 up.
19076 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
19079 * gdbhooks.py: Import sys.
19080 (intptr): New function. Replace int(...) by intptr(...).
19082 2015-06-08 Richard Biener <rguenther@suse.de>
19084 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
19085 adjustment for gaps at the end of a SLP load group properly.
19086 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
19087 all permutations we can generate.
19088 (vect_transform_slp_perm_load): Use the correct group-size.
19090 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
19092 * genmatch.c (expr::gen_transform): For conditions, guess the type
19093 from the second operand.
19095 2015-06-08 Tom de Vries <tom@codesourcery.com>
19097 PR tree-optimization/66442
19098 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
19099 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
19100 if the loop latch is not a singleton. Use
19101 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
19103 2015-06-08 Marek Polacek <polacek@redhat.com>
19106 * toplev.c (check_global_declaration): Don't warn about artificial
19109 2015-06-08 Tom de Vries <tom@codesourcery.com>
19111 PR tree-optimization/66436
19112 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
19114 * gimplify.c: Add tree-dump.h include.
19115 (gimplify_function_tree): Dump function to gimple dump file.
19116 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
19119 2015-06-08 Tom de Vries <tom@codesourcery.com>
19121 PR tree-optimization/66435
19122 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
19125 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
19127 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
19128 of ptr_type_node to not be ptr_to_node.
19129 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
19130 TREE_TYPE of pointers.
19131 * gimple-expr.c (useless_type_conversion): Reorder the check for
19132 function pointers and TYPE_CANONICAL.
19134 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
19137 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
19138 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
19139 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
19141 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
19142 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
19143 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
19144 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
19145 and non iso if unix2003.
19147 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
19149 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
19151 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
19153 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
19154 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
19155 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
19156 except.c, final.c, function.c, gcse-common.c, genemit.c,
19157 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
19158 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
19159 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
19160 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
19163 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
19165 * combine.c (combine_split_insns): Remove cast.
19166 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
19167 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
19168 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
19169 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
19170 * genemit.c (gen_split): Change return type of generated functions to
19172 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
19173 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
19174 gen_peephole2_* functions.
19175 (print_subroutine, main): Likewise.
19176 * recog.c (peephole2_optimize): Remove cast.
19177 (peep2_next_insn): Promote return type to rtx_insn.
19178 * recog.h (peep2_next_insn): Fix prototype.
19179 * rtl.h (try_split, split_insns): Likewise.
19181 2015-06-06 DJ Delorie <dj@redhat.com>
19183 * config/msp430/msp430.c (msp430_asm_integer): Support addition
19184 and subtraction too.
19186 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
19189 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
19190 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
19191 instead of Snd. Disparage Sid/z alternative with '^'.
19193 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
19195 * dwarf2out.c: Remove deferred_locations*.
19196 (dwarf2_debug_hooks): Add early_finish hook.
19197 Remove global_decl hook.
19198 Add early_global_decl and late_global_decl hook.
19199 New global early_dwarf.
19200 New structure set_early_dwarf.
19201 (output_die): Indicate whether a DIE was generated early
19202 when generating assembly with -dA.
19203 (struct limbo_die_struct): Document created_for field.
19204 Remove file_table_last_lookup.
19205 (remove_AT): Return TRUE if successful.
19206 (remove_child_TAG): Clear die_parent.
19207 (reparent_child): New function abstracted from...
19208 (splice_child_die): ...here.
19209 (new_die): ICE if a DIE ends up in limbo too late.
19211 (defer_location): Remove.
19212 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
19213 (fill_variable_array_bounds): New.
19214 (decl_start_label): Call fill_variable_array_bounds.
19215 (gen_formal_parameter_die): Rewrite to reuse previously generated
19217 (gen_subprogram_die): Same.
19218 (gen_variable_die): Same.
19219 (gen_const_die): Same.
19220 (gen_label_die): Same.
19221 (gen_lexical_block_die): Same.
19222 (decl_will_get_specification_p): New.
19223 (local_function_static): New.
19224 (gen_struct_or_union_type_die): Fill in variable-length fields.
19225 (gen_typedef_die): Fill in variable-length typedefs.
19226 (gen_tagged_type_die): Gracefully return on error_mark_node.
19227 Handle re-entrancy.
19228 (gen_type_die_with_usage): Handle variable-length types.
19229 Remove duplicate code for ARRAY_TYPE case.
19230 (process_scope_var): Only process imported modules during early
19232 (dwarf2out_early_global_decl): New.
19233 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
19234 (dwarf2out_type_decl): Set early_dwarf while calling
19236 (dwarf2out_decl): Verify that we did not recreate a previously
19238 Do not return on DECL_EXTERNALs in VAR_DECLs.
19239 Abstract some code to local_function_static.
19240 (lookup_filename): Remove use of file_table_last_lookup.
19241 Gracefully exit on missing file_name.
19242 (dwarf2out_finish): Verify limbo list.
19243 Remove deferred_locations_list use.
19244 Move deferred_asm_name and limbo flushing to...
19245 (dwarf2out_early_finish): ...here. New.
19246 (dwarf2out_c_finalize): Remove set of deferred_location_list,
19247 deferred_asm_name, and file_table_last_lookup.
19248 * cgraph.h (referred_to_p): Add default argument.
19249 * cgraphunit.c (referred_to_p): Add and handle include_self
19251 (analyze_functions): Add first_time argument.
19252 Call check_global_declaration for all symbols.
19253 Call late_global_decl for nodes for moribund nodes.
19254 (finalize_compilation_unit): Add new argument to
19256 Call early_global_decl for functions.
19257 Call early_finish debug hook.
19258 * dbxout.c (dbxout_early_global_decl): New.
19259 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
19260 (dbx_debug_hooks): Add new hooks.
19261 (xcoff_debug_hooks): Same.
19262 * debug.c (do_nothing_debug_hooks): Add early_finish field.
19263 Add early and late debug hooks.
19264 Remove global_decl hook.
19265 * debug.h (struct gcc_debug_hooks): Add early_finish,
19266 early_global_decl, and late_global_decl fields.
19267 Remove global_decl field.
19268 Document gcc_debug_hooks.
19269 * gengtype.c (output_typename): Remove.
19270 * godump.c (go_early_global_decl): New.
19271 (go_late_global_decl): New.
19272 (go_global_decl): Remove.
19273 (dump_go_spec_init): Remove global_decl. Add
19274 {early,late}_global_decl.
19275 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
19276 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
19277 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
19278 (write_global_declarations): Remove.
19279 (global_decl_processing): New.
19280 * langhooks.h (struct lang_hooks_for_decls): Remove
19281 final_write_globals field.
19282 Add post_compilation_parsing_cleanups field.
19283 * passes.c (rest_of_decl_compilation): Call early_global_decl.
19284 * sdbout.c: Add early and late_global_decl hooks. Remove
19285 sdbout_global_decl hook.
19286 Add early_finish field for sdb_debug_hooks.
19287 (sdbout_global_decl): Remove.
19288 (sdbout_early_global_decl): New.
19289 (sdbout_late_global_decl): New.
19290 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
19291 * toplev.c (check_global_declaration): Rename from
19292 check_global_declaration_1.
19293 Adapt to use symtab infrastructure.
19294 (check_global_declarations): Remove.
19295 (emit_debug_global_declarations): Remove.
19296 (compile_file): Remove call to final_write_globals langhook.
19297 Run the actual compilation process.
19298 Perform any post compilation parser cleanups.
19299 Generate late debug info.
19300 * toplev.h (check_global_declaration): New.
19301 (check_global_declaration_1): Remove.
19302 (check_global_declarations): Remove.
19303 (write_global_declarations): Remove.
19304 (emit_debug_global_declarations): Remove.
19305 (global_decl_processing): New.
19306 * tree-core.h (struct tree_block): Add DIE field.
19307 * tree.h (BLOCK_DIE): New.
19308 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
19310 (vmsdbgout_early_global_decl): New.
19311 (vmsdbgout_late_global_decl): New.
19312 Add early_finish debug hook field to vmsdbg_debug_hooks.
19313 Remove vmsdbgout_decl to vmsdbgout_function_decl.
19314 Add early and late_global_decl debug hooks.
19316 2015-06-05 Julian Brown <julian@codesourcery.com>
19317 Sandra Loosemore <sandra@codesourcery.com>
19319 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
19320 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
19321 to print-sysroot-suffix.sh script.
19323 2015-06-05 Tom de Vries <tom@codesourcery.com>
19325 merge from gomp4 branch:
19326 2015-05-28 Tom de Vries <tom@codesourcery.com>
19328 PR tree-optimization/65443
19329 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
19330 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
19331 (try_transform_to_exit_first_loop_alt): New function.
19332 (transform_to_exit_first_loop): Use
19333 try_transform_to_exit_first_loop_alt.
19335 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
19337 * builtins.c (expand_builtin_atomic_compare_exchange): Call
19338 emit_cmp_and_jump_insns with the mode of target.
19340 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19342 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
19344 2015-06-04 DJ Delorie <dj@redhat.com>
19346 * config/msp430/msp430.md (movsi_s): New. Special case for
19347 storing a 20-bit symbol into a 32-bit register.
19348 * config/msp430/msp430.c (msp430_subreg): Add support for it.
19349 * config/msp430/predicates.md (msp430_symbol_operand): New.
19351 2015-06-04 Sriraman Tallam <tmsriram@google.com>
19353 * c-family/c-common.c (noplt): New attribute.
19354 (handle_noplt_attribute): New handler.
19355 * calls.c (prepare_call_address): Check for noplt
19357 * config/i386/i386.c (ix86_expand_call): Check
19358 for noplt attribute.
19359 (ix86_nopic_noplt_attribute_p): New function.
19360 (ix86_output_call_insn): Output indirect call for non-pic
19362 * doc/extend.texi (noplt): Document new attribute.
19363 * doc/invoke.texi: Document new attribute.
19365 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
19367 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
19368 real.h, and fixed-value.h when included in host source files.
19369 * double-int.h: Remove redundant #includes listed above.
19370 * fixed-value.h: Likewise.
19371 * real.h: Likewise.
19372 * wide-int.h: Likewise.
19373 * inchash.h: Likewise.
19374 * rtl.h: Add some include files When included from a generator file.
19375 * target.h: Remove wide-int.h and insn-modes.h from the include list.
19376 * internal-fn.h: Don't include coretypes.h.
19377 * alias.c: Adjust includes for restructured coretypes.h.
19378 * asan.c: Likewise.
19379 * attribs.c: Likewise.
19380 * auto-inc-dec.c: Likewise.
19381 * auto-profile.c: Likewise.
19382 * bb-reorder.c: Likewise.
19383 * bt-load.c: Likewise.
19384 * builtins.c: Likewise.
19385 * caller-save.c: Likewise.
19386 * calls.c: Likewise.
19387 * ccmp.c: Likewise.
19389 * cfganal.c: Likewise.
19390 * cfgbuild.c: Likewise.
19391 * cfgcleanup.c: Likewise.
19392 * cfgexpand.c: Likewise.
19393 * cfghooks.c: Likewise.
19394 * cfgloop.c: Likewise.
19395 * cfgloop.h: Likewise.
19396 * cfgloopanal.c: Likewise.
19397 * cfgloopmanip.c: Likewise.
19398 * cfgrtl.c: Likewise.
19399 * cgraph.c: Likewise.
19400 * cgraphbuild.c: Likewise.
19401 * cgraphclones.c: Likewise.
19402 * cgraphunit.c: Likewise.
19403 * cilk-common.c: Likewise.
19404 * combine-stack-adj.c: Likewise.
19405 * combine.c: Likewise.
19406 * compare-elim.c: Likewise.
19407 * convert.c: Likewise.
19408 * coverage.c: Likewise.
19409 * cppbuiltin.c: Likewise.
19410 * cprop.c: Likewise.
19412 * cselib.c: Likewise.
19413 * data-streamer-in.c: Likewise.
19414 * data-streamer-out.c: Likewise.
19415 * data-streamer.c: Likewise.
19416 * dbxout.c: Likewise.
19419 * debug.c: Likewise.
19420 * df-core.c: Likewise.
19421 * df-problems.c: Likewise.
19422 * df-scan.c: Likewise.
19425 * dojump.c: Likewise.
19426 * dominance.c: Likewise.
19427 * domwalk.c: Likewise.
19428 * double-int.c: Likewise.
19430 * dumpfile.c: Likewise.
19431 * dwarf2asm.c: Likewise.
19432 * dwarf2cfi.c: Likewise.
19433 * dwarf2out.c: Likewise.
19434 * dwarf2out.h: Likewise.
19435 * emit-rtl.c: Likewise.
19436 * et-forest.c: Likewise.
19437 * except.c: Likewise.
19438 * explow.c: Likewise.
19439 * expmed.c: Likewise.
19440 * expr.c: Likewise.
19441 * final.c: Likewise.
19442 * fixed-value.c: Likewise.
19443 * fold-const.c: Likewise.
19444 * function.c: Likewise.
19445 * fwprop.c: Likewise.
19446 * gcc-plugin.h: Likewise.
19447 * gcse.c: Likewise.
19448 * generic-match-head.c: Likewise.
19449 * ggc-page.c: Likewise.
19450 * gimple-builder.c: Likewise.
19451 * gimple-expr.c: Likewise.
19452 * gimple-fold.c: Likewise.
19453 * gimple-iterator.c: Likewise.
19454 * gimple-low.c: Likewise.
19455 * gimple-match-head.c: Likewise.
19456 * gimple-pretty-print.c: Likewise.
19457 * gimple-ssa-isolate-paths.c: Likewise.
19458 * gimple-ssa-strength-reduction.c: Likewise.
19459 * gimple-streamer-in.c: Likewise.
19460 * gimple-streamer-out.c: Likewise.
19461 * gimple-streamer.h: Likewise.
19462 * gimple-walk.c: Likewise.
19463 * gimple.c: Likewise.
19464 * gimplify-me.c: Likewise.
19465 * gimplify.c: Likewise.
19466 * godump.c: Likewise.
19467 * graph.c: Likewise.
19468 * graphite-blocking.c: Likewise.
19469 * graphite-dependences.c: Likewise.
19470 * graphite-interchange.c: Likewise.
19471 * graphite-isl-ast-to-gimple.c: Likewise.
19472 * graphite-optimize-isl.c: Likewise.
19473 * graphite-poly.c: Likewise.
19474 * graphite-scop-detection.c: Likewise.
19475 * graphite-sese-to-poly.c: Likewise.
19476 * graphite.c: Likewise.
19477 * haifa-sched.c: Likewise.
19478 * hooks.h: Likewise.
19479 * hw-doloop.c: Likewise.
19480 * ifcvt.c: Likewise.
19481 * incpath.c: Likewise.
19482 * init-regs.c: Likewise.
19483 * internal-fn.c: Likewise.
19484 * ipa-chkp.c: Likewise.
19485 * ipa-comdats.c: Likewise.
19486 * ipa-cp.c: Likewise.
19487 * ipa-devirt.c: Likewise.
19488 * ipa-icf-gimple.c: Likewise.
19489 * ipa-icf.c: Likewise.
19490 * ipa-inline-analysis.c: Likewise.
19491 * ipa-inline-transform.c: Likewise.
19492 * ipa-inline.c: Likewise.
19493 * ipa-polymorphic-call.c: Likewise.
19494 * ipa-profile.c: Likewise.
19495 * ipa-prop.c: Likewise.
19496 * ipa-pure-const.c: Likewise.
19497 * ipa-ref.c: Likewise.
19498 * ipa-reference.c: Likewise.
19499 * ipa-split.c: Likewise.
19500 * ipa-utils.c: Likewise.
19501 * ipa-visibility.c: Likewise.
19503 * ira-build.c: Likewise.
19504 * ira-color.c: Likewise.
19505 * ira-conflicts.c: Likewise.
19506 * ira-costs.c: Likewise.
19507 * ira-emit.c: Likewise.
19508 * ira-lives.c: Likewise.
19510 * jump.c: Likewise.
19511 * langhooks.c: Likewise.
19513 * loop-doloop.c: Likewise.
19514 * loop-init.c: Likewise.
19515 * loop-invariant.c: Likewise.
19516 * loop-iv.c: Likewise.
19517 * loop-unroll.c: Likewise.
19518 * lower-subreg.c: Likewise.
19519 * lra-assigns.c: Likewise.
19520 * lra-coalesce.c: Likewise.
19521 * lra-constraints.c: Likewise.
19522 * lra-eliminations.c: Likewise.
19523 * lra-lives.c: Likewise.
19524 * lra-remat.c: Likewise.
19525 * lra-spills.c: Likewise.
19527 * lto-cgraph.c: Likewise.
19528 * lto-compress.c: Likewise.
19529 * lto-opts.c: Likewise.
19530 * lto-section-in.c: Likewise.
19531 * lto-section-out.c: Likewise.
19532 * lto-streamer-in.c: Likewise.
19533 * lto-streamer-out.c: Likewise.
19534 * lto-streamer.c: Likewise.
19536 * mode-switching.c: Likewise.
19537 * modulo-sched.c: Likewise.
19538 * omega.c: Likewise.
19539 * omp-low.c: Likewise.
19540 * optabs.c: Likewise.
19541 * opts-global.c: Likewise.
19542 * passes.c: Likewise.
19543 * plugin.c: Likewise.
19544 * postreload-gcse.c: Likewise.
19545 * postreload.c: Likewise.
19546 * predict.c: Likewise.
19547 * print-rtl.c: Likewise.
19548 * print-tree.c: Likewise.
19549 * profile.c: Likewise.
19550 * real.c: Likewise.
19551 * realmpfr.c: Likewise.
19552 * realmpfr.h: Likewise.
19553 * recog.c: Likewise.
19555 * reg-stack.c: Likewise.
19556 * regcprop.c: Likewise.
19557 * reginfo.c: Likewise.
19558 * regrename.c: Likewise.
19559 * regs.h: Likewise.
19560 * regstat.c: Likewise.
19561 * reload.c: Likewise.
19562 * reload1.c: Likewise.
19563 * reorg.c: Likewise.
19564 * resource.c: Likewise.
19565 * rtl-chkp.c: Likewise.
19566 * rtlanal.c: Likewise.
19567 * rtlhooks.c: Likewise.
19568 * sanopt.c: Likewise.
19569 * sched-deps.c: Likewise.
19570 * sched-ebb.c: Likewise.
19571 * sched-rgn.c: Likewise.
19572 * sched-vis.c: Likewise.
19573 * sdbout.c: Likewise.
19574 * sel-sched-dump.c: Likewise.
19575 * sel-sched-ir.c: Likewise.
19576 * sel-sched.c: Likewise.
19577 * sese.c: Likewise.
19578 * shrink-wrap.c: Likewise.
19579 * shrink-wrap.h: Likewise.
19580 * simplify-rtx.c: Likewise.
19581 * stack-ptr-mod.c: Likewise.
19582 * statistics.c: Likewise.
19583 * stmt.c: Likewise.
19584 * stor-layout.c: Likewise.
19585 * store-motion.c: Likewise.
19586 * stringpool.c: Likewise.
19587 * symtab.c: Likewise.
19588 * target-globals.c: Likewise.
19589 * targhooks.c: Likewise.
19590 * toplev.c: Likewise.
19591 * tracer.c: Likewise.
19592 * trans-mem.c: Likewise.
19593 * tree-affine.c: Likewise.
19594 * tree-affine.h: Likewise.
19595 * tree-browser.c: Likewise.
19596 * tree-call-cdce.c: Likewise.
19597 * tree-cfg.c: Likewise.
19598 * tree-cfgcleanup.c: Likewise.
19599 * tree-chkp-opt.c: Likewise.
19600 * tree-chkp.c: Likewise.
19601 * tree-chrec.c: Likewise.
19602 * tree-complex.c: Likewise.
19603 * tree-data-ref.c: Likewise.
19604 * tree-dfa.c: Likewise.
19605 * tree-diagnostic.c: Likewise.
19606 * tree-dump.c: Likewise.
19607 * tree-eh.c: Likewise.
19608 * tree-emutls.c: Likewise.
19609 * tree-if-conv.c: Likewise.
19610 * tree-inline.c: Likewise.
19611 * tree-into-ssa.c: Likewise.
19612 * tree-iterator.c: Likewise.
19613 * tree-loop-distribution.c: Likewise.
19614 * tree-nested.c: Likewise.
19615 * tree-nrv.c: Likewise.
19616 * tree-object-size.c: Likewise.
19617 * tree-outof-ssa.c: Likewise.
19618 * tree-parloops.c: Likewise.
19619 * tree-phinodes.c: Likewise.
19620 * tree-predcom.c: Likewise.
19621 * tree-pretty-print.c: Likewise.
19622 * tree-pretty-print.h: Likewise.
19623 * tree-profile.c: Likewise.
19624 * tree-scalar-evolution.c: Likewise.
19625 * tree-sra.c: Likewise.
19626 * tree-ssa-address.c: Likewise.
19627 * tree-ssa-alias.c: Likewise.
19628 * tree-ssa-ccp.c: Likewise.
19629 * tree-ssa-coalesce.c: Likewise.
19630 * tree-ssa-copy.c: Likewise.
19631 * tree-ssa-copyrename.c: Likewise.
19632 * tree-ssa-dce.c: Likewise.
19633 * tree-ssa-dom.c: Likewise.
19634 * tree-ssa-dse.c: Likewise.
19635 * tree-ssa-forwprop.c: Likewise.
19636 * tree-ssa-ifcombine.c: Likewise.
19637 * tree-ssa-live.c: Likewise.
19638 * tree-ssa-loop-ch.c: Likewise.
19639 * tree-ssa-loop-im.c: Likewise.
19640 * tree-ssa-loop-ivcanon.c: Likewise.
19641 * tree-ssa-loop-ivopts.c: Likewise.
19642 * tree-ssa-loop-manip.c: Likewise.
19643 * tree-ssa-loop-niter.c: Likewise.
19644 * tree-ssa-loop-prefetch.c: Likewise.
19645 * tree-ssa-loop-unswitch.c: Likewise.
19646 * tree-ssa-loop.c: Likewise.
19647 * tree-ssa-loop.h: Likewise.
19648 * tree-ssa-math-opts.c: Likewise.
19649 * tree-ssa-operands.c: Likewise.
19650 * tree-ssa-phiopt.c: Likewise.
19651 * tree-ssa-phiprop.c: Likewise.
19652 * tree-ssa-pre.c: Likewise.
19653 * tree-ssa-propagate.c: Likewise.
19654 * tree-ssa-reassoc.c: Likewise.
19655 * tree-ssa-sccvn.c: Likewise.
19656 * tree-ssa-scopedtables.c: Likewise.
19657 * tree-ssa-sink.c: Likewise.
19658 * tree-ssa-strlen.c: Likewise.
19659 * tree-ssa-structalias.c: Likewise.
19660 * tree-ssa-tail-merge.c: Likewise.
19661 * tree-ssa-ter.c: Likewise.
19662 * tree-ssa-threadedge.c: Likewise.
19663 * tree-ssa-threadupdate.c: Likewise.
19664 * tree-ssa-uncprop.c: Likewise.
19665 * tree-ssa-uninit.c: Likewise.
19666 * tree-ssa.c: Likewise.
19667 * tree-ssanames.c: Likewise.
19668 * tree-stdarg.c: Likewise.
19669 * tree-streamer-in.c: Likewise.
19670 * tree-streamer-out.c: Likewise.
19671 * tree-streamer.c: Likewise.
19672 * tree-switch-conversion.c: Likewise.
19673 * tree-tailcall.c: Likewise.
19674 * tree-vect-data-refs.c: Likewise.
19675 * tree-vect-generic.c: Likewise.
19676 * tree-vect-loop-manip.c: Likewise.
19677 * tree-vect-loop.c: Likewise.
19678 * tree-vect-patterns.c: Likewise.
19679 * tree-vect-slp.c: Likewise.
19680 * tree-vect-stmts.c: Likewise.
19681 * tree-vectorizer.c: Likewise.
19682 * tree-vrp.c: Likewise.
19683 * tree.c: Likewise.
19684 * tsan.c: Likewise.
19685 * ubsan.c: Likewise.
19686 * valtrack.c: Likewise.
19687 * value-prof.c: Likewise.
19688 * var-tracking.c: Likewise.
19689 * varasm.c: Likewise.
19690 * varpool.c: Likewise.
19691 * vmsdbgout.c: Likewise.
19692 * vtable-verify.c: Likewise.
19694 * wide-int-print.cc: Likewise.
19695 * wide-int-print.h: Likewise.
19696 * wide-int.cc: Likewise.
19697 * xcoffout.c: Likewise.
19698 * config/aarch64/aarch64-builtins.c: Likewise.
19699 * config/aarch64/aarch64.c: Likewise.
19700 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19701 * config/alpha/alpha.c: Likewise.
19702 * config/arc/arc.c: Likewise.
19703 * config/arm/aarch-common.c: Likewise.
19704 * config/arm/arm-builtins.c: Likewise.
19705 * config/arm/arm-c.c: Likewise.
19706 * config/arm/arm.c: Likewise.
19707 * config/avr/avr-c.c: Likewise.
19708 * config/avr/avr-log.c: Likewise.
19709 * config/avr/avr.c: Likewise.
19710 * config/bfin/bfin.c: Likewise.
19711 * config/c6x/c6x.c: Likewise.
19712 * config/cr16/cr16.c: Likewise.
19713 * config/cris/cris.c: Likewise.
19714 * config/darwin-c.c: Likewise.
19715 * config/darwin.c: Likewise.
19716 * config/default-c.c: Likewise.
19717 * config/epiphany/epiphany.c: Likewise.
19718 * config/epiphany/mode-switch-use.c: Likewise.
19719 * config/epiphany/resolve-sw-modes.c: Likewise.
19720 * config/fr30/fr30.c: Likewise.
19721 * config/frv/frv.c: Likewise.
19722 * config/ft32/ft32.c: Likewise.
19723 * config/glibc-c.c: Likewise.
19724 * config/h8300/h8300.c: Likewise.
19725 * config/i386/i386-c.c: Likewise.
19726 * config/i386/i386.c: Likewise.
19727 * config/i386/msformat-c.c: Likewise.
19728 * config/i386/winnt-cxx.c: Likewise.
19729 * config/i386/winnt-stubs.c: Likewise.
19730 * config/i386/winnt.c: Likewise.
19731 * config/ia64/ia64-c.c: Likewise.
19732 * config/ia64/ia64.c: Likewise.
19733 * config/iq2000/iq2000.c: Likewise.
19734 * config/lm32/lm32.c: Likewise.
19735 * config/m32c/m32c-pragma.c: Likewise.
19736 * config/m32c/m32c.c: Likewise.
19737 * config/m32r/m32r.c: Likewise.
19738 * config/m68k/m68k.c: Likewise.
19739 * config/mcore/mcore.c: Likewise.
19740 * config/mep/mep-pragma.c: Likewise.
19741 * config/mep/mep.c: Likewise.
19742 * config/microblaze/microblaze-c.c: Likewise.
19743 * config/microblaze/microblaze.c: Likewise.
19744 * config/mips/mips.c: Likewise.
19745 * config/mmix/mmix.c: Likewise.
19746 * config/mn10300/mn10300.c: Likewise.
19747 * config/moxie/moxie.c: Likewise.
19748 * config/msp430/msp430-c.c: Likewise.
19749 * config/msp430/msp430.c: Likewise.
19750 * config/nds32/nds32-cost.c: Likewise.
19751 * config/nds32/nds32-fp-as-gp.c: Likewise.
19752 * config/nds32/nds32-intrinsic.c: Likewise.
19753 * config/nds32/nds32-isr.c: Likewise.
19754 * config/nds32/nds32-md-auxiliary.c: Likewise.
19755 * config/nds32/nds32-memory-manipulation.c: Likewise.
19756 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19757 * config/nds32/nds32-predicates.c: Likewise.
19758 * config/nds32/nds32.c: Likewise.
19759 * config/nios2/nios2.c: Likewise.
19760 * config/nvptx/nvptx.c: Likewise.
19761 * config/pa/pa.c: Likewise.
19762 * config/pdp11/pdp11.c: Likewise.
19763 * config/rl78/rl78-c.c: Likewise.
19764 * config/rl78/rl78.c: Likewise.
19765 * config/rs6000/rs6000-c.c: Likewise.
19766 * config/rs6000/rs6000.c: Likewise.
19767 * config/rx/rx.c: Likewise.
19768 * config/s390/s390-c.c: Likewise.
19769 * config/s390/s390.c: Likewise.
19770 * config/sh/sh-c.c: Likewise.
19771 * config/sh/sh-mem.cc: Likewise.
19772 * config/sh/sh.c: Likewise.
19773 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19774 * config/sh/sh_treg_combine.cc: Likewise.
19775 * config/sol2-c.c: Likewise.
19776 * config/sol2-cxx.c: Likewise.
19777 * config/sol2-stubs.c: Likewise.
19778 * config/sol2.c: Likewise.
19779 * config/sparc/sparc-c.c: Likewise.
19780 * config/sparc/sparc.c: Likewise.
19781 * config/spu/spu-c.c: Likewise.
19782 * config/spu/spu.c: Likewise.
19783 * config/stormy16/stormy16.c: Likewise.
19784 * config/tilegx/mul-tables.c: Likewise.
19785 * config/tilegx/tilegx-c.c: Likewise.
19786 * config/tilegx/tilegx.c: Likewise.
19787 * config/tilepro/mul-tables.c: Likewise.
19788 * config/tilepro/tilepro-c.c: Likewise.
19789 * config/tilepro/tilepro.c: Likewise.
19790 * config/v850/v850-c.c: Likewise.
19791 * config/v850/v850.c: Likewise.
19792 * config/vax/vax.c: Likewise.
19793 * config/visium/visium.c: Likewise.
19794 * config/vms/vms-c.c: Likewise.
19795 * config/vms/vms.c: Likewise.
19796 * config/vxworks.c: Likewise.
19797 * config/winnt-c.c: Likewise.
19798 * config/xtensa/xtensa.c: Likewise.
19799 * common/config/bfin/bfin-common.c: Likewise.
19801 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
19803 * tree.h (tree_code_for_canonical_type_merging): New function.
19804 * tree.c (gimple_canonical_types_compatible_p): Use
19805 tree_code_for_canonical_type_merging..
19807 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19811 * doc/tm.texi: Regenerate.
19812 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
19813 * target.def (TARGET_RELAXED_ORDERING): Likewise.
19814 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
19815 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
19816 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
19817 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
19818 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
19819 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
19820 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
19822 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19824 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
19825 register fma steering pass.
19826 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
19827 AARCH64_TUNE_FMA_STEERING.
19829 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
19831 * tree.c (verify_type_variant): Verify that type and variant is
19833 (gimple_canonical_types_compatible_p): Look for main variants.
19835 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
19837 * config.gcc (powerpc*-*-*): Add support for a new configure
19838 option --with-advance-toolchain=<xxx> which overrides using the
19839 default header files, libraries and dynamic linker.
19841 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
19842 specs to support the configure --with-advance-toolchain=<xxx>
19844 (INCLUDE_EXTRA_SPEC): Likewise.
19845 (LINK_OS_EXTRA_SPEC32): Likewise.
19846 (LINK_OK_EXTRA_SPEC64): Likewise.
19847 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
19848 (DYNAMIC_LINKER_PREFIX): Likewise.
19849 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
19851 (GLIBC_DYNAMIC_LINKER32): Likewise.
19852 (GLIBC_DYNAMIC_LINKER64): Likewise.
19853 (LINK_OS_LINUX_SPEC32): Likewise.
19854 (LINK_OS_LINUX_SPEC64): Likewise.
19856 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
19857 configuration option.
19859 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
19862 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
19863 to determine current function ABI.
19864 (ix86_function_value_regno_p): Ditto.
19866 2015-06-03 Martin Liska <mliska@suse.cz>
19868 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
19869 * bitmap.h (struct bitmap_usage): Likewise.
19870 * ggc-common.c (struct ggc_usage): Likewise.
19871 * mem-stats.h (struct mem_location): Likewise.
19872 (struct mem_usage): Likewise.
19873 * vec.c (struct vec_usage): Likewise.
19875 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
19877 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
19880 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
19882 * doc/plugins.texi (enum plugin_event): New event.
19883 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
19884 and PLUGIN_FINISH_FUNCTION.
19885 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
19886 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
19888 2015-06-03 Richard Biener <rguenther@suse.de>
19890 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
19891 compute GROUP_GAP for the first element.
19892 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
19895 2015-06-03 Nick Clifton <nickc@redhat.com>
19897 * config/rl78/rl78-real.md: Add peepholes to avoid a register
19898 copy when calling a function.
19899 * config/rl78/rl78.c (need_to_save): Do not push the frame
19900 pointer in an interrupt handler prologue if it is never used.
19902 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19904 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
19906 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
19908 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
19909 reference when cloning alias node.
19911 2015-06-03 Martin Liska <mliska@suse.cz>
19913 * alloc-pool.h (struct pool_usage): Correct space padding.
19914 * ggc-page.c (ggc_print_statistics): Align columns in a report.
19915 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
19916 * tree.c (dump_tree_statistics): Align columns in a report.
19918 2015-06-03 Martin Liska <mliska@suse.cz>
19920 * alloc-pool.c (allocate_pool_descriptor): Remove.
19921 (struct pool_output_info): Likewise.
19922 (print_alloc_pool_statistics): Likewise.
19923 (dump_alloc_pool_statistics): Likewise.
19924 * alloc-pool.h (struct pool_usage): New struct.
19925 (pool_allocator::initialize): Change usage of memory statistics
19926 to a new interface.
19927 (pool_allocator::release): Likewise.
19928 (pool_allocator::allocate): Likewise.
19929 (pool_allocator::remove): Likewise.
19930 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
19931 for a pool allocator.
19932 * mem-stats.h (struct mem_location): Add new ctor.
19933 (struct mem_usage): Add counter for number of
19935 (mem_alloc_description::register_descriptor): New overload of
19936 * mem-stats.h (mem_location::to_string): New function.
19937 * bitmap.h (struct bitmap_usage): Use this new function.
19938 * ggc-common.c (struct ggc_usage): Likewise.
19941 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
19943 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
19944 of GCC_INSN_FLAGS_H block.
19946 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
19948 * explow.c (plus_constant): Update check after force_const_mem call
19949 to see if the value returned is not a NULL_RTX.
19951 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
19953 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
19954 remove instumentation thunks calling reachable functions.
19955 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
19956 * lto/lto-partition.c (privatize_symbol_name_1): New.
19957 (privatize_symbol_name): Privatize both decl and orig_decl
19958 names for instrumented functions.
19959 * cgraph.c (cgraph_node::verify_node): Add transparent
19960 alias chain check for instrumented node.
19962 2015-06-03 Marek Polacek <polacek@redhat.com>
19966 * tree.c (attribute_value_equal): Handle attribute format.
19967 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
19969 2015-06-03 Richard Biener <rguenther@suse.de>
19971 PR tree-optimization/63916
19972 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
19973 Forward-propagate non-invariant addresses by splicing their
19974 reference ops if the result isn't going to be used by PRE.
19975 (vn_reference_lookup_3): Remove pointless assert.
19977 2015-06-03 Richard Biener <rguenther@suse.de>
19979 PR tree-optimization/66375
19980 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
19981 add to the evolution before following SSA edges.
19983 2015-06-03 Bin Cheng <bin.cheng@arm.com>
19985 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
19986 (dump_use, dump_cand, find_induction_variables): Pass new argument
19988 (record_use): Preserve the ssa name information in IV.
19990 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
19992 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
19994 (add_mode_tests): Don't add mode tests if the predicate only
19995 accepts scalar constant integers. Otherwise, allow the mode
19996 of "op" to be VOIDmode if the predicate does accept such integers.
19998 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
20001 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
20002 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
20003 (aarch64_secondary_reload): Likewise
20004 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
20006 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
20009 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
20010 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20013 * cprop.c (try_replace_reg): Check cost of constants before propagating.
20015 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20017 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
20018 provide access to the IBM extended double floating point mode if
20019 long double is IEEE 128-bit floating point.
20020 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
20021 point if long double is the IBM extended double type.
20023 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
20024 enable adding IEEE 128-bit floating point support.
20025 (-mfloat128-software): Likewise.
20026 (-mfloat128-sw): Likewise.
20028 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
20029 128-bit floating point types to occupy any register if
20030 -mlong-double-64. Do not allow use of IFmode/KFmode unless
20031 -mfloat128-software is enabled.
20032 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
20034 (rs6000_option_override_internal): Add -mfloat128-* support.
20035 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
20037 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
20038 and float128 type nodes.
20039 (ieee128_float_type_node): Likewise.
20040 (ibm128_float_type_node): Likewise.
20042 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
20045 * config/aarch64/geniterators.sh: Rewrite in awk.
20047 2015-06-02 Martin Liska <mliska@suse.cz>
20049 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
20050 values to avoid -Wmaybe-uninitialized errors.
20052 2015-06-02 Richard Biener <rguenther@suse.de>
20055 * dwarf2out.c (lookup_context_die): New function.
20056 (resolve_addr): Avoid forcing a full DIE for the
20057 target of a DW_TAG_GNU_call_site during late compilation.
20058 Instead create a stub DIE without a type if we have a
20059 context DIE present.
20061 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
20063 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
20065 2015-06-02 Bin Cheng <bin.cheng@arm.com>
20067 PR tree-optimization/48052
20068 * cfgloop.h (struct control_iv): New.
20069 (struct loop): New field control_ivs.
20070 * tree-ssa-loop-niter.c : Include "stor-layout.h".
20071 (number_of_iterations_lt): Set no_overflow information.
20072 (number_of_iterations_exit): Init control iv in niter struct.
20073 (record_control_iv): New.
20074 (estimate_numbers_of_iterations_loop): Call record_control_iv.
20075 (loop_exits_before_overflow): New. Interface factored out of
20076 scev_probably_wraps_p.
20077 (scev_probably_wraps_p): Factor loop niter related code into
20078 loop_exits_before_overflow.
20079 (free_numbers_of_iterations_estimates_loop): Free control ivs.
20080 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
20082 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
20084 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
20085 the target doesn't belong to the current function.
20087 2015-06-02 Marek Polacek <polacek@redhat.com>
20089 PR middle-end/66345
20090 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
20091 get_maxval_strlen does not produce an INTEGER_CST.
20093 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
20095 * config/arc/constraints.md: Use lower-case names in match_code.
20096 * config/mmix/constraints.md: Likewise.
20098 2015-06-02 Richard Biener <rguenther@suse.de>
20100 PR tree-optimization/65961
20101 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
20102 check and clarify dump message.
20103 (vect_build_slp_tree): If all children are built up from scalars
20104 build up the parent from scalars instead.
20105 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
20107 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
20110 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
20111 instead of print ... .
20113 2015-06-02 Alan Modra <amodra@gmail.com>
20115 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
20118 2015-06-02 Bin Cheng <bin.cheng@arm.com>
20120 PR tree-optimization/52563
20121 PR tree-optimization/62173
20122 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
20123 (alloc_iv, set_iv): New parameter.
20124 (determine_biv_step): Delete.
20125 (find_bivs): Inline original determine_biv_step. Pass new
20126 argument to set_iv.
20127 (idx_find_step): Use no_overflow information for conversion.
20128 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
20129 resolve_mixers handle folded_casts.
20130 (instantiate_scev_name): Change bool parameter to bool pointer.
20131 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
20132 (instantiate_array_ref, instantiate_scev_not): Ditto.
20133 (instantiate_scev_3, instantiate_scev_2): Ditto.
20134 (instantiate_scev_1, instantiate_scev_r): Ditto.
20135 (instantiate_scev_convert, ): Change parameter. Pass argument
20136 to chrec_convert_aggressive.
20137 (instantiate_scev): Change argument.
20138 (resolve_mixers): New parameter and set it.
20139 (scev_const_prop): New argument.
20140 * tree-scalar-evolution.h (resolve_mixers): New parameter.
20141 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
20143 (chrec_convert): New parameter. Move definition below.
20144 (chrec_convert_aggressive): New parameter and set it. Call
20145 convert_affine_scev.
20146 * tree-chrec.h (chrec_convert): New parameter.
20147 (chrec_convert_aggressive): Ditto.
20149 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
20151 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
20152 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
20153 the LHS of a no-return call if its type has variable size.
20154 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
20155 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
20157 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
20159 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
20160 * config.in: Regenerate.
20162 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
20164 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
20165 consecutive accesses within outer-loop with force_vectorize
20166 for references with zero step in inner-loop.
20168 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
20170 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
20171 rather than from gcc/build directory.
20173 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
20176 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
20177 for __sync memory models, emit initial loads and final barriers as
20180 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
20183 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
20184 (aarch64_split_atomic_op): Check for __sync memory models, emit
20185 appropriate initial loads and final barriers.
20187 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
20189 * Makefile.in: Fix gcov dependencies that should
20190 not point to a build folder.
20192 2015-06-01 Richard Biener <rguenther@suse.de>
20195 2015-05-29 Richard Biener <rguenther@suse.de>
20197 PR tree-optimization/66314
20198 * tree-ssa-threadupdate.c (create_block_for_threading): Add
20199 parameter that says which loop the new block belongs to.
20200 (ssa_create_duplicates): Blocks duplicated for the threaded
20201 path belong to the loop of the thread destination.
20203 2015-06-01 Martin Liska <mliska@suse.cz>
20205 * sched-deps.c: Include pool-alloc.h before
20206 cselib.h header file is included.
20208 2015-06-01 Richard Biener <rguenther@suse.de>
20210 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
20213 2015-06-01 Martin Liska <mliska@suse.cz>
20215 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
20216 a function local variable.
20218 2015-06-01 Martin Liska <mliska@suse.cz>
20220 * alloc-pool.c (create_alloc_pool): Remove.
20221 (empty_alloc_pool): Likewise.
20222 (free_alloc_pool): Likewise.
20223 (free_alloc_pool_if_empty): Likewise.
20224 (pool_alloc): Likewise.
20225 (pool_free): Likewise.
20226 * alloc-pool.h: Remove old declarations.
20228 2015-06-01 Martin Liska <mliska@suse.cz>
20230 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
20231 (ira_create_object): Likewise.
20232 (ira_create_allocno): Likewise.
20233 (ira_create_live_range): Likewise.
20234 (copy_live_range): Likewise.
20235 (ira_finish_live_range): Likewise.
20236 (ira_free_allocno_costs): Likewise.
20237 (finish_allocno): Likewise.
20238 (finish_allocnos): Likewise.
20239 (initiate_prefs): Likewise.
20240 (ira_create_pref): Likewise.
20241 (finish_pref): Likewise.
20242 (finish_prefs): Likewise.
20243 (initiate_copies): Likewise.
20244 (ira_create_copy): Likewise.
20245 (finish_copy): Likewise.
20246 (finish_copies): Likewise.
20247 (finish_prefs): Likewise.
20249 2015-06-01 Martin Liska <mliska@suse.cz>
20251 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
20252 (allocate_and_init_ipcp_value): Likewise.
20253 (ipcp_lattice::add_value): Likewise.
20254 (merge_agg_lats_step): Likewise.
20255 (ipcp_driver): Likewise.
20256 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
20257 (ipa_free_all_structures_after_iinln): Likewise.
20258 * ipa-prop.h: Likewise.
20260 2015-06-01 Martin Liska <mliska@suse.cz>
20262 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
20264 (set_hint_predicate): Likewise.
20265 (inline_summary_alloc): Likewise.
20266 (reset_inline_edge_summary): Likewise.
20267 (reset_inline_summary): Likewise.
20268 (set_cond_stmt_execution_predicate): Likewise.
20269 (set_switch_stmt_execution_predicate): Likewise.
20270 (compute_bb_predicates): Likewise.
20271 (estimate_function_body_sizes): Likewise.
20272 (inline_free_summary): Likewise.
20274 2015-06-01 Martin Liska <mliska@suse.cz>
20276 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
20277 (ipa_edge_duplication_hook): Likewise.
20278 (ipa_free_all_structures_after_ipa_cp): Likewise.
20279 (ipa_free_all_structures_after_iinln): Likewise.
20281 2015-06-01 Martin Liska <mliska@suse.cz>
20283 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
20284 (ipa_profile_generate_summary): Likewise.
20285 (ipa_profile_read_summary): Likewise.
20286 (ipa_profile): Likewise.
20288 2015-06-01 Martin Liska <mliska@suse.cz>
20290 * tree-ssa-structalias.c (new_var_info): Use new type-based
20292 (new_constraint): Likewise.
20293 (init_alias_vars): Likewise.
20294 (delete_points_to_sets): Likewise.
20296 2015-06-01 Martin Liska <mliska@suse.cz>
20298 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
20299 (free_strinfo): Likewise.
20300 (pass_strlen::execute): Likewise.
20302 2015-06-01 Martin Liska <mliska@suse.cz>
20304 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
20306 (vn_reference_insert_pieces): Likewise.
20307 (vn_phi_insert): Likewise.
20308 (visit_reference_op_call): Likewise.
20309 (copy_phi): Likewise.
20310 (copy_reference): Likewise.
20311 (process_scc): Likewise.
20312 (allocate_vn_table): Likewise.
20313 (free_vn_table): Likewise.
20315 2015-06-01 Martin Liska <mliska@suse.cz>
20317 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
20319 (add_repeat_to_ops_vec): Likewise.
20320 (get_ops): Likewise.
20321 (maybe_optimize_range_tests): Likewise.
20322 (init_reassoc): Likewise.
20323 (fini_reassoc): Likewise.
20325 2015-06-01 Martin Liska <mliska@suse.cz>
20327 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
20329 (bitmap_set_new): Likewise.
20330 (get_or_alloc_expr_for_constant): Likewise.
20331 (get_or_alloc_expr_for): Likewise.
20332 (phi_translate_1): Likewise.
20333 (compute_avail): Likewise.
20334 (init_pre): Likewise.
20335 (fini_pre): Likewise.
20337 2015-06-01 Martin Liska <mliska@suse.cz>
20339 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
20340 (delete_dep_node): Likewise.
20341 (create_deps_list): Likewise.
20342 (free_deps_list): Likewise.
20343 (sched_deps_init): Likewise.
20344 (sched_deps_finish): Likewise.
20346 2015-06-01 Martin Liska <mliska@suse.cz>
20348 * regcprop.c (free_debug_insn_changes): Use new type-based
20350 (replace_oldest_value_reg): Likewise.
20351 (pass_cprop_hardreg::execute): Likewise.
20353 2015-06-01 Martin Liska <mliska@suse.cz>
20355 * ira-build.c (initiate_cost_vectors): Use new type-based
20357 (ira_allocate_cost_vector): Likewise.
20358 (ira_free_cost_vector): Likewise.
20359 (finish_cost_vectors): Likewise.
20361 2015-06-01 Martin Liska <mliska@suse.cz>
20363 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
20365 (free_sched_pools): Likewise.
20366 * sel-sched-ir.h (_list_alloc): Likewise.
20367 (_list_remove): Likewise.
20369 2015-06-01 Martin Liska <mliska@suse.cz>
20371 * stmt.c (add_case_node): Use new type-based pool allocator.
20372 (expand_case): Likewise.
20373 (expand_sjlj_dispatch_table): Likewise.
20375 2015-06-01 Martin Liska <mliska@suse.cz>
20377 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
20378 (free_bb): Likewise.
20379 (pass_cse_reciprocals::execute): Likewise.
20381 2015-06-01 Martin Liska <mliska@suse.cz>
20383 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
20384 (sra_deinitialize) Likewise.
20385 (create_access_1) Likewise.
20386 (build_accesses_from_assign) Likewise.
20387 (create_artificial_child_access) Likewise.
20389 2015-06-01 Martin Liska <mliska@suse.cz>
20391 * dse.c (get_group_info):Use new type-based pool allocator.
20392 (dse_step0) Likewise.
20393 (free_store_info) Likewise.
20394 (delete_dead_store_insn) Likewise.
20395 (free_read_records) Likewise.
20396 (record_store) Likewise.
20397 (replace_read) Likewise.
20398 (check_mem_read_rtx) Likewise.
20399 (scan_insn) Likewise.
20400 (dse_step1) Likewise.
20401 (dse_step7) Likewise.
20403 2015-06-01 Martin Liska <mliska@suse.cz>
20405 * df-scan.c (struct df_scan_problem_data):Use new type-based
20407 (df_scan_free_internal) Likewise.
20408 (df_scan_alloc) Likewise.
20409 (df_grow_reg_info) Likewise.
20410 (df_free_ref) Likewise.
20411 (df_insn_create_insn_record) Likewise.
20412 (df_mw_hardreg_chain_delete) Likewise.
20413 (df_insn_info_delete) Likewise.
20414 (df_free_collection_rec) Likewise.
20415 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
20416 (df_sort_and_compress_mws) Likewise.
20417 (df_ref_create_structure) Likewise.
20418 (df_ref_record) Likewise.
20420 2015-06-01 Martin Liska <mliska@suse.cz>
20422 * df-problems.c (df_chain_create):Use new type-based pool allocator.
20423 (df_chain_unlink_1) Likewise.
20424 (df_chain_unlink) Likewise.
20425 (df_chain_remove_problem) Likewise.
20426 (df_chain_alloc) Likewise.
20427 (df_chain_free) Likewise.
20428 * df.h (struct dataflow) Likewise.
20430 2015-06-01 Martin Liska <mliska@suse.cz>
20432 * cselib.c (new_elt_list):Use new type-based pool allocator.
20433 (new_elt_loc_list) Likewise.
20434 (unchain_one_elt_list) Likewise.
20435 (unchain_one_elt_loc_list) Likewise.
20436 (unchain_one_value) Likewise.
20437 (new_cselib_val) Likewise.
20438 (cselib_init) Likewise.
20439 (cselib_finish) Likewise.
20441 2015-06-01 Martin Liska <mliska@suse.cz>
20443 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
20444 (sh_reorg) Likewise.
20446 2015-06-01 Martin Liska <mliska@suse.cz>
20448 * cfg.c (initialize_original_copy_tables):Use new type-based
20450 (free_original_copy_tables) Likewise.
20451 (copy_original_table_clear) Likewise.
20452 (copy_original_table_set) Likewise.
20454 2015-06-01 Martin Liska <mliska@suse.cz>
20456 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
20458 (asan_mem_ref_new) Likewise.
20459 (free_mem_ref_resources) Likewise.
20461 2015-06-01 Martin Liska <mliska@suse.cz>
20463 * var-tracking.c (variable_htab_free):Use new type-based
20465 (attrs_list_clear) Likewise.
20466 (attrs_list_insert) Likewise.
20467 (attrs_list_copy) Likewise.
20468 (shared_hash_unshare) Likewise.
20469 (shared_hash_destroy) Likewise.
20470 (unshare_variable) Likewise.
20471 (var_reg_delete_and_set) Likewise.
20472 (var_reg_delete) Likewise.
20473 (var_regno_delete) Likewise.
20474 (drop_overlapping_mem_locs) Likewise.
20475 (variable_union) Likewise.
20476 (insert_into_intersection) Likewise.
20477 (canonicalize_values_star) Likewise.
20478 (variable_merge_over_cur) Likewise.
20479 (dataflow_set_merge) Likewise.
20480 (remove_duplicate_values) Likewise.
20481 (variable_post_merge_new_vals) Likewise.
20482 (dataflow_set_preserve_mem_locs) Likewise.
20483 (dataflow_set_remove_mem_locs) Likewise.
20484 (variable_from_dropped) Likewise.
20485 (variable_was_changed) Likewise.
20486 (set_slot_part) Likewise.
20487 (clobber_slot_part) Likewise.
20488 (delete_slot_part) Likewise.
20489 (loc_exp_insert_dep) Likewise.
20490 (notify_dependents_of_changed_value) Likewise.
20491 (emit_notes_for_differences_1) Likewise.
20492 (vt_emit_notes) Likewise.
20493 (vt_initialize) Likewise.
20494 (vt_finalize) Likewise.
20496 2015-06-01 Martin Liska <mliska@suse.cz>
20498 * ira-color.c (init_update_cost_records):Use new type-based
20500 (get_update_cost_record) Likewise.
20501 (free_update_cost_record_list) Likewise.
20502 (finish_update_cost_records) Likewise.
20503 (initiate_cost_update) Likewise.
20505 2015-06-01 Martin Liska <mliska@suse.cz>
20507 * lra.c (init_insn_regs): Use new type-based pool allocator.
20508 (new_insn_reg) Likewise.
20509 (free_insn_reg) Likewise.
20510 (free_insn_regs) Likewise.
20511 (finish_insn_regs) Likewise.
20512 (init_insn_recog_data) Likewise.
20513 (init_reg_info) Likewise.
20514 (finish_reg_info) Likewise.
20515 (lra_free_copies) Likewise.
20516 (lra_create_copy) Likewise.
20517 (invalidate_insn_data_regno_info) Likewise.
20519 2015-06-01 Martin Liska <mliska@suse.cz>
20521 * lra-lives.c (free_live_range): Use new type-based pool allocator.
20522 (free_live_range_list) Likewise.
20523 (create_live_range) Likewise.
20524 (copy_live_range) Likewise.
20525 (lra_merge_live_ranges) Likewise.
20526 (remove_some_program_points_and_update_live_ranges) Likewise.
20527 (lra_live_ranges_init) Likewise.
20528 (lra_live_ranges_finish) Likewise.
20530 2015-06-01 Martin Liska <mliska@suse.cz>
20532 * et-forest.c (et_new_occ): Use new type-based pool allocator.
20533 (et_new_tree): Likewise.
20534 (et_free_tree): Likewise.
20535 (et_free_tree_force): Likewise.
20536 (et_free_pools): Likewise.
20537 (et_split): Likewise.
20539 2015-06-01 Martin Liska <mliska@suse.cz>
20541 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
20543 * alloc-pool.h (pool_allocator::pool_allocator): New function.
20544 (pool_allocator::release): Likewise.
20545 (inline pool_allocator::release_if_empty): Likewise.
20546 (inline pool_allocator::~pool_allocator): Likewise.
20547 (pool_allocator::allocate): Likewise.
20548 (pool_allocator::remove): Likewise.
20550 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
20552 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
20555 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
20557 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
20559 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
20560 (arm_macro_fusion_p): Likewise.
20561 (arm_macro_fusion_pair_p): Likewise.
20563 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
20565 * config/aarch64/aarch64-protos.h (tune_params): Rename
20566 fuseable_ops to fusible_ops.
20567 * config/aarch64/aarch64.c (generic_tunings): Rename
20568 fuseable_ops to fusible_ops.
20569 (cortexa53_tunings): Likewise.
20570 (cortexa57_tunings): Likewise.
20571 (thunderx_tunings): Likewise.
20572 (xgene1_tunings): Likewise.
20573 (aarch64_macro_fusion_p): Likewise.
20574 (aarch64_macro_fusion_pair_p): Likewise.
20576 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
20578 * config/s390/driver-native.c: New file.
20579 * config/s390/x-native: New file.
20580 * config.host: Add new files for s390.
20581 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
20583 * config.gcc: Likewise.
20584 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
20585 * config/s390/s390-opts.h (enum processor_type): Ditto.
20586 * config/s390/s390.c (s390_option_override): Catch unhandled
20589 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
20592 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
20593 redirection for instrumented calls.
20594 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
20595 (append_compiler_options): Append -fcheck-pointer-bounds.
20596 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
20597 (chkp_redirect_edge): New.
20598 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
20599 (chkp_redirect_edge): New.
20601 2015-06-01 Richard Biener <rguenther@suse.de>
20603 PR tree-optimization/66280
20604 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
20607 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20609 * config/aarch64/aarch64.md
20610 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
20613 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
20615 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
20616 Remove obsolete kludge.
20618 2015-06-01 Richard Biener <rguenther@suse.de>
20620 * tree-ssa-reassoc.c (get_rank): Simplify.
20622 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
20624 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
20625 * configure: Regenerated.
20627 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
20629 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
20630 issue (add space between string literal and macro).
20631 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
20633 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
20635 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
20636 implict or explicit -fPIE or -fpie.
20638 2015-05-30 Mike Frysinger <vapier@gentoo.org>
20640 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
20642 2015-05-28 DJ Delorie <dj@redhat.com>
20644 * expmed.c (extract_bit_field_1): Avoid clobbering a
20645 yet-to-be-used base/index register.
20647 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
20649 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
20650 (alias_stats): Add num_universal.
20651 (alias_set_subset_of): Special case pointers; be ready for NULL
20653 (alias_sets_conflict_p): Special case pointers; be ready for NULL
20655 (init_alias_set_entry): Break out from ...
20656 (record_alias_subset): ... here; propagate new fields;
20657 allocate children only when really needed.
20658 (get_alias_set): Do less generous pointer globbing.
20659 (dump_alias_stats_in_alias_c): Update statistics.
20661 2015-05-30 Alan Modra <amodra@gmail.com>
20663 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
20664 correct block for use of r12.
20665 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
20667 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
20670 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
20673 2015-05-29 Jakub Jelinek <jakub@redhat.com>
20675 PR tree-optimization/66142
20676 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
20677 virtual phis that feed themselves.
20679 2015-05-29 Richard Biener <rguenther@suse.de>
20681 PR tree-optimization/66314
20682 * tree-ssa-threadupdate.c (create_block_for_threading): Add
20683 parameter that says which loop the new block belongs to.
20684 (ssa_create_duplicates): Blocks duplicated for the threaded
20685 path belong to the loop of the thread destination.
20687 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20689 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
20690 to cleanup-saved-temps.
20691 * doc/sourcebuild.texi (Clean up generated test files): Expand
20693 (dg-keep-saved-temps): Document new proc.
20694 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
20695 cleanup-saved-temps): Remove.
20697 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
20699 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
20700 gcc_AC_CHECK_DECLS.
20701 * configure: Regenerate.
20703 2015-05-28 Mike Frysinger <vapier@gentoo.org>
20705 * config/nios2/linux.h (CPP_SPEC): Define.
20707 2015-05-28 Mike Frysinger <vapier@gentoo.org>
20709 * config/microblaze/linux.h (CPP_SPEC): Define.
20711 2015-05-28 Mike Frysinger <vapier@gentoo.org>
20713 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
20714 -pthread is specified.
20716 2015-05-28 Richard Biener <rguenther@suse.de>
20718 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
20719 (vect_fixup_scalar_cycles_with_patterns): Likewise.
20720 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
20721 after pattern recog.
20722 (vect_create_epilog_for_reduction): Properly handle reductions
20724 (vectorizable_reduction): Likewise.
20725 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
20727 (vect_get_constant_vectors): Create the correct number of
20728 initial values for reductions.
20729 (vect_schedule_slp_instance): Handle reduction chains that are
20730 type changing properly.
20731 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
20733 2015-05-28 Richard Biener <rguenther@suse.de>
20735 PR tree-optimization/66142
20736 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
20737 values better in memcpy destination handling. Handle non-aliasing
20740 2015-05-28 Lawrence Velázquez <vq@larryv.me>
20743 * config/darwin-c.c (version_components): New global enum.
20744 (parse_version, version_as_legacy_macro)
20745 (version_as_modern_macro, macosx_version_as_macro): New functions.
20746 (version_as_macro): Remove.
20747 (darwin_cpp_builtins): Use new function.
20749 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
20751 * builtins.c (expand_builtin_acc_on_device): Mark parameters
20752 with ATTRIBUTE_UNUSED.
20754 2015-05-28 Julian Brown <julian@codesourcery.com>
20758 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
20759 sequence for !ACCEL_COMPILER.
20761 2015-05-28 Nick Clifton <nickc@redhat.com>
20763 * config/rx/rx.c (push_regs): New function. Extracts code from...
20764 (rx_expand_prologue): ... here. Use push_regs to push even small
20765 spans of registers.
20766 (pop_regs): New function.
20767 (rx_expand_epilogue): Use pop_regs to pop even small spans of
20770 2015-05-28 Richard Biener <rguenther@suse.de>
20772 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
20774 (SLP_INSTANCE_BODY_COST_VEC): Remove.
20775 (vect_update_slp_costs_according_to_vf): Likewise.
20776 (vect_slp_analyze_operations): Update prototype.
20777 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
20778 vect_update_slp_costs_according_to_vf, adjust.
20779 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
20780 (vect_analyze_slp_cost_1): Likewise.
20781 (vect_analyze_slp_cost): Likewise. Properly deal with
20782 widening reduction ops. Commit body costs.
20783 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
20784 cost for loops from here.
20785 (vect_slp_analyze_operations): But do it from here when
20786 the vectorization factor is known and stmts are analyzed.
20787 (vect_bb_vectorization_profitable_p): Simplify.
20788 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
20789 (vect_update_slp_costs_according_to_vf): Remove.
20791 2015-05-27 Magnus Granberg <zorry@gentoo.org>
20792 H.J. Lu <hongjiu.lu@intel.com>
20794 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
20795 (BUILD_CFLAGS): Likewise.
20796 (BUILD_CXXFLAGS): Likewise.
20797 (LINKER): Add @NO_PIE_FLAG@.
20798 (BUILD_LDFLAGS): Likewise.
20799 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
20800 --enable-default-pie.
20801 * common.opt (fPIE): Initialize to -1.
20803 (no-pie): New option.
20804 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
20805 * configure.ac: Add --enable-default-pie.
20806 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
20807 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
20808 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
20809 * gcc.c (NO_PIE_SPEC): New.
20810 (PIE_SPEC): Likewise.
20811 (NO_FPIE1_SPEC): Likewise.
20812 (FPIE1_SPEC): Likewise.
20813 (NO_FPIE2_SPEC): Likewise.
20814 (FPIE2_SPEC): Likewise.
20815 (NO_FPIE2_SPEC): Likewise.
20816 (FPIE_SPEC): Likewise.
20817 (NO_FPIE_SPEC): Likewise.
20818 (NO_FPIC1_SPEC): Likewise.
20819 (FPIC1_SPEC): Likewise.
20820 (NO_FPIC2_SPEC): Likewise.
20821 (FPIC2_SPEC): Likewise.
20822 (NO_FPIC2_SPEC): Likewise.
20823 (FPIC_SPEC): Likewise.
20824 (NO_FPIC_SPEC): Likewise.
20825 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
20826 (FPIE1_OR_FPIC1_SPEC): Likewise.
20827 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
20828 (FPIE2_OR_FPIC2_SPEC): Likewise.
20829 (NO_FPIE_AND_FPIC_SPEC): Likewise.
20830 (FPIE_OR_FPIC_SPEC): Likewise.
20831 (LD_PIE_SPEC): Likewise.
20832 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
20833 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
20834 * config/darwin.h (PIE_SPEC): Renamed to ...
20835 (DARWIN_PIE_SPEC): This.
20836 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
20837 * config/darwin9.h (PIE_SPEC): Renamed to ...
20838 (DARWIN_PIE_SPEC): This.
20839 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
20840 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
20841 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
20842 FPIE2_OR_FPIC2_SPEC.
20843 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
20844 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
20845 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
20846 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20847 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20848 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20849 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
20850 * config/m32r/m32r.h (ASM_SPEC): Likewise.
20851 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
20852 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
20853 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
20854 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
20855 * config/sparc/linux.h (ASM_SPEC): Likewise.
20856 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20857 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
20858 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
20859 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20860 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
20861 * config/sparc/sparc.h (ASM_SPEC): Likewise.
20862 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
20863 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
20864 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
20865 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
20866 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
20867 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
20868 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
20869 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
20870 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
20871 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
20872 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
20873 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
20874 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20875 * config/vax/linux.h (ASM_SPEC): Likewise.
20876 * doc/install.texi: Document --enable-default-pie.
20877 * doc/invoke.texi: Document -no-pie.
20878 * config.in: Regenerated.
20879 * configure: Likewise.
20881 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
20883 PR rtl-optimization/66168
20884 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
20885 can_move_invariant_reg.
20887 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
20890 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
20891 REG_EQUAL note when doing insert.
20893 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
20894 instead of "%d" for 'o' operand.
20896 2015-05-27 Nathan Sidwell <nathan@acm.org>
20899 * tree.c (build_pointer_type_for_mode): Canonical type does not
20900 inherit can_alias_all.
20901 (build_reference_type_for_mode): Likewise.
20903 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
20905 * expr.h (array_at_struct_end_p): Move to...
20906 (array_ref_element_size): Likewise.
20907 (component_ref_field_offset): Likewise.
20908 * tree.h (array_ref_element_size): ...here.
20909 (array_at_struct_end_p): Likewise.
20910 (component_ref_field_offset): Likewise.
20911 * expr.c (array_ref_element_size): Move to...
20912 (array_ref_low_bound): Likewise.
20913 (array_at_struct_end_p): Likewise.
20914 (array_ref_up_bound): Likewise.
20915 (component_ref_field_offset): Likewise.
20916 * tree.c (array_ref_element_size): ...here.
20917 (array_ref_low_bound): Likewise.
20918 (array_ref_up_bound): Likewise.
20919 (array_at_struct_end_p): Likewise.
20920 (component_ref_field_offset): Likewise.
20922 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
20923 Szabolcs Nagy <szabolcs.nagy@arm.com>
20925 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
20927 2015-05-27 Jason Merrill <jason@redhat.com>
20930 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
20931 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
20932 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
20934 2015-05-22 Aditya Kumar <hiraditya@msn.com>
20936 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
20939 * statistics.c (statistics_fini_pass): Print pass name.
20941 2015-05-27 Richard Biener <rguenther@suse.de>
20943 PR tree-optimization/66272
20945 2014-08-15 Richard Biener <rguenther@suse.de>
20947 PR tree-optimization/62031
20948 * tree-data-ref.c (dr_analyze_indices): Do not set
20949 DR_UNCONSTRAINED_BASE.
20950 (dr_may_alias_p): All indirect accesses have to go the
20951 formerly DR_UNCONSTRAINED_BASE path.
20952 * tree-data-ref.h (struct indices): Remove
20953 unconstrained_base member.
20954 (DR_UNCONSTRAINED_BASE): Remove.
20956 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
20958 * dwarf2out.c: Remove block_map.
20959 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
20960 (gen_lexical_block_die): Same.
20961 (dwarf2out_function_decl): Remove block_map use.
20962 (dwarf2out_c_finalize): Same.
20963 * tree-core.h (struct tree_block): Add die field.
20964 * tree.h (BLOCK_DIE): New.
20966 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20969 * expr.c (memory_load_overlap): New function.
20970 (emit_push_insn): When pushing partial args to the stack would
20971 clobber the register part load the overlapping part into a pseudo
20972 and put it into the hard reg after pushing. Change return type
20973 to bool. Add bool argument.
20974 * expr.h (emit_push_insn): Change return type to bool.
20976 * calls.c (expand_call): Cancel sibcall optimization when encountering
20977 partial argument on targets with ARGS_GROW_DOWNWARD and
20978 !STACK_GROWS_DOWNWARD.
20979 (emit_library_call_value_1): Update callsite of emit_push_insn.
20980 (store_one_arg): Likewise.
20982 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
20984 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
20986 2015-05-27 Martin Liska <mliska@suse.cz>
20988 * Makefile.in: Add additional dependencies related to memory report
20990 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
20991 * bitmap.c (struct bitmap_descriptor_d): Remove.
20992 (struct loc): Likewise.
20993 (struct bitmap_desc_hasher): Likewise.
20994 (bitmap_desc_hasher::hash): Likewise.
20995 (bitmap_desc_hasher::equal): Likewise.
20996 (get_bitmap_descriptor): Likewise.
20997 (bitmap_register): User new memory descriptor API.
20998 (register_overhead): Likewise.
20999 (bitmap_find_bit): Register nsearches and search_iter statistics.
21000 (struct bitmap_output_info): Remove.
21001 (print_statistics): Likewise.
21002 (dump_bitmap_statistics): Use new memory descriptor.
21003 * bitmap.h (struct bitmap_usage): New class.
21004 * genmatch.c: Extend header file inclusion.
21005 * genpreds.c: Likewise.
21006 * ggc-common.c (struct ggc_usage): New class.
21007 (struct ggc_loc_desc_hasher): Remove.
21008 (ggc_loc_desc_hasher::hash): Likewise.
21009 (ggc_loc_desc_hasher::equal): Likewise.
21010 (struct ggc_ptr_hash_entry): Likewise.
21011 (struct ptr_hash_hasher): Likewise.
21012 (ptr_hash_hasher::hash): Likewise.
21013 (ptr_hash_hasher::equal): Likewise.
21014 (make_loc_descriptor): Likewise.
21015 (ggc_prune_ptr): Likewise.
21016 (dump_ggc_loc_statistics): Use new memory descriptor.
21017 (ggc_record_overhead): Likewise.
21018 (ggc_free_overhead): Likewise.
21019 (final_cmp_statistic): Remove.
21020 (cmp_statistic): Likewise.
21021 (ggc_add_statistics): Liekwise.
21022 (ggc_prune_overhead_list): Likewise.
21023 * hash-map-traits.h: New file.
21024 * hash-map.h (struct default_hashmap_traits): Move the traits to a
21025 separate header file.
21026 * hash-set.h: Pass memory statistics info to ctor.
21027 * hash-table.c (void dump_hash_table_loc_statistics): New function.
21028 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
21029 (hash_table::~hash_table): Register memory release operation.
21030 (hash_table::alloc_entries): Handle memory allocation operation.
21031 (hash_table::expand): Likewise.
21032 * inchash.c (iterative_hash_hashval_t): Move implementation to header
21034 (iterative_hash_host_wide_int): Likewise.
21035 * inchash.h (class hash): Likewise.
21036 * mem-stats-traits.h: New file.
21037 * mem-stats.h: New file.
21038 (mem_location): Add new class.
21039 (mem_usage): Likewise.
21040 (mem_alloc_description): Likewise.
21041 * sese.c: Add new header file inclusision.
21042 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
21044 * tree-sra.c: Add new header file inclusision.
21045 * vec.c (struct vec_descriptor): Remove.
21046 (hash_descriptor): Likewise.
21047 (struct vec_usage): Likewise.
21048 (struct ptr_hash_entry): Likewise.
21049 (hash_ptr): Likewise.
21050 (eq_ptr): Likewise.
21051 (vec_prefix::register_overhead): Use new memory descriptor API.
21052 (vec_prefix::release_overhead): Likewise.
21053 (add_statistics): Remove.
21054 (dump_vec_loc_statistics): Use new memory descriptor API.
21055 * vec.h (struct vec_prefix): Likewise.
21056 (va_heap::reserve): Likewise.
21057 (va_heap::release): Likewise.
21058 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
21060 2015-05-27 Richard Biener <rguenther@suse.de>
21062 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
21063 earlier and remove ??? comment.
21064 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
21065 and got called from loop analysis bail out. Always pass the SLP
21066 node to the vectorizable_* functions.
21067 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
21068 the premature SLP check here.
21069 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
21070 detected SLP stmts.
21071 (vect_detect_hybrid_slp_1): Likewise.
21073 2015-05-26 Jeff Law <law@redhat.com>
21075 * combine.c (find_split_point): Verify that the shift count is a
21076 constant when choosing (plus (ashift ...)) as a split point.
21078 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
21079 No functional changes.
21081 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
21083 * ipa-polymorphic-call.c
21084 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
21085 case when call target is already known.
21087 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
21090 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
21091 take into account the case that operands[1] and operands[2]
21092 are the same register.
21094 2015-05-26 Michael Matz <matz@suse.de>
21096 PR middle-end/66251
21098 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
21100 (vect_create_vectorized_demotion_stmts): Always set
21101 STMT_VINFO_VEC_STMT, also with SLP.
21102 (vectorizable_store): Handle strided group stores.
21104 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21107 * config/aarch64/aarch64.md
21108 (*adds_shift_imm_<mode>): New pattern.
21109 (*subs_shift_imm_<mode>): Likewise.
21110 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
21111 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
21112 (*add_uxt<mode>_shift2): Likewise.
21113 (*add_uxtsi_shift2_uxtw): Likewise.
21114 (*sub_uxt<mode>_shift2): Likewise.
21115 (*sub_uxtsi_shift2_uxtw): Likewise.
21117 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
21119 * config/rs6000/constraints.md (Y, U): Use match_test.
21121 2015-05-26 Christian Bruel <christian.bruel@st.com>
21124 * config/arm/arm.c (arm_option_check_internal)
21125 (arm_option_params_internal): Check opts->target_flags to set macros.
21126 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
21127 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
21128 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
21129 (builtin_define): Replaced with def_or_undef_macro.
21130 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
21131 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
21132 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
21133 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
21134 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
21135 (TARGET_ARM_FEATURE_LDREX_P)
21136 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
21137 * config/arm/arm-c.c (def_or_undef_macro): New function.
21138 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
21140 2015-05-26 Christian Bruel <christian.bruel@st.com>
21142 * c-common.h (builtin_define_with_int_value)
21143 (builtin_define_type_sizeof): Declare.
21144 * c-cppbuiltin.c (builtin_define_with_int_value)
21145 (builtin_define_type_sizeof): Externalize.
21146 (builtin_define_std): Cleanup declaration.
21147 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
21148 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
21149 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
21150 (builtin_define, builtin_assert): New macros.
21152 2015-05-26 Richard Biener <rguenther@suse.de>
21154 PR tree-optimization/66142
21155 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
21156 MEM_REFs for the same base address.
21158 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21161 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
21163 2015-05-26 Jason Merrill <jason@redhat.com>
21165 * configure.ac: Set CXXFLAGS for ISL test.
21166 * configure: Regenerate.
21168 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
21169 strstr and basename.
21170 * configure: Regenerate.
21172 2015-05-26 Richard Biener <rguenther@suse.de>
21174 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
21175 X % C -> X & (C - 1) for C being a power-of two to ...
21176 * match.pd: ... patterns.
21178 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
21180 * match.pd (swapped_tcc_comparison): New operator list.
21181 (-A CMP -B): New simplification.
21182 * fold-const.c (fold_comparison): Remove corresponding code.
21184 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
21186 * caller-save.c (init_caller_save): Base temporary register numbers
21187 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
21188 * cfgloopanal.c (init_set_costs): Likewise.
21189 * dojump.c (prefer_and_bit_test): Likewise.
21190 * expr.c (init_expr_target): Likewise.
21191 * ira.c (setup_prohibited_mode_move_regs): Likewise.
21192 * lower-subreg.c (init_lower_subreg): Likewise.
21193 * postreload.c (reload_cse_regs_1): Likewise.
21195 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
21197 * gensupport.h (compute_test_codes): Declare.
21198 * gensupport.c (compute_predicate_codes): Rename to...
21199 (compute_test_codes): ...this. Generalize error message.
21200 (process_define_predicate): Update accordingly.
21201 * genpreds.c (compute_maybe_allows): Delete.
21202 (add_constraint): Use compute_test_codes to determine whether
21203 something can accept a SUBREG, REG or MEM.
21205 2015-05-26 Torvald Riegel <triegel@redhat.com>
21207 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
21208 'memory model' to align with C++11; fix description of memory orders;
21211 2015-05-26 Richard Biener <rguenther@suse.de>
21213 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
21214 (vect_analyze_loop_operations): ... here. Remove slp parameter,
21215 detect whether we apply SLP. Remove call to
21216 vect_update_slp_costs_according_to_vf.
21217 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
21218 vect_update_slp_costs_according_to_vf from here. Dispatch
21219 to vect_slp_analyze_operations to analyze SLP stmts.
21220 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
21221 unused bb_vec_info parameter, adjust assert.
21222 (vect_slp_analyze_operations): Pass in the slp instance tree
21223 instead of bb_vec_info.
21224 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
21225 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
21227 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
21229 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
21230 Q_REGS. Expand comment.
21231 (REG_CLASS_NAMES): Ditto.
21232 (REG_CLASS_CONTENTS): Ditto.
21234 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
21237 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
21238 when LEGACY_INT_REGNO_P is processed.
21240 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
21242 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
21244 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
21246 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
21247 register if not marked dead/unused, before return.
21249 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
21252 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
21253 is set; check for assembler name at LTO time.
21254 (type_in_anonymous_namespace): Remove hacks, check that all
21255 anonymous types are called "<anon>"
21256 (odr_type_p): Simplify; add check for "<anon>"
21257 (odr_subtypes_equivalent): Add odr_type_p check.
21258 * tree.c (need_assembler_name_p): Even anonymous namespace needs
21261 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
21263 * ipa-utils.h (method_class_type): Remove.
21264 * cgraphunit.c (walk_polymorphic_call_targets): Use
21265 TYPE_METHOD_BASETYPE.
21266 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
21267 on main variants only.
21268 (method_class_type): Remove.
21269 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
21270 (build_type_inheritance_graph): Likewise.
21271 * ipa-icf.c (sem_function::equals_wpa): Likewise.
21272 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
21273 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
21275 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
21277 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
21278 is_typedef_decl, typedef_variant_p): Constify.
21279 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
21280 is_typedef_decl, typedef_variant_p): Constify.
21282 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21284 * defaults.h (gen_tablejump): New function.
21285 (HAVE_tablejump): Add default value.
21287 * stmt.c: Likewise.
21289 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21291 * defaults.h (gen_store_multiple): New function.
21292 (HAVE_store_multiple): Add default value.
21293 * expr.c (move_block_from_reg): Adjust.
21295 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21297 * defaults.h (gen_load_multiple): New function.
21298 (HAVE_load_multiple): Add default value.
21299 * expr.c (move_block_to_reg): Adjust.
21301 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21303 * defaults.h (gen_mem_signal_fence): New function.
21304 (HAVE_mem_signal_fence): Add default value.
21305 * optabs.c: Adjust.
21307 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21309 * defaults.h (gen_memory_barrier): New function.
21310 (HAVE_memory_barrier): Add default value.
21311 * optabs.c: Adjust.
21313 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21315 * defaults.h (gen_mem_thread_fence): New function.
21316 (HAVE_mem_thread_fence): Add default definition.
21317 * optabs.c: Adjust.
21319 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21321 * combine.c (find_split_point): Check the value of HAVE_lo_sum
21322 instead of if it is defined.
21323 (combine_simplify_rtx): Likewise.
21324 * lra-constraints.c (process_address_1): Likewise.
21325 * config/darwin.c: Adjust.
21326 * genconfig.c (main): Always define HAVE_lo_sum.
21328 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21330 * genmatch.c (parser::parse_operation): Reject expanding
21331 operator-list inside 'for'.
21333 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21335 * genmatch.c (parser::parse_for): Reject iterator if used as
21338 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21340 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
21341 after end of id-list.
21343 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
21345 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
21346 we do not try to compute canonical type for type that does not need
21348 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
21350 * tree.h (type_with_alias_set_p): New.
21352 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
21354 * tree.c (gimple_canonical_types_compatible_p): Do not compare
21355 function attributes.
21356 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
21358 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
21360 * Makefile.in (check_gcc_parallelize): Delete.
21361 (lang_checks_parallelized): Update comment.
21363 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
21365 PR rtl-optimization/66237
21366 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
21367 location of an "as_a" cast.
21369 2015-05-22 Jeff Law <law@redhat.com>
21371 * config/pa/pa.md (non-canonical shift-add insns): Remove.
21372 (peepholes with non-canonical RTL sources): Remove.
21373 (peepholes for indexed stores of FP regs in integer modes): Match and
21374 generate canonical RTL.
21376 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
21378 PR tree-optimization/63387
21379 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
21380 ((x ord x) & (y ord y) -> (x ord y),
21381 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
21382 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
21383 vectors like scalars.
21385 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
21387 * convert.c (convert_to_integer, convert_to_vector): Include the
21388 types in the error message.
21390 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
21392 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
21395 2015-05-22 Jeff Law <law@redhat.com>
21397 * config/pa/pa.md (integer_indexed_store splitters): Use
21398 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
21399 insns -- adjusting the constant 2nd operand accordingly.
21401 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
21402 (plus (ashift X log2) Y) if it is a split point.
21404 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
21405 out of hppa_legitimize_address to handle both forms of a multiply
21407 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
21408 Always generate the ASHIFT variant as the result is not directly
21409 used in a MEM. Update comments and refactor slightly to improve
21412 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21415 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
21416 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
21417 (aarch64_composite_type_p): Return false if given type and mode are
21418 for a short vector.
21420 2015-05-22 Richard Biener <rguenther@suse.de>
21422 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
21424 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
21425 patterns when determining whether SLP is pure.
21426 (vect_is_slp_reduction): Remove check for pattern stmts.
21427 (vect_is_simple_reduction_1): Remove dead code.
21428 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
21429 (vect_get_and_check_slp_defs): Pass in the stmt number.
21430 Allow the first def in a reduction to be not a pattern stmt when
21431 the rest of the stmts def are patterns.
21432 (vect_build_slp_tree_1): Allow tcc_expression codes like
21433 SAD_EXPR and DOT_PROD_EXPR.
21434 (vect_build_slp_tree): Adjust.
21435 (vect_analyze_slp): Refactor and move BB vect error message ...
21436 (vect_slp_analyze_bb_1): ... here.
21438 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
21440 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
21441 for CSWTCH temporary.
21443 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21445 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
21446 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
21449 2015-05-22 Richard Biener <rguenther@suse.de>
21451 PR tree-optimization/66251
21452 * tree-vect-stmts.c (vectorizable_conversion): Properly
21453 set STMT_VINFO_VEC_STMT even for the SLP case.
21455 2015-05-22 Marek Polacek <polacek@redhat.com>
21457 * doc/extend.texi: Use @pxref instead of @xref.
21459 2015-05-22 hiraditya <hiraditya@msn.com>
21461 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
21464 2015-05-22 Richard Biener <rguenther@suse.de>
21466 PR tree-optimization/65701
21467 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21468 Move peeling cost models into one place. Peel for alignment
21469 for single loads only if an aligned load is cheaper than
21472 2015-05-22 Marek Polacek <polacek@redhat.com>
21475 * doc/extend.texi (Enumerator Attributes): New section.
21476 Document syntax of enumerator attributes.
21478 2015-05-22 Richard Biener <rguenther@suse.de>
21480 * tree-vect-loop.c (get_reduction_op): New function.
21481 (vect_model_reduction_cost): Use it, add reduc_index parameter.
21482 Make ready for BB reductions.
21483 (vect_create_epilog_for_reduction): Use get_reduction_op.
21484 (vectorizable_reduction): Init reduc_index to a valid value.
21485 Adjust vect_model_reduction_cost call.
21486 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
21487 operand for reduction defaults. Add SAD_EXPR support.
21488 Assert we have a neutral op for SLP reductions.
21489 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
21490 walking pattern stmt ops only recurse to SSA names.
21492 2015-05-22 Richard Biener <rguenther@suse.de>
21494 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
21495 assert with guard, remove check on detected reduction.
21496 (vect_recog_sad_pattern): Likewise.
21497 (vect_recog_widen_sum_pattern): Likewise.
21499 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21501 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
21502 __always_inline__ attribute.
21503 (vaesdq_u8): Likewise.
21504 (vaesmcq_u8): Likewise.
21505 (vaesimcq_u8): Likewise.
21506 (vsha1cq_u32): Likewise.
21507 (vsha1mq_u32): Likewise.
21508 (vsha1pq_u32): Likewise.
21509 (vsha1h_u32): Likewise.
21510 (vsha1su0q_u32): Likewise.
21511 (vsha1su1q_u32): Likewise.
21512 (vsha256hq_u32): Likewise.
21513 (vsha256h2q_u32): Likewise.
21514 (vsha256su0q_u32): Likewise.
21515 (vsha256su1q_u32): Likewise.
21516 (vmull_p64): Likewise.
21517 (vmull_high_p64): Likewise.
21519 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21521 * final.c (final_scan_insn): Don't check HAVE_peephole with the
21523 * output.h: Likewise.
21524 * genconfig.c (main): Alwways define HAVE_peephole.
21525 * genpeep.c: Don't emit checks of HAVE_peephole.
21527 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21529 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
21530 check HAVE_conditional_move with the preprocessor.
21532 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21534 * genconfig.c (main): Always define HAVE_conditional_move.
21535 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
21536 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
21539 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21541 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
21542 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
21543 and FRAME_POINTER_REGNUM with the preprocessor.
21545 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21547 * defaults.h: Add default for STACK_PUSH_CODE.
21548 * expr.c: Don't redefine STACK_PUSH_CODE.
21549 * recog.c: Likewise.
21551 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21553 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
21554 sched-deps.c: Use if instead of preprocessor checks with
21555 STACK_GROWS_DOWNWARD.
21557 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21559 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
21561 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
21562 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
21563 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
21564 * doc/tm.texi: Regenerate.
21566 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
21569 * config/i386/constraints.md (Bg): New constraint for GOT memory
21571 * config/i386/i386.md (*call_got_x32): New pattern.
21572 (*call_value_got_x32): Likewise.
21573 * config/i386/predicates.md (GOT_memory_operand): New predicate.
21575 2015-05-21 Jakub Jelinek <jakub@redhat.com>
21577 PR tree-optimization/66233
21578 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
21581 2015-05-21 Jeff Law <law@redhat.com>
21583 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
21584 than MULT for shadd sequences.
21586 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
21588 * alias.c (alias_stats): New static var.
21589 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
21590 (dump_alias_stats_in_alias_c): New function.
21591 * alias.h (dump_alias_stats_in_alias_c): Declare.
21592 * tree-ssa-alias.c (dump_alias_stats): Call it.
21594 2015-05-08 Michael Matz <matz@suse.de>
21596 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
21598 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
21599 (STMT_VINFO_STRIDED_P): ... this.
21600 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
21601 (vect_verify_datarefs_alignment): Likewise.
21602 (vect_enhance_data_refs_alignment): Likewise.
21603 (vect_analyze_data_ref_access): Likewise.
21604 (vect_analyze_data_refs): Accept strided stores.
21605 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
21606 (vect_model_load_cost): Adjust for macro rename.
21607 (vectorizable_mask_load_store): Likewise.
21608 (vectorizable_load): Likewise.
21609 (vectorizable_store): Open code strided stores.
21611 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21613 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
21614 Document sqrt_insn.
21616 2015-05-21 Richard Biener <rguenther@suse.de>
21619 * match.pd: Guard pattern optimzing (int)(float)int
21620 conversions to apply only on GIMPLE.
21622 2015-05-21 Jeff Law <law@redhat.com>
21624 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
21625 multiply-accumulate/shift-add insn generation.
21627 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
21630 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
21631 operands[1] are the same.
21633 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
21635 PR middle-end/66221
21636 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
21637 build_distinct_type_copy to copy bounds.
21639 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
21641 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
21642 Change to unsigned int.
21644 2015-05-20 Jeff Law <law@redhat.com>
21646 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
21647 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
21648 (pa_shadd_constant_p): Allow constants for shadd insns rather
21649 than valid scaling constants for memory addresses.
21650 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
21651 * config/pa/predicates.md (mem_shadd_operand): New predicate.
21652 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
21653 (shift-add insns using ASHIFT): New patterns.
21655 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
21657 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
21659 (fix_up_fall_thru_edges): Likewise.
21660 (fix_crossing_conditional_branches): Likewise. Promote jump targets
21661 from to rtx_insn to rtx_code_label where feasible.
21662 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
21663 gen_move_insn (returned type changed to rtx_insn).
21664 * builtins.c (expand_errno_check): Fix arguments of
21665 do_compare_rtx_and_jump (now expects rtx_code_label).
21666 (expand_builtin_acc_on_device): Likewise.
21667 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
21668 invert_jump (now exprects rtx_jump_insn).
21669 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
21670 (construct_init_block): Use rtx_code_label.
21671 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
21672 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
21673 calling redirect_jump.
21674 (patch_jump_insn): Likewise.
21675 (redirect_branch_edge): Likewise.
21676 (force_nonfallthru_and_redirect): Likewise.
21677 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
21679 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
21680 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
21681 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
21682 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
21683 to store the value retured by gen_label_rtx.
21684 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
21686 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
21687 (split_branches): Fix calls of redirect_jump.
21688 * dojump.c (jumpifnot): Promote argument type from rtx to
21690 (jumpifnot_1): Likewise.
21691 (jumpif): Likewise.
21692 (jumpif_1): Likewise.
21693 (do_jump_1): Likewise.
21694 (do_jump): Likewise. Use rtx_code_label when feasible.
21695 (do_jump_by_parts_greater_rtx): Likewise.
21696 (do_jump_by_parts_zero_rtx): Likewise.
21697 (do_jump_by_parts_equality_rtx): Likewise.
21698 (do_compare_rtx_and_jump): Likewise.
21699 * dojump.h: Update function prototypes.
21700 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
21702 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
21704 (emit_label_before): Likewise.
21705 (emit_jump_insn_after_noloc): Likewise.
21706 (emit_jump_insn_after_setloc): Likewise.
21707 (emit_jump_insn_after): Likewise
21708 (emit_jump_insn_before_setloc): Likewise.
21709 (emit_jump_insn_before): Likewise.
21710 (emit_label_before): Promote return type to rtx_code_label.
21711 (emit_label): Likewise.
21712 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
21713 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
21715 (emit_stack_restore): Likewise.
21716 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
21717 (do_cmp_and_jump): Likewise.
21718 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
21719 from rtx to rtx_code_label.
21720 (gen_move_insn_uncast): New function.
21721 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
21722 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
21723 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
21724 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
21725 invert_jump_1 and redirect_jump_1.
21726 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
21727 do_compare_rtx_and_jump.
21728 (expand_addsub_overflow): Likewise.
21729 (expand_neg_overflow): Likewise.
21730 (expand_mul_overflow): Likewise.
21731 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
21732 return value of gen_move_insn.
21733 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
21734 * loop-doloop.c (add_test): Use rtx_code_label.
21735 (doloop_modify): Likewise.
21736 (doloop_optimize): Likewise.
21737 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
21738 * lra-constraints.c (emit_spill_move): Remove cast of value returned
21740 (inherit_reload_reg): Add cast when calling dump_insn_slim.
21741 (split_reg): Likewise.
21742 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
21744 * optabs.c (expand_binop_directly): Remove casts of values returned by
21746 (expand_unop_direct): Likewise.
21747 (expand_abs): Likewise.
21748 (maybe_emit_unop_insn): Likewise.
21749 (maybe_gen_insn): Promote return type to rtx_insn.
21750 * optabs.h: Update prototype of maybe_gen_insn.
21751 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
21753 * recog.c (struct peep2_insn_data): Promote type of insn field to
21755 (peep2_reinit_state): Use NULL instead of NULL_RTX.
21756 (peep2_attempt): Remove casts of insn in peep2_insn_data.
21757 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
21758 * recog.h (struct insn_gen_fn): Promote return types of function
21759 pointers and operator ().from rtx to rtx_insn.
21760 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
21761 (fill_eager_delay_slots): Likewise.
21762 (relax_delay_slots): Likewise.
21763 (make_return_insns): Likewise.
21764 (dbr_schedule): Likewise.
21765 (optimize_skips): Likewise.
21766 (reorg_redirect_jump): Likewise.
21767 (fill_slots_from_thread): Likewise.
21768 * reorg.h: Update prototypes.
21769 * resource.c (find_dead_or_set_registers): Use dyn_cast to
21770 rtx_jump_insn instead of check. Use it's jump_target method.
21771 * rtl.h (rtx_jump_insn::jump_label): Define new method.
21772 (rtx_jump_insn::jump_target): Define new method.
21773 (rtx_jump_insn::set_jump_target): Define new method.
21774 * rtlanal.c (tablejump_p): Promote type of one local variable.
21775 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
21776 (sched_analyze_insn): Likewise.
21777 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
21778 (print_insn): Likewise.
21779 * stmt.c (label_rtx): Promote return type to rtx_insn.
21780 (force_label_rtx): Likewise.
21781 (jump_target_rtx): Define new function.
21782 (expand_label): Use it, get rid of one cast.
21783 (expand_naked_return): Promote rtx to rtx_code_label.
21784 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
21785 (expand_case): Use rtx_code_label instread of rtx where feasible.
21786 (expand_sjlj_dispatch_table): Likewise.
21787 (emit_case_nodes): Likewise.
21788 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
21789 * store-motion.c (insert_store): Make use of new return type of
21790 gen_move_insn and remove a cast.
21791 (replace_store_insn): Likewise.
21793 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
21795 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
21796 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
21798 2015-05-20 Jeff Law <law@redhat.com>
21800 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
21801 dispose of the jump thread path when the jump threading
21802 opportunity is cancelled.
21804 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
21806 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
21807 when printing the caret character.
21809 2015-05-20 Marek Polacek <polacek@redhat.com>
21811 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
21813 2015-05-20 Marek Polacek <polacek@redhat.com>
21815 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
21816 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
21817 * gimple-fold.c (canonicalize_bool): Likewise.
21818 (same_bool_result_p): Likewise.
21819 * tree-if-conv.c (parse_predicate): Likewise.
21821 2015-05-20 Marek Polacek <polacek@redhat.com>
21823 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
21824 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
21826 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21828 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
21829 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
21832 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
21834 * config/mips/mips.h (micromips_globals): Declare.
21836 2015-05-20 David Malcolm <dmalcolm@redhat.com>
21838 * timevar.def (TV_INITIALIZE_RTL): New.
21839 * toplev.c (initialize_rtl): Use an auto_timevar to account this
21840 function's time to TV_INITIALIZE_RTL.
21842 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
21844 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
21845 gimple_build_nop calls.
21846 (chkp_find_bounds_for_elem): Likewise.
21847 (chkp_get_zero_bounds): Likewise.
21848 (chkp_get_none_bounds): Likewise.
21849 (chkp_get_bounds_by_definition): Likewise.
21850 (chkp_generate_extern_var_bounds): Likewise.
21851 (chkp_get_bounds_for_decl_addr): Likewise.
21852 (chkp_get_bounds_for_string_cst): Likewise.
21854 2015-05-20 Bin Cheng <bin.cheng@arm.com>
21856 PR tree-optimization/65447
21857 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
21858 (dump_use, dump_uses): Support to dump sub use.
21859 (record_use): New parameters to support sub use. Remove call to
21861 (record_sub_use, record_group_use): New functions.
21862 (compute_max_addr_offset, split_all_small_groups): New functions.
21863 (group_address_uses, rewrite_use_address): New functions.
21864 (strip_offset): New declaration.
21865 (find_interesting_uses_address): Call record_group_use.
21866 (add_candidate): New assertion.
21867 (infinite_cost_p): Move definition forward.
21868 (add_costs): Check INFTY cost and return immediately.
21869 (get_computation_cost_at): Clear setup cost and dependent bitmap
21871 (determine_use_iv_cost_address): Compute cost for sub uses.
21872 (rewrite_use_address_1): Rename from old rewrite_use_address.
21873 (free_loop_data): Free sub uses.
21874 (tree_ssa_iv_optimize_loop): Call group_address_uses.
21876 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
21877 Jim Wilson <jim.wilson@linaro.org>
21879 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
21880 new fields loadv and storev.
21881 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
21882 Initialize loadv and storev.
21883 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
21884 (cortexa53_extra_costs): Likewise.
21885 (cortexa57_extra_costs): Likewise.
21886 (xgene1_extra_costs): Likewise.
21887 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
21890 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
21892 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
21894 (cortexa8_extra_costs): Likewise.
21895 (cortexa5_extra_costs): Likewise.
21896 (cortexa7_extra_costs): Likewise.
21897 (cortexa12_extra_costs): Likewise.
21898 (cortexa15_extra_costs): Likewise.
21899 (v7m_extra_costs): Likewise.
21901 2015-05-20 Jeff Law <law@redhat.com>
21903 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
21904 instead of open-coded version. Also delete the jump thread created
21905 within this function.
21907 2015-05-20 Alan Modra <amodra@gmail.com>
21909 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
21910 stack adjusting insn. Formatting.
21911 (rs6000_emit_prologue): Track stack adjusting insn, and use of
21912 r12. If possible, emit first -fsplit-stack arg pointer insn
21913 before stack adjust. Don't use r12 to save cr if split-stack.
21915 2015-05-20 Alan Modra <amodra@gmail.com>
21917 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
21919 (rs6000_supports_split_stack): New function.
21920 * gcc/config/rs6000/rs6000.c (machine_function): Add
21921 split_stack_arg_pointer.
21922 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
21923 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
21924 rather than virtual_incoming_args_rtx.
21925 (rs6000_va_start): Likewise.
21926 (split_stack_arg_pointer_used_p): New function.
21927 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
21928 (morestack_ref): New var.
21929 (gen_add3_const, rs6000_expand_split_stack_prologue,
21930 rs6000_internal_arg_pointer, rs6000_live_on_entry,
21931 rs6000_split_stack_space_check): New functions.
21932 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
21933 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
21934 (UNSPECV_SPLIT_STACK_RETURN): Define.
21935 (split_stack_prologue, load_split_stack_limit,
21936 load_split_stack_limit_di, load_split_stack_limit_si,
21937 split_stack_return, split_stack_space_check): New expands and insns.
21938 * gcc/config/rs6000/rs6000-protos.h
21939 (rs6000_expand_split_stack_prologue): Declare.
21940 (rs6000_split_stack_space_check): Declare.
21942 2015-05-20 Alan Modra <amodra@gmail.com>
21944 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
21945 (direct_return): Test vrsave_size rather than vrsave_mask.
21946 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
21947 (rs6000_emit_epilogue): Likewise.
21949 2015-05-20 Alan Modra <amodra@gmail.com>
21951 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
21952 when not saving registers.
21953 (debug_stack_info): Adjust to omit printing unused offsets,
21955 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
21958 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21961 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
21962 value_type to const char *.
21964 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
21966 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
21967 to build a biarch toolchain again.
21969 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
21971 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
21972 or implicit declarations.
21973 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
21975 (get_odr_type): Check type has linkage before adding bases.
21976 (register_odr_type): Check that type has linkage before adding it.
21977 (type_known_to_have_no_deriavations_p): Rename to ..
21978 (type_known_to_have_no_derivations_p): This one.
21979 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
21980 (type_known_to_have_no_derivations_p): This one.
21981 * ipa-polymorphic-call.c
21982 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
21985 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
21987 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
21988 (layout_type): Use RECORD_OR_UNION_TYPE_P.
21990 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21992 * config/s390/s390.c (s390_vector_bool_type_p): New function.
21993 (s390_invalid_binary_op): New function.
21994 (TARGET_INVALID_BINARY_OP): Define macro.
21996 2015-05-19 David Sherwood <david.sherwood@arm.com>
21998 * loop-invariant.c (create_new_invariant): Don't calculate address cost
21999 if mode is not a scalar integer.
22000 (get_inv_cost): Increase computational cost for unused invariants.
22002 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22004 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
22005 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
22006 * config/s390/s390-builtin-types.def: New file.
22007 * config/s390/s390-builtins.def: New file.
22008 * config/s390/s390-builtins.h: New file.
22009 * config/s390/s390-c.c: New file.
22010 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
22011 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
22012 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
22013 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
22015 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
22017 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
22018 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
22019 variable definitions.
22020 (s390_const_operand_ok): New function.
22021 (s390_expand_builtin): Rewrite.
22022 (s390_init_builtins): New function.
22023 (s390_handle_vectorbool_attribute): New function.
22024 (s390_attribute_table): Add s390_vector_bool attribute.
22025 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
22026 (s390_branch_condition_mask): Generate masks for new modes.
22027 (s390_expand_vec_compare_cc): New function.
22028 (s390_mangle_type): Add mangling for vector bool types.
22029 (enum s390_builtin): Remove.
22030 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
22032 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
22033 s390_cpu_cpp_builtins.
22034 (REGISTER_TARGET_PRAGMAS): New macro.
22035 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
22036 (insn_cmp mode attribute): Add new CC modes.
22037 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
22038 (lcbb): New pattern definition.
22039 * config/s390/s390intrin.h: Include vecintrin.h.
22040 * config/s390/t-s390: New file.
22041 * config/s390/vecintrin.h: New file.
22042 * config/s390/vector.md: Include vx-builtins.md.
22043 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
22046 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22048 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
22050 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
22051 (s390_select_ccmode): Likewise.
22052 (s390_canonicalize_comparison): Swap operands if necessary.
22053 (s390_expand_vec_compare_scalar): Expand DFmode compare using
22054 single element vector instructions.
22055 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
22056 (s390_branch_condition_mask): Generate CC masks for the new modes.
22057 * config/s390/s390.md (v0, vf, vd): New mode attributes.
22058 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
22059 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
22060 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
22061 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
22062 (*extend<DSF:mode><BFP:mode>2): New insn definition.
22063 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
22064 (extend<DSF:mode><BFP:mode>2): Turn into expander.
22065 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
22066 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
22067 (sqrt<mode>2): Add vector instruction.
22069 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22071 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
22073 * config/s390/predicates.md (const0_operand, constm1_operand)
22074 (constable_operand): Accept vector operands.
22075 * config/s390/s390-modes.def: Add supported vector modes.
22076 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
22077 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
22078 (s390_bytemask_vector_p, s390_expand_vec_strlen)
22079 (s390_expand_vec_compare, s390_expand_vcond)
22080 (s390_expand_vec_init): Add prototypes.
22081 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
22082 (s390_vector_mode_supported_p): New function.
22083 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
22084 (s390_contiguous_bitmask_vector_p): New function.
22085 (s390_bytemask_vector_p): New function.
22086 (s390_split_ok_p): Vector regs don't work either.
22087 (regclass_map): Add VEC_REGS.
22088 (s390_legitimate_constant_p): Handle vector constants.
22089 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
22090 (legitimate_reload_vector_constant_p): New function.
22091 (s390_preferred_reload_class): Handle CONST_VECTOR.
22092 (s390_reload_symref_address): Likewise.
22093 (s390_secondary_reload): Vector memory instructions only support
22094 short displacements. Rename reload*_nonoffmem* to reload*_la*.
22095 (s390_emit_ccraw_jump): New function.
22096 (s390_expand_vec_strlen): New function.
22097 (s390_expand_vec_compare): New function.
22098 (s390_expand_vcond): New function.
22099 (s390_expand_vec_init): New function.
22100 (s390_dwarf_frame_reg_mode): New function.
22101 (print_operand): Handle addresses with 'O' and 'R' constraints.
22102 (NR_C_MODES, constant_modes): Add vector modes.
22103 (s390_output_pool_entry): Handle vector constants.
22104 (s390_hard_regno_mode_ok): Handle vector registers.
22105 (s390_class_max_nregs): Likewise.
22106 (s390_cannot_change_mode_class): New function.
22107 (s390_invalid_arg_for_unprototyped_fn): New function.
22108 (s390_function_arg_vector): New function.
22109 (s390_function_arg_float): Remove size variable.
22110 (s390_pass_by_reference): Handle vector arguments.
22111 (s390_function_arg_advance): Likewise.
22112 (s390_function_arg): Likewise.
22113 (s390_return_in_memory): Vector values are returned in a VR if
22115 (s390_function_and_libcall_value): Handle vector arguments.
22116 (s390_gimplify_va_arg): Likewise.
22117 (s390_call_saved_register_used): Consider the arguments named.
22118 (s390_conditional_register_usage): Disable v16-v31 for non-vec
22120 (s390_preferred_simd_mode): New function.
22121 (s390_support_vector_misalignment): New function.
22122 (s390_vector_alignment): New function.
22123 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
22124 (TARGET_VECTOR_MODE_SUPPORTED_P)
22125 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
22126 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
22127 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
22128 (TARGET_VECTOR_ALIGNMENT): Define target macro.
22129 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
22130 (FIRST_PSEUDO_REGISTER): Increase value.
22131 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
22132 (VECTOR_REG_P): Define macros.
22133 (FIXED_REGISTERS, CALL_USED_REGISTERS)
22134 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
22135 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
22136 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
22137 Add vector registers.
22138 (CANNOT_CHANGE_MODE_CLASS): Call C function.
22139 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
22140 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
22142 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
22143 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
22144 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
22145 (VR*_REGNUM): New constants.
22146 (ALL): New mode iterator.
22147 (INTALL): Remove mode iterator.
22149 (movti): Implement TImode moves for VRs.
22150 Disable TImode splitter for VR targets.
22151 Implement splitting TImode GPR<->VR moves.
22152 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
22153 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
22154 reload<mode>_la_in, reload<mode>_la_out.
22155 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
22156 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
22157 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
22158 (mov<mode> SF SD): Prefer lder, lde for loading.
22159 Add lrl and strl instructions.
22160 Add vector instructions.
22161 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
22162 Call s390_expand_vec_strlen on z13.
22163 (*cc_to_int): Change predicate to nonimmediate_operand.
22164 (addti3): Rename to *addti3. New expander.
22165 (subti3): Rename to *subti3. New expander.
22166 * config/s390/vector.md: New file.
22168 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22170 * common/config/s390/s390-common.c (processor_flags_table): Add
22172 * config.gcc: Add z13.
22173 * config/s390/s390-opts.h (enum processor_type): Add
22174 PROCESSOR_2964_Z13.
22175 * config/s390/s390.c (s390_adjust_priority): Check for
22176 PROCESSOR_2964_Z13.
22177 (s390_reorg): Likewise.
22178 (s390_sched_reorder): Likewise.
22179 (s390_sched_variable_issue): Likewise.
22180 (s390_loop_unroll_adjust): Likewise.
22181 (s390_option_override): Likewise. Default to -mvx when available.
22182 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
22183 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
22184 (TARGET_VX_ABI): Define macros.
22186 (TARGET_DEFAULT): Add MASK_OPT_VX.
22187 * config/s390/s390.md ("cpu" attribute): Add z13.
22188 ("cpu_facility" attribute): Add vec.
22189 * config/s390/s390.opt (processor_type): Add z13.
22190 (mvx): New options.
22191 * doc/invoke.texi: Add z13 option for -march.
22193 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22195 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
22196 mode check to make sure that only scalar integer values are
22199 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
22201 * tree.c (verify_type_variant): Fix #undef.
22202 (gimple_canonical_types_compatible_p): Move here from lto.c
22203 (verify_type): Verify TYPE_CANONICAL compatibility.
22204 * tree.h (gimple_canonical_types_compatible_p): Declare.
22206 2015-05-19 Jakub Jelinek <jakub@redhat.com>
22208 PR middle-end/66199
22209 * tree.h (OMP_TEAMS_COMBINED): Define.
22210 * gimplify.c (enum gimplify_omp_var_data): Add
22211 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
22212 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
22213 (omp_notice_variable): Accept both ORT_TEAMS
22214 and ORT_COMBINED_TEAMS. Don't recurse if
22215 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
22216 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
22218 (omp_no_lastprivate): New function.
22219 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
22220 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
22221 notice_outer and set appropriate bits, otherwise make
22222 sure default(none) combined constructs won't complain.
22223 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
22224 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
22225 omp_no_lastprivate either remove the clause or turn it
22226 into OMP_CLAUSE_PRIVATE.
22227 (gimplify_omp_for): Fix up handling of implicit
22228 lastprivate or linear iterators.
22229 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
22230 ORT_COMBINED_TEAMS.
22231 * omp-low.c (lower_omp_for_lastprivate): For combined
22232 for simd use fd.loop.n2 from the for rather than simd.
22234 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22236 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
22237 instead of gen_rtx_raw_REG.
22238 (cris_expand_epilogue): Likewise.
22239 * config/microblaze/microblaze.c (microblaze_classify_address):
22241 * config/sparc/sparc.md: Likewise.
22243 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
22245 * config/alpha/alpha.c (alpha_legitimize_reload_address)
22246 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
22247 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
22248 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
22249 Use CASE_CONST_SCALAR_INT.
22250 (print_operand) <case 'M'>: Use mode_width_operand to check the
22251 value of the constant.
22252 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
22253 * config/alpha/predicates.md (input_operand): Use general_operand
22254 instead of match_code as operand check.
22255 (symbolic_operand): Use match_code with subexpression digits.
22256 * config/alpha/constraints.md (Q): Ditto.
22258 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22260 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
22262 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22264 * config/s390/s390.c (s390_secondary_reload): Fix check for
22265 load/store relative.
22267 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22269 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
22270 alternative_mask to uint64_t.
22272 2015-05-19 Jakub Jelinek <jakub@redhat.com>
22274 PR tree-optimization/66187
22275 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
22276 Pass TYPE_SIGN to tree_int_cst_min_precision. If
22277 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
22279 2015-05-19 David Malcolm <dmalcolm@redhat.com>
22281 * diagnostic.c (diagnostic_report_current_module): Strengthen
22282 local "new_map" from const line_map * to
22283 const line_map_ordinary *.
22284 * genmatch.c (error_cb): Likewise for local "map".
22285 (output_line_directive): Likewise for local "map".
22286 * input.c (expand_location_1): Likewise for local "map".
22287 Pass NULL rather than &map to
22288 linemap_unwind_to_first_non_reserved_loc, since the value is never
22289 read from there, and the value written back not read from here.
22290 (is_location_from_builtin_token): Strengthen local "map" from
22291 const line_map * to const line_map_ordinary *.
22292 (dump_location_info): Strengthen locals "map" from
22293 line_map *, one to const line_map_ordinary *, the other
22294 to const line_map_macro *.
22295 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
22296 const line_map * to const line_map_macro *.
22297 (maybe_unwind_expanded_macro_loc): Add a call to
22298 linemap_check_macro when writing to the "map" field of the
22300 Introduce local const line_map_ordinary * "ord_map", using it in
22301 place of "map" in the part of the function where we know we have
22302 an ordinary map. Strengthen local "m" from const line_map * to
22303 const line_map_ordinary *.
22305 2015-05-19 Nick Clifton <nickc@redhat.com>
22308 * config/msp430/msp430.md (zero_extendhisi2): Add support for
22309 separate source and destination registers.
22311 2015-05-19 Richard Biener <rguenther@suse.de>
22313 PR tree-optimization/66165
22314 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
22315 for no load permutation.
22317 PR tree-optimization/66185
22318 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
22319 when building the SLP node from scalars.
22321 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
22322 Tristan Gingold <gingold@adacore.com>
22324 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
22325 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
22326 (expand_stack_restore): Call record_new_stack_level.
22327 (expand_stack_save): Do not call do_pending_stack_adjust.
22328 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
22329 * calls.c (expand_call): Call record_new_stack_level for alloca.
22330 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
22331 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
22332 (update_sjlj_context): New global function.
22333 * except.h (update_sjlj_context): Declare.
22334 * explow.c (record_new_stack_level): New global function.
22335 (allocate_dynamic_stack_space): Call record_new_stack_level.
22336 * explow.h (record_new_stack_level): Declare.
22337 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
22338 * cfgrtl.c (duplicate_insn_chain): Likewise.
22340 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22342 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
22343 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
22344 STACK_GROWS_DOWNWARD as normal if.
22345 (expand_call): Likewise.
22347 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
22350 * config/sh/sh.md (*round_int_even): New insn_and_split and
22351 accompanying new unnamed split.
22353 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22355 * bitmap.c (bitmap_set_range): Handle count==1 specially.
22356 (bitmap_clear_range): Likewise.
22357 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
22358 bitmap_set_range unconditionally.
22359 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
22360 * df-scan.c (df_mark_reg): Likewise.
22361 * haifa-sched.c (setup_ref_regs): Likewise.
22362 * sched-rgn.c (update_live_1): Likewise.
22364 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22366 * regs.h (END_HARD_REGNO): Delete.
22367 (END_REGNO): Move to...
22369 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
22370 * caller-save.c (mark_set_regs): Likewise.
22371 * combine.c (move_deaths, distribute_notes): Likewise.
22372 * cse.c (invalidate, invalidate_for_call): Likewise.
22373 * df-scan.c (df_ref_record): Likewise.
22374 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
22375 (record_last_reg_set_info): Likewise.
22376 * reg-stack.c (convert_regs_exit): Likewise.
22377 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
22378 * resource.c (update_live_status): Likewise.
22379 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
22381 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22383 * rtl.h (reg_info): Add an nregs field.
22384 (REG_NREGS): Use it.
22385 (SET_REGNO_RAW): Delete.
22386 (set_regno_raw): New function.
22387 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
22388 (END_REGNO): Redefine in terms of REG_NREGS.
22389 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
22391 * emit-rtl.c (set_mode_and_regno): Likewise.
22392 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
22393 instead of SET_REGNO_RAW.
22395 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22397 * rtl.h (PUT_MODE_RAW): New macro.
22398 (PUT_REG_NOTE_KIND): Use it.
22399 (set_mode_and_regno): Declare.
22400 (gen_raw_REG): Change regno to "unsigned int".
22401 (gen_rtx_REG): Change "unsigned" to "unsigned int".
22402 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
22403 use set_mode_and_regno to change the mode of registers.
22404 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
22405 * emit-rtl.c (set_mode_and_regno): New function.
22406 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
22407 * caller-save.c (reg_save_code): Use set_mode_and_regno.
22408 * expr.c (init_expr_target): Likewise.
22409 * ira.c (setup_prohibited_mode_move_regs): Likewise.
22410 * postreload.c (reload_cse_simplify_operands): Likewise.
22412 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22414 * caller-save.c (init_caller_save): Use word_mode and
22415 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
22416 * expr.c (init_expr_target): Likewise.
22417 * ira.c (setup_prohibited_mode_move_regs): Likewise.
22418 * postreload.c (reload_cse_regs_1): Likewise.
22420 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22422 * rtl.def (REG): Change format to "r".
22423 * rtl.h (rtunion): Remove rt_reg.
22424 (reg_info): New structure.
22425 (rtx_def): Add reg field to main union.
22426 (X0REGATTR): Delete.
22427 (REG_CHECK): New macro.
22428 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
22429 * rtl.c (rtx_format): Document "r".
22430 (rtx_code_size): Handle REG specially.
22431 * gengenrtl.c (special_format): Return true for formats
22433 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
22434 Deal with REG_ATTRS after the field loop.
22435 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
22436 * expmed.c (init_expmed): Call gen_raw_REG instead of
22438 * expr.c (init_expr_target): Likewise.
22439 * regcprop.c (maybe_mode_change): Likewise.
22440 * varasm.c (make_decl_rtl): Likewise.
22441 * final.c (leaf_renumber_regs_insn): Return early after
22443 * genemit.c (gen_exp): Handle 'r' fields.
22444 * genpeep.c (match_rtx): Likewise.
22445 * gensupport.c (subst_pattern_match): Likewise.
22446 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
22447 (alter_constraints, subst_dup): Likewise.
22448 * read-rtl.c (read_rtx_code): Likewise.
22449 * print-rtl.c (print_rtx): Likewise.
22450 * genrecog.c (find_operand, find_matching_operand): Likewise.
22451 (validate_pattern, match_pattern_2): Likewise.
22452 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
22453 (rtx_test::regno_field): New function.
22454 (operator ==, safe_to_hoist_p, transition_parameter_type)
22455 (parameter_type_string, print_parameter_value)
22456 (print_nonbool_test, print_test): Handle new enum values.
22457 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
22458 * lra-constraints.c (operands_match_p): Likewise.
22460 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22462 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
22463 Change type of new_regno to unsigned int.
22464 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
22465 new_regno to unsigned int.
22466 (df_ref_change_reg_with_loc): Remove old_regno parameter.
22467 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
22468 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
22469 (SET_REGNO_RAW): Add space after ",".
22471 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22473 * rtl.h (REG_NREGS): New macro
22474 * alias.c (record_set): Use it.
22475 * cfgcleanup.c (mark_effect): Likewise.
22476 * combine.c (likely_spilled_retval_1): Likewise.
22477 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
22478 (move_deaths, distribute_notes): Likewise.
22479 * cselib.c (cselib_record_set): Likewise.
22480 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
22481 * df-scan.c (df_mark_reg): Likewise.
22482 * dse.c (look_for_hardregs): Likewise.
22483 * dwarf2out.c (reg_loc_descriptor): Likewise.
22484 (multiple_reg_loc_descriptor): Likewise.
22485 * expr.c (write_complex_part, read_complex_part): Likewise.
22486 (emit_move_complex): Likewise.
22487 * haifa-sched.c (setup_ref_regs): Likewise.
22488 * ira-lives.c (mark_hard_reg_live): Likewise.
22489 * lra.c (lra_set_insn_recog_data): Likewise.
22490 * mode-switching.c (create_pre_exit): Likewise.
22491 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
22492 (reload_combine_recognize_pattern): Likewise.
22493 (reload_combine_note_use, move2add_record_mode): Likewise.
22494 (reload_cse_move2add): Likewise.
22495 * reg-stack.c (subst_stack_regs_pat): Likewise.
22496 * regcprop.c (kill_value, copy_value): Likewise.
22497 (copyprop_hardreg_forward_1): Likewise.
22498 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
22499 (build_def_use): Likewise.
22500 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
22501 (deps_analyze_insn): Likewise.
22502 * sched-rgn.c (check_live_1, update_live_1): Likewise.
22503 * sel-sched.c (count_occurrences_equiv): Likewise.
22504 * valtrack.c (dead_debug_insert_temp): Likewise.
22506 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22508 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
22509 * dse.c (note_add_store): Likewise.
22510 * ira-lives.c (mark_hard_reg_dead): Likewise.
22511 * loop-invariant.c (mark_reg_store): Likewise.
22512 (mark_reg_death): Likewise.
22513 * postreload.c (reload_combine): Likewise.
22514 (reload_combine_note_store): Likewise.
22515 (reload_combine_note_use): Likewise.
22516 * recog.c (peep2_reg_dead_p): Likewise.
22518 2015-05-19 Alan Modra <amodra@gmail.com>
22520 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
22521 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
22522 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
22524 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
22525 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
22526 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
22527 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
22529 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
22531 * config/mips/mips.md (JOIN_MODE): New mode iterator.
22532 (join2_load_Store<JOIN_MODE:mode>): New pattern.
22533 (join2_loadhi): Likewise.
22534 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
22535 load-load and store-stores.
22536 * config/mips/mips.opt (mload-store-pairs): New option.
22537 (TARGET_LOAD_STORE_PAIRS): New macro.
22538 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
22539 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
22540 * config/mips/mips.c (mips_load_store_bonding_p): New function.
22542 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
22544 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
22546 * dojump.c (do_compare_rtx_and_jump): Likewise.
22547 * expmed.c (emit_store_flag_1): Likewise.
22548 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
22549 * final.c (sprint_ul): Use std::reverse for reversing a string.
22550 * fold-const.c (extract_muldiv_1): Use std::swap.
22551 * genmodes.c (emit_mode_int_n): Likewise.
22552 * ifcvt.c (dead_or_predicable): Likewise.
22553 * ira-build.c (ira_merge_live_ranges): Likewise.
22554 (swap_allocno_copy_ends_if_necessary): Likewise.
22555 * ira.c (ira_setup_alts): Likewise.
22556 * loop-iv.c (iv_analyze_expr): Likewise.
22557 (implies_p): Likewise.
22558 (canon_condition): Likewise.
22559 * lra-constraints.c (swap_operands): Likewise.
22560 * lra-lives.c (lra_merge_live_ranges): Likewise.
22561 * omega.c (swap): Remove.
22563 (omega_unprotect_1): Use std::swap.
22564 (omega_solve_geq): Likewise.
22565 * optabs.c (expand_binop_directly): Likewise.
22566 (expand_binop): Likewise.
22567 (emit_conditional_move): Likewise.
22568 (emit_conditional_add): Likewise.
22569 * postreload.c (reload_cse_simplify_operands): Likewise.
22570 * reg-stack.c (emit_swap_insn): Likewise.
22571 (swap_to_top): Likewise.
22572 (compare_for_stack_reg): Likewise.
22573 (subst_asm_stack_regs): Likewise.
22574 * reload.c (find_reloads): Likewise.
22575 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
22576 * sel-sched.c (invoke_reorder_hooks): Likewise.
22577 (create_block_for_bookkeeping): Likewise.
22578 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
22579 (lambda_matrix_right_hermite): Use std::swap.
22580 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
22581 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
22582 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
22583 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
22584 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
22585 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
22586 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
22587 * tree-vrp.c (compare_ranges): Likewise.
22588 * var-tracking.c (add_with_sets): Likewise.
22589 (vt_find_locations): Likewise.
22591 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
22593 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
22595 (FBSD_ENDFILE_SPEC): Likewise.
22596 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
22597 config/freebsd-spec.h.
22598 (ENDFILE_SPEC): Likewise.
22600 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
22601 Richard Henderson <rth@redhat.com>
22604 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
22605 Check for a memory location that is not a reference (using an AND)
22606 to an unaligned location here.
22607 * config/alpha/predicates.md (normal_memory_operand): Remove.
22609 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
22611 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
22612 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
22614 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
22616 * config/mips/mips.c (micromips_globals): New variable.
22617 (mips_set_compression_mode): Save and reinitialize target-dependent
22618 state for microMIPS.
22620 2015-05-18 Martin Liska <mliska@suse.cz>
22622 * dbgcnt.def: Add new counter.
22623 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
22625 2015-05-18 Martin Liska <mliska@suse.cz>
22627 * dbgcnt.def: Sort counters.
22628 * opts.c (common_handle_option): Do not compile if
22629 -fdbg-cnt-list is enabled.
22631 2015-05-18 Tom de Vries <tom@codesourcery.com>
22633 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
22634 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
22635 address operator to va_list operand.
22636 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
22638 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
22640 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
22641 * config/s390/s390.c (s390_gimplify_va_arg): Same.
22642 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
22644 2015-05-18 Tom de Vries <tom@codesourcery.com>
22646 * tree-ssa-tail-merge.c: Fix whitespace.
22648 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
22650 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
22651 cortex-a17, and cortex-a17.cortex-a7.
22653 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
22656 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
22658 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
22661 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
22662 QImode inner modes for TARGET_AVX512BW. Force mask operand
22663 to a register for AVX512F modes.
22665 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
22667 * toplev.c (emit_debug_global_declarations): Do not output debug info
22668 when doing slim LTO objects.
22670 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
22672 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
22673 odr_types_equivalent_p): Declare.
22674 (odr_type_p): Use gcc_checking_assert.
22675 (type_in_anonymous_namespace_p) Declare.
22676 (type_with_linkage_p): Declare.
22677 * common.opt (Wlto-type-mismatch): New warning.
22678 * ipa-devirt.c (compound_type_base): New function.
22679 (odr_or_derived_type_p): New function.
22680 (odr_types_equivalent_p): New function.
22681 (add_type_duplicate): Simplify.
22682 (type_with_linkage_p): Add hack to prevent false positives on C types
22683 (type_in_anonymous_namespace_p): Likewise.
22684 * tree.c (need_assembler_name_p): Use type_with_linkage.
22685 * tree.h (type_in_anonymous_namespace_p): Remove.
22686 * doc/invoke.texi (-Wlto-type-mismatch): Document
22688 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
22690 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
22691 (verify_type): Verify STRING_FLAG.
22693 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
22696 * tree-pretty-print.c (percent_K_format): Replace locus pointer
22697 with accessor function.
22698 * tree-diagnostic.c (diagnostic_report_current_function): Use
22699 diagnostic_location function.
22700 (maybe_unwind_expanded_macro_loc): Likewise.
22701 (virt_loc_aware_diagnostic_finalizer): Likewise.
22702 (default_tree_printer): Replace locus pointer with accessor function.
22703 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
22704 (diagnostic_set_info_translated): Initialize second location.
22705 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
22706 (diagnostic_show_locus): Handle two locations. Call
22707 diagnostic_print_caret_line.
22708 (diagnostic_print_caret_line): New.
22709 (default_diagnostic_starter): Use diagnostic_location function.
22710 (diagnostic_report_diagnostic): Use diagnostic_location function.
22711 (verbatim): Do not set text.locus.
22712 * diagnostic.h (struct diagnostic_info): Remove location field.
22713 (struct diagnostic_context): Make caret_chars an array of two.
22714 (diagnostic_location): New inline.
22715 (diagnostic_expand_location): Handle two locations.
22716 (diagnostic_same_line): New inline.
22717 (diagnostic_print_caret_line): Declare.
22718 (CARET_LINE_MARGIN): New constant.
22719 * pretty-print.c (pp_printf): Do not set text.locus.
22720 (pp_verbatim): Do not set text.locus.
22721 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
22722 (struct text_info): Replace locus pointer with locations
22723 array. Add accessor functions.
22725 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
22726 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22729 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
22730 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
22731 large constants in register instead of splitting them.
22733 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
22736 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
22737 replacements in memory addresses.
22738 (get_unaligned_address): Ditto.
22740 2015-05-16 James Bowman <james.bowman@ftdichip.com>
22742 * config/ft32/*: New files for FT32 port.
22743 * doc/install.texi: Add FT32 information.
22744 * doc/invoke.texi: Add FT32 information.
22745 * doc/md.texi: Add FT32 information.
22746 * doc/contrib.texi: Self added.
22748 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
22750 PR tree-optimization/64454
22751 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
22752 (-1 - A -> ~A): Remove unnecessary condition.
22754 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
22756 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
22757 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
22758 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
22760 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
22762 * ipa-chkp.h (chkp_wrap_function): New.
22763 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
22764 (chkp_wrap_function_name): New.
22765 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
22766 to get wrapper name.
22767 * lto-cgraph.c: Include ipa-chkp.h.
22768 (input_cgraph_1): Avoid alias chain for wrappers.
22770 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
22772 PR middle-end/66134
22773 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
22774 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
22776 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22778 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
22779 (AARCH64_FL_SLOWMUL): Delete.
22780 (AARCH64_FL_CRC): Redefine to 1<<3.
22781 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
22783 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22785 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
22788 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
22790 * config/alpha/alpha.md (extendqidi2): Use general_operand
22791 instead of some_operand for operand[1] predicate.
22792 (extendhidi2): Ditto.
22793 (cbranchdi4): Use general_operand instead of some_operand
22794 for operand[1] and operands[2] predicates.
22795 (cstoredi4): Ditto.
22796 * config/alpha/predicates.md (some_operand): Remove unused predicate.
22797 (some_ni_operand): Ditto.
22799 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
22801 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
22802 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
22803 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
22804 low part of the constant using alpha_emit_set_const_1.
22805 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
22807 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
22809 * varasm.c (output_constant_pool_1): Pass down alignment from
22810 constant pool entry's descriptor to output_constant_pool_2.
22811 (output_object_block): Add comment prior to call to
22812 output_constant_pool_1.
22814 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
22816 PR rtl-optimization/65862
22817 * target.def (ira_change_pseudo_allocno_class): New hook.
22818 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
22820 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
22821 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
22823 * ira-costs.c (find_costs_and_classes): Call the hook and change
22824 classes when it is necessary.
22825 * doc/tm.texi: Update.
22827 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
22829 * config/i386/i386.md (sibcall_memory): Check that register with
22830 callee address is not also used as one of the arguments, instead
22831 of checking that it is not live after the sibcall.
22832 (sibcall_pop_memory): Ditto.
22833 (sibcall_value_memory): Ditto.
22834 (sibcall_value_pop_memory): Ditto.
22836 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
22838 * generic-match-head.c (types_match): Handle non-types.
22839 * gimple-match-head.c (types_match): Likewise.
22840 * match.pd: Remove unnecessary TREE_TYPE for types_match.
22842 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
22844 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
22845 (csneg3<mode>_insn): Enable expansion of pattern.
22847 2015-05-14 Nick Clifton <nickc@redhat.com>
22849 * config/rl78/rl78.c (rl78_select_section): Select the correct
22850 default section based upon the category of the decl.
22852 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
22854 PR rtl-optimization/30967
22855 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
22856 destination mode for the cost of scc patterns.
22858 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
22860 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
22861 using SWIM248 mode iterator.
22862 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
22863 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
22864 for operand[2] constraint.
22865 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
22867 2015-05-13 Jakub Jelinek <jakub@redhat.com>
22869 PR middle-end/66133
22870 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
22871 make sure it is never noreturn, even when the task body does not
22873 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
22874 right before GIMPLE_OMP_RETURN.
22875 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
22876 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
22877 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
22879 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22881 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
22882 * tree-ssa-math-opts.c: Include params.h
22883 (pow_synth_sqrt_info): New struct.
22884 (representable_as_half_series_p): New function.
22885 (get_fn_chain): Likewise.
22886 (print_nested_fn): Likewise.
22887 (dump_fractional_sqrt_sequence): Likewise.
22888 (dump_integer_part): Likewise.
22889 (expand_pow_as_sqrts): Likewise.
22890 (gimple_expand_builtin_pow): Use above to attempt to expand
22891 pow as series of square roots. Removed now unused variables.
22893 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
22895 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
22896 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
22897 Remove *p0 and *p1 arguments. Rewrite function.
22898 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
22899 (alpha_split_const_mov): Update calls to alpha_extract_integer and
22900 alpha_emit_set_long_const.
22901 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
22902 (alpha_output_mi_thunk_osf): Ditto.
22903 * config/alpha/alpha.md (movti): Do not check operands[1]
22906 2015-05-13 Richard Biener <rguenther@suse.de>
22908 PR tree-optimization/66129
22909 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
22911 (vect_schedule_slp_instance): Fix typo.
22913 2015-05-13 David Malcolm <dmalcolm@redhat.com>
22915 * common.opt (fdump-internal-locations): New option.
22916 * input.c: Include diagnostic-core.h.
22917 (get_end_location): New function.
22918 (write_digit): New function.
22919 (write_digit_row): New function.
22920 (dump_location_range): New function.
22921 (dump_labelled_location_range): New function.
22922 (dump_location_info): New function.
22923 * input.h (dump_location_info): New prototype.
22924 * toplev.c (compile_file): Handle flag_dump_locations.
22926 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
22928 * gimple-expr.h (is_gimple_constant): Reorder.
22929 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
22931 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
22933 * combine.c (simplify_set): When generating a CC set, if the
22934 source already is in the correct mode, do not wrap it in a
22935 compare. Simplify the rest of that code.
22937 2015-05-13 Richard Biener <rguenther@suse.de>
22939 PR tree-optimization/66123
22940 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
22943 2015-05-13 Richard Biener <rguenther@suse.de>
22945 PR middle-end/66110
22946 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
22948 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
22950 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
22952 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
22953 * aclocal.m4: Regenerated with automake-1.11.6.
22955 2015-05-13 Tom de Vries <tom@codesourcery.com>
22957 PR tree-optimization/66010
22958 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
22959 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
22960 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
22961 and rval based on do_deref.
22963 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
22966 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
22967 link time constants into adress expressions and therefore set
22970 2015-05-13 Jakub Jelinek <jakub@redhat.com>
22973 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
22974 Use SWI248 iterator instead of SWI.
22975 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
22976 Use eq_attr "alternative" "0" instead of match_test in
22977 length_immediate attribute computation.
22978 (*mulvhi4, *mulvhi4_1): New define_insns.
22981 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
22982 SIGNED to get precision of non-negative value.
22984 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
22987 * function.c (diddle_return_value_1): Process bounds first.
22988 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
22991 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
22993 PR rtl-optimization/64616
22994 * loop-invariant.c (can_move_invariant_reg): New.
22995 (move_invariant_reg): Call above new function to decide whether
22996 instruction can just be moved, skipping creation of temporary
22999 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
23001 PR target/pr66047.c
23002 * i386.c (ix86_function_sseregparm): Only return -1 if local function
23003 with implied regparm is called from -mno-sse function.
23004 (init_cumulative_args): Output error if ix86_function_sseregparm
23005 return -1 and SSE register would be needed.
23006 (function_arg_advance_32): Likewise.
23007 (function_arg_32): Likewise.
23008 * i386.h (ix86_args): Add decl field.
23010 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
23013 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
23014 inlines across optimization boundary.
23016 2015-05-12 Jason Merrill <jason@redhat.com>
23018 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
23019 string literal and macro name.
23021 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
23023 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
23024 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
23025 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
23027 2015-05-12 David Malcolm <dmalcolm@redhat.com>
23029 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
23030 (-Wmisleading-indentation): New option.
23031 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
23033 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
23035 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
23036 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
23037 (alpha_extract_integer): Ditto.
23038 (alpha_legitimate_constant_p): Ditto.
23039 (alpha_split_tmode_pair): Ditto.
23040 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
23041 (alpha_expand_mov): Ditto.
23042 (print_operand): Remove handling of 'H' modifier.
23043 <case 'm'>: Remove CONST_DOUBLE handling.
23044 (summarize_insn): Handle CONST_WIDE_INT.
23045 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
23047 (movti): Handle CONST_WIDE_INT.
23048 * config/alpha/constraints.md ('H'): Remove constraint definition.
23049 ('G'): Do not match MODE_FLOAT class.
23050 * config/alpha/predicates.md (const0_operand): Also match
23052 (non_add_const_operand): Ditto.
23053 (non_zero_const_operand): Ditto.
23054 (some_operand): Ditto.
23055 (input_operand): Ditto. Handle CONST_WIDE_INT.
23056 (and_operand): Do not match const_double.
23057 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
23059 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
23062 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
23063 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
23064 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
23065 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
23066 is_mm_seq_cst, is_mm_sync): New accessor functions.
23067 * builtins.c (expand_builtin_sync_operation,
23068 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
23069 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
23070 (get_memmodel, expand_builtin_atomic_compare_exchange,
23071 expand_builtin_atomic_load, expand_builtin_atomic_store,
23072 expand_builtin_atomic_clear): Use new accessor routines.
23073 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
23074 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
23075 (maybe_emit_sync_lock_test_and_set): Use new accessors and
23076 MEMMODEL_SYNC_ACQUIRE.
23077 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
23078 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
23079 expand_atomic_store): Use new accessors.
23080 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
23081 * tsan.c (instrument_builtin_call): Update check for memory model beyond
23082 final enum to use MEMMODEL_LAST.
23083 * c-family/c-common.c: Use new accessor for memmodel_base.
23084 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
23086 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
23087 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
23088 mem_thread_fence, *dmb): Likewise.
23089 * config/alpha/alpha.c (alpha_split_compare_and_swap,
23090 alpha_split_compare_and_swap_12): Likewise.
23091 * config/arm/arm.c (arm_expand_compare_and_swap,
23092 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
23093 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
23094 atomic_loaddi): Likewise.
23095 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
23097 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
23098 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
23100 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
23101 atomic_store<mode>, atomic_compare_and_swap<mode>,
23102 atomic_exchange<mode>): Use new accessors.
23103 * config/mips/mips.c (mips_process_sync_loop): Likewise.
23104 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
23105 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
23106 rs6000_post_atomic_barrier): Add new cases.
23107 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
23108 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
23109 (atomic_load<mode>): Add new cases and use new accessors.
23110 (store_quadpti): Add new cases.
23111 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
23113 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
23114 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
23117 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
23119 * ipa-devirt.c (type_with_linkage_p): New function.
23120 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
23122 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
23123 (can_be_name_hashed_p): Simplify.
23124 (hash_odr_name): Check that type has linkage before checking if it is
23126 (types_same_for_odr): Likewise.
23127 (odr_name_hasher::equal): Likewise.
23128 (odr_subtypes_equivalent_p): Likewise.
23129 (warn_types_mismatch): Likewise.
23130 (get_odr_type): Likewise.
23131 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
23132 * ipa-utils.h (odr_type_p): Move offline.
23133 * tree.c (need_assembler_name_p): Fix handling of types
23135 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
23137 2015-05-12 David Malcolm <dmalcolm@redhat.com>
23139 * timevar.c (timevar_enable): Delete in favor of...
23140 (g_timer): New global.
23141 (struct timevar_def): Move to timevar.h inside class timer.
23142 (struct timevar_stack_def): Likewise.
23143 (timevars): Delete global in favor of field "m_timevars" within
23144 class timer in timevar.h
23145 (stack): Likewise, in favor of field "m_stack".
23146 (unused_stack_instances): Likewise, in favor of field
23147 "m_unused_stack_instances".
23148 (start_time): Likewise, in favor of field "m_start_time".
23149 (get_time): Eliminate check for timevar_enable.
23150 (timer::timer): New function, built from part of timevar_init.
23151 (timevar_init): Rewrite idempotency test from using
23152 "timevar_enable" bool to using dynamic allocation of "g_timer".
23153 Move rest of implementation into timer's constructor.
23154 (timevar_push_1): Rename to...
23155 (timer::push): ...this, adding "m_" prefixes to variables that
23156 are now fields of timer.
23157 (timevar_pop_1): Likewise, rename to...
23158 (timer::pop): ...this, and add "m_" prefixes.
23159 (timevar_start): Replace test for "timevar_enable" with one for
23160 "g_timer", and move bulk of implementation to...
23161 (timer::start): ...here, adding "m_" prefixes.
23162 (timevar_stop): Likewise, from here...
23163 (timer::stop): ...to here.
23164 (timevar_cond_start): Likewise, from here...
23165 (timer::cond_start): ...to here.
23166 (timevar_cond_stop): Likewise, from here...
23167 (timer::cond_stop): ...to here.
23168 (validate_phases): Rename to...
23169 (timer::validate_phases): ...this, and add "m_" prefixes. Make
23170 locals "total" and "tv" const.
23171 (timevar_print): Rename to...
23172 (timer::print): ...this, and add "m_" prefixes. Make locals
23173 "total" and "tv" const. Eliminate test for timevar_enable.
23174 * timevar.h (timevar_enable): Eliminate.
23175 (g_timer): New declaration.
23176 (timevar_push_1): Eliminate.
23177 (timevar_pop_1): Eliminate.
23178 (timevar_print): Eliminate.
23179 (class timer): New class.
23180 (timevar_push): Rewrite to use g_timer.
23181 (timevar_pop): Likewise.
23182 * toplev.c (toplev::~toplev): Likewise.
23184 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
23186 * arm-protos.h (arm_sched_autopref): Delete.
23187 (tune_params): Re-organize, use enums for flag values.
23188 (FUSE_OPS): New macro.
23189 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
23190 (ARM_PREFETCH_BENEFICIAL): Likewise.
23191 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
23192 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
23193 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
23194 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
23195 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
23196 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
23197 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
23198 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
23200 (arm_option_override, thumb2_reorg, arm_print_tune_info)
23201 (aarch_macro_fusion_pair_p): Update uses of current_tune.
23202 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
23204 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
23206 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
23209 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
23210 Sandra Loosemore <sandra@codesourcery.com>
23212 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
23214 (REG_CLASS_NAMES): Add "IJMP_REGS".
23215 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
23216 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
23217 use new "c" register constraint.
23218 * config/nios2/constraint.md (c): New register constraint
23219 corresponding to IJMP_REGS.
23221 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23223 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
23224 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
23225 define_splits): Delete, revamp, transmogrify into ...
23226 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
23227 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
23228 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
23231 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23233 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
23234 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
23236 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23238 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
23239 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
23240 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
23241 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
23242 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
23243 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
23244 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
23245 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
23246 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
23247 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
23248 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
23249 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
23250 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
23251 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
23252 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
23253 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
23254 and 30 corresponding splitters): Delete.
23256 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23258 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
23261 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23263 * combine.c (recog_for_combine_1): New function, factored out
23264 from recog_for_combine.
23265 (change_zero_ext): New function.
23266 (recog_for_combine): If recog fails, try again with the pattern
23267 modified by change_zero_ext; if that still fails, restore the
23270 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23272 * combine.c (get_undo_marker): New function.
23273 (undo_to_marker): New function, largely factored out from ...
23274 (undo_all): ... this. Adjust.
23276 2015-05-12 Richard Biener <rguenther@suse.de>
23278 PR tree-optimization/66101
23279 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
23280 fixup if we turn a loop exit edge to a fallthru edge.
23282 2015-05-12 Richard Biener <rguenther@suse.de>
23284 PR tree-optimization/37021
23285 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
23286 (SLP_TREE_TWO_OPERATORS): New define.
23287 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
23288 SLP_TREE_TWO_OPERATORS.
23289 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
23291 (vect_build_slp_tree): Adjust.
23292 (vect_analyze_slp_cost_1): Likewise.
23293 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
23294 emitting two vector stmts and mixing the results.
23296 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
23298 * call.c (print_z_candidates): Remove dead code.
23300 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23302 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
23303 and zEC12_simple_fp.
23304 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
23307 2015-05-12 Tom de Vries <tom@codesourcery.com>
23309 PR tree-optimization/66010
23310 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
23312 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
23313 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
23314 va_lists are passed, and remove corresponding handling.
23315 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
23316 do_deref argument to ifn_va_arg.
23317 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
23320 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23323 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
23324 REG before taking its REGNO.
23326 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
23328 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
23329 rsp->sign_bit_copies and rsp->nonzero_bits into ...
23330 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
23331 present to get more accurate information about the number of sign bit
23332 copies and non zero bits.
23334 2015-05-12 Richard Biener <rguenther@suse.de>
23336 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
23337 do not allow unrolling.
23339 2015-05-11 Richard Henderson <rth@redhat.com>
23341 * config/i386/i386-modes.def (CCP): New.
23342 * config/i386/i386.c (put_condition_code): Handle it.
23343 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
23345 2015-05-11 Richard Henderson <rth@redhat.com>
23347 * target.def (md_asm_clobbers): Replace with...
23348 (md_asm_adjust): this.
23349 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
23350 (TARGET_MD_ASM_ADJUST): New.
23351 * tm.texi: Rebuild.
23352 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
23353 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
23354 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
23356 * cfgexpand.c (check_operand_nalternatives): Accept vector of
23357 constraints instead of lists of outputs and inputs.
23358 (expand_asm_stmt): Save and restore input_location around the
23359 body of the function. Move asm data into vectors instead of
23360 building tree lists. Generate cleanup sequences as needed,
23361 rather than waiting til the end. Use new md_asm_adjust hook.
23363 * config/vxworks.c: Include vec.h before target.h.
23364 * gimple.c: Likewise.
23365 * incpath.c: Likewise.
23366 * mode-switching.c: Likewise.
23368 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
23369 (cris_md_asm_adjust): this.
23370 (TARGET_MD_ASM_CLOBBERS): Remove.
23371 (TARGET_MD_ASM_ADJUST): New.
23372 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
23373 (ix86_md_asm_adjust): this.
23374 (TARGET_MD_ASM_CLOBBERS): Remove.
23375 (TARGET_MD_ASM_ADJUST): New.
23376 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
23377 (mn10300_md_asm_adjust): this.
23378 (TARGET_MD_ASM_CLOBBERS): Remove.
23379 (TARGET_MD_ASM_ADJUST): New.
23380 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
23381 (rs6000_md_asm_adjust): this.
23382 (TARGET_MD_ASM_CLOBBERS): Remove.
23383 (TARGET_MD_ASM_ADJUST): New.
23384 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
23385 (visium_md_asm_adjust): this.
23386 (TARGET_MD_ASM_CLOBBERS): Remove.
23387 (TARGET_MD_ASM_ADJUST): New.
23389 2015-05-11 Richard Henderson <rth@redhat.com>
23391 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
23392 if noutputs is zero.
23393 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
23395 * cfgexpand.c (expand_asm_operands): Merge into...
23396 (expand_asm_stmt): ... here.
23398 * cfgexpand.c (expand_asm_operands): Don't call
23399 resolve_asm_operand_names.
23400 * stmt.c (resolve_asm_operand_names): Clarify block comment.
23402 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
23404 * dwarf2out.c (gen_member_die): Sanity check that we access
23405 TYPE_MAIN_VARIANT for TYPE_METHODS.
23406 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
23407 checking TYPE_METHODS.
23408 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
23410 (build_distinct_type_copy): Clear TYPE_METHODS.
23411 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
23412 (verify_type): Allow TYPE_METHODS to be error_mark_node.
23413 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
23415 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
23417 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
23418 (emit_pattern_before_setloc): Likewise.
23420 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
23422 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
23423 for define_peephole2s.
23424 (get_peephole2_pattern): New function.
23425 (main): Use it. Call validate_pattern.
23427 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23429 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
23430 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
23431 (Last callee saved reg is different for AVR_TINY architecture)
23433 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
23435 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
23436 when looking for memory references.
23438 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
23441 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
23442 via function pointers.
23444 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
23446 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
23447 indirect call by forcing address into a pseudo with -fno-plt.
23448 * common.opt (flag_plt): New option.
23449 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
23450 ([-fno-plt]): Document.
23452 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
23455 * config/rs6000/option-defaults.h: Add space between string literal
23458 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
23460 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
23461 accross ARM targets.
23463 2015-05-11 Christian Bruel <christian.bruel@st.com>
23465 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
23466 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
23468 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
23470 PR rtl-optimization/66076
23471 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
23472 Don't grow the heap array if it is already big enough from a
23473 previous iteration.
23475 2015-05-11 Christian Bruel <christian.bruel@st.com>
23477 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
23478 (is_called_in_ARM_mode): Remove.
23479 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
23480 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
23481 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
23482 arm_declare_function_name.
23484 2015-05-11 Christian Bruel <christian.bruel@st.com>
23486 * config/arm/arm.c (arm_option_override): Reoganized and split into :
23487 (arm_option_params_internal); New function.
23488 (arm_option_check_internal): New function.
23489 (arm_option_override_internal): New function.
23490 (thumb_code, thumb1_code): Remove.
23491 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
23492 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
23493 (thumb_code, thumb1_code): Remove.
23494 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
23496 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
23498 * config/alpha/alpha.c (alpha_emit_set_const_1)
23499 (alpha_emit_set_long_const, alpha_extract_integer)
23500 (alpha_legitimate_constant_p, alpha_split_const_mov)
23501 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
23502 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
23503 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
23505 * config/alpha/predicates.md (mode_mask_operand): Do not match
23507 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
23508 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
23509 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
23510 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
23511 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
23513 2015-05-11 Jakub Jelinek <jakub@redhat.com>
23516 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
23517 default_binds_local_p_2.
23518 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
23519 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
23521 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23523 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
23525 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23527 Patch by Richard Biener
23528 * coverage.c (coverage_obj_init): Delay building of type variant
23529 until the type is finished.
23531 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23533 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
23534 mismatch between C and C++ type; compoare correctly ARG_TYPES
23535 for non-prototypes and output correctly parameter index for METHOD_TYPE.
23536 (odr_types_equivalent_p): Fix wording of warning about attributes;
23537 it is OK to match prototype and non-prototype.
23539 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23541 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
23542 TYPE_ARG_TYPES list.
23543 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
23544 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
23546 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23548 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
23549 * tree.h (is_lang_specific): Constify.
23551 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
23553 PR tree-optimization/64454
23554 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
23557 2015-05-08 Jason Merrill <jason@redhat.com>
23559 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
23560 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
23561 config/darwin.h, config/darwin9.h, config/elfos.h,
23562 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
23563 config/microblaze/microblaze.h, config/mips/mips.h,
23564 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
23565 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
23566 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
23567 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
23568 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
23569 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
23570 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
23571 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
23572 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
23573 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
23574 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
23575 between string literal and macro name.
23577 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23579 * jump.c: Change argument types to rtx_insn *.
23582 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23584 * lra-constraints.c: Change argument type to rtx_insn *.
23586 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23588 * df-problems.c: Change argument type to rtx_insn *.
23590 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23592 * combine.c: Change argument type to rtx_insn *.
23594 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23597 * rtlanal.c: Change argument type to rtx_insn *.
23599 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23601 * sched-deps.c: Change argument types to rtx_insn *.
23602 * sched-int.h: Adjust.
23604 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23606 * dwarf2cfi.c: Change argument type to rtx_insn *.
23608 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23610 * ira.c (decrease_live_ranges_number): Changetype of local
23611 variable to rtx_insn *.
23612 * recog.c: Change argument types to rtx_insn *.
23615 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23617 * reorg.c: Change argument types to rtx_insn *.
23619 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23621 * ira-color.c: Change argument types to rtx_insn *.
23622 * lra-eliminations.c: Likewise.
23625 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23627 * gcse.c: Change argument types to rtx_insn *.
23629 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23631 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
23633 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23635 * emit-rtl.c (emit_debug_insn_before): Change argument type to
23639 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23641 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
23644 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23646 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
23649 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23651 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
23654 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23656 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
23659 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23661 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
23665 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23667 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
23671 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23673 * except.c (can_nonlocal_goto): Change type of argument to
23677 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23679 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
23682 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23684 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
23685 * cfgrtl.c (can_delete_label_p): Adjust.
23688 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23690 * reorg.c (stop_search_p): Change argument to rtx_insn *.
23692 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23694 * except.c (make_reg_eh_region_note): Change argument to
23696 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
23697 * except.h: Adjust.
23699 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23701 * mode-switching.c (commit_mode_sets): Change type of local
23702 variable from rtx to rtx_insn *.
23704 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
23706 * doc/install.texi (--enable-languages): Add missing jit and lto info.
23707 Add ^ to grep command.
23708 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
23709 arg to last gimple_simplify declaration. Add missing gimple_build
23710 declaration for built-in function case with four tree args.
23712 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
23713 Szabolcs Nagy <szabolcs.nagy@arm.com>
23715 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
23716 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
23717 (GNU_USER_DYNAMIC_LINKERN32): Update.
23719 2015-05-08 Richard Biener <rguenther@suse.de>
23721 PR tree-optimization/66036
23722 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
23723 Handle strided group loads.
23724 (vect_verify_datarefs_alignment): Likewise.
23725 (vect_enhance_data_refs_alignment): Likewise.
23726 (vect_analyze_group_access): Likewise.
23727 (vect_analyze_data_ref_access): Likewise.
23728 (vect_analyze_data_ref_accesses): Likewise.
23729 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
23730 (vectorizable_load): Likewise.
23732 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
23734 * config/rs6000/rs6000.md: Require operand inequality in one
23737 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
23738 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
23740 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
23742 * config/rx/rx.md (movdi, movdf): Likewise.
23743 Likewise for define_peephole2s.
23745 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
23747 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
23748 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
23749 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
23750 vtst_u64): Rewrite using gcc vector extensions.
23752 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
23754 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
23755 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
23757 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
23759 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
23761 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
23763 * config/glibc-stdint.h (OPTION_MUSL): Define.
23764 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
23765 Change the definition based on OPTION_MUSL for 64 bit targets.
23766 * config/linux.h (OPTION_MUSL): Redefine.
23767 * config/alpha/linux.h (OPTION_MUSL): Redefine.
23768 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
23769 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
23771 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
23772 Szabolcs Nagy <szabolcs.nagy@arm.com>
23774 * config.gcc (LIBC_MUSL): New tm_defines macro.
23775 * config/linux.h (OPTION_MUSL): Define.
23776 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
23777 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
23778 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
23779 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
23780 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
23781 * config/linux.opt (mmusl): New option.
23782 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
23783 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
23784 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
23785 * configure: Regenerate.
23787 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
23788 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23791 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
23792 * config/i386/knetbsd-gnu64.h: New file.
23794 2015-05-08 Marek Polacek <polacek@redhat.com>
23797 * doc/invoke.texi: Document -Woverride-init-side-effects.
23799 2015-05-07 Marek Polacek <polacek@redhat.com>
23802 * doc/invoke.texi: Document -Wshift-negative-value.
23804 2015-05-06 Aditya Kumar <hiraditya@msn.com>
23806 * gcov-tool.c (do_merge): Refactore to remove int ret.
23807 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
23808 !type == FUNC to type != FUNC.
23809 * reload.h (struct target_reload): Changee to type of
23810 x_spill_indirect_levels from bool to unsigned char.
23812 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
23814 * rtl.h (always_void_p): New function.
23815 * gengenrtl.c (always_void_p): Likewise.
23816 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
23817 with code foo are always VOIDmode.
23818 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
23819 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
23820 compare-elim.c, config/aarch64/aarch64.c,
23821 config/aarch64/aarch64.md, config/alpha/alpha.c,
23822 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
23823 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
23824 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
23825 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
23826 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
23827 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
23828 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
23829 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
23830 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
23831 config/ia64/vect.md, config/iq2000/iq2000.c,
23832 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
23833 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
23834 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
23835 config/mep/mep.c, config/microblaze/microblaze.c,
23836 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
23837 config/mn10300/mn10300.c, config/msp430/msp430.c,
23838 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
23839 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
23840 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
23841 config/rs6000/altivec.md, config/rs6000/rs6000.c,
23842 config/rs6000/rs6000.md, config/rs6000/vector.md,
23843 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
23844 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
23845 config/sh/sh.md, config/sh/sh_treg_combine.cc,
23846 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
23847 config/spu/spu.md, config/stormy16/stormy16.c,
23848 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
23849 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
23850 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
23851 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
23852 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
23853 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
23854 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
23855 var-tracking.c: Update calls accordingly.
23857 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
23860 PR middle-end/54303
23861 * varasm.c (function_mergeable_rodata_prefix): New function.
23862 (mergeable_string_section): Use it.
23863 (mergeable_constant_section): Use it.
23865 2015-05-07 Jeff Law <law@redhat.com>
23868 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23869 simplifier to narrow arithmetic.
23870 * generic-match-head.c: (types_match, single_use): New functions.
23871 * gimple-match-head.c: (types_match, single_use): New functions.
23873 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23875 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
23878 2015-05-07 Richard Biener <rguenther@suse.de>
23880 PR tree-optimization/66002
23881 * passes.def: Schedule another pass_merge_phi after ifcombine, right
23884 2015-05-07 Marek Polacek <polacek@redhat.com>
23885 Martin Uecker <uecker@eecs.berkeley.edu>
23887 * doc/invoke.texi: Document -fsanitize=bounds-strict.
23888 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
23889 into SANITIZE_NONDEFAULT.
23890 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
23892 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
23895 * config/alpha/alpha.c (alpha_override_options_after_change): New.
23896 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
23897 (alpha_override_options): Move align_loops, align_jumps and
23898 align_functions handling into alpha_override_options_after_change.
23900 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
23901 Chris Jones <chrisj@nvidia.com>
23902 Joshua Conner <jconner@nvidia.com>
23904 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
23905 linking of crtfastmath.o.
23906 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
23908 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
23910 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
23911 (cstore<mode>4_unsigned_imm): New expander.
23912 (cstore<mode>4): Remove empty constraint strings. Use the new
23915 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
23918 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
23921 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
23923 * config/aarch64/geniterators.sh: Use standard BRE in sed.
23925 2015-05-06 Alan Modra <amodra@gmail.com>
23928 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
23929 (UNSPEC_NOP): Define.
23930 (reload_vsx_from_gpr<mode>): Add missing DONE.
23931 (reload_gpr_from_vsx<mode>): Likewise.
23932 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
23933 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
23935 2015-05-06 Christian Bruel <christian.bruel@st.com>
23938 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
23939 align_jumps, align_functions into aarch64_override_options_after_change.
23941 2015-05-06 Richard Biener <rguenther@suse.de>
23943 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
23944 vect_transform_slp_perm_load to check if we support a permutation
23945 for basic-block vectorization.
23947 2015-05-06 Nick Clifton <nickc@redhat.com>
23949 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
23950 used, even if it is not being used as a frame pointer.
23952 2015-05-05 Jason Merrill <jason@redhat.com>
23954 * dwarf2out.c (gen_member_die): Don't emit anything for an
23955 anonymous class constructor.
23957 2015-05-05 David Malcolm <dmalcolm@redhat.com>
23959 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
23960 that it reflects the block structure.
23961 (afdo_propagate_edge): Likewise.
23962 (afdo_calculate_branch_prob): Likewise.
23963 (afdo_annotate_cfg): Likewise.
23964 * cfgcleanup.c (equal_different_set_p): Likewise.
23965 (try_crossjump_to_edge): Likewise.
23966 * cgraph.c (cgraph_node::verify_node): Likewise.
23967 * cgraphunit.c (expand_all_functions): Likewise.
23968 * config/i386/i386.c (ix86_expand_copysign): Likewise.
23969 (exact_dependency_1): Likewise.
23970 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
23971 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
23972 * gensupport.c (process_define_subst): Likewise.
23973 * lto-wrapper.c (merge_and_complain): Likewise.
23974 * tree-if-conv.c (if_convertible_bb_p): Likewise.
23975 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
23976 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
23977 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
23978 * tree-vect-loop.c (vectorizable_reduction): Likewise.
23979 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
23980 * tree-vect-stmts.c (vectorizable_shift): Likewise.
23981 * tree-vrp.c (vrp_finalize): Likewise.
23982 * tree.c (variably_modified_type_p): Likewise.
23984 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
23986 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
23987 on darwin12 and later.
23988 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
23989 file to pass -rdynamic on darwin12 and later.
23990 * config/darwin.opt (rdynamic): Add.
23992 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
23994 * doc/extend.texi (C Extensions): Update menu for moved Variable
23995 Attributes and Type Attributes sections.
23997 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
24000 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
24001 if rep_8byte stringop strategy was specified for 32-bit target.
24003 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
24006 * config/i386/i386.md (vector convert to float spltiter): Check for
24007 xmm16+, when splitting scalar float conversion.
24008 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
24010 2015-05-05 Nick Clifton <nickc@redhat.com>
24012 * config/msp430/msp430-opts.h (enum msp430_regions): New.
24013 * config/msp430/msp430.c (msp430_override_options): Complain if
24014 -mcode-region or -mdata-region is used on a non MSP430X.
24015 (msp430_section_attr): New function. Checks lower, upper and
24017 (msp430_attribute_table): Add lower, upper and either.
24018 (gen_prefix): New function. Generates a prefix for a section
24020 (msp430_select_section): New function - handles the choice of
24021 section for an object. Takes into account memory region
24022 attributes and options.
24023 (msp430_function_section): Use gen_prefix.
24024 (TARGET_SECTION_TYPE_FLAGS): Define.
24025 (msp430_section_type_flags): New function.
24026 (TARGET_ASM_UNIQUE_SECTION): Define.
24027 (msp430_unique_section): New function.
24028 (msp430_output_aligned_decl_common): New function.
24029 (msp430_do_not_relax_short_jumps): New function.
24030 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
24032 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
24033 * config/msp430/msp430-protos.h
24034 (msp430_do_not_relax_short_jumps): New prototype.
24035 (msp430_output_aligned_decl_common): New prototype.
24036 * config/msp430/msp430.md (length): New attribute.
24037 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
24038 then use a long code sequence for short jumps.
24039 * config/msp430/msp430.opt (mcode-region): New.
24040 (mdata-region): New.
24041 * doc/invoke.texi: Document new options.
24042 * doc/extend.texi: Document new attributes.
24044 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
24046 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
24047 (tune_params): Add field branch_costs.
24048 (aarch64_branch_cost): Declare.
24049 * gcc/config/aarch64.c (generic_branch_cost): New.
24050 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
24051 (cortexa53_tunings): Likewise.
24052 (cortexa57_tunings): Likewise.
24053 (thunderx_tunings): Likewise.
24054 (xgene1_tunings): Likewise.
24055 (aarch64_branch_cost): Define.
24056 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
24058 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
24060 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
24061 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
24062 * config/i386/i386.md: Ditto.
24063 * config/i386/winnt.c: Ditto.
24065 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
24067 * doc/extend.texi (__atomic Builtins): Move implementation details
24068 to the end of the description, rewrite opening paragraphs, state
24069 difference with __sync builtins, state C11/C++11 assumptions,
24070 weaken itemized descriptions, add explanation of memory model
24071 behaviour, expand description of compare-exchange, simplify text.
24073 2015-05-05 Renlin Li <renlin.li@arm.com>
24075 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
24077 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
24079 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
24080 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
24081 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
24082 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
24083 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
24084 * configure: Regenerate.
24085 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
24086 * doc/install.texi (aarch64*-*-*): Document new
24087 --enable-fix-cortex-a53-843419 option.
24088 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
24089 and -mno-fix-cortex-a53-843419 options.
24091 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
24094 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
24096 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
24098 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
24099 fix overactive TYPE_MIN_VALUE check and add FIXME for type
24100 compatibility problems.
24102 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
24104 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
24106 (cbranchsi4_reg): New.
24107 * config/microblaze/microblaze.c
24108 (microblaze_expand_conditional_branch_reg): New.
24109 * config/microblaze/microblaze-protos.h
24110 (microblaze_expand_conditional_branch_reg): New prototype.
24112 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
24114 * config/microblaze/microblaze.md (peephole2): New.
24116 2015-05-04 Jeff Law <law@redhat.com>
24119 2015-05-04 Jeff Law <law@redhat.com>
24121 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
24122 simplifier to narrow arithmetic.
24123 * generic-match-head.c: (types_match, single_use): New functions.
24124 * gimple-match-head.c: (types_match, single_use): New functions.
24126 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
24129 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
24130 (split_branches): Likewise.
24132 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
24134 * common.opt (fdelete-null-pointer-checks): Init to -1.
24135 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
24136 override flag_delete_null_pointer_checks default.
24137 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
24138 behavior re address zero. Better document target-specific behavior.
24139 (-fisolate-errneous-paths-dereference): Mention relationship to
24140 -fdelete-null-pointer-checks.
24142 2015-05-04 Jakub Jelinek <jakub@redhat.com>
24144 PR tree-optimization/65984
24145 * ubsan.c: Include tree-cfg.h.
24146 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
24147 stmt_could_throw_p test, rename can_throw variable to ends_bb.
24149 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
24151 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
24152 to CONST_DOUBLE_P predicate.
24153 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
24154 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
24155 allow only operands that satisfy standard_sse_constant_p predicate.
24156 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
24157 to CONST_DOUBLE_P predicate.
24159 2015-05-04 Jeff Law <law@redhat.com>
24161 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
24162 simplifier to narrow arithmetic.
24163 * generic-match-head.c: (types_match, single_use): New functions.
24164 * gimple-match-head.c: (types_match, single_use): New functions.
24166 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
24168 * config/arm/arm.c: Restore bootstrap.
24170 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
24172 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
24173 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
24174 as CONST_WIDE_INT, not CONST_DOUBLE.
24175 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
24176 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
24177 (ix86_find_base_term): Do not check for CONST_DOUBLE.
24178 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
24179 (ix86_build_signbit_mask): Rewrite using wide ints.
24180 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
24181 (ix86_rtx_costs): Handle CONST_WIDE_INT.
24182 (find_constant): Ditto.
24183 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
24184 using gen_int_mode.
24185 * config/i386/predicates.md (x86_64_immediate_operand)
24186 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
24187 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
24188 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
24189 (const0_operand): Also match const_wide_int.
24190 (constm1_operand): Ditto.
24191 (const1_operand): Ditto.
24193 2015-05-04 Richard Biener <rguenther@suse.de>
24195 PR tree-optimization/65965
24196 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
24197 store groups at gaps.
24199 2015-05-04 Richard Biener <rguenther@suse.de>
24201 PR tree-optimization/65935
24202 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
24203 then make sure to apply that swapping to the IL.
24205 2015-05-04 Jakub Jelinek <jakub@redhat.com>
24207 * Makefile.in (PATCHLEVEL_c): New variable.
24208 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
24209 expand the same way as if DEVPHASE_c was non-empty.
24211 2015-05-04 Kai Tietz <ktietz@redhat.com>
24214 * lto-wrapper.c (run_gcc): Open filename
24217 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
24219 * doc/extend.texi (Variable Attributes, Type Attributes): Move
24220 sections up in file, to immediately after the Function Attributes
24223 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
24225 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
24227 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24229 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
24230 (insert_partition_copy_on_edge): Adjust.
24231 (insert_rtx_to_part_on_edge): Likewise.
24232 (insert_part_to_rtx_on_edge): Likewise.
24234 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24236 * function.c (set_return_jump_label): Change type of argument to
24238 * function.h (set_return_jump_label): Adjust.
24240 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24242 * reload.h (struct reg_equivs_t): Change type of init to
24244 * ira.c (fix_reg_equiv_init): Adjust.
24245 * reload1.c (eliminate_regs_1): Likewise.
24246 (init_eliminable_invariants): Likewise.
24248 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24250 * cselib.c (fp_setter_insn): Take a rtx_insn *.
24251 * cselib.h (fp_setter_insn): Adjust.
24253 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24255 * recog.c (struct validate_replace_src_data): Change type of
24256 insn field to rtx_insn *.
24257 (validate_replace_src_group): Change type of argument to rtx_insn *.
24258 * recog.h (validate_replace_src_group): Adjust.
24260 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24262 * haifa-sched.c: Change the type of some variables to rtx_insn *.
24263 * sched-deps.c: Likewise.
24264 * sched-int.h: Likewise.
24265 * sched-rgn.c: Likewise.
24266 * sel-sched.c: Likewise.
24268 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24271 * config/i386/i386.c: Change the type of some arguments to
24273 * config/arm/arm.c: Likewise.
24275 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24277 * lra-constraints.c: Change type of some arguments to rtx_insn *.
24279 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24281 * regcprop.c (kill_autoinc_value): Change type of argument to
24284 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24286 * genrecog.c (print_subroutine): Adjust.
24287 * recog.c (get_bool_attr_mask_uncached): Likewise.
24288 * recog.h (struct recog_data_d): Change the type of insn to
24291 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24293 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
24295 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24297 * df-problems.c (df_set_note): Change type of argument to
24300 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24302 * builtins.c (expand_builtin_trap): Change type of local
24303 variable to rtx_insn *.
24304 (add_sched_insns_for_speculation): Likewise.
24305 (ix86_emit_save_regs): Likewise.
24306 (get_scratch_register_on_entry): Likewise.
24307 (ix86_emit_restore_reg_using_pop): Likewise.
24308 (ix86_emit_leave): Likewise.
24309 (ix86_emit_restore_regs_using_mov): Likewise.
24310 (ix86_expand_epilogue): Likewise.
24312 (rl78_alloc_physical_registers_umul): Likewise.
24313 * cselib.c (discard_useless_locs): Likewise.
24314 (cselib_invalidate_regno): Likewise.
24315 (cselib_invalidate_mem): Likewise.
24316 * function.c (expand_function_start): Likewise.
24317 (emit_use_return_register_into_block): Likewise.
24318 * gcse.c: Likewise.
24319 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
24320 * ifcvt.c (noce_get_alt_condition): Likewise.
24321 * loop-doloop.c (doloop_condition_get): Likewise.
24322 * lra-constraints.c (inherit_in_ebb): Likewise.
24323 * modulo-sched.c (sms_schedule_by_order): Likewise.
24324 * recog.c (next_insn_tests_no_inequality): Likewise.
24325 * reorg.c (emit_delay_sequence): Likewise.
24326 (update_reg_dead_notes): Likewise.
24327 (fix_reg_dead_note): Likewise.
24328 (fill_slots_from_thread): Likewise.
24329 (delete_computation): Likewise.
24331 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
24333 * doc/extend.texi (Variable Attributes): Add menu and proper
24334 @nodes to subsections. Move Microsoft Windows attributes to
24335 their own subsection.
24336 (Type Attributes): Reorganize introduction to remove duplicate
24337 list of attributes. Add menu and proper @nodes to subsections.
24338 Alphabetize the main table of common attributes.
24340 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
24342 * match.pd: New simplification patterns.
24343 (x + (x & 1)) -> ((x + 1) & ~1)
24344 (x & ~(x & y)) -> ((x & ~y))
24345 (x | ~(x | y)) -> ((x | ~y))
24347 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24349 * target.def (attribute_table): Mention that struct attribute_spec
24350 is defined in tree-core.h rather than tree.h
24351 * doc/tm.texi: Regenerate.
24353 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
24355 * genrecog.c (test): Rename to rtx_test. Update rest of file
24358 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
24360 PR translation/65959
24361 * params.h (DEFPARAM): Rename msgid to nocmsgid.
24363 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
24365 * gcc/config/aarch64/aarch64-protos.h (tune_params):
24366 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
24367 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
24368 Return value depending on target.
24369 (generic_tunings): Initialize new target settings.
24370 (cortexa53_tunings): Likewise.
24371 (cortexa57_tunings): Likewise.
24372 (thunderx_tunings): Likewise.
24373 (xgene1_tunings): Likewise.
24375 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
24377 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
24378 Make Cortex-A53 shift costs more accurate.
24380 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24382 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
24385 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
24387 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
24388 Calculate cost of op0 and op1 in PLUS and MINUS cases.
24390 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24392 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
24393 Add cost of op0 in the compare-with-fpzero case.
24395 2015-04-30 David Malcolm <dmalcolm@redhat.com>
24397 * builtins.c (fold_builtin_1): Remove spurious second
24399 * cgraph.h (symtab_node::get_availability): Likewise.
24400 * opts.c (common_handle_option): Remove spurious second semicolon.
24401 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
24402 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
24404 2015-04-30 Caroline Tice <cmtice@google.com>
24406 PR gcov-profile/65929
24407 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
24408 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
24409 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
24410 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
24411 * doc/tm.texi: Regenerate.
24412 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
24413 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
24414 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
24415 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
24417 2015-04-30 Marek Polacek <polacek@redhat.com>
24419 * varasm.c (handle_cache_entry): Fix logic.
24421 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24423 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
24424 (*extrsi5_insn_uxtw_alt): Likewise.
24425 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
24426 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
24429 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24431 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
24434 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24436 * config/aarch64/aarch64.md
24437 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
24438 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
24439 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
24440 appropriately. Handle alternative EON form.
24442 2015-04-30 Renlin Li <renlin.li@arm.com>
24444 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
24445 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
24447 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
24450 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
24451 -fstrict-aliasing boundaries.
24453 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24455 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
24456 and [SU]MNEGL patterns.
24458 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24460 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
24461 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
24462 combined arithmetic-shift ops. Properly handle all shift and extend
24463 operations that can occur in combination with PLUS/MINUS.
24464 Rename maybe_fma to compound_p.
24465 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
24466 arithmetic and shift operations.
24468 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24470 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
24471 rather than arith_shift cost when costing ADD/MINUS of an
24474 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
24477 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
24480 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
24482 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
24483 are for the same position.
24485 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
24487 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
24489 (vectorize_loops): Use it.
24491 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
24493 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
24494 for aggregate types.
24495 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
24496 type to be non_ODR.
24497 * tree.c (need_assembler_name_p): Compute mangled name for
24498 non-fundamental types and integer types.
24500 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
24502 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
24504 * expr.c (expand_expr_real_2): Likewise.
24506 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
24508 * tree.c (build_common_builtin_nodes): Do not build
24509 __builtin_alloca_with_align as equivalent of library alloca.
24511 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
24513 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
24514 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
24516 * tree.c: Include print-tree.h and ipa-utils.h
24517 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
24518 (free_lang_data_in_cgraph): Call verify_type.
24519 (verify_type_variant): New function.
24520 (verify_type): New function.
24521 * tree.h (verify_type): Declare.
24523 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
24525 * config/mips/mips-cpus.def: (mips4): Change default processor
24526 from PROCESSOR_R8000 to PROCESSOR_R10000.
24528 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
24530 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
24531 la/jalr instead of jal.
24533 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
24536 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
24537 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
24538 (setcc+movzbl peephole2): Check also clobbered reg.
24539 (setcc+andl peephole2): Ditto.
24541 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
24544 * config/nvptx/mkoffload.c (target_ilp32): New variable.
24545 (main): Set it depending on "-foffload-abi=[...]".
24546 (compile_native, main): Use it to pass "-m32" or "-m64" to the
24549 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
24552 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
24553 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
24554 Flip lane index back at assembly time for bigendian.
24556 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
24558 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
24559 * gimplify.c (gimplify_omp_workshare): Use it.
24561 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
24563 * Makefile.in (build/genrecog.o): Depend on inchash.h.
24564 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
24566 * genrecog.c: Rewrite most of the code except for the third page.
24568 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
24570 * inchash.h, inchash.c: Include bconfig.h for build objects.
24571 * Makefile.in (build/inchash.o): New rule.
24573 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
24576 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
24577 number in type attribute expression.
24579 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
24581 * loop-iv.c (canon_condition): Generalize to all types of integer
24584 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
24586 * gimple-walk.c: Prune duplicate or unneeded includes.
24587 (walk_gimple_asm): Only call parse_input_constraint or
24588 parse_output_constraint if their findings are used.
24589 Honour parse_input_constraint and parse_output_constraint
24592 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
24594 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
24596 2015-04-29 Tom de Vries <tom@codesourcery.com>
24598 PR tree-optimization/65893
24599 * passes.def (pass_all_optimizations): Move pass_stdarg to after
24602 2015-04-29 Richard Biener <rguenther@suse.de>
24604 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
24605 compute GROUP_SIZE for basic-block SLP.
24606 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
24607 take into account gaps.
24608 (vect_get_mask_element): Properly reject references to previous
24610 (vect_transform_slp_perm_load): Likewise.
24612 2015-04-29 Christian Bruel <christian.bruel@st.com>
24615 * config/i386/i386.c (ix86_default_align): New function.
24616 (ix86_override_options_after_change): Call ix86_default_align.
24617 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
24618 (ix86_override_options_after_change): New function.
24620 2015-04-28 Jeff Law <law@redhat.com>
24622 * tree-ssa-dom.c (record_equality); Fix comment typos.
24624 2015-04-28 Tom de Vries <tom@codesourcery.com>
24626 PR tree-optimization/65887
24627 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
24629 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
24631 * doc/extend.texi (Declaring Attributes of Functions): Split into
24632 subsections by target. Alphabetize the table of common attributes.
24633 Rewrite some of the introductory text to reflect the new structure.
24634 Update some cross-references to point to the new subsections.
24635 (Attribute Syntax): Put paragraph about "__" naming here. Remove
24636 duplicate copies in the discussion of function, label, and type
24639 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
24642 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
24644 2015-04-28 Jason Merrill <jason@redhat.com>
24647 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
24648 (finalize_type_size): Respect TYPE_USER_ALIGN.
24649 (layout_type) [ARRAY_TYPE]: Likewise.
24651 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
24653 * config/arm/arm.md (*arm_movt): Fix type attribute.
24654 (*cmpsi_shiftsi): Likewise.
24655 (*cmpsi_shiftsi_swp): Likewise.
24656 (*movsicc_insn): Likewise.
24657 (*cond_move): Likewise.
24658 (*if_plus_move): Likewise.
24659 (*if_move_plus): Likewise.
24660 (*if_arith_move): Likewise.
24661 (*if_move_arith): Likewise.
24662 (*if_shift_move): Likewise.
24663 (*if_move_shift): Likewise.
24664 (*arm_movtas_ze): Likewise.
24665 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
24666 redundancy and type attribute.
24667 (*thumb2_movsi_insn): Fix type attribute.
24668 (*thumb2_addsi_short): Likewise.
24669 (thumb2_addsi3_compare0): Likewise.
24670 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
24671 attributes accordingly.
24673 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
24676 * function.c (pad_to_arg_alignment): Add parentheses.
24678 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
24680 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
24681 libgcc/config/frv/elf-lib.h.
24683 2015-04-28 Tom de Vries <tom@codesourcery.com>
24685 * tree-call-cdce.c: Fix example in header comment.
24687 2015-04-28 Richard Biener <rguenther@suse.de>
24689 PR tree-optimization/62283
24690 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
24691 fails fatally and we are vectorizing a basic-block simply
24692 cause the child to be constructed piecewise.
24693 (vect_analyze_slp_cost_1): Adjust.
24694 (vect_detect_hybrid_slp_stmts): Likewise.
24695 (vect_bb_slp_scalar_cost): Likewise.
24696 (vect_get_constant_vectors): For piecewise constructed
24697 constants place them after the last def.
24698 (vect_get_slp_defs): Adjust.
24699 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
24700 externals for basic-block vectorization.
24702 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
24705 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
24707 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
24708 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
24709 (AARCH64_TUNE_FMA_STEERING): Likewise.
24710 * config/aarch64/aarch64-cores.def: Set
24711 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
24712 FMUL/FMADD instructions.
24713 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
24714 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
24715 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
24716 * config/aarch64/cortex-a57-fma-steering.h: New file.
24717 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24719 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
24721 * gensupport.c (std_preds): Add missing codes to address_operand entry.
24723 2015-04-28 Richard Biener <rguenther@suse.de>
24725 PR tree-optimization/65851
24726 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
24727 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
24728 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
24729 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
24730 (ccp_visit_phi_node): Adjust.
24731 (evaluate_stmt): For simplifications to SSA names return its
24732 lattice value if that isn't VARYING. Return immediately when
24733 simplified to a constant.
24734 (visit_assignment): Adjust.
24735 (ccp_visit_stmt): Likewise.
24737 2015-04-28 Tom de Vries <tom@codesourcery.com>
24739 PR tree-optimization/65818
24740 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
24743 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24745 * calls.c (save_fixed_argument_area): Don't check
24746 ARGS_GROW_DOWNWARD with the preprocessor.
24747 (restore_fixed_argument_area): Likewise.
24748 (mem_overlaps_already_clobbered_arg_p): Likewise.
24749 (check_sibcall_argument_overlap): Likewise.
24750 (expand_call): Likewise.
24751 (emit_library_call_value_1): Likewise.
24752 (store_one_arg): Likewise.
24753 * function.c (assign_parms): Likewise.
24754 (locate_and_pad_parm): Likewise.
24755 (pad_to_arg_alignment): Likewise.
24756 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
24758 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24760 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
24761 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
24762 * calls.c (save_fixed_argument_area): Don't chekc if
24763 ARGS_GROW_DOWNWARD is defined.
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 * defaults.h (gen_epilogue): New function.
24778 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
24780 * cfgrtl.c (cfg_layout_finalize): Likewise.
24781 * df-scan.c: Likewise.
24782 * function.c (thread_prologue_and_epilogue_insns): Likewise.
24783 (reposition_prologue_and_epilogue_notes): Likewise.
24784 * reorg.c (find_end_label): Likewise.
24785 * toplev.c: Likewise.
24787 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24789 * bb-reorder.c (HAVE_return): Don't check if its undefined.
24790 * defaults.h (gen_simple_return): New function.
24791 (gen_simple_return): Likewise.
24792 (HAVE_return): Add default definition to false.
24793 (HAVE_simple_return): Likewise.
24794 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
24795 HAVE_return and HAVE_simple_return are defined.
24796 * function.c (gen_return_pattern): Likewise.
24797 (convert_jumps_to_returns): Likewise.
24798 (thread_prologue_and_epilogue_insns): Likewise.
24799 * reorg.c (find_end_label): Likewise.
24800 (dbr_schedule): Likewise.
24801 * shrink-wrap.c: Likewise.
24802 * shrink-wrap.h: Likewise.
24804 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24806 * defaults.h (EPILOGUE_USES): Add default definition of false.
24807 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
24808 * resource.c (init_resource_info): Likewise.
24810 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24812 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
24814 * dwarf2out.c (field_byte_offset): REmove check if
24815 PCC_BITFIELD_TYPE_MATTERS is defined.
24816 * stor-layout.c (layout_decl): Likewise.
24817 (update_alignment_for_field): Likewise.
24818 (place_field): Likewise.
24820 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24822 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
24824 * regrename.c (check_new_reg_p): Remove check if
24825 HARD_REGNO_RENAME_OK is defined.
24826 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
24828 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24830 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
24831 * cse.c (fold_rtx): Likewise.
24832 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
24833 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
24834 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
24835 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
24836 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
24837 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
24838 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
24839 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
24840 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
24841 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
24843 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
24844 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
24845 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
24846 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
24847 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
24848 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
24849 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
24850 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
24851 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
24852 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
24853 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
24854 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
24855 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
24856 * doc/tm.texi: Regenerate.
24857 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
24858 either true or false.
24860 2015-04-27 Jeff Law <law@redhat.com>
24862 PR tree-optimization/65217
24863 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
24864 of them has a single use, make sure it is the LHS of the implied
24867 2015-04-28 Alan Modra <amodra@gmail.com>
24870 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
24871 (offsettable_ok_by_alignment): Use minimum of decl and toc
24872 pointer alignment. Replace dead code with assertion.
24873 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
24874 case if size exceeds toc pointer alignment.
24875 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
24876 (rs6000_emit_move): Likewise.
24877 * configure.ac: Add linker toc pointer alignment check.
24878 * configure: Regenerate.
24879 * config.in: Regenerate.
24881 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
24883 * config.gcc: Add h8300-*-linux.
24884 * config/h8300/linux.h: New.
24885 * config/h8300/t-linux: New.
24886 * config/h8300/h8300.c (h8300_option_override): Normal mode
24887 is not supported for h8300-*-linux.
24888 (h8300_file_start): Target priority change.
24889 (get_shift_alg): Likewise.
24890 (h8300_shift_need_scratch_p): Likewise.
24891 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
24892 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
24894 2015-04-27 Caroline Tice <cmtice@google.com>
24896 * final.c (final_scan_insn): Output cold_function_name as function
24898 * varasm.c (cold_function_name): Make global.
24899 (assemble_start_function): Re-set cold_function_name.
24900 (assemble_end_function): Output cold partition size.
24901 * varasm.h (cold_function_name): Declare global.
24903 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
24905 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
24906 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
24908 (*movxi_internal_avx512f): Ditto.
24909 (define_split): Check for xmm16+, when splitting scalar float_extend.
24910 (*extendsfdf2_mixed): Use "v" constraint.
24911 (define_split): Check for xmm16+, when splitting scalar float_truncate.
24912 (*truncdfsf_fast_sse): Use "v" constraint.
24913 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
24914 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
24915 (define_peephole2): Check for xmm16+, when converting scalar
24917 (define_peephole2): Check for xmm16+, when converting scalar
24919 (*fop_<mode>_comm_mixed): Use "v" constraint.
24920 (*fop_<mode>_comm_sse): Ditto.
24921 (*fop_<mode>_1_mixed): Ditto.
24922 (*sqrt<mode>2_sse): Ditto.
24923 (*ieee_s<ieee_maxmin><mode>3): Ditto.
24925 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24927 * combine.c (simplify_if_then_else): Use std::swap instead
24928 of manually swapping.
24929 (known_cond): Likewise.
24930 (simplify_comparison): Likewise.
24932 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
24935 * config/rs6000/htm.md: Remove all define_expands.
24936 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
24937 UNSPECV_HTM_TABORTWCI): Remove.
24938 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
24939 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
24940 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
24941 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
24942 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
24943 tabortwci_internal): Remove define_insns.
24944 (tabort<wd>c, tabort<wd>ci): New define_insns.
24945 (tabort): Use gpc_reg_operand.
24946 (tcheck): Remove operand.
24947 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
24948 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
24950 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
24951 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
24952 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
24953 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
24954 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
24955 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
24956 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
24957 (tcheck): Remove builtin argument.
24958 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
24960 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
24961 tabortdc and tabortdci builtins when not in 64-bit mode.
24962 Modify code to handle the loss of the HTM define_expands.
24963 Emit code to copy the CR register to TARGET.
24964 (htm_init_builtins): Modify code to handle the loss of the HTM
24966 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
24967 (RS6000_BTC_64BIT): Likewise.
24968 (RS6000_BTC_CR): New macro.
24969 * doc/extend.texi: Update documentation for htm builtins.
24971 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24973 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
24974 of manually swapping.
24975 (simplify_associative_operation): Likewise.
24976 (simplify_binary_operation): Likewise.
24977 (simplify_plus_minus): Likewise.
24978 (simplify_relational_operation): Likewise.
24979 (simplify_ternary_operation): Likewise.
24981 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
24983 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
24984 (xs_hi_nonmemory_operand): Remove error.
24985 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
24986 general_operand rather than xs_hi_general_operand.
24988 2015-04-27 Richard Biener <rguenther@suse.de>
24990 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
24991 (record_equivalences_from_stmt): Valueize rhs.
24992 (record_equality): Canonicalize x and y order via
24993 tree_swap_operands_p. Do not swap operands for same loop depth.
24995 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
24999 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
25000 Add hint how to use own spec file.
25002 2015-04-27 Jakub Jelinek <jakub@redhat.com>
25004 PR tree-optimization/65875
25005 * tree-vrp.c (update_value_range): If in is_new case setting
25006 old_vr to VR_VARYING, also set new_vr to it. Remove
25007 old_vr->type == VR_VARYING test.
25008 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
25009 SSA_PROP_INTERESTING if update_value_range returned true,
25010 but new range is VR_VARYING.
25012 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
25014 * combine.c (sign_extend_short_imm): New.
25015 (set_nonzero_bits_and_sign_copies): Use above new function for sign
25016 extension of src short immediate.
25017 (reg_nonzero_bits_for_combine): Likewise for tem.
25019 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
25021 * stor-layout.c (self_referential_component_ref_p): New predicate.
25022 (copy_self_referential_tree_r): Use it.
25023 (self_referential_size): Punt for simple operations directly involving
25024 self-referential component references.
25025 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
25027 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
25029 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
25031 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
25033 * vec.h (vec): Make splice arguments const. Update definitions
25036 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
25038 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
25041 2015-04-26 Tom de Vries <tom@codesourcery.com>
25043 PR tree-optimization/65826
25044 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
25046 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
25048 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
25049 (*madd3<mode>): Ditto.
25050 (*msub4<mode>): Ditto.
25051 (*msub3<mode>): Ditto.
25052 (*nmadd4<mode>): Ditto.
25053 (*nmadd3<mode>): Ditto.
25054 (*nmadd4<mode>_fastmath): Ditto.
25055 (*nmadd3<mode>_fastmath): Ditto.
25056 (*nmsub4<mode>): Ditto.
25057 (*nmsub3<mode>): Ditto.
25058 (*nmsub4<mode>_fastmath): Ditto.
25059 (*nmsub3<mode>_fastmath): Ditto.
25061 2015-04-24 Jason Merrill <jason@redhat.com>
25064 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
25065 down when building TYPE_CANONICAL.
25066 (build_pointer_type_for_mode): Likewise.
25068 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
25070 * genrecog.c (validate_pattern): Check matching constraint refers
25071 to a lower numbered operand.
25073 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
25076 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
25077 save to independent variables use the Save attribute. This will
25078 allow these options to be modified with the #pragma/attribute
25080 (-mallow-movmisalign): Likewise.
25081 (-mallow-df-permute): Likewise.
25082 (-msched-groups): Likewise.
25083 (-malways-hint): Likewise.
25084 (-malign-branch-targets): Likewise.
25085 (-mvectorize-builtins): Likewise.
25086 (-msave-toc-indirect): Likewise.
25088 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
25089 can be set via the #pragma/attribute target support.
25090 (rs6000_opt_vars): Likewise.
25091 (rs6000_inner_target_options): If VSX was set, also set
25092 -mno-avoid-indexed-addresses.
25094 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25096 * config/arm/iterators.md (shiftable_ops): Rename to...
25097 (SHIFTABLE_OPS): ... This. Update use in comments.
25098 (ior_xor): Rename to...
25099 (IOR_XOR): ... This.
25100 (vqh_ops): Rename to...
25101 (VQH_OPS): ... This.
25102 (vqhs_ops): Rename to...
25103 (VQHS_OPS): ... This.
25104 (rshifts): Rename to...
25105 (RSHIFTS): ... This.
25106 (returns): Rename to...
25107 (RETURNS): ... This.
25108 * config/arm/arm.md: Update uses of the above.
25109 * config/arm/neon.md: Likewise.
25111 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25113 * config.host (case ${host}): Add aarch64*-*-linux case.
25114 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
25115 fields to all the cores.
25116 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
25117 Add MCPU_MTUNE_NATIVE_SPECS.
25118 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
25119 field to all extensions.
25120 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
25121 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
25122 Adjust definition of AARCH64_OPT_EXTENSION.
25123 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
25124 (MCPU_MTUNE_NATIVE_SPECS): Define.
25125 * config/aarch64/driver-aarch64.c: New file.
25126 * config/aarch64/x-arch64: New file.
25127 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
25130 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
25131 Wei Mi <wmi@google.com>
25133 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
25134 * config/i386/i386.c (extract_base_offset_in_addr): New function.
25135 (ix86_operands_ok_for_move_multiple): Ditto.
25136 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
25137 (movlpd/movhpd to movupd peephole2): Ditto.
25139 2015-04-24 Marek Polacek <polacek@redhat.com>
25142 * input.h (from_macro_expansion_at): Define.
25145 * doc/invoke.texi: Update description of -Wlogical-op.
25147 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
25149 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
25150 ternary operator in fprintf and harmonize spacing.
25152 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
25154 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
25155 Mark operand1 commutative.
25157 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
25159 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
25160 input operands in memory.
25161 (*vec_concatv2si_sse4_1): Ditto.
25162 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
25163 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
25165 (vec_extract_hi_v32hi): Ditto.
25166 (vec_extract_hi_v64hi): Ditto.
25167 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
25169 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
25170 Steven Bosscher <steven@gcc.gnu.org>
25172 PR rtl-optimization/34503
25173 * cprop.c (cprop_reg_p): New.
25174 (hash_scan_set): Use above function to check if register can be
25176 (find_avail_set): Return up to two sets, one whose source is a
25177 register and one whose source is a constant. Sets are returned in an
25178 array passed as parameter rather than as a return value.
25179 (cprop_insn): Use a do while loop rather than a goto. Try each of the
25180 sets returned by find_avail_set, starting with the one whose source is
25181 a constant. Use cprop_reg_p to check if register can be propagated.
25182 (do_local_cprop): Use cprop_reg_p to check if register can be
25184 (implicit_set_cond_p): Likewise.
25186 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25188 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
25189 (sem_function::equals): IGNORED_NODES parameter is now unused;
25190 update call of equals_private.
25191 (sem_function::equals_private): Do not call equals_wpa; skip
25192 gimple body matching if there is no body.
25193 (sem_function::init): Add logic to hash tthunk info.
25194 (sem_function::parse): Also parse thunks.
25195 * ipa-icf.h (equals_private): Update declaration.
25197 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25199 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
25200 asterisk from name so this can be generated directly.
25201 (*altivec_stvx_<mode>_internal): Likewise.
25202 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
25203 that this is never called during or after reload/lra.
25204 (rs6000_frame_related): Remove split_reg
25205 argument and logic that references it.
25206 (emit_frame_save): Remove last parameter from call to
25207 rs6000_frame_related.
25208 (rs6000_emit_prologue): Remove last parameter from eight calls to
25209 rs6000_frame_related. Force generation of stvx instruction for
25210 Altivec register saves. Remove split_reg handling, which is no
25212 (rs6000_emit_epilogue): Force generation of lvx instruction for
25213 Altivec register restores.
25215 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25217 * config/rs6000/rs6000.opt (mcrypto): Change option description to
25218 match category changes in ISA 2.07B.
25220 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25222 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
25224 (cmp_op, cmp_type): New code attributes.
25225 (NEON_VCMP, NEON_VACMP): New int iterators.
25226 (cmp_op_unsp): New int attribute.
25227 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
25228 (neon_vceq<mode>): Delete.
25229 (neon_vc<cmp_op><mode>_insn): New pattern.
25230 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
25231 (neon_vcgeu<mode>): Delete.
25232 (neon_vcle<mode>): Likewise.
25233 (neon_vclt<mode>: Likewise.
25234 (neon_vcage<mode>): Likewise.
25235 (neon_vcagt<mode>): Likewise.
25236 (neon_vca<cmp_op><mode>): New define_expand.
25237 (neon_vca<cmp_op><mode>_insn): New pattern.
25238 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
25240 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25242 * tree.h (attribute_value_equal): Declare.
25243 * tree.c (attribute_value_equal): Export.
25245 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25247 * ipa-icf.c (sem_item::compare_attributes): New function.
25248 (sem_item::compare_referenced_symbol_properties): Compare variable
25250 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
25251 (sem_function::param_used_p): New function.
25252 (sem_function::equals_wpa): Fix attribute comparsion; match
25253 parameter type codes; do not compare paremter flags when
25254 they are not used; compare edge flags; compare indirect calls.
25255 (sem_item::update_hash_by_addr_refs): Hash reference type.
25256 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
25257 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
25258 reference use type.
25259 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
25260 * ipa-icf.h (compare_attributes, param_used_p): Declare.
25262 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25264 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
25266 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
25267 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
25268 (sem_item::compare_referenced_symbol_properties): New.
25269 (sem_item::hash_referenced_symbol_properties): New.
25270 (sem_item::compare_cgraph_references): Rename to ...
25271 (sem_item::compare_symbol_references): ... this one; use
25272 compare_referenced_symbol_properties.
25273 (sem_function::equals_wpa): Do not compare
25274 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
25275 DECL_IS_OPERATOR_NEW; compare pointer sizes.
25276 (sem_item::update_hash_by_addr_refs): Call
25277 hash_referenced_symbol_properties.
25278 (sem_item::update_hash_by_local_refs): Cleanup.
25279 (sem_function::merge): Do not mix up symbol properties.
25280 (sem_variable::equals_wpa): Use compare_symbol_references.
25281 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
25282 (sem_item::hash_referenced_symbol_properties): New.
25283 (sem_item::compare_symbol_references): New.
25284 (sem_item::compare_cgraph_references): Remove.
25286 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
25289 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
25290 Emit size of local.
25292 2015-04-23 Nick Clifton <nickc@redhat.com>
25294 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
25295 ATTRIBUTE_UNUSED to x parameter.
25296 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
25298 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25300 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
25301 TARGET_CRYPTO to TARGET_P8_VECTOR>
25302 (crypto_vpermxor_<mode>): Likewise.
25303 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
25304 (BU_CRYPTO_3A): Likewise.
25305 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
25306 (BU_CRYPTO_OVERLOAD_3A): New #define.
25307 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
25308 (VPMSUMH): Likewise.
25309 (VPMSUMW): Likewise.
25310 (VPMSUMD): Likewise.
25311 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
25312 (VPERMXOR_V4SI): Likewise.
25313 (VPERMXOR_V8HI): Likewise.
25314 (VPERMXOR_V16QI): Likewise.
25315 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
25316 BU_CRYPTO_OVERLOAD_2A.
25317 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
25318 BU_CRYPTO_OVERLOAD_3A.
25319 * config/rs6000/rs6000.opt (mcrypto): Change description of
25322 2015-04-23 Richard Biener <rguenther@suse.de>
25324 * passes.def: Remove copy propagation passes run directly after CCP.
25325 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
25327 (ccp_visit_phi_node): Rework to handle first executable edge
25330 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
25332 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
25333 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
25334 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
25335 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
25336 (thumb_legimitimize_reload_address): Remove.
25337 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
25339 (thumb_legimitimize_reload_address): Remove.
25341 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25343 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
25345 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25347 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
25349 (store_multiple): Likewise.
25351 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25353 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
25354 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
25355 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
25356 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
25357 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
25358 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
25359 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
25360 Specify issue_rate value.
25361 (arm_issue_rate): Look up issue rate from tuning structs. Remove
25362 large switch statement.
25363 (arm_marvell_pj4_tune): New struct.
25364 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
25367 2015-04-23 Richard Biener <rguenther@suse.de>
25369 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
25370 (vect_find_last_store_in_slp_instance): Rename to ...
25371 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
25372 (vect_analyze_slp_cost_1): Use vector_load for constant defs
25373 and vec_construct for external defs when estimating prologue cost.
25374 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
25375 Compute costs here only when vectorizing loops.
25376 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
25377 have been determined.
25378 (vect_schedule_slp_instance): Simplify vectorized code placement
25379 and prepare for in-BB external defs.
25380 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
25381 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
25382 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
25384 (vect_model_load_cost): Likewise.
25385 (vectorizable_store): Instead add it here.
25386 (vectorizable_load): Likewise.
25387 (vect_is_simple_use): Dump def type textually.
25389 2015-04-23 Richard Biener <rguenther@suse.de>
25391 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
25392 * cfgloop.c (verify_loop_structure): Verify the root loop node.
25393 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
25394 instead of get_eh_region_from_lp_number.
25395 * loop-init.c (fix_loop_structure): If we removed a loop, reset
25398 2015-04-23 Anton Blanchard <anton@samba.org>
25400 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
25401 need for -mprofile-kernel to save LR to stack.
25403 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25405 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
25407 (insn_is_swappable_p): Return 1 for a convert from double to
25408 single precision when all of its uses are splats of BE element
25411 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
25413 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
25415 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25418 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
25419 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
25420 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
25422 (rs6000_builtin_mask_for_load): Return 0 for targets with
25423 efficient unaligned VSX accesses so that the vectorizer will use
25424 direct unaligned loads.
25425 (rs6000_builtin_support_vector_misalignment): Always return true
25426 for targets with efficient unaligned VSX accesses.
25427 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
25428 stores on targets with efficient unaligned VSX accesses is almost
25429 always the same as the cost of an aligned load or store, so model
25431 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
25432 unaligned vectors if we have efficient unaligned VSX accesses.
25433 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
25434 undocumented option.
25436 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25439 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
25441 * config.gcc (LIBC_MUSL): New tm_defines macro.
25442 * config/linux.h (OPTION_MUSL): Define.
25443 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
25444 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
25445 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
25447 * config/linux.opt (mmusl): New option.
25448 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
25449 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
25451 * configure: Regenerate.
25453 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
25455 * config.gcc (LIBC_MUSL): New tm_defines macro.
25456 * config/linux.h (OPTION_MUSL): Define.
25457 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
25458 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
25459 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
25461 * config/linux.opt (mmusl): New option.
25462 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
25463 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
25465 * configure: Regenerate.
25467 2015-04-22 Yury Gribov <y.gribov@samsung.com>
25469 * doc/invoke.texi (-fsanitize-sections): Update description.
25470 * asan.c (set_sanitized_sections): Parse incoming arg.
25471 (section_sanitized_p): Support wildcards.
25473 2015-04-22 Tom de Vries <tom@codesourcery.com>
25475 PR tree-optimization/65823
25476 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
25477 equality between ap_copy and ap.
25479 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25482 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
25484 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25487 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
25489 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25492 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
25493 remove already contained t-files.
25495 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25497 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
25498 Remove unneeded forward declarations.
25499 (suitable_for_tail_call_opt_p): Commentary typo fix.
25501 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25503 * varasm.c (emit_bss): Remove redundant guard.
25505 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25507 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
25509 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25511 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
25513 2015-04-22 Hale Wang <hale.wang@arm.com>
25514 Terry Guo <terry.guo@arm.com>
25516 PR rtl-optimization/64818
25517 * combine.c (can_combine_p): Don't combine user-specified
25518 register if it is in an asm input.
25520 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
25523 * passes.def (early_optimizations): Add pass_dse.
25525 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25527 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
25528 * reorg.c (redundant_insn): Remove ifdef
25529 INSN_REFERENCES_ARE_DELAYED.
25530 * resource.c (mark_referenced_resources): Likewise.
25532 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25534 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
25535 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
25536 * resource.c (mark_set_resources): Likewise.
25538 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25540 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
25541 * cfgcleanup.c (flow_find_cross_jump): Likewise.
25542 (flow_find_head_matching_sequence): Likewise.
25543 (try_head_merge_bb): Likewise.
25544 * combine.c (can_combine_p): Likewise.
25545 (try_combine): Likewise.
25546 (distribute_notes): Likewise.
25547 * df-problems.c (can_move_insns_across): Likewise.
25548 * final.c (final): Likewise.
25549 * gcse.c (insert_insn_end_basic_block): Likewise.
25550 * ira.c (find_moveable_pseudos): Likewise.
25551 * reorg.c (try_merge_delay_insns): Likewise.
25552 (fill_simple_delay_slots): Likewise.
25553 (fill_slots_from_thread): Likewise.
25554 * sched-deps.c (sched_analyze_2): Likewise.
25556 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25558 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
25559 PIC_OFFSET_TABLE_REGNUM.
25561 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25563 * alias.c (init_alias_target): Remove ifdef
25564 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
25565 * df-scan.c (df_insn_refs_collect): Likewise.
25566 (df_get_regular_block_artificial_uses): Likewise.
25567 (df_get_eh_block_artificial_uses): Likewise.
25568 (df_get_entry_block_def_set): Likewise.
25569 (df_get_exit_block_use_set): Likewise.
25570 * emit-rtl.c (gen_rtx_REG): Likewise.
25571 * ira.c (ira_setup_eliminable_regset): Likewise.
25572 * reginfo.c (init_reg_sets_1): Likewise.
25573 * regrename.c (rename_chains): Likewise.
25574 * reload1.c (reload): Likewise.
25575 (eliminate_regs_in_insn): Likewise.
25576 * resource.c (mark_referenced_resources): Likewise.
25577 (init_resource_info): Likewise.
25579 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25581 * defaults.h (MASK_RETURN_ADDR): New definition.
25582 * except.c (expand_builtin_extract_return_addr): Remove ifdef
25585 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25587 * defaults.h (RETURN_ADDR_OFFSET): New definition.
25588 * except.c (expand_builtin_extract_return_addr): Remove ifdef
25589 RETURN_ADDR_OFFSET.
25590 (expand_builtin_frob_return_addr): Likewise.
25592 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25594 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
25595 (try_redirect_by_replacing_jump): Likewise.
25596 (rtl_tidy_fallthru_edge): Likewise.
25597 * combine.c (insn_a_feeds_b): Likewise.
25598 (find_split_point): Likewise.
25599 (simplify_set): Likewise.
25600 * cprop.c (cprop_jump): Likewise.
25601 * cse.c (cse_extended_basic_block): Likewise.
25602 * df-problems.c (can_move_insns_across): Likewise.
25603 * function.c (emit_use_return_register_into_block): Likewise.
25604 * haifa-sched.c (sched_init): Likewise.
25605 * ira.c (find_moveable_pseudos): Likewise.
25606 * loop-invariant.c (find_invariant_insn): Likewise.
25607 * lra-constraints.c (curr_insn_transform): Likewise.
25608 * postreload.c (reload_combine_recognize_const_pattern):
25610 * reload.c (find_reloads): Likewise.
25611 * reorg.c (delete_scheduled_jump): Likewise.
25612 (steal_delay_list_from_target): Likewise.
25613 (steal_delay_list_from_fallthrough): Likewise.
25614 (redundant_insn): Likewise.
25615 (fill_simple_delay_slots): Likewise.
25616 (fill_slots_from_thread): Likewise.
25617 (delete_computation): Likewise.
25618 * sched-rgn.c (add_branch_dependences): Likewise.
25620 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25622 * genconfig.c (main): Always define HAVE_cc0.
25623 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
25625 * cfgcleanup.c (flow_find_cross_jump): Likewise.
25626 (flow_find_head_matching_sequence): Likewise.
25627 (try_head_merge_bb): Likewise.
25628 * cfgrtl.c (rtl_merge_blocks): Likewise.
25629 (try_redirect_by_replacing_jump): Likewise.
25630 (rtl_tidy_fallthru_edge): Likewise.
25631 * combine.c (do_SUBST_MODE): Likewise.
25632 (insn_a_feeds_b): Likewise.
25633 (combine_instructions): Likewise.
25634 (can_combine_p): Likewise.
25635 (try_combine): Likewise.
25636 (find_split_point): Likewise.
25638 (simplify_set): Likewise.
25639 (distribute_notes): Likewise.
25640 * cprop.c (cprop_jump): Likewise.
25641 * cse.c (cse_extended_basic_block): Likewise.
25642 * df-problems.c (can_move_insns_across): Likewise.
25643 * final.c (final): Likewise.
25644 (final_scan_insn): Likewise.
25645 * function.c (emit_use_return_register_into_block): Likewise.
25646 * gcse.c (insert_insn_end_basic_block): Likewise.
25647 * haifa-sched.c (sched_init): Likewise.
25648 * ira.c (find_moveable_pseudos): Likewise.
25649 * loop-invariant.c (find_invariant_insn): Likewise.
25650 * lra-constraints.c (curr_insn_transform): Likewise.
25651 * optabs.c (prepare_cmp_insn): Likewise.
25652 * postreload.c (reload_combine_recognize_const_pattern):
25654 * reload.c (find_reloads): Likewise.
25655 (find_reloads_address_1): Likewise.
25656 * reorg.c (delete_scheduled_jump): Likewise.
25657 (steal_delay_list_from_target): Likewise.
25658 (steal_delay_list_from_fallthrough): Likewise.
25659 (try_merge_delay_insns): Likewise.
25660 (redundant_insn): Likewise.
25661 (fill_simple_delay_slots): Likewise.
25662 (fill_slots_from_thread): Likewise.
25663 (delete_computation): Likewise.
25664 (relax_delay_slots): Likewise.
25665 * sched-deps.c (sched_analyze_2): Likewise.
25666 * sched-rgn.c (add_branch_dependences): Likewise.
25668 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25670 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
25671 that is trivially ded on non cc0 targets.
25672 (simplify_set): Likewise.
25673 (mark_used_regs_combine): Likewise.
25674 * cse.c (new_basic_block): Likewise.
25675 (fold_rtx): Likewise.
25676 (cse_insn): Likewise.
25677 (cse_extended_basic_block): Likewise.
25678 (set_live_p): Likewise.
25679 * rtlanal.c (canonicalize_condition): Likewise.
25680 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
25682 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25684 * conditions.h: Define macros even if HAVE_cc0 is undefined.
25685 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
25686 * final.c: Likewise.
25687 * jump.c: Likewise.
25688 * recog.c: Likewise.
25689 * recog.h: Declare functions even when HAVE_cc0 is undefined.
25690 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
25692 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25694 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
25695 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
25696 * builtins.c (expand_builtin): Remove check if
25697 EH_RETURN_DATA_REGNO is defined.
25698 * df-scan.c (df_bb_refs_collect): Likewise.
25699 (df_get_exit_block_use_set): Likewise.
25700 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
25701 * ira-lives.c (process_bb_node_lives): Likewise.
25702 * lra-lives.c (process_bb_lives): Likewise.
25704 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
25706 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
25707 FIRST_PSEUDO_REG): New.
25708 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
25709 (ARG_POINTER_REGNUM): Define to ARGP_REG.
25710 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
25711 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
25712 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
25713 (FIRST_INT_REG): New.
25714 (LAST_INT_REG): New.
25715 (FIRST_*_REG): Define using *_REG.
25716 (LAST_*_REG): Ditto.
25717 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
25718 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
25719 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
25721 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25723 * expmed.c: (synth_mult): Only assume overlapping
25724 shift with previous steps in alg_sub_t_m2 case.
25726 2015-04-21 Richard Biener <rguenther@suse.de>
25728 PR tree-optimization/65650
25729 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
25730 transitions involving copies.
25731 (set_lattice_value): Adjust for copy lattice state.
25732 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
25733 if that doesn't dominate the merge point.
25734 (bit_value_unop): Adjust what we treat as varying mask.
25735 (bit_value_binop): Likewise.
25736 (bit_value_assume_aligned): Likewise.
25737 (evaluate_stmt): When we simplified to a SSA name record a copy
25738 instead of dropping to varying.
25739 (visit_assignment): Simplify.
25741 * gimple-match.h (gimple_simplify): Add another callback.
25742 * gimple-fold.c (fold_stmt_1): Adjust caller.
25743 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
25744 for the 2nd callback.
25745 * gimple-match-head.c (gimple_simplify): Add a callback that is
25746 used to valueize the stmt operands and use it that way.
25748 2015-04-21 Richard Biener <rguenther@suse.de>
25750 PR tree-optimization/65788
25751 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
25753 2015-04-21 Richard Biener <rguenther@suse.de>
25755 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
25756 vec_construct cost by vec_stmt_cost.
25758 2015-04-21 Richard Biener <rguenther@suse.de>
25760 * cfghooks.h (create_basic_block): Replace with two overloads
25761 for RTL and GIMPLE.
25762 (split_block): Likewise.
25763 * cfghooks.c (split_block): Rename to ...
25764 (split_block_1): ... this.
25765 (split_block): Add two type-safe overloads for RTL and GIMPLE.
25766 (split_block_after_labels): Call split_block_1.
25767 (create_basic_block): Rename to ...
25768 (create_basic_block_1): ... this.
25769 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
25770 (create_empty_bb): Call create_basic_block_1.
25771 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
25772 split_block_after_labels.
25773 * omp-low.c (expand_parallel_call): Likewise.
25774 (expand_omp_target): Likewise.
25775 (simd_clone_adjust): Likewise.
25776 * tree-chkp.c (chkp_get_entry_block): Likewise.
25777 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
25778 create_basic_block overload.
25779 (cgraph_node::expand_thunk): Likewise.
25780 * tree-cfg.c (make_blocks): Likewise.
25781 (handle_abnormal_edges): Likewise.
25782 * tree-inline.c (copy_bb): Likewise.
25784 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25786 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
25788 (*xor_one_cmplsidi3_ze): Likewise.
25790 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
25792 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
25793 use df_remove_problem rather than manually removing problems, leaving
25794 holes in df->problems_in_order[].
25796 2015-04-21 Tom de Vries <tom@codesourcery.com>
25798 PR tree-optimization/65802
25799 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
25801 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25803 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
25805 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
25806 at '.'. Assert that there's enough space for everything.
25808 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
25810 PR tree-optimization/64950
25812 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
25815 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
25818 2015-04-20 Shiva Chen <shiva0217@gmail.com>
25820 PR rtl-optimization/64916
25821 * cfgcleanup.c (values_equal_p): New function.
25822 (can_replace_by): Use it.
25824 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
25827 * doc/invoke.texi ([-Wnarrowing]): Update.
25829 2015-04-20 Jeff Law <law@redhat.com>
25831 PR tree-optimization/65658
25832 * tree-ssa-threadupdate.c (redirection_block_p): Remove
25833 redundant test for GIMPLE_ASSIGN in last change.
25835 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
25837 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
25838 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
25839 (legitimize_tls_address): Ditto.
25840 (ix86_expand_move): Ditto.
25841 (ix86_expand_binary_operator): Remove reload_in_progress checks.
25842 (ix86_expand_unary_operator): Ditto.
25843 * config/i386/predicates.md (index_register_operand): Ditto.
25845 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
25847 * reorg.c (try_merge_delay_insns): Improve correctness checking
25848 for targets with multiple delay slots.
25850 2015-04-20 Jeff Law <law@redhat.com>
25852 PR tree-optimization/65658
25853 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
25856 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
25858 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
25859 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
25862 2015-04-20 Jakub Jelinek <jakub@redhat.com>
25865 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
25867 2015-04-20 Richard Biener <rguenther@suse.de>
25869 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
25870 * gimple-fold.c (gimple_build_valueize): New function.
25871 (gimple_build): Always use gimple_build_valueize as valueize hook.
25873 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
25876 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
25877 and overwrite variable parts if <= 1/2 the elements are variable.
25879 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
25881 PR rtl-optimization/65805
25882 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
25883 Don't use difference of offset and previous offset if
25884 update_sp_offset is non-zero.
25885 (eliminate_regs_in_insn): Ditto.
25886 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
25887 lra_eliminate_regs_1 call.
25888 * lra-constraints.c (get_equiv_with_elimination): Ditto.
25890 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
25892 * hash-table.h: Remove version of hash_table that stored value_type *.
25893 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
25894 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
25895 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
25896 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
25897 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
25898 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
25899 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
25900 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
25901 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
25902 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
25903 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
25904 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
25905 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
25906 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
25907 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
25908 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
25910 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25911 Jakub Jelinek <jakub@redhat.com>
25914 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
25915 subsequent SH_NONE operand does not overwrite an existing *special
25917 (adjust_extract): Handle case where a vec_extract operation is
25918 wrapped in a PARALLEL.
25920 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
25923 * config/i386/i386.c (ix86_binds_local_p): Define only if
25924 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
25926 2015-04-17 Jeff Law <law@redhat.com>
25928 PR tree-optimization/47679
25929 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
25930 * tree-ssa-scopedtables.c: New file.
25931 * tree-ssa-scopedtables.h: New file.
25932 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
25933 (const_and_copies): Change name/type.
25934 (record_const_or_copy): Move into tree-ssa-scopedtables.c
25935 (record_const_or_copy_1): Similarly.
25936 (restore_vars_to_original_value): Similarly.
25937 (pass_dominator::execute): Create and destroy const_and_copies table.
25938 (thread_across_edge): Update passing of const_and_copies.
25939 (record_temporary_equivalence): Use method calls rather than
25940 manipulating const_and_copies directly.
25941 (record_equality, cprop_into_successor_phis): Similarly.
25942 (dom_opt_dom_walker::before_dom_children): Similarly.
25943 (dom_opt_dom_walker::after_dom_children): Similarly.
25944 (eliminate_redundant_computations): Similarly.
25945 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
25946 (record_temporary_equivalence): Likewise.
25947 (invalidate_equivalences): Likewise.
25948 (record_temporary_equivalences_from_phis): Update due to type
25949 change of const_and_copies. Use method calls rather than
25950 manipulating the stack directly.
25951 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
25952 (thread_through_normal_block, thread_across_edge): Likewise.
25953 (thread_across_edge): Likewise.
25954 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
25955 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
25957 (identify_jump_threads): Update due to type change of equiv_stack.
25958 (finalize_jump_threads): Delete the equiv_stack when complete.
25960 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
25962 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
25963 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
25964 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
25966 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
25969 * config.gcc: Exit with a comment when we do not have a major version
25970 number for the FreeBSD target.
25972 2015-04-17 Jakub Jelinek <jakub@redhat.com>
25975 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
25976 maybe_allows_mem bitfields.
25977 (maybe_allows_none_start, maybe_allows_none_end,
25978 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
25979 maybe_allows_mem_end): New variables.
25980 (compute_maybe_allows): New function.
25981 (add_constraint): Use it to initialize maybe_allows_reg and
25982 maybe_allows_mem fields.
25983 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
25984 is_address constraints such that those that allow neither mem nor
25985 reg come first, then those that only allow reg but not mem, then
25986 those that only allow mem but not reg, then the rest.
25987 (write_allows_reg_mem_function): New function.
25988 (write_tm_preds_h): Call it.
25989 * stmt.c (parse_output_constraint, parse_input_constraint): Use
25990 the generated insn_extra_constraint_allows_reg_mem function
25991 instead of always setting *allows_reg = true; *allows_mem = true;
25992 for unknown extra constraints.
25994 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
25997 * output.h (default_binds_local_p_3): New.
25998 * varasm.c (default_binds_local_p_3): Make it public. Take an
25999 argument to indicate if common symbol may be local. If common
26000 symbol may be local, treat non-external variable as defined
26002 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
26003 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
26004 * config/i386/i386.c (ix86_binds_local_p): New.
26005 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
26006 ix86_binds_local_p.
26008 2015-04-17 Jakub Jelinek <jakub@redhat.com>
26011 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
26012 trying mem_loc_descriptor on XEXP (rtl, 0).
26014 2015-04-17 Martin Liska <mliska@suse.cz>
26016 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
26017 Release symbol_compare_collection.
26018 * ipa-reference.c: Add TODO that a vector should be released.
26020 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
26023 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
26024 to new AVR-LibC file layout (bug #44574).
26025 (*avrlibc_devicelib): Same.
26026 * config/avr/avr-mcus.def: Adjust comments.
26027 * config/avr/avr.opt (nodevicelib): Adjust help.
26029 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
26031 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
26033 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
26036 * gimplify.c (gimplify_init_constructor): Always emit a
26037 side-effecting constructor.
26039 2015-04-17 Tom de Vries <tom@codesourcery.com>
26041 PR tree-optimization/64950
26042 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
26043 in cfun->curr_properties.
26044 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
26045 if we generate an IFN_VA_ARG.
26046 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
26047 function if PROP_gimple_lva is not set in src function.
26049 2015-04-17 Tom de Vries <tom@codesourcery.com>
26050 Michael Matz <matz@suse.de>
26052 PR tree-optimization/64950
26053 * gimple-iterator.c (update_modified_stmts): Remove static.
26054 * gimple-iterator.h (update_modified_stmts): Declare.
26055 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
26056 (gimplify_va_arg_internal): New function.
26057 (gimplify_va_arg_expr): Use IFN_VA_ARG.
26058 * gimplify.h (gimplify_va_arg_internal): Declare.
26059 * internal-fn.c (expand_VA_ARG): New unreachable function.
26060 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
26061 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
26062 (expand_ifn_va_arg): New function.
26063 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
26064 (pass_stdarg::execute): Call expand_ifn_va_arg.
26065 (pass_data_lower_vaarg): New pass_data.
26066 (pass_lower_vaarg): New gimple_opt_pass.
26067 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
26068 (make_pass_lower_vaarg): New function.
26069 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
26070 properties_required field.
26071 * passes.def (all_passes): Add pass_lower_vaarg.
26072 * tree-pass.h (PROP_gimple_lva): Add define.
26073 (make_pass_lower_vaarg): Declare.
26075 2015-04-17 Tom de Vries <tom@codesourcery.com>
26077 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
26078 * calls.c (call_expr_flags): Same.
26080 2015-04-17 Tom de Vries <tom@codesourcery.com>
26082 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
26083 (pass_stdarg::execute): ... here.
26085 2015-04-17 Tom de Vries <tom@codesourcery.com>
26086 Michael Matz <matz@suse.de>
26088 * tree-cfg.c (make_blocks_1): Factor out of ...
26089 (make_blocks): ... here.
26090 (make_edges_bb): Factor out of ...
26091 (make_edges): ... here.
26092 (gimple_find_sub_bbs): New function.
26093 * tree-cfg.h (gimple_find_sub_bbs): Declare.
26095 2015-04-17 Tom de Vries <tom@codesourcery.com>
26097 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
26099 2015-04-17 Yury Gribov <y.gribov@samsung.com>
26101 * asan.c (set_sanitized_sections): New function.
26102 (section_sanitized_p): Ditto.
26103 (asan_protect_global): Optionally sanitize user-defined
26105 * asan.h (set_sanitized_sections): Declare new function.
26106 * common.opt (fsanitize-sections): New option.
26107 * doc/invoke.texi (-fsanitize-sections): Document new option.
26108 * opts-global.c (handle_common_deferred_options): Handle new
26111 2015-04-17 Jakub Jelinek <jakub@redhat.com>
26114 * dwarf2out.c (loc_list_from_tree): Return NULL
26115 for DEBUG_EXPR_DECL.
26117 2015-04-17 Christian Bruel <christian.bruel@st.com>
26119 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
26122 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
26124 * ira-color.c (setup_left_conflict_sizes_p): Do not process
26125 node itself when computing left conflict subnode size.
26127 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
26129 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
26130 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
26131 *fop_<mode>_1_sse using enabled attribute. Use
26132 register_mixssei387nonimm_operand operand 1 predicate. Change
26133 alternative 3 constraints from "x" to "v".
26135 2015-04-16 Richard Biener <rguenther@suse.de>
26137 PR tree-optimization/65774
26138 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
26139 bit-value tracking on.
26141 2015-04-16 Richard Biener <rguenther@suse.de>
26143 PR tree-optimization/64277
26144 * tree-vrp.c (check_array_ref): Fix anti-range handling,
26145 simplify upper bound handling.
26146 (search_for_addr_array): Simplify.
26147 (check_array_bounds): Handle ADDR_EXPRs here.
26148 (check_all_array_refs): Simplify.
26150 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
26152 * config/i386/i386.c (print_reg): Rewrite function.
26154 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26156 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
26157 Invert the condition.
26159 2015-04-16 Renlin Li <renlin.li@arm.com>
26161 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
26162 simplifications for UNSIGNED_FLOAT.
26164 2015-04-16 Nick Clifton <nickc@redhat.com>
26166 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
26168 (enum rl78_cpu_type): New.
26169 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
26170 (umulhi3_shift_virt): Remove m constraint from operand 1.
26171 (umulqihi3_virt): Likewise.
26172 * config/rl78/rl78.c (rl78_option_override): Add code to process
26173 -mcpu and -mmul options.
26174 (rl78_alloc_physical_registers): Add code to handle divhi and
26175 divsi valloc attributes.
26176 (set_origin): Likewise.
26177 * config/rl78/rl78.h (RL78_MUL_G14): Define.
26178 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
26179 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
26181 (ASM_SPEC): Pass -mcpu on to assembler.
26182 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
26183 (mulqi3_rl78): Likewise.
26184 (mulhi3_g13): Likewise.
26185 (mulhi3): Generate the G13 or G14 versions of the insn directly.
26186 (mulsi3): Likewise.
26187 (mulhi3_g14): Add clobbers of AX and BC.
26188 (mulsi3_g14): Likewise.
26189 (mulsi3_g13): Likewise.
26190 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
26191 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
26192 * config/rl78/rl78.opt (mmul): Initialise value to
26194 (mcpu): New option.
26195 (m13, m14, mrl78): New option aliases.
26196 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
26197 (MULTILIB_DIRNAMES): Add g13 and g14.
26198 * doc/invoke.texi: Document -mcpu and -mmul options.
26200 2015-04-16 Richard Biener <rguenther@suse.de>
26202 * tree-ssa-ccp.c (likely_value): See if we have operands that
26203 are marked as never simulate again and return CONSTANT in this
26205 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
26206 not have any operands that will be simulated again as
26207 not being simulated again.
26209 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
26211 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
26212 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
26213 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
26215 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
26217 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
26218 *float<SWI48:mode><MODEF:mode>2_sse.
26219 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
26221 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
26224 2015-04-15 Tom de Vries <tom@codesourcery.com>
26227 * function.c (push_dummy_function): New function.
26228 (init_dummy_function_start): Use push_dummy_function.
26229 (pop_dummy_function): New function. Factored out of ...
26230 (expand_dummy_function_end): ... here.
26231 * function.h (push_dummy_function, pop_dummy_function): Declare.
26232 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
26233 pop_dummy_function.
26234 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
26236 2015-04-15 Jeff Law <law@redhat.com>
26238 PR tree-optimization/47679
26239 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
26240 need for forward declaration in upcoming changes.
26241 (record_conditions, record_edge_info): Likewise.
26243 PR rtl-optimization/42522
26244 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
26245 SIGN_EXTRACT as a whole object rather than simplifying
26248 2015-04-15 Jakub Jelinek <jakub@redhat.com>
26251 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
26252 and GIMPLE_PREDICT use break instead of return true. For
26253 GIMPLE_EH_DISPATCH, compare dispatch region.
26255 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
26257 * doc/extend.texi (__sync Builtins): Simplify some text. Update
26258 details about the implementation. Make clear preference for
26259 __atomic builtins. Reduce possibility of future change.
26261 2015-04-15 Nick Clifton <nickc@redhat.com>
26263 * config/rx/rx.opt (mallow-string-insns): New option.
26264 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
26265 builtin if string instructions are denied.
26266 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
26267 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
26269 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
26270 * config/rx/rx.md (movstr): Enable pattern only if string
26271 instructions are allowed.
26272 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
26273 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
26274 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
26275 (MULTILIB_DIRNAMES): Add no-strings.
26276 * doc/invoke.texi: Document -mno-allow-string-insns.
26278 2015-04-15 Alan Modra <amodra@gmail.com>
26282 PR middle-end/36043
26283 * calls.c (load_register_parameters): Don't load past end of
26284 mem unless suitably aligned.
26286 2015-04-15 Nick Clifton <nickc@redhat.com>
26288 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
26289 decrement instruction as being frame related.
26290 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
26292 If zero extending a function address enclose the operation in
26294 (rl78_preferred_reload_class): New function.
26295 (TARGET_PREFERRED_RELOAD_CLASS): Define.
26296 * config/rl78/rl78.md: Remove useless constraints in expanders.
26297 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
26298 (mulhi3_rl78): Likewise.
26299 (mulhi3_g13): Likewise.
26300 (mulsi3_rl78): Likewise.
26301 (es_addr): Move to before the multiply patterns.
26303 2015-04-15 Alan Modra <amodra@gmail.com>
26305 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
26306 and sequence_stack. Add seq.
26307 (seq_stack): Delete.
26308 * function.c (prepare_function_start): Don't access x_last_insn.
26309 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
26310 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
26311 * emit_rtl.c (start_sequence, push_topmost_sequence,
26312 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
26313 sequence accessors.
26314 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
26315 remove_insn): Likewise. Simplify.
26316 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
26317 and pop_topmost_sequence.
26318 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
26320 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
26322 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
26325 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
26328 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
26330 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
26331 (LEGACY_INT_REGNO_P): Ditto.
26332 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
26333 (ANY_MASK_REG_P): Remove.
26334 (BND_REG_P): Rename from ANY_BND_REG_P.
26335 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
26336 legacy integer registers. Do not handle MMX_REG_P in a special way.
26337 Merge 64byte and 32byte SSE handling.
26339 2015-04-14 Nick Clifton <nickc@redhat.com>
26341 * expr.c (expand_assignment): Force an address offset computation
26342 into a register before changing its mode.
26343 (expand_expr_real_1): Likewise.
26345 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
26347 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
26348 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
26349 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
26350 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
26351 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
26352 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
26353 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
26354 and __aarch64_vget_lane_any.
26356 2015-04-14 Jakub Jelinek <jakub@redhat.com>
26358 PR rtl-optimization/65761
26359 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
26360 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
26362 2015-04-14 Richard Biener <rguenther@suse.de>
26364 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
26365 (graphite_can_represent_scev): Use POINTER_TYPE_P.
26367 2015-04-14 Richard Biener <rguenther@suse.de>
26369 PR tree-optimization/65758
26370 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
26372 (ccp_lattice_meet): Likewise.
26373 (bit_value_unop): Likewise.
26374 (bit_value_binop): Likewise.
26375 (bit_value_assume_aligned): Likewise.
26377 2015-04-14 Christian Bruel <christian.bruel@st.com>
26379 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
26382 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
26384 PR tree-optimization/63387
26385 * match.pd ((x unord x) | (y unord y) -> (x unord y),
26386 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
26388 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
26390 * config/i386/predicates.md (any_QIreg_operand): Rename from
26391 q_regs_operand. Do not process subregs.
26392 (QIreg_operand): Use QI_REGNO_P predicate.
26393 (ext_QIreg_operand): Ditto.
26394 (ext_register_operand): Ditto.
26395 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
26396 (AND splitters): Ditto.
26397 (AND with -65536 splitter): Add SWI48 mode for operand 0.
26398 (AND with -256 splitter): Use any_QIreg_operand predicate and
26399 SWI248 mode for operand 0.
26400 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
26401 mode for operand 0.
26402 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
26404 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
26406 * doc/plugins.texi: Rewrite first introductory paragraph.
26408 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26410 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
26411 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
26413 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26415 * ipa-profie.c (ipa_profile): Check number of parameters
26416 and possible polymorphic call targets before
26419 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
26421 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
26422 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
26424 2015-04-13 Richard Biener <rguenther@suse.de>
26426 PR tree-optimization/65204
26427 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
26428 takens for bit-CCP.
26430 2015-04-13 Richard Biener <rguenther@suse.de>
26433 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
26434 and cond_not_taken_branch_cost to 4 and 2.
26435 (bdver2_cost): Likewise.
26436 (bdver3_cost): Likewise.
26437 (bdver4_cost): Likewise.
26439 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26441 * hash-table.h (hash_table constructor): Add mem stats.
26442 (alloc_entries): Likewise.
26444 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26446 * ipa-cp.c (ipcp_driver): Relase prev_edge.
26447 * passes.c (execute_one_pass): Only add transform if pass has one.
26449 2015-04-12 Joseph Myers <joseph@codesourcery.com>
26451 * config/i386/i386.c (ix86_option_override_internal): Don't set
26452 -fprefetch-loop-arrays if optimizing for size.
26454 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26455 Gerald Pfeifer <gerald@pfeifer.com>
26457 * doc/contrib.texi (Contributors): Add Martin Jambor and
26460 2015-04-12 Jakub Jelinek <jakub@redhat.com>
26462 * BASE-VER: Set to 6.0.0.
26464 PR tree-optimization/65747
26465 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
26466 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
26468 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
26470 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
26471 sentence. Improve grammar.
26473 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
26475 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
26477 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
26480 * ipa-inline-transform.c (speculation_removed): Remove static var.
26481 (check_speculations): New function.
26482 (clone_inlined_nodes): Do not check spculations.
26483 (inline_call): Call check_speculations.
26484 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
26485 consider non-invariants.
26487 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
26488 Martin Liska <mliska@suse.cz>
26491 * ipa-icf.c (sem_item::compare_cgraph_references): function and
26492 variable can not match.
26493 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
26494 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
26496 2015-04-11 Jakub Jelinek <jakub@redhat.com>
26498 PR tree-optimization/65735
26499 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
26500 Remove visited_phis argument, add visited_bbs, avoid recursing into the
26501 same bb rather than just into the same phi node.
26502 (thread_through_normal_block): Adjust caller.
26504 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
26506 * doc/contrib.texi (Contributors): Add Ira Rosen.
26508 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
26510 * gcov.c (find_source): Fix miswording in error message.
26511 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
26512 (ix86_expand_sse_comi_round): Fix typo in error message.
26514 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
26516 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
26518 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
26520 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
26522 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
26525 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
26526 Print bad_spills_num and insn_pseudos_num.
26528 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26531 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
26532 when creating +1 values for SImode.
26534 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
26537 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
26540 2015-04-10 Jakub Jelinek <jakub@redhat.com>
26541 Iain Sandoe <iain@codesourcery.com>
26544 * configure: Regenerate.
26546 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
26549 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
26551 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
26553 * doc/contrib.texi (Contributors): Add John Marino.
26555 2015-04-09 Jakub Jelinek <jakub@redhat.com>
26557 PR tree-optimization/65709
26558 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
26559 TREE_TYPE (TREE_TYPE (t)).
26561 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
26564 * lra-int.h (lra_bad_spill_regno_start): New.
26565 * lra.c (lra_bad_spill_regno_start): New.
26566 (lra): Set up lra_bad_spill_regno_start. Set up
26567 lra_constraint_new_regno_start unconditionally.
26568 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
26571 2015-04-09 Marek Polacek <polacek@redhat.com>
26572 Jakub Jelinek <jakub@redhat.com>
26574 PR middle-end/65554
26575 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
26576 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
26579 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
26581 PR rtl-optimization/65693
26582 * combine.c (is_parallel_of_n_reg_sets): Move outside of
26585 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
26588 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
26589 device specs file if "device-specs%s" didn't resolve to a path.
26591 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
26594 * config/i386/i386.c (fixup_modeless_constant): New.
26595 (ix86_expand_args_builtin): Fixup modeless constant operand.
26596 (ix86_expand_round_builtin): Ditto.
26597 (ix86_expand_special_args_builtin): Ditto.
26598 (ix86_expand_builtin): Ditto.
26600 2015-04-09 Jakub Jelinek <jakub@redhat.com>
26603 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
26604 any pow2 integer in between 2 and 0x80000000U inclusive.
26606 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
26608 PR rtl-optimization/65693
26609 * combine.c (is_parallel_of_n_reg_sets): Change first argument
26610 from an rtx_insn * to an rtx.
26611 (try_combine): Adjust both callers. Use it once more.
26613 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
26615 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
26616 (chkp_make_static_const_bounds): Search existing
26617 symbol by assembler name. Use make_decl_one_only.
26618 (chkp_get_zero_bounds_var): Remove node search which
26619 is now performed in chkp_make_static_const_bounds.
26620 (chkp_get_none_bounds_var): Likewise.
26622 2015-04-08 Michael Witten <mfwitten@gmail.com>
26624 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
26627 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26629 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
26631 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
26633 * doc/extend.texi (__sync Builtins): Fix grammar.
26635 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26637 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
26639 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26641 * varasm.c (emit_local): Move definition of align.
26643 2015-04-08 Julian Brown <julian@codesourcery.com>
26645 * config/nvptx/mkoffload.c (process): Support variable mapping.
26647 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
26649 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
26651 (alpha_write_one_linkage): Correct typo.
26653 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
26655 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
26657 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
26659 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
26661 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
26663 * tree-chkp.h (chkp_insert_retbnd_call): New.
26664 * tree-chkp.c (chkp_insert_retbnd_call): New.
26665 * ipa-split.c (insert_bndret_call_after): Remove.
26666 (split_function): Use chkp_insert_retbnd_call.
26667 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
26668 bounds for instrumented functions.
26670 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
26673 * calls.c (initialize_argument_information): When producing tail
26674 call also turn SSA_NAMES passed by references to original PARM_DECLs
26676 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
26679 * lra-remat.c (do_remat): Process input and non-input insn
26680 registers separately.
26682 2015-04-07 Jakub Jelinek <jakub@redhat.com>
26685 * valtrack.c (debug_lowpart_subreg): New function.
26686 (dead_debug_insert_temp): Use it.
26688 PR middle-end/65680
26689 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
26690 into signed HOST_WIDE_INT the same as negative bit_offset.
26692 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
26694 * ipa-comdats.c (ipa_comdats): Visit all thunks
26695 to set proper comdat group.
26697 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26700 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
26701 on constants for NEON VSTRUCT modes.
26703 2015-04-07 Jakub Jelinek <jakub@redhat.com>
26704 Iain Sandoe <iain@codesourcery.com>
26707 * configure: Regenerate.
26709 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
26712 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
26713 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
26714 that LFD is used to load double constants instead of LFS. Add
26715 defaults for all costs structures. Add comments for missing
26716 initialization fields.
26717 (size32_cost): Likewise.
26718 (size64_cost): Likewise.
26719 (rs64a_cost): Likewise.
26720 (mpccore_cost): Likewise.
26721 (ppc403_cost): Likewise.
26722 (ppc405_cost): Likewise.
26723 (ppc440_cost): Likewise.
26724 (ppc476_cost): Likewise.
26725 (ppc601_cost): Likewise.
26726 (ppc603_cost): Likewise.
26727 (ppc604_cost): Likewise.
26728 (ppc604e_cost): Likewise.
26729 (ppc620_cost): Likewise.
26730 (ppc630_cost): Likewise.
26731 (ppccell_cost): Likewise.
26732 (ppc750_cost): Likewise.
26733 (ppc7450_cost): Likewise.
26734 (ppc8540_cost): Likewise.
26735 (ppce300c2c3_cost): Likewise.
26736 (ppce500mc_cost): Likewise.
26737 (ppce500mc64_cost): Likewise.
26738 (ppce5500_cost): Likewise.
26739 (ppce6500_cost): Likewise.
26740 (titan_cost): Likewise.
26741 (power4_cost): Likewise.
26742 (power6_cost): Likewise.
26743 (power7_cost): Likewise.
26744 (power8_cost): Likewise.
26745 (ppca2_cost): Likewise.
26746 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
26748 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
26749 instead of XXLOR to copy SFmode to clear out dirty bits created
26750 when SFmode denormals are generated.
26751 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
26752 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
26754 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
26756 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
26757 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
26758 * config/aarch64/aarch64-tune.md: Regenerate.
26760 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
26762 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
26763 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
26764 * config/arm/arm-cores.def (exynos-m1): New core.
26765 * config/arm/arm-tune.md: Regenerate.
26766 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
26767 * config/arm/bpabi.h: Likewise.
26769 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
26771 * ipa-cp (set_single_call_flag): Remove too
26772 restrictive assert.
26774 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
26776 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
26777 GOMP_offload_unregister from the destructor.
26779 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
26781 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
26782 flags for instrumentation thunk.
26783 (chkp_produce_thunks): Likewise.
26785 2015-04-05 Martin Liska <mliska@suse.cz>
26788 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
26789 has computed data structure.
26790 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
26792 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
26794 * invoke.texi (inline-unit-growth): Increase growth to 20%
26795 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
26797 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
26800 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
26802 (lra_rematerialization_iter): New.
26803 * lra.c (lra): Initialize lra_rematerialization_iter.
26804 Stop updating lra_constraint_new_regno_start after switching of
26805 inheritance and rematerialization.
26806 * lra-remat.c (lra_rematerialization_iter): New.
26807 (lra_remat): Add printing pass iteration. Do rematerialization
26808 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
26810 2015-04-04 Richard Biener <rguenther@suse.de>
26812 PR tree-optimization/64909
26813 PR tree-optimization/65660
26814 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
26815 to take a cost vector for scalar iteration cost.
26816 (vect_get_single_scalar_iteration_cost): Likewise.
26817 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
26818 Compute the scalar iteration cost into a cost vector.
26819 (vect_get_known_peeling_cost): Use the scalar cost vector to
26820 account for the cost of the peeled iterations.
26821 (vect_estimate_min_profitable_iters): Likewise.
26822 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
26825 2015-04-04 Alan Modra <amodra@gmail.com>
26829 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
26830 0.0 constant unless TARGET_VSX.
26831 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
26834 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
26837 * ipa-inline-transform.c (inline_call): Skip sanity check to work
26840 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
26843 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
26844 speculative indirect edges to avoid ordering issue.
26846 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
26849 * ipa-inline.c (edge_badness): Add combined size to the denominator.
26851 2015-04-03 Jakub Jelinek <jakub@redhat.com>
26853 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
26854 TYPE_ARTIFICIAL on the .omp_data* types.
26856 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26858 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
26859 instrumentation thunks.
26861 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26863 * config/i386/i386.c (ix86_expand_call): Avoid nested
26864 PARALLEL in returned call value.
26866 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26868 * lto-cgraph.c (input_cgraph_1): Always link instrumented
26869 assembler name with original one.
26871 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
26873 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
26875 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
26877 Revert parts of r216820.
26878 * config/i386/i386.md (movqi_internal): Correct type calculation
26879 for alternatives 3 and 5.
26881 2015-04-02 Jakub Jelinek <jakub@redhat.com>
26883 PR preprocessor/61977
26884 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
26885 predefine __vector/__bool/__pixel macros nor context sensitive
26886 macros for CLK_ASM.
26887 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
26889 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
26891 * config/pa/pa.c (pa_output_move_double): Directly handle register
26892 indexed memory operand. Simplify handling of scaled register indexed
26895 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26898 * config/i386/linux-common.h (MPX_SPEC): New.
26899 (CHKP_SPEC): Add MPX_SPEC.
26900 * doc/invoke.texi (-fcheck-pointer-boudns): Document
26901 possible issues with '-z bndplt' support in linker.
26903 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
26905 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
26906 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
26907 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
26908 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
26909 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
26911 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
26913 * config/i386/sync.md (UNSPEC_MOVA): Remove.
26914 (atomic_load<mode>): Change operand 0 predicate to
26915 nonimmediate_operand and fix up the destination when needed.
26917 (atomic_loaddi_fpu): Use UNSPEC_LDA.
26918 (atomic_store<mode>): Change operand 1 predicate to
26919 nonimmendate_operand and move the source to register when needed.
26921 (atomic_store<mode>_1): Use UNSPEC_STA.
26922 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
26923 Fix moves from memory operand. Use UNSPEC_STA.
26925 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
26927 * expmed.c (strict_volatile_bitfield_p): Check that the access will
26928 not cross a MODESIZE boundary.
26929 (store_bit_field, extract_bit_field): Added assertions in the
26930 strict volatile bitfields code path.
26932 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
26935 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
26936 Increase args array size by one to avoid buffer overflow.
26938 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
26940 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
26942 * ipa-inline.c (edge_badness): Add wrapper penalty.
26943 (sum_callers): Move up.
26944 (inline_small_functions): Set single_caller.
26945 * ipa-inline.h (inline_summary): Add single_caller.
26946 * ipa-split.c (split_function): Set split_part.
26947 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
26948 * cgraph.h (cgraph_node): Add split_part.
26950 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
26953 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
26954 Do not split operands 0 and operands 2 to halfmode.
26955 (atomic_compare_and_swap<mode>): Update for
26956 atomic_compare_and_swap<dwi>_doubleword changes.
26958 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
26960 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
26961 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
26962 no caching is done.
26964 2015-03-31 Martin Liska <mliska@suse.cz>
26967 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
26968 has already filled up function summary.
26969 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
26971 2015-03-31 Richard Biener <rguenther@suse.de>
26973 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
26976 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
26978 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
26980 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
26981 (s390_asm_output_function_label): Adapt to new signature of
26982 s390_function_num_hotpatch_hw
26983 Optimise the code generating assembler output.
26984 Add comments to assembler file.
26986 2015-03-31 Richard Biener <rguenther@suse.de>
26988 PR middle-end/65626
26989 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
26990 of the noreturn call so it is last and cleanup_control_flow_bb
26991 can do the CFG part.
26993 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
26996 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
26997 same_comdat_group for external symbols.
26998 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
26999 infinite same_comdat_group traversal loop.
27001 2015-03-31 Jakub Jelinek <jakub@redhat.com>
27004 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
27005 automatically to $headers.
27007 2015-03-30 Jakub Jelinek <jakub@redhat.com>
27010 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
27011 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
27013 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
27015 * ipa-prop.c (param_type_may_change_p): Likewise.
27016 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
27017 (remove_unused_scope_block_p): Add in_ctor_dtor_block
27018 argument. Before inlining, preserve
27019 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
27020 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
27022 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
27024 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
27027 * ipa-inline.c (edge_badness): Base denominator on callee's
27030 2015-03-27 Martin Jambor <mjambor@suse.cz>
27033 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
27034 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
27035 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
27036 node_calling_single_call.
27037 * ipa-cp.c (count_callers): New function.
27038 (set_single_call_flag): Likewise.
27039 (initialize_node_lattices): Count callers and set single_flag_call if
27041 (incorporate_penalties): New function.
27042 (good_cloning_opportunity_p): Use it, dump new flags.
27043 (propagate_constants_topo): Set node_within_scc flag if appropriate.
27044 * doc/invoke.texi (ipa-cp-recursion-penalty,
27045 ipa-cp-single-call-pentalty): Document.
27047 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
27050 * symtab.c (symtab_node::get_partitioning_class): Register vars
27052 * varpool.c (symbol_table::output_variables) Do not assemble unefined
27053 decls for non-symbols.
27055 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
27058 * output.h (default_binds_local_p_2): New.
27059 * varasm.c (default_binds_local_p_2): Renamed to ...
27060 (default_binds_local_p_3): This. Don't return true on protected
27061 data symbol if protected data may be external.
27062 (default_binds_local_p): Use default_binds_local_p_3.
27063 (default_binds_local_p_1): Likewise.
27064 (default_binds_local_p_2): New.
27065 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
27066 default_binds_local_p_2 if TARGET_MACHO is undefined.
27068 2015-03-27 Jakub Jelinek <jakub@redhat.com>
27071 * config/i386/i386.c (legitimize_pic_address): If base
27072 is SYMBOL_REF or LABEL_REF using %rip addressing, force
27073 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
27075 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
27078 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
27081 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
27084 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
27085 of optimized out indirect call.
27086 (redirect_to_unreachable): Always build symbol table node for
27087 BUILT_IN_UNREACHABLE
27089 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
27092 * ira-costs.c (record_reg_classes): Process all constraint string
27095 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
27097 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
27101 * config/c6x/constraints.md (S3): New constraint.
27102 * config/c6x/c6x.md (real_jump): Use it.
27104 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27106 PR middle-end/65595
27107 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
27108 do redirection if the call is not optimized out.
27110 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
27113 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
27114 (fchkp-check-incomplete-type): Add LTO.
27115 (fchkp-zero-input-bounds-for-main): Likewise.
27116 (fchkp-first-field-has-own-bounds): Likewise.
27117 (fchkp-narrow-bounds): Likewise.
27118 (fchkp-narrow-to-innermost-array): Likewise.
27119 (fchkp-use-static-bounds): Likewise.
27120 (fchkp-use-static-const-bounds): Likewise.
27121 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
27123 2015-03-27 Marek Polacek <polacek@redhat.com>
27125 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
27127 2015-03-27 Marek Polacek <polacek@redhat.com>
27130 * ubsan.c (ubsan_create_edge): New function.
27131 (instrument_bool_enum_load): Call it.
27132 (instrument_nonnull_arg): Likewise.
27133 (instrument_nonnull_return): Likewise.
27134 (instrument_object_size): Likewise.
27136 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27138 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
27141 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27144 * lto-streamer.h (class lto_location_cache): New.
27145 (struct data_in): Add location_cache.
27146 (lto_input_location): Update prototype.
27147 (stream_input_location_now): New.
27148 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
27149 pointer to location.
27150 (stream_input_location): Update.
27151 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
27152 (warn_odr): Apply location cache before warning.
27153 (lto_input_location): Update prototype.
27154 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
27155 Use stream_input_location_now.
27156 * lto-streamer-in.c (lto_location_cache::current_cache): New static
27158 (lto_location_cache::cmp_loc): New function.
27159 (lto_location_cache::apply_location_cache): New function.
27160 (lto_location_cache::accept_location_cache): New function.
27161 (lto_location_cache::revert_location_cache): New function.
27162 (lto_location_cache::input_location): New function.
27163 (lto_input_location): Do location caching.
27164 (stream_input_location_now): New function.
27165 (input_eh_region, input_struct_function_base): Use
27166 stream_input_location_now.
27167 (lto_data_in_create): use new.
27168 (lto_data_in_delete): Use delete.
27169 * tree-streamer-in.c (unpack_ts_block_value_fields,
27170 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
27171 lto_input_ts_exp_tree_pointers): Update for cached location api.
27173 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27176 * passes.def: Add pass_nothrow.
27177 * ipa-pure-const.c: (pass_data_nothrow): New.
27178 (pass_nothrow): New.
27179 (pass_nothrow::execute): New.
27180 (make_pass_nothrow): New.
27181 * tree-pass.h (make_pass_nothrow): Declare.
27183 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27185 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
27186 edge to change by speculation resolution or redirection.
27187 (edge_set_predicate): Likewise.
27188 (inline_summary_t::duplicate): Likewise.
27189 (remap_edge_summaries): Likewise.
27191 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27193 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
27195 (can_inline_edge_p): Relax option matching for always inline functions.
27197 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
27200 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
27201 Check operand 4 and operand 0 for equality.
27202 (avx512f_vextract<shuffletype>32x4_1_maskm):
27203 Check operand 6 and operand 0 for equality.
27204 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
27206 (vec_extract_hi_<mode>_maskm): Ditto.
27208 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27210 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
27211 dead calls back to live.
27212 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
27214 (cgraph_node::verify_node): ... here; verify only callee edges,
27216 * cif-code.def (CILK_SPAWN): New code.
27218 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27220 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
27221 (edge_set_predicate): Use it to mark unreachable edges.
27222 (inline_summary_t::duplicate): Remove unnecesary code.
27223 (remap_edge_summaries): Likewise.
27224 (dump_inline_summary): Report contains_cilk_spawn.
27225 (compute_inline_parameters): Compute contains_cilk_spawn.
27226 (inline_read_section, inline_write_summary): Stream
27227 contains_cilk_spawn.
27228 * ipa-inline.c (can_inline_edge_p): Do not touch
27229 DECL_STRUCT_FUNCTION that may not be available;
27230 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
27231 remove check for callee_fun->can_throw_non_call_exceptions and
27232 replace it by optimization attribute check; check for flag_exceptions.
27233 * ipa-inline-transform.c (inline_call): Maintain
27234 DECL_FUNCTION_PERSONALITY
27235 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
27237 2015-03-26 Jakub Jelinek <jakub@redhat.com>
27239 PR tree-optimization/65551
27240 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
27241 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
27243 2015-03-26 Richard Biener <rguenther@suse.de>
27245 PR middle-end/65555
27246 * tree-cfg.c (verify_gimple_call): Do not require a call to
27247 have no LHS if it wasn't recognized as control altering yet.
27249 2015-03-26 Jakub Jelinek <jakub@redhat.com>
27251 PR tree-optimization/64715
27252 * passes.def: Add another instance of pass_object_sizes before ccp1.
27253 * tree-object-size.c (pass_object_sizes::execute): In
27254 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
27255 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
27256 __bos result and the computed constant. Remove redundant
27257 checks, obsoleted by gimple_call_builtin_p test.
27259 * var-tracking.c (variable_tracking_main_1): Don't track
27260 variables for targetm.no_register_allocation targets.
27262 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
27264 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
27265 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
27267 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
27270 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
27271 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
27272 0.0 is correctly setup.
27273 (extenddftf2_internal): Likewise.
27275 2015-03-25 Sebastian Pop <s.pop@samsung.com>
27277 PR tree-optimization/65177
27278 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
27280 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
27281 edges not adjacent on the path to the original code.
27283 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
27286 * doc/install.texi (Building a native compiler): Document new
27287 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
27288 configuration assumes that the host supports the linker plugin.
27290 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
27293 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
27294 chain for generated call.
27296 2015-03-25 Richard Biener <rguenther@suse.de>
27298 * passes.c (pass_manager::execute_early_local_passes): Guard
27299 execution of pass_chkp_instrumentation_passes with
27300 flag_check_pointer_bounds.
27301 (pass_chkp_instrumentation_passes::gate): Likewise.
27303 2015-03-25 Martin Liska <mliska@suse.cz>
27305 PR tree-optimization/65538
27306 * symbol-summary.h (function_summary::~function_summary):
27307 Relese memory for allocated summaries.
27308 (function_summary::release): New function.
27310 2015-03-25 Jakub Jelinek <jakub@redhat.com>
27313 * lto-streamer-out.c (DFS::worklist): New struct.
27314 (DFS::worklist_vec): New data member.
27315 (DFS::next_dfs_num): Remove.
27316 (DFS::DFS): Rewritten using worklist instead of recursion,
27317 using most of code from DFS::DFS_write_tree.
27318 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
27319 pass it to DFS_write_tree calls.
27320 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
27321 quick initial checks push it into worklist_vec and return.
27323 2015-03-25 Richard Biener <rguenther@suse.de>
27325 PR middle-end/65519
27326 * genmatch.c (expr::gen_transform): Re-write to avoid
27327 using gimple_build.
27329 2015-03-25 Bin Cheng <bin.cheng@arm.com>
27331 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
27333 2015-03-25 Bin Cheng <bin.cheng@arm.com>
27335 * config/arm/arm.opt (print_tune_info): New option.
27336 * config/arm/arm.c (arm_print_tune_info): New function.
27337 (arm_file_start): Call arm_print_tune_info.
27338 * config/arm/arm-protos.h (struct tune_params): Add comment.
27339 * doc/invoke.texi (@item -mprint-tune-info): New item.
27340 (-mtune): mention it in ARM Option Summary.
27342 2015-03-25 DJ Delorie <dj@redhat.com>
27344 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
27347 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
27348 Martin Liska <mliska@suse.cz>
27350 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
27351 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
27352 (sem_item::add_type): New function.
27353 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
27354 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
27355 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
27356 (sem_function::equals_wpa): Fix typo.
27357 * ipa-icf.h (sem_item::add_type): New function.
27358 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
27361 2015-03-24 Jakub Jelinek <jakub@redhat.com>
27363 PR tree-optimization/65533
27364 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
27365 with swapped operands, call vect_free_slp_tree on
27366 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
27369 2015-03-24 Richard Biener <rguenther@suse.de>
27371 PR middle-end/65517
27372 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
27373 for fixup if necessary.
27375 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
27377 * doc/extend.texi (Function Attributes): Add @cindex entries
27378 for all attributes and regularize their format. Delete text
27379 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
27380 information about "eightbit_data", "tiny_data", and "model"
27381 variable attributes to the Variable Attributes section. Fix
27382 some obvious typos and copy-editing issues.
27383 (Variable Attributes, Type Attributes): Likewise add/fix
27384 @cindex entries for all attributes.
27386 2015-03-23 Jakub Jelinek <jakub@redhat.com>
27389 * tree-chkp.c (chkp_build_returned_bound): Ignore
27390 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
27392 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
27395 * config/sh/predicates.md (simple_mem_operand,
27396 displacement_mem_operand): Add test for reg.
27397 (short_displacement_mem_operand): Test for displacement_mem_operand
27398 before invoking sh_disp_addr_displacement.
27399 * config/sh/constraints.md (Sdd, Sra): Simplify.
27400 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
27401 Remove redundant displacement_mem_operand tests.
27403 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
27406 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
27407 the same -mmcu=MCU more than once.
27409 2015-03-23 Jakub Jelinek <jakub@redhat.com>
27412 * ipa-devirt.c: Remove duplicate demangle.h include.
27415 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
27417 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
27418 REG_POINTER on *destptr after adjusting it for prologue size.
27421 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
27422 ultimate_alias_target ()->order ints instead of
27423 ultimate_alias_target () pointers.
27425 2015-03-23 Richard Biener <rguenther@suse.de>
27427 PR tree-optimization/65518
27428 * tree-vect-stmts.c (vectorizable_load): Reject single-element
27429 interleaving cases we generate absymal code for.
27431 2015-03-23 Richard Biener <rguenther@suse.de>
27433 PR tree-optimization/65494
27434 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
27436 (vect_analyze_slp_instance): But do that here, always and once.
27438 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27440 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
27441 adding T or multiplying by T+1 and subracting T.
27443 2015-03-22 Jeff Law <law@redhat.com>
27445 PR rtl-optimization/64317
27446 * Makefile.in (OBJS): Add gcse-common.c
27447 * gcse.c: Include gcse-common.h
27448 (struct modify_pair_s): Move structure definition to gcse-common.h
27449 (compute_transp): Move function to gcse-common.c.
27450 (canon_list_insert): Similarly.
27451 (record_last_mem_set_info): Break out some code and put it into
27452 gcse-common.c. Call into the new common code.
27453 (compute_local_properties): Pass additional arguments to compute_transp.
27454 * postreload-gcse.c: Include gcse-common.h and df.h
27455 (modify_mem_list_set, blocks_with_calls): New variables.
27456 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
27457 (get_bb_avail_insn): Pass in the expression index too.
27458 (alloc_mem): Allocate memory for the new bitmaps and lists.
27459 (free_mem): Free memory for the new bitmaps and lists.
27460 (insert_expr_in_table): Record a bitmap index for each entry we
27462 (record_last_mem_set_info): Call into common code in gcse-common.c.
27463 (get_bb_avail_insn): If no available insn was found in the requested
27464 BB. If BB has a single predecessor, see if the expression is
27465 transparent in BB and available in that single predecessor.
27466 (compute_expr_transp): New wrapper for compute_transp.
27467 (eliminate_partially_redundant_load): Pass expression's bitmap_index
27468 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
27469 (gcse_after_reload_main): If there are elements in the hash table,
27470 then compute transparency for all the elements in the hash table.
27471 * gcse-common.h: New file.
27472 * gcse-common.c: New file.
27474 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
27476 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
27478 (System Headers): Likewise.
27480 (Traditional macros): Likewise.
27481 (Invocation): Likewise.
27482 (Option Index): Likewise.
27483 * doc/cppopts.texi (-M): Likewise.
27484 (-finput-charset): Likewise.
27485 (--help): Likewise.
27486 * doc.invoke.texi (AVR Options): Likewise.
27487 (V850 Options): Likewise.
27489 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
27492 * ipa-devirt.c: Include demangle.h
27493 (odr_type_d): Add field rtti_broken.
27494 (odr_subtypes_equivalent_p): Do not require name to match.
27495 (compare_virtual_tables): Fix typo; if type already has ODR violation,
27496 bypass the tests; be ready for function referneces in vtables that are
27497 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
27498 (warn_odr): Give up for nameless types.
27499 (warn_types_mismatch): Report mismatch in mangled names;
27500 report mismatch in anonymous namespaces; look into component types to
27501 give useful error; report when mismatch is dragged in from other ODR
27503 (odr_types_equivalent_p): Match types for being polymorphic; avoid
27504 duplicated diagnostics.
27505 (add_type_duplicate): Reorder checks so more informative ones come
27506 first; fix typo; do not output "the extra base is defined here" when
27508 (BINFO_N_BASE_BINFOS): Relax sanity check.
27510 2015-03-22 Martin Liska <mliska@suse.cz>
27511 Jakub Jelinek <jakub@redhat.com>
27513 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
27514 masks that can potentially include a builtin.
27515 (ix86_add_new_builtins): Introduce fast filter for isa values
27516 that cannot trigger builtin inclusion.
27518 2015-03-22 Martin Liska <mliska@suse.cz>
27520 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
27521 (sem_item::update_hash_by_local_refs): Likewise.
27522 (sem_variable::get_hash): Empty line is fixed.
27523 (sem_item_optimizer::execute): Include adding of hash references.
27524 (sem_item_optimizer::update_hash_by_addr_refs): New function.
27525 (sem_item_optimizer::build_hash_based_classes): Use local hash.
27526 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
27527 (sem_item::update_hash_by_local_refs): Likewise.
27529 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
27532 * ipa-comdats.c (enqueue_references): Walk through thunks.
27533 (ipa_comdats): Likewise.
27534 (set_comdat_group_1): New function.
27536 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
27539 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
27542 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
27543 Gerald Pfeifer <gerald@pfeifer.com>
27545 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
27547 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
27548 Sandra Loosemore <sandra@codesourcery.com>
27550 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
27551 function parameter declaration.
27552 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
27553 Update arguments to nios2_adjust_call_address().
27554 (sibcall_internal): Rename from *sibcall.
27555 (sibcall_value_internal): Rename from *sibcall_value.
27556 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
27557 (nios2_large_got_address): Add target temp reg parameter.
27558 (nios2_got_address): Adjust call to nios2_large_got_address, add
27559 force_reg around it.
27560 (nios2_load_pic_address): Add target temp reg parameter, replace call
27561 to nios2_got_address with corresponding code.
27562 (nios2_legitimize_constant_address): Update call to
27563 nios2_load_pic_address.
27564 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
27565 to use temp reg for PIC loading purposes.
27566 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
27567 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
27568 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
27570 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
27572 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
27573 usage of "the @option{...}".
27574 (-Wopenmp-simd): Likewise.
27575 (-fsanitize-recover): Likewise.
27576 (-fsanitize-undefined-trap-on-error): Likewise.
27578 (tracer-dynamic-coverage-feedback): Likewise.
27579 (reorder-block-duplicate-feedback): Likewise.
27580 (loop-unroll-jam-size): Likewise.
27583 (-mabs=legacy): Likewise.
27584 (-mupper-regs-df): Likewise.
27585 (-mupper-regs-sf): Likewise.
27586 (-mpointers-to-nested-functions): Likewise.
27588 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
27590 * doc/extend.texi (Cilk Plus Builtins): Add markup.
27592 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
27594 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
27595 additional index entries and cross-references.
27596 (-fchkp-check-incomplete-type): Likewise.
27597 (-fchkp-first-field-has-own-bounds): Likewise.
27598 (-fchkp-narrow-to-innermost-array): Likewise.
27599 (-fchkp-use-fast-string-functions): Likewise.
27600 (-fchkp-use-nochk-string-functions): Likewise.
27601 (-fchkp-use-static-const-bounds): Likewise.
27602 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
27603 (-fchkp-instrument-marked-only): Likewise.
27604 (-fchkp-use-wrappers): Likewise.
27605 (-static-libmpx): Likewise.
27606 (-static-libmpxwrappers): Likewise.
27607 * doc/extend.texi (bnd_legacy): Likewise.
27608 (bnd_instrument): Likewise.
27609 (bnd_variable_size): Likewise.
27610 (Pointer Bounds Checker builtins): Likewise.
27612 2015-03-21 Tom de Vries <tom@codesourcery.com>
27614 PR tree-optimization/65458
27615 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
27616 * cgraph.h (cgraph_node): Add parallelized_function field.
27617 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
27618 (input_overwrite_node): Read parallelized_function field.
27619 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
27620 parallelized_function on cgraph_node for child_fn.
27621 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
27622 Remove include of gt-tree-parloops.h.
27623 (parallelized_functions): Remove static variable.
27624 (parallelized_function_p): Rewrite using parallelized_function field of
27626 (create_loop_fn): Remove adding to parallelized_functions.
27627 * Makefile.in (GTFILES): Remove tree-parloops.c
27629 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
27631 PR rtl-optimization/64366
27632 * lra.c (lra_update_insn_regno_info): Consider regs in
27633 CALL_INSN_FUNCTION_USAGE memory.
27635 2015-03-20 Richard Biener <rguenther@suse.de>
27637 PR middle-end/64715
27638 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
27639 for type comparison and gcc_checking_assert.
27640 (chrec_fold_plus_poly_poly): Likewise.
27641 (chrec_fold_multiply_poly_poly): Likewise.
27642 (chrec_convert_1): Likewise.
27643 * gimplify.c (gimplify_expr): Remove premature folding of
27644 &X + CST to &MEM[&X, CST].
27646 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
27648 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
27650 (ipa_inline): Recompute inline_failed codes.
27651 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
27652 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
27655 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
27657 PR rtl-optimization/60851
27658 * recog.c (constrain_operands): Accept a pseudo register before reload
27659 for LRA enabled targets.
27661 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
27664 * config/rs6000/predicates.md (easy_fp_constant): Remove special
27665 -ffast-math handling that kept non-0 constants live in the RTL
27666 until reload. Remove logic testing the number of instructions it
27667 took to create a constant in a GPR that was never used, due to a
27668 test for soft-float earlier.
27669 (memory_fp_constant): Delete, no longer used.
27671 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
27672 alternatives for loading non-0 constants into GPRs for hard
27673 floating point that is no longer needed due to changes in
27674 easy_fp_constant. Add support for loading 0.0 into GPRs.
27675 (mov<mode>_hardfloat32): Likewise.
27676 (mov<mode>_hardfloat64): Likewise.
27677 (mov<mode>_64bit_dm): Likewise.
27678 (movtd_64bit_nodm): Likewise.
27679 (pre-reload move FP constant define_split): Delete define_split,
27680 since it is no longer used.
27681 (extenddftf2_internal): Remove GHF constraints that are not valid
27684 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
27686 PR rtl-optimization/63491
27687 * lra-constraints.c (check_and_process_move): Use src instead of
27688 sreg. Remove some dead code.
27690 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
27693 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
27694 (sem_variable::merge): Likewise.
27696 2015-03-19 Martin Liska <mliska@suse.cz>
27699 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
27700 all fields of cgraph_thunk_info.
27702 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
27704 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
27705 clone instrumented thunks.
27707 2015-03-19 Richard Biener <rguenther@suse.de>
27710 2015-03-10 Richard Biener <rguenther@suse.de>
27712 PR middle-end/63155
27713 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
27714 * tree-ssa-coalesce.c: Include timevar.h.
27715 (attempt_coalesce): Handle graph being NULL.
27716 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
27717 Split out abnormal coalescing to ...
27718 (perform_abnormal_coalescing): ... this function.
27719 (coalesce_ssa_name): Perform abnormal coalescing without computing
27721 (verify_ssa_coalescing_worker): New function.
27722 (verify_ssa_coalescing): Likewise.
27724 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
27725 Jakub Jelinek <jakub@redhat.com>
27728 * tsan.c (instrument_gimple): Clear tail call flag on
27731 2015-03-19 Jakub Jelinek <jakub@redhat.com>
27734 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
27735 call in the return bb.
27736 (find_split_points): Add RETURN_BB argument, don't call
27738 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
27739 if true append TSAN_FUNC_EXIT internal call after the call to
27740 the split off function.
27741 (execute_split_functions): Call find_return_bb here.
27742 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
27743 Adjust find_split_points and split_function calls.
27745 2015-03-18 DJ Delorie <dj@redhat.com>
27747 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
27748 (iorqi3_virt): Likewise.
27750 2015-03-18 Tom de Vries <tom@codesourcery.com>
27752 * tree-parloops.c (parallelize_loops): Make static.
27753 * tree-parloops.h (parallelize_loops): Remove extern declaration.
27755 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
27757 PR middle-end/64491
27759 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
27761 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
27762 condition would be removed due to undefined behaviour.
27764 2015-03-18 Martin Liska <mliska@suse.cz>
27767 * cgraph.c (cgraph_node::get_create): Remove unnecessary
27768 xstrdup_for_dump wrapper.
27769 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
27771 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
27772 with xstrdup_for_dump.
27773 (sem_variable::equals): Likewise.
27774 (sem_item_optimizer::read_section): Use symtab_node::name instead of
27776 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
27777 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
27778 symtab_node::asm_name with xstrdup_for_dump.
27779 (congruence_class::dump): Use symtab_node::name instead of
27781 * ipa-icf.h (symtab_node::name): Remove.
27782 (symtab_node::asm_name): Likewise.
27784 2015-03-18 Jakub Jelinek <jakub@redhat.com>
27786 PR tree-optimization/65450
27787 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
27789 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
27790 it instead of duplicate_ssa_name_ptr_info.
27793 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
27795 2015-03-18 Richard Biener <rguenther@suse.de>
27797 * tree-data-ref.h (struct access_matrix): Remove.
27798 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
27799 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
27800 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
27801 (am_vector_index_for_loop): Likewise.
27802 (struct data_reference): Remove access_matrix member.
27803 (DR_ACCESS_MATRIX): Remove.
27804 (lambda_vector_new): Add comment.
27805 (lambda_matrix_new): Use XOBNEWVEC.
27807 2015-03-18 Richard Biener <rguenther@suse.de>
27809 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
27810 (pass_ch::execute): Cleanup the CFG only if we did sth.
27811 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
27813 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27815 * expmed.c (synth_mult): Use std::swap instead of manually
27816 swapping algorithms.
27818 2015-03-18 Jakub Jelinek <jakub@redhat.com>
27821 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
27823 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
27826 * config/avr/avr.opt (-nodevicelib): New option.
27827 * doc/invoke.texi (AVR Options): Document it.
27828 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
27829 libgcc.a, libc.a, libm.a.
27830 * config/avr/specs.h: Same.
27831 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
27832 which don't (directly) depend on the device. Print more help.
27833 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
27834 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
27835 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
27837 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
27838 for specs file name.
27839 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
27840 * config/avr/avr-mcus.def: Adjust initializers and comments.
27842 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
27844 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
27845 DECL_ONE_ONLY to check if decl is one only.
27846 * ipa-split.c (consider_split): Limit splitt of one only functions.
27848 2015-03-16 Jakub Jelinek <jakub@redhat.com>
27850 PR tree-optimization/65427
27851 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
27853 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
27855 2015-03-16 Marek Polacek <polacek@redhat.com>
27857 * cgraph.h (add_new_static_var): Remove declaration.
27858 * varpool.c (add_new_static_var): Remove function.
27860 2015-03-16 Jakub Jelinek <jakub@redhat.com>
27862 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
27863 instead of vec<tree> * with vec_alloc and release for args.
27866 PR middle-end/65431
27867 * omp-low.c (delete_omp_context): Only splay_tree_delete
27868 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
27869 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
27871 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
27874 * cfgexpand.c (align_base): New function.
27875 (alloc_stack_frame_space): Call it.
27876 (expand_stack_vars): Align prev_frame to be sure
27877 data->asan_vec elements aligned properly.
27879 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
27881 PR middle-end/65409
27882 * expr.c (store_field): Do not do a direct block copy if the source is
27883 a PARALLEL with BLKmode.
27885 2015-03-16 Tom de Vries <tom@codesourcery.com>
27887 PR middle-end/65414
27889 2015-03-12 Tom de Vries <tom@codesourcery.com>
27891 PR rtl-optimization/64895
27892 * lra-lives.c (check_pseudos_live_through_calls): Use
27893 actual_call_used_reg_set instead of call_used_reg_set, if available.
27895 2015-03-16 Alan Modra <amodra@gmail.com>
27898 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
27899 Modify Z->r bswapdi splitter to use dest in place of scratch.
27900 In r->Z and Z->r bswapdi splitter rename word_high, word_low
27901 to word1, word2 and rearrange logic to suit.
27902 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
27903 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
27904 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
27905 Add one '?' on r->r. Modify Z->r splitter to avoid need for
27908 2015-03-14 Jakub Jelinek <jakub@redhat.com>
27910 PR tree-optimization/65369
27911 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
27912 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
27913 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
27915 PR tree-optimization/65418
27916 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
27917 are casts in the first PLUS_EXPR operand, ensure tbias and
27918 *totallowp are in the inner type.
27920 PR rtl-optimization/65401
27921 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
27922 argument. If true, adjust_address_nv of x with big-endian
27923 correction for the mode widening to GET_MODE (y).
27924 (make_field_assignment): Don't do MEM mode widening here.
27925 Use MEM_P instead of GET_CODE == MEM.
27927 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
27929 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
27930 the external decls.
27932 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27935 * config/arm/arm.c (arm_gen_constant, AND case): Use
27936 ARM_SIGN_EXTEND when constructing AND mask.
27938 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
27940 * graph.c (print_graph_cfg): Make function names visible and append
27941 parenthesis to it. Also make groups of basic blocks belonging to the
27942 same function visible.
27944 2015-03-12 Richard Biener <rguenther@suse.de>
27946 PR middle-end/44563
27947 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
27948 to avoid quadratic behavior with inline expansion splitting blocks.
27949 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
27950 with the successor if the predecessor will be merged with it.
27951 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
27952 entry block with its successor.
27954 2015-03-13 Richard Biener <rguenther@suse.de>
27956 PR middle-end/44563
27957 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
27958 (cleanup_tree_cfg_1): Do not call it.
27959 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
27960 (fixup_noreturn_call): Mark the stmt as control altering.
27961 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
27963 (pass_data_fixup_cfg): Produce a dump file.
27964 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
27965 (need_noreturn_fixup): New global.
27966 (pass_dominator::execute): Fixup queued noreturn calls.
27967 (optimize_stmt): Queue calls that became noreturn for fixup.
27968 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
27969 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
27970 (el_to_fixup): New global.
27971 (eliminate_dom_walker::before_dom_childre): Queue calls that
27972 became noreturn for fixup.
27973 (eliminate): Fixup queued noreturn calls.
27974 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
27975 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
27976 (substitute_and_fold_dom_walker::before_dom_children): Queue
27977 alls that became noreturn for fixup.
27978 (substitute_and_fold): Fixup queued noreturn calls.
27980 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
27982 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
27983 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
27984 are building; for methods check ODR type of class they belong to if
27985 they may lead to a polymorphic call.
27986 (sem_function::compare_polymorphic_p): Be bit smarter about testing
27987 when function may lead to a polymorphic call.
27988 (sem_function::compare_type_list): Remove.
27989 (sem_variable::equals): Update use of compatible_types_p.
27990 (sem_variable::parse_tree_refs): Remove.
27991 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
27993 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
27995 (func_checker::compatible_polymorphic_types_p): Break out from ...
27996 (unc_checker::compatible_types_p): ... here.
27997 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
27999 (unc_checker::compatible_types_p): Update.
28000 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
28003 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28005 PR rtl-optimization/65235
28006 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
28007 When first element of vec_concat is const_int, calculate its size
28008 using second element.
28010 2015-03-12 Richard Biener <rguenther@suse.de>
28012 PR middle-end/65270
28013 * fold-const.c (operand_equal_p): Fix ordering of resetting
28014 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
28016 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
28018 * config/s390/s390.c (s390_reorg): Move code to output nops after label
28020 (s390_asm_output_function_label): Likewise.
28021 * config/s390/s390.c (s390_asm_output_function_label):
28022 Fix function label alignment with -mhtopatch.
28023 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
28024 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
28025 ("nop_2_byte"): New define_insn.
28026 ("nop_4_byte"): Likewise.
28027 ("nop_6_byte"): Likewise.
28028 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
28029 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
28031 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
28034 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
28037 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
28040 * toplev.c (process_options): Restrict Pointer Bounds Checker
28041 usage with Address Sanitizer.
28043 2015-03-12 Richard Biener <rguenther@suse.de>
28045 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
28047 * omp-low.c (expand_omp_taskreg): Split block before removing
28049 (expand_omp_target): Likewise.
28050 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
28051 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
28052 stmt to split_block.
28054 2015-03-12 Tom de Vries <tom@codesourcery.com>
28056 PR rtl-optimization/64895
28057 * lra-lives.c (check_pseudos_live_through_calls): Use
28058 actual_call_used_reg_set instead of call_used_reg_set, if available.
28060 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
28062 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
28063 (cgraph_node::remove): Likewise.
28064 (cgraph_node::get_untransformed_body): Likewise.
28065 * varpool.c (varpool_node::remove): Likewise.
28066 (varpool_node::get_constructor): Add sanity check.
28068 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
28070 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
28072 (-fabi-compat-version): Likewise.
28073 (-ffriend-injection): Likewise.
28074 (-Wdeclaration-after-statement): Likewise.
28075 (-fomit-frame-pointer): Likewise.
28076 (-ftree-coalesce-inlined-vars): Likewise.
28077 (-fvisibility=): Likewise.
28078 * doc/extend.texi (Typeof): Likewise.
28079 (Zero Length): Likewise.
28080 (Escaped Newlines): Likewise.
28081 (Compound Literals): Likewise.
28082 (Function Attributes): Likewise.
28083 (Label Attributes): Likewise.
28084 (Type Attributes): Likewise.
28085 (Function Names): Likewise.
28086 (Other Builtins): Likewise.
28087 (Function Specific Option Pragmas): Likewise.
28088 (C++ Interface): Likewise.
28090 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
28092 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
28094 2015-03-11 Marek Polacek <polacek@redhat.com>
28096 PR tree-optimization/65388
28097 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
28099 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
28102 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
28103 * configure: Regenerate.
28104 * config.in: Regenerate.
28105 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
28106 [-mn-flash]: Document it.
28107 [__AVR_ARCH__]: Document avrtiny.
28109 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
28110 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
28111 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
28113 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28115 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
28117 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28120 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
28121 allow reloads of PLUS in floating point/VSX registers.
28123 2015-03-11 Junmo Park <junmoz.park@samsung.com>
28125 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
28126 crypto_sha256_fast.
28127 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
28129 2015-03-11 Richard Biener <rguenther@suse.de>
28131 PR tree-optimization/65310
28132 * tree-sra.c (build_ref_for_offset): Also preserve larger
28135 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
28137 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
28139 2015-03-10 Jakub Jelinek <jakub@redhat.com>
28142 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
28144 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
28146 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
28148 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
28149 (sem_function::equals_wpa): ... here.
28151 2015-03-10 Marek Polacek <polacek@redhat.com>
28152 Jakub Jelinek <jakub@redhat.com>
28155 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
28156 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
28159 2015-03-10 Jakub Jelinek <jakub@redhat.com>
28162 * config/rs6000/t-linux: For powerpc64* target set
28163 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
28165 2015-03-10 Richard Biener <rguenther@suse.de>
28167 PR middle-end/44563
28168 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
28169 for redirect_all_calls.
28171 2015-03-10 Marek Polacek <polacek@redhat.com>
28173 * gdbinit.in (pcfun): Define and document.
28175 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
28177 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
28178 of libgomp-plugin.h.
28179 (find_target_compiler): Support a case when the path to gcc is
28180 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
28181 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
28182 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
28184 (main): Use GCC_INSTALL_NAME as target_driver_name.
28185 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
28187 (mkoffload.o): Remove obsolete include path and defines.
28188 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
28190 2015-03-10 Richard Biener <rguenther@suse.de>
28192 PR middle-end/63155
28193 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
28194 * tree-ssa-coalesce.c: Include timevar.h.
28195 (attempt_coalesce): Handle graph being NULL.
28196 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
28197 Split out abnormal coalescing to ...
28198 (perform_abnormal_coalescing): ... this function.
28199 (coalesce_ssa_name): Perform abnormal coalescing without computing
28201 (verify_ssa_coalescing_worker): New function.
28202 (verify_ssa_coalescing): Likewise.
28204 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
28207 * config.gcc (extra_options) [avr]: Remove.
28208 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
28209 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
28210 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
28212 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
28213 (-mmcu=): Add Var and MissingArgError properties.
28215 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
28216 * config/avr/t-multilib: Regenerate.
28217 * config/avr/specs.h: New file.
28218 * config/avr/driver-avr.c: New file.
28219 * config/avr/genopt.sh: Remove file.
28220 * config/avr/avr-tables.opt: Remove file.
28221 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
28222 * config/avr/avr-c.c: Same.
28223 * avr-arch.h: Same.
28224 (avr_current_device): Remove proto.
28225 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
28226 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
28227 (EXTRA_SPEC_FUNCTIONS): Define.
28228 (avr_devicespecs_file): New specs function proto.
28229 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
28230 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
28231 (avr_current_device): Remove definition and usage.
28232 (avr_set_core_architecture): New static function.
28233 (avr_option_override): Use it.
28234 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
28235 (mcu_name): New static array.
28236 (comparator, avr_archs_str, avr_mcus_str): New static functions.
28237 (avr_inform_devices, avr_inform_core_architectures): New functions.
28238 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
28239 (avrlibc.h) [WITH_AVRLIBC]: Include.
28240 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
28241 (print_mcu): Rewrite from scratch.
28242 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
28243 Forward to avr-specific specs defined in device-specs file.
28244 * config/avr/t-avr (driver-avr.o): New rule.
28245 (avr-devices.o): Depend on avr-arch.h.
28246 (avr-mcus): No more depend on avr-tables.opt.
28247 (avr-tables.opt): Remove rule.
28248 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
28250 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
28252 * c-family/c.opt (fchkp-use-wrappers): New.
28253 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
28254 (chkp_wrap_function): New.
28255 (chkp_build_instrumented_fndecl): Support wrapped
28257 * doc/invoke.texi (-fcheck-pointer-bounds): New.
28258 (-fchkp-check-incomplete-type): New.
28259 (-fchkp-first-field-has-own-bounds): New.
28260 (-fchkp-narrow-bounds): New.
28261 (-fchkp-narrow-to-innermost-array): New.
28262 (-fchkp-optimize): New.
28263 (-fchkp-use-fast-string-functions): New.
28264 (-fchkp-use-nochk-string-functions): New.
28265 (-fchkp-use-static-bounds): New.
28266 (-fchkp-use-static-const-bounds): New.
28267 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
28268 (-fchkp-check-read): New.
28269 (-fchkp-check-write): New.
28270 (-fchkp-store-bounds): New.
28271 (-fchkp-instrument-calls): New.
28272 (-fchkp-instrument-marked-only): New.
28273 (-fchkp-use-wrappers): New.
28274 (-static-libmpx): New.
28275 (-static-libmpxwrappers): New.
28277 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
28279 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
28280 (CHKP_SPEC): Add wrappers library.
28281 * c-family/c.opt (static-libmpxwrappers): New.
28283 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
28285 * config/i386/linux-common.h (LIBMPX_LIBS): New.
28286 (LIBMPX_SPEC): New.
28288 * gcc.c (CHKP_SPEC): New.
28289 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
28290 * c-family/c.opt (static-libmpx): New.
28292 2015-03-10 Richard Biener <rguenther@suse.de>
28294 PR middle-end/44563
28295 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
28297 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
28298 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
28299 (cgraph_add_edge_to_call_site_hash): Likewise.
28300 (cgraph_node::get_edge): Likewise.
28301 (cgraph_edge::set_call_stmt): Likewise.
28302 (cgraph_edge::remove_caller): Likewise.
28304 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
28306 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
28307 (callee_saved_gpr_regs_size): ... this.
28308 (callee_saved_regs_first_regno): Rename to ...
28309 (callee_saved_first_gpr_regno): ... this.
28310 (callee_saved_regs_last_regno) Rename to ...
28311 (callee_saved_last_gpr_regno): ... this.
28312 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
28314 (nds32_initial_elimination_offset): Likewise.
28315 (nds32_expand_prologue): Likewise.
28316 (nds32_expand_epilogue): Likewise.
28317 (nds32_expand_prologue_v3push): Likewise.
28318 (nds32_expand_epilogue_v3pop): Likewise.
28319 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
28320 Adjust renamed variables.
28321 (nds32_output_stack_pop): Likewise.
28323 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
28325 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
28328 2015-03-10 Jakub Jelinek <jakub@redhat.com>
28330 PR rtl-optimization/65321
28331 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
28333 * var-tracking.c (use_narrower_mode): Likewise.
28335 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
28337 PR tree-optimization/65355
28338 * varasm.c (notice_global_symbol): Do not produce RTL.
28339 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
28341 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
28342 check for section anchors.
28344 2015-03-10 Alan Modra <amodra@gmail.com>
28347 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
28348 to be single-arch by default. Set cpu_is_64bit for powerpc64
28349 given --with-cpu=native.
28350 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
28351 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
28353 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
28354 rs6000_isa_flags rather than TARGET_64BIT.
28356 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
28357 Kaz Kojima <kkojima@gcc.gnu.org>
28359 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
28361 2015-03-09 Jakub Jelinek <jakub@redhat.com>
28364 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
28365 on a TREE_BINFO, instead use BINFO_TYPE.
28367 2015-03-09 Richard Biener <rguenther@suse.de>
28369 PR middle-end/65270
28370 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
28371 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
28372 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
28373 of that. When comparing dereferences compare alignment.
28374 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
28376 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
28378 * ipa-inline-analysis.c (check_callers): Check
28379 node->can_remove_if_no_direct_calls_and_refs_p.
28380 (growth_likely_positive): Reorganize to call
28381 can_remove_if_no_direct_calls_p later.
28382 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
28383 will_be_removed_from_program_if_no_direct_calls_p): Add
28384 will_inline parameter.
28385 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
28386 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
28387 Handle inliner case correctly.
28389 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
28391 PR tree-optimization/63743
28392 * cfgexpand.c (reorder_operands): Also reorder if only second operand
28393 had its definition forwarded by TER.
28395 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
28398 * ipa-utils.h (types_odr_comparable): Add strict argument.
28399 * ipa-devirt.c: Fix whitespace;
28400 (odr_hasher): Remove.
28401 (odr_name_hasher, odr_vtable_hasher): New hashers.
28402 (can_be_name_hashed_p): New predicate.
28403 (hash_type_name): remove.
28404 (hash_odr_name): New.
28405 (odr_name_hasher::hash): new.
28406 (can_be_vtable_hashed_p): New.
28407 (hash_odr_vtable): New.
28408 (odr_vtable_hasher::hash): New.
28409 (types_same_for_odr): Add strict parameter.
28410 (types_odr_comparable): Likewise.
28411 (odr_name_hasher::equal): New.
28412 (odr_vtable_hasher::equal): New.
28413 (odr_name_hasher::remove): New.
28414 (odr_hash_type): Change to hash_table<odr_name_hasher>.
28415 (odr_vtable_hash_type): New.
28416 (odr_vtable_hash): New.
28417 (odr_subtypes_equivalent_p): Do strict comparsion.
28418 (add_type_duplicate): Merge type names; cleanup; avoid type
28420 (register_odr_type): Initialize vtable hash.
28421 (build_type_inheritance_graph): Likewise
28422 (get_odr_type): Reorg to use two hashes.
28423 (dump_possible_polymorphic_call_targets): Move sanity check after debug
28425 (ipa_devirt): Dump type_inheritance_graph.
28426 (types_same_for_odr): Add strict mode.
28428 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
28431 * cgraph.h (symtab_node): Add definition_alignment,
28432 can_increase_alignment_p and increase_alignment.
28433 * symtab.c (symtab_node::can_increase_alignment_p,
28434 increase_alignment_1, symtab_node::increase_alignment,
28435 symtab_node::definition_alignment): New.
28436 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
28437 can_increase_alignment_p.
28438 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
28439 * tree-vect-stmts.c (ensure_base_align): Likewise.
28440 * varasm.c (function_section_1): Use definition_alignment.
28441 (assemble_start_function): Likewise.
28442 (emit_local): likewise.
28443 (build_constant_desc): Likewsie.
28444 (output_constant_def_contents): Likewise.
28445 (place_block_symbol): Likewise.
28446 (output_object_block): Likewise.
28448 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
28451 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
28452 when outputting debug.
28454 2015-03-07 Marek Polacek <polacek@redhat.com>
28455 Martin Uecker <uecker@eecs.berkeley.edu>
28458 * doc/invoke.texi: Update description of -fsanitize=bounds.
28460 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
28462 * tree-ssa-phiopt.c (neg_replacement): Remove.
28463 (tree_ssa_phiopt_worker): Remove negate optimization.
28465 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
28468 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
28470 2015-03-06 Richard Biener <rguenther@suse.de>
28472 PR middle-end/64928
28473 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
28474 and liveout_obstack members.
28475 (calculate_live_on_exit): Remove.
28476 (calculate_live_ranges): Change declaration.
28477 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
28478 (new_tree_live_info): Adjust.
28479 (calculate_live_ranges): Delete livein when not wanted.
28480 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
28481 Deal with partly deleted live info.
28482 (loe_visit_block): Remove temporary bitmap by using
28483 bitmap_ior_and_compl_into.
28484 (live_worklist): Adjust accordingly.
28485 (calculate_live_on_exit): Make static.
28486 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
28487 we do not need livein.
28489 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
28491 * real.c (real_from_string): Fix typo in assertion.
28493 2015-03-06 Alex Velenko <alex.velenko@arm.com>
28495 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
28498 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
28500 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
28502 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
28505 * lra-assigns.c (find_hard_regno_for): Rename to
28506 find_hard_regno_for_1. Add a new parameter.
28507 (find_hard_regno_for): New function using find_hard_regno_for_1.
28509 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
28511 PR rtl-optimization/65067
28512 * expmed.c (store_bit_field, extract_bit_field): Reworked the
28513 strict volatile bitfield handling.
28515 2015-03-05 Martin Liska <mliska@suse.cz>
28518 * ipa-icf.c (sem_variable::equals): Compare variables types.
28520 2015-03-05 Richard Henderson <rth@redhat.com>
28523 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
28524 correctly check weak symbol binding.
28526 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
28528 PR middle-end/65315
28529 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
28532 2015-03-05 Martin Liska <mliska@suse.cz>
28534 * ipa-inline.c (inline_small_functions): Set default value to
28535 prevent warning during bootstrap.
28536 * tree.h: Add pragma guard that ignores false positives during
28539 2015-03-05 Richard Biener <rguenther@suse.de>
28541 PR tree-optimization/65310
28542 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
28543 Properly preserve alignment of the base of the access.
28545 2015-03-05 Richard Biener <rguenther@suse.de>
28548 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
28549 Compare dependence info.
28551 2015-03-05 Richard Biener <rguenther@suse.de>
28553 PR middle-end/65233
28554 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
28556 (walk_ssa_copies): Revert last chage. Instead do not walk
28557 SSA names registered for SSA update.
28559 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
28562 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
28563 vtable references for their containing type.
28564 (sem_function::equals_wpa): Compare TYPE_RESTRICT
28565 and type attributes.
28567 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
28569 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
28570 before negating it.
28571 * stor-layout.c (finalize_record_size): Revert latest change.
28573 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
28575 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
28577 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
28579 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
28580 for correct comdat handling.
28581 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
28583 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
28584 (used_from_object_file_p_worker): Remove.
28585 (cgraph_node::only_called_directly_or_alised): Add
28586 used_from_object_file_p.
28587 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
28588 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
28589 can_remove_if_no_direct_calls_and_refs_p.
28591 2015-03-04 Nick Clifton <nickc@redhat.com>
28593 * config/rl78/rl78.h (enum reg_class): Remove real registers from
28594 General register class.
28595 * config/rl78/rl78-real.md: Replace general register constraints
28596 with real+virtual register constraints.
28598 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28600 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
28601 from checking for -mhtm option.
28603 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
28605 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
28606 (struct ipa_sra_check_caller_data): Add has_thunk field.
28607 (ipa_sra_check_caller): Check for thunk.
28608 (ipa_sra_preliminary_function_checks): Give up on function with
28610 (ipa_early_sra): Use call_for_symbol_and_aliases.
28612 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
28615 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
28616 called for __stack_chk_guard symbol.
28618 2015-03-03 DJ Delorie <dj@redhat.com>
28620 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
28622 (*addhi3_real): Likewise.
28623 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
28624 pattern to match incrementing memory.
28625 * config/rl78/predicates.md (rl78_1_2_operand): New.
28626 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
28627 it's the same and only mem.
28628 (rl78_alloc_physical_registers_op2): If there's effectively only
28629 one MEM, transcode it into HL.
28630 (rl78_far_p): Reject addresses that aren't legitimate.
28632 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
28634 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
28637 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
28639 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
28641 Implement call0 ABI for xtensa
28642 * config/xtensa/constraints.md ("a" constraint): Include stack
28643 pointer in case of call0 ABI.
28644 ("q" constraint): Make empty in case of call0 ABI.
28645 ("D" constraint): Include stack pointer in case of call0 ABI.
28646 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
28647 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
28649 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
28651 (xtensa_regno_to_class): Make it a local variable in the
28652 function xtensa_regno_to_class.
28653 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
28654 macro, function prototype and implementation.
28655 (reg_nonleaf_alloc_order): Make it a local variable in the
28656 function order_regs_for_local_alloc.
28657 (xtensa_conditional_register_usage): New function.
28658 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
28659 (xtensa_valid_move): Allow direct moves to stack pointer
28660 register in call0 ABI.
28661 (xtensa_setup_frame_addresses): Only spill register windows in
28663 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
28664 call0 ABI respectively.
28665 (xtensa_function_arg_1): Only mark a7 register for copying in
28667 (xtensa_call_save_reg): New function.
28668 (compute_frame_size): Add space for callee saved register
28669 storage to the frame size in call0 ABI.
28670 (xtensa_expand_prologue): Generate code to set up stack frame
28671 and save callee-saved registers in call0 ABI.
28672 (xtensa_expand_epilogue): New function.
28673 (xtensa_set_return_address): New function.
28674 (xtensa_return_addr): Calculate return address in call0 ABI.
28675 (xtensa_builtin_saveregs): Only mark a7 register for copying and
28676 emit copying code in windowed ABI.
28677 (order_regs_for_local_alloc): Add preferred register allocation
28678 order for non-leaf function in call0 ABI.
28679 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
28680 (xtensa_asm_trampoline_template): Add trampoline generation for
28682 (xtensa_trampoline_init): Add trampoline initialization for
28684 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
28686 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
28687 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
28688 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
28689 ABI call-used registers.
28690 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
28691 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
28693 (REG_CLASS_CONTENTS): Include all registers into the preferred
28694 reload registers set, adjust the set in the
28695 xtensa_conditional_register_usage.
28696 (xtensa_regno_to_class): Drop variable declaration.
28697 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
28699 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
28701 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
28702 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
28703 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
28704 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
28705 location in call0 ABI.
28706 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
28707 stack adjustment size when handling exception.
28708 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
28709 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
28711 ("return" pattern): Generate ret.n/ret in call0 ABI.
28712 ("epilogue" pattern): Expand epilogue.
28713 ("nonlocal_goto" pattern): Use default in call0 ABI.
28714 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
28715 emit eh_set_a0_* depending on ABI.
28716 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
28717 ("eh_set_a0_call0", "blockage"): New patterns.
28719 2015-03-03 Martin Liska <mliska@suse.cz>
28722 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
28724 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
28727 * config/rs6000/rs6000-tables.opt: Regenerate table.
28729 2015-03-03 Renlin Li <renlin.li@arm.com>
28731 * doc/md.texi (@item ^): Change ? into ^.
28733 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
28735 * doc/tm.texi: Regenerated.
28737 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
28739 * builtins.c (expand_builtin_return_addr): Add
28740 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
28741 surrounding #ifdef.
28742 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
28744 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
28746 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
28748 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
28751 2015-03-03 Martin Jambor <mjambor@suse.cz>
28752 Eric Botcazou <ebotcazou@adacore.com>
28754 * tree-sra.c (ipa_sra_check_caller_data): New type.
28755 (has_caller_p): Removed.
28756 (ipa_sra_check_caller): New function.
28757 (ipa_sra_preliminary_function_checks): Use it.
28759 2015-03-03 Martin Liska <mliska@suse.cz>
28761 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
28762 instead of if branch.
28764 2015-03-03 Martin Liska <mliska@suse.cz>
28767 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
28769 2015-03-23 Jeff Law <law@redhat.com>
28771 PR tree-optimization/65241
28772 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
28773 hash table if INSERT is true.
28775 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
28778 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
28780 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
28783 * config/avr/avr.c (context.h, tree-pass.h): Include them.
28784 (avr_pass_data_recompute_notes): New static variable.
28785 (avr_pass_recompute_notes): New class.
28786 (avr_register_passes): New static function.
28787 (avr_option_override): Call it.
28789 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
28791 Fix various problems with specs file generation.
28794 * config.gcc (extra_gcc_objs) [avr]: Remove.
28795 * config/avr/driver-avr.c: Remove file.
28796 * config/avr/t-avr (driver-avr.o): Remove rule.
28797 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
28798 INCLUDES to build. Depend on TM_H.
28799 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
28800 build warnings. Fix non-matching types and non-existing %-codes.
28802 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
28803 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
28804 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
28805 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
28806 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
28807 (LIBGCC_SPEC): Remove definitions.
28809 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
28811 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
28812 to create a register in testing mode.
28814 2015-03-03 Martin Liska <mliska@suse.cz>
28815 Jan Hubicka <hubicka@ucw.cz>
28818 * cgraph.c (cgraph_node::has_thunk_p): New function.
28819 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
28820 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
28821 (sem_function::merge): Assert is changed.
28823 2015-03-03 Martin Liska <mliska@suse.cz>
28824 Martin Jambor <mjambor@suse.cz>
28827 * ipa-icf.c (sem_item_optimizer::execute): Change function
28828 return value to boolean.
28829 (sem_item_optimizer::merge_classes): Likewise.
28830 (ipa_icf_driver): Return TODO_remove_functions in case there's
28831 a merge operation processed.
28832 * ipa-icf.h: Change function return value to boolean.
28834 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
28837 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
28838 processor type for 64-bit little endian PowerPC.
28840 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
28841 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
28842 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
28843 printing built-in mask so it does not pass NULL pointers.
28845 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
28848 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
28851 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
28852 !ISA_HAS_FP_CONDMOVE.
28854 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
28856 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
28859 2015-03-02 Ulrich Drepper <drepper@gmail.com>
28861 * doc/invoke.texi (Options for Code Generation Conventions):
28862 Fix URL of DSO paper.
28864 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
28867 * ipa-inline.c (check_callers): Looks for recursion.
28868 (inline_to_all_callers): Give up on uninlinable or recursive edges.
28869 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
28870 summary of inline clones.
28871 (do_estimate_growth_1): Fix recursion check.
28873 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
28876 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
28879 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
28880 Aldy Hernandez <aldyh@redhat.com>
28883 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
28884 when checking TYPE_BINFO.
28886 2015-03-02 Richard Biener <rguenther@suse.de>
28889 * ipa-icf-gimple.c: Include builtins.h.
28890 (func_checker::compare_memory_operand): Compare base alignment.
28892 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
28895 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
28896 are never passed by reference.
28898 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
28901 * tree-chkp.c (chkp_check_lower): Don't check against
28902 zero bounds for already instrumented functions.
28903 (chkp_check_upper): Likewise.
28904 (chkp_fini): Clean pass local data to avoid wrong reusage.
28906 2015-02-28 Martin Liska <mliska@suse.cz>
28907 Jan Hubicka <hubicka@ucw.cz>
28909 * ipa-icf.c (sem_variable::equals): Improve debug output;
28910 get variable constructor.
28911 (sem_variable::parse): Do not filter out too early; give up on
28912 volatile and register vars.
28913 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
28915 * ipa-icf.h (sem_variable::init): Do not set ctor.
28916 (sem_variable::ctor): Remove.
28918 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
28920 PR middle-end/65233
28921 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
28923 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28925 * ipa-icf.c: Include stor-layout.h
28926 (sem_function::compare_cgraph_references): Rename to ...
28927 (sem_item::compare_cgraph_references): ... this one.
28928 (sem_variable::equals_wpa): New function
28929 (sem_variable::equals): Do not check stuff already verified by
28931 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
28932 * ipa-icf.h (sem_item): Add compare_cgraph_references.
28933 (sem_function): Remove compare_cgraph_references.
28934 (sem_variable): Turns equals_wpa into non-inline.
28936 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28938 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
28939 (sem_item::add_expr): New function.
28940 (sem_function::hash_stmt): Handle operands of most statements.
28941 (sem_variable::get_hash): Hash the actual constructor.
28942 * ipa-icf.h (sem_item): Add add_expr.
28943 (sem_function): Update prototype of hash_stmt
28945 2015-02-28 Martin Liska <mliska@suse.cz>
28946 Jan Hubicka <hubicka@ucw.cz>
28949 * ipa-icf-gimple.c (func_checker::compare_function_decl):
28951 (func_checker::compare_variable_decl): Skip symtab vars.
28952 (func_checker::compare_cst_or_decl): Update.
28953 * ipa-icf.c (sem_function::parse): Do not consider aliases.
28954 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
28955 use correct symtab predicates.
28956 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
28957 (sem_variable::parse): Update comment.
28958 (sem_item_optimizer::build_graph): Consider ultimate aliases
28961 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28963 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
28966 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28968 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
28969 (sem_variable::merge) Likewise.
28971 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28973 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
28974 target; also match flag_ipa_devirt.
28976 2015-03-01 Martin Liska <mliska@suse.cz>
28977 Jan Hubicka <hubicka@ucw.cz>
28979 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
28980 Validate variable alignment.
28981 * ipa-icf.c (sem_function::equals_private): Be more precise
28982 about non-common function attributes.
28983 (sem_variable::equals): Likewise.
28985 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28988 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
28989 across COMDAT group boundary.
28991 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28994 * ipa-icf.c (clear_decl_rtl): New function.
28995 (sem_function::merge): Clear RTL before forming alias.
28996 (sem_variable::merge): Clear RTL before forming alias.
28998 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29001 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
29003 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
29005 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
29008 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
29010 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
29011 a typo in the description.
29013 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
29016 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
29017 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
29018 * lra-constraints.c: Include "params.h".
29019 (EBB_PROBABILITY_CUTOFF): Use
29020 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
29021 (lra_inheritance): Use '<' instead of '<=' for
29022 EBB_PROBABILITY_CUTOFF.
29023 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
29026 2015-02-27 Martin Liska <mliska@suse.cz>
29028 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
29029 vector length condition.
29031 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
29033 * doc/extend.texi (x86 transactional memory intrinsics):
29034 Reorganize discussion of _xbegin. Clarify that the return
29035 value is a bit mask. Expand example and move to end of section.
29037 2015-02-26 Jakub Jelinek <jakub@redhat.com>
29038 Aldy Hernandez <aldyh@redhat.com>
29040 PR rtl-optimization/65220
29041 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
29043 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
29046 * lra-remat.c (update_scratch_ops): New.
29047 (do_remat): Call it.
29048 * lra.c (lra_register_new_scratch_op): New. Take code from ...
29049 (remove_scratches): ... here.
29050 * lra-int.h (lra_register_new_scratch_op): New prototype.
29052 2015-02-27 Marek Polacek <polacek@redhat.com>
29055 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
29056 -Wformat-signedness anymore.
29058 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29060 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
29062 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
29064 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29066 * config/s390/s390.c (enum s390_builtin):
29067 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
29068 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
29069 (s390_init_builtins): Generate new builtin functions.
29070 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
29071 (s390_sfpc, s390_efpc): New pattern definitions.
29073 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29075 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
29076 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
29077 (s390_builtin_decls): New array.
29078 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
29079 (s390_builtin_decl): New function.
29080 (TARGET_BUILTIN_DECL): Define macro.
29082 2015-02-27 Richard Biener <rguenther@suse.de>
29084 PR middle-end/63175
29085 * builtins.c (get_object_alignment_2): Make sure to re-apply
29086 the ANDed mask after recursing to its operand gets us a new
29087 misalignment bit position.
29089 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
29090 Martin Liska <mliska@suse.cz>
29093 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
29094 Use address_matters_p.
29095 (redirect_all_callers, set_addressable): New functions.
29096 (sem_function::merge): Reorganize and fix merging issues.
29097 (sem_variable::merge): Likewise.
29098 (sem_variable::compare_sections): Remove.
29099 * common.opt (fmerge-all-constants, fmerge-constants): Remove
29101 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
29103 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
29105 (address_matters_1): New function.
29106 (symtab_node::address_matters_p): New function.
29107 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
29108 check for merged flag.
29109 * cgraph.h (address_matters_p): Declare.
29110 (symtab_node::address_taken_from_non_vtable_p): Remove.
29111 (symtab_node::address_can_be_compared_p): New method.
29112 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
29113 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
29115 (comdat_can_be_unshared_p_1) Use address_matters_p.
29116 (update_vtable_references): Fix formating.
29117 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
29118 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
29119 * cgraphclones.c: Preserve merged and icf_merged flags.
29121 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
29123 * doc/extend.texi (Function Attributes): Fix spelling and typos.
29124 (Label Attributes): Likewise.
29125 (Cilk Plus Builtins): Likewise.
29126 (ARC SIMD Built-in Functions): Likewise.
29127 (ARM C Language Extensions (ACLE)): Likewise.
29128 (PowerPC Built-in Functions): Likewise.
29129 (PowerPC Hardware Transactional Memory Built-in Functions):
29132 2015-02-26 Jakub Jelinek <jakub@redhat.com>
29134 PR tree-optimization/65216
29135 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
29136 new stmt and new SSA_NAME for lhs whenever the arguments have
29137 changed and weren't just swapped. Fix comment typo.
29139 PR tree-optimization/65215
29140 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
29141 for PDP endian targets.
29142 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
29143 Fix up formatting issues.
29144 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
29145 size is smaller than the original, adjust MEM_REF offset by the
29146 difference of sizes. Use is_gimple_mem_ref_addr instead of
29147 is_gimple_min_invariant test to avoid adding address temporaries.
29149 2015-02-26 Martin Liska <mliska@suse.cz>
29150 Jan Hubicka <hubicka@ucw.cz>
29153 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
29154 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
29155 (sem_item_optimizer::process_cong_reduction): Include division by
29156 sensitive references.
29157 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
29158 * ipa-ref.c (ipa_ref::address_matters_p): New function.
29159 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
29161 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
29164 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
29166 * config/avr/avr.c: Same.
29167 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
29168 Refuse any constant address not in 0..0xbf.
29169 * config/avr/avr.md (*mov<mode>, *movsf): Remove
29170 tiny_valid_direct_memory_access_range from insn conditions.
29171 (mov<mode>): Don't special-case expansion of avrtiny addresses.
29173 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
29176 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
29177 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
29178 * config/sh/predicates.md (const_logical_operand): New predicate.
29179 * config/sh/sh.md: Add new peephole2 patterns.
29181 2015-02-26 Marek Polacek <polacek@redhat.com>
29184 * ipa-inline.c (early_inliner): Recompute inline parameters.
29186 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29189 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
29190 instructions with TImode operands are included in the analysis.
29192 2015-02-26 Sebastian Pop <s.pop@samsung.com>
29194 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
29195 of an EDGE_FSM_THREAD.
29197 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
29199 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
29201 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
29204 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
29206 2015-02-26 Sebastian Pop <s.pop@samsung.com>
29208 PR tree-optimization/65048
29209 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
29210 (thread_through_all_blocks): Call valid_jump_thread_path.
29211 Remove invalid FSM jump-thread paths.
29213 2015-02-26 Jakub Jelinek <jakub@redhat.com>
29215 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
29216 (ipa_write_optimization_summaries): Likewise.
29217 * tree-streamer.h: Include data-streamer.h.
29218 (streamer_mode_table): Declare extern variable.
29219 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
29220 * lto-streamer-out.c (lto_output_init_mode_table,
29221 lto_write_mode_table): New functions.
29222 (produce_asm_for_decls): Call lto_write_mode_table when streaming
29224 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
29225 (lto_create_simple_input_block): Add mode_table argument to the
29226 lto_input_block constructors.
29227 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
29229 * data-streamer-in.c (string_for_index): Likewise.
29230 * ipa-inline-analysis.c (inline_read_section): Likewise.
29231 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
29232 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
29233 * lto-streamer-in.c (lto_read_body_or_constructor,
29234 lto_input_toplevel_asms): Likewise.
29235 (lto_input_mode_table): New function.
29236 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
29237 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
29238 Use bp_pack_machine_mode.
29239 * real.h (struct real_format): Add name field.
29240 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
29241 (class lto_input_block): Add mode_table member.
29242 (lto_input_block::lto_input_block): Add mode_table_ argument,
29243 initialize mode_table.
29244 (struct lto_file_decl_data): Add mode_table field.
29245 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
29246 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
29247 unpack_ts_decl_common_value_fields,
29248 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
29249 * tree-streamer.c (streamer_mode_table): New variable.
29250 * real.c (ieee_single_format, mips_single_format,
29251 motorola_single_format, spu_single_format, ieee_double_format,
29252 mips_double_format, motorola_double_format,
29253 ieee_extended_motorola_format, ieee_extended_intel_96_format,
29254 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
29255 ibm_extended_format, mips_extended_format, ieee_quad_format,
29256 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
29257 decimal_single_format, decimal_double_format, decimal_quad_format,
29258 ieee_half_format, arm_half_format, real_internal_format): Add name
29260 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
29262 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
29265 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
29266 reordering for selective scheduling.
29268 2015-02-26 Terry Guo <terry.guo@arm.com>
29270 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
29271 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
29272 (arm_arch_no_volatile_ce): Declare new global variable.
29273 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
29274 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
29275 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
29276 (TARGET_NO_VOLATILE_CE): New macro.
29277 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
29278 volatile memory access in IT block
29280 2015-02-25 Kai Tietz <ktietz@redhat.com>
29282 PR tree-optimization/61917
29283 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
29284 that reduc_def_stmt is null.
29286 2015-02-25 Martin Liska <mliska@suse.cz>
29288 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
29289 hard register variables.
29291 2015-02-25 Kai Tietz <ktietz@redhat.com>
29294 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
29295 (symtab::noninterposable_alias): Likewise.
29297 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
29300 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
29302 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
29304 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
29307 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
29308 as split condition; force split via '#' in output pattern.
29310 2015-02-25 Richard Biener <rguenther@suse.de>
29311 Kai Tietz <ktietz@redhat.com>
29313 PR tree-optimization/61917
29314 * tree-vect-loop.c (vectorizable_reduction): Allow
29315 vect_internal_def without reduction to exit graceful.
29317 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
29320 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
29321 only with NONDEBUG_INSN_P.
29323 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
29325 Use variadic macros with avr-log.c.
29327 * config/avr/avr-protos.h (avr_vdump): New prototype.
29328 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
29329 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
29330 * config/avr/avr-log.c: Adjust comments.
29331 (avr_vdump): New function.
29332 (avr_vadump): Pass caller as 2nd argument instead of format string.
29333 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
29334 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
29336 2015-02-25 Jakub Jelinek <jakub@redhat.com>
29339 * target.def (target_option_stream_in): New target hook.
29340 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
29341 targetm.target_option.post_stream_in if non-NULL.
29342 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
29343 * doc/tm.texi: Updated.
29344 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
29346 (TARGET_OPTION_POST_STREAM_IN): Redefine.
29348 2015-02-24 Jeff Law <law@redhat.com>
29351 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
29352 of operand 0 and operand 2.
29353 (zero_cost_loop_end, loop_end): Similarly.
29355 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
29357 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
29360 2015-02-24 DJ Delorie <dj@redhat.com>
29362 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
29363 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
29364 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
29365 instead of hardcoding SImode.
29367 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
29369 * omp-low.c (create_omp_child_function): Tag entrypoint
29370 functions with a special attribute.
29372 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
29375 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
29377 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
29379 PR rtl-optimization/65123
29380 * lra-remat.c (operand_to_remat): Check hard regs in insn
29383 2015-02-24 Nick Clifton <nickc@redhat.com>
29385 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
29388 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
29391 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
29392 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
29393 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
29394 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
29395 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
29396 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
29397 (BUILT_IN_GOACC_PARALLEL): Specify as
29398 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
29399 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
29400 * builtin-types.def
29401 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
29402 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
29403 Remove function types.
29404 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
29405 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
29406 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
29407 New function types.
29409 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
29411 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
29413 2015-02-24 Jakub Jelinek <jakub@redhat.com>
29415 PR tree-optimization/65170
29416 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
29417 if val[1] < 0, clear also val[2] and return 3.
29419 2015-02-24 Alan Modra <amodra@gmail.com>
29422 * config/rs6000/rs6000.c (get_memref_parts): Only return true
29423 when *base is a reg. Handle nested plus addresses. Simplify
29426 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
29428 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
29429 use natural alignment when optimizing for size.
29431 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
29434 * config/sh/sh.md (movsicc_true+3): Remove peephole.
29435 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
29436 * config/sh/sh.c (replace_n_hard_rtx): Remove.
29438 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
29441 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
29442 too big for a wide_int. Implement missing wrapping operation.
29444 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
29447 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
29448 instead of const_int 4294901760.
29450 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
29452 * config/avr/t-avr: Fix typo in comment.
29454 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
29456 * doc/rtl.texi (fma): Clarify documentation.
29458 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
29461 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
29462 over input_location.
29464 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
29466 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
29467 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
29468 restrict alignments to absolute_biggest_alignment.
29469 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
29471 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
29472 * doc/tm.texi: Regenerate.
29473 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
29475 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
29478 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
29480 2015-02-20 Richard Biener <rguenther@suse.de>
29482 PR tree-optimization/65136
29483 * tree-ssa-propagate.c: Include cfgloop.h.
29484 (replace_phi_args_in): Avoid replacing loop latch edge PHI
29485 arguments with constants.
29487 2015-02-20 Jakub Jelinek <jakub@redhat.com>
29488 Martin Liska <mliska@suse.cz>
29491 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
29492 don't try to create_thunk if stdarg_p. If
29493 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
29494 redirect_callers if possible.
29495 (sem_item_optimizer::execute): Call unregister_hooks here...
29496 (ipa_icf_driver): ... instead of here.
29498 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29500 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
29501 Mark operand 0 as earlyclobber in 2nd alternative.
29502 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
29503 Write negated shift amount into QI lowpart operand 0 and use it
29505 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
29507 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
29509 * cgraph.h (clone_function_name_1): Declare.
29510 * cgraphclones.c (clone_function_name_1): New function.
29511 (clone_function_name): Use it.
29512 * lto-partition.c: Include "stringpool.h".
29513 (must_not_rename, maybe_rewrite_identifier)
29514 (validize_symbol_for_target): New static functions.
29515 (privatize_symbol_name): Use must_not_rename.
29516 (promote_symbol): Call validize_symbol_for_target.
29517 (lto_promote_cross_file_statics): Likewise.
29518 (lto_promote_statics_nonwpa): Likewise.
29520 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
29523 * config/avr/avr.md (pushhi_insn): New insn.
29524 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
29526 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
29527 Jakub Jelinek <jakub@redhat.com>
29529 * tree-streamer.c (preload_common_nodes): Don't preload
29530 TI_VA_LIST* for offloading.
29531 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
29534 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
29536 * config/pa/pa.c (pa_emit_move_sequence): Always force
29537 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
29540 * config/pa/pa.c (pa_reloc_rw_mask): New function.
29541 (TARGET_ASM_RELOC_RW_MASK): Define.
29542 (pa_cannot_force_const_mem): Revert previous change.
29544 2015-02-19 Martin Jambor <mjmabor@suse.cz>
29545 Jan Hubicka <hubicka@ucw.cz>
29548 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
29549 across jump functions.
29551 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
29553 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
29555 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
29557 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
29559 2015-02-19 Richard Henderson <rth@redhat.com>
29561 PR middle-end/65074
29562 * varasm.c (default_binds_local_p_2): Don't test node->definition;
29563 test DECL_EXTERNAL independent of symtab_node.
29565 2015-02-19 Jakub Jelinek <jakub@redhat.com>
29568 * varpool.c (varpool_node::get_constructor): Return early
29569 if this->lto_file_data is NULL.
29571 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29573 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
29574 (rank_for_schedule_debug): Update.
29575 (ready_sort): Make static. Move sorting logic to ...
29576 (ready_sort_debug, ready_sort_real): New static functions.
29577 (schedule_block): Sort both debug insns and real insns in preparation
29578 for ready list trimming. Improve debug output.
29579 * sched-int.h (ready_sort): Remove global declaration.
29581 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
29583 * ipa-icf.c (sem_function::equals_private): Adjust.
29584 (sem_function::bb_dict_test): Take a vec<int> * instead of
29586 * ipa-icf.h (bb_dict_test): Likewise.
29588 2015-02-18 Jakub Jelinek <jakub@redhat.com>
29590 PR gcov-profile/64634
29591 * tree-eh.c (frob_into_branch_around): Fix up typos
29592 in function comment.
29593 (lower_catch): Put eh_seq resulting from EH lowering of
29594 the cleanup sequence after the cleanup rather than before it.
29596 2015-02-18 Tom de Vries <tom@codesourcery.com>
29598 * common.opt (fstdarg-opt): New option.
29599 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
29600 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
29601 (@item -fstdarg-opt): New item.
29603 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
29606 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
29607 for common symbols.
29609 2015-02-18 Jakub Jelinek <jakub@redhat.com>
29611 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
29613 (ALL_HOST_OBJS): Add mkoffload.o.
29614 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
29616 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
29618 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
29619 (compare_virtual_tables): Be smarter about skipping typeinfos;
29620 do sane output on virtual table table mismatch.
29621 (warn_odr): Be ready for forward declarations of enums;
29622 output sane info on base mismatch and virtual table mismatch.
29623 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
29624 when only one type is polymorphic.
29625 (get_odr_type): Fix hashtable corruption.
29626 (dump_odr_type): Dump mangled names.
29628 2015-02-18 Richard Biener <rguenther@suse.de>
29630 PR tree-optimization/65063
29631 * tree-predcom.c (determine_unroll_factor): Return 1 if we
29632 have replaced looparound PHIs.
29634 2015-02-18 Martin Liska <mliska@suse.cz>
29636 * lto-streamer.c (lto_streamer_init): Encapsulate
29637 streamer_check_handled_ts_structures with checking macro.
29639 2015-02-18 Jakub Jelinek <jakub@redhat.com>
29642 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
29643 section if !implicit_section.
29644 (cgraph_node::create_version_clone_with_body): Likewise.
29645 * trans-mem.c (ipa_tm_create_version): Likewise.
29647 2015-02-18 Richard Biener <rguenther@suse.de>
29649 PR tree-optimization/62217
29650 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
29653 2015-02-18 Marek Polacek <polacek@redhat.com>
29656 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
29657 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
29658 is in range [-16K, -1]. Don't issue run-time error if
29659 (ptr > ptr + offset).
29661 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
29663 * doc/install.texi (nvptx-*-none): New section.
29664 * doc/invoke.texi (Nvidia PTX Options): Likewise.
29665 * config/nvptx/nvptx.opt: Update.
29667 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
29668 (access_check): New functions, copied from
29669 config/i386/intelmic-mkoffload.c.
29670 (main): For non-installed testing, look in all COMPILER_PATHs for
29673 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
29675 2015-02-18 Andrew Pinski <apinski@cavium.com>
29676 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29678 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
29679 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
29681 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
29683 * ipa-visibility.c (function_and_variable_visibility): Only
29684 check locality if node is not already local.
29685 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
29686 call_for_symbol_and_aliases instead of
29687 call_for_symbol_thunks_and_aliases.
29688 (ipa_inline): Likewise.
29689 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
29690 first walk aliases.
29691 * ipa.c (symbol_table::remove_unreachable_nodes): Use
29692 call_for_symbol_and_aliases.
29693 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
29694 (ipa_propagate_frequency_1): Use it; use opt_for_fn
29695 (ipa_propagate_frequency): Update.
29696 (ipa_profile): Add opt_for_fn gueards.
29698 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
29700 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
29701 * doc/invoke.texi (SH options): Document it.
29702 * config/sh/sh.c (sh_insn_length_adjustment): Check
29703 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
29705 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
29707 * common.opt (fipa-cp-alignment): New.
29708 * ipa-cp.c (ipcp_store_alignment_results): Check
29709 flag_ipa_cp_alignment.
29710 * opts.c (default_options_table): Enable -fipa-cp-alignment for
29712 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
29713 * doc/invoke.texi: Document -fipa-cp-alignment.
29715 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
29718 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
29719 to nil. Adjust comments.
29721 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
29723 * ipa-visibility.c (function_and_variable_visibility): Only
29724 check locality if node is not already local.
29725 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
29726 call_for_symbol_and_aliases instead of
29727 call_for_symbol_thunks_and_aliases.
29728 (ipa_inline): Likewise.
29729 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
29730 first walk aliases.
29731 * ipa.c (symbol_table::remove_unreachable_nodes): Use
29732 call_for_symbol_and_aliases.
29733 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
29734 (ipa_propagate_frequency_1): Use it; use opt_for_fn
29735 (ipa_propagate_frequency): Update.
29736 (ipa_profile): Add opt_for_fn guards.
29738 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
29740 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
29741 skipping of "strange" tokens.
29743 2015-02-17 Jeff Law <law@redhat.com>
29745 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
29748 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
29750 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
29751 as forcing a HARD_DEP between instructions, thereby
29752 disallowing rewriting to break dependencies.
29754 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
29756 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
29757 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
29758 variables in boundary that have no inlitalizer encoded and are
29760 * varasm.c (default_binds_local_p_2): External definitions do not
29761 count as definitions here.
29763 2015-02-16 Jeff Law <law@redhat.com>
29765 PR tree-optimization/64823
29766 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
29768 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
29769 threading through blocks with PHIs, but no statements.
29770 (thread_through_normal_block): Distinguish between blocks where
29771 we did not process all the statements and blocks with no statements.
29773 2015-02-16 Jakub Jelinek <jakub@redhat.com>
29774 James Greenhalgh <james.greenhalgh@arm.com>
29777 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
29778 section if not linkonce. Fix up formatting.
29779 (cgraph_node::create_version_clone_with_body): Copy section.
29780 * trans-mem.c (ipa_tm_create_version): Likewise.
29782 2015-02-16 Richard Biener <rguenther@suse.de>
29784 PR tree-optimization/65077
29785 * tree-ssa-structalias.c (get_constraint_for_1): Handle
29786 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
29787 (find_func_aliases): Allow float values to carry pointers again.
29789 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
29791 * doc/install.texi (Specific): Reorder targets list to put
29792 aarch64 in alphabetical order. Add a link to aarch64*-*-*
29795 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
29796 David Edelsohn <dje.gcc@gmail.com>
29799 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
29800 mapping class to external variable or function reference.
29801 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
29804 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
29807 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
29808 ASM_WEAKEN_DECL if defined.
29810 2015-02-16 Richard Biener <rguenther@suse.de>
29813 * varasm.c (default_file_start): For LTO produced units
29814 emit <artificial> as file directive.
29816 2015-02-16 Richard Biener <rguenther@suse.de>
29818 PR tree-optimization/63593
29819 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
29820 stmts and releasing SSA names until...
29821 (execute_pred_commoning): ... after processing all chains.
29823 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
29826 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
29827 external functions.
29829 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
29831 * doc/bugreport.texi: Adjust section titles throughout the file
29832 to use "Title Case".
29833 * doc/extend.texi: Likewise.
29834 * doc/gcov.texi: Likewise.
29835 * doc/implement-c.texi: Likewise.
29836 * doc/implement-cxx.texi: Likewise.
29837 * doc/invoke.texi: Likewise.
29838 * doc/objc.texi: Likewise.
29839 * doc/standards.texi: Likewise.
29840 * doc/trouble.texi: Likewise.
29842 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
29844 * cgraph.h (symtab_node::has_aliases_p): Simplify.
29845 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
29846 * tree.c (lookup_binfo_at_offset): Make static.
29847 (get_binfo_at_offset): Do not shadow offset; add explanatory
29850 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
29852 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
29853 for all floading point loads and stores except those using a register
29855 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
29858 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
29860 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
29861 (do_estimate_growth_1): Record if any uninlinable edge was seen.
29862 (estimate_growth): Handle uninlinable edges correctly.
29863 (check_callers): New.
29864 (growth_likely_positive): Handle aliases correctly.
29866 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
29868 * ipa-chkp.c: Use iterate_direct_aliases.
29869 * symtab.c (resolution_used_from_other_file_p): Move inline.
29870 (symtab_node::create_reference): Fix formating.
29871 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
29872 (symtab_node::iterate_reference): Move inline.
29873 (symtab_node::iterate_referring): Move inline.
29874 (symtab_node::iterate_direct_aliases): Move inline.
29875 (symtab_node::used_from_object_file_p_worker): Inline into ...
29876 (symtab_node::used_from_object_file_p): ... this one; move inline.
29877 (symtab_node::call_for_symbol_and_aliases): Move inline;
29878 use iterate_direct_aliases.
29879 (symtab_node::call_for_symbol_and_aliases_1): New method.
29880 (cgraph_node::call_for_symbol_and_aliases): Move inline;
29881 use iterate_direct_aliases.
29882 (cgraph_node::call_for_symbol_and_aliases_1): New method.
29883 (varpool_node::call_for_node_and_aliases): Rename to ...
29884 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
29885 use iterate_direct_aliases.
29886 (varpool_node::call_for_symbol_and_aliases_1): New method.
29887 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
29888 (ipa_discover_readonly_nonaddressable_var): Update.
29889 * ipa-devirt.c: Fix formating.
29890 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
29892 (cgraph_node::call_for_symbol_and_aliases): Move inline.
29893 (cgraph_node::call_for_symbol_and_aliases_1): New function..
29894 * cgraph.h (used_from_object_file_p_worker): Remove.
29895 (resolution_used_from_other_file_p): Move inline.
29896 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
29897 (symtab_node::iterate_reference): Move inline.
29898 (symtab_node::iterate_referring): Move inline.
29899 (symtab_node::iterate_direct_aliases): Move inline.
29900 (symtab_node::used_from_object_file_p_worker): Inline into ...
29901 (symtab_node::used_from_object_file_p): Move inline.
29902 * tree-emutls.c (ipa_lower_emutls): Update.
29903 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
29904 (varpool_node::call_for_node_and_aliases): Remove.
29906 2015-02-14 Jakub Jelinek <jakub@redhat.com>
29908 PR tree-optimization/62209
29909 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
29910 op == range->exp, insert seq and gimplified code after labels
29911 instead of after the phi.
29913 2015-02-13 Jeff Law <law@redhat.com>
29916 Revert my change for tree-optimization/64823.
29918 2015-02-13 Jakub Jelinek <jakub@redhat.com>
29920 PR tree-optimization/65053
29921 * tree-ssa-phiopt.c (value_replacement): When moving assign before
29922 cond, either reset VR on lhs or set it to phi result VR.
29924 2015-02-13 Jeff Law <law@redhat.com>
29926 PR tree-optimization/64823
29927 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
29928 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
29929 threading through blocks with PHIs, but no statements.
29930 (thread_through_normal_block): Distinguish between blocks where
29931 we did not process all the statements and blocks with no statements.
29933 PR rtl-optimization/47477
29934 * match.pd (convert (plus/minus (convert @0) (convert @1): New
29935 simplifier to narrow arithmetic.
29937 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
29940 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
29941 polymorphic call info when type is not known to be preserved.
29943 2015-02-13 Maritn Jambor <mjambor@suse.cz>
29946 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
29947 (inline_call): Use it.
29949 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
29951 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
29952 GOMP_DEVICE_NVIDIA_PTX.
29954 2015-02-13 Jakub Jelinek <jakub@redhat.com>
29957 * stmt.c (emit_case_nodes): Use void_type_node instead of
29958 NULL_TREE as LABEL_DECL type.
29960 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
29962 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
29964 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
29965 symbolic references to data to be forced to constant memory on the
29968 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
29970 PR tree-optimization/65002
29971 * tree-cfg.c (pass_data_fixup_cfg): Don't update
29973 * tree-sra.c (some_callers_have_no_vuse_p): New.
29974 (ipa_early_sra): Reject functions whose callers
29975 assume function is read only.
29977 2015-02-13 Richard Biener <rguenther@suse.de>
29980 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
29981 for LTO produced CUs.
29983 2015-02-13 Bin Cheng <bin.cheng@arm.com>
29985 PR tree-optimization/64705
29986 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
29987 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
29988 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
29989 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
29990 expand_simple_operations.
29992 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
29993 Richard Henderson <rth@redhat.com>
29996 * cgraphunit.c (cgraph_node::finalize_function): Set definition
29997 before notice_global_symbol.
29998 (varpool_node::finalize_decl): Likewise.
29999 * varasm.c (default_binds_local_p_2): Rename from
30000 default_binds_local_p_1, add weak_dominate argument. Use direct
30001 returns instead of assigning to local variable. Unify varpool and
30002 cgraph paths via symtab_node. Reject undef weak variables before
30003 testing visibility. Reorder tests for simplicity.
30004 (default_binds_local_p): Use default_binds_local_p_2.
30005 (default_binds_local_p_1): Likewise.
30006 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
30008 (default_elf_asm_output_external): Emit visibility when specified.
30010 2015-02-13 Alan Modra <amodra@gmail.com>
30012 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
30013 code setting up r11 for out-of-line fp restore.
30015 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
30017 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
30018 (muser-mode): Likewise.
30020 2015-02-13 Alan Modra <amodra@gmail.com>
30022 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
30023 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
30025 2015-02-12 David Howells <dhowells@redhat.com>
30027 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
30029 * tree-ssa-uninit.c (dump_predicates): Likewise.
30030 * opts.c (print_filtered_help): Likewise.
30032 2015-02-12 Jakub Jelinek <jakub@redhat.com>
30034 * dwarf2out.c (output_die): Use "%s", name instead of name to
30035 avoid -Wformat-security warning.
30037 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
30038 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
30039 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
30040 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
30042 2015-02-12 Jason Merrill <jason@redhat.com>
30044 * common.opt (-flifetime-dse): New.
30046 2015-02-12 Jakub Jelinek <jakub@redhat.com>
30049 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
30051 PR tree-optimization/65014
30052 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
30053 use original second operand of arg0 or arg1 instead of
30054 that adjusted by STRIP_NOPS.
30056 2015-02-11 Jeff Law <law@redhat.com>
30059 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
30060 that needs to be queued, just queue it for a single cycle.
30062 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
30064 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
30065 bodies of thunks; comment on why.
30066 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
30067 symbols are extern.
30069 2015-02-11 Richard Henderson <rth@redhat.com>
30072 * tree-eh.c (mark_reachable_handlers): Mark source and destination
30073 regions of __builtin_eh_copy_values.
30075 2015-02-11 Jakub Jelinek <jakub@redhat.com>
30077 PR middle-end/65003
30078 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
30079 ultimate alias is MEM with SYMBOL_REF satisfying
30080 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
30081 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
30083 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
30085 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
30086 "diagnostic-core.h".
30087 (main): Initialize progname, and call diagnostic_initialize.
30089 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
30090 instead of __OPENMP_TARGET__.
30092 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
30093 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
30094 hard-coding PTX_ID.
30096 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
30098 * doc/sourcebuild.texi (pie_enabled): Document.
30100 2015-02-11 Martin Liska <mliska@suse.cz>
30103 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
30104 a return value for call to a function that is noreturn.
30106 2015-02-11 Richard Biener <rguenther@suse.de>
30109 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
30112 2015-02-11 Andrew Pinski <apinski@cavium.com>
30115 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
30116 Change the first argument type to size_type_node and add another
30118 (aarch64_simd_expand_builtin): Handle the new argument to
30119 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
30120 print an out when the first two arguments are not
30121 nonzero integer constants.
30122 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
30123 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
30125 2015-02-11 Jakub Jelinek <jakub@redhat.com>
30128 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
30129 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
30130 (ix86_set_current_function): Rewritten.
30131 (ix86_add_new_builtins): Temporarily clear current_target_pragma
30132 when creating builtin fndecls.
30134 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
30137 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
30139 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
30140 have no comdat group.
30141 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
30142 (lto_output_varpool_node): Always output alias info.
30143 (output_refs): Output refs of boundary aliases, too.
30144 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
30145 (output_symtab): Output call eges in thunks in boundary.
30146 (get_alias_symbol): Remove.
30147 (input_node, input_varpool_node): Do not special case weakrefs.
30148 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
30149 alias and thunks targets in the boundary; do not take removed symbols
30150 from their comdat groups.
30151 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
30152 (cgraph_node::global_info): Remove.
30153 (cgraph_node::rtl_info): Look through aliases and thunks.
30154 * cgrpah.h (global_info): Remove.
30155 (non_local_p): Remove.
30157 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
30158 Sandra Loosemore <sandra@codesourcery.com>
30160 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
30161 to inline asm. List dialects in proper order.
30163 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
30164 Sandra Loosemore <sandra@codesourcery.com>
30166 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
30168 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
30170 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
30171 modified) reference to Solaris.
30173 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
30175 * doc/extend.texi (Extended Asm): Fix typos.
30177 2015-02-10 Jakub Jelinek <jakub@redhat.com>
30180 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
30182 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
30185 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
30186 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
30187 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
30188 * config/sh/constraints.md (Ara, Add): New constraints.
30189 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
30191 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
30192 atomic_mem_operand_0. Don't use force_reg on the memory address.
30193 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
30194 Sra constraint. Convert to insn_and_split. Add workaround for
30196 (atomic_compare_and_swap<mode>_hard): Copy to
30197 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
30198 Use atomic_mem_operand_0 predicate.
30199 (atomic_compare_and_swap<mode>_soft_gusa,
30200 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
30201 AraAdd constraints.
30202 (atomic_compare_and_swap<mode>_soft_tcb,
30203 atomic_compare_and_swap<mode>_soft_imask,
30204 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
30205 atomic_mem_operand_0 predicate and SraSdd constraints.
30206 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
30208 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
30209 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
30210 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
30211 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
30212 force_reg on the memory address.
30213 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
30214 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
30215 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
30216 atomic_mem_operand_1 predicate and Sra constraint.
30217 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
30218 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
30219 Use atomic_mem_operand_1 predicate.
30220 (atomic_<fetchop_name><mode>_hard): Copy to
30221 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
30222 Use atomic_mem_operand_1 predicate.
30223 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
30224 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
30225 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
30226 insn_and_split. Use atomic_mem_operand_1 predicate.
30227 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
30228 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
30229 Use atomic_mem_operand_1 predicate.
30230 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
30231 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
30232 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
30233 in generated insn with original mem operand before emitting the insn.
30234 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
30235 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
30236 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
30237 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
30238 Use atomic_mem_operand_1 predicate and AraAdd constraints.
30239 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
30240 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
30241 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
30242 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
30243 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
30244 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
30245 atomic_not_fetch<mode>_soft_tcb,
30246 atomic_<fetchop_name>_fetch<mode>_soft_imask,
30247 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
30248 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
30249 Use atomic_mem_operand_1 predicate and SraSdd constraints.
30251 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
30253 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
30254 and 3 earlyclobber operands.
30256 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
30258 * common.opt (fstack-reuse): Mark as optimization.
30260 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
30263 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
30265 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
30267 PR tree-optimization/64326
30268 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
30270 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
30272 PR gcov-profile/61889
30273 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
30275 2015-02-10 Richard Biener <rguenther@suse.de>
30277 PR tree-optimization/64995
30278 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
30279 value we use is final.
30280 (visit_reference_op_store): Always valueize op.
30281 (visit_use): Properly valueize vuses.
30283 2015-02-10 Richard Biener <rguenther@suse.de>
30285 PR tree-optimization/64909
30286 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
30287 pass a scalar-stmt count estimate to the cost model.
30288 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
30290 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
30292 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
30293 enabled by default together with var-tracking.
30295 2015-02-10 Nick Clifton <nickc@redhat.com>
30297 * config/rl78/rl78.c: Remove DIV attribute code accidentally
30298 included in previous rl78 commit.
30300 2015-02-10 Richard Biener <rguenther@suse.de>
30302 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
30303 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
30304 return the bitpack.
30306 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
30308 PR gcov-profile/61889
30309 * config.in: regenerate.
30310 * configure.in: Likewise.
30311 * configure.ac: Check for ftw.h.
30312 * gcov-tool.c: Check for ftw.h before using nftw.
30314 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
30317 * ipa-visibility.c (update_visibility_by_resolution_info): Only
30318 assert when not in lto mode.
30320 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
30322 * ira-color.c (setup_left_conflict_sizes_p): Simplify
30323 initialization/assignment of conflict_size.
30325 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
30328 * ipa-cp.c (gather_caller_stats): Skip thunks.
30329 (propagate_constants_topo): Skip aliases.
30331 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
30334 * config/sh/sh.c (sh_option_override): Don't change
30335 -freorder-blocks-and-partition to -freorder-blocks even when
30336 unwinding is enabled.
30337 (sh_can_follow_jump): Return false if the followee jump is
30338 a crossing jump when -freorder-blocks-and-partition is specified.
30339 * config/sh/sh.md (*jump_compact_crossing): New insn.
30341 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
30342 Kaz Kojima <kkojima@gcc.gnu.org>
30345 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
30346 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
30347 (sh_can_redirect_branch): Rename to ...
30348 (sh_can_follow_jump): ... this. Constify argument types.
30349 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
30350 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
30351 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
30352 * doc/tm.texi: Regenerate.
30354 2015-02-09 Jakub Jelinek <jakub@redhat.com>
30357 * builtins.c (expand_builtin): Call targetm.expand_builtin
30358 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
30360 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30363 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
30365 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30368 * ipa-icf.c (set_local): New function.
30369 (sem_function::merge): Use it.
30371 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30373 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
30374 (add_type_duplicate): Fix comparison of BINFOs.
30376 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30378 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
30379 on getting VOID pointer.
30381 2015-02-09 Jakub Jelinek <jakub@redhat.com>
30384 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
30387 2015-02-09 Richard Biener <rguenther@suse.de>
30389 * genmatch.c (replace_id): Copy expr_type.
30391 2015-02-09 Richard Biener <rguenther@suse.de>
30393 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
30394 (streamer_write_tree_bitfields): Declare.
30395 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
30396 properly unpack padding.
30397 (unpack_value_fields): Inline ...
30398 (streamer_read_tree_bitfields): ... here.
30399 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
30400 and properly add padding bits.
30401 (streamer_pack_tree_bitfields): Fold into ...
30402 (streamer_write_tree_bitfields): ... this new function,
30403 exposing the bitpack object.
30404 * lto-streamer-out.c (lto_write_tree_1): Call
30405 streamer_write_tree_bitfields.
30407 2015-02-09 Richard Biener <rguenther@suse.de>
30409 PR tree-optimization/54000
30410 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
30411 (struct ivopts_data): Add loop_loc member.
30412 (tree_ssa_iv_optimize_loop): Dump loop location.
30413 (create_new_ivs): Likewise, also dump number of IVs generated.
30415 2015-02-09 Martin Liska <mliska@suse.cz>
30417 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
30418 just if not yet registered.
30419 (ipa_icf_generate_summary): Register callgraph hooks.
30421 2015-02-08 Andrew Pinski <apinski@cavium.com>
30423 * config/aarch64/aarch64.c (gty_dummy): Delete.
30425 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30428 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
30429 (cgraph_node::local_p): Remove thunk related FIXME.
30431 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30434 * i386.c (ix86_function_regparm): Look through aliases to see if callee
30435 is local and optimized.
30436 (ix86_function_sseregparm): Likewise; also use target's SSE math
30437 settings; error out instead of silently generating wrong code
30439 (init_cumulative_args): Look through aliases.
30441 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30444 * ipa-split.c (execute_split_functions): Split if function has aliases.
30446 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30449 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
30450 aliases before trying to expand it.
30451 (cgraph_node::expand_thunk): Fix formating.
30453 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
30455 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
30456 (Using Assembly Language with C): Expand introduction.
30457 (Basic Asm): Copy-edit. Add more information about uses of
30459 (Extended Asm): Copy-edit. Document new escape syntax and
30461 (Global Reg Vars): Copy-edit.
30462 (Local Reg Vars): Likewise.
30464 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
30468 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
30469 (DBX_CONTIN_CHAR): Define.
30471 2015-02-06 Sebastian Pop <s.pop@samsung.com>
30472 Brian Rzycki <b.rzycki@samsung.com>
30474 PR tree-optimization/64878
30475 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
30476 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
30477 Stop recursion at loop phi nodes after having visited a loop phi node.
30479 2015-02-06 Jakub Jelinek <jakub@redhat.com>
30481 * toplev.c (process_options): Change flag_ipa_ra before creating
30482 optimization_{default,current}_node.
30485 * cgraphunit.c (cgraph_node::expand_thunk): If
30486 restype is not is_gimple_reg_type nor the thunk_fndecl
30487 returns aggregate_value_p, set restmp to a temporary variable
30488 instead of resdecl.
30490 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
30492 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
30494 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
30497 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
30498 add a general secondary reload handler for SDmode, unless we have
30499 both read/write support for SDmode.
30501 2015-02-06 Jakub Jelinek <jakub@redhat.com>
30503 PR middle-end/64937
30504 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
30505 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
30506 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
30507 1 before, push it to abstract_vec.
30508 (dwarf2out_abstract_function): Adjust caller. Don't call
30509 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
30510 DECL_ABSTRACT_P flags for all abstract_vec elts.
30512 2015-02-06 Renlin Li <renlin.li@arm.com>
30514 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
30516 * tree-ssa.c (execute_update_addresses_taken): Likewise.
30518 2015-02-06 Jeff Law <law@redhat.com>
30521 * config/h8300/h8300.c (push): New argument "in_prologue".
30522 Pass "in_prologue" along to "F".
30523 (h8300_push_pop): Corresponding changes.
30524 (h8300_expand_prologue): Likewise.
30525 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
30527 2015-02-06 Jakub Jelinek <jakub@redhat.com>
30529 PR rtl-optimization/64957
30531 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
30532 IOR rather than for AND.
30534 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
30537 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
30538 of shift-add and (add + shift) operations. Rename local variable.
30540 2015-02-05 Jeff Law <law@redhat.com>
30543 * config/h8300/constraints.md (U): Correctly dectect
30544 "eightbit_data" memory addresses.
30545 * config/h8300/h8300.c (eightbit_constant_address_p): Also
30546 handle (const (plus (symbol_ref (x)))) where x is declared
30547 as an 8-bit data memory address.
30548 * config/h8300/h8300.md (call, call_value): Correctly detect
30549 "funcvec" functions.
30552 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
30553 24 to 28 bits for the H8/300.
30555 2015-02-06 Alan Modra <amodra@gmail.com>
30558 * config/rs6000/rs6000.c (chain_already_loaded): New function.
30559 (rs6000_call_aix): Use it.
30561 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
30563 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
30566 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
30568 * config/h8300/constraints.md ("U" constraint): Use strict
30569 variant of REG_OK_FOR_BASE_P after reload has started.
30571 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
30573 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
30574 define to zero if !TARGET_NEON.
30575 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
30577 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30578 Trevor Saunders <tsaunders@mozilla.com>
30581 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
30583 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30586 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
30587 when removing varpool nodes.
30589 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30592 * varpool.c (varpool_node::remove): Fix order of variables.
30594 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30597 * ipa-inline.c (inline_small_functions): Fix ordering issue between
30598 speculation resolution and key updates.
30600 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30602 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
30603 about not letting any speculative edges unupdated.
30605 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30608 * gcov-io.c (gcov_var): Export.
30610 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30612 PR middle-end/64922
30613 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
30614 edges that become speculative.
30616 2015-02-04 Jakub Jelinek <jakub@redhat.com>
30618 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
30619 or DW_LANG_Fortran08.
30620 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
30622 (gen_compile_unit_die): Handle "GNU Fortran2003" and
30623 "GNU Fortran2008" language strings.
30624 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
30625 * langhooks.h (lang_GNU_Fortran): New prototype.
30626 * langhooks.c (lang_GNU_Fortran): New function.
30627 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
30630 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
30632 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
30633 (RTX_OK_FOR_OLO10_P): Likewise.
30635 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
30637 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
30639 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30641 PR middle-end/64922
30642 * gimple.c: Include gimple-ssa.h.
30643 (maybe_remove_unused_call_args): New function.
30644 * gimple.h (maybe_remove_unused_call_args): Declare.
30645 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
30646 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
30647 * gimple-fold.c (gimple_fold_call): Likewise.
30649 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
30651 PR rtl-optimization/64905
30652 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
30653 pointer alignment if it isn't needed.
30655 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
30657 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
30658 cortex-a72.cortex-a53.
30659 * config/aarch64/aarch64-tune.md: Regenerate.
30660 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
30662 2015-02-04 Nick Clifton <nickc@redhat.com>
30664 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
30667 2015-02-04 Jakub Jelinek <jakub@redhat.com>
30669 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
30670 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
30671 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
30673 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
30674 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
30675 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
30676 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
30677 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
30678 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
30679 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
30680 * tree-core.h (enum built_in_function): In between
30681 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
30682 for builtins that use DEF_BUILTIN_CHKP macro.
30684 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
30687 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
30688 operands for tcc_comparison exprs. Fix typos.
30691 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
30692 of two XORs that have an intervening AND or IOR.
30695 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
30696 simplification of XOR of AND to not allocate new rtx before
30697 committing to a simplification.
30699 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30701 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
30702 manual swaps in all peepholes.
30704 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30706 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
30707 of manual swapping implementation.
30708 (aarch64_expand_vec_perm_const_1): Likewise.
30710 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
30712 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
30713 (generic_addrcost_table): Remove NAMED_PARAM.
30714 (cortexa57_addrcost_table): Likewise.
30715 (xgene1_addrcost_table): Likewise.
30716 (generic_regmove_table): Likewise.
30717 (cortexa53_regmove_table): Likewise.
30718 (xgene1_regmove_table): Likewise.
30719 (generic_vector_table): Likewise.
30720 (cortexa57_vector_table): Likewise.
30721 (xgene1_vector_table): Likewise.
30722 (generic_tunings): Likewise.
30723 (cortexa53_tunings): Likewise.
30724 (cortexa57_tunings): Likewise.
30725 (xgene1_tunings): Likewise.
30727 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
30729 * config/arm/arm-cores.def: Add cortex-a72 and
30730 cortex-a72.cortex-a53.
30731 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
30732 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
30733 * config/arm/arm-tune.md: Regenerate.
30734 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
30735 "cortex-a72.cortex-a53".
30736 * doc/invoke.texi (ARM Options/-mtune): Likewise.
30738 2015-02-04 Nick Clifton <nickc@redhat.com>
30741 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
30743 (nonimmediate_di_operand): Likewise.
30745 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
30746 prefixes of known F5 using MSP430 MCUs.
30748 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30750 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
30751 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
30752 instead of __builtin_sqrt.
30754 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
30756 * varasm.c (do_assemble_alias): Follow transparent alias
30758 (default_assemble_visibility): Follow transparent alias
30759 chain for decl name.
30761 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
30763 PR middle-end/62103
30764 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
30765 to compute size of referenced value in the constant case.
30767 2015-02-03 Jakub Jelinek <jakub@redhat.com>
30769 PR rtl-optimization/64756
30770 * cse.c (invalidate_dest): New function.
30771 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
30772 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
30773 invalidate and do not record it.
30775 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
30778 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
30779 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
30780 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
30781 atomic_nand<mode>_soft_tcb): New insns.
30782 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
30783 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
30784 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
30785 Split into atomic_not_fetchsi_hard if operands[0] is unused.
30786 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
30787 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
30788 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
30789 atomic_not<mode>_hard if operands[0] is unused.
30790 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
30791 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
30792 if operands[0] is unused.
30793 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
30794 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
30795 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
30796 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
30798 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
30799 into atomic_not<mode>_soft_tcb if operands[0] is unused.
30800 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
30801 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
30802 if operands[0] is unused.
30803 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
30804 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
30805 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
30806 atomic_nand_fetchsi_hard if operands[0] is unused.
30807 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
30808 atomic_nand<mode>_hard if operands[0] is unused.
30809 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
30810 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
30811 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
30812 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
30813 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
30814 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
30815 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
30816 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
30817 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
30818 atomic_not<mode>_hard if operands[0] is unused.
30819 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
30820 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
30822 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
30823 into atomic_not<mode>_soft_tcb if operands[0] is unused.
30824 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
30825 atomic_nand<mode>_hard if operands[0] is unused.
30826 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
30827 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
30829 2015-02-03 David Malcolm <dmalcolm@redhat.com>
30832 * Makefile.in (GCC_OBJS): Add gcc-main.o.
30833 * gcc-main.c: New file, containing "main" taken from gcc.c.
30834 * gcc.c (do_self_spec): Free decoded_options.
30835 (class driver): Move declaration to gcc.h.
30836 (main): Move declaration and implementation to new file
30838 (driver_get_configure_time_options): New function.
30839 * gcc.h (class driver): Move this declaration here, from
30841 (driver_get_configure_time_options): New declaration.
30843 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
30845 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
30846 cross-module inlining.
30847 * cgraph.h (cgraph_node): Add flag merged.
30848 * ipa-icf.c (sem_function::merge): Maintain it.
30850 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
30852 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
30853 instead of OBJECT_P.
30855 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
30858 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
30859 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
30860 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
30861 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
30863 2015-02-03 Jakub Jelinek <jakub@redhat.com>
30866 * combine.c (reg_n_sets_max): New variable.
30867 (can_change_dest_mode, reg_nonzero_bits_for_combine,
30868 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
30869 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
30870 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
30871 (rest_of_handle_combine): Initialize reg_n_sets_max.
30873 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
30875 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
30876 if some always_inline was inlined, apply changes before inlining
30879 2015-02-02 David Malcolm <dmalcolm@redhat.com>
30882 * config/arm/arm.c (arm_option_override): Set
30883 arm_selected_arch/cpu/tune to NULL on entry.
30885 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
30886 Andrew Pinski <pinskia@gcc.gnu.org>
30887 Jakub Jelinek <jakub@gcc.gnu.org>
30890 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
30891 integer typing for small model. Use IN_RANGE.
30893 2015-02-02 Richard Biener <rguenther@suse.de>
30895 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
30896 * tree-vrp.c (vrp_valueize_1): Likewise.
30898 2015-02-02 Alan Modra <amodra@gmail.com>
30900 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
30901 than mem for toc_restore.
30902 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
30903 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
30904 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
30906 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
30909 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
30910 explicit default options.
30912 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
30915 * ipa-utils.c (ipa_merge_profiles): Add release argument.
30916 * ipa-icf.c (sem_function::merge): Do not release body when merging.
30917 * ipa-utils.h (ipa_merge_profiles): Update prototype.
30919 2015-02-01 Jakub Jelinek <jakub@redhat.com>
30922 * cfgexpand.c (deep_ter_debug_map): New variable.
30923 (avoid_deep_ter_for_debug): New function.
30924 (expand_debug_expr): If TERed SSA_NAME is in
30925 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
30926 instead of trying to expand SSA_NAME's def stmt.
30927 (expand_debug_locations): When expanding debug bind
30928 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
30929 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
30931 (pass_expand::execute): Call avoid_deep_ter_for_debug on
30932 all debug bind stmts. Delete deep_ter_debug_map after
30933 expand_debug_location if non-NULL and clear it.
30935 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
30938 * config/sh/sync.md (atomic_fetch_notsi_hard,
30939 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
30940 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
30941 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
30942 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
30943 atomic_not_fetch<mode>_soft_imask): New insns.
30945 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30947 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
30948 (rank_for_schedule_debug): Split from ...
30949 (rank_for_schedule): ... this.
30950 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
30951 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
30953 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
30955 * doc/md.texi (Machine Constraints): Alphabetize table by target.
30956 * doc/extend.texi (x86 Variable Attributes): Move section to
30957 correct alphabetization after renaming.
30958 (x86 Type Attributes): Likewise.
30959 (Target Builtins): Re-alphabetize menu.
30960 (x86 Built-in Functions): Move section to correct alphabetization
30962 (x86 transactional memory intrinsics): Likewise.
30963 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
30964 and x86 Windows Options in table and menu.
30965 (x86 Options): Move section to correct alphabetization after
30967 (x86 Windows Options): Likewise.
30969 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
30971 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
30972 preferred names of the architecture and its 32- and 64-bit
30974 * doc/invoke.texi: Likewise.
30975 * doc/md.texi: Likewise.
30977 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
30980 * config/i386/predicates.md (address_no_seg_operand): Reject
30981 non-CONST_INT_P operands in invalid mode.
30983 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
30985 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
30986 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
30987 * config/i386/predicates.md (address_no_seg_operand): Call
30988 address_operand with VOIDmode.
30989 (vsib_address_operand): Ditto.
30990 (address_mpx_no_base_operand): Ditto.
30991 (address_mpx_no_index_operand): Ditto.
30993 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
30996 * lra-constraints.c (original_subreg_reg_mode): New.
30997 (simplify_operand_subreg): Try to simplify subreg of const. Use
30998 original_subreg_reg_mode for it.
30999 (swap_operands): Update original_subreg_reg_mode.
31000 (curr_insn_transform): Set up original_subreg_reg_mode.
31002 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
31005 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
31007 (process_alt_operands): Use it.
31008 (curr_insn_transform): Check the optional reload pseudo class is
31011 2015-01-30 Joseph Myers <joseph@codesourcery.com>
31013 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
31014 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
31016 * toplev.h (init_asm_output): Update comment on use of
31017 UNKNOWN_LOCATION with fatal_error.
31018 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
31019 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
31020 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
31021 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
31022 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
31023 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
31024 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
31025 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
31026 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
31027 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
31028 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
31029 fatal_error changed to pass input_location as first argument.
31031 2015-01-30 Martin Liska <mliska@suse.cz>
31033 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
31034 in #pragma GCC diagnostic guards.
31036 2015-01-30 Richard Biener <rguenther@suse.de>
31038 PR tree-optimization/64829
31039 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
31040 not add a widening conversion pattern but hand off extra
31041 widenings to callers.
31042 (vect_recog_widen_mult_pattern): Handle extra widening produced
31043 by vect_handle_widen_op_by_const.
31044 (vect_recog_widen_shift_pattern): Likewise.
31045 (vect_pattern_recog_1): Remove excess vertical space in dumping.
31046 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
31047 (vect_init_vector_1): Likewise.
31048 (vect_get_vec_def_for_operand): Likewise.
31049 (vect_finish_stmt_generation): Likewise.
31050 (vectorizable_load): Likewise.
31051 (vect_analyze_stmt): Likewise.
31052 (vect_is_simple_use): Likewise.
31054 2015-01-29 Jeff Law <law@redhat.com>
31056 * combine.c (try_combine): Fix typo in comment.
31058 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
31061 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
31062 (rs6000_stack_info): Add assert.
31063 (rs6000_output_savres_externs): New function, split off from...
31064 (rs6000_output_function_prologue): ... here. Do not call it for
31067 2015-01-29 Jeff Law <law@redhat.com>
31070 * combine.c (try_combine): If I0 is a memory load and I3 a store
31071 to a related address, increase the "goodness" of doing a 4-insn
31072 combination with I0-I3.
31073 (make_field_assignment): Handle SUBREGs in the ior+and case.
31075 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
31077 PR tree-optimization/64746
31078 * tree-if-conv.c (mask_exists): New function.
31079 (predicate_mem_writes): Save created mask with given size for further
31081 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
31082 (ifcvt_repair_bool_pattern): Collect all statements that are root
31083 of bool pattern and use iterative algorithm to remove multiple uses
31084 of predicates, display number of required iterations.
31086 2015-01-29 Richard Biener <rguenther@suse.de>
31088 PR tree-optimization/64853
31089 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
31090 stmt will get simulated again.
31091 * tree-ssa-ccp.c (valueize_op_1): Likewise.
31093 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31095 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
31096 return_in_pc. Remove redundant assignments.
31097 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
31098 (arm_expand_epilogue): Don't compare boolean with true in if condition.
31100 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
31102 * config/i386/i386.c (ix86_mode_after): Make static.
31104 2015-01-29 Richard Biener <rguenther@suse.de>
31106 PR tree-optimization/64844
31107 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
31108 dump cost model analysis.
31109 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31110 Do not register adjusted load/store costs here.
31112 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
31113 Uros Bizjak <ubizjak@gmail.com>
31115 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
31116 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
31117 using x86_use_pseudo_pic_reg.
31118 * config/i386/i386.c (ix86_conditional_register_usage): Remove
31119 support for fixed PIC register.
31120 (ix86_use_pseudo_pic_reg): Not static any more.
31122 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
31124 PR middle-end/64805
31125 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
31126 to avoid error in cgraph node verification.
31128 2015-01-29 Marek Polacek <polacek@redhat.com>
31130 * doc/standards.texi: Reflect that the default for C is gnu11.
31132 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
31135 * reorg.c (switch_text_sections_between_p): New function.
31136 (relax_delay_slots): Call it when testing if the jump insn
31137 is removable. Use targetm.can_follow_jump when testing if
31138 the conditional branch can follow an unconditional jump.
31140 2015-01-27 Caroline Tice <cmtice@google.com>
31142 Committing VTV Cywin/Ming patch for Patrick Wollgast
31143 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
31144 if -fvtable-verify=preinit/std is used.
31145 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
31146 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
31147 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
31148 if -fvtable-verify=preinit/std is used.
31149 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
31150 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
31151 if -fvtable-verify=preinit/std is used.
31152 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
31153 * config/i386/mingw32.h (LIB_SPEC): Likewise.
31154 * varasm.c (assemble_variable): Add code to properly set the comdat
31155 section and name for the .vtable_map_vars section in case the
31156 target is PE or COFF.
31158 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
31161 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
31162 make sane BB profile.
31163 (cgraph_node::expand_thunk): Make sane BB profile.
31164 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
31165 * cgraph.h (init_lowered_empty_function): Update prototype.
31166 * config/i386/i386.c (make_resolver_func): Update call.
31167 * predict.c (gate): Disable branch prediction pass if
31168 profile is already there.
31170 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
31172 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
31173 * opth-gen.awk: Likewise.
31174 * common.opt: Mark flag_fp_contract_mode as Optimization.
31176 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
31178 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
31179 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
31181 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
31184 * config/sh/predicates.md (atomic_arith_operand,
31185 atomic_logical_operand): Remove.
31186 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
31187 (atomic_arith_operand_0): New predicate.
31188 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
31189 Use atomic_arith_operand_0 for input values.
31190 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
31191 atomic_compare_and_swap<mode>_soft_gusa,
31192 atomic_compare_and_swap<mode>_soft_tcb,
31193 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
31194 arith_reg_operand instead of register_operand.
31195 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
31196 atomic_arith_operand_0 for newval input.
31197 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
31198 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
31199 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
31200 arith_reg_operand instead of register_operand.
31201 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
31202 fetchop_predicate_1, fetchop_constraint_1_llcs,
31203 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
31204 fetchop_constraint_1_imask): New code iterator attributes.
31205 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
31206 register_operand. Use fetchop_predicate_1.
31207 (atomic_fetch_<fetchop_name>si_hard,
31208 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
31209 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
31210 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
31211 and arith_reg_operand instead of register_operand. Use
31212 fetchop_predicate_1, fetchop_constraint_1_gusa.
31213 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
31214 and arith_reg_operand instead of register_operand. Use
31215 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
31217 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
31218 and arith_reg_operand instead of register_operand. Use
31219 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
31221 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
31222 register_operand. Use atomic_logical_operand_1.
31223 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
31224 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
31225 arith_reg_operand instead of register_operand.
31226 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
31227 Use arith_reg_dest and arith_reg_operand instead of register_operand.
31228 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
31229 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
31230 register_operand. Use fetchop_predicate_1.
31231 (atomic_<fetchop_name>_fetchsi_hard,
31232 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
31233 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31234 fetchop_constraint_1_llcs.
31235 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
31236 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31237 fetchop_constraint_1_gusa.
31238 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
31239 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31240 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
31241 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
31242 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31243 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
31244 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
31245 register_operand. Use atomic_logical_operand_1.
31246 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
31247 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
31248 arith_reg_operand instead of register_operand.
31249 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
31250 arith_reg_operand instead of register_operand. Use logical_operand
31251 and K08. Adjust asm sequence to allow R0 usage.
31252 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
31253 arith_reg_operand instead of register_operand. Use logical_operand
31256 2015-01-28 Jakub Jelinek <jakub@redhat.com>
31259 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
31260 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
31261 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
31262 only get_full_len HOST_WIDE_INTs from get_val () array rather than
31263 all bits in *val_wide.
31265 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
31267 * varpool.c (tls_model_names): Fix names.
31268 (varpool_node::dump): Dump tls- prefix for tls models.
31270 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
31271 Bernd Schmidt <bernds@codesourcery.com>
31272 Nathan Sidwell <nathan@codesourcery.com>
31274 * config/nvptx/mkoffload.c: New file.
31275 * config/nvptx/t-nvptx: Add build rules for it.
31276 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
31277 (extra_programs): Add mkoffload.
31278 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
31280 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
31282 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
31284 PR middle-end/64809
31285 * cfgexpand.c (reorder_operands): Skip debug gimples.
31287 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
31289 PR tree-optimization/64277
31290 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
31291 range info when possible to refine estimation.
31293 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
31295 PR tree-optimization/64718
31296 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
31297 be a 16bit unsigned integer when n->range is 16.
31298 (bswap_replace): Convert src to that type if necessary for all bswap
31299 sizes. Fix rotation right notation in nearby comment. Use bswap_type
31300 set in pass_optimize_bswap::execute ().
31302 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
31304 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
31305 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
31306 integer and floating point variants.
31307 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
31309 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
31311 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
31312 for all vector modes.
31314 2015-01-28 Jakub Jelinek <jakub@redhat.com>
31317 * doc/sourcebuild.texi (comdat_group): Document.
31319 2015-01-28 Terry Guo <terry.guo@arm.com>
31321 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
31323 2015-01-27 David Malcolm <dmalcolm@redhat.com>
31325 * toplev.c (print_version): Add param "show_global_state", and
31326 only print GGC and plugin information if it is true.
31327 (init_asm_output): Pass in "true" for the new param when calling
31329 (process_options): Likewise.
31330 (toplev::main): Likewise.
31331 * toplev.h (print_version): Add new param to decl.
31333 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
31337 * tree.c (lookup_binfo_at_offset): New function.
31338 (get_binfo_at_offset): Use it.
31340 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
31343 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
31344 on vtable being vtable.
31346 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
31348 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
31349 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
31350 -mhotpatch= option.
31351 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
31352 -mno-hotpatch options. Change syntax of -mhotpatch= option.
31353 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
31355 (s390_hotpatch_trampoline_halfwords_max): Renamed.
31356 (s390_hotpatch_hw_max): New name.
31357 (s390_hotpatch_trampoline_halfwords): Renamed.
31358 (s390_hotpatch_hw_before_label): New name.
31359 (get_hotpatch_attribute): Removed.
31360 (s390_hotpatch_hw_after_label): New name.
31361 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
31363 (s390_attribute_table): Ditto.
31364 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
31365 (s390_function_num_hotpatch_hw): New name.
31366 Remove special handling of inline functions and hotpatching.
31367 Return number of nops before and after the function label.
31368 (s390_can_inline_p): Removed.
31369 (s390_asm_output_function_label): Emit a configurable number of nops
31370 after the function label.
31371 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
31372 (TARGET_CAN_INLINE_P) Removed.
31373 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
31375 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31376 Jiong Wang <jiong.wang@arm.com>
31378 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
31380 (cb<optab><mode>1): Likewise.
31381 * config/aarch64/iterators.md (bcond): New define_code_attr.
31383 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31385 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
31388 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31390 * config/s390/s390.c (s390_register_move_cost): Increase costs for
31393 2015-01-27 Richard Biener <rguenther@suse.de>
31395 * tree-vrp.c (update_value_range): Intersect the range with
31396 old recorded SSA name range information.
31398 2015-01-27 Nick Clifton <nickc@redhat.com>
31400 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
31401 BC, DE and HL registers directly, not via AX.
31402 When decrementing the stack pointer by a large amount, transfer SP
31403 into AX and perform the subtraction there.
31404 (rl78_expand_epilogue): Perform the inverse of the above
31407 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31409 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
31411 2015-01-27 Jakub Jelinek <jakub@redhat.com>
31412 Yury Gribov <y.gribov@samsung.com>
31415 * ubsan.c (ubsan_source_location): Refactor code.
31416 (ubsan_type_descriptor): Update type size. Refactor code.
31418 2015-01-27 Richard Biener <rguenther@suse.de>
31420 PR tree-optimization/56273
31421 PR tree-optimization/59124
31422 PR tree-optimization/64277
31423 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
31424 from the first VRP pass.
31426 2015-01-27 Jakub Jelinek <jakub@redhat.com>
31429 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
31430 handle the first argument in the same loop as all the other arguments.
31432 PR rtl-optimization/61058
31433 * jump.c (cleanup_barriers): Update basic block boundaries
31434 if BLOCK_FOR_INSN is non-NULL on PREV.
31436 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
31438 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
31439 bounds narrowing, already instrumented calls and calls to
31440 not instrumentable functions.
31442 2015-01-27 Jakub Jelinek <jakub@redhat.com>
31444 PR tree-optimization/64807
31445 * wide-int.cc (wi::divmod_internal): Clear
31446 b_dividend[dividend_blocks_needed].
31448 2015-01-26 DJ Delorie <dj@redhat.com>
31450 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
31451 volatile memory references.
31453 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
31456 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
31458 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
31459 shifts if it already fits into K08.
31461 2015-01-26 Jakub Jelinek <jakub@redhat.com>
31464 * ipa-inline.c (inline_small_functions): Print "unknown" even
31465 if edge->call_stmt is non-NULL, but has builtins or unknown
31468 PR middle-end/64421
31469 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
31470 with asterisk, skip the first character.
31472 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
31475 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
31478 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
31481 * config/i386/i386.md (*movdi_internal): Also check operand 0
31482 to determine TYPE_LEA operand.
31483 (*movsi_internal): Ditto.
31485 2015-01-26 Jakub Jelinek <jakub@redhat.com>
31487 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
31488 OPTION_MASK_QUAD_MEMORY_ATOMIC.
31490 2015-01-26 Renlin Li <renlin.li@arm.com>
31492 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
31494 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
31497 2015-01-26 Richard Biener <rguenther@suse.de>
31499 PR middle-end/64764
31500 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
31501 combining two BIT_AND_EXPR predicates.
31503 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
31506 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
31508 2015-01-26 Terry Guo <terry.guo@arm.com>
31510 * config/arm/arm.c (arm_file_start): Update the assignment of
31511 Tag_ABI_HardFP_use.
31513 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
31515 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
31517 config/arm/arm.md: Include the new Cortex-A57 model.
31518 (generic_sched): Don't use generic_sched when tuning for
31521 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
31522 Uros Bizjak <ubizjak@gmail.com>
31524 * config/i386/i386.c (get_builtin_code_for_version): Add
31525 support for BMI and BMI2 multiversion functions.
31527 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31529 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
31530 (extract_bit_field): Likewise.
31531 (extract_low_bits): Likewise.
31532 (expand_mult): Likewise.
31533 (expand_mult_highpart_adjust): Likewise.
31535 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
31537 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
31538 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
31539 * config/i386/i386.c (processor_model): Add
31540 M_INTEL_COREI7_BROADWELL.
31541 (arch_names_table): Add "broadwell".
31543 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
31552 * config/sh/sh-protos.h
31553 (sh_extending_set_of_reg::can_use_as_unextended_reg,
31554 sh_extending_set_of_reg::use_as_unextended_reg,
31555 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
31556 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
31557 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
31558 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
31559 (sh_treg_insns): New class.
31560 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
31561 (scope_counter): New class.
31562 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
31563 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
31564 sh_extending_set_of_reg::can_use_as_unextended_reg,
31565 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
31566 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
31567 sh_split_treg_set_expr): New functions.
31568 (addsubcosts): Handle treg_set_expr.
31569 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
31570 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
31571 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
31572 (sh_insn_operands_modified_between_p): Make non-static.
31573 * config/sh/predicates.md (zero_extend_movu_operand): Allow
31574 simple_mem_operand in addition to displacement_mem_operand.
31575 (zero_extend_operand): Don't allow zero_extend_movu_operand.
31576 (treg_set_expr, treg_set_expr_not_const01,
31577 arith_reg_or_treg_set_expr): New predicates.
31578 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
31579 arith_or_int_operand instead of logical_operand. Convert to
31580 insn_and_split. Try to optimize constant operand in splitter.
31581 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
31582 (*tstqi_t_zero): Delete.
31583 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
31584 (tstsi_t_and_not): Delete.
31585 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
31586 Convert to insn_and_split.
31587 (unnamed split, tstsi_t_zero_extract_xor,
31588 tstsi_t_zero_extract_subreg_xor_little,
31589 tstsi_t_zero_extract_subreg_xor_big): Delete.
31590 (*tstsi_t_shift_mask): New insn_and_split.
31591 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
31592 to recombine with surrounding insns when splitting.
31593 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
31594 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
31595 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
31596 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
31597 (*cbranch_div0s: Delete.
31598 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
31599 Try to recombine with surrounding insns when splitting. Add operand
31601 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
31602 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
31603 *addc_r_r_msb, *addc_2r_msb): Delete.
31604 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
31606 (*addc_negreg_t): New insn_and_split.
31607 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
31608 Try to recombine with surrounding insns when splitting.
31609 Add operand order variants.
31610 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
31611 insn_and_split patterns.
31612 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
31613 surrounding insns when splitting.
31614 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
31615 (*rotcl): Likewise. Add zero_extract variant.
31616 (*ashrsi2_31): New insn_and_split.
31617 (*negc): Convert to insn_and_split. Use treg_set_expr.
31618 (*zero_extend<mode>si2_disp_mem): Update comment.
31619 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
31621 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
31622 with surrounding insns when splitting.
31623 (any_treg_expr_to_reg): New insn_and_split.
31624 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
31625 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
31626 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
31627 *zero_extract_2): New single bit zero extract patterns.
31628 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
31629 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
31630 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
31631 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
31633 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
31634 register_operand for set source.
31636 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
31638 * i386.opt (prefetch_sse): New targetsave.
31639 * i386.c (ix86_function_specific_save): Save prefetch_sse.
31640 (ix86_function_specific_restore): Restore prefetch_sse and initialize
31641 ix86_cost/ix86_tune_cost.
31643 2015-01-23 David Malcolm <dmalcolm@redhat.com>
31645 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
31646 Support the JIT by using 0 as the language type.
31648 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
31651 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
31652 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
31653 (mark_regno_live, process_bb_lives): Pass new parameter value to
31654 make_hard_regno_born.
31656 2015-01-23 Jakub Jelinek <jakub@redhat.com>
31658 PR rtl-optimization/63637
31659 PR rtl-optimization/60663
31660 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
31661 if elt->cost is MAX_COST for ASM_OPERANDS.
31662 (find_sets_in_insn): Fix up comment typo.
31663 (cse_insn): Don't set src_volatile for all non-volatile
31664 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
31665 or with "memory" clobber. Set elt->cost to MAX_COST
31666 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
31667 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
31669 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
31671 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
31674 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
31676 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
31677 libgcc/config/i386/elf-lib.h.
31679 2015-01-23 Jakub Jelinek <jakub@redhat.com>
31682 * gcc.c (print_configuration): Don't print a blank line at the end
31684 (run_attempt): ... but here unstead.
31686 PR middle-end/64734
31687 * omp-low.c (scan_sharing_clauses): Don't ignore
31688 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
31689 on target data/update constructs.
31691 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
31694 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
31695 (DEBUG_RELOAD): Removed define.
31696 (m32c_limit_reload_class): Enable traces with if DEBUG0.
31697 (m32c_function_arg): Added a type cast.
31698 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
31699 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
31700 * config/m32c/bitops.md (andqi3_16): Likewise.
31701 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
31702 (push_a01_l): Likewise.
31704 2015-01-23 David Malcolm <dmalcolm@redhat.com>
31707 * main.c (main): Construct toplev instances with init_signals=true.
31708 * toplev.c (general_init): Add param "init_signals", and use it to
31709 conditionalize the calls to signal and host_hooks.extra_signals.
31710 (toplev::toplev): Add param "init_signals".
31711 (toplev::main): When invoking general_init, pass m_init_signals
31712 to control whether signal-handlers are installed.
31713 * toplev.h (toplev::toplev): Add param "init_signals".
31714 (toplev::m_init_signals): New field.
31716 2015-01-23 David Malcolm <dmalcolm@redhat.com>
31719 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
31720 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
31721 latter may be affected by the former (e.g. on i686).
31723 2015-01-23 Martin Liska <mliska@suse.cz>
31725 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
31726 false positive during profiledbootstrap.
31728 2015-01-23 Tom de Vries <tom@codesourcery.com>
31731 * lto-opts.c (lto_write_options): Output non-explicit conservative
31733 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
31734 (append_compiler_options): Pass -fopenacc through.
31736 2015-01-23 Tom de Vries <tom@codesourcery.com>
31739 * lto-opts.c (lto_write_options): Output non-explicit conservative
31741 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
31742 (append_compiler_options): Pass -fopenmp through.
31744 2015-01-23 Jakub Jelinek <jakub@redhat.com>
31747 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
31750 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
31751 * diagnostic.def (DK_ICE_NOBT): New kind.
31752 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
31753 like DK_ICE, but never print backtrace.
31754 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
31755 (internal_error_no_backtrace): New function.
31756 * gcc.c (execute): Use internal_error_no_backtrace instead of
31759 2015-01-22 Jeff Law <law@redhat.com>
31762 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
31763 improve code density for small immediate to memory case.
31764 (insv): Better handle bitfield assignments when the field is
31765 being set to all ones.
31766 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
31769 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31770 Jakub Jelinek <jakub@redhat.com>
31772 PR middle-end/64729
31773 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
31774 for !TARGET_LIBC_PROVIDES_SSP version and
31775 -fstack-protector-{all,strong,explicit} otherwise.
31776 * config/freebsd.h (LINK_SSP_SPEC): Handle
31777 -fstack-protector-{strong,explicit}.
31779 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
31780 H.J. Lu <hongjiu.lu@intel.com>
31783 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
31786 2015-01-22 Wei Mi <wmi@google.com>
31788 PR rtl-optimization/64557
31789 * dse.c (record_store): Call get_addr for mem_addr.
31790 (check_mem_read_rtx): Likewise.
31792 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
31794 * fold-const.c (const_binop): Add early return for non-tcc_binary.
31796 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
31798 * toplev.c (init_local_tick): Process the failure when read
31799 fails for random_seed.
31801 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
31802 'pretty_name' to avoid memory overflow.
31804 2015-01-22 Richard Biener <rguenther@suse.de>
31806 PR middle-end/64728
31807 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
31808 abnormal coalescing on undefined SSA names.
31810 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
31814 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
31816 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
31818 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
31820 PR middle-end/63325
31821 * fold-const.c (fold_checksum_tree): Don't include value of
31822 expr->decl_with_vis.symtab_node in the checksum.
31824 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31826 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
31828 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
31831 * gcc.c (insert_comments): New function.
31832 (try_generate_repro): Call it.
31833 (append_text): Removed.
31835 2015-01-22 Richard Biener <rguenther@suse.de>
31837 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
31838 with IL incompatible options. Properly honor user optimize
31841 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
31843 PR rtl-optimization/64682
31844 * combine.c (distribute_notes): When moving a death note for
31845 a register that is set in the new I2, make sure to put it
31846 before that new I2.
31848 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
31850 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
31851 not TARGET_DEFAULT.
31853 2015-01-21 Jakub Jelinek <jakub@redhat.com>
31856 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
31857 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
31858 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
31861 * doc/invoke.texi (-fsanitize=vptr): Document.
31863 PR rtl-optimization/62078
31864 * dse.c: Include cfgcleanup.h.
31865 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
31866 anything call purge_all_dead_edges and cleanup_cfg at the end
31869 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
31871 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
31874 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
31876 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
31879 2015-01-21 David Sherwood <david.sherwood@arm.com>
31880 Tejas Belagod <Tejas.Belagod@arm.com>
31882 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
31883 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
31884 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
31887 2015-01-21 David Sherwood <david.sherwood@arm.com>
31888 Tejas Belagod <Tejas.Belagod@arm.com>
31890 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
31891 (aarch64_reverse_mask): New decls.
31892 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
31893 (insn_count): New mode_attr.
31894 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
31895 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
31896 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
31897 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
31898 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
31899 (aarch64_simd_st4): New patterns.
31900 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
31901 (aarch64_reverse_mask): New functions.
31903 2015-01-21 Alan Hayward <alan.hayward@arm.com>
31905 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
31907 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
31908 addressing modes for BE.
31909 (aarch64_print_operand): Add 'R' specifier.
31910 (aarch64_simd_disambiguate_copy): Delete.
31911 (aarch64_simd_emit_reg_reg_move): New function.
31912 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
31913 in define_splits for structural moves.
31914 (mov<mode>): Use less restrictive predicates.
31915 (*aarch64_mov<mode>): Simplify and only allow for LE.
31916 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
31918 2015-01-21 Alan Hayward <alan.hayward@arm.com>
31920 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
31922 2015-01-21 Richard Henderson <rth@redhat.com>
31925 * ccmp.c (used_in_cond_stmt_p): Remove.
31926 (expand_ccmp_expr): Don't use it.
31928 2015-01-21 Nick Clifton <nickc@redhat.com>
31930 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
31933 2015-01-21 Richard Biener <rguenther@suse.de>
31935 PR middle-end/64313
31936 * tree-core.h (builtin_info, builtin_info_type): Turn from
31937 an object with two arrays into an array of an object with
31938 decl and two flags, implicit_p and declared_p.
31939 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
31940 set_builtin_decl, set_builtin_decl_implicit_p,
31941 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
31942 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
31943 * builtins.c (builtin_info): Adjust.
31944 * gimplify.c (gimplify_addr_expr): References to builtins
31945 that have been declared by the user makes them eligible for
31946 use by the compiler. Call set_builtin_decl_implicit_p on them.
31948 2015-01-20 Jeff Law <law@redhat.com>
31951 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
31952 allow pc-relative addresses in operand predicates or constraints.
31954 2015-01-21 Bin Cheng <bin.cheng@arm.com>
31956 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
31957 neon on aarch32 processors for stringops.
31959 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31962 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
31964 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31967 * ipa-inline.c: Include lto-streamer.h
31968 (report_inline_failed_reason): Output source file differences and
31969 flags on optimization/target node mismatch.
31970 (can_inline_edge_p): Consider caller to be the outer inline function;
31971 be less restrictive about matching opimize and optimize_size attributes.
31972 (inline_account_function_p): Break out from ...
31973 (inline_small_functions): ... here.
31974 * ipa-inline-transform.c (clone_inlined_nodes): Use
31975 inline_account_function_p.
31976 (inline_call): Use optimize attribution; use inline_account_function_p.
31977 (inline_transform): Use opt_for_fn.
31978 * ipa-inline.h (inline_account_function_p): Declare.
31980 2015-01-20 Jakub Jelinek <jakub@redhat.com>
31983 * dwarf2out.c (decl_piece_node): Don't put bitsize into
31984 mode if bitsize <= 0.
31985 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
31986 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
31987 sizes and positions.
31989 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
31991 * config/nios2/nios2.c (nios2_asm_file_end): Implement
31992 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
31994 (TARGET_ASM_FILE_END): Define.
31996 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
31998 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
31999 (struct tune_params): Use the enum.
32000 * arm.c (arm_*_tune): Update.
32001 (arm_option_override): Update.
32003 2015-01-20 Richard Biener <rguenther@suse.de>
32006 * ipa-reference.c (add_static_var): Inline ...
32007 (analyze_function): ... here after splitting out from ...
32008 (is_proper_for_analysis): ... this.
32010 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
32013 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
32014 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
32015 replace the conditional with it's true branch.
32016 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
32017 (arm_lra_p): Remove.
32019 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
32021 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
32023 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32025 * config/tilegx/mul-tables.c: Move symtab.h include after
32026 coretypes.h include.
32027 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
32028 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
32029 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
32030 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
32031 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
32033 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
32037 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
32039 PR rtl-optimization/64081
32040 * loop-iv.c (def_pred_latch_p): New function.
32041 (latch_dominating_def): Allow specific cases with non-single
32043 (iv_get_reaching_def): Likewise.
32044 (check_complex_exit_p): New function.
32045 (check_simple_exit): Use check_complex_exit_p to allow certain cases
32046 with exits not executing on any iteration.
32048 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32051 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
32052 to set branch cost.
32054 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32057 * i386.c (gate): Check flag_expensive_optimizations and
32059 (ix86_option_override_internal): Drop optimize_size condition
32060 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
32061 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
32062 MASK_PREFER_AVX128.
32063 (ix86_avx256_split_vector_move_misalign,
32064 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
32065 * sse.md (all uses of TARGET_PREFER_AVX128): Add
32066 optimize_insn_for_speed_p check.
32068 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
32070 * config/mips/mips.h (FP_ASM_SPEC): New define.
32071 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
32074 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
32077 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
32078 nullptr for insn when reaching the first insn.
32079 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
32080 (sh_insn_operands_modified_between_p): Add nullptr check.
32081 (sh_find_extending_set_of_reg): Fix log message. Don't accept
32082 sign extending mem load if the insn contains any UNSPEC or
32085 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32087 * params.def (inline-unit-growth): Drop to 15%.
32088 * invoke.texi (inline-unit-growth): Document change.
32090 2015-01-19 Martin Liska <mliska@suse.cz>
32093 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
32094 function for second argument of OBJ_TYPE_REF.
32096 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32099 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
32100 whether function is an alias.
32102 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32104 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
32107 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
32109 PR rtl-optimization/64671
32110 * lra-remat.c (operand_to_remat): Don't consider jump and call
32113 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
32116 * config/rs6000/default64.h: Include rs6000-cpus.def.
32117 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
32118 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
32119 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
32121 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
32123 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
32124 pseudo-op to specify assembler dialect.
32126 2015-01-19 Martin Liska <mliska@suse.cz>
32129 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
32130 Handle safe potentially removed nodes during filtering.
32132 2015-01-19 Martin Liska <mliska@suse.cz>
32134 * doc/extend.texi (no_icf): Add new attribute description.
32135 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
32136 where the pass attempts to merge a function with no_icf attribute.
32138 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32141 * doc/md.texi (ARM Options): Document register constraints.
32143 2015-01-19 Jiong Wang <jiong.wang@arm.com>
32144 Andrew Pinski <apinski@cavium.com>
32147 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
32148 (ashl<mode>3): Don't expand if operands[2] is not constant.
32150 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32153 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
32154 Match xor-and-xor RTL pattern.
32156 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
32158 PR rtl-optimization/64081
32159 * loop-iv.c (def_pred_latch_p): New function.
32160 (latch_dominating_def): Allow specific cases with non-single
32162 (iv_get_reaching_def): Likewise.
32163 (check_complex_exit_p): New function.
32164 (check_simple_exit): Use check_complex_exit_p to allow certain cases
32165 with exits not executing on any iteration.
32167 2015-01-19 Jakub Jelinek <jakub@redhat.com>
32169 * common.opt (fgraphite): Fix a typo.
32171 2015-01-19 Felix Yang <felix.yang@huawei.com>
32173 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
32175 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
32176 uminp, smax_nanp, smin_nanp): New builtins.
32177 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
32178 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
32179 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
32180 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
32181 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
32182 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
32183 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
32184 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
32185 vpminnms_f32): Rewrite using builtin functions.
32187 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
32190 * omp-low.c (offload_symbol_decl): Remove variable.
32191 (get_offload_symbol_decl): Remove function.
32192 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
32193 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
32194 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
32195 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
32196 BUILT_IN_GOACC_UPDATE don't pass it at all.
32198 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
32200 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
32203 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
32205 * ipa-chkp.c (chkp_produce_thunks): Add early param
32206 to split thunks production into two passes. Keep
32207 'always_inline' function bodies after the first pass.
32208 (pass_data_ipa_chkp_early_produce_thunks): New.
32209 (pass_ipa_chkp_early_produce_thunks): New.
32210 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
32211 chkp_produce_thunks signature.
32212 (make_pass_ipa_chkp_early_produce_thunks): New.
32213 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
32214 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
32215 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
32217 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
32219 * cgraph.c (cgraph_node::dump): Dump profile flags.
32221 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
32224 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
32225 reg appear first in the parallel.
32227 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
32229 * ipa-reference.c (set_reference_optimization_summary,
32230 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
32232 (ignore_module_statics): New static var.
32233 (propagate_bits): If ipa-reference is disabled, do not look into local
32235 (analyze_function): Disable analysis when ipa_reference is disabled.
32236 (generate_summary): Do not dump when reference is disabled;
32237 collect vars accessed from functions with ipa-reference disabled.
32238 (get_read_write_all_from_node): When ipa-reference is disabled, use the
32240 (gate): Enable for LTO.
32241 (ignore_edge_p): New function.
32242 (propagate): Skip functions w/o ipa-reference analysis.
32243 * optc-save-gen.awk: Handle optimize_debug correctly.
32244 * opth-gen.awk: Likewise.
32245 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
32246 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
32247 fira-share-save-slots, fira-share-spill-slots,
32248 fmodulo-sched-allow-regmoves, fpartial-inlining,
32249 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
32250 ftracer, ftree-parallelize-loops, fassociative-math,
32251 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
32253 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
32254 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
32256 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
32259 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
32262 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
32264 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
32266 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
32268 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
32269 Remove duplicate option listings.
32271 2015-01-18 Felix Yang <felix.yang@huawei.com>
32273 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
32274 (autofdo_source_profile::get_callsite_total_count,
32275 function_instance::get_function_instance_by_decl,
32276 string_table::get_index, string_table::get_index_by_decl,
32277 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
32278 Fix comment typos. Reformatting and minor code rearrangement.
32280 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
32282 * config/rs6000/rs6000.md (probe_stack): Delete.
32283 (probe_stack_address): New.
32285 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
32287 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
32288 to test for 32-bit ABIs, not !TARGET_POWERPC64.
32290 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
32292 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
32293 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
32294 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
32296 (rs6000_libcall_value): Use the new function.
32298 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
32300 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
32302 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
32304 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
32305 implement a more precise life analysis for it during backward scan.
32307 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
32309 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
32311 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
32313 PR rtl-optimization/52773
32314 * calls.c (emit_library_call_value): When pushing arguments use
32315 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
32316 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
32317 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
32319 2015-01-17 Jeff Law <law@redhat.com>
32321 PR rtl-optimization/32790
32322 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
32323 not ZERO_EXTEND in SET_DESTs.
32325 2015-01-17 Alan Modra <amodra@gmail.com>
32327 * cprop.c (do_local_cprop): Revert last change.
32329 2015-01-16 DJ Delorie <dj@redhat.com>
32330 Nick Clifton <nickc@redhat.com>
32332 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
32333 (addhi3_real): Likewise. Fix [HL+0] syntax.
32334 (subqi3_real): Likewise.
32335 (subhi3_real): Likewise.
32336 (cbranchqi4_real): Likewise. Allow saddr,#imm.
32337 (cbranchhi4_real): Likewise.
32338 (cbranchhi4_real_inverted): Likewise.
32339 (cbranchsi4_real_lt): Likewise.
32340 (cbranchsi4_real_ge): Likewise.
32341 (cbranchsi4_real_ge): Likewise.
32342 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
32343 (sub<mode>3_virt): Likewise.
32344 (cbranchqi4_virt): Likewise.
32345 (cbranchhi4_virt): Likewise.
32346 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
32347 always use '[reg+imm]' even when imm is zero.
32348 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
32349 (rl78_general_operand): New.
32350 (rl78_nonimmediate_operand): New.
32351 (rl78_nonfar_operand): Use them.
32352 (rl78_nonfar_nonimm_operand): Likewise.
32353 (rl78_stack_based_mem): Fix.
32354 * config/rl78/constraints.md (Ibqi): New.
32359 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
32360 (iorqi3): Likewise.
32361 (xorqi3): Likewise.
32362 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
32364 * config/rl78/constrains (Qs8): New constraint.
32365 * config/rl78/rl78.c (rl78_flags_already_set): New function.
32366 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
32367 * config/rl78/rl78-real.md (update_Z): New attribute.
32368 Update patterns to set it.
32369 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
32370 shorter compare and branch sequence can be used.
32371 (cbranchhi4_real): Likewise.
32372 (cbranchhi4_real_inverted): Likewise.
32374 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
32375 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
32377 * config/rl78/rl78.c (rl78_get_name_encoding): New.
32378 (rl78_option_override): Allow -mes0 only if C.
32379 (characterize_address): Support subregs of symbol_refs.
32380 (rl78_addr_space_address_mode): Move. Add __near.
32381 (rl78_far_p): Likewise.
32382 (rl78_addr_space_pointer_mode): Likewise.
32383 (rl78_as_legitimate_address): Likewise.
32384 (rl78_addr_space_subset_p): Likewise.
32385 (rl78_addr_space_convert): Likewise.
32386 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
32387 symbols with -mes0.
32388 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
32390 (rl78_alloc_physical_registers_op1): Change logic to prefer
32391 symbol[BC] addressing.
32392 (frodata_section): New.
32393 (rl78_asm_init_sections): Initialize it.
32394 (rl78_select_section): Put __far readonly symbols in .frodata.
32395 (rl78_make_type_far): New.
32396 (rl78_insert_attributes): Force all readonly symbols to be
32398 (rl78_asm_out_integer): New.
32399 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
32400 * config/rl78/rl78.opt (-mes0): New.
32402 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
32403 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
32404 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
32405 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
32406 (rl78_saddr_p): New.
32407 (rl78_output_aligned_common): New.
32408 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
32409 (rl78_handle_saddr_attribute): New.
32410 (rl78_handle_naked_attribute): New.
32411 (rl78_attribute_table): Add saddr.
32412 (rl78_print_operand_1): Don't print '!' on saddr operands.
32413 (rl78_print_operand_1): Strip encodings.
32415 (rl78_strip_name_encoding): New.
32416 (rl78_attrlist_to_encoding): New.
32417 (rl78_encode_section_info): New.
32418 (rl78_asm_init_sections): New.
32419 (rl78_select_section): New.
32420 (rl78_output_labelref): New.
32421 (rl78_output_aligned_common): New.
32422 (rl78_asm_out_integer): New.
32423 (rl78_asm_ctor_dtor): New.
32424 (rl78_asm_constructor): New.
32425 (rl78_asm_destructor): New.
32427 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
32428 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
32429 (transcode_memory_rtx): Update.
32430 (rl78_expand_epilogue): Use A_REG instead of 0.
32432 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32434 * config/arm/arm-protos.h (struct tune_params): New field
32435 sched_autopref_queue_depth.
32436 * config/arm/arm.c (sched-int.h): Include header.
32437 (arm_first_cycle_multipass_dfa_lookahead_guard,)
32438 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
32439 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
32440 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
32441 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
32442 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
32443 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
32444 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
32445 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
32446 * config/arm/t-arm (arm.o): Update.
32447 * haifa-sched.c (update_insn_after_change): Update.
32448 (rank_for_schedule): Use auto-prefetcher model, if requested.
32449 (autopref_multipass_init): New static function.
32450 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
32451 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
32452 variable for debug dumps.
32453 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
32454 (autopref_multipass_dfa_lookahead_guard): New global function that
32455 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
32456 (init_h_i_d): Update.
32457 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
32458 * sched-int.h (enum autopref_multipass_data_status): New const enum.
32459 (autopref_multipass_data_): Structure for auto-prefetcher data.
32460 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
32461 (struct _haifa_insn_data:autopref_multipass_data): New field.
32462 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
32463 (autopref_multipass_dfa_lookahead_guard): Declare.
32465 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32467 * rtlanal.c (get_base_term): Handle SCRATCH.
32469 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32471 * config/aarch64/aarch64.c
32472 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
32473 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
32475 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
32476 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
32478 2015-01-17 Alan Modra <amodra@gmail.com>
32480 * cprop.c (do_local_cprop): Disallow replacement of fixed
32483 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32486 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
32489 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
32491 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
32492 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
32494 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32496 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
32497 * config/arm/thumb1.md: ... Here.
32499 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32501 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
32502 TImode for TARGET_32BIT.
32504 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32506 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
32507 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
32509 (rs6000_abi_word_mode): New function.
32511 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32513 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
32514 instead of UNITS_PER_WORD to describe the size of stack slots.
32516 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32518 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
32519 as rs6000_promote_function_mode. Move comment to there.
32520 (rs6000_promote_function_mode): New function.
32522 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32524 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
32525 -mpowerpc64 is active.
32527 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
32529 PR middle-end/64353
32530 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
32533 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
32535 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
32536 introduced in revision 219724.
32538 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32539 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32542 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
32543 destination is not a GP reg.
32544 (*movdi_aarch64): Likewise.
32546 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
32549 * config/rs6000/default64.h: Revert ISA change.
32551 2015-01-16 Richard Biener <rguenther@suse.de>
32553 PR middle-end/64614
32554 * tree-ssa-uninit.c: Include tree-cfg.h.
32555 (MAX_SWITCH_CASES): New define.
32556 (convert_control_dep_chain_into_preds): Handle switch statements.
32557 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
32558 (normalize_one_pred_1): Do not split bit-manipulations.
32561 2015-01-16 Richard Biener <rguenther@suse.de>
32563 PR tree-optimization/64568
32564 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
32565 complex load rewriting for TARGET_MEM_REFs.
32567 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
32569 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
32571 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
32574 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
32576 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
32577 (aarch64_lra_p): Remove.
32579 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
32582 * ipa-chkp.h (chkp_instrumentable_p): New.
32583 * ipa-chkp.c: Include tree-inline.h.
32584 (chkp_instrumentable_p): New.
32585 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
32586 Fix processing of not instrumentable functions.
32587 (chkp_versioning): Use chkp_instrumentable_p. Warn about
32588 not instrumentable functions.
32589 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
32590 chkp_instrumentable_p.
32591 * tree-inline.h (copy_forbidden): New.
32592 * tree-inline.c (copy_forbidden): Not static anymore.
32594 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32596 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
32599 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
32601 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
32602 type OP_OUT to OP_INOUT.
32604 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
32606 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
32607 (high x) y) to y if x and y have the same base.
32609 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
32611 * config/arm/cortex-a57.md: New.
32612 * config/aarch64/aarch64.md: Include it.
32613 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
32614 * config/aarch64/aarch64-tune.md: Regenerate.
32616 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
32619 * ccmp.c (expand_ccmp_next): New function.
32620 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
32621 and compare insn sequence.
32622 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
32623 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
32624 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
32625 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
32626 (*ccmp_ior): Changed to ccmp_ior<mode>.
32627 (cmp<mode>): New pattern.
32628 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
32630 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
32632 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
32634 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
32635 _mm256_bsrli_epi128): New.
32636 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
32638 2015-01-15 Jiong Wang <jiong.wang@arm.com>
32640 * expmed.c (store_bit_field_using_insv): Improve warning message.
32641 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
32643 2015-01-15 Jiong Wang <jiong.wang@arm.com>
32645 PR rtl-optimization/64011
32646 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
32647 there is partial overflow.
32649 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32651 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
32653 (nds32_expand_epilogue_v3pop): Likewise.
32654 * config/nds32/nds32.md (sibcall): Define this for sibling call
32656 (sibcall_register): Likewise.
32657 (sibcall_immediate): Likewise.
32658 (sibcall_value): Likewise.
32659 (sibcall_value_register): Likewise.
32660 (sibcall_value_immediate): Likewise.
32661 (sibcall_epilogue): Likewise.
32662 (epilogue): Pass false to indicate this is not a sibcall epilogue.
32663 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
32664 (nds32_expand_epilogue_v3pop): Likewise.
32666 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32668 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
32669 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
32670 (return_internal): New.
32671 (return): Define this named pattern.
32672 (simple_return): Define this named pattern.
32673 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
32674 pattern instead of unspec_volatile_func_return.
32675 (nds32_expand_epilogue_v3pop): Likewise.
32676 (nds32_can_use_return_insn): New function.
32678 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32680 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
32681 * config/nds32/nds32.md (pop25return): New.
32682 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
32683 pop25return pattern.
32685 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32687 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
32688 -mforbid-fp-as-gp, and -mex9 options.
32690 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32692 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
32693 remove -mgp-direct option.
32695 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
32697 * doc/invoke.texi (--param early-inlining-insns): Update default value.
32698 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
32700 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
32702 * ipa-inline.c (inline_small_functions): Work around hints
32705 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
32708 * doc/invoke.texi (Option Summary): Document new Nios II
32710 (Nios II Options): Likewise.
32711 * config/nios2/nios2.opt: Add -mgpopt= option support.
32712 Modify existing -mgpopt and -mno-gpopt options to be aliases.
32713 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
32714 * config/nios2/nios2.c (nios2_option_override): Adjust
32715 -mgpopt defaulting.
32716 (nios2_in_small_data_p): Return true for explicit small data
32717 sections even with -G0.
32718 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
32721 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
32724 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
32726 (inline_call): Fix removal of aliases.
32728 2015-01-15 Jakub Jelinek <jakub@redhat.com>
32730 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
32731 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
32732 * opts.c (common_handle_option): Add -fsanitize=vptr.
32733 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
32734 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
32735 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
32736 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
32737 (ubsan_expand_vptr_ifn): New prototype.
32738 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
32739 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
32740 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
32741 expand_LOOP_VECTORIZED): Make argument nameless, remove
32743 (expand_UBSAN_VPTR): New function.
32744 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
32746 (UBSAN_VPTR): New internal function.
32747 * sanopt.c (tree_map_traits): Renamed to ...
32748 (sanopt_tree_map_traits): ... this.
32749 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
32750 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
32751 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
32752 (maybe_optimize_ubsan_vptr_ifn): New function.
32753 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
32754 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
32756 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
32757 internal calls like pure functions for aliasing, even when they
32758 have other side-effects that prevent making them ECF_PURE.
32759 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
32760 (ubsan_expand_vptr_ifn): New function.
32762 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
32764 PR rtl-optimization/64110
32765 * stmt.c (parse_output_constraint): Process '^' and '$'.
32766 (parse_input_constraint): Ditto.
32767 * lra-constraints.c (process_alt_operands): Process the new
32769 * ira-costs.c (record_reg_classes): Process the new constraint
32771 * genoutput.c (indep_constraints): Add '^' and '$'.
32772 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
32773 * doc/md.texi: Add description of the new constraints.
32775 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
32776 Bernd Schmidt <bernds@codesourcery.com>
32777 Cesar Philippidis <cesar@codesourcery.com>
32778 James Norris <jnorris@codesourcery.com>
32779 Tom de Vries <tom@codesourcery.com>
32780 Ilmir Usmanov <i.usmanov@samsung.com>
32781 Dmitry Bocharnikov <dmitry.b@samsung.com>
32782 Evgeny Gavrin <e.gavrin@samsung.com>
32783 Jakub Jelinek <jakub@redhat.com>
32785 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
32786 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
32787 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
32788 New function types.
32789 * builtins.c: Include "gomp-constants.h".
32790 (expand_builtin_acc_on_device): New function.
32791 (expand_builtin, is_inexpensive_builtin): Handle
32792 BUILT_IN_ACC_ON_DEVICE.
32793 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
32795 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
32797 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
32798 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
32799 i386/intelmic-offload.h.
32800 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
32801 to libgomp and its dependencies.
32802 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
32803 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
32804 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
32805 * config/ia64/hpux.h (LIB_SPEC): Likewise.
32806 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
32807 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
32808 * doc/generic.texi: Update for OpenACC changes.
32809 * doc/gimple.texi: Likewise.
32810 * doc/invoke.texi: Likewise.
32811 * doc/sourcebuild.texi: Likewise.
32812 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
32813 GF_OMP_FOR_KIND_OACC_LOOP.
32814 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
32815 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
32816 GF_OMP_TARGET_KIND_OACC_UPDATE,
32817 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
32819 * gimple.c: Update comments for OpenACC changes.
32820 * gimple.def: Likewise.
32821 * gimple.h: Likewise.
32822 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
32823 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
32824 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
32825 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
32826 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
32828 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
32829 * gimplify.c: Include "gomp-constants.h".
32830 Update comments for OpenACC changes.
32831 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
32832 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
32833 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
32834 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
32835 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
32836 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
32837 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
32838 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
32839 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
32841 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
32842 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
32843 OMP_CLAUSE_SET_MAP_KIND.
32844 (gimplify_oacc_cache): New function.
32845 (gimplify_omp_for): Handle OACC_LOOP.
32846 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
32848 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
32849 OACC_EXIT_DATA, OACC_UPDATE.
32850 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
32851 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
32852 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
32853 (gimplify_body): Consider flag_openacc next to flag_openmp.
32854 * lto-streamer-out.c: Include "gomp-constants.h".
32855 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
32856 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
32857 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
32858 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
32859 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
32860 (BUILT_IN_ACC_ON_DEVICE): New builtins.
32861 * omp-low.c: Include "gomp-constants.h".
32862 Update comments for OpenACC changes.
32863 (struct omp_context): Add reduction_map, gwv_below, gwv_this
32865 (extract_omp_for_data, use_pointer_for_field, install_var_field)
32866 (new_omp_context, delete_omp_context, scan_sharing_clauses)
32867 (create_omp_child_function, scan_omp_for, scan_omp_target)
32868 (check_omp_nesting_restrictions, lower_reduction_clauses)
32869 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
32870 Update for OpenACC changes.
32871 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
32872 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
32873 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
32874 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
32875 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
32876 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
32878 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
32879 Handle GF_OMP_FOR_KIND_OACC_LOOP.
32880 (expand_omp_target, lower_omp_target): Handle
32881 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
32882 GF_OMP_TARGET_KIND_OACC_UPDATE,
32883 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
32884 GF_OMP_TARGET_KIND_OACC_DATA.
32885 (pass_expand_omp::execute, execute_lower_omp)
32886 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
32888 (offload_symbol_decl): New variable.
32889 (oacc_get_reduction_array_id, oacc_max_threads)
32890 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
32891 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
32892 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
32893 (oacc_gimple_assign, oacc_initialize_reduction_data)
32894 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
32896 (is_targetreg_ctx): Remove function.
32897 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
32898 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
32899 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
32900 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
32901 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
32902 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
32903 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
32904 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
32905 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
32906 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
32907 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
32908 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
32909 * tree-core.h: Update comments for OpenACC changes.
32910 (enum omp_clause_map_kind): Remove.
32911 (struct tree_omp_clause): Change type of map_kind member from enum
32912 omp_clause_map_kind to unsigned char.
32913 * tree-inline.c: Update comments for OpenACC changes.
32914 * tree-nested.c: Likewise. Include "gomp-constants.h".
32915 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
32916 (convert_tramp_reference_stmt, convert_gimple_call): Update for
32917 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
32918 OMP_CLAUSE_SET_MAP_KIND.
32919 * tree-pretty-print.c: Include "gomp-constants.h".
32920 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
32921 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
32922 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
32923 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
32924 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
32925 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
32926 instead of OMP_CLAUSE_MAP_*.
32927 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
32928 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
32929 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
32930 * tree-streamer-in.c: Include "gomp-constants.h".
32931 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
32932 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
32933 * tree-streamer-out.c: Include "gomp-constants.h".
32934 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
32936 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
32937 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
32938 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
32939 * tree.c (omp_clause_num_ops): Update accordingly.
32940 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
32942 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
32943 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
32944 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
32945 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
32946 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
32947 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
32948 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
32949 (OMP_CLAUSE_SET_MAP_KIND): New macro.
32950 * varpool.c (varpool_node::get_create): Consider flag_openacc next
32952 * config/i386/intelmic-offload.h: New file.
32953 * config/nvptx/offload.h: Likewise.
32955 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32957 * explow.h: Remove duplicate contents.
32958 * dojump.h: Likewise.
32960 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
32962 * arm.c (arm_xgene_tune): Add default initializer for instruction
32965 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
32969 * ipa.c (symbol_table::remove_unreachable_nodes):
32970 Do not put abstract origins into boundary.
32972 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
32974 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
32975 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
32977 2015-01-15 Steve Ellcey <sellcey@mips.com>
32979 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
32980 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
32981 builtins.def, and chkp-builtins.def.
32983 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
32985 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
32988 2015-01-15 Richard Biener <rguenther@suse.de>
32990 PR tree-optimization/61743
32991 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
32992 information on PHIs for some simple cases.
32994 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
32996 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
32998 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
32999 * config/arm/arm-cores.def (xgene1): New entry.
33000 * config/arm/arm-tables.opt: Regenerate.
33001 * config/arm/arm-tune.md: Regenerate.
33002 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
33004 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
33006 * tree-if-conv.c: Include hash-map.h.
33007 (aggressive_if_conv): New variable.
33008 (fold_build_cond_expr): Add simplification of non-zero condition.
33009 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
33010 destination block is not always executed.
33011 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
33012 than two predecessors if AGGRESSIVE_IF_CONV is true.
33013 (if_convertible_stmt_p): Fix commentary.
33014 (all_preds_critical_p): New function.
33015 (has_pred_critical_p): New function.
33016 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
33017 BB can have more than two predecessors and all incoming edges can be
33019 (predicate_bbs): Skip predication for loop exit block, use build2_loc
33020 to compute predicate for true edge.
33021 (find_phi_replacement_condition): Delete this function.
33022 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
33023 Allow interchange PHI arguments if EXTENDED is false.
33024 Change check that block containing reduction statement candidate
33025 is predecessor of phi-block since phi may have more than two arguments.
33026 (phi_args_hash_traits): New helper structure.
33027 (struct phi_args_hash_traits): New type.
33028 (phi_args_hash_traits::hash): New function.
33029 (phi_args_hash_traits::equal_keys): New function.
33030 (gen_phi_arg_condition): New function.
33031 (predicate_scalar_phi): Add handling of phi nodes with more than two
33032 arguments, delete COND and TRUE_BB arguments, insert body of
33033 find_phi_replacement_condition to predicate ordinary phi nodes.
33034 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
33035 delete call of find_phi_replacement_condition and invoke
33036 predicate_scalar_phi with two arguments.
33037 (insert_gimplified_predicates): Add assert that non-predicated block
33038 don't have statements to insert.
33039 (ifcvt_split_critical_edges): New function.
33040 (ifcvt_split_def_stmt): Likewise.
33041 (ifcvt_walk_pattern_tree): Likewise.
33042 (stmt_is_root_of_bool_pattern): Likewise.
33043 (ifcvt_repair_bool_pattern): Likewise.
33044 (ifcvt_local_dce): Likewise.
33045 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
33046 is copy of inner or outer loop force_vectorize field, invoke
33047 ifcvt_split_critical_edges, ifcvt_local_dce and
33048 ifcvt_repair_bool_pattern for aggressive if-conversion.
33050 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
33052 * config/aarch64/aarch64.md: Include xgene1.md.
33053 * config/aarch64/xgene1.md: New file.
33055 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
33057 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
33058 xgene1 (APM XGene-1) core definition.
33059 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
33060 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
33061 * doc/invoke.texi: Document -mcpu=xgene1.
33063 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33065 * dojump.h: New header file.
33066 * explow.h: Likewise.
33067 * expr.h: Remove includes.
33068 Move expmed.c prototypes to expmed.h.
33069 Move dojump.c prototypes to dojump.h.
33070 Move alias.c prototypes to alias.h.
33071 Move explow.c prototypes to explow.h.
33072 Move calls.c prototypes to calls.h.
33073 Move emit-rtl.c prototypes to emit-rtl.h.
33074 Move varasm.c prototypes to varasm.h.
33075 Move stmt.c prototypes to stmt.h.
33076 (saved_pending_stack_adjust): Move to dojump.h.
33077 (adjust_address): Move to explow.h.
33078 (adjust_address_nv): Move to emit-rtl.h.
33079 (adjust_bitfield_address): Likewise.
33080 (adjust_bitfield_address_size): Likewise.
33081 (adjust_bitfield_address_nv): Likewise.
33082 (adjust_automodify_address_nv): Likewise.
33083 * explow.c (expr_size): Move to expr.c.
33084 (int_expr_size): Likewise.
33085 (tree_expr_size): Likewise.
33086 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33087 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
33088 * genemit.c (main): Generate includes statistics.h, real.h,
33089 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
33091 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
33092 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
33093 explow.h, emit-rtl.h, stmt.h.
33094 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
33095 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
33096 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
33097 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
33098 emit-rtl.h, varasm.h, stmt.h.
33099 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
33100 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
33101 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
33102 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
33103 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
33104 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
33105 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
33106 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
33107 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
33108 tm.h tree.h varasm.h vec.h wide-int.h.
33109 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33110 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
33111 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
33112 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
33113 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
33114 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
33115 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
33116 * loop-iv.c: Likewise.
33117 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
33118 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
33119 statistics.h stmt.h tree.h varasm.h wide-int.h.
33120 * lra-constraints.c: Likewise.
33121 * lra-eliminations.c: Likewise.
33122 * lra-lives.c: Likewise.
33123 * lra-remat.c: Likewise.
33124 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33125 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
33126 statistics.h stmt.h tree.h varasm.h wide-int.h.
33127 * hw-doloop.c: Likewise.
33128 * ira-color.c: Likewise.
33129 * ira-emit.c: Likewise.
33130 * loop-doloop.c: Likewise.
33131 * loop-invariant.c: Likewise.
33132 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33133 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
33134 statistics.h stmt.h tree.h varasm.h wide-int.h.
33135 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
33136 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
33137 statistics.h stmt.h tree.h varasm.h wide-int.h.
33138 * combine-stack-adj.c: Likewise.
33141 * ifcvt.c: Likewise.
33142 * ira-costs.c: Likewise.
33143 * jump.c: Likewise.
33144 * lra-coalesce.c: Likewise.
33145 * lra-spills.c: Likewise.
33146 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33147 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
33148 stmt.h varasm.h wide-int.h.
33149 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33150 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
33152 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
33153 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
33154 statistics.h stmt.h varasm.h wide-int.h.
33155 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
33156 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
33157 varasm.h wide-int.h.
33158 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
33159 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
33160 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
33161 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
33162 statistics.h stmt.h.
33163 * config/tilepro/tilepro.c: Likewise.
33164 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
33165 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
33166 * config/pdp11/pdp11.c: Likewise.
33167 * config/xtensa/xtensa.c: Likewise.
33168 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
33169 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
33171 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33172 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
33173 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
33174 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33175 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
33176 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
33177 * rtl-chkp.c: Likewise.
33178 * tree-chkp-opt.c: Likewise.
33179 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
33180 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
33181 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
33182 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33183 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
33184 statistics.h stmt.h.
33185 * tree-vect-data-refs.c: Likewise.
33186 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
33187 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33188 rtl.h statistics.h stmt.h varasm.h.
33189 * internal-fn.c: Likewise.
33190 * ipa-icf-gimple.c: Likewise.
33191 * lto-section-out.c: Likewise.
33192 * tree-data-ref.c: Likewise.
33193 * tree-nested.c: Likewise.
33194 * tree-outof-ssa.c: Likewise.
33195 * tree-predcom.c: Likewise.
33196 * tree-pretty-print.c: Likewise.
33197 * tree-scalar-evolution.c: Likewise.
33198 * tree-ssa-strlen.c: Likewise.
33199 * tree-vect-loop.c: Likewise.
33200 * tree-vect-patterns.c: Likewise.
33201 * tree-vect-slp.c: Likewise.
33202 * tree-vect-stmts.c: Likewise.
33203 * tsan.c: Likewise.
33204 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33205 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
33207 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
33208 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33209 statistics.h stmt.h varasm.h.
33210 * loop-unroll.c: Likewise.
33211 * ubsan.c: Likewise.
33212 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
33213 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
33215 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33216 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
33217 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
33218 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
33219 statistics.h stmt.h.
33220 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
33221 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
33222 statistics.h stmt.h varasm.h.
33223 * gimple-match-head.c: Likewise.
33224 * lto-cgraph.c: Likewise.
33225 * lto-section-in.c: Likewise.
33226 * lto-streamer-in.c: Likewise.
33227 * lto-streamer-out.c: Likewise.
33228 * tree-affine.c: Likewise.
33229 * tree-cfg.c: Likewise.
33230 * tree-cfgcleanup.c: Likewise.
33231 * tree-if-conv.c: Likewise.
33232 * tree-into-ssa.c: Likewise.
33233 * tree-ssa-alias.c: Likewise.
33234 * tree-ssa-copyrename.c: Likewise.
33235 * tree-ssa-dse.c: Likewise.
33236 * tree-ssa-forwprop.c: Likewise.
33237 * tree-ssa-live.c: Likewise.
33238 * tree-ssa-math-opts.c: Likewise.
33239 * tree-ssa-pre.c: Likewise.
33240 * tree-ssa-sccvn.c: Likewise.
33241 * tree-tailcall.c: Likewise.
33242 * tree-vect-generic.c: Likewise.
33243 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33244 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
33245 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33246 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
33247 * varasm.c: Likewise.
33248 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33249 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
33251 * init-regs.c: Likewise.
33253 * omp-low.c: Likewise.
33254 * stack-ptr-mod.c: Likewise.
33255 * tree-ssa-reassoc.c: Likewise.
33256 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33257 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
33259 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33260 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
33261 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33262 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
33263 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33264 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
33265 * tree-ssa-phiopt.c: Likewise.
33266 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33267 fixed-value.h hashtab.h real.h statistics.h stmt.h.
33268 * config/fr30/fr30.c: Likewise.
33269 * config/frv/frv.c: Likewise.
33270 * expr.c: Likewise.
33271 * final.c: Likewise.
33272 * optabs.c: Likewise.
33273 * passes.c: Likewise.
33274 * simplify-rtx.c: Likewise.
33275 * stmt.c: Likewise.
33276 * toplev.c: Likewise.
33277 * var-tracking.c: Likewise.
33278 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33279 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
33280 * lower-subreg.c: Likewise.
33281 * postreload-gcse.c: Likewise.
33283 * reginfo.c: Likewise.
33284 * store-motion.c: Likewise.
33285 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33286 fixed-value.h hashtab.h real.h stmt.h varasm.h.
33287 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33288 fixed-value.h hashtab.h statistics.h stmt.h.
33289 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33290 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
33291 * except.c: Likewise.
33292 * explow.c: Likewise.
33293 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33294 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
33296 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33297 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
33298 * tree-ssa-structalias.c: Likewise.
33299 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33300 fixed-value.h insn-config.h real.h statistics.h.
33301 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33302 fixed-value.h insn-config.h real.h statistics.h stmt.h.
33303 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33304 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
33305 * cfgbuild.c: Likewise.
33306 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33307 fixed-value.h real.h rtl.h statistics.h stmt.h.
33308 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33309 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
33310 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33311 fixed-value.h real.h statistics.h stmt.h.
33312 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33313 fixed-value.h real.h statistics.h stmt.h varasm.h.
33314 * cprop.c: Likewise.
33315 * modulo-sched.c: Likewise.
33316 * postreload.c: Likewise.
33317 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
33318 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
33319 statistics.h stmt.h varasm.h.
33320 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
33321 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33322 rtl.h statistics.h stmt.h varasm.h.
33323 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
33324 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
33326 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
33327 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
33329 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
33330 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
33332 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
33333 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
33334 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
33335 function.h real.h statistics.h stmt.h varasm.h.
33336 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
33337 insn-config.h real.h statistics.h stmt.h.
33338 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
33339 statistics.h stmt.h.
33340 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
33341 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
33342 statistics.h stmt.h varasm.h.
33343 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
33344 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
33345 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
33346 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
33347 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
33348 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
33349 statistics.h stmt.h varasm.h.
33350 * ipa-polymorphic-call.c: Likewise.
33351 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
33352 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33353 statistics.h stmt.h.
33354 * config/c6x/c6x.c: Likewise.
33355 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
33356 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33357 statistics.h stmt.h varasm.h.
33358 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
33359 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
33361 * ipa-split.c: Likewise.
33362 * tree-eh.c: Likewise.
33363 * tree-ssa-dce.c: Likewise.
33364 * tree-ssa-loop-niter.c: Likewise.
33365 * tree-vrp.c: Likewise.
33366 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
33367 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
33369 * config/nds32/nds32-fp-as-gp.c: Likewise.
33370 * config/nds32/nds32-intrinsic.c: Likewise.
33371 * config/nds32/nds32-isr.c: Likewise.
33372 * config/nds32/nds32-md-auxiliary.c: Likewise.
33373 * config/nds32/nds32-memory-manipulation.c: Likewise.
33374 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
33375 * config/nds32/nds32-predicates.c: Likewise.
33376 * config/nds32/nds32.c: Likewise.
33377 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
33378 fixed-value.h hashtab.h real.h statistics.h.
33379 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
33380 fixed-value.h hashtab.h real.h statistics.h stmt.h.
33381 * config/arm/arm.c: Likewise.
33382 * config/avr/avr.c: Likewise.
33383 * config/bfin/bfin.c: Likewise.
33384 * config/h8300/h8300.c: Likewise.
33385 * config/i386/i386.c: Likewise.
33386 * config/ia64/ia64.c: Likewise.
33387 * config/iq2000/iq2000.c: Likewise.
33388 * config/m32c/m32c.c: Likewise.
33389 * config/m32r/m32r.c: Likewise.
33390 * config/m68k/m68k.c: Likewise.
33391 * config/mcore/mcore.c: Likewise.
33392 * config/mep/mep.c: Likewise.
33393 * config/mips/mips.c: Likewise.
33394 * config/mn10300/mn10300.c: Likewise.
33395 * config/moxie/moxie.c: Likewise.
33396 * config/pa/pa.c: Likewise.
33397 * config/rl78/rl78.c: Likewise.
33398 * config/rx/rx.c: Likewise.
33399 * config/s390/s390.c: Likewise.
33400 * config/sh/sh.c: Likewise.
33401 * config/sparc/sparc.c: Likewise.
33402 * config/spu/spu.c: Likewise.
33403 * config/stormy16/stormy16.c: Likewise.
33404 * config/v850/v850.c: Likewise.
33405 * config/vax/vax.c: Likewise.
33406 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
33407 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
33408 * config/msp430/msp430.c: Likewise.
33409 * predict.c: Likewise.
33410 * value-prof.c: Likewise.
33411 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
33412 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
33413 * config/microblaze/microblaze.c: Likewise.
33414 * config/nios2/nios2.c: Likewise.
33415 * config/rs6000/rs6000.c: Likewise.
33416 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
33417 insn-config.h real.h rtl.h statistics.h stmt.h.
33418 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
33419 insn-config.h real.h statistics.h stmt.h.
33420 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
33421 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
33422 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
33423 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
33424 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
33425 fixed-value.h real.h statistics.h stmt.h.
33426 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
33427 fixed-value.h statistics.h stmt.h.
33428 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
33431 2015-01-15 Jakub Jelinek <jakub@redhat.com>
33433 * gengtype.c (create_user_defined_type): Workaround
33434 -Wmaybe-uninitialized false positives.
33435 * cse.c (fold_rtx): Likewise.
33436 * loop-invariant.c (gain_for_invariant): Likewise.
33438 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
33440 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
33441 set the memory attributes in all cases but clear MEM_EXPR if need be.
33443 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
33445 PR tree-optimization/64434
33446 * cfgexpand.c (reorder_operands): New function.
33447 (expand_gimple_basic_block): Insert call of reorder_operands if
33450 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
33452 * config/mips/micromips.md (*swp): Remove explicit parallel.
33453 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
33454 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
33455 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
33456 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
33457 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
33458 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
33459 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
33460 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
33461 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
33462 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
33463 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
33464 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
33465 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
33466 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
33467 (mips_wrdsp): Likewise.
33468 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
33470 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
33471 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
33472 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
33473 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
33474 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
33475 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
33476 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
33477 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
33478 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
33480 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
33482 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
33483 (mips_print_operand): Support 'y' to print exact log2 in decimal
33485 * config/mips/mips.h (ISA_HAS_LSA): New define.
33486 (ISA_HAS_DLSA): Likewise.
33487 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
33488 * config/mips/predicates.md (const_immlsa_operand): New predicate.
33490 2015-01-15 Martin Liska <mliska@suse.cz>
33493 * optc-save-gen.awk: Add support for array types.
33495 2015-01-15 Richard Biener <rguenther@suse.de>
33497 PR middle-end/64365
33498 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
33499 for MEM_REF access functions with the same base can never partially
33502 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
33504 * common.opt: New option -fstack-protector-explicit.
33505 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
33506 (stack_protect_decl_phase): Handle stack_protect attribute for
33507 explicit stack protection requests.
33508 (expand_used_vars): Similarly.
33509 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
33510 * doc/extend.texi: Add documentation for "stack_protect" attribute.
33511 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
33513 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
33516 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
33518 (sh_extending_set_of_reg): New struct.
33519 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
33520 sh_remove_reg_dead_or_unused_notes): New Declarations.
33521 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
33522 sh_find_extending_set_of_reg, sh_split_tst_subregs,
33523 sh_extending_set_of_reg::use_as_extended_reg): New functions.
33524 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
33525 convert to insn_and_split and use new function sh_split_tst_subregs.
33527 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
33529 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
33531 (Optimization Options): Move -fuse-ld documentation to...
33532 (Link Options): ...here.
33534 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
33536 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
33538 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
33539 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
33540 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
33541 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
33542 instead of ZR for the memory operand of LL/SC.
33543 (compare_and_swap_12, sync_add<mode>): Likewise.
33544 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
33545 (sync_new_<optab>_12, sync_nand_12): Likewise.
33546 (sync_old_nand_12, sync_new_nand_12): Likewise.
33547 (sync_sub<mode>, sync_old_add<mode>): Likewise.
33548 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
33549 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
33550 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
33551 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
33552 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
33553 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
33554 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
33555 * doc/md.texi (ZC): Update description.
33557 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
33559 * builtins.c (expand_builtin_atomic_exchange): Remove error when
33560 memory model is CONSUME.
33561 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
33562 expand_builtin_atomic_store): Change invalid memory model errors to
33564 (expand_builtin_atomic_clear): Change invalid model errors to warnings
33565 and issue warning for CONSUME.
33567 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
33569 * lto-cgraph: Update function comments for
33570 lto_symtab_encoder_encode_*.
33572 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
33574 * Makefile.in (site.exp): Do not set ENABLE_LTO.
33576 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
33578 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
33579 * lto-cgraph.c (select_what_to_stream): Remove argument, use
33580 lto_stream_offload_p instead.
33581 * lto-streamer.h (select_what_to_stream): Remove argument.
33582 * passes.c (ipa_write_summaries): Likewise.
33583 * tree-pass.h (ipa_write_summaries): Likewise.
33585 2015-01-14 Richard Biener <rguenther@suse.de>
33587 PR tree-optimization/59354
33588 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
33589 groups larger than the slp group size as having gaps.
33591 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
33593 PR middle-end/59448
33594 * builtins.c (get_memmodel): Promote consume to acquire always.
33596 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
33599 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
33602 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
33605 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
33607 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
33608 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
33609 AVX512VBMI, as it implies AVX512BW.
33611 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
33614 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
33615 (vec_unpacks_hi_v16sf): Ditto.
33617 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33619 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
33622 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33624 * doc/invoke.texi (mapcs): Mention deprecation.
33625 (mapcs-frame): Likewise.
33627 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
33630 * config/arm/arm.c (callee_saved_reg_p): Define.
33631 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
33632 register is callee saved instead of !call_used_regs[reg].
33633 (thumb1_compute_save_reg_mask): Likewise.
33635 2015-01-14 Hale Wang <hale.wang@arm.com>
33637 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
33640 2015-01-14 Richard Biener <rguenther@suse.de>
33643 * tree-inline.c (insert_debug_decl_map): Check destination
33644 function MAY_HAVE_DEBUG_STMTS.
33645 (insert_init_debug_bind): Likewise.
33646 (insert_init_stmt): Remove redundant check.
33647 (remap_gimple_stmt): Drop debug stmts if the destination
33648 function has var-tracking assignments disabled.
33650 2015-01-14 Martin Liska <mliska@suse.cz>
33652 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
33653 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
33655 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33658 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
33659 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
33661 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
33663 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
33664 level from an ARCH; do not inject the default.
33665 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
33666 MIPS_ISA_LEVEL_SPEC.
33667 (MIPS_ISA_NAN2008_SPEC): Update comment.
33668 (BASE_DRIVER_SELF_SPECS): Likewise.
33669 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
33670 MIPS_DEFAULT_ISA_LEVEL_SPEC.
33671 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
33672 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
33673 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
33675 2015-01-14 Richard Biener <rguenther@suse.de>
33677 PR tree-optimization/64493
33678 PR tree-optimization/64495
33679 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
33680 assign the proper vectorized PHI to the inner loop exit PHIs.
33682 2015-01-14 Joey Ye <joey.ye@arm.com>
33684 * config/arm/arm.c (arm_compute_save_reg_mask):
33685 Do not save lr in case of tail call.
33686 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
33688 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
33690 * tree-vrp.c (check_array_ref): Emit more warnings
33691 for warn_array_bounds >= 2.
33692 * common.opt: New option -Warray-bounds=.
33693 * doc/invoke.texi: Document -Warray-bounds=.
33695 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
33697 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
33698 (mforbid-fp-as-gp): Remove.
33700 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
33701 (nds32_symbol_load_store_p): Remove.
33702 (nds32_fp_as_gp_check_available): Clean up implementation.
33703 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
33705 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
33706 fp-as-gp and ex9 cases.
33708 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
33710 * tree-profile.c (init_ic_make_global_vars): Drop workaround
33711 for bintuils bug 14342.
33712 (init_ic_make_global_vars): Likewise.
33713 (gimple_init_edge_profiler): Likewise.
33714 (gimple_gen_ic_func_profiler): Likewise.
33716 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33718 * ipa-inline.c (inline_small_functions): Swap the operands in
33721 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
33724 * ipa-inline-analysis.c (node_growth_cache): Remove.
33725 (initialize_growth_caches): Do not initialize it.
33726 (free_growth_caches): Do not free it.
33727 (do_estimate_growth): Rename to ...
33728 (estimate_growth): ... this one; drop growth cache code.
33729 (growth_likely_positive): Always go the heuristics way.
33730 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
33731 (reset_edge_caches): Do not reset node growth.
33732 (heap_edge_removal_hook): Do not maintain cache.
33733 (inline_small_functions): Likewise; strenghten sanity check.
33734 (ipa_inline): Do not maintain caches.
33735 * ipa-inline.h (node_growth_cache): Remove.
33736 (do_estimate_growth): Remove to ...
33737 (estimate_growth): this one; remove inline version.
33738 (reset_node_growth_cache): Remove.
33740 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
33743 * ipa-inline.c (inline_small_functions): Update callee keys after
33744 resolving speculation
33745 (inline_small_functions): Always check monotonicity of the queue.
33747 2015-01-13 Marek Polacek <polacek@redhat.com>
33749 PR middle-end/64391
33750 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
33752 2015-01-13 Jakub Jelinek <jakub@redhat.com>
33754 PR rtl-optimization/64286
33755 * ree.c (combine_reaching_defs): Move part of comment earlier,
33756 remove !SCALAR_INT_MODE_P check.
33757 (add_removable_extension): Don't add vector mode
33758 extensions if all uses of the source register aren't the same
33761 2015-01-13 Renlin Li <renlin.li@arm.com>
33763 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
33764 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
33766 2015-01-13 Martin Liska <mliska@suse.cz>
33768 * ipa-icf.c (sem_function::equals_private): Call new functions
33769 cl_target_option_print_diff and cl_optimization_print_diff.
33770 * optc-save-gen.awk (cl_target_option_print_diff): New function.
33771 (cl_optimization_print_diff): Likewise.
33772 * opth-gen.awk: Likewise.
33774 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
33776 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
33777 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
33778 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
33779 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
33780 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
33781 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
33783 2015-01-13 Andrew Pinski <apinski@cavium.com>
33785 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
33786 instead of src mode.
33788 2015-01-13 Richard Biener <rguenther@suse.de>
33791 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
33794 2015-01-13 Andrew Pinski <apinski@cavium.com>
33796 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
33798 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
33800 2015-01-13 Jakub Jelinek <jakub@redhat.com>
33802 PR middle-end/63974
33803 * cfgexpand.c (expand_computed_goto): Don't call
33804 convert_memory_address here.
33806 2015-01-13 Richard Biener <rguenther@suse.de>
33808 PR tree-optimization/64406
33809 * tree-loop-distibution.c (pass_loop_distribution::execute):
33810 Reset the SCEV hashtable if we distributed anything.
33812 2015-01-13 Richard Biener <rguenther@suse.de>
33814 PR tree-optimization/64404
33815 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
33816 SLP types for CSEd loads.
33818 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
33820 PR tree-optimization/64436
33821 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
33822 merge of two symbolic numbers for a bitwise OR to ...
33823 (perform_symbolic_merge): This. Also fix computation of the range and
33824 end of the symbolic number corresponding to the result of a bitwise OR.
33826 2015-01-13 Richard Biener <rguenther@suse.de>
33828 PR tree-optimization/64568
33829 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
33830 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
33832 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33834 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
33835 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
33837 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33839 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
33840 target-specific symbol_ref flag.
33841 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
33842 resides in rodata section.
33843 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
33844 (nds32_encode_section_info): New function.
33846 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33848 * config/nds32/nds32.md (call): Use pseudo instruction bal which
33849 clobbers TA_REGNUM if large code model is specified.
33850 (call_register): Likewise.
33851 (call_immediate): Likewise.
33852 (call_value): Likewise.
33853 (call_value_register): Likewise.
33854 (call_value_immediate): Likewise.
33856 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33858 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
33859 (TARGET_CMODEL_MEDIUM): New macro.
33860 (TARGET_CMODEL_LARGE): New macro.
33861 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
33862 code model setting in assembly code.
33864 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33866 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
33867 Remove MASK_GP_DIRECT flag.
33868 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
33869 one of the multilib default options.
33870 * config/nds32/nds32.opt (mgp-direct): Remove.
33871 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
33872 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
33874 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33876 * config/nds32/nds32.opt (mcmodel): Add new option.
33877 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
33878 to describe code model.
33880 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
33883 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
33885 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
33887 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
33888 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33889 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
33890 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
33891 __builtin_sh_set_fpscr.
33893 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
33895 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
33896 after a funtion name just to indicate it is a function.
33897 ([-fsanitize-undefined-trap-on-error]): Likewise.
33898 ([-fdbg-cnt=]): Likewise.
33899 ([-mmemcpy]): Likewise.
33900 ([-mflush-func]): Likewise.
33901 ([-msynci]): Likewise.
33903 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
33905 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
33908 2015-01-12 Jakub Jelinek <jakub@redhat.com>
33910 PR tree-optimization/64563
33911 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
33912 instead of != VR_VARYING.
33915 * config/i386/i386.c (ix86_expand_prologue): Add
33916 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
33918 PR tree-optimization/64454
33919 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
33920 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
33921 for signed or [0, op1 - 1] for unsigned modulo.
33922 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
33923 even if op1 does not satisfy integer_pow2p.
33926 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
33928 2015-01-12 Jeff Law <law@redhat.com>
33931 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
33932 (trunchiqi2, truncsihi2): Similarly.
33934 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
33935 rather than calling F.
33937 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
33939 * tsan.c (instrument_expr): Use force_gimple_operand.
33940 Use may_be_nonaddressable_p instead of is_gimple_addressable.
33942 2015-01-12 Richard Biener <rguenther@suse.de>
33944 PR tree-optimization/64530
33945 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
33948 2015-01-12 Richard Biener <rguenther@suse.de>
33950 PR middle-end/64357
33951 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
33954 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33956 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
33957 Cortex-A17 tuning parameters.
33958 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
33960 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33962 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
33963 * config/arm/arm.c (arm_macro_fusion_p): New function.
33964 (arm_macro_fusion_pair_p): Likewise.
33965 (TARGET_SCHED_MACRO_FUSION_P): Define.
33966 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
33967 (ARM_FUSE_NOTHING): Likewise.
33968 (ARM_FUSE_MOVW_MOVT): Likewise.
33969 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
33970 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
33971 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
33972 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
33973 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
33974 arm_cortex_a5_tune): Specify fuseable_ops value.
33976 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
33979 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
33980 test for PIE with copy reloc.
33981 * configure: Regenerated.
33983 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33985 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
33987 (arm_tls_descseq_addr): Likewise.
33988 (arm_gen_movmemqi): Likewise.
33989 (arm_expand_epilogue_apcs_frame): Likewise.
33990 (arm_expand_epilogue): Likewise.
33991 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
33994 2015-01-12 Martin Liska <mliska@suse.cz>
33997 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
33998 volatility for correct operands.
34000 2015-01-12 Martin Liska <mliska@suse.cz>
34002 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
34003 indication that a function is not leaf.
34004 (sem_function::compare_polymorphic_p): Likewise.
34006 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34008 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
34009 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
34010 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
34011 fold-const.h, tree-check.h.
34013 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
34017 * ipa-inline.c (compute_uninlined_call_time,
34018 compute_inlined_call_time): Use counts for extra precision when
34020 (big_speedup_p): Fix formating.
34021 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
34022 (relative_time_benefit): Remove.
34023 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
34024 merge guessed and read profile paths.
34025 (inline_small_functions): Count only !optimize_size functions into
34026 initial size; be more lax about sanity check when profile is used;
34027 be sure to update inlined function profile when profile is read.
34029 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
34032 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
34033 cost when edge becomes direct.
34034 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
34035 is resolved or when introducing new speculation.
34037 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
34041 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
34042 '||' to fix typo issue.
34044 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
34045 accept and return NULL.
34047 2015-01-12 Martin Liska <mliska@suse.cz>
34049 * cgraph.c (cgraph_edge::remove_callee): Move function to header
34050 file for being inlined.
34051 (cgraph_set_edge_callee): Delete.
34052 (cgraph_edge::redirect_callee): Move function to header file
34054 (cgraph_edge::make_direct): Use new function.
34055 (cgraph_edge::dump_edge_flags): New function created from
34056 static dump_edge_flags function.
34057 (cgraph_node::dump): Use new function.
34058 (cgraph_edge::verify_count_and_frequency): New function created
34059 from verify_edge_count_and_frequency.
34060 (cgraph_edge::verify_corresponds_to_fndecl): New function created
34061 from verify_edge_corresponds_to_fndecl.
34062 (verify_edge_corresponds_to_fndecl): Delete.
34063 (cgraph_node::verify_node): Use new function.
34064 * cgraph.h (cgraph_edge::set_callee): New function.
34065 (cgraph_edge::dump_edge_flags): Likewise.
34066 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
34068 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
34070 * ipa-utils.c (estimate_function_body_sizes): Do not
34071 free node params when called late with early=true.
34073 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
34075 * doc/md.texi (Instruction Patterns): Rewrite text for
34077 (Example): Likewise.
34079 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
34081 * doc/invoke.texi (Option Summary): Break long lines.
34082 [(-fdiagnostics-color)]: Put long literal in @smallexample
34084 [(-fsanitize-recover)]: Likewise.
34085 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
34086 [(-ffast-math)]: Likewise.
34087 [(--param max-inline-insns-recursive)]: Likewise.
34088 [(--param max-inline-recursive-depth)]: Likewise.
34089 [(-mno-text-section-literals)]: Likewise.
34091 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
34093 * doc/install.texi: Update for libgomp being renamed from "GNU
34094 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
34096 * doc/sourcebuild.texi: Likewise.
34098 2015-01-10 Anthony Green <green@moxielogic.com>
34100 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
34101 mul.x availability for moxiebox configuration.
34103 2015-01-09 Anthony Green <green@moxielogic.com>
34105 * config/moxie/moxie.md: Tabify assembly output.
34107 2015-01-09 Anthony Green <green@moxielogic.com>
34109 * config/moxie/moxie.md (CC_REG): Correct register definition.
34111 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
34113 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
34114 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
34117 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
34119 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
34121 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
34122 Jakub Jelinek <jakub@redhat.com>
34124 PR middle-end/64412
34125 * lto-streamer.h (lto_stream_offload_p): New declaration.
34126 * lto-streamer.c (lto_stream_offload_p): New variable.
34127 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
34128 at the same time as section_name_prefix.
34129 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
34130 if lto_stream_offload_p.
34131 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
34132 stream TREE_TARGET_OPTION if lto_stream_offload_p.
34133 (write_ts_function_decl_tree_pointers): Don't
34134 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
34135 * tree-streamer-in.c (unpack_value_fields): Don't stream
34136 TREE_TARGET_OPTION in if ACCEL_COMPILER.
34137 (lto_input_ts_function_decl_tree_pointers): Don't stream
34138 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
34139 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
34140 instead of section_name_prefix string comparisons.
34142 2015-01-09 Jakub Jelinek <jakub@redhat.com>
34144 PR rtl-optimization/64536
34145 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
34148 2015-01-09 Michael Collison <michael.collison@linaro.org>
34150 PR tree-optimization/64322
34151 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
34152 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
34154 2015-01-09 Tom de Vries <tom@codesourcery.com>
34156 PR rtl-optimization/64539
34157 * regcprop.c (kill_clobbered_values): Factor out of ...
34158 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
34159 instead of note_stores with kill_clobbered_value.
34161 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
34163 * ginclude/unwind-arm-common.h: Revert previous commit.
34165 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
34167 * config.gcc (arm*-*-freebsd*): New configuration.
34168 * config/arm/freebsd.h: New file.
34169 * config.host: Add extra components for arm*-*-freebsd*.
34170 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
34171 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
34173 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34175 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
34177 * config/rs6000/t-rtems: Add e6500 multilibs.
34179 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34181 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
34184 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34186 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
34187 MULTILIB_EXCEPTIONS.
34189 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34191 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
34192 MULTILIB_EXCEPTIONS.
34194 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34196 * config/arm/t-rtems-eabi: Rename to...
34197 * config/arm/t-rtems: ...this.
34198 * config/arm/rtems-eabi.h: Rename to...
34199 * config/arm/rtems.h: ...this.
34200 * config.gcc (arm*-*-rtems*): Reflect changes above.
34202 2015-01-09 Richard Biener <rguenther@suse.de>
34204 PR tree-optimization/64410
34205 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
34207 (execute_update_addresses_taken): Deal with that.
34208 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
34209 loads/stores for complex variables.
34211 2015-01-09 Martin Liska <mliska@suse.cz>
34213 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
34215 (func_checker::compare_memory_operand): New function.
34216 (func_checker::compare_operand): Split case to newly
34218 (func_checker::compare_cst_or_decl): New function.
34219 (func_checker::compare_gimple_call): Identify
34221 (func_checker::compare_gimple_assign): Likewise.
34222 * ipa-icf-gimple.h: New function.
34224 2015-01-09 Martin Liska <mliska@suse.cz>
34227 * sreal.c (sreal::dump): Change unsigned format to signed for
34229 (sreal::to_double): Replace exp2 with scalbln.
34231 2015-01-09 Martin Liska <mliska@suse.cz>
34233 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
34234 * ipa-icf.c (sem_function::equals_private): Add support for target and
34235 (sem_item_optimizer::merge_classes): Remove redundant function
34236 optimization flags comparison.
34237 * tree.h (target_opts_for_fn): New function.
34239 2015-01-09 Tom de Vries <tom@codesourcery.com>
34241 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
34243 2015-01-09 Kito Cheng <kito@0xlab.org>
34245 PR rtl-optimization/64348
34246 * lra-constraints.c (split_reg): Fix caller-save store/restore
34247 instruction generation.
34249 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
34251 PR gcov-profile/61790
34252 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
34253 long long. Fallback to int64_t if host doesn't have long long and
34254 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
34256 2015-01-08 Jakub Jelinek <jakub@redhat.com>
34258 PR tree-optimization/63989
34259 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
34260 from 1000 to 10000.
34261 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
34262 (get_stridx): If we don't have a record for certain SSA_NAME,
34263 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
34264 constant offset, call get_stridx_plus_constant.
34265 (get_stridx_plus_constant): New function.
34266 (zero_length_string): Don't use get_stridx here.
34269 PR middle-end/64388
34270 * dse.c (struct insn_info): Mention frame_read set also
34271 before reload for tail calls on some targets.
34272 (scan_insn): Revert 2014-12-22 change. Set frame_read
34273 also before reload for tail calls if
34274 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
34275 instead of add_non_frame_wild_read for non-const/memset
34276 tail calls after reload.
34278 2015-01-08 Jason Merrill <jason@redhat.com>
34280 * ubsan.c (do_ubsan_in_current_function): New.
34281 (pass_ubsan::gate): Use it.
34282 * ubsan.h: Declare it.
34283 * convert.c (convert_to_integer): Use it.
34285 2015-01-08 Jakub Jelinek <jakub@redhat.com>
34288 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
34289 compare_code when it is unconditionally overwritten afterwards.
34290 Use ix86_reverse_condition instead of reverse_condition. Don't
34291 change code if *reverse_condition* returned UNKNOWN and don't
34292 swap ct/cf and negate diff in that case.
34294 2015-01-08 Mike Stump <mikestump@comcast.net>
34296 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
34297 (pass_tsan_O0::gate): Likewise.
34298 * extend.texi (Function Attributes): Add no_sanitize_thread
34301 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
34303 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
34304 for registering builtins.
34305 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
34306 add -fopenmp to the argv_obstack used when invoking
34307 compile_for_target.
34309 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
34310 add "-m32" or "-m64" to argv_obstack.
34311 (generate_host_descr_file): Likewise, when invoking host_compiler.
34312 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
34315 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
34317 * config/sh/sh-mem.cc: Use constant as second operand when emitting
34320 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
34323 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
34324 constant load if constant operand fits into I08.
34326 2015-01-08 Jakub Jelinek <jakub@redhat.com>
34329 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
34330 and TREE_THIS_VOLATILE for MEM_REFs.
34331 (build5_stat): Fix up initialization of TREE_READONLY and
34332 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
34334 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
34337 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
34338 of r for the second alternative of the destination operand.
34340 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
34343 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
34345 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
34347 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
34349 ([-fivar-visibility], [-fvisibility]): Likewise.
34351 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
34353 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
34354 the file where @code, @command, etc is more appropriate.
34356 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
34358 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
34359 of -mrecip= documentation.
34361 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34364 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
34365 correct reload handler if -m32 -mpowerpc64 is used.
34367 2015-01-06 Tom de Vries <tom@codesourcery.com>
34369 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
34371 2015-01-08 Christian Bruel <christian.bruel@st.com>
34374 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
34376 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
34378 PR tree-optimization/63259
34379 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
34380 if optab exists for 16bit byteswap.
34382 2015-01-06 Jakub Jelinek <jakub@redhat.com>
34384 * opts.c (common_handle_option): Add support for
34385 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
34386 * doc/invoke.texi: Document -fno-sanitize=all,
34387 -f{,no-}sanitize-recover=all. Document that
34388 -fsanitize=float-cast-overflow is not enabled
34389 by -fsanitize=undefined. Fix up documentation
34390 of -f{,no-}sanitize-recover.
34392 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
34394 * config.gcc: Add Visium support.
34395 * configure.ac: Likewise.
34396 * configure: Regenerate.
34397 * doc/extend.texi (interrupt attribute): Add Visium.
34398 * doc/invoke.texi: Document Visium options.
34399 * doc/install.texi: Document Visium target.
34400 * doc/md.texi: Document Visium constraints.
34401 * common/config/visium: New directory.
34402 * config/visium: Likewise.
34404 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
34406 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
34407 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
34409 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
34411 * combine.c (combine_validate_cost): Do not count the cost of a
34412 split I2 twice. Do not display it twice in the dump, either.
34414 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
34416 Revert parts of r219199.
34417 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
34419 ([-Wtraditional]): Restore markup on <limits.h>.
34421 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
34424 * doc/invoke.texi: Document -Wsuggest-override.
34426 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
34428 PR rtl-optimization/64287
34429 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
34430 (process_options): Disable flag_ipa_ra if profiling.
34432 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
34434 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
34436 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
34438 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
34439 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
34440 put under #if TARGET_LOOPS guard.
34442 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
34444 * config/i386/i386.c (output_387_binary_op): Use std::swap.
34446 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
34448 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
34449 * rtl.h (refers_to_regno_p): Add overload.
34451 * bt-load.c: Likewise.
34452 * combine.c: Likewise.
34453 * df-scan.c: Likewise.
34454 * sched-deps.c: Likewise.
34455 * config/s390/s390.c: Likewise.
34456 * config/m32r/m32r.c: Likewise.
34457 * config/rs6000/spe.md: Likewise.
34458 * config/rs6000/rs6000.c: Likewise.
34459 * config/pa/pa.c: Likewise.
34460 * config/stormy16/stormy16.c: Likewise.
34461 * config/cris/cris.c: Likewise.
34462 * config/arc/arc.md: Likewise.
34463 * config/arc/arc.c: Likewise.
34464 * config/sh/sh.md: Likewise.
34465 * config/sh/sh.c: Likewise.
34466 * config/frv/frv.c: Likewise.
34468 2015-01-05 Jakub Jelinek <jakub@redhat.com>
34471 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
34472 call as cleanup of the whole body.
34473 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
34474 * tsan.c (replace_func_exit): New function.
34475 (instrument_func_exit): Moved earlier.
34476 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
34477 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
34479 (tsan_pass): Don't call instrument_func_exit.
34480 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
34481 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
34485 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
34486 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
34487 it to libubsan handler instead of EXPR. Fold comparisons earlier,
34488 if the result is integer_zerop, return NULL_TREE.
34489 * convert.c (convert_to_integer): Pass expr as ARG.
34491 PR tree-optimization/64465
34492 * tree-inline.c (redirect_all_calls): During inlining
34493 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
34494 changed the stmt to a non-throwing call.
34496 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
34498 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
34499 etc markup throughout the file.
34501 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
34503 Enable experimental TSAN support for Ada.
34504 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
34506 2015-01-05 Jakub Jelinek <jakub@redhat.com>
34508 PR tree-optimization/64494
34509 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
34510 clear SSA_NAME_ANTI_RANGE_P flag.
34512 2015-01-05 Marek Polacek <polacek@redhat.com>
34514 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
34516 2015-01-05 Jakub Jelinek <jakub@redhat.com>
34518 Update copyright years.
34520 * gcc.c (process_command): Update copyright notice dates.
34521 * gcov-dump.c: Ditto.
34523 * doc/cpp.texi: Bump @copying's copyright year.
34524 * doc/cppinternals.texi: Ditto.
34525 * doc/gcc.texi: Ditto.
34526 * doc/gccint.texi: Ditto.
34527 * doc/gcov.texi: Ditto.
34528 * doc/install.texi: Ditto.
34529 * doc/invoke.texi: Ditto.
34531 * auto-profile.c, auto-profile.h: Fix up Copyright line.
34533 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
34535 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
34537 ([-fvtable-verify], [-fvtv-debug]): Likewise.
34538 ([-Wabi]): Likewise.
34539 ([-fmessage-length]): Likewise.
34540 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
34541 ([-Wno-discarded-qualifiers]): Likewise.
34542 ([-Wnodiscarded-array-qualifiers]): Likewise.
34543 ([-Wno-virtual-move-assign]): Likewise.
34544 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
34545 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
34546 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
34547 ([-fsanitize-undefined-trap-on-error]): Likewise.
34548 ([-floop-interchange]): Likewise.
34549 ([-ftree-coalesce-inlined-vars]): Likewise.
34550 ([-fvect-cost-model]): Likewise.
34551 ([-flto]): Likewise.
34552 ([--param]): Likewise.
34553 (Spec Files): Likewise.
34554 ([-mstrict-align]): Likewise.
34555 ([-mfix-cortex-a53-835769]): Likewise.
34556 ([-march], [-mtune]): Likewise.
34557 ([-mpic-register]): Likewise.
34558 ([-munaligned-access]): Likewise.
34559 ([-msp8]): Likewise.
34560 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
34561 (AVR Built-in Macros): Likewise.
34562 ([-mpreferred-stack-boundary]): Likewise.
34563 ([-mtune-crtl]): Likewise.
34564 ([-mashf]): Likewise.
34565 ([-mmcu=]): Likewise.
34566 ([-minrt]): Likewise.
34567 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
34568 ([-mupper-regs]): Likewise.
34569 ([-matomic-model]): Likewise.
34570 ([-mdiv]): Likewise.
34571 ([-mzdcbranch]): Likewise.
34572 ([-mdisable-callt]): Likewise.
34573 ([-msoft-float]): Likewise.
34574 ([-m8byte-align]): Likewise.
34575 ([-fstack-reuse]): Likewise.
34577 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34579 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
34580 Fix markup, light copy-editing.
34581 ([-fauto-profile]): Rewrite to fix formatting and content
34584 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34586 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
34587 Copy-edit description.
34588 ([-fisolate-erroneous-paths-attribute]): Likewise.
34589 * common.opt (fisolate-erroneous-paths-dereference):
34590 Copy-edit description.
34591 (fisolate-erroneous-paths-attribute): Likewise.
34593 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34595 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
34598 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34600 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
34601 ([-fvtv-debug]): Likewise.
34602 ([-Wc++-compat]): Likewise.
34603 ([-Wc++11-compat]): Likewise.
34604 ([-Wc++14-compat]): Likewise.
34605 ([-Wno-sized-deallocation]): Likewise.
34606 ([-femit-class-debug-always]): Likewise.
34607 ([-femit-struct-debug-detailed]): Likewise.
34608 ([-fno-keep-inline-dllexport]): Likewise.
34609 ([-fira-algorithm]): Likewise.
34610 ([-fira-region]): Likewise.
34611 ([-flra-remat]): Likewise.
34612 ([-fipa-ra]): Likewise.
34613 ([-fhoist-adjacent-loads]): Likewise.
34614 ([-fisolate-erroneous-paths-dereference]): Likewise.
34615 ([-fisolate-erroneous-paths-attribute]): Likewise.
34616 ([-ftree-switch-conversion]): Likewise.
34617 ([-ftree-tail-merge]): Likewise.
34618 ([-ftree-loop-if-convert]): Likewise.
34619 ([-ftree-loop-if-convert-stores]): Likewise.
34620 ([-ftree-loop-distribution]): Likewise.
34621 ([-ftree-loop-distribute-patterns]): Likewise.
34622 ([-flto-compression-level]): Likewise.
34623 ([-flto-report]): Likewise.
34624 ([-flto-report-wpa]): Likewise.
34625 ([-fuse-linker-plugin]): Likewise.
34626 ([-mfix-cortex-a53-835769]): Likewise.
34627 ([-mno-fix-cortex-a53-835769]): Likewise.
34628 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
34629 explicit listing; add a note to the discussion indicating they
34630 exist. Reorder table to group similar options. Add missing
34631 @opindex entries. Add @need commands throughout the table to
34632 allow it to be split across multiple pages.
34633 ([-m8bit-idiv]): Fix @opindex.
34634 ([-mavx256-split-unaligned-load]): Likewise.
34635 ([-mavx256-split-unaligned-store]): Likewise.
34636 ([-mstack-protector-guard]): Likewise.
34637 ([-mcpu=]): Likewise.
34638 ([-mcpu]): Likewise.
34639 ([-mpointer-size=]): Likewise.
34641 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
34643 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
34644 instead of `m' constraint. Likewise for unnamed movb comparison
34645 patterns using reg_before_reload_operand predicate.
34646 * config/pa/predicates.md (reg_before_reload_operand): Tighten
34647 predicate to reject register index and LO_SUM DLT memory forms
34650 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
34652 * doc/invoke.texi (Option Summary): Fix spelling of
34653 -fdevirtualize-at-ltrans.
34654 ([-fdevirtualize]): Fix markup.
34655 ([-fdevirtualize-speculatively]): Fix typo.
34656 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
34657 implementor-speaky.
34658 * common.opt (fdevirtualize-at-ltrans): Likewise.
34659 * ipa-devirt.c: Fix typos in comments throughout the file.
34660 (ipa_devirt): Fix typos in format strings for dump output.
34662 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
34664 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
34665 discussion of defaults, light copy-editing.
34667 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
34669 * tsan.c (instrument_expr): corrected previous checkin.
34671 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
34673 Instrument bit field and unaligned accesses for TSAN.
34674 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
34675 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
34676 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
34677 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
34678 unaligned memory regions.
34680 2015-01-01 Anthony Green <green@moxielogic.com>
34682 * config/moxie/predicates.md (moxie_general_movsrc_operand):
34683 Restrict move source register offsets to 16 bits.
34685 Copyright (C) 2015 Free Software Foundation, Inc.
34687 Copying and distribution of this file, with or without modification,
34688 are permitted in any medium without royalty provided the copyright
34689 notice and this notice are preserved.