1 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
3 * fold-const.c (operand_equal_p): Do not verify that types are
4 compatible for MEM_REFs.
6 2015-10-28 Richard Biener <rguenther@suse.de>
8 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
9 in simplifying VEC_COND_EXPR conditions.
11 2015-10-28 Tom de Vries <tom@codesourcery.com>
13 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
14 into vi_next of a full_var.
16 2015-10-28 Tom de Vries <tom@codesourcery.com>
18 * tree-ssa-structalias.c (new_var_info, make_heapvar)
19 (make_constraint_from_restrict, make_constraint_from_global_restrict)
20 (create_function_info_for, create_variable_info_for_1)
21 (create_variable_info_for): Add and handle add_id parameter.
22 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
23 (init_base_vars): Add extra argument to calls to new_var_info.
24 (get_vi_for_tree): Add extra argument to call to
25 create_variable_info_for.
26 (process_constraint, do_deref, process_all_all_constraints): Add extra
27 argument to calls to new_scalar_tmp_constraint_exp.
28 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
29 argument to calls to make_heapvar.
30 (make_restrict_var_constraints): Add extra argument to call to
31 make_constraint_from_global_restrict.
32 (intra_create_variable_infos): Add extra argument to call to
33 create_variable_info_for_1.
34 (ipa_pta_execute): Add extra argument to call to
35 create_function_info_for.
37 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
40 (sibcall_value): Likewise.
42 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
44 * config/nvptx/nvptx.h (struct machine_function): Add
46 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
47 nvptx_expand_oacc_join): Declare.
48 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
49 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
50 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
51 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
52 UNSPECV_JOINING, UNSPECV_JOIN): New.
53 (BITS, BITD): New mode iterators.
54 (br_true_uni, br_false_uni): New.
55 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
56 (oacc_dim_size, oacc_dim_pos): New.
57 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
58 (oacc_fork, oacc_join): New.
59 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
60 (worker_load<mode>, worker_store<mode>): New.
62 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
63 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
64 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
65 worker_bcast_sym): New.
66 (nvptx_option_override): Initialize worker broadcast buffer.
67 (nvptx_emit_forking, nvptx_emit_joining): New.
68 (nvptx_init_axis_predicate): New.
69 (nvptx_declare_function_name): Init axis predicates.
70 (nvptx_expand_call): Add fork/join markers around routine call.
71 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
72 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
73 (nvptx_gen_vcast): New.
74 (struct wcast_data_t): New.
75 (enum propagate_mask): New.
76 (nvptx_gen_wcast): New.
77 (nvptx_print_operand): Add 'S' case.
78 (struct parallel): New.
79 (parallel::parallel, parallel::~parallel): New.
80 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
81 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
82 nvptx_find_par, nvptx_discover_pars): New.
83 (nvptx_propagate): New.
84 (vprop_gen, nvptx_vpropagate): New.
85 (wprop_gen, nvptx_wpropagate): New.
87 (nvptx_single, nvptx_skip_par): New.
88 (nvptx_process_pars, nvptx_neuter_pars): New.
89 (ntptx_reorg): Split blocks, generate parallel structure, apply
91 (nvptx_cannot_copy_insn_p): New.
92 (nvptx_file_end): Emit worker broadcast decl.
93 (nvptx_goacc_fork_join): New.
94 (TARGET_CANNOT_COPY_INSN_P): Override.
95 (TARGET_GOACC_FORK_JOIN): Override.
97 2015-10-28 Richard Biener <rguenther@suse.de>
99 * fold-const.c (negate_expr_p): Adjust the division case to
100 properly avoid introducing undefined overflow.
101 (fold_negate_expr): Likewise.
103 2015-10-28 Richard Biener <rguenther@suse.de>
105 PR tree-optimization/65962
106 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
107 Avoid creating loop carried dependences also for outer loops
108 of the loop a use to replace is in.
110 2015-10-28 Richard Biener <rguenther@suse.de>
112 * common.opt (fchecking): New flag controlling flag_checking.
113 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
114 * timevar.c (timer::print): Adjust output.
115 * doc/invoke.texi (fchecking): Document.
117 2015-10-28 Richard Biener <rguenther@suse.de>
120 * fold-const.c (negate_expr_p): We cannot negate plus or minus
121 if overflow is not wrapping. Likewise multiplication unless
122 one operand is constant and not power of two.
123 (fold_negate_expr): Adjust accordingly.
125 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
127 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
129 (is_oacc_parallel, is_oacc_kernels): New.
130 (enclosing_target_ctx): May return NULL.
131 (ctx_in_oacc_kernels_region): New.
132 (check_oacc_kernel_gwv): New.
133 (oacc_loop_or_target_p): Delete.
134 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
135 operands. Strip reductions fro kernels.
136 (scan_omp_target): Don't calculate gwv mask.
137 (lower_oacc_head_mark, lower_oacc_loop_marker,
138 lower_oacc_head_tail): New.
139 (struct oacc_collapse): New.
140 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
141 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
142 Remove OpenACC handling.
143 (expand_oacc_for): New.
144 (expand_omp_for): Call expand_oacc_for.
145 (lower_omp_for): Call lower_oacc_head_tail.
147 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
149 * attribs.c (check_attribute_tables): New function, broken out from...
150 (init_attributes): Use it.
151 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
152 gcc_checking_assert and checking_* functions to eliminate
153 ENABLE_CHECKING conditionals.
154 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
155 (pass_expand::execute): Likewise.
156 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
157 * cgraphunit.c (mark_functions_to_output): Likewise.
158 (cgraph_node::expand_thunk): Likewise.
159 (symbol_table::compile): Likewise.
160 * ddg.c (add_cross_iteration_register_deps): Likewise.
161 (create_ddg_all_sccs): Likewise.
162 * df-core.c (df_finish_pass, df_analyze): Likewise.
163 * diagnostic-core.h: Likewise.
164 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
165 * dominance.c (calculate_dominance_info): Likewise.
166 * dwarf2out.c (add_AT_die_ref): Likewise.
167 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
168 (loc_list_from_tree, gen_lexical_block_die): Likewise.
169 gen_type_die_with_usage, gen_type_die): Likewise.
170 (dwarf2out_decl): Likewise.
171 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
172 * except.c (duplicate_eh_regions): Likewise.
173 * fwprop.c (register_active_defs, update_df_init): Likewise.
174 (fwprop_init, fwprop_done): Likewise.
175 (update_uses): Likewise.
176 * ggc-page.c (ggc_grow): Likewise.
177 * gimplify.c (gimplify_body): Likewise.
178 (gimplify_hasher::equal): Likewise.
179 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
180 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
182 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
183 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
184 * hash-table.h (::find_empty_slot_for_expand): Likewise.
185 * ifcvt.c (if_convert): Likewise.
186 * ipa-cp.c (ipcp_propagate_stage): Likewise.
187 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
188 (odr_type_p, odr_types_equivalent_p): Likewise.
189 (add_type_duplicate, get_odr_type): Likewise.
190 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
191 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
192 (sem_item_optimizer::verify_classes): Likewise.
193 (sem_item_optimizer::traverse_congruence_split): Likewise.
194 (sem_item_optimizer::checking_verify_classes): New.
195 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
197 * cfgrtl.c (commit_edge_insertions): Likewise.
198 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
199 (rtl_flow_call_edges_add): Likewise.
200 * cgraph.c (symbol_table::create_edge): Likewise.
201 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
202 * cgraph.h (symtab_node): Likewise.
203 (symtab_node::checking_verify_symtab_nodes): Define.
204 (cgraph_node::checking_verify_cgraph_nodes): Define.
205 * cfghooks.h (checking_verify_flow_info): Define.
206 * cfgloop.h (checking_verify_loop_structure): Define.
207 * dominance.h (checking_verify_dominators): Define.
208 * et-forest.c: Fix comment.
209 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
210 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
211 ENABLE_CHECKING conditionals.
212 * ipa-inline-transform.c (save_inline_function_body): Likewise.
213 * ipa-inline.c (inline_small_functions): Likewise.
214 (early_inliner): Likewise.
215 * ipa-inline.h (estimate_edge_growth): Likewise.
216 * ipa-visibility.c (function_and_variable_visibility): Likewise.
217 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
218 (ipa_single_use): Likewise.
219 * ira-int.h: Likewise.
220 * ira.c (ira): Likewise.
221 * loop-doloop.c (doloop_optimize_loops): Likewise.
222 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
223 * loop-invariant.c (move_loop_invariants): Likewise.
224 * lra-assigns.c (lra_assign): Likewise.
225 * lra-constraints.c (lra_constraints): Likewise.
226 * lra-eliminations.c (lra_eliminate): Likewise.
227 * lra-int.h (struct lra_reg): Likewise.
228 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
229 (lra_create_live_ranges_1): Likewise.
230 * lra-remat.c (create_remat_bb_data): Likewise.
231 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
233 (check_rtl): Always define. Remove incorrect guard around
234 extract_constrain_insn call.
235 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
236 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
237 ENABLE_CHECKING conditionals.
238 * lto-streamer-out.c (DFS::DFS): Likewise.
239 (lto_output): Likewise.
240 * lto-streamer.c (lto_streamer_init): Likewise.
241 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
242 expand_omp_target, execute_expand_omp): Likewise.
243 (lower_omp_target): Likewise.
244 * passes.c (execute_function_todo): Likewise.
245 (execute_todo, execute_one_pass): Likewise.
246 (verify_curr_properties): Always define.
247 * predict.c (tree_estimate_probability: Use flag_checking,
248 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
249 ENABLE_CHECKING conditionals.
250 (propagate_freq): Likewise.
251 * pretty-print.c (pp_format): Likewise.
252 * real.c (real_to_decimal_for_mode): Likewise.
253 * recog.c (split_all_insns): Likewise.
254 * regcprop.c (kill_value_one_regno): Likewise.
255 (copy_value): Likewise.
256 (validate_value_data): Define unconditionally.
257 * reload.c: Fix comment.
258 * timevar.c: Include options.h
259 * tree-ssa.h (checking_verify_ssa): Define.
260 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
261 * sched-deps.c (CHECK): Remove unused macro.
262 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
263 gcc_checking_assert and checking_* functions to eliminate
264 ENABLE_CHECKING conditionals.
265 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
266 * sel-sched.c (struct moveop_static_params): Likewise.
267 (find_best_reg_for_expr, move_cond_jump): Likewise.
268 (move_op_orig_expr_not_found): Likewise.
269 (code_motion_process_successors, move_op): Likewise.
270 * ssa-iterators.h (first_readonly_imm_use): Likewise.
271 (next_readonly_imm_use): Likewise.
272 * store-motion.c (compute_store_table): Likewise.
273 * symbol-summary.h (function_summary::function_summary): Likewise.
274 * target.h (cumulative_args_t): Likewise.
275 (get_cumulative_args, pack_cumulative_args): Likewise.
276 * timevar.c: (timer::print): Likewise.
277 * trans-mem.c (ipa_tm_execute): Likewise.
278 * tree-cfg.c (move_stmt_op): Likewise.
279 (move_sese_region_to_fn): Likewise.
280 (gimple_flow_call_edges_add): Likewise.
281 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
283 * tree-eh.c (remove_unreachable_handlers): Likewise.
284 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
285 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
286 * tree-into-ssa.c (update_ssa): Likewise.
287 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
288 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
289 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
290 * tree-predcom.c (suitable_component_p): Likewise.
291 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
292 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
293 * tree-ssa-live.c (verify_live_on_entry): Likewise.
294 * tree-ssa-live.h (register_ssa_partition): Likewise.
295 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
296 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
297 (tree_transform_and_unroll_loop): Likewise.
298 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
299 * tree-ssa-operands.c (get_expr_operands): Likewise.
300 * tree-ssa-propagate.c (replace_exp_1): Likewise.
301 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
302 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
303 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
304 * tree-ssanames.c (release_ssa_name_fn): Likewise.
305 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
306 * tree-vect-loop-manip.c
307 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
308 (slpeel_checking_verify_cfg_after_peeling): Likewise.
309 (vect_do_peeling_for_loop_bound): Likewise.
310 (vect_do_peeling_for_alignment): Likewise.
311 * tree-vrp.c (supports_overflow_infinity): Likewise.
312 (set_value_range): Likewise.
313 * tree.c (free_lang_data_in_cgraph): Likewise.
314 * value-prof.c (gimple_remove_histogram_value): Likewise.
315 (free_hist): Likewise.
316 * var-tracking.c (canonicalize_values_star): Likewise.
317 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
319 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
321 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
322 IFN_GOACC_LOOP): New.
323 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
324 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
325 IFN_UNIQUE_OACC_TAIL_MARK.
326 (enum ifn_goacc_loop_kind): New.
327 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
328 IFN_UNIQUE_OACC_JOIN cases.
329 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
330 (expand_GOACC_LOOP): New.
331 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
332 * omp-low.c: Include gimple-pretty-print.h.
333 (struct oacc_loop): New.
334 (enum oacc_loop_flags): New.
335 (oacc_thread_numbers): New.
336 (oacc_xform_loop): New.
337 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
338 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
339 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
340 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
341 oacc_loop_discovery): New.
342 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
343 oacc_loop_process): New.
344 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
345 (execute_oacc_device_lower): Discover & process loops. Process
347 * target.def (goacc.fork_join): Change sense of hook, clarify
349 * doc/tm.texi: Regenerated.
351 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
353 * target-insns.def (oacc_fork, oacc_join): Define.
354 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
355 (goacc.fork_join): New GOACC hook.
356 * targhooks.h (default_goacc_fork_join): Declare.
357 * omp-low.c (default_goacc_forkjoin): New.
358 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
359 * doc/tm.texi: Regenerate.
361 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
363 * omp-low.c (oacc_init_rediction_array): New.
364 (oacc_initialize_reduction_data): Initialize array.
366 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
368 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
370 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
372 * internal-fn.c (expand_UNIQUE): New.
373 * internal-fn.h (enum ifn_unique_kind): New.
374 * internal-fn.def (IFN_UNIQUE): New.
375 * target-insns.def (unique): Define.
376 * gimple.h (gimple_call_internal_unique_p): New.
377 * gimple.c (gimple_call_same_target_p): Check internal fn
379 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
380 * tree-ssa-threadedge.c
381 (record_temporary_equivalences_from_stmts): Likewise.
382 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
384 2015-10-27 Richard Henderson <rth@redhat.com>
387 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
388 narrowing subregs on SSE and MMX registers.
389 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
390 appear to be sub-words of multi-register pseudos must be rejected.
391 * doc/tm.texi: Regenerate.
393 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
396 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
397 operands[0] is a reg before taking its REGNO in split condition.
398 (*movdi_aarch64): Likewise.
400 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
402 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
403 Handle floating point inner modes properly.
405 2015-10-27 Alan Hayward <alan.hayward@arm.com>
408 (vectorizable_live_operation): Change iterator.
410 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
411 Aditya Kumar <aditya.k7@samsung.com>
413 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
414 function to schedule based on isl_schedule_node.
415 (get_schedule_map_st): New schedule optimizer based on
417 (scop_get_domains): New. Return the isl_union_set containing the
418 domains of all the pbbs.
419 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
421 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
424 * calls.c (prepare_call_address): Don't handle -fno-plt here.
425 * config/i386/i386.c (ix86_expand_call): Generate indirect call
426 via GOT for -fno-plt. Support indirect call via GOT for x32.
427 * config/i386/predicates.md (sibcall_memory_operand): Allow
430 2015-10-27 Richard Biener <rguenther@suse.de>
432 PR tree-optimization/68104
433 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
434 strided access check ...
435 (vect_compute_data_refs_alignment): ... here.
437 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
438 Joseph Myers <joseph@codesourcery.com>
439 Mark Shinwell <shinwell@codesourcery.com>
440 Andrew Stubbs <ams@codesourcery.com>
441 Rich Felker <dalias@libc.org>
443 * config.gcc: Handle --enable-fdpic.
444 * config/sh/constraints.md (Ccl): New constraint.
445 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
446 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
448 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
450 * config/sh/sh-protos.h (function_symbol_result): New struct.
451 (function_symbol): Return function_symbol_result.
452 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
454 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
456 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
457 (sh_option_override): Force -fPIC if FDPIC is in effect.
458 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
459 UNSPEC_GOTOFFFUNCDESC cases.
460 (prepare_move_operands): Use FDPIC initial GOT register for
461 TLS-related GOT access; inhibit cross-section address offset constants
463 (sh_assemble_integer): New function.
464 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
465 PC-relative call sites.
466 (expand_ashiftrt): Adapt invocation of function_symbol.
467 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
468 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
469 UNSPEC_GOTOFFFUNCDESC.
470 (legitimize_pic_address): Resolve function symbols to function
471 descriptors for FDPIC. Do not use GOT-relative addressing for local
472 data that may be read-only on FDPIC.
473 (sh_emit_storesi, sh_emit_storehi): New functions.
474 (sh_trampoline_init): Generate FDPIC trampolines.
475 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
476 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
477 (sh_output_mi_thunk): Generate FDPIC call.
478 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
479 FDPIC, generate call site labels to use PC-relative addressing rather
480 than GOT-relative addressing.
481 (sh_conditional_register_usage): Make PIC register fixed and call used
482 when FDPIC is in effect.
483 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
484 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
485 sh_get_fdpic_reg_initial_val): New functions.
486 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
488 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
489 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
490 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
491 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
493 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
494 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
495 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
496 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
498 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
499 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
500 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
501 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
502 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
503 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
504 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
505 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
506 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
507 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
508 block_move_real, block_lump_real, block_move_real_i4,
509 block_lump_real_i4): Add support for FDPIC calls.
510 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
511 call_value_pop): Adjust for new function_symbol signature.
512 * config/sh/sh.opt (-mfdpic): New option.
513 * doc/install.texi (Options specification): Document --enable-fdpic.
514 * doc/invoke.texi (SH Options): Document -mfdpic.
517 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
519 PR tree-optimization/65963
520 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some LSHIFT_EXPRs
521 as equivalent MULT_EXPRs.
523 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
526 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
527 * config/arm/constraints.md (Dp): Update callsite.
528 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
530 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
532 * builtins.c (fold_builtin_load_exponent): Rename to...
533 (fold_const_builtin_load_exponent): ...this and only handle
535 (fold_builtin_2): Update accordingly.
536 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
538 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
540 * builtins.c (fold_builtin_logb): Rename to...
541 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
542 (fold_builtin_significand): Rename to...
543 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
544 (fold_builtin_1): Update accordingly.
546 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
548 * builtins.c (fold_builtin_fmin_fmax): Delete.
549 (fold_builtin_2): Handle constant fmin and fmax arguments here.
550 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
552 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
554 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
555 for register extension into sign and zero register extension.
556 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
557 for sign and zero register extension.
558 (cortexa57_addrcost_table): Likewise.
559 (xgene1_addrcost_table): Likewise.
561 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
563 * fold-const.c (fold_minmax): Delete.
564 (fold_binary_loc): Don't call it.
565 * match.pd: Add rules previously handled by fold_minmax.
567 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
569 * builtins.c (fold_builtin_fma): Remove constant handling.
570 (fold_builtin_3): Handle constant fma arguments here.
572 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
574 * builtins.c (fold_builtin_fabs): Remove constant handling.
575 (fold_builtin_abs): Likewise.
577 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
579 * builtins.c (fold_builtin_copysign): Delete.
580 (fold_builtin_2): Handle constant copysign arguments here.
581 * match.pd: Add rules previously handled by fold_builtin_copysign.
583 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
585 * builtins.c (fold_builtin_signbit): Delete.
586 (fold_builtin_2): Handle constant signbit arguments here.
587 * match.pd: Add rules previously handled by fold_builtin_signbit.
589 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
591 * match.pd: Handle sqrt(x) cmp 0 specially.
593 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
595 * tree-vect-generic.c (expand_vector_operations_1): Check
596 optab type before using it.
598 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
600 * config/aarch64/aarch64-protos.h
601 (struct tune_params): Add autoprefetcher_model field.
602 * config/aarch64/aarch64.c: Include params.h
603 (generic_tunings): Specify autoprefetcher_model value.
604 (cortexa53_tunings): Likewise.
605 (cortexa57_tunings): Likewise.
606 (cortexa72_tunings): Likewise.
607 (thunderx_tunings): Likewise.
608 (xgene1_tunings): Likewise.
609 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
610 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
611 (aarch64_override_options_internal): Set
612 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
614 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
616 * builtins.c (fold_builtin_exponent): Delete.
617 (fold_builtin_2): Handle constant expN arguments here.
618 * match.pd: Fold expN(logN(x)) -> x.
620 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
622 * builtins.c (fold_builtin_powi): Delete.
623 (fold_builtin_2): Handle constant powi arguments here.
624 * match.pd: Add rules previously handled by fold_builtin_powi.
626 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
628 * builtins.c (fold_builtin_pow): Delete in favor of...
629 (fold_const_builtin_pow): ...this new function. Only handle constant
631 (fold_builtin_2): Update accordingly.
632 * match.pd: Add rules previously handled by fold_builtin_pow.
634 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
636 * builtins.c (fold_builtin_hypot): Delete.
637 (fold_builtin_2): Handle constant hypot arguments here.
638 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
639 hypot(x, x) to fabs(x)*sqrt(2).
641 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
643 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
644 instead of make_ssa_name if not yet in SSA form.
646 2015-10-27 Richard Biener <rguenther@suse.de>
648 * cfg.c (free_edge): Add function argument and use it instead of cfun.
649 (clear_edges): Likewise.
650 * cfg.h (clear_edges): Adjust prototype.
651 * cfgexpand.c (pass_expand::execute): Adjust.
652 * cfgloop.c (release_recorded_exits): Add function argument and use
654 * cfgloop.h (release_recorded_exits): Adjust prototype.
655 (loops_state_satisfies_p): Add overload with function argument.
656 (loops_state_set): Likewise.
657 (loops_state_clear): Likewise.
658 (struct loop_iterator): Add function argument to constructor
659 and iterator and use it instead of cfun.
660 (FOR_EACH_LOOP_FN): New macro.
661 (loop_optimizer_finalize): Add overload with function argument.
662 * loop-init.c (loop_optimizer_init): Adjust.
663 (fix_loop_structure): Likewise.
664 (loop_optimizer_finaliz): Add function argument and use it
666 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
667 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
668 * cgraph.c (release_function_body): Do not push/pop cfun.
669 * final.c (rest_of_clean_state): Adjust.
670 * graphite.c (graphite_finalize): Likewise.
671 * tree-ssa-copy.c (fini_copy_prop): Likewise.
672 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
673 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
674 (tree_unroll_loops_completely): Likewise.
675 (pass_complete_unrolli::execute): Likewise.
676 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
677 Add function argument and use it instead of cfun.
678 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
680 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
681 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
683 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
684 * tree-ssanames.c (fini_ssanames): Add function argument and use it
686 * tree-ssanames.c (fini_ssanames): Adjust prototype.
687 * tree-vrp.c (execute_vrp): Adjust.
688 * value-prof.c (free_histograms): Add function argument and use it
690 * value-prof.h (free_histograms): Adjust prototype.
692 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
694 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
695 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
696 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
698 2015-10-27 Tom de Vries <tom@codesourcery.com>
700 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
703 2015-10-27 Bin Cheng <bin.cheng@arm.com>
705 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
706 (inv_can_prop_to_addr_use): New function.
707 (record_use): Call can_prop_to_addr_uses, set the new field.
708 (get_inv_cost): Count cost if inv can't be propagated into its
711 2015-10-26 Doug Evans <dje@google.com>
713 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
715 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
717 * match.pd (fold_widened_comparison): Apply simplifications to all
720 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
722 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
723 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
724 * doc/tm.texi: Regenerated.
725 * reorg.c (dbr_schedule): Use new hook.
726 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
728 2015-10-26 Jeff Law <law@redhat.com>
730 PR tree-optimization/68013
731 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
732 Make sure the first block in the path is in VISITED_BBs.
734 2015-10-26 Richard Biener <rguenther@suse.de>
735 Dominik Vogt <vogt@linux.vnet.ibm.com>
738 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
739 Properly prune ref->ref for accesses outside of ref.
741 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
743 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
744 new statements to be inserted if inplace. Allow calls to have
747 2015-10-26 Richard Biener <rguenther@suse.de>
749 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
750 (do_valueize): New function.
751 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
753 * tree-ssa-threadedge.c: Remove builtins.h include, include
755 (fold_assignment_stmt): Remove.
756 (threadedge_valueize): New function.
757 (record_temporary_equivalences_from_stmts): Use
758 gimple_fold_stmt_to_constant_1, note additional cleanup
761 2015-10-26 Richard Biener <rguenther@suse.de>
763 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
764 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
766 2015-10-26 Alan Hayward <alan.hayward@arm.com>
768 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
771 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
773 * auto-inc-dec.c (insert_move_insn_before): Delete.
774 (attempt_change): Remember to cost the simple move in the
775 FORM_PRE_ADD and FORM_POST_ADD cases.
777 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
780 * config/sh/sh.c (sh_vector_mode_supported_p): Use
781 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
783 2015-10-26 Tom de Vries <tom@codesourcery.com>
785 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
787 (intra_create_variable_infos): ... here.
789 2015-10-26 Tom de Vries <tom@codesourcery.com>
791 * tree-ssa-structalias.c (intra_create_variable_infos): Add
792 restrict_pointer_p and recursive_restrict_p variables.
794 2015-10-26 Tom de Vries <tom@codesourcery.com>
796 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
797 get_vi_for_tree call.
799 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
802 * optabs.c (expand_atomic_compare_and_swap): Handle case when
803 ptarget_oval or ptarget_bool are const0_rtx.
805 2015-10-26 Christian Bruel <christian.bruel@st.com>
807 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
808 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
809 * cp/method.c (implicitly_declare_fn): Likewise.
810 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
811 * java/class.c (add_method_1): Likewise.
813 2015-10-26 Richard Biener <rguenther@suse.de>
815 * alloc-pool.h (base_pool_allocator): Use placement new.
816 (base_pool_allocator::remove): Likewise. Compute size outside of
819 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
821 * builtins.c (do_real_to_int_conversion): New function.
822 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
823 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
825 * match.pd: Add rules previously handled by fold_fixed_mathfn
826 and fold_builtin_int_roundingfn.
828 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
830 * match.pd: Use macros to define built-in operator lists.
832 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
833 Richard Biener <rguenther@suse.de>
835 * genmatch.c (dt_simplify::gen): Skip captures that are
837 (parser::parse_expr): Allow captures in results too.
838 * builtins.c (fold_builtin_cexp): Delete.
839 (fold_builtin_1): Handle constant cexp arguments here.
840 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
842 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
844 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
845 conditional compilation.
846 (base_pool_allocator::remove): Use flag_checking.
848 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
850 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
853 * dojump.c (do_compare_and_jump): Canonicalize both function and
856 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
859 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
862 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
865 * ipa-polymorphic-call.c
866 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
867 instance offset with offset of outer type.
869 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
871 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
873 2015-10-23 Caroline Tice <cmtice@google.com>
876 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
877 call to iterative_hash_host_wide_int.
879 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
881 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
884 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
886 * tree-vect-generic.c (expand_vector_operations_1): Check
887 optab exists before use it.
889 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
891 * tree-vect-generic.c (expand_vector_condition): Avoid
892 uninitialized variable warning.
894 2015-10-23 Jeff Law <law@redhat.com>
896 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
898 (execute_todo): Call it here.
899 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
901 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
903 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
904 Szabolcs Nagy <szabolcs.nagy@arm.com>
906 * config.gcc (enable_secureplt): Add *-linux*-musl*.
908 2015-10-23 Jeff Law <law@redhat.com>
910 PR tree-optimization/67830
911 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
912 Explicitly verify the mask has no bits outside the type of
913 the innermost operands.
915 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
916 Szabolcs Nagy <szabolcs.nagy@arm.com>
918 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
919 (MUSL_DYNAMIC_LINKER64): Define.
920 (GNU_USER_DYNAMIC_LINKER32): Update.
921 (GNU_USER_DYNAMIC_LINKER64): Update.
922 (CHOOSE_DYNAMIC_LINKER): Update.
924 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
925 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
926 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
927 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
928 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
929 (CHOOSE_DYNAMIC_LINKER): Update.
930 (INCLUDE_DEFAULTS): Redefine.
932 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
934 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
936 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
939 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
941 * fold-const.c (operand_equal_p): Handle matching of vector
944 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
946 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
948 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
949 Andrew Pinski <apinski@cavium.com>
951 PR rtl-optimization/67736
952 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
955 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
958 * tree.c (build_truth_vector_type): Support BLK mode
959 returned for boolean vector.
961 2015-10-23 Alan Hayward <alan.hayward@arm.com>
963 PR tree-optimization/65947
965 (vect_is_simple_reduction_1): Find condition reductions.
966 (vect_model_reduction_cost): Add condition reduction costs.
967 (get_initial_def_for_reduction): Add condition reduction initial var.
968 (vect_create_epilog_for_reduction): Add condition reduction epilog.
969 (vectorizable_reduction): Condition reduction support.
970 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
971 * doc/sourcebuild.texi (Vector-specific attributes): Document
974 2015-10-23 Richard Biener <rguenther@suse.de>
976 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
979 2015-10-23 Richard Biener <rguenther@suse.de>
980 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
982 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
983 into (A ^ B) - B to match.pd
984 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
986 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
988 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
990 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
992 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
994 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
995 INTEGER_CST@1)): New simplifier.
997 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
999 * builtins.c (integer_valued_real_p): Move to fold-const.c.
1000 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
1001 (fold_builtin_ceil, fold_builtin_round): Delete.
1002 (fold_builtin_1): Handle constant trunc, floor, ceil and round
1004 * convert.c (convert_to_real): Remove narrowing of rounding
1006 * fold-const.h (integer_valued_real_unary_p)
1007 (integer_valued_real_binary_p, integer_valued_real_call_p)
1008 (integer_valued_real_single_p, integer_valued_real_p): Declare.
1009 * fold-const.c (tree_single_nonnegative_warnv_p): Move
1010 name_registered_for_update_p check to SSA_NAME case statement.
1011 Don't call tree_simple_nonnegative_warnv_p for SSA names.
1012 (integer_valued_real_unary_p, integer_valued_real_binary_p)
1013 (integer_valued_real_call_p, integer_valued_real_single_p)
1014 (integer_valued_real_invalid_p): New functions.
1015 (integer_valued_real_p): Move from fold-const.c and rework
1016 to call the functions above. Handle SSA names.
1017 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
1018 * gimple-fold.c (gimple_assign_integer_valued_real_p)
1019 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
1020 (gimple_stmt_integer_valued_real_p): New functions.
1021 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
1022 Fold f(x)->x for the same f if x is known to be integer-valued.
1023 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
1024 the result. Canonicalize floor(x) as trunc(x) if x is
1027 2015-10-23 Tom de Vries <tom@codesourcery.com>
1029 * tree-ssa-structalias.c (intra_create_variable_infos): Use
1030 make_constraint_from.
1032 2015-10-23 Tom de Vries <tom@codesourcery.com>
1034 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
1035 setting of is_full_var in case of a single field.
1037 2015-10-22 Martin Sebor <msebor@redhat.com>
1040 * config/i386/i386.opt: Add missing periods to the ends of sentences.
1041 * config/msp430/msp430.opt: Same.
1043 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
1045 * doc/extend.exp (Global Register Variables): Rewrite.
1047 2015-10-22 Jeff Law <law@redhat.com>
1049 * genattrtab.c (main): If we do not have any annul-true or annul-false
1050 slots, then write out a dummy eligible_for_annul_true or
1051 eligible_for_annul_false as needed.
1053 2015-10-22 Nick Clifton <nickc@redhat.com>
1055 * config/msp430/msp430.opt: Add -msilicon-errata and
1056 -msilicon-errata-warn.
1057 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
1059 * doc/invoke.texi: Document new options.
1061 2015-10-22 Richard Biener <rguenther@suse.de>
1063 PR tree-optimization/58497
1064 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
1065 (expand_vector_operations_1): Use it. Lower operations on
1066 all uniform vectors to scalar operations if the HW supports it.
1068 2015-10-22 Richard Biener <rguenther@suse.de>
1070 PR tree-optimization/19049
1071 PR tree-optimization/65962
1072 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
1073 to strided accesses if single-element interleaving doesn't work.
1075 2015-10-22 Richard Biener <rguenther@suse.de>
1079 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
1080 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
1081 (expand_unop): Likewise.
1083 2015-10-22 Richard Biener <rguenther@suse.de>
1085 * fold-const.c (fold_addr_of_array_ref_difference): Properly
1086 convert operands before folding a MINUS_EXPR.
1087 (fold_binary_loc): Move simplification of MINUS_EXPR on
1088 converted POINTER_PLUS_EXPRs ...
1089 * match.pd: ... here.
1091 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
1093 * builtins.c (fold_builtin_tan): Delete.
1094 (fold_builtin_1): Handle constant tan arguments here.
1095 * match.pd: Simplify (tan (atan x)) to x.
1097 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
1099 * builtins.c (fold_builtin_cproj): Delete.
1100 (fold_builtin_1): Handle constant arguments here.
1101 (build_complex_cproj): Move and rename to...
1102 * tree.c: (build_complex_inf): ...this.
1103 * tree.h (build_complex_inf): Declare.
1104 * match.pd: Fold cproj(x)->x if x has no infinity.
1105 Use build_complex_inf for existing cproj rules.
1107 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1110 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
1111 already have a comparison result.
1113 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1116 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
1117 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
1118 (aarch64_classify_address): Likewise.
1119 (aarch64_secondary_reload): Likewise.
1120 (aarch64_override_options_after_change_1): Adjust.
1121 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
1122 Use aarch64_nopcrelative_literal_loads.
1123 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
1124 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
1127 2015-10-21 Martin Sebor <msebor@redhat.com>
1130 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
1131 (print_filtered_help): Reference aliased option's name and encourage
1132 readers to use it in preference to the alias if the former is not
1133 documented. Mention when using an option is diagnosed.
1134 * gcc.c (display_help): End each sentence with a period.
1136 * common.opt: End each sentence that describes an option with
1138 * config/aarch64/aarch64.opt: Same.
1139 * config/alpha/alpha.opt: Same.
1140 * config/arc/arc.opt: Same.
1141 * config/arm/arm.opt: Same.
1142 * config/avr/avr.opt: Same.
1143 * config/bfin/bfin.opt: Same.
1144 * config/c6x/c6x.opt: Same.
1145 * config/cr16/cr16.opt: Same.
1146 * config/cris/cris.opt: Same.
1147 * config/cris/linux.opt: Same.
1148 * config/darwin.opt: Same.
1149 * config/epiphany/epiphany.opt: Same.
1150 * config/fr30/fr30.opt: Same.
1151 * config/frv/frv.opt: Same.
1152 * config/ft32/ft32.opt: Same.
1153 * config/g.opt: Same.
1154 * config/h8300/h8300.opt: Same.
1155 * config/i386/cygming.opt: Same.
1156 * config/i386/djgpp.opt: Same.
1157 * config/i386/i386.opt: Same.
1158 * config/i386/interix.opt: Same.
1159 * config/i386/mingw-w64.opt: Same.
1160 * config/i386/mingw.opt: Same.
1161 * config/ia64/ia64.opt: Same.
1162 * config/ia64/ilp32.opt: Same.
1163 * config/iq2000/iq2000.opt: Same.
1164 * config/linux.opt: Same.
1165 * config/lm32/lm32.opt: Same.
1166 * config/lynx.opt: Same.
1167 * config/m32c/m32c.opt: Same.
1168 * config/m32r/m32r.opt: Same.
1169 * config/m68k/ieee.opt: Same.
1170 * config/m68k/m68k.opt: Same.
1171 * config/mcore/mcore.opt: Same.
1172 * config/mep/mep.opt: Same.
1173 * config/microblaze/microblaze.opt: Same.
1174 * config/mips/mips.opt: Same.
1175 * config/mmix/mmix.opt: Same.
1176 * config/mn10300/mn10300.opt: Same.
1177 * config/moxie/moxie.opt: Same.
1178 * config/msp430/msp430.opt: Same.
1179 * config/nios2/elf.opt: Same.
1180 * config/nios2/nios2.opt: Same.
1181 * config/nvptx/nvptx.opt: Same.
1182 * config/pa/pa-hpux.opt: Same.
1183 * config/pa/pa-hpux1010.opt: Same.
1184 * config/pa/pa-hpux1111.opt: Same.
1185 * config/pa/pa-hpux1131.opt: Same.
1186 * config/pa/pa.opt: Same.
1187 * config/pa/pa64-hpux.opt: Same.
1188 * config/pdp11/pdp11.opt: Same.
1189 * config/rl78/rl78.opt: Same.
1190 * config/rs6000/476.opt: Same.
1191 * config/rs6000/aix64.opt: Same.
1192 * config/rs6000/darwin.opt: Same.
1193 * config/rs6000/linux64.opt: Same.
1194 * config/rs6000/rs6000.opt: Same.
1195 * config/rs6000/sysv4.opt: Same.
1196 * config/s390/s390.opt: Same.
1197 * config/s390/tpf.opt: Same.
1198 * config/sh/sh.opt: Same.
1199 * config/sol2.opt: Same.
1200 * config/sparc/long-double-switch.opt: Same.
1201 * config/sparc/sparc.opt: Same.
1202 * config/spu/spu.opt: Same.
1203 * config/stormy16/stormy16.opt: Same.
1204 * config/tilegx/tilegx.opt: Same.
1205 * config/tilepro/tilepro.opt: Same.
1206 * config/v850/v850.opt: Same.
1207 * config/vax/vax.opt: Same.
1208 * config/visium/visium.opt: Same.
1209 * config/vms/vms.opt: Same.
1210 * config/vxworks.opt: Same.
1211 * config/xtensa/xtensa.opt: Same.
1213 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1214 Sebastian Pop <s.pop@samsung.com>
1216 * graphite-scop-detection.c (parameter_index_in_region): Update call to
1217 invariant_in_sese_p_rec.
1218 * graphite-sese-to-poly.c (extract_affine): Same.
1219 * sese.c (invariant_in_sese_p_rec): Pass in an extra
1220 parameter has_vdefs.
1221 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
1222 variable depends on virtual definitions in the current region.
1223 * sese.h (invariant_in_sese_p_rec): Update declaration.
1225 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1226 Sebastian Pop <s.pop@samsung.com>
1228 * graphite-scop-detection.c (build_scops): Do not handle scops
1229 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
1230 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
1232 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
1234 * config.in: Regenerate.
1235 * configure: Regenerate.
1236 * configure.ac (CHECKING_P): Define.
1237 * system.h: Use CHECKING_P.
1239 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1242 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
1243 is negative we don't know the type.
1244 (check_stmt_for_type_change): Skip constructors of non-polymorphic
1245 types as those won't help devirutalization.
1247 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1249 * fold-const.c (operand_equal_p): Add code matching empty constructors.
1251 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
1253 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
1255 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
1256 Add comments on sign of the result.
1257 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
1258 Recurse on operand #1 instead of operand #0.
1259 <CEIL_MOD_EXPR>: Do not recurse.
1260 <ROUND_MOD_EXPR>: Likewise.
1262 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1264 * cfgrtl.c (pass_free_cfg::execute): Adjust.
1265 * final.c (dbr_sequence_length): Always define.
1266 (shorten_branches): Adjust.
1267 * genattr-common.c (main): Always define DELAY_SLOTS.
1268 * genattr.c (main): Unconditionally declare functions and define
1269 macros related to delay slots.
1270 * genattrtab.c (write_eligible_delay): Adjust.
1271 (main): Always write out delay slot functions.
1272 * opts.c (default_options_table): Adjust.
1273 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
1274 (redirect_with_delay_list_safe_p): Likewise.
1275 (fill_simple_delay_slots): Likewise.
1276 (fill_slots_from_thread): Likewise.
1277 (make_return_insns): Likewise.
1278 (dbr_schedule): Likewise.
1279 (rest_of_handle_delay_slots): Likewise.
1280 (pass_delay_slots::gate): Likewise.
1281 * toplev.c (process_options): Likewise.
1283 2015-10-21 Richard Henderson <rth@redhat.com>
1285 * targhooks.c (default_addr_space_pointer_mode): Remove check
1286 for generic address space.
1287 (default_addr_space_address_mode): Likewise.
1288 (default_addr_space_valid_pointer_mode): Likewise.
1289 (default_addr_space_legitimate_address_p): Likewise.
1290 (default_addr_space_legitimize_address): Likewise.
1291 * target.def (addr_space.pointer_mode): Update documentation
1292 of default behavior.
1293 (addr_space.address_mode): Likewise.
1296 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
1299 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1301 * builtins.c (fold_builtin_cabs): Delete.
1302 (fold_builtin_1): Update accordingly. Handle constant arguments here.
1303 * match.pd: Add rules previously handled by fold_builtin_cabs.
1305 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1307 * fold-const.h (fold_strip_sign_ops): Delete.
1308 * fold-const.c (fold_strip_sign_ops): Likewise.
1309 (fold_unary_loc, fold_binary_loc): Remove calls to it.
1310 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
1311 (fold_builtin_ccos): Delete.
1312 (fold_builtin_pow): Don't call fold_strip_sign_ops.
1313 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
1314 Remove fndecl argument.
1315 (fold_builtin_1): Update calls accordingly. Handle constant
1316 cos, cosh, ccos and ccosh here.
1318 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1320 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
1321 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
1322 * common.opt (fssa-backprop): New option.
1323 * fold-const.h (negate_mathfn_p): Declare.
1324 * fold-const.c (negate_mathfn_p): Make public.
1325 * timevar.def (TV_TREE_BACKPROP): New.
1326 * tree-pass.h (make_pass_backprop): Declare.
1327 * passes.def (pass_backprop): Add.
1328 * gimple-ssa-backprop.c: New file.
1330 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1331 Sebastian Pop <s.pop@samsung.com>
1333 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
1334 Do not call create_empty_if_region_on_edge when cond_expr is true.
1335 (translate_isl_ast_node_for): Check whether a guard has been generated.
1337 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1339 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
1340 (operator=): Removed.
1341 (dr_info): Make alias_set number the last argument with default
1342 value of invalid_alias_set.
1343 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
1345 (rewrite_reductions_out_of_ssa): Iterate only through the
1346 basic blocks which are inside region.
1347 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1348 * sese.h (struct sese_l): Removed assignment operator.
1349 (split_region_for_bb): Removed dead code.
1351 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1353 * graphite-poly.h (struct dr_info): Removed conversion constructor.
1354 (struct scop): Renamed scop::region to scop::scop_info
1355 (scop_set_region): Same.
1356 (SCOP_REGION): Removed
1357 (SCOP_CONTEXT): Removed.
1358 (POLY_SCOP_P): Removed.
1359 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1360 Rename scop->region to scop->scop_info.
1361 (add_parameters_to_ivs_params): Same.
1362 (graphite_regenerate_ast_isl): Same.
1363 * graphite-poly.c (new_scop): Same.
1365 (print_scop_params): Same.
1366 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
1367 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
1368 (dot_all_scops_1): Rename scop->region to scop->scop_info.
1369 (scop_detection::nb_pbbs_in_loops): Same.
1370 (find_scop_parameters): Same.
1371 (try_generate_gimple_bb): Same.
1372 (gather_bbs::before_dom_children): Same.
1373 (gather_bbs::after_dom_children): Same.
1374 (build_scops): Same.
1375 * graphite-sese-to-poly.c (build_scop_scattering): Same.
1376 (extract_affine_chrec): Same.
1377 (extract_affine): Same.
1378 (set_scop_parameter_dim): Same.
1379 (build_loop_iteration_domains): Same.
1380 (create_pw_aff_from_tree): Same.
1381 (add_param_constraints): Same.
1382 (build_scop_iteration_domain): Same.
1383 (build_scop_drs): Same.
1384 (analyze_drs_in_stmts): Same.
1385 (insert_out_of_ssa_copy_on_edge): Same.
1386 (rewrite_close_phi_out_of_ssa):Same.
1387 (rewrite_reductions_out_of_ssa):Same.
1388 (handle_scalar_deps_crossing_scop_limits):Same.
1389 (rewrite_cross_bb_scalar_deps):Same.
1390 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
1391 (build_poly_scop):Same.
1392 (build_alias_set): Use pointer to dr_info.
1393 * graphite.c (print_graphite_scop_statistics):
1394 (graphite_transform_loops):
1395 * sese.h (struct sese_l): Remove conversion constructor.
1397 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1400 * tree.c (verify_type): Verify that TYPE_MODE match
1401 between TYPE_CANONICAL and type.
1402 * expr.c (store_expr_with_bounds): Revert my previous change.
1403 * expmed.c (store_bit_field_1): Revert prevoius change.
1404 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
1405 to match for all types.
1407 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
1409 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
1412 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
1414 * doc/tm.texi: Regenerated.
1415 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
1416 * stor-layout.c (layout_type): Use mode to get vector mask size.
1417 * target.def (get_mask_mode): New.
1418 * targhooks.c (default_get_mask_mode): New.
1419 * targhooks.h (default_get_mask_mode): New.
1420 * gcc/tree-vect-stmts.c (get_same_sized_vectype): Add special case
1422 * tree.c (MAX_BOOL_CACHED_PREC): New.
1423 (nonstandard_boolean_type_cache): New.
1424 (build_nonstandard_boolean_type): New.
1425 (make_vector_type): Vector mask has no canonical type.
1426 (build_truth_vector_type): New.
1427 (build_same_sized_truth_vector_type): New.
1428 (truth_type_for): Support vector masks.
1429 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
1430 (build_truth_vector_type): New.
1431 (build_same_sized_truth_vector_type): New.
1432 (build_nonstandard_boolean_type): New.
1433 * tree-cfg.c (verify_gimple_comparison) Require boolean
1434 vector type for vector comparison.
1435 (verify_gimple_assign_ternary): Likewise.
1436 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
1438 * tree-vect-stmts.c (vectorizable_condition): Use boolean
1439 vector type for vector comparison.
1440 * tree-vect-generic.c (elem_op_func): Add new operand to hold
1442 (do_unop): Adjust to modified function type.
1443 (do_binop): Likewise.
1444 (do_plus_minus): Likewise.
1445 (do_negate); Likewise.
1446 (expand_vector_piecewise): Likewise.
1447 (do_cond): Likewise.
1448 (do_compare): Use comparison instead of condition.
1449 (expand_vector_divmod): Use boolean vector type for comparison.
1450 (expand_vector_operations_1): Skip scalar mask operations.
1452 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
1454 * omp-low.c (simd_clone_create): Set in_other_partition
1457 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
1459 * doc/extend.exp (Local Register Variables): Rewrite.
1461 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1463 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
1464 and x*x in cases where the operands are sign ops. Extend these
1465 rules to handle copysign as a sign op (including for cos, cosh
1466 and pow, which already treated negate and abs as sign ops).
1468 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
1471 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
1472 for 64-bit MS_ABI targets also when default incoming stack boundary
1475 2015-10-21 Richard Biener <rguenther@suse.de>
1477 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
1478 cond stmts, enhanced and split out from ...
1479 (vn_phi_eq): ... here.
1481 2015-10-21 Richard Biener <rguenther@suse.de>
1484 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
1485 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
1486 (tree_single_nonnegative_warnv_p): ... here. For SSA names
1487 make sure they are not registered for update.
1489 2015-10-21 Richard Biener <rguenther@suse.de>
1491 PR tree-optimization/68026
1492 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
1493 unsigned VARYING values.
1495 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1497 * asan.c (asan_emit_stack_protection): Don't pass local stack to
1498 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
1499 NULL and use local stack than.
1500 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
1501 in addition to __asan_init.
1502 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
1503 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
1504 * asan.h (asan_intercepted_p): Handle new string builtins.
1505 * ubsan.c (ubsan_use_new_style_p): New function.
1506 (ubsan_instrument_float_cast): If location is unknown, assign
1507 input_location to loc. Propagate loc to ubsan_create_data if
1508 ubsan_use_new_style_p returned true.
1510 2015-10-21 Jeff Law <law@redhat.com>
1512 * Makefile.in (OBJS): Remove sched-vis.c
1513 * sched-vis.c: Removed. Code moved into...
1514 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
1515 * rtl.h: Remove prototypes for functions now living in print-rtl.c
1516 * print-rtl.h Add prototypes for new functions in print-rtl.c.
1517 * auto-inc-dec.c: Include print-rtl.h
1518 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
1519 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
1521 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
1524 2015-10-21 Richard Biener <rguenther@suse.de>
1525 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1527 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
1529 Move (a * (1 << b)) is (a << b) to match.pd.
1530 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
1531 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
1532 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
1534 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
1536 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
1537 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
1538 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
1540 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
1542 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
1544 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
1545 Szabolcs Nagy <szabolcs.nagy@arm.com>
1546 Alan Modra <amodra@gmail.com>
1548 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
1549 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
1550 (LINK_SPEC): Add %(link_secure_plt).
1551 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
1552 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
1554 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
1555 Szabolcs Nagy <szabolcs.nagy@arm.com>
1557 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
1558 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
1560 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1562 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
1564 (fusion_load_store): Use it.
1565 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
1566 ldp and stp in VD modes.
1567 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
1568 (store_pair<mode>, VD): Likewise.
1570 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
1572 PR rtl-optimization/67609
1573 * lra-splill.c (lra_final_code_change): Don't remove all
1576 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1578 * simplify-rtx.c (simplify_binary_operation): If either operand was
1579 a constant pool reference use them if all other simplifications failed.
1581 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1583 * config/aarch64/aarch64.md
1584 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
1585 * config/aarch64/aarch64-simd.md
1586 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
1587 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
1588 (aarch64_fpconst_pow_of_2): New function.
1589 (aarch64_vec_fpconst_pow_of_2): Likewise.
1590 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
1592 (aarch64_vec_fpconst_pow_of_2): Likewise.
1593 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
1594 (aarch64_fp_vec_pow2): Likewise.
1596 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
1598 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
1599 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
1600 * config/alpha/alpha.c (alpha_function_arg_advance): Update
1601 ALPHA_ARG_SIZE usage.
1602 (alpha_arg_partial_bytes): Ditto.
1604 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
1607 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
1608 error_mark_node decls.
1610 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
1614 * common/config/i386/i386-common.c (ix86_handle_option): Remove
1615 OPT_miamcu handling.
1616 * config/i386/i386.c (PTA_NO_80387): New macro.
1617 (processor_alias_table): Add PTA_NO_80387 to lakemont.
1618 (ix86_option_override_internal): Update MASK_80387 from
1619 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
1620 SSE math only if 80387 is supported. Don't change
1622 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
1624 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
1625 if TARGET_80387 is true and TARGET_IAMCU is false.
1626 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
1627 is true and TARGET_IAMCU_P is false.
1629 2015-10-20 Richard Biener <rguenther@suse.de>
1631 PR tree-optimization/68017
1632 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
1634 2015-10-20 Martin Liska <mliska@suse.cz>
1636 * cgraphclones.c (cgraph_node::create_virtual_clone):
1637 Verify cgraph_node.local.versionable instead of calling
1638 tree_versionable_function_p.
1639 * ipa-cp.c (determine_versionability): Save the information
1640 to ipa_node_params summary.
1641 (ipcp_versionable_function_p): Use it.
1642 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
1643 (ipcp_generate_summary): Do not compute cgraph_node
1645 * ipa-inline-analysis.c (inline_generate_summary): Compute
1646 versionability for all cgraph nodes.
1647 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
1648 ipa_node_params::versionability.
1649 * ipa-prop.h (struct ipa_node_params): Declare it.
1651 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1654 * varasm.c (assemble_variable): Move special vtv handling to..
1655 (handle_vtv_comdat_sections): .. here. New function.
1656 (output_object_block): Handle vtv sections.
1658 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
1661 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
1663 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
1665 * doc/extend.texi: Update documentation WRT inline functions.
1667 2015-10-20 Alan Modra <amodra@gmail.com>
1670 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
1671 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
1672 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
1674 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
1676 PR rtl-optimization/66790
1677 * df.h (DF_MIR): New macro.
1678 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
1679 (DF_MIR_INFO_BB): New macro.
1680 (DF_MIR_IN, DF_MIR_OUT): New macros.
1681 (struct df_mir_bb_info): New.
1682 (df_mir): New macro.
1683 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
1685 (df_mir_get_bb_info): New.
1686 * df-problems.c (struct df_mir_problem_data): New.
1687 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
1688 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
1689 df_mir_confluence_0, df_mir_confluence_n,
1690 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
1691 df_mir_bottom_dump, df_mir_verify_solution_start,
1692 df_mir_verify_solution_end): New.
1694 (df_mir_add_problem, df_mir_simulate_one_insn): New.
1695 * timevar.def (TV_DF_MIR): New.
1696 * ree.c: Include bitmap.h
1697 (add_removable_extension): Add an INIT_REGS parameter. Use it
1698 to skip zero-extensions that may get an uninitialized register.
1699 (find_removable_extensions): Compute must-initialized registers
1700 using the MIR dataflow problem. Update the call to
1701 add_removable_extension.
1702 (find_and_remove_re): Call df_mir_add_problem.
1704 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
1706 * common/config/mn10300/mn10300-common.c
1707 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
1708 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
1710 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
1712 * doc/extend.texi (Explicit Register Variables): Simplify and
1713 avoid unnecessary and confusion abbreviations. Update cross
1715 doc/implement-c.tex: Update cross reference.
1717 2015-10-19 Jeff Law <law@redhat.com>
1719 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
1720 that create irreducible loops unless the path elimiantes a multiway
1723 2015-10-19 Richard Biener <rguenther@suse.de>
1725 PR tree-optimization/67975
1726 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
1727 * tree-cfg.c (extract_true_false_controlled_edges): Split out
1728 core worker from ...
1729 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
1730 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
1731 instead of block number for PHIs with two or one args.
1732 (vn_phi_eq): Compare edge predicates of PHIs that are in different
1735 2015-10-19 Richard Biener <rguenther@suse.de>
1737 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
1738 (gimple_stmt_nonnegative_warnv_p): Use it.
1739 * match.pd (CPROJ): New operator list.
1740 (cproj (complex ...)): Move simplifications from ...
1741 * builtins.c (fold_builtin_cproj): ... here.
1743 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
1745 * config/i386/i386.c (ix86_expand_vector_move): Use
1746 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
1749 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
1751 * doc/invoke.texi: Replace @optindex with @opindex.
1753 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
1756 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
1757 arch= is set, clear all bits in x_ix86_isa_flags, except for
1758 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
1760 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
1763 * common.opt (fkeep-static-functions): New option.
1764 * doc/invoke.texi: Document it.
1765 * cgraphunit.c (cgraph_node::finalize_function): Use it.
1767 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1769 * sched-int.h (struct autopref_multipass_data_): Remove offset
1770 field. Add min_offset, max_offset, multi_mem_insn_p fields.
1771 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
1772 (autopref_multipass_init): Use it. Handle PARALLEL sets.
1773 (autopref_rank_data): New function.
1774 (autopref_rank_for_schedule): Use it.
1775 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
1777 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
1780 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
1782 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1784 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
1785 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
1786 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
1787 (STANDARD_STARTFILE_PREFIX_1): New.
1788 (STANDARD_STARTFILE_PREFIX_2): New.
1790 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1792 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
1793 (darwin_driver_init): Note a version-min when provided on the c/l.
1794 * config/darwin.h (%darwin_minversion): Remove.
1795 * config/i386/darwin.h: Likewise.
1796 * config/rs6000/darwin.h: Likewise.
1797 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
1798 rather than an arbitrary constant.
1800 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1802 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
1803 PPC, detect conflicts between -arch and multilib settings. Detect
1804 and warn about conflicts between multiple -arch definitions.
1806 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1808 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
1810 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1812 * lra-constraints.c (add_next_usage_insn): Change argument type
1813 from rtx to rtx_insn *.
1815 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
1817 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
1820 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
1822 * config/tilepro/gen-mul-tables.cc: Adjust include files.
1823 * config/tilegx/mul-tables.c: Regenerate.
1824 * config/tilepro/mul-tables.c: Regenerate.
1826 * config/tilegx/tilegx-c.c: Adjust include files.
1827 * config/tilegx/tilegx.c: Likewise.
1828 * config/tilepro/tilepro-c.c: Likewise.
1829 * config/tilepro/tilepro.c: Likewise.
1830 * config/aarch64/aarch64-builtins.c: Likewise.
1831 * config/aarch64/aarch64.c: Likewise.
1832 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1833 * config/alpha/alpha.c: Likewise.
1834 * config/arc/arc.c: Likewise.
1835 * config/arm/aarch-common.c: Likewise.
1836 * config/arm/arm-builtins.c: Likewise.
1837 * config/arm/arm-c.c: Likewise.
1838 * config/arm/arm.c: Likewise.
1839 * config/avr/avr-c.c: Likewise.
1840 * config/avr/avr-devices.c: Likewise.
1841 * config/avr/avr-log.c: Likewise.
1842 * config/avr/avr.c: Likewise.
1843 * config/bfin/bfin.c: Likewise.
1844 * config/c6x/c6x.c: Likewise.
1845 * config/cr16/cr16.c: Likewise.
1846 * config/cris/cris.c: Likewise.
1847 * config/darwin-c.c: Likewise.
1848 * config/darwin-driver.c: Likewise.
1849 * config/darwin.c: Likewise.
1850 * config/default-c.c: Likewise.
1851 * config/epiphany/epiphany.c: Likewise.
1852 * config/epiphany/mode-switch-use.c: Likewise.
1853 * config/epiphany/resolve-sw-modes.c: Likewise.
1854 * config/fr30/fr30.c: Likewise.
1855 * config/frv/frv.c: Likewise.
1856 * config/ft32/ft32.c: Likewise.
1857 * config/glibc-c.c: Likewise.
1858 * config/h8300/h8300.c: Likewise.
1859 * config/i386/host-cygwin.c: Likewise.
1860 * config/i386/host-mingw32.c: Likewise.
1861 * config/i386/i386-c.c: Likewise.
1862 * config/i386/i386.c: Likewise.
1863 * config/i386/msformat-c.c: Likewise.
1864 * config/i386/winnt-cxx.c: Likewise.
1865 * config/i386/winnt-stubs.c: Likewise.
1866 * config/i386/winnt.c: Likewise.
1867 * config/ia64/ia64-c.c: Likewise.
1868 * config/ia64/ia64.c: Likewise.
1869 * config/iq2000/iq2000.c: Likewise.
1870 * config/lm32/lm32.c: Likewise.
1871 * config/m32c/m32c-pragma.c: Likewise.
1872 * config/m32c/m32c.c: Likewise.
1873 * config/m32r/m32r.c: Likewise.
1874 * config/mcore/mcore.c: Likewise.
1875 * config/mep/mep-pragma.c: Likewise.
1876 * config/mep/mep.c: Likewise.
1877 * config/microblaze/microblaze-c.c: Likewise.
1878 * config/microblaze/microblaze.c: Likewise.
1879 * config/mips/mips-tables.opt
1880 * config/mips/mips.c: Likewise.
1881 * config/mmix/mmix.c: Likewise.
1882 * config/mn10300/mn10300.c: Likewise.
1883 * config/moxie/moxie.c: Likewise.
1884 * config/msp430/msp430-c.c: Likewise.
1885 * config/msp430/msp430.c: Likewise.
1886 * config/nds32/nds32-cost.c: Likewise.
1887 * config/nds32/nds32-fp-as-gp.c: Likewise.
1888 * config/nds32/nds32-intrinsic.c: Likewise.
1889 * config/nds32/nds32-isr.c: Likewise.
1890 * config/nds32/nds32-md-auxiliary.c: Likewise.
1891 * config/nds32/nds32-memory-manipulation.c: Likewise.
1892 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1893 * config/nds32/nds32-predicates.c: Likewise.
1894 * config/nds32/nds32.c: Likewise.
1895 * config/nios2/nios2.c: Likewise.
1896 * config/nvptx/mkoffload.c: Likewise.
1897 * config/nvptx/nvptx.c: Likewise.
1898 * config/pa/pa.c: Likewise.
1899 * config/pdp11/pdp11.c: Likewise.
1900 * config/rl78/rl78-c.c: Likewise.
1901 * config/rl78/rl78.c: Likewise.
1902 * config/rs6000/host-darwin.c: Likewise.
1903 * config/rs6000/rs6000-c.c: Likewise.
1904 * config/rs6000/rs6000-linux.c: Likewise.
1905 * config/rs6000/rs6000.c: Likewise.
1906 * config/rx/rx.c: Likewise.
1907 * config/s390/s390-c.c: Likewise.
1908 * config/s390/s390.c: Likewise.
1909 * config/sh/sh-c.c: Likewise.
1910 * config/sh/sh-mem.cc: Likewise.
1911 * config/sh/sh.c: Likewise.
1912 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
1913 * config/sh/sh_treg_combine.cc: Likewise.
1914 * config/sol2-c.c: Likewise.
1915 * config/sol2-cxx.c: Likewise.
1916 * config/sol2-stubs.c: Likewise.
1917 * config/sol2.c: Likewise.
1918 * config/sparc/sparc-c.c: Likewise.
1919 * config/sparc/sparc.c: Likewise.
1920 * config/spu/spu-c.c: Likewise.
1921 * config/spu/spu.c: Likewise.
1922 * config/stormy16/stormy16.c: Likewise.
1923 * config/v850/v850-c.c: Likewise.
1924 * config/v850/v850.c: Likewise.
1925 * config/vax/vax.c: Likewise.
1926 * config/visium/visium.c: Likewise.
1927 * config/vms/vms-c.c: Likewise.
1928 * config/vms/vms.c: Likewise.
1929 * config/vxworks.c: Likewise.
1930 * config/winnt-c.c: Likewise.
1931 * config/xtensa/xtensa.c: Likewise.
1933 2015-10-16 Christian Bruel <christian.bruel@st.com>
1936 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
1937 (FUNCTION_BOUNDARY_P): New macro:
1938 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
1940 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
1941 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
1942 * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
1943 * gcc/function.c (allocate_struct_function): Call
1944 relayout_function hook.
1945 * gcc/passes.c (rest_of_decl_compilation): Likewise.
1947 2015-10-16 Christian Bruel <christian.bruel@st.com>
1950 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
1951 * config/arm/arm.c (arm_option_override_internal): Call
1952 arm_override_options_after_change_1.
1953 (arm_override_options_after_change): New function.
1954 (arm_override_options_after_change_1): Likewise.
1955 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
1957 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1960 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
1963 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
1965 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
1966 argument is an ADDR_EXPR.
1968 2015-10-16 Richard Biener <rguenther@suse.de>
1970 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
1971 and get rid of force_gimple_operand_gsi.
1972 (gimple_fold_builtin_memory_chk): Likewise.
1973 (gimple_fold_builtin_stxcpy_chk): Likewise.
1974 (rewrite_to_defined_overflow): Likewise.
1975 (gimple_convert_to_ptrofftype): New function.
1976 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
1978 2015-10-16 Richard Biener <rguenther@suse.de>
1980 * tree-nested.h (build_addr): Adjust prototype.
1981 * tree-nested.c (build_addr): Remove context argument and use
1983 (get_static_chain): Adjust calls to build_addr.
1984 (convert_nl_goto_reference): Likewise.
1985 (convert_tramp_reference_op): Likewise.
1986 (finalize_nesting_tree_1): Likewise.
1987 * value-prof.c (gimple_ic): Likewise.
1988 * gimple-low.c (lower_builtin_setjmp): Likewise.
1989 * tree-parloops.c (take_address_of): Likewise.
1990 (create_call_for_reduction_1): Likewise.
1991 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
1992 (gimple_gen_ic_func_profiler): Likewise.
1994 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1996 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
1999 2015-10-16 Michael Collison <michael.collison@linaro.org>
2000 Andrew Pinski <andrew.pinski@caviumnetworks.com>
2002 * match.pd ((x < y) && (x < z) -> x < min (y,z),
2003 (x > y) and (x > z) -> x > max (y,z))
2005 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
2006 Szabolcs Nagy <szabolcs.nagy@arm.com>
2008 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
2009 (DYNAMIC_LINKER): Renamed to ...
2010 (GLIBC_DYNAMIC_LINKER): This.
2011 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
2013 2015-10-15 Marek Polacek <polacek@redhat.com>
2015 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
2016 gimple_call_builtin instead of is_gimple_call.
2018 2015-10-15 Richard Biener <rguenther@suse.de>
2020 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
2022 2015-10-15 Richard Biener <rguenther@suse.de>
2024 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
2025 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
2026 * tree-vect-loop.c (get_initial_def_for_induction): Drop
2027 use of force_gimple_operand in favor of gimple_build.
2028 Use vect_get_new_ssa_name.
2029 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
2030 (vectorizable_mask_load_store): Likewise.
2031 (vectorizable_call): Likewise.
2032 (vectorizable_store): Likewise.
2033 (vectorizable_load): Likewise.
2034 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
2036 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
2038 PR tree-optimization/67945
2039 * tree-pass.h (PROP_gimple_opt_math): New property flag.
2040 * generic-match-head.c (canonicalize_math_p): New function.
2041 * gimple-match-head.c: Include tree-pass.h.
2042 (canonicalize_math_p): New function.
2043 * match.pd: Group math built-in rules into simplifications
2044 and canonicalizations. Guard the latter with canonicalize_math_p.
2045 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
2046 PROP_gimple_opt_math property.
2048 2015-10-15 Marek Polacek <polacek@redhat.com>
2050 PR tree-optimization/67953
2051 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
2053 2015-10-15 Jiong Wang <jiong.wang@arm.com>
2055 * config.gcc: Recognize "." in architecture base name for AArch64.
2057 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
2059 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
2061 * config/mips/mips.c (mips_setup_incoming_varargs): Use
2062 ROUND_DOWN to calculate off.
2063 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
2064 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
2067 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
2069 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
2071 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
2072 Torvald Riegel <triegel@redhat.com>
2075 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
2076 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
2077 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
2078 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
2079 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
2080 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
2081 trechkpt, treclaim, tsr, ttest): New define_expands.
2082 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2083 __TM_FENCE__ for htm.
2084 * doc/extend.texi: Update documentation for htm builtins.
2086 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
2089 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
2090 REG_CFA_EXPRESSION to aligned SSE stores.
2092 2015-10-14 Jeff Law <law@redhat.com>
2094 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
2095 num_threaded_edges for successful FSM threads too.
2097 2015-10-14 Richard Biener <rguenther@suse.de>
2099 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
2100 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
2101 (vect_get_vec_def_for_operand): Remove unused parameter.
2102 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
2103 (vect_create_epilog_for_reduction): Likewise.
2104 (vectorizable_reduction): Likewise.
2105 (vectorizable_live_operation): Likewise.
2106 * tree-vect-patterns.c (type_conversion_p): Likewise.
2107 (vect_recog_vector_vector_shift_pattern): Likewise.
2108 (check_bool_pattern): Likewise.
2109 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
2110 (vect_analyze_slp_cost_1): Likewise.
2111 * tree-vect-stmts.c (process_use): Likewise.
2112 (vect_get_vec_def_for_operand): Do not handle reductions.
2113 (vect_get_vec_defs): Adjust.
2114 (vectorizable_mask_load_store): Likewise.
2115 (vectorizable_call): Likewise.
2116 (vectorizable_simd_clone_call): Likewise.
2117 (vect_get_loop_based_defs): Likewise.
2118 (vectorizable_conversion): Likewise.
2119 (vectorizable_assignment): Likewise.
2120 (vectorizable_shift): Likewise.
2121 (vectorizable_operation): Likewise.
2122 (vectorizable_store): Likewise.
2123 (vectorizable_load): Likewise.
2124 (vect_is_simple_cond): Likewise.
2125 (vectorizable_condition): Likewise.
2126 (vect_is_simple_use): Remove unused parameters.
2127 (vect_is_simple_use_1): Adjust and rename.
2129 2015-10-14 Richard Biener <rguenther@suse.de>
2131 PR tree-optimization/67915
2132 * match.pd: Handle comparisons of addresses of STRING_CSTs.
2133 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
2134 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
2135 stmt folding in favor of GIMPLE one.
2137 2015-10-14 Marek Polacek <polacek@redhat.com>
2139 PR tree-optimization/67815
2140 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
2141 (reassociate_bb): Call it.
2143 2015-10-14 Richard Biener <rguenther@suse.de>
2145 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2146 Reset info at start.
2147 (vect_analyze_group_access_1): Add debug print.
2148 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
2149 (vect_compute_single_scalar_iteration_cost): ... to this.
2150 (vect_analyze_loop_2): Adjust.
2151 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
2152 * tree-vectorizer.h: ... here.
2153 (add_stmt_info_to_vec): Remove.
2154 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
2156 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
2158 * targhooks.c (default_target_option_pragma_parse): Do not warn if
2159 called on behalf of "#pragma GCC pop_options".
2161 2015-10-14 Tom de Vries <tom@codesourcery.com>
2163 * cfganal.c (verify_no_unreachable_blocks): New function.
2164 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
2165 verify_no_unreachable_blocks.
2166 cfganal.h (verify_no_unreachable_blocks): Declare.
2168 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
2170 * common.opt: Add flag_checking.
2171 * system.h (CHECKING_P): Define.
2173 2015-10-13 Jakub Jelinek <jakub@redhat.com>
2174 Aldy Hernandez <aldyh@redhat.com>
2175 Ilya Verbin <ilya.verbin@intel.com>
2177 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
2178 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
2179 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
2180 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
2181 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
2182 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
2183 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
2184 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
2185 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
2186 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
2187 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
2188 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
2189 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
2190 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
2191 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
2192 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
2193 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
2194 (struct cgraph_simd_clone_arg): Adjust comment.
2195 * coretypes.h (struct gomp_ordered): New forward decl.
2196 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
2197 set critical clauses to it.
2198 (gimple_build_omp_ordered): Return gomp_ordered * instead of
2199 gimple *. Add CLAUSES argument, set ordered clauses to it.
2200 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
2202 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
2203 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
2204 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
2205 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
2206 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
2207 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
2208 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
2209 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
2211 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
2212 (gomp_critical): Add clauses field.
2213 (gomp_ordered): New struct.
2214 (is_a_helper <gomp_ordered *>::test): New inline.
2215 (gimple_build_omp_critical): Add CLAUSES argument.
2216 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
2217 instead of gimple *.
2218 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
2219 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
2220 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
2221 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
2223 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
2224 (dump_gimple_omp_target): Handle enter data and exit data.
2225 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
2226 (dump_gimple_omp_critical): Print clauses.
2227 (dump_gimple_omp_ordered): New function.
2228 (dump_gimple_omp_task): Handle taskloop.
2229 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
2231 * gimple-walk.c (walk_gimple_op): Walk clauses on
2232 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
2233 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
2234 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
2235 (struct gimplify_omp_ctx): Add loop_iter_var,
2236 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
2237 and target_firstprivatize_array_bases fields.
2238 (delete_omp_context): Release loop_iter_var.
2239 (gimplify_bind_expr): Handle ORT_NONE.
2240 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
2241 ORT_COMBINED_TARGET.
2242 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
2243 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
2244 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
2245 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
2246 ctx->target_map_scalars_firstprivate.
2247 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
2248 data sharing clauses. For data sharing clause with VLA decl
2249 on omp target/target data don't add firstprivate for the pointer.
2250 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
2251 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
2252 the addition of ORT_COMBINED_TARGET.
2253 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
2254 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
2255 pointers as zero length array sections and
2256 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
2258 (omp_check_private): Handle omp_member_access_dummy_var vars.
2259 (find_decl_expr): New function.
2260 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
2261 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
2262 Handle OMP_CLAUSE_GANG separately. Handle
2263 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
2264 clauses. Diagnose linear clause on combined
2265 distribute {, parallel for} simd construct, unless it is the loop
2266 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
2267 Handle map clauses with COMPONENT_REF. Initialize
2268 ctx->target_map_scalars_firstprivate,
2269 ctx->target_firstprivatize_array_bases and
2270 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
2271 linear clause even to target region if combined. Remove
2272 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
2273 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
2274 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
2275 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
2276 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
2277 For linear clause on worksharing loop combined with parallel add
2278 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
2279 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
2280 omp_member_access_dummy_var vars. Add lastprivate clause to outer
2282 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
2283 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
2284 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
2286 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
2287 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
2288 in target body. Handle removal of struct mapping if struct is not
2289 seen in target body. Remove GOMP_MAP_STRUCT map clause on
2290 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
2291 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
2292 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
2293 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
2294 clause appear together. Handle
2295 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
2296 clause if it has map-type-modifier always. Handle
2297 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
2299 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
2300 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
2302 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
2303 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
2304 iterators in doacross loops.
2305 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
2306 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
2307 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
2308 for the addition of ORT_COMBINED_TARGET.
2309 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
2310 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
2311 and OMP_TARGET_EXIT_DATA.
2312 (gimplify_omp_ordered): New function.
2313 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
2314 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
2315 Gimplify clauses on OMP_CRITICAL.
2316 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
2317 expand_GOMP_SIMD_ORDERED_END): New functions.
2318 * internal-fn.def (GOMP_SIMD_ORDERED_START,
2319 GOMP_SIMD_ORDERED_END): New internal functions.
2320 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
2321 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
2322 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
2323 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
2324 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
2325 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
2326 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
2327 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
2328 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
2329 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
2330 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
2331 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
2332 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
2333 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
2335 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
2336 GOMP_target_data_41, adjust type.
2337 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
2338 GOMP_target_update_41, adjust type.
2339 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
2341 (struct omp_for_data): Add ordered and simd_schedule fields.
2342 (omp_member_access_dummy_var, unshare_and_remap_1,
2343 unshare_and_remap, is_taskloop_ctx): New functions.
2344 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
2345 (extract_omp_for_data): Handle taskloops and doacross loops
2346 and simd schedule modifier.
2347 (omp_adjust_chunk_size): New function.
2348 (get_ws_args_for): Use it.
2349 (lookup_sfield): Change first argument to splay_tree_key,
2350 add overload with first argument tree.
2351 (maybe_lookup_field): Likewise.
2352 (use_pointer_for_field): Handle omp_member_access_dummy_var.
2353 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
2354 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
2355 (build_outer_var_ref): Add LASTPRIVATE argument, handle
2356 taskloops and omp_member_access_dummy_var vars.
2357 (build_sender_ref): Change first argument to splay_tree_key,
2358 add overload with first argument tree.
2359 (install_var_field): For mask & 8 use &DECL_UID as key instead
2361 (fixup_child_record_type): Const qualify *.omp_data_i.
2362 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
2363 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
2364 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
2365 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
2366 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
2367 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
2368 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
2370 (add_taskreg_looptemp_clauses): New function.
2371 (scan_omp_parallel): Use it.
2372 (scan_omp_task): Likewise.
2373 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
2374 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
2375 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
2376 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
2377 sandwiched taskloop constructs. Type check
2378 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
2379 region. Diagnose depend(source) or depend(sink:...) on
2380 target constructs or task/taskloop.
2381 (handle_simd_reference): Use get_name.
2382 (lower_rec_input_clauses): Likewise. Ignore all
2383 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
2384 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
2385 before passing it to omp_clause_{default,copy}_ctor. Handle
2386 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
2387 lastprivate_firstprivate flag for linear that needs copyin and
2388 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
2389 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
2390 on taskloop lookup decl in outer context. Pass true to
2391 build_outer_var_ref lastprivate argument. Handle
2392 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
2393 outside of outer taskloop for.
2394 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
2396 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
2397 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
2398 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
2399 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
2400 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
2401 abstract origin. Handle omp_member_access_dummy_var vars.
2402 (expand_parallel_call): Use expand_omp_build_assign.
2403 (expand_task_call): Handle taskloop construct expansion. Add
2404 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
2405 integers. Add priority argument to GOMP_task* calls. Or in
2406 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
2408 (expand_omp_build_assign): Add prototype. Add AFTER
2409 argument, if true emit statements after *GSI_P and continue linking.
2410 (expand_omp_taskreg): Adjust expand_task_call caller.
2411 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
2412 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
2413 zero_iter2_bb and first_zero_iter2 arguments, handle computation
2414 of counts even for ordered loops.
2415 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
2416 (expand_omp_ordered_source, expand_omp_ordered_sink,
2417 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
2419 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
2420 clauses on worksharing loop. Handle DOACROSS loop expansion.
2421 (expand_omp_for_static_nochunk): Handle linear clauses on
2422 worksharing loop. Adjust expand_omp_for_init_counts
2424 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
2425 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
2426 expand_omp_for_init_counts callers.
2427 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
2429 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
2430 Handle doacross loops.
2431 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
2432 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
2433 GOMP_target_{41,update_41,enter_exit_data} libcalls.
2434 (expand_omp): Don't expand ordered depend constructs here, record
2435 ord_stmt instead for later expand_omp_for_generic.
2436 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
2437 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
2438 clause as stand-alone directive.
2439 (lower_omp_ordered_clauses): New function.
2440 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
2441 don't lower anything.
2442 (lower_omp_for_lastprivate): Use last _looptemp_ clause
2443 on taskloop for comparison.
2444 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
2445 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
2446 expansion for linear adjustments.
2447 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
2448 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
2449 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
2450 to tree * pointing to the stmt's clauses.
2451 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
2452 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
2453 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
2454 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
2455 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
2456 clauses. Always use short kind and 8-bit align shift.
2457 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
2458 (struct lower_omp_regimplify_operands_data): New type.
2459 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
2461 (lower_omp_1): Use lower_omp_regimplify_operands instead of
2462 gimple_regimplify_operands.
2463 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
2464 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
2465 clause as stand-alone directive.
2466 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
2467 (simd_clone_mangle): Mangle the various linear kinds
2469 (simd_clone_adjust_argument_types): Handle
2470 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
2471 (simd_clone_init_simd_arrays): Don't do anything for uval.
2472 (simd_clone_adjust): Handle
2473 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
2474 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
2475 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
2476 * omp-low.h (omp_member_access_dummy_var): New prototype.
2477 * passes.def (pass_simduid_cleanup): Schedule another copy of the
2478 pass after all optimizations.
2479 * tree.c (omp_clause_code_name): Add entries for
2480 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
2481 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
2482 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
2483 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
2484 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
2485 OMP_CLAUSE_REDUCTION 5 arguments. Handle
2486 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
2487 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
2489 * tree-core.h (enum omp_clause_linear_kind): New.
2490 (struct tree_omp_clause): Change type of map_kind
2491 from unsigned char to unsigned int. Add subcode.if_modifier
2492 and subcode.linear_kind fields.
2493 (enum omp_clause_code): Add
2494 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
2495 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
2496 (OMP_CLAUSE_REDUCTION): Document
2497 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
2498 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
2499 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
2500 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
2502 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
2504 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
2506 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
2507 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
2509 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
2510 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
2511 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
2512 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
2513 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
2514 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
2515 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
2516 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
2517 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
2518 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
2519 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
2520 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
2521 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
2522 * tree-inline.c (remap_gimple_stmt): Handle clauses on
2523 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
2524 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
2525 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
2526 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
2527 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
2528 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
2529 (convert_local_omp_clauses): Likewise.
2530 * tree-pretty-print.c (dump_omp_clause): Handle
2531 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
2532 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
2533 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
2534 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
2535 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
2536 GOMP_MAP_FORCE_DEALLOC. Handle
2537 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
2538 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
2539 and clauses on OMP_ORDERED and OMP_CRITICAL.
2540 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
2541 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
2542 (vectorize_loops): Adjust comments.
2543 (pass_simduid_cleanup::execute): Likewise.
2544 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
2545 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
2546 * wide-int.h (wi::gcd): New.
2548 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
2550 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
2551 (ix86_function_arg_advance): Ditto.
2552 (ix86_function_arg): Ditto.
2553 (ix86_gimplify_va_arg): Ditto.
2554 (ix86_class_max_nregs): Ditto.
2555 (inline_memory_move_cost): Ditto.
2556 (ix86_set_reg_reg_cost): Ditto.
2557 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
2559 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
2562 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
2564 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
2566 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
2567 ROUND_UP macro and UNITS_PER_WORD * 2.
2568 * config/sparc/sparc.c (sparc_compute_frame_size):
2569 Use ROUND_UP and ROUND_DOWN macros where applicable.
2570 (function_arg_record_value, function_arg_record_value_1)
2571 (function_arg_record_value_1): Ditto.
2572 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
2573 alignment to double-word.
2574 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
2575 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
2578 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
2580 * gcc/rtl.h (print_insn): Fix prototype.
2582 2015-10-13 Tom de Vries <tom@codesourcery.com>
2584 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
2585 -1. Add assert that returned entry matches phi argument.
2586 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
2587 free_stmt_vec_info_vec ...
2588 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
2591 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
2593 PR tree-optimization/67909, 67947
2594 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
2595 really skip the inner loop.
2597 2015-10-13 Jeff Law <law@redhat.com>
2599 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2600 Allow single block jump threading paths.
2602 2015-10-13 Tom de Vries <tom@codesourcery.com>
2604 PR tree-optimization/67476
2605 * doc/invoke.texi (@item parloops-schedule): New item.
2606 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
2607 * tree-parloops.c: Include params-enum.h.
2608 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
2610 2015-10-13 Tom de Vries <tom@codesourcery.com>
2612 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
2613 * params-enum.h: New file.
2614 * opts.c (handle_param): Handle case that param arg is a string.
2615 * params-list.h: Handle DEFPARAMENUM5 in params.def.
2616 * params.c (find_param): New function, factored out of ...
2617 (set_param_value): ... here.
2618 (param_string_value_p): New function.
2619 * params.h (struct param_info): Add value_names field.
2620 (find_param, param_string_value_p): Declare.
2622 2015-10-13 Tom de Vries <tom@codesourcery.com>
2624 PR tree-optimization/67476
2625 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
2627 2015-10-13 Richard Biener <rguenther@suse.de>
2629 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
2630 the data dependence vector.
2631 (vect_peeling_hash_insert): Get the peeling hash table as argument.
2632 (vect_peeling_hash_get_lowest_cost): Likewise.
2633 (vect_enhance_data_refs_alignment): Adjust.
2634 (struct _vect_peel_info, struct _vect_peel_extended_info,
2635 struct peel_info_hasher): Move from ...
2636 * tree-vectorizer.h: ... here.
2637 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
2638 (LOOP_VINFO_PEELING_HTAB): Likewise.
2639 (struct _loop_vec_info): Remove min_profitable_iters and
2640 peeling_htab members.
2641 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
2643 (destroy_loop_vec_info): Adjust.
2644 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
2645 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
2646 to estimate alias versioning cost.
2647 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
2649 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
2651 * real.h (real_isinteger): Declare.
2652 * real.c (real_isinteger): New function.
2653 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
2654 if y is an even integer.
2656 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2659 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2660 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
2661 counts when these are more informative.
2663 2015-10-12 Jeff Law <law@redhat.com>
2665 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
2666 (fsm_find_control_stmt_paths): Change name of first argument to
2667 more accurately relfect what it really is. Handle simplification
2668 of GIMPLE_COND after finding a thread path for NAME.
2669 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
2670 nontrivial conditions to be handled by FSM threader.
2671 (thread_through_normal_block): Extract the name to looup via
2672 FSM threader from COND_EXPR.
2674 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
2675 restriction that traced SSA_NAME is a user variable.
2677 2015-10-12 Tom de Vries <tom@codesourcery.com>
2679 PR tree-optimization/67476
2680 * omp-low.c (expand_omp_for_generic): Add missing phis.
2682 2015-10-12 Tom de Vries <tom@codesourcery.com>
2684 PR tree-optimization/67476
2685 * omp-low.c (expand_omp_for_generic): Handle simple latch.
2687 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
2689 * config/aarch64/aarch64-simd-builtins.def: Update builtins
2690 tables: add tbl3 and tbx4.
2691 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
2692 (aarch64_tbx4v8qi): New.
2693 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
2694 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
2695 Rewrite using builtin functions.
2696 * config/aarch64/iterators.md (UNSPEC_TBX): New.
2698 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
2700 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
2702 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
2703 Use ROUND_UP and ROUND_DOWN macros where applicable.
2704 (rs6000_darwin64_record_arg_flush): Ditto.
2705 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
2706 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
2709 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
2711 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
2712 (AARCH64_ROUND_DOWN): Ditto.
2713 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
2715 2015-10-12 Richard Biener <rguenther@suse.de>
2718 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
2719 code that analyzes IVs on each stmt but in a cheaper way avoiding
2722 2015-10-12 Nick Clifton <nickc@redhat.com>
2724 * config/msp430/msp430.c (msp430_mcu_names): Rename to
2725 msp430_mcu_data, add fields for ISA and hardware multiply
2726 support. Import latest data from the devices.csv file.
2727 (msp430_override_option): Use the data from the new array.
2728 (msp430_use_f5_series_hwmult): Likewise.
2729 (use_32bit_hwmult): Likewise.
2730 (msp430_no_hwmult): Likewise.
2731 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
2733 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
2734 not recognised then no hardware multiply support is assumed and
2735 that only the MSP430 ISA is allowed.
2737 2015-10-12 Richard Biener <rguenther@suse.de>
2739 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
2741 (vect_analyze_loop_2): ... here.
2743 2015-10-11 Jason Merrill <jason@redhat.com>
2746 * expr.c (store_field): Call store_constructor directly when
2747 storing a CONSTRUCTOR into a target smaller than its type.
2748 Guard against unsafe bitwise copy.
2750 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2752 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
2753 counts when these are more informative.
2755 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2757 * tree-profile.c (tree_profiling): Do not clear
2758 pure/const when not instrumenting.
2759 (pass tree_profile): Add dump of symtab.
2761 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2763 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
2765 (fold_addr_of_array_ref_difference): Likewise.
2767 2015-10-11 Jeff Law <law@redhat.com>
2769 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
2770 tree-ssa-threadbackward.c.
2771 (fsm_find_control_statement_thread_paths): Likewise.
2772 (thread_through_normal_block): Break out FSM bits and move them
2773 into a new function in tree-ssa-threadbackward.c. Call new function
2775 Minimize header file usage.
2776 * tree-ssa-threadbackward.h: New file.
2777 * tree-ssa-threadbackward.c: Likewise.
2778 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
2780 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
2782 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
2784 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
2786 PR rtl-optimization/67864
2787 * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
2788 fallthrough edges for conditional jumps. Don't sort candidate
2789 edges if not optimizing for speed.
2791 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2793 * defaults.h (REVERSE_CONDITION): New default definition.
2794 * jump.c (reversed_comparison_code_parts): Adjust.
2796 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2798 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
2799 check HARD_FRAME_POINTER_IS_ARG_POINTER.
2801 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2803 * defaults.h (FRAME_ADDR_RTX): New default definition.
2804 * builtins.c (expand_builtin_return_addr): Adjust.
2806 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2808 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
2809 * builtins.c (expand_builtin_return_addr): Adjust.
2811 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2813 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
2814 * builtins.c (expand_builtin_return_addr): Adjust.
2815 * doc/tm.texi: Likewise.
2816 * doc/tm.texi.in: Likewise.
2817 * except.c (expand_builtin_unwind_init): Likewise.
2819 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2821 * builtins.c (expand_builtin_return_addr): Adjust.
2822 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
2824 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
2826 * tree.c (type_with_interoperable_signedness): New.
2827 (gimple_canonical_types_compatible_p): Use it.
2828 * tree.h (type_with_interoperable_signedness): Declare
2830 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
2832 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
2833 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
2834 when OEP_ADDRESS_OF is se.
2836 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
2837 Sebastian Pop <s.pop@samsung.com>
2839 * graphite-dependences.c (scop_get_dependences): Add dump of the
2840 data dependence graph.
2841 * graphite-poly.c (print_isl_union_map): New.
2842 (debug_isl_union_map): New.
2843 * graphite-poly.h (print_isl_union_map): Declare.
2844 (debug_isl_union_map): Declare.
2846 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
2847 Sebastian Pop <s.pop@samsung.com>
2849 * graphite-poly.c (print_iteration_domain): Remove verbosity.
2850 Remove OpenScop formatting.
2851 (print_iteration_domains): Same.
2852 (debug_iteration_domain): Same.
2853 (debug_iteration_domains): Same.
2856 (dump_gbb_cases): Same.
2857 (dump_gbb_conditions): Same.
2860 (print_pbb_body): Same.
2862 (print_scop_params): Same.
2863 (print_scop_context): Same.
2865 (debug_pbb_domain): Same.
2867 (debug_scop_context): Same.
2869 (debug_scop_params): Same.
2870 * graphite-poly.h: Same.
2871 * graphite.c (graphite_transform_loops): Same.
2873 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2875 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
2876 call that isn't needed.
2878 2015-10-09 Jeff Law <law@redhat.com>
2880 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
2881 rather than moving each name to the freelist individually.
2883 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
2885 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
2886 * frame-header-opt.c: New file.
2887 * config/mips/mips-proto.h (mips_register_frame_header_opt):
2889 * config/mips/mips.c (mips_compute_frame_info): Check
2890 optimize_call_stack flag.
2891 (mips_option_override): Register new frame_header_opt pass.
2892 (mips_frame_info, mips_int_mask, mips_shadow_set,
2893 machine_function): Move these types to...
2894 * config/mips/mips.h: here.
2895 (machine_function): Add does_not_use_frame_header and
2896 optimize_call_stack fields.
2897 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
2898 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
2900 * config/mips/mips.opt (mframe-header-opt): Add new option.
2902 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
2904 * config/i386/i386.c
2905 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
2906 ROUND_DOWN where applicable.
2908 2015-10-09 Jeff Law <law@redhat.com>
2910 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
2913 2015-10-09 Renlin Li <renlin.li@arm.com>
2915 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
2916 operands[0] and operands[2].
2917 (neon_vtrn<mode>_insn): Likewise.
2918 (neon_vzip<mode>_insn): Likewise.
2920 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
2922 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
2923 ((X & C2) << C1): Expand to...
2924 (X {&,^,|} C2 << C1): ...This.
2925 ((X & C2) >> C1): Expand to...
2926 (X {&,^,|} C2 >> C1): ...This.
2928 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
2931 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
2932 Adjust embedded rounding/SAE specifier position.
2933 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
2934 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
2935 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
2936 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
2937 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
2939 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
2941 2015-10-09 Martin Jambor <mjambor@suse.cz>
2943 tree-optimization/67794
2944 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
2945 between types of state,ents but accept original definitions as a
2947 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
2948 iterate over definitions.
2950 2015-10-09 James Norris <jnorris@codesourcery.com>
2952 * config/rs6000/rs6000.c (rs6000_offload_options): New.
2953 (TARGET_OFFLOAD_OPTIONS): New.
2955 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
2958 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
2961 * function.c (expand_function_end): Move return value
2962 promotion past the handling of PARALLELs and CONCATs.
2964 PR rtl-optimization/67828
2965 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
2966 (tree_may_unswitch_on): Don't unswitch on expressions
2967 involving undefined values.
2969 2015-10-09 Richard Biener <rguenther@suse.de>
2971 * genmatch.c (print_operand): Fix formatting.
2972 (dt_node::append_simplify): Warn for multiple simplifiers
2973 that match the same pattern.
2974 * match.pd (log (exp @0)): Remove duplicates.
2976 2015-10-09 Richard Biener <rguenth@suse.de>
2979 * gimple-fold.c (optabs-query.h): Include
2980 (gimple_fold_builtin_memory_op): Allow unaligned stores
2981 when movmisalign_optabs are available.
2983 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2986 * config/arm/arm.md (movmisalign<mode>): New.
2987 * config/arm/iterators.md (HSI): New.
2989 2015-10-09 Richard Biener <rguenther@suse.de>
2991 PR tree-optimization/67891
2992 * gimple-match.h (gimple_simplified_result_is_gimple_val):
2994 (gimple_resimplify1): Declare.
2995 (gimple_resimplify2): Likewise.
2996 (gimple_resimplify3): Likewise.
2997 * gimple-match-head.c (gimple_resimplify1): Export.
2998 (gimple_resimplify2): Likewise.
2999 (gimple_resimplify3): Likewise.
3000 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
3001 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
3002 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
3003 to avoid creating stmts without VN info.
3005 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
3007 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
3010 2015-10-08 Jeff Law <law@redhat.com>
3012 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
3013 and release_ssa_name in two places.
3014 (gimple_stringop_fixed_value): Similarly.
3016 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
3019 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
3020 unlink_stmt_vdef and release_ssa_name_fn.
3022 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
3025 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
3027 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
3028 SSE register save area to 16 bytes only if the incoming stack
3029 boundary is no less than 16 bytes.
3031 2015-10-08 Jeff Law <law@redhat.com>
3033 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
3034 release_ssa_name. Fix typo in comment.
3036 2015-10-08 Nathan Sidwell <nathan@acm.org>
3038 * config/nvptx/nvptx.h (struct machine_function): Add comment.
3039 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
3040 may return pointer as well as in memory.
3041 (nvptx_output_return): Likewise.
3043 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
3045 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
3046 (fold_builtin_1): Update accordingly. Handle constant arguments here.
3047 * match.pd: Add rules previously handled by fold_builtin_sqrt
3048 and fold_builtin_cbrt.
3050 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
3052 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
3053 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
3054 * fold-const.h (tree_unary_nonnegative_warnv_p)
3055 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
3056 (tree_expr_nonnegative_warnv_p): Add depth parameters.
3057 * fold-const.c: Include gimple-fold.h and params.h.
3058 (tree_ssa_name_nonnegative_warnv_p): New function.
3059 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
3060 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
3061 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
3062 Add a depth parameter and increment it for recursive calls to
3063 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
3064 to handle SSA names.
3065 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
3066 (gimple_stmt_nonnegative_warnv_p): Declare.
3067 * tree-vrp.c (remove_range_assertions): Remove assert that condition
3068 cannot be proven false.
3069 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
3070 (gimple_stmt_nonnegative_warnv_p): Move to...
3071 * gimple-fold.c: ...here. Add depth parameters and pass them
3072 down to the tree routines. Accept statements that aren't
3073 assignments or calls but just return false for them.
3074 (gimple_val_nonnegative_real_p): Delete.
3075 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
3076 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
3077 Check HONOR_NANs first.
3079 2015-10-08 Martin Jambor <mjambor@suse.cz>
3081 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
3084 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
3086 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
3087 in the tail of outer-loop.
3089 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
3091 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
3094 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
3096 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
3097 "cfghooks.h", add prototypes for introduced new functions.
3098 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
3099 checks on ability of loop unswitching to tree_unswitch_single_loop;
3100 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
3101 on innermost loop check.
3102 (tree_unswitch_single_loop): Add all required checks on ability of
3103 loop unswitching under zero recursive level guard.
3104 (tree_unswitch_outer_loop): New function.
3105 (find_loop_guard): Likewise.
3106 (empty_bb_without_guard_p): Likewise.
3107 (used_outside_loop_p): Likewise.
3108 (get_vop_from_header): Likewise.
3109 (hoist_guard): Likewise.
3110 (check_exit_phi): Likewise.
3112 2015-10-08 Marek Polacek <polacek@redhat.com>
3114 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
3117 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3120 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
3121 create_tmp_var_raw instead of create_tmp_var.
3123 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
3125 * expr.c (store_expr_with_bounds): Handle aggregate moves from
3127 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
3128 to define gimple type system; compare aggregates only by size.
3130 2015-10-07 Jeff Law <law@redhat.com>
3132 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
3133 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
3134 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
3137 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
3138 Sebastian Pop <s.pop@samsung.com>
3140 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
3141 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
3142 (generate_isl_schedule): Same.
3143 * graphite-optimize-isl.c (scop_get_domains): Same.
3144 (apply_schedule_map_to_scop): Same.
3145 * graphite-poly.c (print_iteration_domains): Same.
3146 (remove_gbbs_in_scop): Same.
3150 * graphite-poly.h (struct scop): Rename bbs to pbbs.
3152 * graphite-scop-detection.c (compare_bb_depths): Remove.
3153 (graphite_sort_dominated_info): Remove.
3154 (try_generate_gimple_bb): Move out of scop_detection.
3155 (all_non_dominated_preds_marked_p): Remove.
3156 (build_scop_bbs_1): Remove.
3157 (build_scop_bbs): Remove.
3158 (nb_pbbs_in_loops): Do not use SCOP_BBS.
3159 (find_scop_parameters): Same.
3160 (sese_dom_walker): Rename gather_bbs.
3161 (before_dom_children): Call try_generate_gimple_bb and collect gbb
3163 (build_scops): Call gather_bbs.
3164 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
3165 (add_conditions_to_constraints): Same.
3166 (build_scop_iteration_domain): Same.
3167 (build_scop_drs): Same.
3168 (new_pbb_from_pbb): Same.
3169 * sese.c (new_sese_info): Create bbs.
3170 * sese.h (struct sese_info_t): Add bbs.
3172 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
3174 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
3175 encoding in 64-bit mode.
3177 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
3180 * config/i386/i386.c (ix86_option_override_internal): Always use
3181 8-byte minimum stack boundary in 64-bit mode.
3182 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
3183 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
3184 Add a REG_CFA_EXPRESSION note if needed.
3185 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
3186 (ix86_handle_force_align_arg_pointer_attribute): New.
3187 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
3188 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
3189 with ix86_handle_force_align_arg_pointer_attribute.
3190 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
3192 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
3193 Sebastian Pop <s.pop@samsung.com>
3195 * graphite-scop-detection.c (parameter_index_in_region): Remove
3196 use of SESE_ADD_PARAMS.
3197 (find_scop_parameters): Same.
3198 * sese.c (new_sese_info): Same.
3199 * sese.h (struct sese_info_t): Remove add_params.
3200 (SESE_ADD_PARAMS): Remove.
3202 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
3203 Sebastian Pop <s.pop@samsung.com>
3205 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
3208 (copy_internal_parameters): Same.
3209 (translate_isl_ast_to_gimple): Use an sese_l.
3210 (build_iv_mapping): Same.
3211 * graphite-poly.c (new_sese): Rename new_sese_info.
3212 (free_sese): Rename free_sese_info.
3213 * graphite-poly.h (struct scop): Use an sese_info_p.
3214 (scop_set_region): Same.
3215 * graphite-scop-detection.c (struct sese_l): Moved...
3216 (get_entry_bb): Moved...
3217 (get_exit_bb): Moved...
3218 (parameter_index_in_region_1): Use an sese_info_p.
3219 (parameter_index_in_region): Same.
3220 (scan_tree_for_params): Same.
3221 (find_params_in_bb): Same.
3222 (sese_dom_walker): Use an sese_l.
3223 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
3224 (reduction_phi_p): Same.
3225 (parameter_index_in_region_1): Use an sese_info_p.
3226 (propagate_expr_outside_region): Use an sese_l.
3227 * graphite.c: Replace uses of SCOP_REGION.
3228 * sese.c (sese_record_loop): Use an sese_info_p.
3229 (build_sese_loop_nests): Same.
3230 (sese_build_liveouts_use): Same.
3231 (sese_build_liveouts_bb): Same.
3232 (sese_build_liveouts_bb): Same.
3233 (sese_bad_liveouts_use): Same.
3234 (sese_reset_debug_liveouts_bb): Same.
3235 (sese_build_liveouts): Same.
3236 (new_sese): Renamed new_sese_info.
3237 (free_sese): Renamed free_sese_info.
3238 (set_rename): Use an sese_info_p.
3239 (graphite_copy_stmts_from_block): Same.
3240 (copy_bb_and_scalar_dependences): Same.
3241 (outermost_loop_in_sese_1): Use an sese_l.
3242 (outermost_loop_in_sese): Same.
3243 (if_region_set_false_region): Use an sese_info_p.
3244 (move_sese_in_condition): Same.
3245 (scalar_evolution_in_region): Use an sese_l.
3246 * sese.h (struct sese_l): ... here.
3247 (SESE_ENTRY): Remove.
3248 (SESE_ENTRY_BB): Remove.
3249 (SESE_EXIT): Remove.
3250 (SESE_EXIT_BB): Remove.
3251 (sese_contains_loop): Use an sese_info_p.
3252 (sese_nb_params): Same.
3253 (bb_in_sese_p): Use an sese_l.
3254 (stmt_in_sese_p): Same.
3255 (defined_in_sese_p): Same.
3256 (loop_in_sese_p): Same.
3257 (sese_loop_depth): Same.
3258 (struct ifsese_s): Use an sese_info_p.
3259 (gbb_loop_at_index): Use an sese_l.
3260 (nb_common_loops): Same.
3261 (scev_analyzable_p): Same.
3263 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
3265 * config/i386/i386.c (ix86_conditional_register_usage): Use
3266 CALL_USED_REGISTERS_MASK.
3267 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
3269 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
3272 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
3273 * configure: Regenerated.
3275 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
3278 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
3279 (ix86_set_current_function): This.
3280 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
3282 2015-10-07 Richard Biener <rguenther@suse.de>
3284 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
3285 (vinfo_for_stmt): Adjust.
3286 (set_vinfo_for_stmt): Likewise.
3287 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
3288 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
3289 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
3291 (vect_analyze_loop_1): Remove.
3292 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
3293 inner loop when vectorizing an outer loop by splitting out from ...
3294 (vect_analyze_loop_form): ... here.
3296 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3299 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
3300 Use create_tmp_var_raw instead of create_tmp_var.
3302 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
3304 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
3305 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
3306 * real.c (CACHED_FRACTION): New helper macro.
3307 (dconst_third_ptr): Use it.
3308 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
3309 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
3311 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
3313 2015-10-06 Jeff Law <law@redhat.com>
3315 PR tree-optimization/67816
3316 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
3317 from remove_jump_threads_starting_at. Accept an edge rather than
3319 * tree-ssa-threadupdate.c (removed_edges): New hash table.
3320 (remove_jump_threads_including): Note edges that get removed from
3321 the CFG for later pruning of jump threading paths including them.
3322 (thread_through_all_blocks): Remove paths which include edges that
3324 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
3325 on each outgoing edges when optimizing away a control statement.
3327 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3329 * reorg.c (emit_delay_sequence): Store list of delay slot insns
3330 in a vector instead of rtx_insn_list.
3331 (add_to_delay_list): Likewise.
3332 (delete_from_delay_slot): Likewise.
3333 (optimize_skip): Likewise.
3334 (redirect_with_delay_list_safe_p): Likewise.
3335 (check_annul_list_true_false): Likewise.
3336 (steal_delay_list_from_target): Likewise.
3337 (steal_delay_list_from_fallthrough): Likewise.
3338 (redundant_insn): Likewise.
3339 (fill_simple_delay_slots): Likewise.
3340 (fill_slots_from_thread): Likewise.
3341 (fill_eager_delay_slots): Likewise.
3342 (relax_delay_slots): Likewise.
3344 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
3346 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
3347 For -mgpopt=local, also exclude unintialized common symbols.
3348 * doc/invoke.texi (Nios II Options): Document the change.
3350 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
3352 * config/aarch64/iterators.md (vwcore): Add missing cases for
3355 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
3356 Sebastian Pop <s.pop@samsung.com>
3358 * graphite-poly.c (new_scop): Initialize drs.
3359 * graphite-poly.h (struct dr_info): New.
3360 (struct scop): Add drs.
3361 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
3362 (pdr_add_memory_accesses): Same.
3363 (build_poly_dr): Same.
3364 (build_alias_set): Same.
3365 (build_scop_drs): Same.
3366 (build_pbb_drs): Remove.
3367 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
3368 * tree-data-ref.h (data_reference): Remove alias_set.
3370 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
3371 Sebastian Pop <s.pop@samsung.com>
3373 * graphite-poly.c (free_data_refs_aux): Remove.
3374 (free_gimple_poly_bb): Do not call free_data_refs_aux.
3375 * graphite-poly.h (struct base_alias_pair): Remove.
3376 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
3377 base_alias_pair and dr->aux.
3378 (build_alias_set): Same.
3379 * tree-data-ref.c (create_data_ref): Initialize alias_set.
3380 * tree-data-ref.h (data_reference): Add alias_set.
3382 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
3383 Sebastian Pop <s.pop@samsung.com>
3385 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
3386 Do not set PDR_BASE_OBJECT_SET.
3387 * graphite-poly.h (poly_dr): Same.
3388 (PDR_BASE_OBJECT_SET): Remove.
3389 (new_poly_dr): Update decl.
3390 * graphite-sese-to-poly.c (build_poly_dr): Update call to
3392 (write_alias_graph_to_ascii_dimacs): Remove.
3393 (write_alias_graph_to_ascii_dot): Remove.
3394 (write_alias_graph_to_ascii_ecc): Remove.
3395 (dr_same_base_object_p): Remove.
3396 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
3398 (build_base_obj_set_for_drs): Remove.
3399 (dump_alias_graphs): Remove.
3400 (build_scop_drs): Remove dead code.
3402 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
3403 Peter Bergner <bergner@vnet.ibm.com>
3406 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
3407 allow registers, but provide insns for the combiner to create for
3408 loads from memory. Separate VSX code from non-VSX code. For
3409 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
3410 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
3411 so that registers come before memory operations. Drop support from
3412 converting DFmode to TFmode, if the DFmode value is in a GPR
3414 (extenddftf2_fprs): Likewise.
3415 (extenddftf2_internal): Likewise.
3416 (extenddftf2_vsx): Likewise.
3417 (extendsftf2): In the expander, only allow registers, but provide
3418 insns for the combiner to create for stores and loads.
3420 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3422 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
3423 from the decl parameter.
3425 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
3428 * gimple-fold.c (gimple_fold_builtin): Add break after
3429 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
3431 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
3433 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
3434 to scop->isl_context.
3436 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
3438 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
3439 (output_probe_stack_range): Rotate the loop and simplify.
3440 (thumb1_expand_prologue): Tweak sorry message.
3441 * config/arm/arm.md (probe_stack): Use bare string.
3443 2015-10-06 Nick Clifton <nickc@redhat.com>
3445 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
3447 2015-10-06 Nick Clifton <nickc@redhat.com>
3449 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
3450 (ATTR_PERSIST): New constant.
3451 (msp430_data_attr): New function - verifies an attribute that only
3452 applies to variables.
3453 (msp430_attributes): Add noinit and persistent attributes.
3454 (noinit_section): New variable.
3455 (presis_section): New variable.
3456 (TARGET_ASM_INIT_SECTIONS): Define.
3457 (msp430_init_sections): New function - initialises the noinit and
3458 persist section variables.
3459 (msp430_select_section): Add support for noinit and persist
3461 (msp430_section_type_flags): Likewise.
3462 * doc/extend.texi: Document the reent, critical, wakeup, noinit
3463 and persistent attributes.
3465 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3466 Sebastian Pop <s.pop@samsung.com>
3468 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
3469 (no_violations): Remove.
3470 (subtract_commutative_associative_deps): Remove.
3471 (compute_deps): Do not call subtract_commutative_associative_deps.
3472 (transform_is_safe): Remove.
3473 (graphite_legal_transform): Remove.
3474 * graphite-poly.h (graphite_legal_transform): Remove.
3476 2015-10-05 Aditya Kumar <hiraditya@msn.com>
3478 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
3479 which are in this region are passed so gcc_assert and remove redundant
3481 * sese.c (sese_build_liveouts): Pass only those bbs which are not
3483 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
3484 gcc_assert on that and remove unnecessary computation.
3485 (sese_build_liveouts_use): Same.
3487 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3489 * graphite-dependences.c (scop_get_reads): Renamed scop->context
3490 to scop->param_context.
3491 (scop_get_must_writes): Same.
3492 (scop_get_may_writes): Same.
3493 (scop_get_original_schedule): Same.
3494 (scop_get_transformed_schedule): Same.
3495 (subtract_commutative_associative_deps): Same.
3496 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
3497 (generate_isl_context): Same.
3498 (generate_isl_schedule): Same.
3499 (scop_to_isl_ast): Same.
3500 (graphite_regenerate_ast_isl): Same.
3501 * graphite-optimize-isl.c (scop_get_domains): Same.
3502 (optimize_isl): Renamed scop->context to scop->param_context.
3503 * graphite-poly.c (new_poly_bb): Change the type of argument to
3505 (new_scop): Renamed scop->context to scop->param_context.
3507 (print_scop_context): Same.
3508 * graphite-poly.h (new_poly_dr): Change the type of argument from
3509 void* to data_reference_p.
3510 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
3511 (new_poly_bb): Change the type of argument from void* to
3513 (pbb_set_black_box): Same.
3514 (struct scop): Rename context to param_context, ctx to isl_context.
3515 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
3516 Move declarations closer to assignment.
3517 (find_params_in_bb): Same.
3518 (find_scop_parameters): Same.
3519 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
3520 Global to be used for statement IDs.
3521 (isl_id_for_pbb): Use ssa_name_version_typesize.
3522 (simple_copy_phi_p): Move declarations closer to assignment.
3523 (build_pbb_scattering_polyhedrons): Same.
3524 (build_scop_scattering): Same.
3525 (isl_id_for_ssa_name): Same.
3526 (extract_affine_name): Same.
3527 (extract_affine_int): Same.
3528 (extract_affine): Same.
3529 (set_scop_parameter_dim): Use renamed member.
3530 (build_loop_iteration_domains): Same.
3531 (add_param_constraints): Same.
3532 (build_scop_iteration_domain): Same.
3533 (pdr_add_data_dimensions): Same.
3534 (build_poly_dr): Same.
3535 (build_scop_drs): Move declarations closer to assignment.
3536 (analyze_drs_in_stmts): Same.
3537 (insert_out_of_ssa_copy): Same.
3538 (insert_out_of_ssa_copy_on_edge): Same.
3539 (propagate_expr_outside_region): Same.
3540 (rewrite_phi_out_of_ssa): Same.
3541 (rewrite_degenerate_phi): Same.
3542 (rewrite_reductions_out_of_ssa): Same.
3543 (rewrite_cross_bb_scalar_dependence): Same.
3544 (handle_scalar_deps_crossing_scop_limits): Same.
3545 (rewrite_cross_bb_scalar_deps): Same.
3546 * graphite.c (graphite_transform_loops): Use renamed member.
3548 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
3551 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
3552 create_tmp_var_raw instead of create_tmp_var.
3554 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3557 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
3558 Use create_tmp_var_raw instead of create_tmp_var.
3560 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
3563 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
3564 split for upper-bank registers when target does not support
3566 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
3567 split when target does not support AVX512VL.
3569 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
3572 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
3573 Adjust to use create_tmp_var_raw instead of create_tmp_var.
3575 2015-10-06 Nick Clifton <nickc@redhat.com>
3577 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
3580 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3582 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
3583 (case ${target}): Add znver1.
3584 * config/i386/cpuid.h(bit_CLZERO): Define.
3585 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
3586 -march=native recognize znver1 processors.
3587 * config/i386/i386-c.c (ix86_target_macros_internal): Add
3588 znver1, clzero def_and_undef.
3589 * config/i386/i386.c (struct processor_costs znver1_cost): New.
3590 (m_znver1): New definition.
3591 (m_AMD_MULTIPLE): Includes m_znver1.
3592 (processor_target_table): Add znver1 entry.
3593 (ix86_target_string) : Add clzero entry.
3594 (static const char *const cpu_names): Add znver1 entry.
3595 (ix86_option_override_internal): Add znver1 instruction sets.
3596 (PTA_CLZERO) : New definition.
3597 (ix86_option_override_internal): Handle new clzerooption.
3598 (ix86_issue_rate): Add znver1.
3599 (ix86_adjust_cost): Add znver1.
3600 (ia32_multipass_dfa_lookahead): Add znver1.
3601 (has_dispatch): Add znver1.
3602 * config/i386/i386.h (TARGET_znver1): New definition.
3603 (TARGET_CLZERO): Define.
3604 (TARGET_CLZERO_P): Define.
3605 (struct ix86_size_cost): Add TARGET_ZNVER1.
3606 (enum processor_type): Add PROCESSOR_znver1.
3607 * config/i386/i386.md (define_attr "cpu"): Add znver1.
3608 (set_attr znver1_decode): New definitions for znver1.
3609 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
3611 * config/i386/mmx.md (set_attr znver1_decode): New definitions
3613 * config/i386/sse.md (set_attr znver1_decode): Likewise.
3614 * config/i386/x86-tune.def: Add znver1 tunings.
3615 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
3616 * gcc/doc/invoke.texi: Add details about znver1
3618 2015-10-06 Richard Biener <rguenther@suse.de>
3620 PR tree-optimization/67859
3621 * tree-ssa-pre.c (create_expression_by_pieces): Properly
3622 discard not inserted stmts.
3624 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
3626 * doc/extend.texi (Template Instantiation): Reorder options and
3627 de-emphasize -frepo.
3628 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
3629 example instead of -frepo.
3631 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
3634 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
3635 use create_tmp_var_raw rather than create_tmp_var.
3637 2015-10-06 Richard Biener <rguenther@suse.de>
3639 * tree-vectorizer.h (vec_info): New base class for...
3640 (_loop_vec_info): ... this and ...
3641 (_bb_vec_info): ... this.
3642 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
3643 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
3644 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
3645 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
3646 vect_destroy_datarefs): Adjust interface to take a vec_info *
3647 rather than both a loop_vec_info and a bb_vec_info argument.
3648 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
3649 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
3650 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
3651 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
3653 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
3654 (destroy_loop_vec_info, vect_analyze_loop_2,
3655 vect_is_simple_reduction_1, get_initial_def_for_induction,
3656 vect_create_epilog_for_reduction, vectorizable_reduction,
3657 vectorizable_live_operation, vect_transform_loop): Adjust.
3658 * tree-vect-patterns.c (type_conversion_p,
3659 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
3660 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
3661 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
3662 check_bool_pattern, vect_recog_bool_pattern,
3663 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
3664 * tree-vect-slp.c (vect_get_and_check_slp_defs,
3665 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
3666 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
3667 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
3668 (new_bb_vec_info): Initialize base classs.
3669 * tree-vect-stmts.c (record_stmt_cost, process_use,
3670 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
3671 vectorizable_mask_load_store, vectorizable_call,
3672 vectorizable_simd_clone_call, vectorizable_conversion,
3673 vectorizable_assignment, vectorizable_shift,
3674 vectorizable_operation, vectorizable_store,
3675 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
3676 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
3677 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
3679 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
3682 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
3683 create_tmp_var_raw rather than create_tmp_var.
3685 2015-10-05 Marek Polacek <polacek@redhat.com>
3687 * tree-ssa-loop-im.c
3688 (move_computations_dom_walker::before_dom_children): Don't set
3689 SSA_NAME_ANTI_RANGE_P.
3690 * tree-ssa-phiopt.c (value_replacement): Likewise.
3692 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3693 Sebastian Pop <s.pop@samsung.com>
3695 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
3697 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3698 Sebastian Pop <s.pop@samsung.com>
3700 * graphite-poly.c (new_gimple_poly_bb): ... here.
3701 (free_data_refs_aux): ... here.
3702 (free_gimple_poly_bb): ... here.
3703 (remove_gbbs_in_scop): ... here.
3704 (new_scop): Call new_sese.
3705 (free_scop): Call remove_gbbs_in_scop and free_sese.
3706 * graphite-poly.h (base_alias_pair): ... here.
3707 (new_gimple_poly_bb): Declare.
3708 (free_gimple_poly_bb): Declare.
3709 * graphite-scop-detection.c (parameter_index_in_region_1):
3710 (parameter_index_in_region): ... here.
3711 (scan_tree_for_params): ... here.
3712 (find_params_in_bb): ... here.
3713 (find_scop_parameters): ... here.
3714 (build_scops): Call find_scop_parameters.
3715 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
3716 (free_scops): Move...
3717 (single_pred_cond_non_loop_exit): Move...
3718 (sese_dom_walker::before_dom_children): Move...
3719 (sese_dom_walker::after_dom_children): Move...
3720 (build_poly_scop): Move...
3721 * graphite-sese-to-poly.h (base_alias_pair): Move...
3722 * graphite.c (free_scops): ... here.
3724 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3725 Sebastian Pop <s.pop@samsung.com>
3727 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
3728 (trivially_empty_bb_p): Move...
3729 (same_close_phi_node): Move...
3730 (new_gimple_poly_bb): Move...
3731 (compare_bb_depths): Move...
3732 (graphite_sort_dominated_info): Move...
3733 (remove_duplicate_close_phi): Move...
3734 (make_close_phi_nodes_unique): Move...
3735 (canonicalize_loop_closed_ssa): Move...
3736 (canonicalize_loop_closed_ssa_form): Move...
3737 (loop_ivs_can_be_represented): Move...
3738 (single_pred_cond_non_loop_exit): Move...
3739 (graphite_can_represent_init): Move...
3740 (graphite_can_represent_scev): Move...
3741 (stmt_has_simple_data_refs_p): Move...
3742 (stmt_has_side_effects): Move...
3743 (graphite_can_represent_stmt): Move...
3744 (scop_detection): ... here.
3745 (sese_dom_walker): ... and here.
3746 (build_scops): Call all moved functions.
3747 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
3748 (all_non_dominated_preds_marked_p): Move...
3749 (build_scop_bbs_1): Move...
3750 (build_scop_bbs): Move...
3751 (set_scop_parameter_dim): Move...
3752 (nb_pbbs_in_loops): Move...
3753 (build_poly_scop): Do not call all the moved functions.
3755 2015-10-05 Martin Jambor <mjambor@suse.cz>
3756 Jan Hubicka <hubicka@ucw.cz>
3758 * ipa-cp.c (ipcp_alignment_lattice): New type.
3759 (ipcp_param_lattices): Use the above to represent alignment.
3760 (ipcp_alignment_lattice::print): New function.
3761 (print_all_lattices): Use it to print alignment information.
3762 (ipcp_alignment_lattice::top_p): New function.
3763 (ipcp_alignment_lattice::bottom_p): Likewise.
3764 (ipcp_alignment_lattice::set_to_bottom): Likewise.
3765 (ipcp_alignment_lattice::meet_with_1): Likewise.
3766 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
3767 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
3768 (initialize_node_lattices): Likewise.
3769 (propagate_alignment_accross_jump_function): Work with the new class
3770 for alignment lattices.
3771 (propagate_constants_accross_call): Pass only the alignment lattice to
3772 propagate_alignment_accross_jump_function.
3773 (ipcp_store_alignment_results): Work with the new class for alignment
3776 2015-10-05 Marek Polacek <polacek@redhat.com>
3778 PR tree-optimization/67821
3779 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
3781 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
3784 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
3786 (mkoffload_cleanup): ... this. Adjust all users.
3787 (maybe_unlink): Look at save_temps and verbose flags instead of
3789 (main): Parse "-save-temps" flag.
3790 (generate_target_descr_file, generate_target_offloadend_file)
3791 (generate_host_descr_file, prepare_target_image): Pass it on.
3792 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
3793 (mkoffload_cleanup): New function.
3794 (maybe_unlink): Look at save_temps and verbose flags instead of
3796 (main): Instead of calling utils_cleanup, register atexit handler
3797 for mkoffload_cleanup.
3798 (main): Parse "-save-temps" flag.
3799 (compile_native, main): Pass it on.
3800 * lto-wrapper.c (compile_offload_image): Likewise.
3802 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3804 * gimple.h (gimple_op_ptr): Require a non const gimple *.
3805 (gimple_assign_lhs_ptr): Likewise.
3806 (gimple_assign_rhs1_ptr): Likewise.
3807 (gimple_assign_rhs2_ptr): Likewise.
3808 (gimple_assign_rhs3_ptr): Likewise.
3809 (gimple_call_lhs_ptr): Likewise.
3810 (gimple_call_fn_ptr): Likewise.
3811 (gimple_call_chain_ptr): Likewise.
3812 (gimple_call_arg_ptr): Likewise.
3813 (gimple_cond_lhs_ptr): Likewise.
3814 (gimple_cond_rhs_ptr): Likewise.
3815 (gimple_switch_index_ptr): Likewise.
3816 (gimple_return_retval_ptr): Likewise.
3818 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3820 * gimple.h (gimple_asm_input_op_ptr): Remove.
3821 (gimple_asm_output_op_ptr): Likewise.
3823 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3825 * gimple.h (gimple_location_ptr): Remove.
3826 * tree-vrp.c (check_all_array_refs): Adjust.
3828 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3830 * tree-ssa-operands.c (build_uses): store tree * instead of
3832 (finalize_ssa_uses): Adjust.
3833 (append_use): Likewise.
3834 (verify_ssa_operands): Likewise.
3836 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3838 * real.h (build_real_truncate): Declare.
3839 * tree.c (build_real_truncate): New function.
3840 (strip_float_extensions): Use it.
3841 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
3842 (fold_builtin_hypot, fold_builtin_pow): Likewise.
3843 * match.pd: Likewise.
3845 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
3846 Jiong Wang <jiong.wang@arm.com>
3848 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
3850 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3852 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
3853 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
3854 (aarch64_print_operand, aarch64_float_const_representable_p)
3855 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
3856 instead of REAL_VALUE_FROM_CONST_DOUBLE.
3857 * config/arc/arc.c (arc_print_operand): Likewise.
3858 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
3859 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
3860 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
3862 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
3863 (consttable_16): Likewise.
3864 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
3865 * config/avr/avr.c (avr_print_operand): Likewise.
3866 * config/bfin/bfin.md: Likewise (in a define_split).
3867 * config/c6x/c6x.md: Likewise (in a define_split).
3868 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
3869 (cr16_print_operand): Likewise.
3870 * config/cris/cris.c (cris_print_operand): Likewise.
3871 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
3872 * config/fr30/fr30.c (fr30_print_operand): Likewise.
3873 (fr30_const_double_is_zero): Likewise.
3874 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
3875 * config/frv/frv.md: Likewise (in a define_split).
3876 * config/frv/predicates.md (int_2word_operand): Likewise.
3877 * config/h8300/h8300.c (h8300_print_operand): Likewise.
3878 * config/i386/i386.c (standard_80387_constant_p): Likewise.
3879 (ix86_print_operand, ix86_split_to_parts): Likewise.
3880 * config/i386/i386.md: Likewise (in a define_split).
3881 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
3882 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
3883 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
3884 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
3885 (print_operand): Likewise.
3886 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
3887 * config/mep/mep.md: Likewise (in define_split).
3888 * config/microblaze/microblaze.c (microblaze_const_double_ok)
3889 (print_operand): Likewise.
3890 * config/mips/mips.md (consttable_float): Likewise.
3891 * config/mmix/mmix.c (mmix_intval): Likewise.
3892 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
3893 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
3894 * config/pa/pa.c (pa_singlemove_string): Likewise.
3895 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
3896 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
3897 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
3898 (output_toc): Likewise.
3899 * config/rs6000/rs6000.md: Likewise (in define_splits).
3900 * config/rx/rx.c (rx_print_operand): Likewise.
3901 * config/s390/s390.c (s390_output_pool_entry): Likewise.
3902 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
3903 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
3904 (and also in define_splits).
3905 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
3906 (fp_high_losum_p): Likewise.
3907 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
3908 (*movsf_high): Likewise.
3909 * config/spu/spu.c (const_double_to_hwint): Likewise.
3910 * config/v850/v850.c (const_double_split): Likewise.
3911 * config/vax/vax.c (vax_float_literal): Likewise.
3912 * config/visium/visium.c (visium_expand_copysign): Likewise.
3913 * config/visium/visium.md: Likewise (in define_split).
3914 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
3915 * config/xtensa/xtensa.c (print_operand): Likewise.
3916 (xtensa_output_literal): Likewise.
3917 * cprop.c (implicit_set_cond_p): Likewise.
3918 * dwarf2out.c (insert_float): Likewise.
3919 * expmed.c (expand_mult, make_tree): Likewise.
3920 * expr.c (compress_float_constant): Likewise.
3921 * rtlanal.c (split_double): Likewise.
3922 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
3923 (simplify_const_unary_operation, simplify_binary_operation_1)
3924 (simplify_const_binary_operation): Likewise.
3925 (simplify_const_relational_operation): Likewise.
3926 * varasm.c (output_constant_pool_2): Likewise.
3928 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3930 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
3931 instead of CONST_DOUBLE_FROM_REAL_VALUE.
3932 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
3933 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
3934 instead of CONST_DOUBLE_FROM_REAL_VALUE.
3935 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
3936 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
3937 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
3938 (ix86_emit_swsqrtsf): Likewise.
3939 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
3940 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
3941 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
3942 * config/pa/pa.c (pa_expand_builtin): Likewise.
3943 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
3944 (rs6000_scale_v2df): Likewise.
3945 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
3946 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
3947 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
3948 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
3949 (vec_ctul): Likewise.
3950 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
3951 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
3952 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
3953 * cse.c (fold_rtx): Likewise.
3954 * emit-rtl.c (immed_double_const): Likewise (in comments).
3955 (init_emit_once): Likewise.
3956 * expr.c (compress_float_constant, expand_expr_real_1)
3957 (const_vector_from_tree): Likewise.
3958 * optabs.c (expand_float, expand_fix): Likewise.
3959 * reg-stack.c (reg_to_stack): Likewise.
3960 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
3961 (simplify_const_unary_operation, simplify_binary_operation_1)
3962 (simplify_const_binary_operation, simplify_relational_operation)
3963 (simplify_immed_subreg): Likewise.
3965 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3967 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
3968 * doc/tm.texi: Regenerate.
3969 * real.h (REAL_ARITHMETIC): Delete.
3970 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
3971 (ix86_expand_round_sse4): Use real_arithmetic instead of
3973 * config/i386/sse.md (round<mode>2): Likewise.
3974 * rtl.h (rtx_to_tree_code): Likewise (in comment).
3975 * explow.c (rtx_to_tree_code): Likewise (in comment).
3976 * match.pd: Likewise.
3977 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3978 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
3979 (expand_pow_as_sqrts): Likewise.
3980 * tree-pretty-print.c (dump_generic_node): Remove code that
3981 was conditional on REAL_ARITHMETIC being undefined.
3983 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3985 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
3986 * doc/tm.texi: Regenerate.
3987 * real.h (real_less): Declare.
3988 (REAL_VALUES_LESS): Delete.
3989 * real.c (real_less): New function.
3990 (real_compare): Use it.
3991 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
3992 of REAL_VALUES_LESS.
3993 * config/microblaze/microblaze.c (microblaze_const_double_ok):
3995 * fold-const.c (fold_convert_const_int_from_real): Likewise.
3996 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3997 (simplify_const_relational_operation): Likewise.
3998 * tree-call-cdce.c (check_pow): Likewise.
3999 (gen_conditions_for_pow_cst_base): Likewise.
4001 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4003 * real.h (REAL_VALUES_IDENTICAL): Delete.
4004 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
4005 instead of REAL_VALUES_IDENTICAL.
4006 * fold-const.c (operand_equal_p): Likewise.
4007 * ipa-icf.c (sem_variable::equals): Likewise.
4008 * tree-complex.c (some_nonzerop): Likewise.
4009 (expand_complex_multiplication): Likewise.
4010 * tree.c (simple_cst_equal): Likewise.
4011 * varasm.c (compare_constant): Likewise.
4013 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4015 * real.h (real_equal): Declare.
4016 (REAL_VALUES_EQUAL): Delete.
4017 * real.c (real_equal): New function.
4018 (real_compare): Use it.
4019 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
4020 * doc/tm.texi: Regenerate.
4021 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
4022 real_equal instead of REAL_VALUES_EQUAL.
4023 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
4024 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
4025 (fp_const_from_val): Likewise.
4026 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
4027 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
4028 (floating_exact_log2): Likewise.
4029 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
4030 * config/vax/vax.c (vax_float_literal): Likewise.
4031 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
4032 * cprop.c (implicit_set_cond_p): Likewise.
4033 * expmed.c (expand_mult): Likewise.
4034 * fold-const.c (const_binop): Likewise.
4035 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4036 (simplify_const_binary_operation): Likewise.
4037 (simplify_const_relational_operation): Likewise.
4038 * tree-call-cdce.c (check_pow): Likewise.
4039 (gen_conditions_for_pow_cst_base): Likewise.
4040 * tree-inline.c (estimate_num_insns): Likewise.
4041 * tree-ssa-dom.c (record_equality): Likewise.
4042 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
4043 (gimple_expand_builtin_pow): Likewise.
4044 (pass_optimize_widening_mul::execute): Likewise.
4045 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
4046 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
4047 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
4049 2015-10-05 Richard Biener <rguenther@suse.de>
4052 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
4053 consider loop header PHI defs as IVs.
4055 2015-10-05 Richard Biener <rguenther@suse.de>
4057 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
4059 (create_expression_by_pieces): ... here and build GIMPLE
4060 calls directly. Use gimple_build API and avoid force_gimple_operand.
4061 (insert_into_preds_of_block): Simplify.
4062 (do_regular_insertion): Add comment.
4064 2015-10-04 Jason Merrill <jason@redhat.com>
4066 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
4068 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
4070 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
4071 check for general register.
4072 (ix86_emit_save_regs): Ditto.
4073 (ix86_emit_save_regs_using_mov): Ditto.
4074 (ix86_emit_restore_regs_using_pop): Ditto.
4075 (ix86_emit_restore_regs_using_mov): Ditto.
4077 2015-10-03 Marek Polacek <polacek@redhat.com>
4079 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
4080 (insn-dfatab.o): Likewise.
4082 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
4084 * config.gcc (xtensa*-*-uclinux*): New configuration.
4085 * config/xtensa/uclinux.h: New file.
4086 * config/xtensa/uclinux.opt: New file.
4088 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
4090 * doc/cpp.texi (Standard Predefined Macros): Document value of
4091 __cplusplus for C++14.
4093 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
4095 * gcc.c (process_command): Use spec_machine rather than
4096 spec_host_machine to build tooldir_prefix2.
4098 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
4099 Bernd Schmidt <bernds@codesourcery.com>
4101 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
4102 (Token, Stmt): Remove structs.
4103 (decls, vars, fns): Remove variables.
4104 (alloc_comment, append_stmt, is_keyword): Remove macros.
4105 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
4106 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
4107 (parse_init, parse_file): Remove functions.
4108 (read_file): Accept a pointer to a length and store into it.
4109 (process): Don't try to parse the input file, just write it out as
4110 a string, but looking for maps. Also write out the length.
4111 (main): Don't use "-S" to compile PTX code.
4113 2015-10-02 Jeff Law <law@redhat.com>
4115 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
4118 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
4121 * config/nvptx/mkoffload.c (main): Scan the argument vector for
4122 -fopenmp, and skip generating an offloading image if specified.
4124 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
4126 * system.h (ROUND_UP): New macro definition.
4127 (ROUND_DOWN): Ditto.
4128 * ggc-page.c (ROUND_UP): Remove local macro definition.
4129 (PAGE_ALIGN): Implement using ROUND_UP macro.
4131 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
4132 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
4134 (ix86_compute_frame_layout): Ditto.
4135 (ix86_expand_prologue): Ditto.
4136 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
4137 to round down values.
4138 (expand_set_or_movmem_via_rep): Ditto.
4140 2015-10-02 Marek Polacek <polacek@redhat.com>
4142 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
4144 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
4146 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
4147 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
4148 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
4149 (free_gimple_bb): Renamed free_gimple_poly_bb.
4150 (try_generate_gimple_bb): Hoist loop invariant code.
4151 (analyze_drs_in_stmts): Same.
4152 (build_scop_drs): Call renamed functions.
4153 (new_pbb_from_pbb): Same.
4154 (scop_ivs_can_be_represented): Delete as functionality now moved to
4155 graphite-scop-detection.c
4156 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
4158 2015-10-02 Aditya Kumar <hiraditya@msn.com>
4160 * graphite-scop-detection.c (stmt_has_side_effects): New function
4161 outlined from stmt_simple_for_scop_p.
4162 (graphite_can_represent_stmt): Same.
4163 (stmt_simple_for_scop_p): Moved code out of this function for better
4166 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
4168 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
4170 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
4172 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4174 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
4176 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
4178 PR rtl-optimization/67756
4179 * lra-constraints.c (match_reload): Add a new parameter. Use it
4180 for creating a pseudo with the same value.
4181 (curr_insn_transform): Pass a new argument to match_reload.
4183 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
4185 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
4186 (expand_vec_perm_even_odd_1): Handle V64QImode.
4187 (ix86_expand_vec_perm_const_1): Try expansion with
4188 expand_vec_perm_even_odd_trunc as well.
4189 * config/i386/sse.md (VI124_AVX512F): Rename to ...
4190 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
4192 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
4193 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
4195 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
4196 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
4197 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
4198 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
4199 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
4200 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
4202 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
4204 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
4205 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
4207 2015-10-02 Jason Merrill <jason@redhat.com>
4210 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
4211 (diagnose_tm_1_op): Also diagnose volatile accesses in
4212 transaction_safe function.
4214 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
4216 * system.h (malloc.h): Don't include obsolete header.
4218 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4220 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
4221 (TLS_SECTION_ASM_FLAG): Delete.
4223 2015-10-02 Marek Polacek <polacek@redhat.com>
4226 * doc/invoke.texi: Document -Wduplicated-cond.
4227 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
4228 (insn-dfatab.o): Likewise.
4229 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
4232 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
4234 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
4237 2015-10-02 Renlin Li <renlin.li@arm.com>
4239 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
4241 2015-10-02 Renlin Li <renlin.li@arm.com>
4244 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
4246 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4248 PR rtl-optimization/67786
4249 PR rtl-optimization/67787
4250 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
4251 it modifies a reg used in the condition calculation.
4253 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
4255 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
4256 alternatives for reads from memory and moves from general-purpose
4258 (*aarch64_combinez_be<mode>): Likewise.
4260 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
4263 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
4264 selectany within this function without need to keep attribute.
4265 (i386_pe_encode_section_info): Remove selectany-code.
4267 2015-10-02 Richard Biener <rguenther@suse.de>
4269 * tree-ssa-sccvn.c (has_VN_INFO): New function.
4270 (free_scc_vn): Use it.
4271 (visit_use): Remove dead code and refactor to use gassign
4272 and use less indentation.
4274 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4278 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
4279 (rs6000_cannot_copy_insn_p): New function.
4280 * config/rs6000/rs6000.md (cannot_copy): New attribute.
4281 (load_toc_v4_PIC_1_normal): Set cannot_copy.
4282 (load_toc_v4_PIC_1_476): Ditto.
4284 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
4286 * graphite-scop-detection.c (struct sese_l): New conversion constructor
4287 so that this type can be pushed into a vec.
4288 (class scop_builder): use sese_l to collect scops.
4289 (get_scops): New getter function.
4290 (remove_intersecting_scops): Use sese_l instead of scops_p.
4294 (remove_subscops): Same.
4295 (build_scops): Add scops to vec<scops_p> once all the scops have been
4298 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
4300 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
4301 Renamed type from gimple_bb_p to gimple_poly_bb_p.
4302 (translate_isl_ast_node_user): Same.
4303 * graphite-poly.c (new_poly_bb): Same.
4304 * graphite-poly.h (gbb_from_bb): Same.
4306 * graphite-sese-to-poly.c (new_gimple_bb):
4307 gimple_bb_p -> gimple_poly_bb_p
4308 (build_scop_scattering): Same.
4309 (find_params_in_bb): Same.
4310 (add_conditions_to_domain): Same.
4311 (sese_dom_walker::before_dom_children): Same.
4312 (analyze_drs_in_stmts): Same.
4313 (new_pbb_from_pbb): Same.
4314 (free_data_refs_aux): New pointer to type base_alias_pair.
4315 * graphite-sese-to-poly.h: Same.
4316 * sese.c (if_region_set_false_region): Fixed Indentation.
4317 (move_sese_in_condition): Same.
4319 2015-10-01 Sebastian Pop <s.pop@samsung.com>
4320 Aditya Kumar <aditya.k7@samsung.com>
4322 PR tree-optimization/66980
4323 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
4324 when data reference analysis has failed.
4326 2015-10-01 Sebastian Pop <s.pop@samsung.com>
4327 Aditya Kumar <aditya.k7@samsung.com>
4329 PR tree-optimization/67754
4330 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
4331 scev analysis on the same loop nest as analyze_drs_in_stmts.
4332 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
4334 (try_generate_gimple_bb): Call outermost_loop_in_sese.
4335 (analyze_drs_in_stmts): Same.
4336 * sese.c (outermost_loop_in_sese): ...here.
4338 2015-10-01 Sebastian Pop <s.pop@samsung.com>
4339 Aditya Kumar <aditya.k7@samsung.com>
4341 PR tree-optimization/67754
4342 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
4343 recursion on the inner loops.
4345 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4347 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
4348 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
4349 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
4350 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
4351 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
4353 2015-10-01 Marek Polacek <polacek@redhat.com>
4356 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
4357 create_tmp_var_raw rather than create_tmp_var.
4359 2015-10-01 Marek Polacek <polacek@redhat.com>
4361 PR tree-optimization/67769
4362 * tree-ssa-phiopt.c (conditional_replacement): Call
4363 reset_flow_sensitive_info_in_bb.
4364 (minmax_replacement): Likewise.
4365 (abs_replacement): Likewise.
4367 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
4369 * builtins.c: Don't include gomp-constants.h.
4370 (fold_builtin_1): Don't fold acc_on_device here.
4371 * gimple-fold.c: Include gomp-constants.h.
4372 (gimple_fold_builtin_acc_on_device): New.
4373 (gimple_fold_builtin): Call it.
4375 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
4377 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
4378 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
4380 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
4382 * config/arm/aarch-common-protos.h
4383 (aarch_accumulator_forwarding): New.
4384 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
4385 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
4386 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
4387 * config/arm/cortex-a53.md: Rewrite.
4389 2015-10-01 Richard Biener <rguenther@suse.de>
4391 * gimple-match.h (mprts_hook): Declare.
4392 * gimple-match.head.c (mprts_hook): Define.
4393 (maybe_push_res_to_seq): Use new hook.
4394 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
4395 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
4396 (vn_ssa_aux::has_constants): Remove.
4397 * tree-ssa-sccvn.c: Include gimple-match.h.
4398 (VN_INFO_GET): Assert we don't re-use SSA names.
4399 (vn_get_expr_for): Remove.
4400 (expr_has_constants): Likewise.
4401 (stmt_has_constants): Likewise.
4402 (simplify_binary_expression): Likewise.
4403 (simplify_unary_expression): Likewise.
4404 (vn_lookup_simplify_result): New hook.
4405 (visit_copy): Adjust.
4406 (visit_reference_op_call): Likewise.
4407 (visit_phi): Likewise.
4408 (visit_use): Likewise.
4409 (process_scc): Likewise.
4410 (init_scc_vn): Likewise.
4411 (visit_reference_op_load): Likewise. Use match-and-simplify and
4412 a gimple seq for inserted expressions.
4413 (try_to_simplify): Remove GENERIC stmt combining code.
4414 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
4415 * tree-ssa-pre.c (eliminate_insert): Adjust.
4416 (eliminate_dom_walker::before_dom_children): Likewise.
4418 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4420 * doc/invoke.texi (Optimization Options): Add
4421 -freorder-blocks-algorithm=.
4422 (Optimize Options) <-O>: Add -freorder-blocks.
4423 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
4424 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
4425 <-freorder-blocks>: Also enabled at levels -O and -Os.
4426 <-freorder-blocks-algorithm=>: Document new option.
4428 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4430 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
4431 with flag_reorder_blocks_algorithm.
4432 * common.opt (freorder-blocks-algorithm=): New flag.
4433 (reorder_blocks_algorithm): New enum.
4434 * flag-types.h (reorder_blocks_algorithm): New enum.
4435 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
4436 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
4438 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4440 * bb-reorder.c: Add intro comment.
4441 (reorder_basic_blocks_software_trace_cache): Print a header to
4443 (edge_order): New function.
4444 (reorder_basic_blocks_simple): New function.
4445 (reorder_basic_blocks): Choose between the STC and the simple
4446 algorithms (always choose the former).
4448 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4450 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
4451 function, factored out from ...
4452 (reorder_basic_blocks): ... here.
4454 2015-10-01 Tom de Vries <tom@codesourcery.com>
4456 * tree-cfg.c (dump_function_to_file): Dump function attributes using
4457 __attribute__(()) string. Move dumping of function attributes to before
4460 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
4463 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
4464 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
4465 based on gold linker version.
4466 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
4467 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
4468 * configure, config.in: Regenerate.
4470 2015-10-01 Alan Modra <amodra@gmail.com>
4472 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
4473 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
4474 (rs6000_output_mi_thunk): Likewise.
4476 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
4478 * config/nvptx/mkoffload.c (process): Change offload data format.
4480 2015-09-30 Jeff Law <law@redhat.com>
4482 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
4483 with constant conditions.
4484 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
4485 (remove_ctrl_stmt_and_useless_edges): No longer static.
4486 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
4487 (remove_ctrl_stmt_and_useless_edges): Likewise.
4489 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
4490 Cesar Philippidis <cesar@codesourcery.com>
4492 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
4493 (TARGET_GOACC_VALIDATE_DIMS): Override.
4494 * target.def (TARGET_GOACC): New target hook prefix.
4495 (validate_dims): New hook.
4496 * targhooks.h (default_goacc_validate_dims): New.
4497 * omp-low.c (oacc_validate_dims): New.
4498 (execute_oacc_device_lower): New.
4499 (default_goacc_validate_dims): New.
4500 (pass_data_oacc_device_lower): New.
4501 (pass_oacc_device_lower): New pass.
4502 (make_pass_oacc_device_lower): New.
4503 * tree-pass.h (make_pass_oacc_device_lower): Declare.
4504 * passes.def (pass_oacc_device_lower): Add it.
4505 * doc/tm.texi: Rebuilt.
4506 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
4507 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
4509 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
4511 PR rtl-optimization/67037
4512 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
4514 2015-09-30 Bernd Schmidt <bernds@redhat.com>
4516 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
4517 * passes.c: Include tree-ssanames.h.
4518 (execute_function_todo): Flush the pending free SSA_NAMEs after
4519 eliminating unreachable basic blocks.
4520 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
4521 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
4522 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
4523 (flush_ssanames_freelist): New function.
4524 (release_ssaname_fn): Put released names on the queue.
4525 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
4526 * tree-ssanames.h (flush_ssanames_freelist): Declare.
4528 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
4530 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
4531 (generate_target_descr_file, generate_target_offloadend_file)
4532 (generate_host_descr_file, prepare_target_image): Pass it on.
4533 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
4534 (compile_native, main): Pass it on.
4535 * lto-wrapper.c (compile_offload_image): Likewise.
4537 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
4538 Ilya Verbin <ilya.verbin@intel.com>
4539 Andrey Turetskiy <andrey.turetskiy@intel.com>
4541 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
4542 (prepare_target_image, main): Refactor argv building to use
4545 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4547 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
4548 * config/spu/spu.c (spu_expand_atomic_op): New function.
4549 * config/spu/spu.md (AINT): New mode iterator.
4550 (ATOMIC): New code iterator.
4551 (atomic_name, atomic_pred): New code predicates.
4552 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
4553 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
4554 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
4555 "atomic_<atomic_name>_fetch<mode>"): Likewise.
4557 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
4559 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
4561 (scalar_chain::convert_reg): Likewise.
4563 2015-09-30 Richard Biener <rguenther@suse.de>
4565 * builtins.c: Add comment that no new simplifications should
4568 2015-09-30 Marek Polacek <polacek@redhat.com>
4570 PR tree-optimization/67690
4571 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
4572 reset_flow_sensitive_info_in_bb.
4573 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
4574 * tree-ssanames.c: Include "gimple-iterator.h".
4575 (reset_flow_sensitive_info_in_bb): New function.
4576 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
4578 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
4580 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
4581 variable, replacing it with...
4582 (offload_abi): ... this new variable. Adjust all users.
4583 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
4585 2015-09-30 Matthias Klose <doko@ubuntu.com>
4587 * configure.ac: Remove extraneous ;;.
4588 * configure: Regenerate.
4590 2015-09-29 James Bowman <james.bowman@ftdichip.com>
4592 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
4593 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
4594 predicate, disallow register for operand 2.
4596 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
4598 * graphite-dependences.c (scop_get_dependences): Moved in down
4599 in order to be visible to its caller.
4600 * graphite-poly.h: Removed compute_deps, and extend_schedule.
4602 2015-09-29 Sebastian Pop <s.pop@samsung.com>
4603 Aditya Kumar <aditya.k7@samsung.com>
4605 PR tree-optimization/67754
4606 * graphite-optimize-isl.c (optimize_isl): Call
4607 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
4609 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
4611 * builtins.c (expand_builtin_acc_on_device): Delete.
4612 (expand_builtin): Don't call it.
4613 (fold_builtin_1): Fold acc_on_device.
4615 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
4617 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
4618 (ix86_nsaved_sseregs): Likewise.
4620 2015-09-29 Jeff Law <law@redhat.com>
4622 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
4623 computation of unused value.
4625 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
4626 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
4627 inline macro expansion.
4629 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
4631 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
4632 (gen_shl_sext): Likewise.
4633 * config/sh/sh.md (divsi3): Likewise.
4634 (imm->ext_dest_operand splitter): Likewise.
4636 2015-09-29 Sebastian Pop <s.pop@samsung.com>
4637 Aditya Kumar <aditya.k7@samsung.com>
4639 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
4640 (nb_data_writes_in_bb): Remove.
4641 (split_pbb): Remove.
4642 (split_reduction_stmt): Remove.
4643 (is_reduction_operation_p): Remove.
4644 (phi_contains_arg): Remove.
4645 (follow_ssa_with_commutative_ops): Remove.
4646 (detect_commutative_reduction_arg): Remove.
4647 (detect_commutative_reduction_assign): Remove.
4648 (follow_inital_value_to_phi): Remove.
4649 (edge_initial_value_for_loop_phi): Remove.
4650 (initial_value_for_loop_phi): Remove.
4651 (used_outside_reduction): Remove.
4652 (detect_commutative_reduction): Remove.
4653 (translate_scalar_reduction_to_array_for_stmt): Remove.
4654 (remove_phi): Remove.
4655 (dr_indices_valid_in_loop): Remove.
4656 (close_phi_written_to_memory): Remove.
4657 (translate_scalar_reduction_to_array): Remove.
4658 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
4659 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
4660 (rewrite_commutative_reductions_out_of_ssa): Remove.
4661 (build_poly_scop): Remove call to
4662 rewrite_commutative_reductions_out_of_ssa.
4664 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
4666 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
4667 Add new insn types for vector load and store pairs.
4668 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
4669 types "neon_ldp{,_q}".
4670 * config/arm/cortex-a57.md (neon_load_c): Add insn types
4672 (neon_store_complex): Add insn types "neon_stp{,_q}".
4673 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
4676 2015-09-29 Jeff Law <law@redhat.com>
4678 * config/rx/constraints.md (Int08): Fix undefined left shift
4680 (Sint08, Sint16, Sint24): Likewise.
4681 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4683 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
4686 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
4687 left shift behaviour.
4688 * config/msp430/constraints.md ('L' constraint): Similarly.
4689 ('Ys' constraint): Similarly.
4691 2015-09-29 Richard Biener <rguenther@suse.de>
4693 PR tree-optimization/67170
4694 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
4695 the translate function pointer parameter to get the
4696 bool whether to disambiguate only by reference.
4697 (walk_non_aliased_vuses): Likewise.
4698 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4699 (get_continuation_for_phi_1): Likewise.
4700 (get_continuation_for_phi): Likewise.
4701 (walk_non_aliased_vuses): Likewise.
4702 * tree-ssa-sccvn.c (const_parms): New bitmap.
4703 (vn_reference_lookup_3): Adjust for interface change.
4704 Disambiguate parameters pointing to readonly memory.
4705 (free_scc_vn): Free const_parms.
4706 (run_scc_vn): Initialize const_parms from a fn spec attribute.
4708 2015-09-29 Richard Biener <rguenther@suse.de>
4710 PR tree-optimization/67741
4711 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
4712 builtin calls with correct signature.
4714 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
4717 * config/i386/i386.c: Include dbgcnt.h.
4718 (has_non_address_hard_reg): New.
4719 (convertible_comparison_p): New.
4720 (scalar_to_vector_candidate_p): New.
4721 (remove_non_convertible_regs): New.
4722 (scalar_chain): New.
4723 (scalar_chain::scalar_chain): New.
4724 (scalar_chain::~scalar_chain): New.
4725 (scalar_chain::add_to_queue): New.
4726 (scalar_chain::mark_dual_mode_def): New.
4727 (scalar_chain::analyze_register_chain): New.
4728 (scalar_chain::add_insn): New.
4729 (scalar_chain::build): New.
4730 (scalar_chain::compute_convert_gain): New.
4731 (scalar_chain::replace_with_subreg): New.
4732 (scalar_chain::replace_with_subreg_in_insn): New.
4733 (scalar_chain::emit_conversion_insns): New.
4734 (scalar_chain::make_vector_copies): New.
4735 (scalar_chain::convert_reg): New.
4736 (scalar_chain::convert_op): New.
4737 (scalar_chain::convert_insn): New.
4738 (scalar_chain::convert): New.
4739 (convert_scalars_to_vector): New.
4740 (pass_data_stv): New.
4742 (make_pass_stv): New.
4743 (ix86_option_override): Created and register stv pass.
4744 (flag_opts): Add -mstv.
4745 (ix86_option_override_internal): Likewise.
4746 * config/i386/i386.md (SWIM1248x): New.
4747 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
4748 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
4749 (*anddi3_doubleword): New.
4750 (*zext<mode>_doubleword): New.
4751 (*zextsi_doubleword): New.
4752 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
4753 (*<code>di3_doubleword): New.
4754 * config/i386/i386.opt (mstv): New.
4755 * dbgcnt.def (stv_conversion): New.
4757 2015-09-29 Tom de Vries <tom@codesourcery.com>
4759 * tree-cfg.c (dump_function_to_file): Dump function attributes.
4761 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
4764 * config/sh/sh.c (sh_override_options_after_change): New.
4765 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
4766 (sh_option_override): Move align_loops, align_jumps and
4767 align_functions handling into sh_override_options_after_change.
4769 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
4771 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
4772 (nvptx_record_offload_symbol): Record function execution geometry.
4773 * config/nvptx/mkoffload.c (process): Include launch geometry in
4775 * omp-low.c (oacc_launch_pack): New.
4776 (replace_oacc_fn_attrib): New.
4777 (set_oacc_fn_attrib): New.
4778 (get_oacc_fn_attrib): New.
4779 (expand_omp_target): Create keyed varargs for GOACC_parallel call
4781 * omp-low.h (get_oacc_fn_attrib): Declare.
4782 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
4783 (DEF_FUNCTION_TYPE_VAR_11): Delete.
4784 * tree.h (OMP_CLAUSE_EXPR): New.
4785 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
4787 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
4788 Sebastian Pop <s.pop@samsung.com>
4790 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
4792 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
4793 Sebastian Pop <s.pop@samsung.com>
4795 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
4796 * graphite-scop-detection.c (struct sese_l): New type.
4797 (get_entry_bb): API for getting entry bb of SESE.
4798 (get_exit_bb): API for getting exit bb of SESE.
4799 (class debug_printer): New type. Simple printer in debug mode.
4800 (trivially_empty_bb_p): New. Return true when BB is empty or
4801 contains only debug instructions.
4802 (graphite_can_represent_expr): Call scalar_evoution_in_region
4803 instead of analyze_scalar_evolution. Pass in scop instead of only
4805 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
4807 (stmt_simple_for_scop_p): Same.
4808 (harmful_stmt_in_bb): Same.
4809 (graphite_can_represent_loop): Deleted.
4810 (struct scopdet_info): Deleted.
4811 (scopdet_basic_block_info): Deleted.
4812 (build_scops_1): Deleted.
4813 (bb_in_sd_region): Deleted.
4814 (find_single_entry_edge): Deleted.
4815 (find_single_exit_edge): Deleted.
4816 (create_single_entry_edge): Deleted.
4817 (sd_region_without_exit): Deleted.
4818 (create_single_exit_edge): Deleted.
4819 (unmark_exit_edges): Deleted.
4820 (mark_exit_edges): Deleted.
4821 (create_sese_edges): Deleted.
4822 (build_graphite_scops): Deleted.
4823 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
4824 (build_scops): Use the new scop_builder to build scops.
4825 (dot_all_scops_1): Use the new pretty printer. Print loop father
4827 (loop_body_is_valid_scop): New. Return true if loop body is a
4829 (class scop_builder): New. Builds SCoPs for polyhedral
4831 (scop_builder): New constructor.
4832 (static sese_l invalid_sese): sese_l with invalid edges.
4833 (get_sese): Get an sese (from a loop) if possible, invalid_sese
4835 (get_nearest_dom_with_single_entry): Get nearest dominator of a
4836 basic_block with single entry. Return NULL if we get to the
4837 beginning of a function.
4838 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
4839 a basic_block with single exit. Return NULL if we get to the
4840 beginning of a function.
4841 (print_sese): Pretty-print SESE.
4842 (merge_sese): Merge two SESEs if possible and return the new SESE.
4843 (build_scop_depth): Start building the SCoP within a loop nest.
4844 (build_scop_breadth): Start building the SCoP at a single loop
4845 depth. Merge adjacent SESEs if valid.
4846 (can_represent_loop_1): Returns true if Graphite can represent
4847 loop inside SCoP. Helper for can_represent_loop.
4848 (can_represent_loop): Returns true if Graphite can represent LOOP
4849 and all its nested loops in SCoP.
4850 (loop_is_valid_scop): Returns true if LOOP and all its nests
4851 constitute a valid SCoP.
4852 (region_has_one_loop): Returns true of a region has only one loop.
4853 (add_scop): Add SCoP to the list of valid scops. Removes an
4854 already existing scop if it intersects with or subsumed by this one.
4855 (harmful_stmt_in_region): Returns true if SCoP has any statment
4856 which cannot be represented by Graphite.
4857 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
4858 (remove_subscops): Remove any SCoP from the list of already found
4859 SCoPs, if subsumed by S1.
4860 (intersects): Return true if region bounded by SCoPs S1 and S2
4862 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
4863 * graphite.c (print_graphite_scop_statistics):
4864 (print_graphite_statistics): Print SCoP info while debugging.
4865 (graphite_initialize): Early exit in case number of loops in a
4866 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
4867 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
4868 (graphite_finalize):
4869 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
4870 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
4871 (recompute_all_dominators): Recalculate POST_DOMINATORS.
4872 * tree-cfg.c (print_loops): Print the function name while printing
4875 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
4876 Sebastian Pop <s.pop@samsung.com>
4878 PR tree-optimization/67700
4879 * graphite-sese-to-poly.c (parameter_index_in_region): Call
4880 invariant_in_sese_p_rec.
4881 (extract_affine): Same.
4882 (rewrite_cross_bb_scalar_deps): Call update_ssa.
4883 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
4884 * sese.h (invariant_in_sese_p_rec): Declare.
4886 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
4888 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
4890 2015-09-28 Jiong Wang <jiong.wang@arm.com>
4893 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4894 Jiong Wang <jiong.wang@arm.com>
4896 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
4897 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
4898 (REG_CLASS_NAMES): Likewise.
4899 (REG_CLASS_CONTENTS): Likewise.
4900 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
4901 (aarch64_register_move_cost): Likewise.
4902 (aarch64_load_symref_appropriately): Invoke the new added pattern if
4904 * config/aarch64/constraints.md (Uc0): New constraint.
4906 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
4908 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
4910 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
4912 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
4913 SECTION_EXCLUDE in XO mapping class.
4915 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
4918 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
4919 and handle ne and eq codes.
4920 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
4921 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
4922 CONST_INT_P. Use reverse_condition.
4923 (sh_split_treg_set_expr): Likewise.
4925 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
4927 * config/arm/types.md (type): Add rotate_imm.
4928 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
4930 (*rorsi3_insn_uxtw): Likewise.
4931 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
4932 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
4933 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
4935 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4937 PR rtl-optimization/67481
4938 * ifcvt.c (contains_ccmode_rtx_p): New function.
4939 (insn_valid_noce_process_p): Use it.
4941 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4943 PR rtl-optimization/67456
4944 PR rtl-optimization/67464
4945 PR rtl-optimization/67465
4946 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
4947 move in the mode of x. Handle combination of complex and simple
4948 block pairs as well as the case when one is empty.
4950 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4952 * doc/gimple.texi: Update references to gimple_statement_base.
4953 * gdbhooks.py: Likewise.
4954 * gimple.h: Likewise.
4956 2015-09-28 Daniel Cederman <cederman@gaisler.com>
4958 * config/sparc/driver-sparc.c: map LEON to leon3
4960 2015-09-28 Daniel Cederman <cederman@gaisler.com>
4962 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
4963 and make it inverse to change default
4964 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
4966 * doc/invoke.texi: Document change of default
4968 2015-09-28 Daniel Cederman <cederman@gaisler.com>
4970 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
4971 true on %f0 for a target without FPU.
4972 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
4974 (untyped_return): Do not load %f0 for a target without FPU.
4976 2015-09-28 Andrew Pinski <apinski@cavium.com>
4978 * config/aarch64/aarch64.md (prefetch):
4979 Change the predicate of operand 0 to register_operand.
4981 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
4983 * config/i386/predicates.md (register_sse4nonimm_operand): New
4985 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
4986 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
4987 Use register_sse4nonimm_operand as operand 0 predicate.
4988 (*vec_extractv8hi_sse2): Remove insn pattern.
4989 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
4990 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
4992 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
4993 Kaz Kojima <kkojima@gcc.gnu.org>
4996 * config/sh/sh-protos.h (sh_lra_p): Declare.
4997 * config/sh/sh.c (sh_lra_p): Make non-static.
4998 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
4999 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
5000 Expand into addsi3_scr if operands[2] if needed.
5001 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
5002 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
5003 (addsi3_scr, *addsi3): New insn_and_split patterns.
5005 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
5007 PR rtl-optimization/64164
5008 PR tree-optimization/67312
5012 * cfgexpand.c (parm_in_stack_slot_p): Remove.
5013 (ssa_default_def_partition): Remove.
5014 (get_rtl_for_parm_ssa_default_def): Remove.
5015 (set_rtl): Check that RTL assignments match expectations.
5016 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
5017 default def location for params and results. Record SSA names
5018 or types in REG and MEM attrs, respectively.
5019 (set_parm_rtl): New.
5020 (expand_one_ssa_partition): Drop logic that assigned MEMs with
5021 unassigned addresses.
5022 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
5023 deferred stack alloc vars.
5024 (expand_used_vars): Skip partitions holding parm default defs.
5025 Move adjust_one_expanded_partition_var loop...
5026 (pass_expand::execute): ... here. Drop redundant assert.
5027 Adjust comments before the final loop over all ssa names.
5028 Require assigned rtl of parms and results to match exactly.
5029 Reset its attributes to match them, not any other variables in
5031 (expand_debug_expr): Use entry value for PARM's default defs
5032 only iff they have zero nondebug uses.
5033 * cfgexpand.h (parm_in_stack_slot_p): Remove.
5034 (get_rtl_for_parm_ssa_default_def): Remove.
5035 (set_parm_rtl): Declare.
5036 * doc/invoke.texi: Improve wording.
5037 * explow.c (promote_decl_mode): Fix promote_function_mode for
5038 result decls not by reference.
5039 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
5040 bypass TYPE_MODE to get the actual vector mode.
5041 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
5042 2015-08-19's changes as follows. Drop include of
5043 basic-block.h and df.h.
5044 (rtl_for_parm): Remove.
5045 (maybe_reset_rtl_for_parm): Remove.
5046 (parm_in_unassigned_mem_p): Remove.
5047 (use_register_for_decl): Add logic for RESULT_DECLs matching
5048 assign_parms' behavior.
5049 (split_complex_args): Revert.
5050 (assign_parms_augmented_arg_list): Revert. Add comment
5051 referencing the logic above.
5052 (assign_parm_adjust_stack_rtl): Revert.
5053 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
5054 of SET_DECL_RTL. Set up a REG if the parm demands so.
5055 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
5056 calls into a single set_parm_rtl. Set up a temporary RTL
5057 temporarily for expand_assignment.
5058 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
5059 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
5060 (assign_bounds): Revert.
5061 (assign_parms): Revert. Use set_parm_rtl.
5062 (allocate_struct_function): Relayout result and parms of
5063 non-abstruct functions.
5064 (expand_function_start): Revert. Use set_parm_rtl. If the
5065 result is not a hard reg, create a pseudo from the promoted
5066 mode of the default def. Promote static chain mode.
5067 * tree-outof-ssa.c (remove_ssa_form): Drop unused
5068 partition_has_default_def. Set up
5069 partitions_for_parm_default_defs.
5070 (finish_out_of_ssa): Remove partition_has_default_def.
5071 Release partitions_for_parm_default_defs.
5072 * tree-outof-ssa.h (struct ssaexpand): Remove
5073 partition_has_default_def. Add
5074 partitions_for_parm_default_defs.
5075 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
5077 (build_ssa_conflict_graph): Fix conflict-detection of default
5078 defs of even unused default defs of params and results.
5079 (for_all_parms): New.
5080 (create_default_def): New.
5081 (register_default_def): New.
5082 (coalesce_with_default): New.
5083 (create_outofssa_var_map): Create default defs for all parms
5084 and results, and register their partitions. Add GIMPLE_RETURN
5085 operands as coalesce candidates with results. Add default
5086 defs of each parm or result as coalesce candidates with its
5087 other defs. Mark each result def, and each default def of
5088 parms, as used_in_copy.
5089 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
5090 with the ssa names, even anonymous ones. Drop
5091 parm_in_stack_slot_p calls. Require same signedness and
5093 (coalesce_ssa_name): Add coalesce candidates for all defs of
5094 each parm and result, even unused ones.
5095 (parm_default_def_partition_arg): New type.
5096 (set_parm_default_def_partition): New.
5097 (get_parm_default_def_partitions): New.
5098 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
5099 * tree-ssa-live.c (partition_view_init): Regard unused defs of
5100 parms and results as used.
5101 (verify_live_on_entry): Don't error out just because they're
5104 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
5106 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
5107 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
5108 (output_fde): Don't output length for debug_frame on AIX.
5109 (output_call_frame_info): Don't output length for debug_frame on AIX.
5110 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
5111 HAVE_XCOFF_DWARF_EXTRAS.
5112 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
5113 HAVE_XCOFF_DWARF_EXTRAS.
5114 (output_compilation_unit_header): Don't output length on AIX.
5115 (output_pubnames): Don't output length on AIX.
5116 (output_aranges): Delete argument. Compute length locally. Don't
5117 output length on AIX.
5118 (output_line_info): Don't output length on AIX.
5119 (dwarf2out_finish): Don't compute aranges_length.
5120 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
5121 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
5122 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
5123 symbol decoration for AIX.
5124 (rs6000_xcoff_debug_unwind_info): New.
5125 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
5127 (rs6000_xcoff_declare_function_name): Emit different
5128 .function pseudo-op when DWARF2_DEBUG. Don't call
5129 xcoffout_declare_function for DWARF2_DEBUG.
5130 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
5132 * config/rs6000/aix71.h: New.
5133 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
5135 * configure: Regenerate.
5136 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
5139 2015-09-26 Jeff Law <law@redhat.com>
5141 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
5143 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
5146 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
5149 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
5150 undefined behaviour.
5152 * config/cris/cris.md (asrandb): Fix left shift undefined
5154 (asrandw): Likewise.
5156 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
5159 * lra-constarints.c (match_reload): Check presence of the input pseudo
5160 in the output operand.
5162 2015-09-25 Tobias Burnus <burnus@net-b.de>
5164 * doc/invoke.texi (-fsanitize): Minor wording tweak.
5166 2015-09-25 Tobias Burnus <burnus@net-b.de>
5168 * doc/invoke.texi (-fsanitize): Update URLs.
5170 2015-09-25 Teresa Johnson <tejohnson@google.com>
5172 * opts.c (finish_options): Unset -freorder-blocks-and-partition
5173 if not using profile.
5175 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
5177 PR pretty-print/67567
5178 * pretty-print.c (pp_string): Add gcc_checking_assert.
5179 * pretty-print.h (output_buffer_append_r): Likewise.
5181 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
5184 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
5185 addr2 individually. Don't emit logical or insn if one is known to
5186 be aligned approriately.
5187 (sh_expand_cmpnstr): Likewise.
5189 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
5191 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
5192 __builtin_aarch64_fp[sc]r arguments into a register.
5194 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
5196 * config.gcc (x86_archs): Replace lakemount with lakemont.
5197 (with_cpu): Likewise.
5198 (with_arch): Likewise.
5199 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
5200 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
5201 __tune_lakemount__ with __tune_lakemont__.
5202 * config/i386/i386.c (lakemount_cost): Renamed to ...
5203 (lakemont_cost): This.
5204 (m_LAKEMOUNT): Renamed to ...
5206 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
5207 (processor_target_table): Replace "lakemount" with "lakemont".
5208 (processor_alias_table): Likewise.
5209 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
5211 (ix86_adjust_cost): Likewise.
5212 (ia32_multipass_dfa_lookahead): Likewise.
5213 * config/i386/i386.h (processor_type): Likewise.
5214 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
5215 * doc/invoke.texi: Replace lakemount with lakemont. Replace
5216 Lakemount with Lakemont.
5218 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
5220 * config.gcc (x86_archs): Replace iamcu with lakemount.
5221 (with_cpu): Likewise.
5222 (with_arch): Likewise.
5223 * doc/invoke.texi: Likewise.
5224 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
5225 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
5226 __tune_iamcu__ with __tune_lakemount__.
5227 * config/i386/i386.c (iamcu_cost): Renamed to ...
5228 (lakemount_cost): This.
5229 (m_IAMCU): Renamed to ...
5230 (m_LAKEMOUNT): This.
5231 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
5232 (processor_target_table): Replace "iamcu" with "lakemount".
5233 (processor_alias_table): Likewise.
5234 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
5235 PROCESSOR_LAKEMOUNT.
5236 (ix86_adjust_cost): Likewise.
5237 (ia32_multipass_dfa_lookahead): Likewise.
5238 * config/i386/i386.h (processor_type): Likewise.
5239 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
5241 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
5243 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
5244 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
5246 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
5247 (pa_expand_compare_and_swap_loop): New.
5248 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
5249 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
5250 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
5251 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
5252 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
5255 2015-09-24 Michael Collison <michael.collison@linaro.org>
5258 * read-md.c (read_name): Allow mode iterators inside angle
5259 brackets in rtl expressions.
5261 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
5264 * ira-color.c (update_allocno_cost): Add parameter.
5265 (update_costs_from_allocno): Decrease conflict cost. Pass the new
5268 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
5271 * opts-common.c (prune_options): Discard all -fdiagnostics-color
5272 but the last one, which is moved to the front to be processed
5274 * opts.c (enable_warning_as_error): Reject options that do not
5277 2015-09-24 Jiong Wang <jiong.wang@arm.com>
5279 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
5281 2015-09-24 Jiong Wang <jiong.wang@arm.com>
5283 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
5284 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
5285 (aarch64_cannot_force_const_mem): Likewise.
5286 (aarch64_classify_address): Likewise.
5287 (aarch64_classify_symbolic_expression): Likewise.
5288 (aarch64_print_operand): Likewise.
5289 (aarch64_classify_symbol): Likewise.
5290 (aarch64_mov_operand_p): Likewise.
5291 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
5292 (aarch64_mov_operand): Likewise.
5294 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
5296 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
5297 for info->spe_gp_size.
5299 2015-09-24 Richard Biener <rguenther@suse.de>
5302 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
5305 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
5307 * tree-object-size.c (plus_stmt_object_size)
5308 (cond_expr_object_size): Change the formal parameters from gimple
5310 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
5311 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
5312 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
5314 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5316 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
5317 Check for ld -type pie on Solaris 11.x and 12.
5318 * configure: Regenerate.
5319 * config.in: Regenerate.
5321 * gcc.c (LD_PIE_SPEC): Allow redefinition.
5323 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
5324 (STARTFILE_SPEC): Use it.
5325 (ENDFILE_CRTEND_SPEC): Define.
5326 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
5327 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
5328 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
5329 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
5330 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
5331 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
5332 (ENDFILE_ARCH_SPEC): Define.
5333 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
5335 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5337 * configure.ac (gcc_cv_solaris_crts): New test.
5338 * configure. Regenerate.
5339 * config.in: Regenerate.
5340 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
5341 HAVE_SOLARIS_CRTS variant.
5343 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5345 * tree-inline.h (count_insns_seq): Delete prototype.
5346 (estimate_num_insns_seq): Define prototype.
5347 * tree-inline.c (count_insns_seq): Delete.
5348 (estimate_num_insns_seq): Remove static qualifier.
5349 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
5350 with estimate_num_insns_seq.
5352 2015-09-24 Richard Biener <rguenther@suse.de>
5354 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
5356 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
5357 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
5359 (ao_ref_init_from_vn_reference): Record clique and base in the
5361 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
5363 2015-09-24 Richard Biener <rguenther@suse.de>
5365 PR tree-optimization/48885
5366 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
5367 as not including any restrict tags from other pointers.
5369 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
5371 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
5372 character when appending to offload_targets.
5374 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
5375 offload targets by commas, not colons.
5376 * config.in: Regenerate.
5377 * configure: Likewise.
5378 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
5379 instead of setting up the default offload targets here...
5380 (process_command): ..., do it here.
5382 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
5383 targets are separated by commas.
5384 * config.h.in: Regenerate.
5386 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
5387 Nathan Sidwell <nathan@codesourcery.com>
5389 * omp-low.h (omp_reduction_init_op): Declare.
5390 * omp-low.c (omp_reduction_init_op): New, broken out of ...
5391 (omp_reduction_init): ... here. Call it.
5392 * tree-parloops.c (initialize_reductions): Use
5393 omp_reduction_init_op.
5395 2015-09-23 Richard Biener <rguenther@suse.de>
5398 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
5399 undefined overflow unless they will cancel out.
5401 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
5403 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
5406 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
5409 * opts.h (write_langs): Declare.
5410 * opts-global.c (write_langs): Make it extern.
5412 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
5415 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
5416 overlapping regs when matching the pattern.
5418 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
5420 * config/aarch64/aarch64-simd.md
5421 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
5422 (aarch64_float_truncate_hi_v4sf_le): New.
5423 (aarch64_float_truncate_hi_v4sf_be): Likewise.
5425 2015-09-23 Richard Biener <rguenther@suse.de>
5427 * tree-ssa-structalias.c (intra_create_variable_infos): Build
5428 representatives for all restrict qualified pointer destinations.
5430 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
5432 * config/i386/i386.md (define_code_attr mshift): New.
5433 (define_mode_iterator SWI1248_AVX512BW): Rename ...
5434 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
5436 (define_insn "*k<logic><mode>"): Use new iterator name.
5437 (define_insn "*<mshift><mode>3"): New.
5439 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
5442 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
5443 mark the block as accessible.
5445 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
5447 * function.c (thread_prologue_and_epilogue_insns): Delete
5448 orig_entry_edge argument to try_shrink_wrapping.
5449 * shrink-wrap.c (can_get_prologue): New function.
5450 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
5451 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
5452 can_get_prologue where needed. Remove code that finds a single
5453 edge for the prologue. Remove code that tests if any reg clobbered
5454 by the prologue is live on the prologue edge. Remove code that finds
5455 the new prologue edge after duplicating blocks. Make a new prologue
5457 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
5459 2015-09-22 Jeff Law <law@redhat.com>
5461 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
5464 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
5466 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
5467 -Wtemplates, -Wnamespaces): Document.
5469 2015-09-22 Tom de Vries <tom@codesourcery.com>
5471 PR tree-optimization/67671
5472 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
5473 pointer references as restrict.
5475 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
5477 * config/nios2/nios2.c (nios2_legitimize_address): When handling
5478 'reg + reloc' cases, allow first operand to be non-REG, and use
5479 force_reg() to enforce address pattern.
5481 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
5484 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
5485 (define_mode_iterator VI12_AVX_AVX512F): New.
5486 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
5487 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
5488 (define_insn "*<code><mode>3"): ... Into new pattern using
5489 VI12_AVX_AVX512F iterators without masking.
5491 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
5493 * config.gcc: Support "skylake-avx512".
5494 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5495 PROCESSOR_SKYLAKE_AVX512.
5496 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
5497 (processor_target_table): Add "skylake-avx512".
5498 (PTA_SKYLAKE_AVX512): Define.
5499 (ix86_option_override_internal): Add "skylake_avx512".
5500 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
5501 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
5502 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
5503 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
5504 * doc/invoke.texi (skylake-avx512): New.
5506 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
5508 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
5510 (define_insn "kunpcksi"): Ditto.
5511 (define_insn "kunpckdi"): Ditto.
5513 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
5515 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
5516 iterator instead of fixed modes.
5518 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5520 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
5522 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
5523 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
5524 out_result. Update to support update-fetch operations.
5525 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
5526 Adjust for change to aarch64_gen_atomic_ldop.
5527 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
5528 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
5529 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
5530 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
5531 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
5533 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5535 * config/aarch64/aarch64-protos.h
5536 (aarch64_atomic_ldop_supported_p): Declare.
5537 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
5538 (enum aarch64_atomic_load_op_code): New.
5539 (aarch64_emit_atomic_load_op): New.
5540 (aarch64_gen_atomic_ldop): Update to support load-operate
5542 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
5544 (aarch64_atomic_<atomic_optab><mode>): New.
5545 (aarch64_atomic_<atomic_optab><mode>_lse): New.
5546 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
5547 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
5548 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
5550 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5552 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
5553 (UNSPECV_ATOMIC_LDOP_OR): New.
5554 (UNSPECV_ATOMIC_LDOP_BIC): New.
5555 (UNSPECV_ATOMIC_LDOP_XOR): New.
5556 (UNSPECV_ATOMIC_LDOP_PLUS): New.
5559 (aarch64_atomic_load<atomic_ldop><mode>): New.
5561 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5563 * config/aarch64/aarch64.md
5564 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
5567 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5569 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
5571 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
5572 (aarch64_gen_atomic_ldop): New.
5573 (aarch64_split_atomic_op): Fix whitespace and add a comment.
5574 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
5575 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
5576 (atomic_exchange<mode>): Replace with an expander.
5577 (aarch64_atomic_exchange<mode>): New.
5578 (aarch64_atomic_exchange<mode>_lse): New.
5579 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
5580 (aarch64_atomic_swp<mode>): New.
5582 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5584 * tree-inline.c (expand_call_inline): Use inform for extra note.
5585 Do not give a note with UNKNOWN_LOCATION.
5586 Replace input_location with gimple_location (stmt).
5587 Use true/false instead of TRUE/FALSE.
5589 2015-09-22 Tom de Vries <tom@codesourcery.com>
5591 PR tree-optimization/67666
5592 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
5593 with single field non-conservative.
5595 2015-09-21 David S. Miller <davem@davemloft.net>
5599 2015-09-11 David S. Miller <davem@davemloft.net>
5601 * config/sparc/constraints.md: Make "U" constraint a real register
5603 * config/sparc/sparc.c (TARGET_LRA_P): Define.
5604 (D_MODES, DF_MODES): Add missing cast.
5605 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
5606 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
5607 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
5609 * config/sparc/sparc.h (PROMOTE_MODE): Define.
5610 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
5611 provide these insn when flag_pic.
5613 2015-09-17 David S. Miller <davem@davemloft.net>
5615 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
5617 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
5619 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
5620 (HARD_REGNO_CALLER_SAVE_MODE): Define.
5621 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
5622 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
5623 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
5624 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
5625 provide when flag_pic.
5627 2015-09-21 Jeff Law <law@redhat.com>
5629 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
5632 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5634 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
5636 2015-09-21 Richard Biener <rguenther@suse.de>
5638 * passes.c (rest_of_decl_compilation): Do not call
5639 dwarf2out_early_global_decl for aliases.
5641 2015-09-21 Richard Biener <rguenther@suse.de>
5644 * dwarf2out.c (add_location_or_const_value_attribute): Remove
5645 attribute parameter. Early exit if either DW_AT_const_value
5646 or DW_AT_location are present already.
5647 (gen_variable_die): Adjust caller.
5648 (dwarf2out_late_global_decl): Likewise.
5650 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
5653 * config/sh/sh.c (sh_remove_overlapping_post_inc,
5654 sh_peephole_emit_move_insn): Add new functions.
5655 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
5656 sh_peephole_emit_move_insn): Declere them.
5657 * config/sh/sh.md: Use them in various peephole2 patterns.
5659 2015-09-21 Richard Biener <rguenther@suse.de>
5662 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
5663 address with -fno-delete-null-pointer-checks.
5665 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
5667 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
5668 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
5669 (reduc_uplus_v16qi): Remove.
5671 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
5672 (reduc_<VEC_reduc_name>_v2df): Remove.
5673 (reduc_<VEC_reduc_name>_v4sf): Remove.
5674 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
5676 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
5677 gen_ function by removing * prefix.
5678 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
5680 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5683 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
5684 Print i_bound without converting it to a tree.
5686 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
5688 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
5689 operands[4] operands[5] swap with std::swap, removed tmp variable.
5690 (arm_evpc_neon_vzip): Replaced in0/in1 and
5691 out0/out1 swaps with std::swap, removed x variable.
5692 (arm_evpc_neon_vtrn): Replaced in0/int1 and
5693 out0/out1 swaos with std::swap, removed x variable.
5694 (arm_expand_vec_perm_const_1): Replaced
5695 d->op0/d->op1 swap with std::swap, removed x variable.
5696 (arm_evpc_neon_vuzp): Replaced in0/in1 and
5697 out0/out1 swaps with std::swap, removed x variable.
5699 2015-09-21 Jonathan Yong <10walls@gmail.com>
5701 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
5702 sysroot/usr/lib/32api for additional win32 libraries,
5703 fixes failing Cygwin bootstrapping.
5705 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
5707 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
5709 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
5712 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
5713 (*mov_t_msb_neg): Rewrite negc pattern.
5715 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5717 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
5718 immediate generation code.
5720 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5722 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
5723 redundant immediate generation code.
5725 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5727 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
5728 (AARCH64_NUM_BITMASKS): Remove.
5729 (aarch64_bitmasks_cmp): Remove.
5730 (aarch64_build_bitmask_table): Remove.
5732 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5734 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
5735 slow immediate matching loops with a faster algorithm.
5737 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5739 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
5742 2015-09-20 Jeff Law <law@redhat.com>
5744 PR tree-optimization/47679
5745 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
5746 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
5747 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
5748 (thread_through_normal_block): Use record_temporary_equivalences.
5750 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
5752 * coretypes.h (gimple): Change typedef to be a forward declaration.
5753 * gimple.h (gimple_statement_base): rename to gimple.
5754 * (all functions and types using gimple): Adjust.
5757 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
5758 David Edelsohn <dje.gcc@gmail.com>
5760 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
5761 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5762 (EH_FRAME_THROUGH_COLLECT2): Define.
5763 (EH_TABLES_CAN_BE_READ_ONLY): Define.
5764 (ASM_OUTPUT_DWARF_PCREL): Define.
5765 (ASM_OUTPUT_DWARF_DATAREL): Define.
5767 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
5769 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
5772 2015-09-18 Jeff Law <law@redhat.com>
5774 PR tree-optimization/47679
5775 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
5777 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
5778 object. Update constructor.
5779 (pass_dominator::execute): Corresponding chagnes to declaration
5780 and initialization of avail_exprs_stack. Update constructor call
5781 for dom_opt_dom_walker object.
5782 (lookup_avail_expr, record_cond): Accept additional argument. Pass
5783 it down to children as needed.
5784 (record_equivalences_from_incoming_edge): Likewise.
5785 (eliminate_redundant_computations): Likewise.
5786 (record_equivalences_from_stmt): Likewise.
5787 (simplify_stmt_for_jump_threading): Likewise.
5788 (record_temporary_equivalences): Likewise.
5789 (optimize_stmt): Likewise.
5790 (dom_opt_dom_walker::thread_across_edge): Update access to
5791 avail_exprs_stack object and pass it to children as needed.
5792 (dom_opt_dom_walker::before_dom_children): Similarly.
5793 (dom_opt_dom_walker::after_dom_children): Similarly.
5794 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
5795 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
5796 Add avail_expr_stack argument. Pass it to children as needed.
5797 (dummy_simplify): Likewise.
5798 (simplify_control_stmt_condition): Likewise.
5799 (thread_around_empty_blocks): Likewise.
5800 (thread_through_normal_block): Likewise.
5801 (thread_across_edge): Likewise.
5802 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
5803 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
5805 PR tree-optimization/47679
5806 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
5808 (dom_opt_dom_walker): New private member holding the const_and_copies
5809 object. Update constructor.
5810 (pass_dominator::execute): Corresponding changes to declaration
5811 and initialization of const_and_copies. Update constructor call
5812 for the dom_opt_dom_walker object.
5813 (record_temporary_equivalences): Accept const_and_copies argument
5814 pass it down to children as needed.
5815 (record_equality): Likewise.
5816 (record_equivalences_from_incoming_edge): Likewise.
5817 (cprop_into_successor_phis, optimize_stmt): Likewise.
5818 (eliminate_redundant_computations): Likewise.
5819 (dom_opt_dom_walker::thread_across_edge): Update access to
5820 const_and_copies object and pass it to children as needed.
5821 (dom_opt_dom_walker::before_dom_children): Similarly.
5822 (dom_opt_dom_walker::after_dom_children): Similarly.
5824 PR tree-optimization/47679
5825 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
5826 it into the avail_exprs_stack class.
5827 (pass_dominator::execute): Corresponding changes to declaration
5828 and initialization of avail_exprs. Pass avail_exprs to
5829 dump_dominator_optimization_stats.
5830 (record_cond): Extract avail_exprs from avail_exprs_stack.
5831 (lookup_avail_expr): Similarly.
5832 (htab_staticstics): Remove unnecessary prototype. Move to earlier
5834 (dump_dominator_optimization_stats): Make static and prototype.
5835 Add argument for the hash table to dump.
5836 (debug_dominator_optimization_stats): Remove.
5837 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
5839 (debug_dominator_optimization_stats): Similarly.
5840 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
5841 "void" in prototype for pop_to_marker method. Add accessor method
5842 for the underlying avail_exprs table.
5844 * tree-ssa-threadedge.c: Remove trailing whitespace.
5846 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
5848 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
5850 (pa_ldil_cint_p): Likewise.
5851 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
5852 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
5854 * config/pa/pa.md: Likewise.
5856 2015-09-18 David Malcolm <dmalcolm@redhat.com>
5858 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
5859 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
5860 (diagnostic_show_locus): Likewise.
5861 (diagnostic_print_caret_line): Likewise.
5862 * diagnostic-show-locus.c: New file.
5864 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
5866 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
5867 "back" parameter. Declare label in #if block.
5869 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
5872 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
5873 the address to a register.
5875 2015-09-18 Jeff Law <law@redhat.com>
5877 PR tree-optimization/47679
5878 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
5879 * tree-ssa-dom.c: Remove unnecessary header includes.
5880 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
5881 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
5882 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
5883 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
5884 (pass_phi_only_cprop::execute): Likewise.
5885 (make_pass_phi_only_cprop): Likewise.
5886 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
5887 uses of file scoped statics by passing the required objects
5888 as parameters wherever needed.
5890 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
5891 David Edelsohn <dje.gcc@gmail.com>
5893 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
5894 EH_FRAME_THROUGH_COLLECT2.
5895 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
5897 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
5898 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
5899 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
5900 * except.c (switch_to_exception_section): Use a read-only section
5901 even if EH_FRAME_SECTION_NAME is undefined.
5902 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
5903 * collect2.c (write_c_file_stat): Provide dbase on AIX.
5904 (scan_prog_file): Don't export __dso_handle nor
5906 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5907 (EH_TABLES_CAN_BE_READ_ONLY): Define.
5908 (ASM_OUTPUT_DWARF_PCREL): Define.
5909 (ASM_OUTPUT_DWARF_DATAREL): Define.
5910 (EH_FRAME_THROUGH_COLLECT2): Define.
5911 (EH_FRAME_IN_DATA_SECTION): Delete.
5912 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
5913 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
5915 (rs6000_asm_output_dwarf_datarel): Declare.
5916 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
5917 (rs6000_aix_asm_output_dwarf_datarel): New.
5918 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
5919 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
5920 (EH_FRAME_THROUGH_COLLECT2): Define.
5921 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
5922 (EH_FRAME_THROUGH_COLLECT2): Define.
5923 (EH_TABLES_CAN_BE_READ_ONLY): Define.
5924 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
5925 (EH_FRAME_THROUGH_COLLECT2): New.
5926 (ASM_OUTPUT_DWARF_DATAREL): New.
5927 * doc/tm.texi: Regenerate.
5929 2015-09-18 Richard Biener <rguenther@suse.de>
5931 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
5932 we're in early phase.
5933 (schedule_generic_params_dies_gen): Likewise.
5934 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
5935 work as possible, retaining unhandled cases.
5936 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
5937 clear out generic_type_instances at the end.
5938 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
5939 (dwarf2out_early_finish): ... here. Do most of
5940 gen_remaining_tmpl_value_param_die_attribute here.
5942 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
5944 PR tree-optimization/67283
5945 * tree-sra.c (type_consists_of_records_p): Rename to...
5946 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
5947 (completely_scalarize_record): Rename to...
5948 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
5949 (scalarize_elem): New.
5950 (analyze_all_variable_accesses): Follow renamings.
5952 2015-09-18 Richard Biener <rguenther@suse.de>
5954 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
5957 2015-09-18 Richard Biener <rguenther@suse.de>
5959 PR tree-optimization/66142
5960 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
5961 treat MEM[&x] and x the same.
5962 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
5963 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
5964 when we simplified sth.
5965 (vn_reference_maybe_forwprop_address): Likewise.
5966 (valueize_refs_1): When we simplified through
5967 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
5968 set valueized_anything to true.
5969 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
5970 one ref kills the other instead of just a offset-based test.
5971 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
5972 for the operand_equal_p test to compare bases and also compare
5975 2015-09-17 Christian Bruel <christian.bruel@st.com>
5977 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
5979 2015-09-17 Richard Henderson <rth@redhat.com>
5982 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
5983 pointers that encode the alignment of the object.
5985 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
5987 PR rtl-optimization/66790
5988 * df-problems.c (LIVE): Amend documentation.
5990 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
5992 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
5994 (GTFILES): Replace optabs.c with optabs-libfunc.c.
5995 * genopinit.c (main): Add an include guard to insn-opinit.h.
5996 Protect the rtx_code parts with NUM_RTX_CODE.
5997 * optabs.h: Split parts out to...
5998 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
5999 * optabs.c: Split parts out to...
6000 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
6001 * cilk-common.c: Include optabs-query.h rather than optabs.h.
6002 * fold-const.c: Likewise.
6003 * target-globals.c: Likewise.
6004 * tree-if-conv.c: Likewise.
6005 * tree-ssa-forwprop.c: Likewise.
6006 * tree-ssa-loop-prefetch.c: Likewise.
6007 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
6008 Remove unncessary include files.
6009 * tree-ssa-phiopt.c: Likewise.
6010 * tree-ssa-reassoc.c: Likewise.
6011 * tree-switch-conversion.c: Likewise.
6012 * tree-vect-data-refs.c: Likewise.
6013 * tree-vect-generic.c: Likewise.
6014 * tree-vect-loop.c: Likewise.
6015 * tree-vect-patterns.c: Likewise.
6016 * tree-vect-slp.c: Likewise.
6017 * tree-vect-stmts.c: Likewise.
6018 * tree-vrp.c: Likewise.
6019 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
6020 rather than optabs.h.
6021 * expr.c: Include optabs-tree.h.
6022 * function.c: Likewise.
6024 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
6027 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
6028 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
6029 * config/arm/arm.c: Include common/common-target.h.
6030 (use_return_insn): Return 0 if the static chain register was saved
6031 above a non-APCS frame.
6032 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
6033 (struct scratch_reg): New.
6034 (get_scratch_register_on_entry): New function.
6035 (release_scratch_register_on_entry): Likewise.
6036 (arm_emit_probe_stack_range): Likewise.
6037 (output_probe_stack_range): Likewise.
6038 (arm_expand_prologue): Factor out code dealing with the IP register
6039 for nested function and adjust it for stack checking.
6040 Invoke arm_emit_probe_stack_range if static builtin stack checking
6042 (thumb1_expand_prologue): Sorry out if static builtin stack checking
6044 (arm_expand_epilogue): Add the saved static chain register, if any, to
6045 the amount of pre-pushed registers to pop.
6046 (arm_frame_pointer_required): Return true if static stack checking is
6047 enabled and we want to catch the exception with the EABI unwinder.
6048 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
6049 (UNSPEC_PROBE_STACK_RANGE): Likewise.
6050 * config/arm/arm.md (probe_stack): New insn.
6051 (probe_stack_range): Likewise.
6053 2015-09-17 Richard Biener <rguenther@suse.de>
6055 * genmatch.c (parser::parse_expr): Improve error message
6056 for mis-placed flags.
6058 2015-09-17 Richard Biener <rguenther@suse.de>
6060 * passes.c (rest_of_decl_compilation): Always call early_global_decl
6061 debug hook when we created a varpool node.
6062 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
6063 dwarf2out_early_global_decl, when not just add location or
6064 value attributes to existing DIEs.
6066 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
6068 * config/aarch64/aarch64.md (copysigndf3): New.
6069 (copysignsf3): Likewise.
6071 2015-09-17 David S. Miller <davem@davemloft.net>
6073 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
6074 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
6075 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
6076 (HARD_REGNO_CALLER_SAVE_MODE): Define.
6077 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
6078 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
6079 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
6080 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
6081 provide when flag_pic.
6083 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
6085 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
6086 object_allocator change.
6088 2015-09-17 Bin Cheng <bin.cheng@arm.com>
6090 PR tree-optimization/66388
6091 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
6092 (dump_iv): Dump no_overflow information.
6093 (alloc_iv): Initialize new field for struct iv.
6094 (mark_bivs): Count number of no_overflow bivs.
6095 (find_deriving_biv_for_expr, record_biv_for_address_use): New
6097 (idx_find_step): Call new functions above.
6098 (add_candidate_1, add_candidate): New paramter.
6099 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
6100 (get_computation_aff): Simplify convertion of cand for BIV.
6101 (get_computation_cost_at): Step cand's base if necessary.
6103 2015-09-17 Bin Cheng <bin.cheng@arm.com>
6105 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
6107 (tree_simplify_using_condition): Ditto.
6108 (simplify_using_initial_conditions): Ditto.
6109 (loop_exits_before_overflow): Pass new argument to function
6110 simplify_using_initial_conditions. Remove case for type conversions
6112 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
6114 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
6115 in iv base using loop initial conditions.
6117 2015-09-16 Jeff Law <law@redhat.com>
6119 PR tree-optimization/47679
6120 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
6121 (free_all_edge_infos): Use it.
6122 (allocate_edge_info): Free preexisting edge info data.
6123 (pass_dominator::execute): Set up initial edge info structures.
6124 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
6126 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
6127 If non-null, then push/pop markers appropriately.
6128 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
6129 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
6132 2015-09-16 James Bowman <james.bowman@ftdichip.com>
6134 * config/ft32/ft32.c: Fix the memory address space predicate.
6136 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
6139 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
6140 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
6142 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6144 * toplev.h (check_global_declaration): Remove declaration.
6145 * toplev.c (check_global_declaration): Move to ...
6146 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
6147 (analyze_functions): Update call.
6149 2015-09-16 David S. Miller <davem@davemloft.net>
6151 * lra-constraints.c (simplify_operand_subreg): Do not assume that
6152 lowpart of a SUBREG has offset zero.
6154 2015-09-16 Jeff Law <law@redhat.com>
6156 PR tree-optimization/47679
6157 * tree-ssa-dom.c (enum expr_kind): Moved from here to
6158 tree-ssa-scopedtables.h.
6159 (struct hashable_expr, class expr_hash_elt): Likewise.
6160 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
6161 Move associated methods into tree-ssa-scopedtables.c.
6162 (avail_expr_hash, initialize_expr_from_cond): Similarly.
6163 (hashable_expr_equal_p, add_expr_commutative): Likewise.
6164 (add_hashable_expr): Likewise.
6165 (record_cond): Delete element directly.
6166 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
6167 private copy ctor and assignment operator methods.
6168 (expr_elt_hasher): Inline trivial methods.
6169 (initialize_expr_from_cond): Prototype.
6170 * tree-ssa-scopedtables.c: Add necessary includes, functions and
6171 methods that were previously in tree-ssa-dom.c. Improve various
6174 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
6176 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
6178 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
6181 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
6184 2015-09-16 Richard Biener <rguenther@suse.de>
6187 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
6188 location of possibly shared trees.
6190 2015-09-16 Richard Biener <rguenther@suse.de>
6193 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
6195 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
6197 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
6198 offset and size computations instead of HOST_WIDE_INT.
6200 2015-09-16 Richard Biener <rguenther@suse.de>
6203 * fold-const.c (extract_muldiv_1): Properly extend multiplication
6204 result before builting a tree via wide_int_to_tree.
6206 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
6208 * Makefile.in: Add memory-block.cc
6209 (pool_allocator::initialize): Use fixed block size.
6210 (pool_allocator::release): Use memory_block_pool.
6211 (pool_allocator::allocate): Likewise.
6212 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
6214 * cfg.c (initialize_original_copy_tables): Likewise.
6215 * cselib.c (elt_list_pool, elt_loc_list_pool,
6216 cselib_val_pool): Likewise.
6217 * df-problems.c (df_chain_alloc): Likewise.
6218 * df-scan.c (df_scan_alloc): Likewise.
6219 * dse.c (cse_store_info_pool, rtx_store_info_pool,
6220 read_info_type_pool, insn_info_type_pool, bb_info_pool,
6221 group_info_pool, deferred_change_pool): Likewise.
6222 * et-forest.c (et_nodes, et_occurrences): Likewise.
6223 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
6224 ipcp_agg_lattice_pool): Likewise.
6225 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
6226 * ipa-profile.c (histogram_pool): Likewise.
6227 * ipa-prop.c (ipa_refdesc_pool): Likewise.
6228 * ira-build.c (live_range_pool, allocno_pool, object_pool,
6229 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
6230 * ira-color.c (update_cost_record_pool): Likewise.
6231 * lra-lives.c (lra_live_range_pool): Likewise.
6232 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
6233 * memory-block.cc: New file.
6234 * memory-block.h: New file.
6235 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
6236 * sched-deps.c (sched_deps_init): Likewise.
6237 * sel-sched-ir.c (sched_lists_pool): Likewise.
6238 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
6239 * tree-sra.c (access_pool): Likewise.
6240 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
6241 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
6242 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
6243 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
6244 * tree-ssa-strlen.c (strinfo_pool): Likewise.
6245 * tree-ssa-structalias.c (variable_info_pool): Likewise.
6246 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
6247 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
6249 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
6251 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
6253 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
6256 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
6258 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
6259 to pass TLS call argument, according to current ABI.
6260 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
6261 callx0 for TLS call, according to current ABI.
6263 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
6265 * tree-eh.c (lower_try_finally_dup_block): Clear location information
6266 on stack restore statements.
6267 (decide_copy_try_finally): Do not consider a stack restore statement as
6268 coming from sources.
6270 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
6272 * config/alpha/alpha.c (alpha_expand_block_clear): Use
6273 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
6275 2015-09-15 Jeff Law <law@redhat.com>
6277 PR tree-optimization/47679
6278 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
6279 methods and private members.
6280 (avail_exprs_stack): Similarly. Change type of global
6281 from a pair of expr_hash_elt_t to the new class.
6282 (expr_elt_hasher::hash): Corresponding changes.
6283 (expr_elt_hasher::equal): Similarly.
6284 (avail_expr_hash): Similarly.
6285 (pass_dominator::execute): Similarly.
6286 (dom_opt_dom_walker::thread_across_edge): Similarly.
6287 (record_cond): Similarly.
6288 (dom_opt_dom_walker::before_dom_children): Similarly.
6289 (dom_opt_dom_walker::after_dom_children): Similarly.
6290 (lookup_avail_expr): Likewise.
6291 (initialize_hash_element): Now a expr_hash_elt constructor.
6292 (initialize_hash_element_from_expr): Similarly.
6293 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
6294 (free_expr_hash_elt): Call dtor for the element.
6295 (remove_local_expressions_from_table): Now the "pop_to_marker"
6296 method in the available_exprs_stack class.
6297 (avail_expr_stack::record_expr): Method factored out.
6298 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
6300 (hashable_expr_equal_p): Fix formatting.
6302 2015-09-15 David Malcolm <dmalcolm@redhat.com>
6304 * input.h (location_get_source_line): Drop "expanded_location"
6305 param in favor of a file and line number.
6306 * input.c (location_get_source_line): Likewise.
6307 (dump_location_info): Update for change in signature of
6308 location_get_source_line.
6309 * diagnostic.c (diagnostic_print_caret_line): Likewise.
6311 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
6313 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
6314 Bump to 4KB for SJLJ exceptions.
6315 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
6316 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
6317 * doc/tm.texi: Regenerate.
6319 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6321 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
6322 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
6325 2015-09-15 Richard Biener <rguenther@suse.de>
6327 PR tree-optimization/67470
6328 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
6329 structure for PHI hoisting by inserting a forwarder block
6332 2015-09-15 Christian Bruel <christian.bruel@st.com>
6334 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
6335 (arm_option_print): New function.
6337 2015-09-15 Christian Bruel <christian.bruel@st.com>
6340 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
6341 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
6342 Remove flags parameter.
6343 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
6344 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
6345 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
6346 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
6347 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
6348 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
6349 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
6350 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
6352 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6354 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
6356 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
6357 AARCH64_VALID_SIMD_DREG_MODE.
6359 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6361 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
6362 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
6363 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
6364 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
6365 aarch64_ld4_lane<mode>): Combine together, making...
6366 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
6367 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
6368 aarch64_st4_lane<mode>): Combine together, making...
6369 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
6370 * config/aarch64/iterators.md (nregs): Add comment.
6372 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6374 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
6375 Change operand mode from <V_TWO_ELEM> to BLK.
6376 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
6377 (aarch64_vec_store_lanesoi_lane<mode): Likewise
6378 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
6379 (aarch64_ld2_lane<mode>): Likewise.
6380 (aarch64_st2_lane<VQ:mode>): Likewise.
6381 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
6383 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6385 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
6386 Change operand mode from <V_FOUR_ELEM> to BLK.
6387 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
6388 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
6389 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
6390 (aarch64_ld4_lane<mode>): Likewise.
6391 (aarch64_st4_lane<mode>): Likewise.
6392 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
6394 2015-09-15 Richard Biener <rguenther@suse.de>
6397 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
6398 transfer EH info from old to new stmt.
6399 (replace_call_with_value): Likewise.
6400 (replace_call_with_call_and_fold): Likewise.
6401 (gimple_fold_builtin_memory_op): Likewise.
6402 (gimple_fold_builtin_memset): Likewise.
6403 (gimple_fold_builtin_stpcpy): Likewise.
6404 (gimple_fold_call): Likewise.
6406 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6408 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
6410 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
6411 (aarch64_simd_intEI_type_node): Likewise.
6412 (aarch64_simd_builtin_std_type): Remove EImode case.
6413 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
6414 * config/aarch64/aarch64-modes.def: Remove EImode.
6416 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6418 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
6419 Change operand mode from <V_THREE_ELEM> to BLK.
6420 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
6421 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
6422 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
6423 (aarch64_ld3_lane<mode>): Likewise.
6424 (aarch64_st3_lane<mode>): Likewise.
6425 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
6427 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6429 * config/aarch64/aarch64-simd.md
6430 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
6431 Change all TImode operands to BLKmode.
6432 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
6433 Change all EImode operands to BLKmode.
6434 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
6435 Change all OImode operands to BLKmode.
6437 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
6438 and call set_mem_size.
6439 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
6441 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
6443 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6445 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
6447 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
6449 (vec_store_lanesci_lane<mode>): Rename to...
6450 (aarch64_vec_store_lanesci_lane<mode>): ...this.
6452 (vec_store_lanesxi_lane<mode>): Rename to...
6453 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
6455 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
6456 aarch64_st4_lane<mode>): Follow renaming.
6458 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6460 * config/s390/s390.c (s390_const_operand_ok): Add missing
6463 2015-09-15 Richard Biener <rguenther@suse.de>
6466 * lto-streamer.h (lto_location_cache::current_sysp): Properly
6468 * lto-streamer-out.c (clear_line_info): Likewise.
6470 2015-09-15 Richard Biener <rguenther@suse.de>
6472 * doc/match-and-simplify.texi: Fix wording.
6474 2015-09-15 Bin Cheng <bin.cheng@arm.com>
6476 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
6477 unnecessary type conversion in op1.
6479 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
6481 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
6482 (dup_block_and_redirect): Delete function.
6483 (can_dup_for_shrink_wrapping): New function.
6484 (fix_fake_fallthrough_edge): New function.
6485 (try_shrink_wrapping): Rewrite function.
6486 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
6488 2015-09-14 Rich Felker <dalias@libc.org>
6490 * configure.ac: Change target pattern for sh TLS support
6491 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
6492 * configure: Regenerate.
6494 2015-09-14 Jeff Law <law@redhat.com>
6496 PR tree-optimization/47679
6497 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
6498 type rather than void *.
6500 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
6503 * diagnostic.c (diagnostic_initialize): Do not set
6504 some_warnings_are_errors.
6505 (diagnostic_finish): Use DK_WERROR count instead.
6506 (diagnostic_report_diagnostic): Do not set
6507 some_warnings_are_errors.
6508 * diagnostic.h (struct diagnostic_context): Remove
6509 some_warnings_are_errors.
6511 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
6513 * config/sparc/predicates.md (const_all_ones_operand): Use
6514 CONSTM1_RTX to simplify definition.
6516 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
6519 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
6522 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
6524 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
6525 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
6526 OPT_fshow_column to handled saved option cases.
6527 (append_compiler_options): Do not skip the above added options.
6529 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6532 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
6533 nopcrelative_literal_loads.
6534 (aarch64_classify_address): Likewise.
6535 (aarch64_constant_pool_reload_icode): Define.
6536 (aarch64_secondary_reload): Handle secondary reloads for
6538 (aarch64_override_options): Handle nopcrelative_literal_loads.
6539 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
6540 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
6542 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
6543 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
6544 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
6546 * doc/invoke.texi (mpc-relative-literal-loads): Document.
6548 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
6551 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
6552 sync_compare_and_swap_optab libcall to target_oval.
6554 2015-09-14 Marek Polacek <polacek@redhat.com>
6556 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
6558 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
6560 2015-09-11 Mark Wielaard <mjw@redhat.com>
6563 * toplev.c (check_global_declaration): Check and use
6564 warn_unused_const_variable.
6565 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
6566 (-Wunused-variable): Remove non-constant. For C implies
6567 -Wunused-const-variable.
6568 (-Wunused-const-variable): New.
6570 2015-09-14 Richard Biener <rguenther@suse.de>
6572 * doc/match-and-simplify.texi: Update for changed syntax
6573 of inner ifs and the new switch expression.
6575 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
6577 * config/i386/haswell.md: New file describing Haswell pipeline.
6578 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
6579 haswell-like processors.
6580 (ix86_reassociation_width): Increase reassociation width for 64-bit
6581 Haswell processor family.
6582 * config/i386/i386.md: Introduce haswell cpu and include new md file.
6584 2015-09-14 Richard Biener <rguenther@suse.de>
6586 * doc/match-and-simplify.texi: Fixup some formatting issues
6587 and document the 's' flag.
6589 2015-09-13 Olivier Hainque <hainque@adacore.com>
6590 Eric Botcazou <ebotcazou@adacore.com>
6592 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
6593 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
6594 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
6595 (TARGET_CPU_gr5): Likewise.
6596 (TARGET_CPU_gr6): Likewise.
6597 (MULTILIB_DEFAULTS): Likewise.
6598 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
6599 for mcpu=gr5 and mcpu=gr6.
6600 (MULTILIB_DIRNAMES): Adjust accordingly.
6602 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6604 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
6605 (mem_ref_p): Likewise.
6606 (outermost_indep_loop): Adjust.
6607 (mem_ref_in_stmt): Likewise.
6608 (determine_max_movement): Likewise.
6609 (mem_ref_alloc): Likewise.
6610 (record_mem_ref_loc): Likewise.
6611 (set_ref_stored_in_loop): Likewise.
6612 (mark_ref_stored): Likewise.
6613 (gather_mem_refs_stmt): Likewise.
6614 (mem_refs_may_alias_p): Likewise.
6615 (for_all_locs_in_loop): Likewise.
6616 (struct rewrite_mem_ref_loc): Likewise.
6617 (rewrite_mem_refs): Likewise.
6618 (struct first_mem_ref_loc_1): Likewise.
6619 (first_mem_ref_loc): Likewise.
6620 (struct sm_set_flag_if_changed): Likewise.
6621 (execute_sm_if_changed_flag_set): Likewise.
6622 (execute_sm): Likewise.
6623 (hoist_memory_references):
6624 (struct ref_always_accessed): Likewise.
6625 (ref_always_accessed_p): Likewise.
6626 (refs_independent_p): Likewise.
6627 (record_dep_loop): Likewise.
6628 (ref_indep_loop_p_1): Likewise.
6629 (ref_indep_loop_p_2): Likewise.
6630 (ref_indep_loop_p): Likewise.
6631 (can_sm_ref_p): Likewise.
6632 (find_refs_for_sm): Likewise.
6633 (tree_ssa_lim_finalize): Likewise.
6635 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6637 * dwarf2out.c (dw_attr_ref): Remove typedef.
6638 (dw_line_info_ref): Likewise.
6639 (pubname_ref): Likewise.
6640 (dw_ranges_ref): Likewise.
6641 (dw_ranges_by_label_ref): Likewise.
6642 (comdat_type_node_ref): Likewise.
6644 (get_AT_low_pc): Likewise.
6645 (get_AT_hi_pc): Likewise.
6646 (get_AT_string): Likewise.
6647 (get_AT_flag): Likewise.
6648 (get_AT_unsigned): Likewise.
6649 (get_AT_ref): Likewise.
6650 (get_AT_file): Likewise.
6651 (remove_AT): Likewise.
6652 (print_die): Likewise.
6653 (check_die): Likewise.
6654 (die_checksum): Likewise.
6655 (attr_checksum_ordered): Likewise.
6656 (struct checksum_attributes): Likewise.
6657 (collect_checksum_attributes): Likewise.
6658 (die_checksum_ordered): Likewise.
6659 (same_die_p): Likewise.
6660 (is_declaration_die): Likewise.
6661 (clone_die): Likewise.
6662 (clone_as_declaration): Likewise.
6663 (copy_declaration_context): Likewise.
6664 (break_out_comdat_types): Likewise.
6665 (copy_decls_walk): Likewise.
6666 (output_location_lists): Likewise.
6667 (external_ref_hasher::hash): Likewise.
6668 (optimize_external_refs_1): Likewise.
6669 (build_abbrev_table): Likewise.
6670 (size_of_die): Likewise.
6671 (unmark_all_dies): Likewise.
6672 (size_of_pubnames): Likewise.
6673 (output_die_abbrevs): Likewise.
6674 (output_die): Likewise.
6675 (output_pubnames): Likewise.
6676 (add_ranges_num): Likewise.
6677 (add_ranges_by_labels): Likewise.
6678 (add_high_low_attributes): Likewise.
6679 (gen_producer_string): Likewise.
6680 (dwarf2out_set_name): Likewise.
6681 (new_line_info_table): Likewise.
6682 (prune_unused_types_walk_attribs): Likewise.
6683 (prune_unused_types_update_strings): Likewise.
6684 (prune_unused_types): Likewise.
6685 (resolve_addr): Likewise.
6686 (optimize_location_lists_1): Likewise.
6687 (index_location_lists): Likewise.
6688 (dwarf2out_finish): Likewise.
6690 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6692 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
6694 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6696 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
6697 (dump_asserts_for): Adjust.
6698 (register_new_assert_for): Likewise.
6699 (process_assert_insertions): Likewise.
6700 (insert_range_assertions): Likewise.
6702 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6704 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
6706 (new_temp_expr_table): Adjust.
6707 (free_temp_expr_table): Likewise.
6708 (version_to_be_replaced_p): Likewise.
6709 (make_dependent_on_partition): Likewise.
6710 (add_to_partition_kill_list): Likewise.
6711 (remove_from_partition_kill_list): Likewise.
6712 (add_dependence): Likewise.
6713 (finished_with_expr): Likewise.
6714 (process_replaceable): Likewise.
6715 (kill_expr): Likewise.
6716 (kill_virtual_exprs): Likewise.
6717 (mark_replaceable): Likewise.
6718 (find_replaceable_in_bb): Likewise.
6719 (find_replaceable_exprs): Likewise.
6720 (debug_ter): Likewise.
6722 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6724 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
6725 (struct btr_user): Rename from btr_user_s.
6726 (struct btr_def): Rename from btr_def_s.
6727 (find_btr_def_group): Adjust.
6728 (add_btr_def): Likewise.
6729 (new_btr_user): Likewise.
6730 (note_other_use_this_block): Likewise.
6731 (compute_defs_uses_and_gen): Likewise.
6732 (link_btr_uses): Likewise.
6733 (build_btr_def_use_webs): Likewise.
6734 (block_at_edge_of_live_range_p): Likewise.
6735 (btr_def_live_range): Likewise.
6736 (combine_btr_defs): Likewise.
6737 (move_btr_def): Likewise.
6738 (migrate_btr_def): Likewise.
6739 (migrate_btr_defs): Likewise.
6741 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6743 * var-tracking.c (shared_hash_def): Rename to shared_hash.
6744 (shared_hash): Remove typedef.
6745 (struct dataflow_set): Adjust.
6746 (shared_hash_unshare): Likewise.
6747 (dataflow_set_merge): Likewise.
6748 (vt_initialize): Likewise.
6749 (vt_finalize): Likewise.
6751 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6753 * var-tracking.c (struct location_chain): Rename from
6755 (struct variable_part): Adjust.
6756 (variable_htab_free): Likewise.
6757 (unshare_variable): Likewise.
6758 (get_init_value): Likewise.
6759 (get_addr_from_local_cache): Likewise.
6760 (drop_overlapping_mem_locs): Likewise.
6761 (val_reset): Likewise.
6762 (struct variable_union_info): Likewise.
6763 (variable_union): Likewise.
6764 (find_loc_in_1pdv): Likewise.
6765 (insert_into_intersection): Likewise.
6766 (intersect_loc_chains): Likewise.
6767 (canonicalize_loc_order_check): Likewise.
6768 (canonicalize_values_mark): Likewise.
6769 (canonicalize_values_star): Likewise.
6770 (canonicalize_vars_star): Likewise.
6771 (variable_merge_over_cur): Likewise.
6772 (remove_duplicate_values): Likewise.
6773 (variable_post_merge_new_vals): Likewise.
6774 (variable_post_merge_perm_vals): Likewise.
6775 (find_mem_expr_in_1pdv): Likewise.
6776 (dataflow_set_preserve_mem_locs): Likewise.
6777 (dataflow_set_remove_mem_locs): Likewise.
6778 (variable_part_different_p): Likewise.
6779 (onepart_variable_different_p): Likewise.
6780 (find_src_set_src): Likewise.
6781 (dump_var): Likewise.
6782 (set_slot_part): Likewise.
6783 (clobber_slot_part): Likewise.
6784 (delete_slot_part): Likewise.
6785 (vt_expand_var_loc_chain): Likewise.
6786 (emit_note_insn_var_location): Likewise.
6787 (vt_finalize): Likewise.
6789 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6791 * dse.c (store_info_t): Remove typedef.
6792 (group_info_t): Likewise.
6793 (const_group_info_t): Likewise.
6794 (deferred_change_t): Likewise.
6795 (get_group_info): Adjust.
6796 (free_store_info): Likewise.
6797 (canon_address): Likewise.
6798 (clear_rhs_from_active_local_stores): Likewise.
6799 (record_store): Likewise.
6800 (replace_read): Likewise.
6801 (check_mem_read_rtx): Likewise.
6802 (scan_insn): Likewise.
6803 (remove_useless_values): Likewise.
6804 (dse_step1): Likewise.
6805 (dse_step2_init): Likewise.
6806 (dse_step2_nospill): Likewise.
6807 (scan_stores_nospill): Likewise.
6808 (scan_reads_nospill): Likewise.
6809 (dse_step3_exit_block_scan): Likewise.
6810 (dse_step3): Likewise.
6811 (dse_step5_nospill): Likewise.
6812 (dse_step6): Likewise.
6814 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6816 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
6817 (alias_set_entry): Remove typedef.
6818 (alias_set_subset_of): Adjust.
6819 (alias_sets_conflict_p): Likewise.
6820 (init_alias_set_entry): Likewise.
6821 (get_alias_set): Likewise.
6822 (new_alias_set): Likewise.
6823 (record_alias_subset): Likewise.
6825 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
6827 * doc/install.texi (Downloading the source): Mark up
6828 contrib/download_prerequisites properly and drop leading "./".
6830 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6832 * config/arc/arc.h: Remove define of STRUCT_VALUE.
6833 * config/lm32/lm32.h: Likewise.
6834 * config/mep/mep.h: Likewise.
6835 * config/visium/visium.h: Likewise.
6836 * system.h: Poison STRUCT_VALUE macro.
6838 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
6840 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
6841 CONSTANT_P operands.
6843 2015-09-11 David S. Miller <davem@davemloft.net>
6845 * config/sparc/constraints.md: Make "U" constraint a real register
6847 * config/sparc/sparc.c (TARGET_LRA_P): Define.
6848 (D_MODES, DF_MODES): Add missing cast.
6849 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
6850 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
6851 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
6853 * config/sparc/sparc.h (PROMOTE_MODE): Define.
6854 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
6855 provide these insn when flag_pic.
6857 2015-09-11 Jeff Law <law@redhat.com>
6859 PR tree-optimization/47679
6860 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
6861 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
6862 member with m_. Update inline member functions as necessary. Add
6864 * tree-ssa-scopedtables.c: Update const_and_copies's member
6865 functions to use m_ prefix to access the stack.
6867 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
6869 * graphite-optimize-isl.c (disable_tiling): Remove.
6870 (get_schedule_for_band): Do not use disable_tiling.
6871 (get_prevector_map): Delete function.
6872 (enable_polly_vector): Remove.
6873 (get_schedule_for_band_list): Remove dead code.
6875 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
6877 * graphite-optimize-isl.c (get_tile_map): Refactor.
6878 (get_schedule_for_band): Same.
6879 (getScheduleForBand): Same.
6880 (get_prevector_map): Same.
6881 (get_schedule_for_band_list): Same.
6882 (get_schedule_map): Same.
6883 (get_single_map): Same.
6884 (apply_schedule_map_to_scop): Same.
6885 (optimize_isl): Same.
6887 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6890 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
6892 * config/aarch64/iterators.md (GPF_TF_F16): New.
6895 2015-09-10 Nathan Sidwell <nathan@acm.org>
6897 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
6898 (nvptx_reorg): Adjust comments.
6900 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
6903 * configure.ac: Check if setenv and unsetenv are declared.
6904 * configure: Rebuild.
6905 * config.in: Rebuild.
6906 * system.h: Declare setenv and unsetenv if not declared.
6908 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6910 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
6911 commentary to simplify permute mask adjustment equation.
6912 (special_handling_values): Add SH_VPERM.
6913 (const_load_sequence_p): New function.
6914 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
6915 the mask loaded from the constant pool.
6916 (adjust_vperm): New function.
6917 (handle_special_swappables): Call adjust_vperm.
6918 (dump_swap_insn_table): Handle SH_VPERM.
6920 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
6922 * shrink-wrap.c (requires_stack_frame_p): Remove static.
6923 * shrink-wrap.h (requires_stack_frame_p): Put back.
6925 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
6927 * reload1.c (elimination_costs_in_insn): Locally turn
6928 -Wmaybe-uninitialized into a warning.
6930 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
6932 * shrink-wrap.c (requires_stack_frame_p): Make static.
6933 (prepare_shrink_wrap): Likewise.
6934 (dup_block_and_redirect): Likewise.
6935 * shrink-wrap.h: Remove declarations of those functions.
6937 2015-09-10 Mark Wielaard <mjw@redhat.com>
6939 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
6941 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
6944 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
6945 missing simplify_gen_subreg.
6947 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6949 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
6950 the vector element is bigger than 64 bit.
6952 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6954 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
6955 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
6957 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6959 * config/s390/s390.c: Add V1TImode to constant pool modes.
6961 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6964 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
6965 predicate. Set predicable_short_it attr to "no".
6967 2015-09-10 Jiong Wang <jiong.wang@arm.com>
6969 PR rtl-optimization/67421
6970 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
6971 left wide shift tranformation.
6973 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
6975 * common/config/arc/arc-common.c: Remove references to A5.
6976 * config/arc/arc-opts.h: Likewise.
6977 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
6978 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
6979 * config/arc/t-arc-newlib: Likewise.
6981 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
6983 * config/arc/arc.md (length): Fix attribute length for conditional
6984 executed instructions with long immediate.
6986 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6988 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
6989 type for second alternative.
6991 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
6993 * doc/invoke.texi (Downloading GCC): Mention
6994 contrib/download_prerequisites script.
6996 2015-09-10 Jakub Jelinek <jakub@redhat.com>
6999 * gimplify.c (gimplify_omp_for): If inner stmt is not found
7000 for combined loop, assert seen_error () and return GS_ERROR.
7003 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
7004 if decl is already in outer->variables.
7007 * gimplify.c (gimplify_scan_omp_clauses): Instead of
7008 asserting that decl is not specified in octx->variables,
7009 break out of the loop if it is.
7012 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
7013 iterator is not explicitly determined, but is defined inside
7014 of the combined workshare region, handle it like if it has
7015 DECL_EXPR in OMP_FOR_PRE_BODY.
7017 2015-09-09 Nathan Sidwell <nathan@acm.org>
7019 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
7020 (*cmp<mode>): Add assembler spacing.
7021 (setcc_int<mode>, set_cc_float<mode>): Likewise.
7022 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
7024 (write_func_decl_from_insn): Refactor argument loops & comma emission.
7025 (nvptx_expand_call): Likewise.
7026 (nvptx_output_call_insn): Likewise.
7027 (nvptx_reorg_subreg): Add spacing.
7029 2015-09-09 Marek Polacek <polacek@redhat.com>
7032 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
7035 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
7038 * doc/invoke.texi ([Wsubobject-linkage]): Document.
7040 2015-09-09 Tom de Vries <tom@codesourcery.com>
7042 * params-list.h: Add missing copyright notice.
7044 2015-09-09 Nathan Sidwell <nathan@acm.org>
7046 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
7047 sel_truesi, not andsi.
7049 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7051 * config/arm/arm.md (*subsi3_compare0): Rename to...
7052 (subsi3_compare0): ... This.
7053 (modsi3): New define_expand.
7054 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
7055 when operand is power of 2.
7057 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7059 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
7060 (*neg<mode>2_compare0): Rename to...
7061 (neg<mode>2_compare0): ... This.
7062 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
7063 Move check for speed inside the if-then-elses. Reflect
7064 CSNEG sequence in MOD by power of 2 case.
7066 2015-09-09 Alan Modra <amodra@gmail.com>
7069 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
7070 reload replacement for PRE_MODIFY address reg.
7072 2015-09-09 Sebastian Pop <s.pop@samsung.com>
7074 PR tree-optimization/53852
7075 * config.in: Regenerate.
7076 * configure: Regenerate.
7077 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
7078 * graphite-optimize-isl.c (optimize_isl): Stop computation when
7079 PARAM_MAX_ISL_OPERATIONS is reached.
7080 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
7081 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
7082 result equal to isl_stat_ok as the status now can be isl_error_quota.
7083 (subtract_commutative_associative_deps): Same.
7084 (compute_deps): Same.
7086 2015-09-08 Aditya Kumar <hiraditya@msn.com>
7087 Sebastian Pop <s.pop@samsung.com>
7089 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
7090 Return the parameter if it was saved in corresponding
7091 parameter_rename_map of the region.
7092 (copy_def): Copy def from sese region to the newly created region.
7093 (copy_internal_parameters): Copy all the internal parameters defined
7094 within a region to the newly created region.
7095 (graphite_regenerate_ast_isl): Copy parameters to the new region before
7096 translating isl to gimple.
7097 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
7098 the loop-nest does not have any data-references.
7099 (build_graphite_scops): Create a scop only when there is at least one
7101 (contains_only_close_phi_nodes): Deleted.
7102 (print_graphite_scop_statistics): Deleted
7103 (print_graphite_statistics): Deleted
7104 (limit_scops): Deleted.
7105 (build_scops): Removed call to limit_scops.
7106 * sese.c (new_sese): Construct.
7107 (free_sese): Destruct.
7108 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
7110 (set_rename): Pass sese region so that parameters inside the region can
7111 be added to its parameter_rename_map.
7112 (rename_uses): Pass sese region.
7113 (graphite_copy_stmts_from_block): Do not copy parameters that have been
7114 generated in the header of the scop. For each SSA_NAME in the
7115 parameter_rename_map rename its usage.
7116 (invariant_in_sese_p_rec): Return false if tree t is defined outside
7118 (scalar_evolution_in_region): If the tree t is invariant just return t.
7119 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
7120 struct sese to keep track of all the parameters which need renaming.
7121 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
7123 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
7125 2015-09-08 Tom de Vries <tom@codesourcery.com>
7127 * Makefile.in (generated_files): Add params.list.
7128 (params.list, s-params.list): Add rule.
7129 * params.h (enum compiler_param): Include params-list.h. Move define
7130 DEFPARAM, include params.def and undef DEFPARAM ...
7131 * params-list.h: ... here. New file.
7133 2015-09-08 David Malcolm <dmalcolm@redhat.com>
7135 * pretty-print.h (printer_fn): Fix typo in comment.
7137 2015-09-07 Jeff Law <law@redhat.com>
7139 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
7141 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7143 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
7144 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
7145 (arm_neon_fp16_hw): New.
7147 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7149 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
7150 UNITS_PER_WORD >= 4.
7152 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7154 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
7155 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
7156 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
7157 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
7158 (aarch64_float_extend_lo_v2df): Rename to...
7159 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
7161 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
7162 (float_extend_lo): Add v4sf.
7164 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
7165 * config/aarch64/iterators.md (VQ_HSF): New iterator.
7166 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
7167 (Vwide): New mode_attr.
7169 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7171 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
7172 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
7173 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
7174 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
7175 V4HF and V8HF variants to iterator.
7177 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
7179 * config/aarch64/iterators.md (VDQF_F16): New.
7180 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
7182 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7184 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
7185 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
7186 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
7187 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
7188 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
7189 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
7190 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
7191 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
7192 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
7193 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
7194 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
7195 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
7196 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
7197 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
7198 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
7199 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
7200 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
7201 vld1q_dup_f16): New.
7203 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7205 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
7206 Reparameterize to...
7207 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
7208 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
7209 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
7211 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
7213 (float_truncate_lo_): Use BUILTIN_VDF iterator.
7215 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
7217 * config/aarch64/iterators.md (VDF, Vdtype): New.
7218 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
7220 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7222 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
7223 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
7224 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
7225 Add __builtin_aarch64_simd_hf.
7226 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
7227 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
7228 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
7229 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
7230 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
7231 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
7232 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
7233 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
7234 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
7236 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
7237 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
7238 (VDC, Vdbl): Add V4HF.
7240 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7242 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
7243 V4HFmode and V8HFmode.
7244 (aarch64_split_simd_move): Add case for V8HFmode.
7245 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
7246 (aarch64_simd_builtin_std_type): Handle HFmode.
7247 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
7249 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
7250 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
7251 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
7253 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
7256 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
7257 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
7259 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
7260 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
7261 vst1q_lane_f16): New.
7262 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
7263 (VALLDI_F16, VALL_F16): New.
7264 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
7265 Add cases for V4HF and V8HF.
7266 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
7268 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7270 * config/arm/arm-builtins.c (VAR11, VAR12): New.
7271 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
7272 vld4_dup): Add v4hf variant.
7273 (vget_high, vget_low): Add v8hf variant.
7274 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
7275 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
7276 v4hf and v8hf variants.
7278 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
7280 (V_DOUBLE): Add case for V4HF.
7282 (V_HALF): Add case for V8HF.
7283 (VDQX): Add V4HF, V8HF.
7284 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
7285 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
7287 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
7288 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
7289 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
7290 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
7291 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
7292 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
7293 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
7294 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
7295 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
7297 (neon_vcreate, neon_vreinterpretv8qi<mode>,
7298 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
7299 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
7300 Change VDX to VD_RE.
7302 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
7303 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
7304 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
7306 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
7307 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
7308 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
7309 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
7310 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
7311 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
7312 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
7313 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
7314 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
7316 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7318 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
7319 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
7320 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
7321 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
7322 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
7323 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
7324 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
7325 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
7326 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
7327 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
7330 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7332 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
7334 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
7336 * config/arm/arm-builtins.c (v8hf_UP): New.
7337 (arm_init_simd_builtin_types): Initialise Float16x8_t.
7339 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
7341 * config/arm/arm_neon.h (float16x8_t): New typedef.
7343 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7345 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
7346 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
7347 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
7348 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
7349 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
7350 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
7351 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
7352 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
7353 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
7354 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
7356 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
7358 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
7359 non-alphanumeric characters in the symbol name.
7361 2015-09-07 Marek Polacek <polacek@redhat.com>
7364 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
7367 2015-09-07 Marek Polacek <polacek@redhat.com>
7369 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
7371 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
7373 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
7376 2015-09-04 Jakub Jelinek <jakub@redhat.com>
7379 * tree-ssa-live.c: Include cfgloop.h.
7380 (remove_unused_locals): Clear loop->simduid if simduid is about
7381 to be removed from cfun->local_decls.
7383 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7386 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
7389 2015-09-04 Tom de Vries <tom@codesourcery.com>
7391 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
7393 2015-09-04 Jeff Law <law@redhat.com>
7395 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
7396 unnecessary constructor. It's now trivial and implemented inside...
7397 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
7398 constructor. Add comments to various methods. Remove unused
7400 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
7401 * tree-vrp.c (identify_jump_threads): Likewise.
7402 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
7404 (thread_across_edge): Similarly.
7405 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
7406 arguments in constructor call.
7408 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
7410 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
7411 temp path contains a '-'.
7413 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
7414 Petr Murzin <petr.murzin@intel.com>
7415 Kirill Yukhin <kirill.yukhin@intel.com>
7417 * config/i386/i386-builtin-types.def
7418 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
7419 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
7420 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
7421 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
7422 * config/i386/i386.c
7423 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
7424 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
7425 IX86_BUILTIN_SCATTERALTDIV16SI.
7426 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
7427 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
7428 __builtin_ia32_scatteraltdiv8si.
7429 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
7430 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
7431 IX86_BUILTIN_SCATTERALTDIV16SI.
7432 (ix86_vectorize_builtin_scatter): New.
7433 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
7434 ix86_vectorize_builtin_scatter.
7436 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
7437 Petr Murzin <petr.murzin@intel.com>
7438 Kirill Yukhin <kirill.yukhin@intel.com>
7440 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
7441 * doc/tm.texi: Regenerate.
7442 * target.def: Add scatter builtin.
7443 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
7444 for loads/stores in case of gather/scatter accordingly.
7445 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
7446 STMT_VINFO_GATHER_P(S).
7447 (vect_check_gather): Rename to ...
7448 (vect_check_gather_scatter): this.
7449 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
7450 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
7451 (vect_check_gather_scatter): Use it instead of vect_check_gather.
7452 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
7453 variable and new checkings for it accordingly.
7455 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
7456 STMT_VINFO_GATHER_P(S).
7457 (vect_check_gather_scatter): Use it instead of vect_check_gather.
7458 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
7460 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
7462 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
7464 (mulv16qi3): New define_expand.
7466 2015-09-03 Martin Sebor <msebor@redhat.com>
7469 * doc/extend.texi (Other Builtins): Document when the address
7470 of a built-in function can be taken.
7472 2015-09-03 Richard Biener <rguenther@suse.de>
7474 * dwarf2out.c (flush_limbo_die_list): Split out from ...
7475 (dwarf2out_early_finish): ... here.
7476 (dwarf2out_finish): Do not call dwarf2out_early_finish but
7477 flush_limbo_die_list. Assert we have no deferred asm names.
7479 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7481 * optabs.c (expand_binop): Don't create a broadcast vector with a
7482 source element wider than the inner mode.
7484 2015-09-03 Richard Biener <rguenther@suse.de>
7486 * varasm.c (output_constant): Use fold_convert instead of
7489 2015-09-03 Tom de Vries <tom@codesourcery.com>
7491 PR tree-optimization/65637
7492 * omp-low.c (expand_omp_for_static_chunk): Handle case that
7493 fin_bb has 2 predecessors.
7495 2015-09-03 Tom de Vries <tom@codesourcery.com>
7497 PR tree-optimization/65637
7498 * omp-low.c (find_phi_with_arg_on_edge): New function.
7499 (expand_omp_for_static_chunk): Fix inner loop phi.
7501 2015-09-03 Tom de Vries <tom@codesourcery.com>
7503 PR tree-optimization/65637
7504 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
7507 2015-09-03 Tom de Vries <tom@codesourcery.com>
7509 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
7511 2015-09-03 Tom de Vries <tom@codesourcery.com>
7513 * doc/invoke.texi (parloops-chunk-size): Add item.
7514 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
7515 * tree-parloops.c: Include params.h.
7516 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
7517 param parloops-chunk-size is used.
7519 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7522 * fold-const.c (fold_binary_loc) : Move
7523 Transform (x >> c) << c into x & (-1<<c) or
7524 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
7525 types using simplify and match.
7526 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
7527 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
7529 2015-09-03 Richard Biener <rguenther@suse.de>
7532 * tree-ssa-structalias.c (ctor_for_analysis): New function.
7533 (create_variable_info_for_1): Use ctor_for_analysis instead
7535 (create_variable_info_for): Likewise.
7537 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
7540 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
7541 in new callgraph edge.
7543 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
7548 * config/aarch64/aarch64-simd.md
7549 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
7550 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
7551 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
7552 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
7554 2015-09-02 Alan Modra <amodra@gmail.com>
7556 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
7557 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
7558 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
7560 2015-09-02 Alan Modra <amodra@gmail.com>
7563 * config/rs6000/predicates.md (current_file_function_operand): Don't
7564 return true for weak symbols.
7565 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
7567 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
7568 Andrew Bennett <andrew.bennett@imgtec.com>
7570 * config/mips/mips-opts.h (mips_cb_setting): New enum.
7571 * config/mips/mips-protos.h: Add definitions for
7572 mips_output_jump and mips_output_equal_conditional_branch
7573 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
7575 (mips_emit_compare): Add support for the MIPS R6 conditional
7577 (mips_process_sync_loop): Likewise.
7578 (mips_output_order_conditional_branch): Likewise.
7579 (mips16_build_call_stub): Change MIPS_CALL to
7581 (mips_print_operand_punctuation): Update 's' case to only
7582 apply to micromips r2.
7583 (mips_adjust_insn_length): Add support for forbidden slot
7585 (mips_avoid_hazard): Likewise.
7586 (mips_reorg_process_insns): Likewise.
7587 (mips_output_jump): New function.
7588 (mips_output_equal_conditional_branch): Likewise.
7589 (mips_output_conditional_branch): Use jrc/bc if compact
7590 branch support is enabled. Ensure the forbidden slots
7591 between the two branch instructions is filled with a nop.
7592 (mips_option_override): Add support to process the compact
7593 branch option and set the correct defaults. Prevent
7594 non-explict relocs being using for MIPS R6.
7595 (mips_trampoline_init): Add compact branch support.
7596 (mips_mult_zero_zero_cost): Allow zero initialisation of
7597 accumulators with TARGET_DSP.
7598 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
7599 (TARGET_CB_MAYBE): New define.
7600 (TARGET_CB_ALWAYS): New define.
7601 (ISA_HAS_DELAY_SLOTS): New define.
7602 (ISA_HAS_COMPACT_BRANCHES): New define.
7603 (ISA_HAS_JRC): New define.
7604 (MIPS_BRANCH_C): New define.
7605 (MIPS_CALL): Removed.
7606 (MICROMIPS_J): Removed.
7607 * config/mips/mips.md (compact_form): New attr.
7608 (hazard): Add support for forbidden slots.
7609 (define_delay): Add support for compact branches.
7610 (*branch_order<mode>): Likewise.
7611 (*branch_order<mode>_inverted): Likewise.
7612 (*branch_equality<mode>): Likewise.
7613 (*branch_equality<mode>_inverted): Likewise.
7614 (*jump_absolute): Likewise.
7615 (*jump_pic): Likewise.
7616 (indirect_jump): Use mips_output_jump to produce assembly output.
7617 (tablejump_<mode>"): Likewise.
7618 (*<optab>"): Likewise.
7619 (<optab>_internal): Likewise.
7620 (sibcall_internal): Likewise.
7621 (sibcall_value_internal): Likewise.
7622 (sibcall_value_multiple_internal): Likewise.
7623 (call_internal): Likewise.
7624 (call_split): Likewise.
7625 (call_internal_direct): Likewise.
7626 (call_direct_split): Likewise.
7627 (call_value_internal): Likewise.
7628 (call_value_split): Likewise.
7629 (call_value_internal_direct): Likewise.
7630 (call_value_direct_split): Likewise.
7631 (call_value_multiple_internal): Likewise.
7632 (call_value_multiple_split): Likewise.
7633 (mips_get_fcsr_mips16_<mode>): Likewise.
7634 (mips_set_fcsr_mips16_<mode>): Likewise.
7635 (tls_get_tp_mips16_<mode>): Likewise.
7636 * config/mips/mips.opt: Add -mcompact-branches option.
7637 * config/mips/predicates.md (order_operator): Ensure the
7638 conditional compact branches are only used if the ISA them.
7639 * doc/invoke.texi: Document -mcompact-branches option.
7641 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
7644 * lra-lives.c (process_bb_lives): Process move pseudos with the
7645 same value for copies and preferences
7646 * lra-constraints.c (match_reload): Create match reload pseudo
7647 with the same value from single dying input pseudo.
7649 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
7652 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
7654 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
7656 * trans-mem.c: Add contributed-by.
7657 * trans-mem.h: Same.
7659 2015-09-01 Richard Biener <rguenther@suse.de>
7661 * expr.c (expand_expr_real_1): For expanding TERed defs
7662 set the current location to that of the def if not UNKNOWN.
7664 2015-09-01 David Sherwood <david.sherwood@arm.com>
7666 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
7668 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7670 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
7671 then_cost, else_cost fields. Change branch_cost field to unsigned int.
7672 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
7674 (noce_simple_bbs): New function.
7675 (noce_try_move): Bail if basic blocks are not simple.
7676 (noce_try_store_flag): Likewise.
7677 (noce_try_store_flag_constants): Likewise.
7678 (noce_try_addcc): Likewise.
7679 (noce_try_store_flag_mask): Likewise.
7680 (noce_try_cmove): Likewise.
7681 (noce_try_minmax): Likewise.
7682 (noce_try_abs): Likewise.
7683 (noce_try_sign_mask): Likewise.
7684 (noce_try_bitop): Likewise.
7685 (bbs_ok_for_cmove_arith): New function.
7686 (noce_emit_all_but_last): Likewise.
7687 (noce_emit_insn): Likewise.
7688 (noce_emit_bb): Likewise.
7689 (noce_try_cmove_arith): Handle non-simple basic blocks.
7690 (insn_valid_noce_process_p): New function.
7691 (contains_mem_rtx_p): Likewise.
7692 (bb_valid_for_noce_process_p): Likewise.
7693 (noce_process_if_block): Allow non-simple basic blocks
7696 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
7698 * tree-ssa-dom.c (record_equivalences_from_phis,
7699 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
7700 (lookup_avail_expr): Likewise, and remove comment and unused temp.
7702 2015-09-01 Nick Clifton <nickc@redhat.com>
7704 * config/msp430/msp430.opt (mcpu): Fix typo.
7706 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7708 * config/aarch64/aarch64.c (aarch64_set_current_function):
7709 Re-layout any vector parameters have non-simd layout.
7710 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
7712 (aarch64_simd_expand_args): Delete call to the above.
7714 2015-08-31 Mike Frysinger <vapier@gentoo.org>
7716 * doc/invoke.texi (asan-stack): Add space before option.
7718 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
7720 * tree.h (zerop): New function.
7721 * tree.c (zerop): Likewise.
7722 (element_precision): Handle expressions.
7723 * match.pd (define_predicates): Add zerop.
7724 (x <= +Inf): Fix comment.
7725 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
7726 * fold-const.c (fold_binary_loc): ... here. Remove.
7728 2015-08-31 Richard Biener <rguenther@suse.de>
7731 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
7733 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
7735 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
7736 (CEXPI): New operator list.
7737 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
7738 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
7740 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
7742 2015-08-31 Tom de Vries <tom@codesourcery.com>
7744 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
7745 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
7747 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
7748 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
7749 (rewrite_into_loop_closed_ssa): ... here.
7750 (replace_uses_in_dominated_bbs): Remove function.
7751 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
7752 rewrite_into_loop_closed_ssa_1.
7754 2015-08-31 Michael Matz <matz@suse.de>
7756 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
7757 enter entry and exit blocks for reverse post order.
7759 2015-08-31 Richard Biener <rguenther@suse.de>
7761 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
7762 (lto_location_cache::current_sysp): Likewise.
7763 (output_block::current_sysp): Likewise.
7764 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
7765 (lto_location_cache::apply_location_cache): Properly record
7766 system header locations.
7767 (lto_location_cache::input_location): Input whether a file
7769 * lto-streamer-out.c (lto_output_location): Stream whether a file
7772 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7775 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
7777 2015-08-31 Tom de Vries <tom@codesourcery.com>
7779 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
7780 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
7781 Improve function header comments.
7783 2015-08-30 Michael Collison <michael.collison@linaro.org>
7786 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
7789 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7791 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
7792 special_handling bitfield.
7793 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
7794 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
7795 that represents a general xxpermdi.
7796 (insn_is_swappable_p): Add handling for vec_concat of two
7797 doublewords, which maps to a specific xxpermdi.
7798 (adjust_xxpermdi): New function.
7799 (adjust_concat): Likewise.
7800 (handle_special_swappables): Call adjust_xxpermdi and
7802 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
7804 2015-08-30 Rich Felker <dalias@libc.org>
7806 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
7807 case instead of sh[123456ble]-*-*.
7809 2015-08-29 Anatoly Sokolov <aesok@post.ru>
7811 * ira.c (print_unform_and_important_classes,
7812 print_translated_classes): Remove reg_class_names static array.
7813 (print_unform_and_important_classes): Rename to ...
7814 (print_uniform_and_important_classes): ... this.
7815 (ira_debug_allocno_classes): Update accordingly.
7817 2015-08-29 Tom de Vries <tom@codesourcery.com>
7819 PR tree-optimization/46193
7820 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
7823 2015-08-28 Jeff Law <law@redhat.com>
7826 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7827 unable to find X NE 0 in the tables, return X as the simplified
7829 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7830 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
7832 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7833 after removing the control flow statement and unnecessary edges.
7835 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
7838 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
7840 PR tree-optimization/67283
7841 * tree-sra.c (type_consists_of_records_p): Rename to...
7842 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7844 (completely_scalarize_record): Rename to...
7845 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
7847 (scalarize_elem): New.
7849 2015-08-28 Jiong Wang <jiong.wang@arm.com>
7851 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
7852 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
7853 (aarch64_symbol_type): Likewise.
7854 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7856 (aarch64_expand_mov_immediate): Likewise.
7857 (aarch64_print_operand): Likewise.
7858 (aarch64_classify_tls_symbol): Likewise.
7860 2015-08-28 Richard Biener <rguenther@suse.de>
7862 * cgraphunit.c (symbol_table::compile): Move early debug generation
7864 (symbol_table::finalize_compilation_unit): ... back here and
7865 add a !seen_error () guard.
7867 2015-08-27 Sebastian Pop <s.pop@samsung.com>
7869 * toplev.c (process_options): Do not use flag_loop_block,
7870 flag_loop_interchange, and flag_loop_strip_mine. Add check for
7871 flag_loop_optimize_isl.
7873 2015-08-27 Sebastian Pop <s.pop@samsung.com>
7875 * Makefile.in (OBJS): Remove graphite-blocking.o and
7876 graphite-interchange.o.
7877 * common.opt (floop-strip-mine, floop-interchange, floop-block):
7878 Alias of floop-nest-optimize.
7879 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
7880 Document as alias of -floop-nest-optimize.
7881 * graphite-blocking.c: Remove.
7882 * graphite-interchange.c: Remove.
7883 * graphite-optimize-isl.c: Include dumpfile.h.
7884 (getScheduleForBand): Add dump for tiled loops. Use
7885 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
7886 * graphite-poly.c (scop_max_loop_depth): Remove.
7887 (print_scattering_function_1): Remove.
7888 (print_scattering_function): Remove.
7889 (print_scattering_functions): Remove.
7890 (debug_scattering_function): Remove.
7891 (debug_scattering_functions): Remove.
7892 (apply_poly_transforms): Remove use of flag_loop_block,
7893 flag_loop_strip_mine, and flag_loop_interchange.
7894 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
7896 (print_pdr_access_layout): Remove.
7897 (print_pdr): Print ISL representation.
7898 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
7899 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
7901 (openscop_print_pbb_domain): Remove.
7902 (print_pbb): Remove call to print_scattering_function.
7903 (openscop_print_scop_context): Remove.
7904 (print_scop_context): Do not print matrices anymore.
7905 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
7906 SCOP_TRANSFORMED_SCHEDULE.
7907 (print_isl_set): Add printing of a new line.
7908 (print_isl_map): Same.
7909 (print_isl_aff): Same.
7910 (print_isl_constraint): Same.
7911 (loop_to_lst): Remove.
7912 (scop_to_lst): Remove.
7913 (lst_indent_to): Remove.
7914 (print_lst): Remove.
7915 (debug_lst): Remove.
7916 (dot_lst_1): Remove.
7918 (reverse_loop_at_level): Remove.
7919 (reverse_loop_for_pbbs): Remove.
7920 * graphite-poly.h (pdr_dim_iter_domain): Remove.
7921 (pdr_nb_params): Remove.
7922 (pdr_alias_set_dim): Remove.
7923 (pdr_subscript_dim): Remove.
7924 (pdr_iterator_dim): Remove.
7925 (pdr_parameter_dim): Remove.
7926 (same_pdr_p): Remove.
7927 (struct poly_scattering): Remove.
7928 (struct poly_bb): Remove _original, _transformed, _saved.
7929 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
7930 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
7931 (PBB_NB_LOCAL_VARIABLES): Remove.
7932 (PBB_NB_SCATTERING_TRANSFORM): Remove.
7933 (schedule_to_scattering): Remove.
7934 (number_of_write_pdrs): Remove.
7935 (pbb_dim_iter_domain): Remove.
7936 (pbb_nb_params): Remove.
7937 (pbb_nb_scattering_orig): Remove.
7938 (pbb_nb_scattering_transform): Remove.
7939 (pbb_nb_dynamic_scattering_transform): Remove.
7940 (pbb_nb_local_vars): Remove.
7941 (pbb_iterator_dim): Remove.
7942 (pbb_parameter_dim): Remove.
7943 (psco_scattering_dim): Remove.
7944 (psct_scattering_dim): Remove.
7945 (psct_local_var_dim): Remove.
7946 (psco_iterator_dim): Remove.
7947 (psct_iterator_dim): Remove.
7948 (psco_parameter_dim): Remove.
7949 (psct_parameter_dim): Remove.
7950 (psct_dynamic_dim): Remove.
7951 (psct_static_dim): Remove.
7952 (psct_add_local_variable): Remove.
7953 (new_lst_loop): Remove.
7954 (new_lst_stmt): Remove.
7957 (lst_add_loop_under_loop): Remove.
7958 (lst_depth): Remove.
7959 (lst_dewey_number): Remove.
7960 (lst_dewey_number_at_depth): Remove.
7963 (lst_find_pbb): Remove.
7964 (find_lst_loop): Remove.
7965 (lst_find_first_pbb): Remove.
7966 (lst_empty_p): Remove.
7967 (lst_find_last_pbb): Remove.
7968 (lst_contains_p): Remove.
7969 (lst_contains_pbb): Remove.
7970 (lst_create_nest): Remove.
7971 (lst_remove_from_sequence): Remove.
7972 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
7973 (lst_niter_for_loop): Remove.
7974 (pbb_update_scattering): Remove.
7975 (lst_update_scattering_under): Remove.
7976 (lst_update_scattering): Remove.
7977 (lst_insert_in_sequence): Remove.
7978 (lst_replace): Remove.
7979 (lst_substitute_3): Remove.
7980 (lst_distribute_lst): Remove.
7981 (lst_remove_all_before_including_pbb): Remove.
7982 (lst_remove_all_before_excluding_pbb): Remove.
7983 (struct scop): Remove original_schedule, transformed_schedule, and
7985 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
7986 (SCOP_SAVED_SCHEDULE): Remove.
7987 (poly_scattering_new): Remove.
7988 (poly_scattering_free): Remove.
7989 (poly_scattering_copy): Remove.
7990 (store_scattering_pbb): Remove.
7991 (store_lst_schedule): Remove.
7992 (restore_lst_schedule): Remove.
7993 (store_scattering): Remove.
7994 (restore_scattering_pbb): Remove.
7995 (restore_scattering): Remove.
7996 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
7997 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
7998 compute the scattering polyhedron dimension from the dimension of
8000 (build_scop_scattering): Update call to
8001 build_pbb_scattering_polyhedrons.
8002 (build_poly_scop): Remove call to scop_to_lst.
8003 * graphite.c (graphite_transform_loops): Add call to print_scop.
8004 (gate_graphite_transforms): Remove use of flag_loop_block,
8005 flag_loop_interchange, and flag_loop_strip_mine.
8007 2015-08-27 Sebastian Pop <s.pop@samsung.com>
8009 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
8010 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
8011 -floop-nest-optimize.
8012 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
8013 (generate_luj_sepclass): Remove.
8014 (generate_luj_options): Remove.
8015 (set_options): Remove opt_luj.
8016 (scop_to_isl_ast): Remove opt_luj.
8017 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
8018 flag_loop_unroll_jam.
8019 (getPrevectorMap_full): Remove.
8020 (getScheduleForBandList): Remove map_sepcl.
8021 (getScheduleMap): Same.
8022 (apply_schedule_map_to_scop): Remove sepcl.
8023 (optimize_isl): Same.
8024 * graphite-poly.c (apply_poly_transforms): Remove check for
8025 flag_loop_unroll_jam.
8026 (new_poly_bb): Remove map_sepclass.
8027 * graphite-poly.h (struct poly_bb): Same.
8028 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
8029 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
8030 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
8031 * toplev.c (process_options): Remove flag_loop_unroll_jam.
8033 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
8036 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
8038 (UNSPEC_ADD_CARRY): Remove.
8039 (addqi3_cconly_overflow): New expander.
8040 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
8041 Adjust for changed add<mode>3_carry.
8042 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
8043 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
8044 (<plusminus_insn><mode>3_carry): Remove expander.
8045 (*<plusminus_insn><mode>3_carry): Split insn pattern to
8046 add<mode>3_carry and sub<mode>3_carry.
8047 (plusminus_carry_mnemonic): Remove code attribute.
8048 (add<mode>3_carry): Canonicalize insn pattern.
8049 (*addsi3_carry_zext): Ditto.
8050 (sub<mode>3_carry): Ditto.
8051 (*subsi3_carry_zext): Ditto.
8052 (adcx<mode>3): Remove insn pattern.
8053 (addcarry<mode>): New insn pattern.
8054 (subborrow<mode>): Ditto.
8055 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
8056 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
8057 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
8058 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
8059 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
8060 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
8061 Rewrite expander to not clobber carry flag chains.
8063 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
8065 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
8066 instead of a rotate.
8068 2015-08-27 Marek Polacek <polacek@redhat.com>
8071 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
8072 an entry into an irreducible region.
8074 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8076 * configure: Regenerate.
8078 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
8080 PR tree-optimization/67283
8081 * tree-sra.c (type_consists_of_records_p): Rename to...
8082 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
8084 (completely_scalarize_record): Rename to...
8085 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
8086 (scalarize_elem): New.
8088 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
8090 * tree-sra.c (completely_scalarize_var): Rename to...
8091 (create_total_scalarization_access): ... Here. Drop call to
8092 completely_scalarize_record.
8094 (analyze_all_variable_accesses): Replace completely_scalarize_var
8095 with create_total_scalarization_access and completely_scalarize_record.
8097 2015-08-27 Alan Modra <amodra@gmail.com>
8100 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
8103 2015-08-27 Richard Biener <rguenther@suse.de>
8105 * passes.c (rest_of_decl_compilation): Guard early_global_decl
8106 call with !seen_error ().
8107 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
8108 early debug generation and finish...
8109 (symbol_table::compile): ... here to put it after a !seen_error ()
8112 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8114 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
8117 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8118 Andre Vieira <andre.simoesdiasvieira@arm.com>
8120 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
8121 (*cb<optab><mode>1): Likewise.
8122 (*tb<optab><mode>1): Likewise.
8123 (*cb<optab><mode>1): Likewise.
8124 * config/aarch64/iterators.md (inv_cb): New code attribute.
8126 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
8127 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
8129 2015-08-27 Richard Biener <rguenther@suse.de>
8131 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
8133 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
8135 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
8138 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8140 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
8143 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
8145 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
8146 floating point in VSX registers.
8147 (rs6000_output_move_128bit): Always print out the set insn if we
8148 can't generate an appropriate 128-bit move.
8149 (rs6000_generate_compare): Add support for IEEE 128-bit floating
8150 point in VSX registers comparisons.
8151 (rs6000_expand_float128_convert): Likewise.
8153 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
8154 predicate for only GPR hard registers.
8156 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
8157 modes to iterators. Add new iterators for moving 128-bit values in
8158 scalar FPR registers and VSX registers.
8159 (FMOVE128): Likewise.
8160 (FMOVE128_FPR): Likewise.
8161 (FMOVE128_GPR): Likewise.
8162 (FMOVE128_VSX): Likewise.
8163 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
8168 (RELOAD): Add IEEE 128-bit floating point modes.
8169 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
8170 floating point in VSX registers modes.
8171 (signbit<mode>2, IBM128 iterator): Likewise.
8172 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
8173 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
8175 (neg<mode>2, TFIFKF iterator): Likewise.
8176 (negtf2_internal): Likewise.
8178 (abs<mode>2, TFIFKF iterator): Likewise.
8179 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
8180 VSX insn support for negate, absolute value, and negative absolute
8182 (ieee_128bit_vsx_neg<mode>2): Likewise.
8183 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
8184 (ieee_128bit_vsx_abs<mode>2): Likewise.
8185 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
8186 (ieee_128bit_vsx_nabs<mode>2): Likewise.
8187 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
8188 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
8189 floating point in VSX registers.
8190 (unpack<mode>_dm): Likewise.
8191 (unpack<mode>_nodm): Likewise.
8192 (pack<mode>): Likewise.
8193 (unpackv1ti): Likewise.
8194 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
8195 (packv1ti): Likewise.
8196 (pack<mode>, FMOVE128_VSX iterator): Likewise.
8197 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
8199 (extenddftf2_internal): Likewise.
8200 (trunctfdf2): Likewise.
8201 (trunctfdf2_internal2): Likewise.
8202 (fix_trunc_helper): Likewise.
8203 (fix_trunctfdi2"): Likewise.
8204 (floatditf2): Likewise.
8205 (floatuns<mode>tf2): Likewise.
8206 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
8207 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
8208 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
8209 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
8210 (float<SDI:mode><IFKF:mode>2): Likewise.
8211 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
8213 2015-08-26 Renlin Li <renlin.li@arm.com>
8215 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
8217 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
8218 Jiong Wang <jiong.wang@arm.com>
8220 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
8221 (tlsie_tiny_<mode>): New define_insn.
8222 (tlsie_tiny_sidi): Likewise.
8223 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
8225 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
8226 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
8228 (aarch64_expand_mov_immediate): Likewise.
8229 (aarch64_print_operand): Likewise.
8230 (arch64_classify_tls_symbol): Likewise.
8232 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8234 * config/arm/arm-arches.def: Replace single value flags with
8235 an initializer built from ARM_FSET_MAKE_CPU1.
8236 * config/arm/arm-cores.def: Likewise.
8237 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
8238 derivation from the ARM_CORE macro definition, use the given value
8240 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
8241 ARM_ARCH macro definition, use the given value instead.
8243 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8245 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
8247 (struct builtin_description): Replace field mask with field
8249 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
8250 (IWMMXT2_BUILTIN): Likewise.
8251 (IWMMXT2_BUILTIN2): Likewise.
8252 (FP_BUILTIN): Likewise.
8253 (CRC32_BUILTIN): Likewise.
8254 (CRYPTO_BUILTIN): Likewise.
8255 (iwmmx_mbuiltin): Likewise.
8256 (iwmmx2_mbuiltin): Likewise.
8257 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
8258 struct builtin_description.
8260 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8262 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
8263 (struct builtin_description): Change type of mask to unsigned
8265 * config/arm/arm-protos.h (insn_flags): Declare as type
8267 (tune_flags): Likewise.
8268 * config/arm/arm.c (feature_count): New.
8269 (insn_flags): Define as type arm_feature_set.
8270 (tune_flags): Likewise.
8271 (struct processors): Define field flags as type arm_feature_set.
8272 (all_cores): Update for change to struct processors.
8273 (all_architectures): Likewise.
8274 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
8276 (arm_option_override_internal): Likewise.
8277 (arm_option_override): Likewise.
8279 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
8280 Jiong Wang <jiong.wang@arm.com>
8282 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
8283 tls size for tiny, small, large memory model.
8284 (aarch64_load_symref_appropriately): Support new symbol types.
8285 (aarch64_expand_mov_immediate): Likewise.
8286 (aarch64_print_operand): Likewise.
8287 (aarch64_classify_tls_symbol): Likewise.
8288 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
8289 (aarch64_symbol_type): Likewise.
8290 * config/aarch64/aarch64.md (tlsle): Deleted.
8291 (tlsle12_<mode>): New define_insn.
8292 (tlsle24_<mode>): Likewise.
8293 (tlsle32_<mode>): Likewise.
8294 (tlsle48_<mode>): Likewise.
8295 * doc/sourcebuild.texi (AArch64-specific attributes): Document
8298 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8300 * config/arm/arm-protos.h (FL_NONE): New.
8302 (arm_feature_set): New.
8303 (ARM_FSET_MAKE): New.
8304 (ARM_FSET_MAKE_CPU1): New.
8305 (ARM_FSET_MAKE_CPU2): New.
8306 (ARM_FSET_CPU1): New.
8307 (ARM_FSET_CPU2): New.
8308 (ARM_FSET_EMPTY): New.
8309 (ARM_FSET_ANY): New.
8310 (ARM_FSET_HAS_CPU1): New.
8311 (ARM_FSET_HAS_CPU2): New.
8312 (ARM_FSET_HAS_CPU): New.
8313 (ARM_FSET_ADD_CPU1): New.
8314 (ARM_FSET_ADD_CPU2): New.
8315 (ARM_FSET_DEL_CPU1): New.
8316 (ARM_FSET_DEL_CPU2): New.
8317 (ARM_FSET_UNION): New.
8318 (ARM_FSET_INTER): New.
8319 (ARM_FSET_XOR): New.
8320 (ARM_FSET_EXCLUDE): New.
8321 (AFM_FSET_IS_EMPTY): New.
8322 (ARM_FSET_CPU_SUBSET): New.
8324 2015-08-26 Jiong Wang <jiong.wang@arm.com>
8326 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
8327 SYMBOL_TLSLE to SYMBOL_TLSLE24.
8328 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8330 (aarch64_expand_mov_immediate): Likewise.
8331 (aarch64_print_operand): Likewise.
8332 (aarch64_classify_symbol): Likewise.
8334 2015-08-26 Jiong Wang <jiong.wang@arm.com>
8336 * config/aarch64/aarch64.opt (mtls-size): New entry.
8337 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
8338 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
8339 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
8341 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8343 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
8344 ARM_CORE entry. Fix some white-space.
8345 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
8346 ARM_CORE definition.
8348 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8350 * fold-const.c (fold_binary_loc) : Move Optimize
8351 root(x)*root(y) as root(x*y) to match.pd.
8352 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
8353 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
8354 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
8355 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
8356 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
8357 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
8358 (mult (exps:s @0) (exps:s @1)) : New simplifier.
8359 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
8360 (rdiv @0 (exps:s @1)) : New simplifier.
8362 2015-08-25 Joseph Myers <joseph@codesourcery.com>
8364 * gcc.c (driver::finalize): Only assign to extra_specs if
8367 2015-08-25 Marek Polacek <polacek@redhat.com>
8370 * varasm.c (declare_weak): Return after giving an error.
8372 2015-08-25 David Malcolm <dmalcolm@redhat.com>
8374 * gcc-main.c (main): Add params to driver ctor.
8375 * gcc.c (class env_manager): New.
8377 (env_manager::init): New.
8378 (env_manager::get): New.
8379 (env_manager::xput): New.
8380 (env_manager::restore): New.
8381 Poison getenv and putenv.
8382 (DEFAULT_TARGET_SYSTEM_ROOT): New.
8383 (target_system_root): Update initialization to use
8384 DEFAULT_TARGET_SYSTEM_ROOT.
8385 (struct spec_list): Add field "default_ptr".
8386 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
8387 (init_spec): Likewise.
8388 (set_spec): Clear field "default_ptr".
8389 (read_specs): Free "spec" and "buffer".
8390 (xputenv): Reimplement in terms of env_manager.
8391 (process_command): Replace ::getenv calls with calls to the
8392 env_manager singleton.
8393 (process_brace_body): Free string in three places.
8394 (driver::driver): New.
8395 (driver::~driver): New.
8396 (used_arg): Convert from a function to...
8397 (class used_arg_t): ...this class, and...
8398 (used_arg): ...this new global instance.
8399 (used_arg_t::finalize): New function.
8400 (getenv_spec_function): Add "const" to local "value". Replace
8401 ::getenv call with call to the env_manager singleton.
8402 (path_prefix_reset): New function.
8403 (driver::finalize): New function.
8404 * gcc.h (driver::driver): New.
8405 (driver::~driver): New.
8406 (driver::finalize): New.
8408 2015-08-25 Nathan Sidwell <nathan@acm.org>
8410 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
8411 target doesn't have one.
8413 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
8416 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
8418 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
8421 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
8422 a define_insn, remove second alternative.
8424 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
8425 Joseph Myers <joseph@codesourcery.com>
8427 * gcc.c (struct switchstr): Expand comment.
8429 2015-08-25 Nathan Sidwell <nathan@acm.org>
8431 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
8432 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
8434 2015-08-25 Richard Biener <rguenther@suse.de>
8437 * genmatch.c (expr::gen_transform): Verify the result of
8438 builtin_decl_implicit.
8439 (dt_simplify::gen_1): Likewise.
8441 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
8443 * config/arm/constraints.md: Also list Cs and US ARM-specific
8444 constraints as used.
8446 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
8449 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
8451 (nonpic_symbol_mentioned_p): Likewise.
8452 (sh_delegitimize_address): Likewise.
8453 (sh_function_ok_for_sibcall): Take into account weak symbols.
8454 (sh_expand_sym_label2reg): New.
8455 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
8456 * config/sh/sh.md (UNSPEC_PCREL): New enum.
8457 (call_pcrel): Use sh_expand_sym_label2reg.
8458 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
8459 (symPCREL_label2reg) New expand.
8461 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
8463 * graphite-poly.c: Change type of region from void* to sese.
8464 * graphite-poly.h (struct scop): Changing the type of scop::region
8465 from void* to sese. Change accessor macro accordingly.
8466 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
8468 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
8470 * graphite-scop-detection.c (stmt_simple_for_scop_p):
8471 Constrain only on INTEGER_TYPE.
8473 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
8476 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
8477 -mefficient-unaligned-vsx on ISA 2.7.
8479 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
8480 option to a masked option.
8482 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
8483 logic for -mefficient-unaligned-vsx so that it is set via an arch
8484 ISA option, instead of being set if -mtune=power8 is set. Move
8485 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
8486 near other default option handling.
8488 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8490 * genflags.c (gen_macro): Delete.
8491 (gen_proto): Don't create GEN.*CALL.* macros.
8492 * gensupport.h (get_file_location): Declare.
8493 * gensupport.c (rtx_locs): New variable.
8494 (read_md_rtx): Record rtx locations.
8495 (get_file_location): New function.
8496 * target-insns.def (call, call_pop, call_value, call_value_pop)
8497 (sibcall, sibcall_value): New patterns.
8498 * gentarget-def.c (parse_argument): New function.
8499 (def_target_insn): Use it. Handle optional operands. Raise an
8500 error if an .md pattern has the wrong number of operands for the
8501 pattern name. Remove the names of unused operands from the prototype.
8502 * builtins.c (expand_builtin_apply): Use targetm functions
8503 instead of HAVE_call_value and GEN_CALL_VALUE.
8504 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
8505 and sibcall_value_pop.
8506 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
8508 * config/alpha/alpha.md (untyped_call): Likewise.
8509 * config/iq2000/iq2000.md (untyped_call): Likewise.
8510 * config/m68k/m68k.md (untyped_call): Likewise.
8511 * config/mips/mips.md (untyped_call): Likewise.
8512 * config/pa/pa.md (untyped_call): Likewise.
8513 * config/rs6000/rs6000.md (untyped_call): Likewise.
8514 * config/sparc/sparc.md (untyped_call): Likewise.
8515 * config/tilegx/tilegx.md (untyped_call): Likewise.
8516 * config/tilepro/tilepro.md (untyped_call): Likewise.
8517 * config/visium/visium.md (untyped_call): Likewise.
8518 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
8519 gen_call_value instead of GEN_CALL_VALUE.
8520 * config/arm/arm.md (untyped_call): Likewise.
8521 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
8524 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8526 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
8527 (have_cbranchcc4): New variable.
8528 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
8529 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
8530 (if_convert): Initialize have_cbranchcc4.
8532 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8534 * builtins.c (expand_cmpstrn): Rename to...
8535 (expand_cmpstrn_or_cmpmem): ...this.
8536 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
8537 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
8538 Remove mode argument.
8539 (expand_builtin): Update accordingly.
8541 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8543 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
8544 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
8545 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
8546 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
8547 Add predicates for operands 0 and 3.
8548 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
8550 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
8551 immediate_operand to nonmemory_operand.
8553 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8555 * df-scan.c (df_insn_info_init_fields): New function, split out
8557 (df_insn_create_insn_record): ...here.
8558 (df_insn_info_free_fields): New function, split out from...
8559 (df_insn_info_delete): ...here.
8560 (df_insn_rescan): Use the new functions instead of freeing and
8561 reallocating the df_insn_info.
8563 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8565 * doc/install.texi (Binaries): Remove links no longer valid.
8567 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
8569 * config/nvptx/mkoffload.c (process): Replace
8570 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
8572 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
8575 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
8577 2015-08-24 Renlin Li <renlin.li@arm.com>
8579 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
8580 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
8581 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
8582 * config/arm/constraints.md ("j"): Add check for high code.
8584 2015-08-24 Tom de Vries <tom@codesourcery.com>
8586 PR tree-optimization/65468
8587 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
8590 2015-08-24 Nathan Sidwell <nathan@acm.org>
8592 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
8593 change to nvptx_type_from_mode call. Use arg_promotion for both
8594 split and non-split args.
8596 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8598 * target-insns.def (movstr): New pattern.
8599 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
8600 (expand_movstr): Use targetm rather than HAVE_movstr/
8603 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8605 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
8608 2015-08-24 Andrew Pinski <apinski@cavium.com>
8610 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
8611 AARCH64_EXTRA_TUNING_OPTION.
8612 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
8614 (aarch64_extra_tuning_flags): Base the shifted value on the index
8615 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
8616 * config/aarch64/aarch64.c: Remove the last argument to
8617 AARCH64_EXTRA_TUNING_OPTION.
8619 2015-08-23 Nathan Sidwell <nathan@acm.org>
8621 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
8623 (nvptx_declare_function_name): Insert formatting tabs for
8626 2015-08-23 Tom de Vries <tom@codesourcery.com>
8628 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
8629 parm_decl, rather than generating a dummy default def in cfun.
8630 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
8631 ssa_name from cfun and child_fn do not share a stmt as def stmt.
8632 (move_stmt_op): Handle PARM_DECl.
8633 (gather_ssa_name_hash_map_from): New function.
8634 (move_sese_region_to_fn): Add default defs for function params, and add
8635 them to vars_map. Release copied ssa names.
8636 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
8638 2015-08-23 Tom de Vries <tom@codesourcery.com>
8640 * doc/sourcebuild.texi: Rename vect_no_int_max with
8641 vect_no_int_min_max. Update description.
8643 2015-08-22 Andrew Pinski <apinski@cavium.com>
8645 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
8646 * config/aarch64/aarch64-protos.h
8647 (aarch64_fusion_pairs_index): New enum.
8648 (aarch64_fusion_pairs): Base the shifted value on the index instead
8649 Rewrite AARCH64_FUSE_ALL to be based on the end index.
8650 of the argument to AARCH64_FUSION_PAIR.
8651 * config/aarch64/aarch64.c: Remove the last argument to
8652 AARCH64_FUSION_PAIR.
8654 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
8656 * dominance.c (new_zero_array): Define.
8657 (dom_info): Redefine as class with proper encapsulation.
8658 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
8660 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
8661 allocations/deallocations. Pass function as parameter (instead of
8663 (dom_info::get_idom): Define accessor method.
8664 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
8665 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
8666 (calculate_dominance_info): Adjust to use dom_info class.
8667 (verify_dominators): Likewise.
8669 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
8671 * print-rtl.c (print_rtx): Check the correct range for
8672 flag_dump_unnumbered_links to behave as documented.
8674 PR rtl-optimization/67227
8675 PR rtl-optimization/64164
8676 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
8677 (nonoverlapping_memrefs_p): Test offsets and sizes when given
8678 identical gimple_reg exprs.
8680 2015-08-21 Nathan Sidwell <nathan@acm.org>
8682 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
8684 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
8685 crtl->stack_alignment_needed to determine alignment.
8686 (nvptx_get_drap_rtx): New.
8687 (TARGET_GET_DRAP_RTX): Override.
8688 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
8690 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8692 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
8694 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8696 * configure.ac: Remove uwin* cases.
8697 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
8698 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
8699 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
8700 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
8701 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
8702 i[34567]86-*-uwin*, powerpc-*-beos*.
8704 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
8706 * gencodes.c (gencodes): Print the comma for the preceding
8707 enum value rather than the current one. Use aliased enum values
8708 rather than #defines for compiled-out patterns.
8709 (main): Update accordingly. Replace LAST_INSN_CODE with
8711 * lra.c (insn_code_data): Update accordingly.
8712 (finish_insn_code_data_once, get_static_insn_data): Likewise.
8713 * recog.h (target_recog): Likewise.
8714 (preprocess_insn_constraints): Change parameter to unsigned int.
8715 * recog.c (preprocess_insn_constraints): Likewise.
8716 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
8717 * tree-vect-stmts.c (vectorizable_operation): Simplify.
8719 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
8721 PR rtl-optimization/61657
8722 * loop-iv.c (iv_number_of_iterations): Declare up and down as
8723 unsigned. Remove superflous uint64_t cast.
8725 2014-08-21 Felix Yang <felix.yang@huawei.com>
8726 Jiji Jiang <jiangjiji@huawei.com>
8728 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
8729 argument and get builtin function code directly from CALL.
8730 (gimple_stringop_fixed_value): Modified accordingly.
8731 (gimple_stringops_transform, gimple_stringops_values_to_profile):
8732 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
8734 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
8736 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
8738 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8740 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
8742 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
8743 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
8744 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
8745 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
8746 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
8747 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
8748 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
8749 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
8750 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
8751 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
8753 * match.pd (SIN ) : New Operator.
8754 (TAN) : New Operator.
8755 (mult (SQRT@1 @0) @1) : New simplifier.
8756 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
8757 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
8758 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
8759 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
8760 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
8761 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
8762 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
8763 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
8764 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
8765 (rdiv @0 (POW:s @1 @2)) : New simplifier.
8767 2015-08-21 Bin Cheng <bin.cheng@arm.com>
8769 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
8770 loop if EXPR is simplified to const value.
8772 2015-08-21 Yury Gribov <y.gribov@samsung.com>
8774 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
8775 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
8777 2015-08-21 Richard Biener <rguenther@suse.de>
8780 * gimple-fold.c (replace_stmt_with_simplification): Assert
8781 seq is empty when replacing a call with itself but different
8783 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
8784 a call require that it is const.
8786 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8788 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
8789 * builtins.c (get_object_alignment_2): Adjust.
8790 * varasm.c (align_variable): Likewise.
8791 (get_variable_align): Likewise.
8792 (build_constant_desc): Likewise.
8793 (force_const_mem): Likewise.
8794 * doc/tm.texi.in: Likewise.
8795 * doc/tm.texi: Regenerate.
8797 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8799 * genconfig.c (main): Always define HAVE_cc0.
8800 * recog.c (rest_of_handle_peephole2): Adjust.
8802 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8804 * reorg.c (relax_delay_slots): Don't use #if to check value of
8807 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8809 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
8810 * targhooks.c (default_have_conditional_execution): Adjust.
8812 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
8814 * rtl.h (rtvec_all_equal_p): Declare.
8815 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
8816 * rtl.c (rtvec_all_equal_p): New function.
8817 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
8818 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
8819 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
8820 * config/arm/arm.c (neon_vdup_constant): Likewise.
8821 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
8822 * config/tilegx/constraints.md (W, Y): Likewise.
8823 * config/tilepro/constraints.md (W, Y): Likewise.
8824 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
8825 (classify_immediate): Use unwrap_const_vec_duplicate.
8826 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
8827 (reg_or_v2s8bit_operand): Likewise.
8828 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
8829 (reg_or_v4s8bit_operand): Likewise.
8831 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8833 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
8834 (vec_shasigma_be): New #define.
8835 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
8836 (VPMSUMH): Likewise.
8837 (VPMSUMW): Likewise.
8838 (VPMSUMD): Likewise.
8839 (VPMSUM): New BU_P8V_OVERLOAD_2.
8840 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
8841 entries for VEC_MADD and VEC_VPMSUM.
8843 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
8845 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
8846 Multiply argument avr_n_flash by 64 to match unit of "KiB".
8847 (avr_pgm_check_var_decl): Same.
8849 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
8851 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
8852 initialization of HFmode scalar type (float16_t) to...
8853 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
8856 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
8858 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
8859 having an -mfp16-format.
8861 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
8863 * config/i386/predicates.md (vector_all_ones_operand): Use
8864 CONSTM1_RTX to simplify definition.
8866 2015-08-20 Richard Biener <rguenther@suse.de>
8868 * toplev.c (compile_file): Remove loop calling late_global_decl
8870 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
8871 on decls we assembled.
8873 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
8875 * common/config/aarch64/aarch64-common.c
8876 (AARCH64_CPU_NAME_LENGTH): Delete.
8877 (aarch64_option_extension): New.
8878 (all_extensions): Likewise.
8879 (processor_name_to_arch): Likewise.
8880 (arch_to_arch_name): Likewise.
8882 (all_architectures): Likewise.
8883 (aarch64_get_extension_string_for_isa_flags): Likewise.
8884 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
8886 * config/aarch64/aarch64-protos.h
8887 (aarch64_get_extension_string_for_isa_flags): New.
8888 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
8889 (aarch64_option_print): Get the string to print from
8890 aarch64_get_extension_string_for_isa_flags.
8891 (aarch64_declare_function_name): Likewise.
8892 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
8893 (MCPU_TO_MARCH_SPEC): This.
8894 (ASM_CPU_SPEC): Use it.
8895 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
8896 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
8897 (EXTRA_SPEC_FUNCTIONS): Use it.
8899 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
8901 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
8902 expansion when !ISA_HAS_LWL_LWR.
8903 (mips_block_move_straight): Update the size of elements copied to
8904 account for alignment when !ISA_HAS_LWL_LWR.
8905 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
8907 2015-08-19 Jiong Wang <jiong.wang@arm.com>
8909 * expr.c (expand_expr_real_2): Check gimple statement during
8912 2015-08-19 Magnus Granberg <zorry@gentoo.org>
8914 * common.opt (fstack-protector): Initialize to -1.
8915 (fstack-protector-all): Likewise.
8916 (fstack-protector-strong): Likewise.
8917 (fstack-protector-explicit): Likewise.
8918 * configure.ac: Add --enable-default-ssp.
8919 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
8920 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
8922 * doc/install.texi: Document --enable-default-ssp.
8923 * config.in: Regenerated.
8924 * configure: Likewise.
8926 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
8928 PR rtl-optimization/64164
8929 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
8930 (parm_in_stack_slot_p): ... this. Disregard mode, what
8931 matters is whether the parm will live in a pseudo or a stack
8933 (expand_one_ssa_partition): Deal with params without a default
8934 def. Disregard mode.
8935 * cfgexpand.h: Renamed function declaration.
8936 * tree-ssa-coalesce.c: Adjust.
8937 * function.c (split_complex_args): Allocate stack slot for
8938 unassigned parms before splitting.
8939 (parm_in_unassigned_mem_p): New. Use it instead of
8940 parm_maybe_byref_p throughout this file.
8941 (assign_parm_setup_block): Use it. Accept pseudos in the
8942 expand-assigned rtl.
8943 (assign_parm_setup_reg): Drop BLKmode requirement.
8944 (assign_parm_setup_stack): Allocate and fill in the address of
8945 unassigned MEM parms.
8947 2015-08-19 David Sherwood <david.sherwood@arm.com>
8949 * genmodes.c (emit_mode_unit_size_inline): New function.
8950 (emit_mode_unit_precision_inline): New function.
8951 (emit_insn_modes_h): Emit new #define. Emit new functions.
8952 (emit_mode_unit_size): New function.
8953 (emit_mode_unit_precision): New function.
8954 (emit_mode_adjustments): Add mode_unit_size adjustments.
8955 (emit_insn_modes_c): Emit new arrays.
8956 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
8957 use new inline methods.
8959 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8961 * config/aarch64/aarch64.c (bit_count): Delete prototype
8963 (aarch64_print_operand): Use popcount_hwi instead of the above.
8965 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8967 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
8970 2015-08-19 Marek Polacek <polacek@redhat.com>
8973 * gimple-ssa-isolate-paths.c
8974 (insert_trap_and_remove_trailing_statements): Rename to ...
8975 (insert_trap): ... this. Don't remove trailing statements; split
8977 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
8979 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
8982 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
8983 conditionalize the whole on __GNUC__. Add fallback code
8984 depending neither on undefined nor implementation-defined behaviour.
8986 2015-08-19 Jiong Wang <jiong.wang@arm.com>
8988 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
8989 whitespaces with tab.
8991 2015-08-19 Florian Weimer <fweimer@redhat.com>
8993 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
8994 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
8995 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
8996 Move Name_Ids instantiation to the Prj.Proc package, to avoid
8999 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9001 * config/arm/arm.c (bounds_check): Use %wd print format
9002 for HOST_WIDE_INT arguments.
9004 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
9006 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
9007 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
9008 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
9009 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
9010 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
9011 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
9012 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
9013 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
9014 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
9017 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
9019 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
9020 function.c, graphite-scop-detection.c, haifa-sched.c,
9021 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
9022 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
9023 varasm.c: Remove typedefs of structs.
9025 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
9027 * config/rs6000/altivec.h (vec_adde): New define.
9028 (vec_addec): Likewise.
9029 (vec_double): Likewise.
9030 (vec_bperm): Likewise.
9032 * config/rs6000/rs6000-builtin.def (ADDE): New
9033 BU_ALTIVEC_OVERLOAD_3.
9035 (DOUBLE): New BU_VSX_OVERLOAD_1.
9036 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
9037 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
9038 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
9039 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
9040 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
9041 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
9042 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
9043 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
9044 and P8V_BUILTIN_VEC_VBPERMQ.
9046 2015-08-18 Jason Merrill <jason@redhat.com>
9048 * print-tree.c (print_node): Handle TREE_BINFO.
9050 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9053 * builtins.c (expand_builtin_signbit): Add asserts to make sure
9054 we can expand BUILT_IN_SIGNBIT inline.
9055 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
9056 * doc/extend.texi: Document the type-generic __builtin_signbit.
9058 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
9060 PR rtl-optimization/67218
9061 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
9062 (simplify_unary_operation_1): Use it.
9064 2015-08-18 Marek Polacek <polacek@redhat.com>
9067 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
9068 if the call isn't valid.
9069 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
9070 gimple_call_builtin_p.
9071 (call_may_clobber_ref_p_1): Likewise.
9072 (stmt_kills_ref_p): Likewise.
9074 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
9076 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
9077 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
9078 (mips_hard_regno_scratch_ok): Likewise.
9079 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
9080 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
9082 2015-08-18 Bin Cheng <bin.cheng@arm.com>
9084 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
9085 (determine_value_range): Call refine_value_range_using_guard for
9086 each loop initial condition to improve value range.
9088 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
9090 * config/i386/i386.c: Remove include of fibheap.h.
9092 2015-08-17 Richard Biener <rguenther@suse.de>
9094 PR tree-optimization/67221
9095 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
9096 (sccvn_dom_walker::before_dom_children): Mark backedges of
9097 non-executable blocks as not executable.
9099 2015-08-17 David Sherwood <david.sherwood@arm.com>
9101 * config/arm/arm.c (neon_element_bits): Replace call to
9102 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
9103 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
9104 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
9105 (neon_vdup_lane<mode>): Likewise.
9106 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
9107 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
9108 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
9109 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
9110 * config/spu/spu.c (arith_immediate_p): Likewise.
9111 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
9112 * expr.c (expand_expr_real_2): Likewise.
9113 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
9114 * simplify-rtx.c (simplify_immed_subreg): Likewise.
9115 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
9116 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
9118 * fold-const.c (fold_binary_loc): Replace call to
9119 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
9120 GET_MODE_UNIT_PRECISION (m).
9122 2015-08-17 Mike Stump <mikestump@comcast.net>
9124 * config/arm/arm.c (arm_block_move_unaligned_straight):
9125 Emit normal move instead of unaligned load when source or destination
9126 are appropriately aligned.
9128 2015-08-17 Richard Biener <rguenther@suse.de>
9129 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9132 * match.pd (div (coss (op @0) : New simplifier.
9134 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
9136 PR rtl-optimization/64164
9139 PR rtl-optimization/67000
9142 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9143 * tree-ssa-copyrename.c: Removed.
9144 * opts.c (default_options_table): Drop -ftree-copyrename. Add
9145 -ftree-coalesce-vars.
9146 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9147 * common.opt (ftree-copyrename): Ignore.
9148 (ftree-coalesce-inlined-vars): Likewise.
9149 * doc/invoke.texi: Remove the ignored options above.
9150 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9151 * tree-ssa-coalesce.h: ... here.
9152 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9153 headers required by it.
9154 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9155 across variables when flag_tree_coalesce_vars. Check register
9156 use and promoted modes to allow coalescing. Do not coalesce
9157 maybe-byref parms with SSA_NAMEs of other variables, or
9158 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
9159 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9160 with its member functions to tree-ssa-coalesce.c.
9161 (var_map_base_init): Likewise. Renamed to
9162 compute_samebase_partition_bases.
9163 (partition_view_normal): Drop want_bases parameter.
9164 (partition_view_bitmap): Likewise.
9165 * tree-ssa-live.h: Adjust declarations.
9166 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
9167 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9168 default defs at the entry point.
9169 (dump_part_var_map): New.
9170 (compute_optimized_partition_bases): New, called by...
9171 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9172 of compute_samebase_partition_bases. Adjust.
9173 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9174 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
9175 (ssa_default_def_partition): New.
9176 (get_rtl_for_parm_ssa_default_def): New.
9177 (align_local_variable, add_stack_var): Support anonymous SSA
9179 (defer_stack_allocation): Likewise. Declare earlier.
9180 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9181 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9182 Do no record deferred-allocation marker in
9183 SA.partition_to_pseudo.
9184 (expand_stack_vars): Adjust check for the marker in it.
9185 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
9186 redundant MEM attr setting.
9187 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
9189 (expand_one_stack_var): ... this. New wrapper to check and
9190 skip already expanded SSA partitions.
9191 (record_alignment_for_reg_var): New, factored out of...
9192 (expand_one_var): ... this.
9193 (expand_one_ssa_partition): New.
9194 (adjust_one_expanded_partition_var): New.
9195 (expand_one_register_var): Check and skip already expanded SSA
9197 (expand_used_vars): Don't create DECLs for anonymous SSA
9198 names. Expand all SSA partitions, then adjust all SSA names.
9199 (pass::execute): Replace the loops that set
9200 SA.partition_to_pseudo from partition leaders and cleared
9201 DECL_RTL for multi-location variables, and that which used to
9202 rename vars and set attrs, with one that clears DECL_RTL and
9203 checks that PARMs and RESULTs default_defs match DECL_RTL.
9204 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9205 * emit-rtl.c: Include stor-layout.h.
9206 (set_reg_attrs_for_parm): Handle NULL decl.
9207 (set_reg_attrs_for_decl_rtl): Take mode from expression if
9209 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
9210 rather than its possibly-NULL DECL.
9211 * explow.c (promote_ssa_mode): New.
9212 * explow.h (promote_ssa_mode): Declare.
9213 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9214 (read_complex_part): Export.
9215 * expr.h (read_complex_part): Declare.
9216 * cfgexpand.h (parm_maybe_byref_p): Declare.
9217 * function.c: Include cfgexpand.h.
9218 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9219 (use_register_for_parm_decl): Wrapper for the above to
9220 special-case the result_ptr.
9221 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9222 (split_complex_args): Take assign_parm_data_all argument.
9223 Pass it to rtl_for_parm. Set up rtl and context for split
9224 args. Reset complex parm before fetching its default decl
9226 (assign_parms_unsplit_complex): Use the default-def complex
9227 parm rtl if it matches the components.
9228 (assign_parms_augmented_arg_list): Adjust.
9229 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9230 multiple locations. Recognize split complex args.
9231 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9232 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
9233 (assign_parm_setup_block): Prefer SSA-assigned location, and
9234 fill in its address if the memory location of a maybe-byref
9235 parm was not assigned by cfgexpand.
9236 (assign_parm_setup_reg): Likewise. Adjust its mode as
9237 needed. Use entry_parm for equiv if stack_parm is NULL. Make
9238 sure passed_pointer parms don't need conversion. Copy address
9240 (assign_parm_setup_stack): Prefer SSA-assigned location.
9241 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
9242 rtl before testing for pointer bounds. Special-case result_ptr.
9243 (expand_function_start): Maybe reset DECL_RTL of result.
9244 Prefer SSA-assigned location for result and static chain.
9245 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
9246 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
9247 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9248 anonymous SSA names. Use promote_ssa_mode.
9249 (get_temp_reg): Likewise.
9250 (remove_ssa_form): Adjust.
9251 * stor-layout.c (layout_decl): Don't set mem attributes of
9253 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9254 and get its reg_usage for reg invalidation.
9255 (compute_bb_dataflow): Pass it insn.
9256 (emit_notes_in_bb): Likewise.
9258 2015-08-14 Marek Polacek <polacek@redhat.com>
9260 * tree-core.h (tree_base): Fix typo.
9262 2015-08-14 Marek Polacek <polacek@redhat.com>
9265 * gimple.c (infer_nonnull_range_by_attribute): Check that the
9266 nonnull argument position is not outside function arguments.
9268 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
9271 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
9272 'lconst_atomic' with 'const_atomic'.
9273 (atomic_fetch_<optab><mode>): Likewise.
9274 (atomic_<optab>_fetch<mode>): Likewise.
9275 * config/aarch64/iterators.md (lconst-atomic): Move below
9277 (const_atomic): New.
9279 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
9280 Bernd Schmidt <bernds@codesourcery.com>
9282 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
9284 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
9285 (DWARF2_DEBUGGING_INFO): Don't define.
9286 * debug.h (dwarf2_lineno_debug_hooks): Declare.
9287 * toplev.c (process_options): Add a case for it.
9288 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
9289 (dwarf2out_init): Skip most initializations if
9290 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
9292 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
9293 DWARF2_LINENO_DEBUGGING_INFO.
9294 * opts.c (set_debug_level): Likewise.
9296 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
9298 * config/arm/types.md (is_neon_type): Add missing types.
9300 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
9302 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
9304 * config/i386/i386.c (PTA_SKYLAKE): New macros.
9305 (processor_alias_table): Add skylake description.
9306 (enum processor_model): Add skylake processor.
9307 (arch_names_table): Add skylake record.
9308 * doc/invoke.texi: Add skylake item.
9310 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
9312 * ira-int.h: Include recog.h.
9313 * ira-build.c: Don't include recog.h.
9314 * ira-color.c: Likewise.
9315 * ira-conflicts.c: Likewise.
9316 * ira-costs.c: Likewise.
9317 * ira-emit.c: Likewise.
9318 * ira-lives.c: Likewise.
9320 * sched-deps.c: Likewise.
9321 * sel-sched.c: Likewise.
9322 * target-globals.c: Likewise.
9324 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
9327 * reload1.c (elimination_costs_in_insn): Make it obvious to the
9328 compiler that the n_dups and n_operands loop bounds are invariant.
9330 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9332 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
9333 expressions in A and B.
9335 2015-08-13 Richard Biener <rguenther@suse.de>
9337 * tree.c (nonnull_arg_p): Move from ...
9338 * tree-vrp.c (nonnull_arg_p): ... here.
9339 * tree.h (nonnull_arg_p): Declare.
9340 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
9341 here, register ptr != 0 for nonnull_arg_p pointer arguments.
9342 Properly initialize static chain and by-reference result pointer.
9343 (run_scc_vn): Adjust.
9345 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
9347 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
9350 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
9352 * config/aarch64/aarch64-protos.h
9353 (aarch64_gen_atomic_cas): Declare.
9354 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
9355 Choose appropriate instruction pattern for the target.
9356 (aarch64_gen_atomic_cas): New.
9357 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
9358 (atomic_compare_and_swap<mode>_1): Rename to
9359 aarch64_compare_and_swap<mode>. Fix some indentation.
9360 (aarch64_compare_and_swap<mode>_lse): New.
9361 (aarch64_atomic_cas<mode>): New.
9363 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
9365 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
9368 2015-08-13 Richard Biener <rguenther@suse.de>
9370 PR tree-optimization/67191
9371 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
9372 assert we value-numbered last stmts operand because it can validly
9373 trigger for unreachable code.
9375 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9377 PR rtl-optimization/67103
9378 * ifcvt.c (noce_try_store_flag_constants): Move
9379 x = (-(test != 0) & (b - a)) + a transformation to...
9380 (noce_try_cmove): ... Here. Try it if normal conditional
9383 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
9385 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
9387 * config/mips/mips.md (processor): Remove w32 and w64.
9389 2015-08-13 Richard Biener <rguenther@suse.de>
9391 PR tree-optimization/66502
9392 PR tree-optimization/67167
9393 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
9395 (vn_phi_lookup): Adjust.
9396 (vn_phi_insert): Likewise.
9397 (visit_phi): Prefer to value-number to another PHI node
9398 over value-numbering to a PHI argument.
9399 (init_scc_vn): Mark DFS back edges.
9401 2015-08-13 Richard Biener <rguenther@suse.de>
9403 * gimple.h (gcall::code_): New constant static member.
9404 (gcond::code_): Likewise.
9405 * gimple.c (gcall::code_): Define.
9406 (gcond::code_): Likewise.
9407 (is_a_helper <const gcond *>): Add.
9408 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
9409 and forward to a new gcall overload with less checking and a
9410 cheaper way to access the operand.
9411 (gimple_call_lhs_ptr): Likewise.
9412 (gimple_call_set_lhs): Likewise.
9413 (gimple_call_internal_p): Likewise.
9414 (gimple_call_with_bounds_p): Likewise.
9415 (gimple_call_set_with_bounds): Likewise.
9416 (gimple_call_internal_fn): Likewise.
9417 (gimple_call_set_ctrl_altering): Likewise.
9418 (gimple_call_ctrl_altering_p): Likewise.
9419 (gimple_call_fntype): Likewise.
9420 (gimple_call_fn): Likewise.
9421 (gimple_call_fn_ptr): Likewise.
9422 (gimple_call_set_fndecl): Likewise.
9423 (gimple_call_fndecl): Likewise.
9424 (gimple_call_chain): Likewise.
9425 (gimple_call_num_args): Likewise.
9426 (gimple_call_arg): Likewise.
9427 (gimple_call_arg_ptr): Likewise.
9428 (gimple_call_set_arg): Likewise.
9429 (gimple_call_noreturn_p): Likewise.
9430 (gimple_cond_code): Likewise.
9431 (gimple_cond_lhs): Likewise.
9432 (gimple_cond_rhs): Likewise.
9433 (gimple_has_lhs): Reduce checking.
9435 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9438 * match.pd (div (mult @0 @1) @1) : New simplifier.
9440 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
9443 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
9444 predicate to allow construction of vector constants using the
9445 VSLDOI vector shift instruction.
9447 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
9450 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
9451 the number of bytes to be shifted left and filled in with either
9452 all zero or all one bits.
9453 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
9455 (output_vec_const_move): On power8, generate XXLORC to generate
9456 a vector constant with all 1's. Do a split if we need to use a
9459 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
9460 properly test for the MSB.
9462 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
9463 vector constants that can be created with VSLDOI.
9465 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
9468 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
9469 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
9470 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
9471 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
9472 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
9473 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9474 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
9475 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
9476 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
9478 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
9480 * config/xtensa/constraints.md (define_constraint "Y"): New
9482 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
9483 * config/xtensa/linux.h (ASM_SPEC): Likewise.
9484 * config/xtensa/predicates.md (move_operand): Match constants
9485 and symbols in the presence of TARGET_AUTO_LITPOOLS.
9486 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
9487 immediate references to TLS data.
9488 (xtensa_emit_move_sequence): Don't force constants to memory in
9489 the presence of TARGET_AUTO_LITPOOLS.
9490 (print_operand): Add 'y' format, same as default, but capable of
9491 printing SF mode constants as well.
9492 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
9493 (movsf_internal): Add movi pattern that loads literal.
9494 (movsf, movdf): Don't force constants to memory in the presence
9495 of TARGET_AUTO_LITPOOLS.
9496 (movdf_internal): Add 'Y' constraint.
9497 * config/xtensa/xtensa.opt (mauto-litpools): New option.
9498 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
9500 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
9502 * config/arm/arm-fpus.def: Replace booleans with feature flags.
9504 * config/arm/arm.c (ARM_FPU): Update macro.
9505 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
9506 (TARGET_FP16): Likewise.
9507 (TARGET_CRYPTO): Likewise.
9508 (TARGET_NEON): Likewise.
9509 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
9512 2015-08-12 Tom de Vries <tom@codesourcery.com>
9516 * doc/install.texi: Remove --with_host_libstdcxx item. Update
9517 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
9518 accordingly. Mention default for --with-stage1-ldflags.
9520 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
9522 * config/arm/arm.h (arm_fpu_feature_set): New.
9523 (ARM_FPU_FSET_HAS): New.
9527 (FPU_FL_CRYPTO): New.
9529 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9531 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
9532 after -mcmodel=large -fPIC sorry.
9534 2015-08-12 Richard Biener <rguenther@suse.de>
9536 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
9537 comparison operand order and commutative ternary op operand order.
9538 (sccvn_dom_walker::cond_stack): New state to track temporary
9540 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
9542 (sccvn_dom_walker::record_cond): Add a single temporary conditional
9544 (sccvn_dom_walker::record_conds): Add a temporary conditional
9545 expressions and all related expressions also true/false.
9546 (sccvn_dom_walker::before_dom_children): Record temporary
9547 expressions based on the controlling condition of a single
9548 predecessor. When trying to simplify a conditional statement
9549 lookup expressions we might have inserted earlier.
9551 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
9554 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
9555 to ARM core registers.
9557 2015-08-12 Nathan Sidwell <nathan@acm.org>
9559 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
9560 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
9562 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
9564 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
9566 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
9568 2015-08-12 Richard Biener <rguenther@suse.de>
9570 * gimple.h (remove_pointer): New trait.
9571 (GIMPLE_CHECK2): New inline template function.
9572 (gassign::code_): New constant static member.
9573 (is_a_helper<const gassign *>): Add.
9574 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
9575 and forward to a new gassign overload with less checking and a
9576 cheaper way to access the operand.
9577 (gimple_assign_lhs_ptr): Likewise.
9578 (gimple_assign_set_lhs): Likewise.
9579 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
9581 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
9583 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
9585 (gimple_assign_rhs_code): Likewise.
9586 * gimple.c (gassign::code_): Define.
9588 2015-08-12 Richard Biener <rguenther@suse.de>
9590 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9591 Eliminate edges marked as not executable by SCCVN.
9592 * tree-ssa-sccvn.c: Include gimple-iterator.h.
9593 (cond_dom_walker): Rename to sccvn_dom_walker.
9594 (sccvn_dom_walker::before_dom_children): Value-number defs
9596 (run_scc_vn): Remove loop value-numbering all SSA names.
9597 Drop not visited SSA names to varying.
9599 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
9601 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
9602 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
9603 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
9604 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
9605 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
9606 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9607 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
9608 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
9609 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
9611 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
9614 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
9615 to enum feature_priority and feature_list.
9616 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
9617 and isa_names_table.
9619 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
9621 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
9624 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9628 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
9629 account when deciding what was the command-line status.
9631 2015-08-11 Nathan Sidwell <nathan@acm.org>
9633 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
9635 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
9636 we're not the only contributor to target phi.
9638 2015-08-11 Jiong Wang <jiong.wang@arm.com>
9640 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
9643 2015-08-11 Tom de Vries <tom@codesourcery.com>
9645 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
9647 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
9649 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
9651 * config/i386/i386.md (cpu): Remove knl.
9653 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
9657 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
9658 open-coded sequence.
9659 * omp-low.c (oacc_process_reduction_data): Remove handline of
9660 GOMP_DEVICE_HOST_NONSHM.
9662 * lto-streamer-in.c (lto_input_mode_table): Adjust to
9663 GET_MODE_INNER changes.
9665 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
9666 Ilya Verbin <ilya.verbin@intel.com>
9668 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
9670 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
9672 * doc/options.texi (EnabledBy): Document that the argument must be
9674 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
9675 Not enabled by -Wall.
9676 * optc-gen.awk: Give nicer error messages. Detect if the argument
9677 of EnabledBy is not a Common option.
9678 * common.opt (Wnull-dereference): Not enabled by -Wall.
9679 * opt-functions.awk (lang_enabled_by): Nicer error messages.
9681 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
9683 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
9684 model == 0x4f as Broadwell.
9686 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
9688 PR rtl-optimization/67028
9689 * combine.c (simplify_comparison): Fix comment. Rearrange code.
9690 Add test to see if a const_int fits in the new mode.
9692 2015-08-07 DJ Delorie <dj@redhat.com>
9694 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
9696 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
9698 PR rtl-optimization/67029
9699 * ira-color.c: Include "recog.h" before including "ira-int.h".
9700 * target-globals.c: Likewise.
9701 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
9702 adds an alternative_mask argument and use it instead of
9703 preferred_alternatives.
9704 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
9705 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
9706 * sched-deps.c: Include "ira-int.h" after including "ira.h".
9707 (sched_analyze_insn): Update call to
9708 ira_implicitly_set_insn_hard_regs.
9709 * sel-sched.c: Include "ira-int.h" after including "ira.h".
9710 (implicit_clobber_conflict_p): Update call to
9711 ira_implicitly_set_insn_hard_regs.
9713 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
9715 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
9717 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
9720 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
9721 currently_expanding_to_rtl is set.
9723 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
9725 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
9726 * configure: Regenerate.
9728 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9729 Jiong Wang <jiong.wang@arm.com>
9731 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
9732 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
9733 (REG_CLASS_NAMES): Likewise.
9734 (REG_CLASS_CONTENTS): Likewise.
9735 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
9736 (aarch64_register_move_cost): Likewise.
9737 (aarch64_load_symref_appropriately): Invoke the new added pattern if
9739 * config/aarch64/constraints.md (Uc0): New constraint.
9741 2015-08-06 Jiong Wang <jiong.wang@arm.com>
9743 * config/aarch64/constraints.md (Usf): Add the test of
9744 aarch64_is_noplt_call_p.
9746 2015-08-06 Jiong Wang <jiong.wang@arm.com>
9748 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
9750 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
9751 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
9752 (call_symbol): Likewise.
9754 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
9756 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
9757 for vectorizing multiplication patterns.
9758 * tree-vectorizer.h: Adjust the number of patterns.
9760 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
9762 * config/i386/sse.md (*vec_concatv2df): Declare added
9763 alternatives as sselog type.
9765 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9767 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
9770 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9772 * config/s390/s390.c (s390_expand_tbegin): Expand either
9773 tbegin_1_z13 or tbegin_1 depending on VX flag.
9774 * config/s390/s390.md ("tbegin_1_z13"): New expander.
9776 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9778 * config/s390/s390.opt: Clarify description for -mzvector
9779 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
9782 2015-08-06 Richard Biener <rguenther@suse.de>
9784 * gimple.h (gimple_call_set_fn): Access op member directly.
9785 (gimple_call_chain_ptr): Likewise.
9786 (gimple_call_set_chain): Likewise.
9787 (gimple_cond_lhs_ptr): Likewise.
9788 (gimple_cond_set_lhs): Likewise.
9789 (gimple_cond_rhs_ptr): Likewise.
9790 (gimple_cond_set_rhs): Likewise.
9791 (gimple_cond_true_label): Likewise.
9792 (gimple_cond_set_true_label): Likewise.
9793 (gimple_cond_set_false_label): Likewise.
9794 (gimple_cond_false_label): Likewise.
9795 (gimple_label_label): Likewise.
9796 (gimple_label_set_label): Likewise.
9797 (gimple_goto_set_dest): Likewise.
9798 (gimple_asm_input_op): Likewise.
9799 (gimple_asm_input_op_ptr): Likewise.
9800 (gimple_asm_set_input_op): Likewise.
9801 (gimple_asm_output_op): Likewise.
9802 (gimple_asm_output_op_ptr): Likewise.
9803 (gimple_asm_set_output_op): Likewise.
9804 (gimple_asm_clobber_op): Likewise.
9805 (gimple_asm_set_clobber_op): Likewise.
9806 (gimple_asm_label_op): Likewise.
9807 (gimple_asm_set_label_op): Likewise.
9808 (gimple_switch_index): Likewise.
9809 (gimple_switch_index_ptr): Likewise.
9810 (gimple_return_retval_ptr): Likewise.
9811 (gimple_return_retval): Likewise.
9812 (gimple_return_set_retval): Likewise.
9813 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
9814 (gimple_switch_label): Likewise.
9815 (gimple_switch_set_label): Likewise.
9817 2015-08-06 Richard Biener <rguenther@suse.de>
9819 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
9820 bool comparison canonicalization and restrict to integers.
9822 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
9824 * coretypes.h (enum symbol_visibility): Relocate here.
9825 * flag-types.h (enum symbol_visibility): Remove.
9826 * tree-core.h (enum symbol_visibility): Remove.
9828 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
9831 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
9832 for no_split_stack function attribute along with
9834 (rs6000_expand_split_stack_prologue): Likewise.
9836 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
9837 Jeff Law <law@redhat.com>
9840 * doc/invoke.texi (Wnull-dereference): New.
9841 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
9842 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
9843 Warn for potential NULL dereferences.
9844 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
9845 * ubsan.c (instrument_nonnull_arg): Call
9846 infer_nonnull_range_by_attribute.
9847 (instrument_nonnull_return): Likewise.
9848 * common.opt (Wnull-dereference); New.
9849 * gimple.c (infer_nonnull_range): Remove bool arguments.
9850 (infer_nonnull_range_by_dereference): New.
9851 (infer_nonnull_range_by_attribute): New.
9852 * gimple.h: Update declarations.
9854 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9856 * gensupport.c (sequence_num): Replace with...
9857 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
9858 ...these new variables.
9859 (init_rtx_reader_args_cb): Update accordingly.
9860 (get_num_code_insns): Likewise.
9861 (read_md_rtx): Rework to use a while loop and get_c_test.
9862 Use the new counters. Remove redundant DEFINE_SUBST case.
9863 * genoutput.c (gen_split): Delete.
9864 (main): Don't call it.
9866 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9868 * gensupport.h (get_c_test): Declare.
9869 * gensupport.c (get_c_test): New function.
9870 * genconditions.c (main): Use it.
9871 * genrecog.c (validate_pattern): Likewise.
9872 (match_pattern_1): Likewise. Remove c_test argument.
9873 (match_pattern): Update accordingly and remove c_test argument.
9874 (main): Update accordingly.
9876 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9878 * gensupport.h (get_num_insn_codes): Declare.
9879 * gensupport.c (get_num_insn_codes): New function.
9880 * genattrtab.c (optimize_attrs): Rename max_insn_code to
9882 (main): Likewise. Use get_num_insn_codes.
9883 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
9885 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9888 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
9889 is zero- rather than sign-extended.
9891 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9893 * target-insns.def (can_extend): Delete.
9895 2015-08-05 Richard Biener <rguenther@suse.de>
9897 PR tree-optimization/67121
9898 * tree-if-conv.c (combine_blocks): Clear range-info produced
9899 by stmts no longer executed conditionally.
9901 2015-08-05 Nick Clifton <nickc@redhat.com>
9903 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
9904 to allow identical far pointers to remain.
9906 2015-08-05 Richard Biener <rguenther@suse.de>
9909 * match.pd: Compare address bases with == if they are decls
9910 or SSA names, not operand_equal_p. Otherwise fail.
9912 2015-08-05 Richard Biener <rguenther@suse.de>
9914 PR tree-optimization/67055
9915 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
9918 * g++.dg/torture/pr67055.C: New testcase.
9920 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
9922 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
9924 (define_attr "enabled"): Handle avx521vl and noavx512vl.
9925 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
9926 AVX-512 alternative out of SSE.
9927 (define_insn "*vec_concatv2df"): Ditto.
9929 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
9931 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
9932 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
9933 CODE_FOR_avx_ptestv4di.
9934 * config/i386/sse.md (define_mode_iterator V_AVX): New.
9935 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
9936 (define_insn "avx_ptest256"): Merge this ...
9937 (define_insn "sse4_1_ptest"): And this ...
9938 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
9940 2015-08-05 Richard Biener <rguenther@suse.de>
9942 PR tree-optimization/67109
9943 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
9944 against too big groups. Print whether this is a load or store
9945 group. Rename from ...
9946 (vect_analyze_group_access): ... this which is now a wrapper
9947 dissolving an invalid group.
9948 (vect_analyze_data_ref_accesses): Print whether this is a load
9951 2015-08-05 Richard Biener <rguenther@suse.de>
9954 * match.pd: Guard const_binop result checking against NULL_TREE
9957 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
9959 * cse.c (cse_insn): Restoring old behaviour for src_eqv
9960 when dest and value in the REG_EQUAL are same and dest
9963 2015-08-04 Anatoly Sokolov <aesok@post.ru>
9965 * config/moxie/moxie.h (PRINT_OPERAND,
9966 PRINT_OPERAND_ADDRESS): Remove macros.
9967 * config/moxie/moxie-protos.h (moxie_print_operand,
9968 moxie_print_operand_address): Remove declaration.
9969 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
9970 TARGET_PRINT_OPERAND_ADDRESS): Define.
9971 (moxie_print_operand, moxie_print_operand_address): Make static.
9973 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
9976 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
9977 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
9979 2015-08-04 Richard Biener <rguenther@suse.de>
9981 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
9983 (dt_operand::gen_gimple_expr): Adjust.
9985 2015-08-04 Richard Biener <rguenther@suse.de>
9987 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
9988 bool compares on RHS.
9989 * match.pd: Add X ==/!= !X is false/true pattern.
9991 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
9993 * config/aarch64/aarch64.c: Change inner loop statement cost
9994 to be consistent with other targets.
9996 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
9998 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
10001 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
10003 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
10004 (machine_function): Remove pseudos field.
10006 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10008 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
10009 Exit early and use target_option_current_node if processing current
10012 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10014 * doc/extend.texi (AArch64 Function Attributes): New node.
10015 (AArch64 Pragmas): Likewise.
10017 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10019 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
10020 Initialize simd builtins if TARGET_SIMD.
10021 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
10022 Make sure that the builtins are initialized only once no matter how
10023 many times the function is called.
10024 (aarch64_init_builtins): Unconditionally initialize crc builtins.
10025 (aarch64_relayout_simd_param): New function.
10026 (aarch64_simd_expand_args): Use above during argument expansion.
10027 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
10028 simd builtins if TARGET_SIMD.
10029 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
10031 (aarch64_relayout_simd_types): Likewise.
10033 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10035 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
10036 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
10037 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
10038 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
10040 (aarch64_reset_previous_fndecl): New function.
10041 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
10043 * config/aarch64/aarch64-c.c: New file.
10044 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
10045 Push and pop options at beginning and end. Remove ifdef
10046 __ARM_FEATURE_CRC32.
10047 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
10048 Add pragma +nothing+simd and +nothing+crypto where appropriate.
10049 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
10050 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
10052 (aarch64_register_pragmas): Likewise.
10053 (aarch64_reset_previous_fndecl): Likewise.
10054 (aarch64_process_target_attr): Likewise.
10055 (aarch64_override_options_internal): Likewise.
10057 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10059 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
10061 (aarch64_can_inline_p): Likewise.
10062 (TARGET_CAN_INLINE_P): Define.
10064 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10066 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
10067 Remove static. Handle OPT_mgeneral_regs_only,
10068 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
10069 OPT_momit_leaf_frame_pointer.
10070 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
10071 (aarch64_attr_opt_type): New enum.
10072 (aarch64_attribute_info): New struct.
10073 (aarch64_handle_attr_arch): New function.
10074 (aarch64_handle_attr_cpu): Likewise.
10075 (aarch64_handle_attr_tune): Likewise.
10076 (aarch64_handle_attr_isa_flags): Likewise.
10077 (aarch64_attributes): New table.
10078 (aarch64_process_one_target_attr): New function.
10079 (num_occurences_in_str): Likewise.
10080 (aarch64_process_target_attr): Likewise.
10081 (aarch64_option_valid_attribute_p): Likewise.
10082 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
10083 * config/aarch64/aarch64-protos.h: Include input.h
10084 (aarch64_handle_option): Declare prototype.
10086 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10088 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
10089 * config/aarch64/aarch64.c: Include target-globals.h
10090 (aarch64_previous_fndecl): New variable.
10091 (aarch64_set_current_function): New function.
10092 (TARGET_SET_CURRENT_FUNCTION): Define.
10094 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10096 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
10097 (explicit_arch): Likewise.
10098 (x_aarch64_isa_flags): Likewise.
10099 (mgeneral-regs-only): Mark as Save.
10100 (mfix-cortex-a53-835769): Likewise.
10101 (mcmodel=): Likewise.
10102 (mstrict-align): Likewise.
10103 (momit-leaf-frame-pointer): Likewise.
10104 (mtls-dialect): Likewise.
10105 (master=): Likewise.
10106 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
10107 (aarch64_isa_flags): Remove extern declaration.
10108 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
10109 to indicate success or failure.
10110 (aarch64_validate_march): Likewise.
10111 (aarch64_validate_mtune): Likewise.
10112 (aarch64_isa_flags): Delete.
10113 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
10114 instead of aarch64_isa_flags.
10115 (aarch64_get_tune_cpu): New function.
10116 (aarch64_get_arch): Likewise.
10117 (aarch64_override_options): Use above and set up explicit_tune_core
10119 (aarch64_print_extension): Move earlier in file. Add isa_flags
10120 argument and use that instead of the global aarch64_isa_flags.
10121 (aarch64_option_save): New function.
10122 (aarch64_option_restore): Likewise.
10123 (aarch64_option_print): Likewise.
10124 (aarch64_declare_function_name): Likewise.
10125 (aarch64_start_file): Delete.
10126 (TARGET_ASM_FILE_START): Do not define.
10127 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
10128 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
10131 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10133 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
10134 flag_omit_leaf_frame_pointer to 2.
10136 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10138 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
10140 (TARGET_FIX_ERR_A53_835769): New macro.
10141 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
10142 handling of opts->x_aarch64_fix_a53_err835769.
10143 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
10144 than aarch64_fix_a53_err835769.
10145 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
10146 * config/aarch64/aarch64-linux.h: Likewise.
10148 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
10150 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
10151 ix86_expand_int_movcc as boolean.
10153 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10155 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
10156 (aarch64_cpu_string): Likewise.
10157 (aarch64_tune_string): Likewise.
10158 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
10159 (aarch64_parse_extension): Return aarch64_parse_opt_result.
10160 Add extra argument to put result into.
10161 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
10162 (aarch64_parse_cpu): Add arguments to put results into. Return
10163 aarch64_parse_opt_result.
10164 (aarch64_parse_tune): Likewise.
10165 (aarch64_override_options_after_change_1): New function.
10166 (aarch64_override_options_internal): New function.
10167 (aarch64_validate_mcpu): Likewise.
10168 (aarch64_validate_march): Likewise.
10169 (aarch64_validate_mtune): Likewise.
10170 (aarch64_override_options): Update to reflect above changes.
10171 Move some logic into aarch64_override_options_internal.
10172 Initialize target_option_default_node and target_option_current_node.
10173 (aarch64_override_options_after_change): Move logic into
10174 aarch64_override_options_after_change_1 and call it with global_options.
10175 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
10176 flag values from that.
10178 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10180 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
10181 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
10182 * config/aarch64/aarch64.c (struct processor): Add arch field.
10183 (all_architectures): Handle above, move above all_cores.
10184 (all_cores): Handle above.
10185 (aarch64_parse_arch): Handle above changes.
10186 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
10187 above. Update comments.
10188 (armv8.1-a): Likewise.
10189 * config/aarch64/aarch64-cores.def: Update according to above.
10190 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
10191 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
10192 aarch64_arch_driver_info.
10194 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10196 * config/aarch64/aarch64.c (struct processor): Add ident field.
10197 Rename core sched_core.
10198 (all_cores): Handle above changes.
10199 (all_architectures): Likewise.
10200 (aarch64_parse_arch): Likewise.
10201 (aarch64_override_options): Likewise.
10203 2015-08-04 Richard Biener <rguenther@suse.de>
10205 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
10206 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
10207 comparisons embedded in [VEC_]COND_EXPRs.
10209 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
10211 * tree-if-conv.c: Fix various typos in comments.
10212 * tree-vect-stmts.c: Likewise.
10214 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
10216 PR tree-optimization/67043
10217 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
10218 preheader after hoisting invariant in it.
10219 (find_defs): Force recomputation of all luids.
10221 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
10223 * config/rs6000/htm.md (tabort.): Restrict the source operand to
10224 using a base register.
10226 2015-08-03 David Malcolm <dmalcolm@redhat.com>
10228 * main.c (main): Pass in NULL for toplev's external_timer.
10229 * timevar.c: Include coretypes.h.
10230 (class timer::named_items): New.
10231 (timer::named_items::named_items): New.
10232 (timer::named_items::~named_items): New.
10233 (timer::named_items::push): New.
10234 (timer::named_items::pop): New.
10235 (timer::named_items::print): New.
10236 (timer::timer): Initialize field "m_jit_client_items".
10237 (timer::~timer): New.
10238 (timer::push): Move bulk of implementation to...
10239 (timer::push_internal): ...here. New function.
10240 (timer::pop): Move bulk of implementation to...
10241 (timer::pop_internal): ...here. New function.
10242 (timer::push_client_item): New.
10243 (timer::pop_client_item): New.
10244 (timer::print_row): New function, taken from timer::print.
10245 (timer::print): Print "GCC items" header if we also have client
10246 items. Move row-printing to timer::print_row. Print any client
10248 (timer::get_topmost_item_name): New method.
10249 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
10250 (TV_JIT_CLIENT_CODE): New.
10251 * timevar.h (timer::push_client_item): New declaration.
10252 (timer::pop_client_item): New declaration.
10253 (timer::get_topmost_item_name): New method.
10254 (timer::push_internal): New declaration.
10255 (timer::pop_internal): New declaration.
10256 (timer::print_row): New declaration.
10257 (timer::named_items): New declaration.
10258 (timer::m_jit_client_items): New field.
10259 (timer): Add friend class named_items.
10260 (auto_timevar::auto_timevar): Add timer param.
10261 (auto_timevar::~auto_timevar): Use field "m_timer".
10262 (auto_timevar::m_timer): New field.
10263 * toplev.c (initialize_rtl): Add g_timer as param when
10264 constructing auto_timevar instance.
10265 (toplev::toplev): Add "external_timer" param, and use it to
10266 initialize the "g_timer" global if non-NULL.
10267 (toplev::~toplev): If this created "g_timer", delete it.
10268 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
10269 with "external_timer" timer *.
10271 2015-08-03 Alexander Basov <coohpt@gmail.com>
10273 PR middle-end/64744
10274 PR middle-end/48470
10275 PR middle-end/43404
10276 * cfgexpand.c (expand_one_var): Add check if stack is going to
10277 be used in naked function.
10278 * expr.c (expand_expr_addr_expr_1): Remove excess checking
10279 whether expression should not reside in MEM.
10280 * function.c (use_register_for_decl): Do not use registers for
10281 non-register things (volatile, float, BLKMode) in naked functions.
10283 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
10286 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
10287 Adjust splits to match new pattern.
10289 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10291 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
10294 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
10295 point in VSX registers.
10297 * config/rs6000/constraints.md (wb constraint): Document unused
10299 (we constraint): Likewise.
10300 (wo constraint): Likewise.
10301 (wp constraint): New constraint for IEEE 128-bit floating point in
10303 (wq constraint): Likewise.
10305 * config/rs6000/predicates.md (easy_fp_constant): Add support for
10306 IEEE 128-bit floating point in VSX registers.
10307 (easy_scalar_constant): Likewise.
10309 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
10310 constraints (wp, wq) for IEEE 128-bit floating point in VSX
10312 (rs6000_init_hard_regno_mode_ok): Likewise.
10314 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
10315 floating point in VSX registers.
10318 (VSX_M2): Likewise.
10324 (vsx_le_permute_<mode>): Add support to properly swap bytes for
10325 IEEE 128-bit floating point in VSX registers on little endian.
10326 (vsx_le_undo_permute_<mode>): Likewise.
10327 (vsx_le_perm_load_<mode>): Likewise.
10328 (vsx_le_perm_store_<mode>): Likewise.
10329 (splitters for IEEE 128-bit fp moves): Likewise.
10331 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
10334 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
10335 floating point in VSX registers.
10338 * doc/md.text (Machine Constraints): Document wp and wq
10339 constraints on PowerPC.
10341 2015-08-03 Jeff Law <law@redhat.com>
10343 PR middle-end/66314
10344 PR gcov-profile/66899
10345 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
10346 iterate over the jump threading paths when an element in the
10347 jump threading paths array is eliminated.
10349 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
10351 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
10353 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
10355 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
10356 is_use_properly_guarded the variable def_preds. Free its
10357 contents before returning.
10358 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
10359 (is_use_properly_guarded): Replace local variable def_preds with
10360 a parameter. Adjust accordingly. Only update *def_preds if it's
10363 2015-08-03 Richard Biener <rguenther@suse.de>
10365 * genmatch.c (simplify::for_subst_vec): New member.
10366 (binary_ok): New helper for for lowering.
10367 (lower_for): Delay substituting operators into result expressions
10368 if we can merge the results eventually again.
10369 (capture_info::walk_result): Adjust for user_id appearing as
10370 result expression operator.
10371 (expr::gen_transform): Likewise.
10372 (dt_simplify::gen_1): Likewise.
10373 (dt_simplify::gen): Pass not substituted operators to tail
10374 functions or initialize local variable with it.
10375 (decision_tree::gen): Adjust function signature.
10376 * match.pd: Fix tests against global code and add default
10377 cases to switch stmts.
10379 2015-08-03 Richard Biener <rguenther@suse.de>
10381 * genmatch.c (dt_simplify::gen): Create captures array
10382 with an initializer.
10384 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10386 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
10387 the host compiler is affected by placement new aliasing bug.
10388 * configure: Regenerate.
10389 * Makefile.in (ALIASING_FLAGS): New variable.
10390 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
10392 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
10395 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
10396 (negmulsf3_vfp): Likewise.
10397 (muldf3negdf_vfp): Disable for -frounding-math.
10398 (mulsf3negsf_vfp): Likewise.
10399 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
10400 fix MULT cost with -frounding-math.
10402 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10404 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
10405 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
10406 explicit. Prefer to add the flag whenever possible.
10407 (noce_process_if_block): Try noce_try_store_flag_constants before
10410 2015-08-03 Richard Biener <rguenther@suse.de>
10412 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
10413 New hash-map to record equivalent transforms.
10414 (dt_node::analyze): Populate the equivalent transforms hash-map.
10415 (dt_simplify::info): Add reference to hash-map entry.
10416 (dt_simplify::gen): If we have split out a function for the
10417 transform, generate a call to it.
10418 (sinfo_hashmap_traits::hash): New function.
10419 (compare_op): New helper function for ...
10420 (sinfo_hashmap_traits::equal_keys): ... this new function.
10421 (decision_tree::gen): Split out common equivalent transforms
10424 2015-08-03 Richard Biener <rguenther@suse.de>
10426 * gimple-fold.c (fold_gimple_assign): Remove folding of
10427 the comparison in COND_EXPRs.
10429 2015-08-03 Richard Biener <rguenther@suse.de>
10431 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
10432 on the rhs of assignments first simplify the embedded
10435 2015-08-03 Richard Biener <rguenther@suse.de>
10437 PR tree-optimization/66917
10438 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
10440 (DR_VECT_AUX): New macro.
10441 (set_dr_misalignment): Adjust.
10442 (dr_misalignment): Likewise.
10443 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
10444 Compute whether the base is at least element aligned.
10445 * tree-vect-stmts.c (ensure_base_align): Adjust.
10446 (vectorizable_store): If the base is not element aligned
10447 preserve alignment of the original access if misalignment is unknown.
10448 (vectorizable_load): Likewise.
10450 2015-08-02 Martin Sebor <msebor@redhat.com>
10452 * c-family/c.opt (-Wframe-address): New warning option.
10453 * doc/invoke.texi (Wframe-address): Document it.
10454 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
10455 Clarify possible effects of calling the functions with non-zero
10456 arguments and mention -Wframe-address.
10457 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
10459 2015-08-01 Michael Collison <michael.collison@linaro.org
10460 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10462 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
10463 (*arm_umin_cmp): Likewise.
10465 2015-08-01 Caroline Tice <cmtice@google.com>
10468 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
10470 (vtbl_find_mangled_name): New function.
10471 (vtbl_register_mangled_name): New function.
10472 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
10473 mangled name in mangled name vectors.
10474 (find_or_create_vtbl_map_node): Ditto.
10475 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
10476 update recursion_depth on function entry; pass it to every recursive
10477 call; automatically exit if depth > 25 (give up looking at that point).
10478 (verify_bb_vtables): Initialize recursion_depth and pass it to
10479 var_is_used_for_virtual_call_p.
10480 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
10481 global variable decls.
10482 (vtbl_register_mangled_name): New extern function decl.
10484 2015-08-01 Tom de Vries <tom@codesourcery.com>
10486 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
10488 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
10490 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
10491 operation_no_trapping_overflow. Allow non-overflow operations.
10492 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
10495 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
10498 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
10500 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10502 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
10503 Enable for TARGET_32BIT.
10504 (*if_move_neg): Likewise.
10506 2015-07-31 Nick Clifton <nickc@redhat.com>
10508 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
10509 Returns true for __model__.
10510 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10512 2015-07-31 Alan Modra <amodra@gmail.com>
10515 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
10516 (rs6000_emit_prologue): Set it.
10517 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
10519 2015-07-31 Richard Biener <rguenther@suse.de>
10521 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
10522 -> X == (C1 ^ C2) which is already implemented in match.pd.
10523 Remove redundant dispatching to fold_relational_const.
10524 Move unordered self and NaN compares ...
10525 * match.pd: ... as patterns here. Remove some stray captures
10528 2015-07-31 Petr Murzin <petr.murzin@intel.com>
10530 * config/i386/i386.c
10531 (bdesc_special_args): Convert mask type from signed to unsigned for
10533 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
10534 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
10535 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
10536 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
10537 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
10538 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
10539 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
10540 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
10541 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
10542 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
10543 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
10544 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
10545 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
10546 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
10547 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
10548 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
10549 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
10550 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
10551 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
10552 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
10553 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
10554 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
10555 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
10556 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
10557 * config/i386/i386-builtin-types.def
10558 (V16QI_FTYPE_V16SI): Remove.
10559 (V8DF_FTYPE_V8SI): Ditto.
10560 (V8HI_FTYPE_V8DI): Ditto.
10561 (V8SI_FTYPE_V8DI): Ditto.
10562 (V8SF_FTYPE_V8DF): Ditto.
10563 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
10564 (V16HI_FTYPE_V16SI): Ditto.
10565 (V16SF_FTYPE_V16HI): Ditto.
10566 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
10567 (V16SF_FTYPE_V16SI): Ditto.
10568 (V4DI_FTYPE_V4DI): Ditto.
10569 (V16SI_FTYPE_V16SF): Ditto.
10570 (V16SF_FTYPE_FLOAT): Ditto.
10571 (V8DF_FTYPE_DOUBLE): Ditto.
10572 (V8DI_FTYPE_INT64): Ditto.
10573 (V8DI_FTYPE_V4DI): Ditto.
10574 (V16QI_FTYPE_V8DI): Ditto.
10575 (UINT_FTYPE_V4SF): Ditto.
10576 (UINT64_FTYPE_V4SF): Ditto.
10577 (UINT_FTYPE_V2DF): Ditto.
10578 (UINT64_FTYPE_V2DF): Ditto.
10579 (V16SI_FTYPE_V16SI): Ditto.
10580 (V8DI_FTYPE_V8DI): Ditto.
10581 (V16SI_FTYPE_PV4SI): Ditto.
10582 (V16SF_FTYPE_PV4SF): Ditto.
10583 (V8DI_FTYPE_PV2DI): Ditto.
10584 (V8DF_FTYPE_PV2DF): Ditto.
10585 (V4DI_FTYPE_PV2DI): Ditto.
10586 (V4DF_FTYPE_PV2DF): Ditto.
10587 (V16SI_FTYPE_PV2SI): Ditto.
10588 (V16SF_FTYPE_PV2SF): Ditto.
10589 (V8DI_FTYPE_PV4DI): Ditto.
10590 (V8DF_FTYPE_PV4DF): Ditto.
10591 (V8SF_FTYPE_FLOAT): Ditto.
10592 (V4SF_FTYPE_FLOAT): Ditto.
10593 (V4DF_FTYPE_DOUBLE): Ditto.
10594 (V8SF_FTYPE_PV4SF): Ditto.
10595 (V8SI_FTYPE_PV4SI): Ditto.
10596 (V4SI_FTYPE_PV2SI): Ditto.
10597 (V8SF_FTYPE_PV2SF): Ditto.
10598 (V8SI_FTYPE_PV2SI): Ditto.
10599 (V16SF_FTYPE_PV8SF): Ditto.
10600 (V16SI_FTYPE_PV8SI): Ditto.
10601 (V8DI_FTYPE_V8SF): Ditto.
10602 (V4DI_FTYPE_V4SF): Ditto.
10603 (V2DI_FTYPE_V4SF): Ditto.
10604 (V64QI_FTYPE_QI): Ditto.
10605 (V32HI_FTYPE_HI): Ditto.
10606 (V8UHI_FTYPE_V8UHI): Ditto.
10607 (V16UHI_FTYPE_V16UHI): Ditto.
10608 (V32UHI_FTYPE_V32UHI): Ditto.
10609 (V2UDI_FTYPE_V2UDI): Ditto.
10610 (V4UDI_FTYPE_V4UDI): Ditto.
10611 (V8UDI_FTYPE_V8UDI): Ditto.
10612 (V4USI_FTYPE_V4USI): Ditto.
10613 (V8USI_FTYPE_V8USI): Ditto.
10614 (V16USI_FTYPE_V16USI): Ditto.
10615 (V2DF_FTYPE_V2DF_UINT64): Ditto.
10616 (V2DI_FTYPE_V2DF_V2DF): Ditto.
10617 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
10618 (V8DF_FTYPE_V8DF_V8DI): Ditto.
10619 (V4SF_FTYPE_V4SF_UINT64): Ditto.
10620 (V4SI_FTYPE_V4SF_V4SF): Ditto.
10621 (V16SF_FTYPE_V16SF_V16SI): Ditto.
10622 (V64QI_FTYPE_V32HI_V32HI): Ditto.
10623 (V32HI_FTYPE_V16SI_V16SI): Ditto.
10624 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
10625 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
10626 (V32HI_FTYPE_V64QI_V64QI): Ditto.
10627 (V32HI_FTYPE_V32HI_V32HI): Ditto.
10628 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
10629 (V16SI_FTYPE_V16SI_V4SI): Ditto.
10630 (V16SI_FTYPE_V16SI_V16SI): Ditto.
10631 (V16SI_FTYPE_V32HI_V32HI): Ditto.
10632 (V16SI_FTYPE_V16SI_SI): Ditto.
10633 (V8DI_FTYPE_V8DI_V8DI): Ditto.
10634 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
10635 (V8DI_FTYPE_V16SI_V16SI): Ditto.
10636 (V8DI_FTYPE_V8DI_V2DI): Ditto.
10637 (QI_FTYPE_QI): Ditto.
10638 (SI_FTYPE_SI): Ditto.
10639 (DI_FTYPE_DI): Ditto.
10640 (QI_FTYPE_QI_QI): Ditto.
10641 (QI_FTYPE_QI_INT): Ditto.
10642 (HI_FTYPE_HI_INT): Ditto.
10643 (SI_FTYPE_SI_INT): Ditto.
10644 (DI_FTYPE_DI_INT): Ditto.
10645 (HI_FTYPE_V16QI_V16QI): Ditto.
10646 (SI_FTYPE_V32QI_V32QI): Ditto.
10647 (DI_FTYPE_V64QI_V64QI): Ditto.
10648 (QI_FTYPE_V8HI_V8HI): Ditto.
10649 (HI_FTYPE_V16HI_V16HI): Ditto.
10650 (SI_FTYPE_V32HI_V32HI): Ditto.
10651 (QI_FTYPE_V4SI_V4SI): Ditto.
10652 (QI_FTYPE_V8SI_V8SI): Ditto.
10653 (QI_FTYPE_V2DI_V2DI): Ditto.
10654 (QI_FTYPE_V4DI_V4DI): Ditto.
10655 (QI_FTYPE_V8DI_V8DI): Ditto.
10656 (HI_FTYPE_V16SI_V16SI): Ditto.
10657 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
10658 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
10659 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
10660 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
10661 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
10662 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
10663 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
10664 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
10665 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
10666 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
10667 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
10668 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
10669 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
10670 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
10671 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
10672 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
10673 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
10674 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
10675 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
10676 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
10677 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
10678 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
10679 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
10680 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
10681 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
10682 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
10683 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
10684 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
10685 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
10686 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
10687 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
10688 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
10689 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
10690 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
10691 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
10692 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
10693 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
10694 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
10695 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
10696 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
10697 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
10698 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
10699 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
10700 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
10701 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
10702 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
10703 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
10704 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
10705 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
10706 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
10707 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
10708 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
10709 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
10710 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
10711 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
10712 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
10713 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
10714 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
10715 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
10716 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
10717 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
10718 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
10719 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
10720 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
10721 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
10722 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
10723 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
10724 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
10725 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
10726 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
10727 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
10728 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
10729 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
10730 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
10731 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
10732 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
10733 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
10734 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
10735 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
10736 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
10737 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
10738 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
10739 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
10740 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
10741 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
10742 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
10743 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
10744 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
10745 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
10746 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
10747 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
10748 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
10749 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
10750 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
10751 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
10752 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
10753 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
10754 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
10755 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
10756 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
10757 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
10758 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
10759 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
10760 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
10761 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
10762 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
10763 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
10764 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
10765 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
10766 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
10767 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
10768 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
10769 (HI_FTYPE_HI): Ditto.
10770 (HI_FTYPE_V16QI): Ditto.
10771 (SI_FTYPE_V32QI): Ditto.
10772 (DI_FTYPE_V64QI): Ditto.
10773 (QI_FTYPE_V8HI): Ditto.
10774 (HI_FTYPE_V16HI): Ditto.
10775 (SI_FTYPE_V32HI): Ditto.
10776 (QI_FTYPE_V4SI): Ditto.
10777 (QI_FTYPE_V8SI): Ditto.
10778 (HI_FTYPE_V16SI): Ditto.
10779 (QI_FTYPE_V2DI): Ditto.
10780 (QI_FTYPE_V4DI): Ditto.
10781 (QI_FTYPE_V8DI): Ditto.
10782 (V16QI_FTYPE_HI): Ditto.
10783 (V32QI_FTYPE_SI): Ditto.
10784 (V64QI_FTYPE_DI): Ditto.
10785 (V8HI_FTYPE_QI): Ditto.
10786 (V16HI_FTYPE_HI): Ditto.
10787 (V32HI_FTYPE_SI): Ditto.
10788 (V4SI_FTYPE_QI): Ditto.
10789 (V4SI_FTYPE_HI): Ditto.
10790 (V8SI_FTYPE_QI): Ditto.
10791 (V8SI_FTYPE_HI): Ditto.
10792 (V2DI_FTYPE_QI): Ditto.
10793 (V4DI_FTYPE_QI): Ditto.
10794 (HI_FTYPE_HI_HI): Ditto.
10795 (SI_FTYPE_SI_SI): Ditto.
10796 (DI_FTYPE_DI_DI): Ditto.
10797 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
10798 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
10799 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
10800 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
10801 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
10802 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
10803 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
10804 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
10805 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
10806 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
10807 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
10808 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
10809 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
10810 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
10811 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
10812 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
10813 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
10814 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
10815 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
10816 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
10817 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
10818 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
10819 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
10820 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
10821 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
10822 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
10823 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
10824 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
10825 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
10826 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
10827 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
10828 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
10829 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
10830 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
10831 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
10832 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
10833 (V16SI_FTYPE_HI): Ditto.
10834 (V8DI_FTYPE_QI): Ditto.
10835 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
10836 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
10837 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
10838 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
10839 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
10840 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
10841 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
10842 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
10843 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
10844 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
10845 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
10846 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
10847 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
10848 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
10849 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
10850 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
10851 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
10852 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
10853 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
10854 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
10855 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
10856 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
10857 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
10858 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
10859 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
10860 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
10861 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
10862 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
10863 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
10864 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
10865 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
10866 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
10867 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
10868 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
10869 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
10870 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
10871 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
10872 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
10873 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
10874 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
10875 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
10876 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
10877 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
10878 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
10879 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
10880 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
10881 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
10882 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
10883 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
10884 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
10885 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
10886 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
10887 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
10888 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
10889 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
10890 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
10891 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
10892 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
10893 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
10894 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
10895 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
10896 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
10897 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
10898 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
10899 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
10900 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
10901 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
10902 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
10903 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
10904 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
10905 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
10906 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
10907 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
10908 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
10909 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
10910 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
10911 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
10912 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
10913 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
10914 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
10915 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
10916 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
10917 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
10918 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
10919 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
10920 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
10921 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
10922 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
10923 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
10924 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
10925 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
10926 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
10927 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
10928 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
10929 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
10930 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
10931 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
10932 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
10933 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
10934 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
10935 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
10936 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
10937 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
10938 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
10939 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
10940 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
10941 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
10942 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
10943 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
10944 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
10945 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
10946 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
10947 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
10948 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
10949 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
10950 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
10951 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
10952 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
10953 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
10954 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
10955 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
10956 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
10957 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
10958 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
10959 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
10960 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
10961 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
10962 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
10963 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
10964 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
10965 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
10966 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
10967 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
10968 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
10969 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
10970 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
10971 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
10972 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
10973 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
10974 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
10975 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
10976 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
10977 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
10978 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
10979 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
10980 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
10981 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
10982 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
10983 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
10984 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
10985 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
10986 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
10987 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
10988 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
10989 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
10990 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
10991 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
10992 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
10993 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
10994 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
10995 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
10996 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
10997 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
10998 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
10999 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
11000 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
11001 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
11002 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
11003 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
11004 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
11005 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
11006 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
11007 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
11008 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
11009 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
11010 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
11011 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
11012 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
11013 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
11014 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
11015 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
11016 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
11017 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
11018 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
11019 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
11020 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
11021 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
11022 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
11023 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
11024 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
11025 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
11026 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
11027 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
11028 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
11029 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
11030 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
11031 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
11032 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
11033 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
11034 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
11035 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
11036 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
11037 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
11038 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
11039 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
11040 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
11041 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
11042 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
11043 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
11044 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
11045 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
11046 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
11047 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
11048 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
11049 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
11050 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
11051 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
11052 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
11053 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
11054 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
11055 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
11056 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
11057 (QI_FTYPE_V8DF_INT_QI): Ditto.
11058 (QI_FTYPE_V4DF_INT_QI): Ditto.
11059 (QI_FTYPE_V2DF_INT_QI): Ditto.
11060 (HI_FTYPE_V16SF_INT_HI): Ditto.
11061 (QI_FTYPE_V8SF_INT_QI): Ditto.
11062 (QI_FTYPE_V4SF_INT_QI): Ditto.
11063 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
11065 2015-07-31 Richard Biener <rguenther@suse.de>
11067 * gimple-fold.c (fold_gimple_assign): Remove folding of
11070 2015-07-31 Tom de Vries <tom@codesourcery.com>
11072 PR tree-optimization/66846
11073 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
11074 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
11075 (expand_omp_target) [ENABLE_CHECKING]: Same.
11076 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
11077 cfun if !LOOPS_NEED_FIXUP.
11078 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
11079 that omp_for already has its own loop struct.
11080 * tree-parloops.c (create_phi_for_local_result)
11081 (create_call_for_reduction): Handle simple latch bb.
11082 (create_parallel_loop): Add simple latch bb to preserve
11083 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
11084 (gen_parallel_loop): Remove call to cancel_loop_tree.
11085 (parallelize_loops): Skip loops that are inner loops of parallelized
11087 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
11088 verify_loop_structure.
11090 2015-07-30 Anatoly Sokolov <aesok@post.ru>
11092 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
11093 * config/v850/v850.md (RV_REGNUM): New constants.
11094 * config/v850/v850.c (v850_libcall_value): New functions.
11095 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
11096 (TARGET_LIBCALL_VALUE): Define.
11098 2015-07-30 Anatoly Sokolov <aesok@post.ru>
11100 * rtl.h (lowpart_subreg): Move in file.
11101 * loop-iv.c (lowpart_subreg): Move to...
11102 * simplify-rtx.c (lowpart_subreg): ...here.
11103 (simplify_binary_operation_1): Use lowpart_subreg instead of
11104 simplify_gen_subreg.
11105 * expr.c (expand_expr_real_2): Ditto.
11106 * emit-rtl.c (gen_lowpart_common): Ditto.
11107 * combine.c (gen_lowpart_for_combine): Ditto.
11108 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
11109 expand_debug_source_expr): Ditto.
11111 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
11113 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
11114 (expand_builtin_atomic_clear): Remove support for atomic_clear
11117 2015-07-30 Richard Biener <rguenther@suse.de>
11119 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
11120 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
11121 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
11122 redundant operand canonicalization.
11124 2015-07-30 David Sherwood <david.sherwood@arm.com>
11126 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
11127 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
11128 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
11129 * config/arm/arm.c (neon_valid_immediate): Likewise.
11130 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
11131 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
11132 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
11133 (expand_vec_perm_vpshufb2_vpermq): Likewise.
11134 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
11135 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
11136 * config/i386/sse.md
11137 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
11138 (*ssse3_palignr<mode>_perm): Likewise.
11139 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
11140 * config/spu/spu.c (arith_immediate_p): Likewise.
11141 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11142 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
11144 2015-07-30 Richard Biener <rguenther@suse.de>
11146 * genmatch.c (decision_tree::gen_gimple): Merge with ...
11147 (decision_tree::gen_generic): ... this into ...
11148 (decision_tree::gen): ... this.
11149 (main): Adjust callers.
11151 2015-07-30 Richard Biener <rguenther@suse.de>
11153 * genmatch.c (verbose): New global.
11154 (warning_at): Add overload with source_location.
11155 (capture_info::capture_info): Add bool whether generating gimple
11156 or generic. Add gimple member.
11157 (capture_info::cinfo): Add capture member.
11158 (capture_info::walk_match): Record capture. Warn on
11159 non-captured leafs.
11160 (capture_info::walk_c_expr): Add more fragments captures cannot
11161 escape through. Warn on escaped captures.
11162 (dt_simplify::gen_1): Warn on operands we force to have no
11164 (main): Initialize verbose.
11165 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
11167 2015-07-30 Richard Biener <rguenther@suse.de>
11169 PR middle-end/67053
11170 * match.pd: Allow both operands to independently have conversion
11171 when simplifying compares of addresses.
11173 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
11177 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
11178 around those cases that need one.
11180 2015-07-29 Aditya Kumar <hiraditya@msn.com>
11182 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
11184 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
11186 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
11187 New. Copied from config/i386/gnu-user.h.
11188 (ASM_COMMENT_START): Likewise.
11189 (DBX_REGISTER_NUMBER): Likewise.
11191 2015-07-29 Richard Biener <rguenther@suse.de>
11193 * gimple-fold.c (fold_gimple_cond): Remove.
11194 (fold_stmt_1): Do not call it.
11196 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
11198 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
11199 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
11201 * config/aarch64/aarch64-modes.def: Add HFmode.
11203 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11204 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
11206 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
11207 aarch64_promoted_type): New.
11209 (aarch64_float_const_representable_p): Disable HFmode.
11210 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
11211 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
11212 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
11214 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
11215 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
11217 * config/aarch64/iterators.md (GPF_F16): New.
11219 2015-07-29 Richard Biener <rguenther@suse.de>
11221 * match.pd: Merge address comparison patterns and make them
11222 handle some more cases.
11224 2015-07-29 Richard Biener <rguenther@suse.de>
11226 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
11227 (parser::parse_capture): Add bool argument on whether to reject
11229 (parser::parse_expr): Adjust.
11230 (parser::parse_op): Likewise.
11231 (parser::parse_pattern): Likewise.
11233 2015-07-29 Richard Biener <rguenther@suse.de>
11235 * gimple-fold.c (has_use_on_stmt): New function.
11236 (replace_stmt_with_simplification): Use it to allow
11237 abnormals originally referenced in the stmt.
11238 (fold_stmt_1): Canonicalize operand order.
11240 2015-07-28 David Sherwood <david.sherwood@arm.com>
11242 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
11243 GET_MODE_INNER unconditionally.
11244 * config/spu/spu.c (arith_immediate_p): Likewise.
11245 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
11246 * expmed.c (synth_mult): Remove check for VOIDmode result from
11248 (expand_mult_const): Likewise.
11249 * fold-const.c (fold_binary_loc): Replace call to element_precision
11250 with call to GET_MODE_PRECISION.
11251 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
11253 (emit_mode_inner): Likewise.
11254 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
11256 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
11257 (GET_MODE_UNIT_PRECISION): Likewise.
11258 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
11259 * simplify-rtx.c (simplify_immed_subreg): Likewise.
11260 * stor-layout.c (bitwise_type_for_mode): Update assert.
11261 (element_precision): Remove.
11263 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11265 * target-insns.def (reload_load_address): New targetm instruction
11267 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
11269 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11271 * target-insns.def (atomic_test_and_set): New targetm instruction
11273 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
11274 HAVE_*/gen_* interface.
11276 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11278 * target-insns.def (can_extend, ptr_extend): New targetm instruction
11280 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
11281 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
11282 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
11283 * rtlanal.c (nonzero_bits1): Likewise.
11284 (num_sign_bit_copies1): Likewise.
11286 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11288 * target-insns.def (eh_return): New targetm instruction pattern.
11289 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
11291 * function.c (thread_prologue_and_epilogue_insns): Remove
11292 preprocessor condition.
11294 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11296 * target-insns.def (indirect_jump): New targetm instruction pattern.
11297 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
11300 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11302 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
11303 instead of nonimmediate_operand. Remove C condiition.
11305 2015-07-28 Richard Biener <rguenther@suse.de>
11307 * match.pd: Add more simplification of address comparisons.
11309 2015-07-28 Richard Biener <rguenther@suse.de>
11311 * match.pd: Re-order two cases in comparison with max/min
11312 value simplification to make it apply for bools.
11314 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11316 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
11317 Handle simple SIGN_EXTEND or ZERO_EXTEND.
11318 (aarch64_rtx_costs): Properly strip extend or extract before
11319 passing down to rtx costs again.
11321 2015-07-28 Nick Clifton <nickc@redhat.com>
11323 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
11324 Optimizes the case where -mes0 is active and a constant symbolic
11326 * config/rl78/rl78-protos.h: Prototype the new function.
11327 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
11329 2015-07-28 Tom de Vries <tom@codesourcery.com>
11331 * tree-parloops.c (reduc_stmt_res): New function.
11332 (initialize_reductions, add_field_for_reduction)
11333 (create_phi_for_local_result, create_loads_for_reductions)
11334 (create_stores_for_reduction, build_new_reduction): Handle case that
11335 reduc_stmt is a phi.
11336 (gather_scalar_reductions): Allow double_reduc reductions.
11338 2015-07-28 Richard Biener <rguenther@suse.de>
11340 * fold-const.c (fold_comparison): Remove equality folding
11341 of decl addresses ...
11342 * match.pd: ... here and merge with existing pattern.
11344 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
11346 PR tree-optimization/66828
11347 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
11348 from int64_t to uint64_t.
11350 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
11352 * opts-common.c (read_cmdline_option): List DriverOnly enum values
11353 as valid only in the error message of the driver, not in the
11354 messages of the language compilers.
11356 2015-07-27 Tom de Vries <tom@codesourcery.com>
11358 * tree-parloops.c (gather_scalar_reductions): Simplify function
11361 2015-07-27 Marek Polacek <polacek@redhat.com>
11363 * ipa-devirt.c (types_same_for_odr): Fix typo.
11365 2015-07-27 Jason Merrill <jason@redhat.com>
11368 * dwarf2out.c (gen_inlined_subroutine_die): Check
11369 cgraph_function_possibly_inlined_p.
11371 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
11373 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
11374 Place integer variant first.
11375 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
11377 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
11380 * config/arm/arm-builtins.c (enum arm_builtins):
11381 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
11382 (ARM_BUILTIN_NEON_BASE): Rename macro to....
11383 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
11384 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
11385 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
11387 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
11390 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
11391 Add qualifier_lane_index.
11392 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
11393 (arm_getlane_qualifiers): Use qualifier_lane_index.
11394 (arm_lanemac_qualifiers): Rename to...
11395 (arm_mac_n_qualifiers): ...this.
11396 (LANEMAC_QUALIFIERS): Rename to...
11397 (MAC_N_QUALIFIERS): ...this.
11398 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
11399 (arm_setlane_qualifiers): Use qualifier_lane_index.
11400 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
11401 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
11402 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
11403 (arm_expand_neon_builtin): Handle qualifier_lane_index.
11405 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
11406 * config/arm/arm.c (bounds_check): Likewise, improve error message.
11407 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
11408 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
11409 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
11410 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
11411 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
11412 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
11413 qualifiers to TERNOP_IMM.
11414 (vdup_lane): Change qualifiers to GETLANE.
11415 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
11416 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
11417 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
11418 vqdmlsl_n): Change qualifiers to MAC_N.
11420 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
11421 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
11422 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
11423 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
11424 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
11425 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
11426 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
11427 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
11428 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
11429 Remove call to neon_lane_bounds.
11431 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
11433 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
11434 Place integer variant first.
11436 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
11438 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
11439 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
11440 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
11441 for armv6kz targets.
11442 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
11443 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
11444 (FL_FOR_ARCH6ZK): Remove.
11445 (FL_FOR_ARCH6KZ): New.
11446 (arm_arch6zk): New declaration.
11447 * config/arm/arm-tables.opt: Regenerate.
11448 * config/arm/arm.c (arm_arch6kz): New.
11449 (arm_option_override): Set arm_arch6kz.
11450 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
11451 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
11452 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
11454 2015-07-27 Marek Polacek <polacek@redhat.com>
11458 * doc/invoke.texi: Document -Wtautological-compare.
11460 2015-07-27 Richard Biener <rguenther@suse.de>
11462 * genmatch.c (decision_tree::gen_gimple): Split out large
11463 subtrees into separate functions.
11464 (decision_tree::gen_generic): Likewise.
11466 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
11468 * config/alpha/alpha.c: Use SUBREG_P predicate.
11469 * config/alpha/predicates.md: Ditto.
11471 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
11473 * config.host (s390*-*-*): Include driver-native.c only when
11474 building with s390* as host *and* target.
11476 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
11479 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
11480 T bit register modified_between_p check.
11482 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11484 * config/i386/i386.c: Use SUBREG_P predicate.
11485 * config/i386/i386.md: Ditto.
11486 * config/i386/sse.md: Ditto.
11487 * config/i386/predicates.md: Ditto.
11489 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11492 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
11493 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
11495 2015-07-25 Sebastian Pop <s.pop@samsung.com>
11497 * Makefile.in: Remove use of TREEBROWSER.
11498 * config.in: Regenerated.
11499 * configure: Regenerated.
11500 * configure.ac: Remove definition of TREEBROWSER.
11501 * tree-browser.c: Removed.
11502 * tree-browser.def: Removed.
11504 2015-07-25 Sebastian Pop <s.pop@samsung.com>
11506 * graphite-scop-detection.c: Include gimple-pretty-print.h.
11507 (stmt_simple_for_scop_p): Print when a stmt is not handled in
11509 (scopdet_basic_block_info): Print when a loop or bb cannot be
11510 represented in Graphite.
11512 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11515 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
11516 execution guard when min_size is less than size_needed.
11518 2015-07-25 Sebastian Pop <s.pop@samsung.com>
11520 * doc/install.texi: Document supported versions of ISL.
11522 2015-07-25 Jeff Law <law@redhat.com>
11526 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11527 unable to find X NE 0 in the tables, return X as the simplified
11529 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11530 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
11531 to VISISTED_BBS. */
11532 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11533 after removing the control flow statement and unnecessary edges.
11535 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
11538 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
11540 PR rtl-optimization/64164
11541 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11542 * tree-ssa-copyrename.c: Removed.
11543 * opts.c (default_options_table): Drop -ftree-copyrename. Add
11544 -ftree-coalesce-vars.
11545 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11546 * common.opt (ftree-copyrename): Ignore.
11547 (ftree-coalesce-inlined-vars): Likewise.
11548 * doc/invoke.texi: Remove the ignored options above.
11549 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11550 * tree-ssa-coalesce.h: ... here.
11551 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11552 headers required by it.
11553 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11554 across variables when flag_tree_coalesce_vars. Check register
11555 use and promoted modes to allow coalescing. Moved to
11556 tree-ssa-coalesce.c.
11557 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11558 with its member functions to tree-ssa-coalesce.c.
11559 (var_map_base_init): Likewise. Renamed to
11560 compute_samebase_partition_bases.
11561 (partition_view_normal): Drop want_bases parameter.
11562 (partition_view_bitmap): Likewise.
11563 * tree-ssa-live.h: Adjust declarations.
11564 * tree-ssa-coalesce.c: Include explow.h.
11565 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11566 default defs at the entry point.
11567 (dump_part_var_map): New.
11568 (compute_optimized_partition_bases): New, called by...
11569 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11570 of compute_samebase_partition_bases. Adjust.
11571 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11572 * cfgexpand.c (leader_merge): New.
11573 (get_rtl_for_parm_ssa_default_def): New.
11574 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11575 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11576 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
11577 redundant MEM attr setting.
11578 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
11580 (expand_one_stack_var): ... this. New wrapper to check and
11581 skip already expanded SSA partitions.
11582 (record_alignment_for_reg_var): New, factored out of...
11583 (expand_one_var): ... this.
11584 (expand_one_ssa_partition): New.
11585 (adjust_one_expanded_partition_var): New.
11586 (expand_one_register_var): Check and skip already expanded SSA
11588 (expand_used_vars): Don't create DECLs for anonymous SSA
11589 names. Expand all SSA partitions, then adjust all SSA names.
11590 (pass::execute): Replace the loops that set
11591 SA.partition_to_pseudo from partition leaders and cleared
11592 DECL_RTL for multi-location variables, and that which used to
11593 rename vars and set attrs, with one that clears DECL_RTL and
11594 checks that PARMs and RESULTs default_defs match DECL_RTL.
11595 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11596 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11597 * explow.c (promote_ssa_mode): New.
11598 * explow.h (promote_ssa_mode): Declare.
11599 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11600 * function.c: Include cfgexpand.h.
11601 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11602 (use_register_for_parm_decl): Wrapper for the above to
11603 special-case the result_ptr.
11604 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11605 (split_complex_args): Take assign_parm_data_all argument.
11606 Pass it to rtl_for_parm. Set up rtl and context for split
11608 (assign_parms_augmented_arg_list): Adjust.
11609 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11610 multiple locations. Recognize split complex args.
11611 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11612 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
11613 (assign_parm_setup_block): Prefer SSA-assigned location.
11614 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
11615 if stack_parm is NULL.
11616 (assign_parm_setup_stack): Prefer SSA-assigned location.
11617 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
11618 rtl before testing for pointer bounds. Special-case result_ptr.
11619 (expand_function_start): Maybe reset DECL_RTL of result.
11620 Prefer SSA-assigned location for result and static chain.
11621 Factor out DECL_RESULT and SET_DECL_RTL.
11622 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11623 anonymous SSA names. Use promote_ssa_mode.
11624 (get_temp_reg): Likewise.
11625 (remove_ssa_form): Adjust.
11626 * stor-layout.c (layout_decl): Don't set mem attributes of
11628 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11629 and get its reg_usage for reg invalidation.
11630 (compute_bb_dataflow): Pass it insn.
11631 (emit_notes_in_bb): Likewise.
11633 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11635 * config/i386/i386.c (ix86_va_start): Remove
11636 unneeded !TARGET_64BIT check.
11637 (ix86_gimplify_va_arg): Ditto.
11639 2015-07-24 Tom de Vries <tom@codesourcery.com>
11641 * graphite-sese-to-poly.c (build_poly_scop): Always call
11642 rewrite_commutative_reductions_out_of_ssa.
11644 2015-07-24 Tom de Vries <tom@codesourcery.com>
11646 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
11647 flag_associative_math to FLOAT_TYPE_P. Honour
11648 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
11650 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
11653 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
11654 and "%qD" in warning_at instead of "%q+D" in warning.
11656 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
11658 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
11659 (ix86_function_abi): Cleanup.
11661 2015-07-24 Michael Darling <darlingm@gmail.com>
11664 * acinclude.m4: Reflects renaming of configure.in to configure.ac
11665 * configure: Likewise
11666 * configure.ac: Likewise
11667 * doc/install.texi: Likewise
11668 * doc/tm.texi: Likewise
11669 * doc/tm.texi.in: Likewise
11671 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11673 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
11674 manually swapping values.
11675 * cse.c (fold_rtx): Likewise.
11676 * lra-eliminations.c (form_sum): Likewise.
11678 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
11681 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
11682 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
11683 (*jcc_1, *jcc_2, jump, simple_return_internal)
11684 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
11685 Set length_nobnd attribute instead of length attribute.
11686 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
11687 (length_nobnd): Remove attribute.
11688 (length): Remove length_nobnd processing.
11690 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
11692 * gimplify.c (omp_default_clause): New function. Reorganize flow
11693 for clarity. Broken out of ...
11694 (omp_notice_variable): ... here.
11696 2015-07-24 Gary Funck <gary@intrepid.com>
11698 PR middle-end/66984
11699 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
11700 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
11702 2015-07-24 Tom de Vries <tom@codesourcery.com>
11704 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
11705 exit-first loop transform.
11707 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
11710 * tree-cfg.c (struct replace_decls_d): New struct.
11711 (replace_block_vars_by_duplicates_1): New function.
11712 (replace_block_vars_by_duplicates): Use it to replace the decls
11713 in the value exprs by duplicates.
11715 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
11717 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
11718 -shared, -symbolic, -rdynamic.
11720 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
11723 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
11724 -dynamic-linker within %{!static %{!shared, and -rdynamic within
11727 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
11730 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
11731 edge summary is available.
11733 2015-07-24 Richard Biener <rguenther@suse.de>
11735 * genmatch.c (struct dt_node): Add statistic fields.
11736 (dt_node::analyze): New method.
11737 (decision_tree::gen_gimple): Call analyze on the root node
11738 and print statistics to stderr.
11739 (decision_tree::gen_generic): Likewise.
11741 2015-07-24 Richard Biener <rguenther@suse.de>
11743 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
11744 against the highest or lowest possible integer ...
11745 * match.pd: ... as patterns here.
11747 2015-07-24 Richard Biener <rguenther@suse.de>
11749 * genmatch.c (struct capture_info): Add same_as field.
11750 (capture_info::capture_info): Initialize same_as.
11751 (capture_info::walk_match): Compute same_as.
11752 (capture_info::walk_result): Compute stuff for the leader.
11753 (capture_info::walk_c_expr): Likewise.
11754 (dt_simplify::gen_1): Only look at leaders when deciding
11755 to force no side-effects or emit side-effects of omitted operands.
11757 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11759 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
11760 reg note to the GPR -> FPR save instructions.
11762 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11764 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
11766 (s390_expand_insv): Don't generate risbg pattern for constant zero
11768 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
11769 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
11772 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11774 * config/s390/s390.c (s390_reorg): Clean up handling of processors
11777 (s390_issue_rate): Likewise.
11778 (s390_sched_reorder): Likewise.
11779 (s390_sched_variable_issue): Likewise.
11780 (s390_loop_unroll_adjust): Likewise.
11781 (s390_option_override): Likewise.
11783 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11785 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
11786 processor capabilities with -march=native.
11787 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
11788 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
11789 (S390_TARGET_BITS_STRING): Macro to simplify specs.
11791 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11793 * config/s390/s390.c (s390_issue_rate): Handle
11794 PROCESSOR_2094_Z9_EC.
11795 (s390_option_override): Likewise.
11796 (s390_adjust_priority): Likewise.
11798 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11800 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
11801 when cross compiling.
11803 2015-07-24 Richard Biener <rguenther@suse.de>
11805 * fold-const.c (maybe_canonicalize_comparison_1): Move
11806 A code CST canonicalization ...
11807 * match.pd: ... to a pattern here.
11809 2015-07-24 Jiong Wang <jiong.wang@arm.com>
11812 2015-07-22 Jiong Wang <jiong.wang@arm.com>
11814 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
11815 (HONOR_REG_ALLOC_ORDER): Define.
11817 2015-07-24 Richard Biener <rguenther@suse.de>
11819 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
11820 * fold-const.c (fold_comparison): Move parameter does not
11821 alias &local simplification ...
11822 * match.pd: ... as a pattern here.
11824 2015-07-24 Richard Biener <rguenther@suse.de>
11826 * gimple-fold.c (replace_stmt_with_simplification): Special-case
11827 valueizing call operands.
11828 * gimple-match-head.c (maybe_push_res_to_seq): Take
11829 number of call arguments from ops array.
11830 (do_valueize): New function.
11831 (gimple_simplify): Return true if valueization changed
11832 any operand even if the result didn't simplify further.
11834 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11836 PR middle-end/25530
11837 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
11839 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11841 PR middle-end/25529
11842 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
11844 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11846 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
11849 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11851 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
11854 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
11856 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
11857 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
11859 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
11860 ms_va_list_type_node initialization.
11862 2015-07-23 Jeff Law <law@redhat.com>
11865 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11866 unable to find X NE 0 in the tables, return X as the simplified
11868 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11869 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
11870 to VISISTED_BBS. */
11871 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11872 after removing the control flow statement and unnecessary edges.
11874 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
11876 * tree-pass.h (get_current_pass_name): Removed.
11878 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
11880 PR rtl-optimization/64164
11881 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11882 * tree-ssa-copyrename.c: Removed.
11883 * opts.c (default_options_table): Drop -ftree-copyrename. Add
11884 -ftree-coalesce-vars.
11885 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11886 * common.opt (ftree-copyrename): Ignore.
11887 (ftree-coalesce-inlined-vars): Likewise.
11888 * doc/invoke.texi: Remove the ignored options above.
11889 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11890 * tree-ssa-coalesce.h: ... here.
11891 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11892 headers required by it.
11893 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11894 across variables when flag_tree_coalesce_vars. Check register
11895 use and promoted modes to allow coalescing. Moved to
11896 tree-ssa-coalesce.c.
11897 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11898 with its member functions to tree-ssa-coalesce.c.
11899 (var_map_base_init): Likewise. Renamed to
11900 compute_samebase_partition_bases.
11901 (partition_view_normal): Drop want_bases parameter.
11902 (partition_view_bitmap): Likewise.
11903 * tree-ssa-live.h: Adjust declarations.
11904 * tree-ssa-coalesce.c: Include explow.h.
11905 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11906 default defs at the entry point.
11907 (dump_part_var_map): New.
11908 (compute_optimized_partition_bases): New, called by...
11909 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11910 of compute_samebase_partition_bases. Adjust.
11911 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11912 * cfgexpand.c (leader_merge): New.
11913 (get_rtl_for_parm_ssa_default_def): New.
11914 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11915 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11916 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
11917 redundant MEM attr setting.
11918 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
11920 (expand_one_stack_var): ... this. New wrapper to check and
11921 skip already expanded SSA partitions.
11922 (record_alignment_for_reg_var): New, factored out of...
11923 (expand_one_var): ... this.
11924 (expand_one_ssa_partition): New.
11925 (adjust_one_expanded_partition_var): New.
11926 (expand_one_register_var): Check and skip already expanded SSA
11928 (expand_used_vars): Don't create DECLs for anonymous SSA
11929 names. Expand all SSA partitions, then adjust all SSA names.
11930 (pass::execute): Replace the loops that set
11931 SA.partition_to_pseudo from partition leaders and cleared
11932 DECL_RTL for multi-location variables, and that which used to
11933 rename vars and set attrs, with one that clears DECL_RTL and
11934 checks that PARMs and RESULTs default_defs match DECL_RTL.
11935 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11936 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11937 * explow.c (promote_ssa_mode): New.
11938 * explow.h (promote_ssa_mode): Declare.
11939 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11940 * function.c: Include cfgexpand.h.
11941 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11942 (use_register_for_parm_decl): Wrapper for the above to
11943 special-case the result_ptr.
11944 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11945 (split_complex_args): Take assign_parm_data_all argument.
11946 Pass it to rtl_for_parm. Set up rtl and context for split
11948 (assign_parms_augmented_arg_list): Adjust.
11949 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11950 multiple locations. Recognize split complex args.
11951 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11952 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
11953 (assign_parm_setup_block): Prefer SSA-assigned location.
11954 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
11955 if stack_parm is NULL.
11956 (assign_parm_setup_stack): Prefer SSA-assigned location.
11957 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
11958 rtl before testing for pointer bounds. Special-case result_ptr.
11959 (expand_function_start): Maybe reset DECL_RTL of result.
11960 Prefer SSA-assigned location for result and static chain.
11961 Factor out DECL_RESULT and SET_DECL_RTL.
11962 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11963 anonymous SSA names. Use promote_ssa_mode.
11964 (get_temp_reg): Likewise.
11965 (remove_ssa_form): Adjust.
11966 * stor-layout.c (layout_decl): Don't set mem attributes of
11968 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11969 and get its reg_usage for reg invalidation.
11970 (compute_bb_dataflow): Pass it insn.
11971 (emit_notes_in_bb): Likewise.
11973 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
11976 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
11978 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
11979 (rs6000_emit_2insn_and): Handle dot forms.
11980 * config/rs6000/rs6000.md (and<mode>3): Adjust.
11981 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
11982 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
11984 2015-07-23 Richard Biener <rguenther@suse.de>
11986 * generic-match-head.c: Include cgraph.h.
11987 * gimple-match-head.c: Likewise.
11988 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
11990 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
11991 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
11994 2015-07-23 Richard Biener <rguenther@suse.de>
11996 * gimple-fold.c (fold_gimple_cond): Do not require folding
11997 results to pass valid_gimple_rhs_p.
11998 * tree-cfg.h (fold_cond_expr_cond): Remove.
11999 * tree-cfg.c (fold_cond_expr_cond): Likewise.
12000 (make_edges): Do not call it.
12001 * tree-inline.c (tree_function_versioning): Likewise.
12003 2015-07-23 Tom de Vries <tom@codesourcery.com>
12005 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
12006 vect_force_simple_reduction.
12007 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
12008 (vect_is_simple_reduction_1): Add and handle
12009 need_wrapping_integral_overflow parameter.
12010 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
12011 need_wrapping_integral_overflow parameter.
12012 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
12013 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
12016 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
12018 PR tree-optimization/66926,66951
12019 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
12020 INNER_LOOP and fix up condition for renaming virtual operands.
12022 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12024 * combine.c (try_combine): Use std::swap instead of manually
12027 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
12029 * config/mips/i6400.md: New file.
12030 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
12031 (mips64r6): Likewise.
12033 * config/mips/mips-tables.opt: Regenerate.
12034 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
12035 (mips_issue_rate): Add support for i6400.
12036 (mips_multipass_dfa_lookahead): Likewise.
12037 * config/mips/mips.h (TUNE_I6400): Define.
12038 * config/mips/mips.md: Include i6400.md.
12039 (processor): Add i6400.
12040 * doc/invoke.texi (-march=@var{arch}): Add i6400.
12042 2015-07-23 Richard Biener <rguenther@suse.de>
12044 PR middle-end/66916
12045 * match.pd: Guard widen and sign-change comparison simplification
12048 2015-07-23 Richard Biener <rguenther@suse.de>
12050 PR tree-optimization/66945
12051 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
12052 ::before_dom_children): Force the propagators idea of
12053 non-executable edges to materialize, not what the folder
12056 2015-07-23 Richard Biener <rguenther@suse.de>
12058 * gimple.h (gimple_cond_make_false): Use 0 != 0.
12059 (gimple_cond_make_true): Use 1 != 0.
12061 2015-07-22 DJ Delorie <dj@redhat.com>
12063 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
12066 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
12067 (ashrhi3): Likewise.
12068 (lshrhi3): Likewise.
12069 (movhi): Take advantage of zero-extend to load small constants.
12070 (movpsi): Likewise.
12071 (and<mode>3): Likewise.
12072 (zero_extendqihi2): Likewise.
12073 (zero_extendqisi2): New.
12074 * config/msp430/constraints.md (N,O): New.
12075 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
12077 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
12080 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
12081 to enum feature_priority and feature_list.
12082 (fold_builtin_cpu): Add F_AES to enum processor_features
12083 and isa_names_table.
12085 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
12088 * config/i386/linux-common.h (MPX_SPEC): Use linker option
12089 for 64bit target only.
12091 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
12093 * config/nvptx/nvptx.c: Expand some comments.
12095 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
12097 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
12098 (cortex_a53_advsimd): ...This.
12100 2015-07-22 Richard Biener <rguenther@suse.de>
12102 * genmatch.c (expr::gen_transform): Clarify error message
12103 and display location.
12105 2015-07-22 Richard Biener <rguenther@suse.de>
12107 * genmatch.c (struct operand): Add location member.
12108 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
12110 (struct simplify): Remove match_location and result_location
12112 (elsehwere): Adjust.
12114 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
12116 * config/mips/m5100.md: New file.
12117 * config/mips/mips-cpus.def (m5100, m5101): Define.
12118 * config/mips/mips-tables.opt: Regenerate.
12119 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
12120 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
12121 -march=m5101 to -mips32r5.
12122 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
12123 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
12125 * config/mips/mips.md: Include m5100.md.
12126 (processor): Add m5100.
12127 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
12129 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
12131 * config/mips/mips-cpus.def (interaptiv): Define.
12132 * config/mips/mips-tables.opt: Regenerate.
12133 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
12135 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
12136 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
12138 2015-07-22 Jiong Wang <jiong.wang@arm.com>
12141 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
12142 (HONOR_REG_ALLOC_ORDER): Define.
12144 2015-07-22 Richard Biener <rguenther@suse.de>
12146 PR tree-optimization/66952
12147 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
12148 blocks we end up executing unconditionally reset all SSA
12149 info such as range and alignment.
12150 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
12151 * tree-ssanames.c (reset_flow_sensitive_info): New function.
12153 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
12155 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
12158 2015-07-22 Richard Biener <rguenther@suse.de>
12160 * genmatch.c (parser::parse_result): Properly handle
12161 match with result operands and conditions.
12163 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
12166 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
12167 Add qualifier_struct_load_store_lane_index.
12168 (aarch64_types_loadstruct_lane_qualifiers): Use
12169 qualifier_struct_load_store_lane_index for lane index argument for
12171 (aarch64_types_storestruct_lane_qualifiers): Ditto.
12172 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
12173 (aarch64_simd_expand_args): Add new argument describing mode of
12174 builtin. Check lane bounds for arguments with
12175 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
12176 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
12177 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
12178 (aarch64_simd_expand_builtin): Handle arguments with
12179 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
12180 aarch64_simd_expand_args.
12181 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
12182 vst[234]_lane with BUILTIN_VALLDIF.
12183 * config/aarch64/aarch64-simd.md:
12184 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
12185 endianness reversal on lane index.
12186 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
12187 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
12188 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
12189 (vec_store_lanesci_lane<mode>): Ditto.
12190 (vec_store_lanesxi_lane<mode>): Ditto.
12191 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
12192 reversal of lane index.
12193 (aarch64_ld3_lane<mode>): Ditto.
12194 (aarch64_ld4_lane<mode>): Ditto.
12195 (aarch64_st2_lane<mode>): Ditto.
12196 (aarch64_st3_lane<mode>): Ditto.
12197 (aarch64_st4_lane<mode>): Ditto.
12198 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
12199 to qmode. Add new mode parameter. Update uses.
12200 (__LD3_LANE_FUNC): Ditto.
12201 (__LD4_LANE_FUNC): Ditto.
12202 (__ST2_LANE_FUNC): Ditto.
12203 (__ST3_LANE_FUNC): Ditto.
12204 (__ST4_LANE_FUNC): Ditto.
12206 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
12208 * doc/invoke.texi (Language Independent Options): Rename node to
12209 Diagnostic Message Formatting Options.
12211 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
12214 * lra-remat.c (operand_to_remat): Prevent using insns with input
12215 subregs processed separately by IRA.
12217 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
12219 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
12221 (single_imm_use): Check for iterator node.
12222 (num_imm_uses): Likewise.
12223 * tree-ssa-operands.c (has_zero_uses_1): Delete.
12224 (single_imm_use_1): Check for iterator node.
12226 2015-07-21 Mike Frysinger <vapier@gentoo.org>
12227 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12229 * configure.ac: Add check for new options in isl-0.15.
12230 * config.in, configure: Rebuilt.
12231 * graphite-blocking.c: Include <isl/constraint.h>
12232 * graphite-interchange.c, graphite-poly.c: Likewise.
12233 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
12234 * graphite.c: Likewise.
12235 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
12237 * graphite-dependences.c: Include <isl/constraint.h>.
12238 (max_number_of_out_dimensions): Returns isl_stat.
12239 (extend_schedule_1): Likewise
12240 (extend_schedule): Corresponding changes.
12241 * graphite-optimize-isl.c: Include <isl/constraint.h> and
12243 (getSingleMap): Change return type of isl_stat.
12244 (optimize_isl): Conditionally use
12245 isl_options_set_schedule_serialize_sccs.
12246 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
12247 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
12249 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
12252 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
12253 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
12255 2015-07-21 Richard Biener <rguenther@suse.de>
12257 PR tree-optimization/66948
12258 * genmatch.c (capture_info::walk_match): Also recurse to
12259 captures. Properly compute expr state from captures of
12261 * match.pd: Add single-use guards to
12262 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
12264 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
12266 * config/nvptx/mkoffload.c (process): Add static destructor call.
12268 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12270 PR middle-end/66915
12271 * match.pd (A - B -> A + (-B)): Don't allow folding
12272 when type if a fixed-point type.
12274 2015-07-20 DJ Delorie <dj@redhat.com>
12276 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
12277 (iorqi3_real): Likewise for set1.
12279 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
12281 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
12284 2015-07-20 Aditya Kumar <hiraditya@msn.com>
12286 * graphite-isl-ast-to-gimple.c:
12287 Refactor so that each function can access 'region'. This will help
12288 maintain a parameter rename_map within a region.
12290 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
12292 * config/rs6000/rs6000.md (*lt0_disi): New.
12294 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
12297 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
12298 "available letters" comment.
12299 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
12300 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
12301 and_2rld_operand): Delete.
12302 (and_operand): Adjust.
12303 (rotate_mask_operator): New.
12304 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
12305 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
12306 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
12307 extract_ME): Delete.
12308 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
12309 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
12310 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
12311 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
12312 rs6000_emit_2insn_and): New.
12313 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
12314 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
12315 includes_rldic_lshift_p, includes_rldicr_lshift_p,
12316 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
12317 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
12318 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
12319 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
12320 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
12321 rs6000_emit_2insn_and): New.
12322 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
12323 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
12325 <NOT>: Don't fall through to next case.
12326 <AND>: Handle the various rotate-and-mask cases directly.
12327 <IOR>: Always cost as one insn.
12328 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
12329 (and<mode>3): Adjust expander for the new patterns.
12330 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
12331 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
12332 (*and<mode>3_imm_dot_shifted): New.
12333 (*and<mode>3_mask): Delete, rewrite as ...
12334 (and<mode>3_mask): ... New.
12335 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
12336 (andsi3_internal0_nomc): Delete.
12337 (*andsi3_internal6): Delete.
12338 (*and<mode>3_2insn): New.
12339 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
12340 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
12341 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
12342 *insvdi_internal3): Delete.
12343 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
12344 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
12345 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
12346 *ior<mode>_mask): New.
12347 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
12348 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
12349 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
12350 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
12352 (ashr<mode>3): Delete expander.
12353 (*ashr<mode>3): Rename to ...
12354 (ashr<mode>3): ... This.
12355 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
12356 (*rotldi3_internal4, *rotldi3_internal5 and split,
12357 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
12358 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
12359 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
12360 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
12361 (splitter for loading a mask): Adjust.
12362 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
12364 2015-07-20 Marek Polacek <polacek@redhat.com>
12366 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
12367 output_add_clobbers, output_added_clobbers_hard_reg_p,
12368 gen_rtx_scratch): Remove declarations.
12370 2015-07-20 Marek Polacek <polacek@redhat.com>
12373 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
12375 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12377 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
12378 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
12380 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12382 * combine.c (combine_simplify_rtx): Move simplification step
12383 before various transformations/substitutions.
12385 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
12387 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
12388 (struct int_traits): Likewise.
12390 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12392 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
12393 function to vmsdbgout_function_decl.
12395 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
12398 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
12399 from misaligned positions.
12400 (ix86_expand_pinsr): Reject insertions to misaligned positions.
12402 2015-07-18 Sebastian Pop <s.pop@samsung.com>
12404 PR middle-end/46851
12405 PR middle-end/60340
12406 * Makefile.in: Removed omega.o.
12407 * common.opt: Document flag fcheck-data-deps as deprecated.
12408 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
12409 its associated params: omega-max-vars, omega-max-geqs,
12410 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
12411 omega-max-keys, omega-eliminate-redundant-constraints.
12412 * doc/loop.texi: Remove all the section on Omega.
12413 * graphite-blocking.c: Include missing params.h: it used to be
12414 included through tree-data-ref.h and omega.h.
12415 * graphite-isl-ast-to-gimple.c: Same.
12416 * graphite-optimize-isl.c: Same.
12417 * graphite-sese-to-poly.c: Same.
12418 * graphite.c: Same.
12421 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
12422 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
12423 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
12424 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
12425 * passes.def: Remove pass_check_data_deps.
12426 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
12427 (dump_conflict_function): Same.
12428 (dump_subscript): Same.
12429 (print_direction_vector): Same.
12430 (print_dir_vectors): Same.
12431 (print_lambda_vector): Same.
12432 (print_dist_vectors): Same.
12433 (dump_data_dependence_relation): Same.
12434 (dump_data_dependence_relations): Same.
12435 (dump_dist_dir_vectors): Same.
12437 (init_omega_eq_with_af): Removed.
12438 (omega_extract_distance_vectors): Removed.
12439 (omega_setup_subscript): Removed.
12440 (init_omega_for_ddr_1): Removed.
12441 (init_omega_for_ddr): Removed.
12442 (ddr_consistent_p): Removed.
12443 (compute_affine_dependence): Do not use omega to check data
12445 (compute_data_dependences_for_bb): Removed.
12446 (analyze_all_data_dependences): Removed.
12447 (tree_check_data_deps): Removed.
12448 * tree-data-ref.h: Do not include omega.h.
12449 (compute_data_dependences_for_bb): Removed.
12450 (tree_check_data_deps): Removed.
12451 * tree-ssa-loop.c (pass_check_data_deps): Removed.
12452 (make_pass_check_data_deps): Removed.
12453 * tree-ssa-phiopt.c: Include params.h.
12454 * tree-vect-data-refs.c: Same.
12455 * tree-vect-slp.c: Same.
12457 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
12459 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
12460 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
12461 (mem->fpreg splitters): Ditto.
12462 (general_operand->nonimmediate_operand splitter): Use explicit modes.
12463 Disable DFmode for TARGET_64BIT.
12465 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
12468 * config/i386/i386.c (ix86_expand_prologue): Replicate static
12469 chain on the stack.
12471 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
12473 * config/nvptx/mkoffload.c (process): Constify host data.
12474 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
12475 Constify host data.
12476 (generate_host_descr_file): Likewise.
12478 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
12479 Sebastian Pop <s.pop@samsung.com>
12481 PR middle-end/61929
12482 * graphite-dependences.c (add_pdr_constraints): Renamed
12483 pdr->extent to pdr->subscript_sizes.
12484 * graphite-interchange.c (build_linearized_memory_access): Add
12485 back all gcc_assert's that the "isl_int to isl_val conversion"
12486 patch has removed. Refactored.
12487 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
12488 * graphite-poly.c (new_poly_dr): Same.
12489 (free_poly_dr): Same.
12490 * graphite-poly.h (struct poly_dr): Same.
12491 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
12492 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
12493 * graphite-scop-detection.h: Fix space.
12494 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
12495 back all gcc_assert's removed by a previous patch.
12496 (wrap): Remove the_isl_ctx global variable that the same patch has
12498 (build_loop_iteration_domains): Same.
12499 (add_param_constraints): Same.
12500 (pdr_add_data_dimensions): Same. Refactored.
12501 (build_poly_dr): Renamed extent to subscript_sizes.
12503 2015-07-17 Marek Polacek <polacek@redhat.com>
12505 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
12506 * match.pd: ... here.
12508 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
12510 * config/nvptx/mkoffload.c (process): Constify target data.
12511 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
12512 Constify target data.
12513 (generate_target_offloadend_file): Likewise.
12515 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
12517 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
12518 to allow renaming of PHI arguments on edges incoming from outer
12519 loop header, add corresponding check before start PHI iterator.
12520 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
12521 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
12522 with true force_vectorize. Set-up dominator for outer loop too.
12523 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
12524 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
12525 was marked with force_vectorize and has restricted cfg.
12526 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
12528 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
12529 do peeling for outer loops.
12531 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
12532 Matthias Klose <doko@ubuntu.com>
12534 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
12535 build-sysroot, sysroot from the `Miscenalleous configure options' to
12536 the `Directories' section and strip trailing `/' from with_sysroot.
12537 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
12538 * configure: Regenerated.
12540 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
12543 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
12544 (TARGET_HARD_DF_REGS): Ditto.
12545 (TARGET_HARD_XF_REGS): Ditto.
12546 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
12547 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
12548 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
12549 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
12550 (*movsf_internal): Add alternatives 16 and 17. Enable
12551 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
12553 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
12555 PR rtl-optimization/66891
12556 * calls.c (expand_call): Wrap precompute_register_parameters with
12557 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
12559 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
12561 * config/nvptx/mkoffload.c (process): Constify mapping variables.
12562 Define target data struct and initialize it.
12564 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
12566 PR rtl-optimization/66626
12567 * ira.h (emit-rtl.h): Include.
12568 (non_spilled_static_chain_regno_p): New.
12569 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
12570 unless it is non spilled static chain pseudo.
12571 (assign_hard_rego): Spill memory profitable allocno unless it is
12572 non spilled static chain pseudo.
12573 (allocno_spill_priority_compare): Put non spilled static chain
12574 pseudo at the end of sorted array.
12575 (improve_allocation): Do nothing if we have static chain and
12577 (allocno__priority_compare_func): Put non spilled static chain
12578 pseudo at the beginning of sorted array.
12579 (move_spill_restore): Ignore non spilled static chain pseudo.
12580 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
12581 to non spilled static chain pseudo.
12582 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
12583 pseudo at the beginning of sorted array.
12584 (spill_for): Spill non spilled static chain pseudo last.
12585 * lra-constraints.c (lra_constraints): Remove static chain pseudo
12586 check for equivalence.
12588 2015-07-16 Martin Liska <mliska@suse.cz>
12591 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
12592 dst_ctx if it does not exist.
12594 2015-07-16 Martin Liska <mliska@suse.cz>
12596 * hash-set.h (remove): New function.
12597 (iterator): New iteration class for hash_set.
12599 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12601 * genattrtab.c (make_canonical): Add a file_location parameter.
12602 Use fatal_at rather than fatal.
12603 (get_attr_value): Likewise. Update call to make_canonical.
12604 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
12605 (make_internal_attr): Update calls accordingly.
12607 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12609 * read-md.h (message_with_line, error_with_line): Delete.
12610 * read-md.c (message_with_line, error_with_line): Delete.
12611 * gensupport.h: Include read-md.h.
12612 (md_rtx_info): New structure.
12613 (read_md_rtx): Use it. Return a bool success value.
12614 * gensupport.c (read_md_rtx): Likewise.
12615 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
12616 (main): Update after interface changes.
12617 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
12618 (main): Update after interface changes.
12619 * genattrtab.c (insn_code_number): Delete.
12620 (optimize_attrs): Add a max_insn_code parameter and use it instead
12621 of insn_code_number.
12622 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
12623 Use *_at rather than *_with_line functions.
12624 (gen_insn): Likewise.
12625 (gen_delay): Likewise.
12626 (gen_insn_reserv): Likewise.
12627 (gen_bypass): Take an md_rtx_info rather than an rtx.
12628 (main): Update after interface changes. Use a local max_insn_code
12629 variable instead of insn_code_number.
12630 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
12631 an rtx. Use fatal_at rather than fatal.
12632 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
12633 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
12634 (gen_absence_set, gen_final_absence_set, gen_automaton)
12635 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
12636 (main): Update after interface changes.
12637 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
12639 (main): Update after interface changes.
12640 * genconditions.c (main): Use new read_md_rtx interface.
12641 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
12642 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
12643 (main): Update after interface changes.
12644 * genemit.c (insn_code_number, insn_index_number): Delete.
12645 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
12646 Use fatal_at rather than fatal.
12647 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
12649 (gen_split): Likewise.
12650 (main): Update after interface changes.
12651 * genextract.c (line_no): Delete.
12652 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
12653 Update call to walk_rtx.
12654 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
12655 rather than message_with_line.
12656 (walk_rtx): Add an md_rtx_info argument. Update call to
12657 VEC_safe_set_locstr.
12658 (main): Update after interface changes.
12659 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
12660 and lineno. Use error_at rather than separate message_with_line
12661 calls and have_error assignments.
12662 (main): Update after interface changes.
12663 * genmddump.c (main): Use new read_md_rtx interface.
12664 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
12665 (main): Update after interface changes.
12666 * genoutput.c (next_code_number): Delete.
12667 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
12668 (gen_peephole, gen_expand, gen_split): Likewise.
12669 (note_constraint): Likewise. Use *_at rather than *_with_line
12671 (main): Update after interface changes.
12672 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
12674 (main): Update after interface changes.
12675 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
12676 than an rtx and lineno.
12677 (process_define_constraint): Likewise.
12678 (process_define_register_constraint): Likewise.
12679 (main): Update after interface changes.
12680 * genrecog.c (next_insn_code, pattern_lineno): Delete.
12681 (validate_pattern): Replace top-level rtx with an md_rtx_info.
12682 Use *_at rather than *_with_line functions.
12683 (match_pattern_2): Likewise.
12684 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
12685 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
12686 Use *_at rather than *_with_line functions.
12687 * gentarget-def.c (add_insn): New function.
12688 (main): Use it. Use new read_md_rtx interface.
12690 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12692 * gensupport.h (compute_test_codes): Take a file_location rather
12693 than a line number.
12694 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
12695 rather than *_with_line functions.
12696 (process_define_predicate): Update call to compute_test_codes.
12697 * genpreds.c (validate_exp): Take a file_location rather than a
12698 line number. Use *_at functions rather than *_with_line functions.
12699 (process_define_predicate): Update call to validate_exp.
12700 (constraint_data): Replace lineno field with a file_location.
12701 (add_constraint): Take a file_location rather than a line number.
12702 Use *_at functions rather than *_with_line functions. Fix error
12703 message for address constraints. Update after changes to
12704 validate_exp, constraint_data and compute_test_codes.
12705 (process_define_constraint): Update accordingly.
12706 (process_define_register_constraint): Likewise.
12708 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12710 * genoutput.c (data): Use a file_location to record the source
12713 (idata, idata_end): Remove initialization.
12714 (constraint_data): Replace lineno with a file_location.
12715 (output_insn_data): Update after changes to data.
12716 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
12717 (scan_operands): Likewise, using *_at rather than *_with_line
12719 (process_template): Likewise.
12720 (validate_insn_alternatives): Likewise.
12721 (validate_insn_operands): Likewise.
12722 (validate_optab_operands): Likewise.
12723 (init_insn_for_nothing): Initialize idata and idata_end.
12724 (note_constraint): Update after changes to constraint_data,
12725 using at rather than with_line functions.
12726 (mdep_constraint_len): Take a file_location rather than a
12727 line number. Use at rather than with_line functions.
12729 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12731 * read-md.h (fatal_at): Declare.
12732 * read-md.c (fatal_at): New function.
12733 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
12734 to record the source position.
12735 (check_attr_test): Take a file_location instead of a line number.
12736 Use fatal_at instead of fatal.
12737 (check_attr_value): Update after above changes, using "at"
12738 rather than "with_line" reporting functions.
12739 (convert_set_attr_alternative): Likewise.
12740 (gen_attr): Likewise.
12741 (check_defs): Likewise. Don't assign to read_md_filename.
12742 (gen_insn): Update initialization after above changes.
12743 (gen_delay): Likewise.
12744 (write_insn_cases): Print the filename for a define_peephole.
12745 (gen_insn_reserv): Take a line number as argument and update
12746 the call to check_attr_test.
12747 (main): Pass a line number to gen_insn_reserv.
12749 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12751 * read-md.h (file_location): New structure.
12752 (directive_handler_t): Take a file_location rather than a line number.
12753 (message_at, error_at): Declare.
12754 (read_skip_construct): Delete.
12755 * read-md.c (message_with_line_1): Replace with...
12756 (message_at_1): ...this new function.
12757 (message_at, error_at): New functions.
12758 (message_with_line, error_with_line): Update to use message_at_1.
12759 (handle_enum): Take a file_location rather than a line number
12760 and use error_at for error reporting.
12761 (handle_include): Likewise.
12762 (read_skip_construct): Likewise. Make static.
12763 (handle_file): Update after above changes. Pass a file_location
12764 rather than a line number to handle_directive.
12765 * gensupport.c (queue_elem): Replace separate filename and lineno
12766 with a file_location.
12767 (queue_pattern): Replace filename and lineno arguments with a
12768 file_location. Update after change to queue_elem.
12769 (process_define_predicate): Replace lineno argument with a
12770 file_location and use error_at for error reporting. Update
12771 after above changes.
12772 (process_rtx): Likewise.
12773 (subst_pattern_match): Likewise.
12774 (get_alternatives_number): Likewise.
12775 (alter_predicate_for_insn): Likewise.
12776 (rtx_handle_directive): Likewise.
12777 (is_predicable): Update after above changes, using error_at rather
12778 than error_with_line.
12779 (has_subst_attribute): Likewise.
12780 (identify_predicable_attribute): Likewise.
12781 (alter_attrs_for_subst_insn): Likewise.
12782 (process_one_cond_exec): Likewise.
12783 (process_substs_on_one_elem): Likewise.
12784 (process_define_subst): Likewise.
12785 (check_define_attr_duplicates): Likewise.
12786 (read_md_rtx): Update after change to queue_elem.
12788 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12790 * genoutput.c (next_index_number): Delete.
12791 (data): Remove index_number.
12792 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
12793 (main): Remove manipulation of next_index_number.
12795 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12797 * genattrtab.c (check_attr_value): Remove handling of null attrs.
12798 (make_canonical): Likewise.
12800 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
12802 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
12803 instead of adjust_address_nv.
12804 (restore_stack_nonlocal): Likewise.
12805 (nonlocal_goto): Likewise.
12807 2015-07-16 Tom de Vries <tom@codesourcery.com>
12809 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
12810 not have a corresponding loop header phi.
12812 2015-07-16 Tom de Vries <tom@codesourcery.com>
12814 * tree-parloops.c (create_loads_for_reductions): Handle case that
12815 reduction is unused.
12817 2015-07-16 Richard Biener <rguenther@suse.de>
12819 PR tree-optimization/66894
12820 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
12821 about deriving NE_EXPR from truncated values.
12823 2015-07-16 Martin Liska <mliska@suse.cz>
12826 (object_allocator): Add new class.
12827 (pool_allocator::initialize): Use the underlying class.
12828 (pool_allocator::allocate): Likewise.
12829 (pool_allocator::remove): Likewise.
12830 (operator new): A new generic allocator.
12831 * asan.c (struct asan_mem_ref): Remove unused members.
12832 (asan_mem_ref_new): Replace new operator with
12833 object_allocator::allocate.
12834 (free_mem_ref_resources): Change deallocation.
12835 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
12836 with object_allocator.
12837 * config/sh/sh.c (add_constant): Replace new operator with
12838 object_allocator::allocate.
12839 (sh_reorg): Change call to a release method.
12840 * cselib.c (struct elt_list): Remove unused members.
12841 (new_elt_list): Replace new operator with
12842 object_allocator::allocate.
12843 (new_elt_loc_list): Likewise.
12844 (new_cselib_val): Likewise.
12845 (unchain_one_elt_list): Change delete operator with remove method.
12846 (unchain_one_elt_loc_list): Likewise.
12847 (unchain_one_value): Likewise.
12848 (cselib_finish): Release newly added static allocators.
12849 * cselib.h (struct cselib_val): Remove unused members.
12850 (struct elt_loc_list): Likewise.
12851 * df-problems.c (df_chain_alloc): Replace pool_allocator with
12853 * df-scan.c (struct df_scan_problem_data): Likewise.
12854 (df_scan_alloc): Likewise.
12855 * df.h (struct dataflow): Likewise.
12856 * dse.c (struct read_info_type): Likewise.
12857 (struct insn_info_type): Likewise.
12858 (struct dse_bb_info_type): Likewise.
12859 (struct group_info): Likewise.
12860 (struct deferred_change): Likewise.
12861 (get_group_info): Likewise.
12862 (delete_dead_store_insn): Likewise.
12863 (free_read_records): Likewise.
12864 (replace_read): Likewise.
12865 (check_mem_read_rtx): Likewise.
12866 (scan_insn): Likewise.
12867 (dse_step1): Likewise.
12868 (dse_step7): Likewise.
12869 * et-forest.c (struct et_occ): Remove unused members.
12870 (et_new_occ): Use allocate instead of new operator.
12871 (et_new_tree): Likewise.
12872 (et_free_tree): Call release method explicitly.
12873 (et_free_tree_force): Likewise.
12874 (et_free_pools): Likewise.
12875 (et_split): Use remove instead of delete operator.
12876 * et-forest.h (struct et_node): Remove unused members.
12877 * ipa-cp.c: Change pool_allocator to object_allocator.
12878 * ipa-inline-analysis.c: Likewise.
12879 * ipa-profile.c: Likewise.
12880 * ipa-prop.c: Likewise.
12881 * ipa-prop.h: Likewise.
12882 * ira-build.c (initiate_cost_vectors): Cast return value.
12883 (ira_allocate_cost_vector): Likewise.
12884 * ira-color.c (struct update_cost_record): Remove unused members.
12885 * lra-int.h (struct lra_live_range): Likewise.
12886 (struct lra_copy): Likewise.
12887 (struct lra_insn_reg): Likewise.
12888 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
12889 * lra.c (new_insn_reg): Replace new operator with allocate method.
12890 (free_insn_regs): Same for operator delete.
12891 (finish_insn_regs): Release new static allocator.
12892 (finish_insn_recog_data): Likewise.
12893 (lra_free_copies): Replace delete operator with remove method.
12894 (lra_create_copy): Replace operator new with allocate method.
12895 (invalidate_insn_data_regno_info): Same for remove method.
12896 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
12897 (free_debug_insn_changes): Replace delete operator with remove method.
12898 (replace_oldest_value_reg): Replace operator new with allocate method.
12899 (pass_cprop_hardreg::execute): Release new static variable.
12900 * sched-deps.c (sched_deps_init): Change pool_allocator to
12902 * sel-sched-ir.c: Likewise.
12903 * sel-sched-ir.h: Likewise.
12904 * stmt.c (expand_case): Likewise.
12905 (expand_sjlj_dispatch_table): Likewise.
12906 * tree-sra.c (struct access): Remove unused members.
12907 (struct assign_link): Likewise.
12908 (sra_deinitialize): Release newly added static pools.
12909 (create_access_1):Replace operator new with allocate method.
12910 (build_accesses_from_assign): Likewise.
12911 (create_artificial_child_access): Likewise.
12912 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
12913 pool_allocator to object_allocator.
12914 * tree-ssa-pre.c: Likewise.
12915 * tree-ssa-reassoc.c: Likewise.
12916 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
12917 * tree-ssa-strlen.c: Likewise.
12918 * tree-ssa-structalias.c: Likewise.
12919 * var-tracking.c (onepart_pool_allocate): New function.
12920 (unshare_variable): Use the newly added function.
12921 (variable_merge_over_cur): Likewise.
12922 (variable_from_dropped): Likewise.
12923 (variable_was_changed): Likewise.
12924 (set_slot_part): Likewise.
12925 (emit_notes_for_differences_1): Likewise.
12926 (vt_finalize): Release newly added static pools.
12928 2015-07-16 Martin Jambor <mjambor@suse.cz>
12930 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
12931 all uses. Fix two typos in its general comment.
12932 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
12934 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
12936 * config/i386/linux-common.h (LINK_MPX): New.
12937 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
12938 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
12939 indicating '-z bndplt' support by linker.
12940 * configure: Regenerate.
12941 * config.in: Regenerate.
12943 2015-07-16 Richard Biener <rguenther@suse.de>
12945 * fold-const.c (fold_widened_comparison): Remove.
12946 (fold_sign_changed_comparison): Likewise.
12947 (fold_comparison): Move widened and sign-changed comparison
12949 * match.pd: ... to patterns here.
12950 * generic-match-head.c: Include target.h.
12951 * gimple-match-head.c: Likewise.
12953 2015-07-16 Richard Biener <rguenther@suse.de>
12955 * tree-ssa-dom.c (dom_valueize): New function.
12956 (record_temporary_equivalences): Also record equivalences
12957 for dominating stmts that have uses of equivalences we are
12960 2015-07-16 Bin Cheng <bin.cheng@arm.com>
12962 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
12963 add_autoinc_candidates.
12964 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
12965 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
12966 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
12967 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
12969 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
12970 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
12971 Remove parameter struct iv*. Call add_autoinc_candidates here.
12972 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
12973 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
12975 (find_iv_candidates): Call new functions.
12977 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
12979 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
12980 uninitialized-variable warning.
12982 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
12985 * config/sh/sh.md (movdi): Split simple reg move to two movsi
12986 when the destination is R0.
12988 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
12991 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
12992 * config/i386/i386.c (ix86_expand_pextr): New function.
12993 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
12994 for non-lowpart subregs.
12995 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
12996 (insv<mode>): Use SWI248 mode iterator.
12997 (insv<mode>_1): Ditto.
12999 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
13000 Sebastian Pop <s.pop@samsung.com>
13002 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
13003 iterator to use_stmt.
13005 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
13006 Sebastian Pop <s.pop@samsung.com>
13008 * graphite-scop-detection.c (build_scops_1): Discard scops for
13011 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
13012 Sebastian Pop <s.pop@samsung.com>
13014 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
13015 case of a return statement in scop.
13017 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
13018 Sebastian Pop <s.pop@samsung.com>
13020 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
13021 INTEGER_TYPE parameters.
13022 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
13023 VECTOR_CST in scan_tree_for_params.
13024 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
13026 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
13028 * gimple-pretty-print.h: Don't include pretty-print.h.
13029 * tree-streamer.h: Don't include lto-streamer.h.
13030 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
13031 * gimple-streamer-in.c: Remove redundant includes.
13032 * gimple-streamer-out.c: Likewise.
13033 * ipa-devirt.c: Likewise.
13034 * ipa-icf.c: Likewise.
13035 * ipa-inline-analysis.c: Likewise.
13036 * ipa-polymorphic-call.c: Likewise.
13037 * ipa-profile.c: Likewise.
13038 * ipa-prop.c: Likewise.
13039 * ipa-pure-const.c: Likewise.
13040 * lto-cgraph.c: Likewise.
13041 * lto-streamer-in.c: Likewise.
13042 * lto-streamer-out.c: Likewise.
13043 * lto-streamer.c: Likewise.
13044 * tree-streamer-in.c: Likewise.
13045 * tree-streamer-out.c: Likewise.
13046 * tree-streamer.c: Likewise.
13048 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
13050 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
13052 * opts.c: Remove multiline #include comment.
13054 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
13056 * config/nvptx/mkoffload.c (process): Add C++ protection to
13059 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13062 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
13063 null before IEEE 128-bit floating point support patch.
13065 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13067 * simplify-rtx.c (simplify_ternary_operation): Add simplification
13068 for (!c) != {0,...,0} ? a : b for vector modes.
13070 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
13071 Martin Jambor <mjambor@suse.cz>
13073 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
13074 struct func_body_info* instead of struct ipa_node_params*, expecting
13075 fbi->info to be filled in. Replace throughout. Adjust call to
13076 ipa_load_from_parm_agg.
13077 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
13078 instead of struct ipa_node_params*. Adjust calls to other functions
13079 so that they pass either fbi or fbi->info.
13080 (set_switch_stmt_execution_predicate): Likewise.
13081 (will_be_nonconstant_predicate): Likewise.
13082 (compute_bb_predicates): Likewise.
13083 (estimate_function_body_sizes): Move asserts earlier. Fill in
13084 struct func_body_info, replace parms_info with fbi.info. Adjust
13085 calls to functions that now accept struct func_body_info.
13086 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
13087 (struct func_body_info): Likewise.
13088 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
13089 remove static. Adjust callers.
13090 (ipa_load_from_parm_agg): Remove.
13091 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
13092 (func_body_info): Likewise.
13093 (ipa_load_from_parm_agg): Adjust prototype.
13095 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13097 * gensupport.c (rtx_handle_directive): Adjust.
13098 * read-rtl.c (apply_iterators): Take vector to add rtxs to
13099 instead of expr list rtx.
13100 (add_define_attr_for_define_subst): Likewise.
13101 (add_define_subst_attr): Likewise.
13102 (read_subst_mapping): Likewise.
13103 (read_rtx): Likewise.
13104 * rtl.h (read_rtx): Adjust.
13106 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13108 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
13110 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
13113 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
13114 (*tls_local_dynamic_base_64_<mode>): Ditto.
13115 (*tls_local_dynamic_base_64_largepic): Ditto.
13116 (tls_global_dynamic_64_<mode>): Update expander pattern.
13117 (tls_local_dynamic_base_64_<mode>): Ditto.
13119 2015-07-15 Richard Biener <rguenther@suse.de>
13121 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
13122 and bool_var == 1 -> bool_var simplifications ...
13123 * match.pd: ... to patterns here. Factor out negate_expr_p
13124 cases from the A - B -> A + (-B) patterns as negate_expr_p
13125 predicate and add a -(A + B) -> (-B) - A pattern.
13127 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
13129 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
13131 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
13132 Robert Suchanek <robert.suchanek@imgtec.com>
13134 * config/mips/mips.c (mips_int_mask): New enum.
13135 (mips_shadow_set): Likewise.
13136 (int_mask): New variable.
13137 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
13138 (machine_function): Add int_mask and use_shadow_register_set.
13139 (mips_attribute_table): Add attribute handlers for interrupt and
13140 use_shadow_register_set.
13141 (mips_interrupt_mask): New static function.
13142 (mips_handle_interrupt_attr): Likewise.
13143 (mips_handle_use_shadow_register_set_attr): Likewise.
13144 (mips_use_shadow_register_set): Change return type to enum
13145 mips_shadow_set. Add argument handling for use_shadow_register_set
13147 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
13148 compare with mips_shadow_set enum.
13149 (mips_compute_frame_info): Add interrupt mask and
13150 use_shadow_register_set to per-function information structure.
13151 Add a stack slot for EPC unconditionally.
13152 (mips_expand_prologue): Compare use_shadow_register_set value
13153 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
13154 masked interrupt register but in EIC mode use K0 and save Cause in K0.
13155 EPC saved and restored unconditionally. Use PMODE_INSN macro when
13156 copying the stack pointer from the shadow register set.
13157 * config/mips/mips.h (SR_IM0): New define.
13158 * config/mips/mips.md (mips_rdpgpr): Rename to...
13159 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
13160 * doc/extend.texi (Declaring Attributes of Functions): Document
13161 optional arguments for interrupt and use_shadow_register_set
13164 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
13166 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
13167 interrupt attribute.
13168 (mips_expand_prologue): Disable the floating point unit in an ISR.
13169 * config/mips/mips.h (SR_COP1): New define.
13171 2015-07-15 Richard Biener <rguenther@suse.de>
13173 * genmatch.c (parser::peek, parser::peek_ident): Add argument
13174 to tell how many tokens to peek ahead (default 1).
13175 (parser::eat_token, parser::eat_ident): Return token consumed.
13176 (parser::parse_result): Parse new switch statement.
13177 * match.pd: Use case statements where appropriate.
13179 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
13181 PR rtl-optimization/58066
13182 * calls.c (expand_call): Precompute register parameters before stack
13183 alignment is performed.
13185 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
13187 PR rtl-optimization/66838
13188 * postreload.c (reload_cse_move2add): Also process
13189 CALL_INSN_FUNCTION_USAGE when resetting information of
13190 call-clobbered registers.
13192 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13193 Cesar Philippidis <cesar@codesourcery.com>
13194 Chung-Lin Tang <cltang@codesourcery.com>
13196 * config/nios2/constraints.md (U, v): New constraints.
13197 * config/nios2/predicates.md (rdprs_dcache_operand): New.
13198 (ldstex_memory_operand): New.
13199 * config/nios2/sync.md: New file.
13200 * config/nios2/nios2.md (unspecv): Add new builtin function
13202 (rdprs, flushd, flushda, wrpie, eni): New patterns.
13203 (top-level): Include sync.md.
13204 * config/nios2/nios2.c (N2_FTYPES): Add function types for
13206 (N2_BUILTINS): Add arch field setting, add new builtins.
13207 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
13209 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
13210 Also handle ldex/stex/ldsex/stsex builtins.
13211 (nios2_expand_rdprs_builtin): New function.
13212 (nios2_expand_cache_builtin): New function.
13213 (nios2_expand_wrpie_builtin): New function.
13214 (nios2_expand_eni_builtin): New function.
13215 (nios2_expand_builtin): Add arch field handling and new builtin
13217 * doc/extend.texi (Altera Nios II Built-in Functions): Document
13219 * doc/md.texi (Machine Constraints): Document U and v constraints.
13221 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13222 Cesar Philippidis <cesar@codesourcery.com>
13223 Chung-Lin Tang <cltang@codesourcery.com>
13225 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
13226 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
13227 callee_save_reg_size and uses_anonymous_args fields.
13228 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
13229 (nios2_create_cfa_notes): New function.
13230 (nios2_adjust_stack): New function for adjusting stack.
13231 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
13232 Use nios2_adjust_stack.
13233 (nios2_expand_epilogue): Likewise.
13234 (nios2_expand_return): New function.
13235 (nios2_can_use_return_insn): Update for CDX pop.n usage.
13236 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
13237 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
13238 * config/nios2/nios2.md (return): Use nios2_expand_return.
13240 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13241 Cesar Philippidis <cesar@codesourcery.com>
13242 Chung-Lin Tang <cltang@codesourcery.com>
13244 * config/nios2/predicates.md (pop_operation): New.
13245 (ldwm_operation, stwm_operation): New.
13246 (nios2_hard_register_operand): New.
13247 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
13248 (ldstwm_operation_p): Declare.
13249 (gen_ldstwm_peep): Declare.
13250 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
13251 (base_reg_adjustment_p): New.
13252 (pop_operation_p): New.
13253 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
13254 (nios2_ldstwm_regset_p): New.
13255 (ldstwm_operation_p): New.
13257 (nios2_ldst_parallel): New.
13258 (struct ldswm_operand): Declare.
13259 (compare_ldstwm_operands): New.
13260 (can_use_cdx_ldstw): New.
13261 (gen_ldstwm_peep): New.
13262 * config/nios2/nios2-ldstwm.sml: New.
13263 * config/nios2/nios2.md: Include ldstwm.md.
13264 * config/nios2/ldstwm.md: Generated.
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/nios2.h (LABEL_ALIGN): Define.
13271 (REG_ALLOC_ORDER): Define.
13272 (ADJUST_REG_ALLOC_ORDER): Define.
13273 (HONOR_REG_ALLOC_ORDER): Define.
13274 (CDX_REG_P): Define.
13275 (ANDCLEAR_INT): Define.
13276 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
13277 (nios2_label_align): Declare.
13278 (nios2_cdx_narrow_form_p): Declare.
13279 (nios2_adjust_reg_alloc_order): Declare.
13280 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
13282 (nios2_large_unspec_reloc_p): New function, split from...
13283 (nios2_legitimate_pic_operand_p): ...here.
13284 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
13285 (nios2_print_operand_punct_valid_p): New.
13286 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
13287 (split_mem_address): New.
13288 (split_alu_insn): New.
13290 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
13291 (enum nios2_add_insn_kind): New.
13292 (nios2_add_insn_names, nios2_add_insn_narrow): New.
13293 (nios2_add_insn_classify): New.
13294 (nios2_add_insn_asm): New.
13295 (nios2_cdx_narrow_form_p): New.
13296 (label_align, min_labelno, max_labelno): New.
13297 (nios2_reorg): New.
13298 (nios2_label_align): New.
13299 (nios2_adjust_reg_alloc_order): New.
13300 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13301 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13302 * config/nios2/constraints.md (P): New constraint.
13303 * config/nios2/predicates.md (const_and_operand): New.
13304 (and_operand): New.
13305 (stack_memory_operand): New.
13306 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
13307 (length): Update to use nios2_cdx_narrow_form_p().
13308 (type): Add new insn type values.
13309 (control, alu, st, ld, shift): Update insn reservations with
13310 new insn type values.
13311 (*high, *lo_sum): Define new insn patterns for constant generation.
13312 (movqi_internal, movhi_internal, movsi_internal): Reduce
13313 alternatives, update asm template to handle CDX variants, update
13315 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
13316 template, update type attributes.
13317 (extendhisi2, extendqi<mode>2): Likewise.
13318 (addsi3): Change to use function for asm string.
13319 (subsi3): Add CDX notation to asm template, update type attributes.
13320 (negsi3, one_cmplsi3): Likewise.
13321 (andsi3): New pattern, specialized from logical patterns.
13322 (<code>si3): Remove and case, combine alternatives, update asm
13324 (<shift_op>si3): Add CDX notation, update type attributes.
13325 (rotrsi3): Update type attribute.
13326 (*merge, extzv, insv): New insn patterns.
13327 (return): Change to define_expand.
13328 (simple_return): Add CDX notation, update type attributes.
13329 (indirect_jump): Add CDX notation.
13330 (jump): Update asm cases, update length attribute expression.
13331 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
13332 (nios2_cbranch): Update asm cases and length attribute expression
13333 to handle CDX variants.
13334 (nios2_cmp<code>): Update asm template.
13335 (nop): Add CDX notation, update type attributes.
13336 (trap): Add CDX notation.
13337 (ctrapsi4): Update asm cases and length attribute expression to
13338 handle CDX variant.
13339 * doc/md.texi (Machine Constraints): Document P constraint.
13341 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13342 Cesar Philippidis <cesar@codesourcery.com>
13343 Chung-Lin Tang <cltang@codesourcery.com>
13345 * config/nios2/nios2.h (SMALL_INT12): New macro.
13346 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
13347 (nios2_valid_addr_expr_p): Use it.
13348 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
13349 with implicit "io" instructions on R2.
13350 * config/nios2/constraints.md (w): New constraint.
13351 * config/nios2/predicates.md (ldstio_memory_operand): New.
13352 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
13353 operand predicate and constraint.
13354 (ld<bh>io_signed, st<bhw>io>): Likewise.
13355 * doc/md.texi (Machine Constraints): Document w constraint.
13357 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13358 Cesar Philippidis <cesar@codesourcery.com>
13359 Chung-Lin Tang <cltang@codesourcery.com>
13361 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
13362 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
13363 Nios II architecture level.
13364 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
13365 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
13366 (OPTION_DEFAULT_SPECS): Define.
13367 (ASM_SPEC): Add -march= spec strings.
13368 * config/nios2/nios2.c (nios2_option_override): Check for
13369 conflicts involving new options.
13370 * config.gcc (nios2*-*-*): Support --with-arch=.
13371 * doc/invoke.texi (Option Summary, Nios II Options): Document
13372 -march=, -mbmx, and -mcdx.
13374 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
13376 PR rtl-optimization/66626
13377 * lra-constraints.c (lra_constraints): Prevent equivalence
13378 substitution for static chain pseudo in functions with nonlocal
13381 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13383 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
13384 (nios2_emit_stack_limit_check): Add size parameter. Handle
13385 -fstack-limit-symbol as well as -fstack-limit-register.
13386 (nios2_expand_prologue): Emit only a single stack limit check,
13387 even if multiple stack adjustments are required.
13388 (nios2_option_override): Diagnose unsupported combination of -fpic
13389 and -stack-limit-symbol.
13391 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
13393 * Makefile.in (top_srcdir): New.
13394 * configure.ac: Use AM_ZLIB.
13395 * configure: Regeneated.
13397 2015-07-14 Matthias Klose <doko@ubuntu.com>
13400 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
13402 2015-07-14 Richard Biener <rguenther@suse.de>
13404 PR tree-optimization/66863
13405 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
13406 what we record for conversion use stmt lhs inequalities.
13408 2015-07-14 Richard Biener <rguenther@suse.de>
13410 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
13411 (decision_tree::gen_gimple): Likewise.
13413 2015-07-14 Tom de Vries <tom@codesourcery.com>
13415 * gcc.c (greater_than_spec_func): Declare forward.
13416 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
13417 -ftree-parallelize-loops={0,1}.
13418 (static_spec_functions): Add greater_than_spec_func function with name
13420 (greater_than_spec_func): New function.
13422 2015-07-14 Richard Biener <rguenther@suse.de>
13424 * tree-ssa-dom.c (record_temporary_equivalences): Merge
13425 wideing type conversion case from record_equivalences_from_incoming_edge
13426 and use record_equality to record equivalences.
13427 (record_equivalences_from_incoming_edge): Call
13428 record_temporary_equivalences.
13430 2015-07-14 Richard Biener <rguenther@suse.de>
13432 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
13433 (struct if_expr): New.
13434 (struct with_expr): Likewise.
13435 (is_a_helper): Add helpers for if_expr and with_expr.
13436 (struct simplify): Add simplify_kind enum and member. Remove
13438 (simplify::simplify): Adjust.
13439 (lower_commutative): Adjust.
13440 (lower_opt_convert): Likewise.
13441 (lower_cond): Likewise.
13442 (replace_id): Handle with_expr and if_expr.
13443 (lower_for): Adjust.
13444 (dt_simplify::gen_1): New recursive worker, split out from ...
13445 (dt_simplify::gen): ... here. Deal with if and with expansion
13447 (capture_info::capture_info): Take context argument
13448 (capture_info::walk_result): Only analyze specific result.
13449 (parser::parse_result): New function.
13450 (parser::parse_simplify): Adjust to parse ifs with then end
13452 (parser::parse_if): Simplify.
13453 (parser::parse_pattern): Pass down simplify kind.
13454 * match.pd: Convert if structure to new syntax.
13456 2015-07-13 Marek Polacek <polacek@redhat.com>
13458 * rtl.c (rtx_equal_p_cb): Fix typo.
13460 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
13462 * omega.h: Don't include config.h, don't include params.h again if
13463 omega.h has already been included.
13464 * graphite-poly.h: Include sese.h.
13465 * graphite.c: Don't include sese.h, remove needless includes and
13466 minimize includes outside #ifdef HAVE_isl block.
13467 * graphite-blocking.c: Don't include sese.h, remove needless includes,
13468 and wrap entire file in #ifdef HAVE_isl
13469 * graphite-dependences.c: Likewise.
13470 * graphite-interchange.c: Likewise.
13471 * graphite-isl-ast-to-gimple.c: Likewise.
13472 * graphite-optimize-isl.c: Likewise.
13473 * graphite-poly.c: Likewise.
13474 * graphite-scop-detection.c: Likewise.
13475 * graphite-sese-to-poly.c: Likewise.
13477 2015-07-13 Tom de Vries <tom@codesourcery.com>
13479 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
13481 2015-07-13 Renlin Li <renlin.li@arm.com>
13484 * simplify-rtx.c (simplify_const_relational_operation): Add
13485 side_effects_p checks.
13487 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
13489 * bitmap.h: Fix double word typos.
13490 * builtins.c: Same.
13492 * cfgloopmanip.c: Same.
13495 * cgraphclones.c: Same.
13497 * config/aarch64/aarch64-protos.h: Same.
13498 * config/aarch64/aarch64.c: Same.
13499 * config/aarch64/aarch64.md: Same.
13500 * config/arm/arm.md: Same.
13501 * config/arm/arm1020e.md: Same.
13502 * config/arm/arm1026ejs.md: Same.
13503 * config/arm/arm926ejs.md: Same.
13504 * config/arm/fa526.md: Same.
13505 * config/arm/fa606te.md: Same.
13506 * config/arm/fa626te.md: Same.
13507 * config/arm/fa726te.md: Same.
13508 * config/arm/fmp626.md: Same.
13509 * config/darwin.c: Same.
13510 * config/epiphany/epiphany.c: Same.
13511 * config/frv/frv.c: Same.
13512 * config/ft32/ft32.c: Same.
13513 * config/gnu-user.h: Same.
13514 * config/h8300/constraints.md: Same.
13515 * config/i386/i386.c: Same.
13516 * config/i386/i386.md: Same.
13517 * config/iq2000/iq2000.md: Same.
13518 * config/mips/mips.c: Same.
13519 * config/mmix/mmix.md: Same.
13520 * config/moxie/moxie.c: Same.
13521 * config/nds32/nds32.md: Same.
13522 * config/pa/pa.h: Same.
13523 * config/rs6000/aix.h: Same.
13524 * config/rs6000/rs6000.h: Same.
13525 * config/sh/sh.c: Same.
13526 * config/tilegx/tilegx.md: Same.
13527 * config/tilepro/gen-mul-tables.cc: Same.
13530 * doc/invoke.texi: Same.
13532 * dwarf2out.c: Same.
13535 * genmatch.c: Same.
13536 * gimplify.c: Same.
13537 * hash-table.h: Same.
13538 * internal-fn.c: Same.
13540 * ipa-devirt.c: Same.
13543 * ipa-profile.c: Same.
13544 * ipa-prop.c: Same.
13545 * ipa-prop.h: Same.
13548 * reg-stack.c: Same.
13549 * regcprop.c: Same.
13554 * tree-inline.c: Same.
13555 * tree-sra.c: Same.
13556 * tree-ssa-dom.c: Same.
13557 * tree-ssa-loop-ivopts.c: Same.
13558 * tree-ssa-structalias.c: Same.
13559 * tree-ssa-tail-merge.c: Same.
13560 * tree-ssa-ter.c: Same.
13561 * tree-ssa-threadupdate.c: Same.
13562 * tree-ssa-uninit.c: Same.
13563 * tree-ssanames.c: Same.
13564 * tree-vect-loop-manip.c: Same.
13565 * tree-vrp.c: Same.
13567 * valtrack.c: Same.
13570 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
13572 PR middle-end/66726
13573 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
13574 tree_ssa_phiopt_worker): Call it.
13576 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
13578 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
13579 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
13582 2015-07-11 Marek Polacek <polacek@redhat.com>
13584 PR middle-end/66353
13585 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
13586 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
13587 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
13588 rather than bb_has_abnormal_call_pred.
13589 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
13590 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
13591 rather than bb_has_abnormal_call_pred.
13593 2015-07-10 Anatoly Sokolov <aesok@post.ru>
13595 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13596 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
13597 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13598 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
13599 v850_legitimate_address_p): New functions.
13600 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
13602 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
13605 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
13606 indirect sibcall with register arguments if register available
13607 for argument passing.
13608 (init_cumulative_args): Set cfun->machine->arg_reg_available
13609 to (cum->nregs > 0) or to true if function has a variable
13611 (function_arg_advance_32): Set cfun->machine->arg_reg_available
13612 to false if cum->nregs <= 0.
13613 * config/i386/i386.h (machine_function): Add arg_reg_available.
13615 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
13617 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
13618 and gen_higpart instead of gen_rtx_SUBREG.
13619 * config/i386/i386.md
13620 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
13621 (read-modify peephole2): Use gen_lowpart instead of
13622 gen_rtx_SUBREG for operand 5.
13624 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
13626 * config/tilepro/gen-mul-tables.cc (main): Change include list for
13628 * config/tilepro/mul-tables.c: Regenerate.
13629 * config/tilegx/mul-tables.c: Regenerate.
13631 2015-07-10 Richard Biener <rguenther@suse.de>
13633 * fold-const.c (distribute_bit_expr): Remove.
13634 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
13635 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
13636 to A & (B | C) and simplifying A << C1 << C2 to ...
13637 * match.pd: ... patterns here.
13639 2015-07-10 Jiong Wang <jiong.wang@arm.com>
13641 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
13642 Mark mem as READONLY and NOTRAP for PIC symbol.
13644 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
13646 * gimple-predict.h: New file.
13647 (gimple_predict_predictor, gimple_predict_set_predictor,
13648 gimple_predict_outcome, gimple_predict_set_outcome,
13649 gimple_build_predict): Relocate here.
13650 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
13651 gimple_predict_outcome, gimple_predict_set_outcome): Move to
13653 * gimple.c (gimple_build_predict): Move to gimple-predict.h
13654 * basic-block.h: Don't include cfghooks.h.
13655 * backend.h: Don't include predict.h.
13656 * cfghooks.h: Include predict.h.
13657 * gimple-pretty-print.c: Include gimple-predict.h.
13658 * gimplify.c: Likwise.
13659 * predict.c: Adjust includes.
13660 * tree-inline.c: Likewise.
13661 * asan.c: Likewise.
13662 * auto-inc-dec.c: Likewise.
13663 * auto-profile.c: Likewise.
13664 * bb-reorder.c: Likewise.
13665 * builtins.c: Likewise.
13666 * caller-save.c: Likewise.
13667 * calls.c: Likewise.
13668 * cfganal.c: Likewise.
13669 * cfgbuild.c: Likewise.
13671 * cfgcleanup.c: Likewise.
13672 * cfgexpand.c: Likewise.
13673 * cfghooks.c: Likewise.
13674 * cfgloopanal.c: Likewise.
13675 * cfgloop.c: Likewise.
13676 * cfgloopmanip.c: Likewise.
13677 * cfgrtl.c: Likewise.
13678 * cgraph.c: Likewise.
13679 * cgraphunit.c: Likewise.
13680 * combine.c: Likewise.
13681 * cprop.c: Likewise.
13684 * dojump.c: Likewise.
13686 * except.c: Likewise.
13687 * expmed.c: Likewise.
13688 * expr.c: Likewise.
13689 * final.c: Likewise.
13690 * fold-const.c: Likewise.
13691 * function.c: Likewise.
13692 * fwprop.c: Likewise.
13693 * gcc-plugin.h: Likewise.
13694 * gcse.c: Likewise.
13695 * genattrtab.c: Likewise.
13696 * genemit.c: Likewise.
13697 * gengtype.c: Likewise.
13698 * genopinit.c: Likewise.
13699 * genoutput.c: Likewise.
13700 * genpreds.c: Likewise.
13701 * genrecog.c: Likewise.
13702 * gimple-fold.c: Likewise.
13703 * gimple-iterator.c: Likewise.
13704 * gimple-ssa-isolate-paths.c: Likewise.
13705 * gimple-ssa-strength-reduction.c: Likewise.
13706 * graph.c: Likewise.
13707 * graphite-blocking.c: Likewise.
13708 * graphite.c: Likewise.
13709 * graphite-dependences.c: Likewise.
13710 * graphite-interchange.c: Likewise.
13711 * graphite-isl-ast-to-gimple.c: Likewise.
13712 * graphite-optimize-isl.c: Likewise.
13713 * graphite-poly.c: Likewise.
13714 * graphite-scop-detection.c: Likewise.
13715 * graphite-sese-to-poly.c: Likewise.
13716 * haifa-sched.c: Likewise.
13717 * ifcvt.c: Likewise.
13718 * internal-fn.c: Likewise.
13719 * ipa-cp.c: Likewise.
13720 * ipa-profile.c: Likewise.
13721 * ipa-split.c: Likewise.
13722 * ipa-utils.c: Likewise.
13723 * ira-build.c: Likewise.
13724 * ira-color.c: Likewise.
13725 * ira-conflicts.c: Likewise.
13726 * ira-costs.c: Likewise.
13727 * ira-emit.c: Likewise.
13728 * ira-lives.c: Likewise.
13729 * jump.c: Likewise.
13730 * loop-doloop.c: Likewise.
13731 * loop-init.c: Likewise.
13732 * loop-invariant.c: Likewise.
13733 * loop-unroll.c: Likewise.
13734 * lower-subreg.c: Likewise.
13735 * lra-assigns.c: Likewise.
13737 * lra-coalesce.c: Likewise.
13738 * lra-constraints.c: Likewise.
13739 * lra-lives.c: Likewise.
13740 * lto-cgraph.c: Likewise.
13741 * lto-streamer-in.c: Likewise.
13742 * mode-switching.c: Likewise.
13743 * modulo-sched.c: Likewise.
13744 * omp-low.c: Likewise.
13745 * optabs.c: Likewise.
13746 * passes.c: Likewise.
13747 * postreload.c: Likewise.
13748 * postreload-gcse.c: Likewise.
13749 * profile.c: Likewise.
13750 * recog.c: Likewise.
13751 * regstat.c: Likewise.
13752 * reload1.c: Likewise.
13753 * reorg.c: Likewise.
13754 * rtlanal.c: Likewise.
13755 * sched-ebb.c: Likewise.
13756 * sel-sched-ir.c: Likewise.
13757 * sese.c: Likewise.
13758 * shrink-wrap.c: Likewise.
13759 * simplify-rtx.c: Likewise.
13760 * stmt.c: Likewise.
13761 * store-motion.c: Likewise.
13762 * tracer.c: Likewise.
13763 * trans-mem.c: Likewise.
13764 * tree-call-cdce.c: Likewise.
13765 * tree-cfg.c: Likewise.
13766 * tree-cfgcleanup.c: Likewise.
13767 * tree-chkp.c: Likewise.
13768 * tree-complex.c: Likewise.
13769 * tree-eh.c: Likewise.
13770 * tree-if-conv.c: Likewise.
13771 * tree-loop-distribution.c: Likewise.
13772 * tree-outof-ssa.c: Likewise.
13773 * tree-parloops.c: Likewise.
13774 * tree-predcom.c: Likewise.
13775 * tree-pretty-print.c: Likewise.
13776 * tree-profile.c: Likewise.
13777 * tree-sra.c: Likewise.
13778 * tree-ssa.c: Likewise.
13779 * tree-ssa-coalesce.c: Likewise.
13780 * tree-ssa-dce.c: Likewise.
13781 * tree-ssa-dom.c: Likewise.
13782 * tree-ssa-forwprop.c: Likewise.
13783 * tree-ssa-ifcombine.c: Likewise.
13784 * tree-ssa-loop-ch.c: Likewise.
13785 * tree-ssa-loop-im.c: Likewise.
13786 * tree-ssa-loop-ivcanon.c: Likewise.
13787 * tree-ssa-loop-ivopts.c: Likewise.
13788 * tree-ssa-loop-manip.c: Likewise.
13789 * tree-ssa-loop-prefetch.c: Likewise.
13790 * tree-ssa-loop-unswitch.c: Likewise.
13791 * tree-ssa-math-opts.c: Likewise.
13792 * tree-ssa-phiopt.c: Likewise.
13793 * tree-ssa-pre.c: Likewise.
13794 * tree-ssa-reassoc.c: Likewise.
13795 * tree-ssa-sink.c: Likewise.
13796 * tree-ssa-tail-merge.c: Likewise.
13797 * tree-ssa-threadedge.c: Likewise.
13798 * tree-ssa-threadupdate.c: Likewise.
13799 * tree-switch-conversion.c: Likewise.
13800 * tree-tailcall.c: Likewise.
13801 * tree-vect-data-refs.c: Likewise.
13802 * tree-vect-loop.c: Likewise.
13803 * tree-vect-loop-manip.c: Likewise.
13804 * tree-vectorizer.c: Likewise.
13805 * tree-vrp.c: Likewise.
13806 * ubsan.c: Likewise.
13807 * value-prof.c: Likewise.
13808 * varasm.c: Likewise.
13809 * var-tracking.c: Likewise.
13810 * config/aarch64/aarch64-builtins.c: Likewise.
13811 * config/aarch64/aarch64.c: Likewise.
13812 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13813 * config/alpha/alpha.c: Likewise.
13814 * config/arc/arc.c: Likewise.
13815 * config/arm/arm.c: Likewise.
13816 * config/avr/avr.c: Likewise.
13817 * config/bfin/bfin.c: Likewise.
13818 * config/c6x/c6x.c: Likewise.
13819 * config/cr16/cr16.c: Likewise.
13820 * config/cris/cris.c: Likewise.
13821 * config/darwin.c: Likewise.
13822 * config/darwin-c.c: Likewise.
13823 * config/epiphany/epiphany.c: Likewise.
13824 * config/epiphany/mode-switch-use.c: Likewise.
13825 * config/epiphany/resolve-sw-modes.c: Likewise.
13826 * config/fr30/fr30.c: Likewise.
13827 * config/frv/frv.c: Likewise.
13828 * config/ft32/ft32.c: Likewise.
13829 * config/h8300/h8300.c: Likewise.
13830 * config/i386/i386.c: Likewise.
13831 * config/i386/winnt.c: Likewise.
13832 * config/ia64/ia64.c: Likewise.
13833 * config/iq2000/iq2000.c: Likewise.
13834 * config/lm32/lm32.c: Likewise.
13835 * config/m32c/m32c.c: Likewise.
13836 * config/m32r/m32r.c: Likewise.
13837 * config/m68k/m68k.c: Likewise.
13838 * config/mcore/mcore.c: Likewise.
13839 * config/mep/mep.c: Likewise.
13840 * config/microblaze/microblaze.c: Likewise.
13841 * config/mips/mips.c: Likewise.
13842 * config/mmix/mmix.c: Likewise.
13843 * config/mn10300/mn10300.c: Likewise.
13844 * config/moxie/moxie.c: Likewise.
13845 * config/msp430/msp430.c: Likewise.
13846 * config/nds32/nds32.c: Likewise.
13847 * config/nds32/nds32-cost.c: Likewise.
13848 * config/nds32/nds32-fp-as-gp.c: Likewise.
13849 * config/nds32/nds32-intrinsic.c: Likewise.
13850 * config/nds32/nds32-isr.c: Likewise.
13851 * config/nds32/nds32-md-auxiliary.c: Likewise.
13852 * config/nds32/nds32-memory-manipulation.c: Likewise.
13853 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13854 * config/nds32/nds32-predicates.c: Likewise.
13855 * config/nios2/nios2.c: Likewise.
13856 * config/nvptx/nvptx.c: Likewise.
13857 * config/pa/pa.c: Likewise.
13858 * config/pdp11/pdp11.c: Likewise.
13859 * config/rl78/rl78.c: Likewise.
13860 * config/rs6000/rs6000.c: Likewise.
13861 * config/rx/rx.c: Likewise.
13862 * config/s390/s390.c: Likewise.
13863 * config/sh/sh.c: Likewise.
13864 * config/sh/sh-mem.cc: Likewise.
13865 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13866 * config/sh/sh_treg_combine.cc: Likewise.
13867 * config/sparc/sparc.c: Likewise.
13868 * config/spu/spu.c: Likewise.
13869 * config/stormy16/stormy16.c: Likewise.
13870 * config/tilegx/tilegx.c: Likewise.
13871 * config/tilepro/tilepro.c: Likewise.
13872 * config/v850/v850.c: Likewise.
13873 * config/vax/vax.c: Likewise.
13874 * config/visium/visium.c: Likewise.
13875 * config/xtensa/xtensa.c: Likewise.
13877 2015-07-10 Richard Biener <rguenther@suse.de>
13879 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
13880 (decision_tree::gen_gimple): Likewise.
13881 (decision_tree::gen_generic): Likewise.
13883 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
13886 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
13887 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
13889 2015-07-10 Jakub Jelinek <jakub@redhat.com>
13891 PR middle-end/66820
13892 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
13893 or ORT_TASK contexts.
13894 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
13897 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13899 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
13902 2015-07-10 Tom de Vries <tom@codesourcery.com>
13904 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
13905 insert nit + 1 bound.
13907 2015-07-10 Richard Biener <rguenther@suse.de>
13909 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
13910 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
13911 (if_convertible_loop_p_1): For this always compute bb predicates.
13912 (if_convertible_loop_p): And free them.
13914 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13916 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
13919 2015-07-10 Richard Biener <rguenther@suse.de>
13921 PR tree-optimization/66823
13922 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
13923 inverted predicate.
13925 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
13927 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
13928 to handle mips[32|64]r3 and mips[32|64]r5.
13930 2015-07-09 Jakub Jelinek <jakub@redhat.com>
13932 PR middle-end/66633
13933 * tree-nested.c (get_static_chain): Or in a flag into
13934 info->static_chain_added.
13935 (get_frame_field, get_nonlocal_debug_decl): Likewise.
13936 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
13937 2015-07-01 changes.
13938 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
13939 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
13942 PR tree-optimization/66718
13943 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
13945 (vect_simd_lane_linear): New function.
13946 (vectorizable_simd_clone_call): Support using linear arguments for
13947 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
13949 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
13952 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
13954 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
13956 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
13957 Use machine mode, not enum machine_mode in the prototype.
13959 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
13960 classify 128-bit floating point support.
13961 (FLOAT128_IBM_P): Likewise.
13962 (FLOAT128_VECTOR_P): Likewise.
13963 (FLOAT128_2REG_P): Likewise.
13964 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
13965 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
13966 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
13967 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
13969 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
13970 tests against TFmode/TDmode, since those modes do not use VSX
13972 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
13974 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
13975 tests against TFmode, etc.
13976 (invalid_e500_subreg): Add tests against IFmode/KFmode.
13977 (reg_offset_addressing_ok_p): Likewise.
13978 (rs6000_legitimate_offset_address_p): Likewise.
13979 (rs6000_legitimize_address): Likewise.
13980 (rs6000_legitimize_reload_address): Likewise.
13981 (rs6000_legitimate_address_p): Clean up tests against TFmode and
13982 TDmode to use the new helper macros, which will include IFmode and
13984 (rs6000_emit_move): Likewise.
13985 (rs6000_darwin64_record_arg_recurse): Likewise.
13986 (print_operand): Likewise.
13987 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
13988 that uses a single vector register as a vector and not as a
13989 floating point register in terms of the calling sequence.
13990 (rs6000_discover_homogeneous_aggregate): Likewise.
13991 (rs6000_return_in_memory): Likewise.
13992 (init_cumulative_args): Likewise.
13993 (rs6000_function_arg_boundary): Likewise.
13994 (rs6000_function_arg_advance_1): Likewise.
13995 (rs6000_function_arg): Likewise.
13996 (rs6000_pass_by_reference): Likewise.
13997 (rs6000_gimplify_va_arg): Likewise.
13998 (rs6000_secondary_reload_memory): Use machine_mode not enum
14000 (rs6000_split_multireg_move): Use new helper macros.
14001 (spe_func_has_64bit_regs_p): Likewise.
14002 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
14003 (output_toc): Use new helper macros.
14004 (rs6000_register_move_cost): Likewise.
14005 (rs6000_function_value): Add IEEE 128-bit floating point calling
14007 (rs6000_libcall_value): Likewise.
14008 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
14009 floating point support.
14010 (rs6000_vector_mode_supported_p): Likewise.
14012 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
14014 PR rtl-optimization/66782
14015 * lra-int.h (struct lra_insn_recog_data): Add comment about
14016 clobbered hard regs for arg_hard_regs.
14017 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
14018 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
14019 Add condition for processing used hard regs.
14020 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
14021 Process clobbered hard regs.
14023 2015-07-09 Michael Matz <matz@suse.de>
14025 * genmatch.c (fprintf_indent): New function.
14026 (operand::gen_transform): Add indent parameter.
14027 (expr::gen_transform, c_expr::gen_transform,
14028 capture::gen_transform): Ditto and use fprintf_indent.
14029 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
14030 (dt_operand::gen, dt_operand::gen_predicate,
14031 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
14032 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
14033 (decision_tree::gen_gimple): Adjust calls and indent generated
14035 (decision_tree::gen_generic): Ditto.
14036 (write_predicate): Ditto.
14038 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
14041 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
14042 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
14043 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
14044 {GENERAL,SSE,MMX}_REG_P where appropriate.
14046 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
14048 * lto-streamer.h: Don't include target.h and alloc-pool.h.
14049 * builtins.c: Adjust includes.
14050 * gimple.c: Likewise.
14051 * ipa-icf.c: Likewise.
14052 * lto-opts.c: Likewise.
14053 * ipa-reference.c: Likewise.
14054 * lto-section-out.c: Likewise.
14055 * lto-streamer-in.c: Likewise.
14056 * lto-streamer-out.c: Likewise.
14057 * opts-global.c: Likewise.
14058 * symtab.c: Likewise.
14059 * tree-chkp.c: Likewise.
14060 * tree-ssa-live.c: Likewise.
14061 * tree-streamer-in.c: Likewise.
14062 * tree-streamer-out.c: Likewise.
14063 * config/darwin.c: Likewise.
14064 * config/i386/winnt.c: Likewise.
14066 2015-07-09 Richard Biener <rguenther@suse.de>
14068 * genmatch.c (struct expr): Add force_single_use flag.
14069 (expr::expr): Add copy constructor.
14070 (capture_info::walk_match): Gather force_single_use captures.
14071 (expr::gen_transform): Use possibly NULLified sequence.
14072 (dt_simplify::gen): Apply single-use restrictions by NULLifying
14073 seq if any constrained expr is not single-use.
14074 (parser::parse_expr): Refactor to allow multiple flags. Handle
14075 's' flag to force an expression have a single-use if the pattern
14076 simplifies to more than one statement.
14077 * match.pd: Convert most single_use conditionals to :s flags.
14079 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
14081 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
14082 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
14083 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
14085 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
14087 * flags.h: Don't include flag-types.h or options.h.
14088 * opts-common.c: Adjust includes.
14089 * opts-global.c: Likewise.
14090 * common/config/epiphany/epiphany-common.c: Likewise.
14092 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
14095 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
14098 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
14101 * config/i386/i386.c (ix86_return_in_memory): Return true
14102 if int_size_in_bytes returns negative for IA MCU.
14104 2015-07-09 Marek Polacek <polacek@redhat.com>
14106 PR tree-optimization/66718
14107 * Makefile.in (OBJS): Add gimple-laddress.o.
14108 * passes.def: Schedule pass_laddress.
14109 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
14110 * tree-pass.h (make_pass_laddress): Declare.
14111 * gimple-laddress.c: New file.
14113 2015-07-09 Richard Biener <rguenther@suse.de>
14115 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
14117 2015-07-09 Richard Biener <rguenther@suse.de>
14119 PR tree-optimization/66807
14120 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
14122 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
14124 * function.c (stack_protect_epilogue): Use if rather than switch for
14125 check targetm.have_stack_protect_test.
14127 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14129 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
14130 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
14131 * config/arc/arc.h: Likewise.
14132 * config/arm/arm.h: Likewise.
14133 * config/bfin/bfin.h: Likewise.
14134 * config/epiphany/epiphany.h: Likewise.
14135 * config/frv/frv.h: Likewise.
14136 * config/ia64/ia64.h: Likewise.
14137 * config/iq2000/iq2000.h: Likewise.
14138 * config/lm32/lm32.h: Likewise.
14139 * config/m32r/m32r.h: Likewise.
14140 * config/mcore/mcore.h: Likewise.
14141 * config/mep/mep.h: Likewise.
14142 * config/microblaze/microblaze.h: Likewise.
14143 * config/mips/mips.h: Likewise.
14144 * config/mmix/mmix.h: Likewise.
14145 * config/mn10300/mn10300.h: Likewise.
14146 * config/nds32/nds32.h: Likewise.
14147 * config/nios2/nios2.h: Likewise.
14148 * config/pa/pa.h: Likewise.
14149 * config/rl78/rl78.h: Likewise.
14150 * config/sh/sh.h: Likewise.
14151 * config/sparc/sparc.h: Likewise.
14152 * config/stormy16/stormy16.h: Likewise.
14153 * config/tilegx/tilegx.h: Likewise.
14154 * config/tilepro/tilepro.h: Likewise.
14155 * config/v850/v850.h: Likewise.
14156 * config/xtensa/xtensa.h: Likewise.
14157 * doc/tm.texi: Regenerate.
14158 * doc/tm.texi.in: Adjust.
14159 * combine.c (simplify_set): Likewise.
14160 (simplify_comparison): Likewise.
14161 * expr.c (store_constructor): Likewise.
14162 * internal-fn.c (expand_arith_overflow): Likewise.
14163 * reload.c (push_reload): Likewise.
14164 (find_reloads): Likewise.
14165 (find_reloads_subreg_address): Likewise.
14166 * reload1.c (eliminate_regs_1): Likewise.
14167 * rtlanal.c (nonzero_bits1): Likewise.
14168 (num_sign_bit_copies1): Likewise.
14169 * simplify-rtx.c (simplify_truncation): Likewise.
14171 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14173 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
14174 of AUTO_INC_DEC with the preprocessor.
14175 * combine.c (combine_instructions): Likewise.
14176 (can_combine_p): Likewise.
14177 (try_combine): Likewise.
14178 * emit-rtl.c (try_split): Likewise.
14179 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14180 * lower-subreg.c (resolve_simple_move): Likewise.
14181 * lra.c (update_inc_notes): Likewise.
14182 * recog.c (asm_operand_ok): Likewise.
14183 (constrain_operands): Likewise.
14184 * regrename.c (scan_rtx_address): Likewise.
14185 * reload.c (update_auto_inc_notes): Likewise.
14186 (reg_inc_found_and_valid_p): Likewise.
14187 * reload1.c (reload): Likewise.
14188 (emit_input_reload_insns): Likewise.
14189 (delete_output_reload): Likewise.
14190 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14191 * valtrack.c (cleanup_auto_inc_dec): Likewise.
14193 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14195 * rtl.h: Always define AUTO_INC_DEC.
14196 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
14197 * combine.c (combine_instructions): Likewise.
14198 (can_combine_p): Likewise.
14199 (try_combine): Likewise.
14200 * emit-rtl.c (try_split): Likewise.
14201 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14202 * lower-subreg.c (resolve_simple_move): Likewise.
14203 * lra.c (update_inc_notes): Likewise.
14204 * recog.c (asm_operand_ok): Likewise.
14205 (constrain_operands): Likewise.
14206 * regrename.c (scan_rtx_address): Likewise.
14207 * reload.c (update_auto_inc_notes): Likewise.
14208 (find_equiv_reg): Likewise.
14209 * reload1.c (reload): Likewise.
14210 (reload_as_needed): Likewise.
14211 (choose_reload_regs): Likewise.
14212 (emit_input_reload_insns): Likewise.
14213 (delete_output_reload): Likewise.
14214 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14215 * valtrack.c (cleanup_auto_inc_dec): Likewise.
14217 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14219 * combine.c (can_combine_def_p): Don't check the value of
14220 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
14221 (combinable_i3pat): Likewise.
14222 (mark_used_regs_combine): Likewise.
14223 * regrename.c (rename_chains): Likewise.
14224 * reload.c (find_reloads_address): Likewise.
14225 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14227 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14229 * combine.c (update_rsp_from_reg_equal): Don't check if
14230 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
14231 (reg_nonzero_bits_for_combine): Likewise.
14232 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
14234 * config/frv/frv.h: Likewise.
14235 * config/lm32/lm32.h: Likewise.
14236 * config/mep/mep.h: Likewise.
14237 * config/mips/mips.h: Likewise.
14238 * config/rs6000/rs6000.h: Likewise.
14239 * config/sh/sh.h: Likewise.
14240 * config/tilegx/tilegx.h (enum reg_class): Likewise.
14241 * config/tilepro/tilepro.h: Likewise.
14242 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
14243 * doc/tm.texi: Regenerate.
14244 * doc/tm.texi.in: Adjust.
14245 * rtlanal.c (nonzero_bits1): Likewise.
14247 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14249 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
14250 with the preprocessor.
14251 (combine_instructions): Likewise.
14252 (try_combine): Likewise.
14254 (distribute_notes): Likewise.
14256 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14258 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
14260 (simplify_set): Likewise.
14261 * cse.c (cse_insn): Likewise.
14262 * fold-const.c (fold_single_bit_test): Likewise.
14263 (fold_unary_loc): Likewise.
14264 * postreload.c (reload_cse_simplify_set): Likewise.
14265 (reload_cse_simplify_operands): Likewise.
14267 2015-07-08 Jiong Wang <jiong.wang@arm.com>
14269 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
14270 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
14272 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
14275 * config/i386/x86intrin.h: Include <adxintrin.h> even if
14276 __iamcu__ is defined.
14278 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
14280 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
14282 2015-07-08 Iain Sandoe <iain@codesourcery.com>
14285 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
14286 names from preservation.
14288 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
14291 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
14293 (function_arg_advance_32): Don't pass vectors in registers for
14295 (function_arg_32): Likewise.
14296 (ix86_return_in_memory): Don't return vectors in registers for
14299 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
14301 PR middle-end/66334
14302 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
14303 hard regno live at the start of BB with incoming abnormal edges.
14304 * lra-lives.c (process_bb_lives): Ditto.
14306 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
14309 * config/nvptx/mkoffload.c (main): Create an offload image only in
14310 64-bit configurations.
14312 2015-07-08 Martin Liska <mliska@suse.cz>
14315 * tree-sra.c (create_access_1): Call ctor without brackets.
14316 (create_artificial_child_access): Likewise.
14318 2015-07-08 Richard Biener <rguenther@suse.de>
14320 PR tree-optimization/66793
14321 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
14322 Properly split the block after stmts ending it.
14324 2015-07-08 Richard Biener <rguenther@suse.de>
14326 PR tree-optimization/66794
14327 * passes.c (execute_function_todo): Assert that post-dominators
14329 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
14330 Free post-dominators.
14332 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14334 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
14337 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
14339 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
14340 more than or equal 8 and less than 32 when optimizing for size.
14342 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14344 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
14345 COSTS_N_INSNS (1) and increment it appropriately throughout the
14348 2015-07-08 Richard Biener <rguenther@suse.de>
14350 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
14352 2015-07-08 Alan Modra <amodra@gmail.com>
14354 * target.def (rtx_costs): Remove "code" param, add "mode".
14355 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
14356 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
14357 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
14358 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
14359 call. Track mode when given in rtx.
14360 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
14361 (default_address_cost): Pass Pmode to rtx_cost.
14362 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
14363 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
14365 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
14366 (notreg_cost): Add mode param. Use it.
14367 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
14368 mode param and pass to set_src_cost. Update all calls.
14369 (hash_scan_set): Formatting.
14370 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
14371 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
14373 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
14374 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
14375 emit_store_flag): Update set_src_cost and rtx_cost calls.
14376 * auto-inc-dec.c (attempt_change): Likewise.
14377 * calls.c (precompute_register_parameters): Likewise.
14378 * combine.c (expand_compound_operation, make_extraction,
14379 force_to_mode, distribute_and_simplify_rtx): Likewise.
14380 * dojump.c (prefer_and_bit_test): Likewise.
14381 * dse.c (find_shift_sequence): Likewise.
14382 * expr.c (compress_float_constant): Likewise.
14383 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
14384 * ifcvt.c (noce_try_sign_mask): Likewise.
14385 * loop-doloop.c (doloop_optimize): Likewise.
14386 * loop-invariant.c (create_new_invariant): Likewise.
14387 * lower-subreg.c (shift_cost, compute_costs): Likewise.
14388 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
14389 lshift_cheap_p): Likewise.
14390 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
14391 try_replace_in_use, reload_cse_move2add): Likewise.
14392 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
14394 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14395 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
14396 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
14397 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
14398 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
14399 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
14401 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
14402 * config/arc/arc.c (arc_rtx_costs): Likewise.
14403 * config/arm/arm.c (arm_rtx_costs): Likewise.
14404 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
14405 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
14406 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
14407 * config/cris/cris.c (cris_rtx_costs): Likewise.
14408 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
14409 * config/frv/frv.c (frv_rtx_costs): Likewise.
14410 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
14411 * config/i386/i386.c (ix86_rtx_costs): Likewise.
14412 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
14413 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
14414 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
14415 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
14416 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
14417 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
14418 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
14419 * config/mep/mep.c (mep_rtx_cost): Likewise.
14420 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
14421 * config/mips/mips.c (mips_rtx_costs): Likewise.
14422 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
14423 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
14424 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
14425 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
14426 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
14427 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
14428 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
14429 * config/pa/pa.c (hppa_rtx_costs): Likewise.
14430 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
14431 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
14432 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
14433 * config/s390/s390.c (s390_rtx_costs): Likewise.
14434 * config/sh/sh.c (sh_rtx_costs): Likewise.
14435 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
14436 * config/spu/spu.c (spu_rtx_costs): Likewise.
14437 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
14438 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
14439 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
14440 * config/v850/v850.c (v850_rtx_costs): Likewise.
14441 * config/vax/vax.c (vax_rtx_costs): Likewise.
14442 * config/visium/visium.c (visium_rtx_costs): Likewise.
14443 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
14444 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
14445 "code" param, and pass as outer_code to first rtx_cost call. Pass
14446 mode to rtx_cost calls.
14447 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
14449 (aarch64_rtx_costs_wrapper): Update.
14450 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
14451 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
14453 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
14454 and rtx_cost calls.
14455 (avr_operand_rtx_cost): Similarly.
14456 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
14457 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
14458 * config/mips/mips.c (mips_stack_address_p): Comment typo.
14459 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
14460 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
14461 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
14463 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
14464 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
14465 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
14466 * doc/tm.texi: Regenerate.
14468 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
14470 * tree-core.h: Include symtab.h.
14471 * rtl.h: Include hard-reg-set.h but not flags.h.
14472 (HARD_CONST): Remove condition compilation involving HARD_CONST since
14473 hard-reg-set.h is always included.
14474 * regs.h: Don't include hard-reg-set.h or rtl.h.
14475 * cfg.h: Include dominance.h.
14476 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
14477 * backend.h: New. Aggregate commonly used backend header files.
14478 * gimple-ssa.h: Don't include tree-hasher.h.
14479 * ssa.h: New. Aggregate commonly used SSA header files.
14480 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
14481 * sel-sched-ir.h: Flatten includes.
14482 * lra-int.h: Flatten completely.
14483 * sel-sched-dump.h: Flatten includes.
14484 * ira-int.h: Flatten includes.
14485 * gimple-streamer.h: Remove all includes.
14486 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
14487 * resource.h: Flatten hard-reg-set.h and df.h.
14488 * sched-int.h: Flatten insn-arrt.h and df.h.
14489 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
14490 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
14491 * genattrtab.c (write_header): Adjust generated includes.
14492 * genautomata.c (main): Likewise.
14493 * genconditions.c (write-header): Likewise.
14494 * genemit.c (main): Likewise.
14495 * gengtype.c (open_base_files): Likewise.
14496 * genopinit.c (main): Likewise.
14497 * genoutput.c (output_prologue): Likewise.
14498 * genpeep.c (main): Likewise.
14499 * genpreds.c (write_insn_preds_c): Likewise.
14500 * genrecog.c (write_header): Likewise.
14501 * alias.c: Adjust includes.
14502 * asan.c: Likewise.
14503 * attribs.c: Likewise.
14504 * auto-inc-dec.c: Likewise.
14505 * auto-profile.c: Likewise.
14506 * bb-reorder.c: Likewise.
14507 * bt-load.c: Likewise.
14508 * builtins.c: Likewise.
14509 * caller-save.c: Likewise.
14510 * calls.c: Likewise.
14511 * ccmp.c: Likewise.
14513 * cfganal.c: Likewise.
14514 * cfgbuild.c: Likewise.
14515 * cfgcleanup.c: Likewise.
14516 * cfgexpand.c: Likewise.
14517 * cfghooks.c: Likewise.
14518 * cfgloop.c: Likewise.
14519 * cfgloopanal.c: Likewise.
14520 * cfgloopmanip.c: Likewise.
14521 * cfgrtl.c: Likewise.
14522 * cgraph.c: Likewise.
14523 * cgraphbuild.c: Likewise.
14524 * cgraphclones.c: Likewise.
14525 * cgraphunit.c: Likewise.
14526 * cilk-common.c: Likewise.
14527 * combine-stack-adj.c: Likewise.
14528 * combine.c: Likewise.
14529 * compare-elim.c: Likewise.
14530 * convert.c: Likewise.
14531 * coverage.c: Likewise.
14532 * cppbuiltin.c: Likewise.
14533 * cprop.c: Likewise.
14535 * cselib.c: Likewise.
14536 * data-streamer-in.c: Likewise.
14537 * data-streamer-out.c: Likewise.
14538 * data-streamer.c: Likewise.
14539 * dbxout.c: Likewise.
14542 * debug.c: Likewise.
14543 * df-core.c: Likewise.
14544 * df-problems.c: Likewise.
14545 * df-scan.c: Likewise.
14547 * dojump.c: Likewise.
14548 * dominance.c: Likewise.
14549 * domwalk.c: Likewise.
14550 * double-int.c: Likewise.
14552 * dumpfile.c: Likewise.
14553 * dwarf2asm.c: Likewise.
14554 * dwarf2cfi.c: Likewise.
14555 * dwarf2out.c: Likewise.
14556 * emit-rtl.c: Likewise.
14557 * et-forest.c: Likewise.
14558 * except.c: Likewise.
14559 * explow.c: Likewise.
14560 * expmed.c: Likewise.
14561 * expr.c: Likewise.
14562 * final.c: Likewise.
14563 * fixed-value.c: Likewise.
14564 * fold-const.c: Likewise.
14565 * function.c: Likewise.
14566 * fwprop.c: Likewise.
14567 * gcc-plugin.h: Likewise.
14568 * gcse-common.c: Likewise.
14569 * gcse.c: Likewise.
14570 * generic-match-head.c: Likewise.
14571 * ggc-page.c: Likewise.
14572 * gimple-builder.c: Likewise.
14573 * gimple-expr.c: Likewise.
14574 * gimple-fold.c: Likewise.
14575 * gimple-iterator.c: Likewise.
14576 * gimple-low.c: Likewise.
14577 * gimple-match-head.c: Likewise.
14578 * gimple-pretty-print.c: Likewise.
14579 * gimple-ssa-isolate-paths.c: Likewise.
14580 * gimple-ssa-strength-reduction.c: Likewise.
14581 * gimple-streamer-in.c: Likewise.
14582 * gimple-streamer-out.c: Likewise.
14583 * gimple-walk.c: Likewise.
14584 * gimple.c: Likewise.
14585 * gimplify-me.c: Likewise.
14586 * gimplify.c: Likewise.
14587 * godump.c: Likewise.
14588 * graph.c: Likewise.
14589 * graphite-blocking.c: Likewise.
14590 * graphite-dependences.c: Likewise.
14591 * graphite-interchange.c: Likewise.
14592 * graphite-isl-ast-to-gimple.c: Likewise.
14593 * graphite-optimize-isl.c: Likewise.
14594 * graphite-poly.c: Likewise.
14595 * graphite-scop-detection.c: Likewise.
14596 * graphite-sese-to-poly.c: Likewise.
14597 * graphite.c: Likewise.
14598 * haifa-sched.c: Likewise.
14599 * hw-doloop.c: Likewise.
14600 * ifcvt.c: Likewise.
14601 * init-regs.c: Likewise.
14602 * internal-fn.c: Likewise.
14603 * ipa-chkp.c: Likewise.
14604 * ipa-comdats.c: Likewise.
14605 * ipa-cp.c: Likewise.
14606 * ipa-devirt.c: Likewise.
14607 * ipa-icf-gimple.c: Likewise.
14608 * ipa-icf.c: Likewise.
14609 * ipa-inline-analysis.c: Likewise.
14610 * ipa-inline-transform.c: Likewise.
14611 * ipa-inline.c: Likewise.
14612 * ipa-polymorphic-call.c: Likewise.
14613 * ipa-profile.c: Likewise.
14614 * ipa-prop.c: Likewise.
14615 * ipa-pure-const.c: Likewise.
14616 * ipa-ref.c: Likewise.
14617 * ipa-reference.c: Likewise.
14618 * ipa-split.c: Likewise.
14619 * ipa-utils.c: Likewise.
14620 * ipa-visibility.c: Likewise.
14622 * ira-build.c: Likewise.
14623 * ira-color.c: Likewise.
14624 * ira-conflicts.c: Likewise.
14625 * ira-costs.c: Likewise.
14626 * ira-emit.c: Likewise.
14627 * ira-lives.c: Likewise.
14629 * jump.c: Likewise.
14630 * langhooks.c: Likewise.
14632 * loop-doloop.c: Likewise.
14633 * loop-init.c: Likewise.
14634 * loop-invariant.c: Likewise.
14635 * loop-iv.c: Likewise.
14636 * loop-unroll.c: Likewise.
14637 * lower-subreg.c: Likewise.
14638 * lra-assigns.c: Likewise.
14639 * lra-coalesce.c: Likewise.
14640 * lra-constraints.c: Likewise.
14641 * lra-eliminations.c: Likewise.
14642 * lra-lives.c: Likewise.
14643 * lra-remat.c: Likewise.
14644 * lra-spills.c: Likewise.
14646 * lto-cgraph.c: Likewise.
14647 * lto-compress.c: Likewise.
14648 * lto-opts.c: Likewise.
14649 * lto-section-in.c: Likewise.
14650 * lto-section-out.c: Likewise.
14651 * lto-streamer-in.c: Likewise.
14652 * lto-streamer-out.c: Likewise.
14653 * lto-streamer.c: Likewise.
14655 * mode-switching.c: Likewise.
14656 * modulo-sched.c: Likewise.
14657 * omega.c: Likewise.
14658 * omp-low.c: Likewise.
14659 * optabs.c: Likewise.
14660 * opts-global.c: Likewise.
14661 * passes.c: Likewise.
14662 * plugin.c: Likewise.
14663 * postreload-gcse.c: Likewise.
14664 * postreload.c: Likewise.
14665 * predict.c: Likewise.
14666 * print-rtl.c: Likewise.
14667 * print-tree.c: Likewise.
14668 * profile.c: Likewise.
14669 * real.c: Likewise.
14670 * realmpfr.c: Likewise.
14671 * recog.c: Likewise.
14673 * reg-stack.c: Likewise.
14674 * regcprop.c: Likewise.
14675 * reginfo.c: Likewise.
14676 * regrename.c: Likewise.
14677 * regstat.c: Likewise.
14678 * reload.c: Likewise.
14679 * reload1.c: Likewise.
14680 * reorg.c: Likewise.
14681 * resource.c: Likewise.
14682 * rtl-chkp.c: Likewise.
14683 * rtlanal.c: Likewise.
14684 * rtlhooks.c: Likewise.
14685 * sanopt.c: Likewise.
14686 * sched-deps.c: Likewise.
14687 * sched-ebb.c: Likewise.
14688 * sched-rgn.c: Likewise.
14689 * sched-vis.c: Likewise.
14690 * sdbout.c: Likewise.
14691 * sel-sched-dump.c: Likewise.
14692 * sel-sched-ir.c: Likewise.
14693 * sel-sched.c: Likewise.
14694 * sese.c: Likewise.
14695 * shrink-wrap.c: Likewise.
14696 * simplify-rtx.c: Likewise.
14697 * stack-ptr-mod.c: Likewise.
14698 * stmt.c: Likewise.
14699 * stor-layout.c: Likewise.
14700 * store-motion.c: Likewise.
14701 * stringpool.c: Likewise.
14702 * symtab.c: Likewise.
14703 * target-globals.c: Likewise.
14704 * targhooks.c: Likewise.
14705 * toplev.c: Likewise.
14706 * tracer.c: Likewise.
14707 * trans-mem.c: Likewise.
14708 * tree-affine.c: Likewise.
14709 * tree-browser.c: Likewise.
14710 * tree-call-cdce.c: Likewise.
14711 * tree-cfg.c: Likewise.
14712 * tree-cfgcleanup.c: Likewise.
14713 * tree-chkp-opt.c: Likewise.
14714 * tree-chkp.c: Likewise.
14715 * tree-chrec.c: Likewise.
14716 * tree-complex.c: Likewise.
14717 * tree-data-ref.c: Likewise.
14718 * tree-dfa.c: Likewise.
14719 * tree-diagnostic.c: Likewise.
14720 * tree-dump.c: Likewise.
14721 * tree-eh.c: Likewise.
14722 * tree-emutls.c: Likewise.
14723 * tree-if-conv.c: Likewise.
14724 * tree-inline.c: Likewise.
14725 * tree-into-ssa.c: Likewise.
14726 * tree-iterator.c: Likewise.
14727 * tree-loop-distribution.c: Likewise.
14728 * tree-nested.c: Likewise.
14729 * tree-nrv.c: Likewise.
14730 * tree-object-size.c: Likewise.
14731 * tree-outof-ssa.c: Likewise.
14732 * tree-parloops.c: Likewise.
14733 * tree-phinodes.c: Likewise.
14734 * tree-predcom.c: Likewise.
14735 * tree-pretty-print.c: Likewise.
14736 * tree-profile.c: Likewise.
14737 * tree-scalar-evolution.c: Likewise.
14738 * tree-sra.c: Likewise.
14739 * tree-ssa-address.c: Likewise.
14740 * tree-ssa-alias.c: Likewise.
14741 * tree-ssa-ccp.c: Likewise.
14742 * tree-ssa-coalesce.c: Likewise.
14743 * tree-ssa-copy.c: Likewise.
14744 * tree-ssa-copyrename.c: Likewise.
14745 * tree-ssa-dce.c: Likewise.
14746 * tree-ssa-dom.c: Likewise.
14747 * tree-ssa-dse.c: Likewise.
14748 * tree-ssa-forwprop.c: Likewise.
14749 * tree-ssa-ifcombine.c: Likewise.
14750 * tree-ssa-live.c: Likewise.
14751 * tree-ssa-loop-ch.c: Likewise.
14752 * tree-ssa-loop-im.c: Likewise.
14753 * tree-ssa-loop-ivcanon.c: Likewise.
14754 * tree-ssa-loop-ivopts.c: Likewise.
14755 * tree-ssa-loop-manip.c: Likewise.
14756 * tree-ssa-loop-niter.c: Likewise.
14757 * tree-ssa-loop-prefetch.c: Likewise.
14758 * tree-ssa-loop-unswitch.c: Likewise.
14759 * tree-ssa-loop.c: Likewise.
14760 * tree-ssa-math-opts.c: Likewise.
14761 * tree-ssa-operands.c: Likewise.
14762 * tree-ssa-phiopt.c: Likewise.
14763 * tree-ssa-phiprop.c: Likewise.
14764 * tree-ssa-pre.c: Likewise.
14765 * tree-ssa-propagate.c: Likewise.
14766 * tree-ssa-reassoc.c: Likewise.
14767 * tree-ssa-sccvn.c: Likewise.
14768 * tree-ssa-scopedtables.c: Likewise.
14769 * tree-ssa-sink.c: Likewise.
14770 * tree-ssa-strlen.c: Likewise.
14771 * tree-ssa-structalias.c: Likewise.
14772 * tree-ssa-tail-merge.c: Likewise.
14773 * tree-ssa-ter.c: Likewise.
14774 * tree-ssa-threadedge.c: Likewise.
14775 * tree-ssa-threadupdate.c: Likewise.
14776 * tree-ssa-uncprop.c: Likewise.
14777 * tree-ssa-uninit.c: Likewise.
14778 * tree-ssa.c: Likewise.
14779 * tree-ssanames.c: Likewise.
14780 * tree-stdarg.c: Likewise.
14781 * tree-streamer-in.c: Likewise.
14782 * tree-streamer-out.c: Likewise.
14783 * tree-streamer.c: Likewise.
14784 * tree-switch-conversion.c: Likewise.
14785 * tree-tailcall.c: Likewise.
14786 * tree-vect-data-refs.c: Likewise.
14787 * tree-vect-generic.c: Likewise.
14788 * tree-vect-loop-manip.c: Likewise.
14789 * tree-vect-loop.c: Likewise.
14790 * tree-vect-patterns.c: Likewise.
14791 * tree-vect-slp.c: Likewise.
14792 * tree-vect-stmts.c: Likewise.
14793 * tree-vectorizer.c: Likewise.
14794 * tree-vrp.c: Likewise.
14795 * tree.c: Likewise.
14796 * tsan.c: Likewise.
14797 * ubsan.c: Likewise.
14798 * valtrack.c: Likewise.
14799 * value-prof.c: Likewise.
14800 * var-tracking.c: Likewise.
14801 * varasm.c: Likewise.
14802 * varpool.c: Likewise.
14803 * vmsdbgout.c: Likewise.
14804 * vtable-verify.c: Likewise.
14806 * wide-int.cc: Likewise.
14807 * xcoffout.c: Likewise.
14808 * config/aarch64/aarch64-builtins.c: Likewise.
14809 * config/aarch64/aarch64.c: Likewise.
14810 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14811 * config/alpha/alpha.c: Likewise.
14812 * config/arc/arc.c: Likewise.
14813 * config/arm/aarch-common.c: Likewise.
14814 * config/arm/arm-builtins.c: Likewise.
14815 * config/arm/arm-c.c: Likewise.
14816 * config/arm/arm.c: Likewise.
14817 * config/avr/avr-c.c: Likewise.
14818 * config/avr/avr-log.c: Likewise.
14819 * config/avr/avr.c: Likewise.
14820 * config/bfin/bfin.c: Likewise.
14821 * config/c6x/c6x.c: Likewise.
14822 * config/cr16/cr16.c: Likewise.
14823 * config/cris/cris.c: Likewise.
14824 * config/darwin-c.c: Likewise.
14825 * config/darwin.c: Likewise.
14826 * config/epiphany/epiphany.c: Likewise.
14827 * config/epiphany/mode-switch-use.c: Likewise.
14828 * config/epiphany/resolve-sw-modes.c: Likewise.
14829 * config/fr30/fr30.c: Likewise.
14830 * config/frv/frv.c: Likewise.
14831 * config/ft32/ft32.c: Likewise.
14832 * config/h8300/h8300.c: Likewise.
14833 * config/i386/i386-c.c: Likewise.
14834 * config/i386/i386.c: Likewise.
14835 * config/i386/msformat-c.c: Likewise.
14836 * config/i386/winnt-cxx.c: Likewise.
14837 * config/i386/winnt-stubs.c: Likewise.
14838 * config/i386/winnt.c: Likewise.
14839 * config/ia64/ia64-c.c: Likewise.
14840 * config/ia64/ia64.c: Likewise.
14841 * config/iq2000/iq2000.c: Likewise.
14842 * config/lm32/lm32.c: Likewise.
14843 * config/m32c/m32c-pragma.c: Likewise.
14844 * config/m32c/m32c.c: Likewise.
14845 * config/m32r/m32r.c: Likewise.
14846 * config/m68k/m68k.c: Likewise.
14847 * config/mcore/mcore.c: Likewise.
14848 * config/mep/mep-pragma.c: Likewise.
14849 * config/mep/mep.c: Likewise.
14850 * config/microblaze/microblaze-c.c: Likewise.
14851 * config/microblaze/microblaze.c: Likewise.
14852 * config/mips/mips.c: Likewise.
14853 * config/mmix/mmix.c: Likewise.
14854 * config/mn10300/mn10300.c: Likewise.
14855 * config/moxie/moxie.c: Likewise.
14856 * config/msp430/msp430-c.c: Likewise.
14857 * config/msp430/msp430.c: Likewise.
14858 * config/nds32/nds32-cost.c: Likewise.
14859 * config/nds32/nds32-fp-as-gp.c: Likewise.
14860 * config/nds32/nds32-intrinsic.c: Likewise.
14861 * config/nds32/nds32-isr.c: Likewise.
14862 * config/nds32/nds32-md-auxiliary.c: Likewise.
14863 * config/nds32/nds32-memory-manipulation.c: Likewise.
14864 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14865 * config/nds32/nds32-predicates.c: Likewise.
14866 * config/nds32/nds32.c: Likewise.
14867 * config/nios2/nios2.c: Likewise.
14868 * config/nvptx/nvptx.c: Likewise.
14869 * config/pa/pa.c: Likewise.
14870 * config/pdp11/pdp11.c: Likewise.
14871 * config/rl78/rl78-c.c: Likewise.
14872 * config/rl78/rl78.c: Likewise.
14873 * config/rs6000/rs6000-c.c: Likewise.
14874 * config/rs6000/rs6000.c: Likewise.
14875 * config/rx/rx.c: Likewise.
14876 * config/s390/s390-c.c: Likewise.
14877 * config/s390/s390.c: Likewise.
14878 * config/sh/sh-c.c: Likewise.
14879 * config/sh/sh-mem.cc: Likewise.
14880 * config/sh/sh.c: Likewise.
14881 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14882 * config/sh/sh_treg_combine.cc: Likewise.
14883 * config/sol2-c.c: Likewise.
14884 * config/sol2-cxx.c: Likewise.
14885 * config/sol2-stubs.c: Likewise.
14886 * config/sol2.c: Likewise.
14887 * config/sparc/sparc-c.c: Likewise.
14888 * config/sparc/sparc.c: Likewise.
14889 * config/spu/spu-c.c: Likewise.
14890 * config/spu/spu.c: Likewise.
14891 * config/stormy16/stormy16.c: Likewise.
14892 * config/tilegx/mul-tables.c: Likewise.
14893 * config/tilegx/tilegx-c.c: Likewise.
14894 * config/tilegx/tilegx.c: Likewise.
14895 * config/tilepro/mul-tables.c: Likewise.
14896 * config/tilepro/tilepro-c.c: Likewise.
14897 * config/tilepro/tilepro.c: Likewise.
14898 * config/v850/v850-c.c: Likewise.
14899 * config/v850/v850.c: Likewise.
14900 * config/vax/vax.c: Likewise.
14901 * config/visium/visium.c: Likewise.
14902 * config/vms/vms-c.c: Likewise.
14903 * config/vms/vms.c: Likewise.
14904 * config/vxworks.c: Likewise.
14905 * config/xtensa/xtensa.c: Likewise.
14907 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
14909 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
14910 Remove operand constraints. Change operand 2 predicate to
14911 nonmemory operand. Limit const_int values to mode bitsize. Only
14912 allow const_int values less than 32 when optimizing for size.
14913 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
14914 Remove operand constraints.
14915 (*bt<mode>): Use SImode for const_int values less than 32.
14916 (regmode): Remove mode attribute.
14918 2015-07-07 Anatoly Sokolov <aesok@post.ru>
14920 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14921 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
14922 moxie_legitimate_address_p): New functions.
14923 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
14925 2015-07-07 Tom de Vries <tom@codesourcery.com>
14927 PR tree-optimization/66642
14928 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
14929 header comment. Rename split_edge variable to edge_at_split. Split
14930 exit edge to create new loop exit bb. Insert loop exit phis in new
14933 2015-07-07 Tom de Vries <tom@codesourcery.com>
14935 * tree-cfg.c (get_virtual_phi): New function.
14936 * tree-cfg.h (get_virtual_phi): Declare.
14937 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
14938 (rewrite_virtuals_into_loop_closed_ssa): New function.
14939 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
14941 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
14942 (transform_to_exit_first_loop_alt): Use
14943 rewrite_virtuals_into_loop_closed_ssa.
14945 2015-07-07 Richard Biener <rguenther@suse.de>
14947 * fold-const.c (fold_binary_loc): Move
14948 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
14949 * match.pd: ... here.
14950 Add (X * C1) % C2 -> 0 simplification pattern derived from
14953 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
14956 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
14957 change for target/65249.
14959 2015-07-07 Paulo Matos <pmatos@broadcom.com>
14961 * symtab.c (address_matters_1): Fix typo in comment above.
14962 (can_increase_alignment_p): Likewise.
14964 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14966 * function.c (free_after_compilation): Clear PROP_cfg in
14967 f->curr_properties.
14969 2015-07-07 Richard Biener <rguenther@suse.de>
14971 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
14973 (add_control_edge): Remove excessive vertical space in dumping.
14974 (process_ssa_edge_worklist): Simulate at most one statement and
14975 return whether we did. Do not simulate PHIs if they are in a
14976 BB not yet simulated.
14977 (ssa_propagate): Adjust to always drain the BB worklist whenever
14978 a BB is available there, likewise the VARYING edges list before
14979 the interesting edge list.
14981 2015-07-07 Christian Bruel <christian.bruel@st.com>
14984 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
14986 2015-07-07 Richard Biener <rguenther@suse.de>
14988 PR middle-end/66739
14989 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
14992 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
14994 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
14995 modes for operands 0 and 3. Use SImode for operands 2 and 3.
14996 Copy operand 0 to a temporary if !ext_register_operand. Remove
14997 ancient extract_bit_field workaround.
14998 (insv<mode>_1): Rename from mov<mode>_insv_1.
14999 (*insvqi): Rename from *movqi_insv_2.
15000 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
15001 for renamed insvsi_1.
15002 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
15004 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
15006 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
15007 call to nvptx_reorg_subreg.
15009 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
15011 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
15012 * graphite-dependencies.c, graphite-interchange.c,
15013 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
15014 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
15017 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
15019 * match.pd: Remove element_mode inside HONOR_*.
15020 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
15021 (~X | X -> -1, ~X ^ X -> -1): Merge.
15022 * tree.c (build_each_one_cst): New function.
15023 * tree.h (build_each_one_cst): Likewise.
15025 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
15027 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15030 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
15032 * config.gcc <mips*-*-*>: Add fused-madd.opt.
15033 * config/mips/mips.opt (mfused-madd): Remove.
15034 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
15035 * config/mips/mips.h (TARGET_MIPS8000): New.
15036 (ISA_HAS_FP_MADD4_MSUB4): Remove.
15037 (ISA_HAS_FP_MADDF_MSUBF): Remove.
15038 (ISA_HAS_FP_MADD3_MSUB3): Remove.
15039 (ISA_HAS_NMADD4_NMSUB4): Remove.
15040 (ISA_HAS_NMADD3_NMSUB3): Remove.
15041 (ISA_HAS_FUSED_MADD4): New.
15042 (ISA_HAS_UNFUSED_MADD4): New.
15043 (ISA_HAS_FUSED_MADDF): New.
15044 (ISA_HAS_FUSED_MADD3): New.
15045 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
15046 (*fma<mode>4_madd3) New.
15047 (*fma<mode>4_madd4) New.
15048 (*fma<mode>4_maddf) New.
15050 (*fms<mode>4_msub3) New.
15051 (*fms<mode>4_msub4) New.
15053 (*fnma<mode>4_nmadd3) New.
15054 (*fnma<mode>4_nmadd4) New.
15056 (*fnms<mode>4_nmsub3) New.
15057 (*fnms<mode>4_nmsub4) New.
15058 (*madd4<mode>) Modify to be unfused only.
15059 (*msub4<mode>) Modify to be unfused only.
15060 (*nmadd4<mode>) Modify to be unfused only.
15061 (*nmsub4<mode>) Modify to be unfused only.
15062 (*madd3<mode>) Remove.
15063 (*msub3<mode>) Remove.
15064 (*nmadd3<mode>) Remove.
15065 (*nmsub3<mode>) Remove.
15066 (*nmadd3<mode>_fastmath) Remove.
15067 (*nmsub3<mode>_fastmath) Remove.
15068 (*nmadd4<mode>_fastmath) Update condition.
15069 (*nmsub4<mode>_fastmath) Update condition.
15071 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
15074 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
15075 alignment attribute, exploring one level down for records and arrays.
15077 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
15079 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
15080 modes for operands 0 and 1. Use SImode for operands 2 and 3.
15081 Copy operand 1 to a temporary if !ext_register_operand. Remove
15082 ancient extract_bit_field workaround.
15083 (*extv<mode>): Rename from *mov<mode>_extv_1.
15084 (*extvqi): Rename from *movqi_extv_1.
15085 (extzv<mode>): Rename from extzv. Use SWI248 modes for
15086 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
15087 to a temporary if !ext_register_operand. Remove ancient
15088 extract_bit_field workaround.
15089 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
15090 (*extzvqi): Rename from *movqi_extzv_2.
15091 (*testqi_ext_3): Remove modes from const_int_operand predicated
15092 operands. Add "n" constraint.
15093 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
15094 operand. Add "J" constraint.
15095 (*btsq, *btrq, *btcq peephole2s): Remove mode from
15096 const_0_to_63 predicated operand.
15097 (regmode): New insn attribute.
15098 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
15099 to nonmemory_operand. Use regmode insn attribute.
15100 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
15101 (*jcc_bt<mode>_mask): Remove mode from operand 3.
15102 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
15103 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
15104 operands. Use "N" constraint instead of "n".
15106 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
15108 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
15110 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
15113 * config/i386/i386.c (iamcu_cost): New.
15114 (m_IAMCU): Likewise.
15115 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
15116 (processor_target_table): Add an entry for "iamcu".
15117 (processor_alias_table): Likewise.
15118 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
15119 (ix86_adjust_cost): Likewise.
15120 (ia32_multipass_dfa_lookahead): Likewise.
15121 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
15122 * config/i386/x86-tune.def: Updated for m_IAMCU.
15124 2015-07-06 Richard Biener <rguenther@suse.de>
15126 PR tree-optimization/66772
15127 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
15128 values are available in the PHI node BB when there are
15129 still unexecutable edges.
15131 2015-07-06 Richard Biener <rguenther@suse.de>
15133 PR tree-optimization/66767
15134 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
15135 Make sure to build the alignment test on a SSA name without
15136 final alignment info valid only if the alignment test
15139 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
15142 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
15143 loop start when inserting LSETUP.
15145 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
15148 * config/i386/i386.c (ix86_option_override_internal): Allow
15149 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
15151 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15153 * read-md.c (decimal_string): Rename to ...
15154 (md_decimal_string): ... this.
15155 (handle_enum): Reflect this.
15157 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15160 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
15162 2015-07-06 Richard Biener <rguenther@suse.de>
15164 PR middle-end/66759
15165 * match.pd: Add missing constraint of y to REAL_CST in
15166 REAL_CST - x CMP y to y - CST CMP x simplification.
15168 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
15170 PR tree-optimization/66757
15171 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
15173 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
15174 Sandra Loosemore <sandra@codesourcery.com>
15176 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
15177 Delete extern declaration.
15178 (gprel_constant_p): Add extern declaration.
15179 * config/nios2/constraints.md ("S"): Use gprel_constant_p
15180 instead of nios2_symbol_ref_in_small_data_p.
15181 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
15182 (nios2_symbol_ref_in_small_data_p): Make static.
15183 (gprel_constant_p): Make non-static.
15185 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
15187 * doc/fragments.texi (Target Fragment): Convert debian.org
15189 * doc/install.texi (Configuration): Ditto.
15191 2015-07-05 Jakub Jelinek <jakub@redhat.com>
15193 PR tree-optimization/66718
15194 * tree-vect-stmts.c (vectorizable_call): Replace uses of
15195 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
15197 PR tree-optimization/66718
15198 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
15199 vectorizable_load, vectorizable_condition): Move vectype,
15200 nunits, ncopies computation after checking what kind of statement
15203 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15205 * target-insns.def (extv, extzv, insv): New targetm instruction
15207 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
15209 * recog.c (simplify_while_replacing): Likewise.
15211 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15213 * target-insns.def (doloop_begin, doloop_end): New targetm
15214 instruction patterns.
15215 * loop-init.c: Include target.h.
15216 (pass_loop2::gate): Use the new targetm patterns instead of
15217 HAVE_*/gen_* interface.
15218 (pass_rtl_doloop::gate): Likewise.
15219 (pass_rtl_doloop::execute): Remove preprocessor condition.
15220 * hw-doloop.c: Build unconditionally.
15221 * loop-doloop.c: Likewise.
15222 (doloop_optimize): Use the new targetm patterns instead of
15223 HAVE_*/gen_* interface.
15224 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
15225 * modulo-sched.c (doloop_register_get): Likewise.
15227 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15229 * target-insns.def (clear_cache): New targetm instruction pattern.
15230 * builtins.c (expand_builtin___clear_cache): Use it instead of
15231 HAVE_*/gen_* interface.
15233 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15235 * target-insns.def (allocate_stack, check_stack, probe_stack)
15236 (probe_stack_address, split_stack_prologue, split_stack_space_check):
15237 New targetm instruction patterns.
15238 * explow.c (allocate_dynamic_stack_space): Use them instead of
15239 HAVE_*/gen_* interface.
15240 (emit_stack_probe): Likewise.
15241 (probe_stack_range): Likewise.
15242 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15244 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15246 * target-insns.def (stack_protect_set, stack_protect_test): New
15247 targetm instruction patterns.
15248 * cfgexpand.c (stack_protect_prologue): Use them instead of
15249 HAVE_*/gen_* interface.
15250 * function.c (stack_protect_epilogue): Likewise.
15252 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15254 * expr.h (gen_move_insn_uncast): Delete.
15255 * expr.c (gen_move_insn_uncast): Delete.
15257 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15259 * target-insns.def (restore_stack_block, restore_stack_function)
15260 (restore_stack_nonlocal, save_stack_block, save_stack_function)
15261 (save_stack_nonlocal): New targetm instruction patterns.
15262 * builtins.c (expand_builtin_apply): Use them instead of
15263 HAVE_*/gen_* interface.
15264 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
15266 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15268 * target-insns.def (trap): New targetm instruction pattern.
15269 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
15271 * explow.c (allocate_dynamic_stack_space): Likewise.
15272 * ifcvt.c (find_if_header): Likewise.
15274 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15276 * target-insns.def (prefetch): New targetm instruction pattern.
15277 * tree-ssa-loop-prefetch.c: Include targeth.
15278 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
15279 of HAVE_*/gen_* interface.
15280 * builtins.c (expand_builtin_prefetch): Likewise.
15281 * toplev.c (process_options): Likewise.
15283 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15285 * target-insns.def (untyped_call, untyped_return): New targetm
15286 instruction patterns.
15287 * builtins.c (expand_builtin_apply): Use them instead of
15288 HAVE_*/gen_* interface.
15289 (result_vector): Define unconditionally.
15291 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15293 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
15294 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
15295 (nonlocal_goto_receiver): New targetm instruction patterns.
15296 * builtins.c (expand_builtin_setjmp_setup): Use them instead
15297 of HAVE_*/gen_* interface.
15298 (expand_builtin_setjmp_receiver): Likewise.
15299 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
15300 * except.c (expand_dw2_landing_pad_for_region): Likewise.
15302 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15304 * target.def: Add code_for_* hooks.
15305 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
15306 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
15307 * target-insns.def (casesi, tablejump): New targetm instruction
15309 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
15310 (do_tablejump): Likewise.
15311 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
15312 (expand_sjlj_dispatch_table): Likewise.
15313 * targhooks.c (default_case_values_threshold): Likewise.
15315 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
15317 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
15318 Use rtx_insn * instead of rtx.
15319 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
15320 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
15321 (nios2_call_tls_get_addr): Likewise.
15322 (nios2_emit_expensive_div): Likewise.
15323 (nios2_emit_move_sequence): Change return type to bool.
15324 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
15325 Change return type to bool.
15327 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
15330 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
15332 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
15335 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
15336 of register_operand. Remove constraint.
15338 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
15340 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
15341 the first argument.
15343 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
15345 * attribs.c (decl_attributes): Guard inform with the return value
15346 of the preceding warning.
15348 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
15350 * doc/invoke.texi (moverride): Move to correct section.
15352 2015-07-03 Richard Biener <rguenther@suse.de>
15354 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
15356 (dt_operand::gen_gimple_expr): After valueizing operands
15357 re-canonicalize operand order for commutative tree codes.
15359 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
15362 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
15364 (__crc32w): Likewise.
15365 (__crc32d): Likewise.
15366 (__rdpmc): Likewise.
15367 (__rdtscp): Likewise.
15368 (_rdpmc): Likewise.
15369 (_rdtscp): Likewise.
15370 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
15373 2015-07-03 Richard Biener <rguenther@suse.de>
15375 * fold-const.c (fold_mathfn_compare): Remove.
15376 (fold_inf_compare): Likewise.
15377 (fold_comparison): Move floating point comparison simplifications...
15378 * match.pd: ... to patterns here. Introduce simple_comparisons
15379 operator list and use it for patterns formerly in fold_comparison.
15381 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
15383 PR tree-optimization/66119
15384 * toplev.c (process_options): Don't set up default values for
15385 the sra_max_scalarization_size_{speed,size} parameters.
15386 * tree-sra (analyze_all_variable_accesses): If no values
15387 have been set for the sra_max_scalarization_size_{speed,size}
15388 parameters, call get_move_ratio to get target defaults.
15390 2015-07-03 Richard Biener <rguenther@suse.de>
15392 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
15393 * match.pd: ... here.
15395 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
15398 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
15399 is not actually the default on FreeBSD.
15401 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15403 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
15405 (CMPGE_8HI): Likewise.
15406 (CMPGE_4SI): Likewise.
15407 (CMPGE_2DI): Likewise.
15408 (CMPGE_U16QI): Likewise.
15409 (CMPGE_U8HI): Likewise.
15410 (CMPGE_U4SI): Likewise.
15411 (CMPGE_U2DI): Likewise.
15412 (CMPLE_16QI): Likewise.
15413 (CMPLE_8HI): Likewise.
15414 (CMPLE_4SI): Likewise.
15415 (CMPLE_2DI): Likewise.
15416 (CMPLE_U16QI): Likewise.
15417 (CMPLE_U8HI): Likewise.
15418 (CMPLE_U4SI): Likewise.
15419 (CMPLE_U2DI): Likewise.
15420 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15421 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
15422 ALTIVEC_BUILTIN_VEC_CMPLE.
15423 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
15424 floating-point vector modes.
15425 (vector_nlt<mode>): New define_expand.
15426 (vector_nltu<mode>): Likewise.
15427 (vector_ngt<mode>): Likewise.
15428 (vector_ngtu<mode>): Likewise.
15430 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
15432 PR rtl-optimization/66706
15433 * combine.c (make_compound_operation): If an AND of SUBREG of
15434 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
15436 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
15438 * tree-pass.h (make_pass_ch_vect): New.
15439 * passes.def: Add pass_ch_vect just before pass_if_conversion.
15441 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
15442 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
15443 make_pass_ch_vect): New.
15444 (pass_ch): Extend ch_base.
15446 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
15447 (ch_base::copy_headers): ...here.
15449 2015-07-02 Richard Biener <rguenther@suse.de>
15451 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
15452 * fold-const.c (get_pointer_modulus_and_residue): Remove.
15453 (fold_binary_loc): Implement (T)ptr & CST in terms of
15454 get_pointer_alignment_1.
15455 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
15456 Make sure to build the alignment test on a SSA name without
15457 final alignment info valid only after the prologue.
15459 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
15461 * config/cris/cris.md ("epilogue"): Remove condition.
15462 ("prologue"): Ditto.
15464 2015-07-02 Richard Biener <rguenther@suse.de>
15466 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
15467 parameter to record a condition that is false.
15468 (record_conditions): When recording an extra NE_EXPR that is
15469 true also record a EQ_EXPR that is false.
15471 2015-07-02 Bin Cheng <bin.cheng@arm.com>
15473 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
15474 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
15475 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
15476 (set_iv, find_interesting_uses_address, add_candidate_1): New
15477 argument to alloc_iv.
15478 (find_interesting_uses_op, find_interesting_uses_cond): Don't
15479 duplicate struct iv.
15480 (free_loop_data): Don't free struct iv explicitly.
15481 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
15483 2015-07-01 DJ Delorie <dj@redhat.com>
15485 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
15487 (SUPPORTS_DISCRIMINATOR): Define.
15489 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
15492 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
15493 there are no CALLs in the same pattern.
15495 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
15497 PR rtl-optimization/61047
15498 * rtlanal.c (get_initial_register_offset): New function.
15499 (rtx_addr_can_trap_p_1): Check offsets of stack references.
15501 2015-07-01 Richard Biener <rguenther@suse.de>
15503 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
15504 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
15505 ~X CMP C -> X CMP' ~C to ...
15506 * match.pd: ... patterns here.
15508 2015-07-01 Nick Clifton <nickc@redhat.com>
15510 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
15511 a 16-bit value into a 20-bit memory slot.
15513 2015-07-01 Jiong Wang <jiong.wang@arm.com>
15515 * doc/sourcebuild.texi (AArch64-specific attributes): Document
15516 "aarch64_tiny", "aarch64_small", "aarch64_large",
15517 "aarch64_little_endian", "aarch64_big_endian".
15519 2015-07-01 Jiong Wang <jiong.wang@arm.com>
15521 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
15522 Document "aarch64_small_fpic".
15524 2015-07-01 Jiong Wang <jiong.wang@arm.com>
15526 * configure.ac: Add check for aarch64 assembler -fpic relocation
15528 * configure: Regenerate.
15529 * config.in: Regenerate.
15530 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
15531 to -fPIC if not support of -fpic relocation modifier in assembler.
15533 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
15536 * rtl.c (classify_insn): Handle returns in PARALLELs.
15538 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
15540 PR middle-end/66633
15541 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
15542 to true if the function is nested and if not optimizing.
15543 (convert_local_omp_clauses): Initialize need_frame to true if the
15544 function contains nested functions and if not optimizing.
15546 2015-07-01 Richard Biener <rguenther@suse.de>
15548 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
15549 (X & Y) ^ Y -> ~X & Y transforms to ...
15550 * match.pd: ... here.
15552 2015-07-01 Richard Biener <rguenther@suse.de>
15554 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
15555 of converts to avoid uninteresting noise from the conversion
15556 simplifying patterns.
15558 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
15560 * config/c6x/c6x.c (try_rename_operands): Do not depend on
15561 gcc_assert evaluating its argument for side-effect.
15563 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
15566 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
15569 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
15571 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
15572 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
15573 (hash_scc): Add this_ref_p and ref_p parameters and pass them
15574 to the inner DFS walk.
15576 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15578 * target-insns.def (jump): New targetm instruction pattern.
15579 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
15580 instead of gen_jump.
15581 (fix_up_crossing_landing_pad): Likewise.
15582 (add_labels_and_missing_jumps): Likewise.
15583 (fix_crossing_conditional_branches): Likewise.
15584 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
15585 (force_nonfallthru_and_redirect): Likewise.
15586 * cse.c (cse_insn): Likewise.
15587 * expmed.c (expand_divmod): Likewise.
15588 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
15589 * haifa-sched.c (init_before_recovery): Likewise.
15590 (sched_create_recovery_edges): Likewise.
15591 * ifcvt.c (find_cond_trap): Likewise.
15592 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
15593 (expand_float, expand_fix): Likewise.
15594 * stmt.c (emit_jump): Likewise.
15596 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15598 * defaults.h (HAVE_load_multiple, gen_load_multiple)
15599 (HAVE_store_multiple, gen_store_multiple): Delete.
15600 * target-insns.def (load_multiple, store_multiple): New targetm
15601 instruction patterns.
15602 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
15603 of HAVE_*/gen_* interface.
15605 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15607 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
15608 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
15609 (gen_mem_signal_fence): Delete.
15610 * target-insns.def (mem_signal_fence, mem_thread_fence)
15611 (memory_barrier): New targetm instruction patterns.
15612 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
15614 (expand_mem_signal_fence): Likewise.
15616 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15618 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
15619 * target-insns.def (epilogue, prologue, sibcall_prologue): New
15620 targetm instruction patterns.
15621 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
15623 * calls.c (expand_call): Likewise.
15624 * cfgrtl.c (cfg_layout_finalize): Likewise.
15625 * df-scan.c (df_get_entry_block_def_set): Likewise.
15626 (df_get_exit_block_use_set): Likewise.
15627 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
15628 * final.c (final_start_function): Likewise.
15629 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15630 (reposition_prologue_and_epilogue_notes): Likewise.
15631 * reorg.c (find_end_label): Likewise.
15632 * toplev.c (process_options): Likewise.
15634 2015-06-30 David Malcolm <dmalcolm@redhat.com>
15636 * typed-splay-tree.h: New file.
15638 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
15641 * lra-int.h (lra_substitute_pseudo): Add a parameter.
15642 (lra_substitute_pseudo_within_insn): Ditto.
15643 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
15645 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
15646 to lra_substitute_pseudo.
15647 * lra-lives.c (process_bb_lives): Add an argument to
15648 lra_substitute_pseudo_within_insn call.
15649 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
15650 argument to lra_substitute_pseudo and
15651 lra_substitute_pseudo_within_insn calls.
15652 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
15654 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
15656 * configure: Regenerated.
15658 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
15660 * config.gcc: Support i[34567]86-*-elfiamcu target.
15661 * config/i386/iamcu.h: New.
15662 * config/i386/i386.opt: Add -miamcu.
15663 * doc/invoke.texi: Document -miamcu.
15664 * common/config/i386/i386-common.c (ix86_handle_option): Turn
15665 off x87/MMX/SSE/AVX codegen for -miamcu.
15666 * config/i386/i386-c.c (ix86_target_macros_internal): Define
15667 __iamcu/__iamcu__ for -miamcu.
15668 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
15669 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
15670 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
15671 * config/i386/i386.c (ix86_option_override_internal): Ignore and
15672 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
15673 MCU by default. Default long double to 64-bit for Intel MCU.
15674 Turn on -freg-struct-return for Intel MCU. Issue an error when
15675 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
15677 (function_arg_advance_32): Pass value whose size is no larger
15678 than 8 bytes in registers for Intel MCU.
15679 (function_arg_32): Likewise.
15680 (ix86_return_in_memory): Return value whose size is no larger
15681 than 8 bytes in registers for Intel MCU.
15682 (iamcu_alignment): New function.
15683 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
15685 (ix86_local_alignment): Don't increase alignment for Intel MCU.
15686 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
15689 2015-06-30 Marek Polacek <polacek@redhat.com>
15691 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
15692 both operands of the resulting expression.
15694 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
15695 the final expression with the operand's type and then convert
15696 it to the type of the expression.
15698 2015-06-30 Richard Biener <rguenther@suse.de>
15700 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
15701 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
15702 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
15703 * match.pd: ... to patterns here.
15705 2015-06-30 Richard Biener <rguenther@suse.de>
15707 PR tree-optimization/66704
15708 * tree-vect-data-refs.c (vect_setup_realignment): Use
15709 make_ssa_name for non-SSA name source.
15711 2015-06-30 Jakub Jelinek <jakub@redhat.com>
15713 PR middle-end/66702
15714 * omp-low.c (simd_clone_adjust): Handle addressable linear
15715 or uniform parameters or non-gimple type uniform parameters.
15717 2015-06-30 Richard Biener <rguenther@suse.de>
15719 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
15720 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
15721 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
15722 * match.pd: ... here.
15723 Add a few cases of A - B -> A + (-B) when B "easily" negates.
15724 Move (x & y) | x -> x and friends before
15725 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
15727 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
15729 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
15730 -mfix-ut699 is not specified.
15731 (leon3_load): Rename into...
15732 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
15735 2015-06-30 Marek Polacek <polacek@redhat.com>
15737 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
15738 * match.pd: ... here.
15740 2015-06-30 Richard Biener <rguenther@suse.de>
15742 * target-insns.def (canonicalize_funcptr_for_compare): Add.
15743 * fold-const.c (build_range_check): Replace uses of
15744 HAVE_canonicalize_funcptr_for_compare.
15745 (fold_widened_comparison): Likewise.
15746 (fold_sign_changed_comparison): Likewise.
15747 * dojump.c: Include "target.h".
15748 (do_compare_and_jump): Replace uses of
15749 HAVE_canonicalize_funcptr_for_compare and
15750 gen_canonicalize_funcptr_for_compare.
15751 * expr.c (do_store_flag): Likewise.
15753 2015-06-30 Tom de Vries <tom@codesourcery.com>
15755 PR tree-optimization/66652
15756 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
15757 max_loop_iterations to determine if nit + 1 overflows.
15759 2015-06-30 Richard Biener <rguenther@suse.de>
15761 * tree-vrp.c (register_edge_assert_for_2): Also register
15762 asserts for dominating conversion results.
15764 2015-06-30 Bin Cheng <bin.cheng@arm.com>
15766 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
15767 field in struct iv.
15769 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
15772 * configure.ac: Fix filds and fildq test for 64-bit.
15773 * configure: Regenerated.
15775 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
15777 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
15778 (nvptx_reorg): Here. Keep the non-subreg pieces.
15780 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
15782 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
15783 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
15785 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
15787 * config/i386/i386.md (*jcc_1): Use %! in asm template.
15788 Set attribute "length_nobnd" instead of "length".
15791 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
15793 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
15795 * config/nios2/nios2.c (nios2_delegitimize_address): Make
15796 assert less restrictive.
15798 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
15801 * cgraphunit.c (cgraph_node::finalize_function): Do not call
15802 do_warn_unused_parameter.
15803 * function.c (do_warn_unused_parameter): Move from here.
15804 * function.h (do_warn_unused_parameter): Do not declare.
15806 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15809 * gcc.target/arm/armv-sync-comp-swap.c: New.
15810 * gcc.target/arm/armv-sync-op-acquire.c: New.
15811 * gcc.target/arm/armv-sync-op-full.c: New.
15812 * gcc.target/arm/armv-sync-op-release.c: New.
15814 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15817 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
15818 initial acquire barrier with final barrier.
15820 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15823 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
15824 initial acquire barrier with final barrier.
15826 2015-06-29 Richard Henderson <rth@redhat.com>
15828 * config/i386/constraints.md (Bf): New constraint.
15829 * config/i386/i386-c.c (ix86_target_macros): Define
15830 __GCC_ASM_FLAG_OUTPUTS__.
15831 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
15833 * doc/extend.texi (FlagOutputOperands): Document them.
15835 2015-06-29 Jiong Wang <jiong.wang@arm.com>
15837 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
15838 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
15840 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
15841 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
15842 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
15843 (aarch64_symbol_context): Ditto.
15844 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
15845 and use new pattern name.
15846 (aarch64_expand_mov_immediate): Ditto.
15847 (aarch64_print_operand): Ditto.
15848 (aarch64_classify_tls_symbol): Ditto.
15850 2015-06-29 Marek Polacek <polacek@redhat.com>
15851 Marc Glisse <marc.glisse@inria.fr>
15853 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
15854 * match.pd: ... pattern here.
15856 2015-06-29 Tom de Vries <tom@codesourcery.com>
15858 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
15859 function structure.
15861 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15863 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
15864 feature description, split out the native option, add a link to
15865 the feature documentation, rearrange and slightly rewrite text.
15866 (Aarch64 options, -mcpu): Likewise.
15867 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
15868 +rdma implies Adv. SIMD.
15870 2015-06-29 Marek Polacek <polacek@redhat.com>
15873 * function.c (stack_protect_epilogue): Remove a cast to int.
15874 * doc/invoke.texi: Update -Wswitch-bool description.
15876 2015-06-29 Richard Biener <rguenther@suse.de>
15878 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
15879 * fold-const.c (fold_binary_loc): Move &A - &B simplification
15880 via ptr_difference_const ...
15881 * match.pd: ... here.
15882 When matching (X ^ Y) == Y also match with swapped operands.
15884 2015-06-29 Richard Biener <rguenther@suse.de>
15886 * lto-streamer.h (LTO_major_version): Bump to 5.
15888 2015-06-29 Richard Biener <rguenther@suse.de>
15890 PR tree-optimization/66677
15891 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
15892 STMT_VINFO_VEC_STMT clobbering less strict.
15894 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
15896 PR middle-end/64130
15897 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
15898 division, compute max and min when value ranges for dividend and
15899 divisor are available.
15901 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
15902 Sandra Loosemore <sandra@codesourcery.com>
15904 * regrename.h (regrename_do_replace): Change to return bool.
15905 * regrename.c (rename_chains): Check return value of
15906 regname_do_replace.
15907 (regrename_do_replace): Re-validate the modified insns and
15908 return bool status.
15909 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
15910 Update to match rename_chains changes.
15911 * config/c6x/c6x.c (try_rename_operands): Assert that
15912 regrename_do_replace returns true.
15914 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
15916 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
15917 operand 2 here. Use copy_addr_to_reg to copy non-index
15918 register operand 2 to a temporary.
15919 (<mode>_stx): Ditto for operand 1.
15920 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
15921 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
15922 (ix86_store_bounds): Ditto.
15924 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
15926 * print-tree.c (print_node) [TREE_VEC]: Print its length.
15928 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
15930 * gimple.c (gimple_call_set_fndecl): Remove.
15931 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
15932 build1_loc directly instead of build_fold_addr_expr_loc.
15934 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
15936 * hash-map.h (hash_map::traverse): Use the definition of the
15937 Key typedef rather than the typedef itself.
15939 2015-06-26 Martin Jambor <mjambor@suse.cz>
15942 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
15943 NULL instead of calling dump_enabled_p.
15945 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
15947 * config/aarch64/aarch64.opt: (override): New.
15948 * doc/invoke.texi (override): Document.
15949 * config/aarch64/aarch64.c (aarch64_flag_desc): New
15950 (aarch64_fusible_pairs): Likewise.
15951 (aarch64_tuning_flags): Likewise.
15952 (aarch64_tuning_override_function): Likewise.
15953 (aarch64_tuning_override_functions): Likewise.
15954 (aarch64_parse_one_option_token): Likewise.
15955 (aarch64_parse_boolean_options): Likewise.
15956 (aarch64_parse_fuse_string): Likewise.
15957 (aarch64_parse_tune_string): Likewise.
15958 (aarch64_parse_one_override_token): Likewise.
15959 (aarch64_parse_override_string): Likewise.
15960 (aarch64_override_options): Parse the -override string if it
15963 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
15965 * config/aarch64/aarch64-protos.h (tune_params): Remove
15966 const from members.
15967 (aarch64_tune_params): Remove const, change to no longer be
15969 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
15970 change to no longer be a pointer, initialize to generic_tunings.
15971 (aarch64_min_divisions_for_recip_mul): Change dereference of
15972 aarch64_tune_params to member access.
15973 (aarch64_reassociation_width): Likewise.
15974 (aarch64_rtx_mult_cost): Likewise.
15975 (aarch64_address_cost): Likewise.
15976 (aarch64_branch_cost): Likewise.
15977 (aarch64_rtx_costs): Likewise.
15978 (aarch64_register_move_cost): Likewise.
15979 (aarch64_memory_move_cost): Likewise.
15980 (aarch64_sched_issue_rate): Likewise.
15981 (aarch64_builtin_vectorization_cost): Likewise.
15982 (aarch64_override_options): Take a copy of the selected tuning
15983 struct in to aarch64_tune_params, rather than just setting
15984 a pointer, change dereferences of aarch64_tune_params to member
15986 (aarch64_override_options_after_change): Change dereferences of
15987 aarch64_tune_params to member access.
15988 (aarch64_macro_fusion_p): Likewise.
15989 (aarch_macro_fusion_pair_p): Likewise.
15990 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
15992 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
15994 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
15995 (aarch64_tune_flags): Likewise.
15996 (AARCH64_TUNE_FMA_STEERING): Likewise.
15997 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
15998 to AARCH64_FL_USE_FMA_STEERING_PASS.
15999 (cortex-a57.cortex-a53): Likewise.
16000 (cortex-a72): Use cortexa72_tunings.
16001 (cortex-a72.cortex-a53): Likewise.
16002 (exynos-m1): Likewise.
16003 * config/aarch64/aarch64-protos.h (tune_params): Add
16004 a field: extra_tuning_flags.
16005 * config/aarch64/aarch64-tuning-flags.def: New.
16006 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
16007 (aarch64_extra_tuning_flags): Likewise.
16008 (aarch64_tune_params): Declare here.
16009 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
16010 (cortexa53_tunings): Likewise.
16011 (cortexa57_tunings): Likewise.
16012 (thunderx_tunings): Likewise.
16013 (xgene1_tunings): Likewise.
16014 (cortexa72_tunings): New.
16015 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
16016 (gate): Check against aarch64_tune_params.
16017 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
16020 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
16022 * config/aarch64/aarch64-fusion-pairs.def: New.
16023 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
16024 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
16025 aarch64_fusion_pairs.
16026 (AARCH64_FUSE_MOV_MOVK): Likewise.
16027 (AARCH64_FUSE_ADRP_ADD): Likewise.
16028 (AARCH64_FUSE_MOVK_MOVK): Likewise.
16029 (AARCH64_FUSE_ADRP_LDR): Likewise.
16030 (AARCH64_FUSE_CMP_BRANCH): Likewise.
16032 2015-06-26 Jiong Wang <jiong.wang@arm.com>
16034 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
16035 SYMBOL_SMALL_GOT_28K.
16036 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
16037 relocation modifiers.
16038 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
16039 (ldr_got_small_28k_<mode>): New.
16040 (ldr_got_small_28k_sidi): New.
16041 * config/aarch64/iterators.md (got_modifier): New mode iterator.
16042 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
16043 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
16044 SYMBOL_SMALL_GOT_28K.
16045 (aarch64_rtx_costs): Add costs for new instruction sequences.
16046 (initialize_aarch64_code_model): Initialize new model.
16047 (aarch64_classify_symbol): Recognize new model and new symbol classification.
16048 (aarch64_asm_preferred_eh_data_format): Support new model.
16049 (aarch64_load_symref_appropriately): Generate new instruction
16050 sequences for -fpic.
16051 (TARGET_USE_PSEUDO_PIC_REG): New definition.
16052 (aarch64_use_pseudo_pic_reg): New function.
16054 2015-06-26 Jiong Wang <jiong.wang@arm.com>
16056 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
16057 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
16058 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
16059 (aarch64_expand_mov_immediate): Ditto.
16060 (aarch64_print_operand): Ditto.
16061 (aarch64_classify_symbol): Ditto.
16063 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
16065 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
16067 2015-06-26 Bin Cheng <bin.cheng@arm.com>
16070 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
16071 assertion failed. Remove assertion itself.
16073 2015-06-26 Richard Biener <rguenther@suse.de>
16075 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
16076 and -A CMP CST -> A CMP -CST which is redundant with a pattern
16078 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
16079 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
16080 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
16081 * match.pd: ... patterns here.
16083 2015-06-26 Marek Polacek <polacek@redhat.com>
16085 * match.pd ((x | y) & ~(x & y) -> x ^ y,
16086 (x | y) & (~x ^ y) -> x & y): New patterns.
16088 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
16090 * rtl.h (emit): Add an optional boolean parameter to control
16091 whether barriers are emitted.
16092 * emit-rtl.c (emit): Likewise.
16093 * gensupport.c (get_emit_function): Return null rather than "emit".
16094 * genemit.c (gen_emit_seq): Handle the null return value.
16095 Don't emit barriers after the final instruction in the sequence.
16096 * gentarget-def.c (main): Don't emit barriers after the instruction.
16098 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16100 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
16101 TARGET_UNIFIED_ASM.
16103 2015-06-26 Richard Biener <rguenther@suse.de>
16105 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
16107 2015-06-26 Richard Biener <rguenther@suse.de>
16109 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
16110 irrespective on whether the inner operation has a single use
16111 of both off are constant.
16113 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
16114 Segher Boessenkool <segher@kernel.crashing.org>
16117 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
16118 before doing PUT_MODE or PUT_CODE on operands to avoid
16119 in-place RTX modification.
16121 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
16123 * gentarget-def.c (def_target_insn): Cast return of strtol to
16126 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16128 * gimple.h (gimple_call_set_fn): Move inline function.
16129 * gimple.c (gimple_call_set_fn): Relocate here.
16131 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
16135 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
16136 the replacement insn will work.
16138 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
16140 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
16143 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16145 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
16146 * cgraph.h: Include ipa-ref.h and plugin-api.h.
16147 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
16148 (symtab_node::address_can_be_compared_p): Move function.
16149 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
16151 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
16152 * auto-profile.c: Likewise.
16153 * bb-reorder.c: Likewise.
16154 * builtins.c: Likewise.
16155 * calls.c: Likewise.
16156 * cfgexpand.c: Likewise.
16157 * cgraphbuild.c: Likewise.
16158 * cgraphclones.c: Likewise.
16159 * cgraphunit.c: Likewise.
16160 * combine.c: Likewise.
16161 * coverage.c: Likewise.
16162 * data-streamer-in.c: Likewise.
16163 * data-streamer-out.c: Likewise.
16164 * data-streamer.c: Likewise.
16165 * dbxout.c: Likewise.
16166 * dwarf2out.c: Likewise.
16167 * except.c: Likewise.
16168 * expr.c: Likewise.
16169 * final.c: Likewise.
16170 * fold-const.c: Likewise.
16171 * ggc-page.c: Likewise.
16172 * gimple-fold.c: Likewise.
16173 * gimple-iterator.c: Likewise.
16174 * gimple-pretty-print.c: Likewise.
16175 * gimple-streamer-in.c: Likewise.
16176 * gimple-streamer-out.c: Likewise.
16177 * gimple.c: Likewise.
16178 * gimplify.c: Likewise.
16179 * ipa-chkp.c: Likewise.
16180 * ipa-comdats.c: Likewise.
16181 * ipa-cp.c: Likewise.
16182 * ipa-devirt.c: Likewise.
16183 * ipa-icf-gimple.c: Likewise.
16184 * ipa-icf.c: Likewise.
16185 * ipa-inline-analysis.c: Likewise.
16186 * ipa-inline-transform.c: Likewise.
16187 * ipa-inline.c: Likewise.
16188 * ipa-polymorphic-call.c: Likewise.
16189 * ipa-profile.c: Likewise.
16190 * ipa-prop.c: Likewise.
16191 * ipa-pure-const.c: Likewise.
16192 * ipa-ref.c: Likewise.
16193 * ipa-reference.c: Likewise.
16194 * ipa-split.c: Likewise.
16195 * ipa-utils.c: Likewise.
16196 * ipa-visibility.c: Likewise.
16198 * langhooks.c: Likewise.
16199 * lto-cgraph.c: Likewise.
16200 * lto-compress.c: Likewise.
16201 * lto-opts.c: Likewise.
16202 * lto-section-in.c: Likewise.
16203 * lto-section-out.c: Likewise.
16204 * lto-streamer-in.c: Likewise.
16205 * lto-streamer-out.c: Likewise.
16206 * lto-streamer.c: Likewise.
16207 * omp-low.c: Likewise.
16208 * opts-global.c: Likewise.
16209 * passes.c: Likewise.
16210 * predict.c: Likewise.
16211 * print-tree.c: Likewise.
16212 * profile.c: Likewise.
16214 * sanopt.c: Likewise.
16215 * stor-layout.c: Likewise.
16216 * symtab.c: Likewise.
16217 * toplev.c: Likewise.
16218 * trans-mem.c: Likewise.
16219 * tree-cfg.c: Likewise.
16220 * tree-chkp.c: Likewise.
16221 * tree-eh.c: Likewise.
16222 * tree-emutls.c: Likewise.
16223 * tree-inline.c: Likewise.
16224 * tree-nested.c: Likewise.
16225 * tree-parloops.c: Likewise.
16226 * tree-pretty-print.c: Likewise.
16227 * tree-profile.c: Likewise.
16228 * tree-sra.c: Likewise.
16229 * tree-ssa-alias.c: Likewise.
16230 * tree-ssa-live.c: Likewise.
16231 * tree-ssa-loop-ivcanon.c: Likewise.
16232 * tree-ssa-loop-ivopts.c: Likewise.
16233 * tree-ssa-pre.c: Likewise.
16234 * tree-ssa-sccvn.c: Likewise.
16235 * tree-ssa-strlen.c: Likewise.
16236 * tree-ssa-structalias.c: Likewise.
16237 * tree-streamer-in.c: Likewise.
16238 * tree-streamer-out.c: Likewise.
16239 * tree-streamer.c: Likewise.
16240 * tree-switch-conversion.c: Likewise.
16241 * tree-tailcall.c: Likewise.
16242 * tree-vect-data-refs.c: Likewise.
16243 * tree-vect-stmts.c: Likewise.
16244 * tree-vectorizer.c: Likewise.
16245 * tree.c: Likewise.
16246 * tsan.c: Likewise.
16247 * ubsan.c: Likewise.
16248 * value-prof.c: Likewise.
16249 * varasm.c: Likewise.
16250 * varpool.c: Likewise.
16251 * config/arm/arm.c: Likewise.
16252 * config/bfin/bfin.c: Likewise.
16253 * config/c6x/c6x.c: Likewise.
16254 * config/cris/cris.c: Likewise.
16255 * config/darwin-c.c: Likewise.
16256 * config/darwin.c: Likewise.
16257 * config/i386/i386.c: Likewise.
16258 * config/i386/winnt.c: Likewise.
16259 * config/microblaze/microblaze.c: Likewise.
16260 * config/mips/mips.c: Likewise.
16261 * config/rs6000/rs6000.c: Likewise.
16262 * config/rx/rx.c: Likewise.
16263 * config/s390/s390.c: Likewise.
16264 * config/tilegx/mul-tables.c: Likewise.
16266 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16268 * config/aarch64/aarch64.c, config/alpha/alpha.c,
16269 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
16270 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
16271 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
16272 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
16273 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
16274 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
16275 config/microblaze/microblaze.c, config/mips/mips.c,
16276 config/mmix/mmix.c, config/mn10300/mn10300.c,
16277 config/moxie/moxie.c, config/msp430/msp430.c,
16278 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
16279 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
16280 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
16281 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
16282 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16283 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
16284 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
16285 target-def.h include.
16286 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
16288 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16290 * Makefile.in (TARGET_DEF): Add target-insns.def.
16291 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
16292 (build/gentarget-def.o): New rule.
16293 (genprogrtl): Add target-def.
16294 * target-insns.def, gentarget-def.c: New files.
16295 * target.def: Add targetm.have_* and targetm.gen_* hooks,
16296 based on the contents of target-insns.def.
16297 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
16298 (HAVE_return, gen_return): Delete.
16299 * target-def.h: Include insn-target-def.h.
16300 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
16301 instead of direct calls. Rely on them to do the appropriate assertions.
16302 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
16303 (convert_jumps_to_returns): Use targetm interface instead of
16305 (thread_prologue_and_epilogue_insns): Likewise.
16306 * reorg.c (find_end_label, dbr_schedule): Likewise.
16307 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
16308 * shrink-wrap.c (convert_to_simple_return): Likewise.
16309 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
16311 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16313 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
16314 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
16315 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
16316 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
16317 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
16318 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
16319 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
16320 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
16321 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
16322 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
16323 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
16324 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
16325 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
16326 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16327 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
16328 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
16331 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16333 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
16334 (unbounded_int_hashmap_traits::key_type): Likewise.
16335 * hash-map.h (hash_map): Get the key type from the traits.
16336 * hash-traits.h (default_hash_traits): By default, inherit from the
16337 template parameter.
16338 * alias.c (alias_set_traits): Delete.
16339 (alias_set_entry_d::children): Use alias_set_hash as the first
16340 template parameter.
16341 (record_alias_subset): Update accordingly.
16342 * except.c (tree_hash_traits): Delete.
16343 (type_to_runtime_map): Use tree_hash as the first template parameter.
16344 (init_eh): Update accordingly.
16345 * genmatch.c (capture_id_map_hasher): Delete.
16346 (cid_map_t): Use nofree_string_hash as first template parameter.
16347 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
16348 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
16349 Use symbol_compare_hash as the first template parameter in
16350 subdivide_hash_map.
16351 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
16352 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
16353 template parameter.
16354 * passes.c (pass_registry_hasher): Delete.
16355 (name_to_pass_map): Use nofree_string_hash as the first template
16357 (register_pass_name): Update accordingly.
16358 * sanopt.c (sanopt_tree_map_traits): Delete.
16359 (sanopt_tree_triplet_map_traits): Delete.
16360 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
16361 template parameter.
16362 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
16363 the first template parameter.
16364 * sese.c (rename_map_hasher): Delete.
16365 (rename_map_type): Use tree_ssa_name_hash as the first template
16367 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
16368 (function_summary::m_map): Use map_hash as the first template
16370 (function_summary::release): Update accordingly.
16371 * tree-if-conv.c (phi_args_hash_traits): Delete.
16372 (predicate_scalar_phi): Use tree_operand_hash as the first template
16373 parameter to phi_arg_map.
16374 * tree-inline.h (dependence_hasher): Delete.
16375 (copy_body_data::dependence_map): Use dependence_hash as the first
16376 template parameter.
16377 * tree-inline.c (remap_dependence_clique): Update accordingly.
16378 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
16379 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
16381 (addr_stridxptr): Update accordingly.
16382 * value-prof.c (profile_id_traits): Delete.
16383 (cgraph_node_map): Use profile_id_hash as the first template
16385 (init_node_map): Update accordingly.
16386 * config/alpha/alpha.c (string_traits): Delete.
16387 (machine_function::links): Use nofree_string_hash as the first
16388 template parameter.
16389 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
16390 * config/m32c/m32c.c (pragma_traits): Delete.
16391 (pragma_htab): Use nofree_string_hash as the first template parameter.
16392 (m32c_note_pragma_address): Update accordingly.
16393 * config/mep/mep.c (pragma_traits): Delete.
16394 (pragma_htab): Use nofree_string_hash as the first template parameter.
16395 (mep_note_pragma_flag): Update accordingly.
16396 * config/mips/mips.c (mips16_flip_traits): Delete.
16397 (mflip_mips16_htab): Use nofree_string_hash as the first template
16399 (mflip_mips16_use_mips16_p): Update accordingly.
16400 (local_alias_traits): Delete.
16401 (mips16_local_aliases): Use nofree_string_hash as the first template
16403 (mips16_local_alias): Update accordingly.
16405 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16407 * hash-map-traits.h (default_hashmap_traits): Delete.
16409 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16411 * hash-map-traits.h (unbounded_hashmap_traits): New class.
16412 (unbounded_int_hashmap_traits): Likewise.
16413 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
16415 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16417 * ipa-icf.h (symbol_compare_hash): New class.
16418 (symbol_compare_hashmap_traits): Use it.
16419 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
16420 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
16421 (mem_alloc_description::reverse_mem_map_t): Remove redundant
16422 default_hashmap_traits.
16423 * sanopt.c (sanopt_tree_triplet_hash): New class.
16424 (sanopt_tree_triplet_map_traits): Use it.
16426 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16428 * gengtype-parse.c (require_template_declaration): Allow '+' in
16429 template parameters. Consolidate cases.
16430 * hash-traits.h (int_hash): New class.
16431 * alias.c (alias_set_hash): New structure.
16432 (alias_set_traits): Use it.
16433 * symbol-summary.h (function_summary::map_hash): New class.
16434 (function_summary::summary_hashmap_traits): Use it.
16435 * tree-inline.h (dependence_hash): New class.
16436 (dependence_hasher): Use it.
16437 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
16438 * value-prof.c (profile_id_hash): New class.
16439 (profile_id_traits): Use it.
16441 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16443 * config/mips/mips.c (mips16_flip_traits): Use it.
16444 (local_alias_traits, mips16_local_aliases): Convert from a map of
16445 rtxes to a map of symbol names.
16446 (mips16_local_alias): Update accordingly.
16448 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16450 * hash-traits.h (string_hash, nofree_string_hash): New classes.
16451 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
16452 * passes.c (pass_registry_hasher): Likewise.
16453 * config/alpha/alpha.c (string_traits): Likewise.
16454 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
16455 * config/m32c/m32c.c (pragma_traits): Likewise.
16456 * config/mep/mep.c (pragma_traits): Likewise.
16458 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16460 * tree-hash-traits.h (tree_hash): New class.
16461 * except.c: Include tree-hash-traits.h.
16462 (tree_hash_traits): Use tree_hash.
16464 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16466 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
16467 * sese.c: Include tree-hash-traits.h.
16468 (rename_map_hasher): Use tree_ssa_name_hasher.
16470 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16472 * tree-hash-traits.h (tree_decl_hash): New class.
16473 * tree-ssa-strlen.c: Include tree-hash-traits.h.
16474 (stridxlist_hash_traits): Use tree_decl_hash.
16476 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16478 * tree-hash-traits.h: New file.
16479 (tree_operand_hash): New class.
16480 * sanopt.c: Include tree-hash-traits.h.
16481 (sanopt_tree_map_traits): Use tree_operand_hash.
16482 * tree-if-conv.c: Include tree-hash-traits.h.
16483 (phi_args_hash_traits): Use tree_operand_hash.
16484 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
16485 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
16487 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16489 * hash-map-traits.h: Include hash-traits.h.
16490 (simple_hashmap_traits): New class.
16491 * mem-stats.h (hash_map): Change the default traits to
16492 simple_hashmap_traits<default_hash_traits<Key> >.
16494 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16496 * hash-table.h: Update comments.
16498 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16500 * hash-traits.h (default_hash_traits): New structure.
16501 * hash-set.h (default_hashset_traits): Delete.
16502 (hash_set): Use default_hash_traits<Key> instead of
16503 default_hashset_traits. Delete hash_entry type and use Key directly.
16504 * ipa-devirt.c (pair_traits): Delete.
16505 (default_hash_traits <type_pair>): Override.
16506 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
16507 (odr_types_equivalent_p, add_type_duplicate): Likewise.
16509 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16511 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
16513 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16515 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
16516 (has_is_empty, is_empty_helper): Delete.
16517 (has_mark_deleted, mark_deleted_helper): Delete.
16518 (has_mark_empty, mark_empty_helper): Delete.
16519 (hash_table::is_deleted): Call the Descriptor unconditionally.
16520 (hash_table::is_empty): Likewise.
16521 (hash_table::mark_deleted): Likewise.
16522 (hash_table::mark_empty): Likewise.
16524 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16526 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
16527 redundant typedefs and members.
16528 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
16529 redundant typedefs.
16530 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
16531 * ipa-devirt.c (odr_name_hasher): Likewise.
16532 (polymorphic_call_target_hasher): Likewise.
16533 * ira-costs.c (cost_classes_hasher): Likewise.
16534 * statistics.c (stats_counter_hasher): Likewise.
16535 * trans-mem.c (log_entry_hasher): Likewise.
16536 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
16537 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
16538 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
16539 * var-tracking.c (variable_hasher): Likewise.
16540 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
16541 Remove redundant typedefs and members.
16543 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16545 * hash-traits.h (ggc_cache_hasher): Rename to...
16546 (ggc_cache_remove): ...this and remove typedefs.
16547 (ggc_cache_ptr_hash): New class.
16548 * hash-table.h: Update commentary.
16549 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
16550 rather than ggc_cache_hasher.
16551 (const_wide_int_hasher, reg_attr_hasher): Likewise.
16552 (const_double_hasher, const_fixed_hasher): Likewise.
16553 * function.c (insn_cache_hasher): Likewise.
16554 * trans-mem.c (tm_wrapper_hasher): Likewise.
16555 * tree.h (tree_decl_map_cache_hasher): Likewise.
16556 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
16557 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
16558 * ubsan.c (tree_type_map_cache_hasher): Likewise.
16559 * varasm.c (tm_clone_hasher): Likewise.
16560 * config/i386/i386.c (dllimport_hasher): Likewise.
16561 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
16562 (tree_hasher): Likewise.
16564 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16566 * hash-traits.h (ggc_hasher): Rename to...
16567 (ggc_remover): ...this and remove typedefs.
16568 (ggc_cache_hasher): Update accordingly. Add typedefs.
16569 (ggc_ptr_hash): New class.
16570 * hash-table.h: Update comment.
16571 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
16573 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
16574 (tree_descriptor_hasher): Likewise.
16575 * cgraph.c (function_version_hasher): Likewise.
16576 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
16577 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
16578 (dw_loc_list_hasher, addr_hasher): Likewise.
16579 * function.h (used_type_hasher): Likewise.
16580 * function.c (temp_address_hasher): Likewise.
16581 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
16582 * libfuncs.h (libfunc_hasher): Likewise.
16583 * lto-streamer.h (decl_state_hasher): Likewise.
16584 * optabs.c (libfunc_decl_hasher): Likewise.
16585 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
16586 * varasm.c (section_hasher, object_block_hasher): Likewise.
16587 (const_rtx_desc_hasher): Likewise.
16588 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
16589 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
16591 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16593 * hash-traits.h (free_ptr_hash): New class.
16594 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
16595 rather than typed_free_remove. Remove redudant typedefs.
16596 (external_ref_hasher): Likewise.
16597 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
16598 (ehspec_hasher): Likewise.
16599 * ggc-common.c (saving_hasher): Likewise.
16600 * gimplify.c (gimplify_hasher): Likewise.
16601 * haifa-sched.c (delay_i2_hasher): Likewise.
16602 * loop-invariant.c (invariant_expr_hasher): Likewise.
16603 * loop-iv.c (biv_entry_hasher): Likewise.
16604 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
16605 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
16606 * tree-cfg.c (locus_discrim_hasher): Likewise.
16607 * tree-eh.c (finally_tree_hasher): Likewise.
16608 * tree-into-ssa.c (var_info_hasher): Likewise.
16609 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
16610 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
16611 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
16612 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
16613 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
16614 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
16615 (shared_bitmap_hasher): Likewise.
16616 * tree-ssa-threadupdate.c (redirection_data): Likewise.
16617 * tree-vectorizer.h (peel_info_hasher): Likewise.
16618 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
16619 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
16621 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16623 * hash-table.h: Update comments.
16624 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
16625 (nofree_ptr_hash): New class.
16626 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
16627 than typed_noop_remove. Remove redudant typedefs.
16628 * attribs.c (attribute_hasher): Likewise.
16629 * cfg.c (bb_copy_hasher): Likewise.
16630 * cselib.c (cselib_hasher): Likewise.
16631 * dse.c (invariant_group_base_hasher): Likewise.
16632 * dwarf2cfi.c (trace_info_hasher): Likewise.
16633 * dwarf2out.c (macinfo_entry_hasher): Likewise.
16634 (comdat_type_hasher, loc_list_hasher): Likewise.
16635 * gcse.c (pre_ldst_expr_hasher): Likewise.
16636 * genmatch.c (id_base): Likewise.
16637 * genrecog.c (test_pattern_hasher): Likewise.
16638 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
16639 * haifa-sched.c (delay_i1_hasher): Likewise.
16640 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
16641 * ipa-icf.h (congruence_class_group_hash): Likewise.
16642 * ipa-profile.c (histogram_hash): Likewise.
16643 * ira-color.c (allocno_hard_regs_hasher): Likewise.
16644 * lto-streamer.h (string_slot_hasher): Likewise.
16645 * lto-streamer.c (tree_entry_hasher): Likewise.
16646 * plugin.c (event_hasher): Likewise.
16647 * postreload-gcse.c (expr_hasher): Likewise.
16648 * store-motion.c (st_expr_hasher): Likewise.
16649 * tree-sra.c (uid_decl_hasher): Likewise.
16650 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
16651 (ssa_name_var_hash): Likewise.
16652 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
16653 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
16654 * tree-ssa-pre.c (pre_expr_d): Likewise.
16655 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
16656 * vtable-verify.h (registration_hasher): Likewise.
16657 * vtable-verify.c (vtbl_map_hasher): Likewise.
16658 * config/arm/arm.c (libcall_hasher): Likewise.
16659 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
16660 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
16661 * config/sol2.c (comdat_entry_hasher): Likewise.
16662 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
16663 (print_fold_checksum, fold_checksum_tree): Likewise.
16664 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
16665 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
16666 (fold_build_call_array_loc): Likewise.
16667 * tree-ssa-ccp.c (gimple_htab): Likewise.
16668 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
16669 rather than pointer_type.
16671 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16673 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
16674 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
16676 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16678 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
16679 (ggc_hasher::ggc_mx): Likewise.
16680 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
16681 that duplicate ggc_hasher ones.
16683 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16685 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
16686 (gt_cleare_cache): Check here for deleted and empty entries.
16687 Replace handle_cache_entry with a call to keep_cache_entry.
16688 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
16689 (ggc_cache_hasher::keep_cache_entry): New function.
16690 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
16691 (tm_wrapper_hasher::keep_cache_entry): New function.
16692 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
16693 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
16694 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
16695 (type_cache_hasher::keep_cache_entry): New function.
16696 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
16697 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
16698 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
16699 (tree_type_map_cache_hasher::keep_cache_entry): New function.
16700 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
16701 (tm_clone_hasher::keep_cache_entry): New function.
16702 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
16703 (dllimport_hasher::keep_cache_entry): New function.
16705 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16707 * hash-table.h: Include hash-traits.h.
16708 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
16709 (ggc_cache_hasher): Move to...
16710 * hash-traits.h: ...this new file.
16712 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16714 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
16715 struct cl_optimization.
16716 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
16717 * tree.c (make_node_stat): Allocate cl_optimization struct.
16718 (copy_node_stat): Allocate and copy cl_optimization struct.
16720 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16722 * function.h (struct incoming_args): Move struct.
16723 (pass_by_reference, reference_callee_copied): Remove prototypes.
16724 * emit-rtl.h (struct incoming_args): Relocate struct here.
16725 * calls.h (pass_by_reference, reference_callee_copied): Relocate
16727 * function.c (pass_by_reference, reference_callee_copied): Move.
16728 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
16729 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
16730 * ipa-chkp.c: Include calls.h.
16732 2015-06-25 Andrew Macleod <amacleod@redhat.com>
16734 * alias.h (alias_set_type): Move typedef.
16735 * coretypes.h (alias_set_type): Relocate typedef here.
16736 * rtl.h: Don't include alias.h.
16738 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16740 * cgraph.h (cgraph_rtl_info): Move to rtl.h
16741 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
16743 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
16744 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
16746 * calls.c: Include hard-reg-set.h before rtl.h.
16749 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16750 Vladimir Makarov <vmakarov@redhat.com>
16752 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
16755 2015-06-25 Richard Biener <rguenther@suse.de>
16757 * fold-const.c (fold_binary_loc): Move simplification of
16758 (X <<>> C1) & C2 ...
16759 * match.pd: ... here.
16761 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
16763 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
16765 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16767 * match.pd: Add patterns for vec_conds between 1 and 0.
16769 2015-06-25 Richard Biener <rguenther@suse.de>
16771 * tree-vect-stmts.c (vectorizable_conversion): Do not set
16772 STMT_VINFO_VEC_STMT for SLP.
16773 (vectorizable_store): Likewise.
16774 (vectorizable_load): Likewise.
16775 (vect_transform_stmt): Catch SLP vectorization clobbering
16776 STMT_VINFO_VEC_STMT.
16778 2015-06-25 Richard Biener <rguenther@suse.de>
16780 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
16782 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
16783 cleanup resulting dead code and parameters.
16784 (vect_transform_slp_perm_load): Adjust.
16786 2015-06-25 Nick Clifton <nickc@redhat.com>
16788 * config/bfin/bfin.c (bfin_expand_prologue): Set
16789 current_function_static_stack_size if flag_stack_usage_info is set.
16790 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
16791 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
16792 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
16793 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
16795 2015-06-25 Tom de Vries <tom@codesourcery.com>
16797 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
16798 comment that the generated IV is unsigned.
16800 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16803 * config/arm/arm.c (arm_dbx_register_number): Return
16804 DWARF_FRAME_REGISTERS by default.
16806 2015-06-25 Tom de Vries <tom@codesourcery.com>
16808 * dominance.c (calculate_dominance_info): Fix verify_dominators call
16809 argument. Call verify_dominator when reusing dominator info.
16811 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
16814 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
16815 an additional element of the unspec vector. Modify indices
16817 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
16818 * config/sh/sh.c (prepare_move_operands): Pass incremented
16819 const_int to gen_GOTaddr2picreg.
16820 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
16822 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
16824 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
16825 Condition on TARGET_FLOAT.
16827 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
16829 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
16832 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
16834 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
16836 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
16837 aarch64_err_no_fpadvsimd.
16839 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
16840 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
16841 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
16842 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
16843 Turn error into assert, test TARGET_FLOAT.
16844 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
16847 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
16850 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
16852 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
16854 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
16856 2015-06-24 Renlin Li <renlin.li@arm.com>
16858 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
16859 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
16861 2015-06-24 Richard Biener <rguenther@suse.de>
16863 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
16865 (lower_opt_convert): Support lowering of conditional view_convert.
16866 (parser::parse_operation): Likewise.
16867 (parser::parse_for): Likewise.
16869 2015-06-24 Renlin Li <renlin.li@arm.com>
16871 * varasm.c (emit_local): Use unsigned int for align variable.
16873 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16876 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
16877 for negative numbers.
16879 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16881 PR rtl-optimization/66306
16882 * reload.c (find_reloads): Swap the match_dup info for
16883 commutative operands.
16885 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16887 * config/s390/vx-builtins.md
16888 ("vec_scatter_element<mode>_<non_vec_int>")
16889 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
16890 attribute with bhfgq.
16892 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16894 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
16896 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16898 * config/s390/s390-builtin-types.def: Add flag to indicate the
16899 options under which the function type is needed.
16900 * config/s390/s390-builtins.def: Add flag to indicate the options
16901 under which the builtin is enabled.
16902 * config/s390/s390-builtins.h: Add flags parameter to macro
16904 (bflags_for_builtin): New function.
16905 (flags_for_builtin): Renamed to ...
16906 (opflags_for_builtin): ... this.
16907 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
16908 flags_for_builtin to bflags_for_builtin and
16909 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
16910 * config/s390/s390.c: Add initialization of bflags_builtin and
16911 opflags_builtin arrays.
16912 Remove code for flags_builtin.
16913 (s390_init_builtins): Only create builtin function types if one of
16914 their flags is active.
16915 Only create builtins if all of their flags are active.
16916 (s390_expand_builtin): Rename flags_for_builtin to
16917 opflags_for_builtin.
16919 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16921 * config/s390/vecintrin.h: Remove internal builtins.
16923 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16925 * config/s390/s390.c (s390_secondary_reload): Fix check for
16926 GENERAL_REGS register class.
16928 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16930 * config/s390/s390.c (s390_support_vector_misalignment): Call
16931 default implementation for !TARGET_VX.
16933 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16935 * config/s390/s390.c (s390_legitimate_constant_p): Add
16938 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16940 * config/s390/s390.c (s390_vector_abi): New variable definition.
16941 (s390_check_type_for_vector_abi): New function.
16942 (TARGET_ASM_FILE_END): New macro definition.
16943 (s390_asm_file_end): New function.
16944 (s390_function_arg): Call s390_check_type_for_vector_abi.
16945 (s390_gimplify_va_arg): Likewise.
16946 * configure: Regenerate.
16947 * configure.ac: Check for .gnu_attribute Binutils feature.
16949 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
16952 * config/bfin/bfin.c (hwloop_optimize): Initialize
16953 JUMP_LABEL for newly created jump.
16955 2015-06-23 Tristan Gingold <gingold@adacore.com>
16957 * collect-utils.c (collect_wait): Unlink the response file here
16959 (do_wait): ...here.
16960 (utils_cleanup): ...and here.
16962 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
16964 * df-scan.c: Don't include target-def.h.
16965 * targhooks.c: Likewise.
16966 * config/arm/arm-c.c: Likewise.
16967 * config/i386/i386-c.c: Likewise.
16968 * config/nds32/nds32-cost.c: Likewise.
16969 * config/nds32/nds32-fp-as-gp.c: Likewise.
16970 * config/nds32/nds32-intrinsic.c: Likewise.
16971 * config/nds32/nds32-isr.c: Likewise.
16972 * config/nds32/nds32-md-auxiliary.c: Likewise.
16973 * config/nds32/nds32-memory-manipulation.c: Likewise.
16974 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16975 * config/nds32/nds32-predicates.c: Likewise.
16977 2015-06-23 Richard Biener <rguenther@suse.de>
16979 PR tree-optimization/66636
16980 * tree-vect-stmts.c (vectorizable_store): Properly compute the
16981 def type for further defs for strided stores.
16983 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
16985 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
16986 conditional selects.
16987 (setcc_int<mode>, setcc_float<mode>): Reformat.
16989 2015-06-23 Marek Polacek <polacek@redhat.com>
16991 * match.pd ((x + y) - (x | y) -> x & y,
16992 (x + y) - (x & y) -> x | y): New patterns.
16994 2015-06-23 Ludovic Courtès <ludo@gnu.org>
16997 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
16998 '-dynamic-linker' within %{!shared: ...}.
17000 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
17003 * config/i386/predicates.md (addsub_vm_operator): New predicate.
17004 (addsub_vs_operator): Ditto.
17005 (addsub_vs_parallel): Ditto.
17006 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
17007 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
17008 Put minus RTX before plus and adjust vec_merge selector.
17009 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
17010 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
17011 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
17012 (addsub vec_merge splitters): New combiner splitters.
17013 (addsub vec_select/vec_concat splitters): Ditto.
17015 2015-06-23 Bin Cheng <bin.cheng@arm.com>
17017 PR tree-optimization/66449
17018 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
17019 POINTER_PLUS_EXPR for pointers.
17021 2015-06-23 Alan Modra <amodra@gmail.com>
17023 * rtlanal.c (commutative_operand_precedence): Correct comments.
17024 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
17025 declaration. Return an int. Distinguish REG,REG return from
17027 (struct simplify_plus_minus_op_data): Make local to function.
17028 (simplify_plus_minus): Don't set canonicalized if merely sorting
17029 registers. Avoid packing ops if nothing changes. White space fixes.
17031 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
17033 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
17034 -fdump-ada-spec is passed but not if -fsyntax-only is.
17036 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
17039 * lra-lives.c (process_bb_lives): Check insn copying the same
17040 reload pseudo and don't create a copy for it.
17042 2015-06-22 Tom de Vries <tom@codesourcery.com>
17044 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
17047 2015-06-22 Tom de Vries <tom@codesourcery.com>
17049 * builtins.def (DEF_GOMP_BUILTIN): Test
17050 'flag_tree_parallelize_loops > 1' instead of
17051 'flag_tree_parallelize_loops'. Test flag_cilkplus.
17053 2015-06-22 Tom de Vries <tom@codesourcery.com>
17055 * dominance.c (calculate_dominance_info): Verify dominators if
17058 2015-06-22 Marek Polacek <polacek@redhat.com>
17060 * match.pd ((x ^ y) ^ (x | y) -> x & y,
17061 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
17062 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
17063 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
17065 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
17068 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
17069 cost of embedded comparison.
17071 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17074 * config/rs6000/predicates.md (altivec_register_operand): Permit
17075 virtual stack registers.
17076 (vsx_register_operand): Likewise.
17077 (vfloat_operand): Likewise.
17078 (vint_operand): Likewise.
17079 (vlogical_operand): Likewise.
17081 2015-06-22 Richard Biener <rguenther@suse.de>
17083 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
17084 and single_scalar_iteration_cost members.
17085 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
17086 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
17087 (vect_get_single_scalar_iteration_cost): Remove.
17088 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
17089 Use LOOP_VINFO_SCALAR_ITERATION_COST.
17090 * tree-vect-loop.c (destroy_loop_vec_info): Free
17092 (vect_get_single_scalar_iteration_cost): Compute result into
17093 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
17094 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
17095 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
17096 (vect_estimate_min_profitable_iters): Use them.
17098 2015-06-22 Christian Bruel <christian.bruel@st.com>
17101 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
17102 (TARGET_INSERT_ATTRIBUTES): Define.
17103 (thumb_flipper): New var.
17104 * config/arm/arm.opt (-mflip-thumb): New switch.
17106 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
17107 Martin Liska <mliska@suse.cz>
17110 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
17111 construction of arg_types.
17112 (sem_function::sem_function): Likewise.
17113 (sem_function::~sem_function): Remove destruction of arg_types.
17114 (sem_function::compatible_parm_types_p): New function.
17115 (sem_function::equals_wpa): Reorg matching of return values
17116 and parameter types.
17117 (sem_function::equals_private): Reorg mathcing of argument types.
17118 (sem_function::parse_tree_args): Remove.
17119 * ipa-icf.h (init_wpa): Do not call it.
17120 (parse_tree_args): Remove.
17121 (compatible_parm_types_p): Declare.
17122 (result_type): Remove.
17123 (arg_types): Remove.
17125 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
17128 * ipa-polymorphic-call.c
17129 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
17130 initializing alias oracle; fix formating; set base_alias_set if it
17133 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
17135 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
17136 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
17137 (find_inc): Likewise.
17138 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
17140 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
17141 * df-scan.c (df_swap_refs): Remove.
17142 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
17143 * dominance.c (link_roots): Use std::swap instead of manually swapping.
17144 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
17145 * fold-const.c (fold_relational_const): Likewise.
17146 * genattrtab.c (simplify_test_exp): Likewise.
17147 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
17148 gimple_simplify): Likewise.
17149 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
17150 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
17151 * ipa-devirt.c (add_type_duplicate): Likewise.
17152 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
17153 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
17154 * lra.c (lra_create_copy): Likewise.
17155 * lto-streamer-out.c (DFS::DFS): Likewise.
17156 * modulo-sched.c (get_sched_window): Likewise.
17157 * omega.c (omega_pretty_print_problem): Likewise.
17158 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
17159 * reload1.c (reloads_unique_chain_p): Likewise.
17160 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
17161 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
17163 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
17165 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
17166 predicate_mem_writes): Likewise.
17167 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
17168 * tree-predcom.c (combine_chains): Likewise.
17169 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
17170 refs_may_alias_p_1): Likewise.
17171 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
17172 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
17173 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
17174 number_of_iterations_cond): Likewise.
17175 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
17176 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
17177 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
17178 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
17179 * tree-vrp.c (extract_range_from_binary_expr_1,
17180 extract_range_from_unary_expr_1): Likewise.
17182 2015-06-20 Marek Polacek <polacek@redhat.com>
17184 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
17186 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
17189 * config/sh/sh.c (prepare_move_operands): Replace subreg
17190 index term with R0 for base and index addressing.
17192 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
17194 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
17196 (movsf_aarch64): Change condition from register_operand to
17197 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
17198 load1. Change type for alternative 7 to store1.
17199 (movdf_aarch64): Likewise.
17201 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
17203 * config/vax/vax.md: Adjust sign/zero extend patterns to
17204 handle SUBREGs in operands[1].
17206 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17208 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
17209 of manually swapping.
17210 (expand_vec_perm_interleave2): Likewise.
17212 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
17214 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
17215 reuse bounds created for abnormal ssa names.
17217 2015-06-19 Jakub Jelinek <jakub@redhat.com>
17219 * config/nvptx/nvptx.md (allocate_stack): Rename to...
17220 (allocate_stack_<mode>): ... this, and add :P on both
17221 match_operand and unspec.
17222 (allocate_stack): New expander.
17224 2015-06-19 Christian Bruel <christian.bruel@st.com>
17228 * config/arm/arm.c (arm_set_current_function): Handle
17229 explicit default options.
17231 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
17233 * config/i386/i386.md (*movsicc_noc_zext): New insn.
17234 (zero-extended cmove with mem peephole2): New pattern.
17235 (cmove with mem peephole2): Merge patterns.
17237 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
17239 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
17241 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
17243 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
17244 * config/mips/mips.md (*madd4<mode>): Ditto.
17245 (*nmadd3<mode>) Ditto.
17246 (*nmadd4<mode>_fastmath): Ditto.
17247 (*nmadd3<mode>_fastmath): Ditto.
17248 (*nmsub4<mode>): Ditto.
17249 (*nmsub3<mode>): Ditto.
17250 (*nmsub4<mode>_fastmath): Ditto.
17251 (*nmsub3<mode>_fastmath): Ditto.
17253 2015-06-18 Michael Matz <matz@suse.de>
17255 PR middle-end/66253
17256 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
17257 grouped strided stores.
17258 (vectorizable_load): Don't use the DR from first_stmt in
17259 the non-SLP grouped strided case.
17261 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17264 * function.c (assign_bounds): Add arguments assign_regs,
17265 assign_special, assign_bt.
17266 (assign_parms): For vararg functions handle bounds in BT
17267 and special slots after incoming vararg bounds.
17269 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17271 PR middle-end/66568
17272 * cfgexpand.c (expand_return): Handle missing bounds.
17273 (expand_gimple_stmt_1): Likewise.
17274 * tree-chkp.c (chkp_expand_zero_bounds): New.
17275 * tree-chkp.h (chkp_expand_zero_bounds): New.
17277 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17279 PR middle-end/66567
17280 * ipa-chkp.c (chkp_maybe_create_clone): Require
17281 functions to be instrumentable.
17282 * tree-chkp.c (chkp_replace_function_pointer): Use
17283 chkp_instrumentable_p instead of attribute check.
17285 2015-06-18 Richard Biener <rguenther@suse.de>
17287 PR tree-optimization/66510
17288 * tree-vect-stmts.c (vectorizable_load): Properly compute the
17289 number of vector loads for SLP permuted loads.
17290 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
17291 check the stride for loop vectorization.
17292 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
17293 vectorization factor.
17294 (vect_analyze_group_access): If the group size is not a power
17295 of two require a epilogue loop.
17296 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
17297 compute and optimizing and alias test pruning after final
17298 vectorization factor computation.
17299 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
17301 (vect_transform_slp_perm_load): Properly compute the original
17302 number of vector load stmts.
17304 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
17306 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
17307 "unlikely character , in @var" warning.
17309 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
17311 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
17312 (ix86_function_arg_advance): Ditto.
17313 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
17315 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
17317 * function.h (struct rtl_data): Remove struct and accessor macros.
17318 * emit-rtl.h (struct rtl_data): Relocate to here.
17319 * Makefile.in (GTFILES): Add emit-rtl.h.
17320 * df-core.c: Include emit-rtl.h.
17321 * genattrtab.c: Likewise.
17322 * genconditions.c: Likewise.
17323 * genpreds.c: Likewise.
17324 * genrecog.c: Likewise.
17325 * regcprop.c: Likewise.
17326 * resource.c: Likewise.
17327 * sched-rgn.c: Likewise.
17328 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17329 * config/i386/winnt.c: Likewise.
17331 2015-06-17 Jakub Jelinek <jakub@redhat.com>
17333 PR middle-end/66429
17334 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
17335 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
17336 and has_force_vectorize_loops flags from cfun into
17338 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
17339 if simduid is non-NULL.
17340 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
17341 * passes.def (pass_simduid_cleanup): Add new pass after loop
17343 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
17344 indirection from htab argument's type.
17345 (shrink_simd_arrays): New function.
17346 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
17347 Don't call adjust_simduid_builtins if there are no loops.
17348 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
17349 (pass_simduid_cleanup::execute): New method.
17350 (make_pass_simduid_cleanup): New function.
17352 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
17354 * tree-core.h (tree_target_option): Make opts field a pointer to a
17355 cl_target_option instead of an instance of the struct.
17356 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
17358 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
17359 TARGET_OPTION_NODE.
17360 (copy_node_stat): Allocate and copy struct cl_target_option.
17362 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
17364 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
17365 Remove conditional exposure of prototypes.
17366 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
17367 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
17368 definitions in tree.h with functions.
17369 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
17371 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
17373 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
17375 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
17376 (*cmp<mode>_signed): ... this.
17377 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
17378 (*cmp<mode>_unsigned): ... this. Remove %b.
17380 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
17382 * coretypes.h: Include input.h and as-a.h.
17383 * rtl.h: Include input.h and as-a.h for generator files.
17384 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
17385 * vec.c: Don't include diagnostic-core.h.
17386 * alias.c: Do not include input.h, line-map.h or is-a.h.
17387 * asan.c: Likewise.
17388 * attribs.c: Likewise.
17389 * auto-inc-dec.c: Likewise.
17390 * auto-profile.c: Likewise.
17391 * bb-reorder.c: Likewise.
17392 * bt-load.c: Likewise.
17393 * builtins.c: Likewise.
17394 * caller-save.c: Likewise.
17395 * calls.c: Likewise.
17396 * ccmp.c: Likewise.
17398 * cfganal.c: Likewise.
17399 * cfgbuild.c: Likewise.
17400 * cfgcleanup.c: Likewise.
17401 * cfgexpand.c: Likewise.
17402 * cfghooks.c: Likewise.
17403 * cfgloop.c: Likewise.
17404 * cfgloop.h: Likewise.
17405 * cfgloopanal.c: Likewise.
17406 * cfgloopmanip.c: Likewise.
17407 * cfgrtl.c: Likewise.
17408 * cgraph.c: Likewise.
17409 * cgraphbuild.c: Likewise.
17410 * cgraphclones.c: Likewise.
17411 * cgraphunit.c: Likewise.
17412 * cilk-common.c: Likewise.
17413 * combine-stack-adj.c: Likewise.
17414 * combine.c: Likewise.
17415 * compare-elim.c: Likewise.
17416 * convert.c: Likewise.
17417 * coverage.c: Likewise.
17418 * cppbuiltin.c: Likewise.
17419 * cprop.c: Likewise.
17421 * cselib.c: Likewise.
17422 * data-streamer-in.c: Likewise.
17423 * data-streamer-out.c: Likewise.
17424 * data-streamer.c: Likewise.
17425 * dbxout.c: Likewise.
17428 * debug.c: Likewise.
17429 * df-core.c: Likewise.
17430 * df-problems.c: Likewise.
17431 * df-scan.c: Likewise.
17434 * diagnostic-core.h: Likewise.
17435 * diagnostic.c: Likewise.
17436 * dojump.c: Likewise.
17437 * dominance.c: Likewise.
17438 * domwalk.c: Likewise.
17439 * double-int.c: Likewise.
17441 * dumpfile.c: Likewise.
17442 * dumpfile.h: Likewise.
17443 * dwarf2asm.c: Likewise.
17444 * dwarf2cfi.c: Likewise.
17445 * dwarf2out.c: Likewise.
17446 * emit-rtl.c: Likewise.
17447 * et-forest.c: Likewise.
17448 * except.c: Likewise.
17449 * explow.c: Likewise.
17450 * expmed.c: Likewise.
17451 * expr.c: Likewise.
17452 * final.c: Likewise.
17453 * fixed-value.c: Likewise.
17454 * fold-const.c: Likewise.
17455 * function.c: Likewise.
17456 * fwprop.c: Likewise.
17457 * gcc-plugin.h: Likewise.
17458 * gcse.c: Likewise.
17459 * generic-match-head.c: Likewise.
17460 * ggc-page.c: Likewise.
17461 * gimple-builder.c: Likewise.
17462 * gimple-expr.c: Likewise.
17463 * gimple-fold.c: Likewise.
17464 * gimple-iterator.c: Likewise.
17465 * gimple-low.c: Likewise.
17466 * gimple-match-head.c: Likewise.
17467 * gimple-pretty-print.c: Likewise.
17468 * gimple-ssa-isolate-paths.c: Likewise.
17469 * gimple-ssa-strength-reduction.c: Likewise.
17470 * gimple-streamer-in.c: Likewise.
17471 * gimple-streamer-out.c: Likewise.
17472 * gimple-streamer.h: Likewise.
17473 * gimple-walk.c: Likewise.
17474 * gimple.c: Likewise.
17475 * gimplify-me.c: Likewise.
17476 * gimplify.c: Likewise.
17477 * godump.c: Likewise.
17478 * graph.c: Likewise.
17479 * graphite-blocking.c: Likewise.
17480 * graphite-dependences.c: Likewise.
17481 * graphite-interchange.c: Likewise.
17482 * graphite-isl-ast-to-gimple.c: Likewise.
17483 * graphite-optimize-isl.c: Likewise.
17484 * graphite-poly.c: Likewise.
17485 * graphite-scop-detection.c: Likewise.
17486 * graphite-sese-to-poly.c: Likewise.
17487 * graphite.c: Likewise.
17488 * haifa-sched.c: Likewise.
17489 * hw-doloop.c: Likewise.
17490 * ifcvt.c: Likewise.
17491 * init-regs.c: Likewise.
17492 * input.c: Likewise.
17493 * internal-fn.c: Likewise.
17494 * ipa-chkp.c: Likewise.
17495 * ipa-comdats.c: Likewise.
17496 * ipa-cp.c: Likewise.
17497 * ipa-devirt.c: Likewise.
17498 * ipa-icf-gimple.c: Likewise.
17499 * ipa-icf.c: Likewise.
17500 * ipa-inline-analysis.c: Likewise.
17501 * ipa-inline-transform.c: Likewise.
17502 * ipa-inline.c: Likewise.
17503 * ipa-polymorphic-call.c: Likewise.
17504 * ipa-profile.c: Likewise.
17505 * ipa-prop.c: Likewise.
17506 * ipa-pure-const.c: Likewise.
17507 * ipa-ref.c: Likewise.
17508 * ipa-reference.c: Likewise.
17509 * ipa-split.c: Likewise.
17510 * ipa-utils.c: Likewise.
17511 * ipa-visibility.c: Likewise.
17513 * ira-build.c: Likewise.
17514 * ira-color.c: Likewise.
17515 * ira-conflicts.c: Likewise.
17516 * ira-costs.c: Likewise.
17517 * ira-emit.c: Likewise.
17518 * ira-lives.c: Likewise.
17520 * jump.c: Likewise.
17521 * langhooks.c: Likewise.
17523 * loop-doloop.c: Likewise.
17524 * loop-init.c: Likewise.
17525 * loop-invariant.c: Likewise.
17526 * loop-iv.c: Likewise.
17527 * loop-unroll.c: Likewise.
17528 * lower-subreg.c: Likewise.
17529 * lra-assigns.c: Likewise.
17530 * lra-coalesce.c: Likewise.
17531 * lra-constraints.c: Likewise.
17532 * lra-eliminations.c: Likewise.
17533 * lra-lives.c: Likewise.
17534 * lra-remat.c: Likewise.
17535 * lra-spills.c: Likewise.
17537 * lto-cgraph.c: Likewise.
17538 * lto-compress.c: Likewise.
17539 * lto-opts.c: Likewise.
17540 * lto-section-in.c: Likewise.
17541 * lto-section-out.c: Likewise.
17542 * lto-streamer-in.c: Likewise.
17543 * lto-streamer-out.c: Likewise.
17544 * lto-streamer.c: Likewise.
17546 * mode-switching.c: Likewise.
17547 * modulo-sched.c: Likewise.
17548 * omega.c: Likewise.
17549 * omp-low.c: Likewise.
17550 * optabs.c: Likewise.
17551 * opts-global.c: Likewise.
17552 * opts.h: Likewise.
17553 * passes.c: Likewise.
17554 * plugin.c: Likewise.
17555 * postreload-gcse.c: Likewise.
17556 * postreload.c: Likewise.
17557 * predict.c: Likewise.
17558 * pretty-print.h: Likewise.
17559 * print-rtl.c: Likewise.
17560 * print-tree.c: Likewise.
17561 * profile.c: Likewise.
17562 * real.c: Likewise.
17563 * realmpfr.c: Likewise.
17564 * recog.c: Likewise.
17566 * reg-stack.c: Likewise.
17567 * regcprop.c: Likewise.
17568 * reginfo.c: Likewise.
17569 * regrename.c: Likewise.
17570 * regstat.c: Likewise.
17571 * reload.c: Likewise.
17572 * reload1.c: Likewise.
17573 * reorg.c: Likewise.
17574 * resource.c: Likewise.
17575 * rtl-chkp.c: Likewise.
17576 * rtl-error.c: Likewise.
17577 * rtlanal.c: Likewise.
17578 * rtlhooks.c: Likewise.
17579 * sanopt.c: Likewise.
17580 * sched-deps.c: Likewise.
17581 * sched-ebb.c: Likewise.
17582 * sched-rgn.c: Likewise.
17583 * sched-vis.c: Likewise.
17584 * sdbout.c: Likewise.
17585 * sel-sched-dump.c: Likewise.
17586 * sel-sched-ir.c: Likewise.
17587 * sel-sched.c: Likewise.
17588 * sese.c: Likewise.
17589 * shrink-wrap.c: Likewise.
17590 * simplify-rtx.c: Likewise.
17591 * stack-ptr-mod.c: Likewise.
17592 * statistics.c: Likewise.
17593 * stmt.c: Likewise.
17594 * stor-layout.c: Likewise.
17595 * store-motion.c: Likewise.
17596 * streamer-hooks.c: Likewise.
17597 * stringpool.c: Likewise.
17598 * symtab.c: Likewise.
17599 * target-globals.c: Likewise.
17600 * targhooks.c: Likewise.
17601 * toplev.c: Likewise.
17602 * tracer.c: Likewise.
17603 * trans-mem.c: Likewise.
17604 * tree-affine.c: Likewise.
17605 * tree-browser.c: Likewise.
17606 * tree-call-cdce.c: Likewise.
17607 * tree-cfg.c: Likewise.
17608 * tree-cfgcleanup.c: Likewise.
17609 * tree-chkp-opt.c: Likewise.
17610 * tree-chkp.c: Likewise.
17611 * tree-chrec.c: Likewise.
17612 * tree-complex.c: Likewise.
17613 * tree-data-ref.c: Likewise.
17614 * tree-dfa.c: Likewise.
17615 * tree-diagnostic.c: Likewise.
17616 * tree-dump.c: Likewise.
17617 * tree-eh.c: Likewise.
17618 * tree-emutls.c: Likewise.
17619 * tree-if-conv.c: Likewise.
17620 * tree-inline.c: Likewise.
17621 * tree-into-ssa.c: Likewise.
17622 * tree-iterator.c: Likewise.
17623 * tree-loop-distribution.c: Likewise.
17624 * tree-nested.c: Likewise.
17625 * tree-nrv.c: Likewise.
17626 * tree-object-size.c: Likewise.
17627 * tree-outof-ssa.c: Likewise.
17628 * tree-parloops.c: Likewise.
17629 * tree-phinodes.c: Likewise.
17630 * tree-predcom.c: Likewise.
17631 * tree-pretty-print.c: Likewise.
17632 * tree-profile.c: Likewise.
17633 * tree-scalar-evolution.c: Likewise.
17634 * tree-sra.c: Likewise.
17635 * tree-ssa-address.c: Likewise.
17636 * tree-ssa-alias.c: Likewise.
17637 * tree-ssa-ccp.c: Likewise.
17638 * tree-ssa-coalesce.c: Likewise.
17639 * tree-ssa-copy.c: Likewise.
17640 * tree-ssa-copyrename.c: Likewise.
17641 * tree-ssa-dce.c: Likewise.
17642 * tree-ssa-dom.c: Likewise.
17643 * tree-ssa-dse.c: Likewise.
17644 * tree-ssa-forwprop.c: Likewise.
17645 * tree-ssa-ifcombine.c: Likewise.
17646 * tree-ssa-live.c: Likewise.
17647 * tree-ssa-loop-ch.c: Likewise.
17648 * tree-ssa-loop-im.c: Likewise.
17649 * tree-ssa-loop-ivcanon.c: Likewise.
17650 * tree-ssa-loop-ivopts.c: Likewise.
17651 * tree-ssa-loop-manip.c: Likewise.
17652 * tree-ssa-loop-niter.c: Likewise.
17653 * tree-ssa-loop-prefetch.c: Likewise.
17654 * tree-ssa-loop-unswitch.c: Likewise.
17655 * tree-ssa-loop.c: Likewise.
17656 * tree-ssa-math-opts.c: Likewise.
17657 * tree-ssa-operands.c: Likewise.
17658 * tree-ssa-phiopt.c: Likewise.
17659 * tree-ssa-phiprop.c: Likewise.
17660 * tree-ssa-pre.c: Likewise.
17661 * tree-ssa-propagate.c: Likewise.
17662 * tree-ssa-reassoc.c: Likewise.
17663 * tree-ssa-sccvn.c: Likewise.
17664 * tree-ssa-scopedtables.c: Likewise.
17665 * tree-ssa-sink.c: Likewise.
17666 * tree-ssa-strlen.c: Likewise.
17667 * tree-ssa-structalias.c: Likewise.
17668 * tree-ssa-tail-merge.c: Likewise.
17669 * tree-ssa-ter.c: Likewise.
17670 * tree-ssa-threadedge.c: Likewise.
17671 * tree-ssa-threadupdate.c: Likewise.
17672 * tree-ssa-uncprop.c: Likewise.
17673 * tree-ssa-uninit.c: Likewise.
17674 * tree-ssa.c: Likewise.
17675 * tree-ssanames.c: Likewise.
17676 * tree-stdarg.c: Likewise.
17677 * tree-streamer-in.c: Likewise.
17678 * tree-streamer-out.c: Likewise.
17679 * tree-streamer.c: Likewise.
17680 * tree-switch-conversion.c: Likewise.
17681 * tree-tailcall.c: Likewise.
17682 * tree-vect-data-refs.c: Likewise.
17683 * tree-vect-generic.c: Likewise.
17684 * tree-vect-loop-manip.c: Likewise.
17685 * tree-vect-loop.c: Likewise.
17686 * tree-vect-patterns.c: Likewise.
17687 * tree-vect-slp.c: Likewise.
17688 * tree-vect-stmts.c: Likewise.
17689 * tree-vectorizer.c: Likewise.
17690 * tree-vrp.c: Likewise.
17691 * tree.c: Likewise.
17692 * tsan.c: Likewise.
17693 * ubsan.c: Likewise.
17694 * valtrack.c: Likewise.
17695 * value-prof.c: Likewise.
17696 * var-tracking.c: Likewise.
17697 * varasm.c: Likewise.
17698 * varpool.c: Likewise.
17699 * vmsdbgout.c: Likewise.
17700 * vtable-verify.c: Likewise.
17702 * wide-int.cc: Likewise.
17703 * xcoffout.c: Likewise.
17704 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
17705 * common/common-targhooks.c: Likewise.
17706 * config/aarch64/aarch64-builtins.c: Likewise.
17707 * config/aarch64/aarch64.c: Likewise.
17708 * config/alpha/alpha.c: Likewise.
17709 * config/arc/arc.c: Likewise.
17710 * config/arm/aarch-common.c: Likewise.
17711 * config/arm/arm-builtins.c: Likewise.
17712 * config/arm/arm-c.c: Likewise.
17713 * config/arm/arm.c: Likewise.
17714 * config/avr/avr-c.c: Likewise.
17715 * config/avr/avr-log.c: Likewise.
17716 * config/avr/avr.c: Likewise.
17717 * config/bfin/bfin.c: Likewise.
17718 * config/c6x/c6x.c: Likewise.
17719 * config/cr16/cr16.c: Likewise.
17720 * config/cris/cris.c: Likewise.
17721 * config/darwin-c.c: Likewise.
17722 * config/darwin.c: Likewise.
17723 * config/default-c.c: Likewise.
17724 * config/epiphany/epiphany.c: Likewise.
17725 * config/epiphany/mode-switch-use.c: Likewise.
17726 * config/epiphany/resolve-sw-modes.c: Likewise.
17727 * config/fr30/fr30.c: Likewise.
17728 * config/frv/frv.c: Likewise.
17729 * config/ft32/ft32.c: Likewise.
17730 * config/glibc-c.c: Likewise.
17731 * config/h8300/h8300.c: Likewise.
17732 * config/i386/i386-c.c: Likewise.
17733 * config/i386/i386.c: Likewise.
17734 * config/i386/msformat-c.c: Likewise.
17735 * config/i386/winnt-cxx.c: Likewise.
17736 * config/i386/winnt-stubs.c: Likewise.
17737 * config/i386/winnt.c: Likewise.
17738 * config/ia64/ia64-c.c: Likewise.
17739 * config/ia64/ia64.c: Likewise.
17740 * config/iq2000/iq2000.c: Likewise.
17741 * config/lm32/lm32.c: Likewise.
17742 * config/m32c/m32c-pragma.c: Likewise.
17743 * config/m32c/m32c.c: Likewise.
17744 * config/m32r/m32r.c: Likewise.
17745 * config/m68k/m68k.c: Likewise.
17746 * config/mcore/mcore.c: Likewise.
17747 * config/mep/mep-pragma.c: Likewise.
17748 * config/mep/mep.c: Likewise.
17749 * config/microblaze/microblaze-c.c: Likewise.
17750 * config/microblaze/microblaze.c: Likewise.
17751 * config/mips/mips.c: Likewise.
17752 * config/mmix/mmix.c: Likewise.
17753 * config/mn10300/mn10300.c: Likewise.
17754 * config/moxie/moxie.c: Likewise.
17755 * config/msp430/msp430-c.c: Likewise.
17756 * config/msp430/msp430.c: Likewise.
17757 * config/nds32/nds32-cost.c: Likewise.
17758 * config/nds32/nds32-fp-as-gp.c: Likewise.
17759 * config/nds32/nds32-intrinsic.c: Likewise.
17760 * config/nds32/nds32-isr.c: Likewise.
17761 * config/nds32/nds32-md-auxiliary.c: Likewise.
17762 * config/nds32/nds32-memory-manipulation.c: Likewise.
17763 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17764 * config/nds32/nds32-predicates.c: Likewise.
17765 * config/nds32/nds32.c: Likewise.
17766 * config/nios2/nios2.c: Likewise.
17767 * config/nvptx/nvptx.c: Likewise.
17768 * config/pa/pa.c: Likewise.
17769 * config/pdp11/pdp11.c: Likewise.
17770 * config/rl78/rl78-c.c: Likewise.
17771 * config/rl78/rl78.c: Likewise.
17772 * config/rs6000/rs6000-c.c: Likewise.
17773 * config/rs6000/rs6000.c: Likewise.
17774 * config/rx/rx.c: Likewise.
17775 * config/s390/s390-c.c: Likewise.
17776 * config/s390/s390.c: Likewise.
17777 * config/sh/sh-c.c: Likewise.
17778 * config/sh/sh-mem.cc: Likewise.
17779 * config/sh/sh.c: Likewise.
17780 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17781 * config/sh/sh_treg_combine.cc: Likewise.
17782 * config/sol2-c.c: Likewise.
17783 * config/sol2-cxx.c: Likewise.
17784 * config/sol2-stubs.c: Likewise.
17785 * config/sol2.c: Likewise.
17786 * config/sparc/sparc-c.c: Likewise.
17787 * config/sparc/sparc.c: Likewise.
17788 * config/spu/spu-c.c: Likewise.
17789 * config/spu/spu.c: Likewise.
17790 * config/stormy16/stormy16.c: Likewise.
17791 * config/tilegx/mul-tables.c: Likewise.
17792 * config/tilegx/tilegx-c.c: Likewise.
17793 * config/tilegx/tilegx.c: Likewise.
17794 * config/tilepro/mul-tables.c: Likewise.
17795 * config/tilepro/tilepro-c.c: Likewise.
17796 * config/tilepro/tilepro.c: Likewise.
17797 * config/v850/v850-c.c: Likewise.
17798 * config/v850/v850.c: Likewise.
17799 * config/vax/vax.c: Likewise.
17800 * config/visium/visium.c: Likewise.
17801 * config/vms/vms-c.c: Likewise.
17802 * config/vms/vms.c: Likewise.
17803 * config/vxworks.c: Likewise.
17804 * config/winnt-c.c: Likewise.
17805 * config/xtensa/xtensa.c: Likewise.
17807 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
17809 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
17811 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
17813 2015-06-17 Richard Biener <rguenther@suse.de>
17815 PR tree-optimization/66251
17816 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
17817 stmts for SLP strided stores.
17820 2015-05-22 Richard Biener <rguenther@suse.de>
17822 PR tree-optimization/66251
17823 * tree-vect-stmts.c (vectorizable_conversion): Properly
17824 set STMT_VINFO_VEC_STMT even for the SLP case.
17826 2015-05-26 Michael Matz <matz@suse.de>
17828 PR middle-end/66251
17829 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
17830 STMT_VINFO_VEC_STMT, also with SLP.
17832 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
17835 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
17836 (*avx_addsubv4df3_1s): Ditto.
17837 (*sse3_addsubv2df3_1): Ditto.
17838 (*sse3_addsubv2df3_1s): Ditto.
17839 (*avx_addsubv8sf3_1): Ditto.
17840 (*avx_addsubv8sf3_1s): Ditto.
17841 (*sse3_addsubv4sf3_1): Ditto.
17842 (*sse3_addsubv4sf3_1s): Ditto.
17844 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
17846 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
17847 (SYSROOT_SUFFIX_SPEC): Update.
17848 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
17849 (STARTFILE_PREFIX_SPEC): Update.
17850 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
17851 (MULTILIB_REQUIRED): New.
17852 (MULTILIB_OSDIRNAMES): New.
17853 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
17854 (MULTILIB_REQUIRED): New.
17855 (MULTILIB_OSDIRNAMES): New.
17857 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
17859 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
17860 * config/aarch64/aarch64-options-extensions.def: Update "fP",
17861 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
17862 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
17863 (AARCH64_FL_PAN): New.
17864 (AARCH64_FL_LOR): New.
17865 (AARCH64_FL_RDMA): New.
17866 (AARCH64_FL_FOR_ARCH8_1): New.
17867 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
17868 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
17870 2015-06-16 Martin Liska <mliska@suse.cz>
17872 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
17873 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
17876 2015-06-16 Richard Biener <rguenther@suse.de>
17878 * tree-vect-stmts.c (vectorizable_store): Adjust.
17879 (vectorizable_load): Likewise.
17880 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
17882 (vect_create_data_ref_ptr): Likewise.
17883 (bump_vector_ptr): Adjust.
17885 2015-06-16 Richard Biener <rguenther@suse.de>
17887 * tree-vect-stmts.c (vectorizable_load): Properly start loads
17888 with the first element if this is grouped loads.
17890 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
17892 * config/arm/arm-protos.h (struct tune_params): Rename
17893 log_op_non_sc to log_op_non_short_circuit, and rename enum
17894 values to expand SC to SHORT_CIRCUIT.
17895 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
17896 to LOG_OP_NON_SHORT_CIRCUIT.
17897 (arm_fastmul_tune):Likewise
17898 (arm_strongarm_tune): Likewise.
17899 (arm_xscale_tune): Likewise.
17900 (arm_9e_tune): Likewise.
17901 (arm_marvell_pj4_tune): Likewise.
17902 (arm_v6t2_tune): Likewise.
17903 (arm_cortex_tune): Likewise.
17904 (arm_cortex_a8_tune): Likewise.
17905 (arm_cortex_a7_tune): Likewise.
17906 (arm_cortex_a15_tune): Likewise.
17907 (arm_cortex_a53_tune): Likewise.
17908 (arm_cortex_a57_tune): Likewise.
17909 (arm_xgene1_tune): Likewise.
17910 (arm_cortex_a5_tune): Likewise.
17911 (arm_cortex_a9_tune): Likewise.
17912 (arm_cortex_a12_tune): Likewise.
17913 (arm_v7m_tune): Likewise.
17914 (arm_cortex_m7_tune): Likewise.
17915 (arm_v6m_tune): Likewise.
17916 (arm_fa726te_tune): Likewise.
17918 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
17920 * altivec.md: Delete UNSPEC_VMLADDUHM.
17921 (mulv4si3_p8): New pattern.
17922 (mulv4si3): Use it for POWER8.
17923 (mulv8hi3): Use vmladduhm with zero addend.
17924 (altivec_vmladduhm): Descriptive RTL.
17926 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
17928 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
17929 to use neon_move instead of mov_imm.
17930 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
17931 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
17933 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
17934 aarch64_float_const_zero_rtx_p check before TFmode check.
17935 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
17937 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
17938 code and attributes to match. Change condition from register_operand
17939 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
17940 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
17943 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
17946 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
17947 there is no parent.
17949 2015-06-14 Shiva Chen <shiva0217@gmail.com>
17951 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
17952 HOST_WIDE_INT parameter.
17954 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
17957 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
17958 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
17960 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
17962 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
17964 * rtl.h (classify_insn): Declare.
17965 * emit-rtl.c (classify_insn): Move to...
17966 * rtl.c: ...here and add generator support.
17967 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
17968 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
17969 * genemit.c (gen_emit_seq): New function.
17970 (gen_expand, gen_split): Use it.
17972 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
17974 * tree.c (make_vector_stat): Fix comment to state that the
17975 function returns a VECTOR_CST.
17977 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
17979 * gensupport.h (add_implicit_parallel): Declare.
17980 * genrecog.c (add_implicit_parallel): Move to...
17981 * gensupport.c (add_implicit_parallel): ...here.
17982 (process_one_cond_exec): Use it.
17983 * genemit.c (gen_insn): Likewise.
17985 2015-06-13 Iain Sandoe <iain@codesourcery.com>
17988 * passes.c (rest_of_decl_compilation): Do not register globals for
17989 early debug if they are declared in built-ins.
17991 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
17993 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
17995 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17997 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
17999 (noce_try_cmove_arith): Likewise.
18000 (noce_get_alt_condition): Likewise.
18002 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
18004 * common/config/i386/i386-common.c
18005 (OPTION_MASK_ISA_MWAITX_SET): New.
18006 (ix86_handle_option): Handle mwaitx.
18007 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
18008 (x86_64-*-*): Likewise.
18009 * config/i386/mwaitxintrin.h: New header.
18010 * config/i386/cpuid.h (bit_MWAITX): Define.
18011 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18013 * config/i386/i386.opt (mwaitx): New.
18014 * config/i386/i386-builtin-types.def
18015 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
18016 * config/i386/i386-c.c: Define __MWAITX__ if needed.
18017 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
18019 (ix86_option_override_internal): Handle new option.
18020 (processor_alias_table): Added PTA_MWAITX.
18021 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
18022 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
18023 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
18024 IX86_BUILTIN_MONITORX built-ins.
18025 * config/i386/i386.h (TARGET_MWAITX): New.
18026 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
18028 (mwaitx): New pattern.
18029 (monitorx_<mode>): New pattern.
18030 * config/i386/x86intrin.h: Include mwaitxintrin.h.
18031 * doc/extend.texi: Document monitorx and mwaitx builtins.
18032 * doc/invoke.texi: Document -mmwaitx option.
18034 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
18036 * emit-rtl.c (need_atomic_barrier_p): Mask model with
18037 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
18039 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
18041 * dbxout.c (xcoff_debug_hooks): Provide a function for
18042 register_main_translation_unit hook.
18044 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
18046 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
18047 variants cases from switch.
18048 (rs6000_post_atomic_barrier): Same.
18049 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
18050 (rs6000_expand_atomic_exchange): Same.
18051 (rs6000_expand_atomic_op): Same.
18052 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
18053 SYNC variants cases from switch.
18054 (atomic_load): Same.
18055 (atomic_store): Same.
18057 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
18059 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
18060 CONST_INT for goto.
18062 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
18065 * dwarf2out.c (check_die): Check for common duplicate attributes.
18066 (add_location_or_const_value_attribute): Do not add duplicate
18068 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
18070 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
18071 (gen_type_die_with_usage): Call check_die.
18072 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
18074 2015-06-11 Jason Merrill <jason@redhat.com>
18076 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
18079 2015-06-11 Marek Polacek <polacek@redhat.com>
18081 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
18083 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
18086 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
18087 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
18088 (*addx_extend_sp32): Fix pasto.
18089 (*subx_extend): Rename into...
18090 (*subx_extend_sp32): ...this.
18091 (*adddi3_extend_sp32): Add earlyclobber.
18092 (*subdi3_insn_sp32): Likewise.
18093 (*subdi3_extend_sp32): Likewise.
18094 (*and_not_di_sp32): Likewise.
18095 (*or_not_di_sp32): Likewise.
18096 (*xor_not_di_sp32): Likewise.
18097 (*negdi2_sp32): Likewise.
18098 (*one_cmpldi2_sp32): Likewise.
18100 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
18102 * debug.h (struct gcc_debug_hooks): Add a
18103 register_main_translation_unit hook.
18104 * debug.c (do_nothing_debug_hooks): Provide a function for this
18106 * dbxout.c (dbx_debug_hooks): Likewise.
18107 * sdbout.c (sdb_debug_hooks): Likewise.
18108 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
18109 * dwarf2out.c (main_translation_unit): New global variable.
18110 (dwarf2out_register_main_translation_unit): New function
18111 implementing the new hook.
18112 (dwarf2_debug_hooks): Assign
18113 dwarf2out_register_main_translation_unit to this new hook.
18114 (dwarf2out_init): Associate any main translation unit to
18117 2015-06-11 Marek Polacek <polacek@redhat.com>
18119 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
18121 2015-06-11 Marek Polacek <polacek@redhat.com>
18123 * match.pd: Use single_use throughout.
18125 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18127 * config/arm/arm.c (arm_option_params_internal): When optimising
18128 for speed set max_insns_skipped when arm_restrict_it.
18130 2015-06-11 Christian Bruel <christian.bruel@st.com>
18133 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
18135 (arm_cpu_builtins): New function.
18136 (arm_pragma_target_parse): Call arm_cpu_builtins.
18137 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
18138 (arm_register_target_pragmas): Likewise.
18139 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
18140 Call arm_register_target_pragmas.
18141 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
18142 (arm_pragma_target_parse): Likewise.
18144 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
18146 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
18147 of the second operand.
18149 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
18152 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
18153 to prepare mask operand for AVX512 modes.
18155 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
18158 * doc/md.texi (Machine Constraints): Document that on the PowerPC
18159 if you use a constraint that targets a VSX register, you must use
18160 %x<n> in the template.
18162 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
18164 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
18165 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
18166 (define_insn "trap"): New definition.
18168 2015-06-10 Richard Biener <rguenther@suse.de>
18170 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
18172 (vect_supported_load_permutation_p): ... here. Handle
18173 supportable permutations in reductions.
18174 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
18175 for vectorizing strided group loads.
18177 2015-06-10 Jakub Jelinek <jakub@redhat.com>
18180 * config/i386/i386.c (ix86_split_long_move): For collisions
18181 involving direct tls segment refs, move the UNSPEC_TP possibly
18182 wrapped in ZERO_EXTEND out of the address for lea, to each of
18185 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18187 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
18188 dmb sy. Adjust tabs.
18190 2015-06-10 Tom de Vries <tom@codesourcery.com>
18192 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
18194 2015-06-10 Martin Liska <mliska@suse.cz>
18197 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
18198 all enum values in mem_alloc_origin.
18199 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
18201 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
18202 * bitmap.c (bitmap_register): Likewise.
18203 (dump_bitmap_statistics): Likewise.
18204 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
18205 (ggc_record_overhead): Likewise.
18206 * hash-map.h: Likewise.
18207 * hash-set.h: Likewise.
18208 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
18209 * hash-table.h: Likewise.
18210 * vec.c (vec_prefix::register_overhead): Likewise.
18211 (vec_prefix::release_overhead): Likewise.
18212 (dump_vec_loc_statistics): Likewise.
18214 2015-06-09 Christian Bruel <christian.bruel@st.com>
18217 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
18218 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
18219 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
18220 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
18221 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
18222 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
18223 (arm_valid_target_attribute_p): Likewise.
18224 (arm_set_current_function, arm_can_inline_p): Likewise.
18225 (arm_valid_target_attribute_rec): Likewise.
18226 (arm_previous_fndecl): New variable.
18227 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
18228 (TARGET_CAN_INLINE_P): Define.
18229 (arm_asm_trampoline_template): Emit mode.
18230 (arm_file_start): Don't set unified syntax.
18231 (arm_declare_function_name): Set unified syntax and mode.
18232 (arm_option_override): Init target_option_default_node.
18233 and target_option_current_node.
18234 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
18235 (*call_symbol): Likewise.
18236 * doc/extend.texi: Document ARM/Thumb target attribute.
18237 * doc/invoke.texi: Likewise.
18239 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18242 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18243 PR rtl-optimization/64164
18244 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18245 * tree-ssa-copyrename.c: Removed.
18246 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18247 -ftree-coalesce-vars.
18248 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18249 * common.opt (ftree-copyrename): Ignore.
18250 (ftree-coalesce-inlined-vars): Likewise.
18251 * doc/invoke.texi: Remove the ignored options above.
18252 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18253 * tree-ssa-coalesce.h: ... here.
18254 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18255 headers required by it.
18256 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18257 across variables when flag_tree_coalesce_vars. Check register
18258 use and promoted modes to allow coalescing. Moved to
18259 tree-ssa-coalesce.c.
18260 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18261 with its member functions to tree-ssa-coalesce.c.
18262 (var_map_base_init): Likewise. Renamed to
18263 compute_samebase_partition_bases.
18264 (partition_view_normal): Drop want_bases parameter.
18265 (partition_view_bitmap): Likewise.
18266 * tree-ssa-live.h: Adjust declarations.
18267 * tree-ssa-coalesce.c: Include explow.h.
18268 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18269 default defs at the entry point.
18270 (dump_part_var_map): New.
18271 (compute_optimized_partition_bases): New, called by...
18272 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18273 of compute_samebase_partition_bases. Adjust.
18274 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18275 * cfgexpand.c (leader_merge): New.
18276 (get_rtl_for_parm_ssa_default_def): New.
18277 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18278 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18279 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18280 redundant MEM attr setting.
18281 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18283 (expand_one_stack_var): ... this. New wrapper to check and
18284 skip already expanded SSA partitions.
18285 (record_alignment_for_reg_var): New, factored out of...
18286 (expand_one_var): ... this.
18287 (expand_one_ssa_partition): New.
18288 (adjust_one_expanded_partition_var): New.
18289 (expand_one_register_var): Check and skip already expanded SSA
18291 (expand_used_vars): Don't create DECLs for anonymous SSA
18292 names. Expand all SSA partitions, then adjust all SSA names.
18293 (pass::execute): Replace the loops that set
18294 SA.partition_to_pseudo from partition leaders and cleared
18295 DECL_RTL for multi-location variables, and that which used to
18296 rename vars and set attrs, with one that clears DECL_RTL and
18297 checks that PARMs and RESULTs default_defs match DECL_RTL.
18298 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18299 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18300 * explow.c (promote_ssa_mode): New.
18301 * explow.h (promote_ssa_mode): Declare.
18302 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18303 * function.c: Include cfgexpand.h.
18304 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18305 (use_register_for_parm_decl): Wrapper for the above to
18306 special-case the result_ptr.
18307 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18308 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18309 multiple locations.
18310 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18311 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18312 (assign_parm_setup_block): Prefer SSA-assigned location.
18313 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18314 if stack_parm is NULL.
18315 (assign_parm_setup_stack): Prefer SSA-assigned location.
18316 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18317 rtl before testing for pointer bounds. Special-case result_ptr.
18318 (expand_function_start): Maybe reset DECL_RTL of result.
18319 Prefer SSA-assigned location for result and static chain.
18320 Factor out DECL_RESULT and SET_DECL_RTL.
18321 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18322 anonymous SSA names. Use promote_ssa_mode.
18323 (get_temp_reg): Likewise.
18324 (remove_ssa_form): Adjust.
18325 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18326 and get its reg_usage for reg invalidation.
18327 (compute_bb_dataflow): Pass it insn.
18328 (emit_notes_in_bb): Likewise.
18329 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
18330 fail assert on conversion between unsigned types.
18332 2015-06-09 Tom de Vries <tom@codesourcery.com>
18334 PR tree-optimization/65460
18335 * omp-low.c (expand_omp_target): Set parallelized_function on
18336 cgraph_node for child_fn.
18338 2015-06-09 Tom de Vries <tom@codesourcery.com>
18340 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
18341 parallelized_function before add_new_function.
18343 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
18345 * gcc-plugin.h: Move decls to plugin.h and include it.
18346 * plugin.h: Relocate decls from gcc-plugin.h
18347 * ggc-page.c: Include required header files.
18348 * passes.c: Likewise.
18349 * cgraphunit.c: Likewise.
18351 2015-06-09 Tom de Vries <tom@codesourcery.com>
18353 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
18355 2015-06-09 Jason Merrill <jason@redhat.com>
18358 * toplev.c (check_global_declaration): Don't warn about a clone.
18360 2015-06-09 Marek Polacek <polacek@redhat.com>
18362 PR tree-optimization/66299
18363 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
18364 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
18367 2015-06-09 Richard Biener <rguenther@suse.de>
18369 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
18370 (vect_analyze_slp_instance): Instead do not falsely drop
18373 2015-06-09 Richard Biener <rguenther@suse.de>
18375 PR middle-end/66423
18376 * match.pd: Handle A % (unsigned)(1 << B).
18378 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
18380 * varasm.c (output_object_block_htab): Remove.
18381 (output_object_block_compare): New.
18382 (output_object_blocks): Sort named object_blocks before outputting
18385 2015-06-09 Richard Biener <rguenther@suse.de>
18387 PR tree-optimization/66419
18388 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
18389 consider GROUP_GAP when detecting a perfect subchain.
18391 2015-06-09 Nick Clifton <nickc@redhat.com>
18393 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
18394 place read only data in the .frodata section.
18396 2015-06-09 Shiva Chen <shiva0217@gmail.com>
18398 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
18399 (atomic_store<mode>): Likewise.
18401 2015-06-09 Richard Biener <rguenther@suse.de>
18403 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
18405 2015-06-09 Richard Biener <rguenther@suse.de>
18407 PR middle-end/66413
18408 * tree-inline.c (insert_init_debug_bind): Unshare value.
18410 2015-06-09 Richard Biener <rguenther@suse.de>
18412 PR tree-optimization/66396
18413 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
18414 Rename virtual operands.
18416 2015-06-09 Tom de Vries <tom@codesourcery.com>
18418 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
18419 always return false.
18421 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18423 PR rtl-optimization/64164
18424 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18425 * tree-ssa-copyrename.c: Removed.
18426 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18427 -ftree-coalesce-vars.
18428 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18429 * common.opt (ftree-copyrename): Ignore.
18430 (ftree-coalesce-inlined-vars): Likewise.
18431 * doc/invoke.texi: Remove the ignored options above.
18432 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18433 * tree-ssa-coalesce.h: ... here.
18434 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18435 headers required by it.
18436 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18437 across variables when flag_tree_coalesce_vars. Check register
18438 use and promoted modes to allow coalescing. Moved to
18439 tree-ssa-coalesce.c.
18440 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18441 with its member functions to tree-ssa-coalesce.c.
18442 (var_map_base_init): Likewise. Renamed to
18443 compute_samebase_partition_bases.
18444 (partition_view_normal): Drop want_bases parameter.
18445 (partition_view_bitmap): Likewise.
18446 * tree-ssa-live.h: Adjust declarations.
18447 * tree-ssa-coalesce.c: Include explow.h.
18448 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18449 default defs at the entry point.
18450 (dump_part_var_map): New.
18451 (compute_optimized_partition_bases): New, called by...
18452 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18453 of compute_samebase_partition_bases. Adjust.
18454 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18455 * cfgexpand.c (leader_merge): New.
18456 (get_rtl_for_parm_ssa_default_def): New.
18457 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18458 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18459 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18460 redundant MEM attr setting.
18461 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18463 (expand_one_stack_var): ... this. New wrapper to check and
18464 skip already expanded SSA partitions.
18465 (record_alignment_for_reg_var): New, factored out of...
18466 (expand_one_var): ... this.
18467 (expand_one_ssa_partition): New.
18468 (adjust_one_expanded_partition_var): New.
18469 (expand_one_register_var): Check and skip already expanded SSA
18471 (expand_used_vars): Don't create DECLs for anonymous SSA
18472 names. Expand all SSA partitions, then adjust all SSA names.
18473 (pass::execute): Replace the loops that set
18474 SA.partition_to_pseudo from partition leaders and cleared
18475 DECL_RTL for multi-location variables, and that which used to
18476 rename vars and set attrs, with one that clears DECL_RTL and
18477 checks that PARMs and RESULTs default_defs match DECL_RTL.
18478 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18479 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18480 * explow.c (promote_ssa_mode): New.
18481 * explow.h (promote_ssa_mode): Declare.
18482 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18483 * function.c: Include cfgexpand.h.
18484 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18485 (use_register_for_parm_decl): Wrapper for the above to
18486 special-case the result_ptr.
18487 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18488 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18489 multiple locations.
18490 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18491 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18492 (assign_parm_setup_block): Prefer SSA-assigned location.
18493 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18494 if stack_parm is NULL.
18495 (assign_parm_setup_stack): Prefer SSA-assigned location.
18496 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18497 rtl before testing for pointer bounds. Special-case result_ptr.
18498 (expand_function_start): Maybe reset DECL_RTL of result.
18499 Prefer SSA-assigned location for result and static chain.
18500 Factor out DECL_RESULT and SET_DECL_RTL.
18501 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18502 anonymous SSA names. Use promote_ssa_mode.
18503 (get_temp_reg): Likewise.
18504 (remove_ssa_form): Adjust.
18505 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18506 and get its reg_usage for reg invalidation.
18507 (compute_bb_dataflow): Pass it insn.
18508 (emit_notes_in_bb): Likewise.
18509 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
18510 fail assert on conversion between unsigned types.
18512 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18515 * tree-inline.c (reset_debug_binding): New.
18516 (reset_debug_bindings): Likewise.
18517 (expand_call_inline): Call it.
18519 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
18521 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
18524 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
18526 * lto-streamer-out.c (lto_output_location): Stream
18527 reserved locations correctly.
18528 * lto-streamer-in.c (lto_output_location): Likewise.
18530 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
18532 * coretypes.h: Include hash-table.h and hash-set.h for host files.
18533 * ggc.h: Don't include statistics.h>
18534 * hash-map.h: Remove all includes.
18535 * hash-set.h: Likewise.
18536 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
18537 the include list. Remove <new>.
18538 * inchash.h: Remove all includes.
18539 * mem-stats.h: Likewise.
18540 * vec.h: No special processing for generators or ggc.
18541 * alias.c : Adjust include files.
18542 * alloc-pool.c : Likewise.
18543 * alloc-pool.h : Likewise.
18544 * asan.c : Likewise.
18545 * attribs.c : Likewise.
18546 * auto-inc-dec.c : Likewise.
18547 * auto-profile.c : Likewise.
18548 * bb-reorder.c : Likewise.
18549 * bitmap.c : Likewise.
18550 * bitmap.h : Likewise.
18551 * bt-load.c : Likewise.
18552 * builtins.c : Likewise.
18553 * caller-save.c : Likewise.
18554 * calls.c : Likewise.
18555 * ccmp.c : Likewise.
18556 * cfg.c : Likewise.
18557 * cfganal.c : Likewise.
18558 * cfgbuild.c : Likewise.
18559 * cfgcleanup.c : Likewise.
18560 * cfgexpand.c : Likewise.
18561 * cfghooks.c : Likewise.
18562 * cfgloop.c : Likewise.
18563 * cfgloop.h : Likewise.
18564 * cfgloopanal.c : Likewise.
18565 * cfgloopmanip.c : Likewise.
18566 * cfgrtl.c : Likewise.
18567 * cgraph.c : Likewise.
18568 * cgraphbuild.c : Likewise.
18569 * cgraphclones.c : Likewise.
18570 * cgraphunit.c : Likewise.
18571 * cilk-common.c : Likewise.
18572 * combine-stack-adj.c : Likewise.
18573 * combine.c : Likewise.
18574 * compare-elim.c : Likewise.
18575 * context.c : Likewise.
18576 * convert.c : Likewise.
18577 * coverage.c : Likewise.
18578 * cppbuiltin.c : Likewise.
18579 * cprop.c : Likewise.
18580 * cse.c : Likewise.
18581 * cselib.c : Likewise.
18582 * data-streamer-in.c : Likewise.
18583 * data-streamer-out.c : Likewise.
18584 * data-streamer.c : Likewise.
18585 * data-streamer.h : Likewise.
18586 * dbxout.c : Likewise.
18587 * dce.c : Likewise.
18588 * ddg.c : Likewise.
18589 * debug.c : Likewise.
18590 * df-core.c : Likewise.
18591 * df-problems.c : Likewise.
18592 * df-scan.c : Likewise.
18594 * dfp.c : Likewise.
18595 * dojump.c : Likewise.
18596 * dominance.c : Likewise.
18597 * domwalk.c : Likewise.
18598 * double-int.c : Likewise.
18599 * dse.c : Likewise.
18600 * dumpfile.c : Likewise.
18601 * dwarf2asm.c : Likewise.
18602 * dwarf2cfi.c : Likewise.
18603 * dwarf2out.c : Likewise.
18604 * emit-rtl.c : Likewise.
18605 * et-forest.c : Likewise.
18606 * except.c : Likewise.
18607 * except.h : Likewise.
18608 * explow.c : Likewise.
18609 * expmed.c : Likewise.
18610 * expr.c : Likewise.
18611 * final.c : Likewise.
18612 * fixed-value.c : Likewise.
18613 * fold-const.c : Likewise.
18614 * function.c : Likewise.
18615 * fwprop.c : Likewise.
18616 * gcc-plugin.h : Likewise.
18617 * gcc.c : Likewise.
18618 * gcse-common.c : Likewise.
18619 * gcse.c : Likewise.
18620 * genattrtab.c : Likewise.
18621 * genautomata.c : Likewise.
18622 * genconditions.c : Likewise.
18623 * genemit.c : Likewise.
18624 * generic-match-head.c : Likewise.
18625 * genextract.c : Likewise.
18626 * gengtype-state.c : Likewise.
18627 * gengtype.c : Likewise.
18628 * genhooks.c : Likewise.
18629 * genmatch.c : Likewise.
18630 * genmodes.c : Likewise.
18631 * genrecog.c : Likewise.
18632 * gensupport.c : Likewise.
18633 * ggc-common.c : Likewise.
18634 * ggc-internal.h : Likewise.
18635 * ggc-none.c : Likewise.
18636 * ggc-page.c : Likewise.
18637 * gimple-builder.c : Likewise.
18638 * gimple-expr.c : Likewise.
18639 * gimple-fold.c : Likewise.
18640 * gimple-iterator.c : Likewise.
18641 * gimple-low.c : Likewise.
18642 * gimple-match-head.c : Likewise.
18643 * gimple-pretty-print.c : Likewise.
18644 * gimple-ssa-isolate-paths.c : Likewise.
18645 * gimple-ssa-strength-reduction.c : Likewise.
18646 * gimple-ssa.h : Likewise.
18647 * gimple-streamer-in.c : Likewise.
18648 * gimple-streamer-out.c : Likewise.
18649 * gimple-streamer.h : Likewise.
18650 * gimple-walk.c : Likewise.
18651 * gimple.c : Likewise.
18652 * gimplify-me.c : Likewise.
18653 * gimplify.c : Likewise.
18654 * godump.c : Likewise.
18655 * graph.c : Likewise.
18656 * graphds.c : Likewise.
18657 * graphite-blocking.c : Likewise.
18658 * graphite-dependences.c : Likewise.
18659 * graphite-interchange.c : Likewise.
18660 * graphite-isl-ast-to-gimple.c : Likewise.
18661 * graphite-optimize-isl.c : Likewise.
18662 * graphite-poly.c : Likewise.
18663 * graphite-scop-detection.c : Likewise.
18664 * graphite-sese-to-poly.c : Likewise.
18665 * graphite.c : Likewise.
18666 * haifa-sched.c : Likewise.
18667 * hard-reg-set.h : Likewise.
18668 * hw-doloop.c : Likewise.
18669 * ifcvt.c : Likewise.
18670 * inchash.c : Likewise.
18671 * incpath.c : Likewise.
18672 * init-regs.c : Likewise.
18673 * input.c : Likewise.
18674 * internal-fn.c : Likewise.
18675 * ipa-chkp.c : Likewise.
18676 * ipa-comdats.c : Likewise.
18677 * ipa-cp.c : Likewise.
18678 * ipa-devirt.c : Likewise.
18679 * ipa-icf-gimple.c : Likewise.
18680 * ipa-icf.c : Likewise.
18681 * ipa-inline-analysis.c : Likewise.
18682 * ipa-inline-transform.c : Likewise.
18683 * ipa-inline.c : Likewise.
18684 * ipa-polymorphic-call.c : Likewise.
18685 * ipa-profile.c : Likewise.
18686 * ipa-prop.c : Likewise.
18687 * ipa-pure-const.c : Likewise.
18688 * ipa-ref.c : Likewise.
18689 * ipa-reference.c : Likewise.
18690 * ipa-split.c : Likewise.
18691 * ipa-utils.c : Likewise.
18692 * ipa-visibility.c : Likewise.
18693 * ipa.c : Likewise.
18694 * ira-build.c : Likewise.
18695 * ira-color.c : Likewise.
18696 * ira-conflicts.c : Likewise.
18697 * ira-costs.c : Likewise.
18698 * ira-emit.c : Likewise.
18699 * ira-lives.c : Likewise.
18700 * ira.c : Likewise.
18701 * jump.c : Likewise.
18702 * langhooks.c : Likewise.
18703 * lcm.c : Likewise.
18704 * libfuncs.h : Likewise.
18705 * lists.c : Likewise.
18706 * loop-doloop.c : Likewise.
18707 * loop-init.c : Likewise.
18708 * loop-invariant.c : Likewise.
18709 * loop-iv.c : Likewise.
18710 * loop-unroll.c : Likewise.
18711 * lower-subreg.c : Likewise.
18712 * lra-assigns.c : Likewise.
18713 * lra-coalesce.c : Likewise.
18714 * lra-constraints.c : Likewise.
18715 * lra-eliminations.c : Likewise.
18716 * lra-lives.c : Likewise.
18717 * lra-remat.c : Likewise.
18718 * lra-spills.c : Likewise.
18719 * lra.c : Likewise.
18720 * lto-cgraph.c : Likewise.
18721 * lto-compress.c : Likewise.
18722 * lto-opts.c : Likewise.
18723 * lto-section-in.c : Likewise.
18724 * lto-section-out.c : Likewise.
18725 * lto-streamer-in.c : Likewise.
18726 * lto-streamer-out.c : Likewise.
18727 * lto-streamer.c : Likewise.
18728 * lto-streamer.h : Likewise.
18729 * mcf.c : Likewise.
18730 * mode-switching.c : Likewise.
18731 * modulo-sched.c : Likewise.
18732 * omega.c : Likewise.
18733 * omp-low.c : Likewise.
18734 * optabs.c : Likewise.
18735 * opts-global.c : Likewise.
18736 * opts.h : Likewise.
18737 * passes.c : Likewise.
18738 * plugin.c : Likewise.
18739 * postreload-gcse.c : Likewise.
18740 * postreload.c : Likewise.
18741 * predict.c : Likewise.
18742 * print-rtl.c : Likewise.
18743 * print-tree.c : Likewise.
18744 * profile.c : Likewise.
18745 * read-md.c : Likewise.
18746 * read-md.h : Likewise.
18747 * read-rtl.c : Likewise.
18748 * real.c : Likewise.
18749 * realmpfr.c : Likewise.
18750 * recog.c : Likewise.
18751 * ree.c : Likewise.
18752 * reg-stack.c : Likewise.
18753 * regcprop.c : Likewise.
18754 * reginfo.c : Likewise.
18755 * regrename.c : Likewise.
18756 * regstat.c : Likewise.
18757 * reload.c : Likewise.
18758 * reload1.c : Likewise.
18759 * reorg.c : Likewise.
18760 * resource.c : Likewise.
18761 * rtl-chkp.c : Likewise.
18762 * rtl.c : Likewise.
18763 * rtl.h : Likewise.
18764 * rtlanal.c : Likewise.
18765 * rtlhash.c : Likewise.
18766 * rtlhash.h : Likewise.
18767 * rtlhooks.c : Likewise.
18768 * sanopt.c : Likewise.
18769 * sched-deps.c : Likewise.
18770 * sched-ebb.c : Likewise.
18771 * sched-rgn.c : Likewise.
18772 * sched-vis.c : Likewise.
18773 * sdbout.c : Likewise.
18774 * sel-sched-dump.c : Likewise.
18775 * sel-sched-ir.c : Likewise.
18776 * sel-sched-ir.h : Likewise.
18777 * sel-sched.c : Likewise.
18778 * sese.c : Likewise.
18779 * shrink-wrap.c : Likewise.
18780 * shrink-wrap.h : Likewise.
18781 * simplify-rtx.c : Likewise.
18782 * stack-ptr-mod.c : Likewise.
18783 * statistics.c : Likewise.
18784 * stmt.c : Likewise.
18785 * stor-layout.c : Likewise.
18786 * store-motion.c : Likewise.
18787 * stringpool.c : Likewise.
18788 * symtab.c : Likewise.
18789 * target-globals.c : Likewise.
18790 * targhooks.c : Likewise.
18791 * tlink.c : Likewise.
18792 * toplev.c : Likewise.
18793 * tracer.c : Likewise.
18794 * trans-mem.c : Likewise.
18795 * tree-affine.c : Likewise.
18796 * tree-affine.h : Likewise.
18797 * tree-browser.c : Likewise.
18798 * tree-call-cdce.c : Likewise.
18799 * tree-cfg.c : Likewise.
18800 * tree-cfgcleanup.c : Likewise.
18801 * tree-chkp-opt.c : Likewise.
18802 * tree-chkp.c : Likewise.
18803 * tree-chrec.c : Likewise.
18804 * tree-complex.c : Likewise.
18805 * tree-data-ref.c : Likewise.
18806 * tree-dfa.c : Likewise.
18807 * tree-diagnostic.c : Likewise.
18808 * tree-dump.c : Likewise.
18809 * tree-eh.c : Likewise.
18810 * tree-eh.h : Likewise.
18811 * tree-emutls.c : Likewise.
18812 * tree-hasher.h : Likewise.
18813 * tree-if-conv.c : Likewise.
18814 * tree-inline.c : Likewise.
18815 * tree-inline.h : Likewise.
18816 * tree-into-ssa.c : Likewise.
18817 * tree-iterator.c : Likewise.
18818 * tree-loop-distribution.c : Likewise.
18819 * tree-nested.c : Likewise.
18820 * tree-nrv.c : Likewise.
18821 * tree-object-size.c : Likewise.
18822 * tree-outof-ssa.c : Likewise.
18823 * tree-parloops.c : Likewise.
18824 * tree-phinodes.c : Likewise.
18825 * tree-predcom.c : Likewise.
18826 * tree-pretty-print.c : Likewise.
18827 * tree-profile.c : Likewise.
18828 * tree-scalar-evolution.c : Likewise.
18829 * tree-sra.c : Likewise.
18830 * tree-ssa-address.c : Likewise.
18831 * tree-ssa-alias.c : Likewise.
18832 * tree-ssa-ccp.c : Likewise.
18833 * tree-ssa-coalesce.c : Likewise.
18834 * tree-ssa-copy.c : Likewise.
18835 * tree-ssa-copyrename.c : Likewise.
18836 * tree-ssa-dce.c : Likewise.
18837 * tree-ssa-dom.c : Likewise.
18838 * tree-ssa-dse.c : Likewise.
18839 * tree-ssa-forwprop.c : Likewise.
18840 * tree-ssa-ifcombine.c : Likewise.
18841 * tree-ssa-live.c : Likewise.
18842 * tree-ssa-loop-ch.c : Likewise.
18843 * tree-ssa-loop-im.c : Likewise.
18844 * tree-ssa-loop-ivcanon.c : Likewise.
18845 * tree-ssa-loop-ivopts.c : Likewise.
18846 * tree-ssa-loop-manip.c : Likewise.
18847 * tree-ssa-loop-niter.c : Likewise.
18848 * tree-ssa-loop-prefetch.c : Likewise.
18849 * tree-ssa-loop-unswitch.c : Likewise.
18850 * tree-ssa-loop.c : Likewise.
18851 * tree-ssa-math-opts.c : Likewise.
18852 * tree-ssa-operands.c : Likewise.
18853 * tree-ssa-phiopt.c : Likewise.
18854 * tree-ssa-phiprop.c : Likewise.
18855 * tree-ssa-pre.c : Likewise.
18856 * tree-ssa-propagate.c : Likewise.
18857 * tree-ssa-reassoc.c : Likewise.
18858 * tree-ssa-sccvn.c : Likewise.
18859 * tree-ssa-scopedtables.c : Likewise.
18860 * tree-ssa-sink.c : Likewise.
18861 * tree-ssa-strlen.c : Likewise.
18862 * tree-ssa-structalias.c : Likewise.
18863 * tree-ssa-tail-merge.c : Likewise.
18864 * tree-ssa-ter.c : Likewise.
18865 * tree-ssa-threadedge.c : Likewise.
18866 * tree-ssa-threadupdate.c : Likewise.
18867 * tree-ssa-uncprop.c : Likewise.
18868 * tree-ssa-uninit.c : Likewise.
18869 * tree-ssa.c : Likewise.
18870 * tree-ssanames.c : Likewise.
18871 * tree-stdarg.c : Likewise.
18872 * tree-streamer-in.c : Likewise.
18873 * tree-streamer-out.c : Likewise.
18874 * tree-streamer.c : Likewise.
18875 * tree-streamer.h : Likewise.
18876 * tree-switch-conversion.c : Likewise.
18877 * tree-tailcall.c : Likewise.
18878 * tree-vect-data-refs.c : Likewise.
18879 * tree-vect-generic.c : Likewise.
18880 * tree-vect-loop-manip.c : Likewise.
18881 * tree-vect-loop.c : Likewise.
18882 * tree-vect-patterns.c : Likewise.
18883 * tree-vect-slp.c : Likewise.
18884 * tree-vect-stmts.c : Likewise.
18885 * tree-vectorizer.c : Likewise.
18886 * tree-vectorizer.h : Likewise.
18887 * tree-vrp.c : Likewise.
18888 * tree.c : Likewise.
18889 * tsan.c : Likewise.
18890 * ubsan.c : Likewise.
18891 * valtrack.c : Likewise.
18892 * valtrack.h : Likewise.
18893 * value-prof.c : Likewise.
18894 * var-tracking.c : Likewise.
18895 * varasm.c : Likewise.
18896 * varpool.c : Likewise.
18898 * vmsdbgout.c : Likewise.
18899 * vtable-verify.c : Likewise.
18900 * vtable-verify.h : Likewise.
18901 * web.c : Likewise.
18902 * wide-int.cc : Likewise.
18903 * xcoffout.c : Likewise.
18904 * config/aarch64/aarch64-builtins.c : Likewise.
18905 * config/aarch64/aarch64.c : Likewise.
18906 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
18907 * config/alpha/alpha.c : Likewise.
18908 * config/arc/arc.c : Likewise.
18909 * config/arm/aarch-common.c : Likewise.
18910 * config/arm/arm-builtins.c : Likewise.
18911 * config/arm/arm-c.c : Likewise.
18912 * config/arm/arm.c : Likewise.
18913 * config/avr/avr-c.c : Likewise.
18914 * config/avr/avr-log.c : Likewise.
18915 * config/avr/avr.c : Likewise.
18916 * config/bfin/bfin.c : Likewise.
18917 * config/c6x/c6x.c : Likewise.
18918 * config/cr16/cr16.c : Likewise.
18919 * config/cris/cris.c : Likewise.
18920 * config/darwin-c.c : Likewise.
18921 * config/darwin.c : Likewise.
18922 * config/default-c.c : Likewise.
18923 * config/epiphany/epiphany.c : Likewise.
18924 * config/epiphany/mode-switch-use.c : Likewise.
18925 * config/epiphany/resolve-sw-modes.c : Likewise.
18926 * config/fr30/fr30.c : Likewise.
18927 * config/frv/frv.c : Likewise.
18928 * config/ft32/ft32.c : Likewise.
18929 * config/glibc-c.c : Likewise.
18930 * config/h8300/h8300.c : Likewise.
18931 * config/i386/i386-c.c : Likewise.
18932 * config/i386/i386.c : Likewise.
18933 * config/i386/msformat-c.c : Likewise.
18934 * config/i386/winnt-cxx.c : Likewise.
18935 * config/i386/winnt-stubs.c : Likewise.
18936 * config/i386/winnt.c : Likewise.
18937 * config/ia64/ia64-c.c : Likewise.
18938 * config/ia64/ia64.c : Likewise.
18939 * config/iq2000/iq2000.c : Likewise.
18940 * config/lm32/lm32.c : Likewise.
18941 * config/m32c/m32c-pragma.c : Likewise.
18942 * config/m32c/m32c.c : Likewise.
18943 * config/m32r/m32r.c : Likewise.
18944 * config/m68k/m68k.c : Likewise.
18945 * config/mcore/mcore.c : Likewise.
18946 * config/mep/mep-pragma.c : Likewise.
18947 * config/mep/mep.c : Likewise.
18948 * config/microblaze/microblaze-c.c : Likewise.
18949 * config/microblaze/microblaze.c : Likewise.
18950 * config/mips/mips.c : Likewise.
18951 * config/mmix/mmix.c : Likewise.
18952 * config/mn10300/mn10300.c : Likewise.
18953 * config/moxie/moxie.c : Likewise.
18954 * config/msp430/msp430-c.c : Likewise.
18955 * config/msp430/msp430.c : Likewise.
18956 * config/nds32/nds32-cost.c : Likewise.
18957 * config/nds32/nds32-fp-as-gp.c : Likewise.
18958 * config/nds32/nds32-intrinsic.c : Likewise.
18959 * config/nds32/nds32-isr.c : Likewise.
18960 * config/nds32/nds32-md-auxiliary.c : Likewise.
18961 * config/nds32/nds32-memory-manipulation.c : Likewise.
18962 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
18963 * config/nds32/nds32-predicates.c : Likewise.
18964 * config/nds32/nds32.c : Likewise.
18965 * config/nios2/nios2.c : Likewise.
18966 * config/nvptx/nvptx.c : Likewise.
18967 * config/pa/pa.c : Likewise.
18968 * config/pdp11/pdp11.c : Likewise.
18969 * config/rl78/rl78-c.c : Likewise.
18970 * config/rl78/rl78.c : Likewise.
18971 * config/rs6000/rs6000-c.c : Likewise.
18972 * config/rs6000/rs6000.c : Likewise.
18973 * config/rx/rx.c : Likewise.
18974 * config/s390/s390-c.c : Likewise.
18975 * config/s390/s390.c : Likewise.
18976 * config/sh/sh-c.c : Likewise.
18977 * config/sh/sh-mem.cc : Likewise.
18978 * config/sh/sh.c : Likewise.
18979 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
18980 * config/sh/sh_treg_combine.cc : Likewise.
18981 * config/sol2-c.c : Likewise.
18982 * config/sol2-cxx.c : Likewise.
18983 * config/sol2-stubs.c : Likewise.
18984 * config/sol2.c : Likewise.
18985 * config/sparc/sparc-c.c : Likewise.
18986 * config/sparc/sparc.c : Likewise.
18987 * config/spu/spu-c.c : Likewise.
18988 * config/spu/spu.c : Likewise.
18989 * config/stormy16/stormy16.c : Likewise.
18990 * config/tilegx/mul-tables.c : Likewise.
18991 * config/tilegx/tilegx-c.c : Likewise.
18992 * config/tilegx/tilegx.c : Likewise.
18993 * config/tilepro/mul-tables.c : Likewise.
18994 * config/tilepro/tilepro-c.c : Likewise.
18995 * config/tilepro/tilepro.c : Likewise.
18996 * config/v850/v850-c.c : Likewise.
18997 * config/v850/v850.c : Likewise.
18998 * config/vax/vax.c : Likewise.
18999 * config/visium/visium.c : Likewise.
19000 * config/vms/vms-c.c : Likewise.
19001 * config/vms/vms.c : Likewise.
19002 * config/vxworks.c : Likewise.
19003 * config/winnt-c.c : Likewise.
19004 * config/xtensa/xtensa.c : Likewise.
19006 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
19009 * ipa-utils.h (warn_types_mismatch): Update prototype.
19010 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
19012 (type_mismatch_p): New function.
19013 (warn_types_mismatch): Reorg to work better on non-C++ types.
19014 (odr_types_equivalent_p): Add loc1/loc2 parameters.
19015 (add_type_duplicate): Update.
19017 2015-06-08 Tom de Vries <tom@codesourcery.com>
19019 PR rtl-optimization/66444
19020 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
19023 2015-06-08 Richard Biener <rguenther@suse.de>
19025 PR tree-optimization/66422
19026 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
19027 block after inserted gcc_unreachable.
19029 2015-06-08 Nick Clifton <nickc@redhat.com>
19031 * config/rx/rx.c (rx_function_value): Do not promote vector types.
19032 (rx_promote_function_mode): Likewise.
19033 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
19035 2015-06-08 Jakub Jelinek <jakub@redhat.com>
19037 * genattrtab.c (insn_alternatives): Change type from int *
19039 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
19040 (get_attr_value): Change type of num_alt to uint64_t.
19041 (compute_alternative_mask): Change return type from
19042 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
19043 (make_alternative_compare, mk_attr_alt): Change argument type
19044 from int to uint64_t.
19045 (simplify_test_exp): Change type of i from int to uint64_t.
19046 Shift ((uint64_t) 1) instead of 1 up.
19047 (main): Adjust oballocvec first argument from int to uint64_t.
19048 Shift ((uint64_t) 1) instead of 1 up.
19050 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
19053 * gdbhooks.py: Import sys.
19054 (intptr): New function. Replace int(...) by intptr(...).
19056 2015-06-08 Richard Biener <rguenther@suse.de>
19058 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
19059 adjustment for gaps at the end of a SLP load group properly.
19060 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
19061 all permutations we can generate.
19062 (vect_transform_slp_perm_load): Use the correct group-size.
19064 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
19066 * genmatch.c (expr::gen_transform): For conditions, guess the type
19067 from the second operand.
19069 2015-06-08 Tom de Vries <tom@codesourcery.com>
19071 PR tree-optimization/66442
19072 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
19073 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
19074 if the loop latch is not a singleton. Use
19075 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
19077 2015-06-08 Marek Polacek <polacek@redhat.com>
19080 * toplev.c (check_global_declaration): Don't warn about artificial
19083 2015-06-08 Tom de Vries <tom@codesourcery.com>
19085 PR tree-optimization/66436
19086 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
19088 * gimplify.c: Add tree-dump.h include.
19089 (gimplify_function_tree): Dump function to gimple dump file.
19090 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
19093 2015-06-08 Tom de Vries <tom@codesourcery.com>
19095 PR tree-optimization/66435
19096 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
19099 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
19101 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
19102 of ptr_type_node to not be ptr_to_node.
19103 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
19104 TREE_TYPE of pointers.
19105 * gimple-expr.c (useless_type_conversion): Reorder the check for
19106 function pointers and TYPE_CANONICAL.
19108 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
19111 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
19112 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
19113 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
19115 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
19116 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
19117 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
19118 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
19119 and non iso if unix2003.
19121 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
19123 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
19125 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
19127 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
19128 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
19129 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
19130 except.c, final.c, function.c, gcse-common.c, genemit.c,
19131 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
19132 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
19133 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
19134 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
19137 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
19139 * combine.c (combine_split_insns): Remove cast.
19140 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
19141 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
19142 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
19143 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
19144 * genemit.c (gen_split): Change return type of generated functions to
19146 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
19147 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
19148 gen_peephole2_* functions.
19149 (print_subroutine, main): Likewise.
19150 * recog.c (peephole2_optimize): Remove cast.
19151 (peep2_next_insn): Promote return type to rtx_insn.
19152 * recog.h (peep2_next_insn): Fix prototype.
19153 * rtl.h (try_split, split_insns): Likewise.
19155 2015-06-06 DJ Delorie <dj@redhat.com>
19157 * config/msp430/msp430.c (msp430_asm_integer): Support addition
19158 and subtraction too.
19160 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
19163 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
19164 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
19165 instead of Snd. Disparage Sid/z alternative with '^'.
19167 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
19169 * dwarf2out.c: Remove deferred_locations*.
19170 (dwarf2_debug_hooks): Add early_finish hook.
19171 Remove global_decl hook.
19172 Add early_global_decl and late_global_decl hook.
19173 New global early_dwarf.
19174 New structure set_early_dwarf.
19175 (output_die): Indicate whether a DIE was generated early
19176 when generating assembly with -dA.
19177 (struct limbo_die_struct): Document created_for field.
19178 Remove file_table_last_lookup.
19179 (remove_AT): Return TRUE if successful.
19180 (remove_child_TAG): Clear die_parent.
19181 (reparent_child): New function abstracted from...
19182 (splice_child_die): ...here.
19183 (new_die): ICE if a DIE ends up in limbo too late.
19185 (defer_location): Remove.
19186 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
19187 (fill_variable_array_bounds): New.
19188 (decl_start_label): Call fill_variable_array_bounds.
19189 (gen_formal_parameter_die): Rewrite to reuse previously generated
19191 (gen_subprogram_die): Same.
19192 (gen_variable_die): Same.
19193 (gen_const_die): Same.
19194 (gen_label_die): Same.
19195 (gen_lexical_block_die): Same.
19196 (decl_will_get_specification_p): New.
19197 (local_function_static): New.
19198 (gen_struct_or_union_type_die): Fill in variable-length fields.
19199 (gen_typedef_die): Fill in variable-length typedefs.
19200 (gen_tagged_type_die): Gracefully return on error_mark_node.
19201 Handle re-entrancy.
19202 (gen_type_die_with_usage): Handle variable-length types.
19203 Remove duplicate code for ARRAY_TYPE case.
19204 (process_scope_var): Only process imported modules during early
19206 (dwarf2out_early_global_decl): New.
19207 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
19208 (dwarf2out_type_decl): Set early_dwarf while calling
19210 (dwarf2out_decl): Verify that we did not recreate a previously
19212 Do not return on DECL_EXTERNALs in VAR_DECLs.
19213 Abstract some code to local_function_static.
19214 (lookup_filename): Remove use of file_table_last_lookup.
19215 Gracefully exit on missing file_name.
19216 (dwarf2out_finish): Verify limbo list.
19217 Remove deferred_locations_list use.
19218 Move deferred_asm_name and limbo flushing to...
19219 (dwarf2out_early_finish): ...here. New.
19220 (dwarf2out_c_finalize): Remove set of deferred_location_list,
19221 deferred_asm_name, and file_table_last_lookup.
19222 * cgraph.h (referred_to_p): Add default argument.
19223 * cgraphunit.c (referred_to_p): Add and handle include_self
19225 (analyze_functions): Add first_time argument.
19226 Call check_global_declaration for all symbols.
19227 Call late_global_decl for nodes for moribund nodes.
19228 (finalize_compilation_unit): Add new argument to
19230 Call early_global_decl for functions.
19231 Call early_finish debug hook.
19232 * dbxout.c (dbxout_early_global_decl): New.
19233 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
19234 (dbx_debug_hooks): Add new hooks.
19235 (xcoff_debug_hooks): Same.
19236 * debug.c (do_nothing_debug_hooks): Add early_finish field.
19237 Add early and late debug hooks.
19238 Remove global_decl hook.
19239 * debug.h (struct gcc_debug_hooks): Add early_finish,
19240 early_global_decl, and late_global_decl fields.
19241 Remove global_decl field.
19242 Document gcc_debug_hooks.
19243 * gengtype.c (output_typename): Remove.
19244 * godump.c (go_early_global_decl): New.
19245 (go_late_global_decl): New.
19246 (go_global_decl): Remove.
19247 (dump_go_spec_init): Remove global_decl. Add
19248 {early,late}_global_decl.
19249 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
19250 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
19251 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
19252 (write_global_declarations): Remove.
19253 (global_decl_processing): New.
19254 * langhooks.h (struct lang_hooks_for_decls): Remove
19255 final_write_globals field.
19256 Add post_compilation_parsing_cleanups field.
19257 * passes.c (rest_of_decl_compilation): Call early_global_decl.
19258 * sdbout.c: Add early and late_global_decl hooks. Remove
19259 sdbout_global_decl hook.
19260 Add early_finish field for sdb_debug_hooks.
19261 (sdbout_global_decl): Remove.
19262 (sdbout_early_global_decl): New.
19263 (sdbout_late_global_decl): New.
19264 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
19265 * toplev.c (check_global_declaration): Rename from
19266 check_global_declaration_1.
19267 Adapt to use symtab infrastructure.
19268 (check_global_declarations): Remove.
19269 (emit_debug_global_declarations): Remove.
19270 (compile_file): Remove call to final_write_globals langhook.
19271 Run the actual compilation process.
19272 Perform any post compilation parser cleanups.
19273 Generate late debug info.
19274 * toplev.h (check_global_declaration): New.
19275 (check_global_declaration_1): Remove.
19276 (check_global_declarations): Remove.
19277 (write_global_declarations): Remove.
19278 (emit_debug_global_declarations): Remove.
19279 (global_decl_processing): New.
19280 * tree-core.h (struct tree_block): Add DIE field.
19281 * tree.h (BLOCK_DIE): New.
19282 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
19284 (vmsdbgout_early_global_decl): New.
19285 (vmsdbgout_late_global_decl): New.
19286 Add early_finish debug hook field to vmsdbg_debug_hooks.
19287 Remove vmsdbgout_decl to vmsdbgout_function_decl.
19288 Add early and late_global_decl debug hooks.
19290 2015-06-05 Julian Brown <julian@codesourcery.com>
19291 Sandra Loosemore <sandra@codesourcery.com>
19293 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
19294 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
19295 to print-sysroot-suffix.sh script.
19297 2015-06-05 Tom de Vries <tom@codesourcery.com>
19299 merge from gomp4 branch:
19300 2015-05-28 Tom de Vries <tom@codesourcery.com>
19302 PR tree-optimization/65443
19303 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
19304 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
19305 (try_transform_to_exit_first_loop_alt): New function.
19306 (transform_to_exit_first_loop): Use
19307 try_transform_to_exit_first_loop_alt.
19309 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
19311 * builtins.c (expand_builtin_atomic_compare_exchange): Call
19312 emit_cmp_and_jump_insns with the mode of target.
19314 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19316 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
19318 2015-06-04 DJ Delorie <dj@redhat.com>
19320 * config/msp430/msp430.md (movsi_s): New. Special case for
19321 storing a 20-bit symbol into a 32-bit register.
19322 * config/msp430/msp430.c (msp430_subreg): Add support for it.
19323 * config/msp430/predicates.md (msp430_symbol_operand): New.
19325 2015-06-04 Sriraman Tallam <tmsriram@google.com>
19327 * c-family/c-common.c (noplt): New attribute.
19328 (handle_noplt_attribute): New handler.
19329 * calls.c (prepare_call_address): Check for noplt
19331 * config/i386/i386.c (ix86_expand_call): Check
19332 for noplt attribute.
19333 (ix86_nopic_noplt_attribute_p): New function.
19334 (ix86_output_call_insn): Output indirect call for non-pic
19336 * doc/extend.texi (noplt): Document new attribute.
19337 * doc/invoke.texi: Document new attribute.
19339 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
19341 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
19342 real.h, and fixed-value.h when included in host source files.
19343 * double-int.h: Remove redundant #includes listed above.
19344 * fixed-value.h: Likewise.
19345 * real.h: Likewise.
19346 * wide-int.h: Likewise.
19347 * inchash.h: Likewise.
19348 * rtl.h: Add some include files When included from a generator file.
19349 * target.h: Remove wide-int.h and insn-modes.h from the include list.
19350 * internal-fn.h: Don't include coretypes.h.
19351 * alias.c: Adjust includes for restructured coretypes.h.
19352 * asan.c: Likewise.
19353 * attribs.c: Likewise.
19354 * auto-inc-dec.c: Likewise.
19355 * auto-profile.c: Likewise.
19356 * bb-reorder.c: Likewise.
19357 * bt-load.c: Likewise.
19358 * builtins.c: Likewise.
19359 * caller-save.c: Likewise.
19360 * calls.c: Likewise.
19361 * ccmp.c: Likewise.
19363 * cfganal.c: Likewise.
19364 * cfgbuild.c: Likewise.
19365 * cfgcleanup.c: Likewise.
19366 * cfgexpand.c: Likewise.
19367 * cfghooks.c: Likewise.
19368 * cfgloop.c: Likewise.
19369 * cfgloop.h: Likewise.
19370 * cfgloopanal.c: Likewise.
19371 * cfgloopmanip.c: Likewise.
19372 * cfgrtl.c: Likewise.
19373 * cgraph.c: Likewise.
19374 * cgraphbuild.c: Likewise.
19375 * cgraphclones.c: Likewise.
19376 * cgraphunit.c: Likewise.
19377 * cilk-common.c: Likewise.
19378 * combine-stack-adj.c: Likewise.
19379 * combine.c: Likewise.
19380 * compare-elim.c: Likewise.
19381 * convert.c: Likewise.
19382 * coverage.c: Likewise.
19383 * cppbuiltin.c: Likewise.
19384 * cprop.c: Likewise.
19386 * cselib.c: Likewise.
19387 * data-streamer-in.c: Likewise.
19388 * data-streamer-out.c: Likewise.
19389 * data-streamer.c: Likewise.
19390 * dbxout.c: Likewise.
19393 * debug.c: Likewise.
19394 * df-core.c: Likewise.
19395 * df-problems.c: Likewise.
19396 * df-scan.c: Likewise.
19399 * dojump.c: Likewise.
19400 * dominance.c: Likewise.
19401 * domwalk.c: Likewise.
19402 * double-int.c: Likewise.
19404 * dumpfile.c: Likewise.
19405 * dwarf2asm.c: Likewise.
19406 * dwarf2cfi.c: Likewise.
19407 * dwarf2out.c: Likewise.
19408 * dwarf2out.h: Likewise.
19409 * emit-rtl.c: Likewise.
19410 * et-forest.c: Likewise.
19411 * except.c: Likewise.
19412 * explow.c: Likewise.
19413 * expmed.c: Likewise.
19414 * expr.c: Likewise.
19415 * final.c: Likewise.
19416 * fixed-value.c: Likewise.
19417 * fold-const.c: Likewise.
19418 * function.c: Likewise.
19419 * fwprop.c: Likewise.
19420 * gcc-plugin.h: Likewise.
19421 * gcse.c: Likewise.
19422 * generic-match-head.c: Likewise.
19423 * ggc-page.c: Likewise.
19424 * gimple-builder.c: Likewise.
19425 * gimple-expr.c: Likewise.
19426 * gimple-fold.c: Likewise.
19427 * gimple-iterator.c: Likewise.
19428 * gimple-low.c: Likewise.
19429 * gimple-match-head.c: Likewise.
19430 * gimple-pretty-print.c: Likewise.
19431 * gimple-ssa-isolate-paths.c: Likewise.
19432 * gimple-ssa-strength-reduction.c: Likewise.
19433 * gimple-streamer-in.c: Likewise.
19434 * gimple-streamer-out.c: Likewise.
19435 * gimple-streamer.h: Likewise.
19436 * gimple-walk.c: Likewise.
19437 * gimple.c: Likewise.
19438 * gimplify-me.c: Likewise.
19439 * gimplify.c: Likewise.
19440 * godump.c: Likewise.
19441 * graph.c: Likewise.
19442 * graphite-blocking.c: Likewise.
19443 * graphite-dependences.c: Likewise.
19444 * graphite-interchange.c: Likewise.
19445 * graphite-isl-ast-to-gimple.c: Likewise.
19446 * graphite-optimize-isl.c: Likewise.
19447 * graphite-poly.c: Likewise.
19448 * graphite-scop-detection.c: Likewise.
19449 * graphite-sese-to-poly.c: Likewise.
19450 * graphite.c: Likewise.
19451 * haifa-sched.c: Likewise.
19452 * hooks.h: Likewise.
19453 * hw-doloop.c: Likewise.
19454 * ifcvt.c: Likewise.
19455 * incpath.c: Likewise.
19456 * init-regs.c: Likewise.
19457 * internal-fn.c: Likewise.
19458 * ipa-chkp.c: Likewise.
19459 * ipa-comdats.c: Likewise.
19460 * ipa-cp.c: Likewise.
19461 * ipa-devirt.c: Likewise.
19462 * ipa-icf-gimple.c: Likewise.
19463 * ipa-icf.c: Likewise.
19464 * ipa-inline-analysis.c: Likewise.
19465 * ipa-inline-transform.c: Likewise.
19466 * ipa-inline.c: Likewise.
19467 * ipa-polymorphic-call.c: Likewise.
19468 * ipa-profile.c: Likewise.
19469 * ipa-prop.c: Likewise.
19470 * ipa-pure-const.c: Likewise.
19471 * ipa-ref.c: Likewise.
19472 * ipa-reference.c: Likewise.
19473 * ipa-split.c: Likewise.
19474 * ipa-utils.c: Likewise.
19475 * ipa-visibility.c: Likewise.
19477 * ira-build.c: Likewise.
19478 * ira-color.c: Likewise.
19479 * ira-conflicts.c: Likewise.
19480 * ira-costs.c: Likewise.
19481 * ira-emit.c: Likewise.
19482 * ira-lives.c: Likewise.
19484 * jump.c: Likewise.
19485 * langhooks.c: Likewise.
19487 * loop-doloop.c: Likewise.
19488 * loop-init.c: Likewise.
19489 * loop-invariant.c: Likewise.
19490 * loop-iv.c: Likewise.
19491 * loop-unroll.c: Likewise.
19492 * lower-subreg.c: Likewise.
19493 * lra-assigns.c: Likewise.
19494 * lra-coalesce.c: Likewise.
19495 * lra-constraints.c: Likewise.
19496 * lra-eliminations.c: Likewise.
19497 * lra-lives.c: Likewise.
19498 * lra-remat.c: Likewise.
19499 * lra-spills.c: Likewise.
19501 * lto-cgraph.c: Likewise.
19502 * lto-compress.c: Likewise.
19503 * lto-opts.c: Likewise.
19504 * lto-section-in.c: Likewise.
19505 * lto-section-out.c: Likewise.
19506 * lto-streamer-in.c: Likewise.
19507 * lto-streamer-out.c: Likewise.
19508 * lto-streamer.c: Likewise.
19510 * mode-switching.c: Likewise.
19511 * modulo-sched.c: Likewise.
19512 * omega.c: Likewise.
19513 * omp-low.c: Likewise.
19514 * optabs.c: Likewise.
19515 * opts-global.c: Likewise.
19516 * passes.c: Likewise.
19517 * plugin.c: Likewise.
19518 * postreload-gcse.c: Likewise.
19519 * postreload.c: Likewise.
19520 * predict.c: Likewise.
19521 * print-rtl.c: Likewise.
19522 * print-tree.c: Likewise.
19523 * profile.c: Likewise.
19524 * real.c: Likewise.
19525 * realmpfr.c: Likewise.
19526 * realmpfr.h: Likewise.
19527 * recog.c: Likewise.
19529 * reg-stack.c: Likewise.
19530 * regcprop.c: Likewise.
19531 * reginfo.c: Likewise.
19532 * regrename.c: Likewise.
19533 * regs.h: Likewise.
19534 * regstat.c: Likewise.
19535 * reload.c: Likewise.
19536 * reload1.c: Likewise.
19537 * reorg.c: Likewise.
19538 * resource.c: Likewise.
19539 * rtl-chkp.c: Likewise.
19540 * rtlanal.c: Likewise.
19541 * rtlhooks.c: Likewise.
19542 * sanopt.c: Likewise.
19543 * sched-deps.c: Likewise.
19544 * sched-ebb.c: Likewise.
19545 * sched-rgn.c: Likewise.
19546 * sched-vis.c: Likewise.
19547 * sdbout.c: Likewise.
19548 * sel-sched-dump.c: Likewise.
19549 * sel-sched-ir.c: Likewise.
19550 * sel-sched.c: Likewise.
19551 * sese.c: Likewise.
19552 * shrink-wrap.c: Likewise.
19553 * shrink-wrap.h: Likewise.
19554 * simplify-rtx.c: Likewise.
19555 * stack-ptr-mod.c: Likewise.
19556 * statistics.c: Likewise.
19557 * stmt.c: Likewise.
19558 * stor-layout.c: Likewise.
19559 * store-motion.c: Likewise.
19560 * stringpool.c: Likewise.
19561 * symtab.c: Likewise.
19562 * target-globals.c: Likewise.
19563 * targhooks.c: Likewise.
19564 * toplev.c: Likewise.
19565 * tracer.c: Likewise.
19566 * trans-mem.c: Likewise.
19567 * tree-affine.c: Likewise.
19568 * tree-affine.h: Likewise.
19569 * tree-browser.c: Likewise.
19570 * tree-call-cdce.c: Likewise.
19571 * tree-cfg.c: Likewise.
19572 * tree-cfgcleanup.c: Likewise.
19573 * tree-chkp-opt.c: Likewise.
19574 * tree-chkp.c: Likewise.
19575 * tree-chrec.c: Likewise.
19576 * tree-complex.c: Likewise.
19577 * tree-data-ref.c: Likewise.
19578 * tree-dfa.c: Likewise.
19579 * tree-diagnostic.c: Likewise.
19580 * tree-dump.c: Likewise.
19581 * tree-eh.c: Likewise.
19582 * tree-emutls.c: Likewise.
19583 * tree-if-conv.c: Likewise.
19584 * tree-inline.c: Likewise.
19585 * tree-into-ssa.c: Likewise.
19586 * tree-iterator.c: Likewise.
19587 * tree-loop-distribution.c: Likewise.
19588 * tree-nested.c: Likewise.
19589 * tree-nrv.c: Likewise.
19590 * tree-object-size.c: Likewise.
19591 * tree-outof-ssa.c: Likewise.
19592 * tree-parloops.c: Likewise.
19593 * tree-phinodes.c: Likewise.
19594 * tree-predcom.c: Likewise.
19595 * tree-pretty-print.c: Likewise.
19596 * tree-pretty-print.h: Likewise.
19597 * tree-profile.c: Likewise.
19598 * tree-scalar-evolution.c: Likewise.
19599 * tree-sra.c: Likewise.
19600 * tree-ssa-address.c: Likewise.
19601 * tree-ssa-alias.c: Likewise.
19602 * tree-ssa-ccp.c: Likewise.
19603 * tree-ssa-coalesce.c: Likewise.
19604 * tree-ssa-copy.c: Likewise.
19605 * tree-ssa-copyrename.c: Likewise.
19606 * tree-ssa-dce.c: Likewise.
19607 * tree-ssa-dom.c: Likewise.
19608 * tree-ssa-dse.c: Likewise.
19609 * tree-ssa-forwprop.c: Likewise.
19610 * tree-ssa-ifcombine.c: Likewise.
19611 * tree-ssa-live.c: Likewise.
19612 * tree-ssa-loop-ch.c: Likewise.
19613 * tree-ssa-loop-im.c: Likewise.
19614 * tree-ssa-loop-ivcanon.c: Likewise.
19615 * tree-ssa-loop-ivopts.c: Likewise.
19616 * tree-ssa-loop-manip.c: Likewise.
19617 * tree-ssa-loop-niter.c: Likewise.
19618 * tree-ssa-loop-prefetch.c: Likewise.
19619 * tree-ssa-loop-unswitch.c: Likewise.
19620 * tree-ssa-loop.c: Likewise.
19621 * tree-ssa-loop.h: Likewise.
19622 * tree-ssa-math-opts.c: Likewise.
19623 * tree-ssa-operands.c: Likewise.
19624 * tree-ssa-phiopt.c: Likewise.
19625 * tree-ssa-phiprop.c: Likewise.
19626 * tree-ssa-pre.c: Likewise.
19627 * tree-ssa-propagate.c: Likewise.
19628 * tree-ssa-reassoc.c: Likewise.
19629 * tree-ssa-sccvn.c: Likewise.
19630 * tree-ssa-scopedtables.c: Likewise.
19631 * tree-ssa-sink.c: Likewise.
19632 * tree-ssa-strlen.c: Likewise.
19633 * tree-ssa-structalias.c: Likewise.
19634 * tree-ssa-tail-merge.c: Likewise.
19635 * tree-ssa-ter.c: Likewise.
19636 * tree-ssa-threadedge.c: Likewise.
19637 * tree-ssa-threadupdate.c: Likewise.
19638 * tree-ssa-uncprop.c: Likewise.
19639 * tree-ssa-uninit.c: Likewise.
19640 * tree-ssa.c: Likewise.
19641 * tree-ssanames.c: Likewise.
19642 * tree-stdarg.c: Likewise.
19643 * tree-streamer-in.c: Likewise.
19644 * tree-streamer-out.c: Likewise.
19645 * tree-streamer.c: Likewise.
19646 * tree-switch-conversion.c: Likewise.
19647 * tree-tailcall.c: Likewise.
19648 * tree-vect-data-refs.c: Likewise.
19649 * tree-vect-generic.c: Likewise.
19650 * tree-vect-loop-manip.c: Likewise.
19651 * tree-vect-loop.c: Likewise.
19652 * tree-vect-patterns.c: Likewise.
19653 * tree-vect-slp.c: Likewise.
19654 * tree-vect-stmts.c: Likewise.
19655 * tree-vectorizer.c: Likewise.
19656 * tree-vrp.c: Likewise.
19657 * tree.c: Likewise.
19658 * tsan.c: Likewise.
19659 * ubsan.c: Likewise.
19660 * valtrack.c: Likewise.
19661 * value-prof.c: Likewise.
19662 * var-tracking.c: Likewise.
19663 * varasm.c: Likewise.
19664 * varpool.c: Likewise.
19665 * vmsdbgout.c: Likewise.
19666 * vtable-verify.c: Likewise.
19668 * wide-int-print.cc: Likewise.
19669 * wide-int-print.h: Likewise.
19670 * wide-int.cc: Likewise.
19671 * xcoffout.c: Likewise.
19672 * config/aarch64/aarch64-builtins.c: Likewise.
19673 * config/aarch64/aarch64.c: Likewise.
19674 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19675 * config/alpha/alpha.c: Likewise.
19676 * config/arc/arc.c: Likewise.
19677 * config/arm/aarch-common.c: Likewise.
19678 * config/arm/arm-builtins.c: Likewise.
19679 * config/arm/arm-c.c: Likewise.
19680 * config/arm/arm.c: Likewise.
19681 * config/avr/avr-c.c: Likewise.
19682 * config/avr/avr-log.c: Likewise.
19683 * config/avr/avr.c: Likewise.
19684 * config/bfin/bfin.c: Likewise.
19685 * config/c6x/c6x.c: Likewise.
19686 * config/cr16/cr16.c: Likewise.
19687 * config/cris/cris.c: Likewise.
19688 * config/darwin-c.c: Likewise.
19689 * config/darwin.c: Likewise.
19690 * config/default-c.c: Likewise.
19691 * config/epiphany/epiphany.c: Likewise.
19692 * config/epiphany/mode-switch-use.c: Likewise.
19693 * config/epiphany/resolve-sw-modes.c: Likewise.
19694 * config/fr30/fr30.c: Likewise.
19695 * config/frv/frv.c: Likewise.
19696 * config/ft32/ft32.c: Likewise.
19697 * config/glibc-c.c: Likewise.
19698 * config/h8300/h8300.c: Likewise.
19699 * config/i386/i386-c.c: Likewise.
19700 * config/i386/i386.c: Likewise.
19701 * config/i386/msformat-c.c: Likewise.
19702 * config/i386/winnt-cxx.c: Likewise.
19703 * config/i386/winnt-stubs.c: Likewise.
19704 * config/i386/winnt.c: Likewise.
19705 * config/ia64/ia64-c.c: Likewise.
19706 * config/ia64/ia64.c: Likewise.
19707 * config/iq2000/iq2000.c: Likewise.
19708 * config/lm32/lm32.c: Likewise.
19709 * config/m32c/m32c-pragma.c: Likewise.
19710 * config/m32c/m32c.c: Likewise.
19711 * config/m32r/m32r.c: Likewise.
19712 * config/m68k/m68k.c: Likewise.
19713 * config/mcore/mcore.c: Likewise.
19714 * config/mep/mep-pragma.c: Likewise.
19715 * config/mep/mep.c: Likewise.
19716 * config/microblaze/microblaze-c.c: Likewise.
19717 * config/microblaze/microblaze.c: Likewise.
19718 * config/mips/mips.c: Likewise.
19719 * config/mmix/mmix.c: Likewise.
19720 * config/mn10300/mn10300.c: Likewise.
19721 * config/moxie/moxie.c: Likewise.
19722 * config/msp430/msp430-c.c: Likewise.
19723 * config/msp430/msp430.c: Likewise.
19724 * config/nds32/nds32-cost.c: Likewise.
19725 * config/nds32/nds32-fp-as-gp.c: Likewise.
19726 * config/nds32/nds32-intrinsic.c: Likewise.
19727 * config/nds32/nds32-isr.c: Likewise.
19728 * config/nds32/nds32-md-auxiliary.c: Likewise.
19729 * config/nds32/nds32-memory-manipulation.c: Likewise.
19730 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19731 * config/nds32/nds32-predicates.c: Likewise.
19732 * config/nds32/nds32.c: Likewise.
19733 * config/nios2/nios2.c: Likewise.
19734 * config/nvptx/nvptx.c: Likewise.
19735 * config/pa/pa.c: Likewise.
19736 * config/pdp11/pdp11.c: Likewise.
19737 * config/rl78/rl78-c.c: Likewise.
19738 * config/rl78/rl78.c: Likewise.
19739 * config/rs6000/rs6000-c.c: Likewise.
19740 * config/rs6000/rs6000.c: Likewise.
19741 * config/rx/rx.c: Likewise.
19742 * config/s390/s390-c.c: Likewise.
19743 * config/s390/s390.c: Likewise.
19744 * config/sh/sh-c.c: Likewise.
19745 * config/sh/sh-mem.cc: Likewise.
19746 * config/sh/sh.c: Likewise.
19747 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19748 * config/sh/sh_treg_combine.cc: Likewise.
19749 * config/sol2-c.c: Likewise.
19750 * config/sol2-cxx.c: Likewise.
19751 * config/sol2-stubs.c: Likewise.
19752 * config/sol2.c: Likewise.
19753 * config/sparc/sparc-c.c: Likewise.
19754 * config/sparc/sparc.c: Likewise.
19755 * config/spu/spu-c.c: Likewise.
19756 * config/spu/spu.c: Likewise.
19757 * config/stormy16/stormy16.c: Likewise.
19758 * config/tilegx/mul-tables.c: Likewise.
19759 * config/tilegx/tilegx-c.c: Likewise.
19760 * config/tilegx/tilegx.c: Likewise.
19761 * config/tilepro/mul-tables.c: Likewise.
19762 * config/tilepro/tilepro-c.c: Likewise.
19763 * config/tilepro/tilepro.c: Likewise.
19764 * config/v850/v850-c.c: Likewise.
19765 * config/v850/v850.c: Likewise.
19766 * config/vax/vax.c: Likewise.
19767 * config/visium/visium.c: Likewise.
19768 * config/vms/vms-c.c: Likewise.
19769 * config/vms/vms.c: Likewise.
19770 * config/vxworks.c: Likewise.
19771 * config/winnt-c.c: Likewise.
19772 * config/xtensa/xtensa.c: Likewise.
19773 * common/config/bfin/bfin-common.c: Likewise.
19775 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
19777 * tree.h (tree_code_for_canonical_type_merging): New function.
19778 * tree.c (gimple_canonical_types_compatible_p): Use
19779 tree_code_for_canonical_type_merging..
19781 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19785 * doc/tm.texi: Regenerate.
19786 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
19787 * target.def (TARGET_RELAXED_ORDERING): Likewise.
19788 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
19789 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
19790 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
19791 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
19792 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
19793 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
19794 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
19796 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19798 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
19799 register fma steering pass.
19800 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
19801 AARCH64_TUNE_FMA_STEERING.
19803 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
19805 * tree.c (verify_type_variant): Verify that type and variant is
19807 (gimple_canonical_types_compatible_p): Look for main variants.
19809 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
19811 * config.gcc (powerpc*-*-*): Add support for a new configure
19812 option --with-advance-toolchain=<xxx> which overrides using the
19813 default header files, libraries and dynamic linker.
19815 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
19816 specs to support the configure --with-advance-toolchain=<xxx>
19818 (INCLUDE_EXTRA_SPEC): Likewise.
19819 (LINK_OS_EXTRA_SPEC32): Likewise.
19820 (LINK_OK_EXTRA_SPEC64): Likewise.
19821 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
19822 (DYNAMIC_LINKER_PREFIX): Likewise.
19823 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
19825 (GLIBC_DYNAMIC_LINKER32): Likewise.
19826 (GLIBC_DYNAMIC_LINKER64): Likewise.
19827 (LINK_OS_LINUX_SPEC32): Likewise.
19828 (LINK_OS_LINUX_SPEC64): Likewise.
19830 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
19831 configuration option.
19833 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
19836 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
19837 to determine current function ABI.
19838 (ix86_function_value_regno_p): Ditto.
19840 2015-06-03 Martin Liska <mliska@suse.cz>
19842 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
19843 * bitmap.h (struct bitmap_usage): Likewise.
19844 * ggc-common.c (struct ggc_usage): Likewise.
19845 * mem-stats.h (struct mem_location): Likewise.
19846 (struct mem_usage): Likewise.
19847 * vec.c (struct vec_usage): Likewise.
19849 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
19851 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
19854 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
19856 * doc/plugins.texi (enum plugin_event): New event.
19857 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
19858 and PLUGIN_FINISH_FUNCTION.
19859 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
19860 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
19862 2015-06-03 Richard Biener <rguenther@suse.de>
19864 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
19865 compute GROUP_GAP for the first element.
19866 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
19869 2015-06-03 Nick Clifton <nickc@redhat.com>
19871 * config/rl78/rl78-real.md: Add peepholes to avoid a register
19872 copy when calling a function.
19873 * config/rl78/rl78.c (need_to_save): Do not push the frame
19874 pointer in an interrupt handler prologue if it is never used.
19876 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19878 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
19880 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
19882 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
19883 reference when cloning alias node.
19885 2015-06-03 Martin Liska <mliska@suse.cz>
19887 * alloc-pool.h (struct pool_usage): Correct space padding.
19888 * ggc-page.c (ggc_print_statistics): Align columns in a report.
19889 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
19890 * tree.c (dump_tree_statistics): Align columns in a report.
19892 2015-06-03 Martin Liska <mliska@suse.cz>
19894 * alloc-pool.c (allocate_pool_descriptor): Remove.
19895 (struct pool_output_info): Likewise.
19896 (print_alloc_pool_statistics): Likewise.
19897 (dump_alloc_pool_statistics): Likewise.
19898 * alloc-pool.h (struct pool_usage): New struct.
19899 (pool_allocator::initialize): Change usage of memory statistics
19900 to a new interface.
19901 (pool_allocator::release): Likewise.
19902 (pool_allocator::allocate): Likewise.
19903 (pool_allocator::remove): Likewise.
19904 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
19905 for a pool allocator.
19906 * mem-stats.h (struct mem_location): Add new ctor.
19907 (struct mem_usage): Add counter for number of
19909 (mem_alloc_description::register_descriptor): New overload of
19910 * mem-stats.h (mem_location::to_string): New function.
19911 * bitmap.h (struct bitmap_usage): Use this new function.
19912 * ggc-common.c (struct ggc_usage): Likewise.
19915 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
19917 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
19918 of GCC_INSN_FLAGS_H block.
19920 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
19922 * explow.c (plus_constant): Update check after force_const_mem call
19923 to see if the value returned is not a NULL_RTX.
19925 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
19927 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
19928 remove instumentation thunks calling reachable functions.
19929 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
19930 * lto/lto-partition.c (privatize_symbol_name_1): New.
19931 (privatize_symbol_name): Privatize both decl and orig_decl
19932 names for instrumented functions.
19933 * cgraph.c (cgraph_node::verify_node): Add transparent
19934 alias chain check for instrumented node.
19936 2015-06-03 Marek Polacek <polacek@redhat.com>
19940 * tree.c (attribute_value_equal): Handle attribute format.
19941 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
19943 2015-06-03 Richard Biener <rguenther@suse.de>
19945 PR tree-optimization/63916
19946 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
19947 Forward-propagate non-invariant addresses by splicing their
19948 reference ops if the result isn't going to be used by PRE.
19949 (vn_reference_lookup_3): Remove pointless assert.
19951 2015-06-03 Richard Biener <rguenther@suse.de>
19953 PR tree-optimization/66375
19954 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
19955 add to the evolution before following SSA edges.
19957 2015-06-03 Bin Cheng <bin.cheng@arm.com>
19959 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
19960 (dump_use, dump_cand, find_induction_variables): Pass new argument
19962 (record_use): Preserve the ssa name information in IV.
19964 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
19966 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
19968 (add_mode_tests): Don't add mode tests if the predicate only
19969 accepts scalar constant integers. Otherwise, allow the mode
19970 of "op" to be VOIDmode if the predicate does accept such integers.
19972 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
19975 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
19976 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
19977 (aarch64_secondary_reload): Likewise
19978 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
19980 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
19983 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
19984 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19987 * cprop.c (try_replace_reg): Check cost of constants before propagating.
19989 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19991 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
19992 provide access to the IBM extended double floating point mode if
19993 long double is IEEE 128-bit floating point.
19994 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
19995 point if long double is the IBM extended double type.
19997 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
19998 enable adding IEEE 128-bit floating point support.
19999 (-mfloat128-software): Likewise.
20000 (-mfloat128-sw): Likewise.
20002 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
20003 128-bit floating point types to occupy any register if
20004 -mlong-double-64. Do not allow use of IFmode/KFmode unless
20005 -mfloat128-software is enabled.
20006 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
20008 (rs6000_option_override_internal): Add -mfloat128-* support.
20009 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
20011 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
20012 and float128 type nodes.
20013 (ieee128_float_type_node): Likewise.
20014 (ibm128_float_type_node): Likewise.
20016 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
20019 * config/aarch64/geniterators.sh: Rewrite in awk.
20021 2015-06-02 Martin Liska <mliska@suse.cz>
20023 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
20024 values to avoid -Wmaybe-uninitialized errors.
20026 2015-06-02 Richard Biener <rguenther@suse.de>
20029 * dwarf2out.c (lookup_context_die): New function.
20030 (resolve_addr): Avoid forcing a full DIE for the
20031 target of a DW_TAG_GNU_call_site during late compilation.
20032 Instead create a stub DIE without a type if we have a
20033 context DIE present.
20035 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
20037 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
20039 2015-06-02 Bin Cheng <bin.cheng@arm.com>
20041 PR tree-optimization/48052
20042 * cfgloop.h (struct control_iv): New.
20043 (struct loop): New field control_ivs.
20044 * tree-ssa-loop-niter.c : Include "stor-layout.h".
20045 (number_of_iterations_lt): Set no_overflow information.
20046 (number_of_iterations_exit): Init control iv in niter struct.
20047 (record_control_iv): New.
20048 (estimate_numbers_of_iterations_loop): Call record_control_iv.
20049 (loop_exits_before_overflow): New. Interface factored out of
20050 scev_probably_wraps_p.
20051 (scev_probably_wraps_p): Factor loop niter related code into
20052 loop_exits_before_overflow.
20053 (free_numbers_of_iterations_estimates_loop): Free control ivs.
20054 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
20056 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
20058 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
20059 the target doesn't belong to the current function.
20061 2015-06-02 Marek Polacek <polacek@redhat.com>
20063 PR middle-end/66345
20064 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
20065 get_maxval_strlen does not produce an INTEGER_CST.
20067 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
20069 * config/arc/constraints.md: Use lower-case names in match_code.
20070 * config/mmix/constraints.md: Likewise.
20072 2015-06-02 Richard Biener <rguenther@suse.de>
20074 PR tree-optimization/65961
20075 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
20076 check and clarify dump message.
20077 (vect_build_slp_tree): If all children are built up from scalars
20078 build up the parent from scalars instead.
20079 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
20081 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
20084 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
20085 instead of print ... .
20087 2015-06-02 Alan Modra <amodra@gmail.com>
20089 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
20092 2015-06-02 Bin Cheng <bin.cheng@arm.com>
20094 PR tree-optimization/52563
20095 PR tree-optimization/62173
20096 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
20097 (alloc_iv, set_iv): New parameter.
20098 (determine_biv_step): Delete.
20099 (find_bivs): Inline original determine_biv_step. Pass new
20100 argument to set_iv.
20101 (idx_find_step): Use no_overflow information for conversion.
20102 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
20103 resolve_mixers handle folded_casts.
20104 (instantiate_scev_name): Change bool parameter to bool pointer.
20105 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
20106 (instantiate_array_ref, instantiate_scev_not): Ditto.
20107 (instantiate_scev_3, instantiate_scev_2): Ditto.
20108 (instantiate_scev_1, instantiate_scev_r): Ditto.
20109 (instantiate_scev_convert, ): Change parameter. Pass argument
20110 to chrec_convert_aggressive.
20111 (instantiate_scev): Change argument.
20112 (resolve_mixers): New parameter and set it.
20113 (scev_const_prop): New argument.
20114 * tree-scalar-evolution.h (resolve_mixers): New parameter.
20115 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
20117 (chrec_convert): New parameter. Move definition below.
20118 (chrec_convert_aggressive): New parameter and set it. Call
20119 convert_affine_scev.
20120 * tree-chrec.h (chrec_convert): New parameter.
20121 (chrec_convert_aggressive): Ditto.
20123 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
20125 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
20126 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
20127 the LHS of a no-return call if its type has variable size.
20128 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
20129 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
20131 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
20133 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
20134 * config.in: Regenerate.
20136 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
20138 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
20139 consecutive accesses within outer-loop with force_vectorize
20140 for references with zero step in inner-loop.
20142 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
20144 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
20145 rather than from gcc/build directory.
20147 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
20150 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
20151 for __sync memory models, emit initial loads and final barriers as
20154 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
20157 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
20158 (aarch64_split_atomic_op): Check for __sync memory models, emit
20159 appropriate initial loads and final barriers.
20161 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
20163 * Makefile.in: Fix gcov dependencies that should
20164 not point to a build folder.
20166 2015-06-01 Richard Biener <rguenther@suse.de>
20169 2015-05-29 Richard Biener <rguenther@suse.de>
20171 PR tree-optimization/66314
20172 * tree-ssa-threadupdate.c (create_block_for_threading): Add
20173 parameter that says which loop the new block belongs to.
20174 (ssa_create_duplicates): Blocks duplicated for the threaded
20175 path belong to the loop of the thread destination.
20177 2015-06-01 Martin Liska <mliska@suse.cz>
20179 * sched-deps.c: Include pool-alloc.h before
20180 cselib.h header file is included.
20182 2015-06-01 Richard Biener <rguenther@suse.de>
20184 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
20187 2015-06-01 Martin Liska <mliska@suse.cz>
20189 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
20190 a function local variable.
20192 2015-06-01 Martin Liska <mliska@suse.cz>
20194 * alloc-pool.c (create_alloc_pool): Remove.
20195 (empty_alloc_pool): Likewise.
20196 (free_alloc_pool): Likewise.
20197 (free_alloc_pool_if_empty): Likewise.
20198 (pool_alloc): Likewise.
20199 (pool_free): Likewise.
20200 * alloc-pool.h: Remove old declarations.
20202 2015-06-01 Martin Liska <mliska@suse.cz>
20204 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
20205 (ira_create_object): Likewise.
20206 (ira_create_allocno): Likewise.
20207 (ira_create_live_range): Likewise.
20208 (copy_live_range): Likewise.
20209 (ira_finish_live_range): Likewise.
20210 (ira_free_allocno_costs): Likewise.
20211 (finish_allocno): Likewise.
20212 (finish_allocnos): Likewise.
20213 (initiate_prefs): Likewise.
20214 (ira_create_pref): Likewise.
20215 (finish_pref): Likewise.
20216 (finish_prefs): Likewise.
20217 (initiate_copies): Likewise.
20218 (ira_create_copy): Likewise.
20219 (finish_copy): Likewise.
20220 (finish_copies): Likewise.
20221 (finish_prefs): Likewise.
20223 2015-06-01 Martin Liska <mliska@suse.cz>
20225 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
20226 (allocate_and_init_ipcp_value): Likewise.
20227 (ipcp_lattice::add_value): Likewise.
20228 (merge_agg_lats_step): Likewise.
20229 (ipcp_driver): Likewise.
20230 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
20231 (ipa_free_all_structures_after_iinln): Likewise.
20232 * ipa-prop.h: Likewise.
20234 2015-06-01 Martin Liska <mliska@suse.cz>
20236 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
20238 (set_hint_predicate): Likewise.
20239 (inline_summary_alloc): Likewise.
20240 (reset_inline_edge_summary): Likewise.
20241 (reset_inline_summary): Likewise.
20242 (set_cond_stmt_execution_predicate): Likewise.
20243 (set_switch_stmt_execution_predicate): Likewise.
20244 (compute_bb_predicates): Likewise.
20245 (estimate_function_body_sizes): Likewise.
20246 (inline_free_summary): Likewise.
20248 2015-06-01 Martin Liska <mliska@suse.cz>
20250 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
20251 (ipa_edge_duplication_hook): Likewise.
20252 (ipa_free_all_structures_after_ipa_cp): Likewise.
20253 (ipa_free_all_structures_after_iinln): Likewise.
20255 2015-06-01 Martin Liska <mliska@suse.cz>
20257 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
20258 (ipa_profile_generate_summary): Likewise.
20259 (ipa_profile_read_summary): Likewise.
20260 (ipa_profile): Likewise.
20262 2015-06-01 Martin Liska <mliska@suse.cz>
20264 * tree-ssa-structalias.c (new_var_info): Use new type-based
20266 (new_constraint): Likewise.
20267 (init_alias_vars): Likewise.
20268 (delete_points_to_sets): Likewise.
20270 2015-06-01 Martin Liska <mliska@suse.cz>
20272 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
20273 (free_strinfo): Likewise.
20274 (pass_strlen::execute): Likewise.
20276 2015-06-01 Martin Liska <mliska@suse.cz>
20278 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
20280 (vn_reference_insert_pieces): Likewise.
20281 (vn_phi_insert): Likewise.
20282 (visit_reference_op_call): Likewise.
20283 (copy_phi): Likewise.
20284 (copy_reference): Likewise.
20285 (process_scc): Likewise.
20286 (allocate_vn_table): Likewise.
20287 (free_vn_table): Likewise.
20289 2015-06-01 Martin Liska <mliska@suse.cz>
20291 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
20293 (add_repeat_to_ops_vec): Likewise.
20294 (get_ops): Likewise.
20295 (maybe_optimize_range_tests): Likewise.
20296 (init_reassoc): Likewise.
20297 (fini_reassoc): Likewise.
20299 2015-06-01 Martin Liska <mliska@suse.cz>
20301 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
20303 (bitmap_set_new): Likewise.
20304 (get_or_alloc_expr_for_constant): Likewise.
20305 (get_or_alloc_expr_for): Likewise.
20306 (phi_translate_1): Likewise.
20307 (compute_avail): Likewise.
20308 (init_pre): Likewise.
20309 (fini_pre): Likewise.
20311 2015-06-01 Martin Liska <mliska@suse.cz>
20313 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
20314 (delete_dep_node): Likewise.
20315 (create_deps_list): Likewise.
20316 (free_deps_list): Likewise.
20317 (sched_deps_init): Likewise.
20318 (sched_deps_finish): Likewise.
20320 2015-06-01 Martin Liska <mliska@suse.cz>
20322 * regcprop.c (free_debug_insn_changes): Use new type-based
20324 (replace_oldest_value_reg): Likewise.
20325 (pass_cprop_hardreg::execute): Likewise.
20327 2015-06-01 Martin Liska <mliska@suse.cz>
20329 * ira-build.c (initiate_cost_vectors): Use new type-based
20331 (ira_allocate_cost_vector): Likewise.
20332 (ira_free_cost_vector): Likewise.
20333 (finish_cost_vectors): Likewise.
20335 2015-06-01 Martin Liska <mliska@suse.cz>
20337 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
20339 (free_sched_pools): Likewise.
20340 * sel-sched-ir.h (_list_alloc): Likewise.
20341 (_list_remove): Likewise.
20343 2015-06-01 Martin Liska <mliska@suse.cz>
20345 * stmt.c (add_case_node): Use new type-based pool allocator.
20346 (expand_case): Likewise.
20347 (expand_sjlj_dispatch_table): Likewise.
20349 2015-06-01 Martin Liska <mliska@suse.cz>
20351 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
20352 (free_bb): Likewise.
20353 (pass_cse_reciprocals::execute): Likewise.
20355 2015-06-01 Martin Liska <mliska@suse.cz>
20357 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
20358 (sra_deinitialize) Likewise.
20359 (create_access_1) Likewise.
20360 (build_accesses_from_assign) Likewise.
20361 (create_artificial_child_access) Likewise.
20363 2015-06-01 Martin Liska <mliska@suse.cz>
20365 * dse.c (get_group_info):Use new type-based pool allocator.
20366 (dse_step0) Likewise.
20367 (free_store_info) Likewise.
20368 (delete_dead_store_insn) Likewise.
20369 (free_read_records) Likewise.
20370 (record_store) Likewise.
20371 (replace_read) Likewise.
20372 (check_mem_read_rtx) Likewise.
20373 (scan_insn) Likewise.
20374 (dse_step1) Likewise.
20375 (dse_step7) Likewise.
20377 2015-06-01 Martin Liska <mliska@suse.cz>
20379 * df-scan.c (struct df_scan_problem_data):Use new type-based
20381 (df_scan_free_internal) Likewise.
20382 (df_scan_alloc) Likewise.
20383 (df_grow_reg_info) Likewise.
20384 (df_free_ref) Likewise.
20385 (df_insn_create_insn_record) Likewise.
20386 (df_mw_hardreg_chain_delete) Likewise.
20387 (df_insn_info_delete) Likewise.
20388 (df_free_collection_rec) Likewise.
20389 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
20390 (df_sort_and_compress_mws) Likewise.
20391 (df_ref_create_structure) Likewise.
20392 (df_ref_record) Likewise.
20394 2015-06-01 Martin Liska <mliska@suse.cz>
20396 * df-problems.c (df_chain_create):Use new type-based pool allocator.
20397 (df_chain_unlink_1) Likewise.
20398 (df_chain_unlink) Likewise.
20399 (df_chain_remove_problem) Likewise.
20400 (df_chain_alloc) Likewise.
20401 (df_chain_free) Likewise.
20402 * df.h (struct dataflow) Likewise.
20404 2015-06-01 Martin Liska <mliska@suse.cz>
20406 * cselib.c (new_elt_list):Use new type-based pool allocator.
20407 (new_elt_loc_list) Likewise.
20408 (unchain_one_elt_list) Likewise.
20409 (unchain_one_elt_loc_list) Likewise.
20410 (unchain_one_value) Likewise.
20411 (new_cselib_val) Likewise.
20412 (cselib_init) Likewise.
20413 (cselib_finish) Likewise.
20415 2015-06-01 Martin Liska <mliska@suse.cz>
20417 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
20418 (sh_reorg) Likewise.
20420 2015-06-01 Martin Liska <mliska@suse.cz>
20422 * cfg.c (initialize_original_copy_tables):Use new type-based
20424 (free_original_copy_tables) Likewise.
20425 (copy_original_table_clear) Likewise.
20426 (copy_original_table_set) Likewise.
20428 2015-06-01 Martin Liska <mliska@suse.cz>
20430 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
20432 (asan_mem_ref_new) Likewise.
20433 (free_mem_ref_resources) Likewise.
20435 2015-06-01 Martin Liska <mliska@suse.cz>
20437 * var-tracking.c (variable_htab_free):Use new type-based
20439 (attrs_list_clear) Likewise.
20440 (attrs_list_insert) Likewise.
20441 (attrs_list_copy) Likewise.
20442 (shared_hash_unshare) Likewise.
20443 (shared_hash_destroy) Likewise.
20444 (unshare_variable) Likewise.
20445 (var_reg_delete_and_set) Likewise.
20446 (var_reg_delete) Likewise.
20447 (var_regno_delete) Likewise.
20448 (drop_overlapping_mem_locs) Likewise.
20449 (variable_union) Likewise.
20450 (insert_into_intersection) Likewise.
20451 (canonicalize_values_star) Likewise.
20452 (variable_merge_over_cur) Likewise.
20453 (dataflow_set_merge) Likewise.
20454 (remove_duplicate_values) Likewise.
20455 (variable_post_merge_new_vals) Likewise.
20456 (dataflow_set_preserve_mem_locs) Likewise.
20457 (dataflow_set_remove_mem_locs) Likewise.
20458 (variable_from_dropped) Likewise.
20459 (variable_was_changed) Likewise.
20460 (set_slot_part) Likewise.
20461 (clobber_slot_part) Likewise.
20462 (delete_slot_part) Likewise.
20463 (loc_exp_insert_dep) Likewise.
20464 (notify_dependents_of_changed_value) Likewise.
20465 (emit_notes_for_differences_1) Likewise.
20466 (vt_emit_notes) Likewise.
20467 (vt_initialize) Likewise.
20468 (vt_finalize) Likewise.
20470 2015-06-01 Martin Liska <mliska@suse.cz>
20472 * ira-color.c (init_update_cost_records):Use new type-based
20474 (get_update_cost_record) Likewise.
20475 (free_update_cost_record_list) Likewise.
20476 (finish_update_cost_records) Likewise.
20477 (initiate_cost_update) Likewise.
20479 2015-06-01 Martin Liska <mliska@suse.cz>
20481 * lra.c (init_insn_regs): Use new type-based pool allocator.
20482 (new_insn_reg) Likewise.
20483 (free_insn_reg) Likewise.
20484 (free_insn_regs) Likewise.
20485 (finish_insn_regs) Likewise.
20486 (init_insn_recog_data) Likewise.
20487 (init_reg_info) Likewise.
20488 (finish_reg_info) Likewise.
20489 (lra_free_copies) Likewise.
20490 (lra_create_copy) Likewise.
20491 (invalidate_insn_data_regno_info) Likewise.
20493 2015-06-01 Martin Liska <mliska@suse.cz>
20495 * lra-lives.c (free_live_range): Use new type-based pool allocator.
20496 (free_live_range_list) Likewise.
20497 (create_live_range) Likewise.
20498 (copy_live_range) Likewise.
20499 (lra_merge_live_ranges) Likewise.
20500 (remove_some_program_points_and_update_live_ranges) Likewise.
20501 (lra_live_ranges_init) Likewise.
20502 (lra_live_ranges_finish) Likewise.
20504 2015-06-01 Martin Liska <mliska@suse.cz>
20506 * et-forest.c (et_new_occ): Use new type-based pool allocator.
20507 (et_new_tree): Likewise.
20508 (et_free_tree): Likewise.
20509 (et_free_tree_force): Likewise.
20510 (et_free_pools): Likewise.
20511 (et_split): Likewise.
20513 2015-06-01 Martin Liska <mliska@suse.cz>
20515 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
20517 * alloc-pool.h (pool_allocator::pool_allocator): New function.
20518 (pool_allocator::release): Likewise.
20519 (inline pool_allocator::release_if_empty): Likewise.
20520 (inline pool_allocator::~pool_allocator): Likewise.
20521 (pool_allocator::allocate): Likewise.
20522 (pool_allocator::remove): Likewise.
20524 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
20526 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
20529 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
20531 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
20533 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
20534 (arm_macro_fusion_p): Likewise.
20535 (arm_macro_fusion_pair_p): Likewise.
20537 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
20539 * config/aarch64/aarch64-protos.h (tune_params): Rename
20540 fuseable_ops to fusible_ops.
20541 * config/aarch64/aarch64.c (generic_tunings): Rename
20542 fuseable_ops to fusible_ops.
20543 (cortexa53_tunings): Likewise.
20544 (cortexa57_tunings): Likewise.
20545 (thunderx_tunings): Likewise.
20546 (xgene1_tunings): Likewise.
20547 (aarch64_macro_fusion_p): Likewise.
20548 (aarch64_macro_fusion_pair_p): Likewise.
20550 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
20552 * config/s390/driver-native.c: New file.
20553 * config/s390/x-native: New file.
20554 * config.host: Add new files for s390.
20555 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
20557 * config.gcc: Likewise.
20558 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
20559 * config/s390/s390-opts.h (enum processor_type): Ditto.
20560 * config/s390/s390.c (s390_option_override): Catch unhandled
20563 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
20566 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
20567 redirection for instrumented calls.
20568 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
20569 (append_compiler_options): Append -fcheck-pointer-bounds.
20570 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
20571 (chkp_redirect_edge): New.
20572 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
20573 (chkp_redirect_edge): New.
20575 2015-06-01 Richard Biener <rguenther@suse.de>
20577 PR tree-optimization/66280
20578 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
20581 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20583 * config/aarch64/aarch64.md
20584 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
20587 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
20589 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
20590 Remove obsolete kludge.
20592 2015-06-01 Richard Biener <rguenther@suse.de>
20594 * tree-ssa-reassoc.c (get_rank): Simplify.
20596 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
20598 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
20599 * configure: Regenerated.
20601 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
20603 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
20604 issue (add space between string literal and macro).
20605 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
20607 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
20609 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
20610 implict or explicit -fPIE or -fpie.
20612 2015-05-30 Mike Frysinger <vapier@gentoo.org>
20614 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
20616 2015-05-28 DJ Delorie <dj@redhat.com>
20618 * expmed.c (extract_bit_field_1): Avoid clobbering a
20619 yet-to-be-used base/index register.
20621 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
20623 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
20624 (alias_stats): Add num_universal.
20625 (alias_set_subset_of): Special case pointers; be ready for NULL
20627 (alias_sets_conflict_p): Special case pointers; be ready for NULL
20629 (init_alias_set_entry): Break out from ...
20630 (record_alias_subset): ... here; propagate new fields;
20631 allocate children only when really needed.
20632 (get_alias_set): Do less generous pointer globbing.
20633 (dump_alias_stats_in_alias_c): Update statistics.
20635 2015-05-30 Alan Modra <amodra@gmail.com>
20637 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
20638 correct block for use of r12.
20639 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
20641 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
20644 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
20647 2015-05-29 Jakub Jelinek <jakub@redhat.com>
20649 PR tree-optimization/66142
20650 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
20651 virtual phis that feed themselves.
20653 2015-05-29 Richard Biener <rguenther@suse.de>
20655 PR tree-optimization/66314
20656 * tree-ssa-threadupdate.c (create_block_for_threading): Add
20657 parameter that says which loop the new block belongs to.
20658 (ssa_create_duplicates): Blocks duplicated for the threaded
20659 path belong to the loop of the thread destination.
20661 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20663 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
20664 to cleanup-saved-temps.
20665 * doc/sourcebuild.texi (Clean up generated test files): Expand
20667 (dg-keep-saved-temps): Document new proc.
20668 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
20669 cleanup-saved-temps): Remove.
20671 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
20673 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
20674 gcc_AC_CHECK_DECLS.
20675 * configure: Regenerate.
20677 2015-05-28 Mike Frysinger <vapier@gentoo.org>
20679 * config/nios2/linux.h (CPP_SPEC): Define.
20681 2015-05-28 Mike Frysinger <vapier@gentoo.org>
20683 * config/microblaze/linux.h (CPP_SPEC): Define.
20685 2015-05-28 Mike Frysinger <vapier@gentoo.org>
20687 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
20688 -pthread is specified.
20690 2015-05-28 Richard Biener <rguenther@suse.de>
20692 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
20693 (vect_fixup_scalar_cycles_with_patterns): Likewise.
20694 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
20695 after pattern recog.
20696 (vect_create_epilog_for_reduction): Properly handle reductions
20698 (vectorizable_reduction): Likewise.
20699 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
20701 (vect_get_constant_vectors): Create the correct number of
20702 initial values for reductions.
20703 (vect_schedule_slp_instance): Handle reduction chains that are
20704 type changing properly.
20705 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
20707 2015-05-28 Richard Biener <rguenther@suse.de>
20709 PR tree-optimization/66142
20710 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
20711 values better in memcpy destination handling. Handle non-aliasing
20714 2015-05-28 Lawrence Velázquez <vq@larryv.me>
20717 * config/darwin-c.c (version_components): New global enum.
20718 (parse_version, version_as_legacy_macro)
20719 (version_as_modern_macro, macosx_version_as_macro): New functions.
20720 (version_as_macro): Remove.
20721 (darwin_cpp_builtins): Use new function.
20723 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
20725 * builtins.c (expand_builtin_acc_on_device): Mark parameters
20726 with ATTRIBUTE_UNUSED.
20728 2015-05-28 Julian Brown <julian@codesourcery.com>
20732 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
20733 sequence for !ACCEL_COMPILER.
20735 2015-05-28 Nick Clifton <nickc@redhat.com>
20737 * config/rx/rx.c (push_regs): New function. Extracts code from...
20738 (rx_expand_prologue): ... here. Use push_regs to push even small
20739 spans of registers.
20740 (pop_regs): New function.
20741 (rx_expand_epilogue): Use pop_regs to pop even small spans of
20744 2015-05-28 Richard Biener <rguenther@suse.de>
20746 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
20748 (SLP_INSTANCE_BODY_COST_VEC): Remove.
20749 (vect_update_slp_costs_according_to_vf): Likewise.
20750 (vect_slp_analyze_operations): Update prototype.
20751 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
20752 vect_update_slp_costs_according_to_vf, adjust.
20753 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
20754 (vect_analyze_slp_cost_1): Likewise.
20755 (vect_analyze_slp_cost): Likewise. Properly deal with
20756 widening reduction ops. Commit body costs.
20757 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
20758 cost for loops from here.
20759 (vect_slp_analyze_operations): But do it from here when
20760 the vectorization factor is known and stmts are analyzed.
20761 (vect_bb_vectorization_profitable_p): Simplify.
20762 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
20763 (vect_update_slp_costs_according_to_vf): Remove.
20765 2015-05-27 Magnus Granberg <zorry@gentoo.org>
20766 H.J. Lu <hongjiu.lu@intel.com>
20768 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
20769 (BUILD_CFLAGS): Likewise.
20770 (BUILD_CXXFLAGS): Likewise.
20771 (LINKER): Add @NO_PIE_FLAG@.
20772 (BUILD_LDFLAGS): Likewise.
20773 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
20774 --enable-default-pie.
20775 * common.opt (fPIE): Initialize to -1.
20777 (no-pie): New option.
20778 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
20779 * configure.ac: Add --enable-default-pie.
20780 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
20781 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
20782 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
20783 * gcc.c (NO_PIE_SPEC): New.
20784 (PIE_SPEC): Likewise.
20785 (NO_FPIE1_SPEC): Likewise.
20786 (FPIE1_SPEC): Likewise.
20787 (NO_FPIE2_SPEC): Likewise.
20788 (FPIE2_SPEC): Likewise.
20789 (NO_FPIE2_SPEC): Likewise.
20790 (FPIE_SPEC): Likewise.
20791 (NO_FPIE_SPEC): Likewise.
20792 (NO_FPIC1_SPEC): Likewise.
20793 (FPIC1_SPEC): Likewise.
20794 (NO_FPIC2_SPEC): Likewise.
20795 (FPIC2_SPEC): Likewise.
20796 (NO_FPIC2_SPEC): Likewise.
20797 (FPIC_SPEC): Likewise.
20798 (NO_FPIC_SPEC): Likewise.
20799 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
20800 (FPIE1_OR_FPIC1_SPEC): Likewise.
20801 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
20802 (FPIE2_OR_FPIC2_SPEC): Likewise.
20803 (NO_FPIE_AND_FPIC_SPEC): Likewise.
20804 (FPIE_OR_FPIC_SPEC): Likewise.
20805 (LD_PIE_SPEC): Likewise.
20806 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
20807 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
20808 * config/darwin.h (PIE_SPEC): Renamed to ...
20809 (DARWIN_PIE_SPEC): This.
20810 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
20811 * config/darwin9.h (PIE_SPEC): Renamed to ...
20812 (DARWIN_PIE_SPEC): This.
20813 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
20814 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
20815 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
20816 FPIE2_OR_FPIC2_SPEC.
20817 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
20818 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
20819 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
20820 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20821 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20822 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20823 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
20824 * config/m32r/m32r.h (ASM_SPEC): Likewise.
20825 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
20826 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
20827 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
20828 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
20829 * config/sparc/linux.h (ASM_SPEC): Likewise.
20830 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20831 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
20832 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
20833 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20834 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
20835 * config/sparc/sparc.h (ASM_SPEC): Likewise.
20836 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
20837 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
20838 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
20839 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
20840 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
20841 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
20842 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
20843 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
20844 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
20845 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
20846 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
20847 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
20848 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20849 * config/vax/linux.h (ASM_SPEC): Likewise.
20850 * doc/install.texi: Document --enable-default-pie.
20851 * doc/invoke.texi: Document -no-pie.
20852 * config.in: Regenerated.
20853 * configure: Likewise.
20855 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
20857 PR rtl-optimization/66168
20858 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
20859 can_move_invariant_reg.
20861 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
20864 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
20865 REG_EQUAL note when doing insert.
20867 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
20868 instead of "%d" for 'o' operand.
20870 2015-05-27 Nathan Sidwell <nathan@acm.org>
20873 * tree.c (build_pointer_type_for_mode): Canonical type does not
20874 inherit can_alias_all.
20875 (build_reference_type_for_mode): Likewise.
20877 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
20879 * expr.h (array_at_struct_end_p): Move to...
20880 (array_ref_element_size): Likewise.
20881 (component_ref_field_offset): Likewise.
20882 * tree.h (array_ref_element_size): ...here.
20883 (array_at_struct_end_p): Likewise.
20884 (component_ref_field_offset): Likewise.
20885 * expr.c (array_ref_element_size): Move to...
20886 (array_ref_low_bound): Likewise.
20887 (array_at_struct_end_p): Likewise.
20888 (array_ref_up_bound): Likewise.
20889 (component_ref_field_offset): Likewise.
20890 * tree.c (array_ref_element_size): ...here.
20891 (array_ref_low_bound): Likewise.
20892 (array_ref_up_bound): Likewise.
20893 (array_at_struct_end_p): Likewise.
20894 (component_ref_field_offset): Likewise.
20896 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
20897 Szabolcs Nagy <szabolcs.nagy@arm.com>
20899 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
20901 2015-05-27 Jason Merrill <jason@redhat.com>
20904 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
20905 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
20906 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
20908 2015-05-22 Aditya Kumar <hiraditya@msn.com>
20910 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
20913 * statistics.c (statistics_fini_pass): Print pass name.
20915 2015-05-27 Richard Biener <rguenther@suse.de>
20917 PR tree-optimization/66272
20919 2014-08-15 Richard Biener <rguenther@suse.de>
20921 PR tree-optimization/62031
20922 * tree-data-ref.c (dr_analyze_indices): Do not set
20923 DR_UNCONSTRAINED_BASE.
20924 (dr_may_alias_p): All indirect accesses have to go the
20925 formerly DR_UNCONSTRAINED_BASE path.
20926 * tree-data-ref.h (struct indices): Remove
20927 unconstrained_base member.
20928 (DR_UNCONSTRAINED_BASE): Remove.
20930 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
20932 * dwarf2out.c: Remove block_map.
20933 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
20934 (gen_lexical_block_die): Same.
20935 (dwarf2out_function_decl): Remove block_map use.
20936 (dwarf2out_c_finalize): Same.
20937 * tree-core.h (struct tree_block): Add die field.
20938 * tree.h (BLOCK_DIE): New.
20940 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20943 * expr.c (memory_load_overlap): New function.
20944 (emit_push_insn): When pushing partial args to the stack would
20945 clobber the register part load the overlapping part into a pseudo
20946 and put it into the hard reg after pushing. Change return type
20947 to bool. Add bool argument.
20948 * expr.h (emit_push_insn): Change return type to bool.
20950 * calls.c (expand_call): Cancel sibcall optimization when encountering
20951 partial argument on targets with ARGS_GROW_DOWNWARD and
20952 !STACK_GROWS_DOWNWARD.
20953 (emit_library_call_value_1): Update callsite of emit_push_insn.
20954 (store_one_arg): Likewise.
20956 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
20958 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
20960 2015-05-27 Martin Liska <mliska@suse.cz>
20962 * Makefile.in: Add additional dependencies related to memory report
20964 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
20965 * bitmap.c (struct bitmap_descriptor_d): Remove.
20966 (struct loc): Likewise.
20967 (struct bitmap_desc_hasher): Likewise.
20968 (bitmap_desc_hasher::hash): Likewise.
20969 (bitmap_desc_hasher::equal): Likewise.
20970 (get_bitmap_descriptor): Likewise.
20971 (bitmap_register): User new memory descriptor API.
20972 (register_overhead): Likewise.
20973 (bitmap_find_bit): Register nsearches and search_iter statistics.
20974 (struct bitmap_output_info): Remove.
20975 (print_statistics): Likewise.
20976 (dump_bitmap_statistics): Use new memory descriptor.
20977 * bitmap.h (struct bitmap_usage): New class.
20978 * genmatch.c: Extend header file inclusion.
20979 * genpreds.c: Likewise.
20980 * ggc-common.c (struct ggc_usage): New class.
20981 (struct ggc_loc_desc_hasher): Remove.
20982 (ggc_loc_desc_hasher::hash): Likewise.
20983 (ggc_loc_desc_hasher::equal): Likewise.
20984 (struct ggc_ptr_hash_entry): Likewise.
20985 (struct ptr_hash_hasher): Likewise.
20986 (ptr_hash_hasher::hash): Likewise.
20987 (ptr_hash_hasher::equal): Likewise.
20988 (make_loc_descriptor): Likewise.
20989 (ggc_prune_ptr): Likewise.
20990 (dump_ggc_loc_statistics): Use new memory descriptor.
20991 (ggc_record_overhead): Likewise.
20992 (ggc_free_overhead): Likewise.
20993 (final_cmp_statistic): Remove.
20994 (cmp_statistic): Likewise.
20995 (ggc_add_statistics): Liekwise.
20996 (ggc_prune_overhead_list): Likewise.
20997 * hash-map-traits.h: New file.
20998 * hash-map.h (struct default_hashmap_traits): Move the traits to a
20999 separate header file.
21000 * hash-set.h: Pass memory statistics info to ctor.
21001 * hash-table.c (void dump_hash_table_loc_statistics): New function.
21002 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
21003 (hash_table::~hash_table): Register memory release operation.
21004 (hash_table::alloc_entries): Handle memory allocation operation.
21005 (hash_table::expand): Likewise.
21006 * inchash.c (iterative_hash_hashval_t): Move implementation to header
21008 (iterative_hash_host_wide_int): Likewise.
21009 * inchash.h (class hash): Likewise.
21010 * mem-stats-traits.h: New file.
21011 * mem-stats.h: New file.
21012 (mem_location): Add new class.
21013 (mem_usage): Likewise.
21014 (mem_alloc_description): Likewise.
21015 * sese.c: Add new header file inclusision.
21016 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
21018 * tree-sra.c: Add new header file inclusision.
21019 * vec.c (struct vec_descriptor): Remove.
21020 (hash_descriptor): Likewise.
21021 (struct vec_usage): Likewise.
21022 (struct ptr_hash_entry): Likewise.
21023 (hash_ptr): Likewise.
21024 (eq_ptr): Likewise.
21025 (vec_prefix::register_overhead): Use new memory descriptor API.
21026 (vec_prefix::release_overhead): Likewise.
21027 (add_statistics): Remove.
21028 (dump_vec_loc_statistics): Use new memory descriptor API.
21029 * vec.h (struct vec_prefix): Likewise.
21030 (va_heap::reserve): Likewise.
21031 (va_heap::release): Likewise.
21032 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
21034 2015-05-27 Richard Biener <rguenther@suse.de>
21036 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
21037 earlier and remove ??? comment.
21038 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
21039 and got called from loop analysis bail out. Always pass the SLP
21040 node to the vectorizable_* functions.
21041 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
21042 the premature SLP check here.
21043 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
21044 detected SLP stmts.
21045 (vect_detect_hybrid_slp_1): Likewise.
21047 2015-05-26 Jeff Law <law@redhat.com>
21049 * combine.c (find_split_point): Verify that the shift count is a
21050 constant when choosing (plus (ashift ...)) as a split point.
21052 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
21053 No functional changes.
21055 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
21057 * ipa-polymorphic-call.c
21058 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
21059 case when call target is already known.
21061 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
21064 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
21065 take into account the case that operands[1] and operands[2]
21066 are the same register.
21068 2015-05-26 Michael Matz <matz@suse.de>
21070 PR middle-end/66251
21072 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
21074 (vect_create_vectorized_demotion_stmts): Always set
21075 STMT_VINFO_VEC_STMT, also with SLP.
21076 (vectorizable_store): Handle strided group stores.
21078 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21081 * config/aarch64/aarch64.md
21082 (*adds_shift_imm_<mode>): New pattern.
21083 (*subs_shift_imm_<mode>): Likewise.
21084 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
21085 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
21086 (*add_uxt<mode>_shift2): Likewise.
21087 (*add_uxtsi_shift2_uxtw): Likewise.
21088 (*sub_uxt<mode>_shift2): Likewise.
21089 (*sub_uxtsi_shift2_uxtw): Likewise.
21091 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
21093 * config/rs6000/constraints.md (Y, U): Use match_test.
21095 2015-05-26 Christian Bruel <christian.bruel@st.com>
21098 * config/arm/arm.c (arm_option_check_internal)
21099 (arm_option_params_internal): Check opts->target_flags to set macros.
21100 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
21101 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
21102 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
21103 (builtin_define): Replaced with def_or_undef_macro.
21104 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
21105 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
21106 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
21107 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
21108 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
21109 (TARGET_ARM_FEATURE_LDREX_P)
21110 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
21111 * config/arm/arm-c.c (def_or_undef_macro): New function.
21112 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
21114 2015-05-26 Christian Bruel <christian.bruel@st.com>
21116 * c-common.h (builtin_define_with_int_value)
21117 (builtin_define_type_sizeof): Declare.
21118 * c-cppbuiltin.c (builtin_define_with_int_value)
21119 (builtin_define_type_sizeof): Externalize.
21120 (builtin_define_std): Cleanup declaration.
21121 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
21122 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
21123 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
21124 (builtin_define, builtin_assert): New macros.
21126 2015-05-26 Richard Biener <rguenther@suse.de>
21128 PR tree-optimization/66142
21129 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
21130 MEM_REFs for the same base address.
21132 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21135 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
21137 2015-05-26 Jason Merrill <jason@redhat.com>
21139 * configure.ac: Set CXXFLAGS for ISL test.
21140 * configure: Regenerate.
21142 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
21143 strstr and basename.
21144 * configure: Regenerate.
21146 2015-05-26 Richard Biener <rguenther@suse.de>
21148 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
21149 X % C -> X & (C - 1) for C being a power-of two to ...
21150 * match.pd: ... patterns.
21152 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
21154 * match.pd (swapped_tcc_comparison): New operator list.
21155 (-A CMP -B): New simplification.
21156 * fold-const.c (fold_comparison): Remove corresponding code.
21158 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
21160 * caller-save.c (init_caller_save): Base temporary register numbers
21161 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
21162 * cfgloopanal.c (init_set_costs): Likewise.
21163 * dojump.c (prefer_and_bit_test): Likewise.
21164 * expr.c (init_expr_target): Likewise.
21165 * ira.c (setup_prohibited_mode_move_regs): Likewise.
21166 * lower-subreg.c (init_lower_subreg): Likewise.
21167 * postreload.c (reload_cse_regs_1): Likewise.
21169 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
21171 * gensupport.h (compute_test_codes): Declare.
21172 * gensupport.c (compute_predicate_codes): Rename to...
21173 (compute_test_codes): ...this. Generalize error message.
21174 (process_define_predicate): Update accordingly.
21175 * genpreds.c (compute_maybe_allows): Delete.
21176 (add_constraint): Use compute_test_codes to determine whether
21177 something can accept a SUBREG, REG or MEM.
21179 2015-05-26 Torvald Riegel <triegel@redhat.com>
21181 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
21182 'memory model' to align with C++11; fix description of memory orders;
21185 2015-05-26 Richard Biener <rguenther@suse.de>
21187 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
21188 (vect_analyze_loop_operations): ... here. Remove slp parameter,
21189 detect whether we apply SLP. Remove call to
21190 vect_update_slp_costs_according_to_vf.
21191 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
21192 vect_update_slp_costs_according_to_vf from here. Dispatch
21193 to vect_slp_analyze_operations to analyze SLP stmts.
21194 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
21195 unused bb_vec_info parameter, adjust assert.
21196 (vect_slp_analyze_operations): Pass in the slp instance tree
21197 instead of bb_vec_info.
21198 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
21199 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
21201 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
21203 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
21204 Q_REGS. Expand comment.
21205 (REG_CLASS_NAMES): Ditto.
21206 (REG_CLASS_CONTENTS): Ditto.
21208 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
21211 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
21212 when LEGACY_INT_REGNO_P is processed.
21214 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
21216 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
21218 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
21220 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
21221 register if not marked dead/unused, before return.
21223 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
21226 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
21227 is set; check for assembler name at LTO time.
21228 (type_in_anonymous_namespace): Remove hacks, check that all
21229 anonymous types are called "<anon>"
21230 (odr_type_p): Simplify; add check for "<anon>"
21231 (odr_subtypes_equivalent): Add odr_type_p check.
21232 * tree.c (need_assembler_name_p): Even anonymous namespace needs
21235 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
21237 * ipa-utils.h (method_class_type): Remove.
21238 * cgraphunit.c (walk_polymorphic_call_targets): Use
21239 TYPE_METHOD_BASETYPE.
21240 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
21241 on main variants only.
21242 (method_class_type): Remove.
21243 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
21244 (build_type_inheritance_graph): Likewise.
21245 * ipa-icf.c (sem_function::equals_wpa): Likewise.
21246 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
21247 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
21249 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
21251 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
21252 is_typedef_decl, typedef_variant_p): Constify.
21253 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
21254 is_typedef_decl, typedef_variant_p): Constify.
21256 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21258 * defaults.h (gen_tablejump): New function.
21259 (HAVE_tablejump): Add default value.
21261 * stmt.c: Likewise.
21263 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21265 * defaults.h (gen_store_multiple): New function.
21266 (HAVE_store_multiple): Add default value.
21267 * expr.c (move_block_from_reg): Adjust.
21269 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21271 * defaults.h (gen_load_multiple): New function.
21272 (HAVE_load_multiple): Add default value.
21273 * expr.c (move_block_to_reg): Adjust.
21275 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21277 * defaults.h (gen_mem_signal_fence): New function.
21278 (HAVE_mem_signal_fence): Add default value.
21279 * optabs.c: Adjust.
21281 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21283 * defaults.h (gen_memory_barrier): New function.
21284 (HAVE_memory_barrier): Add default value.
21285 * optabs.c: Adjust.
21287 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21289 * defaults.h (gen_mem_thread_fence): New function.
21290 (HAVE_mem_thread_fence): Add default definition.
21291 * optabs.c: Adjust.
21293 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21295 * combine.c (find_split_point): Check the value of HAVE_lo_sum
21296 instead of if it is defined.
21297 (combine_simplify_rtx): Likewise.
21298 * lra-constraints.c (process_address_1): Likewise.
21299 * config/darwin.c: Adjust.
21300 * genconfig.c (main): Always define HAVE_lo_sum.
21302 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21304 * genmatch.c (parser::parse_operation): Reject expanding
21305 operator-list inside 'for'.
21307 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21309 * genmatch.c (parser::parse_for): Reject iterator if used as
21312 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21314 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
21315 after end of id-list.
21317 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
21319 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
21320 we do not try to compute canonical type for type that does not need
21322 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
21324 * tree.h (type_with_alias_set_p): New.
21326 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
21328 * tree.c (gimple_canonical_types_compatible_p): Do not compare
21329 function attributes.
21330 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
21332 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
21334 * Makefile.in (check_gcc_parallelize): Delete.
21335 (lang_checks_parallelized): Update comment.
21337 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
21339 PR rtl-optimization/66237
21340 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
21341 location of an "as_a" cast.
21343 2015-05-22 Jeff Law <law@redhat.com>
21345 * config/pa/pa.md (non-canonical shift-add insns): Remove.
21346 (peepholes with non-canonical RTL sources): Remove.
21347 (peepholes for indexed stores of FP regs in integer modes): Match and
21348 generate canonical RTL.
21350 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
21352 PR tree-optimization/63387
21353 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
21354 ((x ord x) & (y ord y) -> (x ord y),
21355 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
21356 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
21357 vectors like scalars.
21359 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
21361 * convert.c (convert_to_integer, convert_to_vector): Include the
21362 types in the error message.
21364 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
21366 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
21369 2015-05-22 Jeff Law <law@redhat.com>
21371 * config/pa/pa.md (integer_indexed_store splitters): Use
21372 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
21373 insns -- adjusting the constant 2nd operand accordingly.
21375 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
21376 (plus (ashift X log2) Y) if it is a split point.
21378 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
21379 out of hppa_legitimize_address to handle both forms of a multiply
21381 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
21382 Always generate the ASHIFT variant as the result is not directly
21383 used in a MEM. Update comments and refactor slightly to improve
21386 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21389 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
21390 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
21391 (aarch64_composite_type_p): Return false if given type and mode are
21392 for a short vector.
21394 2015-05-22 Richard Biener <rguenther@suse.de>
21396 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
21398 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
21399 patterns when determining whether SLP is pure.
21400 (vect_is_slp_reduction): Remove check for pattern stmts.
21401 (vect_is_simple_reduction_1): Remove dead code.
21402 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
21403 (vect_get_and_check_slp_defs): Pass in the stmt number.
21404 Allow the first def in a reduction to be not a pattern stmt when
21405 the rest of the stmts def are patterns.
21406 (vect_build_slp_tree_1): Allow tcc_expression codes like
21407 SAD_EXPR and DOT_PROD_EXPR.
21408 (vect_build_slp_tree): Adjust.
21409 (vect_analyze_slp): Refactor and move BB vect error message ...
21410 (vect_slp_analyze_bb_1): ... here.
21412 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
21414 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
21415 for CSWTCH temporary.
21417 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21419 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
21420 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
21423 2015-05-22 Richard Biener <rguenther@suse.de>
21425 PR tree-optimization/66251
21426 * tree-vect-stmts.c (vectorizable_conversion): Properly
21427 set STMT_VINFO_VEC_STMT even for the SLP case.
21429 2015-05-22 Marek Polacek <polacek@redhat.com>
21431 * doc/extend.texi: Use @pxref instead of @xref.
21433 2015-05-22 hiraditya <hiraditya@msn.com>
21435 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
21438 2015-05-22 Richard Biener <rguenther@suse.de>
21440 PR tree-optimization/65701
21441 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21442 Move peeling cost models into one place. Peel for alignment
21443 for single loads only if an aligned load is cheaper than
21446 2015-05-22 Marek Polacek <polacek@redhat.com>
21449 * doc/extend.texi (Enumerator Attributes): New section.
21450 Document syntax of enumerator attributes.
21452 2015-05-22 Richard Biener <rguenther@suse.de>
21454 * tree-vect-loop.c (get_reduction_op): New function.
21455 (vect_model_reduction_cost): Use it, add reduc_index parameter.
21456 Make ready for BB reductions.
21457 (vect_create_epilog_for_reduction): Use get_reduction_op.
21458 (vectorizable_reduction): Init reduc_index to a valid value.
21459 Adjust vect_model_reduction_cost call.
21460 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
21461 operand for reduction defaults. Add SAD_EXPR support.
21462 Assert we have a neutral op for SLP reductions.
21463 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
21464 walking pattern stmt ops only recurse to SSA names.
21466 2015-05-22 Richard Biener <rguenther@suse.de>
21468 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
21469 assert with guard, remove check on detected reduction.
21470 (vect_recog_sad_pattern): Likewise.
21471 (vect_recog_widen_sum_pattern): Likewise.
21473 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21475 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
21476 __always_inline__ attribute.
21477 (vaesdq_u8): Likewise.
21478 (vaesmcq_u8): Likewise.
21479 (vaesimcq_u8): Likewise.
21480 (vsha1cq_u32): Likewise.
21481 (vsha1mq_u32): Likewise.
21482 (vsha1pq_u32): Likewise.
21483 (vsha1h_u32): Likewise.
21484 (vsha1su0q_u32): Likewise.
21485 (vsha1su1q_u32): Likewise.
21486 (vsha256hq_u32): Likewise.
21487 (vsha256h2q_u32): Likewise.
21488 (vsha256su0q_u32): Likewise.
21489 (vsha256su1q_u32): Likewise.
21490 (vmull_p64): Likewise.
21491 (vmull_high_p64): Likewise.
21493 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21495 * final.c (final_scan_insn): Don't check HAVE_peephole with the
21497 * output.h: Likewise.
21498 * genconfig.c (main): Alwways define HAVE_peephole.
21499 * genpeep.c: Don't emit checks of HAVE_peephole.
21501 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21503 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
21504 check HAVE_conditional_move with the preprocessor.
21506 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21508 * genconfig.c (main): Always define HAVE_conditional_move.
21509 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
21510 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
21513 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21515 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
21516 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
21517 and FRAME_POINTER_REGNUM with the preprocessor.
21519 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21521 * defaults.h: Add default for STACK_PUSH_CODE.
21522 * expr.c: Don't redefine STACK_PUSH_CODE.
21523 * recog.c: Likewise.
21525 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21527 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
21528 sched-deps.c: Use if instead of preprocessor checks with
21529 STACK_GROWS_DOWNWARD.
21531 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21533 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
21535 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
21536 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
21537 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
21538 * doc/tm.texi: Regenerate.
21540 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
21543 * config/i386/constraints.md (Bg): New constraint for GOT memory
21545 * config/i386/i386.md (*call_got_x32): New pattern.
21546 (*call_value_got_x32): Likewise.
21547 * config/i386/predicates.md (GOT_memory_operand): New predicate.
21549 2015-05-21 Jakub Jelinek <jakub@redhat.com>
21551 PR tree-optimization/66233
21552 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
21555 2015-05-21 Jeff Law <law@redhat.com>
21557 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
21558 than MULT for shadd sequences.
21560 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
21562 * alias.c (alias_stats): New static var.
21563 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
21564 (dump_alias_stats_in_alias_c): New function.
21565 * alias.h (dump_alias_stats_in_alias_c): Declare.
21566 * tree-ssa-alias.c (dump_alias_stats): Call it.
21568 2015-05-08 Michael Matz <matz@suse.de>
21570 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
21572 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
21573 (STMT_VINFO_STRIDED_P): ... this.
21574 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
21575 (vect_verify_datarefs_alignment): Likewise.
21576 (vect_enhance_data_refs_alignment): Likewise.
21577 (vect_analyze_data_ref_access): Likewise.
21578 (vect_analyze_data_refs): Accept strided stores.
21579 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
21580 (vect_model_load_cost): Adjust for macro rename.
21581 (vectorizable_mask_load_store): Likewise.
21582 (vectorizable_load): Likewise.
21583 (vectorizable_store): Open code strided stores.
21585 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21587 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
21588 Document sqrt_insn.
21590 2015-05-21 Richard Biener <rguenther@suse.de>
21593 * match.pd: Guard pattern optimzing (int)(float)int
21594 conversions to apply only on GIMPLE.
21596 2015-05-21 Jeff Law <law@redhat.com>
21598 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
21599 multiply-accumulate/shift-add insn generation.
21601 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
21604 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
21605 operands[1] are the same.
21607 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
21609 PR middle-end/66221
21610 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
21611 build_distinct_type_copy to copy bounds.
21613 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
21615 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
21616 Change to unsigned int.
21618 2015-05-20 Jeff Law <law@redhat.com>
21620 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
21621 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
21622 (pa_shadd_constant_p): Allow constants for shadd insns rather
21623 than valid scaling constants for memory addresses.
21624 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
21625 * config/pa/predicates.md (mem_shadd_operand): New predicate.
21626 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
21627 (shift-add insns using ASHIFT): New patterns.
21629 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
21631 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
21633 (fix_up_fall_thru_edges): Likewise.
21634 (fix_crossing_conditional_branches): Likewise. Promote jump targets
21635 from to rtx_insn to rtx_code_label where feasible.
21636 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
21637 gen_move_insn (returned type changed to rtx_insn).
21638 * builtins.c (expand_errno_check): Fix arguments of
21639 do_compare_rtx_and_jump (now expects rtx_code_label).
21640 (expand_builtin_acc_on_device): Likewise.
21641 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
21642 invert_jump (now exprects rtx_jump_insn).
21643 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
21644 (construct_init_block): Use rtx_code_label.
21645 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
21646 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
21647 calling redirect_jump.
21648 (patch_jump_insn): Likewise.
21649 (redirect_branch_edge): Likewise.
21650 (force_nonfallthru_and_redirect): Likewise.
21651 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
21653 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
21654 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
21655 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
21656 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
21657 to store the value retured by gen_label_rtx.
21658 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
21660 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
21661 (split_branches): Fix calls of redirect_jump.
21662 * dojump.c (jumpifnot): Promote argument type from rtx to
21664 (jumpifnot_1): Likewise.
21665 (jumpif): Likewise.
21666 (jumpif_1): Likewise.
21667 (do_jump_1): Likewise.
21668 (do_jump): Likewise. Use rtx_code_label when feasible.
21669 (do_jump_by_parts_greater_rtx): Likewise.
21670 (do_jump_by_parts_zero_rtx): Likewise.
21671 (do_jump_by_parts_equality_rtx): Likewise.
21672 (do_compare_rtx_and_jump): Likewise.
21673 * dojump.h: Update function prototypes.
21674 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
21676 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
21678 (emit_label_before): Likewise.
21679 (emit_jump_insn_after_noloc): Likewise.
21680 (emit_jump_insn_after_setloc): Likewise.
21681 (emit_jump_insn_after): Likewise
21682 (emit_jump_insn_before_setloc): Likewise.
21683 (emit_jump_insn_before): Likewise.
21684 (emit_label_before): Promote return type to rtx_code_label.
21685 (emit_label): Likewise.
21686 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
21687 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
21689 (emit_stack_restore): Likewise.
21690 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
21691 (do_cmp_and_jump): Likewise.
21692 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
21693 from rtx to rtx_code_label.
21694 (gen_move_insn_uncast): New function.
21695 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
21696 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
21697 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
21698 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
21699 invert_jump_1 and redirect_jump_1.
21700 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
21701 do_compare_rtx_and_jump.
21702 (expand_addsub_overflow): Likewise.
21703 (expand_neg_overflow): Likewise.
21704 (expand_mul_overflow): Likewise.
21705 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
21706 return value of gen_move_insn.
21707 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
21708 * loop-doloop.c (add_test): Use rtx_code_label.
21709 (doloop_modify): Likewise.
21710 (doloop_optimize): Likewise.
21711 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
21712 * lra-constraints.c (emit_spill_move): Remove cast of value returned
21714 (inherit_reload_reg): Add cast when calling dump_insn_slim.
21715 (split_reg): Likewise.
21716 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
21718 * optabs.c (expand_binop_directly): Remove casts of values returned by
21720 (expand_unop_direct): Likewise.
21721 (expand_abs): Likewise.
21722 (maybe_emit_unop_insn): Likewise.
21723 (maybe_gen_insn): Promote return type to rtx_insn.
21724 * optabs.h: Update prototype of maybe_gen_insn.
21725 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
21727 * recog.c (struct peep2_insn_data): Promote type of insn field to
21729 (peep2_reinit_state): Use NULL instead of NULL_RTX.
21730 (peep2_attempt): Remove casts of insn in peep2_insn_data.
21731 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
21732 * recog.h (struct insn_gen_fn): Promote return types of function
21733 pointers and operator ().from rtx to rtx_insn.
21734 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
21735 (fill_eager_delay_slots): Likewise.
21736 (relax_delay_slots): Likewise.
21737 (make_return_insns): Likewise.
21738 (dbr_schedule): Likewise.
21739 (optimize_skips): Likewise.
21740 (reorg_redirect_jump): Likewise.
21741 (fill_slots_from_thread): Likewise.
21742 * reorg.h: Update prototypes.
21743 * resource.c (find_dead_or_set_registers): Use dyn_cast to
21744 rtx_jump_insn instead of check. Use it's jump_target method.
21745 * rtl.h (rtx_jump_insn::jump_label): Define new method.
21746 (rtx_jump_insn::jump_target): Define new method.
21747 (rtx_jump_insn::set_jump_target): Define new method.
21748 * rtlanal.c (tablejump_p): Promote type of one local variable.
21749 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
21750 (sched_analyze_insn): Likewise.
21751 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
21752 (print_insn): Likewise.
21753 * stmt.c (label_rtx): Promote return type to rtx_insn.
21754 (force_label_rtx): Likewise.
21755 (jump_target_rtx): Define new function.
21756 (expand_label): Use it, get rid of one cast.
21757 (expand_naked_return): Promote rtx to rtx_code_label.
21758 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
21759 (expand_case): Use rtx_code_label instread of rtx where feasible.
21760 (expand_sjlj_dispatch_table): Likewise.
21761 (emit_case_nodes): Likewise.
21762 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
21763 * store-motion.c (insert_store): Make use of new return type of
21764 gen_move_insn and remove a cast.
21765 (replace_store_insn): Likewise.
21767 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
21769 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
21770 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
21772 2015-05-20 Jeff Law <law@redhat.com>
21774 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
21775 dispose of the jump thread path when the jump threading
21776 opportunity is cancelled.
21778 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
21780 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
21781 when printing the caret character.
21783 2015-05-20 Marek Polacek <polacek@redhat.com>
21785 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
21787 2015-05-20 Marek Polacek <polacek@redhat.com>
21789 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
21790 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
21791 * gimple-fold.c (canonicalize_bool): Likewise.
21792 (same_bool_result_p): Likewise.
21793 * tree-if-conv.c (parse_predicate): Likewise.
21795 2015-05-20 Marek Polacek <polacek@redhat.com>
21797 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
21798 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
21800 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21802 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
21803 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
21806 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
21808 * config/mips/mips.h (micromips_globals): Declare.
21810 2015-05-20 David Malcolm <dmalcolm@redhat.com>
21812 * timevar.def (TV_INITIALIZE_RTL): New.
21813 * toplev.c (initialize_rtl): Use an auto_timevar to account this
21814 function's time to TV_INITIALIZE_RTL.
21816 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
21818 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
21819 gimple_build_nop calls.
21820 (chkp_find_bounds_for_elem): Likewise.
21821 (chkp_get_zero_bounds): Likewise.
21822 (chkp_get_none_bounds): Likewise.
21823 (chkp_get_bounds_by_definition): Likewise.
21824 (chkp_generate_extern_var_bounds): Likewise.
21825 (chkp_get_bounds_for_decl_addr): Likewise.
21826 (chkp_get_bounds_for_string_cst): Likewise.
21828 2015-05-20 Bin Cheng <bin.cheng@arm.com>
21830 PR tree-optimization/65447
21831 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
21832 (dump_use, dump_uses): Support to dump sub use.
21833 (record_use): New parameters to support sub use. Remove call to
21835 (record_sub_use, record_group_use): New functions.
21836 (compute_max_addr_offset, split_all_small_groups): New functions.
21837 (group_address_uses, rewrite_use_address): New functions.
21838 (strip_offset): New declaration.
21839 (find_interesting_uses_address): Call record_group_use.
21840 (add_candidate): New assertion.
21841 (infinite_cost_p): Move definition forward.
21842 (add_costs): Check INFTY cost and return immediately.
21843 (get_computation_cost_at): Clear setup cost and dependent bitmap
21845 (determine_use_iv_cost_address): Compute cost for sub uses.
21846 (rewrite_use_address_1): Rename from old rewrite_use_address.
21847 (free_loop_data): Free sub uses.
21848 (tree_ssa_iv_optimize_loop): Call group_address_uses.
21850 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
21851 Jim Wilson <jim.wilson@linaro.org>
21853 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
21854 new fields loadv and storev.
21855 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
21856 Initialize loadv and storev.
21857 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
21858 (cortexa53_extra_costs): Likewise.
21859 (cortexa57_extra_costs): Likewise.
21860 (xgene1_extra_costs): Likewise.
21861 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
21864 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
21866 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
21868 (cortexa8_extra_costs): Likewise.
21869 (cortexa5_extra_costs): Likewise.
21870 (cortexa7_extra_costs): Likewise.
21871 (cortexa12_extra_costs): Likewise.
21872 (cortexa15_extra_costs): Likewise.
21873 (v7m_extra_costs): Likewise.
21875 2015-05-20 Jeff Law <law@redhat.com>
21877 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
21878 instead of open-coded version. Also delete the jump thread created
21879 within this function.
21881 2015-05-20 Alan Modra <amodra@gmail.com>
21883 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
21884 stack adjusting insn. Formatting.
21885 (rs6000_emit_prologue): Track stack adjusting insn, and use of
21886 r12. If possible, emit first -fsplit-stack arg pointer insn
21887 before stack adjust. Don't use r12 to save cr if split-stack.
21889 2015-05-20 Alan Modra <amodra@gmail.com>
21891 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
21893 (rs6000_supports_split_stack): New function.
21894 * gcc/config/rs6000/rs6000.c (machine_function): Add
21895 split_stack_arg_pointer.
21896 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
21897 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
21898 rather than virtual_incoming_args_rtx.
21899 (rs6000_va_start): Likewise.
21900 (split_stack_arg_pointer_used_p): New function.
21901 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
21902 (morestack_ref): New var.
21903 (gen_add3_const, rs6000_expand_split_stack_prologue,
21904 rs6000_internal_arg_pointer, rs6000_live_on_entry,
21905 rs6000_split_stack_space_check): New functions.
21906 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
21907 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
21908 (UNSPECV_SPLIT_STACK_RETURN): Define.
21909 (split_stack_prologue, load_split_stack_limit,
21910 load_split_stack_limit_di, load_split_stack_limit_si,
21911 split_stack_return, split_stack_space_check): New expands and insns.
21912 * gcc/config/rs6000/rs6000-protos.h
21913 (rs6000_expand_split_stack_prologue): Declare.
21914 (rs6000_split_stack_space_check): Declare.
21916 2015-05-20 Alan Modra <amodra@gmail.com>
21918 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
21919 (direct_return): Test vrsave_size rather than vrsave_mask.
21920 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
21921 (rs6000_emit_epilogue): Likewise.
21923 2015-05-20 Alan Modra <amodra@gmail.com>
21925 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
21926 when not saving registers.
21927 (debug_stack_info): Adjust to omit printing unused offsets,
21929 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
21932 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21935 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
21936 value_type to const char *.
21938 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
21940 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
21941 to build a biarch toolchain again.
21943 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
21945 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
21946 or implicit declarations.
21947 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
21949 (get_odr_type): Check type has linkage before adding bases.
21950 (register_odr_type): Check that type has linkage before adding it.
21951 (type_known_to_have_no_deriavations_p): Rename to ..
21952 (type_known_to_have_no_derivations_p): This one.
21953 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
21954 (type_known_to_have_no_derivations_p): This one.
21955 * ipa-polymorphic-call.c
21956 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
21959 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
21961 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
21962 (layout_type): Use RECORD_OR_UNION_TYPE_P.
21964 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21966 * config/s390/s390.c (s390_vector_bool_type_p): New function.
21967 (s390_invalid_binary_op): New function.
21968 (TARGET_INVALID_BINARY_OP): Define macro.
21970 2015-05-19 David Sherwood <david.sherwood@arm.com>
21972 * loop-invariant.c (create_new_invariant): Don't calculate address cost
21973 if mode is not a scalar integer.
21974 (get_inv_cost): Increase computational cost for unused invariants.
21976 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21978 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
21979 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
21980 * config/s390/s390-builtin-types.def: New file.
21981 * config/s390/s390-builtins.def: New file.
21982 * config/s390/s390-builtins.h: New file.
21983 * config/s390/s390-c.c: New file.
21984 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
21985 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
21986 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
21987 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
21989 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
21991 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
21992 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
21993 variable definitions.
21994 (s390_const_operand_ok): New function.
21995 (s390_expand_builtin): Rewrite.
21996 (s390_init_builtins): New function.
21997 (s390_handle_vectorbool_attribute): New function.
21998 (s390_attribute_table): Add s390_vector_bool attribute.
21999 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
22000 (s390_branch_condition_mask): Generate masks for new modes.
22001 (s390_expand_vec_compare_cc): New function.
22002 (s390_mangle_type): Add mangling for vector bool types.
22003 (enum s390_builtin): Remove.
22004 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
22006 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
22007 s390_cpu_cpp_builtins.
22008 (REGISTER_TARGET_PRAGMAS): New macro.
22009 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
22010 (insn_cmp mode attribute): Add new CC modes.
22011 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
22012 (lcbb): New pattern definition.
22013 * config/s390/s390intrin.h: Include vecintrin.h.
22014 * config/s390/t-s390: New file.
22015 * config/s390/vecintrin.h: New file.
22016 * config/s390/vector.md: Include vx-builtins.md.
22017 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
22020 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22022 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
22024 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
22025 (s390_select_ccmode): Likewise.
22026 (s390_canonicalize_comparison): Swap operands if necessary.
22027 (s390_expand_vec_compare_scalar): Expand DFmode compare using
22028 single element vector instructions.
22029 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
22030 (s390_branch_condition_mask): Generate CC masks for the new modes.
22031 * config/s390/s390.md (v0, vf, vd): New mode attributes.
22032 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
22033 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
22034 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
22035 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
22036 (*extend<DSF:mode><BFP:mode>2): New insn definition.
22037 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
22038 (extend<DSF:mode><BFP:mode>2): Turn into expander.
22039 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
22040 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
22041 (sqrt<mode>2): Add vector instruction.
22043 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22045 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
22047 * config/s390/predicates.md (const0_operand, constm1_operand)
22048 (constable_operand): Accept vector operands.
22049 * config/s390/s390-modes.def: Add supported vector modes.
22050 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
22051 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
22052 (s390_bytemask_vector_p, s390_expand_vec_strlen)
22053 (s390_expand_vec_compare, s390_expand_vcond)
22054 (s390_expand_vec_init): Add prototypes.
22055 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
22056 (s390_vector_mode_supported_p): New function.
22057 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
22058 (s390_contiguous_bitmask_vector_p): New function.
22059 (s390_bytemask_vector_p): New function.
22060 (s390_split_ok_p): Vector regs don't work either.
22061 (regclass_map): Add VEC_REGS.
22062 (s390_legitimate_constant_p): Handle vector constants.
22063 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
22064 (legitimate_reload_vector_constant_p): New function.
22065 (s390_preferred_reload_class): Handle CONST_VECTOR.
22066 (s390_reload_symref_address): Likewise.
22067 (s390_secondary_reload): Vector memory instructions only support
22068 short displacements. Rename reload*_nonoffmem* to reload*_la*.
22069 (s390_emit_ccraw_jump): New function.
22070 (s390_expand_vec_strlen): New function.
22071 (s390_expand_vec_compare): New function.
22072 (s390_expand_vcond): New function.
22073 (s390_expand_vec_init): New function.
22074 (s390_dwarf_frame_reg_mode): New function.
22075 (print_operand): Handle addresses with 'O' and 'R' constraints.
22076 (NR_C_MODES, constant_modes): Add vector modes.
22077 (s390_output_pool_entry): Handle vector constants.
22078 (s390_hard_regno_mode_ok): Handle vector registers.
22079 (s390_class_max_nregs): Likewise.
22080 (s390_cannot_change_mode_class): New function.
22081 (s390_invalid_arg_for_unprototyped_fn): New function.
22082 (s390_function_arg_vector): New function.
22083 (s390_function_arg_float): Remove size variable.
22084 (s390_pass_by_reference): Handle vector arguments.
22085 (s390_function_arg_advance): Likewise.
22086 (s390_function_arg): Likewise.
22087 (s390_return_in_memory): Vector values are returned in a VR if
22089 (s390_function_and_libcall_value): Handle vector arguments.
22090 (s390_gimplify_va_arg): Likewise.
22091 (s390_call_saved_register_used): Consider the arguments named.
22092 (s390_conditional_register_usage): Disable v16-v31 for non-vec
22094 (s390_preferred_simd_mode): New function.
22095 (s390_support_vector_misalignment): New function.
22096 (s390_vector_alignment): New function.
22097 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
22098 (TARGET_VECTOR_MODE_SUPPORTED_P)
22099 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
22100 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
22101 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
22102 (TARGET_VECTOR_ALIGNMENT): Define target macro.
22103 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
22104 (FIRST_PSEUDO_REGISTER): Increase value.
22105 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
22106 (VECTOR_REG_P): Define macros.
22107 (FIXED_REGISTERS, CALL_USED_REGISTERS)
22108 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
22109 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
22110 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
22111 Add vector registers.
22112 (CANNOT_CHANGE_MODE_CLASS): Call C function.
22113 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
22114 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
22116 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
22117 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
22118 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
22119 (VR*_REGNUM): New constants.
22120 (ALL): New mode iterator.
22121 (INTALL): Remove mode iterator.
22123 (movti): Implement TImode moves for VRs.
22124 Disable TImode splitter for VR targets.
22125 Implement splitting TImode GPR<->VR moves.
22126 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
22127 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
22128 reload<mode>_la_in, reload<mode>_la_out.
22129 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
22130 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
22131 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
22132 (mov<mode> SF SD): Prefer lder, lde for loading.
22133 Add lrl and strl instructions.
22134 Add vector instructions.
22135 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
22136 Call s390_expand_vec_strlen on z13.
22137 (*cc_to_int): Change predicate to nonimmediate_operand.
22138 (addti3): Rename to *addti3. New expander.
22139 (subti3): Rename to *subti3. New expander.
22140 * config/s390/vector.md: New file.
22142 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22144 * common/config/s390/s390-common.c (processor_flags_table): Add
22146 * config.gcc: Add z13.
22147 * config/s390/s390-opts.h (enum processor_type): Add
22148 PROCESSOR_2964_Z13.
22149 * config/s390/s390.c (s390_adjust_priority): Check for
22150 PROCESSOR_2964_Z13.
22151 (s390_reorg): Likewise.
22152 (s390_sched_reorder): Likewise.
22153 (s390_sched_variable_issue): Likewise.
22154 (s390_loop_unroll_adjust): Likewise.
22155 (s390_option_override): Likewise. Default to -mvx when available.
22156 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
22157 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
22158 (TARGET_VX_ABI): Define macros.
22160 (TARGET_DEFAULT): Add MASK_OPT_VX.
22161 * config/s390/s390.md ("cpu" attribute): Add z13.
22162 ("cpu_facility" attribute): Add vec.
22163 * config/s390/s390.opt (processor_type): Add z13.
22164 (mvx): New options.
22165 * doc/invoke.texi: Add z13 option for -march.
22167 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22169 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
22170 mode check to make sure that only scalar integer values are
22173 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
22175 * tree.c (verify_type_variant): Fix #undef.
22176 (gimple_canonical_types_compatible_p): Move here from lto.c
22177 (verify_type): Verify TYPE_CANONICAL compatibility.
22178 * tree.h (gimple_canonical_types_compatible_p): Declare.
22180 2015-05-19 Jakub Jelinek <jakub@redhat.com>
22182 PR middle-end/66199
22183 * tree.h (OMP_TEAMS_COMBINED): Define.
22184 * gimplify.c (enum gimplify_omp_var_data): Add
22185 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
22186 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
22187 (omp_notice_variable): Accept both ORT_TEAMS
22188 and ORT_COMBINED_TEAMS. Don't recurse if
22189 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
22190 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
22192 (omp_no_lastprivate): New function.
22193 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
22194 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
22195 notice_outer and set appropriate bits, otherwise make
22196 sure default(none) combined constructs won't complain.
22197 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
22198 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
22199 omp_no_lastprivate either remove the clause or turn it
22200 into OMP_CLAUSE_PRIVATE.
22201 (gimplify_omp_for): Fix up handling of implicit
22202 lastprivate or linear iterators.
22203 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
22204 ORT_COMBINED_TEAMS.
22205 * omp-low.c (lower_omp_for_lastprivate): For combined
22206 for simd use fd.loop.n2 from the for rather than simd.
22208 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22210 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
22211 instead of gen_rtx_raw_REG.
22212 (cris_expand_epilogue): Likewise.
22213 * config/microblaze/microblaze.c (microblaze_classify_address):
22215 * config/sparc/sparc.md: Likewise.
22217 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
22219 * config/alpha/alpha.c (alpha_legitimize_reload_address)
22220 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
22221 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
22222 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
22223 Use CASE_CONST_SCALAR_INT.
22224 (print_operand) <case 'M'>: Use mode_width_operand to check the
22225 value of the constant.
22226 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
22227 * config/alpha/predicates.md (input_operand): Use general_operand
22228 instead of match_code as operand check.
22229 (symbolic_operand): Use match_code with subexpression digits.
22230 * config/alpha/constraints.md (Q): Ditto.
22232 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22234 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
22236 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22238 * config/s390/s390.c (s390_secondary_reload): Fix check for
22239 load/store relative.
22241 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22243 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
22244 alternative_mask to uint64_t.
22246 2015-05-19 Jakub Jelinek <jakub@redhat.com>
22248 PR tree-optimization/66187
22249 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
22250 Pass TYPE_SIGN to tree_int_cst_min_precision. If
22251 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
22253 2015-05-19 David Malcolm <dmalcolm@redhat.com>
22255 * diagnostic.c (diagnostic_report_current_module): Strengthen
22256 local "new_map" from const line_map * to
22257 const line_map_ordinary *.
22258 * genmatch.c (error_cb): Likewise for local "map".
22259 (output_line_directive): Likewise for local "map".
22260 * input.c (expand_location_1): Likewise for local "map".
22261 Pass NULL rather than &map to
22262 linemap_unwind_to_first_non_reserved_loc, since the value is never
22263 read from there, and the value written back not read from here.
22264 (is_location_from_builtin_token): Strengthen local "map" from
22265 const line_map * to const line_map_ordinary *.
22266 (dump_location_info): Strengthen locals "map" from
22267 line_map *, one to const line_map_ordinary *, the other
22268 to const line_map_macro *.
22269 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
22270 const line_map * to const line_map_macro *.
22271 (maybe_unwind_expanded_macro_loc): Add a call to
22272 linemap_check_macro when writing to the "map" field of the
22274 Introduce local const line_map_ordinary * "ord_map", using it in
22275 place of "map" in the part of the function where we know we have
22276 an ordinary map. Strengthen local "m" from const line_map * to
22277 const line_map_ordinary *.
22279 2015-05-19 Nick Clifton <nickc@redhat.com>
22282 * config/msp430/msp430.md (zero_extendhisi2): Add support for
22283 separate source and destination registers.
22285 2015-05-19 Richard Biener <rguenther@suse.de>
22287 PR tree-optimization/66165
22288 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
22289 for no load permutation.
22291 PR tree-optimization/66185
22292 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
22293 when building the SLP node from scalars.
22295 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
22296 Tristan Gingold <gingold@adacore.com>
22298 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
22299 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
22300 (expand_stack_restore): Call record_new_stack_level.
22301 (expand_stack_save): Do not call do_pending_stack_adjust.
22302 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
22303 * calls.c (expand_call): Call record_new_stack_level for alloca.
22304 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
22305 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
22306 (update_sjlj_context): New global function.
22307 * except.h (update_sjlj_context): Declare.
22308 * explow.c (record_new_stack_level): New global function.
22309 (allocate_dynamic_stack_space): Call record_new_stack_level.
22310 * explow.h (record_new_stack_level): Declare.
22311 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
22312 * cfgrtl.c (duplicate_insn_chain): Likewise.
22314 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22316 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
22317 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
22318 STACK_GROWS_DOWNWARD as normal if.
22319 (expand_call): Likewise.
22321 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
22324 * config/sh/sh.md (*round_int_even): New insn_and_split and
22325 accompanying new unnamed split.
22327 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22329 * bitmap.c (bitmap_set_range): Handle count==1 specially.
22330 (bitmap_clear_range): Likewise.
22331 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
22332 bitmap_set_range unconditionally.
22333 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
22334 * df-scan.c (df_mark_reg): Likewise.
22335 * haifa-sched.c (setup_ref_regs): Likewise.
22336 * sched-rgn.c (update_live_1): Likewise.
22338 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22340 * regs.h (END_HARD_REGNO): Delete.
22341 (END_REGNO): Move to...
22343 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
22344 * caller-save.c (mark_set_regs): Likewise.
22345 * combine.c (move_deaths, distribute_notes): Likewise.
22346 * cse.c (invalidate, invalidate_for_call): Likewise.
22347 * df-scan.c (df_ref_record): Likewise.
22348 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
22349 (record_last_reg_set_info): Likewise.
22350 * reg-stack.c (convert_regs_exit): Likewise.
22351 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
22352 * resource.c (update_live_status): Likewise.
22353 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
22355 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22357 * rtl.h (reg_info): Add an nregs field.
22358 (REG_NREGS): Use it.
22359 (SET_REGNO_RAW): Delete.
22360 (set_regno_raw): New function.
22361 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
22362 (END_REGNO): Redefine in terms of REG_NREGS.
22363 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
22365 * emit-rtl.c (set_mode_and_regno): Likewise.
22366 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
22367 instead of SET_REGNO_RAW.
22369 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22371 * rtl.h (PUT_MODE_RAW): New macro.
22372 (PUT_REG_NOTE_KIND): Use it.
22373 (set_mode_and_regno): Declare.
22374 (gen_raw_REG): Change regno to "unsigned int".
22375 (gen_rtx_REG): Change "unsigned" to "unsigned int".
22376 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
22377 use set_mode_and_regno to change the mode of registers.
22378 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
22379 * emit-rtl.c (set_mode_and_regno): New function.
22380 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
22381 * caller-save.c (reg_save_code): Use set_mode_and_regno.
22382 * expr.c (init_expr_target): Likewise.
22383 * ira.c (setup_prohibited_mode_move_regs): Likewise.
22384 * postreload.c (reload_cse_simplify_operands): Likewise.
22386 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22388 * caller-save.c (init_caller_save): Use word_mode and
22389 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
22390 * expr.c (init_expr_target): Likewise.
22391 * ira.c (setup_prohibited_mode_move_regs): Likewise.
22392 * postreload.c (reload_cse_regs_1): Likewise.
22394 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22396 * rtl.def (REG): Change format to "r".
22397 * rtl.h (rtunion): Remove rt_reg.
22398 (reg_info): New structure.
22399 (rtx_def): Add reg field to main union.
22400 (X0REGATTR): Delete.
22401 (REG_CHECK): New macro.
22402 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
22403 * rtl.c (rtx_format): Document "r".
22404 (rtx_code_size): Handle REG specially.
22405 * gengenrtl.c (special_format): Return true for formats
22407 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
22408 Deal with REG_ATTRS after the field loop.
22409 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
22410 * expmed.c (init_expmed): Call gen_raw_REG instead of
22412 * expr.c (init_expr_target): Likewise.
22413 * regcprop.c (maybe_mode_change): Likewise.
22414 * varasm.c (make_decl_rtl): Likewise.
22415 * final.c (leaf_renumber_regs_insn): Return early after
22417 * genemit.c (gen_exp): Handle 'r' fields.
22418 * genpeep.c (match_rtx): Likewise.
22419 * gensupport.c (subst_pattern_match): Likewise.
22420 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
22421 (alter_constraints, subst_dup): Likewise.
22422 * read-rtl.c (read_rtx_code): Likewise.
22423 * print-rtl.c (print_rtx): Likewise.
22424 * genrecog.c (find_operand, find_matching_operand): Likewise.
22425 (validate_pattern, match_pattern_2): Likewise.
22426 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
22427 (rtx_test::regno_field): New function.
22428 (operator ==, safe_to_hoist_p, transition_parameter_type)
22429 (parameter_type_string, print_parameter_value)
22430 (print_nonbool_test, print_test): Handle new enum values.
22431 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
22432 * lra-constraints.c (operands_match_p): Likewise.
22434 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22436 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
22437 Change type of new_regno to unsigned int.
22438 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
22439 new_regno to unsigned int.
22440 (df_ref_change_reg_with_loc): Remove old_regno parameter.
22441 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
22442 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
22443 (SET_REGNO_RAW): Add space after ",".
22445 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22447 * rtl.h (REG_NREGS): New macro
22448 * alias.c (record_set): Use it.
22449 * cfgcleanup.c (mark_effect): Likewise.
22450 * combine.c (likely_spilled_retval_1): Likewise.
22451 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
22452 (move_deaths, distribute_notes): Likewise.
22453 * cselib.c (cselib_record_set): Likewise.
22454 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
22455 * df-scan.c (df_mark_reg): Likewise.
22456 * dse.c (look_for_hardregs): Likewise.
22457 * dwarf2out.c (reg_loc_descriptor): Likewise.
22458 (multiple_reg_loc_descriptor): Likewise.
22459 * expr.c (write_complex_part, read_complex_part): Likewise.
22460 (emit_move_complex): Likewise.
22461 * haifa-sched.c (setup_ref_regs): Likewise.
22462 * ira-lives.c (mark_hard_reg_live): Likewise.
22463 * lra.c (lra_set_insn_recog_data): Likewise.
22464 * mode-switching.c (create_pre_exit): Likewise.
22465 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
22466 (reload_combine_recognize_pattern): Likewise.
22467 (reload_combine_note_use, move2add_record_mode): Likewise.
22468 (reload_cse_move2add): Likewise.
22469 * reg-stack.c (subst_stack_regs_pat): Likewise.
22470 * regcprop.c (kill_value, copy_value): Likewise.
22471 (copyprop_hardreg_forward_1): Likewise.
22472 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
22473 (build_def_use): Likewise.
22474 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
22475 (deps_analyze_insn): Likewise.
22476 * sched-rgn.c (check_live_1, update_live_1): Likewise.
22477 * sel-sched.c (count_occurrences_equiv): Likewise.
22478 * valtrack.c (dead_debug_insert_temp): Likewise.
22480 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22482 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
22483 * dse.c (note_add_store): Likewise.
22484 * ira-lives.c (mark_hard_reg_dead): Likewise.
22485 * loop-invariant.c (mark_reg_store): Likewise.
22486 (mark_reg_death): Likewise.
22487 * postreload.c (reload_combine): Likewise.
22488 (reload_combine_note_store): Likewise.
22489 (reload_combine_note_use): Likewise.
22490 * recog.c (peep2_reg_dead_p): Likewise.
22492 2015-05-19 Alan Modra <amodra@gmail.com>
22494 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
22495 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
22496 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
22498 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
22499 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
22500 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
22501 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
22503 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
22505 * config/mips/mips.md (JOIN_MODE): New mode iterator.
22506 (join2_load_Store<JOIN_MODE:mode>): New pattern.
22507 (join2_loadhi): Likewise.
22508 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
22509 load-load and store-stores.
22510 * config/mips/mips.opt (mload-store-pairs): New option.
22511 (TARGET_LOAD_STORE_PAIRS): New macro.
22512 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
22513 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
22514 * config/mips/mips.c (mips_load_store_bonding_p): New function.
22516 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
22518 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
22520 * dojump.c (do_compare_rtx_and_jump): Likewise.
22521 * expmed.c (emit_store_flag_1): Likewise.
22522 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
22523 * final.c (sprint_ul): Use std::reverse for reversing a string.
22524 * fold-const.c (extract_muldiv_1): Use std::swap.
22525 * genmodes.c (emit_mode_int_n): Likewise.
22526 * ifcvt.c (dead_or_predicable): Likewise.
22527 * ira-build.c (ira_merge_live_ranges): Likewise.
22528 (swap_allocno_copy_ends_if_necessary): Likewise.
22529 * ira.c (ira_setup_alts): Likewise.
22530 * loop-iv.c (iv_analyze_expr): Likewise.
22531 (implies_p): Likewise.
22532 (canon_condition): Likewise.
22533 * lra-constraints.c (swap_operands): Likewise.
22534 * lra-lives.c (lra_merge_live_ranges): Likewise.
22535 * omega.c (swap): Remove.
22537 (omega_unprotect_1): Use std::swap.
22538 (omega_solve_geq): Likewise.
22539 * optabs.c (expand_binop_directly): Likewise.
22540 (expand_binop): Likewise.
22541 (emit_conditional_move): Likewise.
22542 (emit_conditional_add): Likewise.
22543 * postreload.c (reload_cse_simplify_operands): Likewise.
22544 * reg-stack.c (emit_swap_insn): Likewise.
22545 (swap_to_top): Likewise.
22546 (compare_for_stack_reg): Likewise.
22547 (subst_asm_stack_regs): Likewise.
22548 * reload.c (find_reloads): Likewise.
22549 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
22550 * sel-sched.c (invoke_reorder_hooks): Likewise.
22551 (create_block_for_bookkeeping): Likewise.
22552 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
22553 (lambda_matrix_right_hermite): Use std::swap.
22554 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
22555 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
22556 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
22557 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
22558 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
22559 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
22560 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
22561 * tree-vrp.c (compare_ranges): Likewise.
22562 * var-tracking.c (add_with_sets): Likewise.
22563 (vt_find_locations): Likewise.
22565 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
22567 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
22569 (FBSD_ENDFILE_SPEC): Likewise.
22570 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
22571 config/freebsd-spec.h.
22572 (ENDFILE_SPEC): Likewise.
22574 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
22575 Richard Henderson <rth@redhat.com>
22578 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
22579 Check for a memory location that is not a reference (using an AND)
22580 to an unaligned location here.
22581 * config/alpha/predicates.md (normal_memory_operand): Remove.
22583 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
22585 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
22586 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
22588 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
22590 * config/mips/mips.c (micromips_globals): New variable.
22591 (mips_set_compression_mode): Save and reinitialize target-dependent
22592 state for microMIPS.
22594 2015-05-18 Martin Liska <mliska@suse.cz>
22596 * dbgcnt.def: Add new counter.
22597 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
22599 2015-05-18 Martin Liska <mliska@suse.cz>
22601 * dbgcnt.def: Sort counters.
22602 * opts.c (common_handle_option): Do not compile if
22603 -fdbg-cnt-list is enabled.
22605 2015-05-18 Tom de Vries <tom@codesourcery.com>
22607 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
22608 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
22609 address operator to va_list operand.
22610 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
22612 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
22614 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
22615 * config/s390/s390.c (s390_gimplify_va_arg): Same.
22616 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
22618 2015-05-18 Tom de Vries <tom@codesourcery.com>
22620 * tree-ssa-tail-merge.c: Fix whitespace.
22622 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
22624 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
22625 cortex-a17, and cortex-a17.cortex-a7.
22627 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
22630 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
22632 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
22635 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
22636 QImode inner modes for TARGET_AVX512BW. Force mask operand
22637 to a register for AVX512F modes.
22639 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
22641 * toplev.c (emit_debug_global_declarations): Do not output debug info
22642 when doing slim LTO objects.
22644 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
22646 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
22647 odr_types_equivalent_p): Declare.
22648 (odr_type_p): Use gcc_checking_assert.
22649 (type_in_anonymous_namespace_p) Declare.
22650 (type_with_linkage_p): Declare.
22651 * common.opt (Wlto-type-mismatch): New warning.
22652 * ipa-devirt.c (compound_type_base): New function.
22653 (odr_or_derived_type_p): New function.
22654 (odr_types_equivalent_p): New function.
22655 (add_type_duplicate): Simplify.
22656 (type_with_linkage_p): Add hack to prevent false positives on C types
22657 (type_in_anonymous_namespace_p): Likewise.
22658 * tree.c (need_assembler_name_p): Use type_with_linkage.
22659 * tree.h (type_in_anonymous_namespace_p): Remove.
22660 * doc/invoke.texi (-Wlto-type-mismatch): Document
22662 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
22664 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
22665 (verify_type): Verify STRING_FLAG.
22667 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
22670 * tree-pretty-print.c (percent_K_format): Replace locus pointer
22671 with accessor function.
22672 * tree-diagnostic.c (diagnostic_report_current_function): Use
22673 diagnostic_location function.
22674 (maybe_unwind_expanded_macro_loc): Likewise.
22675 (virt_loc_aware_diagnostic_finalizer): Likewise.
22676 (default_tree_printer): Replace locus pointer with accessor function.
22677 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
22678 (diagnostic_set_info_translated): Initialize second location.
22679 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
22680 (diagnostic_show_locus): Handle two locations. Call
22681 diagnostic_print_caret_line.
22682 (diagnostic_print_caret_line): New.
22683 (default_diagnostic_starter): Use diagnostic_location function.
22684 (diagnostic_report_diagnostic): Use diagnostic_location function.
22685 (verbatim): Do not set text.locus.
22686 * diagnostic.h (struct diagnostic_info): Remove location field.
22687 (struct diagnostic_context): Make caret_chars an array of two.
22688 (diagnostic_location): New inline.
22689 (diagnostic_expand_location): Handle two locations.
22690 (diagnostic_same_line): New inline.
22691 (diagnostic_print_caret_line): Declare.
22692 (CARET_LINE_MARGIN): New constant.
22693 * pretty-print.c (pp_printf): Do not set text.locus.
22694 (pp_verbatim): Do not set text.locus.
22695 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
22696 (struct text_info): Replace locus pointer with locations
22697 array. Add accessor functions.
22699 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
22700 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22703 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
22704 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
22705 large constants in register instead of splitting them.
22707 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
22710 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
22711 replacements in memory addresses.
22712 (get_unaligned_address): Ditto.
22714 2015-05-16 James Bowman <james.bowman@ftdichip.com>
22716 * config/ft32/*: New files for FT32 port.
22717 * doc/install.texi: Add FT32 information.
22718 * doc/invoke.texi: Add FT32 information.
22719 * doc/md.texi: Add FT32 information.
22720 * doc/contrib.texi: Self added.
22722 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
22724 PR tree-optimization/64454
22725 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
22726 (-1 - A -> ~A): Remove unnecessary condition.
22728 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
22730 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
22731 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
22732 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
22734 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
22736 * ipa-chkp.h (chkp_wrap_function): New.
22737 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
22738 (chkp_wrap_function_name): New.
22739 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
22740 to get wrapper name.
22741 * lto-cgraph.c: Include ipa-chkp.h.
22742 (input_cgraph_1): Avoid alias chain for wrappers.
22744 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
22746 PR middle-end/66134
22747 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
22748 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
22750 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22752 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
22753 (AARCH64_FL_SLOWMUL): Delete.
22754 (AARCH64_FL_CRC): Redefine to 1<<3.
22755 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
22757 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22759 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
22762 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
22764 * config/alpha/alpha.md (extendqidi2): Use general_operand
22765 instead of some_operand for operand[1] predicate.
22766 (extendhidi2): Ditto.
22767 (cbranchdi4): Use general_operand instead of some_operand
22768 for operand[1] and operands[2] predicates.
22769 (cstoredi4): Ditto.
22770 * config/alpha/predicates.md (some_operand): Remove unused predicate.
22771 (some_ni_operand): Ditto.
22773 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
22775 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
22776 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
22777 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
22778 low part of the constant using alpha_emit_set_const_1.
22779 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
22781 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
22783 * varasm.c (output_constant_pool_1): Pass down alignment from
22784 constant pool entry's descriptor to output_constant_pool_2.
22785 (output_object_block): Add comment prior to call to
22786 output_constant_pool_1.
22788 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
22790 PR rtl-optimization/65862
22791 * target.def (ira_change_pseudo_allocno_class): New hook.
22792 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
22794 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
22795 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
22797 * ira-costs.c (find_costs_and_classes): Call the hook and change
22798 classes when it is necessary.
22799 * doc/tm.texi: Update.
22801 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
22803 * config/i386/i386.md (sibcall_memory): Check that register with
22804 callee address is not also used as one of the arguments, instead
22805 of checking that it is not live after the sibcall.
22806 (sibcall_pop_memory): Ditto.
22807 (sibcall_value_memory): Ditto.
22808 (sibcall_value_pop_memory): Ditto.
22810 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
22812 * generic-match-head.c (types_match): Handle non-types.
22813 * gimple-match-head.c (types_match): Likewise.
22814 * match.pd: Remove unnecessary TREE_TYPE for types_match.
22816 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
22818 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
22819 (csneg3<mode>_insn): Enable expansion of pattern.
22821 2015-05-14 Nick Clifton <nickc@redhat.com>
22823 * config/rl78/rl78.c (rl78_select_section): Select the correct
22824 default section based upon the category of the decl.
22826 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
22828 PR rtl-optimization/30967
22829 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
22830 destination mode for the cost of scc patterns.
22832 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
22834 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
22835 using SWIM248 mode iterator.
22836 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
22837 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
22838 for operand[2] constraint.
22839 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
22841 2015-05-13 Jakub Jelinek <jakub@redhat.com>
22843 PR middle-end/66133
22844 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
22845 make sure it is never noreturn, even when the task body does not
22847 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
22848 right before GIMPLE_OMP_RETURN.
22849 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
22850 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
22851 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
22853 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22855 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
22856 * tree-ssa-math-opts.c: Include params.h
22857 (pow_synth_sqrt_info): New struct.
22858 (representable_as_half_series_p): New function.
22859 (get_fn_chain): Likewise.
22860 (print_nested_fn): Likewise.
22861 (dump_fractional_sqrt_sequence): Likewise.
22862 (dump_integer_part): Likewise.
22863 (expand_pow_as_sqrts): Likewise.
22864 (gimple_expand_builtin_pow): Use above to attempt to expand
22865 pow as series of square roots. Removed now unused variables.
22867 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
22869 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
22870 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
22871 Remove *p0 and *p1 arguments. Rewrite function.
22872 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
22873 (alpha_split_const_mov): Update calls to alpha_extract_integer and
22874 alpha_emit_set_long_const.
22875 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
22876 (alpha_output_mi_thunk_osf): Ditto.
22877 * config/alpha/alpha.md (movti): Do not check operands[1]
22880 2015-05-13 Richard Biener <rguenther@suse.de>
22882 PR tree-optimization/66129
22883 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
22885 (vect_schedule_slp_instance): Fix typo.
22887 2015-05-13 David Malcolm <dmalcolm@redhat.com>
22889 * common.opt (fdump-internal-locations): New option.
22890 * input.c: Include diagnostic-core.h.
22891 (get_end_location): New function.
22892 (write_digit): New function.
22893 (write_digit_row): New function.
22894 (dump_location_range): New function.
22895 (dump_labelled_location_range): New function.
22896 (dump_location_info): New function.
22897 * input.h (dump_location_info): New prototype.
22898 * toplev.c (compile_file): Handle flag_dump_locations.
22900 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
22902 * gimple-expr.h (is_gimple_constant): Reorder.
22903 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
22905 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
22907 * combine.c (simplify_set): When generating a CC set, if the
22908 source already is in the correct mode, do not wrap it in a
22909 compare. Simplify the rest of that code.
22911 2015-05-13 Richard Biener <rguenther@suse.de>
22913 PR tree-optimization/66123
22914 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
22917 2015-05-13 Richard Biener <rguenther@suse.de>
22919 PR middle-end/66110
22920 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
22922 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
22924 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
22926 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
22927 * aclocal.m4: Regenerated with automake-1.11.6.
22929 2015-05-13 Tom de Vries <tom@codesourcery.com>
22931 PR tree-optimization/66010
22932 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
22933 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
22934 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
22935 and rval based on do_deref.
22937 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
22940 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
22941 link time constants into adress expressions and therefore set
22944 2015-05-13 Jakub Jelinek <jakub@redhat.com>
22947 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
22948 Use SWI248 iterator instead of SWI.
22949 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
22950 Use eq_attr "alternative" "0" instead of match_test in
22951 length_immediate attribute computation.
22952 (*mulvhi4, *mulvhi4_1): New define_insns.
22955 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
22956 SIGNED to get precision of non-negative value.
22958 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
22961 * function.c (diddle_return_value_1): Process bounds first.
22962 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
22965 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
22967 PR rtl-optimization/64616
22968 * loop-invariant.c (can_move_invariant_reg): New.
22969 (move_invariant_reg): Call above new function to decide whether
22970 instruction can just be moved, skipping creation of temporary
22973 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
22975 PR target/pr66047.c
22976 * i386.c (ix86_function_sseregparm): Only return -1 if local function
22977 with implied regparm is called from -mno-sse function.
22978 (init_cumulative_args): Output error if ix86_function_sseregparm
22979 return -1 and SSE register would be needed.
22980 (function_arg_advance_32): Likewise.
22981 (function_arg_32): Likewise.
22982 * i386.h (ix86_args): Add decl field.
22984 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
22987 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
22988 inlines across optimization boundary.
22990 2015-05-12 Jason Merrill <jason@redhat.com>
22992 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
22993 string literal and macro name.
22995 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
22997 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
22998 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
22999 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
23001 2015-05-12 David Malcolm <dmalcolm@redhat.com>
23003 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
23004 (-Wmisleading-indentation): New option.
23005 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
23007 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
23009 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
23010 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
23011 (alpha_extract_integer): Ditto.
23012 (alpha_legitimate_constant_p): Ditto.
23013 (alpha_split_tmode_pair): Ditto.
23014 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
23015 (alpha_expand_mov): Ditto.
23016 (print_operand): Remove handling of 'H' modifier.
23017 <case 'm'>: Remove CONST_DOUBLE handling.
23018 (summarize_insn): Handle CONST_WIDE_INT.
23019 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
23021 (movti): Handle CONST_WIDE_INT.
23022 * config/alpha/constraints.md ('H'): Remove constraint definition.
23023 ('G'): Do not match MODE_FLOAT class.
23024 * config/alpha/predicates.md (const0_operand): Also match
23026 (non_add_const_operand): Ditto.
23027 (non_zero_const_operand): Ditto.
23028 (some_operand): Ditto.
23029 (input_operand): Ditto. Handle CONST_WIDE_INT.
23030 (and_operand): Do not match const_double.
23031 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
23033 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
23036 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
23037 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
23038 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
23039 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
23040 is_mm_seq_cst, is_mm_sync): New accessor functions.
23041 * builtins.c (expand_builtin_sync_operation,
23042 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
23043 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
23044 (get_memmodel, expand_builtin_atomic_compare_exchange,
23045 expand_builtin_atomic_load, expand_builtin_atomic_store,
23046 expand_builtin_atomic_clear): Use new accessor routines.
23047 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
23048 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
23049 (maybe_emit_sync_lock_test_and_set): Use new accessors and
23050 MEMMODEL_SYNC_ACQUIRE.
23051 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
23052 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
23053 expand_atomic_store): Use new accessors.
23054 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
23055 * tsan.c (instrument_builtin_call): Update check for memory model beyond
23056 final enum to use MEMMODEL_LAST.
23057 * c-family/c-common.c: Use new accessor for memmodel_base.
23058 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
23060 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
23061 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
23062 mem_thread_fence, *dmb): Likewise.
23063 * config/alpha/alpha.c (alpha_split_compare_and_swap,
23064 alpha_split_compare_and_swap_12): Likewise.
23065 * config/arm/arm.c (arm_expand_compare_and_swap,
23066 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
23067 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
23068 atomic_loaddi): Likewise.
23069 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
23071 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
23072 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
23074 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
23075 atomic_store<mode>, atomic_compare_and_swap<mode>,
23076 atomic_exchange<mode>): Use new accessors.
23077 * config/mips/mips.c (mips_process_sync_loop): Likewise.
23078 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
23079 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
23080 rs6000_post_atomic_barrier): Add new cases.
23081 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
23082 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
23083 (atomic_load<mode>): Add new cases and use new accessors.
23084 (store_quadpti): Add new cases.
23085 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
23087 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
23088 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
23091 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
23093 * ipa-devirt.c (type_with_linkage_p): New function.
23094 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
23096 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
23097 (can_be_name_hashed_p): Simplify.
23098 (hash_odr_name): Check that type has linkage before checking if it is
23100 (types_same_for_odr): Likewise.
23101 (odr_name_hasher::equal): Likewise.
23102 (odr_subtypes_equivalent_p): Likewise.
23103 (warn_types_mismatch): Likewise.
23104 (get_odr_type): Likewise.
23105 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
23106 * ipa-utils.h (odr_type_p): Move offline.
23107 * tree.c (need_assembler_name_p): Fix handling of types
23109 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
23111 2015-05-12 David Malcolm <dmalcolm@redhat.com>
23113 * timevar.c (timevar_enable): Delete in favor of...
23114 (g_timer): New global.
23115 (struct timevar_def): Move to timevar.h inside class timer.
23116 (struct timevar_stack_def): Likewise.
23117 (timevars): Delete global in favor of field "m_timevars" within
23118 class timer in timevar.h
23119 (stack): Likewise, in favor of field "m_stack".
23120 (unused_stack_instances): Likewise, in favor of field
23121 "m_unused_stack_instances".
23122 (start_time): Likewise, in favor of field "m_start_time".
23123 (get_time): Eliminate check for timevar_enable.
23124 (timer::timer): New function, built from part of timevar_init.
23125 (timevar_init): Rewrite idempotency test from using
23126 "timevar_enable" bool to using dynamic allocation of "g_timer".
23127 Move rest of implementation into timer's constructor.
23128 (timevar_push_1): Rename to...
23129 (timer::push): ...this, adding "m_" prefixes to variables that
23130 are now fields of timer.
23131 (timevar_pop_1): Likewise, rename to...
23132 (timer::pop): ...this, and add "m_" prefixes.
23133 (timevar_start): Replace test for "timevar_enable" with one for
23134 "g_timer", and move bulk of implementation to...
23135 (timer::start): ...here, adding "m_" prefixes.
23136 (timevar_stop): Likewise, from here...
23137 (timer::stop): ...to here.
23138 (timevar_cond_start): Likewise, from here...
23139 (timer::cond_start): ...to here.
23140 (timevar_cond_stop): Likewise, from here...
23141 (timer::cond_stop): ...to here.
23142 (validate_phases): Rename to...
23143 (timer::validate_phases): ...this, and add "m_" prefixes. Make
23144 locals "total" and "tv" const.
23145 (timevar_print): Rename to...
23146 (timer::print): ...this, and add "m_" prefixes. Make locals
23147 "total" and "tv" const. Eliminate test for timevar_enable.
23148 * timevar.h (timevar_enable): Eliminate.
23149 (g_timer): New declaration.
23150 (timevar_push_1): Eliminate.
23151 (timevar_pop_1): Eliminate.
23152 (timevar_print): Eliminate.
23153 (class timer): New class.
23154 (timevar_push): Rewrite to use g_timer.
23155 (timevar_pop): Likewise.
23156 * toplev.c (toplev::~toplev): Likewise.
23158 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
23160 * arm-protos.h (arm_sched_autopref): Delete.
23161 (tune_params): Re-organize, use enums for flag values.
23162 (FUSE_OPS): New macro.
23163 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
23164 (ARM_PREFETCH_BENEFICIAL): Likewise.
23165 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
23166 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
23167 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
23168 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
23169 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
23170 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
23171 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
23172 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
23174 (arm_option_override, thumb2_reorg, arm_print_tune_info)
23175 (aarch_macro_fusion_pair_p): Update uses of current_tune.
23176 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
23178 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
23180 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
23183 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
23184 Sandra Loosemore <sandra@codesourcery.com>
23186 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
23188 (REG_CLASS_NAMES): Add "IJMP_REGS".
23189 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
23190 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
23191 use new "c" register constraint.
23192 * config/nios2/constraint.md (c): New register constraint
23193 corresponding to IJMP_REGS.
23195 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23197 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
23198 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
23199 define_splits): Delete, revamp, transmogrify into ...
23200 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
23201 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
23202 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
23205 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23207 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
23208 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
23210 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23212 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
23213 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
23214 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
23215 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
23216 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
23217 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
23218 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
23219 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
23220 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
23221 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
23222 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
23223 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
23224 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
23225 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
23226 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
23227 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
23228 and 30 corresponding splitters): Delete.
23230 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23232 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
23235 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23237 * combine.c (recog_for_combine_1): New function, factored out
23238 from recog_for_combine.
23239 (change_zero_ext): New function.
23240 (recog_for_combine): If recog fails, try again with the pattern
23241 modified by change_zero_ext; if that still fails, restore the
23244 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23246 * combine.c (get_undo_marker): New function.
23247 (undo_to_marker): New function, largely factored out from ...
23248 (undo_all): ... this. Adjust.
23250 2015-05-12 Richard Biener <rguenther@suse.de>
23252 PR tree-optimization/66101
23253 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
23254 fixup if we turn a loop exit edge to a fallthru edge.
23256 2015-05-12 Richard Biener <rguenther@suse.de>
23258 PR tree-optimization/37021
23259 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
23260 (SLP_TREE_TWO_OPERATORS): New define.
23261 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
23262 SLP_TREE_TWO_OPERATORS.
23263 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
23265 (vect_build_slp_tree): Adjust.
23266 (vect_analyze_slp_cost_1): Likewise.
23267 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
23268 emitting two vector stmts and mixing the results.
23270 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
23272 * call.c (print_z_candidates): Remove dead code.
23274 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23276 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
23277 and zEC12_simple_fp.
23278 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
23281 2015-05-12 Tom de Vries <tom@codesourcery.com>
23283 PR tree-optimization/66010
23284 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
23286 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
23287 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
23288 va_lists are passed, and remove corresponding handling.
23289 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
23290 do_deref argument to ifn_va_arg.
23291 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
23294 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23297 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
23298 REG before taking its REGNO.
23300 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
23302 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
23303 rsp->sign_bit_copies and rsp->nonzero_bits into ...
23304 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
23305 present to get more accurate information about the number of sign bit
23306 copies and non zero bits.
23308 2015-05-12 Richard Biener <rguenther@suse.de>
23310 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
23311 do not allow unrolling.
23313 2015-05-11 Richard Henderson <rth@redhat.com>
23315 * config/i386/i386-modes.def (CCP): New.
23316 * config/i386/i386.c (put_condition_code): Handle it.
23317 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
23319 2015-05-11 Richard Henderson <rth@redhat.com>
23321 * target.def (md_asm_clobbers): Replace with...
23322 (md_asm_adjust): this.
23323 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
23324 (TARGET_MD_ASM_ADJUST): New.
23325 * tm.texi: Rebuild.
23326 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
23327 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
23328 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
23330 * cfgexpand.c (check_operand_nalternatives): Accept vector of
23331 constraints instead of lists of outputs and inputs.
23332 (expand_asm_stmt): Save and restore input_location around the
23333 body of the function. Move asm data into vectors instead of
23334 building tree lists. Generate cleanup sequences as needed,
23335 rather than waiting til the end. Use new md_asm_adjust hook.
23337 * config/vxworks.c: Include vec.h before target.h.
23338 * gimple.c: Likewise.
23339 * incpath.c: Likewise.
23340 * mode-switching.c: Likewise.
23342 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
23343 (cris_md_asm_adjust): this.
23344 (TARGET_MD_ASM_CLOBBERS): Remove.
23345 (TARGET_MD_ASM_ADJUST): New.
23346 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
23347 (ix86_md_asm_adjust): this.
23348 (TARGET_MD_ASM_CLOBBERS): Remove.
23349 (TARGET_MD_ASM_ADJUST): New.
23350 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
23351 (mn10300_md_asm_adjust): this.
23352 (TARGET_MD_ASM_CLOBBERS): Remove.
23353 (TARGET_MD_ASM_ADJUST): New.
23354 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
23355 (rs6000_md_asm_adjust): this.
23356 (TARGET_MD_ASM_CLOBBERS): Remove.
23357 (TARGET_MD_ASM_ADJUST): New.
23358 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
23359 (visium_md_asm_adjust): this.
23360 (TARGET_MD_ASM_CLOBBERS): Remove.
23361 (TARGET_MD_ASM_ADJUST): New.
23363 2015-05-11 Richard Henderson <rth@redhat.com>
23365 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
23366 if noutputs is zero.
23367 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
23369 * cfgexpand.c (expand_asm_operands): Merge into...
23370 (expand_asm_stmt): ... here.
23372 * cfgexpand.c (expand_asm_operands): Don't call
23373 resolve_asm_operand_names.
23374 * stmt.c (resolve_asm_operand_names): Clarify block comment.
23376 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
23378 * dwarf2out.c (gen_member_die): Sanity check that we access
23379 TYPE_MAIN_VARIANT for TYPE_METHODS.
23380 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
23381 checking TYPE_METHODS.
23382 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
23384 (build_distinct_type_copy): Clear TYPE_METHODS.
23385 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
23386 (verify_type): Allow TYPE_METHODS to be error_mark_node.
23387 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
23389 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
23391 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
23392 (emit_pattern_before_setloc): Likewise.
23394 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
23396 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
23397 for define_peephole2s.
23398 (get_peephole2_pattern): New function.
23399 (main): Use it. Call validate_pattern.
23401 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23403 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
23404 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
23405 (Last callee saved reg is different for AVR_TINY architecture)
23407 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
23409 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
23410 when looking for memory references.
23412 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
23415 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
23416 via function pointers.
23418 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
23420 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
23421 indirect call by forcing address into a pseudo with -fno-plt.
23422 * common.opt (flag_plt): New option.
23423 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
23424 ([-fno-plt]): Document.
23426 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
23429 * config/rs6000/option-defaults.h: Add space between string literal
23432 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
23434 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
23435 accross ARM targets.
23437 2015-05-11 Christian Bruel <christian.bruel@st.com>
23439 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
23440 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
23442 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
23444 PR rtl-optimization/66076
23445 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
23446 Don't grow the heap array if it is already big enough from a
23447 previous iteration.
23449 2015-05-11 Christian Bruel <christian.bruel@st.com>
23451 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
23452 (is_called_in_ARM_mode): Remove.
23453 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
23454 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
23455 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
23456 arm_declare_function_name.
23458 2015-05-11 Christian Bruel <christian.bruel@st.com>
23460 * config/arm/arm.c (arm_option_override): Reoganized and split into :
23461 (arm_option_params_internal); New function.
23462 (arm_option_check_internal): New function.
23463 (arm_option_override_internal): New function.
23464 (thumb_code, thumb1_code): Remove.
23465 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
23466 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
23467 (thumb_code, thumb1_code): Remove.
23468 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
23470 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
23472 * config/alpha/alpha.c (alpha_emit_set_const_1)
23473 (alpha_emit_set_long_const, alpha_extract_integer)
23474 (alpha_legitimate_constant_p, alpha_split_const_mov)
23475 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
23476 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
23477 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
23479 * config/alpha/predicates.md (mode_mask_operand): Do not match
23481 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
23482 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
23483 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
23484 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
23485 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
23487 2015-05-11 Jakub Jelinek <jakub@redhat.com>
23490 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
23491 default_binds_local_p_2.
23492 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
23493 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
23495 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23497 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
23499 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23501 Patch by Richard Biener
23502 * coverage.c (coverage_obj_init): Delay building of type variant
23503 until the type is finished.
23505 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23507 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
23508 mismatch between C and C++ type; compoare correctly ARG_TYPES
23509 for non-prototypes and output correctly parameter index for METHOD_TYPE.
23510 (odr_types_equivalent_p): Fix wording of warning about attributes;
23511 it is OK to match prototype and non-prototype.
23513 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23515 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
23516 TYPE_ARG_TYPES list.
23517 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
23518 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
23520 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23522 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
23523 * tree.h (is_lang_specific): Constify.
23525 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
23527 PR tree-optimization/64454
23528 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
23531 2015-05-08 Jason Merrill <jason@redhat.com>
23533 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
23534 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
23535 config/darwin.h, config/darwin9.h, config/elfos.h,
23536 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
23537 config/microblaze/microblaze.h, config/mips/mips.h,
23538 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
23539 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
23540 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
23541 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
23542 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
23543 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
23544 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
23545 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
23546 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
23547 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
23548 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
23549 between string literal and macro name.
23551 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23553 * jump.c: Change argument types to rtx_insn *.
23556 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23558 * lra-constraints.c: Change argument type to rtx_insn *.
23560 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23562 * df-problems.c: Change argument type to rtx_insn *.
23564 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23566 * combine.c: Change argument type to rtx_insn *.
23568 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23571 * rtlanal.c: Change argument type to rtx_insn *.
23573 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23575 * sched-deps.c: Change argument types to rtx_insn *.
23576 * sched-int.h: Adjust.
23578 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23580 * dwarf2cfi.c: Change argument type to rtx_insn *.
23582 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23584 * ira.c (decrease_live_ranges_number): Changetype of local
23585 variable to rtx_insn *.
23586 * recog.c: Change argument types to rtx_insn *.
23589 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23591 * reorg.c: Change argument types to rtx_insn *.
23593 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23595 * ira-color.c: Change argument types to rtx_insn *.
23596 * lra-eliminations.c: Likewise.
23599 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23601 * gcse.c: Change argument types to rtx_insn *.
23603 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23605 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
23607 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23609 * emit-rtl.c (emit_debug_insn_before): Change argument type to
23613 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23615 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
23618 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23620 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
23623 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23625 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
23628 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23630 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
23633 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23635 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
23639 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23641 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
23645 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23647 * except.c (can_nonlocal_goto): Change type of argument to
23651 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23653 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
23656 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23658 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
23659 * cfgrtl.c (can_delete_label_p): Adjust.
23662 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23664 * reorg.c (stop_search_p): Change argument to rtx_insn *.
23666 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23668 * except.c (make_reg_eh_region_note): Change argument to
23670 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
23671 * except.h: Adjust.
23673 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23675 * mode-switching.c (commit_mode_sets): Change type of local
23676 variable from rtx to rtx_insn *.
23678 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
23680 * doc/install.texi (--enable-languages): Add missing jit and lto info.
23681 Add ^ to grep command.
23682 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
23683 arg to last gimple_simplify declaration. Add missing gimple_build
23684 declaration for built-in function case with four tree args.
23686 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
23687 Szabolcs Nagy <szabolcs.nagy@arm.com>
23689 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
23690 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
23691 (GNU_USER_DYNAMIC_LINKERN32): Update.
23693 2015-05-08 Richard Biener <rguenther@suse.de>
23695 PR tree-optimization/66036
23696 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
23697 Handle strided group loads.
23698 (vect_verify_datarefs_alignment): Likewise.
23699 (vect_enhance_data_refs_alignment): Likewise.
23700 (vect_analyze_group_access): Likewise.
23701 (vect_analyze_data_ref_access): Likewise.
23702 (vect_analyze_data_ref_accesses): Likewise.
23703 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
23704 (vectorizable_load): Likewise.
23706 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
23708 * config/rs6000/rs6000.md: Require operand inequality in one
23711 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
23712 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
23714 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
23716 * config/rx/rx.md (movdi, movdf): Likewise.
23717 Likewise for define_peephole2s.
23719 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
23721 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
23722 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
23723 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
23724 vtst_u64): Rewrite using gcc vector extensions.
23726 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
23728 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
23729 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
23731 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
23733 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
23735 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
23737 * config/glibc-stdint.h (OPTION_MUSL): Define.
23738 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
23739 Change the definition based on OPTION_MUSL for 64 bit targets.
23740 * config/linux.h (OPTION_MUSL): Redefine.
23741 * config/alpha/linux.h (OPTION_MUSL): Redefine.
23742 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
23743 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
23745 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
23746 Szabolcs Nagy <szabolcs.nagy@arm.com>
23748 * config.gcc (LIBC_MUSL): New tm_defines macro.
23749 * config/linux.h (OPTION_MUSL): Define.
23750 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
23751 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
23752 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
23753 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
23754 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
23755 * config/linux.opt (mmusl): New option.
23756 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
23757 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
23758 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
23759 * configure: Regenerate.
23761 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
23762 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23765 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
23766 * config/i386/knetbsd-gnu64.h: New file.
23768 2015-05-08 Marek Polacek <polacek@redhat.com>
23771 * doc/invoke.texi: Document -Woverride-init-side-effects.
23773 2015-05-07 Marek Polacek <polacek@redhat.com>
23776 * doc/invoke.texi: Document -Wshift-negative-value.
23778 2015-05-06 Aditya Kumar <hiraditya@msn.com>
23780 * gcov-tool.c (do_merge): Refactore to remove int ret.
23781 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
23782 !type == FUNC to type != FUNC.
23783 * reload.h (struct target_reload): Changee to type of
23784 x_spill_indirect_levels from bool to unsigned char.
23786 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
23788 * rtl.h (always_void_p): New function.
23789 * gengenrtl.c (always_void_p): Likewise.
23790 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
23791 with code foo are always VOIDmode.
23792 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
23793 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
23794 compare-elim.c, config/aarch64/aarch64.c,
23795 config/aarch64/aarch64.md, config/alpha/alpha.c,
23796 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
23797 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
23798 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
23799 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
23800 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
23801 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
23802 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
23803 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
23804 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
23805 config/ia64/vect.md, config/iq2000/iq2000.c,
23806 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
23807 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
23808 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
23809 config/mep/mep.c, config/microblaze/microblaze.c,
23810 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
23811 config/mn10300/mn10300.c, config/msp430/msp430.c,
23812 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
23813 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
23814 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
23815 config/rs6000/altivec.md, config/rs6000/rs6000.c,
23816 config/rs6000/rs6000.md, config/rs6000/vector.md,
23817 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
23818 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
23819 config/sh/sh.md, config/sh/sh_treg_combine.cc,
23820 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
23821 config/spu/spu.md, config/stormy16/stormy16.c,
23822 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
23823 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
23824 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
23825 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
23826 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
23827 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
23828 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
23829 var-tracking.c: Update calls accordingly.
23831 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
23834 PR middle-end/54303
23835 * varasm.c (function_mergeable_rodata_prefix): New function.
23836 (mergeable_string_section): Use it.
23837 (mergeable_constant_section): Use it.
23839 2015-05-07 Jeff Law <law@redhat.com>
23842 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23843 simplifier to narrow arithmetic.
23844 * generic-match-head.c: (types_match, single_use): New functions.
23845 * gimple-match-head.c: (types_match, single_use): New functions.
23847 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23849 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
23852 2015-05-07 Richard Biener <rguenther@suse.de>
23854 PR tree-optimization/66002
23855 * passes.def: Schedule another pass_merge_phi after ifcombine, right
23858 2015-05-07 Marek Polacek <polacek@redhat.com>
23859 Martin Uecker <uecker@eecs.berkeley.edu>
23861 * doc/invoke.texi: Document -fsanitize=bounds-strict.
23862 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
23863 into SANITIZE_NONDEFAULT.
23864 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
23866 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
23869 * config/alpha/alpha.c (alpha_override_options_after_change): New.
23870 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
23871 (alpha_override_options): Move align_loops, align_jumps and
23872 align_functions handling into alpha_override_options_after_change.
23874 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
23875 Chris Jones <chrisj@nvidia.com>
23876 Joshua Conner <jconner@nvidia.com>
23878 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
23879 linking of crtfastmath.o.
23880 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
23882 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
23884 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
23885 (cstore<mode>4_unsigned_imm): New expander.
23886 (cstore<mode>4): Remove empty constraint strings. Use the new
23889 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
23892 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
23895 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
23897 * config/aarch64/geniterators.sh: Use standard BRE in sed.
23899 2015-05-06 Alan Modra <amodra@gmail.com>
23902 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
23903 (UNSPEC_NOP): Define.
23904 (reload_vsx_from_gpr<mode>): Add missing DONE.
23905 (reload_gpr_from_vsx<mode>): Likewise.
23906 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
23907 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
23909 2015-05-06 Christian Bruel <christian.bruel@st.com>
23912 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
23913 align_jumps, align_functions into aarch64_override_options_after_change.
23915 2015-05-06 Richard Biener <rguenther@suse.de>
23917 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
23918 vect_transform_slp_perm_load to check if we support a permutation
23919 for basic-block vectorization.
23921 2015-05-06 Nick Clifton <nickc@redhat.com>
23923 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
23924 used, even if it is not being used as a frame pointer.
23926 2015-05-05 Jason Merrill <jason@redhat.com>
23928 * dwarf2out.c (gen_member_die): Don't emit anything for an
23929 anonymous class constructor.
23931 2015-05-05 David Malcolm <dmalcolm@redhat.com>
23933 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
23934 that it reflects the block structure.
23935 (afdo_propagate_edge): Likewise.
23936 (afdo_calculate_branch_prob): Likewise.
23937 (afdo_annotate_cfg): Likewise.
23938 * cfgcleanup.c (equal_different_set_p): Likewise.
23939 (try_crossjump_to_edge): Likewise.
23940 * cgraph.c (cgraph_node::verify_node): Likewise.
23941 * cgraphunit.c (expand_all_functions): Likewise.
23942 * config/i386/i386.c (ix86_expand_copysign): Likewise.
23943 (exact_dependency_1): Likewise.
23944 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
23945 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
23946 * gensupport.c (process_define_subst): Likewise.
23947 * lto-wrapper.c (merge_and_complain): Likewise.
23948 * tree-if-conv.c (if_convertible_bb_p): Likewise.
23949 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
23950 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
23951 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
23952 * tree-vect-loop.c (vectorizable_reduction): Likewise.
23953 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
23954 * tree-vect-stmts.c (vectorizable_shift): Likewise.
23955 * tree-vrp.c (vrp_finalize): Likewise.
23956 * tree.c (variably_modified_type_p): Likewise.
23958 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
23960 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
23961 on darwin12 and later.
23962 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
23963 file to pass -rdynamic on darwin12 and later.
23964 * config/darwin.opt (rdynamic): Add.
23966 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
23968 * doc/extend.texi (C Extensions): Update menu for moved Variable
23969 Attributes and Type Attributes sections.
23971 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
23974 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
23975 if rep_8byte stringop strategy was specified for 32-bit target.
23977 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
23980 * config/i386/i386.md (vector convert to float spltiter): Check for
23981 xmm16+, when splitting scalar float conversion.
23982 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
23984 2015-05-05 Nick Clifton <nickc@redhat.com>
23986 * config/msp430/msp430-opts.h (enum msp430_regions): New.
23987 * config/msp430/msp430.c (msp430_override_options): Complain if
23988 -mcode-region or -mdata-region is used on a non MSP430X.
23989 (msp430_section_attr): New function. Checks lower, upper and
23991 (msp430_attribute_table): Add lower, upper and either.
23992 (gen_prefix): New function. Generates a prefix for a section
23994 (msp430_select_section): New function - handles the choice of
23995 section for an object. Takes into account memory region
23996 attributes and options.
23997 (msp430_function_section): Use gen_prefix.
23998 (TARGET_SECTION_TYPE_FLAGS): Define.
23999 (msp430_section_type_flags): New function.
24000 (TARGET_ASM_UNIQUE_SECTION): Define.
24001 (msp430_unique_section): New function.
24002 (msp430_output_aligned_decl_common): New function.
24003 (msp430_do_not_relax_short_jumps): New function.
24004 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
24006 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
24007 * config/msp430/msp430-protos.h
24008 (msp430_do_not_relax_short_jumps): New prototype.
24009 (msp430_output_aligned_decl_common): New prototype.
24010 * config/msp430/msp430.md (length): New attribute.
24011 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
24012 then use a long code sequence for short jumps.
24013 * config/msp430/msp430.opt (mcode-region): New.
24014 (mdata-region): New.
24015 * doc/invoke.texi: Document new options.
24016 * doc/extend.texi: Document new attributes.
24018 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
24020 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
24021 (tune_params): Add field branch_costs.
24022 (aarch64_branch_cost): Declare.
24023 * gcc/config/aarch64.c (generic_branch_cost): New.
24024 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
24025 (cortexa53_tunings): Likewise.
24026 (cortexa57_tunings): Likewise.
24027 (thunderx_tunings): Likewise.
24028 (xgene1_tunings): Likewise.
24029 (aarch64_branch_cost): Define.
24030 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
24032 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
24034 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
24035 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
24036 * config/i386/i386.md: Ditto.
24037 * config/i386/winnt.c: Ditto.
24039 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
24041 * doc/extend.texi (__atomic Builtins): Move implementation details
24042 to the end of the description, rewrite opening paragraphs, state
24043 difference with __sync builtins, state C11/C++11 assumptions,
24044 weaken itemized descriptions, add explanation of memory model
24045 behaviour, expand description of compare-exchange, simplify text.
24047 2015-05-05 Renlin Li <renlin.li@arm.com>
24049 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
24051 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
24053 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
24054 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
24055 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
24056 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
24057 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
24058 * configure: Regenerate.
24059 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
24060 * doc/install.texi (aarch64*-*-*): Document new
24061 --enable-fix-cortex-a53-843419 option.
24062 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
24063 and -mno-fix-cortex-a53-843419 options.
24065 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
24068 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
24070 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
24072 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
24073 fix overactive TYPE_MIN_VALUE check and add FIXME for type
24074 compatibility problems.
24076 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
24078 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
24080 (cbranchsi4_reg): New.
24081 * config/microblaze/microblaze.c
24082 (microblaze_expand_conditional_branch_reg): New.
24083 * config/microblaze/microblaze-protos.h
24084 (microblaze_expand_conditional_branch_reg): New prototype.
24086 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
24088 * config/microblaze/microblaze.md (peephole2): New.
24090 2015-05-04 Jeff Law <law@redhat.com>
24093 2015-05-04 Jeff Law <law@redhat.com>
24095 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
24096 simplifier to narrow arithmetic.
24097 * generic-match-head.c: (types_match, single_use): New functions.
24098 * gimple-match-head.c: (types_match, single_use): New functions.
24100 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
24103 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
24104 (split_branches): Likewise.
24106 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
24108 * common.opt (fdelete-null-pointer-checks): Init to -1.
24109 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
24110 override flag_delete_null_pointer_checks default.
24111 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
24112 behavior re address zero. Better document target-specific behavior.
24113 (-fisolate-errneous-paths-dereference): Mention relationship to
24114 -fdelete-null-pointer-checks.
24116 2015-05-04 Jakub Jelinek <jakub@redhat.com>
24118 PR tree-optimization/65984
24119 * ubsan.c: Include tree-cfg.h.
24120 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
24121 stmt_could_throw_p test, rename can_throw variable to ends_bb.
24123 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
24125 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
24126 to CONST_DOUBLE_P predicate.
24127 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
24128 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
24129 allow only operands that satisfy standard_sse_constant_p predicate.
24130 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
24131 to CONST_DOUBLE_P predicate.
24133 2015-05-04 Jeff Law <law@redhat.com>
24135 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
24136 simplifier to narrow arithmetic.
24137 * generic-match-head.c: (types_match, single_use): New functions.
24138 * gimple-match-head.c: (types_match, single_use): New functions.
24140 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
24142 * config/arm/arm.c: Restore bootstrap.
24144 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
24146 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
24147 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
24148 as CONST_WIDE_INT, not CONST_DOUBLE.
24149 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
24150 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
24151 (ix86_find_base_term): Do not check for CONST_DOUBLE.
24152 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
24153 (ix86_build_signbit_mask): Rewrite using wide ints.
24154 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
24155 (ix86_rtx_costs): Handle CONST_WIDE_INT.
24156 (find_constant): Ditto.
24157 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
24158 using gen_int_mode.
24159 * config/i386/predicates.md (x86_64_immediate_operand)
24160 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
24161 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
24162 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
24163 (const0_operand): Also match const_wide_int.
24164 (constm1_operand): Ditto.
24165 (const1_operand): Ditto.
24167 2015-05-04 Richard Biener <rguenther@suse.de>
24169 PR tree-optimization/65965
24170 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
24171 store groups at gaps.
24173 2015-05-04 Richard Biener <rguenther@suse.de>
24175 PR tree-optimization/65935
24176 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
24177 then make sure to apply that swapping to the IL.
24179 2015-05-04 Jakub Jelinek <jakub@redhat.com>
24181 * Makefile.in (PATCHLEVEL_c): New variable.
24182 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
24183 expand the same way as if DEVPHASE_c was non-empty.
24185 2015-05-04 Kai Tietz <ktietz@redhat.com>
24188 * lto-wrapper.c (run_gcc): Open filename
24191 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
24193 * doc/extend.texi (Variable Attributes, Type Attributes): Move
24194 sections up in file, to immediately after the Function Attributes
24197 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
24199 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
24201 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24203 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
24204 (insert_partition_copy_on_edge): Adjust.
24205 (insert_rtx_to_part_on_edge): Likewise.
24206 (insert_part_to_rtx_on_edge): Likewise.
24208 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24210 * function.c (set_return_jump_label): Change type of argument to
24212 * function.h (set_return_jump_label): Adjust.
24214 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24216 * reload.h (struct reg_equivs_t): Change type of init to
24218 * ira.c (fix_reg_equiv_init): Adjust.
24219 * reload1.c (eliminate_regs_1): Likewise.
24220 (init_eliminable_invariants): Likewise.
24222 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24224 * cselib.c (fp_setter_insn): Take a rtx_insn *.
24225 * cselib.h (fp_setter_insn): Adjust.
24227 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24229 * recog.c (struct validate_replace_src_data): Change type of
24230 insn field to rtx_insn *.
24231 (validate_replace_src_group): Change type of argument to rtx_insn *.
24232 * recog.h (validate_replace_src_group): Adjust.
24234 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24236 * haifa-sched.c: Change the type of some variables to rtx_insn *.
24237 * sched-deps.c: Likewise.
24238 * sched-int.h: Likewise.
24239 * sched-rgn.c: Likewise.
24240 * sel-sched.c: Likewise.
24242 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24245 * config/i386/i386.c: Change the type of some arguments to
24247 * config/arm/arm.c: Likewise.
24249 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24251 * lra-constraints.c: Change type of some arguments to rtx_insn *.
24253 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24255 * regcprop.c (kill_autoinc_value): Change type of argument to
24258 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24260 * genrecog.c (print_subroutine): Adjust.
24261 * recog.c (get_bool_attr_mask_uncached): Likewise.
24262 * recog.h (struct recog_data_d): Change the type of insn to
24265 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24267 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
24269 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24271 * df-problems.c (df_set_note): Change type of argument to
24274 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24276 * builtins.c (expand_builtin_trap): Change type of local
24277 variable to rtx_insn *.
24278 (add_sched_insns_for_speculation): Likewise.
24279 (ix86_emit_save_regs): Likewise.
24280 (get_scratch_register_on_entry): Likewise.
24281 (ix86_emit_restore_reg_using_pop): Likewise.
24282 (ix86_emit_leave): Likewise.
24283 (ix86_emit_restore_regs_using_mov): Likewise.
24284 (ix86_expand_epilogue): Likewise.
24286 (rl78_alloc_physical_registers_umul): Likewise.
24287 * cselib.c (discard_useless_locs): Likewise.
24288 (cselib_invalidate_regno): Likewise.
24289 (cselib_invalidate_mem): Likewise.
24290 * function.c (expand_function_start): Likewise.
24291 (emit_use_return_register_into_block): Likewise.
24292 * gcse.c: Likewise.
24293 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
24294 * ifcvt.c (noce_get_alt_condition): Likewise.
24295 * loop-doloop.c (doloop_condition_get): Likewise.
24296 * lra-constraints.c (inherit_in_ebb): Likewise.
24297 * modulo-sched.c (sms_schedule_by_order): Likewise.
24298 * recog.c (next_insn_tests_no_inequality): Likewise.
24299 * reorg.c (emit_delay_sequence): Likewise.
24300 (update_reg_dead_notes): Likewise.
24301 (fix_reg_dead_note): Likewise.
24302 (fill_slots_from_thread): Likewise.
24303 (delete_computation): Likewise.
24305 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
24307 * doc/extend.texi (Variable Attributes): Add menu and proper
24308 @nodes to subsections. Move Microsoft Windows attributes to
24309 their own subsection.
24310 (Type Attributes): Reorganize introduction to remove duplicate
24311 list of attributes. Add menu and proper @nodes to subsections.
24312 Alphabetize the main table of common attributes.
24314 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
24316 * match.pd: New simplification patterns.
24317 (x + (x & 1)) -> ((x + 1) & ~1)
24318 (x & ~(x & y)) -> ((x & ~y))
24319 (x | ~(x | y)) -> ((x | ~y))
24321 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24323 * target.def (attribute_table): Mention that struct attribute_spec
24324 is defined in tree-core.h rather than tree.h
24325 * doc/tm.texi: Regenerate.
24327 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
24329 * genrecog.c (test): Rename to rtx_test. Update rest of file
24332 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
24334 PR translation/65959
24335 * params.h (DEFPARAM): Rename msgid to nocmsgid.
24337 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
24339 * gcc/config/aarch64/aarch64-protos.h (tune_params):
24340 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
24341 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
24342 Return value depending on target.
24343 (generic_tunings): Initialize new target settings.
24344 (cortexa53_tunings): Likewise.
24345 (cortexa57_tunings): Likewise.
24346 (thunderx_tunings): Likewise.
24347 (xgene1_tunings): Likewise.
24349 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
24351 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
24352 Make Cortex-A53 shift costs more accurate.
24354 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24356 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
24359 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
24361 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
24362 Calculate cost of op0 and op1 in PLUS and MINUS cases.
24364 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24366 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
24367 Add cost of op0 in the compare-with-fpzero case.
24369 2015-04-30 David Malcolm <dmalcolm@redhat.com>
24371 * builtins.c (fold_builtin_1): Remove spurious second
24373 * cgraph.h (symtab_node::get_availability): Likewise.
24374 * opts.c (common_handle_option): Remove spurious second semicolon.
24375 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
24376 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
24378 2015-04-30 Caroline Tice <cmtice@google.com>
24380 PR gcov-profile/65929
24381 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
24382 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
24383 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
24384 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
24385 * doc/tm.texi: Regenerate.
24386 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
24387 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
24388 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
24389 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
24391 2015-04-30 Marek Polacek <polacek@redhat.com>
24393 * varasm.c (handle_cache_entry): Fix logic.
24395 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24397 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
24398 (*extrsi5_insn_uxtw_alt): Likewise.
24399 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
24400 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
24403 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24405 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
24408 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24410 * config/aarch64/aarch64.md
24411 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
24412 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
24413 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
24414 appropriately. Handle alternative EON form.
24416 2015-04-30 Renlin Li <renlin.li@arm.com>
24418 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
24419 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
24421 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
24424 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
24425 -fstrict-aliasing boundaries.
24427 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24429 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
24430 and [SU]MNEGL patterns.
24432 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24434 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
24435 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
24436 combined arithmetic-shift ops. Properly handle all shift and extend
24437 operations that can occur in combination with PLUS/MINUS.
24438 Rename maybe_fma to compound_p.
24439 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
24440 arithmetic and shift operations.
24442 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24444 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
24445 rather than arith_shift cost when costing ADD/MINUS of an
24448 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
24451 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
24454 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
24456 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
24457 are for the same position.
24459 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
24461 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
24463 (vectorize_loops): Use it.
24465 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
24467 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
24468 for aggregate types.
24469 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
24470 type to be non_ODR.
24471 * tree.c (need_assembler_name_p): Compute mangled name for
24472 non-fundamental types and integer types.
24474 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
24476 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
24478 * expr.c (expand_expr_real_2): Likewise.
24480 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
24482 * tree.c (build_common_builtin_nodes): Do not build
24483 __builtin_alloca_with_align as equivalent of library alloca.
24485 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
24487 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
24488 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
24490 * tree.c: Include print-tree.h and ipa-utils.h
24491 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
24492 (free_lang_data_in_cgraph): Call verify_type.
24493 (verify_type_variant): New function.
24494 (verify_type): New function.
24495 * tree.h (verify_type): Declare.
24497 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
24499 * config/mips/mips-cpus.def: (mips4): Change default processor
24500 from PROCESSOR_R8000 to PROCESSOR_R10000.
24502 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
24504 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
24505 la/jalr instead of jal.
24507 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
24510 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
24511 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
24512 (setcc+movzbl peephole2): Check also clobbered reg.
24513 (setcc+andl peephole2): Ditto.
24515 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
24518 * config/nvptx/mkoffload.c (target_ilp32): New variable.
24519 (main): Set it depending on "-foffload-abi=[...]".
24520 (compile_native, main): Use it to pass "-m32" or "-m64" to the
24523 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
24526 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
24527 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
24528 Flip lane index back at assembly time for bigendian.
24530 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
24532 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
24533 * gimplify.c (gimplify_omp_workshare): Use it.
24535 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
24537 * Makefile.in (build/genrecog.o): Depend on inchash.h.
24538 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
24540 * genrecog.c: Rewrite most of the code except for the third page.
24542 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
24544 * inchash.h, inchash.c: Include bconfig.h for build objects.
24545 * Makefile.in (build/inchash.o): New rule.
24547 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
24550 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
24551 number in type attribute expression.
24553 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
24555 * loop-iv.c (canon_condition): Generalize to all types of integer
24558 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
24560 * gimple-walk.c: Prune duplicate or unneeded includes.
24561 (walk_gimple_asm): Only call parse_input_constraint or
24562 parse_output_constraint if their findings are used.
24563 Honour parse_input_constraint and parse_output_constraint
24566 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
24568 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
24570 2015-04-29 Tom de Vries <tom@codesourcery.com>
24572 PR tree-optimization/65893
24573 * passes.def (pass_all_optimizations): Move pass_stdarg to after
24576 2015-04-29 Richard Biener <rguenther@suse.de>
24578 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
24579 compute GROUP_SIZE for basic-block SLP.
24580 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
24581 take into account gaps.
24582 (vect_get_mask_element): Properly reject references to previous
24584 (vect_transform_slp_perm_load): Likewise.
24586 2015-04-29 Christian Bruel <christian.bruel@st.com>
24589 * config/i386/i386.c (ix86_default_align): New function.
24590 (ix86_override_options_after_change): Call ix86_default_align.
24591 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
24592 (ix86_override_options_after_change): New function.
24594 2015-04-28 Jeff Law <law@redhat.com>
24596 * tree-ssa-dom.c (record_equality); Fix comment typos.
24598 2015-04-28 Tom de Vries <tom@codesourcery.com>
24600 PR tree-optimization/65887
24601 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
24603 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
24605 * doc/extend.texi (Declaring Attributes of Functions): Split into
24606 subsections by target. Alphabetize the table of common attributes.
24607 Rewrite some of the introductory text to reflect the new structure.
24608 Update some cross-references to point to the new subsections.
24609 (Attribute Syntax): Put paragraph about "__" naming here. Remove
24610 duplicate copies in the discussion of function, label, and type
24613 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
24616 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
24618 2015-04-28 Jason Merrill <jason@redhat.com>
24621 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
24622 (finalize_type_size): Respect TYPE_USER_ALIGN.
24623 (layout_type) [ARRAY_TYPE]: Likewise.
24625 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
24627 * config/arm/arm.md (*arm_movt): Fix type attribute.
24628 (*cmpsi_shiftsi): Likewise.
24629 (*cmpsi_shiftsi_swp): Likewise.
24630 (*movsicc_insn): Likewise.
24631 (*cond_move): Likewise.
24632 (*if_plus_move): Likewise.
24633 (*if_move_plus): Likewise.
24634 (*if_arith_move): Likewise.
24635 (*if_move_arith): Likewise.
24636 (*if_shift_move): Likewise.
24637 (*if_move_shift): Likewise.
24638 (*arm_movtas_ze): Likewise.
24639 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
24640 redundancy and type attribute.
24641 (*thumb2_movsi_insn): Fix type attribute.
24642 (*thumb2_addsi_short): Likewise.
24643 (thumb2_addsi3_compare0): Likewise.
24644 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
24645 attributes accordingly.
24647 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
24650 * function.c (pad_to_arg_alignment): Add parentheses.
24652 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
24654 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
24655 libgcc/config/frv/elf-lib.h.
24657 2015-04-28 Tom de Vries <tom@codesourcery.com>
24659 * tree-call-cdce.c: Fix example in header comment.
24661 2015-04-28 Richard Biener <rguenther@suse.de>
24663 PR tree-optimization/62283
24664 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
24665 fails fatally and we are vectorizing a basic-block simply
24666 cause the child to be constructed piecewise.
24667 (vect_analyze_slp_cost_1): Adjust.
24668 (vect_detect_hybrid_slp_stmts): Likewise.
24669 (vect_bb_slp_scalar_cost): Likewise.
24670 (vect_get_constant_vectors): For piecewise constructed
24671 constants place them after the last def.
24672 (vect_get_slp_defs): Adjust.
24673 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
24674 externals for basic-block vectorization.
24676 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
24679 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
24681 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
24682 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
24683 (AARCH64_TUNE_FMA_STEERING): Likewise.
24684 * config/aarch64/aarch64-cores.def: Set
24685 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
24686 FMUL/FMADD instructions.
24687 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
24688 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
24689 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
24690 * config/aarch64/cortex-a57-fma-steering.h: New file.
24691 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24693 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
24695 * gensupport.c (std_preds): Add missing codes to address_operand entry.
24697 2015-04-28 Richard Biener <rguenther@suse.de>
24699 PR tree-optimization/65851
24700 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
24701 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
24702 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
24703 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
24704 (ccp_visit_phi_node): Adjust.
24705 (evaluate_stmt): For simplifications to SSA names return its
24706 lattice value if that isn't VARYING. Return immediately when
24707 simplified to a constant.
24708 (visit_assignment): Adjust.
24709 (ccp_visit_stmt): Likewise.
24711 2015-04-28 Tom de Vries <tom@codesourcery.com>
24713 PR tree-optimization/65818
24714 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
24717 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24719 * calls.c (save_fixed_argument_area): Don't check
24720 ARGS_GROW_DOWNWARD with the preprocessor.
24721 (restore_fixed_argument_area): Likewise.
24722 (mem_overlaps_already_clobbered_arg_p): Likewise.
24723 (check_sibcall_argument_overlap): Likewise.
24724 (expand_call): Likewise.
24725 (emit_library_call_value_1): Likewise.
24726 (store_one_arg): Likewise.
24727 * function.c (assign_parms): Likewise.
24728 (locate_and_pad_parm): Likewise.
24729 (pad_to_arg_alignment): Likewise.
24730 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
24732 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24734 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
24735 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
24736 * calls.c (save_fixed_argument_area): Don't chekc if
24737 ARGS_GROW_DOWNWARD is defined.
24738 (restore_fixed_argument_area): Likewise.
24739 (mem_overlaps_already_clobbered_arg_p): Likewise.
24740 (check_sibcall_argument_overlap): Likewise.
24741 (expand_call): Likewise.
24742 (emit_library_call_value_1): Likewise.
24743 (store_one_arg): Likewise.
24744 * function.c (assign_parms): Likewise.
24745 (locate_and_pad_parm): Likewise.
24746 (pad_to_arg_alignment): Likewise.
24747 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
24749 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24751 * defaults.h (gen_epilogue): New function.
24752 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
24754 * cfgrtl.c (cfg_layout_finalize): Likewise.
24755 * df-scan.c: Likewise.
24756 * function.c (thread_prologue_and_epilogue_insns): Likewise.
24757 (reposition_prologue_and_epilogue_notes): Likewise.
24758 * reorg.c (find_end_label): Likewise.
24759 * toplev.c: Likewise.
24761 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24763 * bb-reorder.c (HAVE_return): Don't check if its undefined.
24764 * defaults.h (gen_simple_return): New function.
24765 (gen_simple_return): Likewise.
24766 (HAVE_return): Add default definition to false.
24767 (HAVE_simple_return): Likewise.
24768 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
24769 HAVE_return and HAVE_simple_return are defined.
24770 * function.c (gen_return_pattern): Likewise.
24771 (convert_jumps_to_returns): Likewise.
24772 (thread_prologue_and_epilogue_insns): Likewise.
24773 * reorg.c (find_end_label): Likewise.
24774 (dbr_schedule): Likewise.
24775 * shrink-wrap.c: Likewise.
24776 * shrink-wrap.h: Likewise.
24778 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24780 * defaults.h (EPILOGUE_USES): Add default definition of false.
24781 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
24782 * resource.c (init_resource_info): Likewise.
24784 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24786 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
24788 * dwarf2out.c (field_byte_offset): REmove check if
24789 PCC_BITFIELD_TYPE_MATTERS is defined.
24790 * stor-layout.c (layout_decl): Likewise.
24791 (update_alignment_for_field): Likewise.
24792 (place_field): Likewise.
24794 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24796 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
24798 * regrename.c (check_new_reg_p): Remove check if
24799 HARD_REGNO_RENAME_OK is defined.
24800 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
24802 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24804 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
24805 * cse.c (fold_rtx): Likewise.
24806 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
24807 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
24808 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
24809 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
24810 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
24811 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
24812 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
24813 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
24814 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
24815 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
24817 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
24818 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
24819 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
24820 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
24821 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
24822 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
24823 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
24824 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
24825 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
24826 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
24827 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
24828 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
24829 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
24830 * doc/tm.texi: Regenerate.
24831 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
24832 either true or false.
24834 2015-04-27 Jeff Law <law@redhat.com>
24836 PR tree-optimization/65217
24837 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
24838 of them has a single use, make sure it is the LHS of the implied
24841 2015-04-28 Alan Modra <amodra@gmail.com>
24844 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
24845 (offsettable_ok_by_alignment): Use minimum of decl and toc
24846 pointer alignment. Replace dead code with assertion.
24847 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
24848 case if size exceeds toc pointer alignment.
24849 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
24850 (rs6000_emit_move): Likewise.
24851 * configure.ac: Add linker toc pointer alignment check.
24852 * configure: Regenerate.
24853 * config.in: Regenerate.
24855 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
24857 * config.gcc: Add h8300-*-linux.
24858 * config/h8300/linux.h: New.
24859 * config/h8300/t-linux: New.
24860 * config/h8300/h8300.c (h8300_option_override): Normal mode
24861 is not supported for h8300-*-linux.
24862 (h8300_file_start): Target priority change.
24863 (get_shift_alg): Likewise.
24864 (h8300_shift_need_scratch_p): Likewise.
24865 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
24866 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
24868 2015-04-27 Caroline Tice <cmtice@google.com>
24870 * final.c (final_scan_insn): Output cold_function_name as function
24872 * varasm.c (cold_function_name): Make global.
24873 (assemble_start_function): Re-set cold_function_name.
24874 (assemble_end_function): Output cold partition size.
24875 * varasm.h (cold_function_name): Declare global.
24877 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
24879 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
24880 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
24882 (*movxi_internal_avx512f): Ditto.
24883 (define_split): Check for xmm16+, when splitting scalar float_extend.
24884 (*extendsfdf2_mixed): Use "v" constraint.
24885 (define_split): Check for xmm16+, when splitting scalar float_truncate.
24886 (*truncdfsf_fast_sse): Use "v" constraint.
24887 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
24888 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
24889 (define_peephole2): Check for xmm16+, when converting scalar
24891 (define_peephole2): Check for xmm16+, when converting scalar
24893 (*fop_<mode>_comm_mixed): Use "v" constraint.
24894 (*fop_<mode>_comm_sse): Ditto.
24895 (*fop_<mode>_1_mixed): Ditto.
24896 (*sqrt<mode>2_sse): Ditto.
24897 (*ieee_s<ieee_maxmin><mode>3): Ditto.
24899 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24901 * combine.c (simplify_if_then_else): Use std::swap instead
24902 of manually swapping.
24903 (known_cond): Likewise.
24904 (simplify_comparison): Likewise.
24906 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
24909 * config/rs6000/htm.md: Remove all define_expands.
24910 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
24911 UNSPECV_HTM_TABORTWCI): Remove.
24912 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
24913 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
24914 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
24915 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
24916 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
24917 tabortwci_internal): Remove define_insns.
24918 (tabort<wd>c, tabort<wd>ci): New define_insns.
24919 (tabort): Use gpc_reg_operand.
24920 (tcheck): Remove operand.
24921 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
24922 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
24924 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
24925 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
24926 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
24927 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
24928 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
24929 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
24930 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
24931 (tcheck): Remove builtin argument.
24932 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
24934 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
24935 tabortdc and tabortdci builtins when not in 64-bit mode.
24936 Modify code to handle the loss of the HTM define_expands.
24937 Emit code to copy the CR register to TARGET.
24938 (htm_init_builtins): Modify code to handle the loss of the HTM
24940 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
24941 (RS6000_BTC_64BIT): Likewise.
24942 (RS6000_BTC_CR): New macro.
24943 * doc/extend.texi: Update documentation for htm builtins.
24945 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24947 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
24948 of manually swapping.
24949 (simplify_associative_operation): Likewise.
24950 (simplify_binary_operation): Likewise.
24951 (simplify_plus_minus): Likewise.
24952 (simplify_relational_operation): Likewise.
24953 (simplify_ternary_operation): Likewise.
24955 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
24957 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
24958 (xs_hi_nonmemory_operand): Remove error.
24959 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
24960 general_operand rather than xs_hi_general_operand.
24962 2015-04-27 Richard Biener <rguenther@suse.de>
24964 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
24965 (record_equivalences_from_stmt): Valueize rhs.
24966 (record_equality): Canonicalize x and y order via
24967 tree_swap_operands_p. Do not swap operands for same loop depth.
24969 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
24973 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
24974 Add hint how to use own spec file.
24976 2015-04-27 Jakub Jelinek <jakub@redhat.com>
24978 PR tree-optimization/65875
24979 * tree-vrp.c (update_value_range): If in is_new case setting
24980 old_vr to VR_VARYING, also set new_vr to it. Remove
24981 old_vr->type == VR_VARYING test.
24982 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
24983 SSA_PROP_INTERESTING if update_value_range returned true,
24984 but new range is VR_VARYING.
24986 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
24988 * combine.c (sign_extend_short_imm): New.
24989 (set_nonzero_bits_and_sign_copies): Use above new function for sign
24990 extension of src short immediate.
24991 (reg_nonzero_bits_for_combine): Likewise for tem.
24993 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
24995 * stor-layout.c (self_referential_component_ref_p): New predicate.
24996 (copy_self_referential_tree_r): Use it.
24997 (self_referential_size): Punt for simple operations directly involving
24998 self-referential component references.
24999 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
25001 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
25003 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
25005 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
25007 * vec.h (vec): Make splice arguments const. Update definitions
25010 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
25012 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
25015 2015-04-26 Tom de Vries <tom@codesourcery.com>
25017 PR tree-optimization/65826
25018 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
25020 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
25022 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
25023 (*madd3<mode>): Ditto.
25024 (*msub4<mode>): Ditto.
25025 (*msub3<mode>): Ditto.
25026 (*nmadd4<mode>): Ditto.
25027 (*nmadd3<mode>): Ditto.
25028 (*nmadd4<mode>_fastmath): Ditto.
25029 (*nmadd3<mode>_fastmath): Ditto.
25030 (*nmsub4<mode>): Ditto.
25031 (*nmsub3<mode>): Ditto.
25032 (*nmsub4<mode>_fastmath): Ditto.
25033 (*nmsub3<mode>_fastmath): Ditto.
25035 2015-04-24 Jason Merrill <jason@redhat.com>
25038 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
25039 down when building TYPE_CANONICAL.
25040 (build_pointer_type_for_mode): Likewise.
25042 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
25044 * genrecog.c (validate_pattern): Check matching constraint refers
25045 to a lower numbered operand.
25047 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
25050 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
25051 save to independent variables use the Save attribute. This will
25052 allow these options to be modified with the #pragma/attribute
25054 (-mallow-movmisalign): Likewise.
25055 (-mallow-df-permute): Likewise.
25056 (-msched-groups): Likewise.
25057 (-malways-hint): Likewise.
25058 (-malign-branch-targets): Likewise.
25059 (-mvectorize-builtins): Likewise.
25060 (-msave-toc-indirect): Likewise.
25062 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
25063 can be set via the #pragma/attribute target support.
25064 (rs6000_opt_vars): Likewise.
25065 (rs6000_inner_target_options): If VSX was set, also set
25066 -mno-avoid-indexed-addresses.
25068 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25070 * config/arm/iterators.md (shiftable_ops): Rename to...
25071 (SHIFTABLE_OPS): ... This. Update use in comments.
25072 (ior_xor): Rename to...
25073 (IOR_XOR): ... This.
25074 (vqh_ops): Rename to...
25075 (VQH_OPS): ... This.
25076 (vqhs_ops): Rename to...
25077 (VQHS_OPS): ... This.
25078 (rshifts): Rename to...
25079 (RSHIFTS): ... This.
25080 (returns): Rename to...
25081 (RETURNS): ... This.
25082 * config/arm/arm.md: Update uses of the above.
25083 * config/arm/neon.md: Likewise.
25085 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25087 * config.host (case ${host}): Add aarch64*-*-linux case.
25088 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
25089 fields to all the cores.
25090 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
25091 Add MCPU_MTUNE_NATIVE_SPECS.
25092 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
25093 field to all extensions.
25094 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
25095 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
25096 Adjust definition of AARCH64_OPT_EXTENSION.
25097 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
25098 (MCPU_MTUNE_NATIVE_SPECS): Define.
25099 * config/aarch64/driver-aarch64.c: New file.
25100 * config/aarch64/x-arch64: New file.
25101 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
25104 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
25105 Wei Mi <wmi@google.com>
25107 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
25108 * config/i386/i386.c (extract_base_offset_in_addr): New function.
25109 (ix86_operands_ok_for_move_multiple): Ditto.
25110 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
25111 (movlpd/movhpd to movupd peephole2): Ditto.
25113 2015-04-24 Marek Polacek <polacek@redhat.com>
25116 * input.h (from_macro_expansion_at): Define.
25119 * doc/invoke.texi: Update description of -Wlogical-op.
25121 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
25123 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
25124 ternary operator in fprintf and harmonize spacing.
25126 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
25128 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
25129 Mark operand1 commutative.
25131 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
25133 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
25134 input operands in memory.
25135 (*vec_concatv2si_sse4_1): Ditto.
25136 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
25137 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
25139 (vec_extract_hi_v32hi): Ditto.
25140 (vec_extract_hi_v64hi): Ditto.
25141 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
25143 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
25144 Steven Bosscher <steven@gcc.gnu.org>
25146 PR rtl-optimization/34503
25147 * cprop.c (cprop_reg_p): New.
25148 (hash_scan_set): Use above function to check if register can be
25150 (find_avail_set): Return up to two sets, one whose source is a
25151 register and one whose source is a constant. Sets are returned in an
25152 array passed as parameter rather than as a return value.
25153 (cprop_insn): Use a do while loop rather than a goto. Try each of the
25154 sets returned by find_avail_set, starting with the one whose source is
25155 a constant. Use cprop_reg_p to check if register can be propagated.
25156 (do_local_cprop): Use cprop_reg_p to check if register can be
25158 (implicit_set_cond_p): Likewise.
25160 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25162 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
25163 (sem_function::equals): IGNORED_NODES parameter is now unused;
25164 update call of equals_private.
25165 (sem_function::equals_private): Do not call equals_wpa; skip
25166 gimple body matching if there is no body.
25167 (sem_function::init): Add logic to hash tthunk info.
25168 (sem_function::parse): Also parse thunks.
25169 * ipa-icf.h (equals_private): Update declaration.
25171 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25173 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
25174 asterisk from name so this can be generated directly.
25175 (*altivec_stvx_<mode>_internal): Likewise.
25176 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
25177 that this is never called during or after reload/lra.
25178 (rs6000_frame_related): Remove split_reg
25179 argument and logic that references it.
25180 (emit_frame_save): Remove last parameter from call to
25181 rs6000_frame_related.
25182 (rs6000_emit_prologue): Remove last parameter from eight calls to
25183 rs6000_frame_related. Force generation of stvx instruction for
25184 Altivec register saves. Remove split_reg handling, which is no
25186 (rs6000_emit_epilogue): Force generation of lvx instruction for
25187 Altivec register restores.
25189 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25191 * config/rs6000/rs6000.opt (mcrypto): Change option description to
25192 match category changes in ISA 2.07B.
25194 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25196 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
25198 (cmp_op, cmp_type): New code attributes.
25199 (NEON_VCMP, NEON_VACMP): New int iterators.
25200 (cmp_op_unsp): New int attribute.
25201 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
25202 (neon_vceq<mode>): Delete.
25203 (neon_vc<cmp_op><mode>_insn): New pattern.
25204 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
25205 (neon_vcgeu<mode>): Delete.
25206 (neon_vcle<mode>): Likewise.
25207 (neon_vclt<mode>: Likewise.
25208 (neon_vcage<mode>): Likewise.
25209 (neon_vcagt<mode>): Likewise.
25210 (neon_vca<cmp_op><mode>): New define_expand.
25211 (neon_vca<cmp_op><mode>_insn): New pattern.
25212 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
25214 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25216 * tree.h (attribute_value_equal): Declare.
25217 * tree.c (attribute_value_equal): Export.
25219 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25221 * ipa-icf.c (sem_item::compare_attributes): New function.
25222 (sem_item::compare_referenced_symbol_properties): Compare variable
25224 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
25225 (sem_function::param_used_p): New function.
25226 (sem_function::equals_wpa): Fix attribute comparsion; match
25227 parameter type codes; do not compare paremter flags when
25228 they are not used; compare edge flags; compare indirect calls.
25229 (sem_item::update_hash_by_addr_refs): Hash reference type.
25230 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
25231 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
25232 reference use type.
25233 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
25234 * ipa-icf.h (compare_attributes, param_used_p): Declare.
25236 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25238 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
25240 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
25241 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
25242 (sem_item::compare_referenced_symbol_properties): New.
25243 (sem_item::hash_referenced_symbol_properties): New.
25244 (sem_item::compare_cgraph_references): Rename to ...
25245 (sem_item::compare_symbol_references): ... this one; use
25246 compare_referenced_symbol_properties.
25247 (sem_function::equals_wpa): Do not compare
25248 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
25249 DECL_IS_OPERATOR_NEW; compare pointer sizes.
25250 (sem_item::update_hash_by_addr_refs): Call
25251 hash_referenced_symbol_properties.
25252 (sem_item::update_hash_by_local_refs): Cleanup.
25253 (sem_function::merge): Do not mix up symbol properties.
25254 (sem_variable::equals_wpa): Use compare_symbol_references.
25255 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
25256 (sem_item::hash_referenced_symbol_properties): New.
25257 (sem_item::compare_symbol_references): New.
25258 (sem_item::compare_cgraph_references): Remove.
25260 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
25263 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
25264 Emit size of local.
25266 2015-04-23 Nick Clifton <nickc@redhat.com>
25268 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
25269 ATTRIBUTE_UNUSED to x parameter.
25270 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
25272 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25274 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
25275 TARGET_CRYPTO to TARGET_P8_VECTOR>
25276 (crypto_vpermxor_<mode>): Likewise.
25277 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
25278 (BU_CRYPTO_3A): Likewise.
25279 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
25280 (BU_CRYPTO_OVERLOAD_3A): New #define.
25281 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
25282 (VPMSUMH): Likewise.
25283 (VPMSUMW): Likewise.
25284 (VPMSUMD): Likewise.
25285 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
25286 (VPERMXOR_V4SI): Likewise.
25287 (VPERMXOR_V8HI): Likewise.
25288 (VPERMXOR_V16QI): Likewise.
25289 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
25290 BU_CRYPTO_OVERLOAD_2A.
25291 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
25292 BU_CRYPTO_OVERLOAD_3A.
25293 * config/rs6000/rs6000.opt (mcrypto): Change description of
25296 2015-04-23 Richard Biener <rguenther@suse.de>
25298 * passes.def: Remove copy propagation passes run directly after CCP.
25299 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
25301 (ccp_visit_phi_node): Rework to handle first executable edge
25304 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
25306 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
25307 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
25308 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
25309 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
25310 (thumb_legimitimize_reload_address): Remove.
25311 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
25313 (thumb_legimitimize_reload_address): Remove.
25315 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25317 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
25319 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25321 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
25323 (store_multiple): Likewise.
25325 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25327 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
25328 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
25329 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
25330 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
25331 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
25332 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
25333 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
25334 Specify issue_rate value.
25335 (arm_issue_rate): Look up issue rate from tuning structs. Remove
25336 large switch statement.
25337 (arm_marvell_pj4_tune): New struct.
25338 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
25341 2015-04-23 Richard Biener <rguenther@suse.de>
25343 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
25344 (vect_find_last_store_in_slp_instance): Rename to ...
25345 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
25346 (vect_analyze_slp_cost_1): Use vector_load for constant defs
25347 and vec_construct for external defs when estimating prologue cost.
25348 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
25349 Compute costs here only when vectorizing loops.
25350 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
25351 have been determined.
25352 (vect_schedule_slp_instance): Simplify vectorized code placement
25353 and prepare for in-BB external defs.
25354 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
25355 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
25356 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
25358 (vect_model_load_cost): Likewise.
25359 (vectorizable_store): Instead add it here.
25360 (vectorizable_load): Likewise.
25361 (vect_is_simple_use): Dump def type textually.
25363 2015-04-23 Richard Biener <rguenther@suse.de>
25365 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
25366 * cfgloop.c (verify_loop_structure): Verify the root loop node.
25367 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
25368 instead of get_eh_region_from_lp_number.
25369 * loop-init.c (fix_loop_structure): If we removed a loop, reset
25372 2015-04-23 Anton Blanchard <anton@samba.org>
25374 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
25375 need for -mprofile-kernel to save LR to stack.
25377 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25379 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
25381 (insn_is_swappable_p): Return 1 for a convert from double to
25382 single precision when all of its uses are splats of BE element
25385 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
25387 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
25389 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25392 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
25393 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
25394 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
25396 (rs6000_builtin_mask_for_load): Return 0 for targets with
25397 efficient unaligned VSX accesses so that the vectorizer will use
25398 direct unaligned loads.
25399 (rs6000_builtin_support_vector_misalignment): Always return true
25400 for targets with efficient unaligned VSX accesses.
25401 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
25402 stores on targets with efficient unaligned VSX accesses is almost
25403 always the same as the cost of an aligned load or store, so model
25405 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
25406 unaligned vectors if we have efficient unaligned VSX accesses.
25407 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
25408 undocumented option.
25410 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25413 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
25415 * config.gcc (LIBC_MUSL): New tm_defines macro.
25416 * config/linux.h (OPTION_MUSL): Define.
25417 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
25418 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
25419 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
25421 * config/linux.opt (mmusl): New option.
25422 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
25423 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
25425 * configure: Regenerate.
25427 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
25429 * config.gcc (LIBC_MUSL): New tm_defines macro.
25430 * config/linux.h (OPTION_MUSL): Define.
25431 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
25432 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
25433 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
25435 * config/linux.opt (mmusl): New option.
25436 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
25437 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
25439 * configure: Regenerate.
25441 2015-04-22 Yury Gribov <y.gribov@samsung.com>
25443 * doc/invoke.texi (-fsanitize-sections): Update description.
25444 * asan.c (set_sanitized_sections): Parse incoming arg.
25445 (section_sanitized_p): Support wildcards.
25447 2015-04-22 Tom de Vries <tom@codesourcery.com>
25449 PR tree-optimization/65823
25450 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
25451 equality between ap_copy and ap.
25453 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25456 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
25458 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25461 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
25463 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25466 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
25467 remove already contained t-files.
25469 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25471 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
25472 Remove unneeded forward declarations.
25473 (suitable_for_tail_call_opt_p): Commentary typo fix.
25475 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25477 * varasm.c (emit_bss): Remove redundant guard.
25479 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25481 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
25483 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25485 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
25487 2015-04-22 Hale Wang <hale.wang@arm.com>
25488 Terry Guo <terry.guo@arm.com>
25490 PR rtl-optimization/64818
25491 * combine.c (can_combine_p): Don't combine user-specified
25492 register if it is in an asm input.
25494 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
25497 * passes.def (early_optimizations): Add pass_dse.
25499 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25501 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
25502 * reorg.c (redundant_insn): Remove ifdef
25503 INSN_REFERENCES_ARE_DELAYED.
25504 * resource.c (mark_referenced_resources): Likewise.
25506 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25508 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
25509 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
25510 * resource.c (mark_set_resources): Likewise.
25512 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25514 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
25515 * cfgcleanup.c (flow_find_cross_jump): Likewise.
25516 (flow_find_head_matching_sequence): Likewise.
25517 (try_head_merge_bb): Likewise.
25518 * combine.c (can_combine_p): Likewise.
25519 (try_combine): Likewise.
25520 (distribute_notes): Likewise.
25521 * df-problems.c (can_move_insns_across): Likewise.
25522 * final.c (final): Likewise.
25523 * gcse.c (insert_insn_end_basic_block): Likewise.
25524 * ira.c (find_moveable_pseudos): Likewise.
25525 * reorg.c (try_merge_delay_insns): Likewise.
25526 (fill_simple_delay_slots): Likewise.
25527 (fill_slots_from_thread): Likewise.
25528 * sched-deps.c (sched_analyze_2): Likewise.
25530 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25532 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
25533 PIC_OFFSET_TABLE_REGNUM.
25535 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25537 * alias.c (init_alias_target): Remove ifdef
25538 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
25539 * df-scan.c (df_insn_refs_collect): Likewise.
25540 (df_get_regular_block_artificial_uses): Likewise.
25541 (df_get_eh_block_artificial_uses): Likewise.
25542 (df_get_entry_block_def_set): Likewise.
25543 (df_get_exit_block_use_set): Likewise.
25544 * emit-rtl.c (gen_rtx_REG): Likewise.
25545 * ira.c (ira_setup_eliminable_regset): Likewise.
25546 * reginfo.c (init_reg_sets_1): Likewise.
25547 * regrename.c (rename_chains): Likewise.
25548 * reload1.c (reload): Likewise.
25549 (eliminate_regs_in_insn): Likewise.
25550 * resource.c (mark_referenced_resources): Likewise.
25551 (init_resource_info): Likewise.
25553 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25555 * defaults.h (MASK_RETURN_ADDR): New definition.
25556 * except.c (expand_builtin_extract_return_addr): Remove ifdef
25559 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25561 * defaults.h (RETURN_ADDR_OFFSET): New definition.
25562 * except.c (expand_builtin_extract_return_addr): Remove ifdef
25563 RETURN_ADDR_OFFSET.
25564 (expand_builtin_frob_return_addr): Likewise.
25566 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25568 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
25569 (try_redirect_by_replacing_jump): Likewise.
25570 (rtl_tidy_fallthru_edge): Likewise.
25571 * combine.c (insn_a_feeds_b): Likewise.
25572 (find_split_point): Likewise.
25573 (simplify_set): Likewise.
25574 * cprop.c (cprop_jump): Likewise.
25575 * cse.c (cse_extended_basic_block): Likewise.
25576 * df-problems.c (can_move_insns_across): Likewise.
25577 * function.c (emit_use_return_register_into_block): Likewise.
25578 * haifa-sched.c (sched_init): Likewise.
25579 * ira.c (find_moveable_pseudos): Likewise.
25580 * loop-invariant.c (find_invariant_insn): Likewise.
25581 * lra-constraints.c (curr_insn_transform): Likewise.
25582 * postreload.c (reload_combine_recognize_const_pattern):
25584 * reload.c (find_reloads): Likewise.
25585 * reorg.c (delete_scheduled_jump): Likewise.
25586 (steal_delay_list_from_target): Likewise.
25587 (steal_delay_list_from_fallthrough): Likewise.
25588 (redundant_insn): Likewise.
25589 (fill_simple_delay_slots): Likewise.
25590 (fill_slots_from_thread): Likewise.
25591 (delete_computation): Likewise.
25592 * sched-rgn.c (add_branch_dependences): Likewise.
25594 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25596 * genconfig.c (main): Always define HAVE_cc0.
25597 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
25599 * cfgcleanup.c (flow_find_cross_jump): Likewise.
25600 (flow_find_head_matching_sequence): Likewise.
25601 (try_head_merge_bb): Likewise.
25602 * cfgrtl.c (rtl_merge_blocks): Likewise.
25603 (try_redirect_by_replacing_jump): Likewise.
25604 (rtl_tidy_fallthru_edge): Likewise.
25605 * combine.c (do_SUBST_MODE): Likewise.
25606 (insn_a_feeds_b): Likewise.
25607 (combine_instructions): Likewise.
25608 (can_combine_p): Likewise.
25609 (try_combine): Likewise.
25610 (find_split_point): Likewise.
25612 (simplify_set): Likewise.
25613 (distribute_notes): Likewise.
25614 * cprop.c (cprop_jump): Likewise.
25615 * cse.c (cse_extended_basic_block): Likewise.
25616 * df-problems.c (can_move_insns_across): Likewise.
25617 * final.c (final): Likewise.
25618 (final_scan_insn): Likewise.
25619 * function.c (emit_use_return_register_into_block): Likewise.
25620 * gcse.c (insert_insn_end_basic_block): Likewise.
25621 * haifa-sched.c (sched_init): Likewise.
25622 * ira.c (find_moveable_pseudos): Likewise.
25623 * loop-invariant.c (find_invariant_insn): Likewise.
25624 * lra-constraints.c (curr_insn_transform): Likewise.
25625 * optabs.c (prepare_cmp_insn): Likewise.
25626 * postreload.c (reload_combine_recognize_const_pattern):
25628 * reload.c (find_reloads): Likewise.
25629 (find_reloads_address_1): Likewise.
25630 * reorg.c (delete_scheduled_jump): Likewise.
25631 (steal_delay_list_from_target): Likewise.
25632 (steal_delay_list_from_fallthrough): Likewise.
25633 (try_merge_delay_insns): Likewise.
25634 (redundant_insn): Likewise.
25635 (fill_simple_delay_slots): Likewise.
25636 (fill_slots_from_thread): Likewise.
25637 (delete_computation): Likewise.
25638 (relax_delay_slots): Likewise.
25639 * sched-deps.c (sched_analyze_2): Likewise.
25640 * sched-rgn.c (add_branch_dependences): Likewise.
25642 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25644 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
25645 that is trivially ded on non cc0 targets.
25646 (simplify_set): Likewise.
25647 (mark_used_regs_combine): Likewise.
25648 * cse.c (new_basic_block): Likewise.
25649 (fold_rtx): Likewise.
25650 (cse_insn): Likewise.
25651 (cse_extended_basic_block): Likewise.
25652 (set_live_p): Likewise.
25653 * rtlanal.c (canonicalize_condition): Likewise.
25654 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
25656 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25658 * conditions.h: Define macros even if HAVE_cc0 is undefined.
25659 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
25660 * final.c: Likewise.
25661 * jump.c: Likewise.
25662 * recog.c: Likewise.
25663 * recog.h: Declare functions even when HAVE_cc0 is undefined.
25664 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
25666 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25668 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
25669 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
25670 * builtins.c (expand_builtin): Remove check if
25671 EH_RETURN_DATA_REGNO is defined.
25672 * df-scan.c (df_bb_refs_collect): Likewise.
25673 (df_get_exit_block_use_set): Likewise.
25674 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
25675 * ira-lives.c (process_bb_node_lives): Likewise.
25676 * lra-lives.c (process_bb_lives): Likewise.
25678 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
25680 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
25681 FIRST_PSEUDO_REG): New.
25682 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
25683 (ARG_POINTER_REGNUM): Define to ARGP_REG.
25684 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
25685 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
25686 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
25687 (FIRST_INT_REG): New.
25688 (LAST_INT_REG): New.
25689 (FIRST_*_REG): Define using *_REG.
25690 (LAST_*_REG): Ditto.
25691 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
25692 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
25693 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
25695 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25697 * expmed.c: (synth_mult): Only assume overlapping
25698 shift with previous steps in alg_sub_t_m2 case.
25700 2015-04-21 Richard Biener <rguenther@suse.de>
25702 PR tree-optimization/65650
25703 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
25704 transitions involving copies.
25705 (set_lattice_value): Adjust for copy lattice state.
25706 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
25707 if that doesn't dominate the merge point.
25708 (bit_value_unop): Adjust what we treat as varying mask.
25709 (bit_value_binop): Likewise.
25710 (bit_value_assume_aligned): Likewise.
25711 (evaluate_stmt): When we simplified to a SSA name record a copy
25712 instead of dropping to varying.
25713 (visit_assignment): Simplify.
25715 * gimple-match.h (gimple_simplify): Add another callback.
25716 * gimple-fold.c (fold_stmt_1): Adjust caller.
25717 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
25718 for the 2nd callback.
25719 * gimple-match-head.c (gimple_simplify): Add a callback that is
25720 used to valueize the stmt operands and use it that way.
25722 2015-04-21 Richard Biener <rguenther@suse.de>
25724 PR tree-optimization/65788
25725 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
25727 2015-04-21 Richard Biener <rguenther@suse.de>
25729 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
25730 vec_construct cost by vec_stmt_cost.
25732 2015-04-21 Richard Biener <rguenther@suse.de>
25734 * cfghooks.h (create_basic_block): Replace with two overloads
25735 for RTL and GIMPLE.
25736 (split_block): Likewise.
25737 * cfghooks.c (split_block): Rename to ...
25738 (split_block_1): ... this.
25739 (split_block): Add two type-safe overloads for RTL and GIMPLE.
25740 (split_block_after_labels): Call split_block_1.
25741 (create_basic_block): Rename to ...
25742 (create_basic_block_1): ... this.
25743 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
25744 (create_empty_bb): Call create_basic_block_1.
25745 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
25746 split_block_after_labels.
25747 * omp-low.c (expand_parallel_call): Likewise.
25748 (expand_omp_target): Likewise.
25749 (simd_clone_adjust): Likewise.
25750 * tree-chkp.c (chkp_get_entry_block): Likewise.
25751 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
25752 create_basic_block overload.
25753 (cgraph_node::expand_thunk): Likewise.
25754 * tree-cfg.c (make_blocks): Likewise.
25755 (handle_abnormal_edges): Likewise.
25756 * tree-inline.c (copy_bb): Likewise.
25758 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25760 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
25762 (*xor_one_cmplsidi3_ze): Likewise.
25764 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
25766 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
25767 use df_remove_problem rather than manually removing problems, leaving
25768 holes in df->problems_in_order[].
25770 2015-04-21 Tom de Vries <tom@codesourcery.com>
25772 PR tree-optimization/65802
25773 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
25775 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25777 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
25779 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
25780 at '.'. Assert that there's enough space for everything.
25782 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
25784 PR tree-optimization/64950
25786 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
25789 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
25792 2015-04-20 Shiva Chen <shiva0217@gmail.com>
25794 PR rtl-optimization/64916
25795 * cfgcleanup.c (values_equal_p): New function.
25796 (can_replace_by): Use it.
25798 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
25801 * doc/invoke.texi ([-Wnarrowing]): Update.
25803 2015-04-20 Jeff Law <law@redhat.com>
25805 PR tree-optimization/65658
25806 * tree-ssa-threadupdate.c (redirection_block_p): Remove
25807 redundant test for GIMPLE_ASSIGN in last change.
25809 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
25811 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
25812 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
25813 (legitimize_tls_address): Ditto.
25814 (ix86_expand_move): Ditto.
25815 (ix86_expand_binary_operator): Remove reload_in_progress checks.
25816 (ix86_expand_unary_operator): Ditto.
25817 * config/i386/predicates.md (index_register_operand): Ditto.
25819 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
25821 * reorg.c (try_merge_delay_insns): Improve correctness checking
25822 for targets with multiple delay slots.
25824 2015-04-20 Jeff Law <law@redhat.com>
25826 PR tree-optimization/65658
25827 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
25830 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
25832 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
25833 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
25836 2015-04-20 Jakub Jelinek <jakub@redhat.com>
25839 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
25841 2015-04-20 Richard Biener <rguenther@suse.de>
25843 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
25844 * gimple-fold.c (gimple_build_valueize): New function.
25845 (gimple_build): Always use gimple_build_valueize as valueize hook.
25847 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
25850 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
25851 and overwrite variable parts if <= 1/2 the elements are variable.
25853 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
25855 PR rtl-optimization/65805
25856 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
25857 Don't use difference of offset and previous offset if
25858 update_sp_offset is non-zero.
25859 (eliminate_regs_in_insn): Ditto.
25860 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
25861 lra_eliminate_regs_1 call.
25862 * lra-constraints.c (get_equiv_with_elimination): Ditto.
25864 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
25866 * hash-table.h: Remove version of hash_table that stored value_type *.
25867 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
25868 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
25869 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
25870 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
25871 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
25872 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
25873 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
25874 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
25875 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
25876 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
25877 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
25878 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
25879 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
25880 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
25881 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
25882 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
25884 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25885 Jakub Jelinek <jakub@redhat.com>
25888 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
25889 subsequent SH_NONE operand does not overwrite an existing *special
25891 (adjust_extract): Handle case where a vec_extract operation is
25892 wrapped in a PARALLEL.
25894 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
25897 * config/i386/i386.c (ix86_binds_local_p): Define only if
25898 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
25900 2015-04-17 Jeff Law <law@redhat.com>
25902 PR tree-optimization/47679
25903 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
25904 * tree-ssa-scopedtables.c: New file.
25905 * tree-ssa-scopedtables.h: New file.
25906 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
25907 (const_and_copies): Change name/type.
25908 (record_const_or_copy): Move into tree-ssa-scopedtables.c
25909 (record_const_or_copy_1): Similarly.
25910 (restore_vars_to_original_value): Similarly.
25911 (pass_dominator::execute): Create and destroy const_and_copies table.
25912 (thread_across_edge): Update passing of const_and_copies.
25913 (record_temporary_equivalence): Use method calls rather than
25914 manipulating const_and_copies directly.
25915 (record_equality, cprop_into_successor_phis): Similarly.
25916 (dom_opt_dom_walker::before_dom_children): Similarly.
25917 (dom_opt_dom_walker::after_dom_children): Similarly.
25918 (eliminate_redundant_computations): Similarly.
25919 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
25920 (record_temporary_equivalence): Likewise.
25921 (invalidate_equivalences): Likewise.
25922 (record_temporary_equivalences_from_phis): Update due to type
25923 change of const_and_copies. Use method calls rather than
25924 manipulating the stack directly.
25925 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
25926 (thread_through_normal_block, thread_across_edge): Likewise.
25927 (thread_across_edge): Likewise.
25928 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
25929 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
25931 (identify_jump_threads): Update due to type change of equiv_stack.
25932 (finalize_jump_threads): Delete the equiv_stack when complete.
25934 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
25936 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
25937 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
25938 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
25940 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
25943 * config.gcc: Exit with a comment when we do not have a major version
25944 number for the FreeBSD target.
25946 2015-04-17 Jakub Jelinek <jakub@redhat.com>
25949 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
25950 maybe_allows_mem bitfields.
25951 (maybe_allows_none_start, maybe_allows_none_end,
25952 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
25953 maybe_allows_mem_end): New variables.
25954 (compute_maybe_allows): New function.
25955 (add_constraint): Use it to initialize maybe_allows_reg and
25956 maybe_allows_mem fields.
25957 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
25958 is_address constraints such that those that allow neither mem nor
25959 reg come first, then those that only allow reg but not mem, then
25960 those that only allow mem but not reg, then the rest.
25961 (write_allows_reg_mem_function): New function.
25962 (write_tm_preds_h): Call it.
25963 * stmt.c (parse_output_constraint, parse_input_constraint): Use
25964 the generated insn_extra_constraint_allows_reg_mem function
25965 instead of always setting *allows_reg = true; *allows_mem = true;
25966 for unknown extra constraints.
25968 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
25971 * output.h (default_binds_local_p_3): New.
25972 * varasm.c (default_binds_local_p_3): Make it public. Take an
25973 argument to indicate if common symbol may be local. If common
25974 symbol may be local, treat non-external variable as defined
25976 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
25977 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
25978 * config/i386/i386.c (ix86_binds_local_p): New.
25979 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
25980 ix86_binds_local_p.
25982 2015-04-17 Jakub Jelinek <jakub@redhat.com>
25985 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
25986 trying mem_loc_descriptor on XEXP (rtl, 0).
25988 2015-04-17 Martin Liska <mliska@suse.cz>
25990 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
25991 Release symbol_compare_collection.
25992 * ipa-reference.c: Add TODO that a vector should be released.
25994 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
25997 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
25998 to new AVR-LibC file layout (bug #44574).
25999 (*avrlibc_devicelib): Same.
26000 * config/avr/avr-mcus.def: Adjust comments.
26001 * config/avr/avr.opt (nodevicelib): Adjust help.
26003 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
26005 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
26007 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
26010 * gimplify.c (gimplify_init_constructor): Always emit a
26011 side-effecting constructor.
26013 2015-04-17 Tom de Vries <tom@codesourcery.com>
26015 PR tree-optimization/64950
26016 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
26017 in cfun->curr_properties.
26018 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
26019 if we generate an IFN_VA_ARG.
26020 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
26021 function if PROP_gimple_lva is not set in src function.
26023 2015-04-17 Tom de Vries <tom@codesourcery.com>
26024 Michael Matz <matz@suse.de>
26026 PR tree-optimization/64950
26027 * gimple-iterator.c (update_modified_stmts): Remove static.
26028 * gimple-iterator.h (update_modified_stmts): Declare.
26029 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
26030 (gimplify_va_arg_internal): New function.
26031 (gimplify_va_arg_expr): Use IFN_VA_ARG.
26032 * gimplify.h (gimplify_va_arg_internal): Declare.
26033 * internal-fn.c (expand_VA_ARG): New unreachable function.
26034 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
26035 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
26036 (expand_ifn_va_arg): New function.
26037 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
26038 (pass_stdarg::execute): Call expand_ifn_va_arg.
26039 (pass_data_lower_vaarg): New pass_data.
26040 (pass_lower_vaarg): New gimple_opt_pass.
26041 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
26042 (make_pass_lower_vaarg): New function.
26043 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
26044 properties_required field.
26045 * passes.def (all_passes): Add pass_lower_vaarg.
26046 * tree-pass.h (PROP_gimple_lva): Add define.
26047 (make_pass_lower_vaarg): Declare.
26049 2015-04-17 Tom de Vries <tom@codesourcery.com>
26051 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
26052 * calls.c (call_expr_flags): Same.
26054 2015-04-17 Tom de Vries <tom@codesourcery.com>
26056 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
26057 (pass_stdarg::execute): ... here.
26059 2015-04-17 Tom de Vries <tom@codesourcery.com>
26060 Michael Matz <matz@suse.de>
26062 * tree-cfg.c (make_blocks_1): Factor out of ...
26063 (make_blocks): ... here.
26064 (make_edges_bb): Factor out of ...
26065 (make_edges): ... here.
26066 (gimple_find_sub_bbs): New function.
26067 * tree-cfg.h (gimple_find_sub_bbs): Declare.
26069 2015-04-17 Tom de Vries <tom@codesourcery.com>
26071 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
26073 2015-04-17 Yury Gribov <y.gribov@samsung.com>
26075 * asan.c (set_sanitized_sections): New function.
26076 (section_sanitized_p): Ditto.
26077 (asan_protect_global): Optionally sanitize user-defined
26079 * asan.h (set_sanitized_sections): Declare new function.
26080 * common.opt (fsanitize-sections): New option.
26081 * doc/invoke.texi (-fsanitize-sections): Document new option.
26082 * opts-global.c (handle_common_deferred_options): Handle new
26085 2015-04-17 Jakub Jelinek <jakub@redhat.com>
26088 * dwarf2out.c (loc_list_from_tree): Return NULL
26089 for DEBUG_EXPR_DECL.
26091 2015-04-17 Christian Bruel <christian.bruel@st.com>
26093 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
26096 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
26098 * ira-color.c (setup_left_conflict_sizes_p): Do not process
26099 node itself when computing left conflict subnode size.
26101 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
26103 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
26104 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
26105 *fop_<mode>_1_sse using enabled attribute. Use
26106 register_mixssei387nonimm_operand operand 1 predicate. Change
26107 alternative 3 constraints from "x" to "v".
26109 2015-04-16 Richard Biener <rguenther@suse.de>
26111 PR tree-optimization/65774
26112 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
26113 bit-value tracking on.
26115 2015-04-16 Richard Biener <rguenther@suse.de>
26117 PR tree-optimization/64277
26118 * tree-vrp.c (check_array_ref): Fix anti-range handling,
26119 simplify upper bound handling.
26120 (search_for_addr_array): Simplify.
26121 (check_array_bounds): Handle ADDR_EXPRs here.
26122 (check_all_array_refs): Simplify.
26124 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
26126 * config/i386/i386.c (print_reg): Rewrite function.
26128 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26130 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
26131 Invert the condition.
26133 2015-04-16 Renlin Li <renlin.li@arm.com>
26135 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
26136 simplifications for UNSIGNED_FLOAT.
26138 2015-04-16 Nick Clifton <nickc@redhat.com>
26140 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
26142 (enum rl78_cpu_type): New.
26143 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
26144 (umulhi3_shift_virt): Remove m constraint from operand 1.
26145 (umulqihi3_virt): Likewise.
26146 * config/rl78/rl78.c (rl78_option_override): Add code to process
26147 -mcpu and -mmul options.
26148 (rl78_alloc_physical_registers): Add code to handle divhi and
26149 divsi valloc attributes.
26150 (set_origin): Likewise.
26151 * config/rl78/rl78.h (RL78_MUL_G14): Define.
26152 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
26153 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
26155 (ASM_SPEC): Pass -mcpu on to assembler.
26156 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
26157 (mulqi3_rl78): Likewise.
26158 (mulhi3_g13): Likewise.
26159 (mulhi3): Generate the G13 or G14 versions of the insn directly.
26160 (mulsi3): Likewise.
26161 (mulhi3_g14): Add clobbers of AX and BC.
26162 (mulsi3_g14): Likewise.
26163 (mulsi3_g13): Likewise.
26164 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
26165 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
26166 * config/rl78/rl78.opt (mmul): Initialise value to
26168 (mcpu): New option.
26169 (m13, m14, mrl78): New option aliases.
26170 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
26171 (MULTILIB_DIRNAMES): Add g13 and g14.
26172 * doc/invoke.texi: Document -mcpu and -mmul options.
26174 2015-04-16 Richard Biener <rguenther@suse.de>
26176 * tree-ssa-ccp.c (likely_value): See if we have operands that
26177 are marked as never simulate again and return CONSTANT in this
26179 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
26180 not have any operands that will be simulated again as
26181 not being simulated again.
26183 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
26185 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
26186 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
26187 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
26189 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
26191 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
26192 *float<SWI48:mode><MODEF:mode>2_sse.
26193 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
26195 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
26198 2015-04-15 Tom de Vries <tom@codesourcery.com>
26201 * function.c (push_dummy_function): New function.
26202 (init_dummy_function_start): Use push_dummy_function.
26203 (pop_dummy_function): New function. Factored out of ...
26204 (expand_dummy_function_end): ... here.
26205 * function.h (push_dummy_function, pop_dummy_function): Declare.
26206 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
26207 pop_dummy_function.
26208 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
26210 2015-04-15 Jeff Law <law@redhat.com>
26212 PR tree-optimization/47679
26213 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
26214 need for forward declaration in upcoming changes.
26215 (record_conditions, record_edge_info): Likewise.
26217 PR rtl-optimization/42522
26218 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
26219 SIGN_EXTRACT as a whole object rather than simplifying
26222 2015-04-15 Jakub Jelinek <jakub@redhat.com>
26225 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
26226 and GIMPLE_PREDICT use break instead of return true. For
26227 GIMPLE_EH_DISPATCH, compare dispatch region.
26229 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
26231 * doc/extend.texi (__sync Builtins): Simplify some text. Update
26232 details about the implementation. Make clear preference for
26233 __atomic builtins. Reduce possibility of future change.
26235 2015-04-15 Nick Clifton <nickc@redhat.com>
26237 * config/rx/rx.opt (mallow-string-insns): New option.
26238 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
26239 builtin if string instructions are denied.
26240 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
26241 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
26243 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
26244 * config/rx/rx.md (movstr): Enable pattern only if string
26245 instructions are allowed.
26246 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
26247 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
26248 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
26249 (MULTILIB_DIRNAMES): Add no-strings.
26250 * doc/invoke.texi: Document -mno-allow-string-insns.
26252 2015-04-15 Alan Modra <amodra@gmail.com>
26256 PR middle-end/36043
26257 * calls.c (load_register_parameters): Don't load past end of
26258 mem unless suitably aligned.
26260 2015-04-15 Nick Clifton <nickc@redhat.com>
26262 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
26263 decrement instruction as being frame related.
26264 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
26266 If zero extending a function address enclose the operation in
26268 (rl78_preferred_reload_class): New function.
26269 (TARGET_PREFERRED_RELOAD_CLASS): Define.
26270 * config/rl78/rl78.md: Remove useless constraints in expanders.
26271 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
26272 (mulhi3_rl78): Likewise.
26273 (mulhi3_g13): Likewise.
26274 (mulsi3_rl78): Likewise.
26275 (es_addr): Move to before the multiply patterns.
26277 2015-04-15 Alan Modra <amodra@gmail.com>
26279 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
26280 and sequence_stack. Add seq.
26281 (seq_stack): Delete.
26282 * function.c (prepare_function_start): Don't access x_last_insn.
26283 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
26284 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
26285 * emit_rtl.c (start_sequence, push_topmost_sequence,
26286 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
26287 sequence accessors.
26288 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
26289 remove_insn): Likewise. Simplify.
26290 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
26291 and pop_topmost_sequence.
26292 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
26294 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
26296 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
26299 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
26302 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
26304 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
26305 (LEGACY_INT_REGNO_P): Ditto.
26306 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
26307 (ANY_MASK_REG_P): Remove.
26308 (BND_REG_P): Rename from ANY_BND_REG_P.
26309 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
26310 legacy integer registers. Do not handle MMX_REG_P in a special way.
26311 Merge 64byte and 32byte SSE handling.
26313 2015-04-14 Nick Clifton <nickc@redhat.com>
26315 * expr.c (expand_assignment): Force an address offset computation
26316 into a register before changing its mode.
26317 (expand_expr_real_1): Likewise.
26319 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
26321 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
26322 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
26323 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
26324 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
26325 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
26326 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
26327 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
26328 and __aarch64_vget_lane_any.
26330 2015-04-14 Jakub Jelinek <jakub@redhat.com>
26332 PR rtl-optimization/65761
26333 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
26334 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
26336 2015-04-14 Richard Biener <rguenther@suse.de>
26338 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
26339 (graphite_can_represent_scev): Use POINTER_TYPE_P.
26341 2015-04-14 Richard Biener <rguenther@suse.de>
26343 PR tree-optimization/65758
26344 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
26346 (ccp_lattice_meet): Likewise.
26347 (bit_value_unop): Likewise.
26348 (bit_value_binop): Likewise.
26349 (bit_value_assume_aligned): Likewise.
26351 2015-04-14 Christian Bruel <christian.bruel@st.com>
26353 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
26356 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
26358 PR tree-optimization/63387
26359 * match.pd ((x unord x) | (y unord y) -> (x unord y),
26360 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
26362 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
26364 * config/i386/predicates.md (any_QIreg_operand): Rename from
26365 q_regs_operand. Do not process subregs.
26366 (QIreg_operand): Use QI_REGNO_P predicate.
26367 (ext_QIreg_operand): Ditto.
26368 (ext_register_operand): Ditto.
26369 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
26370 (AND splitters): Ditto.
26371 (AND with -65536 splitter): Add SWI48 mode for operand 0.
26372 (AND with -256 splitter): Use any_QIreg_operand predicate and
26373 SWI248 mode for operand 0.
26374 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
26375 mode for operand 0.
26376 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
26378 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
26380 * doc/plugins.texi: Rewrite first introductory paragraph.
26382 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26384 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
26385 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
26387 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26389 * ipa-profie.c (ipa_profile): Check number of parameters
26390 and possible polymorphic call targets before
26393 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
26395 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
26396 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
26398 2015-04-13 Richard Biener <rguenther@suse.de>
26400 PR tree-optimization/65204
26401 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
26402 takens for bit-CCP.
26404 2015-04-13 Richard Biener <rguenther@suse.de>
26407 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
26408 and cond_not_taken_branch_cost to 4 and 2.
26409 (bdver2_cost): Likewise.
26410 (bdver3_cost): Likewise.
26411 (bdver4_cost): Likewise.
26413 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26415 * hash-table.h (hash_table constructor): Add mem stats.
26416 (alloc_entries): Likewise.
26418 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26420 * ipa-cp.c (ipcp_driver): Relase prev_edge.
26421 * passes.c (execute_one_pass): Only add transform if pass has one.
26423 2015-04-12 Joseph Myers <joseph@codesourcery.com>
26425 * config/i386/i386.c (ix86_option_override_internal): Don't set
26426 -fprefetch-loop-arrays if optimizing for size.
26428 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26429 Gerald Pfeifer <gerald@pfeifer.com>
26431 * doc/contrib.texi (Contributors): Add Martin Jambor and
26434 2015-04-12 Jakub Jelinek <jakub@redhat.com>
26436 * BASE-VER: Set to 6.0.0.
26438 PR tree-optimization/65747
26439 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
26440 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
26442 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
26444 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
26445 sentence. Improve grammar.
26447 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
26449 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
26451 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
26454 * ipa-inline-transform.c (speculation_removed): Remove static var.
26455 (check_speculations): New function.
26456 (clone_inlined_nodes): Do not check spculations.
26457 (inline_call): Call check_speculations.
26458 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
26459 consider non-invariants.
26461 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
26462 Martin Liska <mliska@suse.cz>
26465 * ipa-icf.c (sem_item::compare_cgraph_references): function and
26466 variable can not match.
26467 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
26468 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
26470 2015-04-11 Jakub Jelinek <jakub@redhat.com>
26472 PR tree-optimization/65735
26473 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
26474 Remove visited_phis argument, add visited_bbs, avoid recursing into the
26475 same bb rather than just into the same phi node.
26476 (thread_through_normal_block): Adjust caller.
26478 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
26480 * doc/contrib.texi (Contributors): Add Ira Rosen.
26482 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
26484 * gcov.c (find_source): Fix miswording in error message.
26485 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
26486 (ix86_expand_sse_comi_round): Fix typo in error message.
26488 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
26490 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
26492 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
26494 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
26496 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
26499 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
26500 Print bad_spills_num and insn_pseudos_num.
26502 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26505 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
26506 when creating +1 values for SImode.
26508 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
26511 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
26514 2015-04-10 Jakub Jelinek <jakub@redhat.com>
26515 Iain Sandoe <iain@codesourcery.com>
26518 * configure: Regenerate.
26520 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
26523 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
26525 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
26527 * doc/contrib.texi (Contributors): Add John Marino.
26529 2015-04-09 Jakub Jelinek <jakub@redhat.com>
26531 PR tree-optimization/65709
26532 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
26533 TREE_TYPE (TREE_TYPE (t)).
26535 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
26538 * lra-int.h (lra_bad_spill_regno_start): New.
26539 * lra.c (lra_bad_spill_regno_start): New.
26540 (lra): Set up lra_bad_spill_regno_start. Set up
26541 lra_constraint_new_regno_start unconditionally.
26542 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
26545 2015-04-09 Marek Polacek <polacek@redhat.com>
26546 Jakub Jelinek <jakub@redhat.com>
26548 PR middle-end/65554
26549 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
26550 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
26553 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
26555 PR rtl-optimization/65693
26556 * combine.c (is_parallel_of_n_reg_sets): Move outside of
26559 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
26562 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
26563 device specs file if "device-specs%s" didn't resolve to a path.
26565 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
26568 * config/i386/i386.c (fixup_modeless_constant): New.
26569 (ix86_expand_args_builtin): Fixup modeless constant operand.
26570 (ix86_expand_round_builtin): Ditto.
26571 (ix86_expand_special_args_builtin): Ditto.
26572 (ix86_expand_builtin): Ditto.
26574 2015-04-09 Jakub Jelinek <jakub@redhat.com>
26577 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
26578 any pow2 integer in between 2 and 0x80000000U inclusive.
26580 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
26582 PR rtl-optimization/65693
26583 * combine.c (is_parallel_of_n_reg_sets): Change first argument
26584 from an rtx_insn * to an rtx.
26585 (try_combine): Adjust both callers. Use it once more.
26587 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
26589 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
26590 (chkp_make_static_const_bounds): Search existing
26591 symbol by assembler name. Use make_decl_one_only.
26592 (chkp_get_zero_bounds_var): Remove node search which
26593 is now performed in chkp_make_static_const_bounds.
26594 (chkp_get_none_bounds_var): Likewise.
26596 2015-04-08 Michael Witten <mfwitten@gmail.com>
26598 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
26601 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26603 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
26605 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
26607 * doc/extend.texi (__sync Builtins): Fix grammar.
26609 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26611 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
26613 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26615 * varasm.c (emit_local): Move definition of align.
26617 2015-04-08 Julian Brown <julian@codesourcery.com>
26619 * config/nvptx/mkoffload.c (process): Support variable mapping.
26621 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
26623 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
26625 (alpha_write_one_linkage): Correct typo.
26627 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
26629 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
26631 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
26633 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
26635 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
26637 * tree-chkp.h (chkp_insert_retbnd_call): New.
26638 * tree-chkp.c (chkp_insert_retbnd_call): New.
26639 * ipa-split.c (insert_bndret_call_after): Remove.
26640 (split_function): Use chkp_insert_retbnd_call.
26641 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
26642 bounds for instrumented functions.
26644 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
26647 * calls.c (initialize_argument_information): When producing tail
26648 call also turn SSA_NAMES passed by references to original PARM_DECLs
26650 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
26653 * lra-remat.c (do_remat): Process input and non-input insn
26654 registers separately.
26656 2015-04-07 Jakub Jelinek <jakub@redhat.com>
26659 * valtrack.c (debug_lowpart_subreg): New function.
26660 (dead_debug_insert_temp): Use it.
26662 PR middle-end/65680
26663 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
26664 into signed HOST_WIDE_INT the same as negative bit_offset.
26666 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
26668 * ipa-comdats.c (ipa_comdats): Visit all thunks
26669 to set proper comdat group.
26671 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26674 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
26675 on constants for NEON VSTRUCT modes.
26677 2015-04-07 Jakub Jelinek <jakub@redhat.com>
26678 Iain Sandoe <iain@codesourcery.com>
26681 * configure: Regenerate.
26683 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
26686 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
26687 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
26688 that LFD is used to load double constants instead of LFS. Add
26689 defaults for all costs structures. Add comments for missing
26690 initialization fields.
26691 (size32_cost): Likewise.
26692 (size64_cost): Likewise.
26693 (rs64a_cost): Likewise.
26694 (mpccore_cost): Likewise.
26695 (ppc403_cost): Likewise.
26696 (ppc405_cost): Likewise.
26697 (ppc440_cost): Likewise.
26698 (ppc476_cost): Likewise.
26699 (ppc601_cost): Likewise.
26700 (ppc603_cost): Likewise.
26701 (ppc604_cost): Likewise.
26702 (ppc604e_cost): Likewise.
26703 (ppc620_cost): Likewise.
26704 (ppc630_cost): Likewise.
26705 (ppccell_cost): Likewise.
26706 (ppc750_cost): Likewise.
26707 (ppc7450_cost): Likewise.
26708 (ppc8540_cost): Likewise.
26709 (ppce300c2c3_cost): Likewise.
26710 (ppce500mc_cost): Likewise.
26711 (ppce500mc64_cost): Likewise.
26712 (ppce5500_cost): Likewise.
26713 (ppce6500_cost): Likewise.
26714 (titan_cost): Likewise.
26715 (power4_cost): Likewise.
26716 (power6_cost): Likewise.
26717 (power7_cost): Likewise.
26718 (power8_cost): Likewise.
26719 (ppca2_cost): Likewise.
26720 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
26722 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
26723 instead of XXLOR to copy SFmode to clear out dirty bits created
26724 when SFmode denormals are generated.
26725 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
26726 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
26728 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
26730 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
26731 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
26732 * config/aarch64/aarch64-tune.md: Regenerate.
26734 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
26736 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
26737 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
26738 * config/arm/arm-cores.def (exynos-m1): New core.
26739 * config/arm/arm-tune.md: Regenerate.
26740 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
26741 * config/arm/bpabi.h: Likewise.
26743 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
26745 * ipa-cp (set_single_call_flag): Remove too
26746 restrictive assert.
26748 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
26750 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
26751 GOMP_offload_unregister from the destructor.
26753 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
26755 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
26756 flags for instrumentation thunk.
26757 (chkp_produce_thunks): Likewise.
26759 2015-04-05 Martin Liska <mliska@suse.cz>
26762 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
26763 has computed data structure.
26764 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
26766 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
26768 * invoke.texi (inline-unit-growth): Increase growth to 20%
26769 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
26771 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
26774 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
26776 (lra_rematerialization_iter): New.
26777 * lra.c (lra): Initialize lra_rematerialization_iter.
26778 Stop updating lra_constraint_new_regno_start after switching of
26779 inheritance and rematerialization.
26780 * lra-remat.c (lra_rematerialization_iter): New.
26781 (lra_remat): Add printing pass iteration. Do rematerialization
26782 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
26784 2015-04-04 Richard Biener <rguenther@suse.de>
26786 PR tree-optimization/64909
26787 PR tree-optimization/65660
26788 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
26789 to take a cost vector for scalar iteration cost.
26790 (vect_get_single_scalar_iteration_cost): Likewise.
26791 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
26792 Compute the scalar iteration cost into a cost vector.
26793 (vect_get_known_peeling_cost): Use the scalar cost vector to
26794 account for the cost of the peeled iterations.
26795 (vect_estimate_min_profitable_iters): Likewise.
26796 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
26799 2015-04-04 Alan Modra <amodra@gmail.com>
26803 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
26804 0.0 constant unless TARGET_VSX.
26805 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
26808 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
26811 * ipa-inline-transform.c (inline_call): Skip sanity check to work
26814 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
26817 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
26818 speculative indirect edges to avoid ordering issue.
26820 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
26823 * ipa-inline.c (edge_badness): Add combined size to the denominator.
26825 2015-04-03 Jakub Jelinek <jakub@redhat.com>
26827 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
26828 TYPE_ARTIFICIAL on the .omp_data* types.
26830 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26832 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
26833 instrumentation thunks.
26835 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26837 * config/i386/i386.c (ix86_expand_call): Avoid nested
26838 PARALLEL in returned call value.
26840 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26842 * lto-cgraph.c (input_cgraph_1): Always link instrumented
26843 assembler name with original one.
26845 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
26847 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
26849 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
26851 Revert parts of r216820.
26852 * config/i386/i386.md (movqi_internal): Correct type calculation
26853 for alternatives 3 and 5.
26855 2015-04-02 Jakub Jelinek <jakub@redhat.com>
26857 PR preprocessor/61977
26858 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
26859 predefine __vector/__bool/__pixel macros nor context sensitive
26860 macros for CLK_ASM.
26861 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
26863 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
26865 * config/pa/pa.c (pa_output_move_double): Directly handle register
26866 indexed memory operand. Simplify handling of scaled register indexed
26869 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26872 * config/i386/linux-common.h (MPX_SPEC): New.
26873 (CHKP_SPEC): Add MPX_SPEC.
26874 * doc/invoke.texi (-fcheck-pointer-boudns): Document
26875 possible issues with '-z bndplt' support in linker.
26877 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
26879 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
26880 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
26881 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
26882 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
26883 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
26885 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
26887 * config/i386/sync.md (UNSPEC_MOVA): Remove.
26888 (atomic_load<mode>): Change operand 0 predicate to
26889 nonimmediate_operand and fix up the destination when needed.
26891 (atomic_loaddi_fpu): Use UNSPEC_LDA.
26892 (atomic_store<mode>): Change operand 1 predicate to
26893 nonimmendate_operand and move the source to register when needed.
26895 (atomic_store<mode>_1): Use UNSPEC_STA.
26896 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
26897 Fix moves from memory operand. Use UNSPEC_STA.
26899 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
26901 * expmed.c (strict_volatile_bitfield_p): Check that the access will
26902 not cross a MODESIZE boundary.
26903 (store_bit_field, extract_bit_field): Added assertions in the
26904 strict volatile bitfields code path.
26906 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
26909 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
26910 Increase args array size by one to avoid buffer overflow.
26912 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
26914 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
26916 * ipa-inline.c (edge_badness): Add wrapper penalty.
26917 (sum_callers): Move up.
26918 (inline_small_functions): Set single_caller.
26919 * ipa-inline.h (inline_summary): Add single_caller.
26920 * ipa-split.c (split_function): Set split_part.
26921 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
26922 * cgraph.h (cgraph_node): Add split_part.
26924 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
26927 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
26928 Do not split operands 0 and operands 2 to halfmode.
26929 (atomic_compare_and_swap<mode>): Update for
26930 atomic_compare_and_swap<dwi>_doubleword changes.
26932 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
26934 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
26935 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
26936 no caching is done.
26938 2015-03-31 Martin Liska <mliska@suse.cz>
26941 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
26942 has already filled up function summary.
26943 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
26945 2015-03-31 Richard Biener <rguenther@suse.de>
26947 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
26950 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
26952 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
26954 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
26955 (s390_asm_output_function_label): Adapt to new signature of
26956 s390_function_num_hotpatch_hw
26957 Optimise the code generating assembler output.
26958 Add comments to assembler file.
26960 2015-03-31 Richard Biener <rguenther@suse.de>
26962 PR middle-end/65626
26963 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
26964 of the noreturn call so it is last and cleanup_control_flow_bb
26965 can do the CFG part.
26967 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
26970 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
26971 same_comdat_group for external symbols.
26972 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
26973 infinite same_comdat_group traversal loop.
26975 2015-03-31 Jakub Jelinek <jakub@redhat.com>
26978 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
26979 automatically to $headers.
26981 2015-03-30 Jakub Jelinek <jakub@redhat.com>
26984 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
26985 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
26987 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
26989 * ipa-prop.c (param_type_may_change_p): Likewise.
26990 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
26991 (remove_unused_scope_block_p): Add in_ctor_dtor_block
26992 argument. Before inlining, preserve
26993 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
26994 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
26996 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
26998 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
27001 * ipa-inline.c (edge_badness): Base denominator on callee's
27004 2015-03-27 Martin Jambor <mjambor@suse.cz>
27007 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
27008 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
27009 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
27010 node_calling_single_call.
27011 * ipa-cp.c (count_callers): New function.
27012 (set_single_call_flag): Likewise.
27013 (initialize_node_lattices): Count callers and set single_flag_call if
27015 (incorporate_penalties): New function.
27016 (good_cloning_opportunity_p): Use it, dump new flags.
27017 (propagate_constants_topo): Set node_within_scc flag if appropriate.
27018 * doc/invoke.texi (ipa-cp-recursion-penalty,
27019 ipa-cp-single-call-pentalty): Document.
27021 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
27024 * symtab.c (symtab_node::get_partitioning_class): Register vars
27026 * varpool.c (symbol_table::output_variables) Do not assemble unefined
27027 decls for non-symbols.
27029 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
27032 * output.h (default_binds_local_p_2): New.
27033 * varasm.c (default_binds_local_p_2): Renamed to ...
27034 (default_binds_local_p_3): This. Don't return true on protected
27035 data symbol if protected data may be external.
27036 (default_binds_local_p): Use default_binds_local_p_3.
27037 (default_binds_local_p_1): Likewise.
27038 (default_binds_local_p_2): New.
27039 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
27040 default_binds_local_p_2 if TARGET_MACHO is undefined.
27042 2015-03-27 Jakub Jelinek <jakub@redhat.com>
27045 * config/i386/i386.c (legitimize_pic_address): If base
27046 is SYMBOL_REF or LABEL_REF using %rip addressing, force
27047 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
27049 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
27052 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
27055 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
27058 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
27059 of optimized out indirect call.
27060 (redirect_to_unreachable): Always build symbol table node for
27061 BUILT_IN_UNREACHABLE
27063 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
27066 * ira-costs.c (record_reg_classes): Process all constraint string
27069 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
27071 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
27075 * config/c6x/constraints.md (S3): New constraint.
27076 * config/c6x/c6x.md (real_jump): Use it.
27078 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27080 PR middle-end/65595
27081 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
27082 do redirection if the call is not optimized out.
27084 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
27087 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
27088 (fchkp-check-incomplete-type): Add LTO.
27089 (fchkp-zero-input-bounds-for-main): Likewise.
27090 (fchkp-first-field-has-own-bounds): Likewise.
27091 (fchkp-narrow-bounds): Likewise.
27092 (fchkp-narrow-to-innermost-array): Likewise.
27093 (fchkp-use-static-bounds): Likewise.
27094 (fchkp-use-static-const-bounds): Likewise.
27095 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
27097 2015-03-27 Marek Polacek <polacek@redhat.com>
27099 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
27101 2015-03-27 Marek Polacek <polacek@redhat.com>
27104 * ubsan.c (ubsan_create_edge): New function.
27105 (instrument_bool_enum_load): Call it.
27106 (instrument_nonnull_arg): Likewise.
27107 (instrument_nonnull_return): Likewise.
27108 (instrument_object_size): Likewise.
27110 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27112 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
27115 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27118 * lto-streamer.h (class lto_location_cache): New.
27119 (struct data_in): Add location_cache.
27120 (lto_input_location): Update prototype.
27121 (stream_input_location_now): New.
27122 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
27123 pointer to location.
27124 (stream_input_location): Update.
27125 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
27126 (warn_odr): Apply location cache before warning.
27127 (lto_input_location): Update prototype.
27128 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
27129 Use stream_input_location_now.
27130 * lto-streamer-in.c (lto_location_cache::current_cache): New static
27132 (lto_location_cache::cmp_loc): New function.
27133 (lto_location_cache::apply_location_cache): New function.
27134 (lto_location_cache::accept_location_cache): New function.
27135 (lto_location_cache::revert_location_cache): New function.
27136 (lto_location_cache::input_location): New function.
27137 (lto_input_location): Do location caching.
27138 (stream_input_location_now): New function.
27139 (input_eh_region, input_struct_function_base): Use
27140 stream_input_location_now.
27141 (lto_data_in_create): use new.
27142 (lto_data_in_delete): Use delete.
27143 * tree-streamer-in.c (unpack_ts_block_value_fields,
27144 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
27145 lto_input_ts_exp_tree_pointers): Update for cached location api.
27147 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27150 * passes.def: Add pass_nothrow.
27151 * ipa-pure-const.c: (pass_data_nothrow): New.
27152 (pass_nothrow): New.
27153 (pass_nothrow::execute): New.
27154 (make_pass_nothrow): New.
27155 * tree-pass.h (make_pass_nothrow): Declare.
27157 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27159 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
27160 edge to change by speculation resolution or redirection.
27161 (edge_set_predicate): Likewise.
27162 (inline_summary_t::duplicate): Likewise.
27163 (remap_edge_summaries): Likewise.
27165 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27167 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
27169 (can_inline_edge_p): Relax option matching for always inline functions.
27171 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
27174 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
27175 Check operand 4 and operand 0 for equality.
27176 (avx512f_vextract<shuffletype>32x4_1_maskm):
27177 Check operand 6 and operand 0 for equality.
27178 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
27180 (vec_extract_hi_<mode>_maskm): Ditto.
27182 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27184 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
27185 dead calls back to live.
27186 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
27188 (cgraph_node::verify_node): ... here; verify only callee edges,
27190 * cif-code.def (CILK_SPAWN): New code.
27192 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27194 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
27195 (edge_set_predicate): Use it to mark unreachable edges.
27196 (inline_summary_t::duplicate): Remove unnecesary code.
27197 (remap_edge_summaries): Likewise.
27198 (dump_inline_summary): Report contains_cilk_spawn.
27199 (compute_inline_parameters): Compute contains_cilk_spawn.
27200 (inline_read_section, inline_write_summary): Stream
27201 contains_cilk_spawn.
27202 * ipa-inline.c (can_inline_edge_p): Do not touch
27203 DECL_STRUCT_FUNCTION that may not be available;
27204 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
27205 remove check for callee_fun->can_throw_non_call_exceptions and
27206 replace it by optimization attribute check; check for flag_exceptions.
27207 * ipa-inline-transform.c (inline_call): Maintain
27208 DECL_FUNCTION_PERSONALITY
27209 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
27211 2015-03-26 Jakub Jelinek <jakub@redhat.com>
27213 PR tree-optimization/65551
27214 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
27215 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
27217 2015-03-26 Richard Biener <rguenther@suse.de>
27219 PR middle-end/65555
27220 * tree-cfg.c (verify_gimple_call): Do not require a call to
27221 have no LHS if it wasn't recognized as control altering yet.
27223 2015-03-26 Jakub Jelinek <jakub@redhat.com>
27225 PR tree-optimization/64715
27226 * passes.def: Add another instance of pass_object_sizes before ccp1.
27227 * tree-object-size.c (pass_object_sizes::execute): In
27228 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
27229 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
27230 __bos result and the computed constant. Remove redundant
27231 checks, obsoleted by gimple_call_builtin_p test.
27233 * var-tracking.c (variable_tracking_main_1): Don't track
27234 variables for targetm.no_register_allocation targets.
27236 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
27238 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
27239 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
27241 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
27244 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
27245 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
27246 0.0 is correctly setup.
27247 (extenddftf2_internal): Likewise.
27249 2015-03-25 Sebastian Pop <s.pop@samsung.com>
27251 PR tree-optimization/65177
27252 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
27254 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
27255 edges not adjacent on the path to the original code.
27257 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
27260 * doc/install.texi (Building a native compiler): Document new
27261 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
27262 configuration assumes that the host supports the linker plugin.
27264 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
27267 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
27268 chain for generated call.
27270 2015-03-25 Richard Biener <rguenther@suse.de>
27272 * passes.c (pass_manager::execute_early_local_passes): Guard
27273 execution of pass_chkp_instrumentation_passes with
27274 flag_check_pointer_bounds.
27275 (pass_chkp_instrumentation_passes::gate): Likewise.
27277 2015-03-25 Martin Liska <mliska@suse.cz>
27279 PR tree-optimization/65538
27280 * symbol-summary.h (function_summary::~function_summary):
27281 Relese memory for allocated summaries.
27282 (function_summary::release): New function.
27284 2015-03-25 Jakub Jelinek <jakub@redhat.com>
27287 * lto-streamer-out.c (DFS::worklist): New struct.
27288 (DFS::worklist_vec): New data member.
27289 (DFS::next_dfs_num): Remove.
27290 (DFS::DFS): Rewritten using worklist instead of recursion,
27291 using most of code from DFS::DFS_write_tree.
27292 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
27293 pass it to DFS_write_tree calls.
27294 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
27295 quick initial checks push it into worklist_vec and return.
27297 2015-03-25 Richard Biener <rguenther@suse.de>
27299 PR middle-end/65519
27300 * genmatch.c (expr::gen_transform): Re-write to avoid
27301 using gimple_build.
27303 2015-03-25 Bin Cheng <bin.cheng@arm.com>
27305 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
27307 2015-03-25 Bin Cheng <bin.cheng@arm.com>
27309 * config/arm/arm.opt (print_tune_info): New option.
27310 * config/arm/arm.c (arm_print_tune_info): New function.
27311 (arm_file_start): Call arm_print_tune_info.
27312 * config/arm/arm-protos.h (struct tune_params): Add comment.
27313 * doc/invoke.texi (@item -mprint-tune-info): New item.
27314 (-mtune): mention it in ARM Option Summary.
27316 2015-03-25 DJ Delorie <dj@redhat.com>
27318 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
27321 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
27322 Martin Liska <mliska@suse.cz>
27324 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
27325 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
27326 (sem_item::add_type): New function.
27327 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
27328 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
27329 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
27330 (sem_function::equals_wpa): Fix typo.
27331 * ipa-icf.h (sem_item::add_type): New function.
27332 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
27335 2015-03-24 Jakub Jelinek <jakub@redhat.com>
27337 PR tree-optimization/65533
27338 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
27339 with swapped operands, call vect_free_slp_tree on
27340 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
27343 2015-03-24 Richard Biener <rguenther@suse.de>
27345 PR middle-end/65517
27346 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
27347 for fixup if necessary.
27349 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
27351 * doc/extend.texi (Function Attributes): Add @cindex entries
27352 for all attributes and regularize their format. Delete text
27353 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
27354 information about "eightbit_data", "tiny_data", and "model"
27355 variable attributes to the Variable Attributes section. Fix
27356 some obvious typos and copy-editing issues.
27357 (Variable Attributes, Type Attributes): Likewise add/fix
27358 @cindex entries for all attributes.
27360 2015-03-23 Jakub Jelinek <jakub@redhat.com>
27363 * tree-chkp.c (chkp_build_returned_bound): Ignore
27364 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
27366 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
27369 * config/sh/predicates.md (simple_mem_operand,
27370 displacement_mem_operand): Add test for reg.
27371 (short_displacement_mem_operand): Test for displacement_mem_operand
27372 before invoking sh_disp_addr_displacement.
27373 * config/sh/constraints.md (Sdd, Sra): Simplify.
27374 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
27375 Remove redundant displacement_mem_operand tests.
27377 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
27380 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
27381 the same -mmcu=MCU more than once.
27383 2015-03-23 Jakub Jelinek <jakub@redhat.com>
27386 * ipa-devirt.c: Remove duplicate demangle.h include.
27389 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
27391 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
27392 REG_POINTER on *destptr after adjusting it for prologue size.
27395 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
27396 ultimate_alias_target ()->order ints instead of
27397 ultimate_alias_target () pointers.
27399 2015-03-23 Richard Biener <rguenther@suse.de>
27401 PR tree-optimization/65518
27402 * tree-vect-stmts.c (vectorizable_load): Reject single-element
27403 interleaving cases we generate absymal code for.
27405 2015-03-23 Richard Biener <rguenther@suse.de>
27407 PR tree-optimization/65494
27408 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
27410 (vect_analyze_slp_instance): But do that here, always and once.
27412 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27414 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
27415 adding T or multiplying by T+1 and subracting T.
27417 2015-03-22 Jeff Law <law@redhat.com>
27419 PR rtl-optimization/64317
27420 * Makefile.in (OBJS): Add gcse-common.c
27421 * gcse.c: Include gcse-common.h
27422 (struct modify_pair_s): Move structure definition to gcse-common.h
27423 (compute_transp): Move function to gcse-common.c.
27424 (canon_list_insert): Similarly.
27425 (record_last_mem_set_info): Break out some code and put it into
27426 gcse-common.c. Call into the new common code.
27427 (compute_local_properties): Pass additional arguments to compute_transp.
27428 * postreload-gcse.c: Include gcse-common.h and df.h
27429 (modify_mem_list_set, blocks_with_calls): New variables.
27430 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
27431 (get_bb_avail_insn): Pass in the expression index too.
27432 (alloc_mem): Allocate memory for the new bitmaps and lists.
27433 (free_mem): Free memory for the new bitmaps and lists.
27434 (insert_expr_in_table): Record a bitmap index for each entry we
27436 (record_last_mem_set_info): Call into common code in gcse-common.c.
27437 (get_bb_avail_insn): If no available insn was found in the requested
27438 BB. If BB has a single predecessor, see if the expression is
27439 transparent in BB and available in that single predecessor.
27440 (compute_expr_transp): New wrapper for compute_transp.
27441 (eliminate_partially_redundant_load): Pass expression's bitmap_index
27442 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
27443 (gcse_after_reload_main): If there are elements in the hash table,
27444 then compute transparency for all the elements in the hash table.
27445 * gcse-common.h: New file.
27446 * gcse-common.c: New file.
27448 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
27450 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
27452 (System Headers): Likewise.
27454 (Traditional macros): Likewise.
27455 (Invocation): Likewise.
27456 (Option Index): Likewise.
27457 * doc/cppopts.texi (-M): Likewise.
27458 (-finput-charset): Likewise.
27459 (--help): Likewise.
27460 * doc.invoke.texi (AVR Options): Likewise.
27461 (V850 Options): Likewise.
27463 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
27466 * ipa-devirt.c: Include demangle.h
27467 (odr_type_d): Add field rtti_broken.
27468 (odr_subtypes_equivalent_p): Do not require name to match.
27469 (compare_virtual_tables): Fix typo; if type already has ODR violation,
27470 bypass the tests; be ready for function referneces in vtables that are
27471 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
27472 (warn_odr): Give up for nameless types.
27473 (warn_types_mismatch): Report mismatch in mangled names;
27474 report mismatch in anonymous namespaces; look into component types to
27475 give useful error; report when mismatch is dragged in from other ODR
27477 (odr_types_equivalent_p): Match types for being polymorphic; avoid
27478 duplicated diagnostics.
27479 (add_type_duplicate): Reorder checks so more informative ones come
27480 first; fix typo; do not output "the extra base is defined here" when
27482 (BINFO_N_BASE_BINFOS): Relax sanity check.
27484 2015-03-22 Martin Liska <mliska@suse.cz>
27485 Jakub Jelinek <jakub@redhat.com>
27487 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
27488 masks that can potentially include a builtin.
27489 (ix86_add_new_builtins): Introduce fast filter for isa values
27490 that cannot trigger builtin inclusion.
27492 2015-03-22 Martin Liska <mliska@suse.cz>
27494 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
27495 (sem_item::update_hash_by_local_refs): Likewise.
27496 (sem_variable::get_hash): Empty line is fixed.
27497 (sem_item_optimizer::execute): Include adding of hash references.
27498 (sem_item_optimizer::update_hash_by_addr_refs): New function.
27499 (sem_item_optimizer::build_hash_based_classes): Use local hash.
27500 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
27501 (sem_item::update_hash_by_local_refs): Likewise.
27503 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
27506 * ipa-comdats.c (enqueue_references): Walk through thunks.
27507 (ipa_comdats): Likewise.
27508 (set_comdat_group_1): New function.
27510 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
27513 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
27516 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
27517 Gerald Pfeifer <gerald@pfeifer.com>
27519 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
27521 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
27522 Sandra Loosemore <sandra@codesourcery.com>
27524 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
27525 function parameter declaration.
27526 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
27527 Update arguments to nios2_adjust_call_address().
27528 (sibcall_internal): Rename from *sibcall.
27529 (sibcall_value_internal): Rename from *sibcall_value.
27530 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
27531 (nios2_large_got_address): Add target temp reg parameter.
27532 (nios2_got_address): Adjust call to nios2_large_got_address, add
27533 force_reg around it.
27534 (nios2_load_pic_address): Add target temp reg parameter, replace call
27535 to nios2_got_address with corresponding code.
27536 (nios2_legitimize_constant_address): Update call to
27537 nios2_load_pic_address.
27538 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
27539 to use temp reg for PIC loading purposes.
27540 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
27541 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
27542 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
27544 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
27546 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
27547 usage of "the @option{...}".
27548 (-Wopenmp-simd): Likewise.
27549 (-fsanitize-recover): Likewise.
27550 (-fsanitize-undefined-trap-on-error): Likewise.
27552 (tracer-dynamic-coverage-feedback): Likewise.
27553 (reorder-block-duplicate-feedback): Likewise.
27554 (loop-unroll-jam-size): Likewise.
27557 (-mabs=legacy): Likewise.
27558 (-mupper-regs-df): Likewise.
27559 (-mupper-regs-sf): Likewise.
27560 (-mpointers-to-nested-functions): Likewise.
27562 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
27564 * doc/extend.texi (Cilk Plus Builtins): Add markup.
27566 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
27568 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
27569 additional index entries and cross-references.
27570 (-fchkp-check-incomplete-type): Likewise.
27571 (-fchkp-first-field-has-own-bounds): Likewise.
27572 (-fchkp-narrow-to-innermost-array): Likewise.
27573 (-fchkp-use-fast-string-functions): Likewise.
27574 (-fchkp-use-nochk-string-functions): Likewise.
27575 (-fchkp-use-static-const-bounds): Likewise.
27576 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
27577 (-fchkp-instrument-marked-only): Likewise.
27578 (-fchkp-use-wrappers): Likewise.
27579 (-static-libmpx): Likewise.
27580 (-static-libmpxwrappers): Likewise.
27581 * doc/extend.texi (bnd_legacy): Likewise.
27582 (bnd_instrument): Likewise.
27583 (bnd_variable_size): Likewise.
27584 (Pointer Bounds Checker builtins): Likewise.
27586 2015-03-21 Tom de Vries <tom@codesourcery.com>
27588 PR tree-optimization/65458
27589 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
27590 * cgraph.h (cgraph_node): Add parallelized_function field.
27591 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
27592 (input_overwrite_node): Read parallelized_function field.
27593 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
27594 parallelized_function on cgraph_node for child_fn.
27595 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
27596 Remove include of gt-tree-parloops.h.
27597 (parallelized_functions): Remove static variable.
27598 (parallelized_function_p): Rewrite using parallelized_function field of
27600 (create_loop_fn): Remove adding to parallelized_functions.
27601 * Makefile.in (GTFILES): Remove tree-parloops.c
27603 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
27605 PR rtl-optimization/64366
27606 * lra.c (lra_update_insn_regno_info): Consider regs in
27607 CALL_INSN_FUNCTION_USAGE memory.
27609 2015-03-20 Richard Biener <rguenther@suse.de>
27611 PR middle-end/64715
27612 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
27613 for type comparison and gcc_checking_assert.
27614 (chrec_fold_plus_poly_poly): Likewise.
27615 (chrec_fold_multiply_poly_poly): Likewise.
27616 (chrec_convert_1): Likewise.
27617 * gimplify.c (gimplify_expr): Remove premature folding of
27618 &X + CST to &MEM[&X, CST].
27620 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
27622 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
27624 (ipa_inline): Recompute inline_failed codes.
27625 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
27626 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
27629 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
27631 PR rtl-optimization/60851
27632 * recog.c (constrain_operands): Accept a pseudo register before reload
27633 for LRA enabled targets.
27635 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
27638 * config/rs6000/predicates.md (easy_fp_constant): Remove special
27639 -ffast-math handling that kept non-0 constants live in the RTL
27640 until reload. Remove logic testing the number of instructions it
27641 took to create a constant in a GPR that was never used, due to a
27642 test for soft-float earlier.
27643 (memory_fp_constant): Delete, no longer used.
27645 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
27646 alternatives for loading non-0 constants into GPRs for hard
27647 floating point that is no longer needed due to changes in
27648 easy_fp_constant. Add support for loading 0.0 into GPRs.
27649 (mov<mode>_hardfloat32): Likewise.
27650 (mov<mode>_hardfloat64): Likewise.
27651 (mov<mode>_64bit_dm): Likewise.
27652 (movtd_64bit_nodm): Likewise.
27653 (pre-reload move FP constant define_split): Delete define_split,
27654 since it is no longer used.
27655 (extenddftf2_internal): Remove GHF constraints that are not valid
27658 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
27660 PR rtl-optimization/63491
27661 * lra-constraints.c (check_and_process_move): Use src instead of
27662 sreg. Remove some dead code.
27664 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
27667 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
27668 (sem_variable::merge): Likewise.
27670 2015-03-19 Martin Liska <mliska@suse.cz>
27673 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
27674 all fields of cgraph_thunk_info.
27676 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
27678 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
27679 clone instrumented thunks.
27681 2015-03-19 Richard Biener <rguenther@suse.de>
27684 2015-03-10 Richard Biener <rguenther@suse.de>
27686 PR middle-end/63155
27687 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
27688 * tree-ssa-coalesce.c: Include timevar.h.
27689 (attempt_coalesce): Handle graph being NULL.
27690 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
27691 Split out abnormal coalescing to ...
27692 (perform_abnormal_coalescing): ... this function.
27693 (coalesce_ssa_name): Perform abnormal coalescing without computing
27695 (verify_ssa_coalescing_worker): New function.
27696 (verify_ssa_coalescing): Likewise.
27698 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
27699 Jakub Jelinek <jakub@redhat.com>
27702 * tsan.c (instrument_gimple): Clear tail call flag on
27705 2015-03-19 Jakub Jelinek <jakub@redhat.com>
27708 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
27709 call in the return bb.
27710 (find_split_points): Add RETURN_BB argument, don't call
27712 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
27713 if true append TSAN_FUNC_EXIT internal call after the call to
27714 the split off function.
27715 (execute_split_functions): Call find_return_bb here.
27716 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
27717 Adjust find_split_points and split_function calls.
27719 2015-03-18 DJ Delorie <dj@redhat.com>
27721 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
27722 (iorqi3_virt): Likewise.
27724 2015-03-18 Tom de Vries <tom@codesourcery.com>
27726 * tree-parloops.c (parallelize_loops): Make static.
27727 * tree-parloops.h (parallelize_loops): Remove extern declaration.
27729 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
27731 PR middle-end/64491
27733 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
27735 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
27736 condition would be removed due to undefined behaviour.
27738 2015-03-18 Martin Liska <mliska@suse.cz>
27741 * cgraph.c (cgraph_node::get_create): Remove unnecessary
27742 xstrdup_for_dump wrapper.
27743 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
27745 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
27746 with xstrdup_for_dump.
27747 (sem_variable::equals): Likewise.
27748 (sem_item_optimizer::read_section): Use symtab_node::name instead of
27750 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
27751 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
27752 symtab_node::asm_name with xstrdup_for_dump.
27753 (congruence_class::dump): Use symtab_node::name instead of
27755 * ipa-icf.h (symtab_node::name): Remove.
27756 (symtab_node::asm_name): Likewise.
27758 2015-03-18 Jakub Jelinek <jakub@redhat.com>
27760 PR tree-optimization/65450
27761 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
27763 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
27764 it instead of duplicate_ssa_name_ptr_info.
27767 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
27769 2015-03-18 Richard Biener <rguenther@suse.de>
27771 * tree-data-ref.h (struct access_matrix): Remove.
27772 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
27773 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
27774 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
27775 (am_vector_index_for_loop): Likewise.
27776 (struct data_reference): Remove access_matrix member.
27777 (DR_ACCESS_MATRIX): Remove.
27778 (lambda_vector_new): Add comment.
27779 (lambda_matrix_new): Use XOBNEWVEC.
27781 2015-03-18 Richard Biener <rguenther@suse.de>
27783 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
27784 (pass_ch::execute): Cleanup the CFG only if we did sth.
27785 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
27787 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27789 * expmed.c (synth_mult): Use std::swap instead of manually
27790 swapping algorithms.
27792 2015-03-18 Jakub Jelinek <jakub@redhat.com>
27795 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
27797 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
27800 * config/avr/avr.opt (-nodevicelib): New option.
27801 * doc/invoke.texi (AVR Options): Document it.
27802 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
27803 libgcc.a, libc.a, libm.a.
27804 * config/avr/specs.h: Same.
27805 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
27806 which don't (directly) depend on the device. Print more help.
27807 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
27808 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
27809 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
27811 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
27812 for specs file name.
27813 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
27814 * config/avr/avr-mcus.def: Adjust initializers and comments.
27816 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
27818 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
27819 DECL_ONE_ONLY to check if decl is one only.
27820 * ipa-split.c (consider_split): Limit splitt of one only functions.
27822 2015-03-16 Jakub Jelinek <jakub@redhat.com>
27824 PR tree-optimization/65427
27825 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
27827 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
27829 2015-03-16 Marek Polacek <polacek@redhat.com>
27831 * cgraph.h (add_new_static_var): Remove declaration.
27832 * varpool.c (add_new_static_var): Remove function.
27834 2015-03-16 Jakub Jelinek <jakub@redhat.com>
27836 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
27837 instead of vec<tree> * with vec_alloc and release for args.
27840 PR middle-end/65431
27841 * omp-low.c (delete_omp_context): Only splay_tree_delete
27842 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
27843 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
27845 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
27848 * cfgexpand.c (align_base): New function.
27849 (alloc_stack_frame_space): Call it.
27850 (expand_stack_vars): Align prev_frame to be sure
27851 data->asan_vec elements aligned properly.
27853 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
27855 PR middle-end/65409
27856 * expr.c (store_field): Do not do a direct block copy if the source is
27857 a PARALLEL with BLKmode.
27859 2015-03-16 Tom de Vries <tom@codesourcery.com>
27861 PR middle-end/65414
27863 2015-03-12 Tom de Vries <tom@codesourcery.com>
27865 PR rtl-optimization/64895
27866 * lra-lives.c (check_pseudos_live_through_calls): Use
27867 actual_call_used_reg_set instead of call_used_reg_set, if available.
27869 2015-03-16 Alan Modra <amodra@gmail.com>
27872 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
27873 Modify Z->r bswapdi splitter to use dest in place of scratch.
27874 In r->Z and Z->r bswapdi splitter rename word_high, word_low
27875 to word1, word2 and rearrange logic to suit.
27876 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
27877 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
27878 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
27879 Add one '?' on r->r. Modify Z->r splitter to avoid need for
27882 2015-03-14 Jakub Jelinek <jakub@redhat.com>
27884 PR tree-optimization/65369
27885 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
27886 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
27887 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
27889 PR tree-optimization/65418
27890 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
27891 are casts in the first PLUS_EXPR operand, ensure tbias and
27892 *totallowp are in the inner type.
27894 PR rtl-optimization/65401
27895 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
27896 argument. If true, adjust_address_nv of x with big-endian
27897 correction for the mode widening to GET_MODE (y).
27898 (make_field_assignment): Don't do MEM mode widening here.
27899 Use MEM_P instead of GET_CODE == MEM.
27901 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
27903 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
27904 the external decls.
27906 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27909 * config/arm/arm.c (arm_gen_constant, AND case): Use
27910 ARM_SIGN_EXTEND when constructing AND mask.
27912 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
27914 * graph.c (print_graph_cfg): Make function names visible and append
27915 parenthesis to it. Also make groups of basic blocks belonging to the
27916 same function visible.
27918 2015-03-12 Richard Biener <rguenther@suse.de>
27920 PR middle-end/44563
27921 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
27922 to avoid quadratic behavior with inline expansion splitting blocks.
27923 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
27924 with the successor if the predecessor will be merged with it.
27925 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
27926 entry block with its successor.
27928 2015-03-13 Richard Biener <rguenther@suse.de>
27930 PR middle-end/44563
27931 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
27932 (cleanup_tree_cfg_1): Do not call it.
27933 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
27934 (fixup_noreturn_call): Mark the stmt as control altering.
27935 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
27937 (pass_data_fixup_cfg): Produce a dump file.
27938 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
27939 (need_noreturn_fixup): New global.
27940 (pass_dominator::execute): Fixup queued noreturn calls.
27941 (optimize_stmt): Queue calls that became noreturn for fixup.
27942 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
27943 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
27944 (el_to_fixup): New global.
27945 (eliminate_dom_walker::before_dom_childre): Queue calls that
27946 became noreturn for fixup.
27947 (eliminate): Fixup queued noreturn calls.
27948 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
27949 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
27950 (substitute_and_fold_dom_walker::before_dom_children): Queue
27951 alls that became noreturn for fixup.
27952 (substitute_and_fold): Fixup queued noreturn calls.
27954 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
27956 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
27957 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
27958 are building; for methods check ODR type of class they belong to if
27959 they may lead to a polymorphic call.
27960 (sem_function::compare_polymorphic_p): Be bit smarter about testing
27961 when function may lead to a polymorphic call.
27962 (sem_function::compare_type_list): Remove.
27963 (sem_variable::equals): Update use of compatible_types_p.
27964 (sem_variable::parse_tree_refs): Remove.
27965 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
27967 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
27969 (func_checker::compatible_polymorphic_types_p): Break out from ...
27970 (unc_checker::compatible_types_p): ... here.
27971 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
27973 (unc_checker::compatible_types_p): Update.
27974 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
27977 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27979 PR rtl-optimization/65235
27980 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
27981 When first element of vec_concat is const_int, calculate its size
27982 using second element.
27984 2015-03-12 Richard Biener <rguenther@suse.de>
27986 PR middle-end/65270
27987 * fold-const.c (operand_equal_p): Fix ordering of resetting
27988 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
27990 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
27992 * config/s390/s390.c (s390_reorg): Move code to output nops after label
27994 (s390_asm_output_function_label): Likewise.
27995 * config/s390/s390.c (s390_asm_output_function_label):
27996 Fix function label alignment with -mhtopatch.
27997 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
27998 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
27999 ("nop_2_byte"): New define_insn.
28000 ("nop_4_byte"): Likewise.
28001 ("nop_6_byte"): Likewise.
28002 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
28003 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
28005 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
28008 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
28011 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
28014 * toplev.c (process_options): Restrict Pointer Bounds Checker
28015 usage with Address Sanitizer.
28017 2015-03-12 Richard Biener <rguenther@suse.de>
28019 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
28021 * omp-low.c (expand_omp_taskreg): Split block before removing
28023 (expand_omp_target): Likewise.
28024 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
28025 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
28026 stmt to split_block.
28028 2015-03-12 Tom de Vries <tom@codesourcery.com>
28030 PR rtl-optimization/64895
28031 * lra-lives.c (check_pseudos_live_through_calls): Use
28032 actual_call_used_reg_set instead of call_used_reg_set, if available.
28034 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
28036 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
28037 (cgraph_node::remove): Likewise.
28038 (cgraph_node::get_untransformed_body): Likewise.
28039 * varpool.c (varpool_node::remove): Likewise.
28040 (varpool_node::get_constructor): Add sanity check.
28042 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
28044 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
28046 (-fabi-compat-version): Likewise.
28047 (-ffriend-injection): Likewise.
28048 (-Wdeclaration-after-statement): Likewise.
28049 (-fomit-frame-pointer): Likewise.
28050 (-ftree-coalesce-inlined-vars): Likewise.
28051 (-fvisibility=): Likewise.
28052 * doc/extend.texi (Typeof): Likewise.
28053 (Zero Length): Likewise.
28054 (Escaped Newlines): Likewise.
28055 (Compound Literals): Likewise.
28056 (Function Attributes): Likewise.
28057 (Label Attributes): Likewise.
28058 (Type Attributes): Likewise.
28059 (Function Names): Likewise.
28060 (Other Builtins): Likewise.
28061 (Function Specific Option Pragmas): Likewise.
28062 (C++ Interface): Likewise.
28064 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
28066 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
28068 2015-03-11 Marek Polacek <polacek@redhat.com>
28070 PR tree-optimization/65388
28071 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
28073 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
28076 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
28077 * configure: Regenerate.
28078 * config.in: Regenerate.
28079 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
28080 [-mn-flash]: Document it.
28081 [__AVR_ARCH__]: Document avrtiny.
28083 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
28084 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
28085 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
28087 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28089 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
28091 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28094 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
28095 allow reloads of PLUS in floating point/VSX registers.
28097 2015-03-11 Junmo Park <junmoz.park@samsung.com>
28099 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
28100 crypto_sha256_fast.
28101 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
28103 2015-03-11 Richard Biener <rguenther@suse.de>
28105 PR tree-optimization/65310
28106 * tree-sra.c (build_ref_for_offset): Also preserve larger
28109 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
28111 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
28113 2015-03-10 Jakub Jelinek <jakub@redhat.com>
28116 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
28118 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
28120 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
28122 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
28123 (sem_function::equals_wpa): ... here.
28125 2015-03-10 Marek Polacek <polacek@redhat.com>
28126 Jakub Jelinek <jakub@redhat.com>
28129 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
28130 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
28133 2015-03-10 Jakub Jelinek <jakub@redhat.com>
28136 * config/rs6000/t-linux: For powerpc64* target set
28137 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
28139 2015-03-10 Richard Biener <rguenther@suse.de>
28141 PR middle-end/44563
28142 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
28143 for redirect_all_calls.
28145 2015-03-10 Marek Polacek <polacek@redhat.com>
28147 * gdbinit.in (pcfun): Define and document.
28149 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
28151 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
28152 of libgomp-plugin.h.
28153 (find_target_compiler): Support a case when the path to gcc is
28154 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
28155 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
28156 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
28158 (main): Use GCC_INSTALL_NAME as target_driver_name.
28159 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
28161 (mkoffload.o): Remove obsolete include path and defines.
28162 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
28164 2015-03-10 Richard Biener <rguenther@suse.de>
28166 PR middle-end/63155
28167 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
28168 * tree-ssa-coalesce.c: Include timevar.h.
28169 (attempt_coalesce): Handle graph being NULL.
28170 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
28171 Split out abnormal coalescing to ...
28172 (perform_abnormal_coalescing): ... this function.
28173 (coalesce_ssa_name): Perform abnormal coalescing without computing
28175 (verify_ssa_coalescing_worker): New function.
28176 (verify_ssa_coalescing): Likewise.
28178 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
28181 * config.gcc (extra_options) [avr]: Remove.
28182 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
28183 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
28184 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
28186 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
28187 (-mmcu=): Add Var and MissingArgError properties.
28189 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
28190 * config/avr/t-multilib: Regenerate.
28191 * config/avr/specs.h: New file.
28192 * config/avr/driver-avr.c: New file.
28193 * config/avr/genopt.sh: Remove file.
28194 * config/avr/avr-tables.opt: Remove file.
28195 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
28196 * config/avr/avr-c.c: Same.
28197 * avr-arch.h: Same.
28198 (avr_current_device): Remove proto.
28199 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
28200 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
28201 (EXTRA_SPEC_FUNCTIONS): Define.
28202 (avr_devicespecs_file): New specs function proto.
28203 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
28204 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
28205 (avr_current_device): Remove definition and usage.
28206 (avr_set_core_architecture): New static function.
28207 (avr_option_override): Use it.
28208 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
28209 (mcu_name): New static array.
28210 (comparator, avr_archs_str, avr_mcus_str): New static functions.
28211 (avr_inform_devices, avr_inform_core_architectures): New functions.
28212 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
28213 (avrlibc.h) [WITH_AVRLIBC]: Include.
28214 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
28215 (print_mcu): Rewrite from scratch.
28216 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
28217 Forward to avr-specific specs defined in device-specs file.
28218 * config/avr/t-avr (driver-avr.o): New rule.
28219 (avr-devices.o): Depend on avr-arch.h.
28220 (avr-mcus): No more depend on avr-tables.opt.
28221 (avr-tables.opt): Remove rule.
28222 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
28224 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
28226 * c-family/c.opt (fchkp-use-wrappers): New.
28227 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
28228 (chkp_wrap_function): New.
28229 (chkp_build_instrumented_fndecl): Support wrapped
28231 * doc/invoke.texi (-fcheck-pointer-bounds): New.
28232 (-fchkp-check-incomplete-type): New.
28233 (-fchkp-first-field-has-own-bounds): New.
28234 (-fchkp-narrow-bounds): New.
28235 (-fchkp-narrow-to-innermost-array): New.
28236 (-fchkp-optimize): New.
28237 (-fchkp-use-fast-string-functions): New.
28238 (-fchkp-use-nochk-string-functions): New.
28239 (-fchkp-use-static-bounds): New.
28240 (-fchkp-use-static-const-bounds): New.
28241 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
28242 (-fchkp-check-read): New.
28243 (-fchkp-check-write): New.
28244 (-fchkp-store-bounds): New.
28245 (-fchkp-instrument-calls): New.
28246 (-fchkp-instrument-marked-only): New.
28247 (-fchkp-use-wrappers): New.
28248 (-static-libmpx): New.
28249 (-static-libmpxwrappers): New.
28251 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
28253 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
28254 (CHKP_SPEC): Add wrappers library.
28255 * c-family/c.opt (static-libmpxwrappers): New.
28257 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
28259 * config/i386/linux-common.h (LIBMPX_LIBS): New.
28260 (LIBMPX_SPEC): New.
28262 * gcc.c (CHKP_SPEC): New.
28263 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
28264 * c-family/c.opt (static-libmpx): New.
28266 2015-03-10 Richard Biener <rguenther@suse.de>
28268 PR middle-end/44563
28269 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
28271 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
28272 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
28273 (cgraph_add_edge_to_call_site_hash): Likewise.
28274 (cgraph_node::get_edge): Likewise.
28275 (cgraph_edge::set_call_stmt): Likewise.
28276 (cgraph_edge::remove_caller): Likewise.
28278 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
28280 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
28281 (callee_saved_gpr_regs_size): ... this.
28282 (callee_saved_regs_first_regno): Rename to ...
28283 (callee_saved_first_gpr_regno): ... this.
28284 (callee_saved_regs_last_regno) Rename to ...
28285 (callee_saved_last_gpr_regno): ... this.
28286 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
28288 (nds32_initial_elimination_offset): Likewise.
28289 (nds32_expand_prologue): Likewise.
28290 (nds32_expand_epilogue): Likewise.
28291 (nds32_expand_prologue_v3push): Likewise.
28292 (nds32_expand_epilogue_v3pop): Likewise.
28293 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
28294 Adjust renamed variables.
28295 (nds32_output_stack_pop): Likewise.
28297 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
28299 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
28302 2015-03-10 Jakub Jelinek <jakub@redhat.com>
28304 PR rtl-optimization/65321
28305 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
28307 * var-tracking.c (use_narrower_mode): Likewise.
28309 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
28311 PR tree-optimization/65355
28312 * varasm.c (notice_global_symbol): Do not produce RTL.
28313 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
28315 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
28316 check for section anchors.
28318 2015-03-10 Alan Modra <amodra@gmail.com>
28321 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
28322 to be single-arch by default. Set cpu_is_64bit for powerpc64
28323 given --with-cpu=native.
28324 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
28325 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
28327 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
28328 rs6000_isa_flags rather than TARGET_64BIT.
28330 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
28331 Kaz Kojima <kkojima@gcc.gnu.org>
28333 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
28335 2015-03-09 Jakub Jelinek <jakub@redhat.com>
28338 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
28339 on a TREE_BINFO, instead use BINFO_TYPE.
28341 2015-03-09 Richard Biener <rguenther@suse.de>
28343 PR middle-end/65270
28344 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
28345 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
28346 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
28347 of that. When comparing dereferences compare alignment.
28348 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
28350 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
28352 * ipa-inline-analysis.c (check_callers): Check
28353 node->can_remove_if_no_direct_calls_and_refs_p.
28354 (growth_likely_positive): Reorganize to call
28355 can_remove_if_no_direct_calls_p later.
28356 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
28357 will_be_removed_from_program_if_no_direct_calls_p): Add
28358 will_inline parameter.
28359 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
28360 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
28361 Handle inliner case correctly.
28363 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
28365 PR tree-optimization/63743
28366 * cfgexpand.c (reorder_operands): Also reorder if only second operand
28367 had its definition forwarded by TER.
28369 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
28372 * ipa-utils.h (types_odr_comparable): Add strict argument.
28373 * ipa-devirt.c: Fix whitespace;
28374 (odr_hasher): Remove.
28375 (odr_name_hasher, odr_vtable_hasher): New hashers.
28376 (can_be_name_hashed_p): New predicate.
28377 (hash_type_name): remove.
28378 (hash_odr_name): New.
28379 (odr_name_hasher::hash): new.
28380 (can_be_vtable_hashed_p): New.
28381 (hash_odr_vtable): New.
28382 (odr_vtable_hasher::hash): New.
28383 (types_same_for_odr): Add strict parameter.
28384 (types_odr_comparable): Likewise.
28385 (odr_name_hasher::equal): New.
28386 (odr_vtable_hasher::equal): New.
28387 (odr_name_hasher::remove): New.
28388 (odr_hash_type): Change to hash_table<odr_name_hasher>.
28389 (odr_vtable_hash_type): New.
28390 (odr_vtable_hash): New.
28391 (odr_subtypes_equivalent_p): Do strict comparsion.
28392 (add_type_duplicate): Merge type names; cleanup; avoid type
28394 (register_odr_type): Initialize vtable hash.
28395 (build_type_inheritance_graph): Likewise
28396 (get_odr_type): Reorg to use two hashes.
28397 (dump_possible_polymorphic_call_targets): Move sanity check after debug
28399 (ipa_devirt): Dump type_inheritance_graph.
28400 (types_same_for_odr): Add strict mode.
28402 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
28405 * cgraph.h (symtab_node): Add definition_alignment,
28406 can_increase_alignment_p and increase_alignment.
28407 * symtab.c (symtab_node::can_increase_alignment_p,
28408 increase_alignment_1, symtab_node::increase_alignment,
28409 symtab_node::definition_alignment): New.
28410 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
28411 can_increase_alignment_p.
28412 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
28413 * tree-vect-stmts.c (ensure_base_align): Likewise.
28414 * varasm.c (function_section_1): Use definition_alignment.
28415 (assemble_start_function): Likewise.
28416 (emit_local): likewise.
28417 (build_constant_desc): Likewsie.
28418 (output_constant_def_contents): Likewise.
28419 (place_block_symbol): Likewise.
28420 (output_object_block): Likewise.
28422 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
28425 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
28426 when outputting debug.
28428 2015-03-07 Marek Polacek <polacek@redhat.com>
28429 Martin Uecker <uecker@eecs.berkeley.edu>
28432 * doc/invoke.texi: Update description of -fsanitize=bounds.
28434 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
28436 * tree-ssa-phiopt.c (neg_replacement): Remove.
28437 (tree_ssa_phiopt_worker): Remove negate optimization.
28439 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
28442 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
28444 2015-03-06 Richard Biener <rguenther@suse.de>
28446 PR middle-end/64928
28447 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
28448 and liveout_obstack members.
28449 (calculate_live_on_exit): Remove.
28450 (calculate_live_ranges): Change declaration.
28451 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
28452 (new_tree_live_info): Adjust.
28453 (calculate_live_ranges): Delete livein when not wanted.
28454 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
28455 Deal with partly deleted live info.
28456 (loe_visit_block): Remove temporary bitmap by using
28457 bitmap_ior_and_compl_into.
28458 (live_worklist): Adjust accordingly.
28459 (calculate_live_on_exit): Make static.
28460 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
28461 we do not need livein.
28463 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
28465 * real.c (real_from_string): Fix typo in assertion.
28467 2015-03-06 Alex Velenko <alex.velenko@arm.com>
28469 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
28472 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
28474 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
28476 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
28479 * lra-assigns.c (find_hard_regno_for): Rename to
28480 find_hard_regno_for_1. Add a new parameter.
28481 (find_hard_regno_for): New function using find_hard_regno_for_1.
28483 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
28485 PR rtl-optimization/65067
28486 * expmed.c (store_bit_field, extract_bit_field): Reworked the
28487 strict volatile bitfield handling.
28489 2015-03-05 Martin Liska <mliska@suse.cz>
28492 * ipa-icf.c (sem_variable::equals): Compare variables types.
28494 2015-03-05 Richard Henderson <rth@redhat.com>
28497 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
28498 correctly check weak symbol binding.
28500 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
28502 PR middle-end/65315
28503 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
28506 2015-03-05 Martin Liska <mliska@suse.cz>
28508 * ipa-inline.c (inline_small_functions): Set default value to
28509 prevent warning during bootstrap.
28510 * tree.h: Add pragma guard that ignores false positives during
28513 2015-03-05 Richard Biener <rguenther@suse.de>
28515 PR tree-optimization/65310
28516 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
28517 Properly preserve alignment of the base of the access.
28519 2015-03-05 Richard Biener <rguenther@suse.de>
28522 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
28523 Compare dependence info.
28525 2015-03-05 Richard Biener <rguenther@suse.de>
28527 PR middle-end/65233
28528 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
28530 (walk_ssa_copies): Revert last chage. Instead do not walk
28531 SSA names registered for SSA update.
28533 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
28536 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
28537 vtable references for their containing type.
28538 (sem_function::equals_wpa): Compare TYPE_RESTRICT
28539 and type attributes.
28541 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
28543 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
28544 before negating it.
28545 * stor-layout.c (finalize_record_size): Revert latest change.
28547 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
28549 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
28551 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
28553 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
28554 for correct comdat handling.
28555 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
28557 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
28558 (used_from_object_file_p_worker): Remove.
28559 (cgraph_node::only_called_directly_or_alised): Add
28560 used_from_object_file_p.
28561 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
28562 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
28563 can_remove_if_no_direct_calls_and_refs_p.
28565 2015-03-04 Nick Clifton <nickc@redhat.com>
28567 * config/rl78/rl78.h (enum reg_class): Remove real registers from
28568 General register class.
28569 * config/rl78/rl78-real.md: Replace general register constraints
28570 with real+virtual register constraints.
28572 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28574 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
28575 from checking for -mhtm option.
28577 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
28579 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
28580 (struct ipa_sra_check_caller_data): Add has_thunk field.
28581 (ipa_sra_check_caller): Check for thunk.
28582 (ipa_sra_preliminary_function_checks): Give up on function with
28584 (ipa_early_sra): Use call_for_symbol_and_aliases.
28586 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
28589 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
28590 called for __stack_chk_guard symbol.
28592 2015-03-03 DJ Delorie <dj@redhat.com>
28594 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
28596 (*addhi3_real): Likewise.
28597 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
28598 pattern to match incrementing memory.
28599 * config/rl78/predicates.md (rl78_1_2_operand): New.
28600 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
28601 it's the same and only mem.
28602 (rl78_alloc_physical_registers_op2): If there's effectively only
28603 one MEM, transcode it into HL.
28604 (rl78_far_p): Reject addresses that aren't legitimate.
28606 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
28608 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
28611 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
28613 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
28615 Implement call0 ABI for xtensa
28616 * config/xtensa/constraints.md ("a" constraint): Include stack
28617 pointer in case of call0 ABI.
28618 ("q" constraint): Make empty in case of call0 ABI.
28619 ("D" constraint): Include stack pointer in case of call0 ABI.
28620 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
28621 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
28623 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
28625 (xtensa_regno_to_class): Make it a local variable in the
28626 function xtensa_regno_to_class.
28627 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
28628 macro, function prototype and implementation.
28629 (reg_nonleaf_alloc_order): Make it a local variable in the
28630 function order_regs_for_local_alloc.
28631 (xtensa_conditional_register_usage): New function.
28632 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
28633 (xtensa_valid_move): Allow direct moves to stack pointer
28634 register in call0 ABI.
28635 (xtensa_setup_frame_addresses): Only spill register windows in
28637 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
28638 call0 ABI respectively.
28639 (xtensa_function_arg_1): Only mark a7 register for copying in
28641 (xtensa_call_save_reg): New function.
28642 (compute_frame_size): Add space for callee saved register
28643 storage to the frame size in call0 ABI.
28644 (xtensa_expand_prologue): Generate code to set up stack frame
28645 and save callee-saved registers in call0 ABI.
28646 (xtensa_expand_epilogue): New function.
28647 (xtensa_set_return_address): New function.
28648 (xtensa_return_addr): Calculate return address in call0 ABI.
28649 (xtensa_builtin_saveregs): Only mark a7 register for copying and
28650 emit copying code in windowed ABI.
28651 (order_regs_for_local_alloc): Add preferred register allocation
28652 order for non-leaf function in call0 ABI.
28653 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
28654 (xtensa_asm_trampoline_template): Add trampoline generation for
28656 (xtensa_trampoline_init): Add trampoline initialization for
28658 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
28660 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
28661 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
28662 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
28663 ABI call-used registers.
28664 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
28665 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
28667 (REG_CLASS_CONTENTS): Include all registers into the preferred
28668 reload registers set, adjust the set in the
28669 xtensa_conditional_register_usage.
28670 (xtensa_regno_to_class): Drop variable declaration.
28671 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
28673 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
28675 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
28676 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
28677 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
28678 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
28679 location in call0 ABI.
28680 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
28681 stack adjustment size when handling exception.
28682 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
28683 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
28685 ("return" pattern): Generate ret.n/ret in call0 ABI.
28686 ("epilogue" pattern): Expand epilogue.
28687 ("nonlocal_goto" pattern): Use default in call0 ABI.
28688 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
28689 emit eh_set_a0_* depending on ABI.
28690 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
28691 ("eh_set_a0_call0", "blockage"): New patterns.
28693 2015-03-03 Martin Liska <mliska@suse.cz>
28696 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
28698 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
28701 * config/rs6000/rs6000-tables.opt: Regenerate table.
28703 2015-03-03 Renlin Li <renlin.li@arm.com>
28705 * doc/md.texi (@item ^): Change ? into ^.
28707 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
28709 * doc/tm.texi: Regenerated.
28711 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
28713 * builtins.c (expand_builtin_return_addr): Add
28714 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
28715 surrounding #ifdef.
28716 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
28718 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
28720 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
28722 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
28725 2015-03-03 Martin Jambor <mjambor@suse.cz>
28726 Eric Botcazou <ebotcazou@adacore.com>
28728 * tree-sra.c (ipa_sra_check_caller_data): New type.
28729 (has_caller_p): Removed.
28730 (ipa_sra_check_caller): New function.
28731 (ipa_sra_preliminary_function_checks): Use it.
28733 2015-03-03 Martin Liska <mliska@suse.cz>
28735 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
28736 instead of if branch.
28738 2015-03-03 Martin Liska <mliska@suse.cz>
28741 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
28743 2015-03-23 Jeff Law <law@redhat.com>
28745 PR tree-optimization/65241
28746 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
28747 hash table if INSERT is true.
28749 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
28752 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
28754 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
28757 * config/avr/avr.c (context.h, tree-pass.h): Include them.
28758 (avr_pass_data_recompute_notes): New static variable.
28759 (avr_pass_recompute_notes): New class.
28760 (avr_register_passes): New static function.
28761 (avr_option_override): Call it.
28763 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
28765 Fix various problems with specs file generation.
28768 * config.gcc (extra_gcc_objs) [avr]: Remove.
28769 * config/avr/driver-avr.c: Remove file.
28770 * config/avr/t-avr (driver-avr.o): Remove rule.
28771 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
28772 INCLUDES to build. Depend on TM_H.
28773 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
28774 build warnings. Fix non-matching types and non-existing %-codes.
28776 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
28777 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
28778 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
28779 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
28780 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
28781 (LIBGCC_SPEC): Remove definitions.
28783 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
28785 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
28786 to create a register in testing mode.
28788 2015-03-03 Martin Liska <mliska@suse.cz>
28789 Jan Hubicka <hubicka@ucw.cz>
28792 * cgraph.c (cgraph_node::has_thunk_p): New function.
28793 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
28794 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
28795 (sem_function::merge): Assert is changed.
28797 2015-03-03 Martin Liska <mliska@suse.cz>
28798 Martin Jambor <mjambor@suse.cz>
28801 * ipa-icf.c (sem_item_optimizer::execute): Change function
28802 return value to boolean.
28803 (sem_item_optimizer::merge_classes): Likewise.
28804 (ipa_icf_driver): Return TODO_remove_functions in case there's
28805 a merge operation processed.
28806 * ipa-icf.h: Change function return value to boolean.
28808 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
28811 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
28812 processor type for 64-bit little endian PowerPC.
28814 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
28815 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
28816 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
28817 printing built-in mask so it does not pass NULL pointers.
28819 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
28822 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
28825 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
28826 !ISA_HAS_FP_CONDMOVE.
28828 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
28830 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
28833 2015-03-02 Ulrich Drepper <drepper@gmail.com>
28835 * doc/invoke.texi (Options for Code Generation Conventions):
28836 Fix URL of DSO paper.
28838 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
28841 * ipa-inline.c (check_callers): Looks for recursion.
28842 (inline_to_all_callers): Give up on uninlinable or recursive edges.
28843 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
28844 summary of inline clones.
28845 (do_estimate_growth_1): Fix recursion check.
28847 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
28850 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
28853 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
28854 Aldy Hernandez <aldyh@redhat.com>
28857 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
28858 when checking TYPE_BINFO.
28860 2015-03-02 Richard Biener <rguenther@suse.de>
28863 * ipa-icf-gimple.c: Include builtins.h.
28864 (func_checker::compare_memory_operand): Compare base alignment.
28866 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
28869 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
28870 are never passed by reference.
28872 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
28875 * tree-chkp.c (chkp_check_lower): Don't check against
28876 zero bounds for already instrumented functions.
28877 (chkp_check_upper): Likewise.
28878 (chkp_fini): Clean pass local data to avoid wrong reusage.
28880 2015-02-28 Martin Liska <mliska@suse.cz>
28881 Jan Hubicka <hubicka@ucw.cz>
28883 * ipa-icf.c (sem_variable::equals): Improve debug output;
28884 get variable constructor.
28885 (sem_variable::parse): Do not filter out too early; give up on
28886 volatile and register vars.
28887 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
28889 * ipa-icf.h (sem_variable::init): Do not set ctor.
28890 (sem_variable::ctor): Remove.
28892 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
28894 PR middle-end/65233
28895 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
28897 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28899 * ipa-icf.c: Include stor-layout.h
28900 (sem_function::compare_cgraph_references): Rename to ...
28901 (sem_item::compare_cgraph_references): ... this one.
28902 (sem_variable::equals_wpa): New function
28903 (sem_variable::equals): Do not check stuff already verified by
28905 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
28906 * ipa-icf.h (sem_item): Add compare_cgraph_references.
28907 (sem_function): Remove compare_cgraph_references.
28908 (sem_variable): Turns equals_wpa into non-inline.
28910 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28912 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
28913 (sem_item::add_expr): New function.
28914 (sem_function::hash_stmt): Handle operands of most statements.
28915 (sem_variable::get_hash): Hash the actual constructor.
28916 * ipa-icf.h (sem_item): Add add_expr.
28917 (sem_function): Update prototype of hash_stmt
28919 2015-02-28 Martin Liska <mliska@suse.cz>
28920 Jan Hubicka <hubicka@ucw.cz>
28923 * ipa-icf-gimple.c (func_checker::compare_function_decl):
28925 (func_checker::compare_variable_decl): Skip symtab vars.
28926 (func_checker::compare_cst_or_decl): Update.
28927 * ipa-icf.c (sem_function::parse): Do not consider aliases.
28928 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
28929 use correct symtab predicates.
28930 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
28931 (sem_variable::parse): Update comment.
28932 (sem_item_optimizer::build_graph): Consider ultimate aliases
28935 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28937 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
28940 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28942 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
28943 (sem_variable::merge) Likewise.
28945 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28947 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
28948 target; also match flag_ipa_devirt.
28950 2015-03-01 Martin Liska <mliska@suse.cz>
28951 Jan Hubicka <hubicka@ucw.cz>
28953 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
28954 Validate variable alignment.
28955 * ipa-icf.c (sem_function::equals_private): Be more precise
28956 about non-common function attributes.
28957 (sem_variable::equals): Likewise.
28959 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28962 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
28963 across COMDAT group boundary.
28965 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28968 * ipa-icf.c (clear_decl_rtl): New function.
28969 (sem_function::merge): Clear RTL before forming alias.
28970 (sem_variable::merge): Clear RTL before forming alias.
28972 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28975 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
28977 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
28979 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
28982 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
28984 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
28985 a typo in the description.
28987 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
28990 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
28991 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
28992 * lra-constraints.c: Include "params.h".
28993 (EBB_PROBABILITY_CUTOFF): Use
28994 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
28995 (lra_inheritance): Use '<' instead of '<=' for
28996 EBB_PROBABILITY_CUTOFF.
28997 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
29000 2015-02-27 Martin Liska <mliska@suse.cz>
29002 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
29003 vector length condition.
29005 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
29007 * doc/extend.texi (x86 transactional memory intrinsics):
29008 Reorganize discussion of _xbegin. Clarify that the return
29009 value is a bit mask. Expand example and move to end of section.
29011 2015-02-26 Jakub Jelinek <jakub@redhat.com>
29012 Aldy Hernandez <aldyh@redhat.com>
29014 PR rtl-optimization/65220
29015 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
29017 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
29020 * lra-remat.c (update_scratch_ops): New.
29021 (do_remat): Call it.
29022 * lra.c (lra_register_new_scratch_op): New. Take code from ...
29023 (remove_scratches): ... here.
29024 * lra-int.h (lra_register_new_scratch_op): New prototype.
29026 2015-02-27 Marek Polacek <polacek@redhat.com>
29029 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
29030 -Wformat-signedness anymore.
29032 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29034 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
29036 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
29038 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29040 * config/s390/s390.c (enum s390_builtin):
29041 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
29042 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
29043 (s390_init_builtins): Generate new builtin functions.
29044 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
29045 (s390_sfpc, s390_efpc): New pattern definitions.
29047 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29049 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
29050 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
29051 (s390_builtin_decls): New array.
29052 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
29053 (s390_builtin_decl): New function.
29054 (TARGET_BUILTIN_DECL): Define macro.
29056 2015-02-27 Richard Biener <rguenther@suse.de>
29058 PR middle-end/63175
29059 * builtins.c (get_object_alignment_2): Make sure to re-apply
29060 the ANDed mask after recursing to its operand gets us a new
29061 misalignment bit position.
29063 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
29064 Martin Liska <mliska@suse.cz>
29067 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
29068 Use address_matters_p.
29069 (redirect_all_callers, set_addressable): New functions.
29070 (sem_function::merge): Reorganize and fix merging issues.
29071 (sem_variable::merge): Likewise.
29072 (sem_variable::compare_sections): Remove.
29073 * common.opt (fmerge-all-constants, fmerge-constants): Remove
29075 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
29077 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
29079 (address_matters_1): New function.
29080 (symtab_node::address_matters_p): New function.
29081 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
29082 check for merged flag.
29083 * cgraph.h (address_matters_p): Declare.
29084 (symtab_node::address_taken_from_non_vtable_p): Remove.
29085 (symtab_node::address_can_be_compared_p): New method.
29086 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
29087 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
29089 (comdat_can_be_unshared_p_1) Use address_matters_p.
29090 (update_vtable_references): Fix formating.
29091 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
29092 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
29093 * cgraphclones.c: Preserve merged and icf_merged flags.
29095 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
29097 * doc/extend.texi (Function Attributes): Fix spelling and typos.
29098 (Label Attributes): Likewise.
29099 (Cilk Plus Builtins): Likewise.
29100 (ARC SIMD Built-in Functions): Likewise.
29101 (ARM C Language Extensions (ACLE)): Likewise.
29102 (PowerPC Built-in Functions): Likewise.
29103 (PowerPC Hardware Transactional Memory Built-in Functions):
29106 2015-02-26 Jakub Jelinek <jakub@redhat.com>
29108 PR tree-optimization/65216
29109 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
29110 new stmt and new SSA_NAME for lhs whenever the arguments have
29111 changed and weren't just swapped. Fix comment typo.
29113 PR tree-optimization/65215
29114 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
29115 for PDP endian targets.
29116 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
29117 Fix up formatting issues.
29118 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
29119 size is smaller than the original, adjust MEM_REF offset by the
29120 difference of sizes. Use is_gimple_mem_ref_addr instead of
29121 is_gimple_min_invariant test to avoid adding address temporaries.
29123 2015-02-26 Martin Liska <mliska@suse.cz>
29124 Jan Hubicka <hubicka@ucw.cz>
29127 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
29128 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
29129 (sem_item_optimizer::process_cong_reduction): Include division by
29130 sensitive references.
29131 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
29132 * ipa-ref.c (ipa_ref::address_matters_p): New function.
29133 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
29135 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
29138 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
29140 * config/avr/avr.c: Same.
29141 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
29142 Refuse any constant address not in 0..0xbf.
29143 * config/avr/avr.md (*mov<mode>, *movsf): Remove
29144 tiny_valid_direct_memory_access_range from insn conditions.
29145 (mov<mode>): Don't special-case expansion of avrtiny addresses.
29147 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
29150 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
29151 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
29152 * config/sh/predicates.md (const_logical_operand): New predicate.
29153 * config/sh/sh.md: Add new peephole2 patterns.
29155 2015-02-26 Marek Polacek <polacek@redhat.com>
29158 * ipa-inline.c (early_inliner): Recompute inline parameters.
29160 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29163 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
29164 instructions with TImode operands are included in the analysis.
29166 2015-02-26 Sebastian Pop <s.pop@samsung.com>
29168 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
29169 of an EDGE_FSM_THREAD.
29171 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
29173 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
29175 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
29178 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
29180 2015-02-26 Sebastian Pop <s.pop@samsung.com>
29182 PR tree-optimization/65048
29183 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
29184 (thread_through_all_blocks): Call valid_jump_thread_path.
29185 Remove invalid FSM jump-thread paths.
29187 2015-02-26 Jakub Jelinek <jakub@redhat.com>
29189 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
29190 (ipa_write_optimization_summaries): Likewise.
29191 * tree-streamer.h: Include data-streamer.h.
29192 (streamer_mode_table): Declare extern variable.
29193 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
29194 * lto-streamer-out.c (lto_output_init_mode_table,
29195 lto_write_mode_table): New functions.
29196 (produce_asm_for_decls): Call lto_write_mode_table when streaming
29198 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
29199 (lto_create_simple_input_block): Add mode_table argument to the
29200 lto_input_block constructors.
29201 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
29203 * data-streamer-in.c (string_for_index): Likewise.
29204 * ipa-inline-analysis.c (inline_read_section): Likewise.
29205 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
29206 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
29207 * lto-streamer-in.c (lto_read_body_or_constructor,
29208 lto_input_toplevel_asms): Likewise.
29209 (lto_input_mode_table): New function.
29210 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
29211 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
29212 Use bp_pack_machine_mode.
29213 * real.h (struct real_format): Add name field.
29214 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
29215 (class lto_input_block): Add mode_table member.
29216 (lto_input_block::lto_input_block): Add mode_table_ argument,
29217 initialize mode_table.
29218 (struct lto_file_decl_data): Add mode_table field.
29219 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
29220 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
29221 unpack_ts_decl_common_value_fields,
29222 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
29223 * tree-streamer.c (streamer_mode_table): New variable.
29224 * real.c (ieee_single_format, mips_single_format,
29225 motorola_single_format, spu_single_format, ieee_double_format,
29226 mips_double_format, motorola_double_format,
29227 ieee_extended_motorola_format, ieee_extended_intel_96_format,
29228 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
29229 ibm_extended_format, mips_extended_format, ieee_quad_format,
29230 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
29231 decimal_single_format, decimal_double_format, decimal_quad_format,
29232 ieee_half_format, arm_half_format, real_internal_format): Add name
29234 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
29236 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
29239 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
29240 reordering for selective scheduling.
29242 2015-02-26 Terry Guo <terry.guo@arm.com>
29244 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
29245 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
29246 (arm_arch_no_volatile_ce): Declare new global variable.
29247 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
29248 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
29249 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
29250 (TARGET_NO_VOLATILE_CE): New macro.
29251 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
29252 volatile memory access in IT block
29254 2015-02-25 Kai Tietz <ktietz@redhat.com>
29256 PR tree-optimization/61917
29257 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
29258 that reduc_def_stmt is null.
29260 2015-02-25 Martin Liska <mliska@suse.cz>
29262 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
29263 hard register variables.
29265 2015-02-25 Kai Tietz <ktietz@redhat.com>
29268 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
29269 (symtab::noninterposable_alias): Likewise.
29271 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
29274 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
29276 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
29278 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
29281 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
29282 as split condition; force split via '#' in output pattern.
29284 2015-02-25 Richard Biener <rguenther@suse.de>
29285 Kai Tietz <ktietz@redhat.com>
29287 PR tree-optimization/61917
29288 * tree-vect-loop.c (vectorizable_reduction): Allow
29289 vect_internal_def without reduction to exit graceful.
29291 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
29294 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
29295 only with NONDEBUG_INSN_P.
29297 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
29299 Use variadic macros with avr-log.c.
29301 * config/avr/avr-protos.h (avr_vdump): New prototype.
29302 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
29303 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
29304 * config/avr/avr-log.c: Adjust comments.
29305 (avr_vdump): New function.
29306 (avr_vadump): Pass caller as 2nd argument instead of format string.
29307 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
29308 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
29310 2015-02-25 Jakub Jelinek <jakub@redhat.com>
29313 * target.def (target_option_stream_in): New target hook.
29314 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
29315 targetm.target_option.post_stream_in if non-NULL.
29316 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
29317 * doc/tm.texi: Updated.
29318 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
29320 (TARGET_OPTION_POST_STREAM_IN): Redefine.
29322 2015-02-24 Jeff Law <law@redhat.com>
29325 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
29326 of operand 0 and operand 2.
29327 (zero_cost_loop_end, loop_end): Similarly.
29329 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
29331 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
29334 2015-02-24 DJ Delorie <dj@redhat.com>
29336 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
29337 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
29338 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
29339 instead of hardcoding SImode.
29341 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
29343 * omp-low.c (create_omp_child_function): Tag entrypoint
29344 functions with a special attribute.
29346 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
29349 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
29351 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
29353 PR rtl-optimization/65123
29354 * lra-remat.c (operand_to_remat): Check hard regs in insn
29357 2015-02-24 Nick Clifton <nickc@redhat.com>
29359 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
29362 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
29365 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
29366 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
29367 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
29368 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
29369 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
29370 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
29371 (BUILT_IN_GOACC_PARALLEL): Specify as
29372 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
29373 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
29374 * builtin-types.def
29375 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
29376 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
29377 Remove function types.
29378 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
29379 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
29380 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
29381 New function types.
29383 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
29385 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
29387 2015-02-24 Jakub Jelinek <jakub@redhat.com>
29389 PR tree-optimization/65170
29390 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
29391 if val[1] < 0, clear also val[2] and return 3.
29393 2015-02-24 Alan Modra <amodra@gmail.com>
29396 * config/rs6000/rs6000.c (get_memref_parts): Only return true
29397 when *base is a reg. Handle nested plus addresses. Simplify
29400 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
29402 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
29403 use natural alignment when optimizing for size.
29405 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
29408 * config/sh/sh.md (movsicc_true+3): Remove peephole.
29409 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
29410 * config/sh/sh.c (replace_n_hard_rtx): Remove.
29412 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
29415 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
29416 too big for a wide_int. Implement missing wrapping operation.
29418 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
29421 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
29422 instead of const_int 4294901760.
29424 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
29426 * config/avr/t-avr: Fix typo in comment.
29428 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
29430 * doc/rtl.texi (fma): Clarify documentation.
29432 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
29435 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
29436 over input_location.
29438 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
29440 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
29441 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
29442 restrict alignments to absolute_biggest_alignment.
29443 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
29445 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
29446 * doc/tm.texi: Regenerate.
29447 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
29449 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
29452 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
29454 2015-02-20 Richard Biener <rguenther@suse.de>
29456 PR tree-optimization/65136
29457 * tree-ssa-propagate.c: Include cfgloop.h.
29458 (replace_phi_args_in): Avoid replacing loop latch edge PHI
29459 arguments with constants.
29461 2015-02-20 Jakub Jelinek <jakub@redhat.com>
29462 Martin Liska <mliska@suse.cz>
29465 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
29466 don't try to create_thunk if stdarg_p. If
29467 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
29468 redirect_callers if possible.
29469 (sem_item_optimizer::execute): Call unregister_hooks here...
29470 (ipa_icf_driver): ... instead of here.
29472 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29474 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
29475 Mark operand 0 as earlyclobber in 2nd alternative.
29476 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
29477 Write negated shift amount into QI lowpart operand 0 and use it
29479 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
29481 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
29483 * cgraph.h (clone_function_name_1): Declare.
29484 * cgraphclones.c (clone_function_name_1): New function.
29485 (clone_function_name): Use it.
29486 * lto-partition.c: Include "stringpool.h".
29487 (must_not_rename, maybe_rewrite_identifier)
29488 (validize_symbol_for_target): New static functions.
29489 (privatize_symbol_name): Use must_not_rename.
29490 (promote_symbol): Call validize_symbol_for_target.
29491 (lto_promote_cross_file_statics): Likewise.
29492 (lto_promote_statics_nonwpa): Likewise.
29494 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
29497 * config/avr/avr.md (pushhi_insn): New insn.
29498 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
29500 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
29501 Jakub Jelinek <jakub@redhat.com>
29503 * tree-streamer.c (preload_common_nodes): Don't preload
29504 TI_VA_LIST* for offloading.
29505 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
29508 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
29510 * config/pa/pa.c (pa_emit_move_sequence): Always force
29511 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
29514 * config/pa/pa.c (pa_reloc_rw_mask): New function.
29515 (TARGET_ASM_RELOC_RW_MASK): Define.
29516 (pa_cannot_force_const_mem): Revert previous change.
29518 2015-02-19 Martin Jambor <mjmabor@suse.cz>
29519 Jan Hubicka <hubicka@ucw.cz>
29522 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
29523 across jump functions.
29525 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
29527 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
29529 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
29531 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
29533 2015-02-19 Richard Henderson <rth@redhat.com>
29535 PR middle-end/65074
29536 * varasm.c (default_binds_local_p_2): Don't test node->definition;
29537 test DECL_EXTERNAL independent of symtab_node.
29539 2015-02-19 Jakub Jelinek <jakub@redhat.com>
29542 * varpool.c (varpool_node::get_constructor): Return early
29543 if this->lto_file_data is NULL.
29545 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29547 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
29548 (rank_for_schedule_debug): Update.
29549 (ready_sort): Make static. Move sorting logic to ...
29550 (ready_sort_debug, ready_sort_real): New static functions.
29551 (schedule_block): Sort both debug insns and real insns in preparation
29552 for ready list trimming. Improve debug output.
29553 * sched-int.h (ready_sort): Remove global declaration.
29555 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
29557 * ipa-icf.c (sem_function::equals_private): Adjust.
29558 (sem_function::bb_dict_test): Take a vec<int> * instead of
29560 * ipa-icf.h (bb_dict_test): Likewise.
29562 2015-02-18 Jakub Jelinek <jakub@redhat.com>
29564 PR gcov-profile/64634
29565 * tree-eh.c (frob_into_branch_around): Fix up typos
29566 in function comment.
29567 (lower_catch): Put eh_seq resulting from EH lowering of
29568 the cleanup sequence after the cleanup rather than before it.
29570 2015-02-18 Tom de Vries <tom@codesourcery.com>
29572 * common.opt (fstdarg-opt): New option.
29573 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
29574 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
29575 (@item -fstdarg-opt): New item.
29577 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
29580 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
29581 for common symbols.
29583 2015-02-18 Jakub Jelinek <jakub@redhat.com>
29585 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
29587 (ALL_HOST_OBJS): Add mkoffload.o.
29588 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
29590 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
29592 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
29593 (compare_virtual_tables): Be smarter about skipping typeinfos;
29594 do sane output on virtual table table mismatch.
29595 (warn_odr): Be ready for forward declarations of enums;
29596 output sane info on base mismatch and virtual table mismatch.
29597 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
29598 when only one type is polymorphic.
29599 (get_odr_type): Fix hashtable corruption.
29600 (dump_odr_type): Dump mangled names.
29602 2015-02-18 Richard Biener <rguenther@suse.de>
29604 PR tree-optimization/65063
29605 * tree-predcom.c (determine_unroll_factor): Return 1 if we
29606 have replaced looparound PHIs.
29608 2015-02-18 Martin Liska <mliska@suse.cz>
29610 * lto-streamer.c (lto_streamer_init): Encapsulate
29611 streamer_check_handled_ts_structures with checking macro.
29613 2015-02-18 Jakub Jelinek <jakub@redhat.com>
29616 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
29617 section if !implicit_section.
29618 (cgraph_node::create_version_clone_with_body): Likewise.
29619 * trans-mem.c (ipa_tm_create_version): Likewise.
29621 2015-02-18 Richard Biener <rguenther@suse.de>
29623 PR tree-optimization/62217
29624 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
29627 2015-02-18 Marek Polacek <polacek@redhat.com>
29630 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
29631 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
29632 is in range [-16K, -1]. Don't issue run-time error if
29633 (ptr > ptr + offset).
29635 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
29637 * doc/install.texi (nvptx-*-none): New section.
29638 * doc/invoke.texi (Nvidia PTX Options): Likewise.
29639 * config/nvptx/nvptx.opt: Update.
29641 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
29642 (access_check): New functions, copied from
29643 config/i386/intelmic-mkoffload.c.
29644 (main): For non-installed testing, look in all COMPILER_PATHs for
29647 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
29649 2015-02-18 Andrew Pinski <apinski@cavium.com>
29650 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29652 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
29653 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
29655 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
29657 * ipa-visibility.c (function_and_variable_visibility): Only
29658 check locality if node is not already local.
29659 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
29660 call_for_symbol_and_aliases instead of
29661 call_for_symbol_thunks_and_aliases.
29662 (ipa_inline): Likewise.
29663 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
29664 first walk aliases.
29665 * ipa.c (symbol_table::remove_unreachable_nodes): Use
29666 call_for_symbol_and_aliases.
29667 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
29668 (ipa_propagate_frequency_1): Use it; use opt_for_fn
29669 (ipa_propagate_frequency): Update.
29670 (ipa_profile): Add opt_for_fn gueards.
29672 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
29674 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
29675 * doc/invoke.texi (SH options): Document it.
29676 * config/sh/sh.c (sh_insn_length_adjustment): Check
29677 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
29679 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
29681 * common.opt (fipa-cp-alignment): New.
29682 * ipa-cp.c (ipcp_store_alignment_results): Check
29683 flag_ipa_cp_alignment.
29684 * opts.c (default_options_table): Enable -fipa-cp-alignment for
29686 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
29687 * doc/invoke.texi: Document -fipa-cp-alignment.
29689 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
29692 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
29693 to nil. Adjust comments.
29695 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
29697 * ipa-visibility.c (function_and_variable_visibility): Only
29698 check locality if node is not already local.
29699 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
29700 call_for_symbol_and_aliases instead of
29701 call_for_symbol_thunks_and_aliases.
29702 (ipa_inline): Likewise.
29703 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
29704 first walk aliases.
29705 * ipa.c (symbol_table::remove_unreachable_nodes): Use
29706 call_for_symbol_and_aliases.
29707 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
29708 (ipa_propagate_frequency_1): Use it; use opt_for_fn
29709 (ipa_propagate_frequency): Update.
29710 (ipa_profile): Add opt_for_fn guards.
29712 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
29714 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
29715 skipping of "strange" tokens.
29717 2015-02-17 Jeff Law <law@redhat.com>
29719 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
29722 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
29724 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
29725 as forcing a HARD_DEP between instructions, thereby
29726 disallowing rewriting to break dependencies.
29728 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
29730 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
29731 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
29732 variables in boundary that have no inlitalizer encoded and are
29734 * varasm.c (default_binds_local_p_2): External definitions do not
29735 count as definitions here.
29737 2015-02-16 Jeff Law <law@redhat.com>
29739 PR tree-optimization/64823
29740 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
29742 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
29743 threading through blocks with PHIs, but no statements.
29744 (thread_through_normal_block): Distinguish between blocks where
29745 we did not process all the statements and blocks with no statements.
29747 2015-02-16 Jakub Jelinek <jakub@redhat.com>
29748 James Greenhalgh <james.greenhalgh@arm.com>
29751 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
29752 section if not linkonce. Fix up formatting.
29753 (cgraph_node::create_version_clone_with_body): Copy section.
29754 * trans-mem.c (ipa_tm_create_version): Likewise.
29756 2015-02-16 Richard Biener <rguenther@suse.de>
29758 PR tree-optimization/65077
29759 * tree-ssa-structalias.c (get_constraint_for_1): Handle
29760 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
29761 (find_func_aliases): Allow float values to carry pointers again.
29763 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
29765 * doc/install.texi (Specific): Reorder targets list to put
29766 aarch64 in alphabetical order. Add a link to aarch64*-*-*
29769 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
29770 David Edelsohn <dje.gcc@gmail.com>
29773 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
29774 mapping class to external variable or function reference.
29775 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
29778 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
29781 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
29782 ASM_WEAKEN_DECL if defined.
29784 2015-02-16 Richard Biener <rguenther@suse.de>
29787 * varasm.c (default_file_start): For LTO produced units
29788 emit <artificial> as file directive.
29790 2015-02-16 Richard Biener <rguenther@suse.de>
29792 PR tree-optimization/63593
29793 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
29794 stmts and releasing SSA names until...
29795 (execute_pred_commoning): ... after processing all chains.
29797 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
29800 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
29801 external functions.
29803 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
29805 * doc/bugreport.texi: Adjust section titles throughout the file
29806 to use "Title Case".
29807 * doc/extend.texi: Likewise.
29808 * doc/gcov.texi: Likewise.
29809 * doc/implement-c.texi: Likewise.
29810 * doc/implement-cxx.texi: Likewise.
29811 * doc/invoke.texi: Likewise.
29812 * doc/objc.texi: Likewise.
29813 * doc/standards.texi: Likewise.
29814 * doc/trouble.texi: Likewise.
29816 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
29818 * cgraph.h (symtab_node::has_aliases_p): Simplify.
29819 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
29820 * tree.c (lookup_binfo_at_offset): Make static.
29821 (get_binfo_at_offset): Do not shadow offset; add explanatory
29824 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
29826 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
29827 for all floading point loads and stores except those using a register
29829 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
29832 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
29834 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
29835 (do_estimate_growth_1): Record if any uninlinable edge was seen.
29836 (estimate_growth): Handle uninlinable edges correctly.
29837 (check_callers): New.
29838 (growth_likely_positive): Handle aliases correctly.
29840 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
29842 * ipa-chkp.c: Use iterate_direct_aliases.
29843 * symtab.c (resolution_used_from_other_file_p): Move inline.
29844 (symtab_node::create_reference): Fix formating.
29845 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
29846 (symtab_node::iterate_reference): Move inline.
29847 (symtab_node::iterate_referring): Move inline.
29848 (symtab_node::iterate_direct_aliases): Move inline.
29849 (symtab_node::used_from_object_file_p_worker): Inline into ...
29850 (symtab_node::used_from_object_file_p): ... this one; move inline.
29851 (symtab_node::call_for_symbol_and_aliases): Move inline;
29852 use iterate_direct_aliases.
29853 (symtab_node::call_for_symbol_and_aliases_1): New method.
29854 (cgraph_node::call_for_symbol_and_aliases): Move inline;
29855 use iterate_direct_aliases.
29856 (cgraph_node::call_for_symbol_and_aliases_1): New method.
29857 (varpool_node::call_for_node_and_aliases): Rename to ...
29858 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
29859 use iterate_direct_aliases.
29860 (varpool_node::call_for_symbol_and_aliases_1): New method.
29861 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
29862 (ipa_discover_readonly_nonaddressable_var): Update.
29863 * ipa-devirt.c: Fix formating.
29864 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
29866 (cgraph_node::call_for_symbol_and_aliases): Move inline.
29867 (cgraph_node::call_for_symbol_and_aliases_1): New function..
29868 * cgraph.h (used_from_object_file_p_worker): Remove.
29869 (resolution_used_from_other_file_p): Move inline.
29870 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
29871 (symtab_node::iterate_reference): Move inline.
29872 (symtab_node::iterate_referring): Move inline.
29873 (symtab_node::iterate_direct_aliases): Move inline.
29874 (symtab_node::used_from_object_file_p_worker): Inline into ...
29875 (symtab_node::used_from_object_file_p): Move inline.
29876 * tree-emutls.c (ipa_lower_emutls): Update.
29877 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
29878 (varpool_node::call_for_node_and_aliases): Remove.
29880 2015-02-14 Jakub Jelinek <jakub@redhat.com>
29882 PR tree-optimization/62209
29883 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
29884 op == range->exp, insert seq and gimplified code after labels
29885 instead of after the phi.
29887 2015-02-13 Jeff Law <law@redhat.com>
29890 Revert my change for tree-optimization/64823.
29892 2015-02-13 Jakub Jelinek <jakub@redhat.com>
29894 PR tree-optimization/65053
29895 * tree-ssa-phiopt.c (value_replacement): When moving assign before
29896 cond, either reset VR on lhs or set it to phi result VR.
29898 2015-02-13 Jeff Law <law@redhat.com>
29900 PR tree-optimization/64823
29901 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
29902 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
29903 threading through blocks with PHIs, but no statements.
29904 (thread_through_normal_block): Distinguish between blocks where
29905 we did not process all the statements and blocks with no statements.
29907 PR rtl-optimization/47477
29908 * match.pd (convert (plus/minus (convert @0) (convert @1): New
29909 simplifier to narrow arithmetic.
29911 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
29914 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
29915 polymorphic call info when type is not known to be preserved.
29917 2015-02-13 Maritn Jambor <mjambor@suse.cz>
29920 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
29921 (inline_call): Use it.
29923 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
29925 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
29926 GOMP_DEVICE_NVIDIA_PTX.
29928 2015-02-13 Jakub Jelinek <jakub@redhat.com>
29931 * stmt.c (emit_case_nodes): Use void_type_node instead of
29932 NULL_TREE as LABEL_DECL type.
29934 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
29936 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
29938 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
29939 symbolic references to data to be forced to constant memory on the
29942 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
29944 PR tree-optimization/65002
29945 * tree-cfg.c (pass_data_fixup_cfg): Don't update
29947 * tree-sra.c (some_callers_have_no_vuse_p): New.
29948 (ipa_early_sra): Reject functions whose callers
29949 assume function is read only.
29951 2015-02-13 Richard Biener <rguenther@suse.de>
29954 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
29955 for LTO produced CUs.
29957 2015-02-13 Bin Cheng <bin.cheng@arm.com>
29959 PR tree-optimization/64705
29960 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
29961 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
29962 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
29963 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
29964 expand_simple_operations.
29966 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
29967 Richard Henderson <rth@redhat.com>
29970 * cgraphunit.c (cgraph_node::finalize_function): Set definition
29971 before notice_global_symbol.
29972 (varpool_node::finalize_decl): Likewise.
29973 * varasm.c (default_binds_local_p_2): Rename from
29974 default_binds_local_p_1, add weak_dominate argument. Use direct
29975 returns instead of assigning to local variable. Unify varpool and
29976 cgraph paths via symtab_node. Reject undef weak variables before
29977 testing visibility. Reorder tests for simplicity.
29978 (default_binds_local_p): Use default_binds_local_p_2.
29979 (default_binds_local_p_1): Likewise.
29980 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
29982 (default_elf_asm_output_external): Emit visibility when specified.
29984 2015-02-13 Alan Modra <amodra@gmail.com>
29986 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
29987 code setting up r11 for out-of-line fp restore.
29989 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
29991 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
29992 (muser-mode): Likewise.
29994 2015-02-13 Alan Modra <amodra@gmail.com>
29996 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
29997 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
29999 2015-02-12 David Howells <dhowells@redhat.com>
30001 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
30003 * tree-ssa-uninit.c (dump_predicates): Likewise.
30004 * opts.c (print_filtered_help): Likewise.
30006 2015-02-12 Jakub Jelinek <jakub@redhat.com>
30008 * dwarf2out.c (output_die): Use "%s", name instead of name to
30009 avoid -Wformat-security warning.
30011 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
30012 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
30013 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
30014 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
30016 2015-02-12 Jason Merrill <jason@redhat.com>
30018 * common.opt (-flifetime-dse): New.
30020 2015-02-12 Jakub Jelinek <jakub@redhat.com>
30023 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
30025 PR tree-optimization/65014
30026 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
30027 use original second operand of arg0 or arg1 instead of
30028 that adjusted by STRIP_NOPS.
30030 2015-02-11 Jeff Law <law@redhat.com>
30033 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
30034 that needs to be queued, just queue it for a single cycle.
30036 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
30038 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
30039 bodies of thunks; comment on why.
30040 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
30041 symbols are extern.
30043 2015-02-11 Richard Henderson <rth@redhat.com>
30046 * tree-eh.c (mark_reachable_handlers): Mark source and destination
30047 regions of __builtin_eh_copy_values.
30049 2015-02-11 Jakub Jelinek <jakub@redhat.com>
30051 PR middle-end/65003
30052 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
30053 ultimate alias is MEM with SYMBOL_REF satisfying
30054 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
30055 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
30057 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
30059 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
30060 "diagnostic-core.h".
30061 (main): Initialize progname, and call diagnostic_initialize.
30063 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
30064 instead of __OPENMP_TARGET__.
30066 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
30067 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
30068 hard-coding PTX_ID.
30070 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
30072 * doc/sourcebuild.texi (pie_enabled): Document.
30074 2015-02-11 Martin Liska <mliska@suse.cz>
30077 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
30078 a return value for call to a function that is noreturn.
30080 2015-02-11 Richard Biener <rguenther@suse.de>
30083 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
30086 2015-02-11 Andrew Pinski <apinski@cavium.com>
30089 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
30090 Change the first argument type to size_type_node and add another
30092 (aarch64_simd_expand_builtin): Handle the new argument to
30093 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
30094 print an out when the first two arguments are not
30095 nonzero integer constants.
30096 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
30097 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
30099 2015-02-11 Jakub Jelinek <jakub@redhat.com>
30102 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
30103 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
30104 (ix86_set_current_function): Rewritten.
30105 (ix86_add_new_builtins): Temporarily clear current_target_pragma
30106 when creating builtin fndecls.
30108 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
30111 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
30113 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
30114 have no comdat group.
30115 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
30116 (lto_output_varpool_node): Always output alias info.
30117 (output_refs): Output refs of boundary aliases, too.
30118 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
30119 (output_symtab): Output call eges in thunks in boundary.
30120 (get_alias_symbol): Remove.
30121 (input_node, input_varpool_node): Do not special case weakrefs.
30122 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
30123 alias and thunks targets in the boundary; do not take removed symbols
30124 from their comdat groups.
30125 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
30126 (cgraph_node::global_info): Remove.
30127 (cgraph_node::rtl_info): Look through aliases and thunks.
30128 * cgrpah.h (global_info): Remove.
30129 (non_local_p): Remove.
30131 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
30132 Sandra Loosemore <sandra@codesourcery.com>
30134 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
30135 to inline asm. List dialects in proper order.
30137 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
30138 Sandra Loosemore <sandra@codesourcery.com>
30140 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
30142 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
30144 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
30145 modified) reference to Solaris.
30147 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
30149 * doc/extend.texi (Extended Asm): Fix typos.
30151 2015-02-10 Jakub Jelinek <jakub@redhat.com>
30154 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
30156 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
30159 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
30160 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
30161 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
30162 * config/sh/constraints.md (Ara, Add): New constraints.
30163 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
30165 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
30166 atomic_mem_operand_0. Don't use force_reg on the memory address.
30167 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
30168 Sra constraint. Convert to insn_and_split. Add workaround for
30170 (atomic_compare_and_swap<mode>_hard): Copy to
30171 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
30172 Use atomic_mem_operand_0 predicate.
30173 (atomic_compare_and_swap<mode>_soft_gusa,
30174 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
30175 AraAdd constraints.
30176 (atomic_compare_and_swap<mode>_soft_tcb,
30177 atomic_compare_and_swap<mode>_soft_imask,
30178 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
30179 atomic_mem_operand_0 predicate and SraSdd constraints.
30180 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
30182 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
30183 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
30184 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
30185 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
30186 force_reg on the memory address.
30187 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
30188 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
30189 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
30190 atomic_mem_operand_1 predicate and Sra constraint.
30191 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
30192 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
30193 Use atomic_mem_operand_1 predicate.
30194 (atomic_<fetchop_name><mode>_hard): Copy to
30195 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
30196 Use atomic_mem_operand_1 predicate.
30197 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
30198 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
30199 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
30200 insn_and_split. Use atomic_mem_operand_1 predicate.
30201 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
30202 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
30203 Use atomic_mem_operand_1 predicate.
30204 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
30205 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
30206 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
30207 in generated insn with original mem operand before emitting the insn.
30208 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
30209 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
30210 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
30211 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
30212 Use atomic_mem_operand_1 predicate and AraAdd constraints.
30213 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
30214 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
30215 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
30216 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
30217 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
30218 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
30219 atomic_not_fetch<mode>_soft_tcb,
30220 atomic_<fetchop_name>_fetch<mode>_soft_imask,
30221 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
30222 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
30223 Use atomic_mem_operand_1 predicate and SraSdd constraints.
30225 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
30227 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
30228 and 3 earlyclobber operands.
30230 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
30232 * common.opt (fstack-reuse): Mark as optimization.
30234 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
30237 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
30239 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
30241 PR tree-optimization/64326
30242 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
30244 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
30246 PR gcov-profile/61889
30247 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
30249 2015-02-10 Richard Biener <rguenther@suse.de>
30251 PR tree-optimization/64995
30252 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
30253 value we use is final.
30254 (visit_reference_op_store): Always valueize op.
30255 (visit_use): Properly valueize vuses.
30257 2015-02-10 Richard Biener <rguenther@suse.de>
30259 PR tree-optimization/64909
30260 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
30261 pass a scalar-stmt count estimate to the cost model.
30262 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
30264 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
30266 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
30267 enabled by default together with var-tracking.
30269 2015-02-10 Nick Clifton <nickc@redhat.com>
30271 * config/rl78/rl78.c: Remove DIV attribute code accidentally
30272 included in previous rl78 commit.
30274 2015-02-10 Richard Biener <rguenther@suse.de>
30276 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
30277 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
30278 return the bitpack.
30280 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
30282 PR gcov-profile/61889
30283 * config.in: regenerate.
30284 * configure.in: Likewise.
30285 * configure.ac: Check for ftw.h.
30286 * gcov-tool.c: Check for ftw.h before using nftw.
30288 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
30291 * ipa-visibility.c (update_visibility_by_resolution_info): Only
30292 assert when not in lto mode.
30294 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
30296 * ira-color.c (setup_left_conflict_sizes_p): Simplify
30297 initialization/assignment of conflict_size.
30299 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
30302 * ipa-cp.c (gather_caller_stats): Skip thunks.
30303 (propagate_constants_topo): Skip aliases.
30305 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
30308 * config/sh/sh.c (sh_option_override): Don't change
30309 -freorder-blocks-and-partition to -freorder-blocks even when
30310 unwinding is enabled.
30311 (sh_can_follow_jump): Return false if the followee jump is
30312 a crossing jump when -freorder-blocks-and-partition is specified.
30313 * config/sh/sh.md (*jump_compact_crossing): New insn.
30315 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
30316 Kaz Kojima <kkojima@gcc.gnu.org>
30319 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
30320 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
30321 (sh_can_redirect_branch): Rename to ...
30322 (sh_can_follow_jump): ... this. Constify argument types.
30323 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
30324 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
30325 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
30326 * doc/tm.texi: Regenerate.
30328 2015-02-09 Jakub Jelinek <jakub@redhat.com>
30331 * builtins.c (expand_builtin): Call targetm.expand_builtin
30332 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
30334 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30337 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
30339 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30342 * ipa-icf.c (set_local): New function.
30343 (sem_function::merge): Use it.
30345 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30347 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
30348 (add_type_duplicate): Fix comparison of BINFOs.
30350 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30352 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
30353 on getting VOID pointer.
30355 2015-02-09 Jakub Jelinek <jakub@redhat.com>
30358 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
30361 2015-02-09 Richard Biener <rguenther@suse.de>
30363 * genmatch.c (replace_id): Copy expr_type.
30365 2015-02-09 Richard Biener <rguenther@suse.de>
30367 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
30368 (streamer_write_tree_bitfields): Declare.
30369 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
30370 properly unpack padding.
30371 (unpack_value_fields): Inline ...
30372 (streamer_read_tree_bitfields): ... here.
30373 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
30374 and properly add padding bits.
30375 (streamer_pack_tree_bitfields): Fold into ...
30376 (streamer_write_tree_bitfields): ... this new function,
30377 exposing the bitpack object.
30378 * lto-streamer-out.c (lto_write_tree_1): Call
30379 streamer_write_tree_bitfields.
30381 2015-02-09 Richard Biener <rguenther@suse.de>
30383 PR tree-optimization/54000
30384 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
30385 (struct ivopts_data): Add loop_loc member.
30386 (tree_ssa_iv_optimize_loop): Dump loop location.
30387 (create_new_ivs): Likewise, also dump number of IVs generated.
30389 2015-02-09 Martin Liska <mliska@suse.cz>
30391 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
30392 just if not yet registered.
30393 (ipa_icf_generate_summary): Register callgraph hooks.
30395 2015-02-08 Andrew Pinski <apinski@cavium.com>
30397 * config/aarch64/aarch64.c (gty_dummy): Delete.
30399 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30402 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
30403 (cgraph_node::local_p): Remove thunk related FIXME.
30405 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30408 * i386.c (ix86_function_regparm): Look through aliases to see if callee
30409 is local and optimized.
30410 (ix86_function_sseregparm): Likewise; also use target's SSE math
30411 settings; error out instead of silently generating wrong code
30413 (init_cumulative_args): Look through aliases.
30415 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30418 * ipa-split.c (execute_split_functions): Split if function has aliases.
30420 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30423 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
30424 aliases before trying to expand it.
30425 (cgraph_node::expand_thunk): Fix formating.
30427 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
30429 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
30430 (Using Assembly Language with C): Expand introduction.
30431 (Basic Asm): Copy-edit. Add more information about uses of
30433 (Extended Asm): Copy-edit. Document new escape syntax and
30435 (Global Reg Vars): Copy-edit.
30436 (Local Reg Vars): Likewise.
30438 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
30442 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
30443 (DBX_CONTIN_CHAR): Define.
30445 2015-02-06 Sebastian Pop <s.pop@samsung.com>
30446 Brian Rzycki <b.rzycki@samsung.com>
30448 PR tree-optimization/64878
30449 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
30450 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
30451 Stop recursion at loop phi nodes after having visited a loop phi node.
30453 2015-02-06 Jakub Jelinek <jakub@redhat.com>
30455 * toplev.c (process_options): Change flag_ipa_ra before creating
30456 optimization_{default,current}_node.
30459 * cgraphunit.c (cgraph_node::expand_thunk): If
30460 restype is not is_gimple_reg_type nor the thunk_fndecl
30461 returns aggregate_value_p, set restmp to a temporary variable
30462 instead of resdecl.
30464 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
30466 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
30468 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
30471 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
30472 add a general secondary reload handler for SDmode, unless we have
30473 both read/write support for SDmode.
30475 2015-02-06 Jakub Jelinek <jakub@redhat.com>
30477 PR middle-end/64937
30478 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
30479 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
30480 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
30481 1 before, push it to abstract_vec.
30482 (dwarf2out_abstract_function): Adjust caller. Don't call
30483 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
30484 DECL_ABSTRACT_P flags for all abstract_vec elts.
30486 2015-02-06 Renlin Li <renlin.li@arm.com>
30488 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
30490 * tree-ssa.c (execute_update_addresses_taken): Likewise.
30492 2015-02-06 Jeff Law <law@redhat.com>
30495 * config/h8300/h8300.c (push): New argument "in_prologue".
30496 Pass "in_prologue" along to "F".
30497 (h8300_push_pop): Corresponding changes.
30498 (h8300_expand_prologue): Likewise.
30499 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
30501 2015-02-06 Jakub Jelinek <jakub@redhat.com>
30503 PR rtl-optimization/64957
30505 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
30506 IOR rather than for AND.
30508 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
30511 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
30512 of shift-add and (add + shift) operations. Rename local variable.
30514 2015-02-05 Jeff Law <law@redhat.com>
30517 * config/h8300/constraints.md (U): Correctly dectect
30518 "eightbit_data" memory addresses.
30519 * config/h8300/h8300.c (eightbit_constant_address_p): Also
30520 handle (const (plus (symbol_ref (x)))) where x is declared
30521 as an 8-bit data memory address.
30522 * config/h8300/h8300.md (call, call_value): Correctly detect
30523 "funcvec" functions.
30526 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
30527 24 to 28 bits for the H8/300.
30529 2015-02-06 Alan Modra <amodra@gmail.com>
30532 * config/rs6000/rs6000.c (chain_already_loaded): New function.
30533 (rs6000_call_aix): Use it.
30535 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
30537 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
30540 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
30542 * config/h8300/constraints.md ("U" constraint): Use strict
30543 variant of REG_OK_FOR_BASE_P after reload has started.
30545 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
30547 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
30548 define to zero if !TARGET_NEON.
30549 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
30551 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30552 Trevor Saunders <tsaunders@mozilla.com>
30555 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
30557 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30560 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
30561 when removing varpool nodes.
30563 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30566 * varpool.c (varpool_node::remove): Fix order of variables.
30568 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30571 * ipa-inline.c (inline_small_functions): Fix ordering issue between
30572 speculation resolution and key updates.
30574 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30576 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
30577 about not letting any speculative edges unupdated.
30579 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30582 * gcov-io.c (gcov_var): Export.
30584 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30586 PR middle-end/64922
30587 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
30588 edges that become speculative.
30590 2015-02-04 Jakub Jelinek <jakub@redhat.com>
30592 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
30593 or DW_LANG_Fortran08.
30594 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
30596 (gen_compile_unit_die): Handle "GNU Fortran2003" and
30597 "GNU Fortran2008" language strings.
30598 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
30599 * langhooks.h (lang_GNU_Fortran): New prototype.
30600 * langhooks.c (lang_GNU_Fortran): New function.
30601 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
30604 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
30606 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
30607 (RTX_OK_FOR_OLO10_P): Likewise.
30609 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
30611 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
30613 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30615 PR middle-end/64922
30616 * gimple.c: Include gimple-ssa.h.
30617 (maybe_remove_unused_call_args): New function.
30618 * gimple.h (maybe_remove_unused_call_args): Declare.
30619 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
30620 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
30621 * gimple-fold.c (gimple_fold_call): Likewise.
30623 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
30625 PR rtl-optimization/64905
30626 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
30627 pointer alignment if it isn't needed.
30629 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
30631 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
30632 cortex-a72.cortex-a53.
30633 * config/aarch64/aarch64-tune.md: Regenerate.
30634 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
30636 2015-02-04 Nick Clifton <nickc@redhat.com>
30638 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
30641 2015-02-04 Jakub Jelinek <jakub@redhat.com>
30643 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
30644 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
30645 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
30647 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
30648 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
30649 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
30650 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
30651 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
30652 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
30653 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
30654 * tree-core.h (enum built_in_function): In between
30655 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
30656 for builtins that use DEF_BUILTIN_CHKP macro.
30658 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
30661 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
30662 operands for tcc_comparison exprs. Fix typos.
30665 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
30666 of two XORs that have an intervening AND or IOR.
30669 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
30670 simplification of XOR of AND to not allocate new rtx before
30671 committing to a simplification.
30673 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30675 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
30676 manual swaps in all peepholes.
30678 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30680 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
30681 of manual swapping implementation.
30682 (aarch64_expand_vec_perm_const_1): Likewise.
30684 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
30686 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
30687 (generic_addrcost_table): Remove NAMED_PARAM.
30688 (cortexa57_addrcost_table): Likewise.
30689 (xgene1_addrcost_table): Likewise.
30690 (generic_regmove_table): Likewise.
30691 (cortexa53_regmove_table): Likewise.
30692 (xgene1_regmove_table): Likewise.
30693 (generic_vector_table): Likewise.
30694 (cortexa57_vector_table): Likewise.
30695 (xgene1_vector_table): Likewise.
30696 (generic_tunings): Likewise.
30697 (cortexa53_tunings): Likewise.
30698 (cortexa57_tunings): Likewise.
30699 (xgene1_tunings): Likewise.
30701 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
30703 * config/arm/arm-cores.def: Add cortex-a72 and
30704 cortex-a72.cortex-a53.
30705 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
30706 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
30707 * config/arm/arm-tune.md: Regenerate.
30708 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
30709 "cortex-a72.cortex-a53".
30710 * doc/invoke.texi (ARM Options/-mtune): Likewise.
30712 2015-02-04 Nick Clifton <nickc@redhat.com>
30715 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
30717 (nonimmediate_di_operand): Likewise.
30719 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
30720 prefixes of known F5 using MSP430 MCUs.
30722 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30724 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
30725 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
30726 instead of __builtin_sqrt.
30728 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
30730 * varasm.c (do_assemble_alias): Follow transparent alias
30732 (default_assemble_visibility): Follow transparent alias
30733 chain for decl name.
30735 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
30737 PR middle-end/62103
30738 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
30739 to compute size of referenced value in the constant case.
30741 2015-02-03 Jakub Jelinek <jakub@redhat.com>
30743 PR rtl-optimization/64756
30744 * cse.c (invalidate_dest): New function.
30745 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
30746 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
30747 invalidate and do not record it.
30749 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
30752 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
30753 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
30754 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
30755 atomic_nand<mode>_soft_tcb): New insns.
30756 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
30757 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
30758 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
30759 Split into atomic_not_fetchsi_hard if operands[0] is unused.
30760 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
30761 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
30762 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
30763 atomic_not<mode>_hard if operands[0] is unused.
30764 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
30765 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
30766 if operands[0] is unused.
30767 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
30768 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
30769 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
30770 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
30772 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
30773 into atomic_not<mode>_soft_tcb if operands[0] is unused.
30774 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
30775 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
30776 if operands[0] is unused.
30777 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
30778 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
30779 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
30780 atomic_nand_fetchsi_hard if operands[0] is unused.
30781 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
30782 atomic_nand<mode>_hard if operands[0] is unused.
30783 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
30784 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
30785 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
30786 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
30787 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
30788 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
30789 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
30790 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
30791 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
30792 atomic_not<mode>_hard if operands[0] is unused.
30793 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
30794 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
30796 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
30797 into atomic_not<mode>_soft_tcb if operands[0] is unused.
30798 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
30799 atomic_nand<mode>_hard if operands[0] is unused.
30800 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
30801 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
30803 2015-02-03 David Malcolm <dmalcolm@redhat.com>
30806 * Makefile.in (GCC_OBJS): Add gcc-main.o.
30807 * gcc-main.c: New file, containing "main" taken from gcc.c.
30808 * gcc.c (do_self_spec): Free decoded_options.
30809 (class driver): Move declaration to gcc.h.
30810 (main): Move declaration and implementation to new file
30812 (driver_get_configure_time_options): New function.
30813 * gcc.h (class driver): Move this declaration here, from
30815 (driver_get_configure_time_options): New declaration.
30817 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
30819 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
30820 cross-module inlining.
30821 * cgraph.h (cgraph_node): Add flag merged.
30822 * ipa-icf.c (sem_function::merge): Maintain it.
30824 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
30826 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
30827 instead of OBJECT_P.
30829 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
30832 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
30833 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
30834 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
30835 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
30837 2015-02-03 Jakub Jelinek <jakub@redhat.com>
30840 * combine.c (reg_n_sets_max): New variable.
30841 (can_change_dest_mode, reg_nonzero_bits_for_combine,
30842 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
30843 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
30844 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
30845 (rest_of_handle_combine): Initialize reg_n_sets_max.
30847 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
30849 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
30850 if some always_inline was inlined, apply changes before inlining
30853 2015-02-02 David Malcolm <dmalcolm@redhat.com>
30856 * config/arm/arm.c (arm_option_override): Set
30857 arm_selected_arch/cpu/tune to NULL on entry.
30859 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
30860 Andrew Pinski <pinskia@gcc.gnu.org>
30861 Jakub Jelinek <jakub@gcc.gnu.org>
30864 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
30865 integer typing for small model. Use IN_RANGE.
30867 2015-02-02 Richard Biener <rguenther@suse.de>
30869 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
30870 * tree-vrp.c (vrp_valueize_1): Likewise.
30872 2015-02-02 Alan Modra <amodra@gmail.com>
30874 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
30875 than mem for toc_restore.
30876 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
30877 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
30878 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
30880 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
30883 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
30884 explicit default options.
30886 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
30889 * ipa-utils.c (ipa_merge_profiles): Add release argument.
30890 * ipa-icf.c (sem_function::merge): Do not release body when merging.
30891 * ipa-utils.h (ipa_merge_profiles): Update prototype.
30893 2015-02-01 Jakub Jelinek <jakub@redhat.com>
30896 * cfgexpand.c (deep_ter_debug_map): New variable.
30897 (avoid_deep_ter_for_debug): New function.
30898 (expand_debug_expr): If TERed SSA_NAME is in
30899 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
30900 instead of trying to expand SSA_NAME's def stmt.
30901 (expand_debug_locations): When expanding debug bind
30902 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
30903 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
30905 (pass_expand::execute): Call avoid_deep_ter_for_debug on
30906 all debug bind stmts. Delete deep_ter_debug_map after
30907 expand_debug_location if non-NULL and clear it.
30909 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
30912 * config/sh/sync.md (atomic_fetch_notsi_hard,
30913 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
30914 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
30915 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
30916 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
30917 atomic_not_fetch<mode>_soft_imask): New insns.
30919 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30921 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
30922 (rank_for_schedule_debug): Split from ...
30923 (rank_for_schedule): ... this.
30924 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
30925 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
30927 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
30929 * doc/md.texi (Machine Constraints): Alphabetize table by target.
30930 * doc/extend.texi (x86 Variable Attributes): Move section to
30931 correct alphabetization after renaming.
30932 (x86 Type Attributes): Likewise.
30933 (Target Builtins): Re-alphabetize menu.
30934 (x86 Built-in Functions): Move section to correct alphabetization
30936 (x86 transactional memory intrinsics): Likewise.
30937 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
30938 and x86 Windows Options in table and menu.
30939 (x86 Options): Move section to correct alphabetization after
30941 (x86 Windows Options): Likewise.
30943 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
30945 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
30946 preferred names of the architecture and its 32- and 64-bit
30948 * doc/invoke.texi: Likewise.
30949 * doc/md.texi: Likewise.
30951 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
30954 * config/i386/predicates.md (address_no_seg_operand): Reject
30955 non-CONST_INT_P operands in invalid mode.
30957 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
30959 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
30960 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
30961 * config/i386/predicates.md (address_no_seg_operand): Call
30962 address_operand with VOIDmode.
30963 (vsib_address_operand): Ditto.
30964 (address_mpx_no_base_operand): Ditto.
30965 (address_mpx_no_index_operand): Ditto.
30967 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
30970 * lra-constraints.c (original_subreg_reg_mode): New.
30971 (simplify_operand_subreg): Try to simplify subreg of const. Use
30972 original_subreg_reg_mode for it.
30973 (swap_operands): Update original_subreg_reg_mode.
30974 (curr_insn_transform): Set up original_subreg_reg_mode.
30976 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
30979 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
30981 (process_alt_operands): Use it.
30982 (curr_insn_transform): Check the optional reload pseudo class is
30985 2015-01-30 Joseph Myers <joseph@codesourcery.com>
30987 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
30988 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
30990 * toplev.h (init_asm_output): Update comment on use of
30991 UNKNOWN_LOCATION with fatal_error.
30992 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
30993 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
30994 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
30995 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
30996 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
30997 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
30998 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
30999 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
31000 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
31001 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
31002 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
31003 fatal_error changed to pass input_location as first argument.
31005 2015-01-30 Martin Liska <mliska@suse.cz>
31007 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
31008 in #pragma GCC diagnostic guards.
31010 2015-01-30 Richard Biener <rguenther@suse.de>
31012 PR tree-optimization/64829
31013 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
31014 not add a widening conversion pattern but hand off extra
31015 widenings to callers.
31016 (vect_recog_widen_mult_pattern): Handle extra widening produced
31017 by vect_handle_widen_op_by_const.
31018 (vect_recog_widen_shift_pattern): Likewise.
31019 (vect_pattern_recog_1): Remove excess vertical space in dumping.
31020 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
31021 (vect_init_vector_1): Likewise.
31022 (vect_get_vec_def_for_operand): Likewise.
31023 (vect_finish_stmt_generation): Likewise.
31024 (vectorizable_load): Likewise.
31025 (vect_analyze_stmt): Likewise.
31026 (vect_is_simple_use): Likewise.
31028 2015-01-29 Jeff Law <law@redhat.com>
31030 * combine.c (try_combine): Fix typo in comment.
31032 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
31035 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
31036 (rs6000_stack_info): Add assert.
31037 (rs6000_output_savres_externs): New function, split off from...
31038 (rs6000_output_function_prologue): ... here. Do not call it for
31041 2015-01-29 Jeff Law <law@redhat.com>
31044 * combine.c (try_combine): If I0 is a memory load and I3 a store
31045 to a related address, increase the "goodness" of doing a 4-insn
31046 combination with I0-I3.
31047 (make_field_assignment): Handle SUBREGs in the ior+and case.
31049 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
31051 PR tree-optimization/64746
31052 * tree-if-conv.c (mask_exists): New function.
31053 (predicate_mem_writes): Save created mask with given size for further
31055 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
31056 (ifcvt_repair_bool_pattern): Collect all statements that are root
31057 of bool pattern and use iterative algorithm to remove multiple uses
31058 of predicates, display number of required iterations.
31060 2015-01-29 Richard Biener <rguenther@suse.de>
31062 PR tree-optimization/64853
31063 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
31064 stmt will get simulated again.
31065 * tree-ssa-ccp.c (valueize_op_1): Likewise.
31067 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31069 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
31070 return_in_pc. Remove redundant assignments.
31071 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
31072 (arm_expand_epilogue): Don't compare boolean with true in if condition.
31074 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
31076 * config/i386/i386.c (ix86_mode_after): Make static.
31078 2015-01-29 Richard Biener <rguenther@suse.de>
31080 PR tree-optimization/64844
31081 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
31082 dump cost model analysis.
31083 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31084 Do not register adjusted load/store costs here.
31086 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
31087 Uros Bizjak <ubizjak@gmail.com>
31089 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
31090 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
31091 using x86_use_pseudo_pic_reg.
31092 * config/i386/i386.c (ix86_conditional_register_usage): Remove
31093 support for fixed PIC register.
31094 (ix86_use_pseudo_pic_reg): Not static any more.
31096 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
31098 PR middle-end/64805
31099 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
31100 to avoid error in cgraph node verification.
31102 2015-01-29 Marek Polacek <polacek@redhat.com>
31104 * doc/standards.texi: Reflect that the default for C is gnu11.
31106 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
31109 * reorg.c (switch_text_sections_between_p): New function.
31110 (relax_delay_slots): Call it when testing if the jump insn
31111 is removable. Use targetm.can_follow_jump when testing if
31112 the conditional branch can follow an unconditional jump.
31114 2015-01-27 Caroline Tice <cmtice@google.com>
31116 Committing VTV Cywin/Ming patch for Patrick Wollgast
31117 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
31118 if -fvtable-verify=preinit/std is used.
31119 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
31120 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
31121 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
31122 if -fvtable-verify=preinit/std is used.
31123 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
31124 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
31125 if -fvtable-verify=preinit/std is used.
31126 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
31127 * config/i386/mingw32.h (LIB_SPEC): Likewise.
31128 * varasm.c (assemble_variable): Add code to properly set the comdat
31129 section and name for the .vtable_map_vars section in case the
31130 target is PE or COFF.
31132 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
31135 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
31136 make sane BB profile.
31137 (cgraph_node::expand_thunk): Make sane BB profile.
31138 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
31139 * cgraph.h (init_lowered_empty_function): Update prototype.
31140 * config/i386/i386.c (make_resolver_func): Update call.
31141 * predict.c (gate): Disable branch prediction pass if
31142 profile is already there.
31144 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
31146 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
31147 * opth-gen.awk: Likewise.
31148 * common.opt: Mark flag_fp_contract_mode as Optimization.
31150 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
31152 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
31153 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
31155 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
31158 * config/sh/predicates.md (atomic_arith_operand,
31159 atomic_logical_operand): Remove.
31160 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
31161 (atomic_arith_operand_0): New predicate.
31162 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
31163 Use atomic_arith_operand_0 for input values.
31164 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
31165 atomic_compare_and_swap<mode>_soft_gusa,
31166 atomic_compare_and_swap<mode>_soft_tcb,
31167 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
31168 arith_reg_operand instead of register_operand.
31169 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
31170 atomic_arith_operand_0 for newval input.
31171 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
31172 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
31173 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
31174 arith_reg_operand instead of register_operand.
31175 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
31176 fetchop_predicate_1, fetchop_constraint_1_llcs,
31177 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
31178 fetchop_constraint_1_imask): New code iterator attributes.
31179 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
31180 register_operand. Use fetchop_predicate_1.
31181 (atomic_fetch_<fetchop_name>si_hard,
31182 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
31183 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
31184 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
31185 and arith_reg_operand instead of register_operand. Use
31186 fetchop_predicate_1, fetchop_constraint_1_gusa.
31187 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
31188 and arith_reg_operand instead of register_operand. Use
31189 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
31191 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
31192 and arith_reg_operand instead of register_operand. Use
31193 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
31195 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
31196 register_operand. Use atomic_logical_operand_1.
31197 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
31198 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
31199 arith_reg_operand instead of register_operand.
31200 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
31201 Use arith_reg_dest and arith_reg_operand instead of register_operand.
31202 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
31203 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
31204 register_operand. Use fetchop_predicate_1.
31205 (atomic_<fetchop_name>_fetchsi_hard,
31206 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
31207 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31208 fetchop_constraint_1_llcs.
31209 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
31210 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31211 fetchop_constraint_1_gusa.
31212 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
31213 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31214 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
31215 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
31216 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31217 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
31218 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
31219 register_operand. Use atomic_logical_operand_1.
31220 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
31221 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
31222 arith_reg_operand instead of register_operand.
31223 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
31224 arith_reg_operand instead of register_operand. Use logical_operand
31225 and K08. Adjust asm sequence to allow R0 usage.
31226 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
31227 arith_reg_operand instead of register_operand. Use logical_operand
31230 2015-01-28 Jakub Jelinek <jakub@redhat.com>
31233 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
31234 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
31235 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
31236 only get_full_len HOST_WIDE_INTs from get_val () array rather than
31237 all bits in *val_wide.
31239 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
31241 * varpool.c (tls_model_names): Fix names.
31242 (varpool_node::dump): Dump tls- prefix for tls models.
31244 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
31245 Bernd Schmidt <bernds@codesourcery.com>
31246 Nathan Sidwell <nathan@codesourcery.com>
31248 * config/nvptx/mkoffload.c: New file.
31249 * config/nvptx/t-nvptx: Add build rules for it.
31250 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
31251 (extra_programs): Add mkoffload.
31252 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
31254 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
31256 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
31258 PR middle-end/64809
31259 * cfgexpand.c (reorder_operands): Skip debug gimples.
31261 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
31263 PR tree-optimization/64277
31264 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
31265 range info when possible to refine estimation.
31267 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
31269 PR tree-optimization/64718
31270 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
31271 be a 16bit unsigned integer when n->range is 16.
31272 (bswap_replace): Convert src to that type if necessary for all bswap
31273 sizes. Fix rotation right notation in nearby comment. Use bswap_type
31274 set in pass_optimize_bswap::execute ().
31276 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
31278 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
31279 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
31280 integer and floating point variants.
31281 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
31283 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
31285 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
31286 for all vector modes.
31288 2015-01-28 Jakub Jelinek <jakub@redhat.com>
31291 * doc/sourcebuild.texi (comdat_group): Document.
31293 2015-01-28 Terry Guo <terry.guo@arm.com>
31295 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
31297 2015-01-27 David Malcolm <dmalcolm@redhat.com>
31299 * toplev.c (print_version): Add param "show_global_state", and
31300 only print GGC and plugin information if it is true.
31301 (init_asm_output): Pass in "true" for the new param when calling
31303 (process_options): Likewise.
31304 (toplev::main): Likewise.
31305 * toplev.h (print_version): Add new param to decl.
31307 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
31311 * tree.c (lookup_binfo_at_offset): New function.
31312 (get_binfo_at_offset): Use it.
31314 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
31317 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
31318 on vtable being vtable.
31320 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
31322 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
31323 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
31324 -mhotpatch= option.
31325 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
31326 -mno-hotpatch options. Change syntax of -mhotpatch= option.
31327 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
31329 (s390_hotpatch_trampoline_halfwords_max): Renamed.
31330 (s390_hotpatch_hw_max): New name.
31331 (s390_hotpatch_trampoline_halfwords): Renamed.
31332 (s390_hotpatch_hw_before_label): New name.
31333 (get_hotpatch_attribute): Removed.
31334 (s390_hotpatch_hw_after_label): New name.
31335 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
31337 (s390_attribute_table): Ditto.
31338 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
31339 (s390_function_num_hotpatch_hw): New name.
31340 Remove special handling of inline functions and hotpatching.
31341 Return number of nops before and after the function label.
31342 (s390_can_inline_p): Removed.
31343 (s390_asm_output_function_label): Emit a configurable number of nops
31344 after the function label.
31345 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
31346 (TARGET_CAN_INLINE_P) Removed.
31347 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
31349 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31350 Jiong Wang <jiong.wang@arm.com>
31352 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
31354 (cb<optab><mode>1): Likewise.
31355 * config/aarch64/iterators.md (bcond): New define_code_attr.
31357 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31359 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
31362 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31364 * config/s390/s390.c (s390_register_move_cost): Increase costs for
31367 2015-01-27 Richard Biener <rguenther@suse.de>
31369 * tree-vrp.c (update_value_range): Intersect the range with
31370 old recorded SSA name range information.
31372 2015-01-27 Nick Clifton <nickc@redhat.com>
31374 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
31375 BC, DE and HL registers directly, not via AX.
31376 When decrementing the stack pointer by a large amount, transfer SP
31377 into AX and perform the subtraction there.
31378 (rl78_expand_epilogue): Perform the inverse of the above
31381 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31383 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
31385 2015-01-27 Jakub Jelinek <jakub@redhat.com>
31386 Yury Gribov <y.gribov@samsung.com>
31389 * ubsan.c (ubsan_source_location): Refactor code.
31390 (ubsan_type_descriptor): Update type size. Refactor code.
31392 2015-01-27 Richard Biener <rguenther@suse.de>
31394 PR tree-optimization/56273
31395 PR tree-optimization/59124
31396 PR tree-optimization/64277
31397 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
31398 from the first VRP pass.
31400 2015-01-27 Jakub Jelinek <jakub@redhat.com>
31403 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
31404 handle the first argument in the same loop as all the other arguments.
31406 PR rtl-optimization/61058
31407 * jump.c (cleanup_barriers): Update basic block boundaries
31408 if BLOCK_FOR_INSN is non-NULL on PREV.
31410 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
31412 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
31413 bounds narrowing, already instrumented calls and calls to
31414 not instrumentable functions.
31416 2015-01-27 Jakub Jelinek <jakub@redhat.com>
31418 PR tree-optimization/64807
31419 * wide-int.cc (wi::divmod_internal): Clear
31420 b_dividend[dividend_blocks_needed].
31422 2015-01-26 DJ Delorie <dj@redhat.com>
31424 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
31425 volatile memory references.
31427 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
31430 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
31432 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
31433 shifts if it already fits into K08.
31435 2015-01-26 Jakub Jelinek <jakub@redhat.com>
31438 * ipa-inline.c (inline_small_functions): Print "unknown" even
31439 if edge->call_stmt is non-NULL, but has builtins or unknown
31442 PR middle-end/64421
31443 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
31444 with asterisk, skip the first character.
31446 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
31449 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
31452 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
31455 * config/i386/i386.md (*movdi_internal): Also check operand 0
31456 to determine TYPE_LEA operand.
31457 (*movsi_internal): Ditto.
31459 2015-01-26 Jakub Jelinek <jakub@redhat.com>
31461 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
31462 OPTION_MASK_QUAD_MEMORY_ATOMIC.
31464 2015-01-26 Renlin Li <renlin.li@arm.com>
31466 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
31468 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
31471 2015-01-26 Richard Biener <rguenther@suse.de>
31473 PR middle-end/64764
31474 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
31475 combining two BIT_AND_EXPR predicates.
31477 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
31480 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
31482 2015-01-26 Terry Guo <terry.guo@arm.com>
31484 * config/arm/arm.c (arm_file_start): Update the assignment of
31485 Tag_ABI_HardFP_use.
31487 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
31489 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
31491 config/arm/arm.md: Include the new Cortex-A57 model.
31492 (generic_sched): Don't use generic_sched when tuning for
31495 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
31496 Uros Bizjak <ubizjak@gmail.com>
31498 * config/i386/i386.c (get_builtin_code_for_version): Add
31499 support for BMI and BMI2 multiversion functions.
31501 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31503 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
31504 (extract_bit_field): Likewise.
31505 (extract_low_bits): Likewise.
31506 (expand_mult): Likewise.
31507 (expand_mult_highpart_adjust): Likewise.
31509 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
31511 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
31512 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
31513 * config/i386/i386.c (processor_model): Add
31514 M_INTEL_COREI7_BROADWELL.
31515 (arch_names_table): Add "broadwell".
31517 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
31526 * config/sh/sh-protos.h
31527 (sh_extending_set_of_reg::can_use_as_unextended_reg,
31528 sh_extending_set_of_reg::use_as_unextended_reg,
31529 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
31530 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
31531 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
31532 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
31533 (sh_treg_insns): New class.
31534 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
31535 (scope_counter): New class.
31536 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
31537 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
31538 sh_extending_set_of_reg::can_use_as_unextended_reg,
31539 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
31540 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
31541 sh_split_treg_set_expr): New functions.
31542 (addsubcosts): Handle treg_set_expr.
31543 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
31544 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
31545 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
31546 (sh_insn_operands_modified_between_p): Make non-static.
31547 * config/sh/predicates.md (zero_extend_movu_operand): Allow
31548 simple_mem_operand in addition to displacement_mem_operand.
31549 (zero_extend_operand): Don't allow zero_extend_movu_operand.
31550 (treg_set_expr, treg_set_expr_not_const01,
31551 arith_reg_or_treg_set_expr): New predicates.
31552 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
31553 arith_or_int_operand instead of logical_operand. Convert to
31554 insn_and_split. Try to optimize constant operand in splitter.
31555 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
31556 (*tstqi_t_zero): Delete.
31557 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
31558 (tstsi_t_and_not): Delete.
31559 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
31560 Convert to insn_and_split.
31561 (unnamed split, tstsi_t_zero_extract_xor,
31562 tstsi_t_zero_extract_subreg_xor_little,
31563 tstsi_t_zero_extract_subreg_xor_big): Delete.
31564 (*tstsi_t_shift_mask): New insn_and_split.
31565 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
31566 to recombine with surrounding insns when splitting.
31567 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
31568 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
31569 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
31570 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
31571 (*cbranch_div0s: Delete.
31572 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
31573 Try to recombine with surrounding insns when splitting. Add operand
31575 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
31576 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
31577 *addc_r_r_msb, *addc_2r_msb): Delete.
31578 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
31580 (*addc_negreg_t): New insn_and_split.
31581 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
31582 Try to recombine with surrounding insns when splitting.
31583 Add operand order variants.
31584 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
31585 insn_and_split patterns.
31586 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
31587 surrounding insns when splitting.
31588 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
31589 (*rotcl): Likewise. Add zero_extract variant.
31590 (*ashrsi2_31): New insn_and_split.
31591 (*negc): Convert to insn_and_split. Use treg_set_expr.
31592 (*zero_extend<mode>si2_disp_mem): Update comment.
31593 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
31595 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
31596 with surrounding insns when splitting.
31597 (any_treg_expr_to_reg): New insn_and_split.
31598 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
31599 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
31600 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
31601 *zero_extract_2): New single bit zero extract patterns.
31602 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
31603 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
31604 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
31605 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
31607 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
31608 register_operand for set source.
31610 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
31612 * i386.opt (prefetch_sse): New targetsave.
31613 * i386.c (ix86_function_specific_save): Save prefetch_sse.
31614 (ix86_function_specific_restore): Restore prefetch_sse and initialize
31615 ix86_cost/ix86_tune_cost.
31617 2015-01-23 David Malcolm <dmalcolm@redhat.com>
31619 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
31620 Support the JIT by using 0 as the language type.
31622 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
31625 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
31626 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
31627 (mark_regno_live, process_bb_lives): Pass new parameter value to
31628 make_hard_regno_born.
31630 2015-01-23 Jakub Jelinek <jakub@redhat.com>
31632 PR rtl-optimization/63637
31633 PR rtl-optimization/60663
31634 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
31635 if elt->cost is MAX_COST for ASM_OPERANDS.
31636 (find_sets_in_insn): Fix up comment typo.
31637 (cse_insn): Don't set src_volatile for all non-volatile
31638 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
31639 or with "memory" clobber. Set elt->cost to MAX_COST
31640 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
31641 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
31643 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
31645 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
31648 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
31650 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
31651 libgcc/config/i386/elf-lib.h.
31653 2015-01-23 Jakub Jelinek <jakub@redhat.com>
31656 * gcc.c (print_configuration): Don't print a blank line at the end
31658 (run_attempt): ... but here unstead.
31660 PR middle-end/64734
31661 * omp-low.c (scan_sharing_clauses): Don't ignore
31662 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
31663 on target data/update constructs.
31665 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
31668 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
31669 (DEBUG_RELOAD): Removed define.
31670 (m32c_limit_reload_class): Enable traces with if DEBUG0.
31671 (m32c_function_arg): Added a type cast.
31672 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
31673 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
31674 * config/m32c/bitops.md (andqi3_16): Likewise.
31675 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
31676 (push_a01_l): Likewise.
31678 2015-01-23 David Malcolm <dmalcolm@redhat.com>
31681 * main.c (main): Construct toplev instances with init_signals=true.
31682 * toplev.c (general_init): Add param "init_signals", and use it to
31683 conditionalize the calls to signal and host_hooks.extra_signals.
31684 (toplev::toplev): Add param "init_signals".
31685 (toplev::main): When invoking general_init, pass m_init_signals
31686 to control whether signal-handlers are installed.
31687 * toplev.h (toplev::toplev): Add param "init_signals".
31688 (toplev::m_init_signals): New field.
31690 2015-01-23 David Malcolm <dmalcolm@redhat.com>
31693 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
31694 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
31695 latter may be affected by the former (e.g. on i686).
31697 2015-01-23 Martin Liska <mliska@suse.cz>
31699 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
31700 false positive during profiledbootstrap.
31702 2015-01-23 Tom de Vries <tom@codesourcery.com>
31705 * lto-opts.c (lto_write_options): Output non-explicit conservative
31707 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
31708 (append_compiler_options): Pass -fopenacc through.
31710 2015-01-23 Tom de Vries <tom@codesourcery.com>
31713 * lto-opts.c (lto_write_options): Output non-explicit conservative
31715 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
31716 (append_compiler_options): Pass -fopenmp through.
31718 2015-01-23 Jakub Jelinek <jakub@redhat.com>
31721 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
31724 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
31725 * diagnostic.def (DK_ICE_NOBT): New kind.
31726 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
31727 like DK_ICE, but never print backtrace.
31728 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
31729 (internal_error_no_backtrace): New function.
31730 * gcc.c (execute): Use internal_error_no_backtrace instead of
31733 2015-01-22 Jeff Law <law@redhat.com>
31736 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
31737 improve code density for small immediate to memory case.
31738 (insv): Better handle bitfield assignments when the field is
31739 being set to all ones.
31740 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
31743 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31744 Jakub Jelinek <jakub@redhat.com>
31746 PR middle-end/64729
31747 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
31748 for !TARGET_LIBC_PROVIDES_SSP version and
31749 -fstack-protector-{all,strong,explicit} otherwise.
31750 * config/freebsd.h (LINK_SSP_SPEC): Handle
31751 -fstack-protector-{strong,explicit}.
31753 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
31754 H.J. Lu <hongjiu.lu@intel.com>
31757 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
31760 2015-01-22 Wei Mi <wmi@google.com>
31762 PR rtl-optimization/64557
31763 * dse.c (record_store): Call get_addr for mem_addr.
31764 (check_mem_read_rtx): Likewise.
31766 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
31768 * fold-const.c (const_binop): Add early return for non-tcc_binary.
31770 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
31772 * toplev.c (init_local_tick): Process the failure when read
31773 fails for random_seed.
31775 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
31776 'pretty_name' to avoid memory overflow.
31778 2015-01-22 Richard Biener <rguenther@suse.de>
31780 PR middle-end/64728
31781 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
31782 abnormal coalescing on undefined SSA names.
31784 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
31788 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
31790 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
31792 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
31794 PR middle-end/63325
31795 * fold-const.c (fold_checksum_tree): Don't include value of
31796 expr->decl_with_vis.symtab_node in the checksum.
31798 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31800 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
31802 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
31805 * gcc.c (insert_comments): New function.
31806 (try_generate_repro): Call it.
31807 (append_text): Removed.
31809 2015-01-22 Richard Biener <rguenther@suse.de>
31811 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
31812 with IL incompatible options. Properly honor user optimize
31815 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
31817 PR rtl-optimization/64682
31818 * combine.c (distribute_notes): When moving a death note for
31819 a register that is set in the new I2, make sure to put it
31820 before that new I2.
31822 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
31824 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
31825 not TARGET_DEFAULT.
31827 2015-01-21 Jakub Jelinek <jakub@redhat.com>
31830 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
31831 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
31832 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
31835 * doc/invoke.texi (-fsanitize=vptr): Document.
31837 PR rtl-optimization/62078
31838 * dse.c: Include cfgcleanup.h.
31839 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
31840 anything call purge_all_dead_edges and cleanup_cfg at the end
31843 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
31845 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
31848 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
31850 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
31853 2015-01-21 David Sherwood <david.sherwood@arm.com>
31854 Tejas Belagod <Tejas.Belagod@arm.com>
31856 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
31857 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
31858 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
31861 2015-01-21 David Sherwood <david.sherwood@arm.com>
31862 Tejas Belagod <Tejas.Belagod@arm.com>
31864 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
31865 (aarch64_reverse_mask): New decls.
31866 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
31867 (insn_count): New mode_attr.
31868 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
31869 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
31870 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
31871 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
31872 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
31873 (aarch64_simd_st4): New patterns.
31874 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
31875 (aarch64_reverse_mask): New functions.
31877 2015-01-21 Alan Hayward <alan.hayward@arm.com>
31879 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
31881 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
31882 addressing modes for BE.
31883 (aarch64_print_operand): Add 'R' specifier.
31884 (aarch64_simd_disambiguate_copy): Delete.
31885 (aarch64_simd_emit_reg_reg_move): New function.
31886 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
31887 in define_splits for structural moves.
31888 (mov<mode>): Use less restrictive predicates.
31889 (*aarch64_mov<mode>): Simplify and only allow for LE.
31890 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
31892 2015-01-21 Alan Hayward <alan.hayward@arm.com>
31894 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
31896 2015-01-21 Richard Henderson <rth@redhat.com>
31899 * ccmp.c (used_in_cond_stmt_p): Remove.
31900 (expand_ccmp_expr): Don't use it.
31902 2015-01-21 Nick Clifton <nickc@redhat.com>
31904 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
31907 2015-01-21 Richard Biener <rguenther@suse.de>
31909 PR middle-end/64313
31910 * tree-core.h (builtin_info, builtin_info_type): Turn from
31911 an object with two arrays into an array of an object with
31912 decl and two flags, implicit_p and declared_p.
31913 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
31914 set_builtin_decl, set_builtin_decl_implicit_p,
31915 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
31916 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
31917 * builtins.c (builtin_info): Adjust.
31918 * gimplify.c (gimplify_addr_expr): References to builtins
31919 that have been declared by the user makes them eligible for
31920 use by the compiler. Call set_builtin_decl_implicit_p on them.
31922 2015-01-20 Jeff Law <law@redhat.com>
31925 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
31926 allow pc-relative addresses in operand predicates or constraints.
31928 2015-01-21 Bin Cheng <bin.cheng@arm.com>
31930 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
31931 neon on aarch32 processors for stringops.
31933 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31936 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
31938 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31941 * ipa-inline.c: Include lto-streamer.h
31942 (report_inline_failed_reason): Output source file differences and
31943 flags on optimization/target node mismatch.
31944 (can_inline_edge_p): Consider caller to be the outer inline function;
31945 be less restrictive about matching opimize and optimize_size attributes.
31946 (inline_account_function_p): Break out from ...
31947 (inline_small_functions): ... here.
31948 * ipa-inline-transform.c (clone_inlined_nodes): Use
31949 inline_account_function_p.
31950 (inline_call): Use optimize attribution; use inline_account_function_p.
31951 (inline_transform): Use opt_for_fn.
31952 * ipa-inline.h (inline_account_function_p): Declare.
31954 2015-01-20 Jakub Jelinek <jakub@redhat.com>
31957 * dwarf2out.c (decl_piece_node): Don't put bitsize into
31958 mode if bitsize <= 0.
31959 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
31960 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
31961 sizes and positions.
31963 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
31965 * config/nios2/nios2.c (nios2_asm_file_end): Implement
31966 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
31968 (TARGET_ASM_FILE_END): Define.
31970 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
31972 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
31973 (struct tune_params): Use the enum.
31974 * arm.c (arm_*_tune): Update.
31975 (arm_option_override): Update.
31977 2015-01-20 Richard Biener <rguenther@suse.de>
31980 * ipa-reference.c (add_static_var): Inline ...
31981 (analyze_function): ... here after splitting out from ...
31982 (is_proper_for_analysis): ... this.
31984 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
31987 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
31988 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
31989 replace the conditional with it's true branch.
31990 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
31991 (arm_lra_p): Remove.
31993 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
31995 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
31997 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31999 * config/tilegx/mul-tables.c: Move symtab.h include after
32000 coretypes.h include.
32001 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
32002 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
32003 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
32004 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
32005 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
32007 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
32011 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
32013 PR rtl-optimization/64081
32014 * loop-iv.c (def_pred_latch_p): New function.
32015 (latch_dominating_def): Allow specific cases with non-single
32017 (iv_get_reaching_def): Likewise.
32018 (check_complex_exit_p): New function.
32019 (check_simple_exit): Use check_complex_exit_p to allow certain cases
32020 with exits not executing on any iteration.
32022 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32025 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
32026 to set branch cost.
32028 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32031 * i386.c (gate): Check flag_expensive_optimizations and
32033 (ix86_option_override_internal): Drop optimize_size condition
32034 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
32035 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
32036 MASK_PREFER_AVX128.
32037 (ix86_avx256_split_vector_move_misalign,
32038 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
32039 * sse.md (all uses of TARGET_PREFER_AVX128): Add
32040 optimize_insn_for_speed_p check.
32042 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
32044 * config/mips/mips.h (FP_ASM_SPEC): New define.
32045 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
32048 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
32051 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
32052 nullptr for insn when reaching the first insn.
32053 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
32054 (sh_insn_operands_modified_between_p): Add nullptr check.
32055 (sh_find_extending_set_of_reg): Fix log message. Don't accept
32056 sign extending mem load if the insn contains any UNSPEC or
32059 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32061 * params.def (inline-unit-growth): Drop to 15%.
32062 * invoke.texi (inline-unit-growth): Document change.
32064 2015-01-19 Martin Liska <mliska@suse.cz>
32067 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
32068 function for second argument of OBJ_TYPE_REF.
32070 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32073 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
32074 whether function is an alias.
32076 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32078 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
32081 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
32083 PR rtl-optimization/64671
32084 * lra-remat.c (operand_to_remat): Don't consider jump and call
32087 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
32090 * config/rs6000/default64.h: Include rs6000-cpus.def.
32091 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
32092 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
32093 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
32095 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
32097 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
32098 pseudo-op to specify assembler dialect.
32100 2015-01-19 Martin Liska <mliska@suse.cz>
32103 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
32104 Handle safe potentially removed nodes during filtering.
32106 2015-01-19 Martin Liska <mliska@suse.cz>
32108 * doc/extend.texi (no_icf): Add new attribute description.
32109 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
32110 where the pass attempts to merge a function with no_icf attribute.
32112 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32115 * doc/md.texi (ARM Options): Document register constraints.
32117 2015-01-19 Jiong Wang <jiong.wang@arm.com>
32118 Andrew Pinski <apinski@cavium.com>
32121 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
32122 (ashl<mode>3): Don't expand if operands[2] is not constant.
32124 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32127 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
32128 Match xor-and-xor RTL pattern.
32130 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
32132 PR rtl-optimization/64081
32133 * loop-iv.c (def_pred_latch_p): New function.
32134 (latch_dominating_def): Allow specific cases with non-single
32136 (iv_get_reaching_def): Likewise.
32137 (check_complex_exit_p): New function.
32138 (check_simple_exit): Use check_complex_exit_p to allow certain cases
32139 with exits not executing on any iteration.
32141 2015-01-19 Jakub Jelinek <jakub@redhat.com>
32143 * common.opt (fgraphite): Fix a typo.
32145 2015-01-19 Felix Yang <felix.yang@huawei.com>
32147 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
32149 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
32150 uminp, smax_nanp, smin_nanp): New builtins.
32151 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
32152 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
32153 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
32154 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
32155 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
32156 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
32157 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
32158 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
32159 vpminnms_f32): Rewrite using builtin functions.
32161 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
32164 * omp-low.c (offload_symbol_decl): Remove variable.
32165 (get_offload_symbol_decl): Remove function.
32166 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
32167 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
32168 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
32169 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
32170 BUILT_IN_GOACC_UPDATE don't pass it at all.
32172 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
32174 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
32177 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
32179 * ipa-chkp.c (chkp_produce_thunks): Add early param
32180 to split thunks production into two passes. Keep
32181 'always_inline' function bodies after the first pass.
32182 (pass_data_ipa_chkp_early_produce_thunks): New.
32183 (pass_ipa_chkp_early_produce_thunks): New.
32184 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
32185 chkp_produce_thunks signature.
32186 (make_pass_ipa_chkp_early_produce_thunks): New.
32187 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
32188 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
32189 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
32191 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
32193 * cgraph.c (cgraph_node::dump): Dump profile flags.
32195 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
32198 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
32199 reg appear first in the parallel.
32201 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
32203 * ipa-reference.c (set_reference_optimization_summary,
32204 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
32206 (ignore_module_statics): New static var.
32207 (propagate_bits): If ipa-reference is disabled, do not look into local
32209 (analyze_function): Disable analysis when ipa_reference is disabled.
32210 (generate_summary): Do not dump when reference is disabled;
32211 collect vars accessed from functions with ipa-reference disabled.
32212 (get_read_write_all_from_node): When ipa-reference is disabled, use the
32214 (gate): Enable for LTO.
32215 (ignore_edge_p): New function.
32216 (propagate): Skip functions w/o ipa-reference analysis.
32217 * optc-save-gen.awk: Handle optimize_debug correctly.
32218 * opth-gen.awk: Likewise.
32219 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
32220 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
32221 fira-share-save-slots, fira-share-spill-slots,
32222 fmodulo-sched-allow-regmoves, fpartial-inlining,
32223 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
32224 ftracer, ftree-parallelize-loops, fassociative-math,
32225 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
32227 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
32228 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
32230 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
32233 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
32236 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
32238 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
32240 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
32242 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
32243 Remove duplicate option listings.
32245 2015-01-18 Felix Yang <felix.yang@huawei.com>
32247 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
32248 (autofdo_source_profile::get_callsite_total_count,
32249 function_instance::get_function_instance_by_decl,
32250 string_table::get_index, string_table::get_index_by_decl,
32251 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
32252 Fix comment typos. Reformatting and minor code rearrangement.
32254 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
32256 * config/rs6000/rs6000.md (probe_stack): Delete.
32257 (probe_stack_address): New.
32259 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
32261 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
32262 to test for 32-bit ABIs, not !TARGET_POWERPC64.
32264 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
32266 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
32267 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
32268 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
32270 (rs6000_libcall_value): Use the new function.
32272 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
32274 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
32276 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
32278 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
32279 implement a more precise life analysis for it during backward scan.
32281 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
32283 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
32285 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
32287 PR rtl-optimization/52773
32288 * calls.c (emit_library_call_value): When pushing arguments use
32289 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
32290 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
32291 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
32293 2015-01-17 Jeff Law <law@redhat.com>
32295 PR rtl-optimization/32790
32296 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
32297 not ZERO_EXTEND in SET_DESTs.
32299 2015-01-17 Alan Modra <amodra@gmail.com>
32301 * cprop.c (do_local_cprop): Revert last change.
32303 2015-01-16 DJ Delorie <dj@redhat.com>
32304 Nick Clifton <nickc@redhat.com>
32306 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
32307 (addhi3_real): Likewise. Fix [HL+0] syntax.
32308 (subqi3_real): Likewise.
32309 (subhi3_real): Likewise.
32310 (cbranchqi4_real): Likewise. Allow saddr,#imm.
32311 (cbranchhi4_real): Likewise.
32312 (cbranchhi4_real_inverted): Likewise.
32313 (cbranchsi4_real_lt): Likewise.
32314 (cbranchsi4_real_ge): Likewise.
32315 (cbranchsi4_real_ge): Likewise.
32316 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
32317 (sub<mode>3_virt): Likewise.
32318 (cbranchqi4_virt): Likewise.
32319 (cbranchhi4_virt): Likewise.
32320 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
32321 always use '[reg+imm]' even when imm is zero.
32322 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
32323 (rl78_general_operand): New.
32324 (rl78_nonimmediate_operand): New.
32325 (rl78_nonfar_operand): Use them.
32326 (rl78_nonfar_nonimm_operand): Likewise.
32327 (rl78_stack_based_mem): Fix.
32328 * config/rl78/constraints.md (Ibqi): New.
32333 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
32334 (iorqi3): Likewise.
32335 (xorqi3): Likewise.
32336 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
32338 * config/rl78/constrains (Qs8): New constraint.
32339 * config/rl78/rl78.c (rl78_flags_already_set): New function.
32340 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
32341 * config/rl78/rl78-real.md (update_Z): New attribute.
32342 Update patterns to set it.
32343 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
32344 shorter compare and branch sequence can be used.
32345 (cbranchhi4_real): Likewise.
32346 (cbranchhi4_real_inverted): Likewise.
32348 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
32349 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
32351 * config/rl78/rl78.c (rl78_get_name_encoding): New.
32352 (rl78_option_override): Allow -mes0 only if C.
32353 (characterize_address): Support subregs of symbol_refs.
32354 (rl78_addr_space_address_mode): Move. Add __near.
32355 (rl78_far_p): Likewise.
32356 (rl78_addr_space_pointer_mode): Likewise.
32357 (rl78_as_legitimate_address): Likewise.
32358 (rl78_addr_space_subset_p): Likewise.
32359 (rl78_addr_space_convert): Likewise.
32360 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
32361 symbols with -mes0.
32362 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
32364 (rl78_alloc_physical_registers_op1): Change logic to prefer
32365 symbol[BC] addressing.
32366 (frodata_section): New.
32367 (rl78_asm_init_sections): Initialize it.
32368 (rl78_select_section): Put __far readonly symbols in .frodata.
32369 (rl78_make_type_far): New.
32370 (rl78_insert_attributes): Force all readonly symbols to be
32372 (rl78_asm_out_integer): New.
32373 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
32374 * config/rl78/rl78.opt (-mes0): New.
32376 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
32377 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
32378 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
32379 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
32380 (rl78_saddr_p): New.
32381 (rl78_output_aligned_common): New.
32382 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
32383 (rl78_handle_saddr_attribute): New.
32384 (rl78_handle_naked_attribute): New.
32385 (rl78_attribute_table): Add saddr.
32386 (rl78_print_operand_1): Don't print '!' on saddr operands.
32387 (rl78_print_operand_1): Strip encodings.
32389 (rl78_strip_name_encoding): New.
32390 (rl78_attrlist_to_encoding): New.
32391 (rl78_encode_section_info): New.
32392 (rl78_asm_init_sections): New.
32393 (rl78_select_section): New.
32394 (rl78_output_labelref): New.
32395 (rl78_output_aligned_common): New.
32396 (rl78_asm_out_integer): New.
32397 (rl78_asm_ctor_dtor): New.
32398 (rl78_asm_constructor): New.
32399 (rl78_asm_destructor): New.
32401 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
32402 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
32403 (transcode_memory_rtx): Update.
32404 (rl78_expand_epilogue): Use A_REG instead of 0.
32406 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32408 * config/arm/arm-protos.h (struct tune_params): New field
32409 sched_autopref_queue_depth.
32410 * config/arm/arm.c (sched-int.h): Include header.
32411 (arm_first_cycle_multipass_dfa_lookahead_guard,)
32412 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
32413 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
32414 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
32415 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
32416 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
32417 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
32418 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
32419 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
32420 * config/arm/t-arm (arm.o): Update.
32421 * haifa-sched.c (update_insn_after_change): Update.
32422 (rank_for_schedule): Use auto-prefetcher model, if requested.
32423 (autopref_multipass_init): New static function.
32424 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
32425 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
32426 variable for debug dumps.
32427 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
32428 (autopref_multipass_dfa_lookahead_guard): New global function that
32429 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
32430 (init_h_i_d): Update.
32431 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
32432 * sched-int.h (enum autopref_multipass_data_status): New const enum.
32433 (autopref_multipass_data_): Structure for auto-prefetcher data.
32434 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
32435 (struct _haifa_insn_data:autopref_multipass_data): New field.
32436 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
32437 (autopref_multipass_dfa_lookahead_guard): Declare.
32439 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32441 * rtlanal.c (get_base_term): Handle SCRATCH.
32443 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32445 * config/aarch64/aarch64.c
32446 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
32447 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
32449 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
32450 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
32452 2015-01-17 Alan Modra <amodra@gmail.com>
32454 * cprop.c (do_local_cprop): Disallow replacement of fixed
32457 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32460 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
32463 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
32465 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
32466 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
32468 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32470 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
32471 * config/arm/thumb1.md: ... Here.
32473 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32475 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
32476 TImode for TARGET_32BIT.
32478 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32480 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
32481 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
32483 (rs6000_abi_word_mode): New function.
32485 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32487 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
32488 instead of UNITS_PER_WORD to describe the size of stack slots.
32490 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32492 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
32493 as rs6000_promote_function_mode. Move comment to there.
32494 (rs6000_promote_function_mode): New function.
32496 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32498 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
32499 -mpowerpc64 is active.
32501 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
32503 PR middle-end/64353
32504 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
32507 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
32509 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
32510 introduced in revision 219724.
32512 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32513 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32516 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
32517 destination is not a GP reg.
32518 (*movdi_aarch64): Likewise.
32520 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
32523 * config/rs6000/default64.h: Revert ISA change.
32525 2015-01-16 Richard Biener <rguenther@suse.de>
32527 PR middle-end/64614
32528 * tree-ssa-uninit.c: Include tree-cfg.h.
32529 (MAX_SWITCH_CASES): New define.
32530 (convert_control_dep_chain_into_preds): Handle switch statements.
32531 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
32532 (normalize_one_pred_1): Do not split bit-manipulations.
32535 2015-01-16 Richard Biener <rguenther@suse.de>
32537 PR tree-optimization/64568
32538 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
32539 complex load rewriting for TARGET_MEM_REFs.
32541 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
32543 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
32545 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
32548 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
32550 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
32551 (aarch64_lra_p): Remove.
32553 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
32556 * ipa-chkp.h (chkp_instrumentable_p): New.
32557 * ipa-chkp.c: Include tree-inline.h.
32558 (chkp_instrumentable_p): New.
32559 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
32560 Fix processing of not instrumentable functions.
32561 (chkp_versioning): Use chkp_instrumentable_p. Warn about
32562 not instrumentable functions.
32563 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
32564 chkp_instrumentable_p.
32565 * tree-inline.h (copy_forbidden): New.
32566 * tree-inline.c (copy_forbidden): Not static anymore.
32568 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32570 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
32573 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
32575 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
32576 type OP_OUT to OP_INOUT.
32578 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
32580 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
32581 (high x) y) to y if x and y have the same base.
32583 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
32585 * config/arm/cortex-a57.md: New.
32586 * config/aarch64/aarch64.md: Include it.
32587 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
32588 * config/aarch64/aarch64-tune.md: Regenerate.
32590 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
32593 * ccmp.c (expand_ccmp_next): New function.
32594 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
32595 and compare insn sequence.
32596 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
32597 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
32598 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
32599 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
32600 (*ccmp_ior): Changed to ccmp_ior<mode>.
32601 (cmp<mode>): New pattern.
32602 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
32604 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
32606 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
32608 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
32609 _mm256_bsrli_epi128): New.
32610 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
32612 2015-01-15 Jiong Wang <jiong.wang@arm.com>
32614 * expmed.c (store_bit_field_using_insv): Improve warning message.
32615 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
32617 2015-01-15 Jiong Wang <jiong.wang@arm.com>
32619 PR rtl-optimization/64011
32620 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
32621 there is partial overflow.
32623 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32625 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
32627 (nds32_expand_epilogue_v3pop): Likewise.
32628 * config/nds32/nds32.md (sibcall): Define this for sibling call
32630 (sibcall_register): Likewise.
32631 (sibcall_immediate): Likewise.
32632 (sibcall_value): Likewise.
32633 (sibcall_value_register): Likewise.
32634 (sibcall_value_immediate): Likewise.
32635 (sibcall_epilogue): Likewise.
32636 (epilogue): Pass false to indicate this is not a sibcall epilogue.
32637 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
32638 (nds32_expand_epilogue_v3pop): Likewise.
32640 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32642 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
32643 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
32644 (return_internal): New.
32645 (return): Define this named pattern.
32646 (simple_return): Define this named pattern.
32647 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
32648 pattern instead of unspec_volatile_func_return.
32649 (nds32_expand_epilogue_v3pop): Likewise.
32650 (nds32_can_use_return_insn): New function.
32652 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32654 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
32655 * config/nds32/nds32.md (pop25return): New.
32656 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
32657 pop25return pattern.
32659 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32661 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
32662 -mforbid-fp-as-gp, and -mex9 options.
32664 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32666 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
32667 remove -mgp-direct option.
32669 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
32671 * doc/invoke.texi (--param early-inlining-insns): Update default value.
32672 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
32674 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
32676 * ipa-inline.c (inline_small_functions): Work around hints
32679 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
32682 * doc/invoke.texi (Option Summary): Document new Nios II
32684 (Nios II Options): Likewise.
32685 * config/nios2/nios2.opt: Add -mgpopt= option support.
32686 Modify existing -mgpopt and -mno-gpopt options to be aliases.
32687 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
32688 * config/nios2/nios2.c (nios2_option_override): Adjust
32689 -mgpopt defaulting.
32690 (nios2_in_small_data_p): Return true for explicit small data
32691 sections even with -G0.
32692 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
32695 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
32698 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
32700 (inline_call): Fix removal of aliases.
32702 2015-01-15 Jakub Jelinek <jakub@redhat.com>
32704 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
32705 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
32706 * opts.c (common_handle_option): Add -fsanitize=vptr.
32707 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
32708 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
32709 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
32710 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
32711 (ubsan_expand_vptr_ifn): New prototype.
32712 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
32713 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
32714 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
32715 expand_LOOP_VECTORIZED): Make argument nameless, remove
32717 (expand_UBSAN_VPTR): New function.
32718 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
32720 (UBSAN_VPTR): New internal function.
32721 * sanopt.c (tree_map_traits): Renamed to ...
32722 (sanopt_tree_map_traits): ... this.
32723 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
32724 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
32725 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
32726 (maybe_optimize_ubsan_vptr_ifn): New function.
32727 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
32728 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
32730 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
32731 internal calls like pure functions for aliasing, even when they
32732 have other side-effects that prevent making them ECF_PURE.
32733 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
32734 (ubsan_expand_vptr_ifn): New function.
32736 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
32738 PR rtl-optimization/64110
32739 * stmt.c (parse_output_constraint): Process '^' and '$'.
32740 (parse_input_constraint): Ditto.
32741 * lra-constraints.c (process_alt_operands): Process the new
32743 * ira-costs.c (record_reg_classes): Process the new constraint
32745 * genoutput.c (indep_constraints): Add '^' and '$'.
32746 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
32747 * doc/md.texi: Add description of the new constraints.
32749 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
32750 Bernd Schmidt <bernds@codesourcery.com>
32751 Cesar Philippidis <cesar@codesourcery.com>
32752 James Norris <jnorris@codesourcery.com>
32753 Tom de Vries <tom@codesourcery.com>
32754 Ilmir Usmanov <i.usmanov@samsung.com>
32755 Dmitry Bocharnikov <dmitry.b@samsung.com>
32756 Evgeny Gavrin <e.gavrin@samsung.com>
32757 Jakub Jelinek <jakub@redhat.com>
32759 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
32760 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
32761 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
32762 New function types.
32763 * builtins.c: Include "gomp-constants.h".
32764 (expand_builtin_acc_on_device): New function.
32765 (expand_builtin, is_inexpensive_builtin): Handle
32766 BUILT_IN_ACC_ON_DEVICE.
32767 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
32769 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
32771 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
32772 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
32773 i386/intelmic-offload.h.
32774 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
32775 to libgomp and its dependencies.
32776 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
32777 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
32778 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
32779 * config/ia64/hpux.h (LIB_SPEC): Likewise.
32780 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
32781 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
32782 * doc/generic.texi: Update for OpenACC changes.
32783 * doc/gimple.texi: Likewise.
32784 * doc/invoke.texi: Likewise.
32785 * doc/sourcebuild.texi: Likewise.
32786 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
32787 GF_OMP_FOR_KIND_OACC_LOOP.
32788 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
32789 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
32790 GF_OMP_TARGET_KIND_OACC_UPDATE,
32791 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
32793 * gimple.c: Update comments for OpenACC changes.
32794 * gimple.def: Likewise.
32795 * gimple.h: Likewise.
32796 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
32797 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
32798 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
32799 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
32800 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
32802 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
32803 * gimplify.c: Include "gomp-constants.h".
32804 Update comments for OpenACC changes.
32805 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
32806 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
32807 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
32808 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
32809 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
32810 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
32811 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
32812 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
32813 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
32815 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
32816 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
32817 OMP_CLAUSE_SET_MAP_KIND.
32818 (gimplify_oacc_cache): New function.
32819 (gimplify_omp_for): Handle OACC_LOOP.
32820 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
32822 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
32823 OACC_EXIT_DATA, OACC_UPDATE.
32824 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
32825 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
32826 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
32827 (gimplify_body): Consider flag_openacc next to flag_openmp.
32828 * lto-streamer-out.c: Include "gomp-constants.h".
32829 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
32830 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
32831 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
32832 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
32833 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
32834 (BUILT_IN_ACC_ON_DEVICE): New builtins.
32835 * omp-low.c: Include "gomp-constants.h".
32836 Update comments for OpenACC changes.
32837 (struct omp_context): Add reduction_map, gwv_below, gwv_this
32839 (extract_omp_for_data, use_pointer_for_field, install_var_field)
32840 (new_omp_context, delete_omp_context, scan_sharing_clauses)
32841 (create_omp_child_function, scan_omp_for, scan_omp_target)
32842 (check_omp_nesting_restrictions, lower_reduction_clauses)
32843 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
32844 Update for OpenACC changes.
32845 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
32846 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
32847 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
32848 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
32849 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
32850 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
32852 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
32853 Handle GF_OMP_FOR_KIND_OACC_LOOP.
32854 (expand_omp_target, lower_omp_target): Handle
32855 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
32856 GF_OMP_TARGET_KIND_OACC_UPDATE,
32857 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
32858 GF_OMP_TARGET_KIND_OACC_DATA.
32859 (pass_expand_omp::execute, execute_lower_omp)
32860 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
32862 (offload_symbol_decl): New variable.
32863 (oacc_get_reduction_array_id, oacc_max_threads)
32864 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
32865 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
32866 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
32867 (oacc_gimple_assign, oacc_initialize_reduction_data)
32868 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
32870 (is_targetreg_ctx): Remove function.
32871 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
32872 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
32873 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
32874 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
32875 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
32876 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
32877 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
32878 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
32879 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
32880 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
32881 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
32882 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
32883 * tree-core.h: Update comments for OpenACC changes.
32884 (enum omp_clause_map_kind): Remove.
32885 (struct tree_omp_clause): Change type of map_kind member from enum
32886 omp_clause_map_kind to unsigned char.
32887 * tree-inline.c: Update comments for OpenACC changes.
32888 * tree-nested.c: Likewise. Include "gomp-constants.h".
32889 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
32890 (convert_tramp_reference_stmt, convert_gimple_call): Update for
32891 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
32892 OMP_CLAUSE_SET_MAP_KIND.
32893 * tree-pretty-print.c: Include "gomp-constants.h".
32894 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
32895 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
32896 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
32897 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
32898 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
32899 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
32900 instead of OMP_CLAUSE_MAP_*.
32901 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
32902 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
32903 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
32904 * tree-streamer-in.c: Include "gomp-constants.h".
32905 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
32906 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
32907 * tree-streamer-out.c: Include "gomp-constants.h".
32908 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
32910 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
32911 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
32912 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
32913 * tree.c (omp_clause_num_ops): Update accordingly.
32914 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
32916 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
32917 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
32918 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
32919 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
32920 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
32921 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
32922 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
32923 (OMP_CLAUSE_SET_MAP_KIND): New macro.
32924 * varpool.c (varpool_node::get_create): Consider flag_openacc next
32926 * config/i386/intelmic-offload.h: New file.
32927 * config/nvptx/offload.h: Likewise.
32929 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32931 * explow.h: Remove duplicate contents.
32932 * dojump.h: Likewise.
32934 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
32936 * arm.c (arm_xgene_tune): Add default initializer for instruction
32939 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
32943 * ipa.c (symbol_table::remove_unreachable_nodes):
32944 Do not put abstract origins into boundary.
32946 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
32948 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
32949 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
32951 2015-01-15 Steve Ellcey <sellcey@mips.com>
32953 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
32954 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
32955 builtins.def, and chkp-builtins.def.
32957 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
32959 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
32962 2015-01-15 Richard Biener <rguenther@suse.de>
32964 PR tree-optimization/61743
32965 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
32966 information on PHIs for some simple cases.
32968 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
32970 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
32972 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
32973 * config/arm/arm-cores.def (xgene1): New entry.
32974 * config/arm/arm-tables.opt: Regenerate.
32975 * config/arm/arm-tune.md: Regenerate.
32976 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
32978 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
32980 * tree-if-conv.c: Include hash-map.h.
32981 (aggressive_if_conv): New variable.
32982 (fold_build_cond_expr): Add simplification of non-zero condition.
32983 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
32984 destination block is not always executed.
32985 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
32986 than two predecessors if AGGRESSIVE_IF_CONV is true.
32987 (if_convertible_stmt_p): Fix commentary.
32988 (all_preds_critical_p): New function.
32989 (has_pred_critical_p): New function.
32990 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
32991 BB can have more than two predecessors and all incoming edges can be
32993 (predicate_bbs): Skip predication for loop exit block, use build2_loc
32994 to compute predicate for true edge.
32995 (find_phi_replacement_condition): Delete this function.
32996 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
32997 Allow interchange PHI arguments if EXTENDED is false.
32998 Change check that block containing reduction statement candidate
32999 is predecessor of phi-block since phi may have more than two arguments.
33000 (phi_args_hash_traits): New helper structure.
33001 (struct phi_args_hash_traits): New type.
33002 (phi_args_hash_traits::hash): New function.
33003 (phi_args_hash_traits::equal_keys): New function.
33004 (gen_phi_arg_condition): New function.
33005 (predicate_scalar_phi): Add handling of phi nodes with more than two
33006 arguments, delete COND and TRUE_BB arguments, insert body of
33007 find_phi_replacement_condition to predicate ordinary phi nodes.
33008 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
33009 delete call of find_phi_replacement_condition and invoke
33010 predicate_scalar_phi with two arguments.
33011 (insert_gimplified_predicates): Add assert that non-predicated block
33012 don't have statements to insert.
33013 (ifcvt_split_critical_edges): New function.
33014 (ifcvt_split_def_stmt): Likewise.
33015 (ifcvt_walk_pattern_tree): Likewise.
33016 (stmt_is_root_of_bool_pattern): Likewise.
33017 (ifcvt_repair_bool_pattern): Likewise.
33018 (ifcvt_local_dce): Likewise.
33019 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
33020 is copy of inner or outer loop force_vectorize field, invoke
33021 ifcvt_split_critical_edges, ifcvt_local_dce and
33022 ifcvt_repair_bool_pattern for aggressive if-conversion.
33024 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
33026 * config/aarch64/aarch64.md: Include xgene1.md.
33027 * config/aarch64/xgene1.md: New file.
33029 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
33031 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
33032 xgene1 (APM XGene-1) core definition.
33033 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
33034 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
33035 * doc/invoke.texi: Document -mcpu=xgene1.
33037 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33039 * dojump.h: New header file.
33040 * explow.h: Likewise.
33041 * expr.h: Remove includes.
33042 Move expmed.c prototypes to expmed.h.
33043 Move dojump.c prototypes to dojump.h.
33044 Move alias.c prototypes to alias.h.
33045 Move explow.c prototypes to explow.h.
33046 Move calls.c prototypes to calls.h.
33047 Move emit-rtl.c prototypes to emit-rtl.h.
33048 Move varasm.c prototypes to varasm.h.
33049 Move stmt.c prototypes to stmt.h.
33050 (saved_pending_stack_adjust): Move to dojump.h.
33051 (adjust_address): Move to explow.h.
33052 (adjust_address_nv): Move to emit-rtl.h.
33053 (adjust_bitfield_address): Likewise.
33054 (adjust_bitfield_address_size): Likewise.
33055 (adjust_bitfield_address_nv): Likewise.
33056 (adjust_automodify_address_nv): Likewise.
33057 * explow.c (expr_size): Move to expr.c.
33058 (int_expr_size): Likewise.
33059 (tree_expr_size): Likewise.
33060 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33061 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
33062 * genemit.c (main): Generate includes statistics.h, real.h,
33063 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
33065 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
33066 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
33067 explow.h, emit-rtl.h, stmt.h.
33068 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
33069 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
33070 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
33071 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
33072 emit-rtl.h, varasm.h, stmt.h.
33073 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
33074 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
33075 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
33076 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
33077 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
33078 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
33079 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
33080 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
33081 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
33082 tm.h tree.h varasm.h vec.h wide-int.h.
33083 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33084 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
33085 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
33086 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
33087 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
33088 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
33089 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
33090 * loop-iv.c: Likewise.
33091 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
33092 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
33093 statistics.h stmt.h tree.h varasm.h wide-int.h.
33094 * lra-constraints.c: Likewise.
33095 * lra-eliminations.c: Likewise.
33096 * lra-lives.c: Likewise.
33097 * lra-remat.c: Likewise.
33098 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33099 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
33100 statistics.h stmt.h tree.h varasm.h wide-int.h.
33101 * hw-doloop.c: Likewise.
33102 * ira-color.c: Likewise.
33103 * ira-emit.c: Likewise.
33104 * loop-doloop.c: Likewise.
33105 * loop-invariant.c: Likewise.
33106 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33107 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
33108 statistics.h stmt.h tree.h varasm.h wide-int.h.
33109 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
33110 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
33111 statistics.h stmt.h tree.h varasm.h wide-int.h.
33112 * combine-stack-adj.c: Likewise.
33115 * ifcvt.c: Likewise.
33116 * ira-costs.c: Likewise.
33117 * jump.c: Likewise.
33118 * lra-coalesce.c: Likewise.
33119 * lra-spills.c: Likewise.
33120 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33121 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
33122 stmt.h varasm.h wide-int.h.
33123 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33124 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
33126 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
33127 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
33128 statistics.h stmt.h varasm.h wide-int.h.
33129 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
33130 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
33131 varasm.h wide-int.h.
33132 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
33133 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
33134 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
33135 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
33136 statistics.h stmt.h.
33137 * config/tilepro/tilepro.c: Likewise.
33138 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
33139 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
33140 * config/pdp11/pdp11.c: Likewise.
33141 * config/xtensa/xtensa.c: Likewise.
33142 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
33143 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
33145 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33146 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
33147 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
33148 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33149 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
33150 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
33151 * rtl-chkp.c: Likewise.
33152 * tree-chkp-opt.c: Likewise.
33153 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
33154 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
33155 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
33156 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33157 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
33158 statistics.h stmt.h.
33159 * tree-vect-data-refs.c: Likewise.
33160 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
33161 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33162 rtl.h statistics.h stmt.h varasm.h.
33163 * internal-fn.c: Likewise.
33164 * ipa-icf-gimple.c: Likewise.
33165 * lto-section-out.c: Likewise.
33166 * tree-data-ref.c: Likewise.
33167 * tree-nested.c: Likewise.
33168 * tree-outof-ssa.c: Likewise.
33169 * tree-predcom.c: Likewise.
33170 * tree-pretty-print.c: Likewise.
33171 * tree-scalar-evolution.c: Likewise.
33172 * tree-ssa-strlen.c: Likewise.
33173 * tree-vect-loop.c: Likewise.
33174 * tree-vect-patterns.c: Likewise.
33175 * tree-vect-slp.c: Likewise.
33176 * tree-vect-stmts.c: Likewise.
33177 * tsan.c: Likewise.
33178 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33179 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
33181 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
33182 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33183 statistics.h stmt.h varasm.h.
33184 * loop-unroll.c: Likewise.
33185 * ubsan.c: Likewise.
33186 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
33187 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
33189 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33190 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
33191 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
33192 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
33193 statistics.h stmt.h.
33194 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
33195 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
33196 statistics.h stmt.h varasm.h.
33197 * gimple-match-head.c: Likewise.
33198 * lto-cgraph.c: Likewise.
33199 * lto-section-in.c: Likewise.
33200 * lto-streamer-in.c: Likewise.
33201 * lto-streamer-out.c: Likewise.
33202 * tree-affine.c: Likewise.
33203 * tree-cfg.c: Likewise.
33204 * tree-cfgcleanup.c: Likewise.
33205 * tree-if-conv.c: Likewise.
33206 * tree-into-ssa.c: Likewise.
33207 * tree-ssa-alias.c: Likewise.
33208 * tree-ssa-copyrename.c: Likewise.
33209 * tree-ssa-dse.c: Likewise.
33210 * tree-ssa-forwprop.c: Likewise.
33211 * tree-ssa-live.c: Likewise.
33212 * tree-ssa-math-opts.c: Likewise.
33213 * tree-ssa-pre.c: Likewise.
33214 * tree-ssa-sccvn.c: Likewise.
33215 * tree-tailcall.c: Likewise.
33216 * tree-vect-generic.c: Likewise.
33217 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33218 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
33219 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33220 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
33221 * varasm.c: Likewise.
33222 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33223 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
33225 * init-regs.c: Likewise.
33227 * omp-low.c: Likewise.
33228 * stack-ptr-mod.c: Likewise.
33229 * tree-ssa-reassoc.c: Likewise.
33230 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33231 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
33233 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33234 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
33235 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33236 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
33237 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33238 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
33239 * tree-ssa-phiopt.c: Likewise.
33240 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33241 fixed-value.h hashtab.h real.h statistics.h stmt.h.
33242 * config/fr30/fr30.c: Likewise.
33243 * config/frv/frv.c: Likewise.
33244 * expr.c: Likewise.
33245 * final.c: Likewise.
33246 * optabs.c: Likewise.
33247 * passes.c: Likewise.
33248 * simplify-rtx.c: Likewise.
33249 * stmt.c: Likewise.
33250 * toplev.c: Likewise.
33251 * var-tracking.c: Likewise.
33252 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33253 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
33254 * lower-subreg.c: Likewise.
33255 * postreload-gcse.c: Likewise.
33257 * reginfo.c: Likewise.
33258 * store-motion.c: Likewise.
33259 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33260 fixed-value.h hashtab.h real.h stmt.h varasm.h.
33261 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33262 fixed-value.h hashtab.h statistics.h stmt.h.
33263 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33264 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
33265 * except.c: Likewise.
33266 * explow.c: Likewise.
33267 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33268 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
33270 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33271 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
33272 * tree-ssa-structalias.c: Likewise.
33273 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33274 fixed-value.h insn-config.h real.h statistics.h.
33275 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33276 fixed-value.h insn-config.h real.h statistics.h stmt.h.
33277 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33278 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
33279 * cfgbuild.c: Likewise.
33280 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33281 fixed-value.h real.h rtl.h statistics.h stmt.h.
33282 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33283 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
33284 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33285 fixed-value.h real.h statistics.h stmt.h.
33286 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33287 fixed-value.h real.h statistics.h stmt.h varasm.h.
33288 * cprop.c: Likewise.
33289 * modulo-sched.c: Likewise.
33290 * postreload.c: Likewise.
33291 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
33292 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
33293 statistics.h stmt.h varasm.h.
33294 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
33295 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33296 rtl.h statistics.h stmt.h varasm.h.
33297 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
33298 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
33300 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
33301 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
33303 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
33304 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
33306 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
33307 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
33308 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
33309 function.h real.h statistics.h stmt.h varasm.h.
33310 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
33311 insn-config.h real.h statistics.h stmt.h.
33312 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
33313 statistics.h stmt.h.
33314 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
33315 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
33316 statistics.h stmt.h varasm.h.
33317 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
33318 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
33319 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
33320 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
33321 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
33322 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
33323 statistics.h stmt.h varasm.h.
33324 * ipa-polymorphic-call.c: Likewise.
33325 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
33326 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33327 statistics.h stmt.h.
33328 * config/c6x/c6x.c: Likewise.
33329 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
33330 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33331 statistics.h stmt.h varasm.h.
33332 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
33333 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
33335 * ipa-split.c: Likewise.
33336 * tree-eh.c: Likewise.
33337 * tree-ssa-dce.c: Likewise.
33338 * tree-ssa-loop-niter.c: Likewise.
33339 * tree-vrp.c: Likewise.
33340 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
33341 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
33343 * config/nds32/nds32-fp-as-gp.c: Likewise.
33344 * config/nds32/nds32-intrinsic.c: Likewise.
33345 * config/nds32/nds32-isr.c: Likewise.
33346 * config/nds32/nds32-md-auxiliary.c: Likewise.
33347 * config/nds32/nds32-memory-manipulation.c: Likewise.
33348 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
33349 * config/nds32/nds32-predicates.c: Likewise.
33350 * config/nds32/nds32.c: Likewise.
33351 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
33352 fixed-value.h hashtab.h real.h statistics.h.
33353 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
33354 fixed-value.h hashtab.h real.h statistics.h stmt.h.
33355 * config/arm/arm.c: Likewise.
33356 * config/avr/avr.c: Likewise.
33357 * config/bfin/bfin.c: Likewise.
33358 * config/h8300/h8300.c: Likewise.
33359 * config/i386/i386.c: Likewise.
33360 * config/ia64/ia64.c: Likewise.
33361 * config/iq2000/iq2000.c: Likewise.
33362 * config/m32c/m32c.c: Likewise.
33363 * config/m32r/m32r.c: Likewise.
33364 * config/m68k/m68k.c: Likewise.
33365 * config/mcore/mcore.c: Likewise.
33366 * config/mep/mep.c: Likewise.
33367 * config/mips/mips.c: Likewise.
33368 * config/mn10300/mn10300.c: Likewise.
33369 * config/moxie/moxie.c: Likewise.
33370 * config/pa/pa.c: Likewise.
33371 * config/rl78/rl78.c: Likewise.
33372 * config/rx/rx.c: Likewise.
33373 * config/s390/s390.c: Likewise.
33374 * config/sh/sh.c: Likewise.
33375 * config/sparc/sparc.c: Likewise.
33376 * config/spu/spu.c: Likewise.
33377 * config/stormy16/stormy16.c: Likewise.
33378 * config/v850/v850.c: Likewise.
33379 * config/vax/vax.c: Likewise.
33380 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
33381 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
33382 * config/msp430/msp430.c: Likewise.
33383 * predict.c: Likewise.
33384 * value-prof.c: Likewise.
33385 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
33386 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
33387 * config/microblaze/microblaze.c: Likewise.
33388 * config/nios2/nios2.c: Likewise.
33389 * config/rs6000/rs6000.c: Likewise.
33390 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
33391 insn-config.h real.h rtl.h statistics.h stmt.h.
33392 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
33393 insn-config.h real.h statistics.h stmt.h.
33394 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
33395 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
33396 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
33397 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
33398 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
33399 fixed-value.h real.h statistics.h stmt.h.
33400 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
33401 fixed-value.h statistics.h stmt.h.
33402 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
33405 2015-01-15 Jakub Jelinek <jakub@redhat.com>
33407 * gengtype.c (create_user_defined_type): Workaround
33408 -Wmaybe-uninitialized false positives.
33409 * cse.c (fold_rtx): Likewise.
33410 * loop-invariant.c (gain_for_invariant): Likewise.
33412 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
33414 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
33415 set the memory attributes in all cases but clear MEM_EXPR if need be.
33417 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
33419 PR tree-optimization/64434
33420 * cfgexpand.c (reorder_operands): New function.
33421 (expand_gimple_basic_block): Insert call of reorder_operands if
33424 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
33426 * config/mips/micromips.md (*swp): Remove explicit parallel.
33427 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
33428 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
33429 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
33430 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
33431 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
33432 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
33433 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
33434 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
33435 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
33436 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
33437 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
33438 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
33439 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
33440 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
33441 (mips_wrdsp): Likewise.
33442 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
33444 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
33445 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
33446 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
33447 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
33448 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
33449 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
33450 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
33451 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
33452 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
33454 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
33456 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
33457 (mips_print_operand): Support 'y' to print exact log2 in decimal
33459 * config/mips/mips.h (ISA_HAS_LSA): New define.
33460 (ISA_HAS_DLSA): Likewise.
33461 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
33462 * config/mips/predicates.md (const_immlsa_operand): New predicate.
33464 2015-01-15 Martin Liska <mliska@suse.cz>
33467 * optc-save-gen.awk: Add support for array types.
33469 2015-01-15 Richard Biener <rguenther@suse.de>
33471 PR middle-end/64365
33472 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
33473 for MEM_REF access functions with the same base can never partially
33476 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
33478 * common.opt: New option -fstack-protector-explicit.
33479 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
33480 (stack_protect_decl_phase): Handle stack_protect attribute for
33481 explicit stack protection requests.
33482 (expand_used_vars): Similarly.
33483 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
33484 * doc/extend.texi: Add documentation for "stack_protect" attribute.
33485 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
33487 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
33490 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
33492 (sh_extending_set_of_reg): New struct.
33493 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
33494 sh_remove_reg_dead_or_unused_notes): New Declarations.
33495 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
33496 sh_find_extending_set_of_reg, sh_split_tst_subregs,
33497 sh_extending_set_of_reg::use_as_extended_reg): New functions.
33498 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
33499 convert to insn_and_split and use new function sh_split_tst_subregs.
33501 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
33503 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
33505 (Optimization Options): Move -fuse-ld documentation to...
33506 (Link Options): ...here.
33508 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
33510 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
33512 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
33513 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
33514 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
33515 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
33516 instead of ZR for the memory operand of LL/SC.
33517 (compare_and_swap_12, sync_add<mode>): Likewise.
33518 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
33519 (sync_new_<optab>_12, sync_nand_12): Likewise.
33520 (sync_old_nand_12, sync_new_nand_12): Likewise.
33521 (sync_sub<mode>, sync_old_add<mode>): Likewise.
33522 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
33523 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
33524 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
33525 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
33526 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
33527 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
33528 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
33529 * doc/md.texi (ZC): Update description.
33531 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
33533 * builtins.c (expand_builtin_atomic_exchange): Remove error when
33534 memory model is CONSUME.
33535 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
33536 expand_builtin_atomic_store): Change invalid memory model errors to
33538 (expand_builtin_atomic_clear): Change invalid model errors to warnings
33539 and issue warning for CONSUME.
33541 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
33543 * lto-cgraph: Update function comments for
33544 lto_symtab_encoder_encode_*.
33546 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
33548 * Makefile.in (site.exp): Do not set ENABLE_LTO.
33550 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
33552 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
33553 * lto-cgraph.c (select_what_to_stream): Remove argument, use
33554 lto_stream_offload_p instead.
33555 * lto-streamer.h (select_what_to_stream): Remove argument.
33556 * passes.c (ipa_write_summaries): Likewise.
33557 * tree-pass.h (ipa_write_summaries): Likewise.
33559 2015-01-14 Richard Biener <rguenther@suse.de>
33561 PR tree-optimization/59354
33562 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
33563 groups larger than the slp group size as having gaps.
33565 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
33567 PR middle-end/59448
33568 * builtins.c (get_memmodel): Promote consume to acquire always.
33570 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
33573 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
33576 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
33579 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
33581 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
33582 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
33583 AVX512VBMI, as it implies AVX512BW.
33585 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
33588 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
33589 (vec_unpacks_hi_v16sf): Ditto.
33591 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33593 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
33596 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33598 * doc/invoke.texi (mapcs): Mention deprecation.
33599 (mapcs-frame): Likewise.
33601 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
33604 * config/arm/arm.c (callee_saved_reg_p): Define.
33605 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
33606 register is callee saved instead of !call_used_regs[reg].
33607 (thumb1_compute_save_reg_mask): Likewise.
33609 2015-01-14 Hale Wang <hale.wang@arm.com>
33611 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
33614 2015-01-14 Richard Biener <rguenther@suse.de>
33617 * tree-inline.c (insert_debug_decl_map): Check destination
33618 function MAY_HAVE_DEBUG_STMTS.
33619 (insert_init_debug_bind): Likewise.
33620 (insert_init_stmt): Remove redundant check.
33621 (remap_gimple_stmt): Drop debug stmts if the destination
33622 function has var-tracking assignments disabled.
33624 2015-01-14 Martin Liska <mliska@suse.cz>
33626 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
33627 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
33629 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33632 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
33633 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
33635 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
33637 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
33638 level from an ARCH; do not inject the default.
33639 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
33640 MIPS_ISA_LEVEL_SPEC.
33641 (MIPS_ISA_NAN2008_SPEC): Update comment.
33642 (BASE_DRIVER_SELF_SPECS): Likewise.
33643 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
33644 MIPS_DEFAULT_ISA_LEVEL_SPEC.
33645 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
33646 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
33647 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
33649 2015-01-14 Richard Biener <rguenther@suse.de>
33651 PR tree-optimization/64493
33652 PR tree-optimization/64495
33653 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
33654 assign the proper vectorized PHI to the inner loop exit PHIs.
33656 2015-01-14 Joey Ye <joey.ye@arm.com>
33658 * config/arm/arm.c (arm_compute_save_reg_mask):
33659 Do not save lr in case of tail call.
33660 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
33662 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
33664 * tree-vrp.c (check_array_ref): Emit more warnings
33665 for warn_array_bounds >= 2.
33666 * common.opt: New option -Warray-bounds=.
33667 * doc/invoke.texi: Document -Warray-bounds=.
33669 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
33671 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
33672 (mforbid-fp-as-gp): Remove.
33674 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
33675 (nds32_symbol_load_store_p): Remove.
33676 (nds32_fp_as_gp_check_available): Clean up implementation.
33677 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
33679 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
33680 fp-as-gp and ex9 cases.
33682 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
33684 * tree-profile.c (init_ic_make_global_vars): Drop workaround
33685 for bintuils bug 14342.
33686 (init_ic_make_global_vars): Likewise.
33687 (gimple_init_edge_profiler): Likewise.
33688 (gimple_gen_ic_func_profiler): Likewise.
33690 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33692 * ipa-inline.c (inline_small_functions): Swap the operands in
33695 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
33698 * ipa-inline-analysis.c (node_growth_cache): Remove.
33699 (initialize_growth_caches): Do not initialize it.
33700 (free_growth_caches): Do not free it.
33701 (do_estimate_growth): Rename to ...
33702 (estimate_growth): ... this one; drop growth cache code.
33703 (growth_likely_positive): Always go the heuristics way.
33704 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
33705 (reset_edge_caches): Do not reset node growth.
33706 (heap_edge_removal_hook): Do not maintain cache.
33707 (inline_small_functions): Likewise; strenghten sanity check.
33708 (ipa_inline): Do not maintain caches.
33709 * ipa-inline.h (node_growth_cache): Remove.
33710 (do_estimate_growth): Remove to ...
33711 (estimate_growth): this one; remove inline version.
33712 (reset_node_growth_cache): Remove.
33714 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
33717 * ipa-inline.c (inline_small_functions): Update callee keys after
33718 resolving speculation
33719 (inline_small_functions): Always check monotonicity of the queue.
33721 2015-01-13 Marek Polacek <polacek@redhat.com>
33723 PR middle-end/64391
33724 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
33726 2015-01-13 Jakub Jelinek <jakub@redhat.com>
33728 PR rtl-optimization/64286
33729 * ree.c (combine_reaching_defs): Move part of comment earlier,
33730 remove !SCALAR_INT_MODE_P check.
33731 (add_removable_extension): Don't add vector mode
33732 extensions if all uses of the source register aren't the same
33735 2015-01-13 Renlin Li <renlin.li@arm.com>
33737 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
33738 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
33740 2015-01-13 Martin Liska <mliska@suse.cz>
33742 * ipa-icf.c (sem_function::equals_private): Call new functions
33743 cl_target_option_print_diff and cl_optimization_print_diff.
33744 * optc-save-gen.awk (cl_target_option_print_diff): New function.
33745 (cl_optimization_print_diff): Likewise.
33746 * opth-gen.awk: Likewise.
33748 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
33750 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
33751 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
33752 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
33753 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
33754 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
33755 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
33757 2015-01-13 Andrew Pinski <apinski@cavium.com>
33759 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
33760 instead of src mode.
33762 2015-01-13 Richard Biener <rguenther@suse.de>
33765 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
33768 2015-01-13 Andrew Pinski <apinski@cavium.com>
33770 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
33772 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
33774 2015-01-13 Jakub Jelinek <jakub@redhat.com>
33776 PR middle-end/63974
33777 * cfgexpand.c (expand_computed_goto): Don't call
33778 convert_memory_address here.
33780 2015-01-13 Richard Biener <rguenther@suse.de>
33782 PR tree-optimization/64406
33783 * tree-loop-distibution.c (pass_loop_distribution::execute):
33784 Reset the SCEV hashtable if we distributed anything.
33786 2015-01-13 Richard Biener <rguenther@suse.de>
33788 PR tree-optimization/64404
33789 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
33790 SLP types for CSEd loads.
33792 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
33794 PR tree-optimization/64436
33795 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
33796 merge of two symbolic numbers for a bitwise OR to ...
33797 (perform_symbolic_merge): This. Also fix computation of the range and
33798 end of the symbolic number corresponding to the result of a bitwise OR.
33800 2015-01-13 Richard Biener <rguenther@suse.de>
33802 PR tree-optimization/64568
33803 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
33804 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
33806 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33808 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
33809 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
33811 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33813 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
33814 target-specific symbol_ref flag.
33815 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
33816 resides in rodata section.
33817 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
33818 (nds32_encode_section_info): New function.
33820 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33822 * config/nds32/nds32.md (call): Use pseudo instruction bal which
33823 clobbers TA_REGNUM if large code model is specified.
33824 (call_register): Likewise.
33825 (call_immediate): Likewise.
33826 (call_value): Likewise.
33827 (call_value_register): Likewise.
33828 (call_value_immediate): Likewise.
33830 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33832 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
33833 (TARGET_CMODEL_MEDIUM): New macro.
33834 (TARGET_CMODEL_LARGE): New macro.
33835 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
33836 code model setting in assembly code.
33838 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33840 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
33841 Remove MASK_GP_DIRECT flag.
33842 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
33843 one of the multilib default options.
33844 * config/nds32/nds32.opt (mgp-direct): Remove.
33845 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
33846 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
33848 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33850 * config/nds32/nds32.opt (mcmodel): Add new option.
33851 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
33852 to describe code model.
33854 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
33857 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
33859 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
33861 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
33862 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33863 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
33864 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
33865 __builtin_sh_set_fpscr.
33867 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
33869 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
33870 after a funtion name just to indicate it is a function.
33871 ([-fsanitize-undefined-trap-on-error]): Likewise.
33872 ([-fdbg-cnt=]): Likewise.
33873 ([-mmemcpy]): Likewise.
33874 ([-mflush-func]): Likewise.
33875 ([-msynci]): Likewise.
33877 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
33879 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
33882 2015-01-12 Jakub Jelinek <jakub@redhat.com>
33884 PR tree-optimization/64563
33885 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
33886 instead of != VR_VARYING.
33889 * config/i386/i386.c (ix86_expand_prologue): Add
33890 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
33892 PR tree-optimization/64454
33893 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
33894 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
33895 for signed or [0, op1 - 1] for unsigned modulo.
33896 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
33897 even if op1 does not satisfy integer_pow2p.
33900 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
33902 2015-01-12 Jeff Law <law@redhat.com>
33905 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
33906 (trunchiqi2, truncsihi2): Similarly.
33908 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
33909 rather than calling F.
33911 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
33913 * tsan.c (instrument_expr): Use force_gimple_operand.
33914 Use may_be_nonaddressable_p instead of is_gimple_addressable.
33916 2015-01-12 Richard Biener <rguenther@suse.de>
33918 PR tree-optimization/64530
33919 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
33922 2015-01-12 Richard Biener <rguenther@suse.de>
33924 PR middle-end/64357
33925 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
33928 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33930 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
33931 Cortex-A17 tuning parameters.
33932 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
33934 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33936 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
33937 * config/arm/arm.c (arm_macro_fusion_p): New function.
33938 (arm_macro_fusion_pair_p): Likewise.
33939 (TARGET_SCHED_MACRO_FUSION_P): Define.
33940 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
33941 (ARM_FUSE_NOTHING): Likewise.
33942 (ARM_FUSE_MOVW_MOVT): Likewise.
33943 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
33944 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
33945 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
33946 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
33947 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
33948 arm_cortex_a5_tune): Specify fuseable_ops value.
33950 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
33953 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
33954 test for PIE with copy reloc.
33955 * configure: Regenerated.
33957 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33959 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
33961 (arm_tls_descseq_addr): Likewise.
33962 (arm_gen_movmemqi): Likewise.
33963 (arm_expand_epilogue_apcs_frame): Likewise.
33964 (arm_expand_epilogue): Likewise.
33965 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
33968 2015-01-12 Martin Liska <mliska@suse.cz>
33971 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
33972 volatility for correct operands.
33974 2015-01-12 Martin Liska <mliska@suse.cz>
33976 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
33977 indication that a function is not leaf.
33978 (sem_function::compare_polymorphic_p): Likewise.
33980 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33982 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
33983 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
33984 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
33985 fold-const.h, tree-check.h.
33987 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
33991 * ipa-inline.c (compute_uninlined_call_time,
33992 compute_inlined_call_time): Use counts for extra precision when
33994 (big_speedup_p): Fix formating.
33995 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
33996 (relative_time_benefit): Remove.
33997 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
33998 merge guessed and read profile paths.
33999 (inline_small_functions): Count only !optimize_size functions into
34000 initial size; be more lax about sanity check when profile is used;
34001 be sure to update inlined function profile when profile is read.
34003 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
34006 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
34007 cost when edge becomes direct.
34008 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
34009 is resolved or when introducing new speculation.
34011 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
34015 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
34016 '||' to fix typo issue.
34018 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
34019 accept and return NULL.
34021 2015-01-12 Martin Liska <mliska@suse.cz>
34023 * cgraph.c (cgraph_edge::remove_callee): Move function to header
34024 file for being inlined.
34025 (cgraph_set_edge_callee): Delete.
34026 (cgraph_edge::redirect_callee): Move function to header file
34028 (cgraph_edge::make_direct): Use new function.
34029 (cgraph_edge::dump_edge_flags): New function created from
34030 static dump_edge_flags function.
34031 (cgraph_node::dump): Use new function.
34032 (cgraph_edge::verify_count_and_frequency): New function created
34033 from verify_edge_count_and_frequency.
34034 (cgraph_edge::verify_corresponds_to_fndecl): New function created
34035 from verify_edge_corresponds_to_fndecl.
34036 (verify_edge_corresponds_to_fndecl): Delete.
34037 (cgraph_node::verify_node): Use new function.
34038 * cgraph.h (cgraph_edge::set_callee): New function.
34039 (cgraph_edge::dump_edge_flags): Likewise.
34040 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
34042 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
34044 * ipa-utils.c (estimate_function_body_sizes): Do not
34045 free node params when called late with early=true.
34047 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
34049 * doc/md.texi (Instruction Patterns): Rewrite text for
34051 (Example): Likewise.
34053 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
34055 * doc/invoke.texi (Option Summary): Break long lines.
34056 [(-fdiagnostics-color)]: Put long literal in @smallexample
34058 [(-fsanitize-recover)]: Likewise.
34059 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
34060 [(-ffast-math)]: Likewise.
34061 [(--param max-inline-insns-recursive)]: Likewise.
34062 [(--param max-inline-recursive-depth)]: Likewise.
34063 [(-mno-text-section-literals)]: Likewise.
34065 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
34067 * doc/install.texi: Update for libgomp being renamed from "GNU
34068 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
34070 * doc/sourcebuild.texi: Likewise.
34072 2015-01-10 Anthony Green <green@moxielogic.com>
34074 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
34075 mul.x availability for moxiebox configuration.
34077 2015-01-09 Anthony Green <green@moxielogic.com>
34079 * config/moxie/moxie.md: Tabify assembly output.
34081 2015-01-09 Anthony Green <green@moxielogic.com>
34083 * config/moxie/moxie.md (CC_REG): Correct register definition.
34085 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
34087 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
34088 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
34091 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
34093 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
34095 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
34096 Jakub Jelinek <jakub@redhat.com>
34098 PR middle-end/64412
34099 * lto-streamer.h (lto_stream_offload_p): New declaration.
34100 * lto-streamer.c (lto_stream_offload_p): New variable.
34101 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
34102 at the same time as section_name_prefix.
34103 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
34104 if lto_stream_offload_p.
34105 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
34106 stream TREE_TARGET_OPTION if lto_stream_offload_p.
34107 (write_ts_function_decl_tree_pointers): Don't
34108 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
34109 * tree-streamer-in.c (unpack_value_fields): Don't stream
34110 TREE_TARGET_OPTION in if ACCEL_COMPILER.
34111 (lto_input_ts_function_decl_tree_pointers): Don't stream
34112 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
34113 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
34114 instead of section_name_prefix string comparisons.
34116 2015-01-09 Jakub Jelinek <jakub@redhat.com>
34118 PR rtl-optimization/64536
34119 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
34122 2015-01-09 Michael Collison <michael.collison@linaro.org>
34124 PR tree-optimization/64322
34125 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
34126 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
34128 2015-01-09 Tom de Vries <tom@codesourcery.com>
34130 PR rtl-optimization/64539
34131 * regcprop.c (kill_clobbered_values): Factor out of ...
34132 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
34133 instead of note_stores with kill_clobbered_value.
34135 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
34137 * ginclude/unwind-arm-common.h: Revert previous commit.
34139 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
34141 * config.gcc (arm*-*-freebsd*): New configuration.
34142 * config/arm/freebsd.h: New file.
34143 * config.host: Add extra components for arm*-*-freebsd*.
34144 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
34145 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
34147 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34149 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
34151 * config/rs6000/t-rtems: Add e6500 multilibs.
34153 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34155 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
34158 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34160 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
34161 MULTILIB_EXCEPTIONS.
34163 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34165 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
34166 MULTILIB_EXCEPTIONS.
34168 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34170 * config/arm/t-rtems-eabi: Rename to...
34171 * config/arm/t-rtems: ...this.
34172 * config/arm/rtems-eabi.h: Rename to...
34173 * config/arm/rtems.h: ...this.
34174 * config.gcc (arm*-*-rtems*): Reflect changes above.
34176 2015-01-09 Richard Biener <rguenther@suse.de>
34178 PR tree-optimization/64410
34179 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
34181 (execute_update_addresses_taken): Deal with that.
34182 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
34183 loads/stores for complex variables.
34185 2015-01-09 Martin Liska <mliska@suse.cz>
34187 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
34189 (func_checker::compare_memory_operand): New function.
34190 (func_checker::compare_operand): Split case to newly
34192 (func_checker::compare_cst_or_decl): New function.
34193 (func_checker::compare_gimple_call): Identify
34195 (func_checker::compare_gimple_assign): Likewise.
34196 * ipa-icf-gimple.h: New function.
34198 2015-01-09 Martin Liska <mliska@suse.cz>
34201 * sreal.c (sreal::dump): Change unsigned format to signed for
34203 (sreal::to_double): Replace exp2 with scalbln.
34205 2015-01-09 Martin Liska <mliska@suse.cz>
34207 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
34208 * ipa-icf.c (sem_function::equals_private): Add support for target and
34209 (sem_item_optimizer::merge_classes): Remove redundant function
34210 optimization flags comparison.
34211 * tree.h (target_opts_for_fn): New function.
34213 2015-01-09 Tom de Vries <tom@codesourcery.com>
34215 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
34217 2015-01-09 Kito Cheng <kito@0xlab.org>
34219 PR rtl-optimization/64348
34220 * lra-constraints.c (split_reg): Fix caller-save store/restore
34221 instruction generation.
34223 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
34225 PR gcov-profile/61790
34226 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
34227 long long. Fallback to int64_t if host doesn't have long long and
34228 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
34230 2015-01-08 Jakub Jelinek <jakub@redhat.com>
34232 PR tree-optimization/63989
34233 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
34234 from 1000 to 10000.
34235 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
34236 (get_stridx): If we don't have a record for certain SSA_NAME,
34237 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
34238 constant offset, call get_stridx_plus_constant.
34239 (get_stridx_plus_constant): New function.
34240 (zero_length_string): Don't use get_stridx here.
34243 PR middle-end/64388
34244 * dse.c (struct insn_info): Mention frame_read set also
34245 before reload for tail calls on some targets.
34246 (scan_insn): Revert 2014-12-22 change. Set frame_read
34247 also before reload for tail calls if
34248 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
34249 instead of add_non_frame_wild_read for non-const/memset
34250 tail calls after reload.
34252 2015-01-08 Jason Merrill <jason@redhat.com>
34254 * ubsan.c (do_ubsan_in_current_function): New.
34255 (pass_ubsan::gate): Use it.
34256 * ubsan.h: Declare it.
34257 * convert.c (convert_to_integer): Use it.
34259 2015-01-08 Jakub Jelinek <jakub@redhat.com>
34262 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
34263 compare_code when it is unconditionally overwritten afterwards.
34264 Use ix86_reverse_condition instead of reverse_condition. Don't
34265 change code if *reverse_condition* returned UNKNOWN and don't
34266 swap ct/cf and negate diff in that case.
34268 2015-01-08 Mike Stump <mikestump@comcast.net>
34270 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
34271 (pass_tsan_O0::gate): Likewise.
34272 * extend.texi (Function Attributes): Add no_sanitize_thread
34275 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
34277 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
34278 for registering builtins.
34279 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
34280 add -fopenmp to the argv_obstack used when invoking
34281 compile_for_target.
34283 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
34284 add "-m32" or "-m64" to argv_obstack.
34285 (generate_host_descr_file): Likewise, when invoking host_compiler.
34286 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
34289 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
34291 * config/sh/sh-mem.cc: Use constant as second operand when emitting
34294 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
34297 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
34298 constant load if constant operand fits into I08.
34300 2015-01-08 Jakub Jelinek <jakub@redhat.com>
34303 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
34304 and TREE_THIS_VOLATILE for MEM_REFs.
34305 (build5_stat): Fix up initialization of TREE_READONLY and
34306 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
34308 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
34311 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
34312 of r for the second alternative of the destination operand.
34314 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
34317 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
34319 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
34321 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
34323 ([-fivar-visibility], [-fvisibility]): Likewise.
34325 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
34327 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
34328 the file where @code, @command, etc is more appropriate.
34330 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
34332 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
34333 of -mrecip= documentation.
34335 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34338 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
34339 correct reload handler if -m32 -mpowerpc64 is used.
34341 2015-01-06 Tom de Vries <tom@codesourcery.com>
34343 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
34345 2015-01-08 Christian Bruel <christian.bruel@st.com>
34348 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
34350 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
34352 PR tree-optimization/63259
34353 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
34354 if optab exists for 16bit byteswap.
34356 2015-01-06 Jakub Jelinek <jakub@redhat.com>
34358 * opts.c (common_handle_option): Add support for
34359 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
34360 * doc/invoke.texi: Document -fno-sanitize=all,
34361 -f{,no-}sanitize-recover=all. Document that
34362 -fsanitize=float-cast-overflow is not enabled
34363 by -fsanitize=undefined. Fix up documentation
34364 of -f{,no-}sanitize-recover.
34366 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
34368 * config.gcc: Add Visium support.
34369 * configure.ac: Likewise.
34370 * configure: Regenerate.
34371 * doc/extend.texi (interrupt attribute): Add Visium.
34372 * doc/invoke.texi: Document Visium options.
34373 * doc/install.texi: Document Visium target.
34374 * doc/md.texi: Document Visium constraints.
34375 * common/config/visium: New directory.
34376 * config/visium: Likewise.
34378 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
34380 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
34381 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
34383 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
34385 * combine.c (combine_validate_cost): Do not count the cost of a
34386 split I2 twice. Do not display it twice in the dump, either.
34388 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
34390 Revert parts of r219199.
34391 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
34393 ([-Wtraditional]): Restore markup on <limits.h>.
34395 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
34398 * doc/invoke.texi: Document -Wsuggest-override.
34400 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
34402 PR rtl-optimization/64287
34403 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
34404 (process_options): Disable flag_ipa_ra if profiling.
34406 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
34408 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
34410 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
34412 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
34413 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
34414 put under #if TARGET_LOOPS guard.
34416 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
34418 * config/i386/i386.c (output_387_binary_op): Use std::swap.
34420 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
34422 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
34423 * rtl.h (refers_to_regno_p): Add overload.
34425 * bt-load.c: Likewise.
34426 * combine.c: Likewise.
34427 * df-scan.c: Likewise.
34428 * sched-deps.c: Likewise.
34429 * config/s390/s390.c: Likewise.
34430 * config/m32r/m32r.c: Likewise.
34431 * config/rs6000/spe.md: Likewise.
34432 * config/rs6000/rs6000.c: Likewise.
34433 * config/pa/pa.c: Likewise.
34434 * config/stormy16/stormy16.c: Likewise.
34435 * config/cris/cris.c: Likewise.
34436 * config/arc/arc.md: Likewise.
34437 * config/arc/arc.c: Likewise.
34438 * config/sh/sh.md: Likewise.
34439 * config/sh/sh.c: Likewise.
34440 * config/frv/frv.c: Likewise.
34442 2015-01-05 Jakub Jelinek <jakub@redhat.com>
34445 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
34446 call as cleanup of the whole body.
34447 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
34448 * tsan.c (replace_func_exit): New function.
34449 (instrument_func_exit): Moved earlier.
34450 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
34451 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
34453 (tsan_pass): Don't call instrument_func_exit.
34454 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
34455 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
34459 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
34460 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
34461 it to libubsan handler instead of EXPR. Fold comparisons earlier,
34462 if the result is integer_zerop, return NULL_TREE.
34463 * convert.c (convert_to_integer): Pass expr as ARG.
34465 PR tree-optimization/64465
34466 * tree-inline.c (redirect_all_calls): During inlining
34467 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
34468 changed the stmt to a non-throwing call.
34470 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
34472 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
34473 etc markup throughout the file.
34475 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
34477 Enable experimental TSAN support for Ada.
34478 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
34480 2015-01-05 Jakub Jelinek <jakub@redhat.com>
34482 PR tree-optimization/64494
34483 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
34484 clear SSA_NAME_ANTI_RANGE_P flag.
34486 2015-01-05 Marek Polacek <polacek@redhat.com>
34488 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
34490 2015-01-05 Jakub Jelinek <jakub@redhat.com>
34492 Update copyright years.
34494 * gcc.c (process_command): Update copyright notice dates.
34495 * gcov-dump.c: Ditto.
34497 * doc/cpp.texi: Bump @copying's copyright year.
34498 * doc/cppinternals.texi: Ditto.
34499 * doc/gcc.texi: Ditto.
34500 * doc/gccint.texi: Ditto.
34501 * doc/gcov.texi: Ditto.
34502 * doc/install.texi: Ditto.
34503 * doc/invoke.texi: Ditto.
34505 * auto-profile.c, auto-profile.h: Fix up Copyright line.
34507 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
34509 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
34511 ([-fvtable-verify], [-fvtv-debug]): Likewise.
34512 ([-Wabi]): Likewise.
34513 ([-fmessage-length]): Likewise.
34514 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
34515 ([-Wno-discarded-qualifiers]): Likewise.
34516 ([-Wnodiscarded-array-qualifiers]): Likewise.
34517 ([-Wno-virtual-move-assign]): Likewise.
34518 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
34519 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
34520 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
34521 ([-fsanitize-undefined-trap-on-error]): Likewise.
34522 ([-floop-interchange]): Likewise.
34523 ([-ftree-coalesce-inlined-vars]): Likewise.
34524 ([-fvect-cost-model]): Likewise.
34525 ([-flto]): Likewise.
34526 ([--param]): Likewise.
34527 (Spec Files): Likewise.
34528 ([-mstrict-align]): Likewise.
34529 ([-mfix-cortex-a53-835769]): Likewise.
34530 ([-march], [-mtune]): Likewise.
34531 ([-mpic-register]): Likewise.
34532 ([-munaligned-access]): Likewise.
34533 ([-msp8]): Likewise.
34534 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
34535 (AVR Built-in Macros): Likewise.
34536 ([-mpreferred-stack-boundary]): Likewise.
34537 ([-mtune-crtl]): Likewise.
34538 ([-mashf]): Likewise.
34539 ([-mmcu=]): Likewise.
34540 ([-minrt]): Likewise.
34541 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
34542 ([-mupper-regs]): Likewise.
34543 ([-matomic-model]): Likewise.
34544 ([-mdiv]): Likewise.
34545 ([-mzdcbranch]): Likewise.
34546 ([-mdisable-callt]): Likewise.
34547 ([-msoft-float]): Likewise.
34548 ([-m8byte-align]): Likewise.
34549 ([-fstack-reuse]): Likewise.
34551 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34553 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
34554 Fix markup, light copy-editing.
34555 ([-fauto-profile]): Rewrite to fix formatting and content
34558 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34560 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
34561 Copy-edit description.
34562 ([-fisolate-erroneous-paths-attribute]): Likewise.
34563 * common.opt (fisolate-erroneous-paths-dereference):
34564 Copy-edit description.
34565 (fisolate-erroneous-paths-attribute): Likewise.
34567 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34569 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
34572 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34574 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
34575 ([-fvtv-debug]): Likewise.
34576 ([-Wc++-compat]): Likewise.
34577 ([-Wc++11-compat]): Likewise.
34578 ([-Wc++14-compat]): Likewise.
34579 ([-Wno-sized-deallocation]): Likewise.
34580 ([-femit-class-debug-always]): Likewise.
34581 ([-femit-struct-debug-detailed]): Likewise.
34582 ([-fno-keep-inline-dllexport]): Likewise.
34583 ([-fira-algorithm]): Likewise.
34584 ([-fira-region]): Likewise.
34585 ([-flra-remat]): Likewise.
34586 ([-fipa-ra]): Likewise.
34587 ([-fhoist-adjacent-loads]): Likewise.
34588 ([-fisolate-erroneous-paths-dereference]): Likewise.
34589 ([-fisolate-erroneous-paths-attribute]): Likewise.
34590 ([-ftree-switch-conversion]): Likewise.
34591 ([-ftree-tail-merge]): Likewise.
34592 ([-ftree-loop-if-convert]): Likewise.
34593 ([-ftree-loop-if-convert-stores]): Likewise.
34594 ([-ftree-loop-distribution]): Likewise.
34595 ([-ftree-loop-distribute-patterns]): Likewise.
34596 ([-flto-compression-level]): Likewise.
34597 ([-flto-report]): Likewise.
34598 ([-flto-report-wpa]): Likewise.
34599 ([-fuse-linker-plugin]): Likewise.
34600 ([-mfix-cortex-a53-835769]): Likewise.
34601 ([-mno-fix-cortex-a53-835769]): Likewise.
34602 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
34603 explicit listing; add a note to the discussion indicating they
34604 exist. Reorder table to group similar options. Add missing
34605 @opindex entries. Add @need commands throughout the table to
34606 allow it to be split across multiple pages.
34607 ([-m8bit-idiv]): Fix @opindex.
34608 ([-mavx256-split-unaligned-load]): Likewise.
34609 ([-mavx256-split-unaligned-store]): Likewise.
34610 ([-mstack-protector-guard]): Likewise.
34611 ([-mcpu=]): Likewise.
34612 ([-mcpu]): Likewise.
34613 ([-mpointer-size=]): Likewise.
34615 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
34617 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
34618 instead of `m' constraint. Likewise for unnamed movb comparison
34619 patterns using reg_before_reload_operand predicate.
34620 * config/pa/predicates.md (reg_before_reload_operand): Tighten
34621 predicate to reject register index and LO_SUM DLT memory forms
34624 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
34626 * doc/invoke.texi (Option Summary): Fix spelling of
34627 -fdevirtualize-at-ltrans.
34628 ([-fdevirtualize]): Fix markup.
34629 ([-fdevirtualize-speculatively]): Fix typo.
34630 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
34631 implementor-speaky.
34632 * common.opt (fdevirtualize-at-ltrans): Likewise.
34633 * ipa-devirt.c: Fix typos in comments throughout the file.
34634 (ipa_devirt): Fix typos in format strings for dump output.
34636 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
34638 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
34639 discussion of defaults, light copy-editing.
34641 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
34643 * tsan.c (instrument_expr): corrected previous checkin.
34645 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
34647 Instrument bit field and unaligned accesses for TSAN.
34648 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
34649 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
34650 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
34651 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
34652 unaligned memory regions.
34654 2015-01-01 Anthony Green <green@moxielogic.com>
34656 * config/moxie/predicates.md (moxie_general_movsrc_operand):
34657 Restrict move source register offsets to 16 bits.
34659 Copyright (C) 2015 Free Software Foundation, Inc.
34661 Copying and distribution of this file, with or without modification,
34662 are permitted in any medium without royalty provided the copyright
34663 notice and this notice are preserved.