1 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
4 (sibcall_value): Likewise.
6 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
8 * config/nvptx/nvptx.h (struct machine_function): Add
10 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
11 nvptx_expand_oacc_join): Declare.
12 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
13 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
14 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
15 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
16 UNSPECV_JOINING, UNSPECV_JOIN): New.
17 (BITS, BITD): New mode iterators.
18 (br_true_uni, br_false_uni): New.
19 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
20 (oacc_dim_size, oacc_dim_pos): New.
21 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
22 (oacc_fork, oacc_join): New.
23 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
24 (worker_load<mode>, worker_store<mode>): New.
26 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
27 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
28 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
29 worker_bcast_sym): New.
30 (nvptx_option_override): Initialize worker broadcast buffer.
31 (nvptx_emit_forking, nvptx_emit_joining): New.
32 (nvptx_init_axis_predicate): New.
33 (nvptx_declare_function_name): Init axis predicates.
34 (nvptx_expand_call): Add fork/join markers around routine call.
35 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
36 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
37 (nvptx_gen_vcast): New.
38 (struct wcast_data_t): New.
39 (enum propagate_mask): New.
40 (nvptx_gen_wcast): New.
41 (nvptx_print_operand): Add 'S' case.
42 (struct parallel): New.
43 (parallel::parallel, parallel::~parallel): New.
44 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
45 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
46 nvptx_find_par, nvptx_discover_pars): New.
47 (nvptx_propagate): New.
48 (vprop_gen, nvptx_vpropagate): New.
49 (wprop_gen, nvptx_wpropagate): New.
51 (nvptx_single, nvptx_skip_par): New.
52 (nvptx_process_pars, nvptx_neuter_pars): New.
53 (ntptx_reorg): Split blocks, generate parallel structure, apply
55 (nvptx_cannot_copy_insn_p): New.
56 (nvptx_file_end): Emit worker broadcast decl.
57 (nvptx_goacc_fork_join): New.
58 (TARGET_CANNOT_COPY_INSN_P): Override.
59 (TARGET_GOACC_FORK_JOIN): Override.
61 2015-10-28 Richard Biener <rguenther@suse.de>
63 * fold-const.c (negate_expr_p): Adjust the division case to
64 properly avoid introducing undefined overflow.
65 (fold_negate_expr): Likewise.
67 2015-10-28 Richard Biener <rguenther@suse.de>
69 PR tree-optimization/65962
70 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
71 Avoid creating loop carried dependences also for outer loops
72 of the loop a use to replace is in.
74 2015-10-28 Richard Biener <rguenther@suse.de>
76 * common.opt (fchecking): New flag controlling flag_checking.
77 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
78 * timevar.c (timer::print): Adjust output.
79 * doc/invoke.texi (fchecking): Document.
81 2015-10-28 Richard Biener <rguenther@suse.de>
84 * fold-const.c (negate_expr_p): We cannot negate plus or minus
85 if overflow is not wrapping. Likewise multiplication unless
86 one operand is constant and not power of two.
87 (fold_negate_expr): Adjust accordingly.
89 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
91 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
93 (is_oacc_parallel, is_oacc_kernels): New.
94 (enclosing_target_ctx): May return NULL.
95 (ctx_in_oacc_kernels_region): New.
96 (check_oacc_kernel_gwv): New.
97 (oacc_loop_or_target_p): Delete.
98 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
99 operands. Strip reductions fro kernels.
100 (scan_omp_target): Don't calculate gwv mask.
101 (lower_oacc_head_mark, lower_oacc_loop_marker,
102 lower_oacc_head_tail): New.
103 (struct oacc_collapse): New.
104 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
105 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
106 Remove OpenACC handling.
107 (expand_oacc_for): New.
108 (expand_omp_for): Call expand_oacc_for.
109 (lower_omp_for): Call lower_oacc_head_tail.
111 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
113 * attribs.c (check_attribute_tables): New function, broken out from...
114 (init_attributes): Use it.
115 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
116 gcc_checking_assert and checking_* functions to eliminate
117 ENABLE_CHECKING conditionals.
118 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
119 (pass_expand::execute): Likewise.
120 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
121 * cgraphunit.c (mark_functions_to_output): Likewise.
122 (cgraph_node::expand_thunk): Likewise.
123 (symbol_table::compile): Likewise.
124 * ddg.c (add_cross_iteration_register_deps): Likewise.
125 (create_ddg_all_sccs): Likewise.
126 * df-core.c (df_finish_pass, df_analyze): Likewise.
127 * diagnostic-core.h: Likewise.
128 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
129 * dominance.c (calculate_dominance_info): Likewise.
130 * dwarf2out.c (add_AT_die_ref): Likewise.
131 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
132 (loc_list_from_tree, gen_lexical_block_die): Likewise.
133 gen_type_die_with_usage, gen_type_die): Likewise.
134 (dwarf2out_decl): Likewise.
135 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
136 * except.c (duplicate_eh_regions): Likewise.
137 * fwprop.c (register_active_defs, update_df_init): Likewise.
138 (fwprop_init, fwprop_done): Likewise.
139 (update_uses): Likewise.
140 * ggc-page.c (ggc_grow): Likewise.
141 * gimplify.c (gimplify_body): Likewise.
142 (gimplify_hasher::equal): Likewise.
143 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
144 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
146 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
147 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
148 * hash-table.h (::find_empty_slot_for_expand): Likewise.
149 * ifcvt.c (if_convert): Likewise.
150 * ipa-cp.c (ipcp_propagate_stage): Likewise.
151 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
152 (odr_type_p, odr_types_equivalent_p): Likewise.
153 (add_type_duplicate, get_odr_type): Likewise.
154 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
155 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
156 (sem_item_optimizer::verify_classes): Likewise.
157 (sem_item_optimizer::traverse_congruence_split): Likewise.
158 (sem_item_optimizer::checking_verify_classes): New.
159 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
161 * cfgrtl.c (commit_edge_insertions): Likewise.
162 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
163 (rtl_flow_call_edges_add): Likewise.
164 * cgraph.c (symbol_table::create_edge): Likewise.
165 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
166 * cgraph.h (symtab_node): Likewise.
167 (symtab_node::checking_verify_symtab_nodes): Define.
168 (cgraph_node::checking_verify_cgraph_nodes): Define.
169 * cfghooks.h (checking_verify_flow_info): Define.
170 * cfgloop.h (checking_verify_loop_structure): Define.
171 * dominance.h (checking_verify_dominators): Define.
172 * et-forest.c: Fix comment.
173 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
174 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
175 ENABLE_CHECKING conditionals.
176 * ipa-inline-transform.c (save_inline_function_body): Likewise.
177 * ipa-inline.c (inline_small_functions): Likewise.
178 (early_inliner): Likewise.
179 * ipa-inline.h (estimate_edge_growth): Likewise.
180 * ipa-visibility.c (function_and_variable_visibility): Likewise.
181 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
182 (ipa_single_use): Likewise.
183 * ira-int.h: Likewise.
184 * ira.c (ira): Likewise.
185 * loop-doloop.c (doloop_optimize_loops): Likewise.
186 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
187 * loop-invariant.c (move_loop_invariants): Likewise.
188 * lra-assigns.c (lra_assign): Likewise.
189 * lra-constraints.c (lra_constraints): Likewise.
190 * lra-eliminations.c (lra_eliminate): Likewise.
191 * lra-int.h (struct lra_reg): Likewise.
192 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
193 (lra_create_live_ranges_1): Likewise.
194 * lra-remat.c (create_remat_bb_data): Likewise.
195 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
197 (check_rtl): Always define. Remove incorrect guard around
198 extract_constrain_insn call.
199 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
200 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
201 ENABLE_CHECKING conditionals.
202 * lto-streamer-out.c (DFS::DFS): Likewise.
203 (lto_output): Likewise.
204 * lto-streamer.c (lto_streamer_init): Likewise.
205 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
206 expand_omp_target, execute_expand_omp): Likewise.
207 (lower_omp_target): Likewise.
208 * passes.c (execute_function_todo): Likewise.
209 (execute_todo, execute_one_pass): Likewise.
210 (verify_curr_properties): Always define.
211 * predict.c (tree_estimate_probability: Use flag_checking,
212 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
213 ENABLE_CHECKING conditionals.
214 (propagate_freq): Likewise.
215 * pretty-print.c (pp_format): Likewise.
216 * real.c (real_to_decimal_for_mode): Likewise.
217 * recog.c (split_all_insns): Likewise.
218 * regcprop.c (kill_value_one_regno): Likewise.
219 (copy_value): Likewise.
220 (validate_value_data): Define unconditionally.
221 * reload.c: Fix comment.
222 * timevar.c: Include options.h
223 * tree-ssa.h (checking_verify_ssa): Define.
224 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
225 * sched-deps.c (CHECK): Remove unused macro.
226 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
227 gcc_checking_assert and checking_* functions to eliminate
228 ENABLE_CHECKING conditionals.
229 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
230 * sel-sched.c (struct moveop_static_params): Likewise.
231 (find_best_reg_for_expr, move_cond_jump): Likewise.
232 (move_op_orig_expr_not_found): Likewise.
233 (code_motion_process_successors, move_op): Likewise.
234 * ssa-iterators.h (first_readonly_imm_use): Likewise.
235 (next_readonly_imm_use): Likewise.
236 * store-motion.c (compute_store_table): Likewise.
237 * symbol-summary.h (function_summary::function_summary): Likewise.
238 * target.h (cumulative_args_t): Likewise.
239 (get_cumulative_args, pack_cumulative_args): Likewise.
240 * timevar.c: (timer::print): Likewise.
241 * trans-mem.c (ipa_tm_execute): Likewise.
242 * tree-cfg.c (move_stmt_op): Likewise.
243 (move_sese_region_to_fn): Likewise.
244 (gimple_flow_call_edges_add): Likewise.
245 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
247 * tree-eh.c (remove_unreachable_handlers): Likewise.
248 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
249 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
250 * tree-into-ssa.c (update_ssa): Likewise.
251 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
252 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
253 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
254 * tree-predcom.c (suitable_component_p): Likewise.
255 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
256 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
257 * tree-ssa-live.c (verify_live_on_entry): Likewise.
258 * tree-ssa-live.h (register_ssa_partition): Likewise.
259 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
260 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
261 (tree_transform_and_unroll_loop): Likewise.
262 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
263 * tree-ssa-operands.c (get_expr_operands): Likewise.
264 * tree-ssa-propagate.c (replace_exp_1): Likewise.
265 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
266 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
267 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
268 * tree-ssanames.c (release_ssa_name_fn): Likewise.
269 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
270 * tree-vect-loop-manip.c
271 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
272 (slpeel_checking_verify_cfg_after_peeling): Likewise.
273 (vect_do_peeling_for_loop_bound): Likewise.
274 (vect_do_peeling_for_alignment): Likewise.
275 * tree-vrp.c (supports_overflow_infinity): Likewise.
276 (set_value_range): Likewise.
277 * tree.c (free_lang_data_in_cgraph): Likewise.
278 * value-prof.c (gimple_remove_histogram_value): Likewise.
279 (free_hist): Likewise.
280 * var-tracking.c (canonicalize_values_star): Likewise.
281 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
283 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
285 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
286 IFN_GOACC_LOOP): New.
287 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
288 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
289 IFN_UNIQUE_OACC_TAIL_MARK.
290 (enum ifn_goacc_loop_kind): New.
291 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
292 IFN_UNIQUE_OACC_JOIN cases.
293 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
294 (expand_GOACC_LOOP): New.
295 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
296 * omp-low.c: Include gimple-pretty-print.h.
297 (struct oacc_loop): New.
298 (enum oacc_loop_flags): New.
299 (oacc_thread_numbers): New.
300 (oacc_xform_loop): New.
301 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
302 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
303 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
304 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
305 oacc_loop_discovery): New.
306 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
307 oacc_loop_process): New.
308 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
309 (execute_oacc_device_lower): Discover & process loops. Process
311 * target.def (goacc.fork_join): Change sense of hook, clarify
313 * doc/tm.texi: Regenerated.
315 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
317 * target-insns.def (oacc_fork, oacc_join): Define.
318 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
319 (goacc.fork_join): New GOACC hook.
320 * targhooks.h (default_goacc_fork_join): Declare.
321 * omp-low.c (default_goacc_forkjoin): New.
322 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
323 * doc/tm.texi: Regenerate.
325 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
327 * omp-low.c (oacc_init_rediction_array): New.
328 (oacc_initialize_reduction_data): Initialize array.
330 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
332 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
334 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
336 * internal-fn.c (expand_UNIQUE): New.
337 * internal-fn.h (enum ifn_unique_kind): New.
338 * internal-fn.def (IFN_UNIQUE): New.
339 * target-insns.def (unique): Define.
340 * gimple.h (gimple_call_internal_unique_p): New.
341 * gimple.c (gimple_call_same_target_p): Check internal fn
343 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
344 * tree-ssa-threadedge.c
345 (record_temporary_equivalences_from_stmts): Likewise.
346 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
348 2015-10-27 Richard Henderson <rth@redhat.com>
351 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
352 narrowing subregs on SSE and MMX registers.
353 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
354 appear to be sub-words of multi-register pseudos must be rejected.
355 * doc/tm.texi: Regenerate.
357 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
360 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
361 operands[0] is a reg before taking its REGNO in split condition.
362 (*movdi_aarch64): Likewise.
364 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
366 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
367 Handle floating point inner modes properly.
369 2015-10-27 Alan Hayward <alan.hayward@arm.com>
372 (vectorizable_live_operation): Change iterator.
374 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
375 Aditya Kumar <aditya.k7@samsung.com>
377 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
378 function to schedule based on isl_schedule_node.
379 (get_schedule_map_st): New schedule optimizer based on
381 (scop_get_domains): New. Return the isl_union_set containing the
382 domains of all the pbbs.
383 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
385 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
388 * calls.c (prepare_call_address): Don't handle -fno-plt here.
389 * config/i386/i386.c (ix86_expand_call): Generate indirect call
390 via GOT for -fno-plt. Support indirect call via GOT for x32.
391 * config/i386/predicates.md (sibcall_memory_operand): Allow
394 2015-10-27 Richard Biener <rguenther@suse.de>
396 PR tree-optimization/68104
397 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
398 strided access check ...
399 (vect_compute_data_refs_alignment): ... here.
401 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
402 Joseph Myers <joseph@codesourcery.com>
403 Mark Shinwell <shinwell@codesourcery.com>
404 Andrew Stubbs <ams@codesourcery.com>
405 Rich Felker <dalias@libc.org>
407 * config.gcc: Handle --enable-fdpic.
408 * config/sh/constraints.md (Ccl): New constraint.
409 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
410 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
412 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
414 * config/sh/sh-protos.h (function_symbol_result): New struct.
415 (function_symbol): Return function_symbol_result.
416 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
418 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
420 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
421 (sh_option_override): Force -fPIC if FDPIC is in effect.
422 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
423 UNSPEC_GOTOFFFUNCDESC cases.
424 (prepare_move_operands): Use FDPIC initial GOT register for
425 TLS-related GOT access; inhibit cross-section address offset constants
427 (sh_assemble_integer): New function.
428 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
429 PC-relative call sites.
430 (expand_ashiftrt): Adapt invocation of function_symbol.
431 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
432 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
433 UNSPEC_GOTOFFFUNCDESC.
434 (legitimize_pic_address): Resolve function symbols to function
435 descriptors for FDPIC. Do not use GOT-relative addressing for local
436 data that may be read-only on FDPIC.
437 (sh_emit_storesi, sh_emit_storehi): New functions.
438 (sh_trampoline_init): Generate FDPIC trampolines.
439 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
440 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
441 (sh_output_mi_thunk): Generate FDPIC call.
442 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
443 FDPIC, generate call site labels to use PC-relative addressing rather
444 than GOT-relative addressing.
445 (sh_conditional_register_usage): Make PIC register fixed and call used
446 when FDPIC is in effect.
447 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
448 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
449 sh_get_fdpic_reg_initial_val): New functions.
450 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
452 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
453 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
454 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
455 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
457 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
458 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
459 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
460 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
462 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
463 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
464 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
465 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
466 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
467 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
468 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
469 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
470 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
471 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
472 block_move_real, block_lump_real, block_move_real_i4,
473 block_lump_real_i4): Add support for FDPIC calls.
474 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
475 call_value_pop): Adjust for new function_symbol signature.
476 * config/sh/sh.opt (-mfdpic): New option.
477 * doc/install.texi (Options specification): Document --enable-fdpic.
478 * doc/invoke.texi (SH Options): Document -mfdpic.
481 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
483 PR tree-optimization/65963
484 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some LSHIFT_EXPRs
485 as equivalent MULT_EXPRs.
487 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
490 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
491 * config/arm/constraints.md (Dp): Update callsite.
492 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
494 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
496 * builtins.c (fold_builtin_load_exponent): Rename to...
497 (fold_const_builtin_load_exponent): ...this and only handle
499 (fold_builtin_2): Update accordingly.
500 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
502 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
504 * builtins.c (fold_builtin_logb): Rename to...
505 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
506 (fold_builtin_significand): Rename to...
507 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
508 (fold_builtin_1): Update accordingly.
510 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
512 * builtins.c (fold_builtin_fmin_fmax): Delete.
513 (fold_builtin_2): Handle constant fmin and fmax arguments here.
514 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
516 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
518 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
519 for register extension into sign and zero register extension.
520 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
521 for sign and zero register extension.
522 (cortexa57_addrcost_table): Likewise.
523 (xgene1_addrcost_table): Likewise.
525 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
527 * fold-const.c (fold_minmax): Delete.
528 (fold_binary_loc): Don't call it.
529 * match.pd: Add rules previously handled by fold_minmax.
531 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
533 * builtins.c (fold_builtin_fma): Remove constant handling.
534 (fold_builtin_3): Handle constant fma arguments here.
536 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
538 * builtins.c (fold_builtin_fabs): Remove constant handling.
539 (fold_builtin_abs): Likewise.
541 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
543 * builtins.c (fold_builtin_copysign): Delete.
544 (fold_builtin_2): Handle constant copysign arguments here.
545 * match.pd: Add rules previously handled by fold_builtin_copysign.
547 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
549 * builtins.c (fold_builtin_signbit): Delete.
550 (fold_builtin_2): Handle constant signbit arguments here.
551 * match.pd: Add rules previously handled by fold_builtin_signbit.
553 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
555 * match.pd: Handle sqrt(x) cmp 0 specially.
557 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
559 * tree-vect-generic.c (expand_vector_operations_1): Check
560 optab type before using it.
562 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
564 * config/aarch64/aarch64-protos.h
565 (struct tune_params): Add autoprefetcher_model field.
566 * config/aarch64/aarch64.c: Include params.h
567 (generic_tunings): Specify autoprefetcher_model value.
568 (cortexa53_tunings): Likewise.
569 (cortexa57_tunings): Likewise.
570 (cortexa72_tunings): Likewise.
571 (thunderx_tunings): Likewise.
572 (xgene1_tunings): Likewise.
573 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
574 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
575 (aarch64_override_options_internal): Set
576 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
578 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
580 * builtins.c (fold_builtin_exponent): Delete.
581 (fold_builtin_2): Handle constant expN arguments here.
582 * match.pd: Fold expN(logN(x)) -> x.
584 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
586 * builtins.c (fold_builtin_powi): Delete.
587 (fold_builtin_2): Handle constant powi arguments here.
588 * match.pd: Add rules previously handled by fold_builtin_powi.
590 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
592 * builtins.c (fold_builtin_pow): Delete in favor of...
593 (fold_const_builtin_pow): ...this new function. Only handle constant
595 (fold_builtin_2): Update accordingly.
596 * match.pd: Add rules previously handled by fold_builtin_pow.
598 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
600 * builtins.c (fold_builtin_hypot): Delete.
601 (fold_builtin_2): Handle constant hypot arguments here.
602 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
603 hypot(x, x) to fabs(x)*sqrt(2).
605 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
607 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
608 instead of make_ssa_name if not yet in SSA form.
610 2015-10-27 Richard Biener <rguenther@suse.de>
612 * cfg.c (free_edge): Add function argument and use it instead of cfun.
613 (clear_edges): Likewise.
614 * cfg.h (clear_edges): Adjust prototype.
615 * cfgexpand.c (pass_expand::execute): Adjust.
616 * cfgloop.c (release_recorded_exits): Add function argument and use
618 * cfgloop.h (release_recorded_exits): Adjust prototype.
619 (loops_state_satisfies_p): Add overload with function argument.
620 (loops_state_set): Likewise.
621 (loops_state_clear): Likewise.
622 (struct loop_iterator): Add function argument to constructor
623 and iterator and use it instead of cfun.
624 (FOR_EACH_LOOP_FN): New macro.
625 (loop_optimizer_finalize): Add overload with function argument.
626 * loop-init.c (loop_optimizer_init): Adjust.
627 (fix_loop_structure): Likewise.
628 (loop_optimizer_finaliz): Add function argument and use it
630 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
631 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
632 * cgraph.c (release_function_body): Do not push/pop cfun.
633 * final.c (rest_of_clean_state): Adjust.
634 * graphite.c (graphite_finalize): Likewise.
635 * tree-ssa-copy.c (fini_copy_prop): Likewise.
636 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
637 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
638 (tree_unroll_loops_completely): Likewise.
639 (pass_complete_unrolli::execute): Likewise.
640 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
641 Add function argument and use it instead of cfun.
642 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
644 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
645 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
647 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
648 * tree-ssanames.c (fini_ssanames): Add function argument and use it
650 * tree-ssanames.c (fini_ssanames): Adjust prototype.
651 * tree-vrp.c (execute_vrp): Adjust.
652 * value-prof.c (free_histograms): Add function argument and use it
654 * value-prof.h (free_histograms): Adjust prototype.
656 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
658 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
659 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
660 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
662 2015-10-27 Tom de Vries <tom@codesourcery.com>
664 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
667 2015-10-27 Bin Cheng <bin.cheng@arm.com>
669 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
670 (inv_can_prop_to_addr_use): New function.
671 (record_use): Call can_prop_to_addr_uses, set the new field.
672 (get_inv_cost): Count cost if inv can't be propagated into its
675 2015-10-26 Doug Evans <dje@google.com>
677 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
679 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
681 * match.pd (fold_widened_comparison): Apply simplifications to all
684 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
686 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
687 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
688 * doc/tm.texi: Regenerated.
689 * reorg.c (dbr_schedule): Use new hook.
690 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
692 2015-10-26 Jeff Law <law@redhat.com>
694 PR tree-optimization/68013
695 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
696 Make sure the first block in the path is in VISITED_BBs.
698 2015-10-26 Richard Biener <rguenther@suse.de>
699 Dominik Vogt <vogt@linux.vnet.ibm.com>
702 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
703 Properly prune ref->ref for accesses outside of ref.
705 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
707 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
708 new statements to be inserted if inplace. Allow calls to have
711 2015-10-26 Richard Biener <rguenther@suse.de>
713 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
714 (do_valueize): New function.
715 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
717 * tree-ssa-threadedge.c: Remove builtins.h include, include
719 (fold_assignment_stmt): Remove.
720 (threadedge_valueize): New function.
721 (record_temporary_equivalences_from_stmts): Use
722 gimple_fold_stmt_to_constant_1, note additional cleanup
725 2015-10-26 Richard Biener <rguenther@suse.de>
727 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
728 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
730 2015-10-26 Alan Hayward <alan.hayward@arm.com>
732 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
735 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
737 * auto-inc-dec.c (insert_move_insn_before): Delete.
738 (attempt_change): Remember to cost the simple move in the
739 FORM_PRE_ADD and FORM_POST_ADD cases.
741 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
744 * config/sh/sh.c (sh_vector_mode_supported_p): Use
745 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
747 2015-10-26 Tom de Vries <tom@codesourcery.com>
749 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
751 (intra_create_variable_infos): ... here.
753 2015-10-26 Tom de Vries <tom@codesourcery.com>
755 * tree-ssa-structalias.c (intra_create_variable_infos): Add
756 restrict_pointer_p and recursive_restrict_p variables.
758 2015-10-26 Tom de Vries <tom@codesourcery.com>
760 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
761 get_vi_for_tree call.
763 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
766 * optabs.c (expand_atomic_compare_and_swap): Handle case when
767 ptarget_oval or ptarget_bool are const0_rtx.
769 2015-10-26 Christian Bruel <christian.bruel@st.com>
771 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
772 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
773 * cp/method.c (implicitly_declare_fn): Likewise.
774 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
775 * java/class.c (add_method_1): Likewise.
777 2015-10-26 Richard Biener <rguenther@suse.de>
779 * alloc-pool.h (base_pool_allocator): Use placement new.
780 (base_pool_allocator::remove): Likewise. Compute size outside of
783 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
785 * builtins.c (do_real_to_int_conversion): New function.
786 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
787 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
789 * match.pd: Add rules previously handled by fold_fixed_mathfn
790 and fold_builtin_int_roundingfn.
792 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
794 * match.pd: Use macros to define built-in operator lists.
796 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
797 Richard Biener <rguenther@suse.de>
799 * genmatch.c (dt_simplify::gen): Skip captures that are
801 (parser::parse_expr): Allow captures in results too.
802 * builtins.c (fold_builtin_cexp): Delete.
803 (fold_builtin_1): Handle constant cexp arguments here.
804 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
806 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
808 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
809 conditional compilation.
810 (base_pool_allocator::remove): Use flag_checking.
812 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
814 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
817 * dojump.c (do_compare_and_jump): Canonicalize both function and
820 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
823 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
826 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
829 * ipa-polymorphic-call.c
830 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
831 instance offset with offset of outer type.
833 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
835 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
837 2015-10-23 Caroline Tice <cmtice@google.com>
840 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
841 call to iterative_hash_host_wide_int.
843 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
845 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
848 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
850 * tree-vect-generic.c (expand_vector_operations_1): Check
851 optab exists before use it.
853 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
855 * tree-vect-generic.c (expand_vector_condition): Avoid
856 uninitialized variable warning.
858 2015-10-23 Jeff Law <law@redhat.com>
860 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
862 (execute_todo): Call it here.
863 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
865 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
867 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
868 Szabolcs Nagy <szabolcs.nagy@arm.com>
870 * config.gcc (enable_secureplt): Add *-linux*-musl*.
872 2015-10-23 Jeff Law <law@redhat.com>
874 PR tree-optimization/67830
875 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
876 Explicitly verify the mask has no bits outside the type of
877 the innermost operands.
879 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
880 Szabolcs Nagy <szabolcs.nagy@arm.com>
882 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
883 (MUSL_DYNAMIC_LINKER64): Define.
884 (GNU_USER_DYNAMIC_LINKER32): Update.
885 (GNU_USER_DYNAMIC_LINKER64): Update.
886 (CHOOSE_DYNAMIC_LINKER): Update.
888 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
889 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
890 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
891 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
892 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
893 (CHOOSE_DYNAMIC_LINKER): Update.
894 (INCLUDE_DEFAULTS): Redefine.
896 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
898 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
900 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
903 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
905 * fold-const.c (operand_equal_p): Handle matching of vector
908 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
910 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
912 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
913 Andrew Pinski <apinski@cavium.com>
915 PR rtl-optimization/67736
916 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
919 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
922 * tree.c (build_truth_vector_type): Support BLK mode
923 returned for boolean vector.
925 2015-10-23 Alan Hayward <alan.hayward@arm.com>
927 PR tree-optimization/65947
929 (vect_is_simple_reduction_1): Find condition reductions.
930 (vect_model_reduction_cost): Add condition reduction costs.
931 (get_initial_def_for_reduction): Add condition reduction initial var.
932 (vect_create_epilog_for_reduction): Add condition reduction epilog.
933 (vectorizable_reduction): Condition reduction support.
934 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
935 * doc/sourcebuild.texi (Vector-specific attributes): Document
938 2015-10-23 Richard Biener <rguenther@suse.de>
940 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
943 2015-10-23 Richard Biener <rguenther@suse.de>
944 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
946 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
947 into (A ^ B) - B to match.pd
948 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
950 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
952 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
954 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
956 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
958 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
959 INTEGER_CST@1)): New simplifier.
961 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
963 * builtins.c (integer_valued_real_p): Move to fold-const.c.
964 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
965 (fold_builtin_ceil, fold_builtin_round): Delete.
966 (fold_builtin_1): Handle constant trunc, floor, ceil and round
968 * convert.c (convert_to_real): Remove narrowing of rounding
970 * fold-const.h (integer_valued_real_unary_p)
971 (integer_valued_real_binary_p, integer_valued_real_call_p)
972 (integer_valued_real_single_p, integer_valued_real_p): Declare.
973 * fold-const.c (tree_single_nonnegative_warnv_p): Move
974 name_registered_for_update_p check to SSA_NAME case statement.
975 Don't call tree_simple_nonnegative_warnv_p for SSA names.
976 (integer_valued_real_unary_p, integer_valued_real_binary_p)
977 (integer_valued_real_call_p, integer_valued_real_single_p)
978 (integer_valued_real_invalid_p): New functions.
979 (integer_valued_real_p): Move from fold-const.c and rework
980 to call the functions above. Handle SSA names.
981 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
982 * gimple-fold.c (gimple_assign_integer_valued_real_p)
983 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
984 (gimple_stmt_integer_valued_real_p): New functions.
985 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
986 Fold f(x)->x for the same f if x is known to be integer-valued.
987 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
988 the result. Canonicalize floor(x) as trunc(x) if x is
991 2015-10-23 Tom de Vries <tom@codesourcery.com>
993 * tree-ssa-structalias.c (intra_create_variable_infos): Use
994 make_constraint_from.
996 2015-10-23 Tom de Vries <tom@codesourcery.com>
998 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
999 setting of is_full_var in case of a single field.
1001 2015-10-22 Martin Sebor <msebor@redhat.com>
1004 * config/i386/i386.opt: Add missing periods to the ends of sentences.
1005 * config/msp430/msp430.opt: Same.
1007 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
1009 * doc/extend.exp (Global Register Variables): Rewrite.
1011 2015-10-22 Jeff Law <law@redhat.com>
1013 * genattrtab.c (main): If we do not have any annul-true or annul-false
1014 slots, then write out a dummy eligible_for_annul_true or
1015 eligible_for_annul_false as needed.
1017 2015-10-22 Nick Clifton <nickc@redhat.com>
1019 * config/msp430/msp430.opt: Add -msilicon-errata and
1020 -msilicon-errata-warn.
1021 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
1023 * doc/invoke.texi: Document new options.
1025 2015-10-22 Richard Biener <rguenther@suse.de>
1027 PR tree-optimization/58497
1028 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
1029 (expand_vector_operations_1): Use it. Lower operations on
1030 all uniform vectors to scalar operations if the HW supports it.
1032 2015-10-22 Richard Biener <rguenther@suse.de>
1034 PR tree-optimization/19049
1035 PR tree-optimization/65962
1036 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
1037 to strided accesses if single-element interleaving doesn't work.
1039 2015-10-22 Richard Biener <rguenther@suse.de>
1043 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
1044 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
1045 (expand_unop): Likewise.
1047 2015-10-22 Richard Biener <rguenther@suse.de>
1049 * fold-const.c (fold_addr_of_array_ref_difference): Properly
1050 convert operands before folding a MINUS_EXPR.
1051 (fold_binary_loc): Move simplification of MINUS_EXPR on
1052 converted POINTER_PLUS_EXPRs ...
1053 * match.pd: ... here.
1055 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
1057 * builtins.c (fold_builtin_tan): Delete.
1058 (fold_builtin_1): Handle constant tan arguments here.
1059 * match.pd: Simplify (tan (atan x)) to x.
1061 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
1063 * builtins.c (fold_builtin_cproj): Delete.
1064 (fold_builtin_1): Handle constant arguments here.
1065 (build_complex_cproj): Move and rename to...
1066 * tree.c: (build_complex_inf): ...this.
1067 * tree.h (build_complex_inf): Declare.
1068 * match.pd: Fold cproj(x)->x if x has no infinity.
1069 Use build_complex_inf for existing cproj rules.
1071 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1074 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
1075 already have a comparison result.
1077 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1080 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
1081 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
1082 (aarch64_classify_address): Likewise.
1083 (aarch64_secondary_reload): Likewise.
1084 (aarch64_override_options_after_change_1): Adjust.
1085 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
1086 Use aarch64_nopcrelative_literal_loads.
1087 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
1088 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
1091 2015-10-21 Martin Sebor <msebor@redhat.com>
1094 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
1095 (print_filtered_help): Reference aliased option's name and encourage
1096 readers to use it in preference to the alias if the former is not
1097 documented. Mention when using an option is diagnosed.
1098 * gcc.c (display_help): End each sentence with a period.
1100 * common.opt: End each sentence that describes an option with
1102 * config/aarch64/aarch64.opt: Same.
1103 * config/alpha/alpha.opt: Same.
1104 * config/arc/arc.opt: Same.
1105 * config/arm/arm.opt: Same.
1106 * config/avr/avr.opt: Same.
1107 * config/bfin/bfin.opt: Same.
1108 * config/c6x/c6x.opt: Same.
1109 * config/cr16/cr16.opt: Same.
1110 * config/cris/cris.opt: Same.
1111 * config/cris/linux.opt: Same.
1112 * config/darwin.opt: Same.
1113 * config/epiphany/epiphany.opt: Same.
1114 * config/fr30/fr30.opt: Same.
1115 * config/frv/frv.opt: Same.
1116 * config/ft32/ft32.opt: Same.
1117 * config/g.opt: Same.
1118 * config/h8300/h8300.opt: Same.
1119 * config/i386/cygming.opt: Same.
1120 * config/i386/djgpp.opt: Same.
1121 * config/i386/i386.opt: Same.
1122 * config/i386/interix.opt: Same.
1123 * config/i386/mingw-w64.opt: Same.
1124 * config/i386/mingw.opt: Same.
1125 * config/ia64/ia64.opt: Same.
1126 * config/ia64/ilp32.opt: Same.
1127 * config/iq2000/iq2000.opt: Same.
1128 * config/linux.opt: Same.
1129 * config/lm32/lm32.opt: Same.
1130 * config/lynx.opt: Same.
1131 * config/m32c/m32c.opt: Same.
1132 * config/m32r/m32r.opt: Same.
1133 * config/m68k/ieee.opt: Same.
1134 * config/m68k/m68k.opt: Same.
1135 * config/mcore/mcore.opt: Same.
1136 * config/mep/mep.opt: Same.
1137 * config/microblaze/microblaze.opt: Same.
1138 * config/mips/mips.opt: Same.
1139 * config/mmix/mmix.opt: Same.
1140 * config/mn10300/mn10300.opt: Same.
1141 * config/moxie/moxie.opt: Same.
1142 * config/msp430/msp430.opt: Same.
1143 * config/nios2/elf.opt: Same.
1144 * config/nios2/nios2.opt: Same.
1145 * config/nvptx/nvptx.opt: Same.
1146 * config/pa/pa-hpux.opt: Same.
1147 * config/pa/pa-hpux1010.opt: Same.
1148 * config/pa/pa-hpux1111.opt: Same.
1149 * config/pa/pa-hpux1131.opt: Same.
1150 * config/pa/pa.opt: Same.
1151 * config/pa/pa64-hpux.opt: Same.
1152 * config/pdp11/pdp11.opt: Same.
1153 * config/rl78/rl78.opt: Same.
1154 * config/rs6000/476.opt: Same.
1155 * config/rs6000/aix64.opt: Same.
1156 * config/rs6000/darwin.opt: Same.
1157 * config/rs6000/linux64.opt: Same.
1158 * config/rs6000/rs6000.opt: Same.
1159 * config/rs6000/sysv4.opt: Same.
1160 * config/s390/s390.opt: Same.
1161 * config/s390/tpf.opt: Same.
1162 * config/sh/sh.opt: Same.
1163 * config/sol2.opt: Same.
1164 * config/sparc/long-double-switch.opt: Same.
1165 * config/sparc/sparc.opt: Same.
1166 * config/spu/spu.opt: Same.
1167 * config/stormy16/stormy16.opt: Same.
1168 * config/tilegx/tilegx.opt: Same.
1169 * config/tilepro/tilepro.opt: Same.
1170 * config/v850/v850.opt: Same.
1171 * config/vax/vax.opt: Same.
1172 * config/visium/visium.opt: Same.
1173 * config/vms/vms.opt: Same.
1174 * config/vxworks.opt: Same.
1175 * config/xtensa/xtensa.opt: Same.
1177 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1178 Sebastian Pop <s.pop@samsung.com>
1180 * graphite-scop-detection.c (parameter_index_in_region): Update call to
1181 invariant_in_sese_p_rec.
1182 * graphite-sese-to-poly.c (extract_affine): Same.
1183 * sese.c (invariant_in_sese_p_rec): Pass in an extra
1184 parameter has_vdefs.
1185 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
1186 variable depends on virtual definitions in the current region.
1187 * sese.h (invariant_in_sese_p_rec): Update declaration.
1189 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1190 Sebastian Pop <s.pop@samsung.com>
1192 * graphite-scop-detection.c (build_scops): Do not handle scops
1193 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
1194 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
1196 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
1198 * config.in: Regenerate.
1199 * configure: Regenerate.
1200 * configure.ac (CHECKING_P): Define.
1201 * system.h: Use CHECKING_P.
1203 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1206 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
1207 is negative we don't know the type.
1208 (check_stmt_for_type_change): Skip constructors of non-polymorphic
1209 types as those won't help devirutalization.
1211 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1213 * fold-const.c (operand_equal_p): Add code matching empty constructors.
1215 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
1217 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
1219 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
1220 Add comments on sign of the result.
1221 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
1222 Recurse on operand #1 instead of operand #0.
1223 <CEIL_MOD_EXPR>: Do not recurse.
1224 <ROUND_MOD_EXPR>: Likewise.
1226 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1228 * cfgrtl.c (pass_free_cfg::execute): Adjust.
1229 * final.c (dbr_sequence_length): Always define.
1230 (shorten_branches): Adjust.
1231 * genattr-common.c (main): Always define DELAY_SLOTS.
1232 * genattr.c (main): Unconditionally declare functions and define
1233 macros related to delay slots.
1234 * genattrtab.c (write_eligible_delay): Adjust.
1235 (main): Always write out delay slot functions.
1236 * opts.c (default_options_table): Adjust.
1237 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
1238 (redirect_with_delay_list_safe_p): Likewise.
1239 (fill_simple_delay_slots): Likewise.
1240 (fill_slots_from_thread): Likewise.
1241 (make_return_insns): Likewise.
1242 (dbr_schedule): Likewise.
1243 (rest_of_handle_delay_slots): Likewise.
1244 (pass_delay_slots::gate): Likewise.
1245 * toplev.c (process_options): Likewise.
1247 2015-10-21 Richard Henderson <rth@redhat.com>
1249 * targhooks.c (default_addr_space_pointer_mode): Remove check
1250 for generic address space.
1251 (default_addr_space_address_mode): Likewise.
1252 (default_addr_space_valid_pointer_mode): Likewise.
1253 (default_addr_space_legitimate_address_p): Likewise.
1254 (default_addr_space_legitimize_address): Likewise.
1255 * target.def (addr_space.pointer_mode): Update documentation
1256 of default behavior.
1257 (addr_space.address_mode): Likewise.
1260 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
1263 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1265 * builtins.c (fold_builtin_cabs): Delete.
1266 (fold_builtin_1): Update accordingly. Handle constant arguments here.
1267 * match.pd: Add rules previously handled by fold_builtin_cabs.
1269 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1271 * fold-const.h (fold_strip_sign_ops): Delete.
1272 * fold-const.c (fold_strip_sign_ops): Likewise.
1273 (fold_unary_loc, fold_binary_loc): Remove calls to it.
1274 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
1275 (fold_builtin_ccos): Delete.
1276 (fold_builtin_pow): Don't call fold_strip_sign_ops.
1277 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
1278 Remove fndecl argument.
1279 (fold_builtin_1): Update calls accordingly. Handle constant
1280 cos, cosh, ccos and ccosh here.
1282 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1284 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
1285 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
1286 * common.opt (fssa-backprop): New option.
1287 * fold-const.h (negate_mathfn_p): Declare.
1288 * fold-const.c (negate_mathfn_p): Make public.
1289 * timevar.def (TV_TREE_BACKPROP): New.
1290 * tree-pass.h (make_pass_backprop): Declare.
1291 * passes.def (pass_backprop): Add.
1292 * gimple-ssa-backprop.c: New file.
1294 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1295 Sebastian Pop <s.pop@samsung.com>
1297 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
1298 Do not call create_empty_if_region_on_edge when cond_expr is true.
1299 (translate_isl_ast_node_for): Check whether a guard has been generated.
1301 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1303 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
1304 (operator=): Removed.
1305 (dr_info): Make alias_set number the last argument with default
1306 value of invalid_alias_set.
1307 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
1309 (rewrite_reductions_out_of_ssa): Iterate only through the
1310 basic blocks which are inside region.
1311 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1312 * sese.h (struct sese_l): Removed assignment operator.
1313 (split_region_for_bb): Removed dead code.
1315 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1317 * graphite-poly.h (struct dr_info): Removed conversion constructor.
1318 (struct scop): Renamed scop::region to scop::scop_info
1319 (scop_set_region): Same.
1320 (SCOP_REGION): Removed
1321 (SCOP_CONTEXT): Removed.
1322 (POLY_SCOP_P): Removed.
1323 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1324 Rename scop->region to scop->scop_info.
1325 (add_parameters_to_ivs_params): Same.
1326 (graphite_regenerate_ast_isl): Same.
1327 * graphite-poly.c (new_scop): Same.
1329 (print_scop_params): Same.
1330 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
1331 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
1332 (dot_all_scops_1): Rename scop->region to scop->scop_info.
1333 (scop_detection::nb_pbbs_in_loops): Same.
1334 (find_scop_parameters): Same.
1335 (try_generate_gimple_bb): Same.
1336 (gather_bbs::before_dom_children): Same.
1337 (gather_bbs::after_dom_children): Same.
1338 (build_scops): Same.
1339 * graphite-sese-to-poly.c (build_scop_scattering): Same.
1340 (extract_affine_chrec): Same.
1341 (extract_affine): Same.
1342 (set_scop_parameter_dim): Same.
1343 (build_loop_iteration_domains): Same.
1344 (create_pw_aff_from_tree): Same.
1345 (add_param_constraints): Same.
1346 (build_scop_iteration_domain): Same.
1347 (build_scop_drs): Same.
1348 (analyze_drs_in_stmts): Same.
1349 (insert_out_of_ssa_copy_on_edge): Same.
1350 (rewrite_close_phi_out_of_ssa):Same.
1351 (rewrite_reductions_out_of_ssa):Same.
1352 (handle_scalar_deps_crossing_scop_limits):Same.
1353 (rewrite_cross_bb_scalar_deps):Same.
1354 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
1355 (build_poly_scop):Same.
1356 (build_alias_set): Use pointer to dr_info.
1357 * graphite.c (print_graphite_scop_statistics):
1358 (graphite_transform_loops):
1359 * sese.h (struct sese_l): Remove conversion constructor.
1361 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1364 * tree.c (verify_type): Verify that TYPE_MODE match
1365 between TYPE_CANONICAL and type.
1366 * expr.c (store_expr_with_bounds): Revert my previous change.
1367 * expmed.c (store_bit_field_1): Revert prevoius change.
1368 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
1369 to match for all types.
1371 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
1373 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
1376 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
1378 * doc/tm.texi: Regenerated.
1379 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
1380 * stor-layout.c (layout_type): Use mode to get vector mask size.
1381 * target.def (get_mask_mode): New.
1382 * targhooks.c (default_get_mask_mode): New.
1383 * targhooks.h (default_get_mask_mode): New.
1384 * gcc/tree-vect-stmts.c (get_same_sized_vectype): Add special case
1386 * tree.c (MAX_BOOL_CACHED_PREC): New.
1387 (nonstandard_boolean_type_cache): New.
1388 (build_nonstandard_boolean_type): New.
1389 (make_vector_type): Vector mask has no canonical type.
1390 (build_truth_vector_type): New.
1391 (build_same_sized_truth_vector_type): New.
1392 (truth_type_for): Support vector masks.
1393 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
1394 (build_truth_vector_type): New.
1395 (build_same_sized_truth_vector_type): New.
1396 (build_nonstandard_boolean_type): New.
1397 * tree-cfg.c (verify_gimple_comparison) Require boolean
1398 vector type for vector comparison.
1399 (verify_gimple_assign_ternary): Likewise.
1400 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
1402 * tree-vect-stmts.c (vectorizable_condition): Use boolean
1403 vector type for vector comparison.
1404 * tree-vect-generic.c (elem_op_func): Add new operand to hold
1406 (do_unop): Adjust to modified function type.
1407 (do_binop): Likewise.
1408 (do_plus_minus): Likewise.
1409 (do_negate); Likewise.
1410 (expand_vector_piecewise): Likewise.
1411 (do_cond): Likewise.
1412 (do_compare): Use comparison instead of condition.
1413 (expand_vector_divmod): Use boolean vector type for comparison.
1414 (expand_vector_operations_1): Skip scalar mask operations.
1416 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
1418 * omp-low.c (simd_clone_create): Set in_other_partition
1421 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
1423 * doc/extend.exp (Local Register Variables): Rewrite.
1425 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1427 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
1428 and x*x in cases where the operands are sign ops. Extend these
1429 rules to handle copysign as a sign op (including for cos, cosh
1430 and pow, which already treated negate and abs as sign ops).
1432 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
1435 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
1436 for 64-bit MS_ABI targets also when default incoming stack boundary
1439 2015-10-21 Richard Biener <rguenther@suse.de>
1441 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
1442 cond stmts, enhanced and split out from ...
1443 (vn_phi_eq): ... here.
1445 2015-10-21 Richard Biener <rguenther@suse.de>
1448 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
1449 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
1450 (tree_single_nonnegative_warnv_p): ... here. For SSA names
1451 make sure they are not registered for update.
1453 2015-10-21 Richard Biener <rguenther@suse.de>
1455 PR tree-optimization/68026
1456 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
1457 unsigned VARYING values.
1459 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1461 * asan.c (asan_emit_stack_protection): Don't pass local stack to
1462 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
1463 NULL and use local stack than.
1464 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
1465 in addition to __asan_init.
1466 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
1467 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
1468 * asan.h (asan_intercepted_p): Handle new string builtins.
1469 * ubsan.c (ubsan_use_new_style_p): New function.
1470 (ubsan_instrument_float_cast): If location is unknown, assign
1471 input_location to loc. Propagate loc to ubsan_create_data if
1472 ubsan_use_new_style_p returned true.
1474 2015-10-21 Jeff Law <law@redhat.com>
1476 * Makefile.in (OBJS): Remove sched-vis.c
1477 * sched-vis.c: Removed. Code moved into...
1478 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
1479 * rtl.h: Remove prototypes for functions now living in print-rtl.c
1480 * print-rtl.h Add prototypes for new functions in print-rtl.c.
1481 * auto-inc-dec.c: Include print-rtl.h
1482 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
1483 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
1485 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
1488 2015-10-21 Richard Biener <rguenther@suse.de>
1489 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1491 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
1493 Move (a * (1 << b)) is (a << b) to match.pd.
1494 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
1495 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
1496 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
1498 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
1500 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
1501 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
1502 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
1504 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
1506 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
1508 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
1509 Szabolcs Nagy <szabolcs.nagy@arm.com>
1510 Alan Modra <amodra@gmail.com>
1512 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
1513 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
1514 (LINK_SPEC): Add %(link_secure_plt).
1515 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
1516 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
1518 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
1519 Szabolcs Nagy <szabolcs.nagy@arm.com>
1521 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
1522 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
1524 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1526 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
1528 (fusion_load_store): Use it.
1529 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
1530 ldp and stp in VD modes.
1531 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
1532 (store_pair<mode>, VD): Likewise.
1534 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
1536 PR rtl-optimization/67609
1537 * lra-splill.c (lra_final_code_change): Don't remove all
1540 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1542 * simplify-rtx.c (simplify_binary_operation): If either operand was
1543 a constant pool reference use them if all other simplifications failed.
1545 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1547 * config/aarch64/aarch64.md
1548 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
1549 * config/aarch64/aarch64-simd.md
1550 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
1551 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
1552 (aarch64_fpconst_pow_of_2): New function.
1553 (aarch64_vec_fpconst_pow_of_2): Likewise.
1554 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
1556 (aarch64_vec_fpconst_pow_of_2): Likewise.
1557 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
1558 (aarch64_fp_vec_pow2): Likewise.
1560 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
1562 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
1563 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
1564 * config/alpha/alpha.c (alpha_function_arg_advance): Update
1565 ALPHA_ARG_SIZE usage.
1566 (alpha_arg_partial_bytes): Ditto.
1568 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
1571 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
1572 error_mark_node decls.
1574 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
1578 * common/config/i386/i386-common.c (ix86_handle_option): Remove
1579 OPT_miamcu handling.
1580 * config/i386/i386.c (PTA_NO_80387): New macro.
1581 (processor_alias_table): Add PTA_NO_80387 to lakemont.
1582 (ix86_option_override_internal): Update MASK_80387 from
1583 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
1584 SSE math only if 80387 is supported. Don't change
1586 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
1588 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
1589 if TARGET_80387 is true and TARGET_IAMCU is false.
1590 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
1591 is true and TARGET_IAMCU_P is false.
1593 2015-10-20 Richard Biener <rguenther@suse.de>
1595 PR tree-optimization/68017
1596 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
1598 2015-10-20 Martin Liska <mliska@suse.cz>
1600 * cgraphclones.c (cgraph_node::create_virtual_clone):
1601 Verify cgraph_node.local.versionable instead of calling
1602 tree_versionable_function_p.
1603 * ipa-cp.c (determine_versionability): Save the information
1604 to ipa_node_params summary.
1605 (ipcp_versionable_function_p): Use it.
1606 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
1607 (ipcp_generate_summary): Do not compute cgraph_node
1609 * ipa-inline-analysis.c (inline_generate_summary): Compute
1610 versionability for all cgraph nodes.
1611 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
1612 ipa_node_params::versionability.
1613 * ipa-prop.h (struct ipa_node_params): Declare it.
1615 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1618 * varasm.c (assemble_variable): Move special vtv handling to..
1619 (handle_vtv_comdat_sections): .. here. New function.
1620 (output_object_block): Handle vtv sections.
1622 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
1625 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
1627 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
1629 * doc/extend.texi: Update documentation WRT inline functions.
1631 2015-10-20 Alan Modra <amodra@gmail.com>
1634 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
1635 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
1636 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
1638 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
1640 PR rtl-optimization/66790
1641 * df.h (DF_MIR): New macro.
1642 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
1643 (DF_MIR_INFO_BB): New macro.
1644 (DF_MIR_IN, DF_MIR_OUT): New macros.
1645 (struct df_mir_bb_info): New.
1646 (df_mir): New macro.
1647 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
1649 (df_mir_get_bb_info): New.
1650 * df-problems.c (struct df_mir_problem_data): New.
1651 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
1652 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
1653 df_mir_confluence_0, df_mir_confluence_n,
1654 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
1655 df_mir_bottom_dump, df_mir_verify_solution_start,
1656 df_mir_verify_solution_end): New.
1658 (df_mir_add_problem, df_mir_simulate_one_insn): New.
1659 * timevar.def (TV_DF_MIR): New.
1660 * ree.c: Include bitmap.h
1661 (add_removable_extension): Add an INIT_REGS parameter. Use it
1662 to skip zero-extensions that may get an uninitialized register.
1663 (find_removable_extensions): Compute must-initialized registers
1664 using the MIR dataflow problem. Update the call to
1665 add_removable_extension.
1666 (find_and_remove_re): Call df_mir_add_problem.
1668 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
1670 * common/config/mn10300/mn10300-common.c
1671 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
1672 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
1674 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
1676 * doc/extend.texi (Explicit Register Variables): Simplify and
1677 avoid unnecessary and confusion abbreviations. Update cross
1679 doc/implement-c.tex: Update cross reference.
1681 2015-10-19 Jeff Law <law@redhat.com>
1683 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
1684 that create irreducible loops unless the path elimiantes a multiway
1687 2015-10-19 Richard Biener <rguenther@suse.de>
1689 PR tree-optimization/67975
1690 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
1691 * tree-cfg.c (extract_true_false_controlled_edges): Split out
1692 core worker from ...
1693 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
1694 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
1695 instead of block number for PHIs with two or one args.
1696 (vn_phi_eq): Compare edge predicates of PHIs that are in different
1699 2015-10-19 Richard Biener <rguenther@suse.de>
1701 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
1702 (gimple_stmt_nonnegative_warnv_p): Use it.
1703 * match.pd (CPROJ): New operator list.
1704 (cproj (complex ...)): Move simplifications from ...
1705 * builtins.c (fold_builtin_cproj): ... here.
1707 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
1709 * config/i386/i386.c (ix86_expand_vector_move): Use
1710 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
1713 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
1715 * doc/invoke.texi: Replace @optindex with @opindex.
1717 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
1720 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
1721 arch= is set, clear all bits in x_ix86_isa_flags, except for
1722 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
1724 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
1727 * common.opt (fkeep-static-functions): New option.
1728 * doc/invoke.texi: Document it.
1729 * cgraphunit.c (cgraph_node::finalize_function): Use it.
1731 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1733 * sched-int.h (struct autopref_multipass_data_): Remove offset
1734 field. Add min_offset, max_offset, multi_mem_insn_p fields.
1735 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
1736 (autopref_multipass_init): Use it. Handle PARALLEL sets.
1737 (autopref_rank_data): New function.
1738 (autopref_rank_for_schedule): Use it.
1739 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
1741 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
1744 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
1746 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1748 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
1749 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
1750 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
1751 (STANDARD_STARTFILE_PREFIX_1): New.
1752 (STANDARD_STARTFILE_PREFIX_2): New.
1754 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1756 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
1757 (darwin_driver_init): Note a version-min when provided on the c/l.
1758 * config/darwin.h (%darwin_minversion): Remove.
1759 * config/i386/darwin.h: Likewise.
1760 * config/rs6000/darwin.h: Likewise.
1761 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
1762 rather than an arbitrary constant.
1764 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1766 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
1767 PPC, detect conflicts between -arch and multilib settings. Detect
1768 and warn about conflicts between multiple -arch definitions.
1770 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1772 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
1774 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1776 * lra-constraints.c (add_next_usage_insn): Change argument type
1777 from rtx to rtx_insn *.
1779 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
1781 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
1784 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
1786 * config/tilepro/gen-mul-tables.cc: Adjust include files.
1787 * config/tilegx/mul-tables.c: Regenerate.
1788 * config/tilepro/mul-tables.c: Regenerate.
1790 * config/tilegx/tilegx-c.c: Adjust include files.
1791 * config/tilegx/tilegx.c: Likewise.
1792 * config/tilepro/tilepro-c.c: Likewise.
1793 * config/tilepro/tilepro.c: Likewise.
1794 * config/aarch64/aarch64-builtins.c: Likewise.
1795 * config/aarch64/aarch64.c: Likewise.
1796 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1797 * config/alpha/alpha.c: Likewise.
1798 * config/arc/arc.c: Likewise.
1799 * config/arm/aarch-common.c: Likewise.
1800 * config/arm/arm-builtins.c: Likewise.
1801 * config/arm/arm-c.c: Likewise.
1802 * config/arm/arm.c: Likewise.
1803 * config/avr/avr-c.c: Likewise.
1804 * config/avr/avr-devices.c: Likewise.
1805 * config/avr/avr-log.c: Likewise.
1806 * config/avr/avr.c: Likewise.
1807 * config/bfin/bfin.c: Likewise.
1808 * config/c6x/c6x.c: Likewise.
1809 * config/cr16/cr16.c: Likewise.
1810 * config/cris/cris.c: Likewise.
1811 * config/darwin-c.c: Likewise.
1812 * config/darwin-driver.c: Likewise.
1813 * config/darwin.c: Likewise.
1814 * config/default-c.c: Likewise.
1815 * config/epiphany/epiphany.c: Likewise.
1816 * config/epiphany/mode-switch-use.c: Likewise.
1817 * config/epiphany/resolve-sw-modes.c: Likewise.
1818 * config/fr30/fr30.c: Likewise.
1819 * config/frv/frv.c: Likewise.
1820 * config/ft32/ft32.c: Likewise.
1821 * config/glibc-c.c: Likewise.
1822 * config/h8300/h8300.c: Likewise.
1823 * config/i386/host-cygwin.c: Likewise.
1824 * config/i386/host-mingw32.c: Likewise.
1825 * config/i386/i386-c.c: Likewise.
1826 * config/i386/i386.c: Likewise.
1827 * config/i386/msformat-c.c: Likewise.
1828 * config/i386/winnt-cxx.c: Likewise.
1829 * config/i386/winnt-stubs.c: Likewise.
1830 * config/i386/winnt.c: Likewise.
1831 * config/ia64/ia64-c.c: Likewise.
1832 * config/ia64/ia64.c: Likewise.
1833 * config/iq2000/iq2000.c: Likewise.
1834 * config/lm32/lm32.c: Likewise.
1835 * config/m32c/m32c-pragma.c: Likewise.
1836 * config/m32c/m32c.c: Likewise.
1837 * config/m32r/m32r.c: Likewise.
1838 * config/mcore/mcore.c: Likewise.
1839 * config/mep/mep-pragma.c: Likewise.
1840 * config/mep/mep.c: Likewise.
1841 * config/microblaze/microblaze-c.c: Likewise.
1842 * config/microblaze/microblaze.c: Likewise.
1843 * config/mips/mips-tables.opt
1844 * config/mips/mips.c: Likewise.
1845 * config/mmix/mmix.c: Likewise.
1846 * config/mn10300/mn10300.c: Likewise.
1847 * config/moxie/moxie.c: Likewise.
1848 * config/msp430/msp430-c.c: Likewise.
1849 * config/msp430/msp430.c: Likewise.
1850 * config/nds32/nds32-cost.c: Likewise.
1851 * config/nds32/nds32-fp-as-gp.c: Likewise.
1852 * config/nds32/nds32-intrinsic.c: Likewise.
1853 * config/nds32/nds32-isr.c: Likewise.
1854 * config/nds32/nds32-md-auxiliary.c: Likewise.
1855 * config/nds32/nds32-memory-manipulation.c: Likewise.
1856 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1857 * config/nds32/nds32-predicates.c: Likewise.
1858 * config/nds32/nds32.c: Likewise.
1859 * config/nios2/nios2.c: Likewise.
1860 * config/nvptx/mkoffload.c: Likewise.
1861 * config/nvptx/nvptx.c: Likewise.
1862 * config/pa/pa.c: Likewise.
1863 * config/pdp11/pdp11.c: Likewise.
1864 * config/rl78/rl78-c.c: Likewise.
1865 * config/rl78/rl78.c: Likewise.
1866 * config/rs6000/host-darwin.c: Likewise.
1867 * config/rs6000/rs6000-c.c: Likewise.
1868 * config/rs6000/rs6000-linux.c: Likewise.
1869 * config/rs6000/rs6000.c: Likewise.
1870 * config/rx/rx.c: Likewise.
1871 * config/s390/s390-c.c: Likewise.
1872 * config/s390/s390.c: Likewise.
1873 * config/sh/sh-c.c: Likewise.
1874 * config/sh/sh-mem.cc: Likewise.
1875 * config/sh/sh.c: Likewise.
1876 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
1877 * config/sh/sh_treg_combine.cc: Likewise.
1878 * config/sol2-c.c: Likewise.
1879 * config/sol2-cxx.c: Likewise.
1880 * config/sol2-stubs.c: Likewise.
1881 * config/sol2.c: Likewise.
1882 * config/sparc/sparc-c.c: Likewise.
1883 * config/sparc/sparc.c: Likewise.
1884 * config/spu/spu-c.c: Likewise.
1885 * config/spu/spu.c: Likewise.
1886 * config/stormy16/stormy16.c: Likewise.
1887 * config/v850/v850-c.c: Likewise.
1888 * config/v850/v850.c: Likewise.
1889 * config/vax/vax.c: Likewise.
1890 * config/visium/visium.c: Likewise.
1891 * config/vms/vms-c.c: Likewise.
1892 * config/vms/vms.c: Likewise.
1893 * config/vxworks.c: Likewise.
1894 * config/winnt-c.c: Likewise.
1895 * config/xtensa/xtensa.c: Likewise.
1897 2015-10-16 Christian Bruel <christian.bruel@st.com>
1900 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
1901 (FUNCTION_BOUNDARY_P): New macro:
1902 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
1904 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
1905 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
1906 * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
1907 * gcc/function.c (allocate_struct_function): Call
1908 relayout_function hook.
1909 * gcc/passes.c (rest_of_decl_compilation): Likewise.
1911 2015-10-16 Christian Bruel <christian.bruel@st.com>
1914 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
1915 * config/arm/arm.c (arm_option_override_internal): Call
1916 arm_override_options_after_change_1.
1917 (arm_override_options_after_change): New function.
1918 (arm_override_options_after_change_1): Likewise.
1919 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
1921 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1924 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
1927 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
1929 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
1930 argument is an ADDR_EXPR.
1932 2015-10-16 Richard Biener <rguenther@suse.de>
1934 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
1935 and get rid of force_gimple_operand_gsi.
1936 (gimple_fold_builtin_memory_chk): Likewise.
1937 (gimple_fold_builtin_stxcpy_chk): Likewise.
1938 (rewrite_to_defined_overflow): Likewise.
1939 (gimple_convert_to_ptrofftype): New function.
1940 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
1942 2015-10-16 Richard Biener <rguenther@suse.de>
1944 * tree-nested.h (build_addr): Adjust prototype.
1945 * tree-nested.c (build_addr): Remove context argument and use
1947 (get_static_chain): Adjust calls to build_addr.
1948 (convert_nl_goto_reference): Likewise.
1949 (convert_tramp_reference_op): Likewise.
1950 (finalize_nesting_tree_1): Likewise.
1951 * value-prof.c (gimple_ic): Likewise.
1952 * gimple-low.c (lower_builtin_setjmp): Likewise.
1953 * tree-parloops.c (take_address_of): Likewise.
1954 (create_call_for_reduction_1): Likewise.
1955 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
1956 (gimple_gen_ic_func_profiler): Likewise.
1958 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1960 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
1963 2015-10-16 Michael Collison <michael.collison@linaro.org>
1964 Andrew Pinski <andrew.pinski@caviumnetworks.com>
1966 * match.pd ((x < y) && (x < z) -> x < min (y,z),
1967 (x > y) and (x > z) -> x > max (y,z))
1969 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
1970 Szabolcs Nagy <szabolcs.nagy@arm.com>
1972 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
1973 (DYNAMIC_LINKER): Renamed to ...
1974 (GLIBC_DYNAMIC_LINKER): This.
1975 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
1977 2015-10-15 Marek Polacek <polacek@redhat.com>
1979 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
1980 gimple_call_builtin instead of is_gimple_call.
1982 2015-10-15 Richard Biener <rguenther@suse.de>
1984 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
1986 2015-10-15 Richard Biener <rguenther@suse.de>
1988 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
1989 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
1990 * tree-vect-loop.c (get_initial_def_for_induction): Drop
1991 use of force_gimple_operand in favor of gimple_build.
1992 Use vect_get_new_ssa_name.
1993 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
1994 (vectorizable_mask_load_store): Likewise.
1995 (vectorizable_call): Likewise.
1996 (vectorizable_store): Likewise.
1997 (vectorizable_load): Likewise.
1998 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
2000 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
2002 PR tree-optimization/67945
2003 * tree-pass.h (PROP_gimple_opt_math): New property flag.
2004 * generic-match-head.c (canonicalize_math_p): New function.
2005 * gimple-match-head.c: Include tree-pass.h.
2006 (canonicalize_math_p): New function.
2007 * match.pd: Group math built-in rules into simplifications
2008 and canonicalizations. Guard the latter with canonicalize_math_p.
2009 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
2010 PROP_gimple_opt_math property.
2012 2015-10-15 Marek Polacek <polacek@redhat.com>
2014 PR tree-optimization/67953
2015 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
2017 2015-10-15 Jiong Wang <jiong.wang@arm.com>
2019 * config.gcc: Recognize "." in architecture base name for AArch64.
2021 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
2023 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
2025 * config/mips/mips.c (mips_setup_incoming_varargs): Use
2026 ROUND_DOWN to calculate off.
2027 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
2028 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
2031 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
2033 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
2035 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
2036 Torvald Riegel <triegel@redhat.com>
2039 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
2040 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
2041 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
2042 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
2043 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
2044 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
2045 trechkpt, treclaim, tsr, ttest): New define_expands.
2046 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2047 __TM_FENCE__ for htm.
2048 * doc/extend.texi: Update documentation for htm builtins.
2050 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
2053 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
2054 REG_CFA_EXPRESSION to aligned SSE stores.
2056 2015-10-14 Jeff Law <law@redhat.com>
2058 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
2059 num_threaded_edges for successful FSM threads too.
2061 2015-10-14 Richard Biener <rguenther@suse.de>
2063 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
2064 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
2065 (vect_get_vec_def_for_operand): Remove unused parameter.
2066 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
2067 (vect_create_epilog_for_reduction): Likewise.
2068 (vectorizable_reduction): Likewise.
2069 (vectorizable_live_operation): Likewise.
2070 * tree-vect-patterns.c (type_conversion_p): Likewise.
2071 (vect_recog_vector_vector_shift_pattern): Likewise.
2072 (check_bool_pattern): Likewise.
2073 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
2074 (vect_analyze_slp_cost_1): Likewise.
2075 * tree-vect-stmts.c (process_use): Likewise.
2076 (vect_get_vec_def_for_operand): Do not handle reductions.
2077 (vect_get_vec_defs): Adjust.
2078 (vectorizable_mask_load_store): Likewise.
2079 (vectorizable_call): Likewise.
2080 (vectorizable_simd_clone_call): Likewise.
2081 (vect_get_loop_based_defs): Likewise.
2082 (vectorizable_conversion): Likewise.
2083 (vectorizable_assignment): Likewise.
2084 (vectorizable_shift): Likewise.
2085 (vectorizable_operation): Likewise.
2086 (vectorizable_store): Likewise.
2087 (vectorizable_load): Likewise.
2088 (vect_is_simple_cond): Likewise.
2089 (vectorizable_condition): Likewise.
2090 (vect_is_simple_use): Remove unused parameters.
2091 (vect_is_simple_use_1): Adjust and rename.
2093 2015-10-14 Richard Biener <rguenther@suse.de>
2095 PR tree-optimization/67915
2096 * match.pd: Handle comparisons of addresses of STRING_CSTs.
2097 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
2098 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
2099 stmt folding in favor of GIMPLE one.
2101 2015-10-14 Marek Polacek <polacek@redhat.com>
2103 PR tree-optimization/67815
2104 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
2105 (reassociate_bb): Call it.
2107 2015-10-14 Richard Biener <rguenther@suse.de>
2109 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2110 Reset info at start.
2111 (vect_analyze_group_access_1): Add debug print.
2112 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
2113 (vect_compute_single_scalar_iteration_cost): ... to this.
2114 (vect_analyze_loop_2): Adjust.
2115 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
2116 * tree-vectorizer.h: ... here.
2117 (add_stmt_info_to_vec): Remove.
2118 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
2120 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
2122 * targhooks.c (default_target_option_pragma_parse): Do not warn if
2123 called on behalf of "#pragma GCC pop_options".
2125 2015-10-14 Tom de Vries <tom@codesourcery.com>
2127 * cfganal.c (verify_no_unreachable_blocks): New function.
2128 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
2129 verify_no_unreachable_blocks.
2130 cfganal.h (verify_no_unreachable_blocks): Declare.
2132 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
2134 * common.opt: Add flag_checking.
2135 * system.h (CHECKING_P): Define.
2137 2015-10-13 Jakub Jelinek <jakub@redhat.com>
2138 Aldy Hernandez <aldyh@redhat.com>
2139 Ilya Verbin <ilya.verbin@intel.com>
2141 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
2142 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
2143 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
2144 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
2145 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
2146 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
2147 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
2148 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
2149 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
2150 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
2151 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
2152 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
2153 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
2154 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
2155 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
2156 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
2157 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
2158 (struct cgraph_simd_clone_arg): Adjust comment.
2159 * coretypes.h (struct gomp_ordered): New forward decl.
2160 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
2161 set critical clauses to it.
2162 (gimple_build_omp_ordered): Return gomp_ordered * instead of
2163 gimple *. Add CLAUSES argument, set ordered clauses to it.
2164 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
2166 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
2167 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
2168 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
2169 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
2170 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
2171 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
2172 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
2173 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
2175 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
2176 (gomp_critical): Add clauses field.
2177 (gomp_ordered): New struct.
2178 (is_a_helper <gomp_ordered *>::test): New inline.
2179 (gimple_build_omp_critical): Add CLAUSES argument.
2180 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
2181 instead of gimple *.
2182 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
2183 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
2184 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
2185 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
2187 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
2188 (dump_gimple_omp_target): Handle enter data and exit data.
2189 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
2190 (dump_gimple_omp_critical): Print clauses.
2191 (dump_gimple_omp_ordered): New function.
2192 (dump_gimple_omp_task): Handle taskloop.
2193 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
2195 * gimple-walk.c (walk_gimple_op): Walk clauses on
2196 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
2197 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
2198 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
2199 (struct gimplify_omp_ctx): Add loop_iter_var,
2200 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
2201 and target_firstprivatize_array_bases fields.
2202 (delete_omp_context): Release loop_iter_var.
2203 (gimplify_bind_expr): Handle ORT_NONE.
2204 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
2205 ORT_COMBINED_TARGET.
2206 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
2207 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
2208 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
2209 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
2210 ctx->target_map_scalars_firstprivate.
2211 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
2212 data sharing clauses. For data sharing clause with VLA decl
2213 on omp target/target data don't add firstprivate for the pointer.
2214 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
2215 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
2216 the addition of ORT_COMBINED_TARGET.
2217 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
2218 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
2219 pointers as zero length array sections and
2220 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
2222 (omp_check_private): Handle omp_member_access_dummy_var vars.
2223 (find_decl_expr): New function.
2224 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
2225 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
2226 Handle OMP_CLAUSE_GANG separately. Handle
2227 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
2228 clauses. Diagnose linear clause on combined
2229 distribute {, parallel for} simd construct, unless it is the loop
2230 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
2231 Handle map clauses with COMPONENT_REF. Initialize
2232 ctx->target_map_scalars_firstprivate,
2233 ctx->target_firstprivatize_array_bases and
2234 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
2235 linear clause even to target region if combined. Remove
2236 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
2237 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
2238 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
2239 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
2240 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
2241 For linear clause on worksharing loop combined with parallel add
2242 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
2243 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
2244 omp_member_access_dummy_var vars. Add lastprivate clause to outer
2246 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
2247 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
2248 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
2250 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
2251 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
2252 in target body. Handle removal of struct mapping if struct is not
2253 seen in target body. Remove GOMP_MAP_STRUCT map clause on
2254 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
2255 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
2256 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
2257 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
2258 clause appear together. Handle
2259 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
2260 clause if it has map-type-modifier always. Handle
2261 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
2263 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
2264 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
2266 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
2267 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
2268 iterators in doacross loops.
2269 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
2270 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
2271 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
2272 for the addition of ORT_COMBINED_TARGET.
2273 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
2274 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
2275 and OMP_TARGET_EXIT_DATA.
2276 (gimplify_omp_ordered): New function.
2277 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
2278 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
2279 Gimplify clauses on OMP_CRITICAL.
2280 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
2281 expand_GOMP_SIMD_ORDERED_END): New functions.
2282 * internal-fn.def (GOMP_SIMD_ORDERED_START,
2283 GOMP_SIMD_ORDERED_END): New internal functions.
2284 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
2285 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
2286 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
2287 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
2288 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
2289 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
2290 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
2291 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
2292 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
2293 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
2294 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
2295 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
2296 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
2297 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
2299 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
2300 GOMP_target_data_41, adjust type.
2301 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
2302 GOMP_target_update_41, adjust type.
2303 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
2305 (struct omp_for_data): Add ordered and simd_schedule fields.
2306 (omp_member_access_dummy_var, unshare_and_remap_1,
2307 unshare_and_remap, is_taskloop_ctx): New functions.
2308 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
2309 (extract_omp_for_data): Handle taskloops and doacross loops
2310 and simd schedule modifier.
2311 (omp_adjust_chunk_size): New function.
2312 (get_ws_args_for): Use it.
2313 (lookup_sfield): Change first argument to splay_tree_key,
2314 add overload with first argument tree.
2315 (maybe_lookup_field): Likewise.
2316 (use_pointer_for_field): Handle omp_member_access_dummy_var.
2317 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
2318 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
2319 (build_outer_var_ref): Add LASTPRIVATE argument, handle
2320 taskloops and omp_member_access_dummy_var vars.
2321 (build_sender_ref): Change first argument to splay_tree_key,
2322 add overload with first argument tree.
2323 (install_var_field): For mask & 8 use &DECL_UID as key instead
2325 (fixup_child_record_type): Const qualify *.omp_data_i.
2326 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
2327 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
2328 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
2329 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
2330 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
2331 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
2332 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
2334 (add_taskreg_looptemp_clauses): New function.
2335 (scan_omp_parallel): Use it.
2336 (scan_omp_task): Likewise.
2337 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
2338 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
2339 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
2340 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
2341 sandwiched taskloop constructs. Type check
2342 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
2343 region. Diagnose depend(source) or depend(sink:...) on
2344 target constructs or task/taskloop.
2345 (handle_simd_reference): Use get_name.
2346 (lower_rec_input_clauses): Likewise. Ignore all
2347 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
2348 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
2349 before passing it to omp_clause_{default,copy}_ctor. Handle
2350 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
2351 lastprivate_firstprivate flag for linear that needs copyin and
2352 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
2353 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
2354 on taskloop lookup decl in outer context. Pass true to
2355 build_outer_var_ref lastprivate argument. Handle
2356 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
2357 outside of outer taskloop for.
2358 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
2360 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
2361 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
2362 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
2363 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
2364 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
2365 abstract origin. Handle omp_member_access_dummy_var vars.
2366 (expand_parallel_call): Use expand_omp_build_assign.
2367 (expand_task_call): Handle taskloop construct expansion. Add
2368 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
2369 integers. Add priority argument to GOMP_task* calls. Or in
2370 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
2372 (expand_omp_build_assign): Add prototype. Add AFTER
2373 argument, if true emit statements after *GSI_P and continue linking.
2374 (expand_omp_taskreg): Adjust expand_task_call caller.
2375 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
2376 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
2377 zero_iter2_bb and first_zero_iter2 arguments, handle computation
2378 of counts even for ordered loops.
2379 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
2380 (expand_omp_ordered_source, expand_omp_ordered_sink,
2381 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
2383 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
2384 clauses on worksharing loop. Handle DOACROSS loop expansion.
2385 (expand_omp_for_static_nochunk): Handle linear clauses on
2386 worksharing loop. Adjust expand_omp_for_init_counts
2388 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
2389 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
2390 expand_omp_for_init_counts callers.
2391 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
2393 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
2394 Handle doacross loops.
2395 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
2396 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
2397 GOMP_target_{41,update_41,enter_exit_data} libcalls.
2398 (expand_omp): Don't expand ordered depend constructs here, record
2399 ord_stmt instead for later expand_omp_for_generic.
2400 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
2401 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
2402 clause as stand-alone directive.
2403 (lower_omp_ordered_clauses): New function.
2404 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
2405 don't lower anything.
2406 (lower_omp_for_lastprivate): Use last _looptemp_ clause
2407 on taskloop for comparison.
2408 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
2409 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
2410 expansion for linear adjustments.
2411 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
2412 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
2413 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
2414 to tree * pointing to the stmt's clauses.
2415 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
2416 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
2417 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
2418 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
2419 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
2420 clauses. Always use short kind and 8-bit align shift.
2421 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
2422 (struct lower_omp_regimplify_operands_data): New type.
2423 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
2425 (lower_omp_1): Use lower_omp_regimplify_operands instead of
2426 gimple_regimplify_operands.
2427 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
2428 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
2429 clause as stand-alone directive.
2430 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
2431 (simd_clone_mangle): Mangle the various linear kinds
2433 (simd_clone_adjust_argument_types): Handle
2434 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
2435 (simd_clone_init_simd_arrays): Don't do anything for uval.
2436 (simd_clone_adjust): Handle
2437 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
2438 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
2439 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
2440 * omp-low.h (omp_member_access_dummy_var): New prototype.
2441 * passes.def (pass_simduid_cleanup): Schedule another copy of the
2442 pass after all optimizations.
2443 * tree.c (omp_clause_code_name): Add entries for
2444 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
2445 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
2446 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
2447 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
2448 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
2449 OMP_CLAUSE_REDUCTION 5 arguments. Handle
2450 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
2451 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
2453 * tree-core.h (enum omp_clause_linear_kind): New.
2454 (struct tree_omp_clause): Change type of map_kind
2455 from unsigned char to unsigned int. Add subcode.if_modifier
2456 and subcode.linear_kind fields.
2457 (enum omp_clause_code): Add
2458 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
2459 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
2460 (OMP_CLAUSE_REDUCTION): Document
2461 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
2462 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
2463 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
2464 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
2466 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
2468 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
2470 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
2471 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
2473 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
2474 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
2475 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
2476 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
2477 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
2478 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
2479 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
2480 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
2481 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
2482 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
2483 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
2484 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
2485 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
2486 * tree-inline.c (remap_gimple_stmt): Handle clauses on
2487 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
2488 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
2489 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
2490 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
2491 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
2492 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
2493 (convert_local_omp_clauses): Likewise.
2494 * tree-pretty-print.c (dump_omp_clause): Handle
2495 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
2496 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
2497 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
2498 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
2499 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
2500 GOMP_MAP_FORCE_DEALLOC. Handle
2501 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
2502 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
2503 and clauses on OMP_ORDERED and OMP_CRITICAL.
2504 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
2505 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
2506 (vectorize_loops): Adjust comments.
2507 (pass_simduid_cleanup::execute): Likewise.
2508 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
2509 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
2510 * wide-int.h (wi::gcd): New.
2512 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
2514 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
2515 (ix86_function_arg_advance): Ditto.
2516 (ix86_function_arg): Ditto.
2517 (ix86_gimplify_va_arg): Ditto.
2518 (ix86_class_max_nregs): Ditto.
2519 (inline_memory_move_cost): Ditto.
2520 (ix86_set_reg_reg_cost): Ditto.
2521 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
2523 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
2526 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
2528 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
2530 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
2531 ROUND_UP macro and UNITS_PER_WORD * 2.
2532 * config/sparc/sparc.c (sparc_compute_frame_size):
2533 Use ROUND_UP and ROUND_DOWN macros where applicable.
2534 (function_arg_record_value, function_arg_record_value_1)
2535 (function_arg_record_value_1): Ditto.
2536 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
2537 alignment to double-word.
2538 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
2539 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
2542 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
2544 * gcc/rtl.h (print_insn): Fix prototype.
2546 2015-10-13 Tom de Vries <tom@codesourcery.com>
2548 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
2549 -1. Add assert that returned entry matches phi argument.
2550 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
2551 free_stmt_vec_info_vec ...
2552 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
2555 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
2557 PR tree-optimization/67909, 67947
2558 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
2559 really skip the inner loop.
2561 2015-10-13 Jeff Law <law@redhat.com>
2563 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2564 Allow single block jump threading paths.
2566 2015-10-13 Tom de Vries <tom@codesourcery.com>
2568 PR tree-optimization/67476
2569 * doc/invoke.texi (@item parloops-schedule): New item.
2570 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
2571 * tree-parloops.c: Include params-enum.h.
2572 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
2574 2015-10-13 Tom de Vries <tom@codesourcery.com>
2576 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
2577 * params-enum.h: New file.
2578 * opts.c (handle_param): Handle case that param arg is a string.
2579 * params-list.h: Handle DEFPARAMENUM5 in params.def.
2580 * params.c (find_param): New function, factored out of ...
2581 (set_param_value): ... here.
2582 (param_string_value_p): New function.
2583 * params.h (struct param_info): Add value_names field.
2584 (find_param, param_string_value_p): Declare.
2586 2015-10-13 Tom de Vries <tom@codesourcery.com>
2588 PR tree-optimization/67476
2589 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
2591 2015-10-13 Richard Biener <rguenther@suse.de>
2593 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
2594 the data dependence vector.
2595 (vect_peeling_hash_insert): Get the peeling hash table as argument.
2596 (vect_peeling_hash_get_lowest_cost): Likewise.
2597 (vect_enhance_data_refs_alignment): Adjust.
2598 (struct _vect_peel_info, struct _vect_peel_extended_info,
2599 struct peel_info_hasher): Move from ...
2600 * tree-vectorizer.h: ... here.
2601 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
2602 (LOOP_VINFO_PEELING_HTAB): Likewise.
2603 (struct _loop_vec_info): Remove min_profitable_iters and
2604 peeling_htab members.
2605 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
2607 (destroy_loop_vec_info): Adjust.
2608 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
2609 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
2610 to estimate alias versioning cost.
2611 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
2613 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
2615 * real.h (real_isinteger): Declare.
2616 * real.c (real_isinteger): New function.
2617 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
2618 if y is an even integer.
2620 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2623 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2624 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
2625 counts when these are more informative.
2627 2015-10-12 Jeff Law <law@redhat.com>
2629 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
2630 (fsm_find_control_stmt_paths): Change name of first argument to
2631 more accurately relfect what it really is. Handle simplification
2632 of GIMPLE_COND after finding a thread path for NAME.
2633 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
2634 nontrivial conditions to be handled by FSM threader.
2635 (thread_through_normal_block): Extract the name to looup via
2636 FSM threader from COND_EXPR.
2638 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
2639 restriction that traced SSA_NAME is a user variable.
2641 2015-10-12 Tom de Vries <tom@codesourcery.com>
2643 PR tree-optimization/67476
2644 * omp-low.c (expand_omp_for_generic): Add missing phis.
2646 2015-10-12 Tom de Vries <tom@codesourcery.com>
2648 PR tree-optimization/67476
2649 * omp-low.c (expand_omp_for_generic): Handle simple latch.
2651 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
2653 * config/aarch64/aarch64-simd-builtins.def: Update builtins
2654 tables: add tbl3 and tbx4.
2655 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
2656 (aarch64_tbx4v8qi): New.
2657 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
2658 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
2659 Rewrite using builtin functions.
2660 * config/aarch64/iterators.md (UNSPEC_TBX): New.
2662 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
2664 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
2666 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
2667 Use ROUND_UP and ROUND_DOWN macros where applicable.
2668 (rs6000_darwin64_record_arg_flush): Ditto.
2669 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
2670 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
2673 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
2675 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
2676 (AARCH64_ROUND_DOWN): Ditto.
2677 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
2679 2015-10-12 Richard Biener <rguenther@suse.de>
2682 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
2683 code that analyzes IVs on each stmt but in a cheaper way avoiding
2686 2015-10-12 Nick Clifton <nickc@redhat.com>
2688 * config/msp430/msp430.c (msp430_mcu_names): Rename to
2689 msp430_mcu_data, add fields for ISA and hardware multiply
2690 support. Import latest data from the devices.csv file.
2691 (msp430_override_option): Use the data from the new array.
2692 (msp430_use_f5_series_hwmult): Likewise.
2693 (use_32bit_hwmult): Likewise.
2694 (msp430_no_hwmult): Likewise.
2695 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
2697 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
2698 not recognised then no hardware multiply support is assumed and
2699 that only the MSP430 ISA is allowed.
2701 2015-10-12 Richard Biener <rguenther@suse.de>
2703 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
2705 (vect_analyze_loop_2): ... here.
2707 2015-10-11 Jason Merrill <jason@redhat.com>
2710 * expr.c (store_field): Call store_constructor directly when
2711 storing a CONSTRUCTOR into a target smaller than its type.
2712 Guard against unsafe bitwise copy.
2714 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2716 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
2717 counts when these are more informative.
2719 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2721 * tree-profile.c (tree_profiling): Do not clear
2722 pure/const when not instrumenting.
2723 (pass tree_profile): Add dump of symtab.
2725 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2727 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
2729 (fold_addr_of_array_ref_difference): Likewise.
2731 2015-10-11 Jeff Law <law@redhat.com>
2733 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
2734 tree-ssa-threadbackward.c.
2735 (fsm_find_control_statement_thread_paths): Likewise.
2736 (thread_through_normal_block): Break out FSM bits and move them
2737 into a new function in tree-ssa-threadbackward.c. Call new function
2739 Minimize header file usage.
2740 * tree-ssa-threadbackward.h: New file.
2741 * tree-ssa-threadbackward.c: Likewise.
2742 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
2744 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
2746 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
2748 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
2750 PR rtl-optimization/67864
2751 * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
2752 fallthrough edges for conditional jumps. Don't sort candidate
2753 edges if not optimizing for speed.
2755 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2757 * defaults.h (REVERSE_CONDITION): New default definition.
2758 * jump.c (reversed_comparison_code_parts): Adjust.
2760 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2762 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
2763 check HARD_FRAME_POINTER_IS_ARG_POINTER.
2765 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2767 * defaults.h (FRAME_ADDR_RTX): New default definition.
2768 * builtins.c (expand_builtin_return_addr): Adjust.
2770 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2772 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
2773 * builtins.c (expand_builtin_return_addr): Adjust.
2775 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2777 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
2778 * builtins.c (expand_builtin_return_addr): Adjust.
2779 * doc/tm.texi: Likewise.
2780 * doc/tm.texi.in: Likewise.
2781 * except.c (expand_builtin_unwind_init): Likewise.
2783 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2785 * builtins.c (expand_builtin_return_addr): Adjust.
2786 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
2788 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
2790 * tree.c (type_with_interoperable_signedness): New.
2791 (gimple_canonical_types_compatible_p): Use it.
2792 * tree.h (type_with_interoperable_signedness): Declare
2794 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
2796 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
2797 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
2798 when OEP_ADDRESS_OF is se.
2800 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
2801 Sebastian Pop <s.pop@samsung.com>
2803 * graphite-dependences.c (scop_get_dependences): Add dump of the
2804 data dependence graph.
2805 * graphite-poly.c (print_isl_union_map): New.
2806 (debug_isl_union_map): New.
2807 * graphite-poly.h (print_isl_union_map): Declare.
2808 (debug_isl_union_map): Declare.
2810 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
2811 Sebastian Pop <s.pop@samsung.com>
2813 * graphite-poly.c (print_iteration_domain): Remove verbosity.
2814 Remove OpenScop formatting.
2815 (print_iteration_domains): Same.
2816 (debug_iteration_domain): Same.
2817 (debug_iteration_domains): Same.
2820 (dump_gbb_cases): Same.
2821 (dump_gbb_conditions): Same.
2824 (print_pbb_body): Same.
2826 (print_scop_params): Same.
2827 (print_scop_context): Same.
2829 (debug_pbb_domain): Same.
2831 (debug_scop_context): Same.
2833 (debug_scop_params): Same.
2834 * graphite-poly.h: Same.
2835 * graphite.c (graphite_transform_loops): Same.
2837 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2839 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
2840 call that isn't needed.
2842 2015-10-09 Jeff Law <law@redhat.com>
2844 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
2845 rather than moving each name to the freelist individually.
2847 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
2849 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
2850 * frame-header-opt.c: New file.
2851 * config/mips/mips-proto.h (mips_register_frame_header_opt):
2853 * config/mips/mips.c (mips_compute_frame_info): Check
2854 optimize_call_stack flag.
2855 (mips_option_override): Register new frame_header_opt pass.
2856 (mips_frame_info, mips_int_mask, mips_shadow_set,
2857 machine_function): Move these types to...
2858 * config/mips/mips.h: here.
2859 (machine_function): Add does_not_use_frame_header and
2860 optimize_call_stack fields.
2861 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
2862 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
2864 * config/mips/mips.opt (mframe-header-opt): Add new option.
2866 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
2868 * config/i386/i386.c
2869 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
2870 ROUND_DOWN where applicable.
2872 2015-10-09 Jeff Law <law@redhat.com>
2874 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
2877 2015-10-09 Renlin Li <renlin.li@arm.com>
2879 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
2880 operands[0] and operands[2].
2881 (neon_vtrn<mode>_insn): Likewise.
2882 (neon_vzip<mode>_insn): Likewise.
2884 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
2886 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
2887 ((X & C2) << C1): Expand to...
2888 (X {&,^,|} C2 << C1): ...This.
2889 ((X & C2) >> C1): Expand to...
2890 (X {&,^,|} C2 >> C1): ...This.
2892 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
2895 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
2896 Adjust embedded rounding/SAE specifier position.
2897 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
2898 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
2899 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
2900 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
2901 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
2903 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
2905 2015-10-09 Martin Jambor <mjambor@suse.cz>
2907 tree-optimization/67794
2908 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
2909 between types of state,ents but accept original definitions as a
2911 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
2912 iterate over definitions.
2914 2015-10-09 James Norris <jnorris@codesourcery.com>
2916 * config/rs6000/rs6000.c (rs6000_offload_options): New.
2917 (TARGET_OFFLOAD_OPTIONS): New.
2919 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
2922 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
2925 * function.c (expand_function_end): Move return value
2926 promotion past the handling of PARALLELs and CONCATs.
2928 PR rtl-optimization/67828
2929 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
2930 (tree_may_unswitch_on): Don't unswitch on expressions
2931 involving undefined values.
2933 2015-10-09 Richard Biener <rguenther@suse.de>
2935 * genmatch.c (print_operand): Fix formatting.
2936 (dt_node::append_simplify): Warn for multiple simplifiers
2937 that match the same pattern.
2938 * match.pd (log (exp @0)): Remove duplicates.
2940 2015-10-09 Richard Biener <rguenth@suse.de>
2943 * gimple-fold.c (optabs-query.h): Include
2944 (gimple_fold_builtin_memory_op): Allow unaligned stores
2945 when movmisalign_optabs are available.
2947 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2950 * config/arm/arm.md (movmisalign<mode>): New.
2951 * config/arm/iterators.md (HSI): New.
2953 2015-10-09 Richard Biener <rguenther@suse.de>
2955 PR tree-optimization/67891
2956 * gimple-match.h (gimple_simplified_result_is_gimple_val):
2958 (gimple_resimplify1): Declare.
2959 (gimple_resimplify2): Likewise.
2960 (gimple_resimplify3): Likewise.
2961 * gimple-match-head.c (gimple_resimplify1): Export.
2962 (gimple_resimplify2): Likewise.
2963 (gimple_resimplify3): Likewise.
2964 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
2965 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
2966 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
2967 to avoid creating stmts without VN info.
2969 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
2971 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
2974 2015-10-08 Jeff Law <law@redhat.com>
2976 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
2977 and release_ssa_name in two places.
2978 (gimple_stringop_fixed_value): Similarly.
2980 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
2983 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
2984 unlink_stmt_vdef and release_ssa_name_fn.
2986 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
2989 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
2991 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
2992 SSE register save area to 16 bytes only if the incoming stack
2993 boundary is no less than 16 bytes.
2995 2015-10-08 Jeff Law <law@redhat.com>
2997 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
2998 release_ssa_name. Fix typo in comment.
3000 2015-10-08 Nathan Sidwell <nathan@acm.org>
3002 * config/nvptx/nvptx.h (struct machine_function): Add comment.
3003 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
3004 may return pointer as well as in memory.
3005 (nvptx_output_return): Likewise.
3007 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
3009 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
3010 (fold_builtin_1): Update accordingly. Handle constant arguments here.
3011 * match.pd: Add rules previously handled by fold_builtin_sqrt
3012 and fold_builtin_cbrt.
3014 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
3016 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
3017 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
3018 * fold-const.h (tree_unary_nonnegative_warnv_p)
3019 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
3020 (tree_expr_nonnegative_warnv_p): Add depth parameters.
3021 * fold-const.c: Include gimple-fold.h and params.h.
3022 (tree_ssa_name_nonnegative_warnv_p): New function.
3023 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
3024 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
3025 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
3026 Add a depth parameter and increment it for recursive calls to
3027 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
3028 to handle SSA names.
3029 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
3030 (gimple_stmt_nonnegative_warnv_p): Declare.
3031 * tree-vrp.c (remove_range_assertions): Remove assert that condition
3032 cannot be proven false.
3033 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
3034 (gimple_stmt_nonnegative_warnv_p): Move to...
3035 * gimple-fold.c: ...here. Add depth parameters and pass them
3036 down to the tree routines. Accept statements that aren't
3037 assignments or calls but just return false for them.
3038 (gimple_val_nonnegative_real_p): Delete.
3039 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
3040 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
3041 Check HONOR_NANs first.
3043 2015-10-08 Martin Jambor <mjambor@suse.cz>
3045 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
3048 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
3050 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
3051 in the tail of outer-loop.
3053 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
3055 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
3058 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
3060 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
3061 "cfghooks.h", add prototypes for introduced new functions.
3062 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
3063 checks on ability of loop unswitching to tree_unswitch_single_loop;
3064 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
3065 on innermost loop check.
3066 (tree_unswitch_single_loop): Add all required checks on ability of
3067 loop unswitching under zero recursive level guard.
3068 (tree_unswitch_outer_loop): New function.
3069 (find_loop_guard): Likewise.
3070 (empty_bb_without_guard_p): Likewise.
3071 (used_outside_loop_p): Likewise.
3072 (get_vop_from_header): Likewise.
3073 (hoist_guard): Likewise.
3074 (check_exit_phi): Likewise.
3076 2015-10-08 Marek Polacek <polacek@redhat.com>
3078 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
3081 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3084 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
3085 create_tmp_var_raw instead of create_tmp_var.
3087 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
3089 * expr.c (store_expr_with_bounds): Handle aggregate moves from
3091 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
3092 to define gimple type system; compare aggregates only by size.
3094 2015-10-07 Jeff Law <law@redhat.com>
3096 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
3097 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
3098 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
3101 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
3102 Sebastian Pop <s.pop@samsung.com>
3104 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
3105 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
3106 (generate_isl_schedule): Same.
3107 * graphite-optimize-isl.c (scop_get_domains): Same.
3108 (apply_schedule_map_to_scop): Same.
3109 * graphite-poly.c (print_iteration_domains): Same.
3110 (remove_gbbs_in_scop): Same.
3114 * graphite-poly.h (struct scop): Rename bbs to pbbs.
3116 * graphite-scop-detection.c (compare_bb_depths): Remove.
3117 (graphite_sort_dominated_info): Remove.
3118 (try_generate_gimple_bb): Move out of scop_detection.
3119 (all_non_dominated_preds_marked_p): Remove.
3120 (build_scop_bbs_1): Remove.
3121 (build_scop_bbs): Remove.
3122 (nb_pbbs_in_loops): Do not use SCOP_BBS.
3123 (find_scop_parameters): Same.
3124 (sese_dom_walker): Rename gather_bbs.
3125 (before_dom_children): Call try_generate_gimple_bb and collect gbb
3127 (build_scops): Call gather_bbs.
3128 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
3129 (add_conditions_to_constraints): Same.
3130 (build_scop_iteration_domain): Same.
3131 (build_scop_drs): Same.
3132 (new_pbb_from_pbb): Same.
3133 * sese.c (new_sese_info): Create bbs.
3134 * sese.h (struct sese_info_t): Add bbs.
3136 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
3138 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
3139 encoding in 64-bit mode.
3141 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
3144 * config/i386/i386.c (ix86_option_override_internal): Always use
3145 8-byte minimum stack boundary in 64-bit mode.
3146 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
3147 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
3148 Add a REG_CFA_EXPRESSION note if needed.
3149 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
3150 (ix86_handle_force_align_arg_pointer_attribute): New.
3151 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
3152 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
3153 with ix86_handle_force_align_arg_pointer_attribute.
3154 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
3156 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
3157 Sebastian Pop <s.pop@samsung.com>
3159 * graphite-scop-detection.c (parameter_index_in_region): Remove
3160 use of SESE_ADD_PARAMS.
3161 (find_scop_parameters): Same.
3162 * sese.c (new_sese_info): Same.
3163 * sese.h (struct sese_info_t): Remove add_params.
3164 (SESE_ADD_PARAMS): Remove.
3166 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
3167 Sebastian Pop <s.pop@samsung.com>
3169 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
3172 (copy_internal_parameters): Same.
3173 (translate_isl_ast_to_gimple): Use an sese_l.
3174 (build_iv_mapping): Same.
3175 * graphite-poly.c (new_sese): Rename new_sese_info.
3176 (free_sese): Rename free_sese_info.
3177 * graphite-poly.h (struct scop): Use an sese_info_p.
3178 (scop_set_region): Same.
3179 * graphite-scop-detection.c (struct sese_l): Moved...
3180 (get_entry_bb): Moved...
3181 (get_exit_bb): Moved...
3182 (parameter_index_in_region_1): Use an sese_info_p.
3183 (parameter_index_in_region): Same.
3184 (scan_tree_for_params): Same.
3185 (find_params_in_bb): Same.
3186 (sese_dom_walker): Use an sese_l.
3187 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
3188 (reduction_phi_p): Same.
3189 (parameter_index_in_region_1): Use an sese_info_p.
3190 (propagate_expr_outside_region): Use an sese_l.
3191 * graphite.c: Replace uses of SCOP_REGION.
3192 * sese.c (sese_record_loop): Use an sese_info_p.
3193 (build_sese_loop_nests): Same.
3194 (sese_build_liveouts_use): Same.
3195 (sese_build_liveouts_bb): Same.
3196 (sese_build_liveouts_bb): Same.
3197 (sese_bad_liveouts_use): Same.
3198 (sese_reset_debug_liveouts_bb): Same.
3199 (sese_build_liveouts): Same.
3200 (new_sese): Renamed new_sese_info.
3201 (free_sese): Renamed free_sese_info.
3202 (set_rename): Use an sese_info_p.
3203 (graphite_copy_stmts_from_block): Same.
3204 (copy_bb_and_scalar_dependences): Same.
3205 (outermost_loop_in_sese_1): Use an sese_l.
3206 (outermost_loop_in_sese): Same.
3207 (if_region_set_false_region): Use an sese_info_p.
3208 (move_sese_in_condition): Same.
3209 (scalar_evolution_in_region): Use an sese_l.
3210 * sese.h (struct sese_l): ... here.
3211 (SESE_ENTRY): Remove.
3212 (SESE_ENTRY_BB): Remove.
3213 (SESE_EXIT): Remove.
3214 (SESE_EXIT_BB): Remove.
3215 (sese_contains_loop): Use an sese_info_p.
3216 (sese_nb_params): Same.
3217 (bb_in_sese_p): Use an sese_l.
3218 (stmt_in_sese_p): Same.
3219 (defined_in_sese_p): Same.
3220 (loop_in_sese_p): Same.
3221 (sese_loop_depth): Same.
3222 (struct ifsese_s): Use an sese_info_p.
3223 (gbb_loop_at_index): Use an sese_l.
3224 (nb_common_loops): Same.
3225 (scev_analyzable_p): Same.
3227 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
3229 * config/i386/i386.c (ix86_conditional_register_usage): Use
3230 CALL_USED_REGISTERS_MASK.
3231 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
3233 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
3236 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
3237 * configure: Regenerated.
3239 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
3242 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
3243 (ix86_set_current_function): This.
3244 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
3246 2015-10-07 Richard Biener <rguenther@suse.de>
3248 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
3249 (vinfo_for_stmt): Adjust.
3250 (set_vinfo_for_stmt): Likewise.
3251 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
3252 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
3253 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
3255 (vect_analyze_loop_1): Remove.
3256 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
3257 inner loop when vectorizing an outer loop by splitting out from ...
3258 (vect_analyze_loop_form): ... here.
3260 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3263 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
3264 Use create_tmp_var_raw instead of create_tmp_var.
3266 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
3268 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
3269 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
3270 * real.c (CACHED_FRACTION): New helper macro.
3271 (dconst_third_ptr): Use it.
3272 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
3273 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
3275 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
3277 2015-10-06 Jeff Law <law@redhat.com>
3279 PR tree-optimization/67816
3280 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
3281 from remove_jump_threads_starting_at. Accept an edge rather than
3283 * tree-ssa-threadupdate.c (removed_edges): New hash table.
3284 (remove_jump_threads_including): Note edges that get removed from
3285 the CFG for later pruning of jump threading paths including them.
3286 (thread_through_all_blocks): Remove paths which include edges that
3288 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
3289 on each outgoing edges when optimizing away a control statement.
3291 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3293 * reorg.c (emit_delay_sequence): Store list of delay slot insns
3294 in a vector instead of rtx_insn_list.
3295 (add_to_delay_list): Likewise.
3296 (delete_from_delay_slot): Likewise.
3297 (optimize_skip): Likewise.
3298 (redirect_with_delay_list_safe_p): Likewise.
3299 (check_annul_list_true_false): Likewise.
3300 (steal_delay_list_from_target): Likewise.
3301 (steal_delay_list_from_fallthrough): Likewise.
3302 (redundant_insn): Likewise.
3303 (fill_simple_delay_slots): Likewise.
3304 (fill_slots_from_thread): Likewise.
3305 (fill_eager_delay_slots): Likewise.
3306 (relax_delay_slots): Likewise.
3308 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
3310 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
3311 For -mgpopt=local, also exclude unintialized common symbols.
3312 * doc/invoke.texi (Nios II Options): Document the change.
3314 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
3316 * config/aarch64/iterators.md (vwcore): Add missing cases for
3319 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
3320 Sebastian Pop <s.pop@samsung.com>
3322 * graphite-poly.c (new_scop): Initialize drs.
3323 * graphite-poly.h (struct dr_info): New.
3324 (struct scop): Add drs.
3325 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
3326 (pdr_add_memory_accesses): Same.
3327 (build_poly_dr): Same.
3328 (build_alias_set): Same.
3329 (build_scop_drs): Same.
3330 (build_pbb_drs): Remove.
3331 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
3332 * tree-data-ref.h (data_reference): Remove alias_set.
3334 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
3335 Sebastian Pop <s.pop@samsung.com>
3337 * graphite-poly.c (free_data_refs_aux): Remove.
3338 (free_gimple_poly_bb): Do not call free_data_refs_aux.
3339 * graphite-poly.h (struct base_alias_pair): Remove.
3340 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
3341 base_alias_pair and dr->aux.
3342 (build_alias_set): Same.
3343 * tree-data-ref.c (create_data_ref): Initialize alias_set.
3344 * tree-data-ref.h (data_reference): Add alias_set.
3346 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
3347 Sebastian Pop <s.pop@samsung.com>
3349 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
3350 Do not set PDR_BASE_OBJECT_SET.
3351 * graphite-poly.h (poly_dr): Same.
3352 (PDR_BASE_OBJECT_SET): Remove.
3353 (new_poly_dr): Update decl.
3354 * graphite-sese-to-poly.c (build_poly_dr): Update call to
3356 (write_alias_graph_to_ascii_dimacs): Remove.
3357 (write_alias_graph_to_ascii_dot): Remove.
3358 (write_alias_graph_to_ascii_ecc): Remove.
3359 (dr_same_base_object_p): Remove.
3360 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
3362 (build_base_obj_set_for_drs): Remove.
3363 (dump_alias_graphs): Remove.
3364 (build_scop_drs): Remove dead code.
3366 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
3367 Peter Bergner <bergner@vnet.ibm.com>
3370 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
3371 allow registers, but provide insns for the combiner to create for
3372 loads from memory. Separate VSX code from non-VSX code. For
3373 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
3374 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
3375 so that registers come before memory operations. Drop support from
3376 converting DFmode to TFmode, if the DFmode value is in a GPR
3378 (extenddftf2_fprs): Likewise.
3379 (extenddftf2_internal): Likewise.
3380 (extenddftf2_vsx): Likewise.
3381 (extendsftf2): In the expander, only allow registers, but provide
3382 insns for the combiner to create for stores and loads.
3384 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3386 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
3387 from the decl parameter.
3389 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
3392 * gimple-fold.c (gimple_fold_builtin): Add break after
3393 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
3395 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
3397 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
3398 to scop->isl_context.
3400 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
3402 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
3403 (output_probe_stack_range): Rotate the loop and simplify.
3404 (thumb1_expand_prologue): Tweak sorry message.
3405 * config/arm/arm.md (probe_stack): Use bare string.
3407 2015-10-06 Nick Clifton <nickc@redhat.com>
3409 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
3411 2015-10-06 Nick Clifton <nickc@redhat.com>
3413 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
3414 (ATTR_PERSIST): New constant.
3415 (msp430_data_attr): New function - verifies an attribute that only
3416 applies to variables.
3417 (msp430_attributes): Add noinit and persistent attributes.
3418 (noinit_section): New variable.
3419 (presis_section): New variable.
3420 (TARGET_ASM_INIT_SECTIONS): Define.
3421 (msp430_init_sections): New function - initialises the noinit and
3422 persist section variables.
3423 (msp430_select_section): Add support for noinit and persist
3425 (msp430_section_type_flags): Likewise.
3426 * doc/extend.texi: Document the reent, critical, wakeup, noinit
3427 and persistent attributes.
3429 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3430 Sebastian Pop <s.pop@samsung.com>
3432 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
3433 (no_violations): Remove.
3434 (subtract_commutative_associative_deps): Remove.
3435 (compute_deps): Do not call subtract_commutative_associative_deps.
3436 (transform_is_safe): Remove.
3437 (graphite_legal_transform): Remove.
3438 * graphite-poly.h (graphite_legal_transform): Remove.
3440 2015-10-05 Aditya Kumar <hiraditya@msn.com>
3442 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
3443 which are in this region are passed so gcc_assert and remove redundant
3445 * sese.c (sese_build_liveouts): Pass only those bbs which are not
3447 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
3448 gcc_assert on that and remove unnecessary computation.
3449 (sese_build_liveouts_use): Same.
3451 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3453 * graphite-dependences.c (scop_get_reads): Renamed scop->context
3454 to scop->param_context.
3455 (scop_get_must_writes): Same.
3456 (scop_get_may_writes): Same.
3457 (scop_get_original_schedule): Same.
3458 (scop_get_transformed_schedule): Same.
3459 (subtract_commutative_associative_deps): Same.
3460 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
3461 (generate_isl_context): Same.
3462 (generate_isl_schedule): Same.
3463 (scop_to_isl_ast): Same.
3464 (graphite_regenerate_ast_isl): Same.
3465 * graphite-optimize-isl.c (scop_get_domains): Same.
3466 (optimize_isl): Renamed scop->context to scop->param_context.
3467 * graphite-poly.c (new_poly_bb): Change the type of argument to
3469 (new_scop): Renamed scop->context to scop->param_context.
3471 (print_scop_context): Same.
3472 * graphite-poly.h (new_poly_dr): Change the type of argument from
3473 void* to data_reference_p.
3474 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
3475 (new_poly_bb): Change the type of argument from void* to
3477 (pbb_set_black_box): Same.
3478 (struct scop): Rename context to param_context, ctx to isl_context.
3479 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
3480 Move declarations closer to assignment.
3481 (find_params_in_bb): Same.
3482 (find_scop_parameters): Same.
3483 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
3484 Global to be used for statement IDs.
3485 (isl_id_for_pbb): Use ssa_name_version_typesize.
3486 (simple_copy_phi_p): Move declarations closer to assignment.
3487 (build_pbb_scattering_polyhedrons): Same.
3488 (build_scop_scattering): Same.
3489 (isl_id_for_ssa_name): Same.
3490 (extract_affine_name): Same.
3491 (extract_affine_int): Same.
3492 (extract_affine): Same.
3493 (set_scop_parameter_dim): Use renamed member.
3494 (build_loop_iteration_domains): Same.
3495 (add_param_constraints): Same.
3496 (build_scop_iteration_domain): Same.
3497 (pdr_add_data_dimensions): Same.
3498 (build_poly_dr): Same.
3499 (build_scop_drs): Move declarations closer to assignment.
3500 (analyze_drs_in_stmts): Same.
3501 (insert_out_of_ssa_copy): Same.
3502 (insert_out_of_ssa_copy_on_edge): Same.
3503 (propagate_expr_outside_region): Same.
3504 (rewrite_phi_out_of_ssa): Same.
3505 (rewrite_degenerate_phi): Same.
3506 (rewrite_reductions_out_of_ssa): Same.
3507 (rewrite_cross_bb_scalar_dependence): Same.
3508 (handle_scalar_deps_crossing_scop_limits): Same.
3509 (rewrite_cross_bb_scalar_deps): Same.
3510 * graphite.c (graphite_transform_loops): Use renamed member.
3512 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
3515 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
3516 create_tmp_var_raw instead of create_tmp_var.
3518 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3521 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
3522 Use create_tmp_var_raw instead of create_tmp_var.
3524 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
3527 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
3528 split for upper-bank registers when target does not support
3530 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
3531 split when target does not support AVX512VL.
3533 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
3536 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
3537 Adjust to use create_tmp_var_raw instead of create_tmp_var.
3539 2015-10-06 Nick Clifton <nickc@redhat.com>
3541 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
3544 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3546 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
3547 (case ${target}): Add znver1.
3548 * config/i386/cpuid.h(bit_CLZERO): Define.
3549 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
3550 -march=native recognize znver1 processors.
3551 * config/i386/i386-c.c (ix86_target_macros_internal): Add
3552 znver1, clzero def_and_undef.
3553 * config/i386/i386.c (struct processor_costs znver1_cost): New.
3554 (m_znver1): New definition.
3555 (m_AMD_MULTIPLE): Includes m_znver1.
3556 (processor_target_table): Add znver1 entry.
3557 (ix86_target_string) : Add clzero entry.
3558 (static const char *const cpu_names): Add znver1 entry.
3559 (ix86_option_override_internal): Add znver1 instruction sets.
3560 (PTA_CLZERO) : New definition.
3561 (ix86_option_override_internal): Handle new clzerooption.
3562 (ix86_issue_rate): Add znver1.
3563 (ix86_adjust_cost): Add znver1.
3564 (ia32_multipass_dfa_lookahead): Add znver1.
3565 (has_dispatch): Add znver1.
3566 * config/i386/i386.h (TARGET_znver1): New definition.
3567 (TARGET_CLZERO): Define.
3568 (TARGET_CLZERO_P): Define.
3569 (struct ix86_size_cost): Add TARGET_ZNVER1.
3570 (enum processor_type): Add PROCESSOR_znver1.
3571 * config/i386/i386.md (define_attr "cpu"): Add znver1.
3572 (set_attr znver1_decode): New definitions for znver1.
3573 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
3575 * config/i386/mmx.md (set_attr znver1_decode): New definitions
3577 * config/i386/sse.md (set_attr znver1_decode): Likewise.
3578 * config/i386/x86-tune.def: Add znver1 tunings.
3579 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
3580 * gcc/doc/invoke.texi: Add details about znver1
3582 2015-10-06 Richard Biener <rguenther@suse.de>
3584 PR tree-optimization/67859
3585 * tree-ssa-pre.c (create_expression_by_pieces): Properly
3586 discard not inserted stmts.
3588 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
3590 * doc/extend.texi (Template Instantiation): Reorder options and
3591 de-emphasize -frepo.
3592 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
3593 example instead of -frepo.
3595 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
3598 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
3599 use create_tmp_var_raw rather than create_tmp_var.
3601 2015-10-06 Richard Biener <rguenther@suse.de>
3603 * tree-vectorizer.h (vec_info): New base class for...
3604 (_loop_vec_info): ... this and ...
3605 (_bb_vec_info): ... this.
3606 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
3607 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
3608 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
3609 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
3610 vect_destroy_datarefs): Adjust interface to take a vec_info *
3611 rather than both a loop_vec_info and a bb_vec_info argument.
3612 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
3613 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
3614 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
3615 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
3617 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
3618 (destroy_loop_vec_info, vect_analyze_loop_2,
3619 vect_is_simple_reduction_1, get_initial_def_for_induction,
3620 vect_create_epilog_for_reduction, vectorizable_reduction,
3621 vectorizable_live_operation, vect_transform_loop): Adjust.
3622 * tree-vect-patterns.c (type_conversion_p,
3623 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
3624 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
3625 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
3626 check_bool_pattern, vect_recog_bool_pattern,
3627 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
3628 * tree-vect-slp.c (vect_get_and_check_slp_defs,
3629 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
3630 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
3631 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
3632 (new_bb_vec_info): Initialize base classs.
3633 * tree-vect-stmts.c (record_stmt_cost, process_use,
3634 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
3635 vectorizable_mask_load_store, vectorizable_call,
3636 vectorizable_simd_clone_call, vectorizable_conversion,
3637 vectorizable_assignment, vectorizable_shift,
3638 vectorizable_operation, vectorizable_store,
3639 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
3640 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
3641 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
3643 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
3646 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
3647 create_tmp_var_raw rather than create_tmp_var.
3649 2015-10-05 Marek Polacek <polacek@redhat.com>
3651 * tree-ssa-loop-im.c
3652 (move_computations_dom_walker::before_dom_children): Don't set
3653 SSA_NAME_ANTI_RANGE_P.
3654 * tree-ssa-phiopt.c (value_replacement): Likewise.
3656 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3657 Sebastian Pop <s.pop@samsung.com>
3659 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
3661 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3662 Sebastian Pop <s.pop@samsung.com>
3664 * graphite-poly.c (new_gimple_poly_bb): ... here.
3665 (free_data_refs_aux): ... here.
3666 (free_gimple_poly_bb): ... here.
3667 (remove_gbbs_in_scop): ... here.
3668 (new_scop): Call new_sese.
3669 (free_scop): Call remove_gbbs_in_scop and free_sese.
3670 * graphite-poly.h (base_alias_pair): ... here.
3671 (new_gimple_poly_bb): Declare.
3672 (free_gimple_poly_bb): Declare.
3673 * graphite-scop-detection.c (parameter_index_in_region_1):
3674 (parameter_index_in_region): ... here.
3675 (scan_tree_for_params): ... here.
3676 (find_params_in_bb): ... here.
3677 (find_scop_parameters): ... here.
3678 (build_scops): Call find_scop_parameters.
3679 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
3680 (free_scops): Move...
3681 (single_pred_cond_non_loop_exit): Move...
3682 (sese_dom_walker::before_dom_children): Move...
3683 (sese_dom_walker::after_dom_children): Move...
3684 (build_poly_scop): Move...
3685 * graphite-sese-to-poly.h (base_alias_pair): Move...
3686 * graphite.c (free_scops): ... here.
3688 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3689 Sebastian Pop <s.pop@samsung.com>
3691 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
3692 (trivially_empty_bb_p): Move...
3693 (same_close_phi_node): Move...
3694 (new_gimple_poly_bb): Move...
3695 (compare_bb_depths): Move...
3696 (graphite_sort_dominated_info): Move...
3697 (remove_duplicate_close_phi): Move...
3698 (make_close_phi_nodes_unique): Move...
3699 (canonicalize_loop_closed_ssa): Move...
3700 (canonicalize_loop_closed_ssa_form): Move...
3701 (loop_ivs_can_be_represented): Move...
3702 (single_pred_cond_non_loop_exit): Move...
3703 (graphite_can_represent_init): Move...
3704 (graphite_can_represent_scev): Move...
3705 (stmt_has_simple_data_refs_p): Move...
3706 (stmt_has_side_effects): Move...
3707 (graphite_can_represent_stmt): Move...
3708 (scop_detection): ... here.
3709 (sese_dom_walker): ... and here.
3710 (build_scops): Call all moved functions.
3711 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
3712 (all_non_dominated_preds_marked_p): Move...
3713 (build_scop_bbs_1): Move...
3714 (build_scop_bbs): Move...
3715 (set_scop_parameter_dim): Move...
3716 (nb_pbbs_in_loops): Move...
3717 (build_poly_scop): Do not call all the moved functions.
3719 2015-10-05 Martin Jambor <mjambor@suse.cz>
3720 Jan Hubicka <hubicka@ucw.cz>
3722 * ipa-cp.c (ipcp_alignment_lattice): New type.
3723 (ipcp_param_lattices): Use the above to represent alignment.
3724 (ipcp_alignment_lattice::print): New function.
3725 (print_all_lattices): Use it to print alignment information.
3726 (ipcp_alignment_lattice::top_p): New function.
3727 (ipcp_alignment_lattice::bottom_p): Likewise.
3728 (ipcp_alignment_lattice::set_to_bottom): Likewise.
3729 (ipcp_alignment_lattice::meet_with_1): Likewise.
3730 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
3731 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
3732 (initialize_node_lattices): Likewise.
3733 (propagate_alignment_accross_jump_function): Work with the new class
3734 for alignment lattices.
3735 (propagate_constants_accross_call): Pass only the alignment lattice to
3736 propagate_alignment_accross_jump_function.
3737 (ipcp_store_alignment_results): Work with the new class for alignment
3740 2015-10-05 Marek Polacek <polacek@redhat.com>
3742 PR tree-optimization/67821
3743 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
3745 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
3748 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
3750 (mkoffload_cleanup): ... this. Adjust all users.
3751 (maybe_unlink): Look at save_temps and verbose flags instead of
3753 (main): Parse "-save-temps" flag.
3754 (generate_target_descr_file, generate_target_offloadend_file)
3755 (generate_host_descr_file, prepare_target_image): Pass it on.
3756 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
3757 (mkoffload_cleanup): New function.
3758 (maybe_unlink): Look at save_temps and verbose flags instead of
3760 (main): Instead of calling utils_cleanup, register atexit handler
3761 for mkoffload_cleanup.
3762 (main): Parse "-save-temps" flag.
3763 (compile_native, main): Pass it on.
3764 * lto-wrapper.c (compile_offload_image): Likewise.
3766 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3768 * gimple.h (gimple_op_ptr): Require a non const gimple *.
3769 (gimple_assign_lhs_ptr): Likewise.
3770 (gimple_assign_rhs1_ptr): Likewise.
3771 (gimple_assign_rhs2_ptr): Likewise.
3772 (gimple_assign_rhs3_ptr): Likewise.
3773 (gimple_call_lhs_ptr): Likewise.
3774 (gimple_call_fn_ptr): Likewise.
3775 (gimple_call_chain_ptr): Likewise.
3776 (gimple_call_arg_ptr): Likewise.
3777 (gimple_cond_lhs_ptr): Likewise.
3778 (gimple_cond_rhs_ptr): Likewise.
3779 (gimple_switch_index_ptr): Likewise.
3780 (gimple_return_retval_ptr): Likewise.
3782 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3784 * gimple.h (gimple_asm_input_op_ptr): Remove.
3785 (gimple_asm_output_op_ptr): Likewise.
3787 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3789 * gimple.h (gimple_location_ptr): Remove.
3790 * tree-vrp.c (check_all_array_refs): Adjust.
3792 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3794 * tree-ssa-operands.c (build_uses): store tree * instead of
3796 (finalize_ssa_uses): Adjust.
3797 (append_use): Likewise.
3798 (verify_ssa_operands): Likewise.
3800 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3802 * real.h (build_real_truncate): Declare.
3803 * tree.c (build_real_truncate): New function.
3804 (strip_float_extensions): Use it.
3805 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
3806 (fold_builtin_hypot, fold_builtin_pow): Likewise.
3807 * match.pd: Likewise.
3809 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
3810 Jiong Wang <jiong.wang@arm.com>
3812 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
3814 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3816 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
3817 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
3818 (aarch64_print_operand, aarch64_float_const_representable_p)
3819 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
3820 instead of REAL_VALUE_FROM_CONST_DOUBLE.
3821 * config/arc/arc.c (arc_print_operand): Likewise.
3822 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
3823 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
3824 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
3826 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
3827 (consttable_16): Likewise.
3828 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
3829 * config/avr/avr.c (avr_print_operand): Likewise.
3830 * config/bfin/bfin.md: Likewise (in a define_split).
3831 * config/c6x/c6x.md: Likewise (in a define_split).
3832 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
3833 (cr16_print_operand): Likewise.
3834 * config/cris/cris.c (cris_print_operand): Likewise.
3835 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
3836 * config/fr30/fr30.c (fr30_print_operand): Likewise.
3837 (fr30_const_double_is_zero): Likewise.
3838 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
3839 * config/frv/frv.md: Likewise (in a define_split).
3840 * config/frv/predicates.md (int_2word_operand): Likewise.
3841 * config/h8300/h8300.c (h8300_print_operand): Likewise.
3842 * config/i386/i386.c (standard_80387_constant_p): Likewise.
3843 (ix86_print_operand, ix86_split_to_parts): Likewise.
3844 * config/i386/i386.md: Likewise (in a define_split).
3845 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
3846 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
3847 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
3848 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
3849 (print_operand): Likewise.
3850 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
3851 * config/mep/mep.md: Likewise (in define_split).
3852 * config/microblaze/microblaze.c (microblaze_const_double_ok)
3853 (print_operand): Likewise.
3854 * config/mips/mips.md (consttable_float): Likewise.
3855 * config/mmix/mmix.c (mmix_intval): Likewise.
3856 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
3857 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
3858 * config/pa/pa.c (pa_singlemove_string): Likewise.
3859 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
3860 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
3861 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
3862 (output_toc): Likewise.
3863 * config/rs6000/rs6000.md: Likewise (in define_splits).
3864 * config/rx/rx.c (rx_print_operand): Likewise.
3865 * config/s390/s390.c (s390_output_pool_entry): Likewise.
3866 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
3867 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
3868 (and also in define_splits).
3869 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
3870 (fp_high_losum_p): Likewise.
3871 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
3872 (*movsf_high): Likewise.
3873 * config/spu/spu.c (const_double_to_hwint): Likewise.
3874 * config/v850/v850.c (const_double_split): Likewise.
3875 * config/vax/vax.c (vax_float_literal): Likewise.
3876 * config/visium/visium.c (visium_expand_copysign): Likewise.
3877 * config/visium/visium.md: Likewise (in define_split).
3878 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
3879 * config/xtensa/xtensa.c (print_operand): Likewise.
3880 (xtensa_output_literal): Likewise.
3881 * cprop.c (implicit_set_cond_p): Likewise.
3882 * dwarf2out.c (insert_float): Likewise.
3883 * expmed.c (expand_mult, make_tree): Likewise.
3884 * expr.c (compress_float_constant): Likewise.
3885 * rtlanal.c (split_double): Likewise.
3886 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
3887 (simplify_const_unary_operation, simplify_binary_operation_1)
3888 (simplify_const_binary_operation): Likewise.
3889 (simplify_const_relational_operation): Likewise.
3890 * varasm.c (output_constant_pool_2): Likewise.
3892 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3894 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
3895 instead of CONST_DOUBLE_FROM_REAL_VALUE.
3896 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
3897 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
3898 instead of CONST_DOUBLE_FROM_REAL_VALUE.
3899 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
3900 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
3901 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
3902 (ix86_emit_swsqrtsf): Likewise.
3903 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
3904 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
3905 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
3906 * config/pa/pa.c (pa_expand_builtin): Likewise.
3907 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
3908 (rs6000_scale_v2df): Likewise.
3909 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
3910 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
3911 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
3912 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
3913 (vec_ctul): Likewise.
3914 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
3915 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
3916 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
3917 * cse.c (fold_rtx): Likewise.
3918 * emit-rtl.c (immed_double_const): Likewise (in comments).
3919 (init_emit_once): Likewise.
3920 * expr.c (compress_float_constant, expand_expr_real_1)
3921 (const_vector_from_tree): Likewise.
3922 * optabs.c (expand_float, expand_fix): Likewise.
3923 * reg-stack.c (reg_to_stack): Likewise.
3924 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
3925 (simplify_const_unary_operation, simplify_binary_operation_1)
3926 (simplify_const_binary_operation, simplify_relational_operation)
3927 (simplify_immed_subreg): Likewise.
3929 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3931 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
3932 * doc/tm.texi: Regenerate.
3933 * real.h (REAL_ARITHMETIC): Delete.
3934 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
3935 (ix86_expand_round_sse4): Use real_arithmetic instead of
3937 * config/i386/sse.md (round<mode>2): Likewise.
3938 * rtl.h (rtx_to_tree_code): Likewise (in comment).
3939 * explow.c (rtx_to_tree_code): Likewise (in comment).
3940 * match.pd: Likewise.
3941 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3942 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
3943 (expand_pow_as_sqrts): Likewise.
3944 * tree-pretty-print.c (dump_generic_node): Remove code that
3945 was conditional on REAL_ARITHMETIC being undefined.
3947 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3949 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
3950 * doc/tm.texi: Regenerate.
3951 * real.h (real_less): Declare.
3952 (REAL_VALUES_LESS): Delete.
3953 * real.c (real_less): New function.
3954 (real_compare): Use it.
3955 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
3956 of REAL_VALUES_LESS.
3957 * config/microblaze/microblaze.c (microblaze_const_double_ok):
3959 * fold-const.c (fold_convert_const_int_from_real): Likewise.
3960 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3961 (simplify_const_relational_operation): Likewise.
3962 * tree-call-cdce.c (check_pow): Likewise.
3963 (gen_conditions_for_pow_cst_base): Likewise.
3965 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3967 * real.h (REAL_VALUES_IDENTICAL): Delete.
3968 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
3969 instead of REAL_VALUES_IDENTICAL.
3970 * fold-const.c (operand_equal_p): Likewise.
3971 * ipa-icf.c (sem_variable::equals): Likewise.
3972 * tree-complex.c (some_nonzerop): Likewise.
3973 (expand_complex_multiplication): Likewise.
3974 * tree.c (simple_cst_equal): Likewise.
3975 * varasm.c (compare_constant): Likewise.
3977 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3979 * real.h (real_equal): Declare.
3980 (REAL_VALUES_EQUAL): Delete.
3981 * real.c (real_equal): New function.
3982 (real_compare): Use it.
3983 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
3984 * doc/tm.texi: Regenerate.
3985 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
3986 real_equal instead of REAL_VALUES_EQUAL.
3987 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
3988 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
3989 (fp_const_from_val): Likewise.
3990 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
3991 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
3992 (floating_exact_log2): Likewise.
3993 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
3994 * config/vax/vax.c (vax_float_literal): Likewise.
3995 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
3996 * cprop.c (implicit_set_cond_p): Likewise.
3997 * expmed.c (expand_mult): Likewise.
3998 * fold-const.c (const_binop): Likewise.
3999 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4000 (simplify_const_binary_operation): Likewise.
4001 (simplify_const_relational_operation): Likewise.
4002 * tree-call-cdce.c (check_pow): Likewise.
4003 (gen_conditions_for_pow_cst_base): Likewise.
4004 * tree-inline.c (estimate_num_insns): Likewise.
4005 * tree-ssa-dom.c (record_equality): Likewise.
4006 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
4007 (gimple_expand_builtin_pow): Likewise.
4008 (pass_optimize_widening_mul::execute): Likewise.
4009 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
4010 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
4011 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
4013 2015-10-05 Richard Biener <rguenther@suse.de>
4016 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
4017 consider loop header PHI defs as IVs.
4019 2015-10-05 Richard Biener <rguenther@suse.de>
4021 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
4023 (create_expression_by_pieces): ... here and build GIMPLE
4024 calls directly. Use gimple_build API and avoid force_gimple_operand.
4025 (insert_into_preds_of_block): Simplify.
4026 (do_regular_insertion): Add comment.
4028 2015-10-04 Jason Merrill <jason@redhat.com>
4030 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
4032 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
4034 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
4035 check for general register.
4036 (ix86_emit_save_regs): Ditto.
4037 (ix86_emit_save_regs_using_mov): Ditto.
4038 (ix86_emit_restore_regs_using_pop): Ditto.
4039 (ix86_emit_restore_regs_using_mov): Ditto.
4041 2015-10-03 Marek Polacek <polacek@redhat.com>
4043 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
4044 (insn-dfatab.o): Likewise.
4046 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
4048 * config.gcc (xtensa*-*-uclinux*): New configuration.
4049 * config/xtensa/uclinux.h: New file.
4050 * config/xtensa/uclinux.opt: New file.
4052 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
4054 * doc/cpp.texi (Standard Predefined Macros): Document value of
4055 __cplusplus for C++14.
4057 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
4059 * gcc.c (process_command): Use spec_machine rather than
4060 spec_host_machine to build tooldir_prefix2.
4062 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
4063 Bernd Schmidt <bernds@codesourcery.com>
4065 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
4066 (Token, Stmt): Remove structs.
4067 (decls, vars, fns): Remove variables.
4068 (alloc_comment, append_stmt, is_keyword): Remove macros.
4069 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
4070 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
4071 (parse_init, parse_file): Remove functions.
4072 (read_file): Accept a pointer to a length and store into it.
4073 (process): Don't try to parse the input file, just write it out as
4074 a string, but looking for maps. Also write out the length.
4075 (main): Don't use "-S" to compile PTX code.
4077 2015-10-02 Jeff Law <law@redhat.com>
4079 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
4082 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
4085 * config/nvptx/mkoffload.c (main): Scan the argument vector for
4086 -fopenmp, and skip generating an offloading image if specified.
4088 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
4090 * system.h (ROUND_UP): New macro definition.
4091 (ROUND_DOWN): Ditto.
4092 * ggc-page.c (ROUND_UP): Remove local macro definition.
4093 (PAGE_ALIGN): Implement using ROUND_UP macro.
4095 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
4096 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
4098 (ix86_compute_frame_layout): Ditto.
4099 (ix86_expand_prologue): Ditto.
4100 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
4101 to round down values.
4102 (expand_set_or_movmem_via_rep): Ditto.
4104 2015-10-02 Marek Polacek <polacek@redhat.com>
4106 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
4108 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
4110 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
4111 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
4112 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
4113 (free_gimple_bb): Renamed free_gimple_poly_bb.
4114 (try_generate_gimple_bb): Hoist loop invariant code.
4115 (analyze_drs_in_stmts): Same.
4116 (build_scop_drs): Call renamed functions.
4117 (new_pbb_from_pbb): Same.
4118 (scop_ivs_can_be_represented): Delete as functionality now moved to
4119 graphite-scop-detection.c
4120 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
4122 2015-10-02 Aditya Kumar <hiraditya@msn.com>
4124 * graphite-scop-detection.c (stmt_has_side_effects): New function
4125 outlined from stmt_simple_for_scop_p.
4126 (graphite_can_represent_stmt): Same.
4127 (stmt_simple_for_scop_p): Moved code out of this function for better
4130 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
4132 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
4134 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
4136 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4138 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
4140 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
4142 PR rtl-optimization/67756
4143 * lra-constraints.c (match_reload): Add a new parameter. Use it
4144 for creating a pseudo with the same value.
4145 (curr_insn_transform): Pass a new argument to match_reload.
4147 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
4149 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
4150 (expand_vec_perm_even_odd_1): Handle V64QImode.
4151 (ix86_expand_vec_perm_const_1): Try expansion with
4152 expand_vec_perm_even_odd_trunc as well.
4153 * config/i386/sse.md (VI124_AVX512F): Rename to ...
4154 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
4156 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
4157 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
4159 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
4160 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
4161 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
4162 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
4163 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
4164 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
4166 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
4168 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
4169 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
4171 2015-10-02 Jason Merrill <jason@redhat.com>
4174 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
4175 (diagnose_tm_1_op): Also diagnose volatile accesses in
4176 transaction_safe function.
4178 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
4180 * system.h (malloc.h): Don't include obsolete header.
4182 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4184 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
4185 (TLS_SECTION_ASM_FLAG): Delete.
4187 2015-10-02 Marek Polacek <polacek@redhat.com>
4190 * doc/invoke.texi: Document -Wduplicated-cond.
4191 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
4192 (insn-dfatab.o): Likewise.
4193 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
4196 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
4198 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
4201 2015-10-02 Renlin Li <renlin.li@arm.com>
4203 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
4205 2015-10-02 Renlin Li <renlin.li@arm.com>
4208 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
4210 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4212 PR rtl-optimization/67786
4213 PR rtl-optimization/67787
4214 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
4215 it modifies a reg used in the condition calculation.
4217 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
4219 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
4220 alternatives for reads from memory and moves from general-purpose
4222 (*aarch64_combinez_be<mode>): Likewise.
4224 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
4227 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
4228 selectany within this function without need to keep attribute.
4229 (i386_pe_encode_section_info): Remove selectany-code.
4231 2015-10-02 Richard Biener <rguenther@suse.de>
4233 * tree-ssa-sccvn.c (has_VN_INFO): New function.
4234 (free_scc_vn): Use it.
4235 (visit_use): Remove dead code and refactor to use gassign
4236 and use less indentation.
4238 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4242 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
4243 (rs6000_cannot_copy_insn_p): New function.
4244 * config/rs6000/rs6000.md (cannot_copy): New attribute.
4245 (load_toc_v4_PIC_1_normal): Set cannot_copy.
4246 (load_toc_v4_PIC_1_476): Ditto.
4248 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
4250 * graphite-scop-detection.c (struct sese_l): New conversion constructor
4251 so that this type can be pushed into a vec.
4252 (class scop_builder): use sese_l to collect scops.
4253 (get_scops): New getter function.
4254 (remove_intersecting_scops): Use sese_l instead of scops_p.
4258 (remove_subscops): Same.
4259 (build_scops): Add scops to vec<scops_p> once all the scops have been
4262 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
4264 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
4265 Renamed type from gimple_bb_p to gimple_poly_bb_p.
4266 (translate_isl_ast_node_user): Same.
4267 * graphite-poly.c (new_poly_bb): Same.
4268 * graphite-poly.h (gbb_from_bb): Same.
4270 * graphite-sese-to-poly.c (new_gimple_bb):
4271 gimple_bb_p -> gimple_poly_bb_p
4272 (build_scop_scattering): Same.
4273 (find_params_in_bb): Same.
4274 (add_conditions_to_domain): Same.
4275 (sese_dom_walker::before_dom_children): Same.
4276 (analyze_drs_in_stmts): Same.
4277 (new_pbb_from_pbb): Same.
4278 (free_data_refs_aux): New pointer to type base_alias_pair.
4279 * graphite-sese-to-poly.h: Same.
4280 * sese.c (if_region_set_false_region): Fixed Indentation.
4281 (move_sese_in_condition): Same.
4283 2015-10-01 Sebastian Pop <s.pop@samsung.com>
4284 Aditya Kumar <aditya.k7@samsung.com>
4286 PR tree-optimization/66980
4287 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
4288 when data reference analysis has failed.
4290 2015-10-01 Sebastian Pop <s.pop@samsung.com>
4291 Aditya Kumar <aditya.k7@samsung.com>
4293 PR tree-optimization/67754
4294 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
4295 scev analysis on the same loop nest as analyze_drs_in_stmts.
4296 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
4298 (try_generate_gimple_bb): Call outermost_loop_in_sese.
4299 (analyze_drs_in_stmts): Same.
4300 * sese.c (outermost_loop_in_sese): ...here.
4302 2015-10-01 Sebastian Pop <s.pop@samsung.com>
4303 Aditya Kumar <aditya.k7@samsung.com>
4305 PR tree-optimization/67754
4306 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
4307 recursion on the inner loops.
4309 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4311 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
4312 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
4313 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
4314 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
4315 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
4317 2015-10-01 Marek Polacek <polacek@redhat.com>
4320 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
4321 create_tmp_var_raw rather than create_tmp_var.
4323 2015-10-01 Marek Polacek <polacek@redhat.com>
4325 PR tree-optimization/67769
4326 * tree-ssa-phiopt.c (conditional_replacement): Call
4327 reset_flow_sensitive_info_in_bb.
4328 (minmax_replacement): Likewise.
4329 (abs_replacement): Likewise.
4331 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
4333 * builtins.c: Don't include gomp-constants.h.
4334 (fold_builtin_1): Don't fold acc_on_device here.
4335 * gimple-fold.c: Include gomp-constants.h.
4336 (gimple_fold_builtin_acc_on_device): New.
4337 (gimple_fold_builtin): Call it.
4339 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
4341 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
4342 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
4344 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
4346 * config/arm/aarch-common-protos.h
4347 (aarch_accumulator_forwarding): New.
4348 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
4349 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
4350 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
4351 * config/arm/cortex-a53.md: Rewrite.
4353 2015-10-01 Richard Biener <rguenther@suse.de>
4355 * gimple-match.h (mprts_hook): Declare.
4356 * gimple-match.head.c (mprts_hook): Define.
4357 (maybe_push_res_to_seq): Use new hook.
4358 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
4359 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
4360 (vn_ssa_aux::has_constants): Remove.
4361 * tree-ssa-sccvn.c: Include gimple-match.h.
4362 (VN_INFO_GET): Assert we don't re-use SSA names.
4363 (vn_get_expr_for): Remove.
4364 (expr_has_constants): Likewise.
4365 (stmt_has_constants): Likewise.
4366 (simplify_binary_expression): Likewise.
4367 (simplify_unary_expression): Likewise.
4368 (vn_lookup_simplify_result): New hook.
4369 (visit_copy): Adjust.
4370 (visit_reference_op_call): Likewise.
4371 (visit_phi): Likewise.
4372 (visit_use): Likewise.
4373 (process_scc): Likewise.
4374 (init_scc_vn): Likewise.
4375 (visit_reference_op_load): Likewise. Use match-and-simplify and
4376 a gimple seq for inserted expressions.
4377 (try_to_simplify): Remove GENERIC stmt combining code.
4378 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
4379 * tree-ssa-pre.c (eliminate_insert): Adjust.
4380 (eliminate_dom_walker::before_dom_children): Likewise.
4382 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4384 * doc/invoke.texi (Optimization Options): Add
4385 -freorder-blocks-algorithm=.
4386 (Optimize Options) <-O>: Add -freorder-blocks.
4387 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
4388 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
4389 <-freorder-blocks>: Also enabled at levels -O and -Os.
4390 <-freorder-blocks-algorithm=>: Document new option.
4392 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4394 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
4395 with flag_reorder_blocks_algorithm.
4396 * common.opt (freorder-blocks-algorithm=): New flag.
4397 (reorder_blocks_algorithm): New enum.
4398 * flag-types.h (reorder_blocks_algorithm): New enum.
4399 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
4400 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
4402 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4404 * bb-reorder.c: Add intro comment.
4405 (reorder_basic_blocks_software_trace_cache): Print a header to
4407 (edge_order): New function.
4408 (reorder_basic_blocks_simple): New function.
4409 (reorder_basic_blocks): Choose between the STC and the simple
4410 algorithms (always choose the former).
4412 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4414 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
4415 function, factored out from ...
4416 (reorder_basic_blocks): ... here.
4418 2015-10-01 Tom de Vries <tom@codesourcery.com>
4420 * tree-cfg.c (dump_function_to_file): Dump function attributes using
4421 __attribute__(()) string. Move dumping of function attributes to before
4424 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
4427 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
4428 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
4429 based on gold linker version.
4430 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
4431 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
4432 * configure, config.in: Regenerate.
4434 2015-10-01 Alan Modra <amodra@gmail.com>
4436 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
4437 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
4438 (rs6000_output_mi_thunk): Likewise.
4440 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
4442 * config/nvptx/mkoffload.c (process): Change offload data format.
4444 2015-09-30 Jeff Law <law@redhat.com>
4446 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
4447 with constant conditions.
4448 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
4449 (remove_ctrl_stmt_and_useless_edges): No longer static.
4450 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
4451 (remove_ctrl_stmt_and_useless_edges): Likewise.
4453 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
4454 Cesar Philippidis <cesar@codesourcery.com>
4456 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
4457 (TARGET_GOACC_VALIDATE_DIMS): Override.
4458 * target.def (TARGET_GOACC): New target hook prefix.
4459 (validate_dims): New hook.
4460 * targhooks.h (default_goacc_validate_dims): New.
4461 * omp-low.c (oacc_validate_dims): New.
4462 (execute_oacc_device_lower): New.
4463 (default_goacc_validate_dims): New.
4464 (pass_data_oacc_device_lower): New.
4465 (pass_oacc_device_lower): New pass.
4466 (make_pass_oacc_device_lower): New.
4467 * tree-pass.h (make_pass_oacc_device_lower): Declare.
4468 * passes.def (pass_oacc_device_lower): Add it.
4469 * doc/tm.texi: Rebuilt.
4470 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
4471 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
4473 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
4475 PR rtl-optimization/67037
4476 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
4478 2015-09-30 Bernd Schmidt <bernds@redhat.com>
4480 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
4481 * passes.c: Include tree-ssanames.h.
4482 (execute_function_todo): Flush the pending free SSA_NAMEs after
4483 eliminating unreachable basic blocks.
4484 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
4485 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
4486 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
4487 (flush_ssanames_freelist): New function.
4488 (release_ssaname_fn): Put released names on the queue.
4489 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
4490 * tree-ssanames.h (flush_ssanames_freelist): Declare.
4492 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
4494 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
4495 (generate_target_descr_file, generate_target_offloadend_file)
4496 (generate_host_descr_file, prepare_target_image): Pass it on.
4497 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
4498 (compile_native, main): Pass it on.
4499 * lto-wrapper.c (compile_offload_image): Likewise.
4501 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
4502 Ilya Verbin <ilya.verbin@intel.com>
4503 Andrey Turetskiy <andrey.turetskiy@intel.com>
4505 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
4506 (prepare_target_image, main): Refactor argv building to use
4509 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4511 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
4512 * config/spu/spu.c (spu_expand_atomic_op): New function.
4513 * config/spu/spu.md (AINT): New mode iterator.
4514 (ATOMIC): New code iterator.
4515 (atomic_name, atomic_pred): New code predicates.
4516 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
4517 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
4518 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
4519 "atomic_<atomic_name>_fetch<mode>"): Likewise.
4521 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
4523 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
4525 (scalar_chain::convert_reg): Likewise.
4527 2015-09-30 Richard Biener <rguenther@suse.de>
4529 * builtins.c: Add comment that no new simplifications should
4532 2015-09-30 Marek Polacek <polacek@redhat.com>
4534 PR tree-optimization/67690
4535 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
4536 reset_flow_sensitive_info_in_bb.
4537 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
4538 * tree-ssanames.c: Include "gimple-iterator.h".
4539 (reset_flow_sensitive_info_in_bb): New function.
4540 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
4542 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
4544 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
4545 variable, replacing it with...
4546 (offload_abi): ... this new variable. Adjust all users.
4547 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
4549 2015-09-30 Matthias Klose <doko@ubuntu.com>
4551 * configure.ac: Remove extraneous ;;.
4552 * configure: Regenerate.
4554 2015-09-29 James Bowman <james.bowman@ftdichip.com>
4556 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
4557 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
4558 predicate, disallow register for operand 2.
4560 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
4562 * graphite-dependences.c (scop_get_dependences): Moved in down
4563 in order to be visible to its caller.
4564 * graphite-poly.h: Removed compute_deps, and extend_schedule.
4566 2015-09-29 Sebastian Pop <s.pop@samsung.com>
4567 Aditya Kumar <aditya.k7@samsung.com>
4569 PR tree-optimization/67754
4570 * graphite-optimize-isl.c (optimize_isl): Call
4571 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
4573 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
4575 * builtins.c (expand_builtin_acc_on_device): Delete.
4576 (expand_builtin): Don't call it.
4577 (fold_builtin_1): Fold acc_on_device.
4579 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
4581 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
4582 (ix86_nsaved_sseregs): Likewise.
4584 2015-09-29 Jeff Law <law@redhat.com>
4586 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
4587 computation of unused value.
4589 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
4590 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
4591 inline macro expansion.
4593 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
4595 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
4596 (gen_shl_sext): Likewise.
4597 * config/sh/sh.md (divsi3): Likewise.
4598 (imm->ext_dest_operand splitter): Likewise.
4600 2015-09-29 Sebastian Pop <s.pop@samsung.com>
4601 Aditya Kumar <aditya.k7@samsung.com>
4603 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
4604 (nb_data_writes_in_bb): Remove.
4605 (split_pbb): Remove.
4606 (split_reduction_stmt): Remove.
4607 (is_reduction_operation_p): Remove.
4608 (phi_contains_arg): Remove.
4609 (follow_ssa_with_commutative_ops): Remove.
4610 (detect_commutative_reduction_arg): Remove.
4611 (detect_commutative_reduction_assign): Remove.
4612 (follow_inital_value_to_phi): Remove.
4613 (edge_initial_value_for_loop_phi): Remove.
4614 (initial_value_for_loop_phi): Remove.
4615 (used_outside_reduction): Remove.
4616 (detect_commutative_reduction): Remove.
4617 (translate_scalar_reduction_to_array_for_stmt): Remove.
4618 (remove_phi): Remove.
4619 (dr_indices_valid_in_loop): Remove.
4620 (close_phi_written_to_memory): Remove.
4621 (translate_scalar_reduction_to_array): Remove.
4622 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
4623 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
4624 (rewrite_commutative_reductions_out_of_ssa): Remove.
4625 (build_poly_scop): Remove call to
4626 rewrite_commutative_reductions_out_of_ssa.
4628 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
4630 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
4631 Add new insn types for vector load and store pairs.
4632 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
4633 types "neon_ldp{,_q}".
4634 * config/arm/cortex-a57.md (neon_load_c): Add insn types
4636 (neon_store_complex): Add insn types "neon_stp{,_q}".
4637 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
4640 2015-09-29 Jeff Law <law@redhat.com>
4642 * config/rx/constraints.md (Int08): Fix undefined left shift
4644 (Sint08, Sint16, Sint24): Likewise.
4645 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4647 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
4650 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
4651 left shift behaviour.
4652 * config/msp430/constraints.md ('L' constraint): Similarly.
4653 ('Ys' constraint): Similarly.
4655 2015-09-29 Richard Biener <rguenther@suse.de>
4657 PR tree-optimization/67170
4658 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
4659 the translate function pointer parameter to get the
4660 bool whether to disambiguate only by reference.
4661 (walk_non_aliased_vuses): Likewise.
4662 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4663 (get_continuation_for_phi_1): Likewise.
4664 (get_continuation_for_phi): Likewise.
4665 (walk_non_aliased_vuses): Likewise.
4666 * tree-ssa-sccvn.c (const_parms): New bitmap.
4667 (vn_reference_lookup_3): Adjust for interface change.
4668 Disambiguate parameters pointing to readonly memory.
4669 (free_scc_vn): Free const_parms.
4670 (run_scc_vn): Initialize const_parms from a fn spec attribute.
4672 2015-09-29 Richard Biener <rguenther@suse.de>
4674 PR tree-optimization/67741
4675 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
4676 builtin calls with correct signature.
4678 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
4681 * config/i386/i386.c: Include dbgcnt.h.
4682 (has_non_address_hard_reg): New.
4683 (convertible_comparison_p): New.
4684 (scalar_to_vector_candidate_p): New.
4685 (remove_non_convertible_regs): New.
4686 (scalar_chain): New.
4687 (scalar_chain::scalar_chain): New.
4688 (scalar_chain::~scalar_chain): New.
4689 (scalar_chain::add_to_queue): New.
4690 (scalar_chain::mark_dual_mode_def): New.
4691 (scalar_chain::analyze_register_chain): New.
4692 (scalar_chain::add_insn): New.
4693 (scalar_chain::build): New.
4694 (scalar_chain::compute_convert_gain): New.
4695 (scalar_chain::replace_with_subreg): New.
4696 (scalar_chain::replace_with_subreg_in_insn): New.
4697 (scalar_chain::emit_conversion_insns): New.
4698 (scalar_chain::make_vector_copies): New.
4699 (scalar_chain::convert_reg): New.
4700 (scalar_chain::convert_op): New.
4701 (scalar_chain::convert_insn): New.
4702 (scalar_chain::convert): New.
4703 (convert_scalars_to_vector): New.
4704 (pass_data_stv): New.
4706 (make_pass_stv): New.
4707 (ix86_option_override): Created and register stv pass.
4708 (flag_opts): Add -mstv.
4709 (ix86_option_override_internal): Likewise.
4710 * config/i386/i386.md (SWIM1248x): New.
4711 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
4712 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
4713 (*anddi3_doubleword): New.
4714 (*zext<mode>_doubleword): New.
4715 (*zextsi_doubleword): New.
4716 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
4717 (*<code>di3_doubleword): New.
4718 * config/i386/i386.opt (mstv): New.
4719 * dbgcnt.def (stv_conversion): New.
4721 2015-09-29 Tom de Vries <tom@codesourcery.com>
4723 * tree-cfg.c (dump_function_to_file): Dump function attributes.
4725 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
4728 * config/sh/sh.c (sh_override_options_after_change): New.
4729 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
4730 (sh_option_override): Move align_loops, align_jumps and
4731 align_functions handling into sh_override_options_after_change.
4733 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
4735 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
4736 (nvptx_record_offload_symbol): Record function execution geometry.
4737 * config/nvptx/mkoffload.c (process): Include launch geometry in
4739 * omp-low.c (oacc_launch_pack): New.
4740 (replace_oacc_fn_attrib): New.
4741 (set_oacc_fn_attrib): New.
4742 (get_oacc_fn_attrib): New.
4743 (expand_omp_target): Create keyed varargs for GOACC_parallel call
4745 * omp-low.h (get_oacc_fn_attrib): Declare.
4746 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
4747 (DEF_FUNCTION_TYPE_VAR_11): Delete.
4748 * tree.h (OMP_CLAUSE_EXPR): New.
4749 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
4751 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
4752 Sebastian Pop <s.pop@samsung.com>
4754 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
4756 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
4757 Sebastian Pop <s.pop@samsung.com>
4759 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
4760 * graphite-scop-detection.c (struct sese_l): New type.
4761 (get_entry_bb): API for getting entry bb of SESE.
4762 (get_exit_bb): API for getting exit bb of SESE.
4763 (class debug_printer): New type. Simple printer in debug mode.
4764 (trivially_empty_bb_p): New. Return true when BB is empty or
4765 contains only debug instructions.
4766 (graphite_can_represent_expr): Call scalar_evoution_in_region
4767 instead of analyze_scalar_evolution. Pass in scop instead of only
4769 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
4771 (stmt_simple_for_scop_p): Same.
4772 (harmful_stmt_in_bb): Same.
4773 (graphite_can_represent_loop): Deleted.
4774 (struct scopdet_info): Deleted.
4775 (scopdet_basic_block_info): Deleted.
4776 (build_scops_1): Deleted.
4777 (bb_in_sd_region): Deleted.
4778 (find_single_entry_edge): Deleted.
4779 (find_single_exit_edge): Deleted.
4780 (create_single_entry_edge): Deleted.
4781 (sd_region_without_exit): Deleted.
4782 (create_single_exit_edge): Deleted.
4783 (unmark_exit_edges): Deleted.
4784 (mark_exit_edges): Deleted.
4785 (create_sese_edges): Deleted.
4786 (build_graphite_scops): Deleted.
4787 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
4788 (build_scops): Use the new scop_builder to build scops.
4789 (dot_all_scops_1): Use the new pretty printer. Print loop father
4791 (loop_body_is_valid_scop): New. Return true if loop body is a
4793 (class scop_builder): New. Builds SCoPs for polyhedral
4795 (scop_builder): New constructor.
4796 (static sese_l invalid_sese): sese_l with invalid edges.
4797 (get_sese): Get an sese (from a loop) if possible, invalid_sese
4799 (get_nearest_dom_with_single_entry): Get nearest dominator of a
4800 basic_block with single entry. Return NULL if we get to the
4801 beginning of a function.
4802 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
4803 a basic_block with single exit. Return NULL if we get to the
4804 beginning of a function.
4805 (print_sese): Pretty-print SESE.
4806 (merge_sese): Merge two SESEs if possible and return the new SESE.
4807 (build_scop_depth): Start building the SCoP within a loop nest.
4808 (build_scop_breadth): Start building the SCoP at a single loop
4809 depth. Merge adjacent SESEs if valid.
4810 (can_represent_loop_1): Returns true if Graphite can represent
4811 loop inside SCoP. Helper for can_represent_loop.
4812 (can_represent_loop): Returns true if Graphite can represent LOOP
4813 and all its nested loops in SCoP.
4814 (loop_is_valid_scop): Returns true if LOOP and all its nests
4815 constitute a valid SCoP.
4816 (region_has_one_loop): Returns true of a region has only one loop.
4817 (add_scop): Add SCoP to the list of valid scops. Removes an
4818 already existing scop if it intersects with or subsumed by this one.
4819 (harmful_stmt_in_region): Returns true if SCoP has any statment
4820 which cannot be represented by Graphite.
4821 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
4822 (remove_subscops): Remove any SCoP from the list of already found
4823 SCoPs, if subsumed by S1.
4824 (intersects): Return true if region bounded by SCoPs S1 and S2
4826 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
4827 * graphite.c (print_graphite_scop_statistics):
4828 (print_graphite_statistics): Print SCoP info while debugging.
4829 (graphite_initialize): Early exit in case number of loops in a
4830 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
4831 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
4832 (graphite_finalize):
4833 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
4834 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
4835 (recompute_all_dominators): Recalculate POST_DOMINATORS.
4836 * tree-cfg.c (print_loops): Print the function name while printing
4839 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
4840 Sebastian Pop <s.pop@samsung.com>
4842 PR tree-optimization/67700
4843 * graphite-sese-to-poly.c (parameter_index_in_region): Call
4844 invariant_in_sese_p_rec.
4845 (extract_affine): Same.
4846 (rewrite_cross_bb_scalar_deps): Call update_ssa.
4847 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
4848 * sese.h (invariant_in_sese_p_rec): Declare.
4850 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
4852 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
4854 2015-09-28 Jiong Wang <jiong.wang@arm.com>
4857 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4858 Jiong Wang <jiong.wang@arm.com>
4860 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
4861 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
4862 (REG_CLASS_NAMES): Likewise.
4863 (REG_CLASS_CONTENTS): Likewise.
4864 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
4865 (aarch64_register_move_cost): Likewise.
4866 (aarch64_load_symref_appropriately): Invoke the new added pattern if
4868 * config/aarch64/constraints.md (Uc0): New constraint.
4870 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
4872 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
4874 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
4876 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
4877 SECTION_EXCLUDE in XO mapping class.
4879 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
4882 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
4883 and handle ne and eq codes.
4884 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
4885 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
4886 CONST_INT_P. Use reverse_condition.
4887 (sh_split_treg_set_expr): Likewise.
4889 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
4891 * config/arm/types.md (type): Add rotate_imm.
4892 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
4894 (*rorsi3_insn_uxtw): Likewise.
4895 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
4896 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
4897 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
4899 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4901 PR rtl-optimization/67481
4902 * ifcvt.c (contains_ccmode_rtx_p): New function.
4903 (insn_valid_noce_process_p): Use it.
4905 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4907 PR rtl-optimization/67456
4908 PR rtl-optimization/67464
4909 PR rtl-optimization/67465
4910 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
4911 move in the mode of x. Handle combination of complex and simple
4912 block pairs as well as the case when one is empty.
4914 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4916 * doc/gimple.texi: Update references to gimple_statement_base.
4917 * gdbhooks.py: Likewise.
4918 * gimple.h: Likewise.
4920 2015-09-28 Daniel Cederman <cederman@gaisler.com>
4922 * config/sparc/driver-sparc.c: map LEON to leon3
4924 2015-09-28 Daniel Cederman <cederman@gaisler.com>
4926 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
4927 and make it inverse to change default
4928 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
4930 * doc/invoke.texi: Document change of default
4932 2015-09-28 Daniel Cederman <cederman@gaisler.com>
4934 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
4935 true on %f0 for a target without FPU.
4936 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
4938 (untyped_return): Do not load %f0 for a target without FPU.
4940 2015-09-28 Andrew Pinski <apinski@cavium.com>
4942 * config/aarch64/aarch64.md (prefetch):
4943 Change the predicate of operand 0 to register_operand.
4945 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
4947 * config/i386/predicates.md (register_sse4nonimm_operand): New
4949 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
4950 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
4951 Use register_sse4nonimm_operand as operand 0 predicate.
4952 (*vec_extractv8hi_sse2): Remove insn pattern.
4953 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
4954 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
4956 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
4957 Kaz Kojima <kkojima@gcc.gnu.org>
4960 * config/sh/sh-protos.h (sh_lra_p): Declare.
4961 * config/sh/sh.c (sh_lra_p): Make non-static.
4962 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
4963 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
4964 Expand into addsi3_scr if operands[2] if needed.
4965 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
4966 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
4967 (addsi3_scr, *addsi3): New insn_and_split patterns.
4969 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
4971 PR rtl-optimization/64164
4972 PR tree-optimization/67312
4976 * cfgexpand.c (parm_in_stack_slot_p): Remove.
4977 (ssa_default_def_partition): Remove.
4978 (get_rtl_for_parm_ssa_default_def): Remove.
4979 (set_rtl): Check that RTL assignments match expectations.
4980 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
4981 default def location for params and results. Record SSA names
4982 or types in REG and MEM attrs, respectively.
4983 (set_parm_rtl): New.
4984 (expand_one_ssa_partition): Drop logic that assigned MEMs with
4985 unassigned addresses.
4986 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
4987 deferred stack alloc vars.
4988 (expand_used_vars): Skip partitions holding parm default defs.
4989 Move adjust_one_expanded_partition_var loop...
4990 (pass_expand::execute): ... here. Drop redundant assert.
4991 Adjust comments before the final loop over all ssa names.
4992 Require assigned rtl of parms and results to match exactly.
4993 Reset its attributes to match them, not any other variables in
4995 (expand_debug_expr): Use entry value for PARM's default defs
4996 only iff they have zero nondebug uses.
4997 * cfgexpand.h (parm_in_stack_slot_p): Remove.
4998 (get_rtl_for_parm_ssa_default_def): Remove.
4999 (set_parm_rtl): Declare.
5000 * doc/invoke.texi: Improve wording.
5001 * explow.c (promote_decl_mode): Fix promote_function_mode for
5002 result decls not by reference.
5003 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
5004 bypass TYPE_MODE to get the actual vector mode.
5005 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
5006 2015-08-19's changes as follows. Drop include of
5007 basic-block.h and df.h.
5008 (rtl_for_parm): Remove.
5009 (maybe_reset_rtl_for_parm): Remove.
5010 (parm_in_unassigned_mem_p): Remove.
5011 (use_register_for_decl): Add logic for RESULT_DECLs matching
5012 assign_parms' behavior.
5013 (split_complex_args): Revert.
5014 (assign_parms_augmented_arg_list): Revert. Add comment
5015 referencing the logic above.
5016 (assign_parm_adjust_stack_rtl): Revert.
5017 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
5018 of SET_DECL_RTL. Set up a REG if the parm demands so.
5019 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
5020 calls into a single set_parm_rtl. Set up a temporary RTL
5021 temporarily for expand_assignment.
5022 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
5023 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
5024 (assign_bounds): Revert.
5025 (assign_parms): Revert. Use set_parm_rtl.
5026 (allocate_struct_function): Relayout result and parms of
5027 non-abstruct functions.
5028 (expand_function_start): Revert. Use set_parm_rtl. If the
5029 result is not a hard reg, create a pseudo from the promoted
5030 mode of the default def. Promote static chain mode.
5031 * tree-outof-ssa.c (remove_ssa_form): Drop unused
5032 partition_has_default_def. Set up
5033 partitions_for_parm_default_defs.
5034 (finish_out_of_ssa): Remove partition_has_default_def.
5035 Release partitions_for_parm_default_defs.
5036 * tree-outof-ssa.h (struct ssaexpand): Remove
5037 partition_has_default_def. Add
5038 partitions_for_parm_default_defs.
5039 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
5041 (build_ssa_conflict_graph): Fix conflict-detection of default
5042 defs of even unused default defs of params and results.
5043 (for_all_parms): New.
5044 (create_default_def): New.
5045 (register_default_def): New.
5046 (coalesce_with_default): New.
5047 (create_outofssa_var_map): Create default defs for all parms
5048 and results, and register their partitions. Add GIMPLE_RETURN
5049 operands as coalesce candidates with results. Add default
5050 defs of each parm or result as coalesce candidates with its
5051 other defs. Mark each result def, and each default def of
5052 parms, as used_in_copy.
5053 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
5054 with the ssa names, even anonymous ones. Drop
5055 parm_in_stack_slot_p calls. Require same signedness and
5057 (coalesce_ssa_name): Add coalesce candidates for all defs of
5058 each parm and result, even unused ones.
5059 (parm_default_def_partition_arg): New type.
5060 (set_parm_default_def_partition): New.
5061 (get_parm_default_def_partitions): New.
5062 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
5063 * tree-ssa-live.c (partition_view_init): Regard unused defs of
5064 parms and results as used.
5065 (verify_live_on_entry): Don't error out just because they're
5068 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
5070 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
5071 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
5072 (output_fde): Don't output length for debug_frame on AIX.
5073 (output_call_frame_info): Don't output length for debug_frame on AIX.
5074 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
5075 HAVE_XCOFF_DWARF_EXTRAS.
5076 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
5077 HAVE_XCOFF_DWARF_EXTRAS.
5078 (output_compilation_unit_header): Don't output length on AIX.
5079 (output_pubnames): Don't output length on AIX.
5080 (output_aranges): Delete argument. Compute length locally. Don't
5081 output length on AIX.
5082 (output_line_info): Don't output length on AIX.
5083 (dwarf2out_finish): Don't compute aranges_length.
5084 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
5085 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
5086 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
5087 symbol decoration for AIX.
5088 (rs6000_xcoff_debug_unwind_info): New.
5089 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
5091 (rs6000_xcoff_declare_function_name): Emit different
5092 .function pseudo-op when DWARF2_DEBUG. Don't call
5093 xcoffout_declare_function for DWARF2_DEBUG.
5094 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
5096 * config/rs6000/aix71.h: New.
5097 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
5099 * configure: Regenerate.
5100 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
5103 2015-09-26 Jeff Law <law@redhat.com>
5105 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
5107 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
5110 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
5113 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
5114 undefined behaviour.
5116 * config/cris/cris.md (asrandb): Fix left shift undefined
5118 (asrandw): Likewise.
5120 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
5123 * lra-constarints.c (match_reload): Check presence of the input pseudo
5124 in the output operand.
5126 2015-09-25 Tobias Burnus <burnus@net-b.de>
5128 * doc/invoke.texi (-fsanitize): Minor wording tweak.
5130 2015-09-25 Tobias Burnus <burnus@net-b.de>
5132 * doc/invoke.texi (-fsanitize): Update URLs.
5134 2015-09-25 Teresa Johnson <tejohnson@google.com>
5136 * opts.c (finish_options): Unset -freorder-blocks-and-partition
5137 if not using profile.
5139 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
5141 PR pretty-print/67567
5142 * pretty-print.c (pp_string): Add gcc_checking_assert.
5143 * pretty-print.h (output_buffer_append_r): Likewise.
5145 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
5148 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
5149 addr2 individually. Don't emit logical or insn if one is known to
5150 be aligned approriately.
5151 (sh_expand_cmpnstr): Likewise.
5153 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
5155 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
5156 __builtin_aarch64_fp[sc]r arguments into a register.
5158 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
5160 * config.gcc (x86_archs): Replace lakemount with lakemont.
5161 (with_cpu): Likewise.
5162 (with_arch): Likewise.
5163 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
5164 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
5165 __tune_lakemount__ with __tune_lakemont__.
5166 * config/i386/i386.c (lakemount_cost): Renamed to ...
5167 (lakemont_cost): This.
5168 (m_LAKEMOUNT): Renamed to ...
5170 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
5171 (processor_target_table): Replace "lakemount" with "lakemont".
5172 (processor_alias_table): Likewise.
5173 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
5175 (ix86_adjust_cost): Likewise.
5176 (ia32_multipass_dfa_lookahead): Likewise.
5177 * config/i386/i386.h (processor_type): Likewise.
5178 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
5179 * doc/invoke.texi: Replace lakemount with lakemont. Replace
5180 Lakemount with Lakemont.
5182 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
5184 * config.gcc (x86_archs): Replace iamcu with lakemount.
5185 (with_cpu): Likewise.
5186 (with_arch): Likewise.
5187 * doc/invoke.texi: Likewise.
5188 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
5189 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
5190 __tune_iamcu__ with __tune_lakemount__.
5191 * config/i386/i386.c (iamcu_cost): Renamed to ...
5192 (lakemount_cost): This.
5193 (m_IAMCU): Renamed to ...
5194 (m_LAKEMOUNT): This.
5195 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
5196 (processor_target_table): Replace "iamcu" with "lakemount".
5197 (processor_alias_table): Likewise.
5198 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
5199 PROCESSOR_LAKEMOUNT.
5200 (ix86_adjust_cost): Likewise.
5201 (ia32_multipass_dfa_lookahead): Likewise.
5202 * config/i386/i386.h (processor_type): Likewise.
5203 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
5205 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
5207 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
5208 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
5210 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
5211 (pa_expand_compare_and_swap_loop): New.
5212 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
5213 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
5214 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
5215 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
5216 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
5219 2015-09-24 Michael Collison <michael.collison@linaro.org>
5222 * read-md.c (read_name): Allow mode iterators inside angle
5223 brackets in rtl expressions.
5225 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
5228 * ira-color.c (update_allocno_cost): Add parameter.
5229 (update_costs_from_allocno): Decrease conflict cost. Pass the new
5232 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
5235 * opts-common.c (prune_options): Discard all -fdiagnostics-color
5236 but the last one, which is moved to the front to be processed
5238 * opts.c (enable_warning_as_error): Reject options that do not
5241 2015-09-24 Jiong Wang <jiong.wang@arm.com>
5243 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
5245 2015-09-24 Jiong Wang <jiong.wang@arm.com>
5247 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
5248 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
5249 (aarch64_cannot_force_const_mem): Likewise.
5250 (aarch64_classify_address): Likewise.
5251 (aarch64_classify_symbolic_expression): Likewise.
5252 (aarch64_print_operand): Likewise.
5253 (aarch64_classify_symbol): Likewise.
5254 (aarch64_mov_operand_p): Likewise.
5255 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
5256 (aarch64_mov_operand): Likewise.
5258 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
5260 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
5261 for info->spe_gp_size.
5263 2015-09-24 Richard Biener <rguenther@suse.de>
5266 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
5269 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
5271 * tree-object-size.c (plus_stmt_object_size)
5272 (cond_expr_object_size): Change the formal parameters from gimple
5274 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
5275 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
5276 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
5278 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5280 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
5281 Check for ld -type pie on Solaris 11.x and 12.
5282 * configure: Regenerate.
5283 * config.in: Regenerate.
5285 * gcc.c (LD_PIE_SPEC): Allow redefinition.
5287 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
5288 (STARTFILE_SPEC): Use it.
5289 (ENDFILE_CRTEND_SPEC): Define.
5290 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
5291 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
5292 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
5293 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
5294 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
5295 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
5296 (ENDFILE_ARCH_SPEC): Define.
5297 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
5299 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5301 * configure.ac (gcc_cv_solaris_crts): New test.
5302 * configure. Regenerate.
5303 * config.in: Regenerate.
5304 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
5305 HAVE_SOLARIS_CRTS variant.
5307 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5309 * tree-inline.h (count_insns_seq): Delete prototype.
5310 (estimate_num_insns_seq): Define prototype.
5311 * tree-inline.c (count_insns_seq): Delete.
5312 (estimate_num_insns_seq): Remove static qualifier.
5313 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
5314 with estimate_num_insns_seq.
5316 2015-09-24 Richard Biener <rguenther@suse.de>
5318 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
5320 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
5321 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
5323 (ao_ref_init_from_vn_reference): Record clique and base in the
5325 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
5327 2015-09-24 Richard Biener <rguenther@suse.de>
5329 PR tree-optimization/48885
5330 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
5331 as not including any restrict tags from other pointers.
5333 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
5335 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
5336 character when appending to offload_targets.
5338 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
5339 offload targets by commas, not colons.
5340 * config.in: Regenerate.
5341 * configure: Likewise.
5342 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
5343 instead of setting up the default offload targets here...
5344 (process_command): ..., do it here.
5346 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
5347 targets are separated by commas.
5348 * config.h.in: Regenerate.
5350 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
5351 Nathan Sidwell <nathan@codesourcery.com>
5353 * omp-low.h (omp_reduction_init_op): Declare.
5354 * omp-low.c (omp_reduction_init_op): New, broken out of ...
5355 (omp_reduction_init): ... here. Call it.
5356 * tree-parloops.c (initialize_reductions): Use
5357 omp_reduction_init_op.
5359 2015-09-23 Richard Biener <rguenther@suse.de>
5362 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
5363 undefined overflow unless they will cancel out.
5365 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
5367 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
5370 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
5373 * opts.h (write_langs): Declare.
5374 * opts-global.c (write_langs): Make it extern.
5376 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
5379 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
5380 overlapping regs when matching the pattern.
5382 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
5384 * config/aarch64/aarch64-simd.md
5385 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
5386 (aarch64_float_truncate_hi_v4sf_le): New.
5387 (aarch64_float_truncate_hi_v4sf_be): Likewise.
5389 2015-09-23 Richard Biener <rguenther@suse.de>
5391 * tree-ssa-structalias.c (intra_create_variable_infos): Build
5392 representatives for all restrict qualified pointer destinations.
5394 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
5396 * config/i386/i386.md (define_code_attr mshift): New.
5397 (define_mode_iterator SWI1248_AVX512BW): Rename ...
5398 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
5400 (define_insn "*k<logic><mode>"): Use new iterator name.
5401 (define_insn "*<mshift><mode>3"): New.
5403 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
5406 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
5407 mark the block as accessible.
5409 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
5411 * function.c (thread_prologue_and_epilogue_insns): Delete
5412 orig_entry_edge argument to try_shrink_wrapping.
5413 * shrink-wrap.c (can_get_prologue): New function.
5414 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
5415 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
5416 can_get_prologue where needed. Remove code that finds a single
5417 edge for the prologue. Remove code that tests if any reg clobbered
5418 by the prologue is live on the prologue edge. Remove code that finds
5419 the new prologue edge after duplicating blocks. Make a new prologue
5421 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
5423 2015-09-22 Jeff Law <law@redhat.com>
5425 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
5428 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
5430 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
5431 -Wtemplates, -Wnamespaces): Document.
5433 2015-09-22 Tom de Vries <tom@codesourcery.com>
5435 PR tree-optimization/67671
5436 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
5437 pointer references as restrict.
5439 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
5441 * config/nios2/nios2.c (nios2_legitimize_address): When handling
5442 'reg + reloc' cases, allow first operand to be non-REG, and use
5443 force_reg() to enforce address pattern.
5445 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
5448 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
5449 (define_mode_iterator VI12_AVX_AVX512F): New.
5450 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
5451 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
5452 (define_insn "*<code><mode>3"): ... Into new pattern using
5453 VI12_AVX_AVX512F iterators without masking.
5455 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
5457 * config.gcc: Support "skylake-avx512".
5458 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5459 PROCESSOR_SKYLAKE_AVX512.
5460 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
5461 (processor_target_table): Add "skylake-avx512".
5462 (PTA_SKYLAKE_AVX512): Define.
5463 (ix86_option_override_internal): Add "skylake_avx512".
5464 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
5465 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
5466 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
5467 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
5468 * doc/invoke.texi (skylake-avx512): New.
5470 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
5472 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
5474 (define_insn "kunpcksi"): Ditto.
5475 (define_insn "kunpckdi"): Ditto.
5477 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
5479 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
5480 iterator instead of fixed modes.
5482 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5484 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
5486 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
5487 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
5488 out_result. Update to support update-fetch operations.
5489 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
5490 Adjust for change to aarch64_gen_atomic_ldop.
5491 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
5492 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
5493 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
5494 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
5495 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
5497 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5499 * config/aarch64/aarch64-protos.h
5500 (aarch64_atomic_ldop_supported_p): Declare.
5501 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
5502 (enum aarch64_atomic_load_op_code): New.
5503 (aarch64_emit_atomic_load_op): New.
5504 (aarch64_gen_atomic_ldop): Update to support load-operate
5506 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
5508 (aarch64_atomic_<atomic_optab><mode>): New.
5509 (aarch64_atomic_<atomic_optab><mode>_lse): New.
5510 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
5511 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
5512 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
5514 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5516 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
5517 (UNSPECV_ATOMIC_LDOP_OR): New.
5518 (UNSPECV_ATOMIC_LDOP_BIC): New.
5519 (UNSPECV_ATOMIC_LDOP_XOR): New.
5520 (UNSPECV_ATOMIC_LDOP_PLUS): New.
5523 (aarch64_atomic_load<atomic_ldop><mode>): New.
5525 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5527 * config/aarch64/aarch64.md
5528 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
5531 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5533 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
5535 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
5536 (aarch64_gen_atomic_ldop): New.
5537 (aarch64_split_atomic_op): Fix whitespace and add a comment.
5538 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
5539 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
5540 (atomic_exchange<mode>): Replace with an expander.
5541 (aarch64_atomic_exchange<mode>): New.
5542 (aarch64_atomic_exchange<mode>_lse): New.
5543 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
5544 (aarch64_atomic_swp<mode>): New.
5546 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5548 * tree-inline.c (expand_call_inline): Use inform for extra note.
5549 Do not give a note with UNKNOWN_LOCATION.
5550 Replace input_location with gimple_location (stmt).
5551 Use true/false instead of TRUE/FALSE.
5553 2015-09-22 Tom de Vries <tom@codesourcery.com>
5555 PR tree-optimization/67666
5556 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
5557 with single field non-conservative.
5559 2015-09-21 David S. Miller <davem@davemloft.net>
5563 2015-09-11 David S. Miller <davem@davemloft.net>
5565 * config/sparc/constraints.md: Make "U" constraint a real register
5567 * config/sparc/sparc.c (TARGET_LRA_P): Define.
5568 (D_MODES, DF_MODES): Add missing cast.
5569 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
5570 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
5571 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
5573 * config/sparc/sparc.h (PROMOTE_MODE): Define.
5574 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
5575 provide these insn when flag_pic.
5577 2015-09-17 David S. Miller <davem@davemloft.net>
5579 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
5581 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
5583 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
5584 (HARD_REGNO_CALLER_SAVE_MODE): Define.
5585 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
5586 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
5587 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
5588 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
5589 provide when flag_pic.
5591 2015-09-21 Jeff Law <law@redhat.com>
5593 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
5596 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5598 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
5600 2015-09-21 Richard Biener <rguenther@suse.de>
5602 * passes.c (rest_of_decl_compilation): Do not call
5603 dwarf2out_early_global_decl for aliases.
5605 2015-09-21 Richard Biener <rguenther@suse.de>
5608 * dwarf2out.c (add_location_or_const_value_attribute): Remove
5609 attribute parameter. Early exit if either DW_AT_const_value
5610 or DW_AT_location are present already.
5611 (gen_variable_die): Adjust caller.
5612 (dwarf2out_late_global_decl): Likewise.
5614 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
5617 * config/sh/sh.c (sh_remove_overlapping_post_inc,
5618 sh_peephole_emit_move_insn): Add new functions.
5619 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
5620 sh_peephole_emit_move_insn): Declere them.
5621 * config/sh/sh.md: Use them in various peephole2 patterns.
5623 2015-09-21 Richard Biener <rguenther@suse.de>
5626 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
5627 address with -fno-delete-null-pointer-checks.
5629 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
5631 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
5632 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
5633 (reduc_uplus_v16qi): Remove.
5635 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
5636 (reduc_<VEC_reduc_name>_v2df): Remove.
5637 (reduc_<VEC_reduc_name>_v4sf): Remove.
5638 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
5640 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
5641 gen_ function by removing * prefix.
5642 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
5644 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5647 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
5648 Print i_bound without converting it to a tree.
5650 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
5652 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
5653 operands[4] operands[5] swap with std::swap, removed tmp variable.
5654 (arm_evpc_neon_vzip): Replaced in0/in1 and
5655 out0/out1 swaps with std::swap, removed x variable.
5656 (arm_evpc_neon_vtrn): Replaced in0/int1 and
5657 out0/out1 swaos with std::swap, removed x variable.
5658 (arm_expand_vec_perm_const_1): Replaced
5659 d->op0/d->op1 swap with std::swap, removed x variable.
5660 (arm_evpc_neon_vuzp): Replaced in0/in1 and
5661 out0/out1 swaps with std::swap, removed x variable.
5663 2015-09-21 Jonathan Yong <10walls@gmail.com>
5665 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
5666 sysroot/usr/lib/32api for additional win32 libraries,
5667 fixes failing Cygwin bootstrapping.
5669 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
5671 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
5673 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
5676 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
5677 (*mov_t_msb_neg): Rewrite negc pattern.
5679 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5681 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
5682 immediate generation code.
5684 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5686 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
5687 redundant immediate generation code.
5689 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5691 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
5692 (AARCH64_NUM_BITMASKS): Remove.
5693 (aarch64_bitmasks_cmp): Remove.
5694 (aarch64_build_bitmask_table): Remove.
5696 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5698 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
5699 slow immediate matching loops with a faster algorithm.
5701 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5703 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
5706 2015-09-20 Jeff Law <law@redhat.com>
5708 PR tree-optimization/47679
5709 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
5710 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
5711 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
5712 (thread_through_normal_block): Use record_temporary_equivalences.
5714 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
5716 * coretypes.h (gimple): Change typedef to be a forward declaration.
5717 * gimple.h (gimple_statement_base): rename to gimple.
5718 * (all functions and types using gimple): Adjust.
5721 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
5722 David Edelsohn <dje.gcc@gmail.com>
5724 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
5725 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5726 (EH_FRAME_THROUGH_COLLECT2): Define.
5727 (EH_TABLES_CAN_BE_READ_ONLY): Define.
5728 (ASM_OUTPUT_DWARF_PCREL): Define.
5729 (ASM_OUTPUT_DWARF_DATAREL): Define.
5731 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
5733 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
5736 2015-09-18 Jeff Law <law@redhat.com>
5738 PR tree-optimization/47679
5739 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
5741 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
5742 object. Update constructor.
5743 (pass_dominator::execute): Corresponding chagnes to declaration
5744 and initialization of avail_exprs_stack. Update constructor call
5745 for dom_opt_dom_walker object.
5746 (lookup_avail_expr, record_cond): Accept additional argument. Pass
5747 it down to children as needed.
5748 (record_equivalences_from_incoming_edge): Likewise.
5749 (eliminate_redundant_computations): Likewise.
5750 (record_equivalences_from_stmt): Likewise.
5751 (simplify_stmt_for_jump_threading): Likewise.
5752 (record_temporary_equivalences): Likewise.
5753 (optimize_stmt): Likewise.
5754 (dom_opt_dom_walker::thread_across_edge): Update access to
5755 avail_exprs_stack object and pass it to children as needed.
5756 (dom_opt_dom_walker::before_dom_children): Similarly.
5757 (dom_opt_dom_walker::after_dom_children): Similarly.
5758 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
5759 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
5760 Add avail_expr_stack argument. Pass it to children as needed.
5761 (dummy_simplify): Likewise.
5762 (simplify_control_stmt_condition): Likewise.
5763 (thread_around_empty_blocks): Likewise.
5764 (thread_through_normal_block): Likewise.
5765 (thread_across_edge): Likewise.
5766 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
5767 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
5769 PR tree-optimization/47679
5770 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
5772 (dom_opt_dom_walker): New private member holding the const_and_copies
5773 object. Update constructor.
5774 (pass_dominator::execute): Corresponding changes to declaration
5775 and initialization of const_and_copies. Update constructor call
5776 for the dom_opt_dom_walker object.
5777 (record_temporary_equivalences): Accept const_and_copies argument
5778 pass it down to children as needed.
5779 (record_equality): Likewise.
5780 (record_equivalences_from_incoming_edge): Likewise.
5781 (cprop_into_successor_phis, optimize_stmt): Likewise.
5782 (eliminate_redundant_computations): Likewise.
5783 (dom_opt_dom_walker::thread_across_edge): Update access to
5784 const_and_copies object and pass it to children as needed.
5785 (dom_opt_dom_walker::before_dom_children): Similarly.
5786 (dom_opt_dom_walker::after_dom_children): Similarly.
5788 PR tree-optimization/47679
5789 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
5790 it into the avail_exprs_stack class.
5791 (pass_dominator::execute): Corresponding changes to declaration
5792 and initialization of avail_exprs. Pass avail_exprs to
5793 dump_dominator_optimization_stats.
5794 (record_cond): Extract avail_exprs from avail_exprs_stack.
5795 (lookup_avail_expr): Similarly.
5796 (htab_staticstics): Remove unnecessary prototype. Move to earlier
5798 (dump_dominator_optimization_stats): Make static and prototype.
5799 Add argument for the hash table to dump.
5800 (debug_dominator_optimization_stats): Remove.
5801 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
5803 (debug_dominator_optimization_stats): Similarly.
5804 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
5805 "void" in prototype for pop_to_marker method. Add accessor method
5806 for the underlying avail_exprs table.
5808 * tree-ssa-threadedge.c: Remove trailing whitespace.
5810 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
5812 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
5814 (pa_ldil_cint_p): Likewise.
5815 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
5816 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
5818 * config/pa/pa.md: Likewise.
5820 2015-09-18 David Malcolm <dmalcolm@redhat.com>
5822 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
5823 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
5824 (diagnostic_show_locus): Likewise.
5825 (diagnostic_print_caret_line): Likewise.
5826 * diagnostic-show-locus.c: New file.
5828 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
5830 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
5831 "back" parameter. Declare label in #if block.
5833 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
5836 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
5837 the address to a register.
5839 2015-09-18 Jeff Law <law@redhat.com>
5841 PR tree-optimization/47679
5842 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
5843 * tree-ssa-dom.c: Remove unnecessary header includes.
5844 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
5845 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
5846 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
5847 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
5848 (pass_phi_only_cprop::execute): Likewise.
5849 (make_pass_phi_only_cprop): Likewise.
5850 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
5851 uses of file scoped statics by passing the required objects
5852 as parameters wherever needed.
5854 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
5855 David Edelsohn <dje.gcc@gmail.com>
5857 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
5858 EH_FRAME_THROUGH_COLLECT2.
5859 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
5861 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
5862 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
5863 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
5864 * except.c (switch_to_exception_section): Use a read-only section
5865 even if EH_FRAME_SECTION_NAME is undefined.
5866 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
5867 * collect2.c (write_c_file_stat): Provide dbase on AIX.
5868 (scan_prog_file): Don't export __dso_handle nor
5870 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5871 (EH_TABLES_CAN_BE_READ_ONLY): Define.
5872 (ASM_OUTPUT_DWARF_PCREL): Define.
5873 (ASM_OUTPUT_DWARF_DATAREL): Define.
5874 (EH_FRAME_THROUGH_COLLECT2): Define.
5875 (EH_FRAME_IN_DATA_SECTION): Delete.
5876 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
5877 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
5879 (rs6000_asm_output_dwarf_datarel): Declare.
5880 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
5881 (rs6000_aix_asm_output_dwarf_datarel): New.
5882 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
5883 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
5884 (EH_FRAME_THROUGH_COLLECT2): Define.
5885 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
5886 (EH_FRAME_THROUGH_COLLECT2): Define.
5887 (EH_TABLES_CAN_BE_READ_ONLY): Define.
5888 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
5889 (EH_FRAME_THROUGH_COLLECT2): New.
5890 (ASM_OUTPUT_DWARF_DATAREL): New.
5891 * doc/tm.texi: Regenerate.
5893 2015-09-18 Richard Biener <rguenther@suse.de>
5895 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
5896 we're in early phase.
5897 (schedule_generic_params_dies_gen): Likewise.
5898 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
5899 work as possible, retaining unhandled cases.
5900 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
5901 clear out generic_type_instances at the end.
5902 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
5903 (dwarf2out_early_finish): ... here. Do most of
5904 gen_remaining_tmpl_value_param_die_attribute here.
5906 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
5908 PR tree-optimization/67283
5909 * tree-sra.c (type_consists_of_records_p): Rename to...
5910 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
5911 (completely_scalarize_record): Rename to...
5912 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
5913 (scalarize_elem): New.
5914 (analyze_all_variable_accesses): Follow renamings.
5916 2015-09-18 Richard Biener <rguenther@suse.de>
5918 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
5921 2015-09-18 Richard Biener <rguenther@suse.de>
5923 PR tree-optimization/66142
5924 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
5925 treat MEM[&x] and x the same.
5926 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
5927 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
5928 when we simplified sth.
5929 (vn_reference_maybe_forwprop_address): Likewise.
5930 (valueize_refs_1): When we simplified through
5931 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
5932 set valueized_anything to true.
5933 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
5934 one ref kills the other instead of just a offset-based test.
5935 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
5936 for the operand_equal_p test to compare bases and also compare
5939 2015-09-17 Christian Bruel <christian.bruel@st.com>
5941 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
5943 2015-09-17 Richard Henderson <rth@redhat.com>
5946 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
5947 pointers that encode the alignment of the object.
5949 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
5951 PR rtl-optimization/66790
5952 * df-problems.c (LIVE): Amend documentation.
5954 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
5956 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
5958 (GTFILES): Replace optabs.c with optabs-libfunc.c.
5959 * genopinit.c (main): Add an include guard to insn-opinit.h.
5960 Protect the rtx_code parts with NUM_RTX_CODE.
5961 * optabs.h: Split parts out to...
5962 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
5963 * optabs.c: Split parts out to...
5964 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
5965 * cilk-common.c: Include optabs-query.h rather than optabs.h.
5966 * fold-const.c: Likewise.
5967 * target-globals.c: Likewise.
5968 * tree-if-conv.c: Likewise.
5969 * tree-ssa-forwprop.c: Likewise.
5970 * tree-ssa-loop-prefetch.c: Likewise.
5971 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
5972 Remove unncessary include files.
5973 * tree-ssa-phiopt.c: Likewise.
5974 * tree-ssa-reassoc.c: Likewise.
5975 * tree-switch-conversion.c: Likewise.
5976 * tree-vect-data-refs.c: Likewise.
5977 * tree-vect-generic.c: Likewise.
5978 * tree-vect-loop.c: Likewise.
5979 * tree-vect-patterns.c: Likewise.
5980 * tree-vect-slp.c: Likewise.
5981 * tree-vect-stmts.c: Likewise.
5982 * tree-vrp.c: Likewise.
5983 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
5984 rather than optabs.h.
5985 * expr.c: Include optabs-tree.h.
5986 * function.c: Likewise.
5988 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
5991 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
5992 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
5993 * config/arm/arm.c: Include common/common-target.h.
5994 (use_return_insn): Return 0 if the static chain register was saved
5995 above a non-APCS frame.
5996 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
5997 (struct scratch_reg): New.
5998 (get_scratch_register_on_entry): New function.
5999 (release_scratch_register_on_entry): Likewise.
6000 (arm_emit_probe_stack_range): Likewise.
6001 (output_probe_stack_range): Likewise.
6002 (arm_expand_prologue): Factor out code dealing with the IP register
6003 for nested function and adjust it for stack checking.
6004 Invoke arm_emit_probe_stack_range if static builtin stack checking
6006 (thumb1_expand_prologue): Sorry out if static builtin stack checking
6008 (arm_expand_epilogue): Add the saved static chain register, if any, to
6009 the amount of pre-pushed registers to pop.
6010 (arm_frame_pointer_required): Return true if static stack checking is
6011 enabled and we want to catch the exception with the EABI unwinder.
6012 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
6013 (UNSPEC_PROBE_STACK_RANGE): Likewise.
6014 * config/arm/arm.md (probe_stack): New insn.
6015 (probe_stack_range): Likewise.
6017 2015-09-17 Richard Biener <rguenther@suse.de>
6019 * genmatch.c (parser::parse_expr): Improve error message
6020 for mis-placed flags.
6022 2015-09-17 Richard Biener <rguenther@suse.de>
6024 * passes.c (rest_of_decl_compilation): Always call early_global_decl
6025 debug hook when we created a varpool node.
6026 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
6027 dwarf2out_early_global_decl, when not just add location or
6028 value attributes to existing DIEs.
6030 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
6032 * config/aarch64/aarch64.md (copysigndf3): New.
6033 (copysignsf3): Likewise.
6035 2015-09-17 David S. Miller <davem@davemloft.net>
6037 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
6038 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
6039 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
6040 (HARD_REGNO_CALLER_SAVE_MODE): Define.
6041 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
6042 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
6043 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
6044 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
6045 provide when flag_pic.
6047 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
6049 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
6050 object_allocator change.
6052 2015-09-17 Bin Cheng <bin.cheng@arm.com>
6054 PR tree-optimization/66388
6055 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
6056 (dump_iv): Dump no_overflow information.
6057 (alloc_iv): Initialize new field for struct iv.
6058 (mark_bivs): Count number of no_overflow bivs.
6059 (find_deriving_biv_for_expr, record_biv_for_address_use): New
6061 (idx_find_step): Call new functions above.
6062 (add_candidate_1, add_candidate): New paramter.
6063 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
6064 (get_computation_aff): Simplify convertion of cand for BIV.
6065 (get_computation_cost_at): Step cand's base if necessary.
6067 2015-09-17 Bin Cheng <bin.cheng@arm.com>
6069 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
6071 (tree_simplify_using_condition): Ditto.
6072 (simplify_using_initial_conditions): Ditto.
6073 (loop_exits_before_overflow): Pass new argument to function
6074 simplify_using_initial_conditions. Remove case for type conversions
6076 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
6078 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
6079 in iv base using loop initial conditions.
6081 2015-09-16 Jeff Law <law@redhat.com>
6083 PR tree-optimization/47679
6084 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
6085 (free_all_edge_infos): Use it.
6086 (allocate_edge_info): Free preexisting edge info data.
6087 (pass_dominator::execute): Set up initial edge info structures.
6088 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
6090 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
6091 If non-null, then push/pop markers appropriately.
6092 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
6093 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
6096 2015-09-16 James Bowman <james.bowman@ftdichip.com>
6098 * config/ft32/ft32.c: Fix the memory address space predicate.
6100 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
6103 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
6104 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
6106 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6108 * toplev.h (check_global_declaration): Remove declaration.
6109 * toplev.c (check_global_declaration): Move to ...
6110 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
6111 (analyze_functions): Update call.
6113 2015-09-16 David S. Miller <davem@davemloft.net>
6115 * lra-constraints.c (simplify_operand_subreg): Do not assume that
6116 lowpart of a SUBREG has offset zero.
6118 2015-09-16 Jeff Law <law@redhat.com>
6120 PR tree-optimization/47679
6121 * tree-ssa-dom.c (enum expr_kind): Moved from here to
6122 tree-ssa-scopedtables.h.
6123 (struct hashable_expr, class expr_hash_elt): Likewise.
6124 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
6125 Move associated methods into tree-ssa-scopedtables.c.
6126 (avail_expr_hash, initialize_expr_from_cond): Similarly.
6127 (hashable_expr_equal_p, add_expr_commutative): Likewise.
6128 (add_hashable_expr): Likewise.
6129 (record_cond): Delete element directly.
6130 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
6131 private copy ctor and assignment operator methods.
6132 (expr_elt_hasher): Inline trivial methods.
6133 (initialize_expr_from_cond): Prototype.
6134 * tree-ssa-scopedtables.c: Add necessary includes, functions and
6135 methods that were previously in tree-ssa-dom.c. Improve various
6138 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
6140 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
6142 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
6145 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
6148 2015-09-16 Richard Biener <rguenther@suse.de>
6151 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
6152 location of possibly shared trees.
6154 2015-09-16 Richard Biener <rguenther@suse.de>
6157 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
6159 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
6161 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
6162 offset and size computations instead of HOST_WIDE_INT.
6164 2015-09-16 Richard Biener <rguenther@suse.de>
6167 * fold-const.c (extract_muldiv_1): Properly extend multiplication
6168 result before builting a tree via wide_int_to_tree.
6170 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
6172 * Makefile.in: Add memory-block.cc
6173 (pool_allocator::initialize): Use fixed block size.
6174 (pool_allocator::release): Use memory_block_pool.
6175 (pool_allocator::allocate): Likewise.
6176 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
6178 * cfg.c (initialize_original_copy_tables): Likewise.
6179 * cselib.c (elt_list_pool, elt_loc_list_pool,
6180 cselib_val_pool): Likewise.
6181 * df-problems.c (df_chain_alloc): Likewise.
6182 * df-scan.c (df_scan_alloc): Likewise.
6183 * dse.c (cse_store_info_pool, rtx_store_info_pool,
6184 read_info_type_pool, insn_info_type_pool, bb_info_pool,
6185 group_info_pool, deferred_change_pool): Likewise.
6186 * et-forest.c (et_nodes, et_occurrences): Likewise.
6187 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
6188 ipcp_agg_lattice_pool): Likewise.
6189 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
6190 * ipa-profile.c (histogram_pool): Likewise.
6191 * ipa-prop.c (ipa_refdesc_pool): Likewise.
6192 * ira-build.c (live_range_pool, allocno_pool, object_pool,
6193 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
6194 * ira-color.c (update_cost_record_pool): Likewise.
6195 * lra-lives.c (lra_live_range_pool): Likewise.
6196 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
6197 * memory-block.cc: New file.
6198 * memory-block.h: New file.
6199 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
6200 * sched-deps.c (sched_deps_init): Likewise.
6201 * sel-sched-ir.c (sched_lists_pool): Likewise.
6202 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
6203 * tree-sra.c (access_pool): Likewise.
6204 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
6205 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
6206 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
6207 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
6208 * tree-ssa-strlen.c (strinfo_pool): Likewise.
6209 * tree-ssa-structalias.c (variable_info_pool): Likewise.
6210 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
6211 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
6213 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
6215 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
6217 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
6220 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
6222 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
6223 to pass TLS call argument, according to current ABI.
6224 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
6225 callx0 for TLS call, according to current ABI.
6227 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
6229 * tree-eh.c (lower_try_finally_dup_block): Clear location information
6230 on stack restore statements.
6231 (decide_copy_try_finally): Do not consider a stack restore statement as
6232 coming from sources.
6234 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
6236 * config/alpha/alpha.c (alpha_expand_block_clear): Use
6237 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
6239 2015-09-15 Jeff Law <law@redhat.com>
6241 PR tree-optimization/47679
6242 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
6243 methods and private members.
6244 (avail_exprs_stack): Similarly. Change type of global
6245 from a pair of expr_hash_elt_t to the new class.
6246 (expr_elt_hasher::hash): Corresponding changes.
6247 (expr_elt_hasher::equal): Similarly.
6248 (avail_expr_hash): Similarly.
6249 (pass_dominator::execute): Similarly.
6250 (dom_opt_dom_walker::thread_across_edge): Similarly.
6251 (record_cond): Similarly.
6252 (dom_opt_dom_walker::before_dom_children): Similarly.
6253 (dom_opt_dom_walker::after_dom_children): Similarly.
6254 (lookup_avail_expr): Likewise.
6255 (initialize_hash_element): Now a expr_hash_elt constructor.
6256 (initialize_hash_element_from_expr): Similarly.
6257 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
6258 (free_expr_hash_elt): Call dtor for the element.
6259 (remove_local_expressions_from_table): Now the "pop_to_marker"
6260 method in the available_exprs_stack class.
6261 (avail_expr_stack::record_expr): Method factored out.
6262 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
6264 (hashable_expr_equal_p): Fix formatting.
6266 2015-09-15 David Malcolm <dmalcolm@redhat.com>
6268 * input.h (location_get_source_line): Drop "expanded_location"
6269 param in favor of a file and line number.
6270 * input.c (location_get_source_line): Likewise.
6271 (dump_location_info): Update for change in signature of
6272 location_get_source_line.
6273 * diagnostic.c (diagnostic_print_caret_line): Likewise.
6275 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
6277 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
6278 Bump to 4KB for SJLJ exceptions.
6279 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
6280 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
6281 * doc/tm.texi: Regenerate.
6283 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6285 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
6286 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
6289 2015-09-15 Richard Biener <rguenther@suse.de>
6291 PR tree-optimization/67470
6292 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
6293 structure for PHI hoisting by inserting a forwarder block
6296 2015-09-15 Christian Bruel <christian.bruel@st.com>
6298 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
6299 (arm_option_print): New function.
6301 2015-09-15 Christian Bruel <christian.bruel@st.com>
6304 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
6305 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
6306 Remove flags parameter.
6307 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
6308 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
6309 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
6310 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
6311 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
6312 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
6313 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
6314 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
6316 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6318 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
6320 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
6321 AARCH64_VALID_SIMD_DREG_MODE.
6323 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6325 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
6326 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
6327 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
6328 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
6329 aarch64_ld4_lane<mode>): Combine together, making...
6330 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
6331 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
6332 aarch64_st4_lane<mode>): Combine together, making...
6333 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
6334 * config/aarch64/iterators.md (nregs): Add comment.
6336 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6338 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
6339 Change operand mode from <V_TWO_ELEM> to BLK.
6340 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
6341 (aarch64_vec_store_lanesoi_lane<mode): Likewise
6342 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
6343 (aarch64_ld2_lane<mode>): Likewise.
6344 (aarch64_st2_lane<VQ:mode>): Likewise.
6345 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
6347 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6349 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
6350 Change operand mode from <V_FOUR_ELEM> to BLK.
6351 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
6352 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
6353 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
6354 (aarch64_ld4_lane<mode>): Likewise.
6355 (aarch64_st4_lane<mode>): Likewise.
6356 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
6358 2015-09-15 Richard Biener <rguenther@suse.de>
6361 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
6362 transfer EH info from old to new stmt.
6363 (replace_call_with_value): Likewise.
6364 (replace_call_with_call_and_fold): Likewise.
6365 (gimple_fold_builtin_memory_op): Likewise.
6366 (gimple_fold_builtin_memset): Likewise.
6367 (gimple_fold_builtin_stpcpy): Likewise.
6368 (gimple_fold_call): Likewise.
6370 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6372 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
6374 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
6375 (aarch64_simd_intEI_type_node): Likewise.
6376 (aarch64_simd_builtin_std_type): Remove EImode case.
6377 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
6378 * config/aarch64/aarch64-modes.def: Remove EImode.
6380 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6382 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
6383 Change operand mode from <V_THREE_ELEM> to BLK.
6384 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
6385 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
6386 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
6387 (aarch64_ld3_lane<mode>): Likewise.
6388 (aarch64_st3_lane<mode>): Likewise.
6389 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
6391 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6393 * config/aarch64/aarch64-simd.md
6394 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
6395 Change all TImode operands to BLKmode.
6396 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
6397 Change all EImode operands to BLKmode.
6398 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
6399 Change all OImode operands to BLKmode.
6401 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
6402 and call set_mem_size.
6403 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
6405 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
6407 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6409 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
6411 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
6413 (vec_store_lanesci_lane<mode>): Rename to...
6414 (aarch64_vec_store_lanesci_lane<mode>): ...this.
6416 (vec_store_lanesxi_lane<mode>): Rename to...
6417 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
6419 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
6420 aarch64_st4_lane<mode>): Follow renaming.
6422 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6424 * config/s390/s390.c (s390_const_operand_ok): Add missing
6427 2015-09-15 Richard Biener <rguenther@suse.de>
6430 * lto-streamer.h (lto_location_cache::current_sysp): Properly
6432 * lto-streamer-out.c (clear_line_info): Likewise.
6434 2015-09-15 Richard Biener <rguenther@suse.de>
6436 * doc/match-and-simplify.texi: Fix wording.
6438 2015-09-15 Bin Cheng <bin.cheng@arm.com>
6440 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
6441 unnecessary type conversion in op1.
6443 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
6445 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
6446 (dup_block_and_redirect): Delete function.
6447 (can_dup_for_shrink_wrapping): New function.
6448 (fix_fake_fallthrough_edge): New function.
6449 (try_shrink_wrapping): Rewrite function.
6450 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
6452 2015-09-14 Rich Felker <dalias@libc.org>
6454 * configure.ac: Change target pattern for sh TLS support
6455 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
6456 * configure: Regenerate.
6458 2015-09-14 Jeff Law <law@redhat.com>
6460 PR tree-optimization/47679
6461 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
6462 type rather than void *.
6464 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
6467 * diagnostic.c (diagnostic_initialize): Do not set
6468 some_warnings_are_errors.
6469 (diagnostic_finish): Use DK_WERROR count instead.
6470 (diagnostic_report_diagnostic): Do not set
6471 some_warnings_are_errors.
6472 * diagnostic.h (struct diagnostic_context): Remove
6473 some_warnings_are_errors.
6475 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
6477 * config/sparc/predicates.md (const_all_ones_operand): Use
6478 CONSTM1_RTX to simplify definition.
6480 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
6483 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
6486 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
6488 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
6489 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
6490 OPT_fshow_column to handled saved option cases.
6491 (append_compiler_options): Do not skip the above added options.
6493 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6496 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
6497 nopcrelative_literal_loads.
6498 (aarch64_classify_address): Likewise.
6499 (aarch64_constant_pool_reload_icode): Define.
6500 (aarch64_secondary_reload): Handle secondary reloads for
6502 (aarch64_override_options): Handle nopcrelative_literal_loads.
6503 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
6504 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
6506 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
6507 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
6508 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
6510 * doc/invoke.texi (mpc-relative-literal-loads): Document.
6512 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
6515 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
6516 sync_compare_and_swap_optab libcall to target_oval.
6518 2015-09-14 Marek Polacek <polacek@redhat.com>
6520 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
6522 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
6524 2015-09-11 Mark Wielaard <mjw@redhat.com>
6527 * toplev.c (check_global_declaration): Check and use
6528 warn_unused_const_variable.
6529 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
6530 (-Wunused-variable): Remove non-constant. For C implies
6531 -Wunused-const-variable.
6532 (-Wunused-const-variable): New.
6534 2015-09-14 Richard Biener <rguenther@suse.de>
6536 * doc/match-and-simplify.texi: Update for changed syntax
6537 of inner ifs and the new switch expression.
6539 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
6541 * config/i386/haswell.md: New file describing Haswell pipeline.
6542 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
6543 haswell-like processors.
6544 (ix86_reassociation_width): Increase reassociation width for 64-bit
6545 Haswell processor family.
6546 * config/i386/i386.md: Introduce haswell cpu and include new md file.
6548 2015-09-14 Richard Biener <rguenther@suse.de>
6550 * doc/match-and-simplify.texi: Fixup some formatting issues
6551 and document the 's' flag.
6553 2015-09-13 Olivier Hainque <hainque@adacore.com>
6554 Eric Botcazou <ebotcazou@adacore.com>
6556 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
6557 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
6558 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
6559 (TARGET_CPU_gr5): Likewise.
6560 (TARGET_CPU_gr6): Likewise.
6561 (MULTILIB_DEFAULTS): Likewise.
6562 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
6563 for mcpu=gr5 and mcpu=gr6.
6564 (MULTILIB_DIRNAMES): Adjust accordingly.
6566 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6568 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
6569 (mem_ref_p): Likewise.
6570 (outermost_indep_loop): Adjust.
6571 (mem_ref_in_stmt): Likewise.
6572 (determine_max_movement): Likewise.
6573 (mem_ref_alloc): Likewise.
6574 (record_mem_ref_loc): Likewise.
6575 (set_ref_stored_in_loop): Likewise.
6576 (mark_ref_stored): Likewise.
6577 (gather_mem_refs_stmt): Likewise.
6578 (mem_refs_may_alias_p): Likewise.
6579 (for_all_locs_in_loop): Likewise.
6580 (struct rewrite_mem_ref_loc): Likewise.
6581 (rewrite_mem_refs): Likewise.
6582 (struct first_mem_ref_loc_1): Likewise.
6583 (first_mem_ref_loc): Likewise.
6584 (struct sm_set_flag_if_changed): Likewise.
6585 (execute_sm_if_changed_flag_set): Likewise.
6586 (execute_sm): Likewise.
6587 (hoist_memory_references):
6588 (struct ref_always_accessed): Likewise.
6589 (ref_always_accessed_p): Likewise.
6590 (refs_independent_p): Likewise.
6591 (record_dep_loop): Likewise.
6592 (ref_indep_loop_p_1): Likewise.
6593 (ref_indep_loop_p_2): Likewise.
6594 (ref_indep_loop_p): Likewise.
6595 (can_sm_ref_p): Likewise.
6596 (find_refs_for_sm): Likewise.
6597 (tree_ssa_lim_finalize): Likewise.
6599 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6601 * dwarf2out.c (dw_attr_ref): Remove typedef.
6602 (dw_line_info_ref): Likewise.
6603 (pubname_ref): Likewise.
6604 (dw_ranges_ref): Likewise.
6605 (dw_ranges_by_label_ref): Likewise.
6606 (comdat_type_node_ref): Likewise.
6608 (get_AT_low_pc): Likewise.
6609 (get_AT_hi_pc): Likewise.
6610 (get_AT_string): Likewise.
6611 (get_AT_flag): Likewise.
6612 (get_AT_unsigned): Likewise.
6613 (get_AT_ref): Likewise.
6614 (get_AT_file): Likewise.
6615 (remove_AT): Likewise.
6616 (print_die): Likewise.
6617 (check_die): Likewise.
6618 (die_checksum): Likewise.
6619 (attr_checksum_ordered): Likewise.
6620 (struct checksum_attributes): Likewise.
6621 (collect_checksum_attributes): Likewise.
6622 (die_checksum_ordered): Likewise.
6623 (same_die_p): Likewise.
6624 (is_declaration_die): Likewise.
6625 (clone_die): Likewise.
6626 (clone_as_declaration): Likewise.
6627 (copy_declaration_context): Likewise.
6628 (break_out_comdat_types): Likewise.
6629 (copy_decls_walk): Likewise.
6630 (output_location_lists): Likewise.
6631 (external_ref_hasher::hash): Likewise.
6632 (optimize_external_refs_1): Likewise.
6633 (build_abbrev_table): Likewise.
6634 (size_of_die): Likewise.
6635 (unmark_all_dies): Likewise.
6636 (size_of_pubnames): Likewise.
6637 (output_die_abbrevs): Likewise.
6638 (output_die): Likewise.
6639 (output_pubnames): Likewise.
6640 (add_ranges_num): Likewise.
6641 (add_ranges_by_labels): Likewise.
6642 (add_high_low_attributes): Likewise.
6643 (gen_producer_string): Likewise.
6644 (dwarf2out_set_name): Likewise.
6645 (new_line_info_table): Likewise.
6646 (prune_unused_types_walk_attribs): Likewise.
6647 (prune_unused_types_update_strings): Likewise.
6648 (prune_unused_types): Likewise.
6649 (resolve_addr): Likewise.
6650 (optimize_location_lists_1): Likewise.
6651 (index_location_lists): Likewise.
6652 (dwarf2out_finish): Likewise.
6654 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6656 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
6658 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6660 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
6661 (dump_asserts_for): Adjust.
6662 (register_new_assert_for): Likewise.
6663 (process_assert_insertions): Likewise.
6664 (insert_range_assertions): Likewise.
6666 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6668 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
6670 (new_temp_expr_table): Adjust.
6671 (free_temp_expr_table): Likewise.
6672 (version_to_be_replaced_p): Likewise.
6673 (make_dependent_on_partition): Likewise.
6674 (add_to_partition_kill_list): Likewise.
6675 (remove_from_partition_kill_list): Likewise.
6676 (add_dependence): Likewise.
6677 (finished_with_expr): Likewise.
6678 (process_replaceable): Likewise.
6679 (kill_expr): Likewise.
6680 (kill_virtual_exprs): Likewise.
6681 (mark_replaceable): Likewise.
6682 (find_replaceable_in_bb): Likewise.
6683 (find_replaceable_exprs): Likewise.
6684 (debug_ter): Likewise.
6686 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6688 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
6689 (struct btr_user): Rename from btr_user_s.
6690 (struct btr_def): Rename from btr_def_s.
6691 (find_btr_def_group): Adjust.
6692 (add_btr_def): Likewise.
6693 (new_btr_user): Likewise.
6694 (note_other_use_this_block): Likewise.
6695 (compute_defs_uses_and_gen): Likewise.
6696 (link_btr_uses): Likewise.
6697 (build_btr_def_use_webs): Likewise.
6698 (block_at_edge_of_live_range_p): Likewise.
6699 (btr_def_live_range): Likewise.
6700 (combine_btr_defs): Likewise.
6701 (move_btr_def): Likewise.
6702 (migrate_btr_def): Likewise.
6703 (migrate_btr_defs): Likewise.
6705 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6707 * var-tracking.c (shared_hash_def): Rename to shared_hash.
6708 (shared_hash): Remove typedef.
6709 (struct dataflow_set): Adjust.
6710 (shared_hash_unshare): Likewise.
6711 (dataflow_set_merge): Likewise.
6712 (vt_initialize): Likewise.
6713 (vt_finalize): Likewise.
6715 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6717 * var-tracking.c (struct location_chain): Rename from
6719 (struct variable_part): Adjust.
6720 (variable_htab_free): Likewise.
6721 (unshare_variable): Likewise.
6722 (get_init_value): Likewise.
6723 (get_addr_from_local_cache): Likewise.
6724 (drop_overlapping_mem_locs): Likewise.
6725 (val_reset): Likewise.
6726 (struct variable_union_info): Likewise.
6727 (variable_union): Likewise.
6728 (find_loc_in_1pdv): Likewise.
6729 (insert_into_intersection): Likewise.
6730 (intersect_loc_chains): Likewise.
6731 (canonicalize_loc_order_check): Likewise.
6732 (canonicalize_values_mark): Likewise.
6733 (canonicalize_values_star): Likewise.
6734 (canonicalize_vars_star): Likewise.
6735 (variable_merge_over_cur): Likewise.
6736 (remove_duplicate_values): Likewise.
6737 (variable_post_merge_new_vals): Likewise.
6738 (variable_post_merge_perm_vals): Likewise.
6739 (find_mem_expr_in_1pdv): Likewise.
6740 (dataflow_set_preserve_mem_locs): Likewise.
6741 (dataflow_set_remove_mem_locs): Likewise.
6742 (variable_part_different_p): Likewise.
6743 (onepart_variable_different_p): Likewise.
6744 (find_src_set_src): Likewise.
6745 (dump_var): Likewise.
6746 (set_slot_part): Likewise.
6747 (clobber_slot_part): Likewise.
6748 (delete_slot_part): Likewise.
6749 (vt_expand_var_loc_chain): Likewise.
6750 (emit_note_insn_var_location): Likewise.
6751 (vt_finalize): Likewise.
6753 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6755 * dse.c (store_info_t): Remove typedef.
6756 (group_info_t): Likewise.
6757 (const_group_info_t): Likewise.
6758 (deferred_change_t): Likewise.
6759 (get_group_info): Adjust.
6760 (free_store_info): Likewise.
6761 (canon_address): Likewise.
6762 (clear_rhs_from_active_local_stores): Likewise.
6763 (record_store): Likewise.
6764 (replace_read): Likewise.
6765 (check_mem_read_rtx): Likewise.
6766 (scan_insn): Likewise.
6767 (remove_useless_values): Likewise.
6768 (dse_step1): Likewise.
6769 (dse_step2_init): Likewise.
6770 (dse_step2_nospill): Likewise.
6771 (scan_stores_nospill): Likewise.
6772 (scan_reads_nospill): Likewise.
6773 (dse_step3_exit_block_scan): Likewise.
6774 (dse_step3): Likewise.
6775 (dse_step5_nospill): Likewise.
6776 (dse_step6): Likewise.
6778 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6780 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
6781 (alias_set_entry): Remove typedef.
6782 (alias_set_subset_of): Adjust.
6783 (alias_sets_conflict_p): Likewise.
6784 (init_alias_set_entry): Likewise.
6785 (get_alias_set): Likewise.
6786 (new_alias_set): Likewise.
6787 (record_alias_subset): Likewise.
6789 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
6791 * doc/install.texi (Downloading the source): Mark up
6792 contrib/download_prerequisites properly and drop leading "./".
6794 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6796 * config/arc/arc.h: Remove define of STRUCT_VALUE.
6797 * config/lm32/lm32.h: Likewise.
6798 * config/mep/mep.h: Likewise.
6799 * config/visium/visium.h: Likewise.
6800 * system.h: Poison STRUCT_VALUE macro.
6802 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
6804 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
6805 CONSTANT_P operands.
6807 2015-09-11 David S. Miller <davem@davemloft.net>
6809 * config/sparc/constraints.md: Make "U" constraint a real register
6811 * config/sparc/sparc.c (TARGET_LRA_P): Define.
6812 (D_MODES, DF_MODES): Add missing cast.
6813 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
6814 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
6815 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
6817 * config/sparc/sparc.h (PROMOTE_MODE): Define.
6818 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
6819 provide these insn when flag_pic.
6821 2015-09-11 Jeff Law <law@redhat.com>
6823 PR tree-optimization/47679
6824 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
6825 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
6826 member with m_. Update inline member functions as necessary. Add
6828 * tree-ssa-scopedtables.c: Update const_and_copies's member
6829 functions to use m_ prefix to access the stack.
6831 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
6833 * graphite-optimize-isl.c (disable_tiling): Remove.
6834 (get_schedule_for_band): Do not use disable_tiling.
6835 (get_prevector_map): Delete function.
6836 (enable_polly_vector): Remove.
6837 (get_schedule_for_band_list): Remove dead code.
6839 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
6841 * graphite-optimize-isl.c (get_tile_map): Refactor.
6842 (get_schedule_for_band): Same.
6843 (getScheduleForBand): Same.
6844 (get_prevector_map): Same.
6845 (get_schedule_for_band_list): Same.
6846 (get_schedule_map): Same.
6847 (get_single_map): Same.
6848 (apply_schedule_map_to_scop): Same.
6849 (optimize_isl): Same.
6851 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6854 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
6856 * config/aarch64/iterators.md (GPF_TF_F16): New.
6859 2015-09-10 Nathan Sidwell <nathan@acm.org>
6861 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
6862 (nvptx_reorg): Adjust comments.
6864 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
6867 * configure.ac: Check if setenv and unsetenv are declared.
6868 * configure: Rebuild.
6869 * config.in: Rebuild.
6870 * system.h: Declare setenv and unsetenv if not declared.
6872 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6874 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
6875 commentary to simplify permute mask adjustment equation.
6876 (special_handling_values): Add SH_VPERM.
6877 (const_load_sequence_p): New function.
6878 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
6879 the mask loaded from the constant pool.
6880 (adjust_vperm): New function.
6881 (handle_special_swappables): Call adjust_vperm.
6882 (dump_swap_insn_table): Handle SH_VPERM.
6884 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
6886 * shrink-wrap.c (requires_stack_frame_p): Remove static.
6887 * shrink-wrap.h (requires_stack_frame_p): Put back.
6889 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
6891 * reload1.c (elimination_costs_in_insn): Locally turn
6892 -Wmaybe-uninitialized into a warning.
6894 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
6896 * shrink-wrap.c (requires_stack_frame_p): Make static.
6897 (prepare_shrink_wrap): Likewise.
6898 (dup_block_and_redirect): Likewise.
6899 * shrink-wrap.h: Remove declarations of those functions.
6901 2015-09-10 Mark Wielaard <mjw@redhat.com>
6903 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
6905 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
6908 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
6909 missing simplify_gen_subreg.
6911 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6913 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
6914 the vector element is bigger than 64 bit.
6916 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6918 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
6919 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
6921 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6923 * config/s390/s390.c: Add V1TImode to constant pool modes.
6925 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6928 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
6929 predicate. Set predicable_short_it attr to "no".
6931 2015-09-10 Jiong Wang <jiong.wang@arm.com>
6933 PR rtl-optimization/67421
6934 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
6935 left wide shift tranformation.
6937 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
6939 * common/config/arc/arc-common.c: Remove references to A5.
6940 * config/arc/arc-opts.h: Likewise.
6941 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
6942 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
6943 * config/arc/t-arc-newlib: Likewise.
6945 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
6947 * config/arc/arc.md (length): Fix attribute length for conditional
6948 executed instructions with long immediate.
6950 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6952 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
6953 type for second alternative.
6955 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
6957 * doc/invoke.texi (Downloading GCC): Mention
6958 contrib/download_prerequisites script.
6960 2015-09-10 Jakub Jelinek <jakub@redhat.com>
6963 * gimplify.c (gimplify_omp_for): If inner stmt is not found
6964 for combined loop, assert seen_error () and return GS_ERROR.
6967 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
6968 if decl is already in outer->variables.
6971 * gimplify.c (gimplify_scan_omp_clauses): Instead of
6972 asserting that decl is not specified in octx->variables,
6973 break out of the loop if it is.
6976 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
6977 iterator is not explicitly determined, but is defined inside
6978 of the combined workshare region, handle it like if it has
6979 DECL_EXPR in OMP_FOR_PRE_BODY.
6981 2015-09-09 Nathan Sidwell <nathan@acm.org>
6983 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
6984 (*cmp<mode>): Add assembler spacing.
6985 (setcc_int<mode>, set_cc_float<mode>): Likewise.
6986 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
6988 (write_func_decl_from_insn): Refactor argument loops & comma emission.
6989 (nvptx_expand_call): Likewise.
6990 (nvptx_output_call_insn): Likewise.
6991 (nvptx_reorg_subreg): Add spacing.
6993 2015-09-09 Marek Polacek <polacek@redhat.com>
6996 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
6999 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
7002 * doc/invoke.texi ([Wsubobject-linkage]): Document.
7004 2015-09-09 Tom de Vries <tom@codesourcery.com>
7006 * params-list.h: Add missing copyright notice.
7008 2015-09-09 Nathan Sidwell <nathan@acm.org>
7010 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
7011 sel_truesi, not andsi.
7013 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7015 * config/arm/arm.md (*subsi3_compare0): Rename to...
7016 (subsi3_compare0): ... This.
7017 (modsi3): New define_expand.
7018 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
7019 when operand is power of 2.
7021 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7023 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
7024 (*neg<mode>2_compare0): Rename to...
7025 (neg<mode>2_compare0): ... This.
7026 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
7027 Move check for speed inside the if-then-elses. Reflect
7028 CSNEG sequence in MOD by power of 2 case.
7030 2015-09-09 Alan Modra <amodra@gmail.com>
7033 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
7034 reload replacement for PRE_MODIFY address reg.
7036 2015-09-09 Sebastian Pop <s.pop@samsung.com>
7038 PR tree-optimization/53852
7039 * config.in: Regenerate.
7040 * configure: Regenerate.
7041 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
7042 * graphite-optimize-isl.c (optimize_isl): Stop computation when
7043 PARAM_MAX_ISL_OPERATIONS is reached.
7044 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
7045 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
7046 result equal to isl_stat_ok as the status now can be isl_error_quota.
7047 (subtract_commutative_associative_deps): Same.
7048 (compute_deps): Same.
7050 2015-09-08 Aditya Kumar <hiraditya@msn.com>
7051 Sebastian Pop <s.pop@samsung.com>
7053 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
7054 Return the parameter if it was saved in corresponding
7055 parameter_rename_map of the region.
7056 (copy_def): Copy def from sese region to the newly created region.
7057 (copy_internal_parameters): Copy all the internal parameters defined
7058 within a region to the newly created region.
7059 (graphite_regenerate_ast_isl): Copy parameters to the new region before
7060 translating isl to gimple.
7061 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
7062 the loop-nest does not have any data-references.
7063 (build_graphite_scops): Create a scop only when there is at least one
7065 (contains_only_close_phi_nodes): Deleted.
7066 (print_graphite_scop_statistics): Deleted
7067 (print_graphite_statistics): Deleted
7068 (limit_scops): Deleted.
7069 (build_scops): Removed call to limit_scops.
7070 * sese.c (new_sese): Construct.
7071 (free_sese): Destruct.
7072 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
7074 (set_rename): Pass sese region so that parameters inside the region can
7075 be added to its parameter_rename_map.
7076 (rename_uses): Pass sese region.
7077 (graphite_copy_stmts_from_block): Do not copy parameters that have been
7078 generated in the header of the scop. For each SSA_NAME in the
7079 parameter_rename_map rename its usage.
7080 (invariant_in_sese_p_rec): Return false if tree t is defined outside
7082 (scalar_evolution_in_region): If the tree t is invariant just return t.
7083 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
7084 struct sese to keep track of all the parameters which need renaming.
7085 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
7087 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
7089 2015-09-08 Tom de Vries <tom@codesourcery.com>
7091 * Makefile.in (generated_files): Add params.list.
7092 (params.list, s-params.list): Add rule.
7093 * params.h (enum compiler_param): Include params-list.h. Move define
7094 DEFPARAM, include params.def and undef DEFPARAM ...
7095 * params-list.h: ... here. New file.
7097 2015-09-08 David Malcolm <dmalcolm@redhat.com>
7099 * pretty-print.h (printer_fn): Fix typo in comment.
7101 2015-09-07 Jeff Law <law@redhat.com>
7103 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
7105 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7107 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
7108 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
7109 (arm_neon_fp16_hw): New.
7111 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7113 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
7114 UNITS_PER_WORD >= 4.
7116 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7118 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
7119 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
7120 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
7121 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
7122 (aarch64_float_extend_lo_v2df): Rename to...
7123 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
7125 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
7126 (float_extend_lo): Add v4sf.
7128 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
7129 * config/aarch64/iterators.md (VQ_HSF): New iterator.
7130 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
7131 (Vwide): New mode_attr.
7133 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7135 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
7136 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
7137 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
7138 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
7139 V4HF and V8HF variants to iterator.
7141 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
7143 * config/aarch64/iterators.md (VDQF_F16): New.
7144 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
7146 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7148 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
7149 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
7150 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
7151 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
7152 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
7153 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
7154 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
7155 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
7156 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
7157 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
7158 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
7159 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
7160 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
7161 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
7162 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
7163 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
7164 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
7165 vld1q_dup_f16): New.
7167 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7169 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
7170 Reparameterize to...
7171 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
7172 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
7173 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
7175 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
7177 (float_truncate_lo_): Use BUILTIN_VDF iterator.
7179 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
7181 * config/aarch64/iterators.md (VDF, Vdtype): New.
7182 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
7184 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7186 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
7187 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
7188 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
7189 Add __builtin_aarch64_simd_hf.
7190 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
7191 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
7192 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
7193 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
7194 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
7195 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
7196 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
7197 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
7198 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
7200 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
7201 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
7202 (VDC, Vdbl): Add V4HF.
7204 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7206 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
7207 V4HFmode and V8HFmode.
7208 (aarch64_split_simd_move): Add case for V8HFmode.
7209 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
7210 (aarch64_simd_builtin_std_type): Handle HFmode.
7211 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
7213 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
7214 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
7215 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
7217 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
7220 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
7221 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
7223 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
7224 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
7225 vst1q_lane_f16): New.
7226 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
7227 (VALLDI_F16, VALL_F16): New.
7228 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
7229 Add cases for V4HF and V8HF.
7230 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
7232 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7234 * config/arm/arm-builtins.c (VAR11, VAR12): New.
7235 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
7236 vld4_dup): Add v4hf variant.
7237 (vget_high, vget_low): Add v8hf variant.
7238 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
7239 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
7240 v4hf and v8hf variants.
7242 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
7244 (V_DOUBLE): Add case for V4HF.
7246 (V_HALF): Add case for V8HF.
7247 (VDQX): Add V4HF, V8HF.
7248 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
7249 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
7251 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
7252 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
7253 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
7254 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
7255 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
7256 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
7257 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
7258 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
7259 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
7261 (neon_vcreate, neon_vreinterpretv8qi<mode>,
7262 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
7263 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
7264 Change VDX to VD_RE.
7266 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
7267 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
7268 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
7270 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
7271 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
7272 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
7273 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
7274 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
7275 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
7276 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
7277 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
7278 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
7280 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7282 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
7283 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
7284 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
7285 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
7286 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
7287 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
7288 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
7289 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
7290 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
7291 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
7294 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7296 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
7298 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
7300 * config/arm/arm-builtins.c (v8hf_UP): New.
7301 (arm_init_simd_builtin_types): Initialise Float16x8_t.
7303 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
7305 * config/arm/arm_neon.h (float16x8_t): New typedef.
7307 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7309 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
7310 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
7311 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
7312 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
7313 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
7314 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
7315 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
7316 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
7317 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
7318 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
7320 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
7322 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
7323 non-alphanumeric characters in the symbol name.
7325 2015-09-07 Marek Polacek <polacek@redhat.com>
7328 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
7331 2015-09-07 Marek Polacek <polacek@redhat.com>
7333 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
7335 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
7337 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
7340 2015-09-04 Jakub Jelinek <jakub@redhat.com>
7343 * tree-ssa-live.c: Include cfgloop.h.
7344 (remove_unused_locals): Clear loop->simduid if simduid is about
7345 to be removed from cfun->local_decls.
7347 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7350 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
7353 2015-09-04 Tom de Vries <tom@codesourcery.com>
7355 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
7357 2015-09-04 Jeff Law <law@redhat.com>
7359 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
7360 unnecessary constructor. It's now trivial and implemented inside...
7361 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
7362 constructor. Add comments to various methods. Remove unused
7364 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
7365 * tree-vrp.c (identify_jump_threads): Likewise.
7366 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
7368 (thread_across_edge): Similarly.
7369 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
7370 arguments in constructor call.
7372 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
7374 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
7375 temp path contains a '-'.
7377 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
7378 Petr Murzin <petr.murzin@intel.com>
7379 Kirill Yukhin <kirill.yukhin@intel.com>
7381 * config/i386/i386-builtin-types.def
7382 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
7383 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
7384 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
7385 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
7386 * config/i386/i386.c
7387 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
7388 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
7389 IX86_BUILTIN_SCATTERALTDIV16SI.
7390 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
7391 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
7392 __builtin_ia32_scatteraltdiv8si.
7393 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
7394 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
7395 IX86_BUILTIN_SCATTERALTDIV16SI.
7396 (ix86_vectorize_builtin_scatter): New.
7397 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
7398 ix86_vectorize_builtin_scatter.
7400 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
7401 Petr Murzin <petr.murzin@intel.com>
7402 Kirill Yukhin <kirill.yukhin@intel.com>
7404 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
7405 * doc/tm.texi: Regenerate.
7406 * target.def: Add scatter builtin.
7407 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
7408 for loads/stores in case of gather/scatter accordingly.
7409 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
7410 STMT_VINFO_GATHER_P(S).
7411 (vect_check_gather): Rename to ...
7412 (vect_check_gather_scatter): this.
7413 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
7414 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
7415 (vect_check_gather_scatter): Use it instead of vect_check_gather.
7416 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
7417 variable and new checkings for it accordingly.
7419 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
7420 STMT_VINFO_GATHER_P(S).
7421 (vect_check_gather_scatter): Use it instead of vect_check_gather.
7422 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
7424 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
7426 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
7428 (mulv16qi3): New define_expand.
7430 2015-09-03 Martin Sebor <msebor@redhat.com>
7433 * doc/extend.texi (Other Builtins): Document when the address
7434 of a built-in function can be taken.
7436 2015-09-03 Richard Biener <rguenther@suse.de>
7438 * dwarf2out.c (flush_limbo_die_list): Split out from ...
7439 (dwarf2out_early_finish): ... here.
7440 (dwarf2out_finish): Do not call dwarf2out_early_finish but
7441 flush_limbo_die_list. Assert we have no deferred asm names.
7443 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7445 * optabs.c (expand_binop): Don't create a broadcast vector with a
7446 source element wider than the inner mode.
7448 2015-09-03 Richard Biener <rguenther@suse.de>
7450 * varasm.c (output_constant): Use fold_convert instead of
7453 2015-09-03 Tom de Vries <tom@codesourcery.com>
7455 PR tree-optimization/65637
7456 * omp-low.c (expand_omp_for_static_chunk): Handle case that
7457 fin_bb has 2 predecessors.
7459 2015-09-03 Tom de Vries <tom@codesourcery.com>
7461 PR tree-optimization/65637
7462 * omp-low.c (find_phi_with_arg_on_edge): New function.
7463 (expand_omp_for_static_chunk): Fix inner loop phi.
7465 2015-09-03 Tom de Vries <tom@codesourcery.com>
7467 PR tree-optimization/65637
7468 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
7471 2015-09-03 Tom de Vries <tom@codesourcery.com>
7473 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
7475 2015-09-03 Tom de Vries <tom@codesourcery.com>
7477 * doc/invoke.texi (parloops-chunk-size): Add item.
7478 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
7479 * tree-parloops.c: Include params.h.
7480 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
7481 param parloops-chunk-size is used.
7483 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7486 * fold-const.c (fold_binary_loc) : Move
7487 Transform (x >> c) << c into x & (-1<<c) or
7488 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
7489 types using simplify and match.
7490 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
7491 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
7493 2015-09-03 Richard Biener <rguenther@suse.de>
7496 * tree-ssa-structalias.c (ctor_for_analysis): New function.
7497 (create_variable_info_for_1): Use ctor_for_analysis instead
7499 (create_variable_info_for): Likewise.
7501 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
7504 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
7505 in new callgraph edge.
7507 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
7512 * config/aarch64/aarch64-simd.md
7513 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
7514 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
7515 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
7516 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
7518 2015-09-02 Alan Modra <amodra@gmail.com>
7520 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
7521 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
7522 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
7524 2015-09-02 Alan Modra <amodra@gmail.com>
7527 * config/rs6000/predicates.md (current_file_function_operand): Don't
7528 return true for weak symbols.
7529 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
7531 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
7532 Andrew Bennett <andrew.bennett@imgtec.com>
7534 * config/mips/mips-opts.h (mips_cb_setting): New enum.
7535 * config/mips/mips-protos.h: Add definitions for
7536 mips_output_jump and mips_output_equal_conditional_branch
7537 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
7539 (mips_emit_compare): Add support for the MIPS R6 conditional
7541 (mips_process_sync_loop): Likewise.
7542 (mips_output_order_conditional_branch): Likewise.
7543 (mips16_build_call_stub): Change MIPS_CALL to
7545 (mips_print_operand_punctuation): Update 's' case to only
7546 apply to micromips r2.
7547 (mips_adjust_insn_length): Add support for forbidden slot
7549 (mips_avoid_hazard): Likewise.
7550 (mips_reorg_process_insns): Likewise.
7551 (mips_output_jump): New function.
7552 (mips_output_equal_conditional_branch): Likewise.
7553 (mips_output_conditional_branch): Use jrc/bc if compact
7554 branch support is enabled. Ensure the forbidden slots
7555 between the two branch instructions is filled with a nop.
7556 (mips_option_override): Add support to process the compact
7557 branch option and set the correct defaults. Prevent
7558 non-explict relocs being using for MIPS R6.
7559 (mips_trampoline_init): Add compact branch support.
7560 (mips_mult_zero_zero_cost): Allow zero initialisation of
7561 accumulators with TARGET_DSP.
7562 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
7563 (TARGET_CB_MAYBE): New define.
7564 (TARGET_CB_ALWAYS): New define.
7565 (ISA_HAS_DELAY_SLOTS): New define.
7566 (ISA_HAS_COMPACT_BRANCHES): New define.
7567 (ISA_HAS_JRC): New define.
7568 (MIPS_BRANCH_C): New define.
7569 (MIPS_CALL): Removed.
7570 (MICROMIPS_J): Removed.
7571 * config/mips/mips.md (compact_form): New attr.
7572 (hazard): Add support for forbidden slots.
7573 (define_delay): Add support for compact branches.
7574 (*branch_order<mode>): Likewise.
7575 (*branch_order<mode>_inverted): Likewise.
7576 (*branch_equality<mode>): Likewise.
7577 (*branch_equality<mode>_inverted): Likewise.
7578 (*jump_absolute): Likewise.
7579 (*jump_pic): Likewise.
7580 (indirect_jump): Use mips_output_jump to produce assembly output.
7581 (tablejump_<mode>"): Likewise.
7582 (*<optab>"): Likewise.
7583 (<optab>_internal): Likewise.
7584 (sibcall_internal): Likewise.
7585 (sibcall_value_internal): Likewise.
7586 (sibcall_value_multiple_internal): Likewise.
7587 (call_internal): Likewise.
7588 (call_split): Likewise.
7589 (call_internal_direct): Likewise.
7590 (call_direct_split): Likewise.
7591 (call_value_internal): Likewise.
7592 (call_value_split): Likewise.
7593 (call_value_internal_direct): Likewise.
7594 (call_value_direct_split): Likewise.
7595 (call_value_multiple_internal): Likewise.
7596 (call_value_multiple_split): Likewise.
7597 (mips_get_fcsr_mips16_<mode>): Likewise.
7598 (mips_set_fcsr_mips16_<mode>): Likewise.
7599 (tls_get_tp_mips16_<mode>): Likewise.
7600 * config/mips/mips.opt: Add -mcompact-branches option.
7601 * config/mips/predicates.md (order_operator): Ensure the
7602 conditional compact branches are only used if the ISA them.
7603 * doc/invoke.texi: Document -mcompact-branches option.
7605 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
7608 * lra-lives.c (process_bb_lives): Process move pseudos with the
7609 same value for copies and preferences
7610 * lra-constraints.c (match_reload): Create match reload pseudo
7611 with the same value from single dying input pseudo.
7613 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
7616 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
7618 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
7620 * trans-mem.c: Add contributed-by.
7621 * trans-mem.h: Same.
7623 2015-09-01 Richard Biener <rguenther@suse.de>
7625 * expr.c (expand_expr_real_1): For expanding TERed defs
7626 set the current location to that of the def if not UNKNOWN.
7628 2015-09-01 David Sherwood <david.sherwood@arm.com>
7630 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
7632 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7634 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
7635 then_cost, else_cost fields. Change branch_cost field to unsigned int.
7636 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
7638 (noce_simple_bbs): New function.
7639 (noce_try_move): Bail if basic blocks are not simple.
7640 (noce_try_store_flag): Likewise.
7641 (noce_try_store_flag_constants): Likewise.
7642 (noce_try_addcc): Likewise.
7643 (noce_try_store_flag_mask): Likewise.
7644 (noce_try_cmove): Likewise.
7645 (noce_try_minmax): Likewise.
7646 (noce_try_abs): Likewise.
7647 (noce_try_sign_mask): Likewise.
7648 (noce_try_bitop): Likewise.
7649 (bbs_ok_for_cmove_arith): New function.
7650 (noce_emit_all_but_last): Likewise.
7651 (noce_emit_insn): Likewise.
7652 (noce_emit_bb): Likewise.
7653 (noce_try_cmove_arith): Handle non-simple basic blocks.
7654 (insn_valid_noce_process_p): New function.
7655 (contains_mem_rtx_p): Likewise.
7656 (bb_valid_for_noce_process_p): Likewise.
7657 (noce_process_if_block): Allow non-simple basic blocks
7660 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
7662 * tree-ssa-dom.c (record_equivalences_from_phis,
7663 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
7664 (lookup_avail_expr): Likewise, and remove comment and unused temp.
7666 2015-09-01 Nick Clifton <nickc@redhat.com>
7668 * config/msp430/msp430.opt (mcpu): Fix typo.
7670 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7672 * config/aarch64/aarch64.c (aarch64_set_current_function):
7673 Re-layout any vector parameters have non-simd layout.
7674 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
7676 (aarch64_simd_expand_args): Delete call to the above.
7678 2015-08-31 Mike Frysinger <vapier@gentoo.org>
7680 * doc/invoke.texi (asan-stack): Add space before option.
7682 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
7684 * tree.h (zerop): New function.
7685 * tree.c (zerop): Likewise.
7686 (element_precision): Handle expressions.
7687 * match.pd (define_predicates): Add zerop.
7688 (x <= +Inf): Fix comment.
7689 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
7690 * fold-const.c (fold_binary_loc): ... here. Remove.
7692 2015-08-31 Richard Biener <rguenther@suse.de>
7695 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
7697 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
7699 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
7700 (CEXPI): New operator list.
7701 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
7702 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
7704 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
7706 2015-08-31 Tom de Vries <tom@codesourcery.com>
7708 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
7709 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
7711 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
7712 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
7713 (rewrite_into_loop_closed_ssa): ... here.
7714 (replace_uses_in_dominated_bbs): Remove function.
7715 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
7716 rewrite_into_loop_closed_ssa_1.
7718 2015-08-31 Michael Matz <matz@suse.de>
7720 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
7721 enter entry and exit blocks for reverse post order.
7723 2015-08-31 Richard Biener <rguenther@suse.de>
7725 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
7726 (lto_location_cache::current_sysp): Likewise.
7727 (output_block::current_sysp): Likewise.
7728 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
7729 (lto_location_cache::apply_location_cache): Properly record
7730 system header locations.
7731 (lto_location_cache::input_location): Input whether a file
7733 * lto-streamer-out.c (lto_output_location): Stream whether a file
7736 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7739 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
7741 2015-08-31 Tom de Vries <tom@codesourcery.com>
7743 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
7744 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
7745 Improve function header comments.
7747 2015-08-30 Michael Collison <michael.collison@linaro.org>
7750 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
7753 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7755 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
7756 special_handling bitfield.
7757 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
7758 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
7759 that represents a general xxpermdi.
7760 (insn_is_swappable_p): Add handling for vec_concat of two
7761 doublewords, which maps to a specific xxpermdi.
7762 (adjust_xxpermdi): New function.
7763 (adjust_concat): Likewise.
7764 (handle_special_swappables): Call adjust_xxpermdi and
7766 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
7768 2015-08-30 Rich Felker <dalias@libc.org>
7770 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
7771 case instead of sh[123456ble]-*-*.
7773 2015-08-29 Anatoly Sokolov <aesok@post.ru>
7775 * ira.c (print_unform_and_important_classes,
7776 print_translated_classes): Remove reg_class_names static array.
7777 (print_unform_and_important_classes): Rename to ...
7778 (print_uniform_and_important_classes): ... this.
7779 (ira_debug_allocno_classes): Update accordingly.
7781 2015-08-29 Tom de Vries <tom@codesourcery.com>
7783 PR tree-optimization/46193
7784 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
7787 2015-08-28 Jeff Law <law@redhat.com>
7790 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7791 unable to find X NE 0 in the tables, return X as the simplified
7793 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7794 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
7796 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7797 after removing the control flow statement and unnecessary edges.
7799 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
7802 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
7804 PR tree-optimization/67283
7805 * tree-sra.c (type_consists_of_records_p): Rename to...
7806 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7808 (completely_scalarize_record): Rename to...
7809 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
7811 (scalarize_elem): New.
7813 2015-08-28 Jiong Wang <jiong.wang@arm.com>
7815 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
7816 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
7817 (aarch64_symbol_type): Likewise.
7818 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7820 (aarch64_expand_mov_immediate): Likewise.
7821 (aarch64_print_operand): Likewise.
7822 (aarch64_classify_tls_symbol): Likewise.
7824 2015-08-28 Richard Biener <rguenther@suse.de>
7826 * cgraphunit.c (symbol_table::compile): Move early debug generation
7828 (symbol_table::finalize_compilation_unit): ... back here and
7829 add a !seen_error () guard.
7831 2015-08-27 Sebastian Pop <s.pop@samsung.com>
7833 * toplev.c (process_options): Do not use flag_loop_block,
7834 flag_loop_interchange, and flag_loop_strip_mine. Add check for
7835 flag_loop_optimize_isl.
7837 2015-08-27 Sebastian Pop <s.pop@samsung.com>
7839 * Makefile.in (OBJS): Remove graphite-blocking.o and
7840 graphite-interchange.o.
7841 * common.opt (floop-strip-mine, floop-interchange, floop-block):
7842 Alias of floop-nest-optimize.
7843 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
7844 Document as alias of -floop-nest-optimize.
7845 * graphite-blocking.c: Remove.
7846 * graphite-interchange.c: Remove.
7847 * graphite-optimize-isl.c: Include dumpfile.h.
7848 (getScheduleForBand): Add dump for tiled loops. Use
7849 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
7850 * graphite-poly.c (scop_max_loop_depth): Remove.
7851 (print_scattering_function_1): Remove.
7852 (print_scattering_function): Remove.
7853 (print_scattering_functions): Remove.
7854 (debug_scattering_function): Remove.
7855 (debug_scattering_functions): Remove.
7856 (apply_poly_transforms): Remove use of flag_loop_block,
7857 flag_loop_strip_mine, and flag_loop_interchange.
7858 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
7860 (print_pdr_access_layout): Remove.
7861 (print_pdr): Print ISL representation.
7862 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
7863 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
7865 (openscop_print_pbb_domain): Remove.
7866 (print_pbb): Remove call to print_scattering_function.
7867 (openscop_print_scop_context): Remove.
7868 (print_scop_context): Do not print matrices anymore.
7869 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
7870 SCOP_TRANSFORMED_SCHEDULE.
7871 (print_isl_set): Add printing of a new line.
7872 (print_isl_map): Same.
7873 (print_isl_aff): Same.
7874 (print_isl_constraint): Same.
7875 (loop_to_lst): Remove.
7876 (scop_to_lst): Remove.
7877 (lst_indent_to): Remove.
7878 (print_lst): Remove.
7879 (debug_lst): Remove.
7880 (dot_lst_1): Remove.
7882 (reverse_loop_at_level): Remove.
7883 (reverse_loop_for_pbbs): Remove.
7884 * graphite-poly.h (pdr_dim_iter_domain): Remove.
7885 (pdr_nb_params): Remove.
7886 (pdr_alias_set_dim): Remove.
7887 (pdr_subscript_dim): Remove.
7888 (pdr_iterator_dim): Remove.
7889 (pdr_parameter_dim): Remove.
7890 (same_pdr_p): Remove.
7891 (struct poly_scattering): Remove.
7892 (struct poly_bb): Remove _original, _transformed, _saved.
7893 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
7894 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
7895 (PBB_NB_LOCAL_VARIABLES): Remove.
7896 (PBB_NB_SCATTERING_TRANSFORM): Remove.
7897 (schedule_to_scattering): Remove.
7898 (number_of_write_pdrs): Remove.
7899 (pbb_dim_iter_domain): Remove.
7900 (pbb_nb_params): Remove.
7901 (pbb_nb_scattering_orig): Remove.
7902 (pbb_nb_scattering_transform): Remove.
7903 (pbb_nb_dynamic_scattering_transform): Remove.
7904 (pbb_nb_local_vars): Remove.
7905 (pbb_iterator_dim): Remove.
7906 (pbb_parameter_dim): Remove.
7907 (psco_scattering_dim): Remove.
7908 (psct_scattering_dim): Remove.
7909 (psct_local_var_dim): Remove.
7910 (psco_iterator_dim): Remove.
7911 (psct_iterator_dim): Remove.
7912 (psco_parameter_dim): Remove.
7913 (psct_parameter_dim): Remove.
7914 (psct_dynamic_dim): Remove.
7915 (psct_static_dim): Remove.
7916 (psct_add_local_variable): Remove.
7917 (new_lst_loop): Remove.
7918 (new_lst_stmt): Remove.
7921 (lst_add_loop_under_loop): Remove.
7922 (lst_depth): Remove.
7923 (lst_dewey_number): Remove.
7924 (lst_dewey_number_at_depth): Remove.
7927 (lst_find_pbb): Remove.
7928 (find_lst_loop): Remove.
7929 (lst_find_first_pbb): Remove.
7930 (lst_empty_p): Remove.
7931 (lst_find_last_pbb): Remove.
7932 (lst_contains_p): Remove.
7933 (lst_contains_pbb): Remove.
7934 (lst_create_nest): Remove.
7935 (lst_remove_from_sequence): Remove.
7936 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
7937 (lst_niter_for_loop): Remove.
7938 (pbb_update_scattering): Remove.
7939 (lst_update_scattering_under): Remove.
7940 (lst_update_scattering): Remove.
7941 (lst_insert_in_sequence): Remove.
7942 (lst_replace): Remove.
7943 (lst_substitute_3): Remove.
7944 (lst_distribute_lst): Remove.
7945 (lst_remove_all_before_including_pbb): Remove.
7946 (lst_remove_all_before_excluding_pbb): Remove.
7947 (struct scop): Remove original_schedule, transformed_schedule, and
7949 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
7950 (SCOP_SAVED_SCHEDULE): Remove.
7951 (poly_scattering_new): Remove.
7952 (poly_scattering_free): Remove.
7953 (poly_scattering_copy): Remove.
7954 (store_scattering_pbb): Remove.
7955 (store_lst_schedule): Remove.
7956 (restore_lst_schedule): Remove.
7957 (store_scattering): Remove.
7958 (restore_scattering_pbb): Remove.
7959 (restore_scattering): Remove.
7960 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
7961 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
7962 compute the scattering polyhedron dimension from the dimension of
7964 (build_scop_scattering): Update call to
7965 build_pbb_scattering_polyhedrons.
7966 (build_poly_scop): Remove call to scop_to_lst.
7967 * graphite.c (graphite_transform_loops): Add call to print_scop.
7968 (gate_graphite_transforms): Remove use of flag_loop_block,
7969 flag_loop_interchange, and flag_loop_strip_mine.
7971 2015-08-27 Sebastian Pop <s.pop@samsung.com>
7973 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
7974 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
7975 -floop-nest-optimize.
7976 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
7977 (generate_luj_sepclass): Remove.
7978 (generate_luj_options): Remove.
7979 (set_options): Remove opt_luj.
7980 (scop_to_isl_ast): Remove opt_luj.
7981 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
7982 flag_loop_unroll_jam.
7983 (getPrevectorMap_full): Remove.
7984 (getScheduleForBandList): Remove map_sepcl.
7985 (getScheduleMap): Same.
7986 (apply_schedule_map_to_scop): Remove sepcl.
7987 (optimize_isl): Same.
7988 * graphite-poly.c (apply_poly_transforms): Remove check for
7989 flag_loop_unroll_jam.
7990 (new_poly_bb): Remove map_sepclass.
7991 * graphite-poly.h (struct poly_bb): Same.
7992 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
7993 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
7994 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
7995 * toplev.c (process_options): Remove flag_loop_unroll_jam.
7997 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
8000 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
8002 (UNSPEC_ADD_CARRY): Remove.
8003 (addqi3_cconly_overflow): New expander.
8004 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
8005 Adjust for changed add<mode>3_carry.
8006 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
8007 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
8008 (<plusminus_insn><mode>3_carry): Remove expander.
8009 (*<plusminus_insn><mode>3_carry): Split insn pattern to
8010 add<mode>3_carry and sub<mode>3_carry.
8011 (plusminus_carry_mnemonic): Remove code attribute.
8012 (add<mode>3_carry): Canonicalize insn pattern.
8013 (*addsi3_carry_zext): Ditto.
8014 (sub<mode>3_carry): Ditto.
8015 (*subsi3_carry_zext): Ditto.
8016 (adcx<mode>3): Remove insn pattern.
8017 (addcarry<mode>): New insn pattern.
8018 (subborrow<mode>): Ditto.
8019 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
8020 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
8021 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
8022 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
8023 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
8024 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
8025 Rewrite expander to not clobber carry flag chains.
8027 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
8029 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
8030 instead of a rotate.
8032 2015-08-27 Marek Polacek <polacek@redhat.com>
8035 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
8036 an entry into an irreducible region.
8038 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8040 * configure: Regenerate.
8042 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
8044 PR tree-optimization/67283
8045 * tree-sra.c (type_consists_of_records_p): Rename to...
8046 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
8048 (completely_scalarize_record): Rename to...
8049 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
8050 (scalarize_elem): New.
8052 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
8054 * tree-sra.c (completely_scalarize_var): Rename to...
8055 (create_total_scalarization_access): ... Here. Drop call to
8056 completely_scalarize_record.
8058 (analyze_all_variable_accesses): Replace completely_scalarize_var
8059 with create_total_scalarization_access and completely_scalarize_record.
8061 2015-08-27 Alan Modra <amodra@gmail.com>
8064 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
8067 2015-08-27 Richard Biener <rguenther@suse.de>
8069 * passes.c (rest_of_decl_compilation): Guard early_global_decl
8070 call with !seen_error ().
8071 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
8072 early debug generation and finish...
8073 (symbol_table::compile): ... here to put it after a !seen_error ()
8076 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8078 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
8081 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8082 Andre Vieira <andre.simoesdiasvieira@arm.com>
8084 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
8085 (*cb<optab><mode>1): Likewise.
8086 (*tb<optab><mode>1): Likewise.
8087 (*cb<optab><mode>1): Likewise.
8088 * config/aarch64/iterators.md (inv_cb): New code attribute.
8090 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
8091 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
8093 2015-08-27 Richard Biener <rguenther@suse.de>
8095 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
8097 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
8099 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
8102 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8104 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
8107 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
8109 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
8110 floating point in VSX registers.
8111 (rs6000_output_move_128bit): Always print out the set insn if we
8112 can't generate an appropriate 128-bit move.
8113 (rs6000_generate_compare): Add support for IEEE 128-bit floating
8114 point in VSX registers comparisons.
8115 (rs6000_expand_float128_convert): Likewise.
8117 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
8118 predicate for only GPR hard registers.
8120 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
8121 modes to iterators. Add new iterators for moving 128-bit values in
8122 scalar FPR registers and VSX registers.
8123 (FMOVE128): Likewise.
8124 (FMOVE128_FPR): Likewise.
8125 (FMOVE128_GPR): Likewise.
8126 (FMOVE128_VSX): Likewise.
8127 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
8132 (RELOAD): Add IEEE 128-bit floating point modes.
8133 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
8134 floating point in VSX registers modes.
8135 (signbit<mode>2, IBM128 iterator): Likewise.
8136 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
8137 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
8139 (neg<mode>2, TFIFKF iterator): Likewise.
8140 (negtf2_internal): Likewise.
8142 (abs<mode>2, TFIFKF iterator): Likewise.
8143 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
8144 VSX insn support for negate, absolute value, and negative absolute
8146 (ieee_128bit_vsx_neg<mode>2): Likewise.
8147 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
8148 (ieee_128bit_vsx_abs<mode>2): Likewise.
8149 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
8150 (ieee_128bit_vsx_nabs<mode>2): Likewise.
8151 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
8152 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
8153 floating point in VSX registers.
8154 (unpack<mode>_dm): Likewise.
8155 (unpack<mode>_nodm): Likewise.
8156 (pack<mode>): Likewise.
8157 (unpackv1ti): Likewise.
8158 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
8159 (packv1ti): Likewise.
8160 (pack<mode>, FMOVE128_VSX iterator): Likewise.
8161 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
8163 (extenddftf2_internal): Likewise.
8164 (trunctfdf2): Likewise.
8165 (trunctfdf2_internal2): Likewise.
8166 (fix_trunc_helper): Likewise.
8167 (fix_trunctfdi2"): Likewise.
8168 (floatditf2): Likewise.
8169 (floatuns<mode>tf2): Likewise.
8170 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
8171 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
8172 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
8173 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
8174 (float<SDI:mode><IFKF:mode>2): Likewise.
8175 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
8177 2015-08-26 Renlin Li <renlin.li@arm.com>
8179 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
8181 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
8182 Jiong Wang <jiong.wang@arm.com>
8184 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
8185 (tlsie_tiny_<mode>): New define_insn.
8186 (tlsie_tiny_sidi): Likewise.
8187 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
8189 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
8190 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
8192 (aarch64_expand_mov_immediate): Likewise.
8193 (aarch64_print_operand): Likewise.
8194 (arch64_classify_tls_symbol): Likewise.
8196 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8198 * config/arm/arm-arches.def: Replace single value flags with
8199 an initializer built from ARM_FSET_MAKE_CPU1.
8200 * config/arm/arm-cores.def: Likewise.
8201 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
8202 derivation from the ARM_CORE macro definition, use the given value
8204 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
8205 ARM_ARCH macro definition, use the given value instead.
8207 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8209 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
8211 (struct builtin_description): Replace field mask with field
8213 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
8214 (IWMMXT2_BUILTIN): Likewise.
8215 (IWMMXT2_BUILTIN2): Likewise.
8216 (FP_BUILTIN): Likewise.
8217 (CRC32_BUILTIN): Likewise.
8218 (CRYPTO_BUILTIN): Likewise.
8219 (iwmmx_mbuiltin): Likewise.
8220 (iwmmx2_mbuiltin): Likewise.
8221 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
8222 struct builtin_description.
8224 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8226 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
8227 (struct builtin_description): Change type of mask to unsigned
8229 * config/arm/arm-protos.h (insn_flags): Declare as type
8231 (tune_flags): Likewise.
8232 * config/arm/arm.c (feature_count): New.
8233 (insn_flags): Define as type arm_feature_set.
8234 (tune_flags): Likewise.
8235 (struct processors): Define field flags as type arm_feature_set.
8236 (all_cores): Update for change to struct processors.
8237 (all_architectures): Likewise.
8238 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
8240 (arm_option_override_internal): Likewise.
8241 (arm_option_override): Likewise.
8243 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
8244 Jiong Wang <jiong.wang@arm.com>
8246 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
8247 tls size for tiny, small, large memory model.
8248 (aarch64_load_symref_appropriately): Support new symbol types.
8249 (aarch64_expand_mov_immediate): Likewise.
8250 (aarch64_print_operand): Likewise.
8251 (aarch64_classify_tls_symbol): Likewise.
8252 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
8253 (aarch64_symbol_type): Likewise.
8254 * config/aarch64/aarch64.md (tlsle): Deleted.
8255 (tlsle12_<mode>): New define_insn.
8256 (tlsle24_<mode>): Likewise.
8257 (tlsle32_<mode>): Likewise.
8258 (tlsle48_<mode>): Likewise.
8259 * doc/sourcebuild.texi (AArch64-specific attributes): Document
8262 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8264 * config/arm/arm-protos.h (FL_NONE): New.
8266 (arm_feature_set): New.
8267 (ARM_FSET_MAKE): New.
8268 (ARM_FSET_MAKE_CPU1): New.
8269 (ARM_FSET_MAKE_CPU2): New.
8270 (ARM_FSET_CPU1): New.
8271 (ARM_FSET_CPU2): New.
8272 (ARM_FSET_EMPTY): New.
8273 (ARM_FSET_ANY): New.
8274 (ARM_FSET_HAS_CPU1): New.
8275 (ARM_FSET_HAS_CPU2): New.
8276 (ARM_FSET_HAS_CPU): New.
8277 (ARM_FSET_ADD_CPU1): New.
8278 (ARM_FSET_ADD_CPU2): New.
8279 (ARM_FSET_DEL_CPU1): New.
8280 (ARM_FSET_DEL_CPU2): New.
8281 (ARM_FSET_UNION): New.
8282 (ARM_FSET_INTER): New.
8283 (ARM_FSET_XOR): New.
8284 (ARM_FSET_EXCLUDE): New.
8285 (AFM_FSET_IS_EMPTY): New.
8286 (ARM_FSET_CPU_SUBSET): New.
8288 2015-08-26 Jiong Wang <jiong.wang@arm.com>
8290 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
8291 SYMBOL_TLSLE to SYMBOL_TLSLE24.
8292 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8294 (aarch64_expand_mov_immediate): Likewise.
8295 (aarch64_print_operand): Likewise.
8296 (aarch64_classify_symbol): Likewise.
8298 2015-08-26 Jiong Wang <jiong.wang@arm.com>
8300 * config/aarch64/aarch64.opt (mtls-size): New entry.
8301 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
8302 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
8303 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
8305 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8307 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
8308 ARM_CORE entry. Fix some white-space.
8309 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
8310 ARM_CORE definition.
8312 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8314 * fold-const.c (fold_binary_loc) : Move Optimize
8315 root(x)*root(y) as root(x*y) to match.pd.
8316 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
8317 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
8318 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
8319 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
8320 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
8321 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
8322 (mult (exps:s @0) (exps:s @1)) : New simplifier.
8323 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
8324 (rdiv @0 (exps:s @1)) : New simplifier.
8326 2015-08-25 Joseph Myers <joseph@codesourcery.com>
8328 * gcc.c (driver::finalize): Only assign to extra_specs if
8331 2015-08-25 Marek Polacek <polacek@redhat.com>
8334 * varasm.c (declare_weak): Return after giving an error.
8336 2015-08-25 David Malcolm <dmalcolm@redhat.com>
8338 * gcc-main.c (main): Add params to driver ctor.
8339 * gcc.c (class env_manager): New.
8341 (env_manager::init): New.
8342 (env_manager::get): New.
8343 (env_manager::xput): New.
8344 (env_manager::restore): New.
8345 Poison getenv and putenv.
8346 (DEFAULT_TARGET_SYSTEM_ROOT): New.
8347 (target_system_root): Update initialization to use
8348 DEFAULT_TARGET_SYSTEM_ROOT.
8349 (struct spec_list): Add field "default_ptr".
8350 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
8351 (init_spec): Likewise.
8352 (set_spec): Clear field "default_ptr".
8353 (read_specs): Free "spec" and "buffer".
8354 (xputenv): Reimplement in terms of env_manager.
8355 (process_command): Replace ::getenv calls with calls to the
8356 env_manager singleton.
8357 (process_brace_body): Free string in three places.
8358 (driver::driver): New.
8359 (driver::~driver): New.
8360 (used_arg): Convert from a function to...
8361 (class used_arg_t): ...this class, and...
8362 (used_arg): ...this new global instance.
8363 (used_arg_t::finalize): New function.
8364 (getenv_spec_function): Add "const" to local "value". Replace
8365 ::getenv call with call to the env_manager singleton.
8366 (path_prefix_reset): New function.
8367 (driver::finalize): New function.
8368 * gcc.h (driver::driver): New.
8369 (driver::~driver): New.
8370 (driver::finalize): New.
8372 2015-08-25 Nathan Sidwell <nathan@acm.org>
8374 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
8375 target doesn't have one.
8377 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
8380 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
8382 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
8385 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
8386 a define_insn, remove second alternative.
8388 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
8389 Joseph Myers <joseph@codesourcery.com>
8391 * gcc.c (struct switchstr): Expand comment.
8393 2015-08-25 Nathan Sidwell <nathan@acm.org>
8395 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
8396 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
8398 2015-08-25 Richard Biener <rguenther@suse.de>
8401 * genmatch.c (expr::gen_transform): Verify the result of
8402 builtin_decl_implicit.
8403 (dt_simplify::gen_1): Likewise.
8405 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
8407 * config/arm/constraints.md: Also list Cs and US ARM-specific
8408 constraints as used.
8410 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
8413 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
8415 (nonpic_symbol_mentioned_p): Likewise.
8416 (sh_delegitimize_address): Likewise.
8417 (sh_function_ok_for_sibcall): Take into account weak symbols.
8418 (sh_expand_sym_label2reg): New.
8419 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
8420 * config/sh/sh.md (UNSPEC_PCREL): New enum.
8421 (call_pcrel): Use sh_expand_sym_label2reg.
8422 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
8423 (symPCREL_label2reg) New expand.
8425 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
8427 * graphite-poly.c: Change type of region from void* to sese.
8428 * graphite-poly.h (struct scop): Changing the type of scop::region
8429 from void* to sese. Change accessor macro accordingly.
8430 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
8432 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
8434 * graphite-scop-detection.c (stmt_simple_for_scop_p):
8435 Constrain only on INTEGER_TYPE.
8437 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
8440 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
8441 -mefficient-unaligned-vsx on ISA 2.7.
8443 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
8444 option to a masked option.
8446 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
8447 logic for -mefficient-unaligned-vsx so that it is set via an arch
8448 ISA option, instead of being set if -mtune=power8 is set. Move
8449 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
8450 near other default option handling.
8452 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8454 * genflags.c (gen_macro): Delete.
8455 (gen_proto): Don't create GEN.*CALL.* macros.
8456 * gensupport.h (get_file_location): Declare.
8457 * gensupport.c (rtx_locs): New variable.
8458 (read_md_rtx): Record rtx locations.
8459 (get_file_location): New function.
8460 * target-insns.def (call, call_pop, call_value, call_value_pop)
8461 (sibcall, sibcall_value): New patterns.
8462 * gentarget-def.c (parse_argument): New function.
8463 (def_target_insn): Use it. Handle optional operands. Raise an
8464 error if an .md pattern has the wrong number of operands for the
8465 pattern name. Remove the names of unused operands from the prototype.
8466 * builtins.c (expand_builtin_apply): Use targetm functions
8467 instead of HAVE_call_value and GEN_CALL_VALUE.
8468 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
8469 and sibcall_value_pop.
8470 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
8472 * config/alpha/alpha.md (untyped_call): Likewise.
8473 * config/iq2000/iq2000.md (untyped_call): Likewise.
8474 * config/m68k/m68k.md (untyped_call): Likewise.
8475 * config/mips/mips.md (untyped_call): Likewise.
8476 * config/pa/pa.md (untyped_call): Likewise.
8477 * config/rs6000/rs6000.md (untyped_call): Likewise.
8478 * config/sparc/sparc.md (untyped_call): Likewise.
8479 * config/tilegx/tilegx.md (untyped_call): Likewise.
8480 * config/tilepro/tilepro.md (untyped_call): Likewise.
8481 * config/visium/visium.md (untyped_call): Likewise.
8482 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
8483 gen_call_value instead of GEN_CALL_VALUE.
8484 * config/arm/arm.md (untyped_call): Likewise.
8485 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
8488 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8490 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
8491 (have_cbranchcc4): New variable.
8492 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
8493 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
8494 (if_convert): Initialize have_cbranchcc4.
8496 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8498 * builtins.c (expand_cmpstrn): Rename to...
8499 (expand_cmpstrn_or_cmpmem): ...this.
8500 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
8501 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
8502 Remove mode argument.
8503 (expand_builtin): Update accordingly.
8505 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8507 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
8508 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
8509 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
8510 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
8511 Add predicates for operands 0 and 3.
8512 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
8514 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
8515 immediate_operand to nonmemory_operand.
8517 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8519 * df-scan.c (df_insn_info_init_fields): New function, split out
8521 (df_insn_create_insn_record): ...here.
8522 (df_insn_info_free_fields): New function, split out from...
8523 (df_insn_info_delete): ...here.
8524 (df_insn_rescan): Use the new functions instead of freeing and
8525 reallocating the df_insn_info.
8527 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8529 * doc/install.texi (Binaries): Remove links no longer valid.
8531 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
8533 * config/nvptx/mkoffload.c (process): Replace
8534 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
8536 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
8539 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
8541 2015-08-24 Renlin Li <renlin.li@arm.com>
8543 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
8544 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
8545 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
8546 * config/arm/constraints.md ("j"): Add check for high code.
8548 2015-08-24 Tom de Vries <tom@codesourcery.com>
8550 PR tree-optimization/65468
8551 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
8554 2015-08-24 Nathan Sidwell <nathan@acm.org>
8556 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
8557 change to nvptx_type_from_mode call. Use arg_promotion for both
8558 split and non-split args.
8560 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8562 * target-insns.def (movstr): New pattern.
8563 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
8564 (expand_movstr): Use targetm rather than HAVE_movstr/
8567 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8569 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
8572 2015-08-24 Andrew Pinski <apinski@cavium.com>
8574 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
8575 AARCH64_EXTRA_TUNING_OPTION.
8576 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
8578 (aarch64_extra_tuning_flags): Base the shifted value on the index
8579 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
8580 * config/aarch64/aarch64.c: Remove the last argument to
8581 AARCH64_EXTRA_TUNING_OPTION.
8583 2015-08-23 Nathan Sidwell <nathan@acm.org>
8585 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
8587 (nvptx_declare_function_name): Insert formatting tabs for
8590 2015-08-23 Tom de Vries <tom@codesourcery.com>
8592 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
8593 parm_decl, rather than generating a dummy default def in cfun.
8594 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
8595 ssa_name from cfun and child_fn do not share a stmt as def stmt.
8596 (move_stmt_op): Handle PARM_DECl.
8597 (gather_ssa_name_hash_map_from): New function.
8598 (move_sese_region_to_fn): Add default defs for function params, and add
8599 them to vars_map. Release copied ssa names.
8600 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
8602 2015-08-23 Tom de Vries <tom@codesourcery.com>
8604 * doc/sourcebuild.texi: Rename vect_no_int_max with
8605 vect_no_int_min_max. Update description.
8607 2015-08-22 Andrew Pinski <apinski@cavium.com>
8609 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
8610 * config/aarch64/aarch64-protos.h
8611 (aarch64_fusion_pairs_index): New enum.
8612 (aarch64_fusion_pairs): Base the shifted value on the index instead
8613 Rewrite AARCH64_FUSE_ALL to be based on the end index.
8614 of the argument to AARCH64_FUSION_PAIR.
8615 * config/aarch64/aarch64.c: Remove the last argument to
8616 AARCH64_FUSION_PAIR.
8618 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
8620 * dominance.c (new_zero_array): Define.
8621 (dom_info): Redefine as class with proper encapsulation.
8622 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
8624 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
8625 allocations/deallocations. Pass function as parameter (instead of
8627 (dom_info::get_idom): Define accessor method.
8628 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
8629 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
8630 (calculate_dominance_info): Adjust to use dom_info class.
8631 (verify_dominators): Likewise.
8633 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
8635 * print-rtl.c (print_rtx): Check the correct range for
8636 flag_dump_unnumbered_links to behave as documented.
8638 PR rtl-optimization/67227
8639 PR rtl-optimization/64164
8640 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
8641 (nonoverlapping_memrefs_p): Test offsets and sizes when given
8642 identical gimple_reg exprs.
8644 2015-08-21 Nathan Sidwell <nathan@acm.org>
8646 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
8648 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
8649 crtl->stack_alignment_needed to determine alignment.
8650 (nvptx_get_drap_rtx): New.
8651 (TARGET_GET_DRAP_RTX): Override.
8652 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
8654 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8656 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
8658 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8660 * configure.ac: Remove uwin* cases.
8661 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
8662 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
8663 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
8664 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
8665 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
8666 i[34567]86-*-uwin*, powerpc-*-beos*.
8668 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
8670 * gencodes.c (gencodes): Print the comma for the preceding
8671 enum value rather than the current one. Use aliased enum values
8672 rather than #defines for compiled-out patterns.
8673 (main): Update accordingly. Replace LAST_INSN_CODE with
8675 * lra.c (insn_code_data): Update accordingly.
8676 (finish_insn_code_data_once, get_static_insn_data): Likewise.
8677 * recog.h (target_recog): Likewise.
8678 (preprocess_insn_constraints): Change parameter to unsigned int.
8679 * recog.c (preprocess_insn_constraints): Likewise.
8680 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
8681 * tree-vect-stmts.c (vectorizable_operation): Simplify.
8683 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
8685 PR rtl-optimization/61657
8686 * loop-iv.c (iv_number_of_iterations): Declare up and down as
8687 unsigned. Remove superflous uint64_t cast.
8689 2014-08-21 Felix Yang <felix.yang@huawei.com>
8690 Jiji Jiang <jiangjiji@huawei.com>
8692 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
8693 argument and get builtin function code directly from CALL.
8694 (gimple_stringop_fixed_value): Modified accordingly.
8695 (gimple_stringops_transform, gimple_stringops_values_to_profile):
8696 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
8698 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
8700 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
8702 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8704 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
8706 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
8707 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
8708 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
8709 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
8710 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
8711 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
8712 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
8713 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
8714 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
8715 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
8717 * match.pd (SIN ) : New Operator.
8718 (TAN) : New Operator.
8719 (mult (SQRT@1 @0) @1) : New simplifier.
8720 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
8721 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
8722 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
8723 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
8724 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
8725 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
8726 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
8727 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
8728 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
8729 (rdiv @0 (POW:s @1 @2)) : New simplifier.
8731 2015-08-21 Bin Cheng <bin.cheng@arm.com>
8733 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
8734 loop if EXPR is simplified to const value.
8736 2015-08-21 Yury Gribov <y.gribov@samsung.com>
8738 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
8739 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
8741 2015-08-21 Richard Biener <rguenther@suse.de>
8744 * gimple-fold.c (replace_stmt_with_simplification): Assert
8745 seq is empty when replacing a call with itself but different
8747 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
8748 a call require that it is const.
8750 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8752 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
8753 * builtins.c (get_object_alignment_2): Adjust.
8754 * varasm.c (align_variable): Likewise.
8755 (get_variable_align): Likewise.
8756 (build_constant_desc): Likewise.
8757 (force_const_mem): Likewise.
8758 * doc/tm.texi.in: Likewise.
8759 * doc/tm.texi: Regenerate.
8761 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8763 * genconfig.c (main): Always define HAVE_cc0.
8764 * recog.c (rest_of_handle_peephole2): Adjust.
8766 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8768 * reorg.c (relax_delay_slots): Don't use #if to check value of
8771 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8773 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
8774 * targhooks.c (default_have_conditional_execution): Adjust.
8776 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
8778 * rtl.h (rtvec_all_equal_p): Declare.
8779 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
8780 * rtl.c (rtvec_all_equal_p): New function.
8781 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
8782 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
8783 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
8784 * config/arm/arm.c (neon_vdup_constant): Likewise.
8785 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
8786 * config/tilegx/constraints.md (W, Y): Likewise.
8787 * config/tilepro/constraints.md (W, Y): Likewise.
8788 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
8789 (classify_immediate): Use unwrap_const_vec_duplicate.
8790 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
8791 (reg_or_v2s8bit_operand): Likewise.
8792 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
8793 (reg_or_v4s8bit_operand): Likewise.
8795 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8797 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
8798 (vec_shasigma_be): New #define.
8799 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
8800 (VPMSUMH): Likewise.
8801 (VPMSUMW): Likewise.
8802 (VPMSUMD): Likewise.
8803 (VPMSUM): New BU_P8V_OVERLOAD_2.
8804 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
8805 entries for VEC_MADD and VEC_VPMSUM.
8807 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
8809 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
8810 Multiply argument avr_n_flash by 64 to match unit of "KiB".
8811 (avr_pgm_check_var_decl): Same.
8813 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
8815 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
8816 initialization of HFmode scalar type (float16_t) to...
8817 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
8820 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
8822 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
8823 having an -mfp16-format.
8825 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
8827 * config/i386/predicates.md (vector_all_ones_operand): Use
8828 CONSTM1_RTX to simplify definition.
8830 2015-08-20 Richard Biener <rguenther@suse.de>
8832 * toplev.c (compile_file): Remove loop calling late_global_decl
8834 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
8835 on decls we assembled.
8837 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
8839 * common/config/aarch64/aarch64-common.c
8840 (AARCH64_CPU_NAME_LENGTH): Delete.
8841 (aarch64_option_extension): New.
8842 (all_extensions): Likewise.
8843 (processor_name_to_arch): Likewise.
8844 (arch_to_arch_name): Likewise.
8846 (all_architectures): Likewise.
8847 (aarch64_get_extension_string_for_isa_flags): Likewise.
8848 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
8850 * config/aarch64/aarch64-protos.h
8851 (aarch64_get_extension_string_for_isa_flags): New.
8852 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
8853 (aarch64_option_print): Get the string to print from
8854 aarch64_get_extension_string_for_isa_flags.
8855 (aarch64_declare_function_name): Likewise.
8856 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
8857 (MCPU_TO_MARCH_SPEC): This.
8858 (ASM_CPU_SPEC): Use it.
8859 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
8860 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
8861 (EXTRA_SPEC_FUNCTIONS): Use it.
8863 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
8865 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
8866 expansion when !ISA_HAS_LWL_LWR.
8867 (mips_block_move_straight): Update the size of elements copied to
8868 account for alignment when !ISA_HAS_LWL_LWR.
8869 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
8871 2015-08-19 Jiong Wang <jiong.wang@arm.com>
8873 * expr.c (expand_expr_real_2): Check gimple statement during
8876 2015-08-19 Magnus Granberg <zorry@gentoo.org>
8878 * common.opt (fstack-protector): Initialize to -1.
8879 (fstack-protector-all): Likewise.
8880 (fstack-protector-strong): Likewise.
8881 (fstack-protector-explicit): Likewise.
8882 * configure.ac: Add --enable-default-ssp.
8883 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
8884 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
8886 * doc/install.texi: Document --enable-default-ssp.
8887 * config.in: Regenerated.
8888 * configure: Likewise.
8890 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
8892 PR rtl-optimization/64164
8893 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
8894 (parm_in_stack_slot_p): ... this. Disregard mode, what
8895 matters is whether the parm will live in a pseudo or a stack
8897 (expand_one_ssa_partition): Deal with params without a default
8898 def. Disregard mode.
8899 * cfgexpand.h: Renamed function declaration.
8900 * tree-ssa-coalesce.c: Adjust.
8901 * function.c (split_complex_args): Allocate stack slot for
8902 unassigned parms before splitting.
8903 (parm_in_unassigned_mem_p): New. Use it instead of
8904 parm_maybe_byref_p throughout this file.
8905 (assign_parm_setup_block): Use it. Accept pseudos in the
8906 expand-assigned rtl.
8907 (assign_parm_setup_reg): Drop BLKmode requirement.
8908 (assign_parm_setup_stack): Allocate and fill in the address of
8909 unassigned MEM parms.
8911 2015-08-19 David Sherwood <david.sherwood@arm.com>
8913 * genmodes.c (emit_mode_unit_size_inline): New function.
8914 (emit_mode_unit_precision_inline): New function.
8915 (emit_insn_modes_h): Emit new #define. Emit new functions.
8916 (emit_mode_unit_size): New function.
8917 (emit_mode_unit_precision): New function.
8918 (emit_mode_adjustments): Add mode_unit_size adjustments.
8919 (emit_insn_modes_c): Emit new arrays.
8920 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
8921 use new inline methods.
8923 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8925 * config/aarch64/aarch64.c (bit_count): Delete prototype
8927 (aarch64_print_operand): Use popcount_hwi instead of the above.
8929 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8931 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
8934 2015-08-19 Marek Polacek <polacek@redhat.com>
8937 * gimple-ssa-isolate-paths.c
8938 (insert_trap_and_remove_trailing_statements): Rename to ...
8939 (insert_trap): ... this. Don't remove trailing statements; split
8941 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
8943 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
8946 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
8947 conditionalize the whole on __GNUC__. Add fallback code
8948 depending neither on undefined nor implementation-defined behaviour.
8950 2015-08-19 Jiong Wang <jiong.wang@arm.com>
8952 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
8953 whitespaces with tab.
8955 2015-08-19 Florian Weimer <fweimer@redhat.com>
8957 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
8958 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
8959 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
8960 Move Name_Ids instantiation to the Prj.Proc package, to avoid
8963 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8965 * config/arm/arm.c (bounds_check): Use %wd print format
8966 for HOST_WIDE_INT arguments.
8968 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
8970 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
8971 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
8972 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
8973 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
8974 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
8975 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
8976 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
8977 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
8978 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
8981 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
8983 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
8984 function.c, graphite-scop-detection.c, haifa-sched.c,
8985 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
8986 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
8987 varasm.c: Remove typedefs of structs.
8989 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8991 * config/rs6000/altivec.h (vec_adde): New define.
8992 (vec_addec): Likewise.
8993 (vec_double): Likewise.
8994 (vec_bperm): Likewise.
8996 * config/rs6000/rs6000-builtin.def (ADDE): New
8997 BU_ALTIVEC_OVERLOAD_3.
8999 (DOUBLE): New BU_VSX_OVERLOAD_1.
9000 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
9001 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
9002 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
9003 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
9004 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
9005 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
9006 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
9007 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
9008 and P8V_BUILTIN_VEC_VBPERMQ.
9010 2015-08-18 Jason Merrill <jason@redhat.com>
9012 * print-tree.c (print_node): Handle TREE_BINFO.
9014 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9017 * builtins.c (expand_builtin_signbit): Add asserts to make sure
9018 we can expand BUILT_IN_SIGNBIT inline.
9019 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
9020 * doc/extend.texi: Document the type-generic __builtin_signbit.
9022 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
9024 PR rtl-optimization/67218
9025 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
9026 (simplify_unary_operation_1): Use it.
9028 2015-08-18 Marek Polacek <polacek@redhat.com>
9031 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
9032 if the call isn't valid.
9033 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
9034 gimple_call_builtin_p.
9035 (call_may_clobber_ref_p_1): Likewise.
9036 (stmt_kills_ref_p): Likewise.
9038 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
9040 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
9041 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
9042 (mips_hard_regno_scratch_ok): Likewise.
9043 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
9044 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
9046 2015-08-18 Bin Cheng <bin.cheng@arm.com>
9048 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
9049 (determine_value_range): Call refine_value_range_using_guard for
9050 each loop initial condition to improve value range.
9052 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
9054 * config/i386/i386.c: Remove include of fibheap.h.
9056 2015-08-17 Richard Biener <rguenther@suse.de>
9058 PR tree-optimization/67221
9059 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
9060 (sccvn_dom_walker::before_dom_children): Mark backedges of
9061 non-executable blocks as not executable.
9063 2015-08-17 David Sherwood <david.sherwood@arm.com>
9065 * config/arm/arm.c (neon_element_bits): Replace call to
9066 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
9067 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
9068 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
9069 (neon_vdup_lane<mode>): Likewise.
9070 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
9071 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
9072 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
9073 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
9074 * config/spu/spu.c (arith_immediate_p): Likewise.
9075 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
9076 * expr.c (expand_expr_real_2): Likewise.
9077 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
9078 * simplify-rtx.c (simplify_immed_subreg): Likewise.
9079 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
9080 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
9082 * fold-const.c (fold_binary_loc): Replace call to
9083 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
9084 GET_MODE_UNIT_PRECISION (m).
9086 2015-08-17 Mike Stump <mikestump@comcast.net>
9088 * config/arm/arm.c (arm_block_move_unaligned_straight):
9089 Emit normal move instead of unaligned load when source or destination
9090 are appropriately aligned.
9092 2015-08-17 Richard Biener <rguenther@suse.de>
9093 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9096 * match.pd (div (coss (op @0) : New simplifier.
9098 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
9100 PR rtl-optimization/64164
9103 PR rtl-optimization/67000
9106 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9107 * tree-ssa-copyrename.c: Removed.
9108 * opts.c (default_options_table): Drop -ftree-copyrename. Add
9109 -ftree-coalesce-vars.
9110 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9111 * common.opt (ftree-copyrename): Ignore.
9112 (ftree-coalesce-inlined-vars): Likewise.
9113 * doc/invoke.texi: Remove the ignored options above.
9114 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9115 * tree-ssa-coalesce.h: ... here.
9116 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9117 headers required by it.
9118 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9119 across variables when flag_tree_coalesce_vars. Check register
9120 use and promoted modes to allow coalescing. Do not coalesce
9121 maybe-byref parms with SSA_NAMEs of other variables, or
9122 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
9123 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9124 with its member functions to tree-ssa-coalesce.c.
9125 (var_map_base_init): Likewise. Renamed to
9126 compute_samebase_partition_bases.
9127 (partition_view_normal): Drop want_bases parameter.
9128 (partition_view_bitmap): Likewise.
9129 * tree-ssa-live.h: Adjust declarations.
9130 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
9131 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9132 default defs at the entry point.
9133 (dump_part_var_map): New.
9134 (compute_optimized_partition_bases): New, called by...
9135 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9136 of compute_samebase_partition_bases. Adjust.
9137 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9138 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
9139 (ssa_default_def_partition): New.
9140 (get_rtl_for_parm_ssa_default_def): New.
9141 (align_local_variable, add_stack_var): Support anonymous SSA
9143 (defer_stack_allocation): Likewise. Declare earlier.
9144 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9145 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9146 Do no record deferred-allocation marker in
9147 SA.partition_to_pseudo.
9148 (expand_stack_vars): Adjust check for the marker in it.
9149 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
9150 redundant MEM attr setting.
9151 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
9153 (expand_one_stack_var): ... this. New wrapper to check and
9154 skip already expanded SSA partitions.
9155 (record_alignment_for_reg_var): New, factored out of...
9156 (expand_one_var): ... this.
9157 (expand_one_ssa_partition): New.
9158 (adjust_one_expanded_partition_var): New.
9159 (expand_one_register_var): Check and skip already expanded SSA
9161 (expand_used_vars): Don't create DECLs for anonymous SSA
9162 names. Expand all SSA partitions, then adjust all SSA names.
9163 (pass::execute): Replace the loops that set
9164 SA.partition_to_pseudo from partition leaders and cleared
9165 DECL_RTL for multi-location variables, and that which used to
9166 rename vars and set attrs, with one that clears DECL_RTL and
9167 checks that PARMs and RESULTs default_defs match DECL_RTL.
9168 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9169 * emit-rtl.c: Include stor-layout.h.
9170 (set_reg_attrs_for_parm): Handle NULL decl.
9171 (set_reg_attrs_for_decl_rtl): Take mode from expression if
9173 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
9174 rather than its possibly-NULL DECL.
9175 * explow.c (promote_ssa_mode): New.
9176 * explow.h (promote_ssa_mode): Declare.
9177 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9178 (read_complex_part): Export.
9179 * expr.h (read_complex_part): Declare.
9180 * cfgexpand.h (parm_maybe_byref_p): Declare.
9181 * function.c: Include cfgexpand.h.
9182 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9183 (use_register_for_parm_decl): Wrapper for the above to
9184 special-case the result_ptr.
9185 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9186 (split_complex_args): Take assign_parm_data_all argument.
9187 Pass it to rtl_for_parm. Set up rtl and context for split
9188 args. Reset complex parm before fetching its default decl
9190 (assign_parms_unsplit_complex): Use the default-def complex
9191 parm rtl if it matches the components.
9192 (assign_parms_augmented_arg_list): Adjust.
9193 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9194 multiple locations. Recognize split complex args.
9195 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9196 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
9197 (assign_parm_setup_block): Prefer SSA-assigned location, and
9198 fill in its address if the memory location of a maybe-byref
9199 parm was not assigned by cfgexpand.
9200 (assign_parm_setup_reg): Likewise. Adjust its mode as
9201 needed. Use entry_parm for equiv if stack_parm is NULL. Make
9202 sure passed_pointer parms don't need conversion. Copy address
9204 (assign_parm_setup_stack): Prefer SSA-assigned location.
9205 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
9206 rtl before testing for pointer bounds. Special-case result_ptr.
9207 (expand_function_start): Maybe reset DECL_RTL of result.
9208 Prefer SSA-assigned location for result and static chain.
9209 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
9210 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
9211 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9212 anonymous SSA names. Use promote_ssa_mode.
9213 (get_temp_reg): Likewise.
9214 (remove_ssa_form): Adjust.
9215 * stor-layout.c (layout_decl): Don't set mem attributes of
9217 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9218 and get its reg_usage for reg invalidation.
9219 (compute_bb_dataflow): Pass it insn.
9220 (emit_notes_in_bb): Likewise.
9222 2015-08-14 Marek Polacek <polacek@redhat.com>
9224 * tree-core.h (tree_base): Fix typo.
9226 2015-08-14 Marek Polacek <polacek@redhat.com>
9229 * gimple.c (infer_nonnull_range_by_attribute): Check that the
9230 nonnull argument position is not outside function arguments.
9232 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
9235 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
9236 'lconst_atomic' with 'const_atomic'.
9237 (atomic_fetch_<optab><mode>): Likewise.
9238 (atomic_<optab>_fetch<mode>): Likewise.
9239 * config/aarch64/iterators.md (lconst-atomic): Move below
9241 (const_atomic): New.
9243 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
9244 Bernd Schmidt <bernds@codesourcery.com>
9246 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
9248 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
9249 (DWARF2_DEBUGGING_INFO): Don't define.
9250 * debug.h (dwarf2_lineno_debug_hooks): Declare.
9251 * toplev.c (process_options): Add a case for it.
9252 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
9253 (dwarf2out_init): Skip most initializations if
9254 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
9256 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
9257 DWARF2_LINENO_DEBUGGING_INFO.
9258 * opts.c (set_debug_level): Likewise.
9260 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
9262 * config/arm/types.md (is_neon_type): Add missing types.
9264 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
9266 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
9268 * config/i386/i386.c (PTA_SKYLAKE): New macros.
9269 (processor_alias_table): Add skylake description.
9270 (enum processor_model): Add skylake processor.
9271 (arch_names_table): Add skylake record.
9272 * doc/invoke.texi: Add skylake item.
9274 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
9276 * ira-int.h: Include recog.h.
9277 * ira-build.c: Don't include recog.h.
9278 * ira-color.c: Likewise.
9279 * ira-conflicts.c: Likewise.
9280 * ira-costs.c: Likewise.
9281 * ira-emit.c: Likewise.
9282 * ira-lives.c: Likewise.
9284 * sched-deps.c: Likewise.
9285 * sel-sched.c: Likewise.
9286 * target-globals.c: Likewise.
9288 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
9291 * reload1.c (elimination_costs_in_insn): Make it obvious to the
9292 compiler that the n_dups and n_operands loop bounds are invariant.
9294 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9296 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
9297 expressions in A and B.
9299 2015-08-13 Richard Biener <rguenther@suse.de>
9301 * tree.c (nonnull_arg_p): Move from ...
9302 * tree-vrp.c (nonnull_arg_p): ... here.
9303 * tree.h (nonnull_arg_p): Declare.
9304 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
9305 here, register ptr != 0 for nonnull_arg_p pointer arguments.
9306 Properly initialize static chain and by-reference result pointer.
9307 (run_scc_vn): Adjust.
9309 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
9311 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
9314 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
9316 * config/aarch64/aarch64-protos.h
9317 (aarch64_gen_atomic_cas): Declare.
9318 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
9319 Choose appropriate instruction pattern for the target.
9320 (aarch64_gen_atomic_cas): New.
9321 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
9322 (atomic_compare_and_swap<mode>_1): Rename to
9323 aarch64_compare_and_swap<mode>. Fix some indentation.
9324 (aarch64_compare_and_swap<mode>_lse): New.
9325 (aarch64_atomic_cas<mode>): New.
9327 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
9329 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
9332 2015-08-13 Richard Biener <rguenther@suse.de>
9334 PR tree-optimization/67191
9335 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
9336 assert we value-numbered last stmts operand because it can validly
9337 trigger for unreachable code.
9339 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9341 PR rtl-optimization/67103
9342 * ifcvt.c (noce_try_store_flag_constants): Move
9343 x = (-(test != 0) & (b - a)) + a transformation to...
9344 (noce_try_cmove): ... Here. Try it if normal conditional
9347 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
9349 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
9351 * config/mips/mips.md (processor): Remove w32 and w64.
9353 2015-08-13 Richard Biener <rguenther@suse.de>
9355 PR tree-optimization/66502
9356 PR tree-optimization/67167
9357 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
9359 (vn_phi_lookup): Adjust.
9360 (vn_phi_insert): Likewise.
9361 (visit_phi): Prefer to value-number to another PHI node
9362 over value-numbering to a PHI argument.
9363 (init_scc_vn): Mark DFS back edges.
9365 2015-08-13 Richard Biener <rguenther@suse.de>
9367 * gimple.h (gcall::code_): New constant static member.
9368 (gcond::code_): Likewise.
9369 * gimple.c (gcall::code_): Define.
9370 (gcond::code_): Likewise.
9371 (is_a_helper <const gcond *>): Add.
9372 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
9373 and forward to a new gcall overload with less checking and a
9374 cheaper way to access the operand.
9375 (gimple_call_lhs_ptr): Likewise.
9376 (gimple_call_set_lhs): Likewise.
9377 (gimple_call_internal_p): Likewise.
9378 (gimple_call_with_bounds_p): Likewise.
9379 (gimple_call_set_with_bounds): Likewise.
9380 (gimple_call_internal_fn): Likewise.
9381 (gimple_call_set_ctrl_altering): Likewise.
9382 (gimple_call_ctrl_altering_p): Likewise.
9383 (gimple_call_fntype): Likewise.
9384 (gimple_call_fn): Likewise.
9385 (gimple_call_fn_ptr): Likewise.
9386 (gimple_call_set_fndecl): Likewise.
9387 (gimple_call_fndecl): Likewise.
9388 (gimple_call_chain): Likewise.
9389 (gimple_call_num_args): Likewise.
9390 (gimple_call_arg): Likewise.
9391 (gimple_call_arg_ptr): Likewise.
9392 (gimple_call_set_arg): Likewise.
9393 (gimple_call_noreturn_p): Likewise.
9394 (gimple_cond_code): Likewise.
9395 (gimple_cond_lhs): Likewise.
9396 (gimple_cond_rhs): Likewise.
9397 (gimple_has_lhs): Reduce checking.
9399 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9402 * match.pd (div (mult @0 @1) @1) : New simplifier.
9404 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
9407 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
9408 predicate to allow construction of vector constants using the
9409 VSLDOI vector shift instruction.
9411 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
9414 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
9415 the number of bytes to be shifted left and filled in with either
9416 all zero or all one bits.
9417 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
9419 (output_vec_const_move): On power8, generate XXLORC to generate
9420 a vector constant with all 1's. Do a split if we need to use a
9423 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
9424 properly test for the MSB.
9426 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
9427 vector constants that can be created with VSLDOI.
9429 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
9432 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
9433 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
9434 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
9435 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
9436 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
9437 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9438 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
9439 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
9440 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
9442 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
9444 * config/xtensa/constraints.md (define_constraint "Y"): New
9446 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
9447 * config/xtensa/linux.h (ASM_SPEC): Likewise.
9448 * config/xtensa/predicates.md (move_operand): Match constants
9449 and symbols in the presence of TARGET_AUTO_LITPOOLS.
9450 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
9451 immediate references to TLS data.
9452 (xtensa_emit_move_sequence): Don't force constants to memory in
9453 the presence of TARGET_AUTO_LITPOOLS.
9454 (print_operand): Add 'y' format, same as default, but capable of
9455 printing SF mode constants as well.
9456 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
9457 (movsf_internal): Add movi pattern that loads literal.
9458 (movsf, movdf): Don't force constants to memory in the presence
9459 of TARGET_AUTO_LITPOOLS.
9460 (movdf_internal): Add 'Y' constraint.
9461 * config/xtensa/xtensa.opt (mauto-litpools): New option.
9462 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
9464 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
9466 * config/arm/arm-fpus.def: Replace booleans with feature flags.
9468 * config/arm/arm.c (ARM_FPU): Update macro.
9469 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
9470 (TARGET_FP16): Likewise.
9471 (TARGET_CRYPTO): Likewise.
9472 (TARGET_NEON): Likewise.
9473 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
9476 2015-08-12 Tom de Vries <tom@codesourcery.com>
9480 * doc/install.texi: Remove --with_host_libstdcxx item. Update
9481 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
9482 accordingly. Mention default for --with-stage1-ldflags.
9484 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
9486 * config/arm/arm.h (arm_fpu_feature_set): New.
9487 (ARM_FPU_FSET_HAS): New.
9491 (FPU_FL_CRYPTO): New.
9493 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9495 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
9496 after -mcmodel=large -fPIC sorry.
9498 2015-08-12 Richard Biener <rguenther@suse.de>
9500 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
9501 comparison operand order and commutative ternary op operand order.
9502 (sccvn_dom_walker::cond_stack): New state to track temporary
9504 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
9506 (sccvn_dom_walker::record_cond): Add a single temporary conditional
9508 (sccvn_dom_walker::record_conds): Add a temporary conditional
9509 expressions and all related expressions also true/false.
9510 (sccvn_dom_walker::before_dom_children): Record temporary
9511 expressions based on the controlling condition of a single
9512 predecessor. When trying to simplify a conditional statement
9513 lookup expressions we might have inserted earlier.
9515 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
9518 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
9519 to ARM core registers.
9521 2015-08-12 Nathan Sidwell <nathan@acm.org>
9523 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
9524 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
9526 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
9528 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
9530 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
9532 2015-08-12 Richard Biener <rguenther@suse.de>
9534 * gimple.h (remove_pointer): New trait.
9535 (GIMPLE_CHECK2): New inline template function.
9536 (gassign::code_): New constant static member.
9537 (is_a_helper<const gassign *>): Add.
9538 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
9539 and forward to a new gassign overload with less checking and a
9540 cheaper way to access the operand.
9541 (gimple_assign_lhs_ptr): Likewise.
9542 (gimple_assign_set_lhs): Likewise.
9543 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
9545 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
9547 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
9549 (gimple_assign_rhs_code): Likewise.
9550 * gimple.c (gassign::code_): Define.
9552 2015-08-12 Richard Biener <rguenther@suse.de>
9554 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9555 Eliminate edges marked as not executable by SCCVN.
9556 * tree-ssa-sccvn.c: Include gimple-iterator.h.
9557 (cond_dom_walker): Rename to sccvn_dom_walker.
9558 (sccvn_dom_walker::before_dom_children): Value-number defs
9560 (run_scc_vn): Remove loop value-numbering all SSA names.
9561 Drop not visited SSA names to varying.
9563 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
9565 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
9566 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
9567 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
9568 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
9569 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
9570 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9571 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
9572 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
9573 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
9575 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
9578 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
9579 to enum feature_priority and feature_list.
9580 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
9581 and isa_names_table.
9583 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
9585 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
9588 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9592 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
9593 account when deciding what was the command-line status.
9595 2015-08-11 Nathan Sidwell <nathan@acm.org>
9597 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
9599 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
9600 we're not the only contributor to target phi.
9602 2015-08-11 Jiong Wang <jiong.wang@arm.com>
9604 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
9607 2015-08-11 Tom de Vries <tom@codesourcery.com>
9609 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
9611 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
9613 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
9615 * config/i386/i386.md (cpu): Remove knl.
9617 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
9621 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
9622 open-coded sequence.
9623 * omp-low.c (oacc_process_reduction_data): Remove handline of
9624 GOMP_DEVICE_HOST_NONSHM.
9626 * lto-streamer-in.c (lto_input_mode_table): Adjust to
9627 GET_MODE_INNER changes.
9629 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
9630 Ilya Verbin <ilya.verbin@intel.com>
9632 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
9634 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
9636 * doc/options.texi (EnabledBy): Document that the argument must be
9638 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
9639 Not enabled by -Wall.
9640 * optc-gen.awk: Give nicer error messages. Detect if the argument
9641 of EnabledBy is not a Common option.
9642 * common.opt (Wnull-dereference): Not enabled by -Wall.
9643 * opt-functions.awk (lang_enabled_by): Nicer error messages.
9645 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
9647 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
9648 model == 0x4f as Broadwell.
9650 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
9652 PR rtl-optimization/67028
9653 * combine.c (simplify_comparison): Fix comment. Rearrange code.
9654 Add test to see if a const_int fits in the new mode.
9656 2015-08-07 DJ Delorie <dj@redhat.com>
9658 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
9660 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
9662 PR rtl-optimization/67029
9663 * ira-color.c: Include "recog.h" before including "ira-int.h".
9664 * target-globals.c: Likewise.
9665 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
9666 adds an alternative_mask argument and use it instead of
9667 preferred_alternatives.
9668 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
9669 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
9670 * sched-deps.c: Include "ira-int.h" after including "ira.h".
9671 (sched_analyze_insn): Update call to
9672 ira_implicitly_set_insn_hard_regs.
9673 * sel-sched.c: Include "ira-int.h" after including "ira.h".
9674 (implicit_clobber_conflict_p): Update call to
9675 ira_implicitly_set_insn_hard_regs.
9677 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
9679 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
9681 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
9684 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
9685 currently_expanding_to_rtl is set.
9687 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
9689 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
9690 * configure: Regenerate.
9692 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9693 Jiong Wang <jiong.wang@arm.com>
9695 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
9696 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
9697 (REG_CLASS_NAMES): Likewise.
9698 (REG_CLASS_CONTENTS): Likewise.
9699 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
9700 (aarch64_register_move_cost): Likewise.
9701 (aarch64_load_symref_appropriately): Invoke the new added pattern if
9703 * config/aarch64/constraints.md (Uc0): New constraint.
9705 2015-08-06 Jiong Wang <jiong.wang@arm.com>
9707 * config/aarch64/constraints.md (Usf): Add the test of
9708 aarch64_is_noplt_call_p.
9710 2015-08-06 Jiong Wang <jiong.wang@arm.com>
9712 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
9714 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
9715 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
9716 (call_symbol): Likewise.
9718 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
9720 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
9721 for vectorizing multiplication patterns.
9722 * tree-vectorizer.h: Adjust the number of patterns.
9724 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
9726 * config/i386/sse.md (*vec_concatv2df): Declare added
9727 alternatives as sselog type.
9729 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9731 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
9734 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9736 * config/s390/s390.c (s390_expand_tbegin): Expand either
9737 tbegin_1_z13 or tbegin_1 depending on VX flag.
9738 * config/s390/s390.md ("tbegin_1_z13"): New expander.
9740 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9742 * config/s390/s390.opt: Clarify description for -mzvector
9743 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
9746 2015-08-06 Richard Biener <rguenther@suse.de>
9748 * gimple.h (gimple_call_set_fn): Access op member directly.
9749 (gimple_call_chain_ptr): Likewise.
9750 (gimple_call_set_chain): Likewise.
9751 (gimple_cond_lhs_ptr): Likewise.
9752 (gimple_cond_set_lhs): Likewise.
9753 (gimple_cond_rhs_ptr): Likewise.
9754 (gimple_cond_set_rhs): Likewise.
9755 (gimple_cond_true_label): Likewise.
9756 (gimple_cond_set_true_label): Likewise.
9757 (gimple_cond_set_false_label): Likewise.
9758 (gimple_cond_false_label): Likewise.
9759 (gimple_label_label): Likewise.
9760 (gimple_label_set_label): Likewise.
9761 (gimple_goto_set_dest): Likewise.
9762 (gimple_asm_input_op): Likewise.
9763 (gimple_asm_input_op_ptr): Likewise.
9764 (gimple_asm_set_input_op): Likewise.
9765 (gimple_asm_output_op): Likewise.
9766 (gimple_asm_output_op_ptr): Likewise.
9767 (gimple_asm_set_output_op): Likewise.
9768 (gimple_asm_clobber_op): Likewise.
9769 (gimple_asm_set_clobber_op): Likewise.
9770 (gimple_asm_label_op): Likewise.
9771 (gimple_asm_set_label_op): Likewise.
9772 (gimple_switch_index): Likewise.
9773 (gimple_switch_index_ptr): Likewise.
9774 (gimple_return_retval_ptr): Likewise.
9775 (gimple_return_retval): Likewise.
9776 (gimple_return_set_retval): Likewise.
9777 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
9778 (gimple_switch_label): Likewise.
9779 (gimple_switch_set_label): Likewise.
9781 2015-08-06 Richard Biener <rguenther@suse.de>
9783 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
9784 bool comparison canonicalization and restrict to integers.
9786 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
9788 * coretypes.h (enum symbol_visibility): Relocate here.
9789 * flag-types.h (enum symbol_visibility): Remove.
9790 * tree-core.h (enum symbol_visibility): Remove.
9792 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
9795 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
9796 for no_split_stack function attribute along with
9798 (rs6000_expand_split_stack_prologue): Likewise.
9800 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
9801 Jeff Law <law@redhat.com>
9804 * doc/invoke.texi (Wnull-dereference): New.
9805 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
9806 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
9807 Warn for potential NULL dereferences.
9808 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
9809 * ubsan.c (instrument_nonnull_arg): Call
9810 infer_nonnull_range_by_attribute.
9811 (instrument_nonnull_return): Likewise.
9812 * common.opt (Wnull-dereference); New.
9813 * gimple.c (infer_nonnull_range): Remove bool arguments.
9814 (infer_nonnull_range_by_dereference): New.
9815 (infer_nonnull_range_by_attribute): New.
9816 * gimple.h: Update declarations.
9818 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9820 * gensupport.c (sequence_num): Replace with...
9821 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
9822 ...these new variables.
9823 (init_rtx_reader_args_cb): Update accordingly.
9824 (get_num_code_insns): Likewise.
9825 (read_md_rtx): Rework to use a while loop and get_c_test.
9826 Use the new counters. Remove redundant DEFINE_SUBST case.
9827 * genoutput.c (gen_split): Delete.
9828 (main): Don't call it.
9830 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9832 * gensupport.h (get_c_test): Declare.
9833 * gensupport.c (get_c_test): New function.
9834 * genconditions.c (main): Use it.
9835 * genrecog.c (validate_pattern): Likewise.
9836 (match_pattern_1): Likewise. Remove c_test argument.
9837 (match_pattern): Update accordingly and remove c_test argument.
9838 (main): Update accordingly.
9840 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9842 * gensupport.h (get_num_insn_codes): Declare.
9843 * gensupport.c (get_num_insn_codes): New function.
9844 * genattrtab.c (optimize_attrs): Rename max_insn_code to
9846 (main): Likewise. Use get_num_insn_codes.
9847 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
9849 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9852 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
9853 is zero- rather than sign-extended.
9855 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9857 * target-insns.def (can_extend): Delete.
9859 2015-08-05 Richard Biener <rguenther@suse.de>
9861 PR tree-optimization/67121
9862 * tree-if-conv.c (combine_blocks): Clear range-info produced
9863 by stmts no longer executed conditionally.
9865 2015-08-05 Nick Clifton <nickc@redhat.com>
9867 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
9868 to allow identical far pointers to remain.
9870 2015-08-05 Richard Biener <rguenther@suse.de>
9873 * match.pd: Compare address bases with == if they are decls
9874 or SSA names, not operand_equal_p. Otherwise fail.
9876 2015-08-05 Richard Biener <rguenther@suse.de>
9878 PR tree-optimization/67055
9879 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
9882 * g++.dg/torture/pr67055.C: New testcase.
9884 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
9886 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
9888 (define_attr "enabled"): Handle avx521vl and noavx512vl.
9889 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
9890 AVX-512 alternative out of SSE.
9891 (define_insn "*vec_concatv2df"): Ditto.
9893 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
9895 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
9896 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
9897 CODE_FOR_avx_ptestv4di.
9898 * config/i386/sse.md (define_mode_iterator V_AVX): New.
9899 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
9900 (define_insn "avx_ptest256"): Merge this ...
9901 (define_insn "sse4_1_ptest"): And this ...
9902 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
9904 2015-08-05 Richard Biener <rguenther@suse.de>
9906 PR tree-optimization/67109
9907 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
9908 against too big groups. Print whether this is a load or store
9909 group. Rename from ...
9910 (vect_analyze_group_access): ... this which is now a wrapper
9911 dissolving an invalid group.
9912 (vect_analyze_data_ref_accesses): Print whether this is a load
9915 2015-08-05 Richard Biener <rguenther@suse.de>
9918 * match.pd: Guard const_binop result checking against NULL_TREE
9921 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
9923 * cse.c (cse_insn): Restoring old behaviour for src_eqv
9924 when dest and value in the REG_EQUAL are same and dest
9927 2015-08-04 Anatoly Sokolov <aesok@post.ru>
9929 * config/moxie/moxie.h (PRINT_OPERAND,
9930 PRINT_OPERAND_ADDRESS): Remove macros.
9931 * config/moxie/moxie-protos.h (moxie_print_operand,
9932 moxie_print_operand_address): Remove declaration.
9933 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
9934 TARGET_PRINT_OPERAND_ADDRESS): Define.
9935 (moxie_print_operand, moxie_print_operand_address): Make static.
9937 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
9940 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
9941 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
9943 2015-08-04 Richard Biener <rguenther@suse.de>
9945 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
9947 (dt_operand::gen_gimple_expr): Adjust.
9949 2015-08-04 Richard Biener <rguenther@suse.de>
9951 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
9952 bool compares on RHS.
9953 * match.pd: Add X ==/!= !X is false/true pattern.
9955 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
9957 * config/aarch64/aarch64.c: Change inner loop statement cost
9958 to be consistent with other targets.
9960 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
9962 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
9965 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
9967 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
9968 (machine_function): Remove pseudos field.
9970 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9972 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
9973 Exit early and use target_option_current_node if processing current
9976 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9978 * doc/extend.texi (AArch64 Function Attributes): New node.
9979 (AArch64 Pragmas): Likewise.
9981 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9983 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
9984 Initialize simd builtins if TARGET_SIMD.
9985 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
9986 Make sure that the builtins are initialized only once no matter how
9987 many times the function is called.
9988 (aarch64_init_builtins): Unconditionally initialize crc builtins.
9989 (aarch64_relayout_simd_param): New function.
9990 (aarch64_simd_expand_args): Use above during argument expansion.
9991 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
9992 simd builtins if TARGET_SIMD.
9993 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
9995 (aarch64_relayout_simd_types): Likewise.
9997 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9999 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
10000 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
10001 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
10002 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
10004 (aarch64_reset_previous_fndecl): New function.
10005 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
10007 * config/aarch64/aarch64-c.c: New file.
10008 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
10009 Push and pop options at beginning and end. Remove ifdef
10010 __ARM_FEATURE_CRC32.
10011 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
10012 Add pragma +nothing+simd and +nothing+crypto where appropriate.
10013 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
10014 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
10016 (aarch64_register_pragmas): Likewise.
10017 (aarch64_reset_previous_fndecl): Likewise.
10018 (aarch64_process_target_attr): Likewise.
10019 (aarch64_override_options_internal): Likewise.
10021 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10023 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
10025 (aarch64_can_inline_p): Likewise.
10026 (TARGET_CAN_INLINE_P): Define.
10028 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10030 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
10031 Remove static. Handle OPT_mgeneral_regs_only,
10032 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
10033 OPT_momit_leaf_frame_pointer.
10034 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
10035 (aarch64_attr_opt_type): New enum.
10036 (aarch64_attribute_info): New struct.
10037 (aarch64_handle_attr_arch): New function.
10038 (aarch64_handle_attr_cpu): Likewise.
10039 (aarch64_handle_attr_tune): Likewise.
10040 (aarch64_handle_attr_isa_flags): Likewise.
10041 (aarch64_attributes): New table.
10042 (aarch64_process_one_target_attr): New function.
10043 (num_occurences_in_str): Likewise.
10044 (aarch64_process_target_attr): Likewise.
10045 (aarch64_option_valid_attribute_p): Likewise.
10046 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
10047 * config/aarch64/aarch64-protos.h: Include input.h
10048 (aarch64_handle_option): Declare prototype.
10050 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10052 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
10053 * config/aarch64/aarch64.c: Include target-globals.h
10054 (aarch64_previous_fndecl): New variable.
10055 (aarch64_set_current_function): New function.
10056 (TARGET_SET_CURRENT_FUNCTION): Define.
10058 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10060 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
10061 (explicit_arch): Likewise.
10062 (x_aarch64_isa_flags): Likewise.
10063 (mgeneral-regs-only): Mark as Save.
10064 (mfix-cortex-a53-835769): Likewise.
10065 (mcmodel=): Likewise.
10066 (mstrict-align): Likewise.
10067 (momit-leaf-frame-pointer): Likewise.
10068 (mtls-dialect): Likewise.
10069 (master=): Likewise.
10070 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
10071 (aarch64_isa_flags): Remove extern declaration.
10072 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
10073 to indicate success or failure.
10074 (aarch64_validate_march): Likewise.
10075 (aarch64_validate_mtune): Likewise.
10076 (aarch64_isa_flags): Delete.
10077 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
10078 instead of aarch64_isa_flags.
10079 (aarch64_get_tune_cpu): New function.
10080 (aarch64_get_arch): Likewise.
10081 (aarch64_override_options): Use above and set up explicit_tune_core
10083 (aarch64_print_extension): Move earlier in file. Add isa_flags
10084 argument and use that instead of the global aarch64_isa_flags.
10085 (aarch64_option_save): New function.
10086 (aarch64_option_restore): Likewise.
10087 (aarch64_option_print): Likewise.
10088 (aarch64_declare_function_name): Likewise.
10089 (aarch64_start_file): Delete.
10090 (TARGET_ASM_FILE_START): Do not define.
10091 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
10092 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
10095 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10097 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
10098 flag_omit_leaf_frame_pointer to 2.
10100 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10102 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
10104 (TARGET_FIX_ERR_A53_835769): New macro.
10105 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
10106 handling of opts->x_aarch64_fix_a53_err835769.
10107 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
10108 than aarch64_fix_a53_err835769.
10109 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
10110 * config/aarch64/aarch64-linux.h: Likewise.
10112 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
10114 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
10115 ix86_expand_int_movcc as boolean.
10117 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10119 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
10120 (aarch64_cpu_string): Likewise.
10121 (aarch64_tune_string): Likewise.
10122 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
10123 (aarch64_parse_extension): Return aarch64_parse_opt_result.
10124 Add extra argument to put result into.
10125 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
10126 (aarch64_parse_cpu): Add arguments to put results into. Return
10127 aarch64_parse_opt_result.
10128 (aarch64_parse_tune): Likewise.
10129 (aarch64_override_options_after_change_1): New function.
10130 (aarch64_override_options_internal): New function.
10131 (aarch64_validate_mcpu): Likewise.
10132 (aarch64_validate_march): Likewise.
10133 (aarch64_validate_mtune): Likewise.
10134 (aarch64_override_options): Update to reflect above changes.
10135 Move some logic into aarch64_override_options_internal.
10136 Initialize target_option_default_node and target_option_current_node.
10137 (aarch64_override_options_after_change): Move logic into
10138 aarch64_override_options_after_change_1 and call it with global_options.
10139 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
10140 flag values from that.
10142 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10144 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
10145 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
10146 * config/aarch64/aarch64.c (struct processor): Add arch field.
10147 (all_architectures): Handle above, move above all_cores.
10148 (all_cores): Handle above.
10149 (aarch64_parse_arch): Handle above changes.
10150 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
10151 above. Update comments.
10152 (armv8.1-a): Likewise.
10153 * config/aarch64/aarch64-cores.def: Update according to above.
10154 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
10155 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
10156 aarch64_arch_driver_info.
10158 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10160 * config/aarch64/aarch64.c (struct processor): Add ident field.
10161 Rename core sched_core.
10162 (all_cores): Handle above changes.
10163 (all_architectures): Likewise.
10164 (aarch64_parse_arch): Likewise.
10165 (aarch64_override_options): Likewise.
10167 2015-08-04 Richard Biener <rguenther@suse.de>
10169 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
10170 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
10171 comparisons embedded in [VEC_]COND_EXPRs.
10173 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
10175 * tree-if-conv.c: Fix various typos in comments.
10176 * tree-vect-stmts.c: Likewise.
10178 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
10180 PR tree-optimization/67043
10181 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
10182 preheader after hoisting invariant in it.
10183 (find_defs): Force recomputation of all luids.
10185 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
10187 * config/rs6000/htm.md (tabort.): Restrict the source operand to
10188 using a base register.
10190 2015-08-03 David Malcolm <dmalcolm@redhat.com>
10192 * main.c (main): Pass in NULL for toplev's external_timer.
10193 * timevar.c: Include coretypes.h.
10194 (class timer::named_items): New.
10195 (timer::named_items::named_items): New.
10196 (timer::named_items::~named_items): New.
10197 (timer::named_items::push): New.
10198 (timer::named_items::pop): New.
10199 (timer::named_items::print): New.
10200 (timer::timer): Initialize field "m_jit_client_items".
10201 (timer::~timer): New.
10202 (timer::push): Move bulk of implementation to...
10203 (timer::push_internal): ...here. New function.
10204 (timer::pop): Move bulk of implementation to...
10205 (timer::pop_internal): ...here. New function.
10206 (timer::push_client_item): New.
10207 (timer::pop_client_item): New.
10208 (timer::print_row): New function, taken from timer::print.
10209 (timer::print): Print "GCC items" header if we also have client
10210 items. Move row-printing to timer::print_row. Print any client
10212 (timer::get_topmost_item_name): New method.
10213 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
10214 (TV_JIT_CLIENT_CODE): New.
10215 * timevar.h (timer::push_client_item): New declaration.
10216 (timer::pop_client_item): New declaration.
10217 (timer::get_topmost_item_name): New method.
10218 (timer::push_internal): New declaration.
10219 (timer::pop_internal): New declaration.
10220 (timer::print_row): New declaration.
10221 (timer::named_items): New declaration.
10222 (timer::m_jit_client_items): New field.
10223 (timer): Add friend class named_items.
10224 (auto_timevar::auto_timevar): Add timer param.
10225 (auto_timevar::~auto_timevar): Use field "m_timer".
10226 (auto_timevar::m_timer): New field.
10227 * toplev.c (initialize_rtl): Add g_timer as param when
10228 constructing auto_timevar instance.
10229 (toplev::toplev): Add "external_timer" param, and use it to
10230 initialize the "g_timer" global if non-NULL.
10231 (toplev::~toplev): If this created "g_timer", delete it.
10232 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
10233 with "external_timer" timer *.
10235 2015-08-03 Alexander Basov <coohpt@gmail.com>
10237 PR middle-end/64744
10238 PR middle-end/48470
10239 PR middle-end/43404
10240 * cfgexpand.c (expand_one_var): Add check if stack is going to
10241 be used in naked function.
10242 * expr.c (expand_expr_addr_expr_1): Remove excess checking
10243 whether expression should not reside in MEM.
10244 * function.c (use_register_for_decl): Do not use registers for
10245 non-register things (volatile, float, BLKMode) in naked functions.
10247 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
10250 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
10251 Adjust splits to match new pattern.
10253 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10255 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
10258 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
10259 point in VSX registers.
10261 * config/rs6000/constraints.md (wb constraint): Document unused
10263 (we constraint): Likewise.
10264 (wo constraint): Likewise.
10265 (wp constraint): New constraint for IEEE 128-bit floating point in
10267 (wq constraint): Likewise.
10269 * config/rs6000/predicates.md (easy_fp_constant): Add support for
10270 IEEE 128-bit floating point in VSX registers.
10271 (easy_scalar_constant): Likewise.
10273 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
10274 constraints (wp, wq) for IEEE 128-bit floating point in VSX
10276 (rs6000_init_hard_regno_mode_ok): Likewise.
10278 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
10279 floating point in VSX registers.
10282 (VSX_M2): Likewise.
10288 (vsx_le_permute_<mode>): Add support to properly swap bytes for
10289 IEEE 128-bit floating point in VSX registers on little endian.
10290 (vsx_le_undo_permute_<mode>): Likewise.
10291 (vsx_le_perm_load_<mode>): Likewise.
10292 (vsx_le_perm_store_<mode>): Likewise.
10293 (splitters for IEEE 128-bit fp moves): Likewise.
10295 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
10298 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
10299 floating point in VSX registers.
10302 * doc/md.text (Machine Constraints): Document wp and wq
10303 constraints on PowerPC.
10305 2015-08-03 Jeff Law <law@redhat.com>
10307 PR middle-end/66314
10308 PR gcov-profile/66899
10309 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
10310 iterate over the jump threading paths when an element in the
10311 jump threading paths array is eliminated.
10313 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
10315 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
10317 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
10319 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
10320 is_use_properly_guarded the variable def_preds. Free its
10321 contents before returning.
10322 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
10323 (is_use_properly_guarded): Replace local variable def_preds with
10324 a parameter. Adjust accordingly. Only update *def_preds if it's
10327 2015-08-03 Richard Biener <rguenther@suse.de>
10329 * genmatch.c (simplify::for_subst_vec): New member.
10330 (binary_ok): New helper for for lowering.
10331 (lower_for): Delay substituting operators into result expressions
10332 if we can merge the results eventually again.
10333 (capture_info::walk_result): Adjust for user_id appearing as
10334 result expression operator.
10335 (expr::gen_transform): Likewise.
10336 (dt_simplify::gen_1): Likewise.
10337 (dt_simplify::gen): Pass not substituted operators to tail
10338 functions or initialize local variable with it.
10339 (decision_tree::gen): Adjust function signature.
10340 * match.pd: Fix tests against global code and add default
10341 cases to switch stmts.
10343 2015-08-03 Richard Biener <rguenther@suse.de>
10345 * genmatch.c (dt_simplify::gen): Create captures array
10346 with an initializer.
10348 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10350 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
10351 the host compiler is affected by placement new aliasing bug.
10352 * configure: Regenerate.
10353 * Makefile.in (ALIASING_FLAGS): New variable.
10354 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
10356 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
10359 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
10360 (negmulsf3_vfp): Likewise.
10361 (muldf3negdf_vfp): Disable for -frounding-math.
10362 (mulsf3negsf_vfp): Likewise.
10363 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
10364 fix MULT cost with -frounding-math.
10366 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10368 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
10369 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
10370 explicit. Prefer to add the flag whenever possible.
10371 (noce_process_if_block): Try noce_try_store_flag_constants before
10374 2015-08-03 Richard Biener <rguenther@suse.de>
10376 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
10377 New hash-map to record equivalent transforms.
10378 (dt_node::analyze): Populate the equivalent transforms hash-map.
10379 (dt_simplify::info): Add reference to hash-map entry.
10380 (dt_simplify::gen): If we have split out a function for the
10381 transform, generate a call to it.
10382 (sinfo_hashmap_traits::hash): New function.
10383 (compare_op): New helper function for ...
10384 (sinfo_hashmap_traits::equal_keys): ... this new function.
10385 (decision_tree::gen): Split out common equivalent transforms
10388 2015-08-03 Richard Biener <rguenther@suse.de>
10390 * gimple-fold.c (fold_gimple_assign): Remove folding of
10391 the comparison in COND_EXPRs.
10393 2015-08-03 Richard Biener <rguenther@suse.de>
10395 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
10396 on the rhs of assignments first simplify the embedded
10399 2015-08-03 Richard Biener <rguenther@suse.de>
10401 PR tree-optimization/66917
10402 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
10404 (DR_VECT_AUX): New macro.
10405 (set_dr_misalignment): Adjust.
10406 (dr_misalignment): Likewise.
10407 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
10408 Compute whether the base is at least element aligned.
10409 * tree-vect-stmts.c (ensure_base_align): Adjust.
10410 (vectorizable_store): If the base is not element aligned
10411 preserve alignment of the original access if misalignment is unknown.
10412 (vectorizable_load): Likewise.
10414 2015-08-02 Martin Sebor <msebor@redhat.com>
10416 * c-family/c.opt (-Wframe-address): New warning option.
10417 * doc/invoke.texi (Wframe-address): Document it.
10418 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
10419 Clarify possible effects of calling the functions with non-zero
10420 arguments and mention -Wframe-address.
10421 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
10423 2015-08-01 Michael Collison <michael.collison@linaro.org
10424 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10426 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
10427 (*arm_umin_cmp): Likewise.
10429 2015-08-01 Caroline Tice <cmtice@google.com>
10432 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
10434 (vtbl_find_mangled_name): New function.
10435 (vtbl_register_mangled_name): New function.
10436 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
10437 mangled name in mangled name vectors.
10438 (find_or_create_vtbl_map_node): Ditto.
10439 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
10440 update recursion_depth on function entry; pass it to every recursive
10441 call; automatically exit if depth > 25 (give up looking at that point).
10442 (verify_bb_vtables): Initialize recursion_depth and pass it to
10443 var_is_used_for_virtual_call_p.
10444 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
10445 global variable decls.
10446 (vtbl_register_mangled_name): New extern function decl.
10448 2015-08-01 Tom de Vries <tom@codesourcery.com>
10450 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
10452 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
10454 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
10455 operation_no_trapping_overflow. Allow non-overflow operations.
10456 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
10459 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
10462 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
10464 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10466 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
10467 Enable for TARGET_32BIT.
10468 (*if_move_neg): Likewise.
10470 2015-07-31 Nick Clifton <nickc@redhat.com>
10472 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
10473 Returns true for __model__.
10474 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10476 2015-07-31 Alan Modra <amodra@gmail.com>
10479 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
10480 (rs6000_emit_prologue): Set it.
10481 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
10483 2015-07-31 Richard Biener <rguenther@suse.de>
10485 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
10486 -> X == (C1 ^ C2) which is already implemented in match.pd.
10487 Remove redundant dispatching to fold_relational_const.
10488 Move unordered self and NaN compares ...
10489 * match.pd: ... as patterns here. Remove some stray captures
10492 2015-07-31 Petr Murzin <petr.murzin@intel.com>
10494 * config/i386/i386.c
10495 (bdesc_special_args): Convert mask type from signed to unsigned for
10497 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
10498 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
10499 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
10500 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
10501 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
10502 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
10503 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
10504 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
10505 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
10506 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
10507 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
10508 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
10509 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
10510 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
10511 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
10512 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
10513 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
10514 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
10515 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
10516 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
10517 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
10518 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
10519 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
10520 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
10521 * config/i386/i386-builtin-types.def
10522 (V16QI_FTYPE_V16SI): Remove.
10523 (V8DF_FTYPE_V8SI): Ditto.
10524 (V8HI_FTYPE_V8DI): Ditto.
10525 (V8SI_FTYPE_V8DI): Ditto.
10526 (V8SF_FTYPE_V8DF): Ditto.
10527 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
10528 (V16HI_FTYPE_V16SI): Ditto.
10529 (V16SF_FTYPE_V16HI): Ditto.
10530 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
10531 (V16SF_FTYPE_V16SI): Ditto.
10532 (V4DI_FTYPE_V4DI): Ditto.
10533 (V16SI_FTYPE_V16SF): Ditto.
10534 (V16SF_FTYPE_FLOAT): Ditto.
10535 (V8DF_FTYPE_DOUBLE): Ditto.
10536 (V8DI_FTYPE_INT64): Ditto.
10537 (V8DI_FTYPE_V4DI): Ditto.
10538 (V16QI_FTYPE_V8DI): Ditto.
10539 (UINT_FTYPE_V4SF): Ditto.
10540 (UINT64_FTYPE_V4SF): Ditto.
10541 (UINT_FTYPE_V2DF): Ditto.
10542 (UINT64_FTYPE_V2DF): Ditto.
10543 (V16SI_FTYPE_V16SI): Ditto.
10544 (V8DI_FTYPE_V8DI): Ditto.
10545 (V16SI_FTYPE_PV4SI): Ditto.
10546 (V16SF_FTYPE_PV4SF): Ditto.
10547 (V8DI_FTYPE_PV2DI): Ditto.
10548 (V8DF_FTYPE_PV2DF): Ditto.
10549 (V4DI_FTYPE_PV2DI): Ditto.
10550 (V4DF_FTYPE_PV2DF): Ditto.
10551 (V16SI_FTYPE_PV2SI): Ditto.
10552 (V16SF_FTYPE_PV2SF): Ditto.
10553 (V8DI_FTYPE_PV4DI): Ditto.
10554 (V8DF_FTYPE_PV4DF): Ditto.
10555 (V8SF_FTYPE_FLOAT): Ditto.
10556 (V4SF_FTYPE_FLOAT): Ditto.
10557 (V4DF_FTYPE_DOUBLE): Ditto.
10558 (V8SF_FTYPE_PV4SF): Ditto.
10559 (V8SI_FTYPE_PV4SI): Ditto.
10560 (V4SI_FTYPE_PV2SI): Ditto.
10561 (V8SF_FTYPE_PV2SF): Ditto.
10562 (V8SI_FTYPE_PV2SI): Ditto.
10563 (V16SF_FTYPE_PV8SF): Ditto.
10564 (V16SI_FTYPE_PV8SI): Ditto.
10565 (V8DI_FTYPE_V8SF): Ditto.
10566 (V4DI_FTYPE_V4SF): Ditto.
10567 (V2DI_FTYPE_V4SF): Ditto.
10568 (V64QI_FTYPE_QI): Ditto.
10569 (V32HI_FTYPE_HI): Ditto.
10570 (V8UHI_FTYPE_V8UHI): Ditto.
10571 (V16UHI_FTYPE_V16UHI): Ditto.
10572 (V32UHI_FTYPE_V32UHI): Ditto.
10573 (V2UDI_FTYPE_V2UDI): Ditto.
10574 (V4UDI_FTYPE_V4UDI): Ditto.
10575 (V8UDI_FTYPE_V8UDI): Ditto.
10576 (V4USI_FTYPE_V4USI): Ditto.
10577 (V8USI_FTYPE_V8USI): Ditto.
10578 (V16USI_FTYPE_V16USI): Ditto.
10579 (V2DF_FTYPE_V2DF_UINT64): Ditto.
10580 (V2DI_FTYPE_V2DF_V2DF): Ditto.
10581 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
10582 (V8DF_FTYPE_V8DF_V8DI): Ditto.
10583 (V4SF_FTYPE_V4SF_UINT64): Ditto.
10584 (V4SI_FTYPE_V4SF_V4SF): Ditto.
10585 (V16SF_FTYPE_V16SF_V16SI): Ditto.
10586 (V64QI_FTYPE_V32HI_V32HI): Ditto.
10587 (V32HI_FTYPE_V16SI_V16SI): Ditto.
10588 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
10589 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
10590 (V32HI_FTYPE_V64QI_V64QI): Ditto.
10591 (V32HI_FTYPE_V32HI_V32HI): Ditto.
10592 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
10593 (V16SI_FTYPE_V16SI_V4SI): Ditto.
10594 (V16SI_FTYPE_V16SI_V16SI): Ditto.
10595 (V16SI_FTYPE_V32HI_V32HI): Ditto.
10596 (V16SI_FTYPE_V16SI_SI): Ditto.
10597 (V8DI_FTYPE_V8DI_V8DI): Ditto.
10598 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
10599 (V8DI_FTYPE_V16SI_V16SI): Ditto.
10600 (V8DI_FTYPE_V8DI_V2DI): Ditto.
10601 (QI_FTYPE_QI): Ditto.
10602 (SI_FTYPE_SI): Ditto.
10603 (DI_FTYPE_DI): Ditto.
10604 (QI_FTYPE_QI_QI): Ditto.
10605 (QI_FTYPE_QI_INT): Ditto.
10606 (HI_FTYPE_HI_INT): Ditto.
10607 (SI_FTYPE_SI_INT): Ditto.
10608 (DI_FTYPE_DI_INT): Ditto.
10609 (HI_FTYPE_V16QI_V16QI): Ditto.
10610 (SI_FTYPE_V32QI_V32QI): Ditto.
10611 (DI_FTYPE_V64QI_V64QI): Ditto.
10612 (QI_FTYPE_V8HI_V8HI): Ditto.
10613 (HI_FTYPE_V16HI_V16HI): Ditto.
10614 (SI_FTYPE_V32HI_V32HI): Ditto.
10615 (QI_FTYPE_V4SI_V4SI): Ditto.
10616 (QI_FTYPE_V8SI_V8SI): Ditto.
10617 (QI_FTYPE_V2DI_V2DI): Ditto.
10618 (QI_FTYPE_V4DI_V4DI): Ditto.
10619 (QI_FTYPE_V8DI_V8DI): Ditto.
10620 (HI_FTYPE_V16SI_V16SI): Ditto.
10621 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
10622 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
10623 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
10624 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
10625 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
10626 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
10627 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
10628 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
10629 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
10630 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
10631 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
10632 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
10633 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
10634 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
10635 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
10636 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
10637 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
10638 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
10639 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
10640 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
10641 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
10642 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
10643 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
10644 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
10645 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
10646 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
10647 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
10648 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
10649 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
10650 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
10651 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
10652 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
10653 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
10654 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
10655 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
10656 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
10657 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
10658 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
10659 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
10660 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
10661 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
10662 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
10663 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
10664 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
10665 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
10666 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
10667 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
10668 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
10669 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
10670 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
10671 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
10672 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
10673 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
10674 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
10675 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
10676 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
10677 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
10678 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
10679 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
10680 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
10681 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
10682 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
10683 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
10684 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
10685 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
10686 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
10687 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
10688 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
10689 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
10690 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
10691 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
10692 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
10693 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
10694 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
10695 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
10696 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
10697 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
10698 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
10699 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
10700 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
10701 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
10702 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
10703 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
10704 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
10705 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
10706 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
10707 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
10708 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
10709 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
10710 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
10711 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
10712 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
10713 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
10714 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
10715 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
10716 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
10717 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
10718 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
10719 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
10720 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
10721 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
10722 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
10723 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
10724 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
10725 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
10726 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
10727 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
10728 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
10729 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
10730 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
10731 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
10732 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
10733 (HI_FTYPE_HI): Ditto.
10734 (HI_FTYPE_V16QI): Ditto.
10735 (SI_FTYPE_V32QI): Ditto.
10736 (DI_FTYPE_V64QI): Ditto.
10737 (QI_FTYPE_V8HI): Ditto.
10738 (HI_FTYPE_V16HI): Ditto.
10739 (SI_FTYPE_V32HI): Ditto.
10740 (QI_FTYPE_V4SI): Ditto.
10741 (QI_FTYPE_V8SI): Ditto.
10742 (HI_FTYPE_V16SI): Ditto.
10743 (QI_FTYPE_V2DI): Ditto.
10744 (QI_FTYPE_V4DI): Ditto.
10745 (QI_FTYPE_V8DI): Ditto.
10746 (V16QI_FTYPE_HI): Ditto.
10747 (V32QI_FTYPE_SI): Ditto.
10748 (V64QI_FTYPE_DI): Ditto.
10749 (V8HI_FTYPE_QI): Ditto.
10750 (V16HI_FTYPE_HI): Ditto.
10751 (V32HI_FTYPE_SI): Ditto.
10752 (V4SI_FTYPE_QI): Ditto.
10753 (V4SI_FTYPE_HI): Ditto.
10754 (V8SI_FTYPE_QI): Ditto.
10755 (V8SI_FTYPE_HI): Ditto.
10756 (V2DI_FTYPE_QI): Ditto.
10757 (V4DI_FTYPE_QI): Ditto.
10758 (HI_FTYPE_HI_HI): Ditto.
10759 (SI_FTYPE_SI_SI): Ditto.
10760 (DI_FTYPE_DI_DI): Ditto.
10761 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
10762 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
10763 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
10764 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
10765 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
10766 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
10767 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
10768 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
10769 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
10770 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
10771 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
10772 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
10773 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
10774 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
10775 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
10776 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
10777 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
10778 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
10779 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
10780 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
10781 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
10782 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
10783 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
10784 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
10785 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
10786 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
10787 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
10788 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
10789 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
10790 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
10791 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
10792 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
10793 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
10794 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
10795 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
10796 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
10797 (V16SI_FTYPE_HI): Ditto.
10798 (V8DI_FTYPE_QI): Ditto.
10799 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
10800 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
10801 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
10802 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
10803 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
10804 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
10805 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
10806 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
10807 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
10808 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
10809 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
10810 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
10811 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
10812 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
10813 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
10814 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
10815 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
10816 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
10817 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
10818 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
10819 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
10820 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
10821 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
10822 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
10823 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
10824 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
10825 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
10826 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
10827 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
10828 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
10829 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
10830 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
10831 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
10832 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
10833 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
10834 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
10835 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
10836 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
10837 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
10838 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
10839 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
10840 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
10841 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
10842 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
10843 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
10844 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
10845 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
10846 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
10847 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
10848 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
10849 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
10850 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
10851 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
10852 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
10853 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
10854 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
10855 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
10856 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
10857 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
10858 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
10859 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
10860 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
10861 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
10862 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
10863 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
10864 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
10865 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
10866 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
10867 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
10868 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
10869 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
10870 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
10871 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
10872 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
10873 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
10874 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
10875 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
10876 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
10877 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
10878 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
10879 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
10880 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
10881 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
10882 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
10883 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
10884 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
10885 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
10886 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
10887 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
10888 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
10889 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
10890 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
10891 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
10892 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
10893 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
10894 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
10895 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
10896 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
10897 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
10898 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
10899 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
10900 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
10901 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
10902 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
10903 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
10904 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
10905 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
10906 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
10907 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
10908 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
10909 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
10910 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
10911 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
10912 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
10913 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
10914 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
10915 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
10916 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
10917 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
10918 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
10919 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
10920 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
10921 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
10922 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
10923 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
10924 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
10925 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
10926 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
10927 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
10928 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
10929 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
10930 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
10931 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
10932 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
10933 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
10934 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
10935 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
10936 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
10937 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
10938 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
10939 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
10940 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
10941 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
10942 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
10943 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
10944 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
10945 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
10946 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
10947 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
10948 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
10949 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
10950 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
10951 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
10952 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
10953 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
10954 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
10955 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
10956 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
10957 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
10958 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
10959 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
10960 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
10961 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
10962 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
10963 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
10964 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
10965 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
10966 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
10967 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
10968 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
10969 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
10970 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
10971 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
10972 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
10973 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
10974 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
10975 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
10976 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
10977 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
10978 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
10979 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
10980 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
10981 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
10982 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
10983 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
10984 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
10985 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
10986 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
10987 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
10988 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
10989 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
10990 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
10991 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
10992 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
10993 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
10994 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
10995 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
10996 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
10997 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
10998 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
10999 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
11000 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
11001 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
11002 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
11003 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
11004 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
11005 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
11006 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
11007 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
11008 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
11009 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
11010 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
11011 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
11012 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
11013 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
11014 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
11015 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
11016 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
11017 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
11018 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
11019 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
11020 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
11021 (QI_FTYPE_V8DF_INT_QI): Ditto.
11022 (QI_FTYPE_V4DF_INT_QI): Ditto.
11023 (QI_FTYPE_V2DF_INT_QI): Ditto.
11024 (HI_FTYPE_V16SF_INT_HI): Ditto.
11025 (QI_FTYPE_V8SF_INT_QI): Ditto.
11026 (QI_FTYPE_V4SF_INT_QI): Ditto.
11027 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
11029 2015-07-31 Richard Biener <rguenther@suse.de>
11031 * gimple-fold.c (fold_gimple_assign): Remove folding of
11034 2015-07-31 Tom de Vries <tom@codesourcery.com>
11036 PR tree-optimization/66846
11037 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
11038 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
11039 (expand_omp_target) [ENABLE_CHECKING]: Same.
11040 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
11041 cfun if !LOOPS_NEED_FIXUP.
11042 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
11043 that omp_for already has its own loop struct.
11044 * tree-parloops.c (create_phi_for_local_result)
11045 (create_call_for_reduction): Handle simple latch bb.
11046 (create_parallel_loop): Add simple latch bb to preserve
11047 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
11048 (gen_parallel_loop): Remove call to cancel_loop_tree.
11049 (parallelize_loops): Skip loops that are inner loops of parallelized
11051 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
11052 verify_loop_structure.
11054 2015-07-30 Anatoly Sokolov <aesok@post.ru>
11056 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
11057 * config/v850/v850.md (RV_REGNUM): New constants.
11058 * config/v850/v850.c (v850_libcall_value): New functions.
11059 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
11060 (TARGET_LIBCALL_VALUE): Define.
11062 2015-07-30 Anatoly Sokolov <aesok@post.ru>
11064 * rtl.h (lowpart_subreg): Move in file.
11065 * loop-iv.c (lowpart_subreg): Move to...
11066 * simplify-rtx.c (lowpart_subreg): ...here.
11067 (simplify_binary_operation_1): Use lowpart_subreg instead of
11068 simplify_gen_subreg.
11069 * expr.c (expand_expr_real_2): Ditto.
11070 * emit-rtl.c (gen_lowpart_common): Ditto.
11071 * combine.c (gen_lowpart_for_combine): Ditto.
11072 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
11073 expand_debug_source_expr): Ditto.
11075 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
11077 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
11078 (expand_builtin_atomic_clear): Remove support for atomic_clear
11081 2015-07-30 Richard Biener <rguenther@suse.de>
11083 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
11084 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
11085 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
11086 redundant operand canonicalization.
11088 2015-07-30 David Sherwood <david.sherwood@arm.com>
11090 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
11091 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
11092 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
11093 * config/arm/arm.c (neon_valid_immediate): Likewise.
11094 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
11095 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
11096 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
11097 (expand_vec_perm_vpshufb2_vpermq): Likewise.
11098 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
11099 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
11100 * config/i386/sse.md
11101 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
11102 (*ssse3_palignr<mode>_perm): Likewise.
11103 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
11104 * config/spu/spu.c (arith_immediate_p): Likewise.
11105 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11106 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
11108 2015-07-30 Richard Biener <rguenther@suse.de>
11110 * genmatch.c (decision_tree::gen_gimple): Merge with ...
11111 (decision_tree::gen_generic): ... this into ...
11112 (decision_tree::gen): ... this.
11113 (main): Adjust callers.
11115 2015-07-30 Richard Biener <rguenther@suse.de>
11117 * genmatch.c (verbose): New global.
11118 (warning_at): Add overload with source_location.
11119 (capture_info::capture_info): Add bool whether generating gimple
11120 or generic. Add gimple member.
11121 (capture_info::cinfo): Add capture member.
11122 (capture_info::walk_match): Record capture. Warn on
11123 non-captured leafs.
11124 (capture_info::walk_c_expr): Add more fragments captures cannot
11125 escape through. Warn on escaped captures.
11126 (dt_simplify::gen_1): Warn on operands we force to have no
11128 (main): Initialize verbose.
11129 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
11131 2015-07-30 Richard Biener <rguenther@suse.de>
11133 PR middle-end/67053
11134 * match.pd: Allow both operands to independently have conversion
11135 when simplifying compares of addresses.
11137 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
11141 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
11142 around those cases that need one.
11144 2015-07-29 Aditya Kumar <hiraditya@msn.com>
11146 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
11148 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
11150 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
11151 New. Copied from config/i386/gnu-user.h.
11152 (ASM_COMMENT_START): Likewise.
11153 (DBX_REGISTER_NUMBER): Likewise.
11155 2015-07-29 Richard Biener <rguenther@suse.de>
11157 * gimple-fold.c (fold_gimple_cond): Remove.
11158 (fold_stmt_1): Do not call it.
11160 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
11162 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
11163 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
11165 * config/aarch64/aarch64-modes.def: Add HFmode.
11167 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11168 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
11170 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
11171 aarch64_promoted_type): New.
11173 (aarch64_float_const_representable_p): Disable HFmode.
11174 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
11175 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
11176 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
11178 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
11179 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
11181 * config/aarch64/iterators.md (GPF_F16): New.
11183 2015-07-29 Richard Biener <rguenther@suse.de>
11185 * match.pd: Merge address comparison patterns and make them
11186 handle some more cases.
11188 2015-07-29 Richard Biener <rguenther@suse.de>
11190 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
11191 (parser::parse_capture): Add bool argument on whether to reject
11193 (parser::parse_expr): Adjust.
11194 (parser::parse_op): Likewise.
11195 (parser::parse_pattern): Likewise.
11197 2015-07-29 Richard Biener <rguenther@suse.de>
11199 * gimple-fold.c (has_use_on_stmt): New function.
11200 (replace_stmt_with_simplification): Use it to allow
11201 abnormals originally referenced in the stmt.
11202 (fold_stmt_1): Canonicalize operand order.
11204 2015-07-28 David Sherwood <david.sherwood@arm.com>
11206 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
11207 GET_MODE_INNER unconditionally.
11208 * config/spu/spu.c (arith_immediate_p): Likewise.
11209 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
11210 * expmed.c (synth_mult): Remove check for VOIDmode result from
11212 (expand_mult_const): Likewise.
11213 * fold-const.c (fold_binary_loc): Replace call to element_precision
11214 with call to GET_MODE_PRECISION.
11215 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
11217 (emit_mode_inner): Likewise.
11218 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
11220 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
11221 (GET_MODE_UNIT_PRECISION): Likewise.
11222 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
11223 * simplify-rtx.c (simplify_immed_subreg): Likewise.
11224 * stor-layout.c (bitwise_type_for_mode): Update assert.
11225 (element_precision): Remove.
11227 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11229 * target-insns.def (reload_load_address): New targetm instruction
11231 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
11233 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11235 * target-insns.def (atomic_test_and_set): New targetm instruction
11237 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
11238 HAVE_*/gen_* interface.
11240 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11242 * target-insns.def (can_extend, ptr_extend): New targetm instruction
11244 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
11245 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
11246 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
11247 * rtlanal.c (nonzero_bits1): Likewise.
11248 (num_sign_bit_copies1): Likewise.
11250 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11252 * target-insns.def (eh_return): New targetm instruction pattern.
11253 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
11255 * function.c (thread_prologue_and_epilogue_insns): Remove
11256 preprocessor condition.
11258 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11260 * target-insns.def (indirect_jump): New targetm instruction pattern.
11261 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
11264 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11266 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
11267 instead of nonimmediate_operand. Remove C condiition.
11269 2015-07-28 Richard Biener <rguenther@suse.de>
11271 * match.pd: Add more simplification of address comparisons.
11273 2015-07-28 Richard Biener <rguenther@suse.de>
11275 * match.pd: Re-order two cases in comparison with max/min
11276 value simplification to make it apply for bools.
11278 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11280 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
11281 Handle simple SIGN_EXTEND or ZERO_EXTEND.
11282 (aarch64_rtx_costs): Properly strip extend or extract before
11283 passing down to rtx costs again.
11285 2015-07-28 Nick Clifton <nickc@redhat.com>
11287 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
11288 Optimizes the case where -mes0 is active and a constant symbolic
11290 * config/rl78/rl78-protos.h: Prototype the new function.
11291 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
11293 2015-07-28 Tom de Vries <tom@codesourcery.com>
11295 * tree-parloops.c (reduc_stmt_res): New function.
11296 (initialize_reductions, add_field_for_reduction)
11297 (create_phi_for_local_result, create_loads_for_reductions)
11298 (create_stores_for_reduction, build_new_reduction): Handle case that
11299 reduc_stmt is a phi.
11300 (gather_scalar_reductions): Allow double_reduc reductions.
11302 2015-07-28 Richard Biener <rguenther@suse.de>
11304 * fold-const.c (fold_comparison): Remove equality folding
11305 of decl addresses ...
11306 * match.pd: ... here and merge with existing pattern.
11308 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
11310 PR tree-optimization/66828
11311 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
11312 from int64_t to uint64_t.
11314 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
11316 * opts-common.c (read_cmdline_option): List DriverOnly enum values
11317 as valid only in the error message of the driver, not in the
11318 messages of the language compilers.
11320 2015-07-27 Tom de Vries <tom@codesourcery.com>
11322 * tree-parloops.c (gather_scalar_reductions): Simplify function
11325 2015-07-27 Marek Polacek <polacek@redhat.com>
11327 * ipa-devirt.c (types_same_for_odr): Fix typo.
11329 2015-07-27 Jason Merrill <jason@redhat.com>
11332 * dwarf2out.c (gen_inlined_subroutine_die): Check
11333 cgraph_function_possibly_inlined_p.
11335 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
11337 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
11338 Place integer variant first.
11339 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
11341 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
11344 * config/arm/arm-builtins.c (enum arm_builtins):
11345 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
11346 (ARM_BUILTIN_NEON_BASE): Rename macro to....
11347 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
11348 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
11349 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
11351 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
11354 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
11355 Add qualifier_lane_index.
11356 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
11357 (arm_getlane_qualifiers): Use qualifier_lane_index.
11358 (arm_lanemac_qualifiers): Rename to...
11359 (arm_mac_n_qualifiers): ...this.
11360 (LANEMAC_QUALIFIERS): Rename to...
11361 (MAC_N_QUALIFIERS): ...this.
11362 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
11363 (arm_setlane_qualifiers): Use qualifier_lane_index.
11364 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
11365 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
11366 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
11367 (arm_expand_neon_builtin): Handle qualifier_lane_index.
11369 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
11370 * config/arm/arm.c (bounds_check): Likewise, improve error message.
11371 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
11372 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
11373 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
11374 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
11375 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
11376 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
11377 qualifiers to TERNOP_IMM.
11378 (vdup_lane): Change qualifiers to GETLANE.
11379 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
11380 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
11381 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
11382 vqdmlsl_n): Change qualifiers to MAC_N.
11384 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
11385 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
11386 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
11387 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
11388 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
11389 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
11390 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
11391 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
11392 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
11393 Remove call to neon_lane_bounds.
11395 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
11397 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
11398 Place integer variant first.
11400 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
11402 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
11403 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
11404 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
11405 for armv6kz targets.
11406 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
11407 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
11408 (FL_FOR_ARCH6ZK): Remove.
11409 (FL_FOR_ARCH6KZ): New.
11410 (arm_arch6zk): New declaration.
11411 * config/arm/arm-tables.opt: Regenerate.
11412 * config/arm/arm.c (arm_arch6kz): New.
11413 (arm_option_override): Set arm_arch6kz.
11414 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
11415 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
11416 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
11418 2015-07-27 Marek Polacek <polacek@redhat.com>
11422 * doc/invoke.texi: Document -Wtautological-compare.
11424 2015-07-27 Richard Biener <rguenther@suse.de>
11426 * genmatch.c (decision_tree::gen_gimple): Split out large
11427 subtrees into separate functions.
11428 (decision_tree::gen_generic): Likewise.
11430 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
11432 * config/alpha/alpha.c: Use SUBREG_P predicate.
11433 * config/alpha/predicates.md: Ditto.
11435 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
11437 * config.host (s390*-*-*): Include driver-native.c only when
11438 building with s390* as host *and* target.
11440 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
11443 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
11444 T bit register modified_between_p check.
11446 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11448 * config/i386/i386.c: Use SUBREG_P predicate.
11449 * config/i386/i386.md: Ditto.
11450 * config/i386/sse.md: Ditto.
11451 * config/i386/predicates.md: Ditto.
11453 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11456 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
11457 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
11459 2015-07-25 Sebastian Pop <s.pop@samsung.com>
11461 * Makefile.in: Remove use of TREEBROWSER.
11462 * config.in: Regenerated.
11463 * configure: Regenerated.
11464 * configure.ac: Remove definition of TREEBROWSER.
11465 * tree-browser.c: Removed.
11466 * tree-browser.def: Removed.
11468 2015-07-25 Sebastian Pop <s.pop@samsung.com>
11470 * graphite-scop-detection.c: Include gimple-pretty-print.h.
11471 (stmt_simple_for_scop_p): Print when a stmt is not handled in
11473 (scopdet_basic_block_info): Print when a loop or bb cannot be
11474 represented in Graphite.
11476 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11479 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
11480 execution guard when min_size is less than size_needed.
11482 2015-07-25 Sebastian Pop <s.pop@samsung.com>
11484 * doc/install.texi: Document supported versions of ISL.
11486 2015-07-25 Jeff Law <law@redhat.com>
11490 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11491 unable to find X NE 0 in the tables, return X as the simplified
11493 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11494 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
11495 to VISISTED_BBS. */
11496 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11497 after removing the control flow statement and unnecessary edges.
11499 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
11502 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
11504 PR rtl-optimization/64164
11505 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11506 * tree-ssa-copyrename.c: Removed.
11507 * opts.c (default_options_table): Drop -ftree-copyrename. Add
11508 -ftree-coalesce-vars.
11509 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11510 * common.opt (ftree-copyrename): Ignore.
11511 (ftree-coalesce-inlined-vars): Likewise.
11512 * doc/invoke.texi: Remove the ignored options above.
11513 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11514 * tree-ssa-coalesce.h: ... here.
11515 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11516 headers required by it.
11517 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11518 across variables when flag_tree_coalesce_vars. Check register
11519 use and promoted modes to allow coalescing. Moved to
11520 tree-ssa-coalesce.c.
11521 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11522 with its member functions to tree-ssa-coalesce.c.
11523 (var_map_base_init): Likewise. Renamed to
11524 compute_samebase_partition_bases.
11525 (partition_view_normal): Drop want_bases parameter.
11526 (partition_view_bitmap): Likewise.
11527 * tree-ssa-live.h: Adjust declarations.
11528 * tree-ssa-coalesce.c: Include explow.h.
11529 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11530 default defs at the entry point.
11531 (dump_part_var_map): New.
11532 (compute_optimized_partition_bases): New, called by...
11533 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11534 of compute_samebase_partition_bases. Adjust.
11535 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11536 * cfgexpand.c (leader_merge): New.
11537 (get_rtl_for_parm_ssa_default_def): New.
11538 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11539 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11540 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
11541 redundant MEM attr setting.
11542 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
11544 (expand_one_stack_var): ... this. New wrapper to check and
11545 skip already expanded SSA partitions.
11546 (record_alignment_for_reg_var): New, factored out of...
11547 (expand_one_var): ... this.
11548 (expand_one_ssa_partition): New.
11549 (adjust_one_expanded_partition_var): New.
11550 (expand_one_register_var): Check and skip already expanded SSA
11552 (expand_used_vars): Don't create DECLs for anonymous SSA
11553 names. Expand all SSA partitions, then adjust all SSA names.
11554 (pass::execute): Replace the loops that set
11555 SA.partition_to_pseudo from partition leaders and cleared
11556 DECL_RTL for multi-location variables, and that which used to
11557 rename vars and set attrs, with one that clears DECL_RTL and
11558 checks that PARMs and RESULTs default_defs match DECL_RTL.
11559 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11560 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11561 * explow.c (promote_ssa_mode): New.
11562 * explow.h (promote_ssa_mode): Declare.
11563 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11564 * function.c: Include cfgexpand.h.
11565 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11566 (use_register_for_parm_decl): Wrapper for the above to
11567 special-case the result_ptr.
11568 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11569 (split_complex_args): Take assign_parm_data_all argument.
11570 Pass it to rtl_for_parm. Set up rtl and context for split
11572 (assign_parms_augmented_arg_list): Adjust.
11573 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11574 multiple locations. Recognize split complex args.
11575 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11576 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
11577 (assign_parm_setup_block): Prefer SSA-assigned location.
11578 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
11579 if stack_parm is NULL.
11580 (assign_parm_setup_stack): Prefer SSA-assigned location.
11581 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
11582 rtl before testing for pointer bounds. Special-case result_ptr.
11583 (expand_function_start): Maybe reset DECL_RTL of result.
11584 Prefer SSA-assigned location for result and static chain.
11585 Factor out DECL_RESULT and SET_DECL_RTL.
11586 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11587 anonymous SSA names. Use promote_ssa_mode.
11588 (get_temp_reg): Likewise.
11589 (remove_ssa_form): Adjust.
11590 * stor-layout.c (layout_decl): Don't set mem attributes of
11592 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11593 and get its reg_usage for reg invalidation.
11594 (compute_bb_dataflow): Pass it insn.
11595 (emit_notes_in_bb): Likewise.
11597 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11599 * config/i386/i386.c (ix86_va_start): Remove
11600 unneeded !TARGET_64BIT check.
11601 (ix86_gimplify_va_arg): Ditto.
11603 2015-07-24 Tom de Vries <tom@codesourcery.com>
11605 * graphite-sese-to-poly.c (build_poly_scop): Always call
11606 rewrite_commutative_reductions_out_of_ssa.
11608 2015-07-24 Tom de Vries <tom@codesourcery.com>
11610 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
11611 flag_associative_math to FLOAT_TYPE_P. Honour
11612 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
11614 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
11617 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
11618 and "%qD" in warning_at instead of "%q+D" in warning.
11620 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
11622 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
11623 (ix86_function_abi): Cleanup.
11625 2015-07-24 Michael Darling <darlingm@gmail.com>
11628 * acinclude.m4: Reflects renaming of configure.in to configure.ac
11629 * configure: Likewise
11630 * configure.ac: Likewise
11631 * doc/install.texi: Likewise
11632 * doc/tm.texi: Likewise
11633 * doc/tm.texi.in: Likewise
11635 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11637 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
11638 manually swapping values.
11639 * cse.c (fold_rtx): Likewise.
11640 * lra-eliminations.c (form_sum): Likewise.
11642 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
11645 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
11646 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
11647 (*jcc_1, *jcc_2, jump, simple_return_internal)
11648 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
11649 Set length_nobnd attribute instead of length attribute.
11650 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
11651 (length_nobnd): Remove attribute.
11652 (length): Remove length_nobnd processing.
11654 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
11656 * gimplify.c (omp_default_clause): New function. Reorganize flow
11657 for clarity. Broken out of ...
11658 (omp_notice_variable): ... here.
11660 2015-07-24 Gary Funck <gary@intrepid.com>
11662 PR middle-end/66984
11663 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
11664 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
11666 2015-07-24 Tom de Vries <tom@codesourcery.com>
11668 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
11669 exit-first loop transform.
11671 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
11674 * tree-cfg.c (struct replace_decls_d): New struct.
11675 (replace_block_vars_by_duplicates_1): New function.
11676 (replace_block_vars_by_duplicates): Use it to replace the decls
11677 in the value exprs by duplicates.
11679 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
11681 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
11682 -shared, -symbolic, -rdynamic.
11684 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
11687 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
11688 -dynamic-linker within %{!static %{!shared, and -rdynamic within
11691 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
11694 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
11695 edge summary is available.
11697 2015-07-24 Richard Biener <rguenther@suse.de>
11699 * genmatch.c (struct dt_node): Add statistic fields.
11700 (dt_node::analyze): New method.
11701 (decision_tree::gen_gimple): Call analyze on the root node
11702 and print statistics to stderr.
11703 (decision_tree::gen_generic): Likewise.
11705 2015-07-24 Richard Biener <rguenther@suse.de>
11707 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
11708 against the highest or lowest possible integer ...
11709 * match.pd: ... as patterns here.
11711 2015-07-24 Richard Biener <rguenther@suse.de>
11713 * genmatch.c (struct capture_info): Add same_as field.
11714 (capture_info::capture_info): Initialize same_as.
11715 (capture_info::walk_match): Compute same_as.
11716 (capture_info::walk_result): Compute stuff for the leader.
11717 (capture_info::walk_c_expr): Likewise.
11718 (dt_simplify::gen_1): Only look at leaders when deciding
11719 to force no side-effects or emit side-effects of omitted operands.
11721 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11723 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
11724 reg note to the GPR -> FPR save instructions.
11726 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11728 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
11730 (s390_expand_insv): Don't generate risbg pattern for constant zero
11732 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
11733 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
11736 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11738 * config/s390/s390.c (s390_reorg): Clean up handling of processors
11741 (s390_issue_rate): Likewise.
11742 (s390_sched_reorder): Likewise.
11743 (s390_sched_variable_issue): Likewise.
11744 (s390_loop_unroll_adjust): Likewise.
11745 (s390_option_override): Likewise.
11747 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11749 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
11750 processor capabilities with -march=native.
11751 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
11752 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
11753 (S390_TARGET_BITS_STRING): Macro to simplify specs.
11755 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11757 * config/s390/s390.c (s390_issue_rate): Handle
11758 PROCESSOR_2094_Z9_EC.
11759 (s390_option_override): Likewise.
11760 (s390_adjust_priority): Likewise.
11762 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11764 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
11765 when cross compiling.
11767 2015-07-24 Richard Biener <rguenther@suse.de>
11769 * fold-const.c (maybe_canonicalize_comparison_1): Move
11770 A code CST canonicalization ...
11771 * match.pd: ... to a pattern here.
11773 2015-07-24 Jiong Wang <jiong.wang@arm.com>
11776 2015-07-22 Jiong Wang <jiong.wang@arm.com>
11778 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
11779 (HONOR_REG_ALLOC_ORDER): Define.
11781 2015-07-24 Richard Biener <rguenther@suse.de>
11783 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
11784 * fold-const.c (fold_comparison): Move parameter does not
11785 alias &local simplification ...
11786 * match.pd: ... as a pattern here.
11788 2015-07-24 Richard Biener <rguenther@suse.de>
11790 * gimple-fold.c (replace_stmt_with_simplification): Special-case
11791 valueizing call operands.
11792 * gimple-match-head.c (maybe_push_res_to_seq): Take
11793 number of call arguments from ops array.
11794 (do_valueize): New function.
11795 (gimple_simplify): Return true if valueization changed
11796 any operand even if the result didn't simplify further.
11798 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11800 PR middle-end/25530
11801 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
11803 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11805 PR middle-end/25529
11806 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
11808 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11810 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
11813 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11815 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
11818 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
11820 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
11821 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
11823 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
11824 ms_va_list_type_node initialization.
11826 2015-07-23 Jeff Law <law@redhat.com>
11829 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11830 unable to find X NE 0 in the tables, return X as the simplified
11832 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11833 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
11834 to VISISTED_BBS. */
11835 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11836 after removing the control flow statement and unnecessary edges.
11838 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
11840 * tree-pass.h (get_current_pass_name): Removed.
11842 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
11844 PR rtl-optimization/64164
11845 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11846 * tree-ssa-copyrename.c: Removed.
11847 * opts.c (default_options_table): Drop -ftree-copyrename. Add
11848 -ftree-coalesce-vars.
11849 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11850 * common.opt (ftree-copyrename): Ignore.
11851 (ftree-coalesce-inlined-vars): Likewise.
11852 * doc/invoke.texi: Remove the ignored options above.
11853 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11854 * tree-ssa-coalesce.h: ... here.
11855 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11856 headers required by it.
11857 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11858 across variables when flag_tree_coalesce_vars. Check register
11859 use and promoted modes to allow coalescing. Moved to
11860 tree-ssa-coalesce.c.
11861 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11862 with its member functions to tree-ssa-coalesce.c.
11863 (var_map_base_init): Likewise. Renamed to
11864 compute_samebase_partition_bases.
11865 (partition_view_normal): Drop want_bases parameter.
11866 (partition_view_bitmap): Likewise.
11867 * tree-ssa-live.h: Adjust declarations.
11868 * tree-ssa-coalesce.c: Include explow.h.
11869 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11870 default defs at the entry point.
11871 (dump_part_var_map): New.
11872 (compute_optimized_partition_bases): New, called by...
11873 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11874 of compute_samebase_partition_bases. Adjust.
11875 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11876 * cfgexpand.c (leader_merge): New.
11877 (get_rtl_for_parm_ssa_default_def): New.
11878 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11879 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11880 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
11881 redundant MEM attr setting.
11882 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
11884 (expand_one_stack_var): ... this. New wrapper to check and
11885 skip already expanded SSA partitions.
11886 (record_alignment_for_reg_var): New, factored out of...
11887 (expand_one_var): ... this.
11888 (expand_one_ssa_partition): New.
11889 (adjust_one_expanded_partition_var): New.
11890 (expand_one_register_var): Check and skip already expanded SSA
11892 (expand_used_vars): Don't create DECLs for anonymous SSA
11893 names. Expand all SSA partitions, then adjust all SSA names.
11894 (pass::execute): Replace the loops that set
11895 SA.partition_to_pseudo from partition leaders and cleared
11896 DECL_RTL for multi-location variables, and that which used to
11897 rename vars and set attrs, with one that clears DECL_RTL and
11898 checks that PARMs and RESULTs default_defs match DECL_RTL.
11899 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11900 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11901 * explow.c (promote_ssa_mode): New.
11902 * explow.h (promote_ssa_mode): Declare.
11903 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11904 * function.c: Include cfgexpand.h.
11905 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11906 (use_register_for_parm_decl): Wrapper for the above to
11907 special-case the result_ptr.
11908 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11909 (split_complex_args): Take assign_parm_data_all argument.
11910 Pass it to rtl_for_parm. Set up rtl and context for split
11912 (assign_parms_augmented_arg_list): Adjust.
11913 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11914 multiple locations. Recognize split complex args.
11915 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11916 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
11917 (assign_parm_setup_block): Prefer SSA-assigned location.
11918 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
11919 if stack_parm is NULL.
11920 (assign_parm_setup_stack): Prefer SSA-assigned location.
11921 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
11922 rtl before testing for pointer bounds. Special-case result_ptr.
11923 (expand_function_start): Maybe reset DECL_RTL of result.
11924 Prefer SSA-assigned location for result and static chain.
11925 Factor out DECL_RESULT and SET_DECL_RTL.
11926 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11927 anonymous SSA names. Use promote_ssa_mode.
11928 (get_temp_reg): Likewise.
11929 (remove_ssa_form): Adjust.
11930 * stor-layout.c (layout_decl): Don't set mem attributes of
11932 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11933 and get its reg_usage for reg invalidation.
11934 (compute_bb_dataflow): Pass it insn.
11935 (emit_notes_in_bb): Likewise.
11937 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
11940 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
11942 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
11943 (rs6000_emit_2insn_and): Handle dot forms.
11944 * config/rs6000/rs6000.md (and<mode>3): Adjust.
11945 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
11946 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
11948 2015-07-23 Richard Biener <rguenther@suse.de>
11950 * generic-match-head.c: Include cgraph.h.
11951 * gimple-match-head.c: Likewise.
11952 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
11954 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
11955 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
11958 2015-07-23 Richard Biener <rguenther@suse.de>
11960 * gimple-fold.c (fold_gimple_cond): Do not require folding
11961 results to pass valid_gimple_rhs_p.
11962 * tree-cfg.h (fold_cond_expr_cond): Remove.
11963 * tree-cfg.c (fold_cond_expr_cond): Likewise.
11964 (make_edges): Do not call it.
11965 * tree-inline.c (tree_function_versioning): Likewise.
11967 2015-07-23 Tom de Vries <tom@codesourcery.com>
11969 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
11970 vect_force_simple_reduction.
11971 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
11972 (vect_is_simple_reduction_1): Add and handle
11973 need_wrapping_integral_overflow parameter.
11974 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
11975 need_wrapping_integral_overflow parameter.
11976 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
11977 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
11980 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
11982 PR tree-optimization/66926,66951
11983 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
11984 INNER_LOOP and fix up condition for renaming virtual operands.
11986 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11988 * combine.c (try_combine): Use std::swap instead of manually
11991 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
11993 * config/mips/i6400.md: New file.
11994 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
11995 (mips64r6): Likewise.
11997 * config/mips/mips-tables.opt: Regenerate.
11998 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
11999 (mips_issue_rate): Add support for i6400.
12000 (mips_multipass_dfa_lookahead): Likewise.
12001 * config/mips/mips.h (TUNE_I6400): Define.
12002 * config/mips/mips.md: Include i6400.md.
12003 (processor): Add i6400.
12004 * doc/invoke.texi (-march=@var{arch}): Add i6400.
12006 2015-07-23 Richard Biener <rguenther@suse.de>
12008 PR middle-end/66916
12009 * match.pd: Guard widen and sign-change comparison simplification
12012 2015-07-23 Richard Biener <rguenther@suse.de>
12014 PR tree-optimization/66945
12015 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
12016 ::before_dom_children): Force the propagators idea of
12017 non-executable edges to materialize, not what the folder
12020 2015-07-23 Richard Biener <rguenther@suse.de>
12022 * gimple.h (gimple_cond_make_false): Use 0 != 0.
12023 (gimple_cond_make_true): Use 1 != 0.
12025 2015-07-22 DJ Delorie <dj@redhat.com>
12027 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
12030 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
12031 (ashrhi3): Likewise.
12032 (lshrhi3): Likewise.
12033 (movhi): Take advantage of zero-extend to load small constants.
12034 (movpsi): Likewise.
12035 (and<mode>3): Likewise.
12036 (zero_extendqihi2): Likewise.
12037 (zero_extendqisi2): New.
12038 * config/msp430/constraints.md (N,O): New.
12039 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
12041 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
12044 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
12045 to enum feature_priority and feature_list.
12046 (fold_builtin_cpu): Add F_AES to enum processor_features
12047 and isa_names_table.
12049 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
12052 * config/i386/linux-common.h (MPX_SPEC): Use linker option
12053 for 64bit target only.
12055 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
12057 * config/nvptx/nvptx.c: Expand some comments.
12059 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
12061 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
12062 (cortex_a53_advsimd): ...This.
12064 2015-07-22 Richard Biener <rguenther@suse.de>
12066 * genmatch.c (expr::gen_transform): Clarify error message
12067 and display location.
12069 2015-07-22 Richard Biener <rguenther@suse.de>
12071 * genmatch.c (struct operand): Add location member.
12072 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
12074 (struct simplify): Remove match_location and result_location
12076 (elsehwere): Adjust.
12078 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
12080 * config/mips/m5100.md: New file.
12081 * config/mips/mips-cpus.def (m5100, m5101): Define.
12082 * config/mips/mips-tables.opt: Regenerate.
12083 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
12084 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
12085 -march=m5101 to -mips32r5.
12086 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
12087 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
12089 * config/mips/mips.md: Include m5100.md.
12090 (processor): Add m5100.
12091 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
12093 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
12095 * config/mips/mips-cpus.def (interaptiv): Define.
12096 * config/mips/mips-tables.opt: Regenerate.
12097 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
12099 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
12100 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
12102 2015-07-22 Jiong Wang <jiong.wang@arm.com>
12105 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
12106 (HONOR_REG_ALLOC_ORDER): Define.
12108 2015-07-22 Richard Biener <rguenther@suse.de>
12110 PR tree-optimization/66952
12111 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
12112 blocks we end up executing unconditionally reset all SSA
12113 info such as range and alignment.
12114 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
12115 * tree-ssanames.c (reset_flow_sensitive_info): New function.
12117 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
12119 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
12122 2015-07-22 Richard Biener <rguenther@suse.de>
12124 * genmatch.c (parser::parse_result): Properly handle
12125 match with result operands and conditions.
12127 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
12130 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
12131 Add qualifier_struct_load_store_lane_index.
12132 (aarch64_types_loadstruct_lane_qualifiers): Use
12133 qualifier_struct_load_store_lane_index for lane index argument for
12135 (aarch64_types_storestruct_lane_qualifiers): Ditto.
12136 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
12137 (aarch64_simd_expand_args): Add new argument describing mode of
12138 builtin. Check lane bounds for arguments with
12139 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
12140 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
12141 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
12142 (aarch64_simd_expand_builtin): Handle arguments with
12143 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
12144 aarch64_simd_expand_args.
12145 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
12146 vst[234]_lane with BUILTIN_VALLDIF.
12147 * config/aarch64/aarch64-simd.md:
12148 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
12149 endianness reversal on lane index.
12150 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
12151 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
12152 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
12153 (vec_store_lanesci_lane<mode>): Ditto.
12154 (vec_store_lanesxi_lane<mode>): Ditto.
12155 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
12156 reversal of lane index.
12157 (aarch64_ld3_lane<mode>): Ditto.
12158 (aarch64_ld4_lane<mode>): Ditto.
12159 (aarch64_st2_lane<mode>): Ditto.
12160 (aarch64_st3_lane<mode>): Ditto.
12161 (aarch64_st4_lane<mode>): Ditto.
12162 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
12163 to qmode. Add new mode parameter. Update uses.
12164 (__LD3_LANE_FUNC): Ditto.
12165 (__LD4_LANE_FUNC): Ditto.
12166 (__ST2_LANE_FUNC): Ditto.
12167 (__ST3_LANE_FUNC): Ditto.
12168 (__ST4_LANE_FUNC): Ditto.
12170 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
12172 * doc/invoke.texi (Language Independent Options): Rename node to
12173 Diagnostic Message Formatting Options.
12175 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
12178 * lra-remat.c (operand_to_remat): Prevent using insns with input
12179 subregs processed separately by IRA.
12181 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
12183 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
12185 (single_imm_use): Check for iterator node.
12186 (num_imm_uses): Likewise.
12187 * tree-ssa-operands.c (has_zero_uses_1): Delete.
12188 (single_imm_use_1): Check for iterator node.
12190 2015-07-21 Mike Frysinger <vapier@gentoo.org>
12191 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12193 * configure.ac: Add check for new options in isl-0.15.
12194 * config.in, configure: Rebuilt.
12195 * graphite-blocking.c: Include <isl/constraint.h>
12196 * graphite-interchange.c, graphite-poly.c: Likewise.
12197 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
12198 * graphite.c: Likewise.
12199 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
12201 * graphite-dependences.c: Include <isl/constraint.h>.
12202 (max_number_of_out_dimensions): Returns isl_stat.
12203 (extend_schedule_1): Likewise
12204 (extend_schedule): Corresponding changes.
12205 * graphite-optimize-isl.c: Include <isl/constraint.h> and
12207 (getSingleMap): Change return type of isl_stat.
12208 (optimize_isl): Conditionally use
12209 isl_options_set_schedule_serialize_sccs.
12210 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
12211 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
12213 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
12216 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
12217 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
12219 2015-07-21 Richard Biener <rguenther@suse.de>
12221 PR tree-optimization/66948
12222 * genmatch.c (capture_info::walk_match): Also recurse to
12223 captures. Properly compute expr state from captures of
12225 * match.pd: Add single-use guards to
12226 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
12228 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
12230 * config/nvptx/mkoffload.c (process): Add static destructor call.
12232 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12234 PR middle-end/66915
12235 * match.pd (A - B -> A + (-B)): Don't allow folding
12236 when type if a fixed-point type.
12238 2015-07-20 DJ Delorie <dj@redhat.com>
12240 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
12241 (iorqi3_real): Likewise for set1.
12243 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
12245 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
12248 2015-07-20 Aditya Kumar <hiraditya@msn.com>
12250 * graphite-isl-ast-to-gimple.c:
12251 Refactor so that each function can access 'region'. This will help
12252 maintain a parameter rename_map within a region.
12254 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
12256 * config/rs6000/rs6000.md (*lt0_disi): New.
12258 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
12261 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
12262 "available letters" comment.
12263 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
12264 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
12265 and_2rld_operand): Delete.
12266 (and_operand): Adjust.
12267 (rotate_mask_operator): New.
12268 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
12269 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
12270 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
12271 extract_ME): Delete.
12272 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
12273 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
12274 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
12275 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
12276 rs6000_emit_2insn_and): New.
12277 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
12278 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
12279 includes_rldic_lshift_p, includes_rldicr_lshift_p,
12280 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
12281 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
12282 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
12283 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
12284 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
12285 rs6000_emit_2insn_and): New.
12286 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
12287 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
12289 <NOT>: Don't fall through to next case.
12290 <AND>: Handle the various rotate-and-mask cases directly.
12291 <IOR>: Always cost as one insn.
12292 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
12293 (and<mode>3): Adjust expander for the new patterns.
12294 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
12295 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
12296 (*and<mode>3_imm_dot_shifted): New.
12297 (*and<mode>3_mask): Delete, rewrite as ...
12298 (and<mode>3_mask): ... New.
12299 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
12300 (andsi3_internal0_nomc): Delete.
12301 (*andsi3_internal6): Delete.
12302 (*and<mode>3_2insn): New.
12303 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
12304 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
12305 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
12306 *insvdi_internal3): Delete.
12307 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
12308 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
12309 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
12310 *ior<mode>_mask): New.
12311 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
12312 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
12313 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
12314 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
12316 (ashr<mode>3): Delete expander.
12317 (*ashr<mode>3): Rename to ...
12318 (ashr<mode>3): ... This.
12319 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
12320 (*rotldi3_internal4, *rotldi3_internal5 and split,
12321 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
12322 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
12323 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
12324 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
12325 (splitter for loading a mask): Adjust.
12326 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
12328 2015-07-20 Marek Polacek <polacek@redhat.com>
12330 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
12331 output_add_clobbers, output_added_clobbers_hard_reg_p,
12332 gen_rtx_scratch): Remove declarations.
12334 2015-07-20 Marek Polacek <polacek@redhat.com>
12337 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
12339 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12341 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
12342 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
12344 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12346 * combine.c (combine_simplify_rtx): Move simplification step
12347 before various transformations/substitutions.
12349 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
12351 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
12352 (struct int_traits): Likewise.
12354 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12356 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
12357 function to vmsdbgout_function_decl.
12359 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
12362 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
12363 from misaligned positions.
12364 (ix86_expand_pinsr): Reject insertions to misaligned positions.
12366 2015-07-18 Sebastian Pop <s.pop@samsung.com>
12368 PR middle-end/46851
12369 PR middle-end/60340
12370 * Makefile.in: Removed omega.o.
12371 * common.opt: Document flag fcheck-data-deps as deprecated.
12372 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
12373 its associated params: omega-max-vars, omega-max-geqs,
12374 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
12375 omega-max-keys, omega-eliminate-redundant-constraints.
12376 * doc/loop.texi: Remove all the section on Omega.
12377 * graphite-blocking.c: Include missing params.h: it used to be
12378 included through tree-data-ref.h and omega.h.
12379 * graphite-isl-ast-to-gimple.c: Same.
12380 * graphite-optimize-isl.c: Same.
12381 * graphite-sese-to-poly.c: Same.
12382 * graphite.c: Same.
12385 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
12386 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
12387 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
12388 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
12389 * passes.def: Remove pass_check_data_deps.
12390 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
12391 (dump_conflict_function): Same.
12392 (dump_subscript): Same.
12393 (print_direction_vector): Same.
12394 (print_dir_vectors): Same.
12395 (print_lambda_vector): Same.
12396 (print_dist_vectors): Same.
12397 (dump_data_dependence_relation): Same.
12398 (dump_data_dependence_relations): Same.
12399 (dump_dist_dir_vectors): Same.
12401 (init_omega_eq_with_af): Removed.
12402 (omega_extract_distance_vectors): Removed.
12403 (omega_setup_subscript): Removed.
12404 (init_omega_for_ddr_1): Removed.
12405 (init_omega_for_ddr): Removed.
12406 (ddr_consistent_p): Removed.
12407 (compute_affine_dependence): Do not use omega to check data
12409 (compute_data_dependences_for_bb): Removed.
12410 (analyze_all_data_dependences): Removed.
12411 (tree_check_data_deps): Removed.
12412 * tree-data-ref.h: Do not include omega.h.
12413 (compute_data_dependences_for_bb): Removed.
12414 (tree_check_data_deps): Removed.
12415 * tree-ssa-loop.c (pass_check_data_deps): Removed.
12416 (make_pass_check_data_deps): Removed.
12417 * tree-ssa-phiopt.c: Include params.h.
12418 * tree-vect-data-refs.c: Same.
12419 * tree-vect-slp.c: Same.
12421 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
12423 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
12424 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
12425 (mem->fpreg splitters): Ditto.
12426 (general_operand->nonimmediate_operand splitter): Use explicit modes.
12427 Disable DFmode for TARGET_64BIT.
12429 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
12432 * config/i386/i386.c (ix86_expand_prologue): Replicate static
12433 chain on the stack.
12435 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
12437 * config/nvptx/mkoffload.c (process): Constify host data.
12438 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
12439 Constify host data.
12440 (generate_host_descr_file): Likewise.
12442 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
12443 Sebastian Pop <s.pop@samsung.com>
12445 PR middle-end/61929
12446 * graphite-dependences.c (add_pdr_constraints): Renamed
12447 pdr->extent to pdr->subscript_sizes.
12448 * graphite-interchange.c (build_linearized_memory_access): Add
12449 back all gcc_assert's that the "isl_int to isl_val conversion"
12450 patch has removed. Refactored.
12451 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
12452 * graphite-poly.c (new_poly_dr): Same.
12453 (free_poly_dr): Same.
12454 * graphite-poly.h (struct poly_dr): Same.
12455 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
12456 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
12457 * graphite-scop-detection.h: Fix space.
12458 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
12459 back all gcc_assert's removed by a previous patch.
12460 (wrap): Remove the_isl_ctx global variable that the same patch has
12462 (build_loop_iteration_domains): Same.
12463 (add_param_constraints): Same.
12464 (pdr_add_data_dimensions): Same. Refactored.
12465 (build_poly_dr): Renamed extent to subscript_sizes.
12467 2015-07-17 Marek Polacek <polacek@redhat.com>
12469 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
12470 * match.pd: ... here.
12472 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
12474 * config/nvptx/mkoffload.c (process): Constify target data.
12475 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
12476 Constify target data.
12477 (generate_target_offloadend_file): Likewise.
12479 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
12481 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
12482 to allow renaming of PHI arguments on edges incoming from outer
12483 loop header, add corresponding check before start PHI iterator.
12484 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
12485 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
12486 with true force_vectorize. Set-up dominator for outer loop too.
12487 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
12488 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
12489 was marked with force_vectorize and has restricted cfg.
12490 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
12492 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
12493 do peeling for outer loops.
12495 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
12496 Matthias Klose <doko@ubuntu.com>
12498 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
12499 build-sysroot, sysroot from the `Miscenalleous configure options' to
12500 the `Directories' section and strip trailing `/' from with_sysroot.
12501 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
12502 * configure: Regenerated.
12504 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
12507 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
12508 (TARGET_HARD_DF_REGS): Ditto.
12509 (TARGET_HARD_XF_REGS): Ditto.
12510 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
12511 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
12512 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
12513 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
12514 (*movsf_internal): Add alternatives 16 and 17. Enable
12515 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
12517 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
12519 PR rtl-optimization/66891
12520 * calls.c (expand_call): Wrap precompute_register_parameters with
12521 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
12523 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
12525 * config/nvptx/mkoffload.c (process): Constify mapping variables.
12526 Define target data struct and initialize it.
12528 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
12530 PR rtl-optimization/66626
12531 * ira.h (emit-rtl.h): Include.
12532 (non_spilled_static_chain_regno_p): New.
12533 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
12534 unless it is non spilled static chain pseudo.
12535 (assign_hard_rego): Spill memory profitable allocno unless it is
12536 non spilled static chain pseudo.
12537 (allocno_spill_priority_compare): Put non spilled static chain
12538 pseudo at the end of sorted array.
12539 (improve_allocation): Do nothing if we have static chain and
12541 (allocno__priority_compare_func): Put non spilled static chain
12542 pseudo at the beginning of sorted array.
12543 (move_spill_restore): Ignore non spilled static chain pseudo.
12544 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
12545 to non spilled static chain pseudo.
12546 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
12547 pseudo at the beginning of sorted array.
12548 (spill_for): Spill non spilled static chain pseudo last.
12549 * lra-constraints.c (lra_constraints): Remove static chain pseudo
12550 check for equivalence.
12552 2015-07-16 Martin Liska <mliska@suse.cz>
12555 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
12556 dst_ctx if it does not exist.
12558 2015-07-16 Martin Liska <mliska@suse.cz>
12560 * hash-set.h (remove): New function.
12561 (iterator): New iteration class for hash_set.
12563 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12565 * genattrtab.c (make_canonical): Add a file_location parameter.
12566 Use fatal_at rather than fatal.
12567 (get_attr_value): Likewise. Update call to make_canonical.
12568 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
12569 (make_internal_attr): Update calls accordingly.
12571 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12573 * read-md.h (message_with_line, error_with_line): Delete.
12574 * read-md.c (message_with_line, error_with_line): Delete.
12575 * gensupport.h: Include read-md.h.
12576 (md_rtx_info): New structure.
12577 (read_md_rtx): Use it. Return a bool success value.
12578 * gensupport.c (read_md_rtx): Likewise.
12579 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
12580 (main): Update after interface changes.
12581 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
12582 (main): Update after interface changes.
12583 * genattrtab.c (insn_code_number): Delete.
12584 (optimize_attrs): Add a max_insn_code parameter and use it instead
12585 of insn_code_number.
12586 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
12587 Use *_at rather than *_with_line functions.
12588 (gen_insn): Likewise.
12589 (gen_delay): Likewise.
12590 (gen_insn_reserv): Likewise.
12591 (gen_bypass): Take an md_rtx_info rather than an rtx.
12592 (main): Update after interface changes. Use a local max_insn_code
12593 variable instead of insn_code_number.
12594 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
12595 an rtx. Use fatal_at rather than fatal.
12596 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
12597 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
12598 (gen_absence_set, gen_final_absence_set, gen_automaton)
12599 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
12600 (main): Update after interface changes.
12601 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
12603 (main): Update after interface changes.
12604 * genconditions.c (main): Use new read_md_rtx interface.
12605 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
12606 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
12607 (main): Update after interface changes.
12608 * genemit.c (insn_code_number, insn_index_number): Delete.
12609 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
12610 Use fatal_at rather than fatal.
12611 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
12613 (gen_split): Likewise.
12614 (main): Update after interface changes.
12615 * genextract.c (line_no): Delete.
12616 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
12617 Update call to walk_rtx.
12618 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
12619 rather than message_with_line.
12620 (walk_rtx): Add an md_rtx_info argument. Update call to
12621 VEC_safe_set_locstr.
12622 (main): Update after interface changes.
12623 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
12624 and lineno. Use error_at rather than separate message_with_line
12625 calls and have_error assignments.
12626 (main): Update after interface changes.
12627 * genmddump.c (main): Use new read_md_rtx interface.
12628 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
12629 (main): Update after interface changes.
12630 * genoutput.c (next_code_number): Delete.
12631 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
12632 (gen_peephole, gen_expand, gen_split): Likewise.
12633 (note_constraint): Likewise. Use *_at rather than *_with_line
12635 (main): Update after interface changes.
12636 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
12638 (main): Update after interface changes.
12639 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
12640 than an rtx and lineno.
12641 (process_define_constraint): Likewise.
12642 (process_define_register_constraint): Likewise.
12643 (main): Update after interface changes.
12644 * genrecog.c (next_insn_code, pattern_lineno): Delete.
12645 (validate_pattern): Replace top-level rtx with an md_rtx_info.
12646 Use *_at rather than *_with_line functions.
12647 (match_pattern_2): Likewise.
12648 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
12649 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
12650 Use *_at rather than *_with_line functions.
12651 * gentarget-def.c (add_insn): New function.
12652 (main): Use it. Use new read_md_rtx interface.
12654 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12656 * gensupport.h (compute_test_codes): Take a file_location rather
12657 than a line number.
12658 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
12659 rather than *_with_line functions.
12660 (process_define_predicate): Update call to compute_test_codes.
12661 * genpreds.c (validate_exp): Take a file_location rather than a
12662 line number. Use *_at functions rather than *_with_line functions.
12663 (process_define_predicate): Update call to validate_exp.
12664 (constraint_data): Replace lineno field with a file_location.
12665 (add_constraint): Take a file_location rather than a line number.
12666 Use *_at functions rather than *_with_line functions. Fix error
12667 message for address constraints. Update after changes to
12668 validate_exp, constraint_data and compute_test_codes.
12669 (process_define_constraint): Update accordingly.
12670 (process_define_register_constraint): Likewise.
12672 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12674 * genoutput.c (data): Use a file_location to record the source
12677 (idata, idata_end): Remove initialization.
12678 (constraint_data): Replace lineno with a file_location.
12679 (output_insn_data): Update after changes to data.
12680 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
12681 (scan_operands): Likewise, using *_at rather than *_with_line
12683 (process_template): Likewise.
12684 (validate_insn_alternatives): Likewise.
12685 (validate_insn_operands): Likewise.
12686 (validate_optab_operands): Likewise.
12687 (init_insn_for_nothing): Initialize idata and idata_end.
12688 (note_constraint): Update after changes to constraint_data,
12689 using at rather than with_line functions.
12690 (mdep_constraint_len): Take a file_location rather than a
12691 line number. Use at rather than with_line functions.
12693 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12695 * read-md.h (fatal_at): Declare.
12696 * read-md.c (fatal_at): New function.
12697 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
12698 to record the source position.
12699 (check_attr_test): Take a file_location instead of a line number.
12700 Use fatal_at instead of fatal.
12701 (check_attr_value): Update after above changes, using "at"
12702 rather than "with_line" reporting functions.
12703 (convert_set_attr_alternative): Likewise.
12704 (gen_attr): Likewise.
12705 (check_defs): Likewise. Don't assign to read_md_filename.
12706 (gen_insn): Update initialization after above changes.
12707 (gen_delay): Likewise.
12708 (write_insn_cases): Print the filename for a define_peephole.
12709 (gen_insn_reserv): Take a line number as argument and update
12710 the call to check_attr_test.
12711 (main): Pass a line number to gen_insn_reserv.
12713 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12715 * read-md.h (file_location): New structure.
12716 (directive_handler_t): Take a file_location rather than a line number.
12717 (message_at, error_at): Declare.
12718 (read_skip_construct): Delete.
12719 * read-md.c (message_with_line_1): Replace with...
12720 (message_at_1): ...this new function.
12721 (message_at, error_at): New functions.
12722 (message_with_line, error_with_line): Update to use message_at_1.
12723 (handle_enum): Take a file_location rather than a line number
12724 and use error_at for error reporting.
12725 (handle_include): Likewise.
12726 (read_skip_construct): Likewise. Make static.
12727 (handle_file): Update after above changes. Pass a file_location
12728 rather than a line number to handle_directive.
12729 * gensupport.c (queue_elem): Replace separate filename and lineno
12730 with a file_location.
12731 (queue_pattern): Replace filename and lineno arguments with a
12732 file_location. Update after change to queue_elem.
12733 (process_define_predicate): Replace lineno argument with a
12734 file_location and use error_at for error reporting. Update
12735 after above changes.
12736 (process_rtx): Likewise.
12737 (subst_pattern_match): Likewise.
12738 (get_alternatives_number): Likewise.
12739 (alter_predicate_for_insn): Likewise.
12740 (rtx_handle_directive): Likewise.
12741 (is_predicable): Update after above changes, using error_at rather
12742 than error_with_line.
12743 (has_subst_attribute): Likewise.
12744 (identify_predicable_attribute): Likewise.
12745 (alter_attrs_for_subst_insn): Likewise.
12746 (process_one_cond_exec): Likewise.
12747 (process_substs_on_one_elem): Likewise.
12748 (process_define_subst): Likewise.
12749 (check_define_attr_duplicates): Likewise.
12750 (read_md_rtx): Update after change to queue_elem.
12752 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12754 * genoutput.c (next_index_number): Delete.
12755 (data): Remove index_number.
12756 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
12757 (main): Remove manipulation of next_index_number.
12759 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12761 * genattrtab.c (check_attr_value): Remove handling of null attrs.
12762 (make_canonical): Likewise.
12764 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
12766 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
12767 instead of adjust_address_nv.
12768 (restore_stack_nonlocal): Likewise.
12769 (nonlocal_goto): Likewise.
12771 2015-07-16 Tom de Vries <tom@codesourcery.com>
12773 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
12774 not have a corresponding loop header phi.
12776 2015-07-16 Tom de Vries <tom@codesourcery.com>
12778 * tree-parloops.c (create_loads_for_reductions): Handle case that
12779 reduction is unused.
12781 2015-07-16 Richard Biener <rguenther@suse.de>
12783 PR tree-optimization/66894
12784 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
12785 about deriving NE_EXPR from truncated values.
12787 2015-07-16 Martin Liska <mliska@suse.cz>
12790 (object_allocator): Add new class.
12791 (pool_allocator::initialize): Use the underlying class.
12792 (pool_allocator::allocate): Likewise.
12793 (pool_allocator::remove): Likewise.
12794 (operator new): A new generic allocator.
12795 * asan.c (struct asan_mem_ref): Remove unused members.
12796 (asan_mem_ref_new): Replace new operator with
12797 object_allocator::allocate.
12798 (free_mem_ref_resources): Change deallocation.
12799 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
12800 with object_allocator.
12801 * config/sh/sh.c (add_constant): Replace new operator with
12802 object_allocator::allocate.
12803 (sh_reorg): Change call to a release method.
12804 * cselib.c (struct elt_list): Remove unused members.
12805 (new_elt_list): Replace new operator with
12806 object_allocator::allocate.
12807 (new_elt_loc_list): Likewise.
12808 (new_cselib_val): Likewise.
12809 (unchain_one_elt_list): Change delete operator with remove method.
12810 (unchain_one_elt_loc_list): Likewise.
12811 (unchain_one_value): Likewise.
12812 (cselib_finish): Release newly added static allocators.
12813 * cselib.h (struct cselib_val): Remove unused members.
12814 (struct elt_loc_list): Likewise.
12815 * df-problems.c (df_chain_alloc): Replace pool_allocator with
12817 * df-scan.c (struct df_scan_problem_data): Likewise.
12818 (df_scan_alloc): Likewise.
12819 * df.h (struct dataflow): Likewise.
12820 * dse.c (struct read_info_type): Likewise.
12821 (struct insn_info_type): Likewise.
12822 (struct dse_bb_info_type): Likewise.
12823 (struct group_info): Likewise.
12824 (struct deferred_change): Likewise.
12825 (get_group_info): Likewise.
12826 (delete_dead_store_insn): Likewise.
12827 (free_read_records): Likewise.
12828 (replace_read): Likewise.
12829 (check_mem_read_rtx): Likewise.
12830 (scan_insn): Likewise.
12831 (dse_step1): Likewise.
12832 (dse_step7): Likewise.
12833 * et-forest.c (struct et_occ): Remove unused members.
12834 (et_new_occ): Use allocate instead of new operator.
12835 (et_new_tree): Likewise.
12836 (et_free_tree): Call release method explicitly.
12837 (et_free_tree_force): Likewise.
12838 (et_free_pools): Likewise.
12839 (et_split): Use remove instead of delete operator.
12840 * et-forest.h (struct et_node): Remove unused members.
12841 * ipa-cp.c: Change pool_allocator to object_allocator.
12842 * ipa-inline-analysis.c: Likewise.
12843 * ipa-profile.c: Likewise.
12844 * ipa-prop.c: Likewise.
12845 * ipa-prop.h: Likewise.
12846 * ira-build.c (initiate_cost_vectors): Cast return value.
12847 (ira_allocate_cost_vector): Likewise.
12848 * ira-color.c (struct update_cost_record): Remove unused members.
12849 * lra-int.h (struct lra_live_range): Likewise.
12850 (struct lra_copy): Likewise.
12851 (struct lra_insn_reg): Likewise.
12852 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
12853 * lra.c (new_insn_reg): Replace new operator with allocate method.
12854 (free_insn_regs): Same for operator delete.
12855 (finish_insn_regs): Release new static allocator.
12856 (finish_insn_recog_data): Likewise.
12857 (lra_free_copies): Replace delete operator with remove method.
12858 (lra_create_copy): Replace operator new with allocate method.
12859 (invalidate_insn_data_regno_info): Same for remove method.
12860 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
12861 (free_debug_insn_changes): Replace delete operator with remove method.
12862 (replace_oldest_value_reg): Replace operator new with allocate method.
12863 (pass_cprop_hardreg::execute): Release new static variable.
12864 * sched-deps.c (sched_deps_init): Change pool_allocator to
12866 * sel-sched-ir.c: Likewise.
12867 * sel-sched-ir.h: Likewise.
12868 * stmt.c (expand_case): Likewise.
12869 (expand_sjlj_dispatch_table): Likewise.
12870 * tree-sra.c (struct access): Remove unused members.
12871 (struct assign_link): Likewise.
12872 (sra_deinitialize): Release newly added static pools.
12873 (create_access_1):Replace operator new with allocate method.
12874 (build_accesses_from_assign): Likewise.
12875 (create_artificial_child_access): Likewise.
12876 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
12877 pool_allocator to object_allocator.
12878 * tree-ssa-pre.c: Likewise.
12879 * tree-ssa-reassoc.c: Likewise.
12880 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
12881 * tree-ssa-strlen.c: Likewise.
12882 * tree-ssa-structalias.c: Likewise.
12883 * var-tracking.c (onepart_pool_allocate): New function.
12884 (unshare_variable): Use the newly added function.
12885 (variable_merge_over_cur): Likewise.
12886 (variable_from_dropped): Likewise.
12887 (variable_was_changed): Likewise.
12888 (set_slot_part): Likewise.
12889 (emit_notes_for_differences_1): Likewise.
12890 (vt_finalize): Release newly added static pools.
12892 2015-07-16 Martin Jambor <mjambor@suse.cz>
12894 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
12895 all uses. Fix two typos in its general comment.
12896 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
12898 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
12900 * config/i386/linux-common.h (LINK_MPX): New.
12901 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
12902 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
12903 indicating '-z bndplt' support by linker.
12904 * configure: Regenerate.
12905 * config.in: Regenerate.
12907 2015-07-16 Richard Biener <rguenther@suse.de>
12909 * fold-const.c (fold_widened_comparison): Remove.
12910 (fold_sign_changed_comparison): Likewise.
12911 (fold_comparison): Move widened and sign-changed comparison
12913 * match.pd: ... to patterns here.
12914 * generic-match-head.c: Include target.h.
12915 * gimple-match-head.c: Likewise.
12917 2015-07-16 Richard Biener <rguenther@suse.de>
12919 * tree-ssa-dom.c (dom_valueize): New function.
12920 (record_temporary_equivalences): Also record equivalences
12921 for dominating stmts that have uses of equivalences we are
12924 2015-07-16 Bin Cheng <bin.cheng@arm.com>
12926 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
12927 add_autoinc_candidates.
12928 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
12929 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
12930 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
12931 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
12933 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
12934 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
12935 Remove parameter struct iv*. Call add_autoinc_candidates here.
12936 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
12937 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
12939 (find_iv_candidates): Call new functions.
12941 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
12943 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
12944 uninitialized-variable warning.
12946 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
12949 * config/sh/sh.md (movdi): Split simple reg move to two movsi
12950 when the destination is R0.
12952 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
12955 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
12956 * config/i386/i386.c (ix86_expand_pextr): New function.
12957 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
12958 for non-lowpart subregs.
12959 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
12960 (insv<mode>): Use SWI248 mode iterator.
12961 (insv<mode>_1): Ditto.
12963 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
12964 Sebastian Pop <s.pop@samsung.com>
12966 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
12967 iterator to use_stmt.
12969 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
12970 Sebastian Pop <s.pop@samsung.com>
12972 * graphite-scop-detection.c (build_scops_1): Discard scops for
12975 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
12976 Sebastian Pop <s.pop@samsung.com>
12978 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
12979 case of a return statement in scop.
12981 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
12982 Sebastian Pop <s.pop@samsung.com>
12984 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
12985 INTEGER_TYPE parameters.
12986 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
12987 VECTOR_CST in scan_tree_for_params.
12988 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
12990 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
12992 * gimple-pretty-print.h: Don't include pretty-print.h.
12993 * tree-streamer.h: Don't include lto-streamer.h.
12994 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
12995 * gimple-streamer-in.c: Remove redundant includes.
12996 * gimple-streamer-out.c: Likewise.
12997 * ipa-devirt.c: Likewise.
12998 * ipa-icf.c: Likewise.
12999 * ipa-inline-analysis.c: Likewise.
13000 * ipa-polymorphic-call.c: Likewise.
13001 * ipa-profile.c: Likewise.
13002 * ipa-prop.c: Likewise.
13003 * ipa-pure-const.c: Likewise.
13004 * lto-cgraph.c: Likewise.
13005 * lto-streamer-in.c: Likewise.
13006 * lto-streamer-out.c: Likewise.
13007 * lto-streamer.c: Likewise.
13008 * tree-streamer-in.c: Likewise.
13009 * tree-streamer-out.c: Likewise.
13010 * tree-streamer.c: Likewise.
13012 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
13014 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
13016 * opts.c: Remove multiline #include comment.
13018 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
13020 * config/nvptx/mkoffload.c (process): Add C++ protection to
13023 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13026 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
13027 null before IEEE 128-bit floating point support patch.
13029 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13031 * simplify-rtx.c (simplify_ternary_operation): Add simplification
13032 for (!c) != {0,...,0} ? a : b for vector modes.
13034 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
13035 Martin Jambor <mjambor@suse.cz>
13037 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
13038 struct func_body_info* instead of struct ipa_node_params*, expecting
13039 fbi->info to be filled in. Replace throughout. Adjust call to
13040 ipa_load_from_parm_agg.
13041 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
13042 instead of struct ipa_node_params*. Adjust calls to other functions
13043 so that they pass either fbi or fbi->info.
13044 (set_switch_stmt_execution_predicate): Likewise.
13045 (will_be_nonconstant_predicate): Likewise.
13046 (compute_bb_predicates): Likewise.
13047 (estimate_function_body_sizes): Move asserts earlier. Fill in
13048 struct func_body_info, replace parms_info with fbi.info. Adjust
13049 calls to functions that now accept struct func_body_info.
13050 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
13051 (struct func_body_info): Likewise.
13052 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
13053 remove static. Adjust callers.
13054 (ipa_load_from_parm_agg): Remove.
13055 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
13056 (func_body_info): Likewise.
13057 (ipa_load_from_parm_agg): Adjust prototype.
13059 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13061 * gensupport.c (rtx_handle_directive): Adjust.
13062 * read-rtl.c (apply_iterators): Take vector to add rtxs to
13063 instead of expr list rtx.
13064 (add_define_attr_for_define_subst): Likewise.
13065 (add_define_subst_attr): Likewise.
13066 (read_subst_mapping): Likewise.
13067 (read_rtx): Likewise.
13068 * rtl.h (read_rtx): Adjust.
13070 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13072 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
13074 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
13077 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
13078 (*tls_local_dynamic_base_64_<mode>): Ditto.
13079 (*tls_local_dynamic_base_64_largepic): Ditto.
13080 (tls_global_dynamic_64_<mode>): Update expander pattern.
13081 (tls_local_dynamic_base_64_<mode>): Ditto.
13083 2015-07-15 Richard Biener <rguenther@suse.de>
13085 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
13086 and bool_var == 1 -> bool_var simplifications ...
13087 * match.pd: ... to patterns here. Factor out negate_expr_p
13088 cases from the A - B -> A + (-B) patterns as negate_expr_p
13089 predicate and add a -(A + B) -> (-B) - A pattern.
13091 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
13093 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
13095 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
13096 Robert Suchanek <robert.suchanek@imgtec.com>
13098 * config/mips/mips.c (mips_int_mask): New enum.
13099 (mips_shadow_set): Likewise.
13100 (int_mask): New variable.
13101 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
13102 (machine_function): Add int_mask and use_shadow_register_set.
13103 (mips_attribute_table): Add attribute handlers for interrupt and
13104 use_shadow_register_set.
13105 (mips_interrupt_mask): New static function.
13106 (mips_handle_interrupt_attr): Likewise.
13107 (mips_handle_use_shadow_register_set_attr): Likewise.
13108 (mips_use_shadow_register_set): Change return type to enum
13109 mips_shadow_set. Add argument handling for use_shadow_register_set
13111 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
13112 compare with mips_shadow_set enum.
13113 (mips_compute_frame_info): Add interrupt mask and
13114 use_shadow_register_set to per-function information structure.
13115 Add a stack slot for EPC unconditionally.
13116 (mips_expand_prologue): Compare use_shadow_register_set value
13117 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
13118 masked interrupt register but in EIC mode use K0 and save Cause in K0.
13119 EPC saved and restored unconditionally. Use PMODE_INSN macro when
13120 copying the stack pointer from the shadow register set.
13121 * config/mips/mips.h (SR_IM0): New define.
13122 * config/mips/mips.md (mips_rdpgpr): Rename to...
13123 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
13124 * doc/extend.texi (Declaring Attributes of Functions): Document
13125 optional arguments for interrupt and use_shadow_register_set
13128 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
13130 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
13131 interrupt attribute.
13132 (mips_expand_prologue): Disable the floating point unit in an ISR.
13133 * config/mips/mips.h (SR_COP1): New define.
13135 2015-07-15 Richard Biener <rguenther@suse.de>
13137 * genmatch.c (parser::peek, parser::peek_ident): Add argument
13138 to tell how many tokens to peek ahead (default 1).
13139 (parser::eat_token, parser::eat_ident): Return token consumed.
13140 (parser::parse_result): Parse new switch statement.
13141 * match.pd: Use case statements where appropriate.
13143 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
13145 PR rtl-optimization/58066
13146 * calls.c (expand_call): Precompute register parameters before stack
13147 alignment is performed.
13149 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
13151 PR rtl-optimization/66838
13152 * postreload.c (reload_cse_move2add): Also process
13153 CALL_INSN_FUNCTION_USAGE when resetting information of
13154 call-clobbered registers.
13156 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13157 Cesar Philippidis <cesar@codesourcery.com>
13158 Chung-Lin Tang <cltang@codesourcery.com>
13160 * config/nios2/constraints.md (U, v): New constraints.
13161 * config/nios2/predicates.md (rdprs_dcache_operand): New.
13162 (ldstex_memory_operand): New.
13163 * config/nios2/sync.md: New file.
13164 * config/nios2/nios2.md (unspecv): Add new builtin function
13166 (rdprs, flushd, flushda, wrpie, eni): New patterns.
13167 (top-level): Include sync.md.
13168 * config/nios2/nios2.c (N2_FTYPES): Add function types for
13170 (N2_BUILTINS): Add arch field setting, add new builtins.
13171 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
13173 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
13174 Also handle ldex/stex/ldsex/stsex builtins.
13175 (nios2_expand_rdprs_builtin): New function.
13176 (nios2_expand_cache_builtin): New function.
13177 (nios2_expand_wrpie_builtin): New function.
13178 (nios2_expand_eni_builtin): New function.
13179 (nios2_expand_builtin): Add arch field handling and new builtin
13181 * doc/extend.texi (Altera Nios II Built-in Functions): Document
13183 * doc/md.texi (Machine Constraints): Document U and v constraints.
13185 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13186 Cesar Philippidis <cesar@codesourcery.com>
13187 Chung-Lin Tang <cltang@codesourcery.com>
13189 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
13190 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
13191 callee_save_reg_size and uses_anonymous_args fields.
13192 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
13193 (nios2_create_cfa_notes): New function.
13194 (nios2_adjust_stack): New function for adjusting stack.
13195 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
13196 Use nios2_adjust_stack.
13197 (nios2_expand_epilogue): Likewise.
13198 (nios2_expand_return): New function.
13199 (nios2_can_use_return_insn): Update for CDX pop.n usage.
13200 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
13201 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
13202 * config/nios2/nios2.md (return): Use nios2_expand_return.
13204 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13205 Cesar Philippidis <cesar@codesourcery.com>
13206 Chung-Lin Tang <cltang@codesourcery.com>
13208 * config/nios2/predicates.md (pop_operation): New.
13209 (ldwm_operation, stwm_operation): New.
13210 (nios2_hard_register_operand): New.
13211 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
13212 (ldstwm_operation_p): Declare.
13213 (gen_ldstwm_peep): Declare.
13214 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
13215 (base_reg_adjustment_p): New.
13216 (pop_operation_p): New.
13217 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
13218 (nios2_ldstwm_regset_p): New.
13219 (ldstwm_operation_p): New.
13221 (nios2_ldst_parallel): New.
13222 (struct ldswm_operand): Declare.
13223 (compare_ldstwm_operands): New.
13224 (can_use_cdx_ldstw): New.
13225 (gen_ldstwm_peep): New.
13226 * config/nios2/nios2-ldstwm.sml: New.
13227 * config/nios2/nios2.md: Include ldstwm.md.
13228 * config/nios2/ldstwm.md: Generated.
13230 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13231 Cesar Philippidis <cesar@codesourcery.com>
13232 Chung-Lin Tang <cltang@codesourcery.com>
13234 * config/nios2/nios2.h (LABEL_ALIGN): Define.
13235 (REG_ALLOC_ORDER): Define.
13236 (ADJUST_REG_ALLOC_ORDER): Define.
13237 (HONOR_REG_ALLOC_ORDER): Define.
13238 (CDX_REG_P): Define.
13239 (ANDCLEAR_INT): Define.
13240 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
13241 (nios2_label_align): Declare.
13242 (nios2_cdx_narrow_form_p): Declare.
13243 (nios2_adjust_reg_alloc_order): Declare.
13244 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
13246 (nios2_large_unspec_reloc_p): New function, split from...
13247 (nios2_legitimate_pic_operand_p): ...here.
13248 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
13249 (nios2_print_operand_punct_valid_p): New.
13250 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
13251 (split_mem_address): New.
13252 (split_alu_insn): New.
13254 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
13255 (enum nios2_add_insn_kind): New.
13256 (nios2_add_insn_names, nios2_add_insn_narrow): New.
13257 (nios2_add_insn_classify): New.
13258 (nios2_add_insn_asm): New.
13259 (nios2_cdx_narrow_form_p): New.
13260 (label_align, min_labelno, max_labelno): New.
13261 (nios2_reorg): New.
13262 (nios2_label_align): New.
13263 (nios2_adjust_reg_alloc_order): New.
13264 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13265 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13266 * config/nios2/constraints.md (P): New constraint.
13267 * config/nios2/predicates.md (const_and_operand): New.
13268 (and_operand): New.
13269 (stack_memory_operand): New.
13270 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
13271 (length): Update to use nios2_cdx_narrow_form_p().
13272 (type): Add new insn type values.
13273 (control, alu, st, ld, shift): Update insn reservations with
13274 new insn type values.
13275 (*high, *lo_sum): Define new insn patterns for constant generation.
13276 (movqi_internal, movhi_internal, movsi_internal): Reduce
13277 alternatives, update asm template to handle CDX variants, update
13279 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
13280 template, update type attributes.
13281 (extendhisi2, extendqi<mode>2): Likewise.
13282 (addsi3): Change to use function for asm string.
13283 (subsi3): Add CDX notation to asm template, update type attributes.
13284 (negsi3, one_cmplsi3): Likewise.
13285 (andsi3): New pattern, specialized from logical patterns.
13286 (<code>si3): Remove and case, combine alternatives, update asm
13288 (<shift_op>si3): Add CDX notation, update type attributes.
13289 (rotrsi3): Update type attribute.
13290 (*merge, extzv, insv): New insn patterns.
13291 (return): Change to define_expand.
13292 (simple_return): Add CDX notation, update type attributes.
13293 (indirect_jump): Add CDX notation.
13294 (jump): Update asm cases, update length attribute expression.
13295 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
13296 (nios2_cbranch): Update asm cases and length attribute expression
13297 to handle CDX variants.
13298 (nios2_cmp<code>): Update asm template.
13299 (nop): Add CDX notation, update type attributes.
13300 (trap): Add CDX notation.
13301 (ctrapsi4): Update asm cases and length attribute expression to
13302 handle CDX variant.
13303 * doc/md.texi (Machine Constraints): Document P constraint.
13305 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13306 Cesar Philippidis <cesar@codesourcery.com>
13307 Chung-Lin Tang <cltang@codesourcery.com>
13309 * config/nios2/nios2.h (SMALL_INT12): New macro.
13310 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
13311 (nios2_valid_addr_expr_p): Use it.
13312 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
13313 with implicit "io" instructions on R2.
13314 * config/nios2/constraints.md (w): New constraint.
13315 * config/nios2/predicates.md (ldstio_memory_operand): New.
13316 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
13317 operand predicate and constraint.
13318 (ld<bh>io_signed, st<bhw>io>): Likewise.
13319 * doc/md.texi (Machine Constraints): Document w constraint.
13321 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13322 Cesar Philippidis <cesar@codesourcery.com>
13323 Chung-Lin Tang <cltang@codesourcery.com>
13325 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
13326 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
13327 Nios II architecture level.
13328 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
13329 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
13330 (OPTION_DEFAULT_SPECS): Define.
13331 (ASM_SPEC): Add -march= spec strings.
13332 * config/nios2/nios2.c (nios2_option_override): Check for
13333 conflicts involving new options.
13334 * config.gcc (nios2*-*-*): Support --with-arch=.
13335 * doc/invoke.texi (Option Summary, Nios II Options): Document
13336 -march=, -mbmx, and -mcdx.
13338 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
13340 PR rtl-optimization/66626
13341 * lra-constraints.c (lra_constraints): Prevent equivalence
13342 substitution for static chain pseudo in functions with nonlocal
13345 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13347 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
13348 (nios2_emit_stack_limit_check): Add size parameter. Handle
13349 -fstack-limit-symbol as well as -fstack-limit-register.
13350 (nios2_expand_prologue): Emit only a single stack limit check,
13351 even if multiple stack adjustments are required.
13352 (nios2_option_override): Diagnose unsupported combination of -fpic
13353 and -stack-limit-symbol.
13355 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
13357 * Makefile.in (top_srcdir): New.
13358 * configure.ac: Use AM_ZLIB.
13359 * configure: Regeneated.
13361 2015-07-14 Matthias Klose <doko@ubuntu.com>
13364 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
13366 2015-07-14 Richard Biener <rguenther@suse.de>
13368 PR tree-optimization/66863
13369 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
13370 what we record for conversion use stmt lhs inequalities.
13372 2015-07-14 Richard Biener <rguenther@suse.de>
13374 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
13375 (decision_tree::gen_gimple): Likewise.
13377 2015-07-14 Tom de Vries <tom@codesourcery.com>
13379 * gcc.c (greater_than_spec_func): Declare forward.
13380 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
13381 -ftree-parallelize-loops={0,1}.
13382 (static_spec_functions): Add greater_than_spec_func function with name
13384 (greater_than_spec_func): New function.
13386 2015-07-14 Richard Biener <rguenther@suse.de>
13388 * tree-ssa-dom.c (record_temporary_equivalences): Merge
13389 wideing type conversion case from record_equivalences_from_incoming_edge
13390 and use record_equality to record equivalences.
13391 (record_equivalences_from_incoming_edge): Call
13392 record_temporary_equivalences.
13394 2015-07-14 Richard Biener <rguenther@suse.de>
13396 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
13397 (struct if_expr): New.
13398 (struct with_expr): Likewise.
13399 (is_a_helper): Add helpers for if_expr and with_expr.
13400 (struct simplify): Add simplify_kind enum and member. Remove
13402 (simplify::simplify): Adjust.
13403 (lower_commutative): Adjust.
13404 (lower_opt_convert): Likewise.
13405 (lower_cond): Likewise.
13406 (replace_id): Handle with_expr and if_expr.
13407 (lower_for): Adjust.
13408 (dt_simplify::gen_1): New recursive worker, split out from ...
13409 (dt_simplify::gen): ... here. Deal with if and with expansion
13411 (capture_info::capture_info): Take context argument
13412 (capture_info::walk_result): Only analyze specific result.
13413 (parser::parse_result): New function.
13414 (parser::parse_simplify): Adjust to parse ifs with then end
13416 (parser::parse_if): Simplify.
13417 (parser::parse_pattern): Pass down simplify kind.
13418 * match.pd: Convert if structure to new syntax.
13420 2015-07-13 Marek Polacek <polacek@redhat.com>
13422 * rtl.c (rtx_equal_p_cb): Fix typo.
13424 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
13426 * omega.h: Don't include config.h, don't include params.h again if
13427 omega.h has already been included.
13428 * graphite-poly.h: Include sese.h.
13429 * graphite.c: Don't include sese.h, remove needless includes and
13430 minimize includes outside #ifdef HAVE_isl block.
13431 * graphite-blocking.c: Don't include sese.h, remove needless includes,
13432 and wrap entire file in #ifdef HAVE_isl
13433 * graphite-dependences.c: Likewise.
13434 * graphite-interchange.c: Likewise.
13435 * graphite-isl-ast-to-gimple.c: Likewise.
13436 * graphite-optimize-isl.c: Likewise.
13437 * graphite-poly.c: Likewise.
13438 * graphite-scop-detection.c: Likewise.
13439 * graphite-sese-to-poly.c: Likewise.
13441 2015-07-13 Tom de Vries <tom@codesourcery.com>
13443 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
13445 2015-07-13 Renlin Li <renlin.li@arm.com>
13448 * simplify-rtx.c (simplify_const_relational_operation): Add
13449 side_effects_p checks.
13451 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
13453 * bitmap.h: Fix double word typos.
13454 * builtins.c: Same.
13456 * cfgloopmanip.c: Same.
13459 * cgraphclones.c: Same.
13461 * config/aarch64/aarch64-protos.h: Same.
13462 * config/aarch64/aarch64.c: Same.
13463 * config/aarch64/aarch64.md: Same.
13464 * config/arm/arm.md: Same.
13465 * config/arm/arm1020e.md: Same.
13466 * config/arm/arm1026ejs.md: Same.
13467 * config/arm/arm926ejs.md: Same.
13468 * config/arm/fa526.md: Same.
13469 * config/arm/fa606te.md: Same.
13470 * config/arm/fa626te.md: Same.
13471 * config/arm/fa726te.md: Same.
13472 * config/arm/fmp626.md: Same.
13473 * config/darwin.c: Same.
13474 * config/epiphany/epiphany.c: Same.
13475 * config/frv/frv.c: Same.
13476 * config/ft32/ft32.c: Same.
13477 * config/gnu-user.h: Same.
13478 * config/h8300/constraints.md: Same.
13479 * config/i386/i386.c: Same.
13480 * config/i386/i386.md: Same.
13481 * config/iq2000/iq2000.md: Same.
13482 * config/mips/mips.c: Same.
13483 * config/mmix/mmix.md: Same.
13484 * config/moxie/moxie.c: Same.
13485 * config/nds32/nds32.md: Same.
13486 * config/pa/pa.h: Same.
13487 * config/rs6000/aix.h: Same.
13488 * config/rs6000/rs6000.h: Same.
13489 * config/sh/sh.c: Same.
13490 * config/tilegx/tilegx.md: Same.
13491 * config/tilepro/gen-mul-tables.cc: Same.
13494 * doc/invoke.texi: Same.
13496 * dwarf2out.c: Same.
13499 * genmatch.c: Same.
13500 * gimplify.c: Same.
13501 * hash-table.h: Same.
13502 * internal-fn.c: Same.
13504 * ipa-devirt.c: Same.
13507 * ipa-profile.c: Same.
13508 * ipa-prop.c: Same.
13509 * ipa-prop.h: Same.
13512 * reg-stack.c: Same.
13513 * regcprop.c: Same.
13518 * tree-inline.c: Same.
13519 * tree-sra.c: Same.
13520 * tree-ssa-dom.c: Same.
13521 * tree-ssa-loop-ivopts.c: Same.
13522 * tree-ssa-structalias.c: Same.
13523 * tree-ssa-tail-merge.c: Same.
13524 * tree-ssa-ter.c: Same.
13525 * tree-ssa-threadupdate.c: Same.
13526 * tree-ssa-uninit.c: Same.
13527 * tree-ssanames.c: Same.
13528 * tree-vect-loop-manip.c: Same.
13529 * tree-vrp.c: Same.
13531 * valtrack.c: Same.
13534 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
13536 PR middle-end/66726
13537 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
13538 tree_ssa_phiopt_worker): Call it.
13540 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
13542 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
13543 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
13546 2015-07-11 Marek Polacek <polacek@redhat.com>
13548 PR middle-end/66353
13549 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
13550 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
13551 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
13552 rather than bb_has_abnormal_call_pred.
13553 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
13554 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
13555 rather than bb_has_abnormal_call_pred.
13557 2015-07-10 Anatoly Sokolov <aesok@post.ru>
13559 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13560 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
13561 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13562 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
13563 v850_legitimate_address_p): New functions.
13564 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
13566 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
13569 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
13570 indirect sibcall with register arguments if register available
13571 for argument passing.
13572 (init_cumulative_args): Set cfun->machine->arg_reg_available
13573 to (cum->nregs > 0) or to true if function has a variable
13575 (function_arg_advance_32): Set cfun->machine->arg_reg_available
13576 to false if cum->nregs <= 0.
13577 * config/i386/i386.h (machine_function): Add arg_reg_available.
13579 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
13581 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
13582 and gen_higpart instead of gen_rtx_SUBREG.
13583 * config/i386/i386.md
13584 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
13585 (read-modify peephole2): Use gen_lowpart instead of
13586 gen_rtx_SUBREG for operand 5.
13588 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
13590 * config/tilepro/gen-mul-tables.cc (main): Change include list for
13592 * config/tilepro/mul-tables.c: Regenerate.
13593 * config/tilegx/mul-tables.c: Regenerate.
13595 2015-07-10 Richard Biener <rguenther@suse.de>
13597 * fold-const.c (distribute_bit_expr): Remove.
13598 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
13599 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
13600 to A & (B | C) and simplifying A << C1 << C2 to ...
13601 * match.pd: ... patterns here.
13603 2015-07-10 Jiong Wang <jiong.wang@arm.com>
13605 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
13606 Mark mem as READONLY and NOTRAP for PIC symbol.
13608 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
13610 * gimple-predict.h: New file.
13611 (gimple_predict_predictor, gimple_predict_set_predictor,
13612 gimple_predict_outcome, gimple_predict_set_outcome,
13613 gimple_build_predict): Relocate here.
13614 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
13615 gimple_predict_outcome, gimple_predict_set_outcome): Move to
13617 * gimple.c (gimple_build_predict): Move to gimple-predict.h
13618 * basic-block.h: Don't include cfghooks.h.
13619 * backend.h: Don't include predict.h.
13620 * cfghooks.h: Include predict.h.
13621 * gimple-pretty-print.c: Include gimple-predict.h.
13622 * gimplify.c: Likwise.
13623 * predict.c: Adjust includes.
13624 * tree-inline.c: Likewise.
13625 * asan.c: Likewise.
13626 * auto-inc-dec.c: Likewise.
13627 * auto-profile.c: Likewise.
13628 * bb-reorder.c: Likewise.
13629 * builtins.c: Likewise.
13630 * caller-save.c: Likewise.
13631 * calls.c: Likewise.
13632 * cfganal.c: Likewise.
13633 * cfgbuild.c: Likewise.
13635 * cfgcleanup.c: Likewise.
13636 * cfgexpand.c: Likewise.
13637 * cfghooks.c: Likewise.
13638 * cfgloopanal.c: Likewise.
13639 * cfgloop.c: Likewise.
13640 * cfgloopmanip.c: Likewise.
13641 * cfgrtl.c: Likewise.
13642 * cgraph.c: Likewise.
13643 * cgraphunit.c: Likewise.
13644 * combine.c: Likewise.
13645 * cprop.c: Likewise.
13648 * dojump.c: Likewise.
13650 * except.c: Likewise.
13651 * expmed.c: Likewise.
13652 * expr.c: Likewise.
13653 * final.c: Likewise.
13654 * fold-const.c: Likewise.
13655 * function.c: Likewise.
13656 * fwprop.c: Likewise.
13657 * gcc-plugin.h: Likewise.
13658 * gcse.c: Likewise.
13659 * genattrtab.c: Likewise.
13660 * genemit.c: Likewise.
13661 * gengtype.c: Likewise.
13662 * genopinit.c: Likewise.
13663 * genoutput.c: Likewise.
13664 * genpreds.c: Likewise.
13665 * genrecog.c: Likewise.
13666 * gimple-fold.c: Likewise.
13667 * gimple-iterator.c: Likewise.
13668 * gimple-ssa-isolate-paths.c: Likewise.
13669 * gimple-ssa-strength-reduction.c: Likewise.
13670 * graph.c: Likewise.
13671 * graphite-blocking.c: Likewise.
13672 * graphite.c: Likewise.
13673 * graphite-dependences.c: Likewise.
13674 * graphite-interchange.c: Likewise.
13675 * graphite-isl-ast-to-gimple.c: Likewise.
13676 * graphite-optimize-isl.c: Likewise.
13677 * graphite-poly.c: Likewise.
13678 * graphite-scop-detection.c: Likewise.
13679 * graphite-sese-to-poly.c: Likewise.
13680 * haifa-sched.c: Likewise.
13681 * ifcvt.c: Likewise.
13682 * internal-fn.c: Likewise.
13683 * ipa-cp.c: Likewise.
13684 * ipa-profile.c: Likewise.
13685 * ipa-split.c: Likewise.
13686 * ipa-utils.c: Likewise.
13687 * ira-build.c: Likewise.
13688 * ira-color.c: Likewise.
13689 * ira-conflicts.c: Likewise.
13690 * ira-costs.c: Likewise.
13691 * ira-emit.c: Likewise.
13692 * ira-lives.c: Likewise.
13693 * jump.c: Likewise.
13694 * loop-doloop.c: Likewise.
13695 * loop-init.c: Likewise.
13696 * loop-invariant.c: Likewise.
13697 * loop-unroll.c: Likewise.
13698 * lower-subreg.c: Likewise.
13699 * lra-assigns.c: Likewise.
13701 * lra-coalesce.c: Likewise.
13702 * lra-constraints.c: Likewise.
13703 * lra-lives.c: Likewise.
13704 * lto-cgraph.c: Likewise.
13705 * lto-streamer-in.c: Likewise.
13706 * mode-switching.c: Likewise.
13707 * modulo-sched.c: Likewise.
13708 * omp-low.c: Likewise.
13709 * optabs.c: Likewise.
13710 * passes.c: Likewise.
13711 * postreload.c: Likewise.
13712 * postreload-gcse.c: Likewise.
13713 * profile.c: Likewise.
13714 * recog.c: Likewise.
13715 * regstat.c: Likewise.
13716 * reload1.c: Likewise.
13717 * reorg.c: Likewise.
13718 * rtlanal.c: Likewise.
13719 * sched-ebb.c: Likewise.
13720 * sel-sched-ir.c: Likewise.
13721 * sese.c: Likewise.
13722 * shrink-wrap.c: Likewise.
13723 * simplify-rtx.c: Likewise.
13724 * stmt.c: Likewise.
13725 * store-motion.c: Likewise.
13726 * tracer.c: Likewise.
13727 * trans-mem.c: Likewise.
13728 * tree-call-cdce.c: Likewise.
13729 * tree-cfg.c: Likewise.
13730 * tree-cfgcleanup.c: Likewise.
13731 * tree-chkp.c: Likewise.
13732 * tree-complex.c: Likewise.
13733 * tree-eh.c: Likewise.
13734 * tree-if-conv.c: Likewise.
13735 * tree-loop-distribution.c: Likewise.
13736 * tree-outof-ssa.c: Likewise.
13737 * tree-parloops.c: Likewise.
13738 * tree-predcom.c: Likewise.
13739 * tree-pretty-print.c: Likewise.
13740 * tree-profile.c: Likewise.
13741 * tree-sra.c: Likewise.
13742 * tree-ssa.c: Likewise.
13743 * tree-ssa-coalesce.c: Likewise.
13744 * tree-ssa-dce.c: Likewise.
13745 * tree-ssa-dom.c: Likewise.
13746 * tree-ssa-forwprop.c: Likewise.
13747 * tree-ssa-ifcombine.c: Likewise.
13748 * tree-ssa-loop-ch.c: Likewise.
13749 * tree-ssa-loop-im.c: Likewise.
13750 * tree-ssa-loop-ivcanon.c: Likewise.
13751 * tree-ssa-loop-ivopts.c: Likewise.
13752 * tree-ssa-loop-manip.c: Likewise.
13753 * tree-ssa-loop-prefetch.c: Likewise.
13754 * tree-ssa-loop-unswitch.c: Likewise.
13755 * tree-ssa-math-opts.c: Likewise.
13756 * tree-ssa-phiopt.c: Likewise.
13757 * tree-ssa-pre.c: Likewise.
13758 * tree-ssa-reassoc.c: Likewise.
13759 * tree-ssa-sink.c: Likewise.
13760 * tree-ssa-tail-merge.c: Likewise.
13761 * tree-ssa-threadedge.c: Likewise.
13762 * tree-ssa-threadupdate.c: Likewise.
13763 * tree-switch-conversion.c: Likewise.
13764 * tree-tailcall.c: Likewise.
13765 * tree-vect-data-refs.c: Likewise.
13766 * tree-vect-loop.c: Likewise.
13767 * tree-vect-loop-manip.c: Likewise.
13768 * tree-vectorizer.c: Likewise.
13769 * tree-vrp.c: Likewise.
13770 * ubsan.c: Likewise.
13771 * value-prof.c: Likewise.
13772 * varasm.c: Likewise.
13773 * var-tracking.c: Likewise.
13774 * config/aarch64/aarch64-builtins.c: Likewise.
13775 * config/aarch64/aarch64.c: Likewise.
13776 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13777 * config/alpha/alpha.c: Likewise.
13778 * config/arc/arc.c: Likewise.
13779 * config/arm/arm.c: Likewise.
13780 * config/avr/avr.c: Likewise.
13781 * config/bfin/bfin.c: Likewise.
13782 * config/c6x/c6x.c: Likewise.
13783 * config/cr16/cr16.c: Likewise.
13784 * config/cris/cris.c: Likewise.
13785 * config/darwin.c: Likewise.
13786 * config/darwin-c.c: Likewise.
13787 * config/epiphany/epiphany.c: Likewise.
13788 * config/epiphany/mode-switch-use.c: Likewise.
13789 * config/epiphany/resolve-sw-modes.c: Likewise.
13790 * config/fr30/fr30.c: Likewise.
13791 * config/frv/frv.c: Likewise.
13792 * config/ft32/ft32.c: Likewise.
13793 * config/h8300/h8300.c: Likewise.
13794 * config/i386/i386.c: Likewise.
13795 * config/i386/winnt.c: Likewise.
13796 * config/ia64/ia64.c: Likewise.
13797 * config/iq2000/iq2000.c: Likewise.
13798 * config/lm32/lm32.c: Likewise.
13799 * config/m32c/m32c.c: Likewise.
13800 * config/m32r/m32r.c: Likewise.
13801 * config/m68k/m68k.c: Likewise.
13802 * config/mcore/mcore.c: Likewise.
13803 * config/mep/mep.c: Likewise.
13804 * config/microblaze/microblaze.c: Likewise.
13805 * config/mips/mips.c: Likewise.
13806 * config/mmix/mmix.c: Likewise.
13807 * config/mn10300/mn10300.c: Likewise.
13808 * config/moxie/moxie.c: Likewise.
13809 * config/msp430/msp430.c: Likewise.
13810 * config/nds32/nds32.c: Likewise.
13811 * config/nds32/nds32-cost.c: Likewise.
13812 * config/nds32/nds32-fp-as-gp.c: Likewise.
13813 * config/nds32/nds32-intrinsic.c: Likewise.
13814 * config/nds32/nds32-isr.c: Likewise.
13815 * config/nds32/nds32-md-auxiliary.c: Likewise.
13816 * config/nds32/nds32-memory-manipulation.c: Likewise.
13817 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13818 * config/nds32/nds32-predicates.c: Likewise.
13819 * config/nios2/nios2.c: Likewise.
13820 * config/nvptx/nvptx.c: Likewise.
13821 * config/pa/pa.c: Likewise.
13822 * config/pdp11/pdp11.c: Likewise.
13823 * config/rl78/rl78.c: Likewise.
13824 * config/rs6000/rs6000.c: Likewise.
13825 * config/rx/rx.c: Likewise.
13826 * config/s390/s390.c: Likewise.
13827 * config/sh/sh.c: Likewise.
13828 * config/sh/sh-mem.cc: Likewise.
13829 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13830 * config/sh/sh_treg_combine.cc: Likewise.
13831 * config/sparc/sparc.c: Likewise.
13832 * config/spu/spu.c: Likewise.
13833 * config/stormy16/stormy16.c: Likewise.
13834 * config/tilegx/tilegx.c: Likewise.
13835 * config/tilepro/tilepro.c: Likewise.
13836 * config/v850/v850.c: Likewise.
13837 * config/vax/vax.c: Likewise.
13838 * config/visium/visium.c: Likewise.
13839 * config/xtensa/xtensa.c: Likewise.
13841 2015-07-10 Richard Biener <rguenther@suse.de>
13843 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
13844 (decision_tree::gen_gimple): Likewise.
13845 (decision_tree::gen_generic): Likewise.
13847 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
13850 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
13851 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
13853 2015-07-10 Jakub Jelinek <jakub@redhat.com>
13855 PR middle-end/66820
13856 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
13857 or ORT_TASK contexts.
13858 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
13861 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13863 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
13866 2015-07-10 Tom de Vries <tom@codesourcery.com>
13868 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
13869 insert nit + 1 bound.
13871 2015-07-10 Richard Biener <rguenther@suse.de>
13873 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
13874 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
13875 (if_convertible_loop_p_1): For this always compute bb predicates.
13876 (if_convertible_loop_p): And free them.
13878 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13880 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
13883 2015-07-10 Richard Biener <rguenther@suse.de>
13885 PR tree-optimization/66823
13886 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
13887 inverted predicate.
13889 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
13891 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
13892 to handle mips[32|64]r3 and mips[32|64]r5.
13894 2015-07-09 Jakub Jelinek <jakub@redhat.com>
13896 PR middle-end/66633
13897 * tree-nested.c (get_static_chain): Or in a flag into
13898 info->static_chain_added.
13899 (get_frame_field, get_nonlocal_debug_decl): Likewise.
13900 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
13901 2015-07-01 changes.
13902 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
13903 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
13906 PR tree-optimization/66718
13907 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
13909 (vect_simd_lane_linear): New function.
13910 (vectorizable_simd_clone_call): Support using linear arguments for
13911 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
13913 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
13916 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
13918 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
13920 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
13921 Use machine mode, not enum machine_mode in the prototype.
13923 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
13924 classify 128-bit floating point support.
13925 (FLOAT128_IBM_P): Likewise.
13926 (FLOAT128_VECTOR_P): Likewise.
13927 (FLOAT128_2REG_P): Likewise.
13928 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
13929 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
13930 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
13931 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
13933 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
13934 tests against TFmode/TDmode, since those modes do not use VSX
13936 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
13938 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
13939 tests against TFmode, etc.
13940 (invalid_e500_subreg): Add tests against IFmode/KFmode.
13941 (reg_offset_addressing_ok_p): Likewise.
13942 (rs6000_legitimate_offset_address_p): Likewise.
13943 (rs6000_legitimize_address): Likewise.
13944 (rs6000_legitimize_reload_address): Likewise.
13945 (rs6000_legitimate_address_p): Clean up tests against TFmode and
13946 TDmode to use the new helper macros, which will include IFmode and
13948 (rs6000_emit_move): Likewise.
13949 (rs6000_darwin64_record_arg_recurse): Likewise.
13950 (print_operand): Likewise.
13951 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
13952 that uses a single vector register as a vector and not as a
13953 floating point register in terms of the calling sequence.
13954 (rs6000_discover_homogeneous_aggregate): Likewise.
13955 (rs6000_return_in_memory): Likewise.
13956 (init_cumulative_args): Likewise.
13957 (rs6000_function_arg_boundary): Likewise.
13958 (rs6000_function_arg_advance_1): Likewise.
13959 (rs6000_function_arg): Likewise.
13960 (rs6000_pass_by_reference): Likewise.
13961 (rs6000_gimplify_va_arg): Likewise.
13962 (rs6000_secondary_reload_memory): Use machine_mode not enum
13964 (rs6000_split_multireg_move): Use new helper macros.
13965 (spe_func_has_64bit_regs_p): Likewise.
13966 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
13967 (output_toc): Use new helper macros.
13968 (rs6000_register_move_cost): Likewise.
13969 (rs6000_function_value): Add IEEE 128-bit floating point calling
13971 (rs6000_libcall_value): Likewise.
13972 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
13973 floating point support.
13974 (rs6000_vector_mode_supported_p): Likewise.
13976 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
13978 PR rtl-optimization/66782
13979 * lra-int.h (struct lra_insn_recog_data): Add comment about
13980 clobbered hard regs for arg_hard_regs.
13981 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
13982 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
13983 Add condition for processing used hard regs.
13984 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
13985 Process clobbered hard regs.
13987 2015-07-09 Michael Matz <matz@suse.de>
13989 * genmatch.c (fprintf_indent): New function.
13990 (operand::gen_transform): Add indent parameter.
13991 (expr::gen_transform, c_expr::gen_transform,
13992 capture::gen_transform): Ditto and use fprintf_indent.
13993 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
13994 (dt_operand::gen, dt_operand::gen_predicate,
13995 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
13996 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
13997 (decision_tree::gen_gimple): Adjust calls and indent generated
13999 (decision_tree::gen_generic): Ditto.
14000 (write_predicate): Ditto.
14002 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
14005 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
14006 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
14007 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
14008 {GENERAL,SSE,MMX}_REG_P where appropriate.
14010 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
14012 * lto-streamer.h: Don't include target.h and alloc-pool.h.
14013 * builtins.c: Adjust includes.
14014 * gimple.c: Likewise.
14015 * ipa-icf.c: Likewise.
14016 * lto-opts.c: Likewise.
14017 * ipa-reference.c: Likewise.
14018 * lto-section-out.c: Likewise.
14019 * lto-streamer-in.c: Likewise.
14020 * lto-streamer-out.c: Likewise.
14021 * opts-global.c: Likewise.
14022 * symtab.c: Likewise.
14023 * tree-chkp.c: Likewise.
14024 * tree-ssa-live.c: Likewise.
14025 * tree-streamer-in.c: Likewise.
14026 * tree-streamer-out.c: Likewise.
14027 * config/darwin.c: Likewise.
14028 * config/i386/winnt.c: Likewise.
14030 2015-07-09 Richard Biener <rguenther@suse.de>
14032 * genmatch.c (struct expr): Add force_single_use flag.
14033 (expr::expr): Add copy constructor.
14034 (capture_info::walk_match): Gather force_single_use captures.
14035 (expr::gen_transform): Use possibly NULLified sequence.
14036 (dt_simplify::gen): Apply single-use restrictions by NULLifying
14037 seq if any constrained expr is not single-use.
14038 (parser::parse_expr): Refactor to allow multiple flags. Handle
14039 's' flag to force an expression have a single-use if the pattern
14040 simplifies to more than one statement.
14041 * match.pd: Convert most single_use conditionals to :s flags.
14043 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
14045 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
14046 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
14047 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
14049 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
14051 * flags.h: Don't include flag-types.h or options.h.
14052 * opts-common.c: Adjust includes.
14053 * opts-global.c: Likewise.
14054 * common/config/epiphany/epiphany-common.c: Likewise.
14056 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
14059 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
14062 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
14065 * config/i386/i386.c (ix86_return_in_memory): Return true
14066 if int_size_in_bytes returns negative for IA MCU.
14068 2015-07-09 Marek Polacek <polacek@redhat.com>
14070 PR tree-optimization/66718
14071 * Makefile.in (OBJS): Add gimple-laddress.o.
14072 * passes.def: Schedule pass_laddress.
14073 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
14074 * tree-pass.h (make_pass_laddress): Declare.
14075 * gimple-laddress.c: New file.
14077 2015-07-09 Richard Biener <rguenther@suse.de>
14079 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
14081 2015-07-09 Richard Biener <rguenther@suse.de>
14083 PR tree-optimization/66807
14084 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
14086 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
14088 * function.c (stack_protect_epilogue): Use if rather than switch for
14089 check targetm.have_stack_protect_test.
14091 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14093 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
14094 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
14095 * config/arc/arc.h: Likewise.
14096 * config/arm/arm.h: Likewise.
14097 * config/bfin/bfin.h: Likewise.
14098 * config/epiphany/epiphany.h: Likewise.
14099 * config/frv/frv.h: Likewise.
14100 * config/ia64/ia64.h: Likewise.
14101 * config/iq2000/iq2000.h: Likewise.
14102 * config/lm32/lm32.h: Likewise.
14103 * config/m32r/m32r.h: Likewise.
14104 * config/mcore/mcore.h: Likewise.
14105 * config/mep/mep.h: Likewise.
14106 * config/microblaze/microblaze.h: Likewise.
14107 * config/mips/mips.h: Likewise.
14108 * config/mmix/mmix.h: Likewise.
14109 * config/mn10300/mn10300.h: Likewise.
14110 * config/nds32/nds32.h: Likewise.
14111 * config/nios2/nios2.h: Likewise.
14112 * config/pa/pa.h: Likewise.
14113 * config/rl78/rl78.h: Likewise.
14114 * config/sh/sh.h: Likewise.
14115 * config/sparc/sparc.h: Likewise.
14116 * config/stormy16/stormy16.h: Likewise.
14117 * config/tilegx/tilegx.h: Likewise.
14118 * config/tilepro/tilepro.h: Likewise.
14119 * config/v850/v850.h: Likewise.
14120 * config/xtensa/xtensa.h: Likewise.
14121 * doc/tm.texi: Regenerate.
14122 * doc/tm.texi.in: Adjust.
14123 * combine.c (simplify_set): Likewise.
14124 (simplify_comparison): Likewise.
14125 * expr.c (store_constructor): Likewise.
14126 * internal-fn.c (expand_arith_overflow): Likewise.
14127 * reload.c (push_reload): Likewise.
14128 (find_reloads): Likewise.
14129 (find_reloads_subreg_address): Likewise.
14130 * reload1.c (eliminate_regs_1): Likewise.
14131 * rtlanal.c (nonzero_bits1): Likewise.
14132 (num_sign_bit_copies1): Likewise.
14133 * simplify-rtx.c (simplify_truncation): Likewise.
14135 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14137 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
14138 of AUTO_INC_DEC with the preprocessor.
14139 * combine.c (combine_instructions): Likewise.
14140 (can_combine_p): Likewise.
14141 (try_combine): Likewise.
14142 * emit-rtl.c (try_split): Likewise.
14143 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14144 * lower-subreg.c (resolve_simple_move): Likewise.
14145 * lra.c (update_inc_notes): Likewise.
14146 * recog.c (asm_operand_ok): Likewise.
14147 (constrain_operands): Likewise.
14148 * regrename.c (scan_rtx_address): Likewise.
14149 * reload.c (update_auto_inc_notes): Likewise.
14150 (reg_inc_found_and_valid_p): Likewise.
14151 * reload1.c (reload): Likewise.
14152 (emit_input_reload_insns): Likewise.
14153 (delete_output_reload): Likewise.
14154 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14155 * valtrack.c (cleanup_auto_inc_dec): Likewise.
14157 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14159 * rtl.h: Always define AUTO_INC_DEC.
14160 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
14161 * combine.c (combine_instructions): Likewise.
14162 (can_combine_p): Likewise.
14163 (try_combine): Likewise.
14164 * emit-rtl.c (try_split): Likewise.
14165 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14166 * lower-subreg.c (resolve_simple_move): Likewise.
14167 * lra.c (update_inc_notes): Likewise.
14168 * recog.c (asm_operand_ok): Likewise.
14169 (constrain_operands): Likewise.
14170 * regrename.c (scan_rtx_address): Likewise.
14171 * reload.c (update_auto_inc_notes): Likewise.
14172 (find_equiv_reg): Likewise.
14173 * reload1.c (reload): Likewise.
14174 (reload_as_needed): Likewise.
14175 (choose_reload_regs): Likewise.
14176 (emit_input_reload_insns): Likewise.
14177 (delete_output_reload): Likewise.
14178 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14179 * valtrack.c (cleanup_auto_inc_dec): Likewise.
14181 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14183 * combine.c (can_combine_def_p): Don't check the value of
14184 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
14185 (combinable_i3pat): Likewise.
14186 (mark_used_regs_combine): Likewise.
14187 * regrename.c (rename_chains): Likewise.
14188 * reload.c (find_reloads_address): Likewise.
14189 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14191 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14193 * combine.c (update_rsp_from_reg_equal): Don't check if
14194 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
14195 (reg_nonzero_bits_for_combine): Likewise.
14196 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
14198 * config/frv/frv.h: Likewise.
14199 * config/lm32/lm32.h: Likewise.
14200 * config/mep/mep.h: Likewise.
14201 * config/mips/mips.h: Likewise.
14202 * config/rs6000/rs6000.h: Likewise.
14203 * config/sh/sh.h: Likewise.
14204 * config/tilegx/tilegx.h (enum reg_class): Likewise.
14205 * config/tilepro/tilepro.h: Likewise.
14206 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
14207 * doc/tm.texi: Regenerate.
14208 * doc/tm.texi.in: Adjust.
14209 * rtlanal.c (nonzero_bits1): Likewise.
14211 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14213 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
14214 with the preprocessor.
14215 (combine_instructions): Likewise.
14216 (try_combine): Likewise.
14218 (distribute_notes): Likewise.
14220 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14222 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
14224 (simplify_set): Likewise.
14225 * cse.c (cse_insn): Likewise.
14226 * fold-const.c (fold_single_bit_test): Likewise.
14227 (fold_unary_loc): Likewise.
14228 * postreload.c (reload_cse_simplify_set): Likewise.
14229 (reload_cse_simplify_operands): Likewise.
14231 2015-07-08 Jiong Wang <jiong.wang@arm.com>
14233 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
14234 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
14236 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
14239 * config/i386/x86intrin.h: Include <adxintrin.h> even if
14240 __iamcu__ is defined.
14242 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
14244 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
14246 2015-07-08 Iain Sandoe <iain@codesourcery.com>
14249 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
14250 names from preservation.
14252 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
14255 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
14257 (function_arg_advance_32): Don't pass vectors in registers for
14259 (function_arg_32): Likewise.
14260 (ix86_return_in_memory): Don't return vectors in registers for
14263 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
14265 PR middle-end/66334
14266 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
14267 hard regno live at the start of BB with incoming abnormal edges.
14268 * lra-lives.c (process_bb_lives): Ditto.
14270 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
14273 * config/nvptx/mkoffload.c (main): Create an offload image only in
14274 64-bit configurations.
14276 2015-07-08 Martin Liska <mliska@suse.cz>
14279 * tree-sra.c (create_access_1): Call ctor without brackets.
14280 (create_artificial_child_access): Likewise.
14282 2015-07-08 Richard Biener <rguenther@suse.de>
14284 PR tree-optimization/66793
14285 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
14286 Properly split the block after stmts ending it.
14288 2015-07-08 Richard Biener <rguenther@suse.de>
14290 PR tree-optimization/66794
14291 * passes.c (execute_function_todo): Assert that post-dominators
14293 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
14294 Free post-dominators.
14296 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14298 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
14301 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
14303 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
14304 more than or equal 8 and less than 32 when optimizing for size.
14306 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14308 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
14309 COSTS_N_INSNS (1) and increment it appropriately throughout the
14312 2015-07-08 Richard Biener <rguenther@suse.de>
14314 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
14316 2015-07-08 Alan Modra <amodra@gmail.com>
14318 * target.def (rtx_costs): Remove "code" param, add "mode".
14319 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
14320 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
14321 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
14322 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
14323 call. Track mode when given in rtx.
14324 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
14325 (default_address_cost): Pass Pmode to rtx_cost.
14326 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
14327 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
14329 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
14330 (notreg_cost): Add mode param. Use it.
14331 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
14332 mode param and pass to set_src_cost. Update all calls.
14333 (hash_scan_set): Formatting.
14334 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
14335 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
14337 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
14338 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
14339 emit_store_flag): Update set_src_cost and rtx_cost calls.
14340 * auto-inc-dec.c (attempt_change): Likewise.
14341 * calls.c (precompute_register_parameters): Likewise.
14342 * combine.c (expand_compound_operation, make_extraction,
14343 force_to_mode, distribute_and_simplify_rtx): Likewise.
14344 * dojump.c (prefer_and_bit_test): Likewise.
14345 * dse.c (find_shift_sequence): Likewise.
14346 * expr.c (compress_float_constant): Likewise.
14347 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
14348 * ifcvt.c (noce_try_sign_mask): Likewise.
14349 * loop-doloop.c (doloop_optimize): Likewise.
14350 * loop-invariant.c (create_new_invariant): Likewise.
14351 * lower-subreg.c (shift_cost, compute_costs): Likewise.
14352 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
14353 lshift_cheap_p): Likewise.
14354 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
14355 try_replace_in_use, reload_cse_move2add): Likewise.
14356 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
14358 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14359 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
14360 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
14361 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
14362 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
14363 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
14365 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
14366 * config/arc/arc.c (arc_rtx_costs): Likewise.
14367 * config/arm/arm.c (arm_rtx_costs): Likewise.
14368 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
14369 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
14370 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
14371 * config/cris/cris.c (cris_rtx_costs): Likewise.
14372 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
14373 * config/frv/frv.c (frv_rtx_costs): Likewise.
14374 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
14375 * config/i386/i386.c (ix86_rtx_costs): Likewise.
14376 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
14377 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
14378 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
14379 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
14380 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
14381 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
14382 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
14383 * config/mep/mep.c (mep_rtx_cost): Likewise.
14384 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
14385 * config/mips/mips.c (mips_rtx_costs): Likewise.
14386 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
14387 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
14388 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
14389 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
14390 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
14391 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
14392 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
14393 * config/pa/pa.c (hppa_rtx_costs): Likewise.
14394 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
14395 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
14396 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
14397 * config/s390/s390.c (s390_rtx_costs): Likewise.
14398 * config/sh/sh.c (sh_rtx_costs): Likewise.
14399 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
14400 * config/spu/spu.c (spu_rtx_costs): Likewise.
14401 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
14402 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
14403 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
14404 * config/v850/v850.c (v850_rtx_costs): Likewise.
14405 * config/vax/vax.c (vax_rtx_costs): Likewise.
14406 * config/visium/visium.c (visium_rtx_costs): Likewise.
14407 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
14408 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
14409 "code" param, and pass as outer_code to first rtx_cost call. Pass
14410 mode to rtx_cost calls.
14411 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
14413 (aarch64_rtx_costs_wrapper): Update.
14414 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
14415 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
14417 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
14418 and rtx_cost calls.
14419 (avr_operand_rtx_cost): Similarly.
14420 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
14421 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
14422 * config/mips/mips.c (mips_stack_address_p): Comment typo.
14423 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
14424 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
14425 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
14427 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
14428 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
14429 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
14430 * doc/tm.texi: Regenerate.
14432 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
14434 * tree-core.h: Include symtab.h.
14435 * rtl.h: Include hard-reg-set.h but not flags.h.
14436 (HARD_CONST): Remove condition compilation involving HARD_CONST since
14437 hard-reg-set.h is always included.
14438 * regs.h: Don't include hard-reg-set.h or rtl.h.
14439 * cfg.h: Include dominance.h.
14440 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
14441 * backend.h: New. Aggregate commonly used backend header files.
14442 * gimple-ssa.h: Don't include tree-hasher.h.
14443 * ssa.h: New. Aggregate commonly used SSA header files.
14444 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
14445 * sel-sched-ir.h: Flatten includes.
14446 * lra-int.h: Flatten completely.
14447 * sel-sched-dump.h: Flatten includes.
14448 * ira-int.h: Flatten includes.
14449 * gimple-streamer.h: Remove all includes.
14450 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
14451 * resource.h: Flatten hard-reg-set.h and df.h.
14452 * sched-int.h: Flatten insn-arrt.h and df.h.
14453 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
14454 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
14455 * genattrtab.c (write_header): Adjust generated includes.
14456 * genautomata.c (main): Likewise.
14457 * genconditions.c (write-header): Likewise.
14458 * genemit.c (main): Likewise.
14459 * gengtype.c (open_base_files): Likewise.
14460 * genopinit.c (main): Likewise.
14461 * genoutput.c (output_prologue): Likewise.
14462 * genpeep.c (main): Likewise.
14463 * genpreds.c (write_insn_preds_c): Likewise.
14464 * genrecog.c (write_header): Likewise.
14465 * alias.c: Adjust includes.
14466 * asan.c: Likewise.
14467 * attribs.c: Likewise.
14468 * auto-inc-dec.c: Likewise.
14469 * auto-profile.c: Likewise.
14470 * bb-reorder.c: Likewise.
14471 * bt-load.c: Likewise.
14472 * builtins.c: Likewise.
14473 * caller-save.c: Likewise.
14474 * calls.c: Likewise.
14475 * ccmp.c: Likewise.
14477 * cfganal.c: Likewise.
14478 * cfgbuild.c: Likewise.
14479 * cfgcleanup.c: Likewise.
14480 * cfgexpand.c: Likewise.
14481 * cfghooks.c: Likewise.
14482 * cfgloop.c: Likewise.
14483 * cfgloopanal.c: Likewise.
14484 * cfgloopmanip.c: Likewise.
14485 * cfgrtl.c: Likewise.
14486 * cgraph.c: Likewise.
14487 * cgraphbuild.c: Likewise.
14488 * cgraphclones.c: Likewise.
14489 * cgraphunit.c: Likewise.
14490 * cilk-common.c: Likewise.
14491 * combine-stack-adj.c: Likewise.
14492 * combine.c: Likewise.
14493 * compare-elim.c: Likewise.
14494 * convert.c: Likewise.
14495 * coverage.c: Likewise.
14496 * cppbuiltin.c: Likewise.
14497 * cprop.c: Likewise.
14499 * cselib.c: Likewise.
14500 * data-streamer-in.c: Likewise.
14501 * data-streamer-out.c: Likewise.
14502 * data-streamer.c: Likewise.
14503 * dbxout.c: Likewise.
14506 * debug.c: Likewise.
14507 * df-core.c: Likewise.
14508 * df-problems.c: Likewise.
14509 * df-scan.c: Likewise.
14511 * dojump.c: Likewise.
14512 * dominance.c: Likewise.
14513 * domwalk.c: Likewise.
14514 * double-int.c: Likewise.
14516 * dumpfile.c: Likewise.
14517 * dwarf2asm.c: Likewise.
14518 * dwarf2cfi.c: Likewise.
14519 * dwarf2out.c: Likewise.
14520 * emit-rtl.c: Likewise.
14521 * et-forest.c: Likewise.
14522 * except.c: Likewise.
14523 * explow.c: Likewise.
14524 * expmed.c: Likewise.
14525 * expr.c: Likewise.
14526 * final.c: Likewise.
14527 * fixed-value.c: Likewise.
14528 * fold-const.c: Likewise.
14529 * function.c: Likewise.
14530 * fwprop.c: Likewise.
14531 * gcc-plugin.h: Likewise.
14532 * gcse-common.c: Likewise.
14533 * gcse.c: Likewise.
14534 * generic-match-head.c: Likewise.
14535 * ggc-page.c: Likewise.
14536 * gimple-builder.c: Likewise.
14537 * gimple-expr.c: Likewise.
14538 * gimple-fold.c: Likewise.
14539 * gimple-iterator.c: Likewise.
14540 * gimple-low.c: Likewise.
14541 * gimple-match-head.c: Likewise.
14542 * gimple-pretty-print.c: Likewise.
14543 * gimple-ssa-isolate-paths.c: Likewise.
14544 * gimple-ssa-strength-reduction.c: Likewise.
14545 * gimple-streamer-in.c: Likewise.
14546 * gimple-streamer-out.c: Likewise.
14547 * gimple-walk.c: Likewise.
14548 * gimple.c: Likewise.
14549 * gimplify-me.c: Likewise.
14550 * gimplify.c: Likewise.
14551 * godump.c: Likewise.
14552 * graph.c: Likewise.
14553 * graphite-blocking.c: Likewise.
14554 * graphite-dependences.c: Likewise.
14555 * graphite-interchange.c: Likewise.
14556 * graphite-isl-ast-to-gimple.c: Likewise.
14557 * graphite-optimize-isl.c: Likewise.
14558 * graphite-poly.c: Likewise.
14559 * graphite-scop-detection.c: Likewise.
14560 * graphite-sese-to-poly.c: Likewise.
14561 * graphite.c: Likewise.
14562 * haifa-sched.c: Likewise.
14563 * hw-doloop.c: Likewise.
14564 * ifcvt.c: Likewise.
14565 * init-regs.c: Likewise.
14566 * internal-fn.c: Likewise.
14567 * ipa-chkp.c: Likewise.
14568 * ipa-comdats.c: Likewise.
14569 * ipa-cp.c: Likewise.
14570 * ipa-devirt.c: Likewise.
14571 * ipa-icf-gimple.c: Likewise.
14572 * ipa-icf.c: Likewise.
14573 * ipa-inline-analysis.c: Likewise.
14574 * ipa-inline-transform.c: Likewise.
14575 * ipa-inline.c: Likewise.
14576 * ipa-polymorphic-call.c: Likewise.
14577 * ipa-profile.c: Likewise.
14578 * ipa-prop.c: Likewise.
14579 * ipa-pure-const.c: Likewise.
14580 * ipa-ref.c: Likewise.
14581 * ipa-reference.c: Likewise.
14582 * ipa-split.c: Likewise.
14583 * ipa-utils.c: Likewise.
14584 * ipa-visibility.c: Likewise.
14586 * ira-build.c: Likewise.
14587 * ira-color.c: Likewise.
14588 * ira-conflicts.c: Likewise.
14589 * ira-costs.c: Likewise.
14590 * ira-emit.c: Likewise.
14591 * ira-lives.c: Likewise.
14593 * jump.c: Likewise.
14594 * langhooks.c: Likewise.
14596 * loop-doloop.c: Likewise.
14597 * loop-init.c: Likewise.
14598 * loop-invariant.c: Likewise.
14599 * loop-iv.c: Likewise.
14600 * loop-unroll.c: Likewise.
14601 * lower-subreg.c: Likewise.
14602 * lra-assigns.c: Likewise.
14603 * lra-coalesce.c: Likewise.
14604 * lra-constraints.c: Likewise.
14605 * lra-eliminations.c: Likewise.
14606 * lra-lives.c: Likewise.
14607 * lra-remat.c: Likewise.
14608 * lra-spills.c: Likewise.
14610 * lto-cgraph.c: Likewise.
14611 * lto-compress.c: Likewise.
14612 * lto-opts.c: Likewise.
14613 * lto-section-in.c: Likewise.
14614 * lto-section-out.c: Likewise.
14615 * lto-streamer-in.c: Likewise.
14616 * lto-streamer-out.c: Likewise.
14617 * lto-streamer.c: Likewise.
14619 * mode-switching.c: Likewise.
14620 * modulo-sched.c: Likewise.
14621 * omega.c: Likewise.
14622 * omp-low.c: Likewise.
14623 * optabs.c: Likewise.
14624 * opts-global.c: Likewise.
14625 * passes.c: Likewise.
14626 * plugin.c: Likewise.
14627 * postreload-gcse.c: Likewise.
14628 * postreload.c: Likewise.
14629 * predict.c: Likewise.
14630 * print-rtl.c: Likewise.
14631 * print-tree.c: Likewise.
14632 * profile.c: Likewise.
14633 * real.c: Likewise.
14634 * realmpfr.c: Likewise.
14635 * recog.c: Likewise.
14637 * reg-stack.c: Likewise.
14638 * regcprop.c: Likewise.
14639 * reginfo.c: Likewise.
14640 * regrename.c: Likewise.
14641 * regstat.c: Likewise.
14642 * reload.c: Likewise.
14643 * reload1.c: Likewise.
14644 * reorg.c: Likewise.
14645 * resource.c: Likewise.
14646 * rtl-chkp.c: Likewise.
14647 * rtlanal.c: Likewise.
14648 * rtlhooks.c: Likewise.
14649 * sanopt.c: Likewise.
14650 * sched-deps.c: Likewise.
14651 * sched-ebb.c: Likewise.
14652 * sched-rgn.c: Likewise.
14653 * sched-vis.c: Likewise.
14654 * sdbout.c: Likewise.
14655 * sel-sched-dump.c: Likewise.
14656 * sel-sched-ir.c: Likewise.
14657 * sel-sched.c: Likewise.
14658 * sese.c: Likewise.
14659 * shrink-wrap.c: Likewise.
14660 * simplify-rtx.c: Likewise.
14661 * stack-ptr-mod.c: Likewise.
14662 * stmt.c: Likewise.
14663 * stor-layout.c: Likewise.
14664 * store-motion.c: Likewise.
14665 * stringpool.c: Likewise.
14666 * symtab.c: Likewise.
14667 * target-globals.c: Likewise.
14668 * targhooks.c: Likewise.
14669 * toplev.c: Likewise.
14670 * tracer.c: Likewise.
14671 * trans-mem.c: Likewise.
14672 * tree-affine.c: Likewise.
14673 * tree-browser.c: Likewise.
14674 * tree-call-cdce.c: Likewise.
14675 * tree-cfg.c: Likewise.
14676 * tree-cfgcleanup.c: Likewise.
14677 * tree-chkp-opt.c: Likewise.
14678 * tree-chkp.c: Likewise.
14679 * tree-chrec.c: Likewise.
14680 * tree-complex.c: Likewise.
14681 * tree-data-ref.c: Likewise.
14682 * tree-dfa.c: Likewise.
14683 * tree-diagnostic.c: Likewise.
14684 * tree-dump.c: Likewise.
14685 * tree-eh.c: Likewise.
14686 * tree-emutls.c: Likewise.
14687 * tree-if-conv.c: Likewise.
14688 * tree-inline.c: Likewise.
14689 * tree-into-ssa.c: Likewise.
14690 * tree-iterator.c: Likewise.
14691 * tree-loop-distribution.c: Likewise.
14692 * tree-nested.c: Likewise.
14693 * tree-nrv.c: Likewise.
14694 * tree-object-size.c: Likewise.
14695 * tree-outof-ssa.c: Likewise.
14696 * tree-parloops.c: Likewise.
14697 * tree-phinodes.c: Likewise.
14698 * tree-predcom.c: Likewise.
14699 * tree-pretty-print.c: Likewise.
14700 * tree-profile.c: Likewise.
14701 * tree-scalar-evolution.c: Likewise.
14702 * tree-sra.c: Likewise.
14703 * tree-ssa-address.c: Likewise.
14704 * tree-ssa-alias.c: Likewise.
14705 * tree-ssa-ccp.c: Likewise.
14706 * tree-ssa-coalesce.c: Likewise.
14707 * tree-ssa-copy.c: Likewise.
14708 * tree-ssa-copyrename.c: Likewise.
14709 * tree-ssa-dce.c: Likewise.
14710 * tree-ssa-dom.c: Likewise.
14711 * tree-ssa-dse.c: Likewise.
14712 * tree-ssa-forwprop.c: Likewise.
14713 * tree-ssa-ifcombine.c: Likewise.
14714 * tree-ssa-live.c: Likewise.
14715 * tree-ssa-loop-ch.c: Likewise.
14716 * tree-ssa-loop-im.c: Likewise.
14717 * tree-ssa-loop-ivcanon.c: Likewise.
14718 * tree-ssa-loop-ivopts.c: Likewise.
14719 * tree-ssa-loop-manip.c: Likewise.
14720 * tree-ssa-loop-niter.c: Likewise.
14721 * tree-ssa-loop-prefetch.c: Likewise.
14722 * tree-ssa-loop-unswitch.c: Likewise.
14723 * tree-ssa-loop.c: Likewise.
14724 * tree-ssa-math-opts.c: Likewise.
14725 * tree-ssa-operands.c: Likewise.
14726 * tree-ssa-phiopt.c: Likewise.
14727 * tree-ssa-phiprop.c: Likewise.
14728 * tree-ssa-pre.c: Likewise.
14729 * tree-ssa-propagate.c: Likewise.
14730 * tree-ssa-reassoc.c: Likewise.
14731 * tree-ssa-sccvn.c: Likewise.
14732 * tree-ssa-scopedtables.c: Likewise.
14733 * tree-ssa-sink.c: Likewise.
14734 * tree-ssa-strlen.c: Likewise.
14735 * tree-ssa-structalias.c: Likewise.
14736 * tree-ssa-tail-merge.c: Likewise.
14737 * tree-ssa-ter.c: Likewise.
14738 * tree-ssa-threadedge.c: Likewise.
14739 * tree-ssa-threadupdate.c: Likewise.
14740 * tree-ssa-uncprop.c: Likewise.
14741 * tree-ssa-uninit.c: Likewise.
14742 * tree-ssa.c: Likewise.
14743 * tree-ssanames.c: Likewise.
14744 * tree-stdarg.c: Likewise.
14745 * tree-streamer-in.c: Likewise.
14746 * tree-streamer-out.c: Likewise.
14747 * tree-streamer.c: Likewise.
14748 * tree-switch-conversion.c: Likewise.
14749 * tree-tailcall.c: Likewise.
14750 * tree-vect-data-refs.c: Likewise.
14751 * tree-vect-generic.c: Likewise.
14752 * tree-vect-loop-manip.c: Likewise.
14753 * tree-vect-loop.c: Likewise.
14754 * tree-vect-patterns.c: Likewise.
14755 * tree-vect-slp.c: Likewise.
14756 * tree-vect-stmts.c: Likewise.
14757 * tree-vectorizer.c: Likewise.
14758 * tree-vrp.c: Likewise.
14759 * tree.c: Likewise.
14760 * tsan.c: Likewise.
14761 * ubsan.c: Likewise.
14762 * valtrack.c: Likewise.
14763 * value-prof.c: Likewise.
14764 * var-tracking.c: Likewise.
14765 * varasm.c: Likewise.
14766 * varpool.c: Likewise.
14767 * vmsdbgout.c: Likewise.
14768 * vtable-verify.c: Likewise.
14770 * wide-int.cc: Likewise.
14771 * xcoffout.c: Likewise.
14772 * config/aarch64/aarch64-builtins.c: Likewise.
14773 * config/aarch64/aarch64.c: Likewise.
14774 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14775 * config/alpha/alpha.c: Likewise.
14776 * config/arc/arc.c: Likewise.
14777 * config/arm/aarch-common.c: Likewise.
14778 * config/arm/arm-builtins.c: Likewise.
14779 * config/arm/arm-c.c: Likewise.
14780 * config/arm/arm.c: Likewise.
14781 * config/avr/avr-c.c: Likewise.
14782 * config/avr/avr-log.c: Likewise.
14783 * config/avr/avr.c: Likewise.
14784 * config/bfin/bfin.c: Likewise.
14785 * config/c6x/c6x.c: Likewise.
14786 * config/cr16/cr16.c: Likewise.
14787 * config/cris/cris.c: Likewise.
14788 * config/darwin-c.c: Likewise.
14789 * config/darwin.c: Likewise.
14790 * config/epiphany/epiphany.c: Likewise.
14791 * config/epiphany/mode-switch-use.c: Likewise.
14792 * config/epiphany/resolve-sw-modes.c: Likewise.
14793 * config/fr30/fr30.c: Likewise.
14794 * config/frv/frv.c: Likewise.
14795 * config/ft32/ft32.c: Likewise.
14796 * config/h8300/h8300.c: Likewise.
14797 * config/i386/i386-c.c: Likewise.
14798 * config/i386/i386.c: Likewise.
14799 * config/i386/msformat-c.c: Likewise.
14800 * config/i386/winnt-cxx.c: Likewise.
14801 * config/i386/winnt-stubs.c: Likewise.
14802 * config/i386/winnt.c: Likewise.
14803 * config/ia64/ia64-c.c: Likewise.
14804 * config/ia64/ia64.c: Likewise.
14805 * config/iq2000/iq2000.c: Likewise.
14806 * config/lm32/lm32.c: Likewise.
14807 * config/m32c/m32c-pragma.c: Likewise.
14808 * config/m32c/m32c.c: Likewise.
14809 * config/m32r/m32r.c: Likewise.
14810 * config/m68k/m68k.c: Likewise.
14811 * config/mcore/mcore.c: Likewise.
14812 * config/mep/mep-pragma.c: Likewise.
14813 * config/mep/mep.c: Likewise.
14814 * config/microblaze/microblaze-c.c: Likewise.
14815 * config/microblaze/microblaze.c: Likewise.
14816 * config/mips/mips.c: Likewise.
14817 * config/mmix/mmix.c: Likewise.
14818 * config/mn10300/mn10300.c: Likewise.
14819 * config/moxie/moxie.c: Likewise.
14820 * config/msp430/msp430-c.c: Likewise.
14821 * config/msp430/msp430.c: Likewise.
14822 * config/nds32/nds32-cost.c: Likewise.
14823 * config/nds32/nds32-fp-as-gp.c: Likewise.
14824 * config/nds32/nds32-intrinsic.c: Likewise.
14825 * config/nds32/nds32-isr.c: Likewise.
14826 * config/nds32/nds32-md-auxiliary.c: Likewise.
14827 * config/nds32/nds32-memory-manipulation.c: Likewise.
14828 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14829 * config/nds32/nds32-predicates.c: Likewise.
14830 * config/nds32/nds32.c: Likewise.
14831 * config/nios2/nios2.c: Likewise.
14832 * config/nvptx/nvptx.c: Likewise.
14833 * config/pa/pa.c: Likewise.
14834 * config/pdp11/pdp11.c: Likewise.
14835 * config/rl78/rl78-c.c: Likewise.
14836 * config/rl78/rl78.c: Likewise.
14837 * config/rs6000/rs6000-c.c: Likewise.
14838 * config/rs6000/rs6000.c: Likewise.
14839 * config/rx/rx.c: Likewise.
14840 * config/s390/s390-c.c: Likewise.
14841 * config/s390/s390.c: Likewise.
14842 * config/sh/sh-c.c: Likewise.
14843 * config/sh/sh-mem.cc: Likewise.
14844 * config/sh/sh.c: Likewise.
14845 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14846 * config/sh/sh_treg_combine.cc: Likewise.
14847 * config/sol2-c.c: Likewise.
14848 * config/sol2-cxx.c: Likewise.
14849 * config/sol2-stubs.c: Likewise.
14850 * config/sol2.c: Likewise.
14851 * config/sparc/sparc-c.c: Likewise.
14852 * config/sparc/sparc.c: Likewise.
14853 * config/spu/spu-c.c: Likewise.
14854 * config/spu/spu.c: Likewise.
14855 * config/stormy16/stormy16.c: Likewise.
14856 * config/tilegx/mul-tables.c: Likewise.
14857 * config/tilegx/tilegx-c.c: Likewise.
14858 * config/tilegx/tilegx.c: Likewise.
14859 * config/tilepro/mul-tables.c: Likewise.
14860 * config/tilepro/tilepro-c.c: Likewise.
14861 * config/tilepro/tilepro.c: Likewise.
14862 * config/v850/v850-c.c: Likewise.
14863 * config/v850/v850.c: Likewise.
14864 * config/vax/vax.c: Likewise.
14865 * config/visium/visium.c: Likewise.
14866 * config/vms/vms-c.c: Likewise.
14867 * config/vms/vms.c: Likewise.
14868 * config/vxworks.c: Likewise.
14869 * config/xtensa/xtensa.c: Likewise.
14871 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
14873 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
14874 Remove operand constraints. Change operand 2 predicate to
14875 nonmemory operand. Limit const_int values to mode bitsize. Only
14876 allow const_int values less than 32 when optimizing for size.
14877 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
14878 Remove operand constraints.
14879 (*bt<mode>): Use SImode for const_int values less than 32.
14880 (regmode): Remove mode attribute.
14882 2015-07-07 Anatoly Sokolov <aesok@post.ru>
14884 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14885 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
14886 moxie_legitimate_address_p): New functions.
14887 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
14889 2015-07-07 Tom de Vries <tom@codesourcery.com>
14891 PR tree-optimization/66642
14892 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
14893 header comment. Rename split_edge variable to edge_at_split. Split
14894 exit edge to create new loop exit bb. Insert loop exit phis in new
14897 2015-07-07 Tom de Vries <tom@codesourcery.com>
14899 * tree-cfg.c (get_virtual_phi): New function.
14900 * tree-cfg.h (get_virtual_phi): Declare.
14901 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
14902 (rewrite_virtuals_into_loop_closed_ssa): New function.
14903 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
14905 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
14906 (transform_to_exit_first_loop_alt): Use
14907 rewrite_virtuals_into_loop_closed_ssa.
14909 2015-07-07 Richard Biener <rguenther@suse.de>
14911 * fold-const.c (fold_binary_loc): Move
14912 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
14913 * match.pd: ... here.
14914 Add (X * C1) % C2 -> 0 simplification pattern derived from
14917 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
14920 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
14921 change for target/65249.
14923 2015-07-07 Paulo Matos <pmatos@broadcom.com>
14925 * symtab.c (address_matters_1): Fix typo in comment above.
14926 (can_increase_alignment_p): Likewise.
14928 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14930 * function.c (free_after_compilation): Clear PROP_cfg in
14931 f->curr_properties.
14933 2015-07-07 Richard Biener <rguenther@suse.de>
14935 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
14937 (add_control_edge): Remove excessive vertical space in dumping.
14938 (process_ssa_edge_worklist): Simulate at most one statement and
14939 return whether we did. Do not simulate PHIs if they are in a
14940 BB not yet simulated.
14941 (ssa_propagate): Adjust to always drain the BB worklist whenever
14942 a BB is available there, likewise the VARYING edges list before
14943 the interesting edge list.
14945 2015-07-07 Christian Bruel <christian.bruel@st.com>
14948 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
14950 2015-07-07 Richard Biener <rguenther@suse.de>
14952 PR middle-end/66739
14953 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
14956 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
14958 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
14959 modes for operands 0 and 3. Use SImode for operands 2 and 3.
14960 Copy operand 0 to a temporary if !ext_register_operand. Remove
14961 ancient extract_bit_field workaround.
14962 (insv<mode>_1): Rename from mov<mode>_insv_1.
14963 (*insvqi): Rename from *movqi_insv_2.
14964 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
14965 for renamed insvsi_1.
14966 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
14968 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
14970 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
14971 call to nvptx_reorg_subreg.
14973 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
14975 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
14976 * graphite-dependencies.c, graphite-interchange.c,
14977 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
14978 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
14981 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
14983 * match.pd: Remove element_mode inside HONOR_*.
14984 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
14985 (~X | X -> -1, ~X ^ X -> -1): Merge.
14986 * tree.c (build_each_one_cst): New function.
14987 * tree.h (build_each_one_cst): Likewise.
14989 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
14991 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14994 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
14996 * config.gcc <mips*-*-*>: Add fused-madd.opt.
14997 * config/mips/mips.opt (mfused-madd): Remove.
14998 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
14999 * config/mips/mips.h (TARGET_MIPS8000): New.
15000 (ISA_HAS_FP_MADD4_MSUB4): Remove.
15001 (ISA_HAS_FP_MADDF_MSUBF): Remove.
15002 (ISA_HAS_FP_MADD3_MSUB3): Remove.
15003 (ISA_HAS_NMADD4_NMSUB4): Remove.
15004 (ISA_HAS_NMADD3_NMSUB3): Remove.
15005 (ISA_HAS_FUSED_MADD4): New.
15006 (ISA_HAS_UNFUSED_MADD4): New.
15007 (ISA_HAS_FUSED_MADDF): New.
15008 (ISA_HAS_FUSED_MADD3): New.
15009 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
15010 (*fma<mode>4_madd3) New.
15011 (*fma<mode>4_madd4) New.
15012 (*fma<mode>4_maddf) New.
15014 (*fms<mode>4_msub3) New.
15015 (*fms<mode>4_msub4) New.
15017 (*fnma<mode>4_nmadd3) New.
15018 (*fnma<mode>4_nmadd4) New.
15020 (*fnms<mode>4_nmsub3) New.
15021 (*fnms<mode>4_nmsub4) New.
15022 (*madd4<mode>) Modify to be unfused only.
15023 (*msub4<mode>) Modify to be unfused only.
15024 (*nmadd4<mode>) Modify to be unfused only.
15025 (*nmsub4<mode>) Modify to be unfused only.
15026 (*madd3<mode>) Remove.
15027 (*msub3<mode>) Remove.
15028 (*nmadd3<mode>) Remove.
15029 (*nmsub3<mode>) Remove.
15030 (*nmadd3<mode>_fastmath) Remove.
15031 (*nmsub3<mode>_fastmath) Remove.
15032 (*nmadd4<mode>_fastmath) Update condition.
15033 (*nmsub4<mode>_fastmath) Update condition.
15035 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
15038 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
15039 alignment attribute, exploring one level down for records and arrays.
15041 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
15043 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
15044 modes for operands 0 and 1. Use SImode for operands 2 and 3.
15045 Copy operand 1 to a temporary if !ext_register_operand. Remove
15046 ancient extract_bit_field workaround.
15047 (*extv<mode>): Rename from *mov<mode>_extv_1.
15048 (*extvqi): Rename from *movqi_extv_1.
15049 (extzv<mode>): Rename from extzv. Use SWI248 modes for
15050 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
15051 to a temporary if !ext_register_operand. Remove ancient
15052 extract_bit_field workaround.
15053 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
15054 (*extzvqi): Rename from *movqi_extzv_2.
15055 (*testqi_ext_3): Remove modes from const_int_operand predicated
15056 operands. Add "n" constraint.
15057 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
15058 operand. Add "J" constraint.
15059 (*btsq, *btrq, *btcq peephole2s): Remove mode from
15060 const_0_to_63 predicated operand.
15061 (regmode): New insn attribute.
15062 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
15063 to nonmemory_operand. Use regmode insn attribute.
15064 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
15065 (*jcc_bt<mode>_mask): Remove mode from operand 3.
15066 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
15067 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
15068 operands. Use "N" constraint instead of "n".
15070 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
15072 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
15074 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
15077 * config/i386/i386.c (iamcu_cost): New.
15078 (m_IAMCU): Likewise.
15079 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
15080 (processor_target_table): Add an entry for "iamcu".
15081 (processor_alias_table): Likewise.
15082 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
15083 (ix86_adjust_cost): Likewise.
15084 (ia32_multipass_dfa_lookahead): Likewise.
15085 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
15086 * config/i386/x86-tune.def: Updated for m_IAMCU.
15088 2015-07-06 Richard Biener <rguenther@suse.de>
15090 PR tree-optimization/66772
15091 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
15092 values are available in the PHI node BB when there are
15093 still unexecutable edges.
15095 2015-07-06 Richard Biener <rguenther@suse.de>
15097 PR tree-optimization/66767
15098 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
15099 Make sure to build the alignment test on a SSA name without
15100 final alignment info valid only if the alignment test
15103 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
15106 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
15107 loop start when inserting LSETUP.
15109 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
15112 * config/i386/i386.c (ix86_option_override_internal): Allow
15113 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
15115 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15117 * read-md.c (decimal_string): Rename to ...
15118 (md_decimal_string): ... this.
15119 (handle_enum): Reflect this.
15121 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15124 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
15126 2015-07-06 Richard Biener <rguenther@suse.de>
15128 PR middle-end/66759
15129 * match.pd: Add missing constraint of y to REAL_CST in
15130 REAL_CST - x CMP y to y - CST CMP x simplification.
15132 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
15134 PR tree-optimization/66757
15135 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
15137 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
15138 Sandra Loosemore <sandra@codesourcery.com>
15140 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
15141 Delete extern declaration.
15142 (gprel_constant_p): Add extern declaration.
15143 * config/nios2/constraints.md ("S"): Use gprel_constant_p
15144 instead of nios2_symbol_ref_in_small_data_p.
15145 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
15146 (nios2_symbol_ref_in_small_data_p): Make static.
15147 (gprel_constant_p): Make non-static.
15149 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
15151 * doc/fragments.texi (Target Fragment): Convert debian.org
15153 * doc/install.texi (Configuration): Ditto.
15155 2015-07-05 Jakub Jelinek <jakub@redhat.com>
15157 PR tree-optimization/66718
15158 * tree-vect-stmts.c (vectorizable_call): Replace uses of
15159 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
15161 PR tree-optimization/66718
15162 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
15163 vectorizable_load, vectorizable_condition): Move vectype,
15164 nunits, ncopies computation after checking what kind of statement
15167 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15169 * target-insns.def (extv, extzv, insv): New targetm instruction
15171 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
15173 * recog.c (simplify_while_replacing): Likewise.
15175 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15177 * target-insns.def (doloop_begin, doloop_end): New targetm
15178 instruction patterns.
15179 * loop-init.c: Include target.h.
15180 (pass_loop2::gate): Use the new targetm patterns instead of
15181 HAVE_*/gen_* interface.
15182 (pass_rtl_doloop::gate): Likewise.
15183 (pass_rtl_doloop::execute): Remove preprocessor condition.
15184 * hw-doloop.c: Build unconditionally.
15185 * loop-doloop.c: Likewise.
15186 (doloop_optimize): Use the new targetm patterns instead of
15187 HAVE_*/gen_* interface.
15188 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
15189 * modulo-sched.c (doloop_register_get): Likewise.
15191 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15193 * target-insns.def (clear_cache): New targetm instruction pattern.
15194 * builtins.c (expand_builtin___clear_cache): Use it instead of
15195 HAVE_*/gen_* interface.
15197 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15199 * target-insns.def (allocate_stack, check_stack, probe_stack)
15200 (probe_stack_address, split_stack_prologue, split_stack_space_check):
15201 New targetm instruction patterns.
15202 * explow.c (allocate_dynamic_stack_space): Use them instead of
15203 HAVE_*/gen_* interface.
15204 (emit_stack_probe): Likewise.
15205 (probe_stack_range): Likewise.
15206 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15208 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15210 * target-insns.def (stack_protect_set, stack_protect_test): New
15211 targetm instruction patterns.
15212 * cfgexpand.c (stack_protect_prologue): Use them instead of
15213 HAVE_*/gen_* interface.
15214 * function.c (stack_protect_epilogue): Likewise.
15216 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15218 * expr.h (gen_move_insn_uncast): Delete.
15219 * expr.c (gen_move_insn_uncast): Delete.
15221 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15223 * target-insns.def (restore_stack_block, restore_stack_function)
15224 (restore_stack_nonlocal, save_stack_block, save_stack_function)
15225 (save_stack_nonlocal): New targetm instruction patterns.
15226 * builtins.c (expand_builtin_apply): Use them instead of
15227 HAVE_*/gen_* interface.
15228 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
15230 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15232 * target-insns.def (trap): New targetm instruction pattern.
15233 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
15235 * explow.c (allocate_dynamic_stack_space): Likewise.
15236 * ifcvt.c (find_if_header): Likewise.
15238 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15240 * target-insns.def (prefetch): New targetm instruction pattern.
15241 * tree-ssa-loop-prefetch.c: Include targeth.
15242 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
15243 of HAVE_*/gen_* interface.
15244 * builtins.c (expand_builtin_prefetch): Likewise.
15245 * toplev.c (process_options): Likewise.
15247 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15249 * target-insns.def (untyped_call, untyped_return): New targetm
15250 instruction patterns.
15251 * builtins.c (expand_builtin_apply): Use them instead of
15252 HAVE_*/gen_* interface.
15253 (result_vector): Define unconditionally.
15255 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15257 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
15258 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
15259 (nonlocal_goto_receiver): New targetm instruction patterns.
15260 * builtins.c (expand_builtin_setjmp_setup): Use them instead
15261 of HAVE_*/gen_* interface.
15262 (expand_builtin_setjmp_receiver): Likewise.
15263 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
15264 * except.c (expand_dw2_landing_pad_for_region): Likewise.
15266 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15268 * target.def: Add code_for_* hooks.
15269 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
15270 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
15271 * target-insns.def (casesi, tablejump): New targetm instruction
15273 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
15274 (do_tablejump): Likewise.
15275 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
15276 (expand_sjlj_dispatch_table): Likewise.
15277 * targhooks.c (default_case_values_threshold): Likewise.
15279 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
15281 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
15282 Use rtx_insn * instead of rtx.
15283 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
15284 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
15285 (nios2_call_tls_get_addr): Likewise.
15286 (nios2_emit_expensive_div): Likewise.
15287 (nios2_emit_move_sequence): Change return type to bool.
15288 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
15289 Change return type to bool.
15291 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
15294 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
15296 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
15299 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
15300 of register_operand. Remove constraint.
15302 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
15304 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
15305 the first argument.
15307 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
15309 * attribs.c (decl_attributes): Guard inform with the return value
15310 of the preceding warning.
15312 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
15314 * doc/invoke.texi (moverride): Move to correct section.
15316 2015-07-03 Richard Biener <rguenther@suse.de>
15318 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
15320 (dt_operand::gen_gimple_expr): After valueizing operands
15321 re-canonicalize operand order for commutative tree codes.
15323 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
15326 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
15328 (__crc32w): Likewise.
15329 (__crc32d): Likewise.
15330 (__rdpmc): Likewise.
15331 (__rdtscp): Likewise.
15332 (_rdpmc): Likewise.
15333 (_rdtscp): Likewise.
15334 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
15337 2015-07-03 Richard Biener <rguenther@suse.de>
15339 * fold-const.c (fold_mathfn_compare): Remove.
15340 (fold_inf_compare): Likewise.
15341 (fold_comparison): Move floating point comparison simplifications...
15342 * match.pd: ... to patterns here. Introduce simple_comparisons
15343 operator list and use it for patterns formerly in fold_comparison.
15345 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
15347 PR tree-optimization/66119
15348 * toplev.c (process_options): Don't set up default values for
15349 the sra_max_scalarization_size_{speed,size} parameters.
15350 * tree-sra (analyze_all_variable_accesses): If no values
15351 have been set for the sra_max_scalarization_size_{speed,size}
15352 parameters, call get_move_ratio to get target defaults.
15354 2015-07-03 Richard Biener <rguenther@suse.de>
15356 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
15357 * match.pd: ... here.
15359 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
15362 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
15363 is not actually the default on FreeBSD.
15365 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15367 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
15369 (CMPGE_8HI): Likewise.
15370 (CMPGE_4SI): Likewise.
15371 (CMPGE_2DI): Likewise.
15372 (CMPGE_U16QI): Likewise.
15373 (CMPGE_U8HI): Likewise.
15374 (CMPGE_U4SI): Likewise.
15375 (CMPGE_U2DI): Likewise.
15376 (CMPLE_16QI): Likewise.
15377 (CMPLE_8HI): Likewise.
15378 (CMPLE_4SI): Likewise.
15379 (CMPLE_2DI): Likewise.
15380 (CMPLE_U16QI): Likewise.
15381 (CMPLE_U8HI): Likewise.
15382 (CMPLE_U4SI): Likewise.
15383 (CMPLE_U2DI): Likewise.
15384 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15385 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
15386 ALTIVEC_BUILTIN_VEC_CMPLE.
15387 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
15388 floating-point vector modes.
15389 (vector_nlt<mode>): New define_expand.
15390 (vector_nltu<mode>): Likewise.
15391 (vector_ngt<mode>): Likewise.
15392 (vector_ngtu<mode>): Likewise.
15394 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
15396 PR rtl-optimization/66706
15397 * combine.c (make_compound_operation): If an AND of SUBREG of
15398 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
15400 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
15402 * tree-pass.h (make_pass_ch_vect): New.
15403 * passes.def: Add pass_ch_vect just before pass_if_conversion.
15405 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
15406 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
15407 make_pass_ch_vect): New.
15408 (pass_ch): Extend ch_base.
15410 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
15411 (ch_base::copy_headers): ...here.
15413 2015-07-02 Richard Biener <rguenther@suse.de>
15415 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
15416 * fold-const.c (get_pointer_modulus_and_residue): Remove.
15417 (fold_binary_loc): Implement (T)ptr & CST in terms of
15418 get_pointer_alignment_1.
15419 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
15420 Make sure to build the alignment test on a SSA name without
15421 final alignment info valid only after the prologue.
15423 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
15425 * config/cris/cris.md ("epilogue"): Remove condition.
15426 ("prologue"): Ditto.
15428 2015-07-02 Richard Biener <rguenther@suse.de>
15430 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
15431 parameter to record a condition that is false.
15432 (record_conditions): When recording an extra NE_EXPR that is
15433 true also record a EQ_EXPR that is false.
15435 2015-07-02 Bin Cheng <bin.cheng@arm.com>
15437 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
15438 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
15439 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
15440 (set_iv, find_interesting_uses_address, add_candidate_1): New
15441 argument to alloc_iv.
15442 (find_interesting_uses_op, find_interesting_uses_cond): Don't
15443 duplicate struct iv.
15444 (free_loop_data): Don't free struct iv explicitly.
15445 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
15447 2015-07-01 DJ Delorie <dj@redhat.com>
15449 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
15451 (SUPPORTS_DISCRIMINATOR): Define.
15453 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
15456 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
15457 there are no CALLs in the same pattern.
15459 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
15461 PR rtl-optimization/61047
15462 * rtlanal.c (get_initial_register_offset): New function.
15463 (rtx_addr_can_trap_p_1): Check offsets of stack references.
15465 2015-07-01 Richard Biener <rguenther@suse.de>
15467 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
15468 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
15469 ~X CMP C -> X CMP' ~C to ...
15470 * match.pd: ... patterns here.
15472 2015-07-01 Nick Clifton <nickc@redhat.com>
15474 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
15475 a 16-bit value into a 20-bit memory slot.
15477 2015-07-01 Jiong Wang <jiong.wang@arm.com>
15479 * doc/sourcebuild.texi (AArch64-specific attributes): Document
15480 "aarch64_tiny", "aarch64_small", "aarch64_large",
15481 "aarch64_little_endian", "aarch64_big_endian".
15483 2015-07-01 Jiong Wang <jiong.wang@arm.com>
15485 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
15486 Document "aarch64_small_fpic".
15488 2015-07-01 Jiong Wang <jiong.wang@arm.com>
15490 * configure.ac: Add check for aarch64 assembler -fpic relocation
15492 * configure: Regenerate.
15493 * config.in: Regenerate.
15494 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
15495 to -fPIC if not support of -fpic relocation modifier in assembler.
15497 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
15500 * rtl.c (classify_insn): Handle returns in PARALLELs.
15502 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
15504 PR middle-end/66633
15505 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
15506 to true if the function is nested and if not optimizing.
15507 (convert_local_omp_clauses): Initialize need_frame to true if the
15508 function contains nested functions and if not optimizing.
15510 2015-07-01 Richard Biener <rguenther@suse.de>
15512 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
15513 (X & Y) ^ Y -> ~X & Y transforms to ...
15514 * match.pd: ... here.
15516 2015-07-01 Richard Biener <rguenther@suse.de>
15518 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
15519 of converts to avoid uninteresting noise from the conversion
15520 simplifying patterns.
15522 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
15524 * config/c6x/c6x.c (try_rename_operands): Do not depend on
15525 gcc_assert evaluating its argument for side-effect.
15527 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
15530 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
15533 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
15535 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
15536 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
15537 (hash_scc): Add this_ref_p and ref_p parameters and pass them
15538 to the inner DFS walk.
15540 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15542 * target-insns.def (jump): New targetm instruction pattern.
15543 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
15544 instead of gen_jump.
15545 (fix_up_crossing_landing_pad): Likewise.
15546 (add_labels_and_missing_jumps): Likewise.
15547 (fix_crossing_conditional_branches): Likewise.
15548 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
15549 (force_nonfallthru_and_redirect): Likewise.
15550 * cse.c (cse_insn): Likewise.
15551 * expmed.c (expand_divmod): Likewise.
15552 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
15553 * haifa-sched.c (init_before_recovery): Likewise.
15554 (sched_create_recovery_edges): Likewise.
15555 * ifcvt.c (find_cond_trap): Likewise.
15556 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
15557 (expand_float, expand_fix): Likewise.
15558 * stmt.c (emit_jump): Likewise.
15560 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15562 * defaults.h (HAVE_load_multiple, gen_load_multiple)
15563 (HAVE_store_multiple, gen_store_multiple): Delete.
15564 * target-insns.def (load_multiple, store_multiple): New targetm
15565 instruction patterns.
15566 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
15567 of HAVE_*/gen_* interface.
15569 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15571 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
15572 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
15573 (gen_mem_signal_fence): Delete.
15574 * target-insns.def (mem_signal_fence, mem_thread_fence)
15575 (memory_barrier): New targetm instruction patterns.
15576 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
15578 (expand_mem_signal_fence): Likewise.
15580 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15582 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
15583 * target-insns.def (epilogue, prologue, sibcall_prologue): New
15584 targetm instruction patterns.
15585 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
15587 * calls.c (expand_call): Likewise.
15588 * cfgrtl.c (cfg_layout_finalize): Likewise.
15589 * df-scan.c (df_get_entry_block_def_set): Likewise.
15590 (df_get_exit_block_use_set): Likewise.
15591 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
15592 * final.c (final_start_function): Likewise.
15593 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15594 (reposition_prologue_and_epilogue_notes): Likewise.
15595 * reorg.c (find_end_label): Likewise.
15596 * toplev.c (process_options): Likewise.
15598 2015-06-30 David Malcolm <dmalcolm@redhat.com>
15600 * typed-splay-tree.h: New file.
15602 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
15605 * lra-int.h (lra_substitute_pseudo): Add a parameter.
15606 (lra_substitute_pseudo_within_insn): Ditto.
15607 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
15609 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
15610 to lra_substitute_pseudo.
15611 * lra-lives.c (process_bb_lives): Add an argument to
15612 lra_substitute_pseudo_within_insn call.
15613 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
15614 argument to lra_substitute_pseudo and
15615 lra_substitute_pseudo_within_insn calls.
15616 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
15618 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
15620 * configure: Regenerated.
15622 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
15624 * config.gcc: Support i[34567]86-*-elfiamcu target.
15625 * config/i386/iamcu.h: New.
15626 * config/i386/i386.opt: Add -miamcu.
15627 * doc/invoke.texi: Document -miamcu.
15628 * common/config/i386/i386-common.c (ix86_handle_option): Turn
15629 off x87/MMX/SSE/AVX codegen for -miamcu.
15630 * config/i386/i386-c.c (ix86_target_macros_internal): Define
15631 __iamcu/__iamcu__ for -miamcu.
15632 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
15633 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
15634 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
15635 * config/i386/i386.c (ix86_option_override_internal): Ignore and
15636 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
15637 MCU by default. Default long double to 64-bit for Intel MCU.
15638 Turn on -freg-struct-return for Intel MCU. Issue an error when
15639 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
15641 (function_arg_advance_32): Pass value whose size is no larger
15642 than 8 bytes in registers for Intel MCU.
15643 (function_arg_32): Likewise.
15644 (ix86_return_in_memory): Return value whose size is no larger
15645 than 8 bytes in registers for Intel MCU.
15646 (iamcu_alignment): New function.
15647 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
15649 (ix86_local_alignment): Don't increase alignment for Intel MCU.
15650 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
15653 2015-06-30 Marek Polacek <polacek@redhat.com>
15655 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
15656 both operands of the resulting expression.
15658 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
15659 the final expression with the operand's type and then convert
15660 it to the type of the expression.
15662 2015-06-30 Richard Biener <rguenther@suse.de>
15664 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
15665 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
15666 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
15667 * match.pd: ... to patterns here.
15669 2015-06-30 Richard Biener <rguenther@suse.de>
15671 PR tree-optimization/66704
15672 * tree-vect-data-refs.c (vect_setup_realignment): Use
15673 make_ssa_name for non-SSA name source.
15675 2015-06-30 Jakub Jelinek <jakub@redhat.com>
15677 PR middle-end/66702
15678 * omp-low.c (simd_clone_adjust): Handle addressable linear
15679 or uniform parameters or non-gimple type uniform parameters.
15681 2015-06-30 Richard Biener <rguenther@suse.de>
15683 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
15684 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
15685 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
15686 * match.pd: ... here.
15687 Add a few cases of A - B -> A + (-B) when B "easily" negates.
15688 Move (x & y) | x -> x and friends before
15689 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
15691 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
15693 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
15694 -mfix-ut699 is not specified.
15695 (leon3_load): Rename into...
15696 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
15699 2015-06-30 Marek Polacek <polacek@redhat.com>
15701 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
15702 * match.pd: ... here.
15704 2015-06-30 Richard Biener <rguenther@suse.de>
15706 * target-insns.def (canonicalize_funcptr_for_compare): Add.
15707 * fold-const.c (build_range_check): Replace uses of
15708 HAVE_canonicalize_funcptr_for_compare.
15709 (fold_widened_comparison): Likewise.
15710 (fold_sign_changed_comparison): Likewise.
15711 * dojump.c: Include "target.h".
15712 (do_compare_and_jump): Replace uses of
15713 HAVE_canonicalize_funcptr_for_compare and
15714 gen_canonicalize_funcptr_for_compare.
15715 * expr.c (do_store_flag): Likewise.
15717 2015-06-30 Tom de Vries <tom@codesourcery.com>
15719 PR tree-optimization/66652
15720 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
15721 max_loop_iterations to determine if nit + 1 overflows.
15723 2015-06-30 Richard Biener <rguenther@suse.de>
15725 * tree-vrp.c (register_edge_assert_for_2): Also register
15726 asserts for dominating conversion results.
15728 2015-06-30 Bin Cheng <bin.cheng@arm.com>
15730 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
15731 field in struct iv.
15733 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
15736 * configure.ac: Fix filds and fildq test for 64-bit.
15737 * configure: Regenerated.
15739 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
15741 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
15742 (nvptx_reorg): Here. Keep the non-subreg pieces.
15744 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
15746 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
15747 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
15749 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
15751 * config/i386/i386.md (*jcc_1): Use %! in asm template.
15752 Set attribute "length_nobnd" instead of "length".
15755 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
15757 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
15759 * config/nios2/nios2.c (nios2_delegitimize_address): Make
15760 assert less restrictive.
15762 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
15765 * cgraphunit.c (cgraph_node::finalize_function): Do not call
15766 do_warn_unused_parameter.
15767 * function.c (do_warn_unused_parameter): Move from here.
15768 * function.h (do_warn_unused_parameter): Do not declare.
15770 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15773 * gcc.target/arm/armv-sync-comp-swap.c: New.
15774 * gcc.target/arm/armv-sync-op-acquire.c: New.
15775 * gcc.target/arm/armv-sync-op-full.c: New.
15776 * gcc.target/arm/armv-sync-op-release.c: New.
15778 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15781 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
15782 initial acquire barrier with final barrier.
15784 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15787 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
15788 initial acquire barrier with final barrier.
15790 2015-06-29 Richard Henderson <rth@redhat.com>
15792 * config/i386/constraints.md (Bf): New constraint.
15793 * config/i386/i386-c.c (ix86_target_macros): Define
15794 __GCC_ASM_FLAG_OUTPUTS__.
15795 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
15797 * doc/extend.texi (FlagOutputOperands): Document them.
15799 2015-06-29 Jiong Wang <jiong.wang@arm.com>
15801 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
15802 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
15804 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
15805 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
15806 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
15807 (aarch64_symbol_context): Ditto.
15808 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
15809 and use new pattern name.
15810 (aarch64_expand_mov_immediate): Ditto.
15811 (aarch64_print_operand): Ditto.
15812 (aarch64_classify_tls_symbol): Ditto.
15814 2015-06-29 Marek Polacek <polacek@redhat.com>
15815 Marc Glisse <marc.glisse@inria.fr>
15817 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
15818 * match.pd: ... pattern here.
15820 2015-06-29 Tom de Vries <tom@codesourcery.com>
15822 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
15823 function structure.
15825 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15827 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
15828 feature description, split out the native option, add a link to
15829 the feature documentation, rearrange and slightly rewrite text.
15830 (Aarch64 options, -mcpu): Likewise.
15831 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
15832 +rdma implies Adv. SIMD.
15834 2015-06-29 Marek Polacek <polacek@redhat.com>
15837 * function.c (stack_protect_epilogue): Remove a cast to int.
15838 * doc/invoke.texi: Update -Wswitch-bool description.
15840 2015-06-29 Richard Biener <rguenther@suse.de>
15842 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
15843 * fold-const.c (fold_binary_loc): Move &A - &B simplification
15844 via ptr_difference_const ...
15845 * match.pd: ... here.
15846 When matching (X ^ Y) == Y also match with swapped operands.
15848 2015-06-29 Richard Biener <rguenther@suse.de>
15850 * lto-streamer.h (LTO_major_version): Bump to 5.
15852 2015-06-29 Richard Biener <rguenther@suse.de>
15854 PR tree-optimization/66677
15855 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
15856 STMT_VINFO_VEC_STMT clobbering less strict.
15858 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
15860 PR middle-end/64130
15861 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
15862 division, compute max and min when value ranges for dividend and
15863 divisor are available.
15865 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
15866 Sandra Loosemore <sandra@codesourcery.com>
15868 * regrename.h (regrename_do_replace): Change to return bool.
15869 * regrename.c (rename_chains): Check return value of
15870 regname_do_replace.
15871 (regrename_do_replace): Re-validate the modified insns and
15872 return bool status.
15873 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
15874 Update to match rename_chains changes.
15875 * config/c6x/c6x.c (try_rename_operands): Assert that
15876 regrename_do_replace returns true.
15878 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
15880 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
15881 operand 2 here. Use copy_addr_to_reg to copy non-index
15882 register operand 2 to a temporary.
15883 (<mode>_stx): Ditto for operand 1.
15884 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
15885 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
15886 (ix86_store_bounds): Ditto.
15888 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
15890 * print-tree.c (print_node) [TREE_VEC]: Print its length.
15892 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
15894 * gimple.c (gimple_call_set_fndecl): Remove.
15895 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
15896 build1_loc directly instead of build_fold_addr_expr_loc.
15898 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
15900 * hash-map.h (hash_map::traverse): Use the definition of the
15901 Key typedef rather than the typedef itself.
15903 2015-06-26 Martin Jambor <mjambor@suse.cz>
15906 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
15907 NULL instead of calling dump_enabled_p.
15909 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
15911 * config/aarch64/aarch64.opt: (override): New.
15912 * doc/invoke.texi (override): Document.
15913 * config/aarch64/aarch64.c (aarch64_flag_desc): New
15914 (aarch64_fusible_pairs): Likewise.
15915 (aarch64_tuning_flags): Likewise.
15916 (aarch64_tuning_override_function): Likewise.
15917 (aarch64_tuning_override_functions): Likewise.
15918 (aarch64_parse_one_option_token): Likewise.
15919 (aarch64_parse_boolean_options): Likewise.
15920 (aarch64_parse_fuse_string): Likewise.
15921 (aarch64_parse_tune_string): Likewise.
15922 (aarch64_parse_one_override_token): Likewise.
15923 (aarch64_parse_override_string): Likewise.
15924 (aarch64_override_options): Parse the -override string if it
15927 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
15929 * config/aarch64/aarch64-protos.h (tune_params): Remove
15930 const from members.
15931 (aarch64_tune_params): Remove const, change to no longer be
15933 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
15934 change to no longer be a pointer, initialize to generic_tunings.
15935 (aarch64_min_divisions_for_recip_mul): Change dereference of
15936 aarch64_tune_params to member access.
15937 (aarch64_reassociation_width): Likewise.
15938 (aarch64_rtx_mult_cost): Likewise.
15939 (aarch64_address_cost): Likewise.
15940 (aarch64_branch_cost): Likewise.
15941 (aarch64_rtx_costs): Likewise.
15942 (aarch64_register_move_cost): Likewise.
15943 (aarch64_memory_move_cost): Likewise.
15944 (aarch64_sched_issue_rate): Likewise.
15945 (aarch64_builtin_vectorization_cost): Likewise.
15946 (aarch64_override_options): Take a copy of the selected tuning
15947 struct in to aarch64_tune_params, rather than just setting
15948 a pointer, change dereferences of aarch64_tune_params to member
15950 (aarch64_override_options_after_change): Change dereferences of
15951 aarch64_tune_params to member access.
15952 (aarch64_macro_fusion_p): Likewise.
15953 (aarch_macro_fusion_pair_p): Likewise.
15954 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
15956 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
15958 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
15959 (aarch64_tune_flags): Likewise.
15960 (AARCH64_TUNE_FMA_STEERING): Likewise.
15961 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
15962 to AARCH64_FL_USE_FMA_STEERING_PASS.
15963 (cortex-a57.cortex-a53): Likewise.
15964 (cortex-a72): Use cortexa72_tunings.
15965 (cortex-a72.cortex-a53): Likewise.
15966 (exynos-m1): Likewise.
15967 * config/aarch64/aarch64-protos.h (tune_params): Add
15968 a field: extra_tuning_flags.
15969 * config/aarch64/aarch64-tuning-flags.def: New.
15970 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
15971 (aarch64_extra_tuning_flags): Likewise.
15972 (aarch64_tune_params): Declare here.
15973 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
15974 (cortexa53_tunings): Likewise.
15975 (cortexa57_tunings): Likewise.
15976 (thunderx_tunings): Likewise.
15977 (xgene1_tunings): Likewise.
15978 (cortexa72_tunings): New.
15979 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
15980 (gate): Check against aarch64_tune_params.
15981 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
15984 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
15986 * config/aarch64/aarch64-fusion-pairs.def: New.
15987 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
15988 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
15989 aarch64_fusion_pairs.
15990 (AARCH64_FUSE_MOV_MOVK): Likewise.
15991 (AARCH64_FUSE_ADRP_ADD): Likewise.
15992 (AARCH64_FUSE_MOVK_MOVK): Likewise.
15993 (AARCH64_FUSE_ADRP_LDR): Likewise.
15994 (AARCH64_FUSE_CMP_BRANCH): Likewise.
15996 2015-06-26 Jiong Wang <jiong.wang@arm.com>
15998 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
15999 SYMBOL_SMALL_GOT_28K.
16000 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
16001 relocation modifiers.
16002 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
16003 (ldr_got_small_28k_<mode>): New.
16004 (ldr_got_small_28k_sidi): New.
16005 * config/aarch64/iterators.md (got_modifier): New mode iterator.
16006 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
16007 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
16008 SYMBOL_SMALL_GOT_28K.
16009 (aarch64_rtx_costs): Add costs for new instruction sequences.
16010 (initialize_aarch64_code_model): Initialize new model.
16011 (aarch64_classify_symbol): Recognize new model and new symbol classification.
16012 (aarch64_asm_preferred_eh_data_format): Support new model.
16013 (aarch64_load_symref_appropriately): Generate new instruction
16014 sequences for -fpic.
16015 (TARGET_USE_PSEUDO_PIC_REG): New definition.
16016 (aarch64_use_pseudo_pic_reg): New function.
16018 2015-06-26 Jiong Wang <jiong.wang@arm.com>
16020 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
16021 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
16022 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
16023 (aarch64_expand_mov_immediate): Ditto.
16024 (aarch64_print_operand): Ditto.
16025 (aarch64_classify_symbol): Ditto.
16027 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
16029 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
16031 2015-06-26 Bin Cheng <bin.cheng@arm.com>
16034 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
16035 assertion failed. Remove assertion itself.
16037 2015-06-26 Richard Biener <rguenther@suse.de>
16039 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
16040 and -A CMP CST -> A CMP -CST which is redundant with a pattern
16042 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
16043 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
16044 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
16045 * match.pd: ... patterns here.
16047 2015-06-26 Marek Polacek <polacek@redhat.com>
16049 * match.pd ((x | y) & ~(x & y) -> x ^ y,
16050 (x | y) & (~x ^ y) -> x & y): New patterns.
16052 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
16054 * rtl.h (emit): Add an optional boolean parameter to control
16055 whether barriers are emitted.
16056 * emit-rtl.c (emit): Likewise.
16057 * gensupport.c (get_emit_function): Return null rather than "emit".
16058 * genemit.c (gen_emit_seq): Handle the null return value.
16059 Don't emit barriers after the final instruction in the sequence.
16060 * gentarget-def.c (main): Don't emit barriers after the instruction.
16062 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16064 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
16065 TARGET_UNIFIED_ASM.
16067 2015-06-26 Richard Biener <rguenther@suse.de>
16069 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
16071 2015-06-26 Richard Biener <rguenther@suse.de>
16073 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
16074 irrespective on whether the inner operation has a single use
16075 of both off are constant.
16077 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
16078 Segher Boessenkool <segher@kernel.crashing.org>
16081 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
16082 before doing PUT_MODE or PUT_CODE on operands to avoid
16083 in-place RTX modification.
16085 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
16087 * gentarget-def.c (def_target_insn): Cast return of strtol to
16090 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16092 * gimple.h (gimple_call_set_fn): Move inline function.
16093 * gimple.c (gimple_call_set_fn): Relocate here.
16095 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
16099 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
16100 the replacement insn will work.
16102 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
16104 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
16107 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16109 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
16110 * cgraph.h: Include ipa-ref.h and plugin-api.h.
16111 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
16112 (symtab_node::address_can_be_compared_p): Move function.
16113 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
16115 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
16116 * auto-profile.c: Likewise.
16117 * bb-reorder.c: Likewise.
16118 * builtins.c: Likewise.
16119 * calls.c: Likewise.
16120 * cfgexpand.c: Likewise.
16121 * cgraphbuild.c: Likewise.
16122 * cgraphclones.c: Likewise.
16123 * cgraphunit.c: Likewise.
16124 * combine.c: Likewise.
16125 * coverage.c: Likewise.
16126 * data-streamer-in.c: Likewise.
16127 * data-streamer-out.c: Likewise.
16128 * data-streamer.c: Likewise.
16129 * dbxout.c: Likewise.
16130 * dwarf2out.c: Likewise.
16131 * except.c: Likewise.
16132 * expr.c: Likewise.
16133 * final.c: Likewise.
16134 * fold-const.c: Likewise.
16135 * ggc-page.c: Likewise.
16136 * gimple-fold.c: Likewise.
16137 * gimple-iterator.c: Likewise.
16138 * gimple-pretty-print.c: Likewise.
16139 * gimple-streamer-in.c: Likewise.
16140 * gimple-streamer-out.c: Likewise.
16141 * gimple.c: Likewise.
16142 * gimplify.c: Likewise.
16143 * ipa-chkp.c: Likewise.
16144 * ipa-comdats.c: Likewise.
16145 * ipa-cp.c: Likewise.
16146 * ipa-devirt.c: Likewise.
16147 * ipa-icf-gimple.c: Likewise.
16148 * ipa-icf.c: Likewise.
16149 * ipa-inline-analysis.c: Likewise.
16150 * ipa-inline-transform.c: Likewise.
16151 * ipa-inline.c: Likewise.
16152 * ipa-polymorphic-call.c: Likewise.
16153 * ipa-profile.c: Likewise.
16154 * ipa-prop.c: Likewise.
16155 * ipa-pure-const.c: Likewise.
16156 * ipa-ref.c: Likewise.
16157 * ipa-reference.c: Likewise.
16158 * ipa-split.c: Likewise.
16159 * ipa-utils.c: Likewise.
16160 * ipa-visibility.c: Likewise.
16162 * langhooks.c: Likewise.
16163 * lto-cgraph.c: Likewise.
16164 * lto-compress.c: Likewise.
16165 * lto-opts.c: Likewise.
16166 * lto-section-in.c: Likewise.
16167 * lto-section-out.c: Likewise.
16168 * lto-streamer-in.c: Likewise.
16169 * lto-streamer-out.c: Likewise.
16170 * lto-streamer.c: Likewise.
16171 * omp-low.c: Likewise.
16172 * opts-global.c: Likewise.
16173 * passes.c: Likewise.
16174 * predict.c: Likewise.
16175 * print-tree.c: Likewise.
16176 * profile.c: Likewise.
16178 * sanopt.c: Likewise.
16179 * stor-layout.c: Likewise.
16180 * symtab.c: Likewise.
16181 * toplev.c: Likewise.
16182 * trans-mem.c: Likewise.
16183 * tree-cfg.c: Likewise.
16184 * tree-chkp.c: Likewise.
16185 * tree-eh.c: Likewise.
16186 * tree-emutls.c: Likewise.
16187 * tree-inline.c: Likewise.
16188 * tree-nested.c: Likewise.
16189 * tree-parloops.c: Likewise.
16190 * tree-pretty-print.c: Likewise.
16191 * tree-profile.c: Likewise.
16192 * tree-sra.c: Likewise.
16193 * tree-ssa-alias.c: Likewise.
16194 * tree-ssa-live.c: Likewise.
16195 * tree-ssa-loop-ivcanon.c: Likewise.
16196 * tree-ssa-loop-ivopts.c: Likewise.
16197 * tree-ssa-pre.c: Likewise.
16198 * tree-ssa-sccvn.c: Likewise.
16199 * tree-ssa-strlen.c: Likewise.
16200 * tree-ssa-structalias.c: Likewise.
16201 * tree-streamer-in.c: Likewise.
16202 * tree-streamer-out.c: Likewise.
16203 * tree-streamer.c: Likewise.
16204 * tree-switch-conversion.c: Likewise.
16205 * tree-tailcall.c: Likewise.
16206 * tree-vect-data-refs.c: Likewise.
16207 * tree-vect-stmts.c: Likewise.
16208 * tree-vectorizer.c: Likewise.
16209 * tree.c: Likewise.
16210 * tsan.c: Likewise.
16211 * ubsan.c: Likewise.
16212 * value-prof.c: Likewise.
16213 * varasm.c: Likewise.
16214 * varpool.c: Likewise.
16215 * config/arm/arm.c: Likewise.
16216 * config/bfin/bfin.c: Likewise.
16217 * config/c6x/c6x.c: Likewise.
16218 * config/cris/cris.c: Likewise.
16219 * config/darwin-c.c: Likewise.
16220 * config/darwin.c: Likewise.
16221 * config/i386/i386.c: Likewise.
16222 * config/i386/winnt.c: Likewise.
16223 * config/microblaze/microblaze.c: Likewise.
16224 * config/mips/mips.c: Likewise.
16225 * config/rs6000/rs6000.c: Likewise.
16226 * config/rx/rx.c: Likewise.
16227 * config/s390/s390.c: Likewise.
16228 * config/tilegx/mul-tables.c: Likewise.
16230 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16232 * config/aarch64/aarch64.c, config/alpha/alpha.c,
16233 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
16234 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
16235 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
16236 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
16237 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
16238 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
16239 config/microblaze/microblaze.c, config/mips/mips.c,
16240 config/mmix/mmix.c, config/mn10300/mn10300.c,
16241 config/moxie/moxie.c, config/msp430/msp430.c,
16242 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
16243 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
16244 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
16245 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
16246 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16247 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
16248 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
16249 target-def.h include.
16250 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
16252 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16254 * Makefile.in (TARGET_DEF): Add target-insns.def.
16255 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
16256 (build/gentarget-def.o): New rule.
16257 (genprogrtl): Add target-def.
16258 * target-insns.def, gentarget-def.c: New files.
16259 * target.def: Add targetm.have_* and targetm.gen_* hooks,
16260 based on the contents of target-insns.def.
16261 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
16262 (HAVE_return, gen_return): Delete.
16263 * target-def.h: Include insn-target-def.h.
16264 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
16265 instead of direct calls. Rely on them to do the appropriate assertions.
16266 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
16267 (convert_jumps_to_returns): Use targetm interface instead of
16269 (thread_prologue_and_epilogue_insns): Likewise.
16270 * reorg.c (find_end_label, dbr_schedule): Likewise.
16271 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
16272 * shrink-wrap.c (convert_to_simple_return): Likewise.
16273 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
16275 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16277 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
16278 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
16279 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
16280 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
16281 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
16282 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
16283 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
16284 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
16285 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
16286 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
16287 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
16288 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
16289 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
16290 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16291 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
16292 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
16295 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16297 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
16298 (unbounded_int_hashmap_traits::key_type): Likewise.
16299 * hash-map.h (hash_map): Get the key type from the traits.
16300 * hash-traits.h (default_hash_traits): By default, inherit from the
16301 template parameter.
16302 * alias.c (alias_set_traits): Delete.
16303 (alias_set_entry_d::children): Use alias_set_hash as the first
16304 template parameter.
16305 (record_alias_subset): Update accordingly.
16306 * except.c (tree_hash_traits): Delete.
16307 (type_to_runtime_map): Use tree_hash as the first template parameter.
16308 (init_eh): Update accordingly.
16309 * genmatch.c (capture_id_map_hasher): Delete.
16310 (cid_map_t): Use nofree_string_hash as first template parameter.
16311 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
16312 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
16313 Use symbol_compare_hash as the first template parameter in
16314 subdivide_hash_map.
16315 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
16316 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
16317 template parameter.
16318 * passes.c (pass_registry_hasher): Delete.
16319 (name_to_pass_map): Use nofree_string_hash as the first template
16321 (register_pass_name): Update accordingly.
16322 * sanopt.c (sanopt_tree_map_traits): Delete.
16323 (sanopt_tree_triplet_map_traits): Delete.
16324 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
16325 template parameter.
16326 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
16327 the first template parameter.
16328 * sese.c (rename_map_hasher): Delete.
16329 (rename_map_type): Use tree_ssa_name_hash as the first template
16331 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
16332 (function_summary::m_map): Use map_hash as the first template
16334 (function_summary::release): Update accordingly.
16335 * tree-if-conv.c (phi_args_hash_traits): Delete.
16336 (predicate_scalar_phi): Use tree_operand_hash as the first template
16337 parameter to phi_arg_map.
16338 * tree-inline.h (dependence_hasher): Delete.
16339 (copy_body_data::dependence_map): Use dependence_hash as the first
16340 template parameter.
16341 * tree-inline.c (remap_dependence_clique): Update accordingly.
16342 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
16343 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
16345 (addr_stridxptr): Update accordingly.
16346 * value-prof.c (profile_id_traits): Delete.
16347 (cgraph_node_map): Use profile_id_hash as the first template
16349 (init_node_map): Update accordingly.
16350 * config/alpha/alpha.c (string_traits): Delete.
16351 (machine_function::links): Use nofree_string_hash as the first
16352 template parameter.
16353 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
16354 * config/m32c/m32c.c (pragma_traits): Delete.
16355 (pragma_htab): Use nofree_string_hash as the first template parameter.
16356 (m32c_note_pragma_address): Update accordingly.
16357 * config/mep/mep.c (pragma_traits): Delete.
16358 (pragma_htab): Use nofree_string_hash as the first template parameter.
16359 (mep_note_pragma_flag): Update accordingly.
16360 * config/mips/mips.c (mips16_flip_traits): Delete.
16361 (mflip_mips16_htab): Use nofree_string_hash as the first template
16363 (mflip_mips16_use_mips16_p): Update accordingly.
16364 (local_alias_traits): Delete.
16365 (mips16_local_aliases): Use nofree_string_hash as the first template
16367 (mips16_local_alias): Update accordingly.
16369 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16371 * hash-map-traits.h (default_hashmap_traits): Delete.
16373 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16375 * hash-map-traits.h (unbounded_hashmap_traits): New class.
16376 (unbounded_int_hashmap_traits): Likewise.
16377 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
16379 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16381 * ipa-icf.h (symbol_compare_hash): New class.
16382 (symbol_compare_hashmap_traits): Use it.
16383 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
16384 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
16385 (mem_alloc_description::reverse_mem_map_t): Remove redundant
16386 default_hashmap_traits.
16387 * sanopt.c (sanopt_tree_triplet_hash): New class.
16388 (sanopt_tree_triplet_map_traits): Use it.
16390 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16392 * gengtype-parse.c (require_template_declaration): Allow '+' in
16393 template parameters. Consolidate cases.
16394 * hash-traits.h (int_hash): New class.
16395 * alias.c (alias_set_hash): New structure.
16396 (alias_set_traits): Use it.
16397 * symbol-summary.h (function_summary::map_hash): New class.
16398 (function_summary::summary_hashmap_traits): Use it.
16399 * tree-inline.h (dependence_hash): New class.
16400 (dependence_hasher): Use it.
16401 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
16402 * value-prof.c (profile_id_hash): New class.
16403 (profile_id_traits): Use it.
16405 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16407 * config/mips/mips.c (mips16_flip_traits): Use it.
16408 (local_alias_traits, mips16_local_aliases): Convert from a map of
16409 rtxes to a map of symbol names.
16410 (mips16_local_alias): Update accordingly.
16412 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16414 * hash-traits.h (string_hash, nofree_string_hash): New classes.
16415 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
16416 * passes.c (pass_registry_hasher): Likewise.
16417 * config/alpha/alpha.c (string_traits): Likewise.
16418 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
16419 * config/m32c/m32c.c (pragma_traits): Likewise.
16420 * config/mep/mep.c (pragma_traits): Likewise.
16422 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16424 * tree-hash-traits.h (tree_hash): New class.
16425 * except.c: Include tree-hash-traits.h.
16426 (tree_hash_traits): Use tree_hash.
16428 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16430 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
16431 * sese.c: Include tree-hash-traits.h.
16432 (rename_map_hasher): Use tree_ssa_name_hasher.
16434 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16436 * tree-hash-traits.h (tree_decl_hash): New class.
16437 * tree-ssa-strlen.c: Include tree-hash-traits.h.
16438 (stridxlist_hash_traits): Use tree_decl_hash.
16440 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16442 * tree-hash-traits.h: New file.
16443 (tree_operand_hash): New class.
16444 * sanopt.c: Include tree-hash-traits.h.
16445 (sanopt_tree_map_traits): Use tree_operand_hash.
16446 * tree-if-conv.c: Include tree-hash-traits.h.
16447 (phi_args_hash_traits): Use tree_operand_hash.
16448 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
16449 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
16451 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16453 * hash-map-traits.h: Include hash-traits.h.
16454 (simple_hashmap_traits): New class.
16455 * mem-stats.h (hash_map): Change the default traits to
16456 simple_hashmap_traits<default_hash_traits<Key> >.
16458 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16460 * hash-table.h: Update comments.
16462 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16464 * hash-traits.h (default_hash_traits): New structure.
16465 * hash-set.h (default_hashset_traits): Delete.
16466 (hash_set): Use default_hash_traits<Key> instead of
16467 default_hashset_traits. Delete hash_entry type and use Key directly.
16468 * ipa-devirt.c (pair_traits): Delete.
16469 (default_hash_traits <type_pair>): Override.
16470 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
16471 (odr_types_equivalent_p, add_type_duplicate): Likewise.
16473 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16475 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
16477 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16479 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
16480 (has_is_empty, is_empty_helper): Delete.
16481 (has_mark_deleted, mark_deleted_helper): Delete.
16482 (has_mark_empty, mark_empty_helper): Delete.
16483 (hash_table::is_deleted): Call the Descriptor unconditionally.
16484 (hash_table::is_empty): Likewise.
16485 (hash_table::mark_deleted): Likewise.
16486 (hash_table::mark_empty): Likewise.
16488 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16490 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
16491 redundant typedefs and members.
16492 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
16493 redundant typedefs.
16494 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
16495 * ipa-devirt.c (odr_name_hasher): Likewise.
16496 (polymorphic_call_target_hasher): Likewise.
16497 * ira-costs.c (cost_classes_hasher): Likewise.
16498 * statistics.c (stats_counter_hasher): Likewise.
16499 * trans-mem.c (log_entry_hasher): Likewise.
16500 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
16501 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
16502 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
16503 * var-tracking.c (variable_hasher): Likewise.
16504 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
16505 Remove redundant typedefs and members.
16507 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16509 * hash-traits.h (ggc_cache_hasher): Rename to...
16510 (ggc_cache_remove): ...this and remove typedefs.
16511 (ggc_cache_ptr_hash): New class.
16512 * hash-table.h: Update commentary.
16513 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
16514 rather than ggc_cache_hasher.
16515 (const_wide_int_hasher, reg_attr_hasher): Likewise.
16516 (const_double_hasher, const_fixed_hasher): Likewise.
16517 * function.c (insn_cache_hasher): Likewise.
16518 * trans-mem.c (tm_wrapper_hasher): Likewise.
16519 * tree.h (tree_decl_map_cache_hasher): Likewise.
16520 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
16521 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
16522 * ubsan.c (tree_type_map_cache_hasher): Likewise.
16523 * varasm.c (tm_clone_hasher): Likewise.
16524 * config/i386/i386.c (dllimport_hasher): Likewise.
16525 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
16526 (tree_hasher): Likewise.
16528 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16530 * hash-traits.h (ggc_hasher): Rename to...
16531 (ggc_remover): ...this and remove typedefs.
16532 (ggc_cache_hasher): Update accordingly. Add typedefs.
16533 (ggc_ptr_hash): New class.
16534 * hash-table.h: Update comment.
16535 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
16537 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
16538 (tree_descriptor_hasher): Likewise.
16539 * cgraph.c (function_version_hasher): Likewise.
16540 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
16541 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
16542 (dw_loc_list_hasher, addr_hasher): Likewise.
16543 * function.h (used_type_hasher): Likewise.
16544 * function.c (temp_address_hasher): Likewise.
16545 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
16546 * libfuncs.h (libfunc_hasher): Likewise.
16547 * lto-streamer.h (decl_state_hasher): Likewise.
16548 * optabs.c (libfunc_decl_hasher): Likewise.
16549 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
16550 * varasm.c (section_hasher, object_block_hasher): Likewise.
16551 (const_rtx_desc_hasher): Likewise.
16552 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
16553 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
16555 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16557 * hash-traits.h (free_ptr_hash): New class.
16558 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
16559 rather than typed_free_remove. Remove redudant typedefs.
16560 (external_ref_hasher): Likewise.
16561 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
16562 (ehspec_hasher): Likewise.
16563 * ggc-common.c (saving_hasher): Likewise.
16564 * gimplify.c (gimplify_hasher): Likewise.
16565 * haifa-sched.c (delay_i2_hasher): Likewise.
16566 * loop-invariant.c (invariant_expr_hasher): Likewise.
16567 * loop-iv.c (biv_entry_hasher): Likewise.
16568 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
16569 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
16570 * tree-cfg.c (locus_discrim_hasher): Likewise.
16571 * tree-eh.c (finally_tree_hasher): Likewise.
16572 * tree-into-ssa.c (var_info_hasher): Likewise.
16573 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
16574 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
16575 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
16576 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
16577 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
16578 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
16579 (shared_bitmap_hasher): Likewise.
16580 * tree-ssa-threadupdate.c (redirection_data): Likewise.
16581 * tree-vectorizer.h (peel_info_hasher): Likewise.
16582 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
16583 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
16585 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16587 * hash-table.h: Update comments.
16588 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
16589 (nofree_ptr_hash): New class.
16590 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
16591 than typed_noop_remove. Remove redudant typedefs.
16592 * attribs.c (attribute_hasher): Likewise.
16593 * cfg.c (bb_copy_hasher): Likewise.
16594 * cselib.c (cselib_hasher): Likewise.
16595 * dse.c (invariant_group_base_hasher): Likewise.
16596 * dwarf2cfi.c (trace_info_hasher): Likewise.
16597 * dwarf2out.c (macinfo_entry_hasher): Likewise.
16598 (comdat_type_hasher, loc_list_hasher): Likewise.
16599 * gcse.c (pre_ldst_expr_hasher): Likewise.
16600 * genmatch.c (id_base): Likewise.
16601 * genrecog.c (test_pattern_hasher): Likewise.
16602 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
16603 * haifa-sched.c (delay_i1_hasher): Likewise.
16604 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
16605 * ipa-icf.h (congruence_class_group_hash): Likewise.
16606 * ipa-profile.c (histogram_hash): Likewise.
16607 * ira-color.c (allocno_hard_regs_hasher): Likewise.
16608 * lto-streamer.h (string_slot_hasher): Likewise.
16609 * lto-streamer.c (tree_entry_hasher): Likewise.
16610 * plugin.c (event_hasher): Likewise.
16611 * postreload-gcse.c (expr_hasher): Likewise.
16612 * store-motion.c (st_expr_hasher): Likewise.
16613 * tree-sra.c (uid_decl_hasher): Likewise.
16614 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
16615 (ssa_name_var_hash): Likewise.
16616 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
16617 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
16618 * tree-ssa-pre.c (pre_expr_d): Likewise.
16619 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
16620 * vtable-verify.h (registration_hasher): Likewise.
16621 * vtable-verify.c (vtbl_map_hasher): Likewise.
16622 * config/arm/arm.c (libcall_hasher): Likewise.
16623 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
16624 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
16625 * config/sol2.c (comdat_entry_hasher): Likewise.
16626 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
16627 (print_fold_checksum, fold_checksum_tree): Likewise.
16628 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
16629 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
16630 (fold_build_call_array_loc): Likewise.
16631 * tree-ssa-ccp.c (gimple_htab): Likewise.
16632 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
16633 rather than pointer_type.
16635 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16637 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
16638 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
16640 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16642 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
16643 (ggc_hasher::ggc_mx): Likewise.
16644 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
16645 that duplicate ggc_hasher ones.
16647 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16649 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
16650 (gt_cleare_cache): Check here for deleted and empty entries.
16651 Replace handle_cache_entry with a call to keep_cache_entry.
16652 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
16653 (ggc_cache_hasher::keep_cache_entry): New function.
16654 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
16655 (tm_wrapper_hasher::keep_cache_entry): New function.
16656 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
16657 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
16658 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
16659 (type_cache_hasher::keep_cache_entry): New function.
16660 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
16661 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
16662 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
16663 (tree_type_map_cache_hasher::keep_cache_entry): New function.
16664 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
16665 (tm_clone_hasher::keep_cache_entry): New function.
16666 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
16667 (dllimport_hasher::keep_cache_entry): New function.
16669 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16671 * hash-table.h: Include hash-traits.h.
16672 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
16673 (ggc_cache_hasher): Move to...
16674 * hash-traits.h: ...this new file.
16676 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16678 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
16679 struct cl_optimization.
16680 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
16681 * tree.c (make_node_stat): Allocate cl_optimization struct.
16682 (copy_node_stat): Allocate and copy cl_optimization struct.
16684 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16686 * function.h (struct incoming_args): Move struct.
16687 (pass_by_reference, reference_callee_copied): Remove prototypes.
16688 * emit-rtl.h (struct incoming_args): Relocate struct here.
16689 * calls.h (pass_by_reference, reference_callee_copied): Relocate
16691 * function.c (pass_by_reference, reference_callee_copied): Move.
16692 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
16693 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
16694 * ipa-chkp.c: Include calls.h.
16696 2015-06-25 Andrew Macleod <amacleod@redhat.com>
16698 * alias.h (alias_set_type): Move typedef.
16699 * coretypes.h (alias_set_type): Relocate typedef here.
16700 * rtl.h: Don't include alias.h.
16702 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16704 * cgraph.h (cgraph_rtl_info): Move to rtl.h
16705 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
16707 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
16708 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
16710 * calls.c: Include hard-reg-set.h before rtl.h.
16713 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16714 Vladimir Makarov <vmakarov@redhat.com>
16716 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
16719 2015-06-25 Richard Biener <rguenther@suse.de>
16721 * fold-const.c (fold_binary_loc): Move simplification of
16722 (X <<>> C1) & C2 ...
16723 * match.pd: ... here.
16725 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
16727 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
16729 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16731 * match.pd: Add patterns for vec_conds between 1 and 0.
16733 2015-06-25 Richard Biener <rguenther@suse.de>
16735 * tree-vect-stmts.c (vectorizable_conversion): Do not set
16736 STMT_VINFO_VEC_STMT for SLP.
16737 (vectorizable_store): Likewise.
16738 (vectorizable_load): Likewise.
16739 (vect_transform_stmt): Catch SLP vectorization clobbering
16740 STMT_VINFO_VEC_STMT.
16742 2015-06-25 Richard Biener <rguenther@suse.de>
16744 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
16746 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
16747 cleanup resulting dead code and parameters.
16748 (vect_transform_slp_perm_load): Adjust.
16750 2015-06-25 Nick Clifton <nickc@redhat.com>
16752 * config/bfin/bfin.c (bfin_expand_prologue): Set
16753 current_function_static_stack_size if flag_stack_usage_info is set.
16754 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
16755 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
16756 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
16757 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
16759 2015-06-25 Tom de Vries <tom@codesourcery.com>
16761 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
16762 comment that the generated IV is unsigned.
16764 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16767 * config/arm/arm.c (arm_dbx_register_number): Return
16768 DWARF_FRAME_REGISTERS by default.
16770 2015-06-25 Tom de Vries <tom@codesourcery.com>
16772 * dominance.c (calculate_dominance_info): Fix verify_dominators call
16773 argument. Call verify_dominator when reusing dominator info.
16775 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
16778 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
16779 an additional element of the unspec vector. Modify indices
16781 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
16782 * config/sh/sh.c (prepare_move_operands): Pass incremented
16783 const_int to gen_GOTaddr2picreg.
16784 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
16786 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
16788 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
16789 Condition on TARGET_FLOAT.
16791 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
16793 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
16796 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
16798 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
16800 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
16801 aarch64_err_no_fpadvsimd.
16803 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
16804 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
16805 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
16806 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
16807 Turn error into assert, test TARGET_FLOAT.
16808 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
16811 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
16814 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
16816 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
16818 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
16820 2015-06-24 Renlin Li <renlin.li@arm.com>
16822 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
16823 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
16825 2015-06-24 Richard Biener <rguenther@suse.de>
16827 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
16829 (lower_opt_convert): Support lowering of conditional view_convert.
16830 (parser::parse_operation): Likewise.
16831 (parser::parse_for): Likewise.
16833 2015-06-24 Renlin Li <renlin.li@arm.com>
16835 * varasm.c (emit_local): Use unsigned int for align variable.
16837 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16840 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
16841 for negative numbers.
16843 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16845 PR rtl-optimization/66306
16846 * reload.c (find_reloads): Swap the match_dup info for
16847 commutative operands.
16849 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16851 * config/s390/vx-builtins.md
16852 ("vec_scatter_element<mode>_<non_vec_int>")
16853 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
16854 attribute with bhfgq.
16856 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16858 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
16860 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16862 * config/s390/s390-builtin-types.def: Add flag to indicate the
16863 options under which the function type is needed.
16864 * config/s390/s390-builtins.def: Add flag to indicate the options
16865 under which the builtin is enabled.
16866 * config/s390/s390-builtins.h: Add flags parameter to macro
16868 (bflags_for_builtin): New function.
16869 (flags_for_builtin): Renamed to ...
16870 (opflags_for_builtin): ... this.
16871 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
16872 flags_for_builtin to bflags_for_builtin and
16873 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
16874 * config/s390/s390.c: Add initialization of bflags_builtin and
16875 opflags_builtin arrays.
16876 Remove code for flags_builtin.
16877 (s390_init_builtins): Only create builtin function types if one of
16878 their flags is active.
16879 Only create builtins if all of their flags are active.
16880 (s390_expand_builtin): Rename flags_for_builtin to
16881 opflags_for_builtin.
16883 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16885 * config/s390/vecintrin.h: Remove internal builtins.
16887 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16889 * config/s390/s390.c (s390_secondary_reload): Fix check for
16890 GENERAL_REGS register class.
16892 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16894 * config/s390/s390.c (s390_support_vector_misalignment): Call
16895 default implementation for !TARGET_VX.
16897 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16899 * config/s390/s390.c (s390_legitimate_constant_p): Add
16902 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16904 * config/s390/s390.c (s390_vector_abi): New variable definition.
16905 (s390_check_type_for_vector_abi): New function.
16906 (TARGET_ASM_FILE_END): New macro definition.
16907 (s390_asm_file_end): New function.
16908 (s390_function_arg): Call s390_check_type_for_vector_abi.
16909 (s390_gimplify_va_arg): Likewise.
16910 * configure: Regenerate.
16911 * configure.ac: Check for .gnu_attribute Binutils feature.
16913 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
16916 * config/bfin/bfin.c (hwloop_optimize): Initialize
16917 JUMP_LABEL for newly created jump.
16919 2015-06-23 Tristan Gingold <gingold@adacore.com>
16921 * collect-utils.c (collect_wait): Unlink the response file here
16923 (do_wait): ...here.
16924 (utils_cleanup): ...and here.
16926 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
16928 * df-scan.c: Don't include target-def.h.
16929 * targhooks.c: Likewise.
16930 * config/arm/arm-c.c: Likewise.
16931 * config/i386/i386-c.c: Likewise.
16932 * config/nds32/nds32-cost.c: Likewise.
16933 * config/nds32/nds32-fp-as-gp.c: Likewise.
16934 * config/nds32/nds32-intrinsic.c: Likewise.
16935 * config/nds32/nds32-isr.c: Likewise.
16936 * config/nds32/nds32-md-auxiliary.c: Likewise.
16937 * config/nds32/nds32-memory-manipulation.c: Likewise.
16938 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16939 * config/nds32/nds32-predicates.c: Likewise.
16941 2015-06-23 Richard Biener <rguenther@suse.de>
16943 PR tree-optimization/66636
16944 * tree-vect-stmts.c (vectorizable_store): Properly compute the
16945 def type for further defs for strided stores.
16947 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
16949 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
16950 conditional selects.
16951 (setcc_int<mode>, setcc_float<mode>): Reformat.
16953 2015-06-23 Marek Polacek <polacek@redhat.com>
16955 * match.pd ((x + y) - (x | y) -> x & y,
16956 (x + y) - (x & y) -> x | y): New patterns.
16958 2015-06-23 Ludovic Courtès <ludo@gnu.org>
16961 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
16962 '-dynamic-linker' within %{!shared: ...}.
16964 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
16967 * config/i386/predicates.md (addsub_vm_operator): New predicate.
16968 (addsub_vs_operator): Ditto.
16969 (addsub_vs_parallel): Ditto.
16970 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
16971 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
16972 Put minus RTX before plus and adjust vec_merge selector.
16973 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
16974 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
16975 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
16976 (addsub vec_merge splitters): New combiner splitters.
16977 (addsub vec_select/vec_concat splitters): Ditto.
16979 2015-06-23 Bin Cheng <bin.cheng@arm.com>
16981 PR tree-optimization/66449
16982 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
16983 POINTER_PLUS_EXPR for pointers.
16985 2015-06-23 Alan Modra <amodra@gmail.com>
16987 * rtlanal.c (commutative_operand_precedence): Correct comments.
16988 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
16989 declaration. Return an int. Distinguish REG,REG return from
16991 (struct simplify_plus_minus_op_data): Make local to function.
16992 (simplify_plus_minus): Don't set canonicalized if merely sorting
16993 registers. Avoid packing ops if nothing changes. White space fixes.
16995 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
16997 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
16998 -fdump-ada-spec is passed but not if -fsyntax-only is.
17000 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
17003 * lra-lives.c (process_bb_lives): Check insn copying the same
17004 reload pseudo and don't create a copy for it.
17006 2015-06-22 Tom de Vries <tom@codesourcery.com>
17008 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
17011 2015-06-22 Tom de Vries <tom@codesourcery.com>
17013 * builtins.def (DEF_GOMP_BUILTIN): Test
17014 'flag_tree_parallelize_loops > 1' instead of
17015 'flag_tree_parallelize_loops'. Test flag_cilkplus.
17017 2015-06-22 Tom de Vries <tom@codesourcery.com>
17019 * dominance.c (calculate_dominance_info): Verify dominators if
17022 2015-06-22 Marek Polacek <polacek@redhat.com>
17024 * match.pd ((x ^ y) ^ (x | y) -> x & y,
17025 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
17026 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
17027 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
17029 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
17032 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
17033 cost of embedded comparison.
17035 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17038 * config/rs6000/predicates.md (altivec_register_operand): Permit
17039 virtual stack registers.
17040 (vsx_register_operand): Likewise.
17041 (vfloat_operand): Likewise.
17042 (vint_operand): Likewise.
17043 (vlogical_operand): Likewise.
17045 2015-06-22 Richard Biener <rguenther@suse.de>
17047 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
17048 and single_scalar_iteration_cost members.
17049 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
17050 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
17051 (vect_get_single_scalar_iteration_cost): Remove.
17052 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
17053 Use LOOP_VINFO_SCALAR_ITERATION_COST.
17054 * tree-vect-loop.c (destroy_loop_vec_info): Free
17056 (vect_get_single_scalar_iteration_cost): Compute result into
17057 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
17058 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
17059 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
17060 (vect_estimate_min_profitable_iters): Use them.
17062 2015-06-22 Christian Bruel <christian.bruel@st.com>
17065 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
17066 (TARGET_INSERT_ATTRIBUTES): Define.
17067 (thumb_flipper): New var.
17068 * config/arm/arm.opt (-mflip-thumb): New switch.
17070 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
17071 Martin Liska <mliska@suse.cz>
17074 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
17075 construction of arg_types.
17076 (sem_function::sem_function): Likewise.
17077 (sem_function::~sem_function): Remove destruction of arg_types.
17078 (sem_function::compatible_parm_types_p): New function.
17079 (sem_function::equals_wpa): Reorg matching of return values
17080 and parameter types.
17081 (sem_function::equals_private): Reorg mathcing of argument types.
17082 (sem_function::parse_tree_args): Remove.
17083 * ipa-icf.h (init_wpa): Do not call it.
17084 (parse_tree_args): Remove.
17085 (compatible_parm_types_p): Declare.
17086 (result_type): Remove.
17087 (arg_types): Remove.
17089 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
17092 * ipa-polymorphic-call.c
17093 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
17094 initializing alias oracle; fix formating; set base_alias_set if it
17097 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
17099 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
17100 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
17101 (find_inc): Likewise.
17102 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
17104 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
17105 * df-scan.c (df_swap_refs): Remove.
17106 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
17107 * dominance.c (link_roots): Use std::swap instead of manually swapping.
17108 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
17109 * fold-const.c (fold_relational_const): Likewise.
17110 * genattrtab.c (simplify_test_exp): Likewise.
17111 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
17112 gimple_simplify): Likewise.
17113 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
17114 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
17115 * ipa-devirt.c (add_type_duplicate): Likewise.
17116 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
17117 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
17118 * lra.c (lra_create_copy): Likewise.
17119 * lto-streamer-out.c (DFS::DFS): Likewise.
17120 * modulo-sched.c (get_sched_window): Likewise.
17121 * omega.c (omega_pretty_print_problem): Likewise.
17122 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
17123 * reload1.c (reloads_unique_chain_p): Likewise.
17124 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
17125 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
17127 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
17129 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
17130 predicate_mem_writes): Likewise.
17131 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
17132 * tree-predcom.c (combine_chains): Likewise.
17133 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
17134 refs_may_alias_p_1): Likewise.
17135 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
17136 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
17137 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
17138 number_of_iterations_cond): Likewise.
17139 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
17140 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
17141 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
17142 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
17143 * tree-vrp.c (extract_range_from_binary_expr_1,
17144 extract_range_from_unary_expr_1): Likewise.
17146 2015-06-20 Marek Polacek <polacek@redhat.com>
17148 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
17150 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
17153 * config/sh/sh.c (prepare_move_operands): Replace subreg
17154 index term with R0 for base and index addressing.
17156 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
17158 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
17160 (movsf_aarch64): Change condition from register_operand to
17161 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
17162 load1. Change type for alternative 7 to store1.
17163 (movdf_aarch64): Likewise.
17165 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
17167 * config/vax/vax.md: Adjust sign/zero extend patterns to
17168 handle SUBREGs in operands[1].
17170 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17172 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
17173 of manually swapping.
17174 (expand_vec_perm_interleave2): Likewise.
17176 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
17178 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
17179 reuse bounds created for abnormal ssa names.
17181 2015-06-19 Jakub Jelinek <jakub@redhat.com>
17183 * config/nvptx/nvptx.md (allocate_stack): Rename to...
17184 (allocate_stack_<mode>): ... this, and add :P on both
17185 match_operand and unspec.
17186 (allocate_stack): New expander.
17188 2015-06-19 Christian Bruel <christian.bruel@st.com>
17192 * config/arm/arm.c (arm_set_current_function): Handle
17193 explicit default options.
17195 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
17197 * config/i386/i386.md (*movsicc_noc_zext): New insn.
17198 (zero-extended cmove with mem peephole2): New pattern.
17199 (cmove with mem peephole2): Merge patterns.
17201 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
17203 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
17205 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
17207 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
17208 * config/mips/mips.md (*madd4<mode>): Ditto.
17209 (*nmadd3<mode>) Ditto.
17210 (*nmadd4<mode>_fastmath): Ditto.
17211 (*nmadd3<mode>_fastmath): Ditto.
17212 (*nmsub4<mode>): Ditto.
17213 (*nmsub3<mode>): Ditto.
17214 (*nmsub4<mode>_fastmath): Ditto.
17215 (*nmsub3<mode>_fastmath): Ditto.
17217 2015-06-18 Michael Matz <matz@suse.de>
17219 PR middle-end/66253
17220 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
17221 grouped strided stores.
17222 (vectorizable_load): Don't use the DR from first_stmt in
17223 the non-SLP grouped strided case.
17225 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17228 * function.c (assign_bounds): Add arguments assign_regs,
17229 assign_special, assign_bt.
17230 (assign_parms): For vararg functions handle bounds in BT
17231 and special slots after incoming vararg bounds.
17233 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17235 PR middle-end/66568
17236 * cfgexpand.c (expand_return): Handle missing bounds.
17237 (expand_gimple_stmt_1): Likewise.
17238 * tree-chkp.c (chkp_expand_zero_bounds): New.
17239 * tree-chkp.h (chkp_expand_zero_bounds): New.
17241 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17243 PR middle-end/66567
17244 * ipa-chkp.c (chkp_maybe_create_clone): Require
17245 functions to be instrumentable.
17246 * tree-chkp.c (chkp_replace_function_pointer): Use
17247 chkp_instrumentable_p instead of attribute check.
17249 2015-06-18 Richard Biener <rguenther@suse.de>
17251 PR tree-optimization/66510
17252 * tree-vect-stmts.c (vectorizable_load): Properly compute the
17253 number of vector loads for SLP permuted loads.
17254 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
17255 check the stride for loop vectorization.
17256 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
17257 vectorization factor.
17258 (vect_analyze_group_access): If the group size is not a power
17259 of two require a epilogue loop.
17260 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
17261 compute and optimizing and alias test pruning after final
17262 vectorization factor computation.
17263 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
17265 (vect_transform_slp_perm_load): Properly compute the original
17266 number of vector load stmts.
17268 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
17270 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
17271 "unlikely character , in @var" warning.
17273 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
17275 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
17276 (ix86_function_arg_advance): Ditto.
17277 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
17279 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
17281 * function.h (struct rtl_data): Remove struct and accessor macros.
17282 * emit-rtl.h (struct rtl_data): Relocate to here.
17283 * Makefile.in (GTFILES): Add emit-rtl.h.
17284 * df-core.c: Include emit-rtl.h.
17285 * genattrtab.c: Likewise.
17286 * genconditions.c: Likewise.
17287 * genpreds.c: Likewise.
17288 * genrecog.c: Likewise.
17289 * regcprop.c: Likewise.
17290 * resource.c: Likewise.
17291 * sched-rgn.c: Likewise.
17292 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17293 * config/i386/winnt.c: Likewise.
17295 2015-06-17 Jakub Jelinek <jakub@redhat.com>
17297 PR middle-end/66429
17298 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
17299 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
17300 and has_force_vectorize_loops flags from cfun into
17302 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
17303 if simduid is non-NULL.
17304 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
17305 * passes.def (pass_simduid_cleanup): Add new pass after loop
17307 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
17308 indirection from htab argument's type.
17309 (shrink_simd_arrays): New function.
17310 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
17311 Don't call adjust_simduid_builtins if there are no loops.
17312 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
17313 (pass_simduid_cleanup::execute): New method.
17314 (make_pass_simduid_cleanup): New function.
17316 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
17318 * tree-core.h (tree_target_option): Make opts field a pointer to a
17319 cl_target_option instead of an instance of the struct.
17320 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
17322 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
17323 TARGET_OPTION_NODE.
17324 (copy_node_stat): Allocate and copy struct cl_target_option.
17326 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
17328 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
17329 Remove conditional exposure of prototypes.
17330 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
17331 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
17332 definitions in tree.h with functions.
17333 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
17335 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
17337 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
17339 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
17340 (*cmp<mode>_signed): ... this.
17341 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
17342 (*cmp<mode>_unsigned): ... this. Remove %b.
17344 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
17346 * coretypes.h: Include input.h and as-a.h.
17347 * rtl.h: Include input.h and as-a.h for generator files.
17348 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
17349 * vec.c: Don't include diagnostic-core.h.
17350 * alias.c: Do not include input.h, line-map.h or is-a.h.
17351 * asan.c: Likewise.
17352 * attribs.c: Likewise.
17353 * auto-inc-dec.c: Likewise.
17354 * auto-profile.c: Likewise.
17355 * bb-reorder.c: Likewise.
17356 * bt-load.c: Likewise.
17357 * builtins.c: Likewise.
17358 * caller-save.c: Likewise.
17359 * calls.c: Likewise.
17360 * ccmp.c: Likewise.
17362 * cfganal.c: Likewise.
17363 * cfgbuild.c: Likewise.
17364 * cfgcleanup.c: Likewise.
17365 * cfgexpand.c: Likewise.
17366 * cfghooks.c: Likewise.
17367 * cfgloop.c: Likewise.
17368 * cfgloop.h: Likewise.
17369 * cfgloopanal.c: Likewise.
17370 * cfgloopmanip.c: Likewise.
17371 * cfgrtl.c: Likewise.
17372 * cgraph.c: Likewise.
17373 * cgraphbuild.c: Likewise.
17374 * cgraphclones.c: Likewise.
17375 * cgraphunit.c: Likewise.
17376 * cilk-common.c: Likewise.
17377 * combine-stack-adj.c: Likewise.
17378 * combine.c: Likewise.
17379 * compare-elim.c: Likewise.
17380 * convert.c: Likewise.
17381 * coverage.c: Likewise.
17382 * cppbuiltin.c: Likewise.
17383 * cprop.c: Likewise.
17385 * cselib.c: Likewise.
17386 * data-streamer-in.c: Likewise.
17387 * data-streamer-out.c: Likewise.
17388 * data-streamer.c: Likewise.
17389 * dbxout.c: Likewise.
17392 * debug.c: Likewise.
17393 * df-core.c: Likewise.
17394 * df-problems.c: Likewise.
17395 * df-scan.c: Likewise.
17398 * diagnostic-core.h: Likewise.
17399 * diagnostic.c: Likewise.
17400 * dojump.c: Likewise.
17401 * dominance.c: Likewise.
17402 * domwalk.c: Likewise.
17403 * double-int.c: Likewise.
17405 * dumpfile.c: Likewise.
17406 * dumpfile.h: Likewise.
17407 * dwarf2asm.c: Likewise.
17408 * dwarf2cfi.c: Likewise.
17409 * dwarf2out.c: Likewise.
17410 * emit-rtl.c: Likewise.
17411 * et-forest.c: Likewise.
17412 * except.c: Likewise.
17413 * explow.c: Likewise.
17414 * expmed.c: Likewise.
17415 * expr.c: Likewise.
17416 * final.c: Likewise.
17417 * fixed-value.c: Likewise.
17418 * fold-const.c: Likewise.
17419 * function.c: Likewise.
17420 * fwprop.c: Likewise.
17421 * gcc-plugin.h: Likewise.
17422 * gcse.c: Likewise.
17423 * generic-match-head.c: Likewise.
17424 * ggc-page.c: Likewise.
17425 * gimple-builder.c: Likewise.
17426 * gimple-expr.c: Likewise.
17427 * gimple-fold.c: Likewise.
17428 * gimple-iterator.c: Likewise.
17429 * gimple-low.c: Likewise.
17430 * gimple-match-head.c: Likewise.
17431 * gimple-pretty-print.c: Likewise.
17432 * gimple-ssa-isolate-paths.c: Likewise.
17433 * gimple-ssa-strength-reduction.c: Likewise.
17434 * gimple-streamer-in.c: Likewise.
17435 * gimple-streamer-out.c: Likewise.
17436 * gimple-streamer.h: Likewise.
17437 * gimple-walk.c: Likewise.
17438 * gimple.c: Likewise.
17439 * gimplify-me.c: Likewise.
17440 * gimplify.c: Likewise.
17441 * godump.c: Likewise.
17442 * graph.c: Likewise.
17443 * graphite-blocking.c: Likewise.
17444 * graphite-dependences.c: Likewise.
17445 * graphite-interchange.c: Likewise.
17446 * graphite-isl-ast-to-gimple.c: Likewise.
17447 * graphite-optimize-isl.c: Likewise.
17448 * graphite-poly.c: Likewise.
17449 * graphite-scop-detection.c: Likewise.
17450 * graphite-sese-to-poly.c: Likewise.
17451 * graphite.c: Likewise.
17452 * haifa-sched.c: Likewise.
17453 * hw-doloop.c: Likewise.
17454 * ifcvt.c: Likewise.
17455 * init-regs.c: Likewise.
17456 * input.c: Likewise.
17457 * internal-fn.c: Likewise.
17458 * ipa-chkp.c: Likewise.
17459 * ipa-comdats.c: Likewise.
17460 * ipa-cp.c: Likewise.
17461 * ipa-devirt.c: Likewise.
17462 * ipa-icf-gimple.c: Likewise.
17463 * ipa-icf.c: Likewise.
17464 * ipa-inline-analysis.c: Likewise.
17465 * ipa-inline-transform.c: Likewise.
17466 * ipa-inline.c: Likewise.
17467 * ipa-polymorphic-call.c: Likewise.
17468 * ipa-profile.c: Likewise.
17469 * ipa-prop.c: Likewise.
17470 * ipa-pure-const.c: Likewise.
17471 * ipa-ref.c: Likewise.
17472 * ipa-reference.c: Likewise.
17473 * ipa-split.c: Likewise.
17474 * ipa-utils.c: Likewise.
17475 * ipa-visibility.c: Likewise.
17477 * ira-build.c: Likewise.
17478 * ira-color.c: Likewise.
17479 * ira-conflicts.c: Likewise.
17480 * ira-costs.c: Likewise.
17481 * ira-emit.c: Likewise.
17482 * ira-lives.c: Likewise.
17484 * jump.c: Likewise.
17485 * langhooks.c: Likewise.
17487 * loop-doloop.c: Likewise.
17488 * loop-init.c: Likewise.
17489 * loop-invariant.c: Likewise.
17490 * loop-iv.c: Likewise.
17491 * loop-unroll.c: Likewise.
17492 * lower-subreg.c: Likewise.
17493 * lra-assigns.c: Likewise.
17494 * lra-coalesce.c: Likewise.
17495 * lra-constraints.c: Likewise.
17496 * lra-eliminations.c: Likewise.
17497 * lra-lives.c: Likewise.
17498 * lra-remat.c: Likewise.
17499 * lra-spills.c: Likewise.
17501 * lto-cgraph.c: Likewise.
17502 * lto-compress.c: Likewise.
17503 * lto-opts.c: Likewise.
17504 * lto-section-in.c: Likewise.
17505 * lto-section-out.c: Likewise.
17506 * lto-streamer-in.c: Likewise.
17507 * lto-streamer-out.c: Likewise.
17508 * lto-streamer.c: Likewise.
17510 * mode-switching.c: Likewise.
17511 * modulo-sched.c: Likewise.
17512 * omega.c: Likewise.
17513 * omp-low.c: Likewise.
17514 * optabs.c: Likewise.
17515 * opts-global.c: Likewise.
17516 * opts.h: Likewise.
17517 * passes.c: Likewise.
17518 * plugin.c: Likewise.
17519 * postreload-gcse.c: Likewise.
17520 * postreload.c: Likewise.
17521 * predict.c: Likewise.
17522 * pretty-print.h: Likewise.
17523 * print-rtl.c: Likewise.
17524 * print-tree.c: Likewise.
17525 * profile.c: Likewise.
17526 * real.c: Likewise.
17527 * realmpfr.c: Likewise.
17528 * recog.c: Likewise.
17530 * reg-stack.c: Likewise.
17531 * regcprop.c: Likewise.
17532 * reginfo.c: Likewise.
17533 * regrename.c: Likewise.
17534 * regstat.c: Likewise.
17535 * reload.c: Likewise.
17536 * reload1.c: Likewise.
17537 * reorg.c: Likewise.
17538 * resource.c: Likewise.
17539 * rtl-chkp.c: Likewise.
17540 * rtl-error.c: Likewise.
17541 * rtlanal.c: Likewise.
17542 * rtlhooks.c: Likewise.
17543 * sanopt.c: Likewise.
17544 * sched-deps.c: Likewise.
17545 * sched-ebb.c: Likewise.
17546 * sched-rgn.c: Likewise.
17547 * sched-vis.c: Likewise.
17548 * sdbout.c: Likewise.
17549 * sel-sched-dump.c: Likewise.
17550 * sel-sched-ir.c: Likewise.
17551 * sel-sched.c: Likewise.
17552 * sese.c: Likewise.
17553 * shrink-wrap.c: Likewise.
17554 * simplify-rtx.c: Likewise.
17555 * stack-ptr-mod.c: Likewise.
17556 * statistics.c: Likewise.
17557 * stmt.c: Likewise.
17558 * stor-layout.c: Likewise.
17559 * store-motion.c: Likewise.
17560 * streamer-hooks.c: Likewise.
17561 * stringpool.c: Likewise.
17562 * symtab.c: Likewise.
17563 * target-globals.c: Likewise.
17564 * targhooks.c: Likewise.
17565 * toplev.c: Likewise.
17566 * tracer.c: Likewise.
17567 * trans-mem.c: Likewise.
17568 * tree-affine.c: Likewise.
17569 * tree-browser.c: Likewise.
17570 * tree-call-cdce.c: Likewise.
17571 * tree-cfg.c: Likewise.
17572 * tree-cfgcleanup.c: Likewise.
17573 * tree-chkp-opt.c: Likewise.
17574 * tree-chkp.c: Likewise.
17575 * tree-chrec.c: Likewise.
17576 * tree-complex.c: Likewise.
17577 * tree-data-ref.c: Likewise.
17578 * tree-dfa.c: Likewise.
17579 * tree-diagnostic.c: Likewise.
17580 * tree-dump.c: Likewise.
17581 * tree-eh.c: Likewise.
17582 * tree-emutls.c: Likewise.
17583 * tree-if-conv.c: Likewise.
17584 * tree-inline.c: Likewise.
17585 * tree-into-ssa.c: Likewise.
17586 * tree-iterator.c: Likewise.
17587 * tree-loop-distribution.c: Likewise.
17588 * tree-nested.c: Likewise.
17589 * tree-nrv.c: Likewise.
17590 * tree-object-size.c: Likewise.
17591 * tree-outof-ssa.c: Likewise.
17592 * tree-parloops.c: Likewise.
17593 * tree-phinodes.c: Likewise.
17594 * tree-predcom.c: Likewise.
17595 * tree-pretty-print.c: Likewise.
17596 * tree-profile.c: Likewise.
17597 * tree-scalar-evolution.c: Likewise.
17598 * tree-sra.c: Likewise.
17599 * tree-ssa-address.c: Likewise.
17600 * tree-ssa-alias.c: Likewise.
17601 * tree-ssa-ccp.c: Likewise.
17602 * tree-ssa-coalesce.c: Likewise.
17603 * tree-ssa-copy.c: Likewise.
17604 * tree-ssa-copyrename.c: Likewise.
17605 * tree-ssa-dce.c: Likewise.
17606 * tree-ssa-dom.c: Likewise.
17607 * tree-ssa-dse.c: Likewise.
17608 * tree-ssa-forwprop.c: Likewise.
17609 * tree-ssa-ifcombine.c: Likewise.
17610 * tree-ssa-live.c: Likewise.
17611 * tree-ssa-loop-ch.c: Likewise.
17612 * tree-ssa-loop-im.c: Likewise.
17613 * tree-ssa-loop-ivcanon.c: Likewise.
17614 * tree-ssa-loop-ivopts.c: Likewise.
17615 * tree-ssa-loop-manip.c: Likewise.
17616 * tree-ssa-loop-niter.c: Likewise.
17617 * tree-ssa-loop-prefetch.c: Likewise.
17618 * tree-ssa-loop-unswitch.c: Likewise.
17619 * tree-ssa-loop.c: Likewise.
17620 * tree-ssa-math-opts.c: Likewise.
17621 * tree-ssa-operands.c: Likewise.
17622 * tree-ssa-phiopt.c: Likewise.
17623 * tree-ssa-phiprop.c: Likewise.
17624 * tree-ssa-pre.c: Likewise.
17625 * tree-ssa-propagate.c: Likewise.
17626 * tree-ssa-reassoc.c: Likewise.
17627 * tree-ssa-sccvn.c: Likewise.
17628 * tree-ssa-scopedtables.c: Likewise.
17629 * tree-ssa-sink.c: Likewise.
17630 * tree-ssa-strlen.c: Likewise.
17631 * tree-ssa-structalias.c: Likewise.
17632 * tree-ssa-tail-merge.c: Likewise.
17633 * tree-ssa-ter.c: Likewise.
17634 * tree-ssa-threadedge.c: Likewise.
17635 * tree-ssa-threadupdate.c: Likewise.
17636 * tree-ssa-uncprop.c: Likewise.
17637 * tree-ssa-uninit.c: Likewise.
17638 * tree-ssa.c: Likewise.
17639 * tree-ssanames.c: Likewise.
17640 * tree-stdarg.c: Likewise.
17641 * tree-streamer-in.c: Likewise.
17642 * tree-streamer-out.c: Likewise.
17643 * tree-streamer.c: Likewise.
17644 * tree-switch-conversion.c: Likewise.
17645 * tree-tailcall.c: Likewise.
17646 * tree-vect-data-refs.c: Likewise.
17647 * tree-vect-generic.c: Likewise.
17648 * tree-vect-loop-manip.c: Likewise.
17649 * tree-vect-loop.c: Likewise.
17650 * tree-vect-patterns.c: Likewise.
17651 * tree-vect-slp.c: Likewise.
17652 * tree-vect-stmts.c: Likewise.
17653 * tree-vectorizer.c: Likewise.
17654 * tree-vrp.c: Likewise.
17655 * tree.c: Likewise.
17656 * tsan.c: Likewise.
17657 * ubsan.c: Likewise.
17658 * valtrack.c: Likewise.
17659 * value-prof.c: Likewise.
17660 * var-tracking.c: Likewise.
17661 * varasm.c: Likewise.
17662 * varpool.c: Likewise.
17663 * vmsdbgout.c: Likewise.
17664 * vtable-verify.c: Likewise.
17666 * wide-int.cc: Likewise.
17667 * xcoffout.c: Likewise.
17668 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
17669 * common/common-targhooks.c: Likewise.
17670 * config/aarch64/aarch64-builtins.c: Likewise.
17671 * config/aarch64/aarch64.c: Likewise.
17672 * config/alpha/alpha.c: Likewise.
17673 * config/arc/arc.c: Likewise.
17674 * config/arm/aarch-common.c: Likewise.
17675 * config/arm/arm-builtins.c: Likewise.
17676 * config/arm/arm-c.c: Likewise.
17677 * config/arm/arm.c: Likewise.
17678 * config/avr/avr-c.c: Likewise.
17679 * config/avr/avr-log.c: Likewise.
17680 * config/avr/avr.c: Likewise.
17681 * config/bfin/bfin.c: Likewise.
17682 * config/c6x/c6x.c: Likewise.
17683 * config/cr16/cr16.c: Likewise.
17684 * config/cris/cris.c: Likewise.
17685 * config/darwin-c.c: Likewise.
17686 * config/darwin.c: Likewise.
17687 * config/default-c.c: Likewise.
17688 * config/epiphany/epiphany.c: Likewise.
17689 * config/epiphany/mode-switch-use.c: Likewise.
17690 * config/epiphany/resolve-sw-modes.c: Likewise.
17691 * config/fr30/fr30.c: Likewise.
17692 * config/frv/frv.c: Likewise.
17693 * config/ft32/ft32.c: Likewise.
17694 * config/glibc-c.c: Likewise.
17695 * config/h8300/h8300.c: Likewise.
17696 * config/i386/i386-c.c: Likewise.
17697 * config/i386/i386.c: Likewise.
17698 * config/i386/msformat-c.c: Likewise.
17699 * config/i386/winnt-cxx.c: Likewise.
17700 * config/i386/winnt-stubs.c: Likewise.
17701 * config/i386/winnt.c: Likewise.
17702 * config/ia64/ia64-c.c: Likewise.
17703 * config/ia64/ia64.c: Likewise.
17704 * config/iq2000/iq2000.c: Likewise.
17705 * config/lm32/lm32.c: Likewise.
17706 * config/m32c/m32c-pragma.c: Likewise.
17707 * config/m32c/m32c.c: Likewise.
17708 * config/m32r/m32r.c: Likewise.
17709 * config/m68k/m68k.c: Likewise.
17710 * config/mcore/mcore.c: Likewise.
17711 * config/mep/mep-pragma.c: Likewise.
17712 * config/mep/mep.c: Likewise.
17713 * config/microblaze/microblaze-c.c: Likewise.
17714 * config/microblaze/microblaze.c: Likewise.
17715 * config/mips/mips.c: Likewise.
17716 * config/mmix/mmix.c: Likewise.
17717 * config/mn10300/mn10300.c: Likewise.
17718 * config/moxie/moxie.c: Likewise.
17719 * config/msp430/msp430-c.c: Likewise.
17720 * config/msp430/msp430.c: Likewise.
17721 * config/nds32/nds32-cost.c: Likewise.
17722 * config/nds32/nds32-fp-as-gp.c: Likewise.
17723 * config/nds32/nds32-intrinsic.c: Likewise.
17724 * config/nds32/nds32-isr.c: Likewise.
17725 * config/nds32/nds32-md-auxiliary.c: Likewise.
17726 * config/nds32/nds32-memory-manipulation.c: Likewise.
17727 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17728 * config/nds32/nds32-predicates.c: Likewise.
17729 * config/nds32/nds32.c: Likewise.
17730 * config/nios2/nios2.c: Likewise.
17731 * config/nvptx/nvptx.c: Likewise.
17732 * config/pa/pa.c: Likewise.
17733 * config/pdp11/pdp11.c: Likewise.
17734 * config/rl78/rl78-c.c: Likewise.
17735 * config/rl78/rl78.c: Likewise.
17736 * config/rs6000/rs6000-c.c: Likewise.
17737 * config/rs6000/rs6000.c: Likewise.
17738 * config/rx/rx.c: Likewise.
17739 * config/s390/s390-c.c: Likewise.
17740 * config/s390/s390.c: Likewise.
17741 * config/sh/sh-c.c: Likewise.
17742 * config/sh/sh-mem.cc: Likewise.
17743 * config/sh/sh.c: Likewise.
17744 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17745 * config/sh/sh_treg_combine.cc: Likewise.
17746 * config/sol2-c.c: Likewise.
17747 * config/sol2-cxx.c: Likewise.
17748 * config/sol2-stubs.c: Likewise.
17749 * config/sol2.c: Likewise.
17750 * config/sparc/sparc-c.c: Likewise.
17751 * config/sparc/sparc.c: Likewise.
17752 * config/spu/spu-c.c: Likewise.
17753 * config/spu/spu.c: Likewise.
17754 * config/stormy16/stormy16.c: Likewise.
17755 * config/tilegx/mul-tables.c: Likewise.
17756 * config/tilegx/tilegx-c.c: Likewise.
17757 * config/tilegx/tilegx.c: Likewise.
17758 * config/tilepro/mul-tables.c: Likewise.
17759 * config/tilepro/tilepro-c.c: Likewise.
17760 * config/tilepro/tilepro.c: Likewise.
17761 * config/v850/v850-c.c: Likewise.
17762 * config/v850/v850.c: Likewise.
17763 * config/vax/vax.c: Likewise.
17764 * config/visium/visium.c: Likewise.
17765 * config/vms/vms-c.c: Likewise.
17766 * config/vms/vms.c: Likewise.
17767 * config/vxworks.c: Likewise.
17768 * config/winnt-c.c: Likewise.
17769 * config/xtensa/xtensa.c: Likewise.
17771 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
17773 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
17775 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
17777 2015-06-17 Richard Biener <rguenther@suse.de>
17779 PR tree-optimization/66251
17780 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
17781 stmts for SLP strided stores.
17784 2015-05-22 Richard Biener <rguenther@suse.de>
17786 PR tree-optimization/66251
17787 * tree-vect-stmts.c (vectorizable_conversion): Properly
17788 set STMT_VINFO_VEC_STMT even for the SLP case.
17790 2015-05-26 Michael Matz <matz@suse.de>
17792 PR middle-end/66251
17793 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
17794 STMT_VINFO_VEC_STMT, also with SLP.
17796 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
17799 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
17800 (*avx_addsubv4df3_1s): Ditto.
17801 (*sse3_addsubv2df3_1): Ditto.
17802 (*sse3_addsubv2df3_1s): Ditto.
17803 (*avx_addsubv8sf3_1): Ditto.
17804 (*avx_addsubv8sf3_1s): Ditto.
17805 (*sse3_addsubv4sf3_1): Ditto.
17806 (*sse3_addsubv4sf3_1s): Ditto.
17808 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
17810 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
17811 (SYSROOT_SUFFIX_SPEC): Update.
17812 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
17813 (STARTFILE_PREFIX_SPEC): Update.
17814 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
17815 (MULTILIB_REQUIRED): New.
17816 (MULTILIB_OSDIRNAMES): New.
17817 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
17818 (MULTILIB_REQUIRED): New.
17819 (MULTILIB_OSDIRNAMES): New.
17821 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
17823 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
17824 * config/aarch64/aarch64-options-extensions.def: Update "fP",
17825 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
17826 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
17827 (AARCH64_FL_PAN): New.
17828 (AARCH64_FL_LOR): New.
17829 (AARCH64_FL_RDMA): New.
17830 (AARCH64_FL_FOR_ARCH8_1): New.
17831 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
17832 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
17834 2015-06-16 Martin Liska <mliska@suse.cz>
17836 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
17837 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
17840 2015-06-16 Richard Biener <rguenther@suse.de>
17842 * tree-vect-stmts.c (vectorizable_store): Adjust.
17843 (vectorizable_load): Likewise.
17844 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
17846 (vect_create_data_ref_ptr): Likewise.
17847 (bump_vector_ptr): Adjust.
17849 2015-06-16 Richard Biener <rguenther@suse.de>
17851 * tree-vect-stmts.c (vectorizable_load): Properly start loads
17852 with the first element if this is grouped loads.
17854 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
17856 * config/arm/arm-protos.h (struct tune_params): Rename
17857 log_op_non_sc to log_op_non_short_circuit, and rename enum
17858 values to expand SC to SHORT_CIRCUIT.
17859 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
17860 to LOG_OP_NON_SHORT_CIRCUIT.
17861 (arm_fastmul_tune):Likewise
17862 (arm_strongarm_tune): Likewise.
17863 (arm_xscale_tune): Likewise.
17864 (arm_9e_tune): Likewise.
17865 (arm_marvell_pj4_tune): Likewise.
17866 (arm_v6t2_tune): Likewise.
17867 (arm_cortex_tune): Likewise.
17868 (arm_cortex_a8_tune): Likewise.
17869 (arm_cortex_a7_tune): Likewise.
17870 (arm_cortex_a15_tune): Likewise.
17871 (arm_cortex_a53_tune): Likewise.
17872 (arm_cortex_a57_tune): Likewise.
17873 (arm_xgene1_tune): Likewise.
17874 (arm_cortex_a5_tune): Likewise.
17875 (arm_cortex_a9_tune): Likewise.
17876 (arm_cortex_a12_tune): Likewise.
17877 (arm_v7m_tune): Likewise.
17878 (arm_cortex_m7_tune): Likewise.
17879 (arm_v6m_tune): Likewise.
17880 (arm_fa726te_tune): Likewise.
17882 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
17884 * altivec.md: Delete UNSPEC_VMLADDUHM.
17885 (mulv4si3_p8): New pattern.
17886 (mulv4si3): Use it for POWER8.
17887 (mulv8hi3): Use vmladduhm with zero addend.
17888 (altivec_vmladduhm): Descriptive RTL.
17890 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
17892 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
17893 to use neon_move instead of mov_imm.
17894 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
17895 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
17897 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
17898 aarch64_float_const_zero_rtx_p check before TFmode check.
17899 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
17901 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
17902 code and attributes to match. Change condition from register_operand
17903 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
17904 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
17907 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
17910 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
17911 there is no parent.
17913 2015-06-14 Shiva Chen <shiva0217@gmail.com>
17915 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
17916 HOST_WIDE_INT parameter.
17918 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
17921 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
17922 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
17924 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
17926 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
17928 * rtl.h (classify_insn): Declare.
17929 * emit-rtl.c (classify_insn): Move to...
17930 * rtl.c: ...here and add generator support.
17931 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
17932 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
17933 * genemit.c (gen_emit_seq): New function.
17934 (gen_expand, gen_split): Use it.
17936 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
17938 * tree.c (make_vector_stat): Fix comment to state that the
17939 function returns a VECTOR_CST.
17941 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
17943 * gensupport.h (add_implicit_parallel): Declare.
17944 * genrecog.c (add_implicit_parallel): Move to...
17945 * gensupport.c (add_implicit_parallel): ...here.
17946 (process_one_cond_exec): Use it.
17947 * genemit.c (gen_insn): Likewise.
17949 2015-06-13 Iain Sandoe <iain@codesourcery.com>
17952 * passes.c (rest_of_decl_compilation): Do not register globals for
17953 early debug if they are declared in built-ins.
17955 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
17957 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
17959 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17961 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
17963 (noce_try_cmove_arith): Likewise.
17964 (noce_get_alt_condition): Likewise.
17966 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
17968 * common/config/i386/i386-common.c
17969 (OPTION_MASK_ISA_MWAITX_SET): New.
17970 (ix86_handle_option): Handle mwaitx.
17971 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
17972 (x86_64-*-*): Likewise.
17973 * config/i386/mwaitxintrin.h: New header.
17974 * config/i386/cpuid.h (bit_MWAITX): Define.
17975 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17977 * config/i386/i386.opt (mwaitx): New.
17978 * config/i386/i386-builtin-types.def
17979 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
17980 * config/i386/i386-c.c: Define __MWAITX__ if needed.
17981 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
17983 (ix86_option_override_internal): Handle new option.
17984 (processor_alias_table): Added PTA_MWAITX.
17985 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
17986 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
17987 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
17988 IX86_BUILTIN_MONITORX built-ins.
17989 * config/i386/i386.h (TARGET_MWAITX): New.
17990 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
17992 (mwaitx): New pattern.
17993 (monitorx_<mode>): New pattern.
17994 * config/i386/x86intrin.h: Include mwaitxintrin.h.
17995 * doc/extend.texi: Document monitorx and mwaitx builtins.
17996 * doc/invoke.texi: Document -mmwaitx option.
17998 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
18000 * emit-rtl.c (need_atomic_barrier_p): Mask model with
18001 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
18003 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
18005 * dbxout.c (xcoff_debug_hooks): Provide a function for
18006 register_main_translation_unit hook.
18008 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
18010 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
18011 variants cases from switch.
18012 (rs6000_post_atomic_barrier): Same.
18013 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
18014 (rs6000_expand_atomic_exchange): Same.
18015 (rs6000_expand_atomic_op): Same.
18016 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
18017 SYNC variants cases from switch.
18018 (atomic_load): Same.
18019 (atomic_store): Same.
18021 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
18023 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
18024 CONST_INT for goto.
18026 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
18029 * dwarf2out.c (check_die): Check for common duplicate attributes.
18030 (add_location_or_const_value_attribute): Do not add duplicate
18032 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
18034 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
18035 (gen_type_die_with_usage): Call check_die.
18036 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
18038 2015-06-11 Jason Merrill <jason@redhat.com>
18040 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
18043 2015-06-11 Marek Polacek <polacek@redhat.com>
18045 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
18047 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
18050 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
18051 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
18052 (*addx_extend_sp32): Fix pasto.
18053 (*subx_extend): Rename into...
18054 (*subx_extend_sp32): ...this.
18055 (*adddi3_extend_sp32): Add earlyclobber.
18056 (*subdi3_insn_sp32): Likewise.
18057 (*subdi3_extend_sp32): Likewise.
18058 (*and_not_di_sp32): Likewise.
18059 (*or_not_di_sp32): Likewise.
18060 (*xor_not_di_sp32): Likewise.
18061 (*negdi2_sp32): Likewise.
18062 (*one_cmpldi2_sp32): Likewise.
18064 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
18066 * debug.h (struct gcc_debug_hooks): Add a
18067 register_main_translation_unit hook.
18068 * debug.c (do_nothing_debug_hooks): Provide a function for this
18070 * dbxout.c (dbx_debug_hooks): Likewise.
18071 * sdbout.c (sdb_debug_hooks): Likewise.
18072 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
18073 * dwarf2out.c (main_translation_unit): New global variable.
18074 (dwarf2out_register_main_translation_unit): New function
18075 implementing the new hook.
18076 (dwarf2_debug_hooks): Assign
18077 dwarf2out_register_main_translation_unit to this new hook.
18078 (dwarf2out_init): Associate any main translation unit to
18081 2015-06-11 Marek Polacek <polacek@redhat.com>
18083 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
18085 2015-06-11 Marek Polacek <polacek@redhat.com>
18087 * match.pd: Use single_use throughout.
18089 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18091 * config/arm/arm.c (arm_option_params_internal): When optimising
18092 for speed set max_insns_skipped when arm_restrict_it.
18094 2015-06-11 Christian Bruel <christian.bruel@st.com>
18097 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
18099 (arm_cpu_builtins): New function.
18100 (arm_pragma_target_parse): Call arm_cpu_builtins.
18101 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
18102 (arm_register_target_pragmas): Likewise.
18103 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
18104 Call arm_register_target_pragmas.
18105 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
18106 (arm_pragma_target_parse): Likewise.
18108 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
18110 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
18111 of the second operand.
18113 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
18116 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
18117 to prepare mask operand for AVX512 modes.
18119 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
18122 * doc/md.texi (Machine Constraints): Document that on the PowerPC
18123 if you use a constraint that targets a VSX register, you must use
18124 %x<n> in the template.
18126 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
18128 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
18129 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
18130 (define_insn "trap"): New definition.
18132 2015-06-10 Richard Biener <rguenther@suse.de>
18134 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
18136 (vect_supported_load_permutation_p): ... here. Handle
18137 supportable permutations in reductions.
18138 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
18139 for vectorizing strided group loads.
18141 2015-06-10 Jakub Jelinek <jakub@redhat.com>
18144 * config/i386/i386.c (ix86_split_long_move): For collisions
18145 involving direct tls segment refs, move the UNSPEC_TP possibly
18146 wrapped in ZERO_EXTEND out of the address for lea, to each of
18149 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18151 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
18152 dmb sy. Adjust tabs.
18154 2015-06-10 Tom de Vries <tom@codesourcery.com>
18156 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
18158 2015-06-10 Martin Liska <mliska@suse.cz>
18161 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
18162 all enum values in mem_alloc_origin.
18163 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
18165 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
18166 * bitmap.c (bitmap_register): Likewise.
18167 (dump_bitmap_statistics): Likewise.
18168 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
18169 (ggc_record_overhead): Likewise.
18170 * hash-map.h: Likewise.
18171 * hash-set.h: Likewise.
18172 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
18173 * hash-table.h: Likewise.
18174 * vec.c (vec_prefix::register_overhead): Likewise.
18175 (vec_prefix::release_overhead): Likewise.
18176 (dump_vec_loc_statistics): Likewise.
18178 2015-06-09 Christian Bruel <christian.bruel@st.com>
18181 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
18182 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
18183 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
18184 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
18185 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
18186 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
18187 (arm_valid_target_attribute_p): Likewise.
18188 (arm_set_current_function, arm_can_inline_p): Likewise.
18189 (arm_valid_target_attribute_rec): Likewise.
18190 (arm_previous_fndecl): New variable.
18191 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
18192 (TARGET_CAN_INLINE_P): Define.
18193 (arm_asm_trampoline_template): Emit mode.
18194 (arm_file_start): Don't set unified syntax.
18195 (arm_declare_function_name): Set unified syntax and mode.
18196 (arm_option_override): Init target_option_default_node.
18197 and target_option_current_node.
18198 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
18199 (*call_symbol): Likewise.
18200 * doc/extend.texi: Document ARM/Thumb target attribute.
18201 * doc/invoke.texi: Likewise.
18203 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18206 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18207 PR rtl-optimization/64164
18208 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18209 * tree-ssa-copyrename.c: Removed.
18210 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18211 -ftree-coalesce-vars.
18212 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18213 * common.opt (ftree-copyrename): Ignore.
18214 (ftree-coalesce-inlined-vars): Likewise.
18215 * doc/invoke.texi: Remove the ignored options above.
18216 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18217 * tree-ssa-coalesce.h: ... here.
18218 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18219 headers required by it.
18220 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18221 across variables when flag_tree_coalesce_vars. Check register
18222 use and promoted modes to allow coalescing. Moved to
18223 tree-ssa-coalesce.c.
18224 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18225 with its member functions to tree-ssa-coalesce.c.
18226 (var_map_base_init): Likewise. Renamed to
18227 compute_samebase_partition_bases.
18228 (partition_view_normal): Drop want_bases parameter.
18229 (partition_view_bitmap): Likewise.
18230 * tree-ssa-live.h: Adjust declarations.
18231 * tree-ssa-coalesce.c: Include explow.h.
18232 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18233 default defs at the entry point.
18234 (dump_part_var_map): New.
18235 (compute_optimized_partition_bases): New, called by...
18236 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18237 of compute_samebase_partition_bases. Adjust.
18238 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18239 * cfgexpand.c (leader_merge): New.
18240 (get_rtl_for_parm_ssa_default_def): New.
18241 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18242 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18243 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18244 redundant MEM attr setting.
18245 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18247 (expand_one_stack_var): ... this. New wrapper to check and
18248 skip already expanded SSA partitions.
18249 (record_alignment_for_reg_var): New, factored out of...
18250 (expand_one_var): ... this.
18251 (expand_one_ssa_partition): New.
18252 (adjust_one_expanded_partition_var): New.
18253 (expand_one_register_var): Check and skip already expanded SSA
18255 (expand_used_vars): Don't create DECLs for anonymous SSA
18256 names. Expand all SSA partitions, then adjust all SSA names.
18257 (pass::execute): Replace the loops that set
18258 SA.partition_to_pseudo from partition leaders and cleared
18259 DECL_RTL for multi-location variables, and that which used to
18260 rename vars and set attrs, with one that clears DECL_RTL and
18261 checks that PARMs and RESULTs default_defs match DECL_RTL.
18262 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18263 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18264 * explow.c (promote_ssa_mode): New.
18265 * explow.h (promote_ssa_mode): Declare.
18266 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18267 * function.c: Include cfgexpand.h.
18268 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18269 (use_register_for_parm_decl): Wrapper for the above to
18270 special-case the result_ptr.
18271 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18272 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18273 multiple locations.
18274 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18275 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18276 (assign_parm_setup_block): Prefer SSA-assigned location.
18277 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18278 if stack_parm is NULL.
18279 (assign_parm_setup_stack): Prefer SSA-assigned location.
18280 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18281 rtl before testing for pointer bounds. Special-case result_ptr.
18282 (expand_function_start): Maybe reset DECL_RTL of result.
18283 Prefer SSA-assigned location for result and static chain.
18284 Factor out DECL_RESULT and SET_DECL_RTL.
18285 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18286 anonymous SSA names. Use promote_ssa_mode.
18287 (get_temp_reg): Likewise.
18288 (remove_ssa_form): Adjust.
18289 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18290 and get its reg_usage for reg invalidation.
18291 (compute_bb_dataflow): Pass it insn.
18292 (emit_notes_in_bb): Likewise.
18293 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
18294 fail assert on conversion between unsigned types.
18296 2015-06-09 Tom de Vries <tom@codesourcery.com>
18298 PR tree-optimization/65460
18299 * omp-low.c (expand_omp_target): Set parallelized_function on
18300 cgraph_node for child_fn.
18302 2015-06-09 Tom de Vries <tom@codesourcery.com>
18304 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
18305 parallelized_function before add_new_function.
18307 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
18309 * gcc-plugin.h: Move decls to plugin.h and include it.
18310 * plugin.h: Relocate decls from gcc-plugin.h
18311 * ggc-page.c: Include required header files.
18312 * passes.c: Likewise.
18313 * cgraphunit.c: Likewise.
18315 2015-06-09 Tom de Vries <tom@codesourcery.com>
18317 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
18319 2015-06-09 Jason Merrill <jason@redhat.com>
18322 * toplev.c (check_global_declaration): Don't warn about a clone.
18324 2015-06-09 Marek Polacek <polacek@redhat.com>
18326 PR tree-optimization/66299
18327 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
18328 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
18331 2015-06-09 Richard Biener <rguenther@suse.de>
18333 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
18334 (vect_analyze_slp_instance): Instead do not falsely drop
18337 2015-06-09 Richard Biener <rguenther@suse.de>
18339 PR middle-end/66423
18340 * match.pd: Handle A % (unsigned)(1 << B).
18342 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
18344 * varasm.c (output_object_block_htab): Remove.
18345 (output_object_block_compare): New.
18346 (output_object_blocks): Sort named object_blocks before outputting
18349 2015-06-09 Richard Biener <rguenther@suse.de>
18351 PR tree-optimization/66419
18352 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
18353 consider GROUP_GAP when detecting a perfect subchain.
18355 2015-06-09 Nick Clifton <nickc@redhat.com>
18357 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
18358 place read only data in the .frodata section.
18360 2015-06-09 Shiva Chen <shiva0217@gmail.com>
18362 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
18363 (atomic_store<mode>): Likewise.
18365 2015-06-09 Richard Biener <rguenther@suse.de>
18367 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
18369 2015-06-09 Richard Biener <rguenther@suse.de>
18371 PR middle-end/66413
18372 * tree-inline.c (insert_init_debug_bind): Unshare value.
18374 2015-06-09 Richard Biener <rguenther@suse.de>
18376 PR tree-optimization/66396
18377 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
18378 Rename virtual operands.
18380 2015-06-09 Tom de Vries <tom@codesourcery.com>
18382 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
18383 always return false.
18385 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18387 PR rtl-optimization/64164
18388 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18389 * tree-ssa-copyrename.c: Removed.
18390 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18391 -ftree-coalesce-vars.
18392 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18393 * common.opt (ftree-copyrename): Ignore.
18394 (ftree-coalesce-inlined-vars): Likewise.
18395 * doc/invoke.texi: Remove the ignored options above.
18396 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18397 * tree-ssa-coalesce.h: ... here.
18398 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18399 headers required by it.
18400 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18401 across variables when flag_tree_coalesce_vars. Check register
18402 use and promoted modes to allow coalescing. Moved to
18403 tree-ssa-coalesce.c.
18404 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18405 with its member functions to tree-ssa-coalesce.c.
18406 (var_map_base_init): Likewise. Renamed to
18407 compute_samebase_partition_bases.
18408 (partition_view_normal): Drop want_bases parameter.
18409 (partition_view_bitmap): Likewise.
18410 * tree-ssa-live.h: Adjust declarations.
18411 * tree-ssa-coalesce.c: Include explow.h.
18412 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18413 default defs at the entry point.
18414 (dump_part_var_map): New.
18415 (compute_optimized_partition_bases): New, called by...
18416 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18417 of compute_samebase_partition_bases. Adjust.
18418 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18419 * cfgexpand.c (leader_merge): New.
18420 (get_rtl_for_parm_ssa_default_def): New.
18421 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18422 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18423 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18424 redundant MEM attr setting.
18425 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18427 (expand_one_stack_var): ... this. New wrapper to check and
18428 skip already expanded SSA partitions.
18429 (record_alignment_for_reg_var): New, factored out of...
18430 (expand_one_var): ... this.
18431 (expand_one_ssa_partition): New.
18432 (adjust_one_expanded_partition_var): New.
18433 (expand_one_register_var): Check and skip already expanded SSA
18435 (expand_used_vars): Don't create DECLs for anonymous SSA
18436 names. Expand all SSA partitions, then adjust all SSA names.
18437 (pass::execute): Replace the loops that set
18438 SA.partition_to_pseudo from partition leaders and cleared
18439 DECL_RTL for multi-location variables, and that which used to
18440 rename vars and set attrs, with one that clears DECL_RTL and
18441 checks that PARMs and RESULTs default_defs match DECL_RTL.
18442 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18443 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18444 * explow.c (promote_ssa_mode): New.
18445 * explow.h (promote_ssa_mode): Declare.
18446 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18447 * function.c: Include cfgexpand.h.
18448 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18449 (use_register_for_parm_decl): Wrapper for the above to
18450 special-case the result_ptr.
18451 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18452 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18453 multiple locations.
18454 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18455 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18456 (assign_parm_setup_block): Prefer SSA-assigned location.
18457 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18458 if stack_parm is NULL.
18459 (assign_parm_setup_stack): Prefer SSA-assigned location.
18460 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18461 rtl before testing for pointer bounds. Special-case result_ptr.
18462 (expand_function_start): Maybe reset DECL_RTL of result.
18463 Prefer SSA-assigned location for result and static chain.
18464 Factor out DECL_RESULT and SET_DECL_RTL.
18465 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18466 anonymous SSA names. Use promote_ssa_mode.
18467 (get_temp_reg): Likewise.
18468 (remove_ssa_form): Adjust.
18469 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18470 and get its reg_usage for reg invalidation.
18471 (compute_bb_dataflow): Pass it insn.
18472 (emit_notes_in_bb): Likewise.
18473 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
18474 fail assert on conversion between unsigned types.
18476 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18479 * tree-inline.c (reset_debug_binding): New.
18480 (reset_debug_bindings): Likewise.
18481 (expand_call_inline): Call it.
18483 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
18485 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
18488 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
18490 * lto-streamer-out.c (lto_output_location): Stream
18491 reserved locations correctly.
18492 * lto-streamer-in.c (lto_output_location): Likewise.
18494 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
18496 * coretypes.h: Include hash-table.h and hash-set.h for host files.
18497 * ggc.h: Don't include statistics.h>
18498 * hash-map.h: Remove all includes.
18499 * hash-set.h: Likewise.
18500 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
18501 the include list. Remove <new>.
18502 * inchash.h: Remove all includes.
18503 * mem-stats.h: Likewise.
18504 * vec.h: No special processing for generators or ggc.
18505 * alias.c : Adjust include files.
18506 * alloc-pool.c : Likewise.
18507 * alloc-pool.h : Likewise.
18508 * asan.c : Likewise.
18509 * attribs.c : Likewise.
18510 * auto-inc-dec.c : Likewise.
18511 * auto-profile.c : Likewise.
18512 * bb-reorder.c : Likewise.
18513 * bitmap.c : Likewise.
18514 * bitmap.h : Likewise.
18515 * bt-load.c : Likewise.
18516 * builtins.c : Likewise.
18517 * caller-save.c : Likewise.
18518 * calls.c : Likewise.
18519 * ccmp.c : Likewise.
18520 * cfg.c : Likewise.
18521 * cfganal.c : Likewise.
18522 * cfgbuild.c : Likewise.
18523 * cfgcleanup.c : Likewise.
18524 * cfgexpand.c : Likewise.
18525 * cfghooks.c : Likewise.
18526 * cfgloop.c : Likewise.
18527 * cfgloop.h : Likewise.
18528 * cfgloopanal.c : Likewise.
18529 * cfgloopmanip.c : Likewise.
18530 * cfgrtl.c : Likewise.
18531 * cgraph.c : Likewise.
18532 * cgraphbuild.c : Likewise.
18533 * cgraphclones.c : Likewise.
18534 * cgraphunit.c : Likewise.
18535 * cilk-common.c : Likewise.
18536 * combine-stack-adj.c : Likewise.
18537 * combine.c : Likewise.
18538 * compare-elim.c : Likewise.
18539 * context.c : Likewise.
18540 * convert.c : Likewise.
18541 * coverage.c : Likewise.
18542 * cppbuiltin.c : Likewise.
18543 * cprop.c : Likewise.
18544 * cse.c : Likewise.
18545 * cselib.c : Likewise.
18546 * data-streamer-in.c : Likewise.
18547 * data-streamer-out.c : Likewise.
18548 * data-streamer.c : Likewise.
18549 * data-streamer.h : Likewise.
18550 * dbxout.c : Likewise.
18551 * dce.c : Likewise.
18552 * ddg.c : Likewise.
18553 * debug.c : Likewise.
18554 * df-core.c : Likewise.
18555 * df-problems.c : Likewise.
18556 * df-scan.c : Likewise.
18558 * dfp.c : Likewise.
18559 * dojump.c : Likewise.
18560 * dominance.c : Likewise.
18561 * domwalk.c : Likewise.
18562 * double-int.c : Likewise.
18563 * dse.c : Likewise.
18564 * dumpfile.c : Likewise.
18565 * dwarf2asm.c : Likewise.
18566 * dwarf2cfi.c : Likewise.
18567 * dwarf2out.c : Likewise.
18568 * emit-rtl.c : Likewise.
18569 * et-forest.c : Likewise.
18570 * except.c : Likewise.
18571 * except.h : Likewise.
18572 * explow.c : Likewise.
18573 * expmed.c : Likewise.
18574 * expr.c : Likewise.
18575 * final.c : Likewise.
18576 * fixed-value.c : Likewise.
18577 * fold-const.c : Likewise.
18578 * function.c : Likewise.
18579 * fwprop.c : Likewise.
18580 * gcc-plugin.h : Likewise.
18581 * gcc.c : Likewise.
18582 * gcse-common.c : Likewise.
18583 * gcse.c : Likewise.
18584 * genattrtab.c : Likewise.
18585 * genautomata.c : Likewise.
18586 * genconditions.c : Likewise.
18587 * genemit.c : Likewise.
18588 * generic-match-head.c : Likewise.
18589 * genextract.c : Likewise.
18590 * gengtype-state.c : Likewise.
18591 * gengtype.c : Likewise.
18592 * genhooks.c : Likewise.
18593 * genmatch.c : Likewise.
18594 * genmodes.c : Likewise.
18595 * genrecog.c : Likewise.
18596 * gensupport.c : Likewise.
18597 * ggc-common.c : Likewise.
18598 * ggc-internal.h : Likewise.
18599 * ggc-none.c : Likewise.
18600 * ggc-page.c : Likewise.
18601 * gimple-builder.c : Likewise.
18602 * gimple-expr.c : Likewise.
18603 * gimple-fold.c : Likewise.
18604 * gimple-iterator.c : Likewise.
18605 * gimple-low.c : Likewise.
18606 * gimple-match-head.c : Likewise.
18607 * gimple-pretty-print.c : Likewise.
18608 * gimple-ssa-isolate-paths.c : Likewise.
18609 * gimple-ssa-strength-reduction.c : Likewise.
18610 * gimple-ssa.h : Likewise.
18611 * gimple-streamer-in.c : Likewise.
18612 * gimple-streamer-out.c : Likewise.
18613 * gimple-streamer.h : Likewise.
18614 * gimple-walk.c : Likewise.
18615 * gimple.c : Likewise.
18616 * gimplify-me.c : Likewise.
18617 * gimplify.c : Likewise.
18618 * godump.c : Likewise.
18619 * graph.c : Likewise.
18620 * graphds.c : Likewise.
18621 * graphite-blocking.c : Likewise.
18622 * graphite-dependences.c : Likewise.
18623 * graphite-interchange.c : Likewise.
18624 * graphite-isl-ast-to-gimple.c : Likewise.
18625 * graphite-optimize-isl.c : Likewise.
18626 * graphite-poly.c : Likewise.
18627 * graphite-scop-detection.c : Likewise.
18628 * graphite-sese-to-poly.c : Likewise.
18629 * graphite.c : Likewise.
18630 * haifa-sched.c : Likewise.
18631 * hard-reg-set.h : Likewise.
18632 * hw-doloop.c : Likewise.
18633 * ifcvt.c : Likewise.
18634 * inchash.c : Likewise.
18635 * incpath.c : Likewise.
18636 * init-regs.c : Likewise.
18637 * input.c : Likewise.
18638 * internal-fn.c : Likewise.
18639 * ipa-chkp.c : Likewise.
18640 * ipa-comdats.c : Likewise.
18641 * ipa-cp.c : Likewise.
18642 * ipa-devirt.c : Likewise.
18643 * ipa-icf-gimple.c : Likewise.
18644 * ipa-icf.c : Likewise.
18645 * ipa-inline-analysis.c : Likewise.
18646 * ipa-inline-transform.c : Likewise.
18647 * ipa-inline.c : Likewise.
18648 * ipa-polymorphic-call.c : Likewise.
18649 * ipa-profile.c : Likewise.
18650 * ipa-prop.c : Likewise.
18651 * ipa-pure-const.c : Likewise.
18652 * ipa-ref.c : Likewise.
18653 * ipa-reference.c : Likewise.
18654 * ipa-split.c : Likewise.
18655 * ipa-utils.c : Likewise.
18656 * ipa-visibility.c : Likewise.
18657 * ipa.c : Likewise.
18658 * ira-build.c : Likewise.
18659 * ira-color.c : Likewise.
18660 * ira-conflicts.c : Likewise.
18661 * ira-costs.c : Likewise.
18662 * ira-emit.c : Likewise.
18663 * ira-lives.c : Likewise.
18664 * ira.c : Likewise.
18665 * jump.c : Likewise.
18666 * langhooks.c : Likewise.
18667 * lcm.c : Likewise.
18668 * libfuncs.h : Likewise.
18669 * lists.c : Likewise.
18670 * loop-doloop.c : Likewise.
18671 * loop-init.c : Likewise.
18672 * loop-invariant.c : Likewise.
18673 * loop-iv.c : Likewise.
18674 * loop-unroll.c : Likewise.
18675 * lower-subreg.c : Likewise.
18676 * lra-assigns.c : Likewise.
18677 * lra-coalesce.c : Likewise.
18678 * lra-constraints.c : Likewise.
18679 * lra-eliminations.c : Likewise.
18680 * lra-lives.c : Likewise.
18681 * lra-remat.c : Likewise.
18682 * lra-spills.c : Likewise.
18683 * lra.c : Likewise.
18684 * lto-cgraph.c : Likewise.
18685 * lto-compress.c : Likewise.
18686 * lto-opts.c : Likewise.
18687 * lto-section-in.c : Likewise.
18688 * lto-section-out.c : Likewise.
18689 * lto-streamer-in.c : Likewise.
18690 * lto-streamer-out.c : Likewise.
18691 * lto-streamer.c : Likewise.
18692 * lto-streamer.h : Likewise.
18693 * mcf.c : Likewise.
18694 * mode-switching.c : Likewise.
18695 * modulo-sched.c : Likewise.
18696 * omega.c : Likewise.
18697 * omp-low.c : Likewise.
18698 * optabs.c : Likewise.
18699 * opts-global.c : Likewise.
18700 * opts.h : Likewise.
18701 * passes.c : Likewise.
18702 * plugin.c : Likewise.
18703 * postreload-gcse.c : Likewise.
18704 * postreload.c : Likewise.
18705 * predict.c : Likewise.
18706 * print-rtl.c : Likewise.
18707 * print-tree.c : Likewise.
18708 * profile.c : Likewise.
18709 * read-md.c : Likewise.
18710 * read-md.h : Likewise.
18711 * read-rtl.c : Likewise.
18712 * real.c : Likewise.
18713 * realmpfr.c : Likewise.
18714 * recog.c : Likewise.
18715 * ree.c : Likewise.
18716 * reg-stack.c : Likewise.
18717 * regcprop.c : Likewise.
18718 * reginfo.c : Likewise.
18719 * regrename.c : Likewise.
18720 * regstat.c : Likewise.
18721 * reload.c : Likewise.
18722 * reload1.c : Likewise.
18723 * reorg.c : Likewise.
18724 * resource.c : Likewise.
18725 * rtl-chkp.c : Likewise.
18726 * rtl.c : Likewise.
18727 * rtl.h : Likewise.
18728 * rtlanal.c : Likewise.
18729 * rtlhash.c : Likewise.
18730 * rtlhash.h : Likewise.
18731 * rtlhooks.c : Likewise.
18732 * sanopt.c : Likewise.
18733 * sched-deps.c : Likewise.
18734 * sched-ebb.c : Likewise.
18735 * sched-rgn.c : Likewise.
18736 * sched-vis.c : Likewise.
18737 * sdbout.c : Likewise.
18738 * sel-sched-dump.c : Likewise.
18739 * sel-sched-ir.c : Likewise.
18740 * sel-sched-ir.h : Likewise.
18741 * sel-sched.c : Likewise.
18742 * sese.c : Likewise.
18743 * shrink-wrap.c : Likewise.
18744 * shrink-wrap.h : Likewise.
18745 * simplify-rtx.c : Likewise.
18746 * stack-ptr-mod.c : Likewise.
18747 * statistics.c : Likewise.
18748 * stmt.c : Likewise.
18749 * stor-layout.c : Likewise.
18750 * store-motion.c : Likewise.
18751 * stringpool.c : Likewise.
18752 * symtab.c : Likewise.
18753 * target-globals.c : Likewise.
18754 * targhooks.c : Likewise.
18755 * tlink.c : Likewise.
18756 * toplev.c : Likewise.
18757 * tracer.c : Likewise.
18758 * trans-mem.c : Likewise.
18759 * tree-affine.c : Likewise.
18760 * tree-affine.h : Likewise.
18761 * tree-browser.c : Likewise.
18762 * tree-call-cdce.c : Likewise.
18763 * tree-cfg.c : Likewise.
18764 * tree-cfgcleanup.c : Likewise.
18765 * tree-chkp-opt.c : Likewise.
18766 * tree-chkp.c : Likewise.
18767 * tree-chrec.c : Likewise.
18768 * tree-complex.c : Likewise.
18769 * tree-data-ref.c : Likewise.
18770 * tree-dfa.c : Likewise.
18771 * tree-diagnostic.c : Likewise.
18772 * tree-dump.c : Likewise.
18773 * tree-eh.c : Likewise.
18774 * tree-eh.h : Likewise.
18775 * tree-emutls.c : Likewise.
18776 * tree-hasher.h : Likewise.
18777 * tree-if-conv.c : Likewise.
18778 * tree-inline.c : Likewise.
18779 * tree-inline.h : Likewise.
18780 * tree-into-ssa.c : Likewise.
18781 * tree-iterator.c : Likewise.
18782 * tree-loop-distribution.c : Likewise.
18783 * tree-nested.c : Likewise.
18784 * tree-nrv.c : Likewise.
18785 * tree-object-size.c : Likewise.
18786 * tree-outof-ssa.c : Likewise.
18787 * tree-parloops.c : Likewise.
18788 * tree-phinodes.c : Likewise.
18789 * tree-predcom.c : Likewise.
18790 * tree-pretty-print.c : Likewise.
18791 * tree-profile.c : Likewise.
18792 * tree-scalar-evolution.c : Likewise.
18793 * tree-sra.c : Likewise.
18794 * tree-ssa-address.c : Likewise.
18795 * tree-ssa-alias.c : Likewise.
18796 * tree-ssa-ccp.c : Likewise.
18797 * tree-ssa-coalesce.c : Likewise.
18798 * tree-ssa-copy.c : Likewise.
18799 * tree-ssa-copyrename.c : Likewise.
18800 * tree-ssa-dce.c : Likewise.
18801 * tree-ssa-dom.c : Likewise.
18802 * tree-ssa-dse.c : Likewise.
18803 * tree-ssa-forwprop.c : Likewise.
18804 * tree-ssa-ifcombine.c : Likewise.
18805 * tree-ssa-live.c : Likewise.
18806 * tree-ssa-loop-ch.c : Likewise.
18807 * tree-ssa-loop-im.c : Likewise.
18808 * tree-ssa-loop-ivcanon.c : Likewise.
18809 * tree-ssa-loop-ivopts.c : Likewise.
18810 * tree-ssa-loop-manip.c : Likewise.
18811 * tree-ssa-loop-niter.c : Likewise.
18812 * tree-ssa-loop-prefetch.c : Likewise.
18813 * tree-ssa-loop-unswitch.c : Likewise.
18814 * tree-ssa-loop.c : Likewise.
18815 * tree-ssa-math-opts.c : Likewise.
18816 * tree-ssa-operands.c : Likewise.
18817 * tree-ssa-phiopt.c : Likewise.
18818 * tree-ssa-phiprop.c : Likewise.
18819 * tree-ssa-pre.c : Likewise.
18820 * tree-ssa-propagate.c : Likewise.
18821 * tree-ssa-reassoc.c : Likewise.
18822 * tree-ssa-sccvn.c : Likewise.
18823 * tree-ssa-scopedtables.c : Likewise.
18824 * tree-ssa-sink.c : Likewise.
18825 * tree-ssa-strlen.c : Likewise.
18826 * tree-ssa-structalias.c : Likewise.
18827 * tree-ssa-tail-merge.c : Likewise.
18828 * tree-ssa-ter.c : Likewise.
18829 * tree-ssa-threadedge.c : Likewise.
18830 * tree-ssa-threadupdate.c : Likewise.
18831 * tree-ssa-uncprop.c : Likewise.
18832 * tree-ssa-uninit.c : Likewise.
18833 * tree-ssa.c : Likewise.
18834 * tree-ssanames.c : Likewise.
18835 * tree-stdarg.c : Likewise.
18836 * tree-streamer-in.c : Likewise.
18837 * tree-streamer-out.c : Likewise.
18838 * tree-streamer.c : Likewise.
18839 * tree-streamer.h : Likewise.
18840 * tree-switch-conversion.c : Likewise.
18841 * tree-tailcall.c : Likewise.
18842 * tree-vect-data-refs.c : Likewise.
18843 * tree-vect-generic.c : Likewise.
18844 * tree-vect-loop-manip.c : Likewise.
18845 * tree-vect-loop.c : Likewise.
18846 * tree-vect-patterns.c : Likewise.
18847 * tree-vect-slp.c : Likewise.
18848 * tree-vect-stmts.c : Likewise.
18849 * tree-vectorizer.c : Likewise.
18850 * tree-vectorizer.h : Likewise.
18851 * tree-vrp.c : Likewise.
18852 * tree.c : Likewise.
18853 * tsan.c : Likewise.
18854 * ubsan.c : Likewise.
18855 * valtrack.c : Likewise.
18856 * valtrack.h : Likewise.
18857 * value-prof.c : Likewise.
18858 * var-tracking.c : Likewise.
18859 * varasm.c : Likewise.
18860 * varpool.c : Likewise.
18862 * vmsdbgout.c : Likewise.
18863 * vtable-verify.c : Likewise.
18864 * vtable-verify.h : Likewise.
18865 * web.c : Likewise.
18866 * wide-int.cc : Likewise.
18867 * xcoffout.c : Likewise.
18868 * config/aarch64/aarch64-builtins.c : Likewise.
18869 * config/aarch64/aarch64.c : Likewise.
18870 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
18871 * config/alpha/alpha.c : Likewise.
18872 * config/arc/arc.c : Likewise.
18873 * config/arm/aarch-common.c : Likewise.
18874 * config/arm/arm-builtins.c : Likewise.
18875 * config/arm/arm-c.c : Likewise.
18876 * config/arm/arm.c : Likewise.
18877 * config/avr/avr-c.c : Likewise.
18878 * config/avr/avr-log.c : Likewise.
18879 * config/avr/avr.c : Likewise.
18880 * config/bfin/bfin.c : Likewise.
18881 * config/c6x/c6x.c : Likewise.
18882 * config/cr16/cr16.c : Likewise.
18883 * config/cris/cris.c : Likewise.
18884 * config/darwin-c.c : Likewise.
18885 * config/darwin.c : Likewise.
18886 * config/default-c.c : Likewise.
18887 * config/epiphany/epiphany.c : Likewise.
18888 * config/epiphany/mode-switch-use.c : Likewise.
18889 * config/epiphany/resolve-sw-modes.c : Likewise.
18890 * config/fr30/fr30.c : Likewise.
18891 * config/frv/frv.c : Likewise.
18892 * config/ft32/ft32.c : Likewise.
18893 * config/glibc-c.c : Likewise.
18894 * config/h8300/h8300.c : Likewise.
18895 * config/i386/i386-c.c : Likewise.
18896 * config/i386/i386.c : Likewise.
18897 * config/i386/msformat-c.c : Likewise.
18898 * config/i386/winnt-cxx.c : Likewise.
18899 * config/i386/winnt-stubs.c : Likewise.
18900 * config/i386/winnt.c : Likewise.
18901 * config/ia64/ia64-c.c : Likewise.
18902 * config/ia64/ia64.c : Likewise.
18903 * config/iq2000/iq2000.c : Likewise.
18904 * config/lm32/lm32.c : Likewise.
18905 * config/m32c/m32c-pragma.c : Likewise.
18906 * config/m32c/m32c.c : Likewise.
18907 * config/m32r/m32r.c : Likewise.
18908 * config/m68k/m68k.c : Likewise.
18909 * config/mcore/mcore.c : Likewise.
18910 * config/mep/mep-pragma.c : Likewise.
18911 * config/mep/mep.c : Likewise.
18912 * config/microblaze/microblaze-c.c : Likewise.
18913 * config/microblaze/microblaze.c : Likewise.
18914 * config/mips/mips.c : Likewise.
18915 * config/mmix/mmix.c : Likewise.
18916 * config/mn10300/mn10300.c : Likewise.
18917 * config/moxie/moxie.c : Likewise.
18918 * config/msp430/msp430-c.c : Likewise.
18919 * config/msp430/msp430.c : Likewise.
18920 * config/nds32/nds32-cost.c : Likewise.
18921 * config/nds32/nds32-fp-as-gp.c : Likewise.
18922 * config/nds32/nds32-intrinsic.c : Likewise.
18923 * config/nds32/nds32-isr.c : Likewise.
18924 * config/nds32/nds32-md-auxiliary.c : Likewise.
18925 * config/nds32/nds32-memory-manipulation.c : Likewise.
18926 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
18927 * config/nds32/nds32-predicates.c : Likewise.
18928 * config/nds32/nds32.c : Likewise.
18929 * config/nios2/nios2.c : Likewise.
18930 * config/nvptx/nvptx.c : Likewise.
18931 * config/pa/pa.c : Likewise.
18932 * config/pdp11/pdp11.c : Likewise.
18933 * config/rl78/rl78-c.c : Likewise.
18934 * config/rl78/rl78.c : Likewise.
18935 * config/rs6000/rs6000-c.c : Likewise.
18936 * config/rs6000/rs6000.c : Likewise.
18937 * config/rx/rx.c : Likewise.
18938 * config/s390/s390-c.c : Likewise.
18939 * config/s390/s390.c : Likewise.
18940 * config/sh/sh-c.c : Likewise.
18941 * config/sh/sh-mem.cc : Likewise.
18942 * config/sh/sh.c : Likewise.
18943 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
18944 * config/sh/sh_treg_combine.cc : Likewise.
18945 * config/sol2-c.c : Likewise.
18946 * config/sol2-cxx.c : Likewise.
18947 * config/sol2-stubs.c : Likewise.
18948 * config/sol2.c : Likewise.
18949 * config/sparc/sparc-c.c : Likewise.
18950 * config/sparc/sparc.c : Likewise.
18951 * config/spu/spu-c.c : Likewise.
18952 * config/spu/spu.c : Likewise.
18953 * config/stormy16/stormy16.c : Likewise.
18954 * config/tilegx/mul-tables.c : Likewise.
18955 * config/tilegx/tilegx-c.c : Likewise.
18956 * config/tilegx/tilegx.c : Likewise.
18957 * config/tilepro/mul-tables.c : Likewise.
18958 * config/tilepro/tilepro-c.c : Likewise.
18959 * config/tilepro/tilepro.c : Likewise.
18960 * config/v850/v850-c.c : Likewise.
18961 * config/v850/v850.c : Likewise.
18962 * config/vax/vax.c : Likewise.
18963 * config/visium/visium.c : Likewise.
18964 * config/vms/vms-c.c : Likewise.
18965 * config/vms/vms.c : Likewise.
18966 * config/vxworks.c : Likewise.
18967 * config/winnt-c.c : Likewise.
18968 * config/xtensa/xtensa.c : Likewise.
18970 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
18973 * ipa-utils.h (warn_types_mismatch): Update prototype.
18974 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
18976 (type_mismatch_p): New function.
18977 (warn_types_mismatch): Reorg to work better on non-C++ types.
18978 (odr_types_equivalent_p): Add loc1/loc2 parameters.
18979 (add_type_duplicate): Update.
18981 2015-06-08 Tom de Vries <tom@codesourcery.com>
18983 PR rtl-optimization/66444
18984 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
18987 2015-06-08 Richard Biener <rguenther@suse.de>
18989 PR tree-optimization/66422
18990 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
18991 block after inserted gcc_unreachable.
18993 2015-06-08 Nick Clifton <nickc@redhat.com>
18995 * config/rx/rx.c (rx_function_value): Do not promote vector types.
18996 (rx_promote_function_mode): Likewise.
18997 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
18999 2015-06-08 Jakub Jelinek <jakub@redhat.com>
19001 * genattrtab.c (insn_alternatives): Change type from int *
19003 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
19004 (get_attr_value): Change type of num_alt to uint64_t.
19005 (compute_alternative_mask): Change return type from
19006 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
19007 (make_alternative_compare, mk_attr_alt): Change argument type
19008 from int to uint64_t.
19009 (simplify_test_exp): Change type of i from int to uint64_t.
19010 Shift ((uint64_t) 1) instead of 1 up.
19011 (main): Adjust oballocvec first argument from int to uint64_t.
19012 Shift ((uint64_t) 1) instead of 1 up.
19014 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
19017 * gdbhooks.py: Import sys.
19018 (intptr): New function. Replace int(...) by intptr(...).
19020 2015-06-08 Richard Biener <rguenther@suse.de>
19022 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
19023 adjustment for gaps at the end of a SLP load group properly.
19024 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
19025 all permutations we can generate.
19026 (vect_transform_slp_perm_load): Use the correct group-size.
19028 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
19030 * genmatch.c (expr::gen_transform): For conditions, guess the type
19031 from the second operand.
19033 2015-06-08 Tom de Vries <tom@codesourcery.com>
19035 PR tree-optimization/66442
19036 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
19037 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
19038 if the loop latch is not a singleton. Use
19039 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
19041 2015-06-08 Marek Polacek <polacek@redhat.com>
19044 * toplev.c (check_global_declaration): Don't warn about artificial
19047 2015-06-08 Tom de Vries <tom@codesourcery.com>
19049 PR tree-optimization/66436
19050 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
19052 * gimplify.c: Add tree-dump.h include.
19053 (gimplify_function_tree): Dump function to gimple dump file.
19054 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
19057 2015-06-08 Tom de Vries <tom@codesourcery.com>
19059 PR tree-optimization/66435
19060 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
19063 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
19065 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
19066 of ptr_type_node to not be ptr_to_node.
19067 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
19068 TREE_TYPE of pointers.
19069 * gimple-expr.c (useless_type_conversion): Reorder the check for
19070 function pointers and TYPE_CANONICAL.
19072 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
19075 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
19076 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
19077 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
19079 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
19080 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
19081 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
19082 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
19083 and non iso if unix2003.
19085 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
19087 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
19089 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
19091 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
19092 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
19093 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
19094 except.c, final.c, function.c, gcse-common.c, genemit.c,
19095 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
19096 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
19097 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
19098 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
19101 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
19103 * combine.c (combine_split_insns): Remove cast.
19104 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
19105 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
19106 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
19107 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
19108 * genemit.c (gen_split): Change return type of generated functions to
19110 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
19111 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
19112 gen_peephole2_* functions.
19113 (print_subroutine, main): Likewise.
19114 * recog.c (peephole2_optimize): Remove cast.
19115 (peep2_next_insn): Promote return type to rtx_insn.
19116 * recog.h (peep2_next_insn): Fix prototype.
19117 * rtl.h (try_split, split_insns): Likewise.
19119 2015-06-06 DJ Delorie <dj@redhat.com>
19121 * config/msp430/msp430.c (msp430_asm_integer): Support addition
19122 and subtraction too.
19124 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
19127 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
19128 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
19129 instead of Snd. Disparage Sid/z alternative with '^'.
19131 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
19133 * dwarf2out.c: Remove deferred_locations*.
19134 (dwarf2_debug_hooks): Add early_finish hook.
19135 Remove global_decl hook.
19136 Add early_global_decl and late_global_decl hook.
19137 New global early_dwarf.
19138 New structure set_early_dwarf.
19139 (output_die): Indicate whether a DIE was generated early
19140 when generating assembly with -dA.
19141 (struct limbo_die_struct): Document created_for field.
19142 Remove file_table_last_lookup.
19143 (remove_AT): Return TRUE if successful.
19144 (remove_child_TAG): Clear die_parent.
19145 (reparent_child): New function abstracted from...
19146 (splice_child_die): ...here.
19147 (new_die): ICE if a DIE ends up in limbo too late.
19149 (defer_location): Remove.
19150 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
19151 (fill_variable_array_bounds): New.
19152 (decl_start_label): Call fill_variable_array_bounds.
19153 (gen_formal_parameter_die): Rewrite to reuse previously generated
19155 (gen_subprogram_die): Same.
19156 (gen_variable_die): Same.
19157 (gen_const_die): Same.
19158 (gen_label_die): Same.
19159 (gen_lexical_block_die): Same.
19160 (decl_will_get_specification_p): New.
19161 (local_function_static): New.
19162 (gen_struct_or_union_type_die): Fill in variable-length fields.
19163 (gen_typedef_die): Fill in variable-length typedefs.
19164 (gen_tagged_type_die): Gracefully return on error_mark_node.
19165 Handle re-entrancy.
19166 (gen_type_die_with_usage): Handle variable-length types.
19167 Remove duplicate code for ARRAY_TYPE case.
19168 (process_scope_var): Only process imported modules during early
19170 (dwarf2out_early_global_decl): New.
19171 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
19172 (dwarf2out_type_decl): Set early_dwarf while calling
19174 (dwarf2out_decl): Verify that we did not recreate a previously
19176 Do not return on DECL_EXTERNALs in VAR_DECLs.
19177 Abstract some code to local_function_static.
19178 (lookup_filename): Remove use of file_table_last_lookup.
19179 Gracefully exit on missing file_name.
19180 (dwarf2out_finish): Verify limbo list.
19181 Remove deferred_locations_list use.
19182 Move deferred_asm_name and limbo flushing to...
19183 (dwarf2out_early_finish): ...here. New.
19184 (dwarf2out_c_finalize): Remove set of deferred_location_list,
19185 deferred_asm_name, and file_table_last_lookup.
19186 * cgraph.h (referred_to_p): Add default argument.
19187 * cgraphunit.c (referred_to_p): Add and handle include_self
19189 (analyze_functions): Add first_time argument.
19190 Call check_global_declaration for all symbols.
19191 Call late_global_decl for nodes for moribund nodes.
19192 (finalize_compilation_unit): Add new argument to
19194 Call early_global_decl for functions.
19195 Call early_finish debug hook.
19196 * dbxout.c (dbxout_early_global_decl): New.
19197 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
19198 (dbx_debug_hooks): Add new hooks.
19199 (xcoff_debug_hooks): Same.
19200 * debug.c (do_nothing_debug_hooks): Add early_finish field.
19201 Add early and late debug hooks.
19202 Remove global_decl hook.
19203 * debug.h (struct gcc_debug_hooks): Add early_finish,
19204 early_global_decl, and late_global_decl fields.
19205 Remove global_decl field.
19206 Document gcc_debug_hooks.
19207 * gengtype.c (output_typename): Remove.
19208 * godump.c (go_early_global_decl): New.
19209 (go_late_global_decl): New.
19210 (go_global_decl): Remove.
19211 (dump_go_spec_init): Remove global_decl. Add
19212 {early,late}_global_decl.
19213 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
19214 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
19215 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
19216 (write_global_declarations): Remove.
19217 (global_decl_processing): New.
19218 * langhooks.h (struct lang_hooks_for_decls): Remove
19219 final_write_globals field.
19220 Add post_compilation_parsing_cleanups field.
19221 * passes.c (rest_of_decl_compilation): Call early_global_decl.
19222 * sdbout.c: Add early and late_global_decl hooks. Remove
19223 sdbout_global_decl hook.
19224 Add early_finish field for sdb_debug_hooks.
19225 (sdbout_global_decl): Remove.
19226 (sdbout_early_global_decl): New.
19227 (sdbout_late_global_decl): New.
19228 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
19229 * toplev.c (check_global_declaration): Rename from
19230 check_global_declaration_1.
19231 Adapt to use symtab infrastructure.
19232 (check_global_declarations): Remove.
19233 (emit_debug_global_declarations): Remove.
19234 (compile_file): Remove call to final_write_globals langhook.
19235 Run the actual compilation process.
19236 Perform any post compilation parser cleanups.
19237 Generate late debug info.
19238 * toplev.h (check_global_declaration): New.
19239 (check_global_declaration_1): Remove.
19240 (check_global_declarations): Remove.
19241 (write_global_declarations): Remove.
19242 (emit_debug_global_declarations): Remove.
19243 (global_decl_processing): New.
19244 * tree-core.h (struct tree_block): Add DIE field.
19245 * tree.h (BLOCK_DIE): New.
19246 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
19248 (vmsdbgout_early_global_decl): New.
19249 (vmsdbgout_late_global_decl): New.
19250 Add early_finish debug hook field to vmsdbg_debug_hooks.
19251 Remove vmsdbgout_decl to vmsdbgout_function_decl.
19252 Add early and late_global_decl debug hooks.
19254 2015-06-05 Julian Brown <julian@codesourcery.com>
19255 Sandra Loosemore <sandra@codesourcery.com>
19257 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
19258 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
19259 to print-sysroot-suffix.sh script.
19261 2015-06-05 Tom de Vries <tom@codesourcery.com>
19263 merge from gomp4 branch:
19264 2015-05-28 Tom de Vries <tom@codesourcery.com>
19266 PR tree-optimization/65443
19267 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
19268 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
19269 (try_transform_to_exit_first_loop_alt): New function.
19270 (transform_to_exit_first_loop): Use
19271 try_transform_to_exit_first_loop_alt.
19273 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
19275 * builtins.c (expand_builtin_atomic_compare_exchange): Call
19276 emit_cmp_and_jump_insns with the mode of target.
19278 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19280 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
19282 2015-06-04 DJ Delorie <dj@redhat.com>
19284 * config/msp430/msp430.md (movsi_s): New. Special case for
19285 storing a 20-bit symbol into a 32-bit register.
19286 * config/msp430/msp430.c (msp430_subreg): Add support for it.
19287 * config/msp430/predicates.md (msp430_symbol_operand): New.
19289 2015-06-04 Sriraman Tallam <tmsriram@google.com>
19291 * c-family/c-common.c (noplt): New attribute.
19292 (handle_noplt_attribute): New handler.
19293 * calls.c (prepare_call_address): Check for noplt
19295 * config/i386/i386.c (ix86_expand_call): Check
19296 for noplt attribute.
19297 (ix86_nopic_noplt_attribute_p): New function.
19298 (ix86_output_call_insn): Output indirect call for non-pic
19300 * doc/extend.texi (noplt): Document new attribute.
19301 * doc/invoke.texi: Document new attribute.
19303 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
19305 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
19306 real.h, and fixed-value.h when included in host source files.
19307 * double-int.h: Remove redundant #includes listed above.
19308 * fixed-value.h: Likewise.
19309 * real.h: Likewise.
19310 * wide-int.h: Likewise.
19311 * inchash.h: Likewise.
19312 * rtl.h: Add some include files When included from a generator file.
19313 * target.h: Remove wide-int.h and insn-modes.h from the include list.
19314 * internal-fn.h: Don't include coretypes.h.
19315 * alias.c: Adjust includes for restructured coretypes.h.
19316 * asan.c: Likewise.
19317 * attribs.c: Likewise.
19318 * auto-inc-dec.c: Likewise.
19319 * auto-profile.c: Likewise.
19320 * bb-reorder.c: Likewise.
19321 * bt-load.c: Likewise.
19322 * builtins.c: Likewise.
19323 * caller-save.c: Likewise.
19324 * calls.c: Likewise.
19325 * ccmp.c: Likewise.
19327 * cfganal.c: Likewise.
19328 * cfgbuild.c: Likewise.
19329 * cfgcleanup.c: Likewise.
19330 * cfgexpand.c: Likewise.
19331 * cfghooks.c: Likewise.
19332 * cfgloop.c: Likewise.
19333 * cfgloop.h: Likewise.
19334 * cfgloopanal.c: Likewise.
19335 * cfgloopmanip.c: Likewise.
19336 * cfgrtl.c: Likewise.
19337 * cgraph.c: Likewise.
19338 * cgraphbuild.c: Likewise.
19339 * cgraphclones.c: Likewise.
19340 * cgraphunit.c: Likewise.
19341 * cilk-common.c: Likewise.
19342 * combine-stack-adj.c: Likewise.
19343 * combine.c: Likewise.
19344 * compare-elim.c: Likewise.
19345 * convert.c: Likewise.
19346 * coverage.c: Likewise.
19347 * cppbuiltin.c: Likewise.
19348 * cprop.c: Likewise.
19350 * cselib.c: Likewise.
19351 * data-streamer-in.c: Likewise.
19352 * data-streamer-out.c: Likewise.
19353 * data-streamer.c: Likewise.
19354 * dbxout.c: Likewise.
19357 * debug.c: Likewise.
19358 * df-core.c: Likewise.
19359 * df-problems.c: Likewise.
19360 * df-scan.c: Likewise.
19363 * dojump.c: Likewise.
19364 * dominance.c: Likewise.
19365 * domwalk.c: Likewise.
19366 * double-int.c: Likewise.
19368 * dumpfile.c: Likewise.
19369 * dwarf2asm.c: Likewise.
19370 * dwarf2cfi.c: Likewise.
19371 * dwarf2out.c: Likewise.
19372 * dwarf2out.h: Likewise.
19373 * emit-rtl.c: Likewise.
19374 * et-forest.c: Likewise.
19375 * except.c: Likewise.
19376 * explow.c: Likewise.
19377 * expmed.c: Likewise.
19378 * expr.c: Likewise.
19379 * final.c: Likewise.
19380 * fixed-value.c: Likewise.
19381 * fold-const.c: Likewise.
19382 * function.c: Likewise.
19383 * fwprop.c: Likewise.
19384 * gcc-plugin.h: Likewise.
19385 * gcse.c: Likewise.
19386 * generic-match-head.c: Likewise.
19387 * ggc-page.c: Likewise.
19388 * gimple-builder.c: Likewise.
19389 * gimple-expr.c: Likewise.
19390 * gimple-fold.c: Likewise.
19391 * gimple-iterator.c: Likewise.
19392 * gimple-low.c: Likewise.
19393 * gimple-match-head.c: Likewise.
19394 * gimple-pretty-print.c: Likewise.
19395 * gimple-ssa-isolate-paths.c: Likewise.
19396 * gimple-ssa-strength-reduction.c: Likewise.
19397 * gimple-streamer-in.c: Likewise.
19398 * gimple-streamer-out.c: Likewise.
19399 * gimple-streamer.h: Likewise.
19400 * gimple-walk.c: Likewise.
19401 * gimple.c: Likewise.
19402 * gimplify-me.c: Likewise.
19403 * gimplify.c: Likewise.
19404 * godump.c: Likewise.
19405 * graph.c: Likewise.
19406 * graphite-blocking.c: Likewise.
19407 * graphite-dependences.c: Likewise.
19408 * graphite-interchange.c: Likewise.
19409 * graphite-isl-ast-to-gimple.c: Likewise.
19410 * graphite-optimize-isl.c: Likewise.
19411 * graphite-poly.c: Likewise.
19412 * graphite-scop-detection.c: Likewise.
19413 * graphite-sese-to-poly.c: Likewise.
19414 * graphite.c: Likewise.
19415 * haifa-sched.c: Likewise.
19416 * hooks.h: Likewise.
19417 * hw-doloop.c: Likewise.
19418 * ifcvt.c: Likewise.
19419 * incpath.c: Likewise.
19420 * init-regs.c: Likewise.
19421 * internal-fn.c: Likewise.
19422 * ipa-chkp.c: Likewise.
19423 * ipa-comdats.c: Likewise.
19424 * ipa-cp.c: Likewise.
19425 * ipa-devirt.c: Likewise.
19426 * ipa-icf-gimple.c: Likewise.
19427 * ipa-icf.c: Likewise.
19428 * ipa-inline-analysis.c: Likewise.
19429 * ipa-inline-transform.c: Likewise.
19430 * ipa-inline.c: Likewise.
19431 * ipa-polymorphic-call.c: Likewise.
19432 * ipa-profile.c: Likewise.
19433 * ipa-prop.c: Likewise.
19434 * ipa-pure-const.c: Likewise.
19435 * ipa-ref.c: Likewise.
19436 * ipa-reference.c: Likewise.
19437 * ipa-split.c: Likewise.
19438 * ipa-utils.c: Likewise.
19439 * ipa-visibility.c: Likewise.
19441 * ira-build.c: Likewise.
19442 * ira-color.c: Likewise.
19443 * ira-conflicts.c: Likewise.
19444 * ira-costs.c: Likewise.
19445 * ira-emit.c: Likewise.
19446 * ira-lives.c: Likewise.
19448 * jump.c: Likewise.
19449 * langhooks.c: Likewise.
19451 * loop-doloop.c: Likewise.
19452 * loop-init.c: Likewise.
19453 * loop-invariant.c: Likewise.
19454 * loop-iv.c: Likewise.
19455 * loop-unroll.c: Likewise.
19456 * lower-subreg.c: Likewise.
19457 * lra-assigns.c: Likewise.
19458 * lra-coalesce.c: Likewise.
19459 * lra-constraints.c: Likewise.
19460 * lra-eliminations.c: Likewise.
19461 * lra-lives.c: Likewise.
19462 * lra-remat.c: Likewise.
19463 * lra-spills.c: Likewise.
19465 * lto-cgraph.c: Likewise.
19466 * lto-compress.c: Likewise.
19467 * lto-opts.c: Likewise.
19468 * lto-section-in.c: Likewise.
19469 * lto-section-out.c: Likewise.
19470 * lto-streamer-in.c: Likewise.
19471 * lto-streamer-out.c: Likewise.
19472 * lto-streamer.c: Likewise.
19474 * mode-switching.c: Likewise.
19475 * modulo-sched.c: Likewise.
19476 * omega.c: Likewise.
19477 * omp-low.c: Likewise.
19478 * optabs.c: Likewise.
19479 * opts-global.c: Likewise.
19480 * passes.c: Likewise.
19481 * plugin.c: Likewise.
19482 * postreload-gcse.c: Likewise.
19483 * postreload.c: Likewise.
19484 * predict.c: Likewise.
19485 * print-rtl.c: Likewise.
19486 * print-tree.c: Likewise.
19487 * profile.c: Likewise.
19488 * real.c: Likewise.
19489 * realmpfr.c: Likewise.
19490 * realmpfr.h: Likewise.
19491 * recog.c: Likewise.
19493 * reg-stack.c: Likewise.
19494 * regcprop.c: Likewise.
19495 * reginfo.c: Likewise.
19496 * regrename.c: Likewise.
19497 * regs.h: Likewise.
19498 * regstat.c: Likewise.
19499 * reload.c: Likewise.
19500 * reload1.c: Likewise.
19501 * reorg.c: Likewise.
19502 * resource.c: Likewise.
19503 * rtl-chkp.c: Likewise.
19504 * rtlanal.c: Likewise.
19505 * rtlhooks.c: Likewise.
19506 * sanopt.c: Likewise.
19507 * sched-deps.c: Likewise.
19508 * sched-ebb.c: Likewise.
19509 * sched-rgn.c: Likewise.
19510 * sched-vis.c: Likewise.
19511 * sdbout.c: Likewise.
19512 * sel-sched-dump.c: Likewise.
19513 * sel-sched-ir.c: Likewise.
19514 * sel-sched.c: Likewise.
19515 * sese.c: Likewise.
19516 * shrink-wrap.c: Likewise.
19517 * shrink-wrap.h: Likewise.
19518 * simplify-rtx.c: Likewise.
19519 * stack-ptr-mod.c: Likewise.
19520 * statistics.c: Likewise.
19521 * stmt.c: Likewise.
19522 * stor-layout.c: Likewise.
19523 * store-motion.c: Likewise.
19524 * stringpool.c: Likewise.
19525 * symtab.c: Likewise.
19526 * target-globals.c: Likewise.
19527 * targhooks.c: Likewise.
19528 * toplev.c: Likewise.
19529 * tracer.c: Likewise.
19530 * trans-mem.c: Likewise.
19531 * tree-affine.c: Likewise.
19532 * tree-affine.h: Likewise.
19533 * tree-browser.c: Likewise.
19534 * tree-call-cdce.c: Likewise.
19535 * tree-cfg.c: Likewise.
19536 * tree-cfgcleanup.c: Likewise.
19537 * tree-chkp-opt.c: Likewise.
19538 * tree-chkp.c: Likewise.
19539 * tree-chrec.c: Likewise.
19540 * tree-complex.c: Likewise.
19541 * tree-data-ref.c: Likewise.
19542 * tree-dfa.c: Likewise.
19543 * tree-diagnostic.c: Likewise.
19544 * tree-dump.c: Likewise.
19545 * tree-eh.c: Likewise.
19546 * tree-emutls.c: Likewise.
19547 * tree-if-conv.c: Likewise.
19548 * tree-inline.c: Likewise.
19549 * tree-into-ssa.c: Likewise.
19550 * tree-iterator.c: Likewise.
19551 * tree-loop-distribution.c: Likewise.
19552 * tree-nested.c: Likewise.
19553 * tree-nrv.c: Likewise.
19554 * tree-object-size.c: Likewise.
19555 * tree-outof-ssa.c: Likewise.
19556 * tree-parloops.c: Likewise.
19557 * tree-phinodes.c: Likewise.
19558 * tree-predcom.c: Likewise.
19559 * tree-pretty-print.c: Likewise.
19560 * tree-pretty-print.h: Likewise.
19561 * tree-profile.c: Likewise.
19562 * tree-scalar-evolution.c: Likewise.
19563 * tree-sra.c: Likewise.
19564 * tree-ssa-address.c: Likewise.
19565 * tree-ssa-alias.c: Likewise.
19566 * tree-ssa-ccp.c: Likewise.
19567 * tree-ssa-coalesce.c: Likewise.
19568 * tree-ssa-copy.c: Likewise.
19569 * tree-ssa-copyrename.c: Likewise.
19570 * tree-ssa-dce.c: Likewise.
19571 * tree-ssa-dom.c: Likewise.
19572 * tree-ssa-dse.c: Likewise.
19573 * tree-ssa-forwprop.c: Likewise.
19574 * tree-ssa-ifcombine.c: Likewise.
19575 * tree-ssa-live.c: Likewise.
19576 * tree-ssa-loop-ch.c: Likewise.
19577 * tree-ssa-loop-im.c: Likewise.
19578 * tree-ssa-loop-ivcanon.c: Likewise.
19579 * tree-ssa-loop-ivopts.c: Likewise.
19580 * tree-ssa-loop-manip.c: Likewise.
19581 * tree-ssa-loop-niter.c: Likewise.
19582 * tree-ssa-loop-prefetch.c: Likewise.
19583 * tree-ssa-loop-unswitch.c: Likewise.
19584 * tree-ssa-loop.c: Likewise.
19585 * tree-ssa-loop.h: Likewise.
19586 * tree-ssa-math-opts.c: Likewise.
19587 * tree-ssa-operands.c: Likewise.
19588 * tree-ssa-phiopt.c: Likewise.
19589 * tree-ssa-phiprop.c: Likewise.
19590 * tree-ssa-pre.c: Likewise.
19591 * tree-ssa-propagate.c: Likewise.
19592 * tree-ssa-reassoc.c: Likewise.
19593 * tree-ssa-sccvn.c: Likewise.
19594 * tree-ssa-scopedtables.c: Likewise.
19595 * tree-ssa-sink.c: Likewise.
19596 * tree-ssa-strlen.c: Likewise.
19597 * tree-ssa-structalias.c: Likewise.
19598 * tree-ssa-tail-merge.c: Likewise.
19599 * tree-ssa-ter.c: Likewise.
19600 * tree-ssa-threadedge.c: Likewise.
19601 * tree-ssa-threadupdate.c: Likewise.
19602 * tree-ssa-uncprop.c: Likewise.
19603 * tree-ssa-uninit.c: Likewise.
19604 * tree-ssa.c: Likewise.
19605 * tree-ssanames.c: Likewise.
19606 * tree-stdarg.c: Likewise.
19607 * tree-streamer-in.c: Likewise.
19608 * tree-streamer-out.c: Likewise.
19609 * tree-streamer.c: Likewise.
19610 * tree-switch-conversion.c: Likewise.
19611 * tree-tailcall.c: Likewise.
19612 * tree-vect-data-refs.c: Likewise.
19613 * tree-vect-generic.c: Likewise.
19614 * tree-vect-loop-manip.c: Likewise.
19615 * tree-vect-loop.c: Likewise.
19616 * tree-vect-patterns.c: Likewise.
19617 * tree-vect-slp.c: Likewise.
19618 * tree-vect-stmts.c: Likewise.
19619 * tree-vectorizer.c: Likewise.
19620 * tree-vrp.c: Likewise.
19621 * tree.c: Likewise.
19622 * tsan.c: Likewise.
19623 * ubsan.c: Likewise.
19624 * valtrack.c: Likewise.
19625 * value-prof.c: Likewise.
19626 * var-tracking.c: Likewise.
19627 * varasm.c: Likewise.
19628 * varpool.c: Likewise.
19629 * vmsdbgout.c: Likewise.
19630 * vtable-verify.c: Likewise.
19632 * wide-int-print.cc: Likewise.
19633 * wide-int-print.h: Likewise.
19634 * wide-int.cc: Likewise.
19635 * xcoffout.c: Likewise.
19636 * config/aarch64/aarch64-builtins.c: Likewise.
19637 * config/aarch64/aarch64.c: Likewise.
19638 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19639 * config/alpha/alpha.c: Likewise.
19640 * config/arc/arc.c: Likewise.
19641 * config/arm/aarch-common.c: Likewise.
19642 * config/arm/arm-builtins.c: Likewise.
19643 * config/arm/arm-c.c: Likewise.
19644 * config/arm/arm.c: Likewise.
19645 * config/avr/avr-c.c: Likewise.
19646 * config/avr/avr-log.c: Likewise.
19647 * config/avr/avr.c: Likewise.
19648 * config/bfin/bfin.c: Likewise.
19649 * config/c6x/c6x.c: Likewise.
19650 * config/cr16/cr16.c: Likewise.
19651 * config/cris/cris.c: Likewise.
19652 * config/darwin-c.c: Likewise.
19653 * config/darwin.c: Likewise.
19654 * config/default-c.c: Likewise.
19655 * config/epiphany/epiphany.c: Likewise.
19656 * config/epiphany/mode-switch-use.c: Likewise.
19657 * config/epiphany/resolve-sw-modes.c: Likewise.
19658 * config/fr30/fr30.c: Likewise.
19659 * config/frv/frv.c: Likewise.
19660 * config/ft32/ft32.c: Likewise.
19661 * config/glibc-c.c: Likewise.
19662 * config/h8300/h8300.c: Likewise.
19663 * config/i386/i386-c.c: Likewise.
19664 * config/i386/i386.c: Likewise.
19665 * config/i386/msformat-c.c: Likewise.
19666 * config/i386/winnt-cxx.c: Likewise.
19667 * config/i386/winnt-stubs.c: Likewise.
19668 * config/i386/winnt.c: Likewise.
19669 * config/ia64/ia64-c.c: Likewise.
19670 * config/ia64/ia64.c: Likewise.
19671 * config/iq2000/iq2000.c: Likewise.
19672 * config/lm32/lm32.c: Likewise.
19673 * config/m32c/m32c-pragma.c: Likewise.
19674 * config/m32c/m32c.c: Likewise.
19675 * config/m32r/m32r.c: Likewise.
19676 * config/m68k/m68k.c: Likewise.
19677 * config/mcore/mcore.c: Likewise.
19678 * config/mep/mep-pragma.c: Likewise.
19679 * config/mep/mep.c: Likewise.
19680 * config/microblaze/microblaze-c.c: Likewise.
19681 * config/microblaze/microblaze.c: Likewise.
19682 * config/mips/mips.c: Likewise.
19683 * config/mmix/mmix.c: Likewise.
19684 * config/mn10300/mn10300.c: Likewise.
19685 * config/moxie/moxie.c: Likewise.
19686 * config/msp430/msp430-c.c: Likewise.
19687 * config/msp430/msp430.c: Likewise.
19688 * config/nds32/nds32-cost.c: Likewise.
19689 * config/nds32/nds32-fp-as-gp.c: Likewise.
19690 * config/nds32/nds32-intrinsic.c: Likewise.
19691 * config/nds32/nds32-isr.c: Likewise.
19692 * config/nds32/nds32-md-auxiliary.c: Likewise.
19693 * config/nds32/nds32-memory-manipulation.c: Likewise.
19694 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19695 * config/nds32/nds32-predicates.c: Likewise.
19696 * config/nds32/nds32.c: Likewise.
19697 * config/nios2/nios2.c: Likewise.
19698 * config/nvptx/nvptx.c: Likewise.
19699 * config/pa/pa.c: Likewise.
19700 * config/pdp11/pdp11.c: Likewise.
19701 * config/rl78/rl78-c.c: Likewise.
19702 * config/rl78/rl78.c: Likewise.
19703 * config/rs6000/rs6000-c.c: Likewise.
19704 * config/rs6000/rs6000.c: Likewise.
19705 * config/rx/rx.c: Likewise.
19706 * config/s390/s390-c.c: Likewise.
19707 * config/s390/s390.c: Likewise.
19708 * config/sh/sh-c.c: Likewise.
19709 * config/sh/sh-mem.cc: Likewise.
19710 * config/sh/sh.c: Likewise.
19711 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19712 * config/sh/sh_treg_combine.cc: Likewise.
19713 * config/sol2-c.c: Likewise.
19714 * config/sol2-cxx.c: Likewise.
19715 * config/sol2-stubs.c: Likewise.
19716 * config/sol2.c: Likewise.
19717 * config/sparc/sparc-c.c: Likewise.
19718 * config/sparc/sparc.c: Likewise.
19719 * config/spu/spu-c.c: Likewise.
19720 * config/spu/spu.c: Likewise.
19721 * config/stormy16/stormy16.c: Likewise.
19722 * config/tilegx/mul-tables.c: Likewise.
19723 * config/tilegx/tilegx-c.c: Likewise.
19724 * config/tilegx/tilegx.c: Likewise.
19725 * config/tilepro/mul-tables.c: Likewise.
19726 * config/tilepro/tilepro-c.c: Likewise.
19727 * config/tilepro/tilepro.c: Likewise.
19728 * config/v850/v850-c.c: Likewise.
19729 * config/v850/v850.c: Likewise.
19730 * config/vax/vax.c: Likewise.
19731 * config/visium/visium.c: Likewise.
19732 * config/vms/vms-c.c: Likewise.
19733 * config/vms/vms.c: Likewise.
19734 * config/vxworks.c: Likewise.
19735 * config/winnt-c.c: Likewise.
19736 * config/xtensa/xtensa.c: Likewise.
19737 * common/config/bfin/bfin-common.c: Likewise.
19739 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
19741 * tree.h (tree_code_for_canonical_type_merging): New function.
19742 * tree.c (gimple_canonical_types_compatible_p): Use
19743 tree_code_for_canonical_type_merging..
19745 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19749 * doc/tm.texi: Regenerate.
19750 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
19751 * target.def (TARGET_RELAXED_ORDERING): Likewise.
19752 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
19753 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
19754 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
19755 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
19756 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
19757 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
19758 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
19760 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19762 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
19763 register fma steering pass.
19764 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
19765 AARCH64_TUNE_FMA_STEERING.
19767 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
19769 * tree.c (verify_type_variant): Verify that type and variant is
19771 (gimple_canonical_types_compatible_p): Look for main variants.
19773 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
19775 * config.gcc (powerpc*-*-*): Add support for a new configure
19776 option --with-advance-toolchain=<xxx> which overrides using the
19777 default header files, libraries and dynamic linker.
19779 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
19780 specs to support the configure --with-advance-toolchain=<xxx>
19782 (INCLUDE_EXTRA_SPEC): Likewise.
19783 (LINK_OS_EXTRA_SPEC32): Likewise.
19784 (LINK_OK_EXTRA_SPEC64): Likewise.
19785 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
19786 (DYNAMIC_LINKER_PREFIX): Likewise.
19787 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
19789 (GLIBC_DYNAMIC_LINKER32): Likewise.
19790 (GLIBC_DYNAMIC_LINKER64): Likewise.
19791 (LINK_OS_LINUX_SPEC32): Likewise.
19792 (LINK_OS_LINUX_SPEC64): Likewise.
19794 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
19795 configuration option.
19797 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
19800 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
19801 to determine current function ABI.
19802 (ix86_function_value_regno_p): Ditto.
19804 2015-06-03 Martin Liska <mliska@suse.cz>
19806 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
19807 * bitmap.h (struct bitmap_usage): Likewise.
19808 * ggc-common.c (struct ggc_usage): Likewise.
19809 * mem-stats.h (struct mem_location): Likewise.
19810 (struct mem_usage): Likewise.
19811 * vec.c (struct vec_usage): Likewise.
19813 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
19815 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
19818 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
19820 * doc/plugins.texi (enum plugin_event): New event.
19821 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
19822 and PLUGIN_FINISH_FUNCTION.
19823 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
19824 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
19826 2015-06-03 Richard Biener <rguenther@suse.de>
19828 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
19829 compute GROUP_GAP for the first element.
19830 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
19833 2015-06-03 Nick Clifton <nickc@redhat.com>
19835 * config/rl78/rl78-real.md: Add peepholes to avoid a register
19836 copy when calling a function.
19837 * config/rl78/rl78.c (need_to_save): Do not push the frame
19838 pointer in an interrupt handler prologue if it is never used.
19840 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19842 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
19844 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
19846 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
19847 reference when cloning alias node.
19849 2015-06-03 Martin Liska <mliska@suse.cz>
19851 * alloc-pool.h (struct pool_usage): Correct space padding.
19852 * ggc-page.c (ggc_print_statistics): Align columns in a report.
19853 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
19854 * tree.c (dump_tree_statistics): Align columns in a report.
19856 2015-06-03 Martin Liska <mliska@suse.cz>
19858 * alloc-pool.c (allocate_pool_descriptor): Remove.
19859 (struct pool_output_info): Likewise.
19860 (print_alloc_pool_statistics): Likewise.
19861 (dump_alloc_pool_statistics): Likewise.
19862 * alloc-pool.h (struct pool_usage): New struct.
19863 (pool_allocator::initialize): Change usage of memory statistics
19864 to a new interface.
19865 (pool_allocator::release): Likewise.
19866 (pool_allocator::allocate): Likewise.
19867 (pool_allocator::remove): Likewise.
19868 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
19869 for a pool allocator.
19870 * mem-stats.h (struct mem_location): Add new ctor.
19871 (struct mem_usage): Add counter for number of
19873 (mem_alloc_description::register_descriptor): New overload of
19874 * mem-stats.h (mem_location::to_string): New function.
19875 * bitmap.h (struct bitmap_usage): Use this new function.
19876 * ggc-common.c (struct ggc_usage): Likewise.
19879 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
19881 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
19882 of GCC_INSN_FLAGS_H block.
19884 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
19886 * explow.c (plus_constant): Update check after force_const_mem call
19887 to see if the value returned is not a NULL_RTX.
19889 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
19891 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
19892 remove instumentation thunks calling reachable functions.
19893 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
19894 * lto/lto-partition.c (privatize_symbol_name_1): New.
19895 (privatize_symbol_name): Privatize both decl and orig_decl
19896 names for instrumented functions.
19897 * cgraph.c (cgraph_node::verify_node): Add transparent
19898 alias chain check for instrumented node.
19900 2015-06-03 Marek Polacek <polacek@redhat.com>
19904 * tree.c (attribute_value_equal): Handle attribute format.
19905 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
19907 2015-06-03 Richard Biener <rguenther@suse.de>
19909 PR tree-optimization/63916
19910 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
19911 Forward-propagate non-invariant addresses by splicing their
19912 reference ops if the result isn't going to be used by PRE.
19913 (vn_reference_lookup_3): Remove pointless assert.
19915 2015-06-03 Richard Biener <rguenther@suse.de>
19917 PR tree-optimization/66375
19918 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
19919 add to the evolution before following SSA edges.
19921 2015-06-03 Bin Cheng <bin.cheng@arm.com>
19923 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
19924 (dump_use, dump_cand, find_induction_variables): Pass new argument
19926 (record_use): Preserve the ssa name information in IV.
19928 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
19930 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
19932 (add_mode_tests): Don't add mode tests if the predicate only
19933 accepts scalar constant integers. Otherwise, allow the mode
19934 of "op" to be VOIDmode if the predicate does accept such integers.
19936 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
19939 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
19940 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
19941 (aarch64_secondary_reload): Likewise
19942 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
19944 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
19947 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
19948 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19951 * cprop.c (try_replace_reg): Check cost of constants before propagating.
19953 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19955 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
19956 provide access to the IBM extended double floating point mode if
19957 long double is IEEE 128-bit floating point.
19958 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
19959 point if long double is the IBM extended double type.
19961 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
19962 enable adding IEEE 128-bit floating point support.
19963 (-mfloat128-software): Likewise.
19964 (-mfloat128-sw): Likewise.
19966 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
19967 128-bit floating point types to occupy any register if
19968 -mlong-double-64. Do not allow use of IFmode/KFmode unless
19969 -mfloat128-software is enabled.
19970 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
19972 (rs6000_option_override_internal): Add -mfloat128-* support.
19973 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
19975 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
19976 and float128 type nodes.
19977 (ieee128_float_type_node): Likewise.
19978 (ibm128_float_type_node): Likewise.
19980 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
19983 * config/aarch64/geniterators.sh: Rewrite in awk.
19985 2015-06-02 Martin Liska <mliska@suse.cz>
19987 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
19988 values to avoid -Wmaybe-uninitialized errors.
19990 2015-06-02 Richard Biener <rguenther@suse.de>
19993 * dwarf2out.c (lookup_context_die): New function.
19994 (resolve_addr): Avoid forcing a full DIE for the
19995 target of a DW_TAG_GNU_call_site during late compilation.
19996 Instead create a stub DIE without a type if we have a
19997 context DIE present.
19999 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
20001 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
20003 2015-06-02 Bin Cheng <bin.cheng@arm.com>
20005 PR tree-optimization/48052
20006 * cfgloop.h (struct control_iv): New.
20007 (struct loop): New field control_ivs.
20008 * tree-ssa-loop-niter.c : Include "stor-layout.h".
20009 (number_of_iterations_lt): Set no_overflow information.
20010 (number_of_iterations_exit): Init control iv in niter struct.
20011 (record_control_iv): New.
20012 (estimate_numbers_of_iterations_loop): Call record_control_iv.
20013 (loop_exits_before_overflow): New. Interface factored out of
20014 scev_probably_wraps_p.
20015 (scev_probably_wraps_p): Factor loop niter related code into
20016 loop_exits_before_overflow.
20017 (free_numbers_of_iterations_estimates_loop): Free control ivs.
20018 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
20020 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
20022 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
20023 the target doesn't belong to the current function.
20025 2015-06-02 Marek Polacek <polacek@redhat.com>
20027 PR middle-end/66345
20028 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
20029 get_maxval_strlen does not produce an INTEGER_CST.
20031 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
20033 * config/arc/constraints.md: Use lower-case names in match_code.
20034 * config/mmix/constraints.md: Likewise.
20036 2015-06-02 Richard Biener <rguenther@suse.de>
20038 PR tree-optimization/65961
20039 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
20040 check and clarify dump message.
20041 (vect_build_slp_tree): If all children are built up from scalars
20042 build up the parent from scalars instead.
20043 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
20045 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
20048 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
20049 instead of print ... .
20051 2015-06-02 Alan Modra <amodra@gmail.com>
20053 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
20056 2015-06-02 Bin Cheng <bin.cheng@arm.com>
20058 PR tree-optimization/52563
20059 PR tree-optimization/62173
20060 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
20061 (alloc_iv, set_iv): New parameter.
20062 (determine_biv_step): Delete.
20063 (find_bivs): Inline original determine_biv_step. Pass new
20064 argument to set_iv.
20065 (idx_find_step): Use no_overflow information for conversion.
20066 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
20067 resolve_mixers handle folded_casts.
20068 (instantiate_scev_name): Change bool parameter to bool pointer.
20069 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
20070 (instantiate_array_ref, instantiate_scev_not): Ditto.
20071 (instantiate_scev_3, instantiate_scev_2): Ditto.
20072 (instantiate_scev_1, instantiate_scev_r): Ditto.
20073 (instantiate_scev_convert, ): Change parameter. Pass argument
20074 to chrec_convert_aggressive.
20075 (instantiate_scev): Change argument.
20076 (resolve_mixers): New parameter and set it.
20077 (scev_const_prop): New argument.
20078 * tree-scalar-evolution.h (resolve_mixers): New parameter.
20079 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
20081 (chrec_convert): New parameter. Move definition below.
20082 (chrec_convert_aggressive): New parameter and set it. Call
20083 convert_affine_scev.
20084 * tree-chrec.h (chrec_convert): New parameter.
20085 (chrec_convert_aggressive): Ditto.
20087 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
20089 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
20090 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
20091 the LHS of a no-return call if its type has variable size.
20092 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
20093 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
20095 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
20097 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
20098 * config.in: Regenerate.
20100 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
20102 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
20103 consecutive accesses within outer-loop with force_vectorize
20104 for references with zero step in inner-loop.
20106 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
20108 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
20109 rather than from gcc/build directory.
20111 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
20114 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
20115 for __sync memory models, emit initial loads and final barriers as
20118 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
20121 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
20122 (aarch64_split_atomic_op): Check for __sync memory models, emit
20123 appropriate initial loads and final barriers.
20125 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
20127 * Makefile.in: Fix gcov dependencies that should
20128 not point to a build folder.
20130 2015-06-01 Richard Biener <rguenther@suse.de>
20133 2015-05-29 Richard Biener <rguenther@suse.de>
20135 PR tree-optimization/66314
20136 * tree-ssa-threadupdate.c (create_block_for_threading): Add
20137 parameter that says which loop the new block belongs to.
20138 (ssa_create_duplicates): Blocks duplicated for the threaded
20139 path belong to the loop of the thread destination.
20141 2015-06-01 Martin Liska <mliska@suse.cz>
20143 * sched-deps.c: Include pool-alloc.h before
20144 cselib.h header file is included.
20146 2015-06-01 Richard Biener <rguenther@suse.de>
20148 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
20151 2015-06-01 Martin Liska <mliska@suse.cz>
20153 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
20154 a function local variable.
20156 2015-06-01 Martin Liska <mliska@suse.cz>
20158 * alloc-pool.c (create_alloc_pool): Remove.
20159 (empty_alloc_pool): Likewise.
20160 (free_alloc_pool): Likewise.
20161 (free_alloc_pool_if_empty): Likewise.
20162 (pool_alloc): Likewise.
20163 (pool_free): Likewise.
20164 * alloc-pool.h: Remove old declarations.
20166 2015-06-01 Martin Liska <mliska@suse.cz>
20168 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
20169 (ira_create_object): Likewise.
20170 (ira_create_allocno): Likewise.
20171 (ira_create_live_range): Likewise.
20172 (copy_live_range): Likewise.
20173 (ira_finish_live_range): Likewise.
20174 (ira_free_allocno_costs): Likewise.
20175 (finish_allocno): Likewise.
20176 (finish_allocnos): Likewise.
20177 (initiate_prefs): Likewise.
20178 (ira_create_pref): Likewise.
20179 (finish_pref): Likewise.
20180 (finish_prefs): Likewise.
20181 (initiate_copies): Likewise.
20182 (ira_create_copy): Likewise.
20183 (finish_copy): Likewise.
20184 (finish_copies): Likewise.
20185 (finish_prefs): Likewise.
20187 2015-06-01 Martin Liska <mliska@suse.cz>
20189 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
20190 (allocate_and_init_ipcp_value): Likewise.
20191 (ipcp_lattice::add_value): Likewise.
20192 (merge_agg_lats_step): Likewise.
20193 (ipcp_driver): Likewise.
20194 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
20195 (ipa_free_all_structures_after_iinln): Likewise.
20196 * ipa-prop.h: Likewise.
20198 2015-06-01 Martin Liska <mliska@suse.cz>
20200 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
20202 (set_hint_predicate): Likewise.
20203 (inline_summary_alloc): Likewise.
20204 (reset_inline_edge_summary): Likewise.
20205 (reset_inline_summary): Likewise.
20206 (set_cond_stmt_execution_predicate): Likewise.
20207 (set_switch_stmt_execution_predicate): Likewise.
20208 (compute_bb_predicates): Likewise.
20209 (estimate_function_body_sizes): Likewise.
20210 (inline_free_summary): Likewise.
20212 2015-06-01 Martin Liska <mliska@suse.cz>
20214 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
20215 (ipa_edge_duplication_hook): Likewise.
20216 (ipa_free_all_structures_after_ipa_cp): Likewise.
20217 (ipa_free_all_structures_after_iinln): Likewise.
20219 2015-06-01 Martin Liska <mliska@suse.cz>
20221 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
20222 (ipa_profile_generate_summary): Likewise.
20223 (ipa_profile_read_summary): Likewise.
20224 (ipa_profile): Likewise.
20226 2015-06-01 Martin Liska <mliska@suse.cz>
20228 * tree-ssa-structalias.c (new_var_info): Use new type-based
20230 (new_constraint): Likewise.
20231 (init_alias_vars): Likewise.
20232 (delete_points_to_sets): Likewise.
20234 2015-06-01 Martin Liska <mliska@suse.cz>
20236 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
20237 (free_strinfo): Likewise.
20238 (pass_strlen::execute): Likewise.
20240 2015-06-01 Martin Liska <mliska@suse.cz>
20242 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
20244 (vn_reference_insert_pieces): Likewise.
20245 (vn_phi_insert): Likewise.
20246 (visit_reference_op_call): Likewise.
20247 (copy_phi): Likewise.
20248 (copy_reference): Likewise.
20249 (process_scc): Likewise.
20250 (allocate_vn_table): Likewise.
20251 (free_vn_table): Likewise.
20253 2015-06-01 Martin Liska <mliska@suse.cz>
20255 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
20257 (add_repeat_to_ops_vec): Likewise.
20258 (get_ops): Likewise.
20259 (maybe_optimize_range_tests): Likewise.
20260 (init_reassoc): Likewise.
20261 (fini_reassoc): Likewise.
20263 2015-06-01 Martin Liska <mliska@suse.cz>
20265 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
20267 (bitmap_set_new): Likewise.
20268 (get_or_alloc_expr_for_constant): Likewise.
20269 (get_or_alloc_expr_for): Likewise.
20270 (phi_translate_1): Likewise.
20271 (compute_avail): Likewise.
20272 (init_pre): Likewise.
20273 (fini_pre): Likewise.
20275 2015-06-01 Martin Liska <mliska@suse.cz>
20277 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
20278 (delete_dep_node): Likewise.
20279 (create_deps_list): Likewise.
20280 (free_deps_list): Likewise.
20281 (sched_deps_init): Likewise.
20282 (sched_deps_finish): Likewise.
20284 2015-06-01 Martin Liska <mliska@suse.cz>
20286 * regcprop.c (free_debug_insn_changes): Use new type-based
20288 (replace_oldest_value_reg): Likewise.
20289 (pass_cprop_hardreg::execute): Likewise.
20291 2015-06-01 Martin Liska <mliska@suse.cz>
20293 * ira-build.c (initiate_cost_vectors): Use new type-based
20295 (ira_allocate_cost_vector): Likewise.
20296 (ira_free_cost_vector): Likewise.
20297 (finish_cost_vectors): Likewise.
20299 2015-06-01 Martin Liska <mliska@suse.cz>
20301 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
20303 (free_sched_pools): Likewise.
20304 * sel-sched-ir.h (_list_alloc): Likewise.
20305 (_list_remove): Likewise.
20307 2015-06-01 Martin Liska <mliska@suse.cz>
20309 * stmt.c (add_case_node): Use new type-based pool allocator.
20310 (expand_case): Likewise.
20311 (expand_sjlj_dispatch_table): Likewise.
20313 2015-06-01 Martin Liska <mliska@suse.cz>
20315 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
20316 (free_bb): Likewise.
20317 (pass_cse_reciprocals::execute): Likewise.
20319 2015-06-01 Martin Liska <mliska@suse.cz>
20321 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
20322 (sra_deinitialize) Likewise.
20323 (create_access_1) Likewise.
20324 (build_accesses_from_assign) Likewise.
20325 (create_artificial_child_access) Likewise.
20327 2015-06-01 Martin Liska <mliska@suse.cz>
20329 * dse.c (get_group_info):Use new type-based pool allocator.
20330 (dse_step0) Likewise.
20331 (free_store_info) Likewise.
20332 (delete_dead_store_insn) Likewise.
20333 (free_read_records) Likewise.
20334 (record_store) Likewise.
20335 (replace_read) Likewise.
20336 (check_mem_read_rtx) Likewise.
20337 (scan_insn) Likewise.
20338 (dse_step1) Likewise.
20339 (dse_step7) Likewise.
20341 2015-06-01 Martin Liska <mliska@suse.cz>
20343 * df-scan.c (struct df_scan_problem_data):Use new type-based
20345 (df_scan_free_internal) Likewise.
20346 (df_scan_alloc) Likewise.
20347 (df_grow_reg_info) Likewise.
20348 (df_free_ref) Likewise.
20349 (df_insn_create_insn_record) Likewise.
20350 (df_mw_hardreg_chain_delete) Likewise.
20351 (df_insn_info_delete) Likewise.
20352 (df_free_collection_rec) Likewise.
20353 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
20354 (df_sort_and_compress_mws) Likewise.
20355 (df_ref_create_structure) Likewise.
20356 (df_ref_record) Likewise.
20358 2015-06-01 Martin Liska <mliska@suse.cz>
20360 * df-problems.c (df_chain_create):Use new type-based pool allocator.
20361 (df_chain_unlink_1) Likewise.
20362 (df_chain_unlink) Likewise.
20363 (df_chain_remove_problem) Likewise.
20364 (df_chain_alloc) Likewise.
20365 (df_chain_free) Likewise.
20366 * df.h (struct dataflow) Likewise.
20368 2015-06-01 Martin Liska <mliska@suse.cz>
20370 * cselib.c (new_elt_list):Use new type-based pool allocator.
20371 (new_elt_loc_list) Likewise.
20372 (unchain_one_elt_list) Likewise.
20373 (unchain_one_elt_loc_list) Likewise.
20374 (unchain_one_value) Likewise.
20375 (new_cselib_val) Likewise.
20376 (cselib_init) Likewise.
20377 (cselib_finish) Likewise.
20379 2015-06-01 Martin Liska <mliska@suse.cz>
20381 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
20382 (sh_reorg) Likewise.
20384 2015-06-01 Martin Liska <mliska@suse.cz>
20386 * cfg.c (initialize_original_copy_tables):Use new type-based
20388 (free_original_copy_tables) Likewise.
20389 (copy_original_table_clear) Likewise.
20390 (copy_original_table_set) Likewise.
20392 2015-06-01 Martin Liska <mliska@suse.cz>
20394 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
20396 (asan_mem_ref_new) Likewise.
20397 (free_mem_ref_resources) Likewise.
20399 2015-06-01 Martin Liska <mliska@suse.cz>
20401 * var-tracking.c (variable_htab_free):Use new type-based
20403 (attrs_list_clear) Likewise.
20404 (attrs_list_insert) Likewise.
20405 (attrs_list_copy) Likewise.
20406 (shared_hash_unshare) Likewise.
20407 (shared_hash_destroy) Likewise.
20408 (unshare_variable) Likewise.
20409 (var_reg_delete_and_set) Likewise.
20410 (var_reg_delete) Likewise.
20411 (var_regno_delete) Likewise.
20412 (drop_overlapping_mem_locs) Likewise.
20413 (variable_union) Likewise.
20414 (insert_into_intersection) Likewise.
20415 (canonicalize_values_star) Likewise.
20416 (variable_merge_over_cur) Likewise.
20417 (dataflow_set_merge) Likewise.
20418 (remove_duplicate_values) Likewise.
20419 (variable_post_merge_new_vals) Likewise.
20420 (dataflow_set_preserve_mem_locs) Likewise.
20421 (dataflow_set_remove_mem_locs) Likewise.
20422 (variable_from_dropped) Likewise.
20423 (variable_was_changed) Likewise.
20424 (set_slot_part) Likewise.
20425 (clobber_slot_part) Likewise.
20426 (delete_slot_part) Likewise.
20427 (loc_exp_insert_dep) Likewise.
20428 (notify_dependents_of_changed_value) Likewise.
20429 (emit_notes_for_differences_1) Likewise.
20430 (vt_emit_notes) Likewise.
20431 (vt_initialize) Likewise.
20432 (vt_finalize) Likewise.
20434 2015-06-01 Martin Liska <mliska@suse.cz>
20436 * ira-color.c (init_update_cost_records):Use new type-based
20438 (get_update_cost_record) Likewise.
20439 (free_update_cost_record_list) Likewise.
20440 (finish_update_cost_records) Likewise.
20441 (initiate_cost_update) Likewise.
20443 2015-06-01 Martin Liska <mliska@suse.cz>
20445 * lra.c (init_insn_regs): Use new type-based pool allocator.
20446 (new_insn_reg) Likewise.
20447 (free_insn_reg) Likewise.
20448 (free_insn_regs) Likewise.
20449 (finish_insn_regs) Likewise.
20450 (init_insn_recog_data) Likewise.
20451 (init_reg_info) Likewise.
20452 (finish_reg_info) Likewise.
20453 (lra_free_copies) Likewise.
20454 (lra_create_copy) Likewise.
20455 (invalidate_insn_data_regno_info) Likewise.
20457 2015-06-01 Martin Liska <mliska@suse.cz>
20459 * lra-lives.c (free_live_range): Use new type-based pool allocator.
20460 (free_live_range_list) Likewise.
20461 (create_live_range) Likewise.
20462 (copy_live_range) Likewise.
20463 (lra_merge_live_ranges) Likewise.
20464 (remove_some_program_points_and_update_live_ranges) Likewise.
20465 (lra_live_ranges_init) Likewise.
20466 (lra_live_ranges_finish) Likewise.
20468 2015-06-01 Martin Liska <mliska@suse.cz>
20470 * et-forest.c (et_new_occ): Use new type-based pool allocator.
20471 (et_new_tree): Likewise.
20472 (et_free_tree): Likewise.
20473 (et_free_tree_force): Likewise.
20474 (et_free_pools): Likewise.
20475 (et_split): Likewise.
20477 2015-06-01 Martin Liska <mliska@suse.cz>
20479 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
20481 * alloc-pool.h (pool_allocator::pool_allocator): New function.
20482 (pool_allocator::release): Likewise.
20483 (inline pool_allocator::release_if_empty): Likewise.
20484 (inline pool_allocator::~pool_allocator): Likewise.
20485 (pool_allocator::allocate): Likewise.
20486 (pool_allocator::remove): Likewise.
20488 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
20490 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
20493 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
20495 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
20497 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
20498 (arm_macro_fusion_p): Likewise.
20499 (arm_macro_fusion_pair_p): Likewise.
20501 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
20503 * config/aarch64/aarch64-protos.h (tune_params): Rename
20504 fuseable_ops to fusible_ops.
20505 * config/aarch64/aarch64.c (generic_tunings): Rename
20506 fuseable_ops to fusible_ops.
20507 (cortexa53_tunings): Likewise.
20508 (cortexa57_tunings): Likewise.
20509 (thunderx_tunings): Likewise.
20510 (xgene1_tunings): Likewise.
20511 (aarch64_macro_fusion_p): Likewise.
20512 (aarch64_macro_fusion_pair_p): Likewise.
20514 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
20516 * config/s390/driver-native.c: New file.
20517 * config/s390/x-native: New file.
20518 * config.host: Add new files for s390.
20519 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
20521 * config.gcc: Likewise.
20522 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
20523 * config/s390/s390-opts.h (enum processor_type): Ditto.
20524 * config/s390/s390.c (s390_option_override): Catch unhandled
20527 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
20530 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
20531 redirection for instrumented calls.
20532 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
20533 (append_compiler_options): Append -fcheck-pointer-bounds.
20534 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
20535 (chkp_redirect_edge): New.
20536 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
20537 (chkp_redirect_edge): New.
20539 2015-06-01 Richard Biener <rguenther@suse.de>
20541 PR tree-optimization/66280
20542 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
20545 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20547 * config/aarch64/aarch64.md
20548 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
20551 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
20553 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
20554 Remove obsolete kludge.
20556 2015-06-01 Richard Biener <rguenther@suse.de>
20558 * tree-ssa-reassoc.c (get_rank): Simplify.
20560 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
20562 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
20563 * configure: Regenerated.
20565 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
20567 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
20568 issue (add space between string literal and macro).
20569 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
20571 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
20573 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
20574 implict or explicit -fPIE or -fpie.
20576 2015-05-30 Mike Frysinger <vapier@gentoo.org>
20578 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
20580 2015-05-28 DJ Delorie <dj@redhat.com>
20582 * expmed.c (extract_bit_field_1): Avoid clobbering a
20583 yet-to-be-used base/index register.
20585 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
20587 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
20588 (alias_stats): Add num_universal.
20589 (alias_set_subset_of): Special case pointers; be ready for NULL
20591 (alias_sets_conflict_p): Special case pointers; be ready for NULL
20593 (init_alias_set_entry): Break out from ...
20594 (record_alias_subset): ... here; propagate new fields;
20595 allocate children only when really needed.
20596 (get_alias_set): Do less generous pointer globbing.
20597 (dump_alias_stats_in_alias_c): Update statistics.
20599 2015-05-30 Alan Modra <amodra@gmail.com>
20601 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
20602 correct block for use of r12.
20603 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
20605 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
20608 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
20611 2015-05-29 Jakub Jelinek <jakub@redhat.com>
20613 PR tree-optimization/66142
20614 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
20615 virtual phis that feed themselves.
20617 2015-05-29 Richard Biener <rguenther@suse.de>
20619 PR tree-optimization/66314
20620 * tree-ssa-threadupdate.c (create_block_for_threading): Add
20621 parameter that says which loop the new block belongs to.
20622 (ssa_create_duplicates): Blocks duplicated for the threaded
20623 path belong to the loop of the thread destination.
20625 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20627 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
20628 to cleanup-saved-temps.
20629 * doc/sourcebuild.texi (Clean up generated test files): Expand
20631 (dg-keep-saved-temps): Document new proc.
20632 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
20633 cleanup-saved-temps): Remove.
20635 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
20637 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
20638 gcc_AC_CHECK_DECLS.
20639 * configure: Regenerate.
20641 2015-05-28 Mike Frysinger <vapier@gentoo.org>
20643 * config/nios2/linux.h (CPP_SPEC): Define.
20645 2015-05-28 Mike Frysinger <vapier@gentoo.org>
20647 * config/microblaze/linux.h (CPP_SPEC): Define.
20649 2015-05-28 Mike Frysinger <vapier@gentoo.org>
20651 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
20652 -pthread is specified.
20654 2015-05-28 Richard Biener <rguenther@suse.de>
20656 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
20657 (vect_fixup_scalar_cycles_with_patterns): Likewise.
20658 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
20659 after pattern recog.
20660 (vect_create_epilog_for_reduction): Properly handle reductions
20662 (vectorizable_reduction): Likewise.
20663 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
20665 (vect_get_constant_vectors): Create the correct number of
20666 initial values for reductions.
20667 (vect_schedule_slp_instance): Handle reduction chains that are
20668 type changing properly.
20669 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
20671 2015-05-28 Richard Biener <rguenther@suse.de>
20673 PR tree-optimization/66142
20674 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
20675 values better in memcpy destination handling. Handle non-aliasing
20678 2015-05-28 Lawrence Velázquez <vq@larryv.me>
20681 * config/darwin-c.c (version_components): New global enum.
20682 (parse_version, version_as_legacy_macro)
20683 (version_as_modern_macro, macosx_version_as_macro): New functions.
20684 (version_as_macro): Remove.
20685 (darwin_cpp_builtins): Use new function.
20687 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
20689 * builtins.c (expand_builtin_acc_on_device): Mark parameters
20690 with ATTRIBUTE_UNUSED.
20692 2015-05-28 Julian Brown <julian@codesourcery.com>
20696 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
20697 sequence for !ACCEL_COMPILER.
20699 2015-05-28 Nick Clifton <nickc@redhat.com>
20701 * config/rx/rx.c (push_regs): New function. Extracts code from...
20702 (rx_expand_prologue): ... here. Use push_regs to push even small
20703 spans of registers.
20704 (pop_regs): New function.
20705 (rx_expand_epilogue): Use pop_regs to pop even small spans of
20708 2015-05-28 Richard Biener <rguenther@suse.de>
20710 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
20712 (SLP_INSTANCE_BODY_COST_VEC): Remove.
20713 (vect_update_slp_costs_according_to_vf): Likewise.
20714 (vect_slp_analyze_operations): Update prototype.
20715 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
20716 vect_update_slp_costs_according_to_vf, adjust.
20717 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
20718 (vect_analyze_slp_cost_1): Likewise.
20719 (vect_analyze_slp_cost): Likewise. Properly deal with
20720 widening reduction ops. Commit body costs.
20721 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
20722 cost for loops from here.
20723 (vect_slp_analyze_operations): But do it from here when
20724 the vectorization factor is known and stmts are analyzed.
20725 (vect_bb_vectorization_profitable_p): Simplify.
20726 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
20727 (vect_update_slp_costs_according_to_vf): Remove.
20729 2015-05-27 Magnus Granberg <zorry@gentoo.org>
20730 H.J. Lu <hongjiu.lu@intel.com>
20732 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
20733 (BUILD_CFLAGS): Likewise.
20734 (BUILD_CXXFLAGS): Likewise.
20735 (LINKER): Add @NO_PIE_FLAG@.
20736 (BUILD_LDFLAGS): Likewise.
20737 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
20738 --enable-default-pie.
20739 * common.opt (fPIE): Initialize to -1.
20741 (no-pie): New option.
20742 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
20743 * configure.ac: Add --enable-default-pie.
20744 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
20745 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
20746 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
20747 * gcc.c (NO_PIE_SPEC): New.
20748 (PIE_SPEC): Likewise.
20749 (NO_FPIE1_SPEC): Likewise.
20750 (FPIE1_SPEC): Likewise.
20751 (NO_FPIE2_SPEC): Likewise.
20752 (FPIE2_SPEC): Likewise.
20753 (NO_FPIE2_SPEC): Likewise.
20754 (FPIE_SPEC): Likewise.
20755 (NO_FPIE_SPEC): Likewise.
20756 (NO_FPIC1_SPEC): Likewise.
20757 (FPIC1_SPEC): Likewise.
20758 (NO_FPIC2_SPEC): Likewise.
20759 (FPIC2_SPEC): Likewise.
20760 (NO_FPIC2_SPEC): Likewise.
20761 (FPIC_SPEC): Likewise.
20762 (NO_FPIC_SPEC): Likewise.
20763 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
20764 (FPIE1_OR_FPIC1_SPEC): Likewise.
20765 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
20766 (FPIE2_OR_FPIC2_SPEC): Likewise.
20767 (NO_FPIE_AND_FPIC_SPEC): Likewise.
20768 (FPIE_OR_FPIC_SPEC): Likewise.
20769 (LD_PIE_SPEC): Likewise.
20770 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
20771 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
20772 * config/darwin.h (PIE_SPEC): Renamed to ...
20773 (DARWIN_PIE_SPEC): This.
20774 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
20775 * config/darwin9.h (PIE_SPEC): Renamed to ...
20776 (DARWIN_PIE_SPEC): This.
20777 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
20778 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
20779 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
20780 FPIE2_OR_FPIC2_SPEC.
20781 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
20782 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
20783 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
20784 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20785 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20786 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20787 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
20788 * config/m32r/m32r.h (ASM_SPEC): Likewise.
20789 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
20790 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
20791 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
20792 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
20793 * config/sparc/linux.h (ASM_SPEC): Likewise.
20794 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20795 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
20796 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
20797 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20798 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
20799 * config/sparc/sparc.h (ASM_SPEC): Likewise.
20800 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
20801 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
20802 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
20803 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
20804 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
20805 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
20806 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
20807 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
20808 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
20809 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
20810 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
20811 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
20812 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20813 * config/vax/linux.h (ASM_SPEC): Likewise.
20814 * doc/install.texi: Document --enable-default-pie.
20815 * doc/invoke.texi: Document -no-pie.
20816 * config.in: Regenerated.
20817 * configure: Likewise.
20819 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
20821 PR rtl-optimization/66168
20822 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
20823 can_move_invariant_reg.
20825 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
20828 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
20829 REG_EQUAL note when doing insert.
20831 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
20832 instead of "%d" for 'o' operand.
20834 2015-05-27 Nathan Sidwell <nathan@acm.org>
20837 * tree.c (build_pointer_type_for_mode): Canonical type does not
20838 inherit can_alias_all.
20839 (build_reference_type_for_mode): Likewise.
20841 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
20843 * expr.h (array_at_struct_end_p): Move to...
20844 (array_ref_element_size): Likewise.
20845 (component_ref_field_offset): Likewise.
20846 * tree.h (array_ref_element_size): ...here.
20847 (array_at_struct_end_p): Likewise.
20848 (component_ref_field_offset): Likewise.
20849 * expr.c (array_ref_element_size): Move to...
20850 (array_ref_low_bound): Likewise.
20851 (array_at_struct_end_p): Likewise.
20852 (array_ref_up_bound): Likewise.
20853 (component_ref_field_offset): Likewise.
20854 * tree.c (array_ref_element_size): ...here.
20855 (array_ref_low_bound): Likewise.
20856 (array_ref_up_bound): Likewise.
20857 (array_at_struct_end_p): Likewise.
20858 (component_ref_field_offset): Likewise.
20860 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
20861 Szabolcs Nagy <szabolcs.nagy@arm.com>
20863 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
20865 2015-05-27 Jason Merrill <jason@redhat.com>
20868 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
20869 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
20870 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
20872 2015-05-22 Aditya Kumar <hiraditya@msn.com>
20874 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
20877 * statistics.c (statistics_fini_pass): Print pass name.
20879 2015-05-27 Richard Biener <rguenther@suse.de>
20881 PR tree-optimization/66272
20883 2014-08-15 Richard Biener <rguenther@suse.de>
20885 PR tree-optimization/62031
20886 * tree-data-ref.c (dr_analyze_indices): Do not set
20887 DR_UNCONSTRAINED_BASE.
20888 (dr_may_alias_p): All indirect accesses have to go the
20889 formerly DR_UNCONSTRAINED_BASE path.
20890 * tree-data-ref.h (struct indices): Remove
20891 unconstrained_base member.
20892 (DR_UNCONSTRAINED_BASE): Remove.
20894 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
20896 * dwarf2out.c: Remove block_map.
20897 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
20898 (gen_lexical_block_die): Same.
20899 (dwarf2out_function_decl): Remove block_map use.
20900 (dwarf2out_c_finalize): Same.
20901 * tree-core.h (struct tree_block): Add die field.
20902 * tree.h (BLOCK_DIE): New.
20904 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20907 * expr.c (memory_load_overlap): New function.
20908 (emit_push_insn): When pushing partial args to the stack would
20909 clobber the register part load the overlapping part into a pseudo
20910 and put it into the hard reg after pushing. Change return type
20911 to bool. Add bool argument.
20912 * expr.h (emit_push_insn): Change return type to bool.
20914 * calls.c (expand_call): Cancel sibcall optimization when encountering
20915 partial argument on targets with ARGS_GROW_DOWNWARD and
20916 !STACK_GROWS_DOWNWARD.
20917 (emit_library_call_value_1): Update callsite of emit_push_insn.
20918 (store_one_arg): Likewise.
20920 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
20922 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
20924 2015-05-27 Martin Liska <mliska@suse.cz>
20926 * Makefile.in: Add additional dependencies related to memory report
20928 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
20929 * bitmap.c (struct bitmap_descriptor_d): Remove.
20930 (struct loc): Likewise.
20931 (struct bitmap_desc_hasher): Likewise.
20932 (bitmap_desc_hasher::hash): Likewise.
20933 (bitmap_desc_hasher::equal): Likewise.
20934 (get_bitmap_descriptor): Likewise.
20935 (bitmap_register): User new memory descriptor API.
20936 (register_overhead): Likewise.
20937 (bitmap_find_bit): Register nsearches and search_iter statistics.
20938 (struct bitmap_output_info): Remove.
20939 (print_statistics): Likewise.
20940 (dump_bitmap_statistics): Use new memory descriptor.
20941 * bitmap.h (struct bitmap_usage): New class.
20942 * genmatch.c: Extend header file inclusion.
20943 * genpreds.c: Likewise.
20944 * ggc-common.c (struct ggc_usage): New class.
20945 (struct ggc_loc_desc_hasher): Remove.
20946 (ggc_loc_desc_hasher::hash): Likewise.
20947 (ggc_loc_desc_hasher::equal): Likewise.
20948 (struct ggc_ptr_hash_entry): Likewise.
20949 (struct ptr_hash_hasher): Likewise.
20950 (ptr_hash_hasher::hash): Likewise.
20951 (ptr_hash_hasher::equal): Likewise.
20952 (make_loc_descriptor): Likewise.
20953 (ggc_prune_ptr): Likewise.
20954 (dump_ggc_loc_statistics): Use new memory descriptor.
20955 (ggc_record_overhead): Likewise.
20956 (ggc_free_overhead): Likewise.
20957 (final_cmp_statistic): Remove.
20958 (cmp_statistic): Likewise.
20959 (ggc_add_statistics): Liekwise.
20960 (ggc_prune_overhead_list): Likewise.
20961 * hash-map-traits.h: New file.
20962 * hash-map.h (struct default_hashmap_traits): Move the traits to a
20963 separate header file.
20964 * hash-set.h: Pass memory statistics info to ctor.
20965 * hash-table.c (void dump_hash_table_loc_statistics): New function.
20966 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
20967 (hash_table::~hash_table): Register memory release operation.
20968 (hash_table::alloc_entries): Handle memory allocation operation.
20969 (hash_table::expand): Likewise.
20970 * inchash.c (iterative_hash_hashval_t): Move implementation to header
20972 (iterative_hash_host_wide_int): Likewise.
20973 * inchash.h (class hash): Likewise.
20974 * mem-stats-traits.h: New file.
20975 * mem-stats.h: New file.
20976 (mem_location): Add new class.
20977 (mem_usage): Likewise.
20978 (mem_alloc_description): Likewise.
20979 * sese.c: Add new header file inclusision.
20980 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
20982 * tree-sra.c: Add new header file inclusision.
20983 * vec.c (struct vec_descriptor): Remove.
20984 (hash_descriptor): Likewise.
20985 (struct vec_usage): Likewise.
20986 (struct ptr_hash_entry): Likewise.
20987 (hash_ptr): Likewise.
20988 (eq_ptr): Likewise.
20989 (vec_prefix::register_overhead): Use new memory descriptor API.
20990 (vec_prefix::release_overhead): Likewise.
20991 (add_statistics): Remove.
20992 (dump_vec_loc_statistics): Use new memory descriptor API.
20993 * vec.h (struct vec_prefix): Likewise.
20994 (va_heap::reserve): Likewise.
20995 (va_heap::release): Likewise.
20996 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
20998 2015-05-27 Richard Biener <rguenther@suse.de>
21000 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
21001 earlier and remove ??? comment.
21002 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
21003 and got called from loop analysis bail out. Always pass the SLP
21004 node to the vectorizable_* functions.
21005 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
21006 the premature SLP check here.
21007 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
21008 detected SLP stmts.
21009 (vect_detect_hybrid_slp_1): Likewise.
21011 2015-05-26 Jeff Law <law@redhat.com>
21013 * combine.c (find_split_point): Verify that the shift count is a
21014 constant when choosing (plus (ashift ...)) as a split point.
21016 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
21017 No functional changes.
21019 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
21021 * ipa-polymorphic-call.c
21022 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
21023 case when call target is already known.
21025 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
21028 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
21029 take into account the case that operands[1] and operands[2]
21030 are the same register.
21032 2015-05-26 Michael Matz <matz@suse.de>
21034 PR middle-end/66251
21036 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
21038 (vect_create_vectorized_demotion_stmts): Always set
21039 STMT_VINFO_VEC_STMT, also with SLP.
21040 (vectorizable_store): Handle strided group stores.
21042 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21045 * config/aarch64/aarch64.md
21046 (*adds_shift_imm_<mode>): New pattern.
21047 (*subs_shift_imm_<mode>): Likewise.
21048 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
21049 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
21050 (*add_uxt<mode>_shift2): Likewise.
21051 (*add_uxtsi_shift2_uxtw): Likewise.
21052 (*sub_uxt<mode>_shift2): Likewise.
21053 (*sub_uxtsi_shift2_uxtw): Likewise.
21055 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
21057 * config/rs6000/constraints.md (Y, U): Use match_test.
21059 2015-05-26 Christian Bruel <christian.bruel@st.com>
21062 * config/arm/arm.c (arm_option_check_internal)
21063 (arm_option_params_internal): Check opts->target_flags to set macros.
21064 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
21065 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
21066 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
21067 (builtin_define): Replaced with def_or_undef_macro.
21068 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
21069 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
21070 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
21071 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
21072 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
21073 (TARGET_ARM_FEATURE_LDREX_P)
21074 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
21075 * config/arm/arm-c.c (def_or_undef_macro): New function.
21076 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
21078 2015-05-26 Christian Bruel <christian.bruel@st.com>
21080 * c-common.h (builtin_define_with_int_value)
21081 (builtin_define_type_sizeof): Declare.
21082 * c-cppbuiltin.c (builtin_define_with_int_value)
21083 (builtin_define_type_sizeof): Externalize.
21084 (builtin_define_std): Cleanup declaration.
21085 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
21086 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
21087 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
21088 (builtin_define, builtin_assert): New macros.
21090 2015-05-26 Richard Biener <rguenther@suse.de>
21092 PR tree-optimization/66142
21093 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
21094 MEM_REFs for the same base address.
21096 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21099 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
21101 2015-05-26 Jason Merrill <jason@redhat.com>
21103 * configure.ac: Set CXXFLAGS for ISL test.
21104 * configure: Regenerate.
21106 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
21107 strstr and basename.
21108 * configure: Regenerate.
21110 2015-05-26 Richard Biener <rguenther@suse.de>
21112 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
21113 X % C -> X & (C - 1) for C being a power-of two to ...
21114 * match.pd: ... patterns.
21116 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
21118 * match.pd (swapped_tcc_comparison): New operator list.
21119 (-A CMP -B): New simplification.
21120 * fold-const.c (fold_comparison): Remove corresponding code.
21122 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
21124 * caller-save.c (init_caller_save): Base temporary register numbers
21125 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
21126 * cfgloopanal.c (init_set_costs): Likewise.
21127 * dojump.c (prefer_and_bit_test): Likewise.
21128 * expr.c (init_expr_target): Likewise.
21129 * ira.c (setup_prohibited_mode_move_regs): Likewise.
21130 * lower-subreg.c (init_lower_subreg): Likewise.
21131 * postreload.c (reload_cse_regs_1): Likewise.
21133 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
21135 * gensupport.h (compute_test_codes): Declare.
21136 * gensupport.c (compute_predicate_codes): Rename to...
21137 (compute_test_codes): ...this. Generalize error message.
21138 (process_define_predicate): Update accordingly.
21139 * genpreds.c (compute_maybe_allows): Delete.
21140 (add_constraint): Use compute_test_codes to determine whether
21141 something can accept a SUBREG, REG or MEM.
21143 2015-05-26 Torvald Riegel <triegel@redhat.com>
21145 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
21146 'memory model' to align with C++11; fix description of memory orders;
21149 2015-05-26 Richard Biener <rguenther@suse.de>
21151 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
21152 (vect_analyze_loop_operations): ... here. Remove slp parameter,
21153 detect whether we apply SLP. Remove call to
21154 vect_update_slp_costs_according_to_vf.
21155 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
21156 vect_update_slp_costs_according_to_vf from here. Dispatch
21157 to vect_slp_analyze_operations to analyze SLP stmts.
21158 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
21159 unused bb_vec_info parameter, adjust assert.
21160 (vect_slp_analyze_operations): Pass in the slp instance tree
21161 instead of bb_vec_info.
21162 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
21163 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
21165 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
21167 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
21168 Q_REGS. Expand comment.
21169 (REG_CLASS_NAMES): Ditto.
21170 (REG_CLASS_CONTENTS): Ditto.
21172 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
21175 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
21176 when LEGACY_INT_REGNO_P is processed.
21178 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
21180 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
21182 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
21184 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
21185 register if not marked dead/unused, before return.
21187 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
21190 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
21191 is set; check for assembler name at LTO time.
21192 (type_in_anonymous_namespace): Remove hacks, check that all
21193 anonymous types are called "<anon>"
21194 (odr_type_p): Simplify; add check for "<anon>"
21195 (odr_subtypes_equivalent): Add odr_type_p check.
21196 * tree.c (need_assembler_name_p): Even anonymous namespace needs
21199 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
21201 * ipa-utils.h (method_class_type): Remove.
21202 * cgraphunit.c (walk_polymorphic_call_targets): Use
21203 TYPE_METHOD_BASETYPE.
21204 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
21205 on main variants only.
21206 (method_class_type): Remove.
21207 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
21208 (build_type_inheritance_graph): Likewise.
21209 * ipa-icf.c (sem_function::equals_wpa): Likewise.
21210 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
21211 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
21213 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
21215 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
21216 is_typedef_decl, typedef_variant_p): Constify.
21217 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
21218 is_typedef_decl, typedef_variant_p): Constify.
21220 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21222 * defaults.h (gen_tablejump): New function.
21223 (HAVE_tablejump): Add default value.
21225 * stmt.c: Likewise.
21227 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21229 * defaults.h (gen_store_multiple): New function.
21230 (HAVE_store_multiple): Add default value.
21231 * expr.c (move_block_from_reg): Adjust.
21233 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21235 * defaults.h (gen_load_multiple): New function.
21236 (HAVE_load_multiple): Add default value.
21237 * expr.c (move_block_to_reg): Adjust.
21239 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21241 * defaults.h (gen_mem_signal_fence): New function.
21242 (HAVE_mem_signal_fence): Add default value.
21243 * optabs.c: Adjust.
21245 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21247 * defaults.h (gen_memory_barrier): New function.
21248 (HAVE_memory_barrier): Add default value.
21249 * optabs.c: Adjust.
21251 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21253 * defaults.h (gen_mem_thread_fence): New function.
21254 (HAVE_mem_thread_fence): Add default definition.
21255 * optabs.c: Adjust.
21257 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21259 * combine.c (find_split_point): Check the value of HAVE_lo_sum
21260 instead of if it is defined.
21261 (combine_simplify_rtx): Likewise.
21262 * lra-constraints.c (process_address_1): Likewise.
21263 * config/darwin.c: Adjust.
21264 * genconfig.c (main): Always define HAVE_lo_sum.
21266 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21268 * genmatch.c (parser::parse_operation): Reject expanding
21269 operator-list inside 'for'.
21271 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21273 * genmatch.c (parser::parse_for): Reject iterator if used as
21276 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21278 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
21279 after end of id-list.
21281 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
21283 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
21284 we do not try to compute canonical type for type that does not need
21286 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
21288 * tree.h (type_with_alias_set_p): New.
21290 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
21292 * tree.c (gimple_canonical_types_compatible_p): Do not compare
21293 function attributes.
21294 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
21296 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
21298 * Makefile.in (check_gcc_parallelize): Delete.
21299 (lang_checks_parallelized): Update comment.
21301 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
21303 PR rtl-optimization/66237
21304 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
21305 location of an "as_a" cast.
21307 2015-05-22 Jeff Law <law@redhat.com>
21309 * config/pa/pa.md (non-canonical shift-add insns): Remove.
21310 (peepholes with non-canonical RTL sources): Remove.
21311 (peepholes for indexed stores of FP regs in integer modes): Match and
21312 generate canonical RTL.
21314 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
21316 PR tree-optimization/63387
21317 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
21318 ((x ord x) & (y ord y) -> (x ord y),
21319 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
21320 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
21321 vectors like scalars.
21323 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
21325 * convert.c (convert_to_integer, convert_to_vector): Include the
21326 types in the error message.
21328 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
21330 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
21333 2015-05-22 Jeff Law <law@redhat.com>
21335 * config/pa/pa.md (integer_indexed_store splitters): Use
21336 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
21337 insns -- adjusting the constant 2nd operand accordingly.
21339 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
21340 (plus (ashift X log2) Y) if it is a split point.
21342 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
21343 out of hppa_legitimize_address to handle both forms of a multiply
21345 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
21346 Always generate the ASHIFT variant as the result is not directly
21347 used in a MEM. Update comments and refactor slightly to improve
21350 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21353 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
21354 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
21355 (aarch64_composite_type_p): Return false if given type and mode are
21356 for a short vector.
21358 2015-05-22 Richard Biener <rguenther@suse.de>
21360 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
21362 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
21363 patterns when determining whether SLP is pure.
21364 (vect_is_slp_reduction): Remove check for pattern stmts.
21365 (vect_is_simple_reduction_1): Remove dead code.
21366 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
21367 (vect_get_and_check_slp_defs): Pass in the stmt number.
21368 Allow the first def in a reduction to be not a pattern stmt when
21369 the rest of the stmts def are patterns.
21370 (vect_build_slp_tree_1): Allow tcc_expression codes like
21371 SAD_EXPR and DOT_PROD_EXPR.
21372 (vect_build_slp_tree): Adjust.
21373 (vect_analyze_slp): Refactor and move BB vect error message ...
21374 (vect_slp_analyze_bb_1): ... here.
21376 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
21378 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
21379 for CSWTCH temporary.
21381 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21383 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
21384 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
21387 2015-05-22 Richard Biener <rguenther@suse.de>
21389 PR tree-optimization/66251
21390 * tree-vect-stmts.c (vectorizable_conversion): Properly
21391 set STMT_VINFO_VEC_STMT even for the SLP case.
21393 2015-05-22 Marek Polacek <polacek@redhat.com>
21395 * doc/extend.texi: Use @pxref instead of @xref.
21397 2015-05-22 hiraditya <hiraditya@msn.com>
21399 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
21402 2015-05-22 Richard Biener <rguenther@suse.de>
21404 PR tree-optimization/65701
21405 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21406 Move peeling cost models into one place. Peel for alignment
21407 for single loads only if an aligned load is cheaper than
21410 2015-05-22 Marek Polacek <polacek@redhat.com>
21413 * doc/extend.texi (Enumerator Attributes): New section.
21414 Document syntax of enumerator attributes.
21416 2015-05-22 Richard Biener <rguenther@suse.de>
21418 * tree-vect-loop.c (get_reduction_op): New function.
21419 (vect_model_reduction_cost): Use it, add reduc_index parameter.
21420 Make ready for BB reductions.
21421 (vect_create_epilog_for_reduction): Use get_reduction_op.
21422 (vectorizable_reduction): Init reduc_index to a valid value.
21423 Adjust vect_model_reduction_cost call.
21424 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
21425 operand for reduction defaults. Add SAD_EXPR support.
21426 Assert we have a neutral op for SLP reductions.
21427 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
21428 walking pattern stmt ops only recurse to SSA names.
21430 2015-05-22 Richard Biener <rguenther@suse.de>
21432 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
21433 assert with guard, remove check on detected reduction.
21434 (vect_recog_sad_pattern): Likewise.
21435 (vect_recog_widen_sum_pattern): Likewise.
21437 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21439 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
21440 __always_inline__ attribute.
21441 (vaesdq_u8): Likewise.
21442 (vaesmcq_u8): Likewise.
21443 (vaesimcq_u8): Likewise.
21444 (vsha1cq_u32): Likewise.
21445 (vsha1mq_u32): Likewise.
21446 (vsha1pq_u32): Likewise.
21447 (vsha1h_u32): Likewise.
21448 (vsha1su0q_u32): Likewise.
21449 (vsha1su1q_u32): Likewise.
21450 (vsha256hq_u32): Likewise.
21451 (vsha256h2q_u32): Likewise.
21452 (vsha256su0q_u32): Likewise.
21453 (vsha256su1q_u32): Likewise.
21454 (vmull_p64): Likewise.
21455 (vmull_high_p64): Likewise.
21457 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21459 * final.c (final_scan_insn): Don't check HAVE_peephole with the
21461 * output.h: Likewise.
21462 * genconfig.c (main): Alwways define HAVE_peephole.
21463 * genpeep.c: Don't emit checks of HAVE_peephole.
21465 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21467 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
21468 check HAVE_conditional_move with the preprocessor.
21470 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21472 * genconfig.c (main): Always define HAVE_conditional_move.
21473 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
21474 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
21477 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21479 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
21480 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
21481 and FRAME_POINTER_REGNUM with the preprocessor.
21483 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21485 * defaults.h: Add default for STACK_PUSH_CODE.
21486 * expr.c: Don't redefine STACK_PUSH_CODE.
21487 * recog.c: Likewise.
21489 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21491 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
21492 sched-deps.c: Use if instead of preprocessor checks with
21493 STACK_GROWS_DOWNWARD.
21495 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21497 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
21499 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
21500 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
21501 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
21502 * doc/tm.texi: Regenerate.
21504 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
21507 * config/i386/constraints.md (Bg): New constraint for GOT memory
21509 * config/i386/i386.md (*call_got_x32): New pattern.
21510 (*call_value_got_x32): Likewise.
21511 * config/i386/predicates.md (GOT_memory_operand): New predicate.
21513 2015-05-21 Jakub Jelinek <jakub@redhat.com>
21515 PR tree-optimization/66233
21516 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
21519 2015-05-21 Jeff Law <law@redhat.com>
21521 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
21522 than MULT for shadd sequences.
21524 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
21526 * alias.c (alias_stats): New static var.
21527 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
21528 (dump_alias_stats_in_alias_c): New function.
21529 * alias.h (dump_alias_stats_in_alias_c): Declare.
21530 * tree-ssa-alias.c (dump_alias_stats): Call it.
21532 2015-05-08 Michael Matz <matz@suse.de>
21534 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
21536 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
21537 (STMT_VINFO_STRIDED_P): ... this.
21538 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
21539 (vect_verify_datarefs_alignment): Likewise.
21540 (vect_enhance_data_refs_alignment): Likewise.
21541 (vect_analyze_data_ref_access): Likewise.
21542 (vect_analyze_data_refs): Accept strided stores.
21543 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
21544 (vect_model_load_cost): Adjust for macro rename.
21545 (vectorizable_mask_load_store): Likewise.
21546 (vectorizable_load): Likewise.
21547 (vectorizable_store): Open code strided stores.
21549 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21551 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
21552 Document sqrt_insn.
21554 2015-05-21 Richard Biener <rguenther@suse.de>
21557 * match.pd: Guard pattern optimzing (int)(float)int
21558 conversions to apply only on GIMPLE.
21560 2015-05-21 Jeff Law <law@redhat.com>
21562 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
21563 multiply-accumulate/shift-add insn generation.
21565 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
21568 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
21569 operands[1] are the same.
21571 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
21573 PR middle-end/66221
21574 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
21575 build_distinct_type_copy to copy bounds.
21577 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
21579 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
21580 Change to unsigned int.
21582 2015-05-20 Jeff Law <law@redhat.com>
21584 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
21585 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
21586 (pa_shadd_constant_p): Allow constants for shadd insns rather
21587 than valid scaling constants for memory addresses.
21588 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
21589 * config/pa/predicates.md (mem_shadd_operand): New predicate.
21590 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
21591 (shift-add insns using ASHIFT): New patterns.
21593 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
21595 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
21597 (fix_up_fall_thru_edges): Likewise.
21598 (fix_crossing_conditional_branches): Likewise. Promote jump targets
21599 from to rtx_insn to rtx_code_label where feasible.
21600 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
21601 gen_move_insn (returned type changed to rtx_insn).
21602 * builtins.c (expand_errno_check): Fix arguments of
21603 do_compare_rtx_and_jump (now expects rtx_code_label).
21604 (expand_builtin_acc_on_device): Likewise.
21605 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
21606 invert_jump (now exprects rtx_jump_insn).
21607 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
21608 (construct_init_block): Use rtx_code_label.
21609 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
21610 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
21611 calling redirect_jump.
21612 (patch_jump_insn): Likewise.
21613 (redirect_branch_edge): Likewise.
21614 (force_nonfallthru_and_redirect): Likewise.
21615 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
21617 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
21618 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
21619 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
21620 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
21621 to store the value retured by gen_label_rtx.
21622 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
21624 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
21625 (split_branches): Fix calls of redirect_jump.
21626 * dojump.c (jumpifnot): Promote argument type from rtx to
21628 (jumpifnot_1): Likewise.
21629 (jumpif): Likewise.
21630 (jumpif_1): Likewise.
21631 (do_jump_1): Likewise.
21632 (do_jump): Likewise. Use rtx_code_label when feasible.
21633 (do_jump_by_parts_greater_rtx): Likewise.
21634 (do_jump_by_parts_zero_rtx): Likewise.
21635 (do_jump_by_parts_equality_rtx): Likewise.
21636 (do_compare_rtx_and_jump): Likewise.
21637 * dojump.h: Update function prototypes.
21638 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
21640 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
21642 (emit_label_before): Likewise.
21643 (emit_jump_insn_after_noloc): Likewise.
21644 (emit_jump_insn_after_setloc): Likewise.
21645 (emit_jump_insn_after): Likewise
21646 (emit_jump_insn_before_setloc): Likewise.
21647 (emit_jump_insn_before): Likewise.
21648 (emit_label_before): Promote return type to rtx_code_label.
21649 (emit_label): Likewise.
21650 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
21651 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
21653 (emit_stack_restore): Likewise.
21654 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
21655 (do_cmp_and_jump): Likewise.
21656 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
21657 from rtx to rtx_code_label.
21658 (gen_move_insn_uncast): New function.
21659 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
21660 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
21661 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
21662 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
21663 invert_jump_1 and redirect_jump_1.
21664 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
21665 do_compare_rtx_and_jump.
21666 (expand_addsub_overflow): Likewise.
21667 (expand_neg_overflow): Likewise.
21668 (expand_mul_overflow): Likewise.
21669 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
21670 return value of gen_move_insn.
21671 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
21672 * loop-doloop.c (add_test): Use rtx_code_label.
21673 (doloop_modify): Likewise.
21674 (doloop_optimize): Likewise.
21675 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
21676 * lra-constraints.c (emit_spill_move): Remove cast of value returned
21678 (inherit_reload_reg): Add cast when calling dump_insn_slim.
21679 (split_reg): Likewise.
21680 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
21682 * optabs.c (expand_binop_directly): Remove casts of values returned by
21684 (expand_unop_direct): Likewise.
21685 (expand_abs): Likewise.
21686 (maybe_emit_unop_insn): Likewise.
21687 (maybe_gen_insn): Promote return type to rtx_insn.
21688 * optabs.h: Update prototype of maybe_gen_insn.
21689 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
21691 * recog.c (struct peep2_insn_data): Promote type of insn field to
21693 (peep2_reinit_state): Use NULL instead of NULL_RTX.
21694 (peep2_attempt): Remove casts of insn in peep2_insn_data.
21695 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
21696 * recog.h (struct insn_gen_fn): Promote return types of function
21697 pointers and operator ().from rtx to rtx_insn.
21698 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
21699 (fill_eager_delay_slots): Likewise.
21700 (relax_delay_slots): Likewise.
21701 (make_return_insns): Likewise.
21702 (dbr_schedule): Likewise.
21703 (optimize_skips): Likewise.
21704 (reorg_redirect_jump): Likewise.
21705 (fill_slots_from_thread): Likewise.
21706 * reorg.h: Update prototypes.
21707 * resource.c (find_dead_or_set_registers): Use dyn_cast to
21708 rtx_jump_insn instead of check. Use it's jump_target method.
21709 * rtl.h (rtx_jump_insn::jump_label): Define new method.
21710 (rtx_jump_insn::jump_target): Define new method.
21711 (rtx_jump_insn::set_jump_target): Define new method.
21712 * rtlanal.c (tablejump_p): Promote type of one local variable.
21713 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
21714 (sched_analyze_insn): Likewise.
21715 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
21716 (print_insn): Likewise.
21717 * stmt.c (label_rtx): Promote return type to rtx_insn.
21718 (force_label_rtx): Likewise.
21719 (jump_target_rtx): Define new function.
21720 (expand_label): Use it, get rid of one cast.
21721 (expand_naked_return): Promote rtx to rtx_code_label.
21722 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
21723 (expand_case): Use rtx_code_label instread of rtx where feasible.
21724 (expand_sjlj_dispatch_table): Likewise.
21725 (emit_case_nodes): Likewise.
21726 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
21727 * store-motion.c (insert_store): Make use of new return type of
21728 gen_move_insn and remove a cast.
21729 (replace_store_insn): Likewise.
21731 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
21733 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
21734 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
21736 2015-05-20 Jeff Law <law@redhat.com>
21738 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
21739 dispose of the jump thread path when the jump threading
21740 opportunity is cancelled.
21742 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
21744 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
21745 when printing the caret character.
21747 2015-05-20 Marek Polacek <polacek@redhat.com>
21749 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
21751 2015-05-20 Marek Polacek <polacek@redhat.com>
21753 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
21754 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
21755 * gimple-fold.c (canonicalize_bool): Likewise.
21756 (same_bool_result_p): Likewise.
21757 * tree-if-conv.c (parse_predicate): Likewise.
21759 2015-05-20 Marek Polacek <polacek@redhat.com>
21761 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
21762 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
21764 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21766 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
21767 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
21770 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
21772 * config/mips/mips.h (micromips_globals): Declare.
21774 2015-05-20 David Malcolm <dmalcolm@redhat.com>
21776 * timevar.def (TV_INITIALIZE_RTL): New.
21777 * toplev.c (initialize_rtl): Use an auto_timevar to account this
21778 function's time to TV_INITIALIZE_RTL.
21780 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
21782 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
21783 gimple_build_nop calls.
21784 (chkp_find_bounds_for_elem): Likewise.
21785 (chkp_get_zero_bounds): Likewise.
21786 (chkp_get_none_bounds): Likewise.
21787 (chkp_get_bounds_by_definition): Likewise.
21788 (chkp_generate_extern_var_bounds): Likewise.
21789 (chkp_get_bounds_for_decl_addr): Likewise.
21790 (chkp_get_bounds_for_string_cst): Likewise.
21792 2015-05-20 Bin Cheng <bin.cheng@arm.com>
21794 PR tree-optimization/65447
21795 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
21796 (dump_use, dump_uses): Support to dump sub use.
21797 (record_use): New parameters to support sub use. Remove call to
21799 (record_sub_use, record_group_use): New functions.
21800 (compute_max_addr_offset, split_all_small_groups): New functions.
21801 (group_address_uses, rewrite_use_address): New functions.
21802 (strip_offset): New declaration.
21803 (find_interesting_uses_address): Call record_group_use.
21804 (add_candidate): New assertion.
21805 (infinite_cost_p): Move definition forward.
21806 (add_costs): Check INFTY cost and return immediately.
21807 (get_computation_cost_at): Clear setup cost and dependent bitmap
21809 (determine_use_iv_cost_address): Compute cost for sub uses.
21810 (rewrite_use_address_1): Rename from old rewrite_use_address.
21811 (free_loop_data): Free sub uses.
21812 (tree_ssa_iv_optimize_loop): Call group_address_uses.
21814 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
21815 Jim Wilson <jim.wilson@linaro.org>
21817 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
21818 new fields loadv and storev.
21819 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
21820 Initialize loadv and storev.
21821 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
21822 (cortexa53_extra_costs): Likewise.
21823 (cortexa57_extra_costs): Likewise.
21824 (xgene1_extra_costs): Likewise.
21825 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
21828 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
21830 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
21832 (cortexa8_extra_costs): Likewise.
21833 (cortexa5_extra_costs): Likewise.
21834 (cortexa7_extra_costs): Likewise.
21835 (cortexa12_extra_costs): Likewise.
21836 (cortexa15_extra_costs): Likewise.
21837 (v7m_extra_costs): Likewise.
21839 2015-05-20 Jeff Law <law@redhat.com>
21841 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
21842 instead of open-coded version. Also delete the jump thread created
21843 within this function.
21845 2015-05-20 Alan Modra <amodra@gmail.com>
21847 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
21848 stack adjusting insn. Formatting.
21849 (rs6000_emit_prologue): Track stack adjusting insn, and use of
21850 r12. If possible, emit first -fsplit-stack arg pointer insn
21851 before stack adjust. Don't use r12 to save cr if split-stack.
21853 2015-05-20 Alan Modra <amodra@gmail.com>
21855 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
21857 (rs6000_supports_split_stack): New function.
21858 * gcc/config/rs6000/rs6000.c (machine_function): Add
21859 split_stack_arg_pointer.
21860 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
21861 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
21862 rather than virtual_incoming_args_rtx.
21863 (rs6000_va_start): Likewise.
21864 (split_stack_arg_pointer_used_p): New function.
21865 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
21866 (morestack_ref): New var.
21867 (gen_add3_const, rs6000_expand_split_stack_prologue,
21868 rs6000_internal_arg_pointer, rs6000_live_on_entry,
21869 rs6000_split_stack_space_check): New functions.
21870 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
21871 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
21872 (UNSPECV_SPLIT_STACK_RETURN): Define.
21873 (split_stack_prologue, load_split_stack_limit,
21874 load_split_stack_limit_di, load_split_stack_limit_si,
21875 split_stack_return, split_stack_space_check): New expands and insns.
21876 * gcc/config/rs6000/rs6000-protos.h
21877 (rs6000_expand_split_stack_prologue): Declare.
21878 (rs6000_split_stack_space_check): Declare.
21880 2015-05-20 Alan Modra <amodra@gmail.com>
21882 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
21883 (direct_return): Test vrsave_size rather than vrsave_mask.
21884 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
21885 (rs6000_emit_epilogue): Likewise.
21887 2015-05-20 Alan Modra <amodra@gmail.com>
21889 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
21890 when not saving registers.
21891 (debug_stack_info): Adjust to omit printing unused offsets,
21893 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
21896 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21899 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
21900 value_type to const char *.
21902 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
21904 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
21905 to build a biarch toolchain again.
21907 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
21909 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
21910 or implicit declarations.
21911 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
21913 (get_odr_type): Check type has linkage before adding bases.
21914 (register_odr_type): Check that type has linkage before adding it.
21915 (type_known_to_have_no_deriavations_p): Rename to ..
21916 (type_known_to_have_no_derivations_p): This one.
21917 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
21918 (type_known_to_have_no_derivations_p): This one.
21919 * ipa-polymorphic-call.c
21920 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
21923 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
21925 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
21926 (layout_type): Use RECORD_OR_UNION_TYPE_P.
21928 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21930 * config/s390/s390.c (s390_vector_bool_type_p): New function.
21931 (s390_invalid_binary_op): New function.
21932 (TARGET_INVALID_BINARY_OP): Define macro.
21934 2015-05-19 David Sherwood <david.sherwood@arm.com>
21936 * loop-invariant.c (create_new_invariant): Don't calculate address cost
21937 if mode is not a scalar integer.
21938 (get_inv_cost): Increase computational cost for unused invariants.
21940 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21942 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
21943 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
21944 * config/s390/s390-builtin-types.def: New file.
21945 * config/s390/s390-builtins.def: New file.
21946 * config/s390/s390-builtins.h: New file.
21947 * config/s390/s390-c.c: New file.
21948 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
21949 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
21950 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
21951 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
21953 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
21955 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
21956 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
21957 variable definitions.
21958 (s390_const_operand_ok): New function.
21959 (s390_expand_builtin): Rewrite.
21960 (s390_init_builtins): New function.
21961 (s390_handle_vectorbool_attribute): New function.
21962 (s390_attribute_table): Add s390_vector_bool attribute.
21963 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
21964 (s390_branch_condition_mask): Generate masks for new modes.
21965 (s390_expand_vec_compare_cc): New function.
21966 (s390_mangle_type): Add mangling for vector bool types.
21967 (enum s390_builtin): Remove.
21968 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
21970 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
21971 s390_cpu_cpp_builtins.
21972 (REGISTER_TARGET_PRAGMAS): New macro.
21973 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
21974 (insn_cmp mode attribute): Add new CC modes.
21975 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
21976 (lcbb): New pattern definition.
21977 * config/s390/s390intrin.h: Include vecintrin.h.
21978 * config/s390/t-s390: New file.
21979 * config/s390/vecintrin.h: New file.
21980 * config/s390/vector.md: Include vx-builtins.md.
21981 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
21984 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21986 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
21988 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
21989 (s390_select_ccmode): Likewise.
21990 (s390_canonicalize_comparison): Swap operands if necessary.
21991 (s390_expand_vec_compare_scalar): Expand DFmode compare using
21992 single element vector instructions.
21993 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
21994 (s390_branch_condition_mask): Generate CC masks for the new modes.
21995 * config/s390/s390.md (v0, vf, vd): New mode attributes.
21996 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
21997 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
21998 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
21999 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
22000 (*extend<DSF:mode><BFP:mode>2): New insn definition.
22001 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
22002 (extend<DSF:mode><BFP:mode>2): Turn into expander.
22003 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
22004 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
22005 (sqrt<mode>2): Add vector instruction.
22007 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22009 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
22011 * config/s390/predicates.md (const0_operand, constm1_operand)
22012 (constable_operand): Accept vector operands.
22013 * config/s390/s390-modes.def: Add supported vector modes.
22014 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
22015 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
22016 (s390_bytemask_vector_p, s390_expand_vec_strlen)
22017 (s390_expand_vec_compare, s390_expand_vcond)
22018 (s390_expand_vec_init): Add prototypes.
22019 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
22020 (s390_vector_mode_supported_p): New function.
22021 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
22022 (s390_contiguous_bitmask_vector_p): New function.
22023 (s390_bytemask_vector_p): New function.
22024 (s390_split_ok_p): Vector regs don't work either.
22025 (regclass_map): Add VEC_REGS.
22026 (s390_legitimate_constant_p): Handle vector constants.
22027 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
22028 (legitimate_reload_vector_constant_p): New function.
22029 (s390_preferred_reload_class): Handle CONST_VECTOR.
22030 (s390_reload_symref_address): Likewise.
22031 (s390_secondary_reload): Vector memory instructions only support
22032 short displacements. Rename reload*_nonoffmem* to reload*_la*.
22033 (s390_emit_ccraw_jump): New function.
22034 (s390_expand_vec_strlen): New function.
22035 (s390_expand_vec_compare): New function.
22036 (s390_expand_vcond): New function.
22037 (s390_expand_vec_init): New function.
22038 (s390_dwarf_frame_reg_mode): New function.
22039 (print_operand): Handle addresses with 'O' and 'R' constraints.
22040 (NR_C_MODES, constant_modes): Add vector modes.
22041 (s390_output_pool_entry): Handle vector constants.
22042 (s390_hard_regno_mode_ok): Handle vector registers.
22043 (s390_class_max_nregs): Likewise.
22044 (s390_cannot_change_mode_class): New function.
22045 (s390_invalid_arg_for_unprototyped_fn): New function.
22046 (s390_function_arg_vector): New function.
22047 (s390_function_arg_float): Remove size variable.
22048 (s390_pass_by_reference): Handle vector arguments.
22049 (s390_function_arg_advance): Likewise.
22050 (s390_function_arg): Likewise.
22051 (s390_return_in_memory): Vector values are returned in a VR if
22053 (s390_function_and_libcall_value): Handle vector arguments.
22054 (s390_gimplify_va_arg): Likewise.
22055 (s390_call_saved_register_used): Consider the arguments named.
22056 (s390_conditional_register_usage): Disable v16-v31 for non-vec
22058 (s390_preferred_simd_mode): New function.
22059 (s390_support_vector_misalignment): New function.
22060 (s390_vector_alignment): New function.
22061 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
22062 (TARGET_VECTOR_MODE_SUPPORTED_P)
22063 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
22064 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
22065 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
22066 (TARGET_VECTOR_ALIGNMENT): Define target macro.
22067 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
22068 (FIRST_PSEUDO_REGISTER): Increase value.
22069 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
22070 (VECTOR_REG_P): Define macros.
22071 (FIXED_REGISTERS, CALL_USED_REGISTERS)
22072 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
22073 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
22074 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
22075 Add vector registers.
22076 (CANNOT_CHANGE_MODE_CLASS): Call C function.
22077 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
22078 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
22080 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
22081 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
22082 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
22083 (VR*_REGNUM): New constants.
22084 (ALL): New mode iterator.
22085 (INTALL): Remove mode iterator.
22087 (movti): Implement TImode moves for VRs.
22088 Disable TImode splitter for VR targets.
22089 Implement splitting TImode GPR<->VR moves.
22090 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
22091 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
22092 reload<mode>_la_in, reload<mode>_la_out.
22093 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
22094 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
22095 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
22096 (mov<mode> SF SD): Prefer lder, lde for loading.
22097 Add lrl and strl instructions.
22098 Add vector instructions.
22099 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
22100 Call s390_expand_vec_strlen on z13.
22101 (*cc_to_int): Change predicate to nonimmediate_operand.
22102 (addti3): Rename to *addti3. New expander.
22103 (subti3): Rename to *subti3. New expander.
22104 * config/s390/vector.md: New file.
22106 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22108 * common/config/s390/s390-common.c (processor_flags_table): Add
22110 * config.gcc: Add z13.
22111 * config/s390/s390-opts.h (enum processor_type): Add
22112 PROCESSOR_2964_Z13.
22113 * config/s390/s390.c (s390_adjust_priority): Check for
22114 PROCESSOR_2964_Z13.
22115 (s390_reorg): Likewise.
22116 (s390_sched_reorder): Likewise.
22117 (s390_sched_variable_issue): Likewise.
22118 (s390_loop_unroll_adjust): Likewise.
22119 (s390_option_override): Likewise. Default to -mvx when available.
22120 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
22121 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
22122 (TARGET_VX_ABI): Define macros.
22124 (TARGET_DEFAULT): Add MASK_OPT_VX.
22125 * config/s390/s390.md ("cpu" attribute): Add z13.
22126 ("cpu_facility" attribute): Add vec.
22127 * config/s390/s390.opt (processor_type): Add z13.
22128 (mvx): New options.
22129 * doc/invoke.texi: Add z13 option for -march.
22131 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22133 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
22134 mode check to make sure that only scalar integer values are
22137 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
22139 * tree.c (verify_type_variant): Fix #undef.
22140 (gimple_canonical_types_compatible_p): Move here from lto.c
22141 (verify_type): Verify TYPE_CANONICAL compatibility.
22142 * tree.h (gimple_canonical_types_compatible_p): Declare.
22144 2015-05-19 Jakub Jelinek <jakub@redhat.com>
22146 PR middle-end/66199
22147 * tree.h (OMP_TEAMS_COMBINED): Define.
22148 * gimplify.c (enum gimplify_omp_var_data): Add
22149 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
22150 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
22151 (omp_notice_variable): Accept both ORT_TEAMS
22152 and ORT_COMBINED_TEAMS. Don't recurse if
22153 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
22154 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
22156 (omp_no_lastprivate): New function.
22157 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
22158 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
22159 notice_outer and set appropriate bits, otherwise make
22160 sure default(none) combined constructs won't complain.
22161 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
22162 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
22163 omp_no_lastprivate either remove the clause or turn it
22164 into OMP_CLAUSE_PRIVATE.
22165 (gimplify_omp_for): Fix up handling of implicit
22166 lastprivate or linear iterators.
22167 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
22168 ORT_COMBINED_TEAMS.
22169 * omp-low.c (lower_omp_for_lastprivate): For combined
22170 for simd use fd.loop.n2 from the for rather than simd.
22172 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22174 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
22175 instead of gen_rtx_raw_REG.
22176 (cris_expand_epilogue): Likewise.
22177 * config/microblaze/microblaze.c (microblaze_classify_address):
22179 * config/sparc/sparc.md: Likewise.
22181 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
22183 * config/alpha/alpha.c (alpha_legitimize_reload_address)
22184 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
22185 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
22186 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
22187 Use CASE_CONST_SCALAR_INT.
22188 (print_operand) <case 'M'>: Use mode_width_operand to check the
22189 value of the constant.
22190 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
22191 * config/alpha/predicates.md (input_operand): Use general_operand
22192 instead of match_code as operand check.
22193 (symbolic_operand): Use match_code with subexpression digits.
22194 * config/alpha/constraints.md (Q): Ditto.
22196 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22198 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
22200 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22202 * config/s390/s390.c (s390_secondary_reload): Fix check for
22203 load/store relative.
22205 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22207 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
22208 alternative_mask to uint64_t.
22210 2015-05-19 Jakub Jelinek <jakub@redhat.com>
22212 PR tree-optimization/66187
22213 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
22214 Pass TYPE_SIGN to tree_int_cst_min_precision. If
22215 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
22217 2015-05-19 David Malcolm <dmalcolm@redhat.com>
22219 * diagnostic.c (diagnostic_report_current_module): Strengthen
22220 local "new_map" from const line_map * to
22221 const line_map_ordinary *.
22222 * genmatch.c (error_cb): Likewise for local "map".
22223 (output_line_directive): Likewise for local "map".
22224 * input.c (expand_location_1): Likewise for local "map".
22225 Pass NULL rather than &map to
22226 linemap_unwind_to_first_non_reserved_loc, since the value is never
22227 read from there, and the value written back not read from here.
22228 (is_location_from_builtin_token): Strengthen local "map" from
22229 const line_map * to const line_map_ordinary *.
22230 (dump_location_info): Strengthen locals "map" from
22231 line_map *, one to const line_map_ordinary *, the other
22232 to const line_map_macro *.
22233 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
22234 const line_map * to const line_map_macro *.
22235 (maybe_unwind_expanded_macro_loc): Add a call to
22236 linemap_check_macro when writing to the "map" field of the
22238 Introduce local const line_map_ordinary * "ord_map", using it in
22239 place of "map" in the part of the function where we know we have
22240 an ordinary map. Strengthen local "m" from const line_map * to
22241 const line_map_ordinary *.
22243 2015-05-19 Nick Clifton <nickc@redhat.com>
22246 * config/msp430/msp430.md (zero_extendhisi2): Add support for
22247 separate source and destination registers.
22249 2015-05-19 Richard Biener <rguenther@suse.de>
22251 PR tree-optimization/66165
22252 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
22253 for no load permutation.
22255 PR tree-optimization/66185
22256 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
22257 when building the SLP node from scalars.
22259 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
22260 Tristan Gingold <gingold@adacore.com>
22262 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
22263 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
22264 (expand_stack_restore): Call record_new_stack_level.
22265 (expand_stack_save): Do not call do_pending_stack_adjust.
22266 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
22267 * calls.c (expand_call): Call record_new_stack_level for alloca.
22268 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
22269 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
22270 (update_sjlj_context): New global function.
22271 * except.h (update_sjlj_context): Declare.
22272 * explow.c (record_new_stack_level): New global function.
22273 (allocate_dynamic_stack_space): Call record_new_stack_level.
22274 * explow.h (record_new_stack_level): Declare.
22275 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
22276 * cfgrtl.c (duplicate_insn_chain): Likewise.
22278 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22280 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
22281 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
22282 STACK_GROWS_DOWNWARD as normal if.
22283 (expand_call): Likewise.
22285 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
22288 * config/sh/sh.md (*round_int_even): New insn_and_split and
22289 accompanying new unnamed split.
22291 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22293 * bitmap.c (bitmap_set_range): Handle count==1 specially.
22294 (bitmap_clear_range): Likewise.
22295 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
22296 bitmap_set_range unconditionally.
22297 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
22298 * df-scan.c (df_mark_reg): Likewise.
22299 * haifa-sched.c (setup_ref_regs): Likewise.
22300 * sched-rgn.c (update_live_1): Likewise.
22302 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22304 * regs.h (END_HARD_REGNO): Delete.
22305 (END_REGNO): Move to...
22307 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
22308 * caller-save.c (mark_set_regs): Likewise.
22309 * combine.c (move_deaths, distribute_notes): Likewise.
22310 * cse.c (invalidate, invalidate_for_call): Likewise.
22311 * df-scan.c (df_ref_record): Likewise.
22312 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
22313 (record_last_reg_set_info): Likewise.
22314 * reg-stack.c (convert_regs_exit): Likewise.
22315 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
22316 * resource.c (update_live_status): Likewise.
22317 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
22319 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22321 * rtl.h (reg_info): Add an nregs field.
22322 (REG_NREGS): Use it.
22323 (SET_REGNO_RAW): Delete.
22324 (set_regno_raw): New function.
22325 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
22326 (END_REGNO): Redefine in terms of REG_NREGS.
22327 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
22329 * emit-rtl.c (set_mode_and_regno): Likewise.
22330 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
22331 instead of SET_REGNO_RAW.
22333 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22335 * rtl.h (PUT_MODE_RAW): New macro.
22336 (PUT_REG_NOTE_KIND): Use it.
22337 (set_mode_and_regno): Declare.
22338 (gen_raw_REG): Change regno to "unsigned int".
22339 (gen_rtx_REG): Change "unsigned" to "unsigned int".
22340 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
22341 use set_mode_and_regno to change the mode of registers.
22342 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
22343 * emit-rtl.c (set_mode_and_regno): New function.
22344 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
22345 * caller-save.c (reg_save_code): Use set_mode_and_regno.
22346 * expr.c (init_expr_target): Likewise.
22347 * ira.c (setup_prohibited_mode_move_regs): Likewise.
22348 * postreload.c (reload_cse_simplify_operands): Likewise.
22350 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22352 * caller-save.c (init_caller_save): Use word_mode and
22353 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
22354 * expr.c (init_expr_target): Likewise.
22355 * ira.c (setup_prohibited_mode_move_regs): Likewise.
22356 * postreload.c (reload_cse_regs_1): Likewise.
22358 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22360 * rtl.def (REG): Change format to "r".
22361 * rtl.h (rtunion): Remove rt_reg.
22362 (reg_info): New structure.
22363 (rtx_def): Add reg field to main union.
22364 (X0REGATTR): Delete.
22365 (REG_CHECK): New macro.
22366 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
22367 * rtl.c (rtx_format): Document "r".
22368 (rtx_code_size): Handle REG specially.
22369 * gengenrtl.c (special_format): Return true for formats
22371 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
22372 Deal with REG_ATTRS after the field loop.
22373 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
22374 * expmed.c (init_expmed): Call gen_raw_REG instead of
22376 * expr.c (init_expr_target): Likewise.
22377 * regcprop.c (maybe_mode_change): Likewise.
22378 * varasm.c (make_decl_rtl): Likewise.
22379 * final.c (leaf_renumber_regs_insn): Return early after
22381 * genemit.c (gen_exp): Handle 'r' fields.
22382 * genpeep.c (match_rtx): Likewise.
22383 * gensupport.c (subst_pattern_match): Likewise.
22384 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
22385 (alter_constraints, subst_dup): Likewise.
22386 * read-rtl.c (read_rtx_code): Likewise.
22387 * print-rtl.c (print_rtx): Likewise.
22388 * genrecog.c (find_operand, find_matching_operand): Likewise.
22389 (validate_pattern, match_pattern_2): Likewise.
22390 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
22391 (rtx_test::regno_field): New function.
22392 (operator ==, safe_to_hoist_p, transition_parameter_type)
22393 (parameter_type_string, print_parameter_value)
22394 (print_nonbool_test, print_test): Handle new enum values.
22395 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
22396 * lra-constraints.c (operands_match_p): Likewise.
22398 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22400 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
22401 Change type of new_regno to unsigned int.
22402 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
22403 new_regno to unsigned int.
22404 (df_ref_change_reg_with_loc): Remove old_regno parameter.
22405 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
22406 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
22407 (SET_REGNO_RAW): Add space after ",".
22409 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22411 * rtl.h (REG_NREGS): New macro
22412 * alias.c (record_set): Use it.
22413 * cfgcleanup.c (mark_effect): Likewise.
22414 * combine.c (likely_spilled_retval_1): Likewise.
22415 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
22416 (move_deaths, distribute_notes): Likewise.
22417 * cselib.c (cselib_record_set): Likewise.
22418 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
22419 * df-scan.c (df_mark_reg): Likewise.
22420 * dse.c (look_for_hardregs): Likewise.
22421 * dwarf2out.c (reg_loc_descriptor): Likewise.
22422 (multiple_reg_loc_descriptor): Likewise.
22423 * expr.c (write_complex_part, read_complex_part): Likewise.
22424 (emit_move_complex): Likewise.
22425 * haifa-sched.c (setup_ref_regs): Likewise.
22426 * ira-lives.c (mark_hard_reg_live): Likewise.
22427 * lra.c (lra_set_insn_recog_data): Likewise.
22428 * mode-switching.c (create_pre_exit): Likewise.
22429 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
22430 (reload_combine_recognize_pattern): Likewise.
22431 (reload_combine_note_use, move2add_record_mode): Likewise.
22432 (reload_cse_move2add): Likewise.
22433 * reg-stack.c (subst_stack_regs_pat): Likewise.
22434 * regcprop.c (kill_value, copy_value): Likewise.
22435 (copyprop_hardreg_forward_1): Likewise.
22436 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
22437 (build_def_use): Likewise.
22438 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
22439 (deps_analyze_insn): Likewise.
22440 * sched-rgn.c (check_live_1, update_live_1): Likewise.
22441 * sel-sched.c (count_occurrences_equiv): Likewise.
22442 * valtrack.c (dead_debug_insert_temp): Likewise.
22444 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22446 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
22447 * dse.c (note_add_store): Likewise.
22448 * ira-lives.c (mark_hard_reg_dead): Likewise.
22449 * loop-invariant.c (mark_reg_store): Likewise.
22450 (mark_reg_death): Likewise.
22451 * postreload.c (reload_combine): Likewise.
22452 (reload_combine_note_store): Likewise.
22453 (reload_combine_note_use): Likewise.
22454 * recog.c (peep2_reg_dead_p): Likewise.
22456 2015-05-19 Alan Modra <amodra@gmail.com>
22458 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
22459 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
22460 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
22462 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
22463 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
22464 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
22465 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
22467 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
22469 * config/mips/mips.md (JOIN_MODE): New mode iterator.
22470 (join2_load_Store<JOIN_MODE:mode>): New pattern.
22471 (join2_loadhi): Likewise.
22472 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
22473 load-load and store-stores.
22474 * config/mips/mips.opt (mload-store-pairs): New option.
22475 (TARGET_LOAD_STORE_PAIRS): New macro.
22476 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
22477 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
22478 * config/mips/mips.c (mips_load_store_bonding_p): New function.
22480 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
22482 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
22484 * dojump.c (do_compare_rtx_and_jump): Likewise.
22485 * expmed.c (emit_store_flag_1): Likewise.
22486 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
22487 * final.c (sprint_ul): Use std::reverse for reversing a string.
22488 * fold-const.c (extract_muldiv_1): Use std::swap.
22489 * genmodes.c (emit_mode_int_n): Likewise.
22490 * ifcvt.c (dead_or_predicable): Likewise.
22491 * ira-build.c (ira_merge_live_ranges): Likewise.
22492 (swap_allocno_copy_ends_if_necessary): Likewise.
22493 * ira.c (ira_setup_alts): Likewise.
22494 * loop-iv.c (iv_analyze_expr): Likewise.
22495 (implies_p): Likewise.
22496 (canon_condition): Likewise.
22497 * lra-constraints.c (swap_operands): Likewise.
22498 * lra-lives.c (lra_merge_live_ranges): Likewise.
22499 * omega.c (swap): Remove.
22501 (omega_unprotect_1): Use std::swap.
22502 (omega_solve_geq): Likewise.
22503 * optabs.c (expand_binop_directly): Likewise.
22504 (expand_binop): Likewise.
22505 (emit_conditional_move): Likewise.
22506 (emit_conditional_add): Likewise.
22507 * postreload.c (reload_cse_simplify_operands): Likewise.
22508 * reg-stack.c (emit_swap_insn): Likewise.
22509 (swap_to_top): Likewise.
22510 (compare_for_stack_reg): Likewise.
22511 (subst_asm_stack_regs): Likewise.
22512 * reload.c (find_reloads): Likewise.
22513 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
22514 * sel-sched.c (invoke_reorder_hooks): Likewise.
22515 (create_block_for_bookkeeping): Likewise.
22516 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
22517 (lambda_matrix_right_hermite): Use std::swap.
22518 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
22519 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
22520 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
22521 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
22522 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
22523 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
22524 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
22525 * tree-vrp.c (compare_ranges): Likewise.
22526 * var-tracking.c (add_with_sets): Likewise.
22527 (vt_find_locations): Likewise.
22529 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
22531 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
22533 (FBSD_ENDFILE_SPEC): Likewise.
22534 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
22535 config/freebsd-spec.h.
22536 (ENDFILE_SPEC): Likewise.
22538 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
22539 Richard Henderson <rth@redhat.com>
22542 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
22543 Check for a memory location that is not a reference (using an AND)
22544 to an unaligned location here.
22545 * config/alpha/predicates.md (normal_memory_operand): Remove.
22547 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
22549 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
22550 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
22552 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
22554 * config/mips/mips.c (micromips_globals): New variable.
22555 (mips_set_compression_mode): Save and reinitialize target-dependent
22556 state for microMIPS.
22558 2015-05-18 Martin Liska <mliska@suse.cz>
22560 * dbgcnt.def: Add new counter.
22561 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
22563 2015-05-18 Martin Liska <mliska@suse.cz>
22565 * dbgcnt.def: Sort counters.
22566 * opts.c (common_handle_option): Do not compile if
22567 -fdbg-cnt-list is enabled.
22569 2015-05-18 Tom de Vries <tom@codesourcery.com>
22571 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
22572 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
22573 address operator to va_list operand.
22574 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
22576 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
22578 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
22579 * config/s390/s390.c (s390_gimplify_va_arg): Same.
22580 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
22582 2015-05-18 Tom de Vries <tom@codesourcery.com>
22584 * tree-ssa-tail-merge.c: Fix whitespace.
22586 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
22588 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
22589 cortex-a17, and cortex-a17.cortex-a7.
22591 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
22594 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
22596 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
22599 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
22600 QImode inner modes for TARGET_AVX512BW. Force mask operand
22601 to a register for AVX512F modes.
22603 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
22605 * toplev.c (emit_debug_global_declarations): Do not output debug info
22606 when doing slim LTO objects.
22608 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
22610 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
22611 odr_types_equivalent_p): Declare.
22612 (odr_type_p): Use gcc_checking_assert.
22613 (type_in_anonymous_namespace_p) Declare.
22614 (type_with_linkage_p): Declare.
22615 * common.opt (Wlto-type-mismatch): New warning.
22616 * ipa-devirt.c (compound_type_base): New function.
22617 (odr_or_derived_type_p): New function.
22618 (odr_types_equivalent_p): New function.
22619 (add_type_duplicate): Simplify.
22620 (type_with_linkage_p): Add hack to prevent false positives on C types
22621 (type_in_anonymous_namespace_p): Likewise.
22622 * tree.c (need_assembler_name_p): Use type_with_linkage.
22623 * tree.h (type_in_anonymous_namespace_p): Remove.
22624 * doc/invoke.texi (-Wlto-type-mismatch): Document
22626 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
22628 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
22629 (verify_type): Verify STRING_FLAG.
22631 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
22634 * tree-pretty-print.c (percent_K_format): Replace locus pointer
22635 with accessor function.
22636 * tree-diagnostic.c (diagnostic_report_current_function): Use
22637 diagnostic_location function.
22638 (maybe_unwind_expanded_macro_loc): Likewise.
22639 (virt_loc_aware_diagnostic_finalizer): Likewise.
22640 (default_tree_printer): Replace locus pointer with accessor function.
22641 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
22642 (diagnostic_set_info_translated): Initialize second location.
22643 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
22644 (diagnostic_show_locus): Handle two locations. Call
22645 diagnostic_print_caret_line.
22646 (diagnostic_print_caret_line): New.
22647 (default_diagnostic_starter): Use diagnostic_location function.
22648 (diagnostic_report_diagnostic): Use diagnostic_location function.
22649 (verbatim): Do not set text.locus.
22650 * diagnostic.h (struct diagnostic_info): Remove location field.
22651 (struct diagnostic_context): Make caret_chars an array of two.
22652 (diagnostic_location): New inline.
22653 (diagnostic_expand_location): Handle two locations.
22654 (diagnostic_same_line): New inline.
22655 (diagnostic_print_caret_line): Declare.
22656 (CARET_LINE_MARGIN): New constant.
22657 * pretty-print.c (pp_printf): Do not set text.locus.
22658 (pp_verbatim): Do not set text.locus.
22659 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
22660 (struct text_info): Replace locus pointer with locations
22661 array. Add accessor functions.
22663 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
22664 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22667 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
22668 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
22669 large constants in register instead of splitting them.
22671 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
22674 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
22675 replacements in memory addresses.
22676 (get_unaligned_address): Ditto.
22678 2015-05-16 James Bowman <james.bowman@ftdichip.com>
22680 * config/ft32/*: New files for FT32 port.
22681 * doc/install.texi: Add FT32 information.
22682 * doc/invoke.texi: Add FT32 information.
22683 * doc/md.texi: Add FT32 information.
22684 * doc/contrib.texi: Self added.
22686 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
22688 PR tree-optimization/64454
22689 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
22690 (-1 - A -> ~A): Remove unnecessary condition.
22692 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
22694 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
22695 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
22696 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
22698 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
22700 * ipa-chkp.h (chkp_wrap_function): New.
22701 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
22702 (chkp_wrap_function_name): New.
22703 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
22704 to get wrapper name.
22705 * lto-cgraph.c: Include ipa-chkp.h.
22706 (input_cgraph_1): Avoid alias chain for wrappers.
22708 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
22710 PR middle-end/66134
22711 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
22712 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
22714 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22716 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
22717 (AARCH64_FL_SLOWMUL): Delete.
22718 (AARCH64_FL_CRC): Redefine to 1<<3.
22719 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
22721 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22723 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
22726 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
22728 * config/alpha/alpha.md (extendqidi2): Use general_operand
22729 instead of some_operand for operand[1] predicate.
22730 (extendhidi2): Ditto.
22731 (cbranchdi4): Use general_operand instead of some_operand
22732 for operand[1] and operands[2] predicates.
22733 (cstoredi4): Ditto.
22734 * config/alpha/predicates.md (some_operand): Remove unused predicate.
22735 (some_ni_operand): Ditto.
22737 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
22739 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
22740 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
22741 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
22742 low part of the constant using alpha_emit_set_const_1.
22743 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
22745 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
22747 * varasm.c (output_constant_pool_1): Pass down alignment from
22748 constant pool entry's descriptor to output_constant_pool_2.
22749 (output_object_block): Add comment prior to call to
22750 output_constant_pool_1.
22752 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
22754 PR rtl-optimization/65862
22755 * target.def (ira_change_pseudo_allocno_class): New hook.
22756 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
22758 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
22759 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
22761 * ira-costs.c (find_costs_and_classes): Call the hook and change
22762 classes when it is necessary.
22763 * doc/tm.texi: Update.
22765 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
22767 * config/i386/i386.md (sibcall_memory): Check that register with
22768 callee address is not also used as one of the arguments, instead
22769 of checking that it is not live after the sibcall.
22770 (sibcall_pop_memory): Ditto.
22771 (sibcall_value_memory): Ditto.
22772 (sibcall_value_pop_memory): Ditto.
22774 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
22776 * generic-match-head.c (types_match): Handle non-types.
22777 * gimple-match-head.c (types_match): Likewise.
22778 * match.pd: Remove unnecessary TREE_TYPE for types_match.
22780 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
22782 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
22783 (csneg3<mode>_insn): Enable expansion of pattern.
22785 2015-05-14 Nick Clifton <nickc@redhat.com>
22787 * config/rl78/rl78.c (rl78_select_section): Select the correct
22788 default section based upon the category of the decl.
22790 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
22792 PR rtl-optimization/30967
22793 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
22794 destination mode for the cost of scc patterns.
22796 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
22798 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
22799 using SWIM248 mode iterator.
22800 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
22801 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
22802 for operand[2] constraint.
22803 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
22805 2015-05-13 Jakub Jelinek <jakub@redhat.com>
22807 PR middle-end/66133
22808 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
22809 make sure it is never noreturn, even when the task body does not
22811 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
22812 right before GIMPLE_OMP_RETURN.
22813 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
22814 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
22815 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
22817 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22819 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
22820 * tree-ssa-math-opts.c: Include params.h
22821 (pow_synth_sqrt_info): New struct.
22822 (representable_as_half_series_p): New function.
22823 (get_fn_chain): Likewise.
22824 (print_nested_fn): Likewise.
22825 (dump_fractional_sqrt_sequence): Likewise.
22826 (dump_integer_part): Likewise.
22827 (expand_pow_as_sqrts): Likewise.
22828 (gimple_expand_builtin_pow): Use above to attempt to expand
22829 pow as series of square roots. Removed now unused variables.
22831 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
22833 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
22834 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
22835 Remove *p0 and *p1 arguments. Rewrite function.
22836 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
22837 (alpha_split_const_mov): Update calls to alpha_extract_integer and
22838 alpha_emit_set_long_const.
22839 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
22840 (alpha_output_mi_thunk_osf): Ditto.
22841 * config/alpha/alpha.md (movti): Do not check operands[1]
22844 2015-05-13 Richard Biener <rguenther@suse.de>
22846 PR tree-optimization/66129
22847 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
22849 (vect_schedule_slp_instance): Fix typo.
22851 2015-05-13 David Malcolm <dmalcolm@redhat.com>
22853 * common.opt (fdump-internal-locations): New option.
22854 * input.c: Include diagnostic-core.h.
22855 (get_end_location): New function.
22856 (write_digit): New function.
22857 (write_digit_row): New function.
22858 (dump_location_range): New function.
22859 (dump_labelled_location_range): New function.
22860 (dump_location_info): New function.
22861 * input.h (dump_location_info): New prototype.
22862 * toplev.c (compile_file): Handle flag_dump_locations.
22864 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
22866 * gimple-expr.h (is_gimple_constant): Reorder.
22867 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
22869 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
22871 * combine.c (simplify_set): When generating a CC set, if the
22872 source already is in the correct mode, do not wrap it in a
22873 compare. Simplify the rest of that code.
22875 2015-05-13 Richard Biener <rguenther@suse.de>
22877 PR tree-optimization/66123
22878 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
22881 2015-05-13 Richard Biener <rguenther@suse.de>
22883 PR middle-end/66110
22884 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
22886 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
22888 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
22890 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
22891 * aclocal.m4: Regenerated with automake-1.11.6.
22893 2015-05-13 Tom de Vries <tom@codesourcery.com>
22895 PR tree-optimization/66010
22896 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
22897 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
22898 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
22899 and rval based on do_deref.
22901 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
22904 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
22905 link time constants into adress expressions and therefore set
22908 2015-05-13 Jakub Jelinek <jakub@redhat.com>
22911 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
22912 Use SWI248 iterator instead of SWI.
22913 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
22914 Use eq_attr "alternative" "0" instead of match_test in
22915 length_immediate attribute computation.
22916 (*mulvhi4, *mulvhi4_1): New define_insns.
22919 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
22920 SIGNED to get precision of non-negative value.
22922 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
22925 * function.c (diddle_return_value_1): Process bounds first.
22926 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
22929 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
22931 PR rtl-optimization/64616
22932 * loop-invariant.c (can_move_invariant_reg): New.
22933 (move_invariant_reg): Call above new function to decide whether
22934 instruction can just be moved, skipping creation of temporary
22937 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
22939 PR target/pr66047.c
22940 * i386.c (ix86_function_sseregparm): Only return -1 if local function
22941 with implied regparm is called from -mno-sse function.
22942 (init_cumulative_args): Output error if ix86_function_sseregparm
22943 return -1 and SSE register would be needed.
22944 (function_arg_advance_32): Likewise.
22945 (function_arg_32): Likewise.
22946 * i386.h (ix86_args): Add decl field.
22948 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
22951 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
22952 inlines across optimization boundary.
22954 2015-05-12 Jason Merrill <jason@redhat.com>
22956 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
22957 string literal and macro name.
22959 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
22961 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
22962 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
22963 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
22965 2015-05-12 David Malcolm <dmalcolm@redhat.com>
22967 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
22968 (-Wmisleading-indentation): New option.
22969 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
22971 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
22973 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
22974 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
22975 (alpha_extract_integer): Ditto.
22976 (alpha_legitimate_constant_p): Ditto.
22977 (alpha_split_tmode_pair): Ditto.
22978 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
22979 (alpha_expand_mov): Ditto.
22980 (print_operand): Remove handling of 'H' modifier.
22981 <case 'm'>: Remove CONST_DOUBLE handling.
22982 (summarize_insn): Handle CONST_WIDE_INT.
22983 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
22985 (movti): Handle CONST_WIDE_INT.
22986 * config/alpha/constraints.md ('H'): Remove constraint definition.
22987 ('G'): Do not match MODE_FLOAT class.
22988 * config/alpha/predicates.md (const0_operand): Also match
22990 (non_add_const_operand): Ditto.
22991 (non_zero_const_operand): Ditto.
22992 (some_operand): Ditto.
22993 (input_operand): Ditto. Handle CONST_WIDE_INT.
22994 (and_operand): Do not match const_double.
22995 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
22997 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
23000 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
23001 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
23002 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
23003 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
23004 is_mm_seq_cst, is_mm_sync): New accessor functions.
23005 * builtins.c (expand_builtin_sync_operation,
23006 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
23007 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
23008 (get_memmodel, expand_builtin_atomic_compare_exchange,
23009 expand_builtin_atomic_load, expand_builtin_atomic_store,
23010 expand_builtin_atomic_clear): Use new accessor routines.
23011 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
23012 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
23013 (maybe_emit_sync_lock_test_and_set): Use new accessors and
23014 MEMMODEL_SYNC_ACQUIRE.
23015 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
23016 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
23017 expand_atomic_store): Use new accessors.
23018 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
23019 * tsan.c (instrument_builtin_call): Update check for memory model beyond
23020 final enum to use MEMMODEL_LAST.
23021 * c-family/c-common.c: Use new accessor for memmodel_base.
23022 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
23024 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
23025 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
23026 mem_thread_fence, *dmb): Likewise.
23027 * config/alpha/alpha.c (alpha_split_compare_and_swap,
23028 alpha_split_compare_and_swap_12): Likewise.
23029 * config/arm/arm.c (arm_expand_compare_and_swap,
23030 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
23031 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
23032 atomic_loaddi): Likewise.
23033 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
23035 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
23036 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
23038 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
23039 atomic_store<mode>, atomic_compare_and_swap<mode>,
23040 atomic_exchange<mode>): Use new accessors.
23041 * config/mips/mips.c (mips_process_sync_loop): Likewise.
23042 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
23043 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
23044 rs6000_post_atomic_barrier): Add new cases.
23045 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
23046 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
23047 (atomic_load<mode>): Add new cases and use new accessors.
23048 (store_quadpti): Add new cases.
23049 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
23051 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
23052 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
23055 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
23057 * ipa-devirt.c (type_with_linkage_p): New function.
23058 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
23060 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
23061 (can_be_name_hashed_p): Simplify.
23062 (hash_odr_name): Check that type has linkage before checking if it is
23064 (types_same_for_odr): Likewise.
23065 (odr_name_hasher::equal): Likewise.
23066 (odr_subtypes_equivalent_p): Likewise.
23067 (warn_types_mismatch): Likewise.
23068 (get_odr_type): Likewise.
23069 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
23070 * ipa-utils.h (odr_type_p): Move offline.
23071 * tree.c (need_assembler_name_p): Fix handling of types
23073 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
23075 2015-05-12 David Malcolm <dmalcolm@redhat.com>
23077 * timevar.c (timevar_enable): Delete in favor of...
23078 (g_timer): New global.
23079 (struct timevar_def): Move to timevar.h inside class timer.
23080 (struct timevar_stack_def): Likewise.
23081 (timevars): Delete global in favor of field "m_timevars" within
23082 class timer in timevar.h
23083 (stack): Likewise, in favor of field "m_stack".
23084 (unused_stack_instances): Likewise, in favor of field
23085 "m_unused_stack_instances".
23086 (start_time): Likewise, in favor of field "m_start_time".
23087 (get_time): Eliminate check for timevar_enable.
23088 (timer::timer): New function, built from part of timevar_init.
23089 (timevar_init): Rewrite idempotency test from using
23090 "timevar_enable" bool to using dynamic allocation of "g_timer".
23091 Move rest of implementation into timer's constructor.
23092 (timevar_push_1): Rename to...
23093 (timer::push): ...this, adding "m_" prefixes to variables that
23094 are now fields of timer.
23095 (timevar_pop_1): Likewise, rename to...
23096 (timer::pop): ...this, and add "m_" prefixes.
23097 (timevar_start): Replace test for "timevar_enable" with one for
23098 "g_timer", and move bulk of implementation to...
23099 (timer::start): ...here, adding "m_" prefixes.
23100 (timevar_stop): Likewise, from here...
23101 (timer::stop): ...to here.
23102 (timevar_cond_start): Likewise, from here...
23103 (timer::cond_start): ...to here.
23104 (timevar_cond_stop): Likewise, from here...
23105 (timer::cond_stop): ...to here.
23106 (validate_phases): Rename to...
23107 (timer::validate_phases): ...this, and add "m_" prefixes. Make
23108 locals "total" and "tv" const.
23109 (timevar_print): Rename to...
23110 (timer::print): ...this, and add "m_" prefixes. Make locals
23111 "total" and "tv" const. Eliminate test for timevar_enable.
23112 * timevar.h (timevar_enable): Eliminate.
23113 (g_timer): New declaration.
23114 (timevar_push_1): Eliminate.
23115 (timevar_pop_1): Eliminate.
23116 (timevar_print): Eliminate.
23117 (class timer): New class.
23118 (timevar_push): Rewrite to use g_timer.
23119 (timevar_pop): Likewise.
23120 * toplev.c (toplev::~toplev): Likewise.
23122 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
23124 * arm-protos.h (arm_sched_autopref): Delete.
23125 (tune_params): Re-organize, use enums for flag values.
23126 (FUSE_OPS): New macro.
23127 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
23128 (ARM_PREFETCH_BENEFICIAL): Likewise.
23129 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
23130 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
23131 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
23132 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
23133 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
23134 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
23135 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
23136 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
23138 (arm_option_override, thumb2_reorg, arm_print_tune_info)
23139 (aarch_macro_fusion_pair_p): Update uses of current_tune.
23140 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
23142 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
23144 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
23147 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
23148 Sandra Loosemore <sandra@codesourcery.com>
23150 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
23152 (REG_CLASS_NAMES): Add "IJMP_REGS".
23153 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
23154 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
23155 use new "c" register constraint.
23156 * config/nios2/constraint.md (c): New register constraint
23157 corresponding to IJMP_REGS.
23159 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23161 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
23162 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
23163 define_splits): Delete, revamp, transmogrify into ...
23164 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
23165 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
23166 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
23169 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23171 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
23172 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
23174 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23176 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
23177 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
23178 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
23179 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
23180 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
23181 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
23182 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
23183 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
23184 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
23185 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
23186 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
23187 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
23188 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
23189 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
23190 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
23191 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
23192 and 30 corresponding splitters): Delete.
23194 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23196 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
23199 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23201 * combine.c (recog_for_combine_1): New function, factored out
23202 from recog_for_combine.
23203 (change_zero_ext): New function.
23204 (recog_for_combine): If recog fails, try again with the pattern
23205 modified by change_zero_ext; if that still fails, restore the
23208 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23210 * combine.c (get_undo_marker): New function.
23211 (undo_to_marker): New function, largely factored out from ...
23212 (undo_all): ... this. Adjust.
23214 2015-05-12 Richard Biener <rguenther@suse.de>
23216 PR tree-optimization/66101
23217 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
23218 fixup if we turn a loop exit edge to a fallthru edge.
23220 2015-05-12 Richard Biener <rguenther@suse.de>
23222 PR tree-optimization/37021
23223 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
23224 (SLP_TREE_TWO_OPERATORS): New define.
23225 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
23226 SLP_TREE_TWO_OPERATORS.
23227 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
23229 (vect_build_slp_tree): Adjust.
23230 (vect_analyze_slp_cost_1): Likewise.
23231 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
23232 emitting two vector stmts and mixing the results.
23234 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
23236 * call.c (print_z_candidates): Remove dead code.
23238 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23240 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
23241 and zEC12_simple_fp.
23242 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
23245 2015-05-12 Tom de Vries <tom@codesourcery.com>
23247 PR tree-optimization/66010
23248 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
23250 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
23251 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
23252 va_lists are passed, and remove corresponding handling.
23253 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
23254 do_deref argument to ifn_va_arg.
23255 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
23258 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23261 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
23262 REG before taking its REGNO.
23264 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
23266 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
23267 rsp->sign_bit_copies and rsp->nonzero_bits into ...
23268 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
23269 present to get more accurate information about the number of sign bit
23270 copies and non zero bits.
23272 2015-05-12 Richard Biener <rguenther@suse.de>
23274 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
23275 do not allow unrolling.
23277 2015-05-11 Richard Henderson <rth@redhat.com>
23279 * config/i386/i386-modes.def (CCP): New.
23280 * config/i386/i386.c (put_condition_code): Handle it.
23281 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
23283 2015-05-11 Richard Henderson <rth@redhat.com>
23285 * target.def (md_asm_clobbers): Replace with...
23286 (md_asm_adjust): this.
23287 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
23288 (TARGET_MD_ASM_ADJUST): New.
23289 * tm.texi: Rebuild.
23290 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
23291 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
23292 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
23294 * cfgexpand.c (check_operand_nalternatives): Accept vector of
23295 constraints instead of lists of outputs and inputs.
23296 (expand_asm_stmt): Save and restore input_location around the
23297 body of the function. Move asm data into vectors instead of
23298 building tree lists. Generate cleanup sequences as needed,
23299 rather than waiting til the end. Use new md_asm_adjust hook.
23301 * config/vxworks.c: Include vec.h before target.h.
23302 * gimple.c: Likewise.
23303 * incpath.c: Likewise.
23304 * mode-switching.c: Likewise.
23306 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
23307 (cris_md_asm_adjust): this.
23308 (TARGET_MD_ASM_CLOBBERS): Remove.
23309 (TARGET_MD_ASM_ADJUST): New.
23310 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
23311 (ix86_md_asm_adjust): this.
23312 (TARGET_MD_ASM_CLOBBERS): Remove.
23313 (TARGET_MD_ASM_ADJUST): New.
23314 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
23315 (mn10300_md_asm_adjust): this.
23316 (TARGET_MD_ASM_CLOBBERS): Remove.
23317 (TARGET_MD_ASM_ADJUST): New.
23318 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
23319 (rs6000_md_asm_adjust): this.
23320 (TARGET_MD_ASM_CLOBBERS): Remove.
23321 (TARGET_MD_ASM_ADJUST): New.
23322 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
23323 (visium_md_asm_adjust): this.
23324 (TARGET_MD_ASM_CLOBBERS): Remove.
23325 (TARGET_MD_ASM_ADJUST): New.
23327 2015-05-11 Richard Henderson <rth@redhat.com>
23329 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
23330 if noutputs is zero.
23331 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
23333 * cfgexpand.c (expand_asm_operands): Merge into...
23334 (expand_asm_stmt): ... here.
23336 * cfgexpand.c (expand_asm_operands): Don't call
23337 resolve_asm_operand_names.
23338 * stmt.c (resolve_asm_operand_names): Clarify block comment.
23340 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
23342 * dwarf2out.c (gen_member_die): Sanity check that we access
23343 TYPE_MAIN_VARIANT for TYPE_METHODS.
23344 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
23345 checking TYPE_METHODS.
23346 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
23348 (build_distinct_type_copy): Clear TYPE_METHODS.
23349 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
23350 (verify_type): Allow TYPE_METHODS to be error_mark_node.
23351 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
23353 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
23355 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
23356 (emit_pattern_before_setloc): Likewise.
23358 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
23360 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
23361 for define_peephole2s.
23362 (get_peephole2_pattern): New function.
23363 (main): Use it. Call validate_pattern.
23365 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23367 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
23368 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
23369 (Last callee saved reg is different for AVR_TINY architecture)
23371 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
23373 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
23374 when looking for memory references.
23376 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
23379 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
23380 via function pointers.
23382 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
23384 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
23385 indirect call by forcing address into a pseudo with -fno-plt.
23386 * common.opt (flag_plt): New option.
23387 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
23388 ([-fno-plt]): Document.
23390 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
23393 * config/rs6000/option-defaults.h: Add space between string literal
23396 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
23398 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
23399 accross ARM targets.
23401 2015-05-11 Christian Bruel <christian.bruel@st.com>
23403 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
23404 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
23406 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
23408 PR rtl-optimization/66076
23409 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
23410 Don't grow the heap array if it is already big enough from a
23411 previous iteration.
23413 2015-05-11 Christian Bruel <christian.bruel@st.com>
23415 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
23416 (is_called_in_ARM_mode): Remove.
23417 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
23418 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
23419 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
23420 arm_declare_function_name.
23422 2015-05-11 Christian Bruel <christian.bruel@st.com>
23424 * config/arm/arm.c (arm_option_override): Reoganized and split into :
23425 (arm_option_params_internal); New function.
23426 (arm_option_check_internal): New function.
23427 (arm_option_override_internal): New function.
23428 (thumb_code, thumb1_code): Remove.
23429 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
23430 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
23431 (thumb_code, thumb1_code): Remove.
23432 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
23434 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
23436 * config/alpha/alpha.c (alpha_emit_set_const_1)
23437 (alpha_emit_set_long_const, alpha_extract_integer)
23438 (alpha_legitimate_constant_p, alpha_split_const_mov)
23439 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
23440 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
23441 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
23443 * config/alpha/predicates.md (mode_mask_operand): Do not match
23445 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
23446 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
23447 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
23448 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
23449 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
23451 2015-05-11 Jakub Jelinek <jakub@redhat.com>
23454 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
23455 default_binds_local_p_2.
23456 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
23457 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
23459 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23461 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
23463 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23465 Patch by Richard Biener
23466 * coverage.c (coverage_obj_init): Delay building of type variant
23467 until the type is finished.
23469 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23471 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
23472 mismatch between C and C++ type; compoare correctly ARG_TYPES
23473 for non-prototypes and output correctly parameter index for METHOD_TYPE.
23474 (odr_types_equivalent_p): Fix wording of warning about attributes;
23475 it is OK to match prototype and non-prototype.
23477 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23479 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
23480 TYPE_ARG_TYPES list.
23481 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
23482 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
23484 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23486 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
23487 * tree.h (is_lang_specific): Constify.
23489 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
23491 PR tree-optimization/64454
23492 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
23495 2015-05-08 Jason Merrill <jason@redhat.com>
23497 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
23498 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
23499 config/darwin.h, config/darwin9.h, config/elfos.h,
23500 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
23501 config/microblaze/microblaze.h, config/mips/mips.h,
23502 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
23503 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
23504 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
23505 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
23506 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
23507 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
23508 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
23509 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
23510 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
23511 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
23512 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
23513 between string literal and macro name.
23515 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23517 * jump.c: Change argument types to rtx_insn *.
23520 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23522 * lra-constraints.c: Change argument type to rtx_insn *.
23524 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23526 * df-problems.c: Change argument type to rtx_insn *.
23528 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23530 * combine.c: Change argument type to rtx_insn *.
23532 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23535 * rtlanal.c: Change argument type to rtx_insn *.
23537 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23539 * sched-deps.c: Change argument types to rtx_insn *.
23540 * sched-int.h: Adjust.
23542 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23544 * dwarf2cfi.c: Change argument type to rtx_insn *.
23546 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23548 * ira.c (decrease_live_ranges_number): Changetype of local
23549 variable to rtx_insn *.
23550 * recog.c: Change argument types to rtx_insn *.
23553 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23555 * reorg.c: Change argument types to rtx_insn *.
23557 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23559 * ira-color.c: Change argument types to rtx_insn *.
23560 * lra-eliminations.c: Likewise.
23563 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23565 * gcse.c: Change argument types to rtx_insn *.
23567 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23569 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
23571 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23573 * emit-rtl.c (emit_debug_insn_before): Change argument type to
23577 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23579 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
23582 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23584 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
23587 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23589 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
23592 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23594 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
23597 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23599 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
23603 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23605 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
23609 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23611 * except.c (can_nonlocal_goto): Change type of argument to
23615 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23617 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
23620 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23622 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
23623 * cfgrtl.c (can_delete_label_p): Adjust.
23626 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23628 * reorg.c (stop_search_p): Change argument to rtx_insn *.
23630 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23632 * except.c (make_reg_eh_region_note): Change argument to
23634 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
23635 * except.h: Adjust.
23637 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23639 * mode-switching.c (commit_mode_sets): Change type of local
23640 variable from rtx to rtx_insn *.
23642 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
23644 * doc/install.texi (--enable-languages): Add missing jit and lto info.
23645 Add ^ to grep command.
23646 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
23647 arg to last gimple_simplify declaration. Add missing gimple_build
23648 declaration for built-in function case with four tree args.
23650 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
23651 Szabolcs Nagy <szabolcs.nagy@arm.com>
23653 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
23654 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
23655 (GNU_USER_DYNAMIC_LINKERN32): Update.
23657 2015-05-08 Richard Biener <rguenther@suse.de>
23659 PR tree-optimization/66036
23660 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
23661 Handle strided group loads.
23662 (vect_verify_datarefs_alignment): Likewise.
23663 (vect_enhance_data_refs_alignment): Likewise.
23664 (vect_analyze_group_access): Likewise.
23665 (vect_analyze_data_ref_access): Likewise.
23666 (vect_analyze_data_ref_accesses): Likewise.
23667 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
23668 (vectorizable_load): Likewise.
23670 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
23672 * config/rs6000/rs6000.md: Require operand inequality in one
23675 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
23676 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
23678 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
23680 * config/rx/rx.md (movdi, movdf): Likewise.
23681 Likewise for define_peephole2s.
23683 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
23685 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
23686 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
23687 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
23688 vtst_u64): Rewrite using gcc vector extensions.
23690 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
23692 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
23693 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
23695 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
23697 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
23699 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
23701 * config/glibc-stdint.h (OPTION_MUSL): Define.
23702 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
23703 Change the definition based on OPTION_MUSL for 64 bit targets.
23704 * config/linux.h (OPTION_MUSL): Redefine.
23705 * config/alpha/linux.h (OPTION_MUSL): Redefine.
23706 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
23707 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
23709 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
23710 Szabolcs Nagy <szabolcs.nagy@arm.com>
23712 * config.gcc (LIBC_MUSL): New tm_defines macro.
23713 * config/linux.h (OPTION_MUSL): Define.
23714 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
23715 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
23716 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
23717 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
23718 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
23719 * config/linux.opt (mmusl): New option.
23720 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
23721 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
23722 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
23723 * configure: Regenerate.
23725 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
23726 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23729 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
23730 * config/i386/knetbsd-gnu64.h: New file.
23732 2015-05-08 Marek Polacek <polacek@redhat.com>
23735 * doc/invoke.texi: Document -Woverride-init-side-effects.
23737 2015-05-07 Marek Polacek <polacek@redhat.com>
23740 * doc/invoke.texi: Document -Wshift-negative-value.
23742 2015-05-06 Aditya Kumar <hiraditya@msn.com>
23744 * gcov-tool.c (do_merge): Refactore to remove int ret.
23745 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
23746 !type == FUNC to type != FUNC.
23747 * reload.h (struct target_reload): Changee to type of
23748 x_spill_indirect_levels from bool to unsigned char.
23750 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
23752 * rtl.h (always_void_p): New function.
23753 * gengenrtl.c (always_void_p): Likewise.
23754 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
23755 with code foo are always VOIDmode.
23756 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
23757 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
23758 compare-elim.c, config/aarch64/aarch64.c,
23759 config/aarch64/aarch64.md, config/alpha/alpha.c,
23760 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
23761 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
23762 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
23763 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
23764 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
23765 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
23766 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
23767 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
23768 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
23769 config/ia64/vect.md, config/iq2000/iq2000.c,
23770 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
23771 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
23772 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
23773 config/mep/mep.c, config/microblaze/microblaze.c,
23774 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
23775 config/mn10300/mn10300.c, config/msp430/msp430.c,
23776 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
23777 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
23778 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
23779 config/rs6000/altivec.md, config/rs6000/rs6000.c,
23780 config/rs6000/rs6000.md, config/rs6000/vector.md,
23781 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
23782 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
23783 config/sh/sh.md, config/sh/sh_treg_combine.cc,
23784 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
23785 config/spu/spu.md, config/stormy16/stormy16.c,
23786 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
23787 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
23788 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
23789 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
23790 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
23791 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
23792 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
23793 var-tracking.c: Update calls accordingly.
23795 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
23798 PR middle-end/54303
23799 * varasm.c (function_mergeable_rodata_prefix): New function.
23800 (mergeable_string_section): Use it.
23801 (mergeable_constant_section): Use it.
23803 2015-05-07 Jeff Law <law@redhat.com>
23806 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23807 simplifier to narrow arithmetic.
23808 * generic-match-head.c: (types_match, single_use): New functions.
23809 * gimple-match-head.c: (types_match, single_use): New functions.
23811 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23813 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
23816 2015-05-07 Richard Biener <rguenther@suse.de>
23818 PR tree-optimization/66002
23819 * passes.def: Schedule another pass_merge_phi after ifcombine, right
23822 2015-05-07 Marek Polacek <polacek@redhat.com>
23823 Martin Uecker <uecker@eecs.berkeley.edu>
23825 * doc/invoke.texi: Document -fsanitize=bounds-strict.
23826 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
23827 into SANITIZE_NONDEFAULT.
23828 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
23830 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
23833 * config/alpha/alpha.c (alpha_override_options_after_change): New.
23834 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
23835 (alpha_override_options): Move align_loops, align_jumps and
23836 align_functions handling into alpha_override_options_after_change.
23838 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
23839 Chris Jones <chrisj@nvidia.com>
23840 Joshua Conner <jconner@nvidia.com>
23842 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
23843 linking of crtfastmath.o.
23844 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
23846 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
23848 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
23849 (cstore<mode>4_unsigned_imm): New expander.
23850 (cstore<mode>4): Remove empty constraint strings. Use the new
23853 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
23856 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
23859 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
23861 * config/aarch64/geniterators.sh: Use standard BRE in sed.
23863 2015-05-06 Alan Modra <amodra@gmail.com>
23866 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
23867 (UNSPEC_NOP): Define.
23868 (reload_vsx_from_gpr<mode>): Add missing DONE.
23869 (reload_gpr_from_vsx<mode>): Likewise.
23870 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
23871 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
23873 2015-05-06 Christian Bruel <christian.bruel@st.com>
23876 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
23877 align_jumps, align_functions into aarch64_override_options_after_change.
23879 2015-05-06 Richard Biener <rguenther@suse.de>
23881 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
23882 vect_transform_slp_perm_load to check if we support a permutation
23883 for basic-block vectorization.
23885 2015-05-06 Nick Clifton <nickc@redhat.com>
23887 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
23888 used, even if it is not being used as a frame pointer.
23890 2015-05-05 Jason Merrill <jason@redhat.com>
23892 * dwarf2out.c (gen_member_die): Don't emit anything for an
23893 anonymous class constructor.
23895 2015-05-05 David Malcolm <dmalcolm@redhat.com>
23897 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
23898 that it reflects the block structure.
23899 (afdo_propagate_edge): Likewise.
23900 (afdo_calculate_branch_prob): Likewise.
23901 (afdo_annotate_cfg): Likewise.
23902 * cfgcleanup.c (equal_different_set_p): Likewise.
23903 (try_crossjump_to_edge): Likewise.
23904 * cgraph.c (cgraph_node::verify_node): Likewise.
23905 * cgraphunit.c (expand_all_functions): Likewise.
23906 * config/i386/i386.c (ix86_expand_copysign): Likewise.
23907 (exact_dependency_1): Likewise.
23908 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
23909 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
23910 * gensupport.c (process_define_subst): Likewise.
23911 * lto-wrapper.c (merge_and_complain): Likewise.
23912 * tree-if-conv.c (if_convertible_bb_p): Likewise.
23913 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
23914 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
23915 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
23916 * tree-vect-loop.c (vectorizable_reduction): Likewise.
23917 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
23918 * tree-vect-stmts.c (vectorizable_shift): Likewise.
23919 * tree-vrp.c (vrp_finalize): Likewise.
23920 * tree.c (variably_modified_type_p): Likewise.
23922 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
23924 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
23925 on darwin12 and later.
23926 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
23927 file to pass -rdynamic on darwin12 and later.
23928 * config/darwin.opt (rdynamic): Add.
23930 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
23932 * doc/extend.texi (C Extensions): Update menu for moved Variable
23933 Attributes and Type Attributes sections.
23935 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
23938 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
23939 if rep_8byte stringop strategy was specified for 32-bit target.
23941 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
23944 * config/i386/i386.md (vector convert to float spltiter): Check for
23945 xmm16+, when splitting scalar float conversion.
23946 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
23948 2015-05-05 Nick Clifton <nickc@redhat.com>
23950 * config/msp430/msp430-opts.h (enum msp430_regions): New.
23951 * config/msp430/msp430.c (msp430_override_options): Complain if
23952 -mcode-region or -mdata-region is used on a non MSP430X.
23953 (msp430_section_attr): New function. Checks lower, upper and
23955 (msp430_attribute_table): Add lower, upper and either.
23956 (gen_prefix): New function. Generates a prefix for a section
23958 (msp430_select_section): New function - handles the choice of
23959 section for an object. Takes into account memory region
23960 attributes and options.
23961 (msp430_function_section): Use gen_prefix.
23962 (TARGET_SECTION_TYPE_FLAGS): Define.
23963 (msp430_section_type_flags): New function.
23964 (TARGET_ASM_UNIQUE_SECTION): Define.
23965 (msp430_unique_section): New function.
23966 (msp430_output_aligned_decl_common): New function.
23967 (msp430_do_not_relax_short_jumps): New function.
23968 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
23970 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
23971 * config/msp430/msp430-protos.h
23972 (msp430_do_not_relax_short_jumps): New prototype.
23973 (msp430_output_aligned_decl_common): New prototype.
23974 * config/msp430/msp430.md (length): New attribute.
23975 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
23976 then use a long code sequence for short jumps.
23977 * config/msp430/msp430.opt (mcode-region): New.
23978 (mdata-region): New.
23979 * doc/invoke.texi: Document new options.
23980 * doc/extend.texi: Document new attributes.
23982 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
23984 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
23985 (tune_params): Add field branch_costs.
23986 (aarch64_branch_cost): Declare.
23987 * gcc/config/aarch64.c (generic_branch_cost): New.
23988 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
23989 (cortexa53_tunings): Likewise.
23990 (cortexa57_tunings): Likewise.
23991 (thunderx_tunings): Likewise.
23992 (xgene1_tunings): Likewise.
23993 (aarch64_branch_cost): Define.
23994 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
23996 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
23998 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
23999 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
24000 * config/i386/i386.md: Ditto.
24001 * config/i386/winnt.c: Ditto.
24003 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
24005 * doc/extend.texi (__atomic Builtins): Move implementation details
24006 to the end of the description, rewrite opening paragraphs, state
24007 difference with __sync builtins, state C11/C++11 assumptions,
24008 weaken itemized descriptions, add explanation of memory model
24009 behaviour, expand description of compare-exchange, simplify text.
24011 2015-05-05 Renlin Li <renlin.li@arm.com>
24013 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
24015 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
24017 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
24018 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
24019 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
24020 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
24021 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
24022 * configure: Regenerate.
24023 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
24024 * doc/install.texi (aarch64*-*-*): Document new
24025 --enable-fix-cortex-a53-843419 option.
24026 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
24027 and -mno-fix-cortex-a53-843419 options.
24029 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
24032 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
24034 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
24036 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
24037 fix overactive TYPE_MIN_VALUE check and add FIXME for type
24038 compatibility problems.
24040 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
24042 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
24044 (cbranchsi4_reg): New.
24045 * config/microblaze/microblaze.c
24046 (microblaze_expand_conditional_branch_reg): New.
24047 * config/microblaze/microblaze-protos.h
24048 (microblaze_expand_conditional_branch_reg): New prototype.
24050 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
24052 * config/microblaze/microblaze.md (peephole2): New.
24054 2015-05-04 Jeff Law <law@redhat.com>
24057 2015-05-04 Jeff Law <law@redhat.com>
24059 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
24060 simplifier to narrow arithmetic.
24061 * generic-match-head.c: (types_match, single_use): New functions.
24062 * gimple-match-head.c: (types_match, single_use): New functions.
24064 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
24067 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
24068 (split_branches): Likewise.
24070 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
24072 * common.opt (fdelete-null-pointer-checks): Init to -1.
24073 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
24074 override flag_delete_null_pointer_checks default.
24075 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
24076 behavior re address zero. Better document target-specific behavior.
24077 (-fisolate-errneous-paths-dereference): Mention relationship to
24078 -fdelete-null-pointer-checks.
24080 2015-05-04 Jakub Jelinek <jakub@redhat.com>
24082 PR tree-optimization/65984
24083 * ubsan.c: Include tree-cfg.h.
24084 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
24085 stmt_could_throw_p test, rename can_throw variable to ends_bb.
24087 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
24089 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
24090 to CONST_DOUBLE_P predicate.
24091 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
24092 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
24093 allow only operands that satisfy standard_sse_constant_p predicate.
24094 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
24095 to CONST_DOUBLE_P predicate.
24097 2015-05-04 Jeff Law <law@redhat.com>
24099 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
24100 simplifier to narrow arithmetic.
24101 * generic-match-head.c: (types_match, single_use): New functions.
24102 * gimple-match-head.c: (types_match, single_use): New functions.
24104 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
24106 * config/arm/arm.c: Restore bootstrap.
24108 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
24110 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
24111 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
24112 as CONST_WIDE_INT, not CONST_DOUBLE.
24113 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
24114 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
24115 (ix86_find_base_term): Do not check for CONST_DOUBLE.
24116 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
24117 (ix86_build_signbit_mask): Rewrite using wide ints.
24118 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
24119 (ix86_rtx_costs): Handle CONST_WIDE_INT.
24120 (find_constant): Ditto.
24121 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
24122 using gen_int_mode.
24123 * config/i386/predicates.md (x86_64_immediate_operand)
24124 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
24125 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
24126 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
24127 (const0_operand): Also match const_wide_int.
24128 (constm1_operand): Ditto.
24129 (const1_operand): Ditto.
24131 2015-05-04 Richard Biener <rguenther@suse.de>
24133 PR tree-optimization/65965
24134 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
24135 store groups at gaps.
24137 2015-05-04 Richard Biener <rguenther@suse.de>
24139 PR tree-optimization/65935
24140 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
24141 then make sure to apply that swapping to the IL.
24143 2015-05-04 Jakub Jelinek <jakub@redhat.com>
24145 * Makefile.in (PATCHLEVEL_c): New variable.
24146 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
24147 expand the same way as if DEVPHASE_c was non-empty.
24149 2015-05-04 Kai Tietz <ktietz@redhat.com>
24152 * lto-wrapper.c (run_gcc): Open filename
24155 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
24157 * doc/extend.texi (Variable Attributes, Type Attributes): Move
24158 sections up in file, to immediately after the Function Attributes
24161 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
24163 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
24165 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24167 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
24168 (insert_partition_copy_on_edge): Adjust.
24169 (insert_rtx_to_part_on_edge): Likewise.
24170 (insert_part_to_rtx_on_edge): Likewise.
24172 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24174 * function.c (set_return_jump_label): Change type of argument to
24176 * function.h (set_return_jump_label): Adjust.
24178 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24180 * reload.h (struct reg_equivs_t): Change type of init to
24182 * ira.c (fix_reg_equiv_init): Adjust.
24183 * reload1.c (eliminate_regs_1): Likewise.
24184 (init_eliminable_invariants): Likewise.
24186 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24188 * cselib.c (fp_setter_insn): Take a rtx_insn *.
24189 * cselib.h (fp_setter_insn): Adjust.
24191 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24193 * recog.c (struct validate_replace_src_data): Change type of
24194 insn field to rtx_insn *.
24195 (validate_replace_src_group): Change type of argument to rtx_insn *.
24196 * recog.h (validate_replace_src_group): Adjust.
24198 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24200 * haifa-sched.c: Change the type of some variables to rtx_insn *.
24201 * sched-deps.c: Likewise.
24202 * sched-int.h: Likewise.
24203 * sched-rgn.c: Likewise.
24204 * sel-sched.c: Likewise.
24206 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24209 * config/i386/i386.c: Change the type of some arguments to
24211 * config/arm/arm.c: Likewise.
24213 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24215 * lra-constraints.c: Change type of some arguments to rtx_insn *.
24217 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24219 * regcprop.c (kill_autoinc_value): Change type of argument to
24222 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24224 * genrecog.c (print_subroutine): Adjust.
24225 * recog.c (get_bool_attr_mask_uncached): Likewise.
24226 * recog.h (struct recog_data_d): Change the type of insn to
24229 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24231 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
24233 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24235 * df-problems.c (df_set_note): Change type of argument to
24238 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24240 * builtins.c (expand_builtin_trap): Change type of local
24241 variable to rtx_insn *.
24242 (add_sched_insns_for_speculation): Likewise.
24243 (ix86_emit_save_regs): Likewise.
24244 (get_scratch_register_on_entry): Likewise.
24245 (ix86_emit_restore_reg_using_pop): Likewise.
24246 (ix86_emit_leave): Likewise.
24247 (ix86_emit_restore_regs_using_mov): Likewise.
24248 (ix86_expand_epilogue): Likewise.
24250 (rl78_alloc_physical_registers_umul): Likewise.
24251 * cselib.c (discard_useless_locs): Likewise.
24252 (cselib_invalidate_regno): Likewise.
24253 (cselib_invalidate_mem): Likewise.
24254 * function.c (expand_function_start): Likewise.
24255 (emit_use_return_register_into_block): Likewise.
24256 * gcse.c: Likewise.
24257 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
24258 * ifcvt.c (noce_get_alt_condition): Likewise.
24259 * loop-doloop.c (doloop_condition_get): Likewise.
24260 * lra-constraints.c (inherit_in_ebb): Likewise.
24261 * modulo-sched.c (sms_schedule_by_order): Likewise.
24262 * recog.c (next_insn_tests_no_inequality): Likewise.
24263 * reorg.c (emit_delay_sequence): Likewise.
24264 (update_reg_dead_notes): Likewise.
24265 (fix_reg_dead_note): Likewise.
24266 (fill_slots_from_thread): Likewise.
24267 (delete_computation): Likewise.
24269 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
24271 * doc/extend.texi (Variable Attributes): Add menu and proper
24272 @nodes to subsections. Move Microsoft Windows attributes to
24273 their own subsection.
24274 (Type Attributes): Reorganize introduction to remove duplicate
24275 list of attributes. Add menu and proper @nodes to subsections.
24276 Alphabetize the main table of common attributes.
24278 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
24280 * match.pd: New simplification patterns.
24281 (x + (x & 1)) -> ((x + 1) & ~1)
24282 (x & ~(x & y)) -> ((x & ~y))
24283 (x | ~(x | y)) -> ((x | ~y))
24285 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24287 * target.def (attribute_table): Mention that struct attribute_spec
24288 is defined in tree-core.h rather than tree.h
24289 * doc/tm.texi: Regenerate.
24291 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
24293 * genrecog.c (test): Rename to rtx_test. Update rest of file
24296 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
24298 PR translation/65959
24299 * params.h (DEFPARAM): Rename msgid to nocmsgid.
24301 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
24303 * gcc/config/aarch64/aarch64-protos.h (tune_params):
24304 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
24305 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
24306 Return value depending on target.
24307 (generic_tunings): Initialize new target settings.
24308 (cortexa53_tunings): Likewise.
24309 (cortexa57_tunings): Likewise.
24310 (thunderx_tunings): Likewise.
24311 (xgene1_tunings): Likewise.
24313 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
24315 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
24316 Make Cortex-A53 shift costs more accurate.
24318 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24320 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
24323 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
24325 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
24326 Calculate cost of op0 and op1 in PLUS and MINUS cases.
24328 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24330 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
24331 Add cost of op0 in the compare-with-fpzero case.
24333 2015-04-30 David Malcolm <dmalcolm@redhat.com>
24335 * builtins.c (fold_builtin_1): Remove spurious second
24337 * cgraph.h (symtab_node::get_availability): Likewise.
24338 * opts.c (common_handle_option): Remove spurious second semicolon.
24339 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
24340 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
24342 2015-04-30 Caroline Tice <cmtice@google.com>
24344 PR gcov-profile/65929
24345 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
24346 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
24347 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
24348 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
24349 * doc/tm.texi: Regenerate.
24350 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
24351 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
24352 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
24353 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
24355 2015-04-30 Marek Polacek <polacek@redhat.com>
24357 * varasm.c (handle_cache_entry): Fix logic.
24359 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24361 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
24362 (*extrsi5_insn_uxtw_alt): Likewise.
24363 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
24364 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
24367 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24369 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
24372 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24374 * config/aarch64/aarch64.md
24375 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
24376 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
24377 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
24378 appropriately. Handle alternative EON form.
24380 2015-04-30 Renlin Li <renlin.li@arm.com>
24382 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
24383 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
24385 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
24388 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
24389 -fstrict-aliasing boundaries.
24391 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24393 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
24394 and [SU]MNEGL patterns.
24396 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24398 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
24399 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
24400 combined arithmetic-shift ops. Properly handle all shift and extend
24401 operations that can occur in combination with PLUS/MINUS.
24402 Rename maybe_fma to compound_p.
24403 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
24404 arithmetic and shift operations.
24406 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24408 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
24409 rather than arith_shift cost when costing ADD/MINUS of an
24412 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
24415 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
24418 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
24420 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
24421 are for the same position.
24423 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
24425 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
24427 (vectorize_loops): Use it.
24429 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
24431 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
24432 for aggregate types.
24433 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
24434 type to be non_ODR.
24435 * tree.c (need_assembler_name_p): Compute mangled name for
24436 non-fundamental types and integer types.
24438 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
24440 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
24442 * expr.c (expand_expr_real_2): Likewise.
24444 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
24446 * tree.c (build_common_builtin_nodes): Do not build
24447 __builtin_alloca_with_align as equivalent of library alloca.
24449 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
24451 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
24452 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
24454 * tree.c: Include print-tree.h and ipa-utils.h
24455 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
24456 (free_lang_data_in_cgraph): Call verify_type.
24457 (verify_type_variant): New function.
24458 (verify_type): New function.
24459 * tree.h (verify_type): Declare.
24461 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
24463 * config/mips/mips-cpus.def: (mips4): Change default processor
24464 from PROCESSOR_R8000 to PROCESSOR_R10000.
24466 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
24468 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
24469 la/jalr instead of jal.
24471 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
24474 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
24475 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
24476 (setcc+movzbl peephole2): Check also clobbered reg.
24477 (setcc+andl peephole2): Ditto.
24479 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
24482 * config/nvptx/mkoffload.c (target_ilp32): New variable.
24483 (main): Set it depending on "-foffload-abi=[...]".
24484 (compile_native, main): Use it to pass "-m32" or "-m64" to the
24487 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
24490 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
24491 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
24492 Flip lane index back at assembly time for bigendian.
24494 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
24496 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
24497 * gimplify.c (gimplify_omp_workshare): Use it.
24499 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
24501 * Makefile.in (build/genrecog.o): Depend on inchash.h.
24502 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
24504 * genrecog.c: Rewrite most of the code except for the third page.
24506 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
24508 * inchash.h, inchash.c: Include bconfig.h for build objects.
24509 * Makefile.in (build/inchash.o): New rule.
24511 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
24514 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
24515 number in type attribute expression.
24517 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
24519 * loop-iv.c (canon_condition): Generalize to all types of integer
24522 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
24524 * gimple-walk.c: Prune duplicate or unneeded includes.
24525 (walk_gimple_asm): Only call parse_input_constraint or
24526 parse_output_constraint if their findings are used.
24527 Honour parse_input_constraint and parse_output_constraint
24530 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
24532 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
24534 2015-04-29 Tom de Vries <tom@codesourcery.com>
24536 PR tree-optimization/65893
24537 * passes.def (pass_all_optimizations): Move pass_stdarg to after
24540 2015-04-29 Richard Biener <rguenther@suse.de>
24542 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
24543 compute GROUP_SIZE for basic-block SLP.
24544 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
24545 take into account gaps.
24546 (vect_get_mask_element): Properly reject references to previous
24548 (vect_transform_slp_perm_load): Likewise.
24550 2015-04-29 Christian Bruel <christian.bruel@st.com>
24553 * config/i386/i386.c (ix86_default_align): New function.
24554 (ix86_override_options_after_change): Call ix86_default_align.
24555 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
24556 (ix86_override_options_after_change): New function.
24558 2015-04-28 Jeff Law <law@redhat.com>
24560 * tree-ssa-dom.c (record_equality); Fix comment typos.
24562 2015-04-28 Tom de Vries <tom@codesourcery.com>
24564 PR tree-optimization/65887
24565 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
24567 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
24569 * doc/extend.texi (Declaring Attributes of Functions): Split into
24570 subsections by target. Alphabetize the table of common attributes.
24571 Rewrite some of the introductory text to reflect the new structure.
24572 Update some cross-references to point to the new subsections.
24573 (Attribute Syntax): Put paragraph about "__" naming here. Remove
24574 duplicate copies in the discussion of function, label, and type
24577 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
24580 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
24582 2015-04-28 Jason Merrill <jason@redhat.com>
24585 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
24586 (finalize_type_size): Respect TYPE_USER_ALIGN.
24587 (layout_type) [ARRAY_TYPE]: Likewise.
24589 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
24591 * config/arm/arm.md (*arm_movt): Fix type attribute.
24592 (*cmpsi_shiftsi): Likewise.
24593 (*cmpsi_shiftsi_swp): Likewise.
24594 (*movsicc_insn): Likewise.
24595 (*cond_move): Likewise.
24596 (*if_plus_move): Likewise.
24597 (*if_move_plus): Likewise.
24598 (*if_arith_move): Likewise.
24599 (*if_move_arith): Likewise.
24600 (*if_shift_move): Likewise.
24601 (*if_move_shift): Likewise.
24602 (*arm_movtas_ze): Likewise.
24603 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
24604 redundancy and type attribute.
24605 (*thumb2_movsi_insn): Fix type attribute.
24606 (*thumb2_addsi_short): Likewise.
24607 (thumb2_addsi3_compare0): Likewise.
24608 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
24609 attributes accordingly.
24611 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
24614 * function.c (pad_to_arg_alignment): Add parentheses.
24616 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
24618 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
24619 libgcc/config/frv/elf-lib.h.
24621 2015-04-28 Tom de Vries <tom@codesourcery.com>
24623 * tree-call-cdce.c: Fix example in header comment.
24625 2015-04-28 Richard Biener <rguenther@suse.de>
24627 PR tree-optimization/62283
24628 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
24629 fails fatally and we are vectorizing a basic-block simply
24630 cause the child to be constructed piecewise.
24631 (vect_analyze_slp_cost_1): Adjust.
24632 (vect_detect_hybrid_slp_stmts): Likewise.
24633 (vect_bb_slp_scalar_cost): Likewise.
24634 (vect_get_constant_vectors): For piecewise constructed
24635 constants place them after the last def.
24636 (vect_get_slp_defs): Adjust.
24637 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
24638 externals for basic-block vectorization.
24640 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
24643 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
24645 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
24646 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
24647 (AARCH64_TUNE_FMA_STEERING): Likewise.
24648 * config/aarch64/aarch64-cores.def: Set
24649 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
24650 FMUL/FMADD instructions.
24651 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
24652 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
24653 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
24654 * config/aarch64/cortex-a57-fma-steering.h: New file.
24655 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24657 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
24659 * gensupport.c (std_preds): Add missing codes to address_operand entry.
24661 2015-04-28 Richard Biener <rguenther@suse.de>
24663 PR tree-optimization/65851
24664 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
24665 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
24666 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
24667 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
24668 (ccp_visit_phi_node): Adjust.
24669 (evaluate_stmt): For simplifications to SSA names return its
24670 lattice value if that isn't VARYING. Return immediately when
24671 simplified to a constant.
24672 (visit_assignment): Adjust.
24673 (ccp_visit_stmt): Likewise.
24675 2015-04-28 Tom de Vries <tom@codesourcery.com>
24677 PR tree-optimization/65818
24678 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
24681 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24683 * calls.c (save_fixed_argument_area): Don't check
24684 ARGS_GROW_DOWNWARD with the preprocessor.
24685 (restore_fixed_argument_area): Likewise.
24686 (mem_overlaps_already_clobbered_arg_p): Likewise.
24687 (check_sibcall_argument_overlap): Likewise.
24688 (expand_call): Likewise.
24689 (emit_library_call_value_1): Likewise.
24690 (store_one_arg): Likewise.
24691 * function.c (assign_parms): Likewise.
24692 (locate_and_pad_parm): Likewise.
24693 (pad_to_arg_alignment): Likewise.
24694 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
24696 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24698 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
24699 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
24700 * calls.c (save_fixed_argument_area): Don't chekc if
24701 ARGS_GROW_DOWNWARD is defined.
24702 (restore_fixed_argument_area): Likewise.
24703 (mem_overlaps_already_clobbered_arg_p): Likewise.
24704 (check_sibcall_argument_overlap): Likewise.
24705 (expand_call): Likewise.
24706 (emit_library_call_value_1): Likewise.
24707 (store_one_arg): Likewise.
24708 * function.c (assign_parms): Likewise.
24709 (locate_and_pad_parm): Likewise.
24710 (pad_to_arg_alignment): Likewise.
24711 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
24713 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24715 * defaults.h (gen_epilogue): New function.
24716 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
24718 * cfgrtl.c (cfg_layout_finalize): Likewise.
24719 * df-scan.c: Likewise.
24720 * function.c (thread_prologue_and_epilogue_insns): Likewise.
24721 (reposition_prologue_and_epilogue_notes): Likewise.
24722 * reorg.c (find_end_label): Likewise.
24723 * toplev.c: Likewise.
24725 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24727 * bb-reorder.c (HAVE_return): Don't check if its undefined.
24728 * defaults.h (gen_simple_return): New function.
24729 (gen_simple_return): Likewise.
24730 (HAVE_return): Add default definition to false.
24731 (HAVE_simple_return): Likewise.
24732 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
24733 HAVE_return and HAVE_simple_return are defined.
24734 * function.c (gen_return_pattern): Likewise.
24735 (convert_jumps_to_returns): Likewise.
24736 (thread_prologue_and_epilogue_insns): Likewise.
24737 * reorg.c (find_end_label): Likewise.
24738 (dbr_schedule): Likewise.
24739 * shrink-wrap.c: Likewise.
24740 * shrink-wrap.h: Likewise.
24742 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24744 * defaults.h (EPILOGUE_USES): Add default definition of false.
24745 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
24746 * resource.c (init_resource_info): Likewise.
24748 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24750 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
24752 * dwarf2out.c (field_byte_offset): REmove check if
24753 PCC_BITFIELD_TYPE_MATTERS is defined.
24754 * stor-layout.c (layout_decl): Likewise.
24755 (update_alignment_for_field): Likewise.
24756 (place_field): Likewise.
24758 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24760 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
24762 * regrename.c (check_new_reg_p): Remove check if
24763 HARD_REGNO_RENAME_OK is defined.
24764 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
24766 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24768 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
24769 * cse.c (fold_rtx): Likewise.
24770 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
24771 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
24772 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
24773 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
24774 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
24775 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
24776 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
24777 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
24778 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
24779 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
24781 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
24782 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
24783 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
24784 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
24785 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
24786 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
24787 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
24788 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
24789 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
24790 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
24791 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
24792 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
24793 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
24794 * doc/tm.texi: Regenerate.
24795 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
24796 either true or false.
24798 2015-04-27 Jeff Law <law@redhat.com>
24800 PR tree-optimization/65217
24801 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
24802 of them has a single use, make sure it is the LHS of the implied
24805 2015-04-28 Alan Modra <amodra@gmail.com>
24808 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
24809 (offsettable_ok_by_alignment): Use minimum of decl and toc
24810 pointer alignment. Replace dead code with assertion.
24811 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
24812 case if size exceeds toc pointer alignment.
24813 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
24814 (rs6000_emit_move): Likewise.
24815 * configure.ac: Add linker toc pointer alignment check.
24816 * configure: Regenerate.
24817 * config.in: Regenerate.
24819 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
24821 * config.gcc: Add h8300-*-linux.
24822 * config/h8300/linux.h: New.
24823 * config/h8300/t-linux: New.
24824 * config/h8300/h8300.c (h8300_option_override): Normal mode
24825 is not supported for h8300-*-linux.
24826 (h8300_file_start): Target priority change.
24827 (get_shift_alg): Likewise.
24828 (h8300_shift_need_scratch_p): Likewise.
24829 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
24830 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
24832 2015-04-27 Caroline Tice <cmtice@google.com>
24834 * final.c (final_scan_insn): Output cold_function_name as function
24836 * varasm.c (cold_function_name): Make global.
24837 (assemble_start_function): Re-set cold_function_name.
24838 (assemble_end_function): Output cold partition size.
24839 * varasm.h (cold_function_name): Declare global.
24841 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
24843 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
24844 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
24846 (*movxi_internal_avx512f): Ditto.
24847 (define_split): Check for xmm16+, when splitting scalar float_extend.
24848 (*extendsfdf2_mixed): Use "v" constraint.
24849 (define_split): Check for xmm16+, when splitting scalar float_truncate.
24850 (*truncdfsf_fast_sse): Use "v" constraint.
24851 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
24852 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
24853 (define_peephole2): Check for xmm16+, when converting scalar
24855 (define_peephole2): Check for xmm16+, when converting scalar
24857 (*fop_<mode>_comm_mixed): Use "v" constraint.
24858 (*fop_<mode>_comm_sse): Ditto.
24859 (*fop_<mode>_1_mixed): Ditto.
24860 (*sqrt<mode>2_sse): Ditto.
24861 (*ieee_s<ieee_maxmin><mode>3): Ditto.
24863 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24865 * combine.c (simplify_if_then_else): Use std::swap instead
24866 of manually swapping.
24867 (known_cond): Likewise.
24868 (simplify_comparison): Likewise.
24870 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
24873 * config/rs6000/htm.md: Remove all define_expands.
24874 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
24875 UNSPECV_HTM_TABORTWCI): Remove.
24876 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
24877 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
24878 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
24879 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
24880 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
24881 tabortwci_internal): Remove define_insns.
24882 (tabort<wd>c, tabort<wd>ci): New define_insns.
24883 (tabort): Use gpc_reg_operand.
24884 (tcheck): Remove operand.
24885 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
24886 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
24888 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
24889 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
24890 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
24891 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
24892 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
24893 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
24894 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
24895 (tcheck): Remove builtin argument.
24896 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
24898 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
24899 tabortdc and tabortdci builtins when not in 64-bit mode.
24900 Modify code to handle the loss of the HTM define_expands.
24901 Emit code to copy the CR register to TARGET.
24902 (htm_init_builtins): Modify code to handle the loss of the HTM
24904 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
24905 (RS6000_BTC_64BIT): Likewise.
24906 (RS6000_BTC_CR): New macro.
24907 * doc/extend.texi: Update documentation for htm builtins.
24909 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24911 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
24912 of manually swapping.
24913 (simplify_associative_operation): Likewise.
24914 (simplify_binary_operation): Likewise.
24915 (simplify_plus_minus): Likewise.
24916 (simplify_relational_operation): Likewise.
24917 (simplify_ternary_operation): Likewise.
24919 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
24921 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
24922 (xs_hi_nonmemory_operand): Remove error.
24923 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
24924 general_operand rather than xs_hi_general_operand.
24926 2015-04-27 Richard Biener <rguenther@suse.de>
24928 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
24929 (record_equivalences_from_stmt): Valueize rhs.
24930 (record_equality): Canonicalize x and y order via
24931 tree_swap_operands_p. Do not swap operands for same loop depth.
24933 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
24937 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
24938 Add hint how to use own spec file.
24940 2015-04-27 Jakub Jelinek <jakub@redhat.com>
24942 PR tree-optimization/65875
24943 * tree-vrp.c (update_value_range): If in is_new case setting
24944 old_vr to VR_VARYING, also set new_vr to it. Remove
24945 old_vr->type == VR_VARYING test.
24946 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
24947 SSA_PROP_INTERESTING if update_value_range returned true,
24948 but new range is VR_VARYING.
24950 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
24952 * combine.c (sign_extend_short_imm): New.
24953 (set_nonzero_bits_and_sign_copies): Use above new function for sign
24954 extension of src short immediate.
24955 (reg_nonzero_bits_for_combine): Likewise for tem.
24957 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
24959 * stor-layout.c (self_referential_component_ref_p): New predicate.
24960 (copy_self_referential_tree_r): Use it.
24961 (self_referential_size): Punt for simple operations directly involving
24962 self-referential component references.
24963 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
24965 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
24967 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
24969 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
24971 * vec.h (vec): Make splice arguments const. Update definitions
24974 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
24976 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
24979 2015-04-26 Tom de Vries <tom@codesourcery.com>
24981 PR tree-optimization/65826
24982 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
24984 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
24986 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
24987 (*madd3<mode>): Ditto.
24988 (*msub4<mode>): Ditto.
24989 (*msub3<mode>): Ditto.
24990 (*nmadd4<mode>): Ditto.
24991 (*nmadd3<mode>): Ditto.
24992 (*nmadd4<mode>_fastmath): Ditto.
24993 (*nmadd3<mode>_fastmath): Ditto.
24994 (*nmsub4<mode>): Ditto.
24995 (*nmsub3<mode>): Ditto.
24996 (*nmsub4<mode>_fastmath): Ditto.
24997 (*nmsub3<mode>_fastmath): Ditto.
24999 2015-04-24 Jason Merrill <jason@redhat.com>
25002 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
25003 down when building TYPE_CANONICAL.
25004 (build_pointer_type_for_mode): Likewise.
25006 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
25008 * genrecog.c (validate_pattern): Check matching constraint refers
25009 to a lower numbered operand.
25011 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
25014 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
25015 save to independent variables use the Save attribute. This will
25016 allow these options to be modified with the #pragma/attribute
25018 (-mallow-movmisalign): Likewise.
25019 (-mallow-df-permute): Likewise.
25020 (-msched-groups): Likewise.
25021 (-malways-hint): Likewise.
25022 (-malign-branch-targets): Likewise.
25023 (-mvectorize-builtins): Likewise.
25024 (-msave-toc-indirect): Likewise.
25026 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
25027 can be set via the #pragma/attribute target support.
25028 (rs6000_opt_vars): Likewise.
25029 (rs6000_inner_target_options): If VSX was set, also set
25030 -mno-avoid-indexed-addresses.
25032 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25034 * config/arm/iterators.md (shiftable_ops): Rename to...
25035 (SHIFTABLE_OPS): ... This. Update use in comments.
25036 (ior_xor): Rename to...
25037 (IOR_XOR): ... This.
25038 (vqh_ops): Rename to...
25039 (VQH_OPS): ... This.
25040 (vqhs_ops): Rename to...
25041 (VQHS_OPS): ... This.
25042 (rshifts): Rename to...
25043 (RSHIFTS): ... This.
25044 (returns): Rename to...
25045 (RETURNS): ... This.
25046 * config/arm/arm.md: Update uses of the above.
25047 * config/arm/neon.md: Likewise.
25049 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25051 * config.host (case ${host}): Add aarch64*-*-linux case.
25052 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
25053 fields to all the cores.
25054 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
25055 Add MCPU_MTUNE_NATIVE_SPECS.
25056 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
25057 field to all extensions.
25058 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
25059 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
25060 Adjust definition of AARCH64_OPT_EXTENSION.
25061 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
25062 (MCPU_MTUNE_NATIVE_SPECS): Define.
25063 * config/aarch64/driver-aarch64.c: New file.
25064 * config/aarch64/x-arch64: New file.
25065 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
25068 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
25069 Wei Mi <wmi@google.com>
25071 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
25072 * config/i386/i386.c (extract_base_offset_in_addr): New function.
25073 (ix86_operands_ok_for_move_multiple): Ditto.
25074 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
25075 (movlpd/movhpd to movupd peephole2): Ditto.
25077 2015-04-24 Marek Polacek <polacek@redhat.com>
25080 * input.h (from_macro_expansion_at): Define.
25083 * doc/invoke.texi: Update description of -Wlogical-op.
25085 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
25087 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
25088 ternary operator in fprintf and harmonize spacing.
25090 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
25092 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
25093 Mark operand1 commutative.
25095 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
25097 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
25098 input operands in memory.
25099 (*vec_concatv2si_sse4_1): Ditto.
25100 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
25101 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
25103 (vec_extract_hi_v32hi): Ditto.
25104 (vec_extract_hi_v64hi): Ditto.
25105 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
25107 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
25108 Steven Bosscher <steven@gcc.gnu.org>
25110 PR rtl-optimization/34503
25111 * cprop.c (cprop_reg_p): New.
25112 (hash_scan_set): Use above function to check if register can be
25114 (find_avail_set): Return up to two sets, one whose source is a
25115 register and one whose source is a constant. Sets are returned in an
25116 array passed as parameter rather than as a return value.
25117 (cprop_insn): Use a do while loop rather than a goto. Try each of the
25118 sets returned by find_avail_set, starting with the one whose source is
25119 a constant. Use cprop_reg_p to check if register can be propagated.
25120 (do_local_cprop): Use cprop_reg_p to check if register can be
25122 (implicit_set_cond_p): Likewise.
25124 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25126 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
25127 (sem_function::equals): IGNORED_NODES parameter is now unused;
25128 update call of equals_private.
25129 (sem_function::equals_private): Do not call equals_wpa; skip
25130 gimple body matching if there is no body.
25131 (sem_function::init): Add logic to hash tthunk info.
25132 (sem_function::parse): Also parse thunks.
25133 * ipa-icf.h (equals_private): Update declaration.
25135 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25137 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
25138 asterisk from name so this can be generated directly.
25139 (*altivec_stvx_<mode>_internal): Likewise.
25140 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
25141 that this is never called during or after reload/lra.
25142 (rs6000_frame_related): Remove split_reg
25143 argument and logic that references it.
25144 (emit_frame_save): Remove last parameter from call to
25145 rs6000_frame_related.
25146 (rs6000_emit_prologue): Remove last parameter from eight calls to
25147 rs6000_frame_related. Force generation of stvx instruction for
25148 Altivec register saves. Remove split_reg handling, which is no
25150 (rs6000_emit_epilogue): Force generation of lvx instruction for
25151 Altivec register restores.
25153 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25155 * config/rs6000/rs6000.opt (mcrypto): Change option description to
25156 match category changes in ISA 2.07B.
25158 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25160 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
25162 (cmp_op, cmp_type): New code attributes.
25163 (NEON_VCMP, NEON_VACMP): New int iterators.
25164 (cmp_op_unsp): New int attribute.
25165 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
25166 (neon_vceq<mode>): Delete.
25167 (neon_vc<cmp_op><mode>_insn): New pattern.
25168 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
25169 (neon_vcgeu<mode>): Delete.
25170 (neon_vcle<mode>): Likewise.
25171 (neon_vclt<mode>: Likewise.
25172 (neon_vcage<mode>): Likewise.
25173 (neon_vcagt<mode>): Likewise.
25174 (neon_vca<cmp_op><mode>): New define_expand.
25175 (neon_vca<cmp_op><mode>_insn): New pattern.
25176 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
25178 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25180 * tree.h (attribute_value_equal): Declare.
25181 * tree.c (attribute_value_equal): Export.
25183 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25185 * ipa-icf.c (sem_item::compare_attributes): New function.
25186 (sem_item::compare_referenced_symbol_properties): Compare variable
25188 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
25189 (sem_function::param_used_p): New function.
25190 (sem_function::equals_wpa): Fix attribute comparsion; match
25191 parameter type codes; do not compare paremter flags when
25192 they are not used; compare edge flags; compare indirect calls.
25193 (sem_item::update_hash_by_addr_refs): Hash reference type.
25194 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
25195 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
25196 reference use type.
25197 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
25198 * ipa-icf.h (compare_attributes, param_used_p): Declare.
25200 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25202 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
25204 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
25205 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
25206 (sem_item::compare_referenced_symbol_properties): New.
25207 (sem_item::hash_referenced_symbol_properties): New.
25208 (sem_item::compare_cgraph_references): Rename to ...
25209 (sem_item::compare_symbol_references): ... this one; use
25210 compare_referenced_symbol_properties.
25211 (sem_function::equals_wpa): Do not compare
25212 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
25213 DECL_IS_OPERATOR_NEW; compare pointer sizes.
25214 (sem_item::update_hash_by_addr_refs): Call
25215 hash_referenced_symbol_properties.
25216 (sem_item::update_hash_by_local_refs): Cleanup.
25217 (sem_function::merge): Do not mix up symbol properties.
25218 (sem_variable::equals_wpa): Use compare_symbol_references.
25219 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
25220 (sem_item::hash_referenced_symbol_properties): New.
25221 (sem_item::compare_symbol_references): New.
25222 (sem_item::compare_cgraph_references): Remove.
25224 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
25227 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
25228 Emit size of local.
25230 2015-04-23 Nick Clifton <nickc@redhat.com>
25232 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
25233 ATTRIBUTE_UNUSED to x parameter.
25234 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
25236 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25238 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
25239 TARGET_CRYPTO to TARGET_P8_VECTOR>
25240 (crypto_vpermxor_<mode>): Likewise.
25241 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
25242 (BU_CRYPTO_3A): Likewise.
25243 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
25244 (BU_CRYPTO_OVERLOAD_3A): New #define.
25245 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
25246 (VPMSUMH): Likewise.
25247 (VPMSUMW): Likewise.
25248 (VPMSUMD): Likewise.
25249 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
25250 (VPERMXOR_V4SI): Likewise.
25251 (VPERMXOR_V8HI): Likewise.
25252 (VPERMXOR_V16QI): Likewise.
25253 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
25254 BU_CRYPTO_OVERLOAD_2A.
25255 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
25256 BU_CRYPTO_OVERLOAD_3A.
25257 * config/rs6000/rs6000.opt (mcrypto): Change description of
25260 2015-04-23 Richard Biener <rguenther@suse.de>
25262 * passes.def: Remove copy propagation passes run directly after CCP.
25263 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
25265 (ccp_visit_phi_node): Rework to handle first executable edge
25268 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
25270 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
25271 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
25272 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
25273 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
25274 (thumb_legimitimize_reload_address): Remove.
25275 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
25277 (thumb_legimitimize_reload_address): Remove.
25279 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25281 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
25283 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25285 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
25287 (store_multiple): Likewise.
25289 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25291 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
25292 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
25293 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
25294 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
25295 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
25296 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
25297 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
25298 Specify issue_rate value.
25299 (arm_issue_rate): Look up issue rate from tuning structs. Remove
25300 large switch statement.
25301 (arm_marvell_pj4_tune): New struct.
25302 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
25305 2015-04-23 Richard Biener <rguenther@suse.de>
25307 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
25308 (vect_find_last_store_in_slp_instance): Rename to ...
25309 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
25310 (vect_analyze_slp_cost_1): Use vector_load for constant defs
25311 and vec_construct for external defs when estimating prologue cost.
25312 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
25313 Compute costs here only when vectorizing loops.
25314 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
25315 have been determined.
25316 (vect_schedule_slp_instance): Simplify vectorized code placement
25317 and prepare for in-BB external defs.
25318 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
25319 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
25320 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
25322 (vect_model_load_cost): Likewise.
25323 (vectorizable_store): Instead add it here.
25324 (vectorizable_load): Likewise.
25325 (vect_is_simple_use): Dump def type textually.
25327 2015-04-23 Richard Biener <rguenther@suse.de>
25329 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
25330 * cfgloop.c (verify_loop_structure): Verify the root loop node.
25331 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
25332 instead of get_eh_region_from_lp_number.
25333 * loop-init.c (fix_loop_structure): If we removed a loop, reset
25336 2015-04-23 Anton Blanchard <anton@samba.org>
25338 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
25339 need for -mprofile-kernel to save LR to stack.
25341 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25343 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
25345 (insn_is_swappable_p): Return 1 for a convert from double to
25346 single precision when all of its uses are splats of BE element
25349 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
25351 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
25353 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25356 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
25357 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
25358 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
25360 (rs6000_builtin_mask_for_load): Return 0 for targets with
25361 efficient unaligned VSX accesses so that the vectorizer will use
25362 direct unaligned loads.
25363 (rs6000_builtin_support_vector_misalignment): Always return true
25364 for targets with efficient unaligned VSX accesses.
25365 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
25366 stores on targets with efficient unaligned VSX accesses is almost
25367 always the same as the cost of an aligned load or store, so model
25369 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
25370 unaligned vectors if we have efficient unaligned VSX accesses.
25371 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
25372 undocumented option.
25374 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25377 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
25379 * config.gcc (LIBC_MUSL): New tm_defines macro.
25380 * config/linux.h (OPTION_MUSL): Define.
25381 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
25382 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
25383 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
25385 * config/linux.opt (mmusl): New option.
25386 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
25387 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
25389 * configure: Regenerate.
25391 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
25393 * config.gcc (LIBC_MUSL): New tm_defines macro.
25394 * config/linux.h (OPTION_MUSL): Define.
25395 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
25396 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
25397 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
25399 * config/linux.opt (mmusl): New option.
25400 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
25401 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
25403 * configure: Regenerate.
25405 2015-04-22 Yury Gribov <y.gribov@samsung.com>
25407 * doc/invoke.texi (-fsanitize-sections): Update description.
25408 * asan.c (set_sanitized_sections): Parse incoming arg.
25409 (section_sanitized_p): Support wildcards.
25411 2015-04-22 Tom de Vries <tom@codesourcery.com>
25413 PR tree-optimization/65823
25414 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
25415 equality between ap_copy and ap.
25417 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25420 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
25422 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25425 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
25427 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25430 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
25431 remove already contained t-files.
25433 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25435 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
25436 Remove unneeded forward declarations.
25437 (suitable_for_tail_call_opt_p): Commentary typo fix.
25439 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25441 * varasm.c (emit_bss): Remove redundant guard.
25443 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25445 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
25447 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25449 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
25451 2015-04-22 Hale Wang <hale.wang@arm.com>
25452 Terry Guo <terry.guo@arm.com>
25454 PR rtl-optimization/64818
25455 * combine.c (can_combine_p): Don't combine user-specified
25456 register if it is in an asm input.
25458 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
25461 * passes.def (early_optimizations): Add pass_dse.
25463 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25465 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
25466 * reorg.c (redundant_insn): Remove ifdef
25467 INSN_REFERENCES_ARE_DELAYED.
25468 * resource.c (mark_referenced_resources): Likewise.
25470 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25472 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
25473 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
25474 * resource.c (mark_set_resources): Likewise.
25476 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25478 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
25479 * cfgcleanup.c (flow_find_cross_jump): Likewise.
25480 (flow_find_head_matching_sequence): Likewise.
25481 (try_head_merge_bb): Likewise.
25482 * combine.c (can_combine_p): Likewise.
25483 (try_combine): Likewise.
25484 (distribute_notes): Likewise.
25485 * df-problems.c (can_move_insns_across): Likewise.
25486 * final.c (final): Likewise.
25487 * gcse.c (insert_insn_end_basic_block): Likewise.
25488 * ira.c (find_moveable_pseudos): Likewise.
25489 * reorg.c (try_merge_delay_insns): Likewise.
25490 (fill_simple_delay_slots): Likewise.
25491 (fill_slots_from_thread): Likewise.
25492 * sched-deps.c (sched_analyze_2): Likewise.
25494 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25496 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
25497 PIC_OFFSET_TABLE_REGNUM.
25499 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25501 * alias.c (init_alias_target): Remove ifdef
25502 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
25503 * df-scan.c (df_insn_refs_collect): Likewise.
25504 (df_get_regular_block_artificial_uses): Likewise.
25505 (df_get_eh_block_artificial_uses): Likewise.
25506 (df_get_entry_block_def_set): Likewise.
25507 (df_get_exit_block_use_set): Likewise.
25508 * emit-rtl.c (gen_rtx_REG): Likewise.
25509 * ira.c (ira_setup_eliminable_regset): Likewise.
25510 * reginfo.c (init_reg_sets_1): Likewise.
25511 * regrename.c (rename_chains): Likewise.
25512 * reload1.c (reload): Likewise.
25513 (eliminate_regs_in_insn): Likewise.
25514 * resource.c (mark_referenced_resources): Likewise.
25515 (init_resource_info): Likewise.
25517 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25519 * defaults.h (MASK_RETURN_ADDR): New definition.
25520 * except.c (expand_builtin_extract_return_addr): Remove ifdef
25523 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25525 * defaults.h (RETURN_ADDR_OFFSET): New definition.
25526 * except.c (expand_builtin_extract_return_addr): Remove ifdef
25527 RETURN_ADDR_OFFSET.
25528 (expand_builtin_frob_return_addr): Likewise.
25530 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25532 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
25533 (try_redirect_by_replacing_jump): Likewise.
25534 (rtl_tidy_fallthru_edge): Likewise.
25535 * combine.c (insn_a_feeds_b): Likewise.
25536 (find_split_point): Likewise.
25537 (simplify_set): Likewise.
25538 * cprop.c (cprop_jump): Likewise.
25539 * cse.c (cse_extended_basic_block): Likewise.
25540 * df-problems.c (can_move_insns_across): Likewise.
25541 * function.c (emit_use_return_register_into_block): Likewise.
25542 * haifa-sched.c (sched_init): Likewise.
25543 * ira.c (find_moveable_pseudos): Likewise.
25544 * loop-invariant.c (find_invariant_insn): Likewise.
25545 * lra-constraints.c (curr_insn_transform): Likewise.
25546 * postreload.c (reload_combine_recognize_const_pattern):
25548 * reload.c (find_reloads): Likewise.
25549 * reorg.c (delete_scheduled_jump): Likewise.
25550 (steal_delay_list_from_target): Likewise.
25551 (steal_delay_list_from_fallthrough): Likewise.
25552 (redundant_insn): Likewise.
25553 (fill_simple_delay_slots): Likewise.
25554 (fill_slots_from_thread): Likewise.
25555 (delete_computation): Likewise.
25556 * sched-rgn.c (add_branch_dependences): Likewise.
25558 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25560 * genconfig.c (main): Always define HAVE_cc0.
25561 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
25563 * cfgcleanup.c (flow_find_cross_jump): Likewise.
25564 (flow_find_head_matching_sequence): Likewise.
25565 (try_head_merge_bb): Likewise.
25566 * cfgrtl.c (rtl_merge_blocks): Likewise.
25567 (try_redirect_by_replacing_jump): Likewise.
25568 (rtl_tidy_fallthru_edge): Likewise.
25569 * combine.c (do_SUBST_MODE): Likewise.
25570 (insn_a_feeds_b): Likewise.
25571 (combine_instructions): Likewise.
25572 (can_combine_p): Likewise.
25573 (try_combine): Likewise.
25574 (find_split_point): Likewise.
25576 (simplify_set): Likewise.
25577 (distribute_notes): Likewise.
25578 * cprop.c (cprop_jump): Likewise.
25579 * cse.c (cse_extended_basic_block): Likewise.
25580 * df-problems.c (can_move_insns_across): Likewise.
25581 * final.c (final): Likewise.
25582 (final_scan_insn): Likewise.
25583 * function.c (emit_use_return_register_into_block): Likewise.
25584 * gcse.c (insert_insn_end_basic_block): Likewise.
25585 * haifa-sched.c (sched_init): Likewise.
25586 * ira.c (find_moveable_pseudos): Likewise.
25587 * loop-invariant.c (find_invariant_insn): Likewise.
25588 * lra-constraints.c (curr_insn_transform): Likewise.
25589 * optabs.c (prepare_cmp_insn): Likewise.
25590 * postreload.c (reload_combine_recognize_const_pattern):
25592 * reload.c (find_reloads): Likewise.
25593 (find_reloads_address_1): Likewise.
25594 * reorg.c (delete_scheduled_jump): Likewise.
25595 (steal_delay_list_from_target): Likewise.
25596 (steal_delay_list_from_fallthrough): Likewise.
25597 (try_merge_delay_insns): Likewise.
25598 (redundant_insn): Likewise.
25599 (fill_simple_delay_slots): Likewise.
25600 (fill_slots_from_thread): Likewise.
25601 (delete_computation): Likewise.
25602 (relax_delay_slots): Likewise.
25603 * sched-deps.c (sched_analyze_2): Likewise.
25604 * sched-rgn.c (add_branch_dependences): Likewise.
25606 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25608 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
25609 that is trivially ded on non cc0 targets.
25610 (simplify_set): Likewise.
25611 (mark_used_regs_combine): Likewise.
25612 * cse.c (new_basic_block): Likewise.
25613 (fold_rtx): Likewise.
25614 (cse_insn): Likewise.
25615 (cse_extended_basic_block): Likewise.
25616 (set_live_p): Likewise.
25617 * rtlanal.c (canonicalize_condition): Likewise.
25618 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
25620 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25622 * conditions.h: Define macros even if HAVE_cc0 is undefined.
25623 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
25624 * final.c: Likewise.
25625 * jump.c: Likewise.
25626 * recog.c: Likewise.
25627 * recog.h: Declare functions even when HAVE_cc0 is undefined.
25628 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
25630 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25632 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
25633 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
25634 * builtins.c (expand_builtin): Remove check if
25635 EH_RETURN_DATA_REGNO is defined.
25636 * df-scan.c (df_bb_refs_collect): Likewise.
25637 (df_get_exit_block_use_set): Likewise.
25638 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
25639 * ira-lives.c (process_bb_node_lives): Likewise.
25640 * lra-lives.c (process_bb_lives): Likewise.
25642 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
25644 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
25645 FIRST_PSEUDO_REG): New.
25646 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
25647 (ARG_POINTER_REGNUM): Define to ARGP_REG.
25648 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
25649 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
25650 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
25651 (FIRST_INT_REG): New.
25652 (LAST_INT_REG): New.
25653 (FIRST_*_REG): Define using *_REG.
25654 (LAST_*_REG): Ditto.
25655 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
25656 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
25657 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
25659 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25661 * expmed.c: (synth_mult): Only assume overlapping
25662 shift with previous steps in alg_sub_t_m2 case.
25664 2015-04-21 Richard Biener <rguenther@suse.de>
25666 PR tree-optimization/65650
25667 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
25668 transitions involving copies.
25669 (set_lattice_value): Adjust for copy lattice state.
25670 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
25671 if that doesn't dominate the merge point.
25672 (bit_value_unop): Adjust what we treat as varying mask.
25673 (bit_value_binop): Likewise.
25674 (bit_value_assume_aligned): Likewise.
25675 (evaluate_stmt): When we simplified to a SSA name record a copy
25676 instead of dropping to varying.
25677 (visit_assignment): Simplify.
25679 * gimple-match.h (gimple_simplify): Add another callback.
25680 * gimple-fold.c (fold_stmt_1): Adjust caller.
25681 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
25682 for the 2nd callback.
25683 * gimple-match-head.c (gimple_simplify): Add a callback that is
25684 used to valueize the stmt operands and use it that way.
25686 2015-04-21 Richard Biener <rguenther@suse.de>
25688 PR tree-optimization/65788
25689 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
25691 2015-04-21 Richard Biener <rguenther@suse.de>
25693 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
25694 vec_construct cost by vec_stmt_cost.
25696 2015-04-21 Richard Biener <rguenther@suse.de>
25698 * cfghooks.h (create_basic_block): Replace with two overloads
25699 for RTL and GIMPLE.
25700 (split_block): Likewise.
25701 * cfghooks.c (split_block): Rename to ...
25702 (split_block_1): ... this.
25703 (split_block): Add two type-safe overloads for RTL and GIMPLE.
25704 (split_block_after_labels): Call split_block_1.
25705 (create_basic_block): Rename to ...
25706 (create_basic_block_1): ... this.
25707 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
25708 (create_empty_bb): Call create_basic_block_1.
25709 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
25710 split_block_after_labels.
25711 * omp-low.c (expand_parallel_call): Likewise.
25712 (expand_omp_target): Likewise.
25713 (simd_clone_adjust): Likewise.
25714 * tree-chkp.c (chkp_get_entry_block): Likewise.
25715 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
25716 create_basic_block overload.
25717 (cgraph_node::expand_thunk): Likewise.
25718 * tree-cfg.c (make_blocks): Likewise.
25719 (handle_abnormal_edges): Likewise.
25720 * tree-inline.c (copy_bb): Likewise.
25722 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25724 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
25726 (*xor_one_cmplsidi3_ze): Likewise.
25728 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
25730 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
25731 use df_remove_problem rather than manually removing problems, leaving
25732 holes in df->problems_in_order[].
25734 2015-04-21 Tom de Vries <tom@codesourcery.com>
25736 PR tree-optimization/65802
25737 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
25739 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25741 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
25743 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
25744 at '.'. Assert that there's enough space for everything.
25746 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
25748 PR tree-optimization/64950
25750 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
25753 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
25756 2015-04-20 Shiva Chen <shiva0217@gmail.com>
25758 PR rtl-optimization/64916
25759 * cfgcleanup.c (values_equal_p): New function.
25760 (can_replace_by): Use it.
25762 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
25765 * doc/invoke.texi ([-Wnarrowing]): Update.
25767 2015-04-20 Jeff Law <law@redhat.com>
25769 PR tree-optimization/65658
25770 * tree-ssa-threadupdate.c (redirection_block_p): Remove
25771 redundant test for GIMPLE_ASSIGN in last change.
25773 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
25775 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
25776 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
25777 (legitimize_tls_address): Ditto.
25778 (ix86_expand_move): Ditto.
25779 (ix86_expand_binary_operator): Remove reload_in_progress checks.
25780 (ix86_expand_unary_operator): Ditto.
25781 * config/i386/predicates.md (index_register_operand): Ditto.
25783 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
25785 * reorg.c (try_merge_delay_insns): Improve correctness checking
25786 for targets with multiple delay slots.
25788 2015-04-20 Jeff Law <law@redhat.com>
25790 PR tree-optimization/65658
25791 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
25794 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
25796 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
25797 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
25800 2015-04-20 Jakub Jelinek <jakub@redhat.com>
25803 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
25805 2015-04-20 Richard Biener <rguenther@suse.de>
25807 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
25808 * gimple-fold.c (gimple_build_valueize): New function.
25809 (gimple_build): Always use gimple_build_valueize as valueize hook.
25811 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
25814 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
25815 and overwrite variable parts if <= 1/2 the elements are variable.
25817 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
25819 PR rtl-optimization/65805
25820 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
25821 Don't use difference of offset and previous offset if
25822 update_sp_offset is non-zero.
25823 (eliminate_regs_in_insn): Ditto.
25824 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
25825 lra_eliminate_regs_1 call.
25826 * lra-constraints.c (get_equiv_with_elimination): Ditto.
25828 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
25830 * hash-table.h: Remove version of hash_table that stored value_type *.
25831 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
25832 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
25833 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
25834 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
25835 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
25836 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
25837 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
25838 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
25839 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
25840 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
25841 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
25842 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
25843 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
25844 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
25845 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
25846 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
25848 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25849 Jakub Jelinek <jakub@redhat.com>
25852 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
25853 subsequent SH_NONE operand does not overwrite an existing *special
25855 (adjust_extract): Handle case where a vec_extract operation is
25856 wrapped in a PARALLEL.
25858 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
25861 * config/i386/i386.c (ix86_binds_local_p): Define only if
25862 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
25864 2015-04-17 Jeff Law <law@redhat.com>
25866 PR tree-optimization/47679
25867 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
25868 * tree-ssa-scopedtables.c: New file.
25869 * tree-ssa-scopedtables.h: New file.
25870 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
25871 (const_and_copies): Change name/type.
25872 (record_const_or_copy): Move into tree-ssa-scopedtables.c
25873 (record_const_or_copy_1): Similarly.
25874 (restore_vars_to_original_value): Similarly.
25875 (pass_dominator::execute): Create and destroy const_and_copies table.
25876 (thread_across_edge): Update passing of const_and_copies.
25877 (record_temporary_equivalence): Use method calls rather than
25878 manipulating const_and_copies directly.
25879 (record_equality, cprop_into_successor_phis): Similarly.
25880 (dom_opt_dom_walker::before_dom_children): Similarly.
25881 (dom_opt_dom_walker::after_dom_children): Similarly.
25882 (eliminate_redundant_computations): Similarly.
25883 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
25884 (record_temporary_equivalence): Likewise.
25885 (invalidate_equivalences): Likewise.
25886 (record_temporary_equivalences_from_phis): Update due to type
25887 change of const_and_copies. Use method calls rather than
25888 manipulating the stack directly.
25889 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
25890 (thread_through_normal_block, thread_across_edge): Likewise.
25891 (thread_across_edge): Likewise.
25892 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
25893 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
25895 (identify_jump_threads): Update due to type change of equiv_stack.
25896 (finalize_jump_threads): Delete the equiv_stack when complete.
25898 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
25900 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
25901 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
25902 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
25904 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
25907 * config.gcc: Exit with a comment when we do not have a major version
25908 number for the FreeBSD target.
25910 2015-04-17 Jakub Jelinek <jakub@redhat.com>
25913 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
25914 maybe_allows_mem bitfields.
25915 (maybe_allows_none_start, maybe_allows_none_end,
25916 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
25917 maybe_allows_mem_end): New variables.
25918 (compute_maybe_allows): New function.
25919 (add_constraint): Use it to initialize maybe_allows_reg and
25920 maybe_allows_mem fields.
25921 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
25922 is_address constraints such that those that allow neither mem nor
25923 reg come first, then those that only allow reg but not mem, then
25924 those that only allow mem but not reg, then the rest.
25925 (write_allows_reg_mem_function): New function.
25926 (write_tm_preds_h): Call it.
25927 * stmt.c (parse_output_constraint, parse_input_constraint): Use
25928 the generated insn_extra_constraint_allows_reg_mem function
25929 instead of always setting *allows_reg = true; *allows_mem = true;
25930 for unknown extra constraints.
25932 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
25935 * output.h (default_binds_local_p_3): New.
25936 * varasm.c (default_binds_local_p_3): Make it public. Take an
25937 argument to indicate if common symbol may be local. If common
25938 symbol may be local, treat non-external variable as defined
25940 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
25941 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
25942 * config/i386/i386.c (ix86_binds_local_p): New.
25943 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
25944 ix86_binds_local_p.
25946 2015-04-17 Jakub Jelinek <jakub@redhat.com>
25949 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
25950 trying mem_loc_descriptor on XEXP (rtl, 0).
25952 2015-04-17 Martin Liska <mliska@suse.cz>
25954 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
25955 Release symbol_compare_collection.
25956 * ipa-reference.c: Add TODO that a vector should be released.
25958 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
25961 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
25962 to new AVR-LibC file layout (bug #44574).
25963 (*avrlibc_devicelib): Same.
25964 * config/avr/avr-mcus.def: Adjust comments.
25965 * config/avr/avr.opt (nodevicelib): Adjust help.
25967 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
25969 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
25971 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
25974 * gimplify.c (gimplify_init_constructor): Always emit a
25975 side-effecting constructor.
25977 2015-04-17 Tom de Vries <tom@codesourcery.com>
25979 PR tree-optimization/64950
25980 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
25981 in cfun->curr_properties.
25982 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
25983 if we generate an IFN_VA_ARG.
25984 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
25985 function if PROP_gimple_lva is not set in src function.
25987 2015-04-17 Tom de Vries <tom@codesourcery.com>
25988 Michael Matz <matz@suse.de>
25990 PR tree-optimization/64950
25991 * gimple-iterator.c (update_modified_stmts): Remove static.
25992 * gimple-iterator.h (update_modified_stmts): Declare.
25993 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
25994 (gimplify_va_arg_internal): New function.
25995 (gimplify_va_arg_expr): Use IFN_VA_ARG.
25996 * gimplify.h (gimplify_va_arg_internal): Declare.
25997 * internal-fn.c (expand_VA_ARG): New unreachable function.
25998 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
25999 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
26000 (expand_ifn_va_arg): New function.
26001 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
26002 (pass_stdarg::execute): Call expand_ifn_va_arg.
26003 (pass_data_lower_vaarg): New pass_data.
26004 (pass_lower_vaarg): New gimple_opt_pass.
26005 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
26006 (make_pass_lower_vaarg): New function.
26007 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
26008 properties_required field.
26009 * passes.def (all_passes): Add pass_lower_vaarg.
26010 * tree-pass.h (PROP_gimple_lva): Add define.
26011 (make_pass_lower_vaarg): Declare.
26013 2015-04-17 Tom de Vries <tom@codesourcery.com>
26015 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
26016 * calls.c (call_expr_flags): Same.
26018 2015-04-17 Tom de Vries <tom@codesourcery.com>
26020 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
26021 (pass_stdarg::execute): ... here.
26023 2015-04-17 Tom de Vries <tom@codesourcery.com>
26024 Michael Matz <matz@suse.de>
26026 * tree-cfg.c (make_blocks_1): Factor out of ...
26027 (make_blocks): ... here.
26028 (make_edges_bb): Factor out of ...
26029 (make_edges): ... here.
26030 (gimple_find_sub_bbs): New function.
26031 * tree-cfg.h (gimple_find_sub_bbs): Declare.
26033 2015-04-17 Tom de Vries <tom@codesourcery.com>
26035 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
26037 2015-04-17 Yury Gribov <y.gribov@samsung.com>
26039 * asan.c (set_sanitized_sections): New function.
26040 (section_sanitized_p): Ditto.
26041 (asan_protect_global): Optionally sanitize user-defined
26043 * asan.h (set_sanitized_sections): Declare new function.
26044 * common.opt (fsanitize-sections): New option.
26045 * doc/invoke.texi (-fsanitize-sections): Document new option.
26046 * opts-global.c (handle_common_deferred_options): Handle new
26049 2015-04-17 Jakub Jelinek <jakub@redhat.com>
26052 * dwarf2out.c (loc_list_from_tree): Return NULL
26053 for DEBUG_EXPR_DECL.
26055 2015-04-17 Christian Bruel <christian.bruel@st.com>
26057 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
26060 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
26062 * ira-color.c (setup_left_conflict_sizes_p): Do not process
26063 node itself when computing left conflict subnode size.
26065 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
26067 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
26068 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
26069 *fop_<mode>_1_sse using enabled attribute. Use
26070 register_mixssei387nonimm_operand operand 1 predicate. Change
26071 alternative 3 constraints from "x" to "v".
26073 2015-04-16 Richard Biener <rguenther@suse.de>
26075 PR tree-optimization/65774
26076 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
26077 bit-value tracking on.
26079 2015-04-16 Richard Biener <rguenther@suse.de>
26081 PR tree-optimization/64277
26082 * tree-vrp.c (check_array_ref): Fix anti-range handling,
26083 simplify upper bound handling.
26084 (search_for_addr_array): Simplify.
26085 (check_array_bounds): Handle ADDR_EXPRs here.
26086 (check_all_array_refs): Simplify.
26088 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
26090 * config/i386/i386.c (print_reg): Rewrite function.
26092 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26094 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
26095 Invert the condition.
26097 2015-04-16 Renlin Li <renlin.li@arm.com>
26099 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
26100 simplifications for UNSIGNED_FLOAT.
26102 2015-04-16 Nick Clifton <nickc@redhat.com>
26104 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
26106 (enum rl78_cpu_type): New.
26107 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
26108 (umulhi3_shift_virt): Remove m constraint from operand 1.
26109 (umulqihi3_virt): Likewise.
26110 * config/rl78/rl78.c (rl78_option_override): Add code to process
26111 -mcpu and -mmul options.
26112 (rl78_alloc_physical_registers): Add code to handle divhi and
26113 divsi valloc attributes.
26114 (set_origin): Likewise.
26115 * config/rl78/rl78.h (RL78_MUL_G14): Define.
26116 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
26117 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
26119 (ASM_SPEC): Pass -mcpu on to assembler.
26120 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
26121 (mulqi3_rl78): Likewise.
26122 (mulhi3_g13): Likewise.
26123 (mulhi3): Generate the G13 or G14 versions of the insn directly.
26124 (mulsi3): Likewise.
26125 (mulhi3_g14): Add clobbers of AX and BC.
26126 (mulsi3_g14): Likewise.
26127 (mulsi3_g13): Likewise.
26128 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
26129 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
26130 * config/rl78/rl78.opt (mmul): Initialise value to
26132 (mcpu): New option.
26133 (m13, m14, mrl78): New option aliases.
26134 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
26135 (MULTILIB_DIRNAMES): Add g13 and g14.
26136 * doc/invoke.texi: Document -mcpu and -mmul options.
26138 2015-04-16 Richard Biener <rguenther@suse.de>
26140 * tree-ssa-ccp.c (likely_value): See if we have operands that
26141 are marked as never simulate again and return CONSTANT in this
26143 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
26144 not have any operands that will be simulated again as
26145 not being simulated again.
26147 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
26149 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
26150 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
26151 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
26153 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
26155 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
26156 *float<SWI48:mode><MODEF:mode>2_sse.
26157 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
26159 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
26162 2015-04-15 Tom de Vries <tom@codesourcery.com>
26165 * function.c (push_dummy_function): New function.
26166 (init_dummy_function_start): Use push_dummy_function.
26167 (pop_dummy_function): New function. Factored out of ...
26168 (expand_dummy_function_end): ... here.
26169 * function.h (push_dummy_function, pop_dummy_function): Declare.
26170 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
26171 pop_dummy_function.
26172 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
26174 2015-04-15 Jeff Law <law@redhat.com>
26176 PR tree-optimization/47679
26177 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
26178 need for forward declaration in upcoming changes.
26179 (record_conditions, record_edge_info): Likewise.
26181 PR rtl-optimization/42522
26182 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
26183 SIGN_EXTRACT as a whole object rather than simplifying
26186 2015-04-15 Jakub Jelinek <jakub@redhat.com>
26189 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
26190 and GIMPLE_PREDICT use break instead of return true. For
26191 GIMPLE_EH_DISPATCH, compare dispatch region.
26193 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
26195 * doc/extend.texi (__sync Builtins): Simplify some text. Update
26196 details about the implementation. Make clear preference for
26197 __atomic builtins. Reduce possibility of future change.
26199 2015-04-15 Nick Clifton <nickc@redhat.com>
26201 * config/rx/rx.opt (mallow-string-insns): New option.
26202 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
26203 builtin if string instructions are denied.
26204 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
26205 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
26207 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
26208 * config/rx/rx.md (movstr): Enable pattern only if string
26209 instructions are allowed.
26210 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
26211 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
26212 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
26213 (MULTILIB_DIRNAMES): Add no-strings.
26214 * doc/invoke.texi: Document -mno-allow-string-insns.
26216 2015-04-15 Alan Modra <amodra@gmail.com>
26220 PR middle-end/36043
26221 * calls.c (load_register_parameters): Don't load past end of
26222 mem unless suitably aligned.
26224 2015-04-15 Nick Clifton <nickc@redhat.com>
26226 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
26227 decrement instruction as being frame related.
26228 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
26230 If zero extending a function address enclose the operation in
26232 (rl78_preferred_reload_class): New function.
26233 (TARGET_PREFERRED_RELOAD_CLASS): Define.
26234 * config/rl78/rl78.md: Remove useless constraints in expanders.
26235 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
26236 (mulhi3_rl78): Likewise.
26237 (mulhi3_g13): Likewise.
26238 (mulsi3_rl78): Likewise.
26239 (es_addr): Move to before the multiply patterns.
26241 2015-04-15 Alan Modra <amodra@gmail.com>
26243 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
26244 and sequence_stack. Add seq.
26245 (seq_stack): Delete.
26246 * function.c (prepare_function_start): Don't access x_last_insn.
26247 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
26248 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
26249 * emit_rtl.c (start_sequence, push_topmost_sequence,
26250 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
26251 sequence accessors.
26252 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
26253 remove_insn): Likewise. Simplify.
26254 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
26255 and pop_topmost_sequence.
26256 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
26258 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
26260 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
26263 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
26266 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
26268 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
26269 (LEGACY_INT_REGNO_P): Ditto.
26270 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
26271 (ANY_MASK_REG_P): Remove.
26272 (BND_REG_P): Rename from ANY_BND_REG_P.
26273 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
26274 legacy integer registers. Do not handle MMX_REG_P in a special way.
26275 Merge 64byte and 32byte SSE handling.
26277 2015-04-14 Nick Clifton <nickc@redhat.com>
26279 * expr.c (expand_assignment): Force an address offset computation
26280 into a register before changing its mode.
26281 (expand_expr_real_1): Likewise.
26283 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
26285 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
26286 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
26287 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
26288 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
26289 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
26290 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
26291 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
26292 and __aarch64_vget_lane_any.
26294 2015-04-14 Jakub Jelinek <jakub@redhat.com>
26296 PR rtl-optimization/65761
26297 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
26298 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
26300 2015-04-14 Richard Biener <rguenther@suse.de>
26302 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
26303 (graphite_can_represent_scev): Use POINTER_TYPE_P.
26305 2015-04-14 Richard Biener <rguenther@suse.de>
26307 PR tree-optimization/65758
26308 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
26310 (ccp_lattice_meet): Likewise.
26311 (bit_value_unop): Likewise.
26312 (bit_value_binop): Likewise.
26313 (bit_value_assume_aligned): Likewise.
26315 2015-04-14 Christian Bruel <christian.bruel@st.com>
26317 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
26320 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
26322 PR tree-optimization/63387
26323 * match.pd ((x unord x) | (y unord y) -> (x unord y),
26324 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
26326 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
26328 * config/i386/predicates.md (any_QIreg_operand): Rename from
26329 q_regs_operand. Do not process subregs.
26330 (QIreg_operand): Use QI_REGNO_P predicate.
26331 (ext_QIreg_operand): Ditto.
26332 (ext_register_operand): Ditto.
26333 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
26334 (AND splitters): Ditto.
26335 (AND with -65536 splitter): Add SWI48 mode for operand 0.
26336 (AND with -256 splitter): Use any_QIreg_operand predicate and
26337 SWI248 mode for operand 0.
26338 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
26339 mode for operand 0.
26340 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
26342 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
26344 * doc/plugins.texi: Rewrite first introductory paragraph.
26346 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26348 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
26349 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
26351 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26353 * ipa-profie.c (ipa_profile): Check number of parameters
26354 and possible polymorphic call targets before
26357 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
26359 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
26360 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
26362 2015-04-13 Richard Biener <rguenther@suse.de>
26364 PR tree-optimization/65204
26365 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
26366 takens for bit-CCP.
26368 2015-04-13 Richard Biener <rguenther@suse.de>
26371 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
26372 and cond_not_taken_branch_cost to 4 and 2.
26373 (bdver2_cost): Likewise.
26374 (bdver3_cost): Likewise.
26375 (bdver4_cost): Likewise.
26377 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26379 * hash-table.h (hash_table constructor): Add mem stats.
26380 (alloc_entries): Likewise.
26382 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26384 * ipa-cp.c (ipcp_driver): Relase prev_edge.
26385 * passes.c (execute_one_pass): Only add transform if pass has one.
26387 2015-04-12 Joseph Myers <joseph@codesourcery.com>
26389 * config/i386/i386.c (ix86_option_override_internal): Don't set
26390 -fprefetch-loop-arrays if optimizing for size.
26392 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
26393 Gerald Pfeifer <gerald@pfeifer.com>
26395 * doc/contrib.texi (Contributors): Add Martin Jambor and
26398 2015-04-12 Jakub Jelinek <jakub@redhat.com>
26400 * BASE-VER: Set to 6.0.0.
26402 PR tree-optimization/65747
26403 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
26404 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
26406 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
26408 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
26409 sentence. Improve grammar.
26411 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
26413 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
26415 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
26418 * ipa-inline-transform.c (speculation_removed): Remove static var.
26419 (check_speculations): New function.
26420 (clone_inlined_nodes): Do not check spculations.
26421 (inline_call): Call check_speculations.
26422 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
26423 consider non-invariants.
26425 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
26426 Martin Liska <mliska@suse.cz>
26429 * ipa-icf.c (sem_item::compare_cgraph_references): function and
26430 variable can not match.
26431 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
26432 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
26434 2015-04-11 Jakub Jelinek <jakub@redhat.com>
26436 PR tree-optimization/65735
26437 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
26438 Remove visited_phis argument, add visited_bbs, avoid recursing into the
26439 same bb rather than just into the same phi node.
26440 (thread_through_normal_block): Adjust caller.
26442 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
26444 * doc/contrib.texi (Contributors): Add Ira Rosen.
26446 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
26448 * gcov.c (find_source): Fix miswording in error message.
26449 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
26450 (ix86_expand_sse_comi_round): Fix typo in error message.
26452 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
26454 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
26456 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
26458 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
26460 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
26463 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
26464 Print bad_spills_num and insn_pseudos_num.
26466 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26469 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
26470 when creating +1 values for SImode.
26472 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
26475 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
26478 2015-04-10 Jakub Jelinek <jakub@redhat.com>
26479 Iain Sandoe <iain@codesourcery.com>
26482 * configure: Regenerate.
26484 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
26487 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
26489 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
26491 * doc/contrib.texi (Contributors): Add John Marino.
26493 2015-04-09 Jakub Jelinek <jakub@redhat.com>
26495 PR tree-optimization/65709
26496 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
26497 TREE_TYPE (TREE_TYPE (t)).
26499 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
26502 * lra-int.h (lra_bad_spill_regno_start): New.
26503 * lra.c (lra_bad_spill_regno_start): New.
26504 (lra): Set up lra_bad_spill_regno_start. Set up
26505 lra_constraint_new_regno_start unconditionally.
26506 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
26509 2015-04-09 Marek Polacek <polacek@redhat.com>
26510 Jakub Jelinek <jakub@redhat.com>
26512 PR middle-end/65554
26513 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
26514 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
26517 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
26519 PR rtl-optimization/65693
26520 * combine.c (is_parallel_of_n_reg_sets): Move outside of
26523 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
26526 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
26527 device specs file if "device-specs%s" didn't resolve to a path.
26529 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
26532 * config/i386/i386.c (fixup_modeless_constant): New.
26533 (ix86_expand_args_builtin): Fixup modeless constant operand.
26534 (ix86_expand_round_builtin): Ditto.
26535 (ix86_expand_special_args_builtin): Ditto.
26536 (ix86_expand_builtin): Ditto.
26538 2015-04-09 Jakub Jelinek <jakub@redhat.com>
26541 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
26542 any pow2 integer in between 2 and 0x80000000U inclusive.
26544 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
26546 PR rtl-optimization/65693
26547 * combine.c (is_parallel_of_n_reg_sets): Change first argument
26548 from an rtx_insn * to an rtx.
26549 (try_combine): Adjust both callers. Use it once more.
26551 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
26553 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
26554 (chkp_make_static_const_bounds): Search existing
26555 symbol by assembler name. Use make_decl_one_only.
26556 (chkp_get_zero_bounds_var): Remove node search which
26557 is now performed in chkp_make_static_const_bounds.
26558 (chkp_get_none_bounds_var): Likewise.
26560 2015-04-08 Michael Witten <mfwitten@gmail.com>
26562 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
26565 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26567 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
26569 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
26571 * doc/extend.texi (__sync Builtins): Fix grammar.
26573 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26575 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
26577 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26579 * varasm.c (emit_local): Move definition of align.
26581 2015-04-08 Julian Brown <julian@codesourcery.com>
26583 * config/nvptx/mkoffload.c (process): Support variable mapping.
26585 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
26587 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
26589 (alpha_write_one_linkage): Correct typo.
26591 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
26593 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
26595 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
26597 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
26599 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
26601 * tree-chkp.h (chkp_insert_retbnd_call): New.
26602 * tree-chkp.c (chkp_insert_retbnd_call): New.
26603 * ipa-split.c (insert_bndret_call_after): Remove.
26604 (split_function): Use chkp_insert_retbnd_call.
26605 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
26606 bounds for instrumented functions.
26608 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
26611 * calls.c (initialize_argument_information): When producing tail
26612 call also turn SSA_NAMES passed by references to original PARM_DECLs
26614 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
26617 * lra-remat.c (do_remat): Process input and non-input insn
26618 registers separately.
26620 2015-04-07 Jakub Jelinek <jakub@redhat.com>
26623 * valtrack.c (debug_lowpart_subreg): New function.
26624 (dead_debug_insert_temp): Use it.
26626 PR middle-end/65680
26627 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
26628 into signed HOST_WIDE_INT the same as negative bit_offset.
26630 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
26632 * ipa-comdats.c (ipa_comdats): Visit all thunks
26633 to set proper comdat group.
26635 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26638 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
26639 on constants for NEON VSTRUCT modes.
26641 2015-04-07 Jakub Jelinek <jakub@redhat.com>
26642 Iain Sandoe <iain@codesourcery.com>
26645 * configure: Regenerate.
26647 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
26650 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
26651 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
26652 that LFD is used to load double constants instead of LFS. Add
26653 defaults for all costs structures. Add comments for missing
26654 initialization fields.
26655 (size32_cost): Likewise.
26656 (size64_cost): Likewise.
26657 (rs64a_cost): Likewise.
26658 (mpccore_cost): Likewise.
26659 (ppc403_cost): Likewise.
26660 (ppc405_cost): Likewise.
26661 (ppc440_cost): Likewise.
26662 (ppc476_cost): Likewise.
26663 (ppc601_cost): Likewise.
26664 (ppc603_cost): Likewise.
26665 (ppc604_cost): Likewise.
26666 (ppc604e_cost): Likewise.
26667 (ppc620_cost): Likewise.
26668 (ppc630_cost): Likewise.
26669 (ppccell_cost): Likewise.
26670 (ppc750_cost): Likewise.
26671 (ppc7450_cost): Likewise.
26672 (ppc8540_cost): Likewise.
26673 (ppce300c2c3_cost): Likewise.
26674 (ppce500mc_cost): Likewise.
26675 (ppce500mc64_cost): Likewise.
26676 (ppce5500_cost): Likewise.
26677 (ppce6500_cost): Likewise.
26678 (titan_cost): Likewise.
26679 (power4_cost): Likewise.
26680 (power6_cost): Likewise.
26681 (power7_cost): Likewise.
26682 (power8_cost): Likewise.
26683 (ppca2_cost): Likewise.
26684 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
26686 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
26687 instead of XXLOR to copy SFmode to clear out dirty bits created
26688 when SFmode denormals are generated.
26689 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
26690 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
26692 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
26694 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
26695 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
26696 * config/aarch64/aarch64-tune.md: Regenerate.
26698 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
26700 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
26701 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
26702 * config/arm/arm-cores.def (exynos-m1): New core.
26703 * config/arm/arm-tune.md: Regenerate.
26704 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
26705 * config/arm/bpabi.h: Likewise.
26707 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
26709 * ipa-cp (set_single_call_flag): Remove too
26710 restrictive assert.
26712 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
26714 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
26715 GOMP_offload_unregister from the destructor.
26717 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
26719 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
26720 flags for instrumentation thunk.
26721 (chkp_produce_thunks): Likewise.
26723 2015-04-05 Martin Liska <mliska@suse.cz>
26726 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
26727 has computed data structure.
26728 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
26730 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
26732 * invoke.texi (inline-unit-growth): Increase growth to 20%
26733 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
26735 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
26738 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
26740 (lra_rematerialization_iter): New.
26741 * lra.c (lra): Initialize lra_rematerialization_iter.
26742 Stop updating lra_constraint_new_regno_start after switching of
26743 inheritance and rematerialization.
26744 * lra-remat.c (lra_rematerialization_iter): New.
26745 (lra_remat): Add printing pass iteration. Do rematerialization
26746 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
26748 2015-04-04 Richard Biener <rguenther@suse.de>
26750 PR tree-optimization/64909
26751 PR tree-optimization/65660
26752 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
26753 to take a cost vector for scalar iteration cost.
26754 (vect_get_single_scalar_iteration_cost): Likewise.
26755 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
26756 Compute the scalar iteration cost into a cost vector.
26757 (vect_get_known_peeling_cost): Use the scalar cost vector to
26758 account for the cost of the peeled iterations.
26759 (vect_estimate_min_profitable_iters): Likewise.
26760 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
26763 2015-04-04 Alan Modra <amodra@gmail.com>
26767 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
26768 0.0 constant unless TARGET_VSX.
26769 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
26772 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
26775 * ipa-inline-transform.c (inline_call): Skip sanity check to work
26778 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
26781 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
26782 speculative indirect edges to avoid ordering issue.
26784 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
26787 * ipa-inline.c (edge_badness): Add combined size to the denominator.
26789 2015-04-03 Jakub Jelinek <jakub@redhat.com>
26791 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
26792 TYPE_ARTIFICIAL on the .omp_data* types.
26794 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26796 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
26797 instrumentation thunks.
26799 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26801 * config/i386/i386.c (ix86_expand_call): Avoid nested
26802 PARALLEL in returned call value.
26804 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26806 * lto-cgraph.c (input_cgraph_1): Always link instrumented
26807 assembler name with original one.
26809 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
26811 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
26813 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
26815 Revert parts of r216820.
26816 * config/i386/i386.md (movqi_internal): Correct type calculation
26817 for alternatives 3 and 5.
26819 2015-04-02 Jakub Jelinek <jakub@redhat.com>
26821 PR preprocessor/61977
26822 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
26823 predefine __vector/__bool/__pixel macros nor context sensitive
26824 macros for CLK_ASM.
26825 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
26827 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
26829 * config/pa/pa.c (pa_output_move_double): Directly handle register
26830 indexed memory operand. Simplify handling of scaled register indexed
26833 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26836 * config/i386/linux-common.h (MPX_SPEC): New.
26837 (CHKP_SPEC): Add MPX_SPEC.
26838 * doc/invoke.texi (-fcheck-pointer-boudns): Document
26839 possible issues with '-z bndplt' support in linker.
26841 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
26843 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
26844 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
26845 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
26846 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
26847 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
26849 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
26851 * config/i386/sync.md (UNSPEC_MOVA): Remove.
26852 (atomic_load<mode>): Change operand 0 predicate to
26853 nonimmediate_operand and fix up the destination when needed.
26855 (atomic_loaddi_fpu): Use UNSPEC_LDA.
26856 (atomic_store<mode>): Change operand 1 predicate to
26857 nonimmendate_operand and move the source to register when needed.
26859 (atomic_store<mode>_1): Use UNSPEC_STA.
26860 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
26861 Fix moves from memory operand. Use UNSPEC_STA.
26863 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
26865 * expmed.c (strict_volatile_bitfield_p): Check that the access will
26866 not cross a MODESIZE boundary.
26867 (store_bit_field, extract_bit_field): Added assertions in the
26868 strict volatile bitfields code path.
26870 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
26873 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
26874 Increase args array size by one to avoid buffer overflow.
26876 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
26878 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
26880 * ipa-inline.c (edge_badness): Add wrapper penalty.
26881 (sum_callers): Move up.
26882 (inline_small_functions): Set single_caller.
26883 * ipa-inline.h (inline_summary): Add single_caller.
26884 * ipa-split.c (split_function): Set split_part.
26885 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
26886 * cgraph.h (cgraph_node): Add split_part.
26888 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
26891 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
26892 Do not split operands 0 and operands 2 to halfmode.
26893 (atomic_compare_and_swap<mode>): Update for
26894 atomic_compare_and_swap<dwi>_doubleword changes.
26896 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
26898 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
26899 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
26900 no caching is done.
26902 2015-03-31 Martin Liska <mliska@suse.cz>
26905 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
26906 has already filled up function summary.
26907 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
26909 2015-03-31 Richard Biener <rguenther@suse.de>
26911 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
26914 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
26916 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
26918 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
26919 (s390_asm_output_function_label): Adapt to new signature of
26920 s390_function_num_hotpatch_hw
26921 Optimise the code generating assembler output.
26922 Add comments to assembler file.
26924 2015-03-31 Richard Biener <rguenther@suse.de>
26926 PR middle-end/65626
26927 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
26928 of the noreturn call so it is last and cleanup_control_flow_bb
26929 can do the CFG part.
26931 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
26934 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
26935 same_comdat_group for external symbols.
26936 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
26937 infinite same_comdat_group traversal loop.
26939 2015-03-31 Jakub Jelinek <jakub@redhat.com>
26942 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
26943 automatically to $headers.
26945 2015-03-30 Jakub Jelinek <jakub@redhat.com>
26948 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
26949 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
26951 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
26953 * ipa-prop.c (param_type_may_change_p): Likewise.
26954 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
26955 (remove_unused_scope_block_p): Add in_ctor_dtor_block
26956 argument. Before inlining, preserve
26957 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
26958 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
26960 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
26962 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
26965 * ipa-inline.c (edge_badness): Base denominator on callee's
26968 2015-03-27 Martin Jambor <mjambor@suse.cz>
26971 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
26972 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
26973 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
26974 node_calling_single_call.
26975 * ipa-cp.c (count_callers): New function.
26976 (set_single_call_flag): Likewise.
26977 (initialize_node_lattices): Count callers and set single_flag_call if
26979 (incorporate_penalties): New function.
26980 (good_cloning_opportunity_p): Use it, dump new flags.
26981 (propagate_constants_topo): Set node_within_scc flag if appropriate.
26982 * doc/invoke.texi (ipa-cp-recursion-penalty,
26983 ipa-cp-single-call-pentalty): Document.
26985 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
26988 * symtab.c (symtab_node::get_partitioning_class): Register vars
26990 * varpool.c (symbol_table::output_variables) Do not assemble unefined
26991 decls for non-symbols.
26993 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
26996 * output.h (default_binds_local_p_2): New.
26997 * varasm.c (default_binds_local_p_2): Renamed to ...
26998 (default_binds_local_p_3): This. Don't return true on protected
26999 data symbol if protected data may be external.
27000 (default_binds_local_p): Use default_binds_local_p_3.
27001 (default_binds_local_p_1): Likewise.
27002 (default_binds_local_p_2): New.
27003 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
27004 default_binds_local_p_2 if TARGET_MACHO is undefined.
27006 2015-03-27 Jakub Jelinek <jakub@redhat.com>
27009 * config/i386/i386.c (legitimize_pic_address): If base
27010 is SYMBOL_REF or LABEL_REF using %rip addressing, force
27011 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
27013 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
27016 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
27019 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
27022 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
27023 of optimized out indirect call.
27024 (redirect_to_unreachable): Always build symbol table node for
27025 BUILT_IN_UNREACHABLE
27027 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
27030 * ira-costs.c (record_reg_classes): Process all constraint string
27033 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
27035 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
27039 * config/c6x/constraints.md (S3): New constraint.
27040 * config/c6x/c6x.md (real_jump): Use it.
27042 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27044 PR middle-end/65595
27045 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
27046 do redirection if the call is not optimized out.
27048 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
27051 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
27052 (fchkp-check-incomplete-type): Add LTO.
27053 (fchkp-zero-input-bounds-for-main): Likewise.
27054 (fchkp-first-field-has-own-bounds): Likewise.
27055 (fchkp-narrow-bounds): Likewise.
27056 (fchkp-narrow-to-innermost-array): Likewise.
27057 (fchkp-use-static-bounds): Likewise.
27058 (fchkp-use-static-const-bounds): Likewise.
27059 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
27061 2015-03-27 Marek Polacek <polacek@redhat.com>
27063 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
27065 2015-03-27 Marek Polacek <polacek@redhat.com>
27068 * ubsan.c (ubsan_create_edge): New function.
27069 (instrument_bool_enum_load): Call it.
27070 (instrument_nonnull_arg): Likewise.
27071 (instrument_nonnull_return): Likewise.
27072 (instrument_object_size): Likewise.
27074 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27076 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
27079 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27082 * lto-streamer.h (class lto_location_cache): New.
27083 (struct data_in): Add location_cache.
27084 (lto_input_location): Update prototype.
27085 (stream_input_location_now): New.
27086 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
27087 pointer to location.
27088 (stream_input_location): Update.
27089 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
27090 (warn_odr): Apply location cache before warning.
27091 (lto_input_location): Update prototype.
27092 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
27093 Use stream_input_location_now.
27094 * lto-streamer-in.c (lto_location_cache::current_cache): New static
27096 (lto_location_cache::cmp_loc): New function.
27097 (lto_location_cache::apply_location_cache): New function.
27098 (lto_location_cache::accept_location_cache): New function.
27099 (lto_location_cache::revert_location_cache): New function.
27100 (lto_location_cache::input_location): New function.
27101 (lto_input_location): Do location caching.
27102 (stream_input_location_now): New function.
27103 (input_eh_region, input_struct_function_base): Use
27104 stream_input_location_now.
27105 (lto_data_in_create): use new.
27106 (lto_data_in_delete): Use delete.
27107 * tree-streamer-in.c (unpack_ts_block_value_fields,
27108 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
27109 lto_input_ts_exp_tree_pointers): Update for cached location api.
27111 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27114 * passes.def: Add pass_nothrow.
27115 * ipa-pure-const.c: (pass_data_nothrow): New.
27116 (pass_nothrow): New.
27117 (pass_nothrow::execute): New.
27118 (make_pass_nothrow): New.
27119 * tree-pass.h (make_pass_nothrow): Declare.
27121 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27123 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
27124 edge to change by speculation resolution or redirection.
27125 (edge_set_predicate): Likewise.
27126 (inline_summary_t::duplicate): Likewise.
27127 (remap_edge_summaries): Likewise.
27129 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27131 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
27133 (can_inline_edge_p): Relax option matching for always inline functions.
27135 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
27138 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
27139 Check operand 4 and operand 0 for equality.
27140 (avx512f_vextract<shuffletype>32x4_1_maskm):
27141 Check operand 6 and operand 0 for equality.
27142 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
27144 (vec_extract_hi_<mode>_maskm): Ditto.
27146 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27148 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
27149 dead calls back to live.
27150 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
27152 (cgraph_node::verify_node): ... here; verify only callee edges,
27154 * cif-code.def (CILK_SPAWN): New code.
27156 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27158 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
27159 (edge_set_predicate): Use it to mark unreachable edges.
27160 (inline_summary_t::duplicate): Remove unnecesary code.
27161 (remap_edge_summaries): Likewise.
27162 (dump_inline_summary): Report contains_cilk_spawn.
27163 (compute_inline_parameters): Compute contains_cilk_spawn.
27164 (inline_read_section, inline_write_summary): Stream
27165 contains_cilk_spawn.
27166 * ipa-inline.c (can_inline_edge_p): Do not touch
27167 DECL_STRUCT_FUNCTION that may not be available;
27168 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
27169 remove check for callee_fun->can_throw_non_call_exceptions and
27170 replace it by optimization attribute check; check for flag_exceptions.
27171 * ipa-inline-transform.c (inline_call): Maintain
27172 DECL_FUNCTION_PERSONALITY
27173 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
27175 2015-03-26 Jakub Jelinek <jakub@redhat.com>
27177 PR tree-optimization/65551
27178 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
27179 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
27181 2015-03-26 Richard Biener <rguenther@suse.de>
27183 PR middle-end/65555
27184 * tree-cfg.c (verify_gimple_call): Do not require a call to
27185 have no LHS if it wasn't recognized as control altering yet.
27187 2015-03-26 Jakub Jelinek <jakub@redhat.com>
27189 PR tree-optimization/64715
27190 * passes.def: Add another instance of pass_object_sizes before ccp1.
27191 * tree-object-size.c (pass_object_sizes::execute): In
27192 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
27193 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
27194 __bos result and the computed constant. Remove redundant
27195 checks, obsoleted by gimple_call_builtin_p test.
27197 * var-tracking.c (variable_tracking_main_1): Don't track
27198 variables for targetm.no_register_allocation targets.
27200 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
27202 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
27203 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
27205 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
27208 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
27209 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
27210 0.0 is correctly setup.
27211 (extenddftf2_internal): Likewise.
27213 2015-03-25 Sebastian Pop <s.pop@samsung.com>
27215 PR tree-optimization/65177
27216 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
27218 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
27219 edges not adjacent on the path to the original code.
27221 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
27224 * doc/install.texi (Building a native compiler): Document new
27225 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
27226 configuration assumes that the host supports the linker plugin.
27228 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
27231 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
27232 chain for generated call.
27234 2015-03-25 Richard Biener <rguenther@suse.de>
27236 * passes.c (pass_manager::execute_early_local_passes): Guard
27237 execution of pass_chkp_instrumentation_passes with
27238 flag_check_pointer_bounds.
27239 (pass_chkp_instrumentation_passes::gate): Likewise.
27241 2015-03-25 Martin Liska <mliska@suse.cz>
27243 PR tree-optimization/65538
27244 * symbol-summary.h (function_summary::~function_summary):
27245 Relese memory for allocated summaries.
27246 (function_summary::release): New function.
27248 2015-03-25 Jakub Jelinek <jakub@redhat.com>
27251 * lto-streamer-out.c (DFS::worklist): New struct.
27252 (DFS::worklist_vec): New data member.
27253 (DFS::next_dfs_num): Remove.
27254 (DFS::DFS): Rewritten using worklist instead of recursion,
27255 using most of code from DFS::DFS_write_tree.
27256 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
27257 pass it to DFS_write_tree calls.
27258 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
27259 quick initial checks push it into worklist_vec and return.
27261 2015-03-25 Richard Biener <rguenther@suse.de>
27263 PR middle-end/65519
27264 * genmatch.c (expr::gen_transform): Re-write to avoid
27265 using gimple_build.
27267 2015-03-25 Bin Cheng <bin.cheng@arm.com>
27269 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
27271 2015-03-25 Bin Cheng <bin.cheng@arm.com>
27273 * config/arm/arm.opt (print_tune_info): New option.
27274 * config/arm/arm.c (arm_print_tune_info): New function.
27275 (arm_file_start): Call arm_print_tune_info.
27276 * config/arm/arm-protos.h (struct tune_params): Add comment.
27277 * doc/invoke.texi (@item -mprint-tune-info): New item.
27278 (-mtune): mention it in ARM Option Summary.
27280 2015-03-25 DJ Delorie <dj@redhat.com>
27282 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
27285 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
27286 Martin Liska <mliska@suse.cz>
27288 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
27289 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
27290 (sem_item::add_type): New function.
27291 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
27292 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
27293 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
27294 (sem_function::equals_wpa): Fix typo.
27295 * ipa-icf.h (sem_item::add_type): New function.
27296 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
27299 2015-03-24 Jakub Jelinek <jakub@redhat.com>
27301 PR tree-optimization/65533
27302 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
27303 with swapped operands, call vect_free_slp_tree on
27304 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
27307 2015-03-24 Richard Biener <rguenther@suse.de>
27309 PR middle-end/65517
27310 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
27311 for fixup if necessary.
27313 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
27315 * doc/extend.texi (Function Attributes): Add @cindex entries
27316 for all attributes and regularize their format. Delete text
27317 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
27318 information about "eightbit_data", "tiny_data", and "model"
27319 variable attributes to the Variable Attributes section. Fix
27320 some obvious typos and copy-editing issues.
27321 (Variable Attributes, Type Attributes): Likewise add/fix
27322 @cindex entries for all attributes.
27324 2015-03-23 Jakub Jelinek <jakub@redhat.com>
27327 * tree-chkp.c (chkp_build_returned_bound): Ignore
27328 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
27330 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
27333 * config/sh/predicates.md (simple_mem_operand,
27334 displacement_mem_operand): Add test for reg.
27335 (short_displacement_mem_operand): Test for displacement_mem_operand
27336 before invoking sh_disp_addr_displacement.
27337 * config/sh/constraints.md (Sdd, Sra): Simplify.
27338 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
27339 Remove redundant displacement_mem_operand tests.
27341 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
27344 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
27345 the same -mmcu=MCU more than once.
27347 2015-03-23 Jakub Jelinek <jakub@redhat.com>
27350 * ipa-devirt.c: Remove duplicate demangle.h include.
27353 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
27355 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
27356 REG_POINTER on *destptr after adjusting it for prologue size.
27359 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
27360 ultimate_alias_target ()->order ints instead of
27361 ultimate_alias_target () pointers.
27363 2015-03-23 Richard Biener <rguenther@suse.de>
27365 PR tree-optimization/65518
27366 * tree-vect-stmts.c (vectorizable_load): Reject single-element
27367 interleaving cases we generate absymal code for.
27369 2015-03-23 Richard Biener <rguenther@suse.de>
27371 PR tree-optimization/65494
27372 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
27374 (vect_analyze_slp_instance): But do that here, always and once.
27376 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27378 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
27379 adding T or multiplying by T+1 and subracting T.
27381 2015-03-22 Jeff Law <law@redhat.com>
27383 PR rtl-optimization/64317
27384 * Makefile.in (OBJS): Add gcse-common.c
27385 * gcse.c: Include gcse-common.h
27386 (struct modify_pair_s): Move structure definition to gcse-common.h
27387 (compute_transp): Move function to gcse-common.c.
27388 (canon_list_insert): Similarly.
27389 (record_last_mem_set_info): Break out some code and put it into
27390 gcse-common.c. Call into the new common code.
27391 (compute_local_properties): Pass additional arguments to compute_transp.
27392 * postreload-gcse.c: Include gcse-common.h and df.h
27393 (modify_mem_list_set, blocks_with_calls): New variables.
27394 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
27395 (get_bb_avail_insn): Pass in the expression index too.
27396 (alloc_mem): Allocate memory for the new bitmaps and lists.
27397 (free_mem): Free memory for the new bitmaps and lists.
27398 (insert_expr_in_table): Record a bitmap index for each entry we
27400 (record_last_mem_set_info): Call into common code in gcse-common.c.
27401 (get_bb_avail_insn): If no available insn was found in the requested
27402 BB. If BB has a single predecessor, see if the expression is
27403 transparent in BB and available in that single predecessor.
27404 (compute_expr_transp): New wrapper for compute_transp.
27405 (eliminate_partially_redundant_load): Pass expression's bitmap_index
27406 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
27407 (gcse_after_reload_main): If there are elements in the hash table,
27408 then compute transparency for all the elements in the hash table.
27409 * gcse-common.h: New file.
27410 * gcse-common.c: New file.
27412 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
27414 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
27416 (System Headers): Likewise.
27418 (Traditional macros): Likewise.
27419 (Invocation): Likewise.
27420 (Option Index): Likewise.
27421 * doc/cppopts.texi (-M): Likewise.
27422 (-finput-charset): Likewise.
27423 (--help): Likewise.
27424 * doc.invoke.texi (AVR Options): Likewise.
27425 (V850 Options): Likewise.
27427 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
27430 * ipa-devirt.c: Include demangle.h
27431 (odr_type_d): Add field rtti_broken.
27432 (odr_subtypes_equivalent_p): Do not require name to match.
27433 (compare_virtual_tables): Fix typo; if type already has ODR violation,
27434 bypass the tests; be ready for function referneces in vtables that are
27435 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
27436 (warn_odr): Give up for nameless types.
27437 (warn_types_mismatch): Report mismatch in mangled names;
27438 report mismatch in anonymous namespaces; look into component types to
27439 give useful error; report when mismatch is dragged in from other ODR
27441 (odr_types_equivalent_p): Match types for being polymorphic; avoid
27442 duplicated diagnostics.
27443 (add_type_duplicate): Reorder checks so more informative ones come
27444 first; fix typo; do not output "the extra base is defined here" when
27446 (BINFO_N_BASE_BINFOS): Relax sanity check.
27448 2015-03-22 Martin Liska <mliska@suse.cz>
27449 Jakub Jelinek <jakub@redhat.com>
27451 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
27452 masks that can potentially include a builtin.
27453 (ix86_add_new_builtins): Introduce fast filter for isa values
27454 that cannot trigger builtin inclusion.
27456 2015-03-22 Martin Liska <mliska@suse.cz>
27458 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
27459 (sem_item::update_hash_by_local_refs): Likewise.
27460 (sem_variable::get_hash): Empty line is fixed.
27461 (sem_item_optimizer::execute): Include adding of hash references.
27462 (sem_item_optimizer::update_hash_by_addr_refs): New function.
27463 (sem_item_optimizer::build_hash_based_classes): Use local hash.
27464 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
27465 (sem_item::update_hash_by_local_refs): Likewise.
27467 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
27470 * ipa-comdats.c (enqueue_references): Walk through thunks.
27471 (ipa_comdats): Likewise.
27472 (set_comdat_group_1): New function.
27474 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
27477 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
27480 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
27481 Gerald Pfeifer <gerald@pfeifer.com>
27483 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
27485 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
27486 Sandra Loosemore <sandra@codesourcery.com>
27488 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
27489 function parameter declaration.
27490 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
27491 Update arguments to nios2_adjust_call_address().
27492 (sibcall_internal): Rename from *sibcall.
27493 (sibcall_value_internal): Rename from *sibcall_value.
27494 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
27495 (nios2_large_got_address): Add target temp reg parameter.
27496 (nios2_got_address): Adjust call to nios2_large_got_address, add
27497 force_reg around it.
27498 (nios2_load_pic_address): Add target temp reg parameter, replace call
27499 to nios2_got_address with corresponding code.
27500 (nios2_legitimize_constant_address): Update call to
27501 nios2_load_pic_address.
27502 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
27503 to use temp reg for PIC loading purposes.
27504 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
27505 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
27506 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
27508 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
27510 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
27511 usage of "the @option{...}".
27512 (-Wopenmp-simd): Likewise.
27513 (-fsanitize-recover): Likewise.
27514 (-fsanitize-undefined-trap-on-error): Likewise.
27516 (tracer-dynamic-coverage-feedback): Likewise.
27517 (reorder-block-duplicate-feedback): Likewise.
27518 (loop-unroll-jam-size): Likewise.
27521 (-mabs=legacy): Likewise.
27522 (-mupper-regs-df): Likewise.
27523 (-mupper-regs-sf): Likewise.
27524 (-mpointers-to-nested-functions): Likewise.
27526 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
27528 * doc/extend.texi (Cilk Plus Builtins): Add markup.
27530 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
27532 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
27533 additional index entries and cross-references.
27534 (-fchkp-check-incomplete-type): Likewise.
27535 (-fchkp-first-field-has-own-bounds): Likewise.
27536 (-fchkp-narrow-to-innermost-array): Likewise.
27537 (-fchkp-use-fast-string-functions): Likewise.
27538 (-fchkp-use-nochk-string-functions): Likewise.
27539 (-fchkp-use-static-const-bounds): Likewise.
27540 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
27541 (-fchkp-instrument-marked-only): Likewise.
27542 (-fchkp-use-wrappers): Likewise.
27543 (-static-libmpx): Likewise.
27544 (-static-libmpxwrappers): Likewise.
27545 * doc/extend.texi (bnd_legacy): Likewise.
27546 (bnd_instrument): Likewise.
27547 (bnd_variable_size): Likewise.
27548 (Pointer Bounds Checker builtins): Likewise.
27550 2015-03-21 Tom de Vries <tom@codesourcery.com>
27552 PR tree-optimization/65458
27553 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
27554 * cgraph.h (cgraph_node): Add parallelized_function field.
27555 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
27556 (input_overwrite_node): Read parallelized_function field.
27557 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
27558 parallelized_function on cgraph_node for child_fn.
27559 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
27560 Remove include of gt-tree-parloops.h.
27561 (parallelized_functions): Remove static variable.
27562 (parallelized_function_p): Rewrite using parallelized_function field of
27564 (create_loop_fn): Remove adding to parallelized_functions.
27565 * Makefile.in (GTFILES): Remove tree-parloops.c
27567 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
27569 PR rtl-optimization/64366
27570 * lra.c (lra_update_insn_regno_info): Consider regs in
27571 CALL_INSN_FUNCTION_USAGE memory.
27573 2015-03-20 Richard Biener <rguenther@suse.de>
27575 PR middle-end/64715
27576 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
27577 for type comparison and gcc_checking_assert.
27578 (chrec_fold_plus_poly_poly): Likewise.
27579 (chrec_fold_multiply_poly_poly): Likewise.
27580 (chrec_convert_1): Likewise.
27581 * gimplify.c (gimplify_expr): Remove premature folding of
27582 &X + CST to &MEM[&X, CST].
27584 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
27586 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
27588 (ipa_inline): Recompute inline_failed codes.
27589 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
27590 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
27593 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
27595 PR rtl-optimization/60851
27596 * recog.c (constrain_operands): Accept a pseudo register before reload
27597 for LRA enabled targets.
27599 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
27602 * config/rs6000/predicates.md (easy_fp_constant): Remove special
27603 -ffast-math handling that kept non-0 constants live in the RTL
27604 until reload. Remove logic testing the number of instructions it
27605 took to create a constant in a GPR that was never used, due to a
27606 test for soft-float earlier.
27607 (memory_fp_constant): Delete, no longer used.
27609 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
27610 alternatives for loading non-0 constants into GPRs for hard
27611 floating point that is no longer needed due to changes in
27612 easy_fp_constant. Add support for loading 0.0 into GPRs.
27613 (mov<mode>_hardfloat32): Likewise.
27614 (mov<mode>_hardfloat64): Likewise.
27615 (mov<mode>_64bit_dm): Likewise.
27616 (movtd_64bit_nodm): Likewise.
27617 (pre-reload move FP constant define_split): Delete define_split,
27618 since it is no longer used.
27619 (extenddftf2_internal): Remove GHF constraints that are not valid
27622 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
27624 PR rtl-optimization/63491
27625 * lra-constraints.c (check_and_process_move): Use src instead of
27626 sreg. Remove some dead code.
27628 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
27631 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
27632 (sem_variable::merge): Likewise.
27634 2015-03-19 Martin Liska <mliska@suse.cz>
27637 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
27638 all fields of cgraph_thunk_info.
27640 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
27642 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
27643 clone instrumented thunks.
27645 2015-03-19 Richard Biener <rguenther@suse.de>
27648 2015-03-10 Richard Biener <rguenther@suse.de>
27650 PR middle-end/63155
27651 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
27652 * tree-ssa-coalesce.c: Include timevar.h.
27653 (attempt_coalesce): Handle graph being NULL.
27654 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
27655 Split out abnormal coalescing to ...
27656 (perform_abnormal_coalescing): ... this function.
27657 (coalesce_ssa_name): Perform abnormal coalescing without computing
27659 (verify_ssa_coalescing_worker): New function.
27660 (verify_ssa_coalescing): Likewise.
27662 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
27663 Jakub Jelinek <jakub@redhat.com>
27666 * tsan.c (instrument_gimple): Clear tail call flag on
27669 2015-03-19 Jakub Jelinek <jakub@redhat.com>
27672 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
27673 call in the return bb.
27674 (find_split_points): Add RETURN_BB argument, don't call
27676 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
27677 if true append TSAN_FUNC_EXIT internal call after the call to
27678 the split off function.
27679 (execute_split_functions): Call find_return_bb here.
27680 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
27681 Adjust find_split_points and split_function calls.
27683 2015-03-18 DJ Delorie <dj@redhat.com>
27685 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
27686 (iorqi3_virt): Likewise.
27688 2015-03-18 Tom de Vries <tom@codesourcery.com>
27690 * tree-parloops.c (parallelize_loops): Make static.
27691 * tree-parloops.h (parallelize_loops): Remove extern declaration.
27693 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
27695 PR middle-end/64491
27697 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
27699 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
27700 condition would be removed due to undefined behaviour.
27702 2015-03-18 Martin Liska <mliska@suse.cz>
27705 * cgraph.c (cgraph_node::get_create): Remove unnecessary
27706 xstrdup_for_dump wrapper.
27707 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
27709 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
27710 with xstrdup_for_dump.
27711 (sem_variable::equals): Likewise.
27712 (sem_item_optimizer::read_section): Use symtab_node::name instead of
27714 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
27715 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
27716 symtab_node::asm_name with xstrdup_for_dump.
27717 (congruence_class::dump): Use symtab_node::name instead of
27719 * ipa-icf.h (symtab_node::name): Remove.
27720 (symtab_node::asm_name): Likewise.
27722 2015-03-18 Jakub Jelinek <jakub@redhat.com>
27724 PR tree-optimization/65450
27725 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
27727 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
27728 it instead of duplicate_ssa_name_ptr_info.
27731 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
27733 2015-03-18 Richard Biener <rguenther@suse.de>
27735 * tree-data-ref.h (struct access_matrix): Remove.
27736 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
27737 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
27738 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
27739 (am_vector_index_for_loop): Likewise.
27740 (struct data_reference): Remove access_matrix member.
27741 (DR_ACCESS_MATRIX): Remove.
27742 (lambda_vector_new): Add comment.
27743 (lambda_matrix_new): Use XOBNEWVEC.
27745 2015-03-18 Richard Biener <rguenther@suse.de>
27747 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
27748 (pass_ch::execute): Cleanup the CFG only if we did sth.
27749 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
27751 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27753 * expmed.c (synth_mult): Use std::swap instead of manually
27754 swapping algorithms.
27756 2015-03-18 Jakub Jelinek <jakub@redhat.com>
27759 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
27761 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
27764 * config/avr/avr.opt (-nodevicelib): New option.
27765 * doc/invoke.texi (AVR Options): Document it.
27766 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
27767 libgcc.a, libc.a, libm.a.
27768 * config/avr/specs.h: Same.
27769 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
27770 which don't (directly) depend on the device. Print more help.
27771 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
27772 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
27773 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
27775 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
27776 for specs file name.
27777 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
27778 * config/avr/avr-mcus.def: Adjust initializers and comments.
27780 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
27782 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
27783 DECL_ONE_ONLY to check if decl is one only.
27784 * ipa-split.c (consider_split): Limit splitt of one only functions.
27786 2015-03-16 Jakub Jelinek <jakub@redhat.com>
27788 PR tree-optimization/65427
27789 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
27791 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
27793 2015-03-16 Marek Polacek <polacek@redhat.com>
27795 * cgraph.h (add_new_static_var): Remove declaration.
27796 * varpool.c (add_new_static_var): Remove function.
27798 2015-03-16 Jakub Jelinek <jakub@redhat.com>
27800 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
27801 instead of vec<tree> * with vec_alloc and release for args.
27804 PR middle-end/65431
27805 * omp-low.c (delete_omp_context): Only splay_tree_delete
27806 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
27807 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
27809 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
27812 * cfgexpand.c (align_base): New function.
27813 (alloc_stack_frame_space): Call it.
27814 (expand_stack_vars): Align prev_frame to be sure
27815 data->asan_vec elements aligned properly.
27817 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
27819 PR middle-end/65409
27820 * expr.c (store_field): Do not do a direct block copy if the source is
27821 a PARALLEL with BLKmode.
27823 2015-03-16 Tom de Vries <tom@codesourcery.com>
27825 PR middle-end/65414
27827 2015-03-12 Tom de Vries <tom@codesourcery.com>
27829 PR rtl-optimization/64895
27830 * lra-lives.c (check_pseudos_live_through_calls): Use
27831 actual_call_used_reg_set instead of call_used_reg_set, if available.
27833 2015-03-16 Alan Modra <amodra@gmail.com>
27836 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
27837 Modify Z->r bswapdi splitter to use dest in place of scratch.
27838 In r->Z and Z->r bswapdi splitter rename word_high, word_low
27839 to word1, word2 and rearrange logic to suit.
27840 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
27841 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
27842 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
27843 Add one '?' on r->r. Modify Z->r splitter to avoid need for
27846 2015-03-14 Jakub Jelinek <jakub@redhat.com>
27848 PR tree-optimization/65369
27849 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
27850 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
27851 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
27853 PR tree-optimization/65418
27854 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
27855 are casts in the first PLUS_EXPR operand, ensure tbias and
27856 *totallowp are in the inner type.
27858 PR rtl-optimization/65401
27859 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
27860 argument. If true, adjust_address_nv of x with big-endian
27861 correction for the mode widening to GET_MODE (y).
27862 (make_field_assignment): Don't do MEM mode widening here.
27863 Use MEM_P instead of GET_CODE == MEM.
27865 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
27867 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
27868 the external decls.
27870 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27873 * config/arm/arm.c (arm_gen_constant, AND case): Use
27874 ARM_SIGN_EXTEND when constructing AND mask.
27876 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
27878 * graph.c (print_graph_cfg): Make function names visible and append
27879 parenthesis to it. Also make groups of basic blocks belonging to the
27880 same function visible.
27882 2015-03-12 Richard Biener <rguenther@suse.de>
27884 PR middle-end/44563
27885 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
27886 to avoid quadratic behavior with inline expansion splitting blocks.
27887 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
27888 with the successor if the predecessor will be merged with it.
27889 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
27890 entry block with its successor.
27892 2015-03-13 Richard Biener <rguenther@suse.de>
27894 PR middle-end/44563
27895 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
27896 (cleanup_tree_cfg_1): Do not call it.
27897 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
27898 (fixup_noreturn_call): Mark the stmt as control altering.
27899 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
27901 (pass_data_fixup_cfg): Produce a dump file.
27902 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
27903 (need_noreturn_fixup): New global.
27904 (pass_dominator::execute): Fixup queued noreturn calls.
27905 (optimize_stmt): Queue calls that became noreturn for fixup.
27906 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
27907 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
27908 (el_to_fixup): New global.
27909 (eliminate_dom_walker::before_dom_childre): Queue calls that
27910 became noreturn for fixup.
27911 (eliminate): Fixup queued noreturn calls.
27912 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
27913 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
27914 (substitute_and_fold_dom_walker::before_dom_children): Queue
27915 alls that became noreturn for fixup.
27916 (substitute_and_fold): Fixup queued noreturn calls.
27918 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
27920 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
27921 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
27922 are building; for methods check ODR type of class they belong to if
27923 they may lead to a polymorphic call.
27924 (sem_function::compare_polymorphic_p): Be bit smarter about testing
27925 when function may lead to a polymorphic call.
27926 (sem_function::compare_type_list): Remove.
27927 (sem_variable::equals): Update use of compatible_types_p.
27928 (sem_variable::parse_tree_refs): Remove.
27929 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
27931 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
27933 (func_checker::compatible_polymorphic_types_p): Break out from ...
27934 (unc_checker::compatible_types_p): ... here.
27935 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
27937 (unc_checker::compatible_types_p): Update.
27938 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
27941 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27943 PR rtl-optimization/65235
27944 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
27945 When first element of vec_concat is const_int, calculate its size
27946 using second element.
27948 2015-03-12 Richard Biener <rguenther@suse.de>
27950 PR middle-end/65270
27951 * fold-const.c (operand_equal_p): Fix ordering of resetting
27952 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
27954 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
27956 * config/s390/s390.c (s390_reorg): Move code to output nops after label
27958 (s390_asm_output_function_label): Likewise.
27959 * config/s390/s390.c (s390_asm_output_function_label):
27960 Fix function label alignment with -mhtopatch.
27961 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
27962 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
27963 ("nop_2_byte"): New define_insn.
27964 ("nop_4_byte"): Likewise.
27965 ("nop_6_byte"): Likewise.
27966 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
27967 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
27969 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
27972 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
27975 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
27978 * toplev.c (process_options): Restrict Pointer Bounds Checker
27979 usage with Address Sanitizer.
27981 2015-03-12 Richard Biener <rguenther@suse.de>
27983 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
27985 * omp-low.c (expand_omp_taskreg): Split block before removing
27987 (expand_omp_target): Likewise.
27988 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
27989 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
27990 stmt to split_block.
27992 2015-03-12 Tom de Vries <tom@codesourcery.com>
27994 PR rtl-optimization/64895
27995 * lra-lives.c (check_pseudos_live_through_calls): Use
27996 actual_call_used_reg_set instead of call_used_reg_set, if available.
27998 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
28000 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
28001 (cgraph_node::remove): Likewise.
28002 (cgraph_node::get_untransformed_body): Likewise.
28003 * varpool.c (varpool_node::remove): Likewise.
28004 (varpool_node::get_constructor): Add sanity check.
28006 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
28008 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
28010 (-fabi-compat-version): Likewise.
28011 (-ffriend-injection): Likewise.
28012 (-Wdeclaration-after-statement): Likewise.
28013 (-fomit-frame-pointer): Likewise.
28014 (-ftree-coalesce-inlined-vars): Likewise.
28015 (-fvisibility=): Likewise.
28016 * doc/extend.texi (Typeof): Likewise.
28017 (Zero Length): Likewise.
28018 (Escaped Newlines): Likewise.
28019 (Compound Literals): Likewise.
28020 (Function Attributes): Likewise.
28021 (Label Attributes): Likewise.
28022 (Type Attributes): Likewise.
28023 (Function Names): Likewise.
28024 (Other Builtins): Likewise.
28025 (Function Specific Option Pragmas): Likewise.
28026 (C++ Interface): Likewise.
28028 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
28030 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
28032 2015-03-11 Marek Polacek <polacek@redhat.com>
28034 PR tree-optimization/65388
28035 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
28037 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
28040 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
28041 * configure: Regenerate.
28042 * config.in: Regenerate.
28043 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
28044 [-mn-flash]: Document it.
28045 [__AVR_ARCH__]: Document avrtiny.
28047 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
28048 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
28049 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
28051 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28053 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
28055 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28058 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
28059 allow reloads of PLUS in floating point/VSX registers.
28061 2015-03-11 Junmo Park <junmoz.park@samsung.com>
28063 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
28064 crypto_sha256_fast.
28065 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
28067 2015-03-11 Richard Biener <rguenther@suse.de>
28069 PR tree-optimization/65310
28070 * tree-sra.c (build_ref_for_offset): Also preserve larger
28073 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
28075 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
28077 2015-03-10 Jakub Jelinek <jakub@redhat.com>
28080 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
28082 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
28084 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
28086 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
28087 (sem_function::equals_wpa): ... here.
28089 2015-03-10 Marek Polacek <polacek@redhat.com>
28090 Jakub Jelinek <jakub@redhat.com>
28093 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
28094 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
28097 2015-03-10 Jakub Jelinek <jakub@redhat.com>
28100 * config/rs6000/t-linux: For powerpc64* target set
28101 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
28103 2015-03-10 Richard Biener <rguenther@suse.de>
28105 PR middle-end/44563
28106 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
28107 for redirect_all_calls.
28109 2015-03-10 Marek Polacek <polacek@redhat.com>
28111 * gdbinit.in (pcfun): Define and document.
28113 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
28115 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
28116 of libgomp-plugin.h.
28117 (find_target_compiler): Support a case when the path to gcc is
28118 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
28119 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
28120 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
28122 (main): Use GCC_INSTALL_NAME as target_driver_name.
28123 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
28125 (mkoffload.o): Remove obsolete include path and defines.
28126 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
28128 2015-03-10 Richard Biener <rguenther@suse.de>
28130 PR middle-end/63155
28131 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
28132 * tree-ssa-coalesce.c: Include timevar.h.
28133 (attempt_coalesce): Handle graph being NULL.
28134 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
28135 Split out abnormal coalescing to ...
28136 (perform_abnormal_coalescing): ... this function.
28137 (coalesce_ssa_name): Perform abnormal coalescing without computing
28139 (verify_ssa_coalescing_worker): New function.
28140 (verify_ssa_coalescing): Likewise.
28142 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
28145 * config.gcc (extra_options) [avr]: Remove.
28146 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
28147 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
28148 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
28150 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
28151 (-mmcu=): Add Var and MissingArgError properties.
28153 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
28154 * config/avr/t-multilib: Regenerate.
28155 * config/avr/specs.h: New file.
28156 * config/avr/driver-avr.c: New file.
28157 * config/avr/genopt.sh: Remove file.
28158 * config/avr/avr-tables.opt: Remove file.
28159 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
28160 * config/avr/avr-c.c: Same.
28161 * avr-arch.h: Same.
28162 (avr_current_device): Remove proto.
28163 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
28164 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
28165 (EXTRA_SPEC_FUNCTIONS): Define.
28166 (avr_devicespecs_file): New specs function proto.
28167 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
28168 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
28169 (avr_current_device): Remove definition and usage.
28170 (avr_set_core_architecture): New static function.
28171 (avr_option_override): Use it.
28172 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
28173 (mcu_name): New static array.
28174 (comparator, avr_archs_str, avr_mcus_str): New static functions.
28175 (avr_inform_devices, avr_inform_core_architectures): New functions.
28176 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
28177 (avrlibc.h) [WITH_AVRLIBC]: Include.
28178 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
28179 (print_mcu): Rewrite from scratch.
28180 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
28181 Forward to avr-specific specs defined in device-specs file.
28182 * config/avr/t-avr (driver-avr.o): New rule.
28183 (avr-devices.o): Depend on avr-arch.h.
28184 (avr-mcus): No more depend on avr-tables.opt.
28185 (avr-tables.opt): Remove rule.
28186 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
28188 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
28190 * c-family/c.opt (fchkp-use-wrappers): New.
28191 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
28192 (chkp_wrap_function): New.
28193 (chkp_build_instrumented_fndecl): Support wrapped
28195 * doc/invoke.texi (-fcheck-pointer-bounds): New.
28196 (-fchkp-check-incomplete-type): New.
28197 (-fchkp-first-field-has-own-bounds): New.
28198 (-fchkp-narrow-bounds): New.
28199 (-fchkp-narrow-to-innermost-array): New.
28200 (-fchkp-optimize): New.
28201 (-fchkp-use-fast-string-functions): New.
28202 (-fchkp-use-nochk-string-functions): New.
28203 (-fchkp-use-static-bounds): New.
28204 (-fchkp-use-static-const-bounds): New.
28205 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
28206 (-fchkp-check-read): New.
28207 (-fchkp-check-write): New.
28208 (-fchkp-store-bounds): New.
28209 (-fchkp-instrument-calls): New.
28210 (-fchkp-instrument-marked-only): New.
28211 (-fchkp-use-wrappers): New.
28212 (-static-libmpx): New.
28213 (-static-libmpxwrappers): New.
28215 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
28217 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
28218 (CHKP_SPEC): Add wrappers library.
28219 * c-family/c.opt (static-libmpxwrappers): New.
28221 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
28223 * config/i386/linux-common.h (LIBMPX_LIBS): New.
28224 (LIBMPX_SPEC): New.
28226 * gcc.c (CHKP_SPEC): New.
28227 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
28228 * c-family/c.opt (static-libmpx): New.
28230 2015-03-10 Richard Biener <rguenther@suse.de>
28232 PR middle-end/44563
28233 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
28235 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
28236 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
28237 (cgraph_add_edge_to_call_site_hash): Likewise.
28238 (cgraph_node::get_edge): Likewise.
28239 (cgraph_edge::set_call_stmt): Likewise.
28240 (cgraph_edge::remove_caller): Likewise.
28242 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
28244 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
28245 (callee_saved_gpr_regs_size): ... this.
28246 (callee_saved_regs_first_regno): Rename to ...
28247 (callee_saved_first_gpr_regno): ... this.
28248 (callee_saved_regs_last_regno) Rename to ...
28249 (callee_saved_last_gpr_regno): ... this.
28250 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
28252 (nds32_initial_elimination_offset): Likewise.
28253 (nds32_expand_prologue): Likewise.
28254 (nds32_expand_epilogue): Likewise.
28255 (nds32_expand_prologue_v3push): Likewise.
28256 (nds32_expand_epilogue_v3pop): Likewise.
28257 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
28258 Adjust renamed variables.
28259 (nds32_output_stack_pop): Likewise.
28261 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
28263 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
28266 2015-03-10 Jakub Jelinek <jakub@redhat.com>
28268 PR rtl-optimization/65321
28269 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
28271 * var-tracking.c (use_narrower_mode): Likewise.
28273 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
28275 PR tree-optimization/65355
28276 * varasm.c (notice_global_symbol): Do not produce RTL.
28277 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
28279 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
28280 check for section anchors.
28282 2015-03-10 Alan Modra <amodra@gmail.com>
28285 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
28286 to be single-arch by default. Set cpu_is_64bit for powerpc64
28287 given --with-cpu=native.
28288 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
28289 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
28291 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
28292 rs6000_isa_flags rather than TARGET_64BIT.
28294 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
28295 Kaz Kojima <kkojima@gcc.gnu.org>
28297 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
28299 2015-03-09 Jakub Jelinek <jakub@redhat.com>
28302 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
28303 on a TREE_BINFO, instead use BINFO_TYPE.
28305 2015-03-09 Richard Biener <rguenther@suse.de>
28307 PR middle-end/65270
28308 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
28309 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
28310 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
28311 of that. When comparing dereferences compare alignment.
28312 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
28314 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
28316 * ipa-inline-analysis.c (check_callers): Check
28317 node->can_remove_if_no_direct_calls_and_refs_p.
28318 (growth_likely_positive): Reorganize to call
28319 can_remove_if_no_direct_calls_p later.
28320 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
28321 will_be_removed_from_program_if_no_direct_calls_p): Add
28322 will_inline parameter.
28323 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
28324 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
28325 Handle inliner case correctly.
28327 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
28329 PR tree-optimization/63743
28330 * cfgexpand.c (reorder_operands): Also reorder if only second operand
28331 had its definition forwarded by TER.
28333 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
28336 * ipa-utils.h (types_odr_comparable): Add strict argument.
28337 * ipa-devirt.c: Fix whitespace;
28338 (odr_hasher): Remove.
28339 (odr_name_hasher, odr_vtable_hasher): New hashers.
28340 (can_be_name_hashed_p): New predicate.
28341 (hash_type_name): remove.
28342 (hash_odr_name): New.
28343 (odr_name_hasher::hash): new.
28344 (can_be_vtable_hashed_p): New.
28345 (hash_odr_vtable): New.
28346 (odr_vtable_hasher::hash): New.
28347 (types_same_for_odr): Add strict parameter.
28348 (types_odr_comparable): Likewise.
28349 (odr_name_hasher::equal): New.
28350 (odr_vtable_hasher::equal): New.
28351 (odr_name_hasher::remove): New.
28352 (odr_hash_type): Change to hash_table<odr_name_hasher>.
28353 (odr_vtable_hash_type): New.
28354 (odr_vtable_hash): New.
28355 (odr_subtypes_equivalent_p): Do strict comparsion.
28356 (add_type_duplicate): Merge type names; cleanup; avoid type
28358 (register_odr_type): Initialize vtable hash.
28359 (build_type_inheritance_graph): Likewise
28360 (get_odr_type): Reorg to use two hashes.
28361 (dump_possible_polymorphic_call_targets): Move sanity check after debug
28363 (ipa_devirt): Dump type_inheritance_graph.
28364 (types_same_for_odr): Add strict mode.
28366 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
28369 * cgraph.h (symtab_node): Add definition_alignment,
28370 can_increase_alignment_p and increase_alignment.
28371 * symtab.c (symtab_node::can_increase_alignment_p,
28372 increase_alignment_1, symtab_node::increase_alignment,
28373 symtab_node::definition_alignment): New.
28374 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
28375 can_increase_alignment_p.
28376 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
28377 * tree-vect-stmts.c (ensure_base_align): Likewise.
28378 * varasm.c (function_section_1): Use definition_alignment.
28379 (assemble_start_function): Likewise.
28380 (emit_local): likewise.
28381 (build_constant_desc): Likewsie.
28382 (output_constant_def_contents): Likewise.
28383 (place_block_symbol): Likewise.
28384 (output_object_block): Likewise.
28386 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
28389 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
28390 when outputting debug.
28392 2015-03-07 Marek Polacek <polacek@redhat.com>
28393 Martin Uecker <uecker@eecs.berkeley.edu>
28396 * doc/invoke.texi: Update description of -fsanitize=bounds.
28398 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
28400 * tree-ssa-phiopt.c (neg_replacement): Remove.
28401 (tree_ssa_phiopt_worker): Remove negate optimization.
28403 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
28406 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
28408 2015-03-06 Richard Biener <rguenther@suse.de>
28410 PR middle-end/64928
28411 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
28412 and liveout_obstack members.
28413 (calculate_live_on_exit): Remove.
28414 (calculate_live_ranges): Change declaration.
28415 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
28416 (new_tree_live_info): Adjust.
28417 (calculate_live_ranges): Delete livein when not wanted.
28418 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
28419 Deal with partly deleted live info.
28420 (loe_visit_block): Remove temporary bitmap by using
28421 bitmap_ior_and_compl_into.
28422 (live_worklist): Adjust accordingly.
28423 (calculate_live_on_exit): Make static.
28424 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
28425 we do not need livein.
28427 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
28429 * real.c (real_from_string): Fix typo in assertion.
28431 2015-03-06 Alex Velenko <alex.velenko@arm.com>
28433 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
28436 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
28438 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
28440 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
28443 * lra-assigns.c (find_hard_regno_for): Rename to
28444 find_hard_regno_for_1. Add a new parameter.
28445 (find_hard_regno_for): New function using find_hard_regno_for_1.
28447 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
28449 PR rtl-optimization/65067
28450 * expmed.c (store_bit_field, extract_bit_field): Reworked the
28451 strict volatile bitfield handling.
28453 2015-03-05 Martin Liska <mliska@suse.cz>
28456 * ipa-icf.c (sem_variable::equals): Compare variables types.
28458 2015-03-05 Richard Henderson <rth@redhat.com>
28461 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
28462 correctly check weak symbol binding.
28464 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
28466 PR middle-end/65315
28467 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
28470 2015-03-05 Martin Liska <mliska@suse.cz>
28472 * ipa-inline.c (inline_small_functions): Set default value to
28473 prevent warning during bootstrap.
28474 * tree.h: Add pragma guard that ignores false positives during
28477 2015-03-05 Richard Biener <rguenther@suse.de>
28479 PR tree-optimization/65310
28480 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
28481 Properly preserve alignment of the base of the access.
28483 2015-03-05 Richard Biener <rguenther@suse.de>
28486 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
28487 Compare dependence info.
28489 2015-03-05 Richard Biener <rguenther@suse.de>
28491 PR middle-end/65233
28492 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
28494 (walk_ssa_copies): Revert last chage. Instead do not walk
28495 SSA names registered for SSA update.
28497 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
28500 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
28501 vtable references for their containing type.
28502 (sem_function::equals_wpa): Compare TYPE_RESTRICT
28503 and type attributes.
28505 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
28507 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
28508 before negating it.
28509 * stor-layout.c (finalize_record_size): Revert latest change.
28511 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
28513 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
28515 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
28517 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
28518 for correct comdat handling.
28519 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
28521 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
28522 (used_from_object_file_p_worker): Remove.
28523 (cgraph_node::only_called_directly_or_alised): Add
28524 used_from_object_file_p.
28525 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
28526 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
28527 can_remove_if_no_direct_calls_and_refs_p.
28529 2015-03-04 Nick Clifton <nickc@redhat.com>
28531 * config/rl78/rl78.h (enum reg_class): Remove real registers from
28532 General register class.
28533 * config/rl78/rl78-real.md: Replace general register constraints
28534 with real+virtual register constraints.
28536 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28538 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
28539 from checking for -mhtm option.
28541 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
28543 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
28544 (struct ipa_sra_check_caller_data): Add has_thunk field.
28545 (ipa_sra_check_caller): Check for thunk.
28546 (ipa_sra_preliminary_function_checks): Give up on function with
28548 (ipa_early_sra): Use call_for_symbol_and_aliases.
28550 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
28553 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
28554 called for __stack_chk_guard symbol.
28556 2015-03-03 DJ Delorie <dj@redhat.com>
28558 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
28560 (*addhi3_real): Likewise.
28561 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
28562 pattern to match incrementing memory.
28563 * config/rl78/predicates.md (rl78_1_2_operand): New.
28564 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
28565 it's the same and only mem.
28566 (rl78_alloc_physical_registers_op2): If there's effectively only
28567 one MEM, transcode it into HL.
28568 (rl78_far_p): Reject addresses that aren't legitimate.
28570 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
28572 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
28575 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
28577 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
28579 Implement call0 ABI for xtensa
28580 * config/xtensa/constraints.md ("a" constraint): Include stack
28581 pointer in case of call0 ABI.
28582 ("q" constraint): Make empty in case of call0 ABI.
28583 ("D" constraint): Include stack pointer in case of call0 ABI.
28584 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
28585 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
28587 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
28589 (xtensa_regno_to_class): Make it a local variable in the
28590 function xtensa_regno_to_class.
28591 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
28592 macro, function prototype and implementation.
28593 (reg_nonleaf_alloc_order): Make it a local variable in the
28594 function order_regs_for_local_alloc.
28595 (xtensa_conditional_register_usage): New function.
28596 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
28597 (xtensa_valid_move): Allow direct moves to stack pointer
28598 register in call0 ABI.
28599 (xtensa_setup_frame_addresses): Only spill register windows in
28601 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
28602 call0 ABI respectively.
28603 (xtensa_function_arg_1): Only mark a7 register for copying in
28605 (xtensa_call_save_reg): New function.
28606 (compute_frame_size): Add space for callee saved register
28607 storage to the frame size in call0 ABI.
28608 (xtensa_expand_prologue): Generate code to set up stack frame
28609 and save callee-saved registers in call0 ABI.
28610 (xtensa_expand_epilogue): New function.
28611 (xtensa_set_return_address): New function.
28612 (xtensa_return_addr): Calculate return address in call0 ABI.
28613 (xtensa_builtin_saveregs): Only mark a7 register for copying and
28614 emit copying code in windowed ABI.
28615 (order_regs_for_local_alloc): Add preferred register allocation
28616 order for non-leaf function in call0 ABI.
28617 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
28618 (xtensa_asm_trampoline_template): Add trampoline generation for
28620 (xtensa_trampoline_init): Add trampoline initialization for
28622 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
28624 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
28625 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
28626 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
28627 ABI call-used registers.
28628 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
28629 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
28631 (REG_CLASS_CONTENTS): Include all registers into the preferred
28632 reload registers set, adjust the set in the
28633 xtensa_conditional_register_usage.
28634 (xtensa_regno_to_class): Drop variable declaration.
28635 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
28637 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
28639 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
28640 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
28641 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
28642 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
28643 location in call0 ABI.
28644 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
28645 stack adjustment size when handling exception.
28646 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
28647 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
28649 ("return" pattern): Generate ret.n/ret in call0 ABI.
28650 ("epilogue" pattern): Expand epilogue.
28651 ("nonlocal_goto" pattern): Use default in call0 ABI.
28652 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
28653 emit eh_set_a0_* depending on ABI.
28654 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
28655 ("eh_set_a0_call0", "blockage"): New patterns.
28657 2015-03-03 Martin Liska <mliska@suse.cz>
28660 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
28662 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
28665 * config/rs6000/rs6000-tables.opt: Regenerate table.
28667 2015-03-03 Renlin Li <renlin.li@arm.com>
28669 * doc/md.texi (@item ^): Change ? into ^.
28671 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
28673 * doc/tm.texi: Regenerated.
28675 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
28677 * builtins.c (expand_builtin_return_addr): Add
28678 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
28679 surrounding #ifdef.
28680 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
28682 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
28684 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
28686 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
28689 2015-03-03 Martin Jambor <mjambor@suse.cz>
28690 Eric Botcazou <ebotcazou@adacore.com>
28692 * tree-sra.c (ipa_sra_check_caller_data): New type.
28693 (has_caller_p): Removed.
28694 (ipa_sra_check_caller): New function.
28695 (ipa_sra_preliminary_function_checks): Use it.
28697 2015-03-03 Martin Liska <mliska@suse.cz>
28699 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
28700 instead of if branch.
28702 2015-03-03 Martin Liska <mliska@suse.cz>
28705 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
28707 2015-03-23 Jeff Law <law@redhat.com>
28709 PR tree-optimization/65241
28710 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
28711 hash table if INSERT is true.
28713 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
28716 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
28718 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
28721 * config/avr/avr.c (context.h, tree-pass.h): Include them.
28722 (avr_pass_data_recompute_notes): New static variable.
28723 (avr_pass_recompute_notes): New class.
28724 (avr_register_passes): New static function.
28725 (avr_option_override): Call it.
28727 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
28729 Fix various problems with specs file generation.
28732 * config.gcc (extra_gcc_objs) [avr]: Remove.
28733 * config/avr/driver-avr.c: Remove file.
28734 * config/avr/t-avr (driver-avr.o): Remove rule.
28735 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
28736 INCLUDES to build. Depend on TM_H.
28737 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
28738 build warnings. Fix non-matching types and non-existing %-codes.
28740 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
28741 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
28742 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
28743 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
28744 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
28745 (LIBGCC_SPEC): Remove definitions.
28747 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
28749 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
28750 to create a register in testing mode.
28752 2015-03-03 Martin Liska <mliska@suse.cz>
28753 Jan Hubicka <hubicka@ucw.cz>
28756 * cgraph.c (cgraph_node::has_thunk_p): New function.
28757 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
28758 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
28759 (sem_function::merge): Assert is changed.
28761 2015-03-03 Martin Liska <mliska@suse.cz>
28762 Martin Jambor <mjambor@suse.cz>
28765 * ipa-icf.c (sem_item_optimizer::execute): Change function
28766 return value to boolean.
28767 (sem_item_optimizer::merge_classes): Likewise.
28768 (ipa_icf_driver): Return TODO_remove_functions in case there's
28769 a merge operation processed.
28770 * ipa-icf.h: Change function return value to boolean.
28772 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
28775 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
28776 processor type for 64-bit little endian PowerPC.
28778 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
28779 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
28780 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
28781 printing built-in mask so it does not pass NULL pointers.
28783 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
28786 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
28789 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
28790 !ISA_HAS_FP_CONDMOVE.
28792 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
28794 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
28797 2015-03-02 Ulrich Drepper <drepper@gmail.com>
28799 * doc/invoke.texi (Options for Code Generation Conventions):
28800 Fix URL of DSO paper.
28802 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
28805 * ipa-inline.c (check_callers): Looks for recursion.
28806 (inline_to_all_callers): Give up on uninlinable or recursive edges.
28807 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
28808 summary of inline clones.
28809 (do_estimate_growth_1): Fix recursion check.
28811 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
28814 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
28817 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
28818 Aldy Hernandez <aldyh@redhat.com>
28821 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
28822 when checking TYPE_BINFO.
28824 2015-03-02 Richard Biener <rguenther@suse.de>
28827 * ipa-icf-gimple.c: Include builtins.h.
28828 (func_checker::compare_memory_operand): Compare base alignment.
28830 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
28833 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
28834 are never passed by reference.
28836 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
28839 * tree-chkp.c (chkp_check_lower): Don't check against
28840 zero bounds for already instrumented functions.
28841 (chkp_check_upper): Likewise.
28842 (chkp_fini): Clean pass local data to avoid wrong reusage.
28844 2015-02-28 Martin Liska <mliska@suse.cz>
28845 Jan Hubicka <hubicka@ucw.cz>
28847 * ipa-icf.c (sem_variable::equals): Improve debug output;
28848 get variable constructor.
28849 (sem_variable::parse): Do not filter out too early; give up on
28850 volatile and register vars.
28851 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
28853 * ipa-icf.h (sem_variable::init): Do not set ctor.
28854 (sem_variable::ctor): Remove.
28856 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
28858 PR middle-end/65233
28859 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
28861 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28863 * ipa-icf.c: Include stor-layout.h
28864 (sem_function::compare_cgraph_references): Rename to ...
28865 (sem_item::compare_cgraph_references): ... this one.
28866 (sem_variable::equals_wpa): New function
28867 (sem_variable::equals): Do not check stuff already verified by
28869 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
28870 * ipa-icf.h (sem_item): Add compare_cgraph_references.
28871 (sem_function): Remove compare_cgraph_references.
28872 (sem_variable): Turns equals_wpa into non-inline.
28874 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28876 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
28877 (sem_item::add_expr): New function.
28878 (sem_function::hash_stmt): Handle operands of most statements.
28879 (sem_variable::get_hash): Hash the actual constructor.
28880 * ipa-icf.h (sem_item): Add add_expr.
28881 (sem_function): Update prototype of hash_stmt
28883 2015-02-28 Martin Liska <mliska@suse.cz>
28884 Jan Hubicka <hubicka@ucw.cz>
28887 * ipa-icf-gimple.c (func_checker::compare_function_decl):
28889 (func_checker::compare_variable_decl): Skip symtab vars.
28890 (func_checker::compare_cst_or_decl): Update.
28891 * ipa-icf.c (sem_function::parse): Do not consider aliases.
28892 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
28893 use correct symtab predicates.
28894 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
28895 (sem_variable::parse): Update comment.
28896 (sem_item_optimizer::build_graph): Consider ultimate aliases
28899 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28901 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
28904 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28906 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
28907 (sem_variable::merge) Likewise.
28909 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28911 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
28912 target; also match flag_ipa_devirt.
28914 2015-03-01 Martin Liska <mliska@suse.cz>
28915 Jan Hubicka <hubicka@ucw.cz>
28917 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
28918 Validate variable alignment.
28919 * ipa-icf.c (sem_function::equals_private): Be more precise
28920 about non-common function attributes.
28921 (sem_variable::equals): Likewise.
28923 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28926 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
28927 across COMDAT group boundary.
28929 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28932 * ipa-icf.c (clear_decl_rtl): New function.
28933 (sem_function::merge): Clear RTL before forming alias.
28934 (sem_variable::merge): Clear RTL before forming alias.
28936 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28939 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
28941 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
28943 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
28946 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
28948 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
28949 a typo in the description.
28951 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
28954 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
28955 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
28956 * lra-constraints.c: Include "params.h".
28957 (EBB_PROBABILITY_CUTOFF): Use
28958 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
28959 (lra_inheritance): Use '<' instead of '<=' for
28960 EBB_PROBABILITY_CUTOFF.
28961 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
28964 2015-02-27 Martin Liska <mliska@suse.cz>
28966 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
28967 vector length condition.
28969 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
28971 * doc/extend.texi (x86 transactional memory intrinsics):
28972 Reorganize discussion of _xbegin. Clarify that the return
28973 value is a bit mask. Expand example and move to end of section.
28975 2015-02-26 Jakub Jelinek <jakub@redhat.com>
28976 Aldy Hernandez <aldyh@redhat.com>
28978 PR rtl-optimization/65220
28979 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
28981 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
28984 * lra-remat.c (update_scratch_ops): New.
28985 (do_remat): Call it.
28986 * lra.c (lra_register_new_scratch_op): New. Take code from ...
28987 (remove_scratches): ... here.
28988 * lra-int.h (lra_register_new_scratch_op): New prototype.
28990 2015-02-27 Marek Polacek <polacek@redhat.com>
28993 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
28994 -Wformat-signedness anymore.
28996 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28998 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
29000 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
29002 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29004 * config/s390/s390.c (enum s390_builtin):
29005 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
29006 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
29007 (s390_init_builtins): Generate new builtin functions.
29008 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
29009 (s390_sfpc, s390_efpc): New pattern definitions.
29011 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29013 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
29014 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
29015 (s390_builtin_decls): New array.
29016 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
29017 (s390_builtin_decl): New function.
29018 (TARGET_BUILTIN_DECL): Define macro.
29020 2015-02-27 Richard Biener <rguenther@suse.de>
29022 PR middle-end/63175
29023 * builtins.c (get_object_alignment_2): Make sure to re-apply
29024 the ANDed mask after recursing to its operand gets us a new
29025 misalignment bit position.
29027 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
29028 Martin Liska <mliska@suse.cz>
29031 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
29032 Use address_matters_p.
29033 (redirect_all_callers, set_addressable): New functions.
29034 (sem_function::merge): Reorganize and fix merging issues.
29035 (sem_variable::merge): Likewise.
29036 (sem_variable::compare_sections): Remove.
29037 * common.opt (fmerge-all-constants, fmerge-constants): Remove
29039 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
29041 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
29043 (address_matters_1): New function.
29044 (symtab_node::address_matters_p): New function.
29045 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
29046 check for merged flag.
29047 * cgraph.h (address_matters_p): Declare.
29048 (symtab_node::address_taken_from_non_vtable_p): Remove.
29049 (symtab_node::address_can_be_compared_p): New method.
29050 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
29051 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
29053 (comdat_can_be_unshared_p_1) Use address_matters_p.
29054 (update_vtable_references): Fix formating.
29055 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
29056 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
29057 * cgraphclones.c: Preserve merged and icf_merged flags.
29059 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
29061 * doc/extend.texi (Function Attributes): Fix spelling and typos.
29062 (Label Attributes): Likewise.
29063 (Cilk Plus Builtins): Likewise.
29064 (ARC SIMD Built-in Functions): Likewise.
29065 (ARM C Language Extensions (ACLE)): Likewise.
29066 (PowerPC Built-in Functions): Likewise.
29067 (PowerPC Hardware Transactional Memory Built-in Functions):
29070 2015-02-26 Jakub Jelinek <jakub@redhat.com>
29072 PR tree-optimization/65216
29073 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
29074 new stmt and new SSA_NAME for lhs whenever the arguments have
29075 changed and weren't just swapped. Fix comment typo.
29077 PR tree-optimization/65215
29078 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
29079 for PDP endian targets.
29080 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
29081 Fix up formatting issues.
29082 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
29083 size is smaller than the original, adjust MEM_REF offset by the
29084 difference of sizes. Use is_gimple_mem_ref_addr instead of
29085 is_gimple_min_invariant test to avoid adding address temporaries.
29087 2015-02-26 Martin Liska <mliska@suse.cz>
29088 Jan Hubicka <hubicka@ucw.cz>
29091 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
29092 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
29093 (sem_item_optimizer::process_cong_reduction): Include division by
29094 sensitive references.
29095 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
29096 * ipa-ref.c (ipa_ref::address_matters_p): New function.
29097 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
29099 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
29102 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
29104 * config/avr/avr.c: Same.
29105 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
29106 Refuse any constant address not in 0..0xbf.
29107 * config/avr/avr.md (*mov<mode>, *movsf): Remove
29108 tiny_valid_direct_memory_access_range from insn conditions.
29109 (mov<mode>): Don't special-case expansion of avrtiny addresses.
29111 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
29114 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
29115 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
29116 * config/sh/predicates.md (const_logical_operand): New predicate.
29117 * config/sh/sh.md: Add new peephole2 patterns.
29119 2015-02-26 Marek Polacek <polacek@redhat.com>
29122 * ipa-inline.c (early_inliner): Recompute inline parameters.
29124 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29127 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
29128 instructions with TImode operands are included in the analysis.
29130 2015-02-26 Sebastian Pop <s.pop@samsung.com>
29132 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
29133 of an EDGE_FSM_THREAD.
29135 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
29137 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
29139 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
29142 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
29144 2015-02-26 Sebastian Pop <s.pop@samsung.com>
29146 PR tree-optimization/65048
29147 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
29148 (thread_through_all_blocks): Call valid_jump_thread_path.
29149 Remove invalid FSM jump-thread paths.
29151 2015-02-26 Jakub Jelinek <jakub@redhat.com>
29153 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
29154 (ipa_write_optimization_summaries): Likewise.
29155 * tree-streamer.h: Include data-streamer.h.
29156 (streamer_mode_table): Declare extern variable.
29157 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
29158 * lto-streamer-out.c (lto_output_init_mode_table,
29159 lto_write_mode_table): New functions.
29160 (produce_asm_for_decls): Call lto_write_mode_table when streaming
29162 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
29163 (lto_create_simple_input_block): Add mode_table argument to the
29164 lto_input_block constructors.
29165 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
29167 * data-streamer-in.c (string_for_index): Likewise.
29168 * ipa-inline-analysis.c (inline_read_section): Likewise.
29169 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
29170 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
29171 * lto-streamer-in.c (lto_read_body_or_constructor,
29172 lto_input_toplevel_asms): Likewise.
29173 (lto_input_mode_table): New function.
29174 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
29175 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
29176 Use bp_pack_machine_mode.
29177 * real.h (struct real_format): Add name field.
29178 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
29179 (class lto_input_block): Add mode_table member.
29180 (lto_input_block::lto_input_block): Add mode_table_ argument,
29181 initialize mode_table.
29182 (struct lto_file_decl_data): Add mode_table field.
29183 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
29184 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
29185 unpack_ts_decl_common_value_fields,
29186 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
29187 * tree-streamer.c (streamer_mode_table): New variable.
29188 * real.c (ieee_single_format, mips_single_format,
29189 motorola_single_format, spu_single_format, ieee_double_format,
29190 mips_double_format, motorola_double_format,
29191 ieee_extended_motorola_format, ieee_extended_intel_96_format,
29192 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
29193 ibm_extended_format, mips_extended_format, ieee_quad_format,
29194 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
29195 decimal_single_format, decimal_double_format, decimal_quad_format,
29196 ieee_half_format, arm_half_format, real_internal_format): Add name
29198 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
29200 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
29203 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
29204 reordering for selective scheduling.
29206 2015-02-26 Terry Guo <terry.guo@arm.com>
29208 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
29209 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
29210 (arm_arch_no_volatile_ce): Declare new global variable.
29211 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
29212 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
29213 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
29214 (TARGET_NO_VOLATILE_CE): New macro.
29215 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
29216 volatile memory access in IT block
29218 2015-02-25 Kai Tietz <ktietz@redhat.com>
29220 PR tree-optimization/61917
29221 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
29222 that reduc_def_stmt is null.
29224 2015-02-25 Martin Liska <mliska@suse.cz>
29226 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
29227 hard register variables.
29229 2015-02-25 Kai Tietz <ktietz@redhat.com>
29232 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
29233 (symtab::noninterposable_alias): Likewise.
29235 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
29238 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
29240 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
29242 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
29245 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
29246 as split condition; force split via '#' in output pattern.
29248 2015-02-25 Richard Biener <rguenther@suse.de>
29249 Kai Tietz <ktietz@redhat.com>
29251 PR tree-optimization/61917
29252 * tree-vect-loop.c (vectorizable_reduction): Allow
29253 vect_internal_def without reduction to exit graceful.
29255 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
29258 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
29259 only with NONDEBUG_INSN_P.
29261 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
29263 Use variadic macros with avr-log.c.
29265 * config/avr/avr-protos.h (avr_vdump): New prototype.
29266 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
29267 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
29268 * config/avr/avr-log.c: Adjust comments.
29269 (avr_vdump): New function.
29270 (avr_vadump): Pass caller as 2nd argument instead of format string.
29271 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
29272 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
29274 2015-02-25 Jakub Jelinek <jakub@redhat.com>
29277 * target.def (target_option_stream_in): New target hook.
29278 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
29279 targetm.target_option.post_stream_in if non-NULL.
29280 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
29281 * doc/tm.texi: Updated.
29282 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
29284 (TARGET_OPTION_POST_STREAM_IN): Redefine.
29286 2015-02-24 Jeff Law <law@redhat.com>
29289 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
29290 of operand 0 and operand 2.
29291 (zero_cost_loop_end, loop_end): Similarly.
29293 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
29295 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
29298 2015-02-24 DJ Delorie <dj@redhat.com>
29300 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
29301 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
29302 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
29303 instead of hardcoding SImode.
29305 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
29307 * omp-low.c (create_omp_child_function): Tag entrypoint
29308 functions with a special attribute.
29310 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
29313 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
29315 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
29317 PR rtl-optimization/65123
29318 * lra-remat.c (operand_to_remat): Check hard regs in insn
29321 2015-02-24 Nick Clifton <nickc@redhat.com>
29323 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
29326 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
29329 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
29330 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
29331 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
29332 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
29333 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
29334 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
29335 (BUILT_IN_GOACC_PARALLEL): Specify as
29336 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
29337 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
29338 * builtin-types.def
29339 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
29340 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
29341 Remove function types.
29342 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
29343 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
29344 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
29345 New function types.
29347 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
29349 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
29351 2015-02-24 Jakub Jelinek <jakub@redhat.com>
29353 PR tree-optimization/65170
29354 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
29355 if val[1] < 0, clear also val[2] and return 3.
29357 2015-02-24 Alan Modra <amodra@gmail.com>
29360 * config/rs6000/rs6000.c (get_memref_parts): Only return true
29361 when *base is a reg. Handle nested plus addresses. Simplify
29364 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
29366 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
29367 use natural alignment when optimizing for size.
29369 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
29372 * config/sh/sh.md (movsicc_true+3): Remove peephole.
29373 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
29374 * config/sh/sh.c (replace_n_hard_rtx): Remove.
29376 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
29379 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
29380 too big for a wide_int. Implement missing wrapping operation.
29382 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
29385 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
29386 instead of const_int 4294901760.
29388 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
29390 * config/avr/t-avr: Fix typo in comment.
29392 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
29394 * doc/rtl.texi (fma): Clarify documentation.
29396 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
29399 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
29400 over input_location.
29402 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
29404 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
29405 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
29406 restrict alignments to absolute_biggest_alignment.
29407 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
29409 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
29410 * doc/tm.texi: Regenerate.
29411 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
29413 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
29416 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
29418 2015-02-20 Richard Biener <rguenther@suse.de>
29420 PR tree-optimization/65136
29421 * tree-ssa-propagate.c: Include cfgloop.h.
29422 (replace_phi_args_in): Avoid replacing loop latch edge PHI
29423 arguments with constants.
29425 2015-02-20 Jakub Jelinek <jakub@redhat.com>
29426 Martin Liska <mliska@suse.cz>
29429 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
29430 don't try to create_thunk if stdarg_p. If
29431 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
29432 redirect_callers if possible.
29433 (sem_item_optimizer::execute): Call unregister_hooks here...
29434 (ipa_icf_driver): ... instead of here.
29436 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29438 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
29439 Mark operand 0 as earlyclobber in 2nd alternative.
29440 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
29441 Write negated shift amount into QI lowpart operand 0 and use it
29443 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
29445 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
29447 * cgraph.h (clone_function_name_1): Declare.
29448 * cgraphclones.c (clone_function_name_1): New function.
29449 (clone_function_name): Use it.
29450 * lto-partition.c: Include "stringpool.h".
29451 (must_not_rename, maybe_rewrite_identifier)
29452 (validize_symbol_for_target): New static functions.
29453 (privatize_symbol_name): Use must_not_rename.
29454 (promote_symbol): Call validize_symbol_for_target.
29455 (lto_promote_cross_file_statics): Likewise.
29456 (lto_promote_statics_nonwpa): Likewise.
29458 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
29461 * config/avr/avr.md (pushhi_insn): New insn.
29462 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
29464 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
29465 Jakub Jelinek <jakub@redhat.com>
29467 * tree-streamer.c (preload_common_nodes): Don't preload
29468 TI_VA_LIST* for offloading.
29469 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
29472 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
29474 * config/pa/pa.c (pa_emit_move_sequence): Always force
29475 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
29478 * config/pa/pa.c (pa_reloc_rw_mask): New function.
29479 (TARGET_ASM_RELOC_RW_MASK): Define.
29480 (pa_cannot_force_const_mem): Revert previous change.
29482 2015-02-19 Martin Jambor <mjmabor@suse.cz>
29483 Jan Hubicka <hubicka@ucw.cz>
29486 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
29487 across jump functions.
29489 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
29491 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
29493 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
29495 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
29497 2015-02-19 Richard Henderson <rth@redhat.com>
29499 PR middle-end/65074
29500 * varasm.c (default_binds_local_p_2): Don't test node->definition;
29501 test DECL_EXTERNAL independent of symtab_node.
29503 2015-02-19 Jakub Jelinek <jakub@redhat.com>
29506 * varpool.c (varpool_node::get_constructor): Return early
29507 if this->lto_file_data is NULL.
29509 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29511 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
29512 (rank_for_schedule_debug): Update.
29513 (ready_sort): Make static. Move sorting logic to ...
29514 (ready_sort_debug, ready_sort_real): New static functions.
29515 (schedule_block): Sort both debug insns and real insns in preparation
29516 for ready list trimming. Improve debug output.
29517 * sched-int.h (ready_sort): Remove global declaration.
29519 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
29521 * ipa-icf.c (sem_function::equals_private): Adjust.
29522 (sem_function::bb_dict_test): Take a vec<int> * instead of
29524 * ipa-icf.h (bb_dict_test): Likewise.
29526 2015-02-18 Jakub Jelinek <jakub@redhat.com>
29528 PR gcov-profile/64634
29529 * tree-eh.c (frob_into_branch_around): Fix up typos
29530 in function comment.
29531 (lower_catch): Put eh_seq resulting from EH lowering of
29532 the cleanup sequence after the cleanup rather than before it.
29534 2015-02-18 Tom de Vries <tom@codesourcery.com>
29536 * common.opt (fstdarg-opt): New option.
29537 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
29538 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
29539 (@item -fstdarg-opt): New item.
29541 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
29544 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
29545 for common symbols.
29547 2015-02-18 Jakub Jelinek <jakub@redhat.com>
29549 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
29551 (ALL_HOST_OBJS): Add mkoffload.o.
29552 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
29554 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
29556 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
29557 (compare_virtual_tables): Be smarter about skipping typeinfos;
29558 do sane output on virtual table table mismatch.
29559 (warn_odr): Be ready for forward declarations of enums;
29560 output sane info on base mismatch and virtual table mismatch.
29561 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
29562 when only one type is polymorphic.
29563 (get_odr_type): Fix hashtable corruption.
29564 (dump_odr_type): Dump mangled names.
29566 2015-02-18 Richard Biener <rguenther@suse.de>
29568 PR tree-optimization/65063
29569 * tree-predcom.c (determine_unroll_factor): Return 1 if we
29570 have replaced looparound PHIs.
29572 2015-02-18 Martin Liska <mliska@suse.cz>
29574 * lto-streamer.c (lto_streamer_init): Encapsulate
29575 streamer_check_handled_ts_structures with checking macro.
29577 2015-02-18 Jakub Jelinek <jakub@redhat.com>
29580 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
29581 section if !implicit_section.
29582 (cgraph_node::create_version_clone_with_body): Likewise.
29583 * trans-mem.c (ipa_tm_create_version): Likewise.
29585 2015-02-18 Richard Biener <rguenther@suse.de>
29587 PR tree-optimization/62217
29588 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
29591 2015-02-18 Marek Polacek <polacek@redhat.com>
29594 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
29595 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
29596 is in range [-16K, -1]. Don't issue run-time error if
29597 (ptr > ptr + offset).
29599 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
29601 * doc/install.texi (nvptx-*-none): New section.
29602 * doc/invoke.texi (Nvidia PTX Options): Likewise.
29603 * config/nvptx/nvptx.opt: Update.
29605 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
29606 (access_check): New functions, copied from
29607 config/i386/intelmic-mkoffload.c.
29608 (main): For non-installed testing, look in all COMPILER_PATHs for
29611 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
29613 2015-02-18 Andrew Pinski <apinski@cavium.com>
29614 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29616 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
29617 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
29619 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
29621 * ipa-visibility.c (function_and_variable_visibility): Only
29622 check locality if node is not already local.
29623 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
29624 call_for_symbol_and_aliases instead of
29625 call_for_symbol_thunks_and_aliases.
29626 (ipa_inline): Likewise.
29627 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
29628 first walk aliases.
29629 * ipa.c (symbol_table::remove_unreachable_nodes): Use
29630 call_for_symbol_and_aliases.
29631 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
29632 (ipa_propagate_frequency_1): Use it; use opt_for_fn
29633 (ipa_propagate_frequency): Update.
29634 (ipa_profile): Add opt_for_fn gueards.
29636 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
29638 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
29639 * doc/invoke.texi (SH options): Document it.
29640 * config/sh/sh.c (sh_insn_length_adjustment): Check
29641 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
29643 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
29645 * common.opt (fipa-cp-alignment): New.
29646 * ipa-cp.c (ipcp_store_alignment_results): Check
29647 flag_ipa_cp_alignment.
29648 * opts.c (default_options_table): Enable -fipa-cp-alignment for
29650 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
29651 * doc/invoke.texi: Document -fipa-cp-alignment.
29653 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
29656 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
29657 to nil. Adjust comments.
29659 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
29661 * ipa-visibility.c (function_and_variable_visibility): Only
29662 check locality if node is not already local.
29663 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
29664 call_for_symbol_and_aliases instead of
29665 call_for_symbol_thunks_and_aliases.
29666 (ipa_inline): Likewise.
29667 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
29668 first walk aliases.
29669 * ipa.c (symbol_table::remove_unreachable_nodes): Use
29670 call_for_symbol_and_aliases.
29671 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
29672 (ipa_propagate_frequency_1): Use it; use opt_for_fn
29673 (ipa_propagate_frequency): Update.
29674 (ipa_profile): Add opt_for_fn guards.
29676 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
29678 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
29679 skipping of "strange" tokens.
29681 2015-02-17 Jeff Law <law@redhat.com>
29683 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
29686 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
29688 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
29689 as forcing a HARD_DEP between instructions, thereby
29690 disallowing rewriting to break dependencies.
29692 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
29694 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
29695 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
29696 variables in boundary that have no inlitalizer encoded and are
29698 * varasm.c (default_binds_local_p_2): External definitions do not
29699 count as definitions here.
29701 2015-02-16 Jeff Law <law@redhat.com>
29703 PR tree-optimization/64823
29704 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
29706 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
29707 threading through blocks with PHIs, but no statements.
29708 (thread_through_normal_block): Distinguish between blocks where
29709 we did not process all the statements and blocks with no statements.
29711 2015-02-16 Jakub Jelinek <jakub@redhat.com>
29712 James Greenhalgh <james.greenhalgh@arm.com>
29715 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
29716 section if not linkonce. Fix up formatting.
29717 (cgraph_node::create_version_clone_with_body): Copy section.
29718 * trans-mem.c (ipa_tm_create_version): Likewise.
29720 2015-02-16 Richard Biener <rguenther@suse.de>
29722 PR tree-optimization/65077
29723 * tree-ssa-structalias.c (get_constraint_for_1): Handle
29724 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
29725 (find_func_aliases): Allow float values to carry pointers again.
29727 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
29729 * doc/install.texi (Specific): Reorder targets list to put
29730 aarch64 in alphabetical order. Add a link to aarch64*-*-*
29733 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
29734 David Edelsohn <dje.gcc@gmail.com>
29737 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
29738 mapping class to external variable or function reference.
29739 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
29742 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
29745 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
29746 ASM_WEAKEN_DECL if defined.
29748 2015-02-16 Richard Biener <rguenther@suse.de>
29751 * varasm.c (default_file_start): For LTO produced units
29752 emit <artificial> as file directive.
29754 2015-02-16 Richard Biener <rguenther@suse.de>
29756 PR tree-optimization/63593
29757 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
29758 stmts and releasing SSA names until...
29759 (execute_pred_commoning): ... after processing all chains.
29761 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
29764 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
29765 external functions.
29767 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
29769 * doc/bugreport.texi: Adjust section titles throughout the file
29770 to use "Title Case".
29771 * doc/extend.texi: Likewise.
29772 * doc/gcov.texi: Likewise.
29773 * doc/implement-c.texi: Likewise.
29774 * doc/implement-cxx.texi: Likewise.
29775 * doc/invoke.texi: Likewise.
29776 * doc/objc.texi: Likewise.
29777 * doc/standards.texi: Likewise.
29778 * doc/trouble.texi: Likewise.
29780 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
29782 * cgraph.h (symtab_node::has_aliases_p): Simplify.
29783 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
29784 * tree.c (lookup_binfo_at_offset): Make static.
29785 (get_binfo_at_offset): Do not shadow offset; add explanatory
29788 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
29790 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
29791 for all floading point loads and stores except those using a register
29793 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
29796 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
29798 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
29799 (do_estimate_growth_1): Record if any uninlinable edge was seen.
29800 (estimate_growth): Handle uninlinable edges correctly.
29801 (check_callers): New.
29802 (growth_likely_positive): Handle aliases correctly.
29804 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
29806 * ipa-chkp.c: Use iterate_direct_aliases.
29807 * symtab.c (resolution_used_from_other_file_p): Move inline.
29808 (symtab_node::create_reference): Fix formating.
29809 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
29810 (symtab_node::iterate_reference): Move inline.
29811 (symtab_node::iterate_referring): Move inline.
29812 (symtab_node::iterate_direct_aliases): Move inline.
29813 (symtab_node::used_from_object_file_p_worker): Inline into ...
29814 (symtab_node::used_from_object_file_p): ... this one; move inline.
29815 (symtab_node::call_for_symbol_and_aliases): Move inline;
29816 use iterate_direct_aliases.
29817 (symtab_node::call_for_symbol_and_aliases_1): New method.
29818 (cgraph_node::call_for_symbol_and_aliases): Move inline;
29819 use iterate_direct_aliases.
29820 (cgraph_node::call_for_symbol_and_aliases_1): New method.
29821 (varpool_node::call_for_node_and_aliases): Rename to ...
29822 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
29823 use iterate_direct_aliases.
29824 (varpool_node::call_for_symbol_and_aliases_1): New method.
29825 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
29826 (ipa_discover_readonly_nonaddressable_var): Update.
29827 * ipa-devirt.c: Fix formating.
29828 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
29830 (cgraph_node::call_for_symbol_and_aliases): Move inline.
29831 (cgraph_node::call_for_symbol_and_aliases_1): New function..
29832 * cgraph.h (used_from_object_file_p_worker): Remove.
29833 (resolution_used_from_other_file_p): Move inline.
29834 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
29835 (symtab_node::iterate_reference): Move inline.
29836 (symtab_node::iterate_referring): Move inline.
29837 (symtab_node::iterate_direct_aliases): Move inline.
29838 (symtab_node::used_from_object_file_p_worker): Inline into ...
29839 (symtab_node::used_from_object_file_p): Move inline.
29840 * tree-emutls.c (ipa_lower_emutls): Update.
29841 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
29842 (varpool_node::call_for_node_and_aliases): Remove.
29844 2015-02-14 Jakub Jelinek <jakub@redhat.com>
29846 PR tree-optimization/62209
29847 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
29848 op == range->exp, insert seq and gimplified code after labels
29849 instead of after the phi.
29851 2015-02-13 Jeff Law <law@redhat.com>
29854 Revert my change for tree-optimization/64823.
29856 2015-02-13 Jakub Jelinek <jakub@redhat.com>
29858 PR tree-optimization/65053
29859 * tree-ssa-phiopt.c (value_replacement): When moving assign before
29860 cond, either reset VR on lhs or set it to phi result VR.
29862 2015-02-13 Jeff Law <law@redhat.com>
29864 PR tree-optimization/64823
29865 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
29866 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
29867 threading through blocks with PHIs, but no statements.
29868 (thread_through_normal_block): Distinguish between blocks where
29869 we did not process all the statements and blocks with no statements.
29871 PR rtl-optimization/47477
29872 * match.pd (convert (plus/minus (convert @0) (convert @1): New
29873 simplifier to narrow arithmetic.
29875 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
29878 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
29879 polymorphic call info when type is not known to be preserved.
29881 2015-02-13 Maritn Jambor <mjambor@suse.cz>
29884 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
29885 (inline_call): Use it.
29887 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
29889 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
29890 GOMP_DEVICE_NVIDIA_PTX.
29892 2015-02-13 Jakub Jelinek <jakub@redhat.com>
29895 * stmt.c (emit_case_nodes): Use void_type_node instead of
29896 NULL_TREE as LABEL_DECL type.
29898 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
29900 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
29902 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
29903 symbolic references to data to be forced to constant memory on the
29906 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
29908 PR tree-optimization/65002
29909 * tree-cfg.c (pass_data_fixup_cfg): Don't update
29911 * tree-sra.c (some_callers_have_no_vuse_p): New.
29912 (ipa_early_sra): Reject functions whose callers
29913 assume function is read only.
29915 2015-02-13 Richard Biener <rguenther@suse.de>
29918 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
29919 for LTO produced CUs.
29921 2015-02-13 Bin Cheng <bin.cheng@arm.com>
29923 PR tree-optimization/64705
29924 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
29925 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
29926 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
29927 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
29928 expand_simple_operations.
29930 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
29931 Richard Henderson <rth@redhat.com>
29934 * cgraphunit.c (cgraph_node::finalize_function): Set definition
29935 before notice_global_symbol.
29936 (varpool_node::finalize_decl): Likewise.
29937 * varasm.c (default_binds_local_p_2): Rename from
29938 default_binds_local_p_1, add weak_dominate argument. Use direct
29939 returns instead of assigning to local variable. Unify varpool and
29940 cgraph paths via symtab_node. Reject undef weak variables before
29941 testing visibility. Reorder tests for simplicity.
29942 (default_binds_local_p): Use default_binds_local_p_2.
29943 (default_binds_local_p_1): Likewise.
29944 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
29946 (default_elf_asm_output_external): Emit visibility when specified.
29948 2015-02-13 Alan Modra <amodra@gmail.com>
29950 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
29951 code setting up r11 for out-of-line fp restore.
29953 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
29955 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
29956 (muser-mode): Likewise.
29958 2015-02-13 Alan Modra <amodra@gmail.com>
29960 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
29961 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
29963 2015-02-12 David Howells <dhowells@redhat.com>
29965 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
29967 * tree-ssa-uninit.c (dump_predicates): Likewise.
29968 * opts.c (print_filtered_help): Likewise.
29970 2015-02-12 Jakub Jelinek <jakub@redhat.com>
29972 * dwarf2out.c (output_die): Use "%s", name instead of name to
29973 avoid -Wformat-security warning.
29975 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
29976 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
29977 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
29978 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
29980 2015-02-12 Jason Merrill <jason@redhat.com>
29982 * common.opt (-flifetime-dse): New.
29984 2015-02-12 Jakub Jelinek <jakub@redhat.com>
29987 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
29989 PR tree-optimization/65014
29990 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
29991 use original second operand of arg0 or arg1 instead of
29992 that adjusted by STRIP_NOPS.
29994 2015-02-11 Jeff Law <law@redhat.com>
29997 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
29998 that needs to be queued, just queue it for a single cycle.
30000 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
30002 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
30003 bodies of thunks; comment on why.
30004 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
30005 symbols are extern.
30007 2015-02-11 Richard Henderson <rth@redhat.com>
30010 * tree-eh.c (mark_reachable_handlers): Mark source and destination
30011 regions of __builtin_eh_copy_values.
30013 2015-02-11 Jakub Jelinek <jakub@redhat.com>
30015 PR middle-end/65003
30016 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
30017 ultimate alias is MEM with SYMBOL_REF satisfying
30018 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
30019 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
30021 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
30023 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
30024 "diagnostic-core.h".
30025 (main): Initialize progname, and call diagnostic_initialize.
30027 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
30028 instead of __OPENMP_TARGET__.
30030 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
30031 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
30032 hard-coding PTX_ID.
30034 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
30036 * doc/sourcebuild.texi (pie_enabled): Document.
30038 2015-02-11 Martin Liska <mliska@suse.cz>
30041 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
30042 a return value for call to a function that is noreturn.
30044 2015-02-11 Richard Biener <rguenther@suse.de>
30047 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
30050 2015-02-11 Andrew Pinski <apinski@cavium.com>
30053 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
30054 Change the first argument type to size_type_node and add another
30056 (aarch64_simd_expand_builtin): Handle the new argument to
30057 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
30058 print an out when the first two arguments are not
30059 nonzero integer constants.
30060 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
30061 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
30063 2015-02-11 Jakub Jelinek <jakub@redhat.com>
30066 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
30067 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
30068 (ix86_set_current_function): Rewritten.
30069 (ix86_add_new_builtins): Temporarily clear current_target_pragma
30070 when creating builtin fndecls.
30072 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
30075 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
30077 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
30078 have no comdat group.
30079 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
30080 (lto_output_varpool_node): Always output alias info.
30081 (output_refs): Output refs of boundary aliases, too.
30082 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
30083 (output_symtab): Output call eges in thunks in boundary.
30084 (get_alias_symbol): Remove.
30085 (input_node, input_varpool_node): Do not special case weakrefs.
30086 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
30087 alias and thunks targets in the boundary; do not take removed symbols
30088 from their comdat groups.
30089 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
30090 (cgraph_node::global_info): Remove.
30091 (cgraph_node::rtl_info): Look through aliases and thunks.
30092 * cgrpah.h (global_info): Remove.
30093 (non_local_p): Remove.
30095 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
30096 Sandra Loosemore <sandra@codesourcery.com>
30098 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
30099 to inline asm. List dialects in proper order.
30101 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
30102 Sandra Loosemore <sandra@codesourcery.com>
30104 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
30106 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
30108 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
30109 modified) reference to Solaris.
30111 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
30113 * doc/extend.texi (Extended Asm): Fix typos.
30115 2015-02-10 Jakub Jelinek <jakub@redhat.com>
30118 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
30120 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
30123 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
30124 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
30125 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
30126 * config/sh/constraints.md (Ara, Add): New constraints.
30127 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
30129 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
30130 atomic_mem_operand_0. Don't use force_reg on the memory address.
30131 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
30132 Sra constraint. Convert to insn_and_split. Add workaround for
30134 (atomic_compare_and_swap<mode>_hard): Copy to
30135 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
30136 Use atomic_mem_operand_0 predicate.
30137 (atomic_compare_and_swap<mode>_soft_gusa,
30138 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
30139 AraAdd constraints.
30140 (atomic_compare_and_swap<mode>_soft_tcb,
30141 atomic_compare_and_swap<mode>_soft_imask,
30142 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
30143 atomic_mem_operand_0 predicate and SraSdd constraints.
30144 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
30146 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
30147 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
30148 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
30149 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
30150 force_reg on the memory address.
30151 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
30152 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
30153 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
30154 atomic_mem_operand_1 predicate and Sra constraint.
30155 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
30156 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
30157 Use atomic_mem_operand_1 predicate.
30158 (atomic_<fetchop_name><mode>_hard): Copy to
30159 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
30160 Use atomic_mem_operand_1 predicate.
30161 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
30162 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
30163 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
30164 insn_and_split. Use atomic_mem_operand_1 predicate.
30165 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
30166 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
30167 Use atomic_mem_operand_1 predicate.
30168 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
30169 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
30170 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
30171 in generated insn with original mem operand before emitting the insn.
30172 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
30173 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
30174 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
30175 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
30176 Use atomic_mem_operand_1 predicate and AraAdd constraints.
30177 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
30178 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
30179 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
30180 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
30181 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
30182 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
30183 atomic_not_fetch<mode>_soft_tcb,
30184 atomic_<fetchop_name>_fetch<mode>_soft_imask,
30185 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
30186 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
30187 Use atomic_mem_operand_1 predicate and SraSdd constraints.
30189 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
30191 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
30192 and 3 earlyclobber operands.
30194 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
30196 * common.opt (fstack-reuse): Mark as optimization.
30198 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
30201 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
30203 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
30205 PR tree-optimization/64326
30206 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
30208 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
30210 PR gcov-profile/61889
30211 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
30213 2015-02-10 Richard Biener <rguenther@suse.de>
30215 PR tree-optimization/64995
30216 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
30217 value we use is final.
30218 (visit_reference_op_store): Always valueize op.
30219 (visit_use): Properly valueize vuses.
30221 2015-02-10 Richard Biener <rguenther@suse.de>
30223 PR tree-optimization/64909
30224 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
30225 pass a scalar-stmt count estimate to the cost model.
30226 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
30228 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
30230 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
30231 enabled by default together with var-tracking.
30233 2015-02-10 Nick Clifton <nickc@redhat.com>
30235 * config/rl78/rl78.c: Remove DIV attribute code accidentally
30236 included in previous rl78 commit.
30238 2015-02-10 Richard Biener <rguenther@suse.de>
30240 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
30241 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
30242 return the bitpack.
30244 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
30246 PR gcov-profile/61889
30247 * config.in: regenerate.
30248 * configure.in: Likewise.
30249 * configure.ac: Check for ftw.h.
30250 * gcov-tool.c: Check for ftw.h before using nftw.
30252 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
30255 * ipa-visibility.c (update_visibility_by_resolution_info): Only
30256 assert when not in lto mode.
30258 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
30260 * ira-color.c (setup_left_conflict_sizes_p): Simplify
30261 initialization/assignment of conflict_size.
30263 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
30266 * ipa-cp.c (gather_caller_stats): Skip thunks.
30267 (propagate_constants_topo): Skip aliases.
30269 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
30272 * config/sh/sh.c (sh_option_override): Don't change
30273 -freorder-blocks-and-partition to -freorder-blocks even when
30274 unwinding is enabled.
30275 (sh_can_follow_jump): Return false if the followee jump is
30276 a crossing jump when -freorder-blocks-and-partition is specified.
30277 * config/sh/sh.md (*jump_compact_crossing): New insn.
30279 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
30280 Kaz Kojima <kkojima@gcc.gnu.org>
30283 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
30284 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
30285 (sh_can_redirect_branch): Rename to ...
30286 (sh_can_follow_jump): ... this. Constify argument types.
30287 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
30288 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
30289 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
30290 * doc/tm.texi: Regenerate.
30292 2015-02-09 Jakub Jelinek <jakub@redhat.com>
30295 * builtins.c (expand_builtin): Call targetm.expand_builtin
30296 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
30298 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30301 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
30303 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30306 * ipa-icf.c (set_local): New function.
30307 (sem_function::merge): Use it.
30309 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30311 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
30312 (add_type_duplicate): Fix comparison of BINFOs.
30314 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30316 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
30317 on getting VOID pointer.
30319 2015-02-09 Jakub Jelinek <jakub@redhat.com>
30322 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
30325 2015-02-09 Richard Biener <rguenther@suse.de>
30327 * genmatch.c (replace_id): Copy expr_type.
30329 2015-02-09 Richard Biener <rguenther@suse.de>
30331 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
30332 (streamer_write_tree_bitfields): Declare.
30333 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
30334 properly unpack padding.
30335 (unpack_value_fields): Inline ...
30336 (streamer_read_tree_bitfields): ... here.
30337 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
30338 and properly add padding bits.
30339 (streamer_pack_tree_bitfields): Fold into ...
30340 (streamer_write_tree_bitfields): ... this new function,
30341 exposing the bitpack object.
30342 * lto-streamer-out.c (lto_write_tree_1): Call
30343 streamer_write_tree_bitfields.
30345 2015-02-09 Richard Biener <rguenther@suse.de>
30347 PR tree-optimization/54000
30348 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
30349 (struct ivopts_data): Add loop_loc member.
30350 (tree_ssa_iv_optimize_loop): Dump loop location.
30351 (create_new_ivs): Likewise, also dump number of IVs generated.
30353 2015-02-09 Martin Liska <mliska@suse.cz>
30355 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
30356 just if not yet registered.
30357 (ipa_icf_generate_summary): Register callgraph hooks.
30359 2015-02-08 Andrew Pinski <apinski@cavium.com>
30361 * config/aarch64/aarch64.c (gty_dummy): Delete.
30363 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30366 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
30367 (cgraph_node::local_p): Remove thunk related FIXME.
30369 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30372 * i386.c (ix86_function_regparm): Look through aliases to see if callee
30373 is local and optimized.
30374 (ix86_function_sseregparm): Likewise; also use target's SSE math
30375 settings; error out instead of silently generating wrong code
30377 (init_cumulative_args): Look through aliases.
30379 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30382 * ipa-split.c (execute_split_functions): Split if function has aliases.
30384 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
30387 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
30388 aliases before trying to expand it.
30389 (cgraph_node::expand_thunk): Fix formating.
30391 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
30393 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
30394 (Using Assembly Language with C): Expand introduction.
30395 (Basic Asm): Copy-edit. Add more information about uses of
30397 (Extended Asm): Copy-edit. Document new escape syntax and
30399 (Global Reg Vars): Copy-edit.
30400 (Local Reg Vars): Likewise.
30402 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
30406 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
30407 (DBX_CONTIN_CHAR): Define.
30409 2015-02-06 Sebastian Pop <s.pop@samsung.com>
30410 Brian Rzycki <b.rzycki@samsung.com>
30412 PR tree-optimization/64878
30413 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
30414 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
30415 Stop recursion at loop phi nodes after having visited a loop phi node.
30417 2015-02-06 Jakub Jelinek <jakub@redhat.com>
30419 * toplev.c (process_options): Change flag_ipa_ra before creating
30420 optimization_{default,current}_node.
30423 * cgraphunit.c (cgraph_node::expand_thunk): If
30424 restype is not is_gimple_reg_type nor the thunk_fndecl
30425 returns aggregate_value_p, set restmp to a temporary variable
30426 instead of resdecl.
30428 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
30430 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
30432 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
30435 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
30436 add a general secondary reload handler for SDmode, unless we have
30437 both read/write support for SDmode.
30439 2015-02-06 Jakub Jelinek <jakub@redhat.com>
30441 PR middle-end/64937
30442 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
30443 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
30444 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
30445 1 before, push it to abstract_vec.
30446 (dwarf2out_abstract_function): Adjust caller. Don't call
30447 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
30448 DECL_ABSTRACT_P flags for all abstract_vec elts.
30450 2015-02-06 Renlin Li <renlin.li@arm.com>
30452 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
30454 * tree-ssa.c (execute_update_addresses_taken): Likewise.
30456 2015-02-06 Jeff Law <law@redhat.com>
30459 * config/h8300/h8300.c (push): New argument "in_prologue".
30460 Pass "in_prologue" along to "F".
30461 (h8300_push_pop): Corresponding changes.
30462 (h8300_expand_prologue): Likewise.
30463 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
30465 2015-02-06 Jakub Jelinek <jakub@redhat.com>
30467 PR rtl-optimization/64957
30469 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
30470 IOR rather than for AND.
30472 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
30475 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
30476 of shift-add and (add + shift) operations. Rename local variable.
30478 2015-02-05 Jeff Law <law@redhat.com>
30481 * config/h8300/constraints.md (U): Correctly dectect
30482 "eightbit_data" memory addresses.
30483 * config/h8300/h8300.c (eightbit_constant_address_p): Also
30484 handle (const (plus (symbol_ref (x)))) where x is declared
30485 as an 8-bit data memory address.
30486 * config/h8300/h8300.md (call, call_value): Correctly detect
30487 "funcvec" functions.
30490 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
30491 24 to 28 bits for the H8/300.
30493 2015-02-06 Alan Modra <amodra@gmail.com>
30496 * config/rs6000/rs6000.c (chain_already_loaded): New function.
30497 (rs6000_call_aix): Use it.
30499 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
30501 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
30504 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
30506 * config/h8300/constraints.md ("U" constraint): Use strict
30507 variant of REG_OK_FOR_BASE_P after reload has started.
30509 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
30511 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
30512 define to zero if !TARGET_NEON.
30513 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
30515 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30516 Trevor Saunders <tsaunders@mozilla.com>
30519 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
30521 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30524 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
30525 when removing varpool nodes.
30527 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30530 * varpool.c (varpool_node::remove): Fix order of variables.
30532 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30535 * ipa-inline.c (inline_small_functions): Fix ordering issue between
30536 speculation resolution and key updates.
30538 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30540 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
30541 about not letting any speculative edges unupdated.
30543 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30546 * gcov-io.c (gcov_var): Export.
30548 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30550 PR middle-end/64922
30551 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
30552 edges that become speculative.
30554 2015-02-04 Jakub Jelinek <jakub@redhat.com>
30556 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
30557 or DW_LANG_Fortran08.
30558 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
30560 (gen_compile_unit_die): Handle "GNU Fortran2003" and
30561 "GNU Fortran2008" language strings.
30562 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
30563 * langhooks.h (lang_GNU_Fortran): New prototype.
30564 * langhooks.c (lang_GNU_Fortran): New function.
30565 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
30568 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
30570 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
30571 (RTX_OK_FOR_OLO10_P): Likewise.
30573 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
30575 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
30577 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30579 PR middle-end/64922
30580 * gimple.c: Include gimple-ssa.h.
30581 (maybe_remove_unused_call_args): New function.
30582 * gimple.h (maybe_remove_unused_call_args): Declare.
30583 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
30584 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
30585 * gimple-fold.c (gimple_fold_call): Likewise.
30587 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
30589 PR rtl-optimization/64905
30590 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
30591 pointer alignment if it isn't needed.
30593 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
30595 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
30596 cortex-a72.cortex-a53.
30597 * config/aarch64/aarch64-tune.md: Regenerate.
30598 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
30600 2015-02-04 Nick Clifton <nickc@redhat.com>
30602 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
30605 2015-02-04 Jakub Jelinek <jakub@redhat.com>
30607 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
30608 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
30609 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
30611 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
30612 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
30613 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
30614 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
30615 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
30616 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
30617 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
30618 * tree-core.h (enum built_in_function): In between
30619 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
30620 for builtins that use DEF_BUILTIN_CHKP macro.
30622 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
30625 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
30626 operands for tcc_comparison exprs. Fix typos.
30629 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
30630 of two XORs that have an intervening AND or IOR.
30633 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
30634 simplification of XOR of AND to not allocate new rtx before
30635 committing to a simplification.
30637 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30639 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
30640 manual swaps in all peepholes.
30642 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30644 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
30645 of manual swapping implementation.
30646 (aarch64_expand_vec_perm_const_1): Likewise.
30648 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
30650 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
30651 (generic_addrcost_table): Remove NAMED_PARAM.
30652 (cortexa57_addrcost_table): Likewise.
30653 (xgene1_addrcost_table): Likewise.
30654 (generic_regmove_table): Likewise.
30655 (cortexa53_regmove_table): Likewise.
30656 (xgene1_regmove_table): Likewise.
30657 (generic_vector_table): Likewise.
30658 (cortexa57_vector_table): Likewise.
30659 (xgene1_vector_table): Likewise.
30660 (generic_tunings): Likewise.
30661 (cortexa53_tunings): Likewise.
30662 (cortexa57_tunings): Likewise.
30663 (xgene1_tunings): Likewise.
30665 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
30667 * config/arm/arm-cores.def: Add cortex-a72 and
30668 cortex-a72.cortex-a53.
30669 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
30670 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
30671 * config/arm/arm-tune.md: Regenerate.
30672 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
30673 "cortex-a72.cortex-a53".
30674 * doc/invoke.texi (ARM Options/-mtune): Likewise.
30676 2015-02-04 Nick Clifton <nickc@redhat.com>
30679 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
30681 (nonimmediate_di_operand): Likewise.
30683 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
30684 prefixes of known F5 using MSP430 MCUs.
30686 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30688 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
30689 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
30690 instead of __builtin_sqrt.
30692 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
30694 * varasm.c (do_assemble_alias): Follow transparent alias
30696 (default_assemble_visibility): Follow transparent alias
30697 chain for decl name.
30699 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
30701 PR middle-end/62103
30702 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
30703 to compute size of referenced value in the constant case.
30705 2015-02-03 Jakub Jelinek <jakub@redhat.com>
30707 PR rtl-optimization/64756
30708 * cse.c (invalidate_dest): New function.
30709 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
30710 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
30711 invalidate and do not record it.
30713 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
30716 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
30717 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
30718 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
30719 atomic_nand<mode>_soft_tcb): New insns.
30720 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
30721 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
30722 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
30723 Split into atomic_not_fetchsi_hard if operands[0] is unused.
30724 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
30725 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
30726 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
30727 atomic_not<mode>_hard if operands[0] is unused.
30728 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
30729 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
30730 if operands[0] is unused.
30731 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
30732 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
30733 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
30734 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
30736 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
30737 into atomic_not<mode>_soft_tcb if operands[0] is unused.
30738 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
30739 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
30740 if operands[0] is unused.
30741 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
30742 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
30743 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
30744 atomic_nand_fetchsi_hard if operands[0] is unused.
30745 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
30746 atomic_nand<mode>_hard if operands[0] is unused.
30747 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
30748 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
30749 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
30750 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
30751 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
30752 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
30753 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
30754 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
30755 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
30756 atomic_not<mode>_hard if operands[0] is unused.
30757 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
30758 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
30760 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
30761 into atomic_not<mode>_soft_tcb if operands[0] is unused.
30762 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
30763 atomic_nand<mode>_hard if operands[0] is unused.
30764 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
30765 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
30767 2015-02-03 David Malcolm <dmalcolm@redhat.com>
30770 * Makefile.in (GCC_OBJS): Add gcc-main.o.
30771 * gcc-main.c: New file, containing "main" taken from gcc.c.
30772 * gcc.c (do_self_spec): Free decoded_options.
30773 (class driver): Move declaration to gcc.h.
30774 (main): Move declaration and implementation to new file
30776 (driver_get_configure_time_options): New function.
30777 * gcc.h (class driver): Move this declaration here, from
30779 (driver_get_configure_time_options): New declaration.
30781 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
30783 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
30784 cross-module inlining.
30785 * cgraph.h (cgraph_node): Add flag merged.
30786 * ipa-icf.c (sem_function::merge): Maintain it.
30788 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
30790 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
30791 instead of OBJECT_P.
30793 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
30796 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
30797 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
30798 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
30799 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
30801 2015-02-03 Jakub Jelinek <jakub@redhat.com>
30804 * combine.c (reg_n_sets_max): New variable.
30805 (can_change_dest_mode, reg_nonzero_bits_for_combine,
30806 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
30807 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
30808 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
30809 (rest_of_handle_combine): Initialize reg_n_sets_max.
30811 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
30813 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
30814 if some always_inline was inlined, apply changes before inlining
30817 2015-02-02 David Malcolm <dmalcolm@redhat.com>
30820 * config/arm/arm.c (arm_option_override): Set
30821 arm_selected_arch/cpu/tune to NULL on entry.
30823 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
30824 Andrew Pinski <pinskia@gcc.gnu.org>
30825 Jakub Jelinek <jakub@gcc.gnu.org>
30828 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
30829 integer typing for small model. Use IN_RANGE.
30831 2015-02-02 Richard Biener <rguenther@suse.de>
30833 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
30834 * tree-vrp.c (vrp_valueize_1): Likewise.
30836 2015-02-02 Alan Modra <amodra@gmail.com>
30838 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
30839 than mem for toc_restore.
30840 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
30841 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
30842 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
30844 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
30847 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
30848 explicit default options.
30850 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
30853 * ipa-utils.c (ipa_merge_profiles): Add release argument.
30854 * ipa-icf.c (sem_function::merge): Do not release body when merging.
30855 * ipa-utils.h (ipa_merge_profiles): Update prototype.
30857 2015-02-01 Jakub Jelinek <jakub@redhat.com>
30860 * cfgexpand.c (deep_ter_debug_map): New variable.
30861 (avoid_deep_ter_for_debug): New function.
30862 (expand_debug_expr): If TERed SSA_NAME is in
30863 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
30864 instead of trying to expand SSA_NAME's def stmt.
30865 (expand_debug_locations): When expanding debug bind
30866 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
30867 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
30869 (pass_expand::execute): Call avoid_deep_ter_for_debug on
30870 all debug bind stmts. Delete deep_ter_debug_map after
30871 expand_debug_location if non-NULL and clear it.
30873 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
30876 * config/sh/sync.md (atomic_fetch_notsi_hard,
30877 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
30878 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
30879 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
30880 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
30881 atomic_not_fetch<mode>_soft_imask): New insns.
30883 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30885 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
30886 (rank_for_schedule_debug): Split from ...
30887 (rank_for_schedule): ... this.
30888 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
30889 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
30891 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
30893 * doc/md.texi (Machine Constraints): Alphabetize table by target.
30894 * doc/extend.texi (x86 Variable Attributes): Move section to
30895 correct alphabetization after renaming.
30896 (x86 Type Attributes): Likewise.
30897 (Target Builtins): Re-alphabetize menu.
30898 (x86 Built-in Functions): Move section to correct alphabetization
30900 (x86 transactional memory intrinsics): Likewise.
30901 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
30902 and x86 Windows Options in table and menu.
30903 (x86 Options): Move section to correct alphabetization after
30905 (x86 Windows Options): Likewise.
30907 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
30909 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
30910 preferred names of the architecture and its 32- and 64-bit
30912 * doc/invoke.texi: Likewise.
30913 * doc/md.texi: Likewise.
30915 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
30918 * config/i386/predicates.md (address_no_seg_operand): Reject
30919 non-CONST_INT_P operands in invalid mode.
30921 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
30923 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
30924 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
30925 * config/i386/predicates.md (address_no_seg_operand): Call
30926 address_operand with VOIDmode.
30927 (vsib_address_operand): Ditto.
30928 (address_mpx_no_base_operand): Ditto.
30929 (address_mpx_no_index_operand): Ditto.
30931 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
30934 * lra-constraints.c (original_subreg_reg_mode): New.
30935 (simplify_operand_subreg): Try to simplify subreg of const. Use
30936 original_subreg_reg_mode for it.
30937 (swap_operands): Update original_subreg_reg_mode.
30938 (curr_insn_transform): Set up original_subreg_reg_mode.
30940 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
30943 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
30945 (process_alt_operands): Use it.
30946 (curr_insn_transform): Check the optional reload pseudo class is
30949 2015-01-30 Joseph Myers <joseph@codesourcery.com>
30951 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
30952 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
30954 * toplev.h (init_asm_output): Update comment on use of
30955 UNKNOWN_LOCATION with fatal_error.
30956 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
30957 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
30958 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
30959 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
30960 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
30961 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
30962 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
30963 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
30964 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
30965 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
30966 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
30967 fatal_error changed to pass input_location as first argument.
30969 2015-01-30 Martin Liska <mliska@suse.cz>
30971 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
30972 in #pragma GCC diagnostic guards.
30974 2015-01-30 Richard Biener <rguenther@suse.de>
30976 PR tree-optimization/64829
30977 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
30978 not add a widening conversion pattern but hand off extra
30979 widenings to callers.
30980 (vect_recog_widen_mult_pattern): Handle extra widening produced
30981 by vect_handle_widen_op_by_const.
30982 (vect_recog_widen_shift_pattern): Likewise.
30983 (vect_pattern_recog_1): Remove excess vertical space in dumping.
30984 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
30985 (vect_init_vector_1): Likewise.
30986 (vect_get_vec_def_for_operand): Likewise.
30987 (vect_finish_stmt_generation): Likewise.
30988 (vectorizable_load): Likewise.
30989 (vect_analyze_stmt): Likewise.
30990 (vect_is_simple_use): Likewise.
30992 2015-01-29 Jeff Law <law@redhat.com>
30994 * combine.c (try_combine): Fix typo in comment.
30996 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
30999 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
31000 (rs6000_stack_info): Add assert.
31001 (rs6000_output_savres_externs): New function, split off from...
31002 (rs6000_output_function_prologue): ... here. Do not call it for
31005 2015-01-29 Jeff Law <law@redhat.com>
31008 * combine.c (try_combine): If I0 is a memory load and I3 a store
31009 to a related address, increase the "goodness" of doing a 4-insn
31010 combination with I0-I3.
31011 (make_field_assignment): Handle SUBREGs in the ior+and case.
31013 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
31015 PR tree-optimization/64746
31016 * tree-if-conv.c (mask_exists): New function.
31017 (predicate_mem_writes): Save created mask with given size for further
31019 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
31020 (ifcvt_repair_bool_pattern): Collect all statements that are root
31021 of bool pattern and use iterative algorithm to remove multiple uses
31022 of predicates, display number of required iterations.
31024 2015-01-29 Richard Biener <rguenther@suse.de>
31026 PR tree-optimization/64853
31027 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
31028 stmt will get simulated again.
31029 * tree-ssa-ccp.c (valueize_op_1): Likewise.
31031 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31033 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
31034 return_in_pc. Remove redundant assignments.
31035 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
31036 (arm_expand_epilogue): Don't compare boolean with true in if condition.
31038 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
31040 * config/i386/i386.c (ix86_mode_after): Make static.
31042 2015-01-29 Richard Biener <rguenther@suse.de>
31044 PR tree-optimization/64844
31045 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
31046 dump cost model analysis.
31047 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31048 Do not register adjusted load/store costs here.
31050 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
31051 Uros Bizjak <ubizjak@gmail.com>
31053 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
31054 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
31055 using x86_use_pseudo_pic_reg.
31056 * config/i386/i386.c (ix86_conditional_register_usage): Remove
31057 support for fixed PIC register.
31058 (ix86_use_pseudo_pic_reg): Not static any more.
31060 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
31062 PR middle-end/64805
31063 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
31064 to avoid error in cgraph node verification.
31066 2015-01-29 Marek Polacek <polacek@redhat.com>
31068 * doc/standards.texi: Reflect that the default for C is gnu11.
31070 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
31073 * reorg.c (switch_text_sections_between_p): New function.
31074 (relax_delay_slots): Call it when testing if the jump insn
31075 is removable. Use targetm.can_follow_jump when testing if
31076 the conditional branch can follow an unconditional jump.
31078 2015-01-27 Caroline Tice <cmtice@google.com>
31080 Committing VTV Cywin/Ming patch for Patrick Wollgast
31081 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
31082 if -fvtable-verify=preinit/std is used.
31083 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
31084 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
31085 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
31086 if -fvtable-verify=preinit/std is used.
31087 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
31088 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
31089 if -fvtable-verify=preinit/std is used.
31090 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
31091 * config/i386/mingw32.h (LIB_SPEC): Likewise.
31092 * varasm.c (assemble_variable): Add code to properly set the comdat
31093 section and name for the .vtable_map_vars section in case the
31094 target is PE or COFF.
31096 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
31099 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
31100 make sane BB profile.
31101 (cgraph_node::expand_thunk): Make sane BB profile.
31102 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
31103 * cgraph.h (init_lowered_empty_function): Update prototype.
31104 * config/i386/i386.c (make_resolver_func): Update call.
31105 * predict.c (gate): Disable branch prediction pass if
31106 profile is already there.
31108 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
31110 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
31111 * opth-gen.awk: Likewise.
31112 * common.opt: Mark flag_fp_contract_mode as Optimization.
31114 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
31116 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
31117 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
31119 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
31122 * config/sh/predicates.md (atomic_arith_operand,
31123 atomic_logical_operand): Remove.
31124 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
31125 (atomic_arith_operand_0): New predicate.
31126 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
31127 Use atomic_arith_operand_0 for input values.
31128 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
31129 atomic_compare_and_swap<mode>_soft_gusa,
31130 atomic_compare_and_swap<mode>_soft_tcb,
31131 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
31132 arith_reg_operand instead of register_operand.
31133 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
31134 atomic_arith_operand_0 for newval input.
31135 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
31136 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
31137 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
31138 arith_reg_operand instead of register_operand.
31139 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
31140 fetchop_predicate_1, fetchop_constraint_1_llcs,
31141 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
31142 fetchop_constraint_1_imask): New code iterator attributes.
31143 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
31144 register_operand. Use fetchop_predicate_1.
31145 (atomic_fetch_<fetchop_name>si_hard,
31146 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
31147 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
31148 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
31149 and arith_reg_operand instead of register_operand. Use
31150 fetchop_predicate_1, fetchop_constraint_1_gusa.
31151 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
31152 and arith_reg_operand instead of register_operand. Use
31153 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
31155 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
31156 and arith_reg_operand instead of register_operand. Use
31157 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
31159 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
31160 register_operand. Use atomic_logical_operand_1.
31161 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
31162 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
31163 arith_reg_operand instead of register_operand.
31164 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
31165 Use arith_reg_dest and arith_reg_operand instead of register_operand.
31166 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
31167 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
31168 register_operand. Use fetchop_predicate_1.
31169 (atomic_<fetchop_name>_fetchsi_hard,
31170 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
31171 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31172 fetchop_constraint_1_llcs.
31173 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
31174 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31175 fetchop_constraint_1_gusa.
31176 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
31177 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31178 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
31179 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
31180 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31181 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
31182 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
31183 register_operand. Use atomic_logical_operand_1.
31184 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
31185 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
31186 arith_reg_operand instead of register_operand.
31187 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
31188 arith_reg_operand instead of register_operand. Use logical_operand
31189 and K08. Adjust asm sequence to allow R0 usage.
31190 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
31191 arith_reg_operand instead of register_operand. Use logical_operand
31194 2015-01-28 Jakub Jelinek <jakub@redhat.com>
31197 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
31198 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
31199 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
31200 only get_full_len HOST_WIDE_INTs from get_val () array rather than
31201 all bits in *val_wide.
31203 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
31205 * varpool.c (tls_model_names): Fix names.
31206 (varpool_node::dump): Dump tls- prefix for tls models.
31208 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
31209 Bernd Schmidt <bernds@codesourcery.com>
31210 Nathan Sidwell <nathan@codesourcery.com>
31212 * config/nvptx/mkoffload.c: New file.
31213 * config/nvptx/t-nvptx: Add build rules for it.
31214 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
31215 (extra_programs): Add mkoffload.
31216 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
31218 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
31220 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
31222 PR middle-end/64809
31223 * cfgexpand.c (reorder_operands): Skip debug gimples.
31225 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
31227 PR tree-optimization/64277
31228 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
31229 range info when possible to refine estimation.
31231 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
31233 PR tree-optimization/64718
31234 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
31235 be a 16bit unsigned integer when n->range is 16.
31236 (bswap_replace): Convert src to that type if necessary for all bswap
31237 sizes. Fix rotation right notation in nearby comment. Use bswap_type
31238 set in pass_optimize_bswap::execute ().
31240 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
31242 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
31243 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
31244 integer and floating point variants.
31245 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
31247 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
31249 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
31250 for all vector modes.
31252 2015-01-28 Jakub Jelinek <jakub@redhat.com>
31255 * doc/sourcebuild.texi (comdat_group): Document.
31257 2015-01-28 Terry Guo <terry.guo@arm.com>
31259 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
31261 2015-01-27 David Malcolm <dmalcolm@redhat.com>
31263 * toplev.c (print_version): Add param "show_global_state", and
31264 only print GGC and plugin information if it is true.
31265 (init_asm_output): Pass in "true" for the new param when calling
31267 (process_options): Likewise.
31268 (toplev::main): Likewise.
31269 * toplev.h (print_version): Add new param to decl.
31271 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
31275 * tree.c (lookup_binfo_at_offset): New function.
31276 (get_binfo_at_offset): Use it.
31278 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
31281 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
31282 on vtable being vtable.
31284 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
31286 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
31287 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
31288 -mhotpatch= option.
31289 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
31290 -mno-hotpatch options. Change syntax of -mhotpatch= option.
31291 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
31293 (s390_hotpatch_trampoline_halfwords_max): Renamed.
31294 (s390_hotpatch_hw_max): New name.
31295 (s390_hotpatch_trampoline_halfwords): Renamed.
31296 (s390_hotpatch_hw_before_label): New name.
31297 (get_hotpatch_attribute): Removed.
31298 (s390_hotpatch_hw_after_label): New name.
31299 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
31301 (s390_attribute_table): Ditto.
31302 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
31303 (s390_function_num_hotpatch_hw): New name.
31304 Remove special handling of inline functions and hotpatching.
31305 Return number of nops before and after the function label.
31306 (s390_can_inline_p): Removed.
31307 (s390_asm_output_function_label): Emit a configurable number of nops
31308 after the function label.
31309 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
31310 (TARGET_CAN_INLINE_P) Removed.
31311 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
31313 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31314 Jiong Wang <jiong.wang@arm.com>
31316 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
31318 (cb<optab><mode>1): Likewise.
31319 * config/aarch64/iterators.md (bcond): New define_code_attr.
31321 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31323 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
31326 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31328 * config/s390/s390.c (s390_register_move_cost): Increase costs for
31331 2015-01-27 Richard Biener <rguenther@suse.de>
31333 * tree-vrp.c (update_value_range): Intersect the range with
31334 old recorded SSA name range information.
31336 2015-01-27 Nick Clifton <nickc@redhat.com>
31338 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
31339 BC, DE and HL registers directly, not via AX.
31340 When decrementing the stack pointer by a large amount, transfer SP
31341 into AX and perform the subtraction there.
31342 (rl78_expand_epilogue): Perform the inverse of the above
31345 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31347 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
31349 2015-01-27 Jakub Jelinek <jakub@redhat.com>
31350 Yury Gribov <y.gribov@samsung.com>
31353 * ubsan.c (ubsan_source_location): Refactor code.
31354 (ubsan_type_descriptor): Update type size. Refactor code.
31356 2015-01-27 Richard Biener <rguenther@suse.de>
31358 PR tree-optimization/56273
31359 PR tree-optimization/59124
31360 PR tree-optimization/64277
31361 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
31362 from the first VRP pass.
31364 2015-01-27 Jakub Jelinek <jakub@redhat.com>
31367 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
31368 handle the first argument in the same loop as all the other arguments.
31370 PR rtl-optimization/61058
31371 * jump.c (cleanup_barriers): Update basic block boundaries
31372 if BLOCK_FOR_INSN is non-NULL on PREV.
31374 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
31376 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
31377 bounds narrowing, already instrumented calls and calls to
31378 not instrumentable functions.
31380 2015-01-27 Jakub Jelinek <jakub@redhat.com>
31382 PR tree-optimization/64807
31383 * wide-int.cc (wi::divmod_internal): Clear
31384 b_dividend[dividend_blocks_needed].
31386 2015-01-26 DJ Delorie <dj@redhat.com>
31388 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
31389 volatile memory references.
31391 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
31394 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
31396 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
31397 shifts if it already fits into K08.
31399 2015-01-26 Jakub Jelinek <jakub@redhat.com>
31402 * ipa-inline.c (inline_small_functions): Print "unknown" even
31403 if edge->call_stmt is non-NULL, but has builtins or unknown
31406 PR middle-end/64421
31407 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
31408 with asterisk, skip the first character.
31410 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
31413 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
31416 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
31419 * config/i386/i386.md (*movdi_internal): Also check operand 0
31420 to determine TYPE_LEA operand.
31421 (*movsi_internal): Ditto.
31423 2015-01-26 Jakub Jelinek <jakub@redhat.com>
31425 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
31426 OPTION_MASK_QUAD_MEMORY_ATOMIC.
31428 2015-01-26 Renlin Li <renlin.li@arm.com>
31430 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
31432 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
31435 2015-01-26 Richard Biener <rguenther@suse.de>
31437 PR middle-end/64764
31438 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
31439 combining two BIT_AND_EXPR predicates.
31441 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
31444 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
31446 2015-01-26 Terry Guo <terry.guo@arm.com>
31448 * config/arm/arm.c (arm_file_start): Update the assignment of
31449 Tag_ABI_HardFP_use.
31451 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
31453 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
31455 config/arm/arm.md: Include the new Cortex-A57 model.
31456 (generic_sched): Don't use generic_sched when tuning for
31459 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
31460 Uros Bizjak <ubizjak@gmail.com>
31462 * config/i386/i386.c (get_builtin_code_for_version): Add
31463 support for BMI and BMI2 multiversion functions.
31465 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31467 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
31468 (extract_bit_field): Likewise.
31469 (extract_low_bits): Likewise.
31470 (expand_mult): Likewise.
31471 (expand_mult_highpart_adjust): Likewise.
31473 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
31475 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
31476 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
31477 * config/i386/i386.c (processor_model): Add
31478 M_INTEL_COREI7_BROADWELL.
31479 (arch_names_table): Add "broadwell".
31481 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
31490 * config/sh/sh-protos.h
31491 (sh_extending_set_of_reg::can_use_as_unextended_reg,
31492 sh_extending_set_of_reg::use_as_unextended_reg,
31493 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
31494 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
31495 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
31496 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
31497 (sh_treg_insns): New class.
31498 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
31499 (scope_counter): New class.
31500 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
31501 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
31502 sh_extending_set_of_reg::can_use_as_unextended_reg,
31503 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
31504 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
31505 sh_split_treg_set_expr): New functions.
31506 (addsubcosts): Handle treg_set_expr.
31507 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
31508 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
31509 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
31510 (sh_insn_operands_modified_between_p): Make non-static.
31511 * config/sh/predicates.md (zero_extend_movu_operand): Allow
31512 simple_mem_operand in addition to displacement_mem_operand.
31513 (zero_extend_operand): Don't allow zero_extend_movu_operand.
31514 (treg_set_expr, treg_set_expr_not_const01,
31515 arith_reg_or_treg_set_expr): New predicates.
31516 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
31517 arith_or_int_operand instead of logical_operand. Convert to
31518 insn_and_split. Try to optimize constant operand in splitter.
31519 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
31520 (*tstqi_t_zero): Delete.
31521 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
31522 (tstsi_t_and_not): Delete.
31523 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
31524 Convert to insn_and_split.
31525 (unnamed split, tstsi_t_zero_extract_xor,
31526 tstsi_t_zero_extract_subreg_xor_little,
31527 tstsi_t_zero_extract_subreg_xor_big): Delete.
31528 (*tstsi_t_shift_mask): New insn_and_split.
31529 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
31530 to recombine with surrounding insns when splitting.
31531 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
31532 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
31533 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
31534 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
31535 (*cbranch_div0s: Delete.
31536 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
31537 Try to recombine with surrounding insns when splitting. Add operand
31539 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
31540 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
31541 *addc_r_r_msb, *addc_2r_msb): Delete.
31542 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
31544 (*addc_negreg_t): New insn_and_split.
31545 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
31546 Try to recombine with surrounding insns when splitting.
31547 Add operand order variants.
31548 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
31549 insn_and_split patterns.
31550 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
31551 surrounding insns when splitting.
31552 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
31553 (*rotcl): Likewise. Add zero_extract variant.
31554 (*ashrsi2_31): New insn_and_split.
31555 (*negc): Convert to insn_and_split. Use treg_set_expr.
31556 (*zero_extend<mode>si2_disp_mem): Update comment.
31557 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
31559 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
31560 with surrounding insns when splitting.
31561 (any_treg_expr_to_reg): New insn_and_split.
31562 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
31563 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
31564 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
31565 *zero_extract_2): New single bit zero extract patterns.
31566 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
31567 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
31568 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
31569 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
31571 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
31572 register_operand for set source.
31574 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
31576 * i386.opt (prefetch_sse): New targetsave.
31577 * i386.c (ix86_function_specific_save): Save prefetch_sse.
31578 (ix86_function_specific_restore): Restore prefetch_sse and initialize
31579 ix86_cost/ix86_tune_cost.
31581 2015-01-23 David Malcolm <dmalcolm@redhat.com>
31583 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
31584 Support the JIT by using 0 as the language type.
31586 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
31589 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
31590 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
31591 (mark_regno_live, process_bb_lives): Pass new parameter value to
31592 make_hard_regno_born.
31594 2015-01-23 Jakub Jelinek <jakub@redhat.com>
31596 PR rtl-optimization/63637
31597 PR rtl-optimization/60663
31598 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
31599 if elt->cost is MAX_COST for ASM_OPERANDS.
31600 (find_sets_in_insn): Fix up comment typo.
31601 (cse_insn): Don't set src_volatile for all non-volatile
31602 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
31603 or with "memory" clobber. Set elt->cost to MAX_COST
31604 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
31605 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
31607 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
31609 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
31612 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
31614 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
31615 libgcc/config/i386/elf-lib.h.
31617 2015-01-23 Jakub Jelinek <jakub@redhat.com>
31620 * gcc.c (print_configuration): Don't print a blank line at the end
31622 (run_attempt): ... but here unstead.
31624 PR middle-end/64734
31625 * omp-low.c (scan_sharing_clauses): Don't ignore
31626 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
31627 on target data/update constructs.
31629 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
31632 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
31633 (DEBUG_RELOAD): Removed define.
31634 (m32c_limit_reload_class): Enable traces with if DEBUG0.
31635 (m32c_function_arg): Added a type cast.
31636 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
31637 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
31638 * config/m32c/bitops.md (andqi3_16): Likewise.
31639 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
31640 (push_a01_l): Likewise.
31642 2015-01-23 David Malcolm <dmalcolm@redhat.com>
31645 * main.c (main): Construct toplev instances with init_signals=true.
31646 * toplev.c (general_init): Add param "init_signals", and use it to
31647 conditionalize the calls to signal and host_hooks.extra_signals.
31648 (toplev::toplev): Add param "init_signals".
31649 (toplev::main): When invoking general_init, pass m_init_signals
31650 to control whether signal-handlers are installed.
31651 * toplev.h (toplev::toplev): Add param "init_signals".
31652 (toplev::m_init_signals): New field.
31654 2015-01-23 David Malcolm <dmalcolm@redhat.com>
31657 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
31658 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
31659 latter may be affected by the former (e.g. on i686).
31661 2015-01-23 Martin Liska <mliska@suse.cz>
31663 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
31664 false positive during profiledbootstrap.
31666 2015-01-23 Tom de Vries <tom@codesourcery.com>
31669 * lto-opts.c (lto_write_options): Output non-explicit conservative
31671 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
31672 (append_compiler_options): Pass -fopenacc through.
31674 2015-01-23 Tom de Vries <tom@codesourcery.com>
31677 * lto-opts.c (lto_write_options): Output non-explicit conservative
31679 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
31680 (append_compiler_options): Pass -fopenmp through.
31682 2015-01-23 Jakub Jelinek <jakub@redhat.com>
31685 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
31688 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
31689 * diagnostic.def (DK_ICE_NOBT): New kind.
31690 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
31691 like DK_ICE, but never print backtrace.
31692 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
31693 (internal_error_no_backtrace): New function.
31694 * gcc.c (execute): Use internal_error_no_backtrace instead of
31697 2015-01-22 Jeff Law <law@redhat.com>
31700 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
31701 improve code density for small immediate to memory case.
31702 (insv): Better handle bitfield assignments when the field is
31703 being set to all ones.
31704 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
31707 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31708 Jakub Jelinek <jakub@redhat.com>
31710 PR middle-end/64729
31711 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
31712 for !TARGET_LIBC_PROVIDES_SSP version and
31713 -fstack-protector-{all,strong,explicit} otherwise.
31714 * config/freebsd.h (LINK_SSP_SPEC): Handle
31715 -fstack-protector-{strong,explicit}.
31717 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
31718 H.J. Lu <hongjiu.lu@intel.com>
31721 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
31724 2015-01-22 Wei Mi <wmi@google.com>
31726 PR rtl-optimization/64557
31727 * dse.c (record_store): Call get_addr for mem_addr.
31728 (check_mem_read_rtx): Likewise.
31730 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
31732 * fold-const.c (const_binop): Add early return for non-tcc_binary.
31734 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
31736 * toplev.c (init_local_tick): Process the failure when read
31737 fails for random_seed.
31739 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
31740 'pretty_name' to avoid memory overflow.
31742 2015-01-22 Richard Biener <rguenther@suse.de>
31744 PR middle-end/64728
31745 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
31746 abnormal coalescing on undefined SSA names.
31748 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
31752 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
31754 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
31756 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
31758 PR middle-end/63325
31759 * fold-const.c (fold_checksum_tree): Don't include value of
31760 expr->decl_with_vis.symtab_node in the checksum.
31762 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31764 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
31766 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
31769 * gcc.c (insert_comments): New function.
31770 (try_generate_repro): Call it.
31771 (append_text): Removed.
31773 2015-01-22 Richard Biener <rguenther@suse.de>
31775 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
31776 with IL incompatible options. Properly honor user optimize
31779 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
31781 PR rtl-optimization/64682
31782 * combine.c (distribute_notes): When moving a death note for
31783 a register that is set in the new I2, make sure to put it
31784 before that new I2.
31786 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
31788 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
31789 not TARGET_DEFAULT.
31791 2015-01-21 Jakub Jelinek <jakub@redhat.com>
31794 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
31795 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
31796 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
31799 * doc/invoke.texi (-fsanitize=vptr): Document.
31801 PR rtl-optimization/62078
31802 * dse.c: Include cfgcleanup.h.
31803 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
31804 anything call purge_all_dead_edges and cleanup_cfg at the end
31807 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
31809 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
31812 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
31814 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
31817 2015-01-21 David Sherwood <david.sherwood@arm.com>
31818 Tejas Belagod <Tejas.Belagod@arm.com>
31820 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
31821 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
31822 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
31825 2015-01-21 David Sherwood <david.sherwood@arm.com>
31826 Tejas Belagod <Tejas.Belagod@arm.com>
31828 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
31829 (aarch64_reverse_mask): New decls.
31830 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
31831 (insn_count): New mode_attr.
31832 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
31833 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
31834 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
31835 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
31836 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
31837 (aarch64_simd_st4): New patterns.
31838 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
31839 (aarch64_reverse_mask): New functions.
31841 2015-01-21 Alan Hayward <alan.hayward@arm.com>
31843 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
31845 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
31846 addressing modes for BE.
31847 (aarch64_print_operand): Add 'R' specifier.
31848 (aarch64_simd_disambiguate_copy): Delete.
31849 (aarch64_simd_emit_reg_reg_move): New function.
31850 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
31851 in define_splits for structural moves.
31852 (mov<mode>): Use less restrictive predicates.
31853 (*aarch64_mov<mode>): Simplify and only allow for LE.
31854 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
31856 2015-01-21 Alan Hayward <alan.hayward@arm.com>
31858 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
31860 2015-01-21 Richard Henderson <rth@redhat.com>
31863 * ccmp.c (used_in_cond_stmt_p): Remove.
31864 (expand_ccmp_expr): Don't use it.
31866 2015-01-21 Nick Clifton <nickc@redhat.com>
31868 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
31871 2015-01-21 Richard Biener <rguenther@suse.de>
31873 PR middle-end/64313
31874 * tree-core.h (builtin_info, builtin_info_type): Turn from
31875 an object with two arrays into an array of an object with
31876 decl and two flags, implicit_p and declared_p.
31877 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
31878 set_builtin_decl, set_builtin_decl_implicit_p,
31879 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
31880 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
31881 * builtins.c (builtin_info): Adjust.
31882 * gimplify.c (gimplify_addr_expr): References to builtins
31883 that have been declared by the user makes them eligible for
31884 use by the compiler. Call set_builtin_decl_implicit_p on them.
31886 2015-01-20 Jeff Law <law@redhat.com>
31889 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
31890 allow pc-relative addresses in operand predicates or constraints.
31892 2015-01-21 Bin Cheng <bin.cheng@arm.com>
31894 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
31895 neon on aarch32 processors for stringops.
31897 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31900 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
31902 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31905 * ipa-inline.c: Include lto-streamer.h
31906 (report_inline_failed_reason): Output source file differences and
31907 flags on optimization/target node mismatch.
31908 (can_inline_edge_p): Consider caller to be the outer inline function;
31909 be less restrictive about matching opimize and optimize_size attributes.
31910 (inline_account_function_p): Break out from ...
31911 (inline_small_functions): ... here.
31912 * ipa-inline-transform.c (clone_inlined_nodes): Use
31913 inline_account_function_p.
31914 (inline_call): Use optimize attribution; use inline_account_function_p.
31915 (inline_transform): Use opt_for_fn.
31916 * ipa-inline.h (inline_account_function_p): Declare.
31918 2015-01-20 Jakub Jelinek <jakub@redhat.com>
31921 * dwarf2out.c (decl_piece_node): Don't put bitsize into
31922 mode if bitsize <= 0.
31923 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
31924 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
31925 sizes and positions.
31927 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
31929 * config/nios2/nios2.c (nios2_asm_file_end): Implement
31930 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
31932 (TARGET_ASM_FILE_END): Define.
31934 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
31936 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
31937 (struct tune_params): Use the enum.
31938 * arm.c (arm_*_tune): Update.
31939 (arm_option_override): Update.
31941 2015-01-20 Richard Biener <rguenther@suse.de>
31944 * ipa-reference.c (add_static_var): Inline ...
31945 (analyze_function): ... here after splitting out from ...
31946 (is_proper_for_analysis): ... this.
31948 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
31951 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
31952 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
31953 replace the conditional with it's true branch.
31954 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
31955 (arm_lra_p): Remove.
31957 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
31959 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
31961 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31963 * config/tilegx/mul-tables.c: Move symtab.h include after
31964 coretypes.h include.
31965 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
31966 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
31967 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
31968 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
31969 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
31971 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
31975 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
31977 PR rtl-optimization/64081
31978 * loop-iv.c (def_pred_latch_p): New function.
31979 (latch_dominating_def): Allow specific cases with non-single
31981 (iv_get_reaching_def): Likewise.
31982 (check_complex_exit_p): New function.
31983 (check_simple_exit): Use check_complex_exit_p to allow certain cases
31984 with exits not executing on any iteration.
31986 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31989 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
31990 to set branch cost.
31992 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31995 * i386.c (gate): Check flag_expensive_optimizations and
31997 (ix86_option_override_internal): Drop optimize_size condition
31998 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
31999 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
32000 MASK_PREFER_AVX128.
32001 (ix86_avx256_split_vector_move_misalign,
32002 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
32003 * sse.md (all uses of TARGET_PREFER_AVX128): Add
32004 optimize_insn_for_speed_p check.
32006 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
32008 * config/mips/mips.h (FP_ASM_SPEC): New define.
32009 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
32012 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
32015 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
32016 nullptr for insn when reaching the first insn.
32017 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
32018 (sh_insn_operands_modified_between_p): Add nullptr check.
32019 (sh_find_extending_set_of_reg): Fix log message. Don't accept
32020 sign extending mem load if the insn contains any UNSPEC or
32023 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32025 * params.def (inline-unit-growth): Drop to 15%.
32026 * invoke.texi (inline-unit-growth): Document change.
32028 2015-01-19 Martin Liska <mliska@suse.cz>
32031 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
32032 function for second argument of OBJ_TYPE_REF.
32034 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32037 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
32038 whether function is an alias.
32040 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32042 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
32045 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
32047 PR rtl-optimization/64671
32048 * lra-remat.c (operand_to_remat): Don't consider jump and call
32051 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
32054 * config/rs6000/default64.h: Include rs6000-cpus.def.
32055 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
32056 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
32057 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
32059 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
32061 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
32062 pseudo-op to specify assembler dialect.
32064 2015-01-19 Martin Liska <mliska@suse.cz>
32067 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
32068 Handle safe potentially removed nodes during filtering.
32070 2015-01-19 Martin Liska <mliska@suse.cz>
32072 * doc/extend.texi (no_icf): Add new attribute description.
32073 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
32074 where the pass attempts to merge a function with no_icf attribute.
32076 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32079 * doc/md.texi (ARM Options): Document register constraints.
32081 2015-01-19 Jiong Wang <jiong.wang@arm.com>
32082 Andrew Pinski <apinski@cavium.com>
32085 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
32086 (ashl<mode>3): Don't expand if operands[2] is not constant.
32088 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32091 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
32092 Match xor-and-xor RTL pattern.
32094 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
32096 PR rtl-optimization/64081
32097 * loop-iv.c (def_pred_latch_p): New function.
32098 (latch_dominating_def): Allow specific cases with non-single
32100 (iv_get_reaching_def): Likewise.
32101 (check_complex_exit_p): New function.
32102 (check_simple_exit): Use check_complex_exit_p to allow certain cases
32103 with exits not executing on any iteration.
32105 2015-01-19 Jakub Jelinek <jakub@redhat.com>
32107 * common.opt (fgraphite): Fix a typo.
32109 2015-01-19 Felix Yang <felix.yang@huawei.com>
32111 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
32113 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
32114 uminp, smax_nanp, smin_nanp): New builtins.
32115 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
32116 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
32117 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
32118 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
32119 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
32120 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
32121 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
32122 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
32123 vpminnms_f32): Rewrite using builtin functions.
32125 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
32128 * omp-low.c (offload_symbol_decl): Remove variable.
32129 (get_offload_symbol_decl): Remove function.
32130 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
32131 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
32132 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
32133 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
32134 BUILT_IN_GOACC_UPDATE don't pass it at all.
32136 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
32138 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
32141 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
32143 * ipa-chkp.c (chkp_produce_thunks): Add early param
32144 to split thunks production into two passes. Keep
32145 'always_inline' function bodies after the first pass.
32146 (pass_data_ipa_chkp_early_produce_thunks): New.
32147 (pass_ipa_chkp_early_produce_thunks): New.
32148 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
32149 chkp_produce_thunks signature.
32150 (make_pass_ipa_chkp_early_produce_thunks): New.
32151 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
32152 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
32153 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
32155 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
32157 * cgraph.c (cgraph_node::dump): Dump profile flags.
32159 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
32162 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
32163 reg appear first in the parallel.
32165 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
32167 * ipa-reference.c (set_reference_optimization_summary,
32168 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
32170 (ignore_module_statics): New static var.
32171 (propagate_bits): If ipa-reference is disabled, do not look into local
32173 (analyze_function): Disable analysis when ipa_reference is disabled.
32174 (generate_summary): Do not dump when reference is disabled;
32175 collect vars accessed from functions with ipa-reference disabled.
32176 (get_read_write_all_from_node): When ipa-reference is disabled, use the
32178 (gate): Enable for LTO.
32179 (ignore_edge_p): New function.
32180 (propagate): Skip functions w/o ipa-reference analysis.
32181 * optc-save-gen.awk: Handle optimize_debug correctly.
32182 * opth-gen.awk: Likewise.
32183 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
32184 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
32185 fira-share-save-slots, fira-share-spill-slots,
32186 fmodulo-sched-allow-regmoves, fpartial-inlining,
32187 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
32188 ftracer, ftree-parallelize-loops, fassociative-math,
32189 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
32191 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
32192 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
32194 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
32197 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
32200 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
32202 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
32204 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
32206 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
32207 Remove duplicate option listings.
32209 2015-01-18 Felix Yang <felix.yang@huawei.com>
32211 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
32212 (autofdo_source_profile::get_callsite_total_count,
32213 function_instance::get_function_instance_by_decl,
32214 string_table::get_index, string_table::get_index_by_decl,
32215 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
32216 Fix comment typos. Reformatting and minor code rearrangement.
32218 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
32220 * config/rs6000/rs6000.md (probe_stack): Delete.
32221 (probe_stack_address): New.
32223 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
32225 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
32226 to test for 32-bit ABIs, not !TARGET_POWERPC64.
32228 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
32230 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
32231 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
32232 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
32234 (rs6000_libcall_value): Use the new function.
32236 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
32238 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
32240 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
32242 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
32243 implement a more precise life analysis for it during backward scan.
32245 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
32247 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
32249 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
32251 PR rtl-optimization/52773
32252 * calls.c (emit_library_call_value): When pushing arguments use
32253 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
32254 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
32255 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
32257 2015-01-17 Jeff Law <law@redhat.com>
32259 PR rtl-optimization/32790
32260 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
32261 not ZERO_EXTEND in SET_DESTs.
32263 2015-01-17 Alan Modra <amodra@gmail.com>
32265 * cprop.c (do_local_cprop): Revert last change.
32267 2015-01-16 DJ Delorie <dj@redhat.com>
32268 Nick Clifton <nickc@redhat.com>
32270 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
32271 (addhi3_real): Likewise. Fix [HL+0] syntax.
32272 (subqi3_real): Likewise.
32273 (subhi3_real): Likewise.
32274 (cbranchqi4_real): Likewise. Allow saddr,#imm.
32275 (cbranchhi4_real): Likewise.
32276 (cbranchhi4_real_inverted): Likewise.
32277 (cbranchsi4_real_lt): Likewise.
32278 (cbranchsi4_real_ge): Likewise.
32279 (cbranchsi4_real_ge): Likewise.
32280 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
32281 (sub<mode>3_virt): Likewise.
32282 (cbranchqi4_virt): Likewise.
32283 (cbranchhi4_virt): Likewise.
32284 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
32285 always use '[reg+imm]' even when imm is zero.
32286 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
32287 (rl78_general_operand): New.
32288 (rl78_nonimmediate_operand): New.
32289 (rl78_nonfar_operand): Use them.
32290 (rl78_nonfar_nonimm_operand): Likewise.
32291 (rl78_stack_based_mem): Fix.
32292 * config/rl78/constraints.md (Ibqi): New.
32297 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
32298 (iorqi3): Likewise.
32299 (xorqi3): Likewise.
32300 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
32302 * config/rl78/constrains (Qs8): New constraint.
32303 * config/rl78/rl78.c (rl78_flags_already_set): New function.
32304 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
32305 * config/rl78/rl78-real.md (update_Z): New attribute.
32306 Update patterns to set it.
32307 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
32308 shorter compare and branch sequence can be used.
32309 (cbranchhi4_real): Likewise.
32310 (cbranchhi4_real_inverted): Likewise.
32312 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
32313 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
32315 * config/rl78/rl78.c (rl78_get_name_encoding): New.
32316 (rl78_option_override): Allow -mes0 only if C.
32317 (characterize_address): Support subregs of symbol_refs.
32318 (rl78_addr_space_address_mode): Move. Add __near.
32319 (rl78_far_p): Likewise.
32320 (rl78_addr_space_pointer_mode): Likewise.
32321 (rl78_as_legitimate_address): Likewise.
32322 (rl78_addr_space_subset_p): Likewise.
32323 (rl78_addr_space_convert): Likewise.
32324 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
32325 symbols with -mes0.
32326 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
32328 (rl78_alloc_physical_registers_op1): Change logic to prefer
32329 symbol[BC] addressing.
32330 (frodata_section): New.
32331 (rl78_asm_init_sections): Initialize it.
32332 (rl78_select_section): Put __far readonly symbols in .frodata.
32333 (rl78_make_type_far): New.
32334 (rl78_insert_attributes): Force all readonly symbols to be
32336 (rl78_asm_out_integer): New.
32337 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
32338 * config/rl78/rl78.opt (-mes0): New.
32340 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
32341 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
32342 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
32343 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
32344 (rl78_saddr_p): New.
32345 (rl78_output_aligned_common): New.
32346 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
32347 (rl78_handle_saddr_attribute): New.
32348 (rl78_handle_naked_attribute): New.
32349 (rl78_attribute_table): Add saddr.
32350 (rl78_print_operand_1): Don't print '!' on saddr operands.
32351 (rl78_print_operand_1): Strip encodings.
32353 (rl78_strip_name_encoding): New.
32354 (rl78_attrlist_to_encoding): New.
32355 (rl78_encode_section_info): New.
32356 (rl78_asm_init_sections): New.
32357 (rl78_select_section): New.
32358 (rl78_output_labelref): New.
32359 (rl78_output_aligned_common): New.
32360 (rl78_asm_out_integer): New.
32361 (rl78_asm_ctor_dtor): New.
32362 (rl78_asm_constructor): New.
32363 (rl78_asm_destructor): New.
32365 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
32366 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
32367 (transcode_memory_rtx): Update.
32368 (rl78_expand_epilogue): Use A_REG instead of 0.
32370 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32372 * config/arm/arm-protos.h (struct tune_params): New field
32373 sched_autopref_queue_depth.
32374 * config/arm/arm.c (sched-int.h): Include header.
32375 (arm_first_cycle_multipass_dfa_lookahead_guard,)
32376 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
32377 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
32378 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
32379 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
32380 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
32381 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
32382 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
32383 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
32384 * config/arm/t-arm (arm.o): Update.
32385 * haifa-sched.c (update_insn_after_change): Update.
32386 (rank_for_schedule): Use auto-prefetcher model, if requested.
32387 (autopref_multipass_init): New static function.
32388 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
32389 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
32390 variable for debug dumps.
32391 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
32392 (autopref_multipass_dfa_lookahead_guard): New global function that
32393 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
32394 (init_h_i_d): Update.
32395 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
32396 * sched-int.h (enum autopref_multipass_data_status): New const enum.
32397 (autopref_multipass_data_): Structure for auto-prefetcher data.
32398 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
32399 (struct _haifa_insn_data:autopref_multipass_data): New field.
32400 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
32401 (autopref_multipass_dfa_lookahead_guard): Declare.
32403 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32405 * rtlanal.c (get_base_term): Handle SCRATCH.
32407 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32409 * config/aarch64/aarch64.c
32410 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
32411 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
32413 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
32414 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
32416 2015-01-17 Alan Modra <amodra@gmail.com>
32418 * cprop.c (do_local_cprop): Disallow replacement of fixed
32421 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32424 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
32427 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
32429 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
32430 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
32432 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32434 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
32435 * config/arm/thumb1.md: ... Here.
32437 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32439 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
32440 TImode for TARGET_32BIT.
32442 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32444 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
32445 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
32447 (rs6000_abi_word_mode): New function.
32449 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32451 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
32452 instead of UNITS_PER_WORD to describe the size of stack slots.
32454 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32456 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
32457 as rs6000_promote_function_mode. Move comment to there.
32458 (rs6000_promote_function_mode): New function.
32460 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32462 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
32463 -mpowerpc64 is active.
32465 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
32467 PR middle-end/64353
32468 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
32471 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
32473 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
32474 introduced in revision 219724.
32476 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32477 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32480 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
32481 destination is not a GP reg.
32482 (*movdi_aarch64): Likewise.
32484 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
32487 * config/rs6000/default64.h: Revert ISA change.
32489 2015-01-16 Richard Biener <rguenther@suse.de>
32491 PR middle-end/64614
32492 * tree-ssa-uninit.c: Include tree-cfg.h.
32493 (MAX_SWITCH_CASES): New define.
32494 (convert_control_dep_chain_into_preds): Handle switch statements.
32495 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
32496 (normalize_one_pred_1): Do not split bit-manipulations.
32499 2015-01-16 Richard Biener <rguenther@suse.de>
32501 PR tree-optimization/64568
32502 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
32503 complex load rewriting for TARGET_MEM_REFs.
32505 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
32507 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
32509 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
32512 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
32514 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
32515 (aarch64_lra_p): Remove.
32517 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
32520 * ipa-chkp.h (chkp_instrumentable_p): New.
32521 * ipa-chkp.c: Include tree-inline.h.
32522 (chkp_instrumentable_p): New.
32523 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
32524 Fix processing of not instrumentable functions.
32525 (chkp_versioning): Use chkp_instrumentable_p. Warn about
32526 not instrumentable functions.
32527 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
32528 chkp_instrumentable_p.
32529 * tree-inline.h (copy_forbidden): New.
32530 * tree-inline.c (copy_forbidden): Not static anymore.
32532 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32534 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
32537 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
32539 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
32540 type OP_OUT to OP_INOUT.
32542 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
32544 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
32545 (high x) y) to y if x and y have the same base.
32547 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
32549 * config/arm/cortex-a57.md: New.
32550 * config/aarch64/aarch64.md: Include it.
32551 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
32552 * config/aarch64/aarch64-tune.md: Regenerate.
32554 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
32557 * ccmp.c (expand_ccmp_next): New function.
32558 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
32559 and compare insn sequence.
32560 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
32561 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
32562 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
32563 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
32564 (*ccmp_ior): Changed to ccmp_ior<mode>.
32565 (cmp<mode>): New pattern.
32566 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
32568 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
32570 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
32572 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
32573 _mm256_bsrli_epi128): New.
32574 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
32576 2015-01-15 Jiong Wang <jiong.wang@arm.com>
32578 * expmed.c (store_bit_field_using_insv): Improve warning message.
32579 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
32581 2015-01-15 Jiong Wang <jiong.wang@arm.com>
32583 PR rtl-optimization/64011
32584 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
32585 there is partial overflow.
32587 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32589 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
32591 (nds32_expand_epilogue_v3pop): Likewise.
32592 * config/nds32/nds32.md (sibcall): Define this for sibling call
32594 (sibcall_register): Likewise.
32595 (sibcall_immediate): Likewise.
32596 (sibcall_value): Likewise.
32597 (sibcall_value_register): Likewise.
32598 (sibcall_value_immediate): Likewise.
32599 (sibcall_epilogue): Likewise.
32600 (epilogue): Pass false to indicate this is not a sibcall epilogue.
32601 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
32602 (nds32_expand_epilogue_v3pop): Likewise.
32604 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32606 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
32607 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
32608 (return_internal): New.
32609 (return): Define this named pattern.
32610 (simple_return): Define this named pattern.
32611 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
32612 pattern instead of unspec_volatile_func_return.
32613 (nds32_expand_epilogue_v3pop): Likewise.
32614 (nds32_can_use_return_insn): New function.
32616 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32618 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
32619 * config/nds32/nds32.md (pop25return): New.
32620 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
32621 pop25return pattern.
32623 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32625 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
32626 -mforbid-fp-as-gp, and -mex9 options.
32628 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32630 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
32631 remove -mgp-direct option.
32633 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
32635 * doc/invoke.texi (--param early-inlining-insns): Update default value.
32636 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
32638 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
32640 * ipa-inline.c (inline_small_functions): Work around hints
32643 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
32646 * doc/invoke.texi (Option Summary): Document new Nios II
32648 (Nios II Options): Likewise.
32649 * config/nios2/nios2.opt: Add -mgpopt= option support.
32650 Modify existing -mgpopt and -mno-gpopt options to be aliases.
32651 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
32652 * config/nios2/nios2.c (nios2_option_override): Adjust
32653 -mgpopt defaulting.
32654 (nios2_in_small_data_p): Return true for explicit small data
32655 sections even with -G0.
32656 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
32659 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
32662 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
32664 (inline_call): Fix removal of aliases.
32666 2015-01-15 Jakub Jelinek <jakub@redhat.com>
32668 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
32669 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
32670 * opts.c (common_handle_option): Add -fsanitize=vptr.
32671 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
32672 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
32673 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
32674 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
32675 (ubsan_expand_vptr_ifn): New prototype.
32676 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
32677 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
32678 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
32679 expand_LOOP_VECTORIZED): Make argument nameless, remove
32681 (expand_UBSAN_VPTR): New function.
32682 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
32684 (UBSAN_VPTR): New internal function.
32685 * sanopt.c (tree_map_traits): Renamed to ...
32686 (sanopt_tree_map_traits): ... this.
32687 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
32688 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
32689 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
32690 (maybe_optimize_ubsan_vptr_ifn): New function.
32691 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
32692 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
32694 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
32695 internal calls like pure functions for aliasing, even when they
32696 have other side-effects that prevent making them ECF_PURE.
32697 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
32698 (ubsan_expand_vptr_ifn): New function.
32700 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
32702 PR rtl-optimization/64110
32703 * stmt.c (parse_output_constraint): Process '^' and '$'.
32704 (parse_input_constraint): Ditto.
32705 * lra-constraints.c (process_alt_operands): Process the new
32707 * ira-costs.c (record_reg_classes): Process the new constraint
32709 * genoutput.c (indep_constraints): Add '^' and '$'.
32710 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
32711 * doc/md.texi: Add description of the new constraints.
32713 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
32714 Bernd Schmidt <bernds@codesourcery.com>
32715 Cesar Philippidis <cesar@codesourcery.com>
32716 James Norris <jnorris@codesourcery.com>
32717 Tom de Vries <tom@codesourcery.com>
32718 Ilmir Usmanov <i.usmanov@samsung.com>
32719 Dmitry Bocharnikov <dmitry.b@samsung.com>
32720 Evgeny Gavrin <e.gavrin@samsung.com>
32721 Jakub Jelinek <jakub@redhat.com>
32723 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
32724 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
32725 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
32726 New function types.
32727 * builtins.c: Include "gomp-constants.h".
32728 (expand_builtin_acc_on_device): New function.
32729 (expand_builtin, is_inexpensive_builtin): Handle
32730 BUILT_IN_ACC_ON_DEVICE.
32731 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
32733 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
32735 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
32736 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
32737 i386/intelmic-offload.h.
32738 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
32739 to libgomp and its dependencies.
32740 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
32741 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
32742 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
32743 * config/ia64/hpux.h (LIB_SPEC): Likewise.
32744 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
32745 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
32746 * doc/generic.texi: Update for OpenACC changes.
32747 * doc/gimple.texi: Likewise.
32748 * doc/invoke.texi: Likewise.
32749 * doc/sourcebuild.texi: Likewise.
32750 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
32751 GF_OMP_FOR_KIND_OACC_LOOP.
32752 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
32753 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
32754 GF_OMP_TARGET_KIND_OACC_UPDATE,
32755 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
32757 * gimple.c: Update comments for OpenACC changes.
32758 * gimple.def: Likewise.
32759 * gimple.h: Likewise.
32760 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
32761 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
32762 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
32763 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
32764 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
32766 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
32767 * gimplify.c: Include "gomp-constants.h".
32768 Update comments for OpenACC changes.
32769 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
32770 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
32771 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
32772 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
32773 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
32774 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
32775 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
32776 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
32777 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
32779 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
32780 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
32781 OMP_CLAUSE_SET_MAP_KIND.
32782 (gimplify_oacc_cache): New function.
32783 (gimplify_omp_for): Handle OACC_LOOP.
32784 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
32786 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
32787 OACC_EXIT_DATA, OACC_UPDATE.
32788 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
32789 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
32790 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
32791 (gimplify_body): Consider flag_openacc next to flag_openmp.
32792 * lto-streamer-out.c: Include "gomp-constants.h".
32793 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
32794 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
32795 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
32796 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
32797 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
32798 (BUILT_IN_ACC_ON_DEVICE): New builtins.
32799 * omp-low.c: Include "gomp-constants.h".
32800 Update comments for OpenACC changes.
32801 (struct omp_context): Add reduction_map, gwv_below, gwv_this
32803 (extract_omp_for_data, use_pointer_for_field, install_var_field)
32804 (new_omp_context, delete_omp_context, scan_sharing_clauses)
32805 (create_omp_child_function, scan_omp_for, scan_omp_target)
32806 (check_omp_nesting_restrictions, lower_reduction_clauses)
32807 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
32808 Update for OpenACC changes.
32809 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
32810 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
32811 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
32812 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
32813 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
32814 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
32816 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
32817 Handle GF_OMP_FOR_KIND_OACC_LOOP.
32818 (expand_omp_target, lower_omp_target): Handle
32819 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
32820 GF_OMP_TARGET_KIND_OACC_UPDATE,
32821 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
32822 GF_OMP_TARGET_KIND_OACC_DATA.
32823 (pass_expand_omp::execute, execute_lower_omp)
32824 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
32826 (offload_symbol_decl): New variable.
32827 (oacc_get_reduction_array_id, oacc_max_threads)
32828 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
32829 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
32830 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
32831 (oacc_gimple_assign, oacc_initialize_reduction_data)
32832 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
32834 (is_targetreg_ctx): Remove function.
32835 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
32836 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
32837 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
32838 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
32839 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
32840 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
32841 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
32842 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
32843 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
32844 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
32845 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
32846 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
32847 * tree-core.h: Update comments for OpenACC changes.
32848 (enum omp_clause_map_kind): Remove.
32849 (struct tree_omp_clause): Change type of map_kind member from enum
32850 omp_clause_map_kind to unsigned char.
32851 * tree-inline.c: Update comments for OpenACC changes.
32852 * tree-nested.c: Likewise. Include "gomp-constants.h".
32853 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
32854 (convert_tramp_reference_stmt, convert_gimple_call): Update for
32855 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
32856 OMP_CLAUSE_SET_MAP_KIND.
32857 * tree-pretty-print.c: Include "gomp-constants.h".
32858 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
32859 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
32860 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
32861 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
32862 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
32863 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
32864 instead of OMP_CLAUSE_MAP_*.
32865 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
32866 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
32867 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
32868 * tree-streamer-in.c: Include "gomp-constants.h".
32869 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
32870 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
32871 * tree-streamer-out.c: Include "gomp-constants.h".
32872 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
32874 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
32875 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
32876 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
32877 * tree.c (omp_clause_num_ops): Update accordingly.
32878 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
32880 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
32881 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
32882 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
32883 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
32884 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
32885 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
32886 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
32887 (OMP_CLAUSE_SET_MAP_KIND): New macro.
32888 * varpool.c (varpool_node::get_create): Consider flag_openacc next
32890 * config/i386/intelmic-offload.h: New file.
32891 * config/nvptx/offload.h: Likewise.
32893 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32895 * explow.h: Remove duplicate contents.
32896 * dojump.h: Likewise.
32898 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
32900 * arm.c (arm_xgene_tune): Add default initializer for instruction
32903 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
32907 * ipa.c (symbol_table::remove_unreachable_nodes):
32908 Do not put abstract origins into boundary.
32910 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
32912 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
32913 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
32915 2015-01-15 Steve Ellcey <sellcey@mips.com>
32917 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
32918 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
32919 builtins.def, and chkp-builtins.def.
32921 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
32923 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
32926 2015-01-15 Richard Biener <rguenther@suse.de>
32928 PR tree-optimization/61743
32929 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
32930 information on PHIs for some simple cases.
32932 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
32934 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
32936 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
32937 * config/arm/arm-cores.def (xgene1): New entry.
32938 * config/arm/arm-tables.opt: Regenerate.
32939 * config/arm/arm-tune.md: Regenerate.
32940 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
32942 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
32944 * tree-if-conv.c: Include hash-map.h.
32945 (aggressive_if_conv): New variable.
32946 (fold_build_cond_expr): Add simplification of non-zero condition.
32947 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
32948 destination block is not always executed.
32949 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
32950 than two predecessors if AGGRESSIVE_IF_CONV is true.
32951 (if_convertible_stmt_p): Fix commentary.
32952 (all_preds_critical_p): New function.
32953 (has_pred_critical_p): New function.
32954 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
32955 BB can have more than two predecessors and all incoming edges can be
32957 (predicate_bbs): Skip predication for loop exit block, use build2_loc
32958 to compute predicate for true edge.
32959 (find_phi_replacement_condition): Delete this function.
32960 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
32961 Allow interchange PHI arguments if EXTENDED is false.
32962 Change check that block containing reduction statement candidate
32963 is predecessor of phi-block since phi may have more than two arguments.
32964 (phi_args_hash_traits): New helper structure.
32965 (struct phi_args_hash_traits): New type.
32966 (phi_args_hash_traits::hash): New function.
32967 (phi_args_hash_traits::equal_keys): New function.
32968 (gen_phi_arg_condition): New function.
32969 (predicate_scalar_phi): Add handling of phi nodes with more than two
32970 arguments, delete COND and TRUE_BB arguments, insert body of
32971 find_phi_replacement_condition to predicate ordinary phi nodes.
32972 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
32973 delete call of find_phi_replacement_condition and invoke
32974 predicate_scalar_phi with two arguments.
32975 (insert_gimplified_predicates): Add assert that non-predicated block
32976 don't have statements to insert.
32977 (ifcvt_split_critical_edges): New function.
32978 (ifcvt_split_def_stmt): Likewise.
32979 (ifcvt_walk_pattern_tree): Likewise.
32980 (stmt_is_root_of_bool_pattern): Likewise.
32981 (ifcvt_repair_bool_pattern): Likewise.
32982 (ifcvt_local_dce): Likewise.
32983 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
32984 is copy of inner or outer loop force_vectorize field, invoke
32985 ifcvt_split_critical_edges, ifcvt_local_dce and
32986 ifcvt_repair_bool_pattern for aggressive if-conversion.
32988 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
32990 * config/aarch64/aarch64.md: Include xgene1.md.
32991 * config/aarch64/xgene1.md: New file.
32993 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
32995 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
32996 xgene1 (APM XGene-1) core definition.
32997 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
32998 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
32999 * doc/invoke.texi: Document -mcpu=xgene1.
33001 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33003 * dojump.h: New header file.
33004 * explow.h: Likewise.
33005 * expr.h: Remove includes.
33006 Move expmed.c prototypes to expmed.h.
33007 Move dojump.c prototypes to dojump.h.
33008 Move alias.c prototypes to alias.h.
33009 Move explow.c prototypes to explow.h.
33010 Move calls.c prototypes to calls.h.
33011 Move emit-rtl.c prototypes to emit-rtl.h.
33012 Move varasm.c prototypes to varasm.h.
33013 Move stmt.c prototypes to stmt.h.
33014 (saved_pending_stack_adjust): Move to dojump.h.
33015 (adjust_address): Move to explow.h.
33016 (adjust_address_nv): Move to emit-rtl.h.
33017 (adjust_bitfield_address): Likewise.
33018 (adjust_bitfield_address_size): Likewise.
33019 (adjust_bitfield_address_nv): Likewise.
33020 (adjust_automodify_address_nv): Likewise.
33021 * explow.c (expr_size): Move to expr.c.
33022 (int_expr_size): Likewise.
33023 (tree_expr_size): Likewise.
33024 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33025 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
33026 * genemit.c (main): Generate includes statistics.h, real.h,
33027 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
33029 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
33030 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
33031 explow.h, emit-rtl.h, stmt.h.
33032 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
33033 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
33034 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
33035 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
33036 emit-rtl.h, varasm.h, stmt.h.
33037 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
33038 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
33039 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
33040 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
33041 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
33042 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
33043 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
33044 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
33045 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
33046 tm.h tree.h varasm.h vec.h wide-int.h.
33047 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33048 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
33049 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
33050 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
33051 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
33052 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
33053 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
33054 * loop-iv.c: Likewise.
33055 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
33056 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
33057 statistics.h stmt.h tree.h varasm.h wide-int.h.
33058 * lra-constraints.c: Likewise.
33059 * lra-eliminations.c: Likewise.
33060 * lra-lives.c: Likewise.
33061 * lra-remat.c: Likewise.
33062 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33063 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
33064 statistics.h stmt.h tree.h varasm.h wide-int.h.
33065 * hw-doloop.c: Likewise.
33066 * ira-color.c: Likewise.
33067 * ira-emit.c: Likewise.
33068 * loop-doloop.c: Likewise.
33069 * loop-invariant.c: Likewise.
33070 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33071 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
33072 statistics.h stmt.h tree.h varasm.h wide-int.h.
33073 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
33074 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
33075 statistics.h stmt.h tree.h varasm.h wide-int.h.
33076 * combine-stack-adj.c: Likewise.
33079 * ifcvt.c: Likewise.
33080 * ira-costs.c: Likewise.
33081 * jump.c: Likewise.
33082 * lra-coalesce.c: Likewise.
33083 * lra-spills.c: Likewise.
33084 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33085 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
33086 stmt.h varasm.h wide-int.h.
33087 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33088 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
33090 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
33091 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
33092 statistics.h stmt.h varasm.h wide-int.h.
33093 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
33094 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
33095 varasm.h wide-int.h.
33096 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
33097 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
33098 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
33099 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
33100 statistics.h stmt.h.
33101 * config/tilepro/tilepro.c: Likewise.
33102 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
33103 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
33104 * config/pdp11/pdp11.c: Likewise.
33105 * config/xtensa/xtensa.c: Likewise.
33106 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
33107 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
33109 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33110 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
33111 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
33112 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33113 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
33114 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
33115 * rtl-chkp.c: Likewise.
33116 * tree-chkp-opt.c: Likewise.
33117 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
33118 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
33119 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
33120 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33121 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
33122 statistics.h stmt.h.
33123 * tree-vect-data-refs.c: Likewise.
33124 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
33125 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33126 rtl.h statistics.h stmt.h varasm.h.
33127 * internal-fn.c: Likewise.
33128 * ipa-icf-gimple.c: Likewise.
33129 * lto-section-out.c: Likewise.
33130 * tree-data-ref.c: Likewise.
33131 * tree-nested.c: Likewise.
33132 * tree-outof-ssa.c: Likewise.
33133 * tree-predcom.c: Likewise.
33134 * tree-pretty-print.c: Likewise.
33135 * tree-scalar-evolution.c: Likewise.
33136 * tree-ssa-strlen.c: Likewise.
33137 * tree-vect-loop.c: Likewise.
33138 * tree-vect-patterns.c: Likewise.
33139 * tree-vect-slp.c: Likewise.
33140 * tree-vect-stmts.c: Likewise.
33141 * tsan.c: Likewise.
33142 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33143 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
33145 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
33146 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33147 statistics.h stmt.h varasm.h.
33148 * loop-unroll.c: Likewise.
33149 * ubsan.c: Likewise.
33150 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
33151 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
33153 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33154 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
33155 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
33156 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
33157 statistics.h stmt.h.
33158 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
33159 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
33160 statistics.h stmt.h varasm.h.
33161 * gimple-match-head.c: Likewise.
33162 * lto-cgraph.c: Likewise.
33163 * lto-section-in.c: Likewise.
33164 * lto-streamer-in.c: Likewise.
33165 * lto-streamer-out.c: Likewise.
33166 * tree-affine.c: Likewise.
33167 * tree-cfg.c: Likewise.
33168 * tree-cfgcleanup.c: Likewise.
33169 * tree-if-conv.c: Likewise.
33170 * tree-into-ssa.c: Likewise.
33171 * tree-ssa-alias.c: Likewise.
33172 * tree-ssa-copyrename.c: Likewise.
33173 * tree-ssa-dse.c: Likewise.
33174 * tree-ssa-forwprop.c: Likewise.
33175 * tree-ssa-live.c: Likewise.
33176 * tree-ssa-math-opts.c: Likewise.
33177 * tree-ssa-pre.c: Likewise.
33178 * tree-ssa-sccvn.c: Likewise.
33179 * tree-tailcall.c: Likewise.
33180 * tree-vect-generic.c: Likewise.
33181 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33182 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
33183 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33184 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
33185 * varasm.c: Likewise.
33186 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33187 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
33189 * init-regs.c: Likewise.
33191 * omp-low.c: Likewise.
33192 * stack-ptr-mod.c: Likewise.
33193 * tree-ssa-reassoc.c: Likewise.
33194 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33195 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
33197 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33198 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
33199 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33200 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
33201 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33202 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
33203 * tree-ssa-phiopt.c: Likewise.
33204 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33205 fixed-value.h hashtab.h real.h statistics.h stmt.h.
33206 * config/fr30/fr30.c: Likewise.
33207 * config/frv/frv.c: Likewise.
33208 * expr.c: Likewise.
33209 * final.c: Likewise.
33210 * optabs.c: Likewise.
33211 * passes.c: Likewise.
33212 * simplify-rtx.c: Likewise.
33213 * stmt.c: Likewise.
33214 * toplev.c: Likewise.
33215 * var-tracking.c: Likewise.
33216 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33217 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
33218 * lower-subreg.c: Likewise.
33219 * postreload-gcse.c: Likewise.
33221 * reginfo.c: Likewise.
33222 * store-motion.c: Likewise.
33223 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33224 fixed-value.h hashtab.h real.h stmt.h varasm.h.
33225 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33226 fixed-value.h hashtab.h statistics.h stmt.h.
33227 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33228 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
33229 * except.c: Likewise.
33230 * explow.c: Likewise.
33231 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33232 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
33234 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33235 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
33236 * tree-ssa-structalias.c: Likewise.
33237 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33238 fixed-value.h insn-config.h real.h statistics.h.
33239 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33240 fixed-value.h insn-config.h real.h statistics.h stmt.h.
33241 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33242 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
33243 * cfgbuild.c: Likewise.
33244 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33245 fixed-value.h real.h rtl.h statistics.h stmt.h.
33246 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33247 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
33248 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33249 fixed-value.h real.h statistics.h stmt.h.
33250 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33251 fixed-value.h real.h statistics.h stmt.h varasm.h.
33252 * cprop.c: Likewise.
33253 * modulo-sched.c: Likewise.
33254 * postreload.c: Likewise.
33255 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
33256 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
33257 statistics.h stmt.h varasm.h.
33258 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
33259 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33260 rtl.h statistics.h stmt.h varasm.h.
33261 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
33262 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
33264 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
33265 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
33267 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
33268 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
33270 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
33271 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
33272 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
33273 function.h real.h statistics.h stmt.h varasm.h.
33274 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
33275 insn-config.h real.h statistics.h stmt.h.
33276 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
33277 statistics.h stmt.h.
33278 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
33279 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
33280 statistics.h stmt.h varasm.h.
33281 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
33282 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
33283 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
33284 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
33285 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
33286 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
33287 statistics.h stmt.h varasm.h.
33288 * ipa-polymorphic-call.c: Likewise.
33289 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
33290 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33291 statistics.h stmt.h.
33292 * config/c6x/c6x.c: Likewise.
33293 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
33294 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33295 statistics.h stmt.h varasm.h.
33296 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
33297 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
33299 * ipa-split.c: Likewise.
33300 * tree-eh.c: Likewise.
33301 * tree-ssa-dce.c: Likewise.
33302 * tree-ssa-loop-niter.c: Likewise.
33303 * tree-vrp.c: Likewise.
33304 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
33305 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
33307 * config/nds32/nds32-fp-as-gp.c: Likewise.
33308 * config/nds32/nds32-intrinsic.c: Likewise.
33309 * config/nds32/nds32-isr.c: Likewise.
33310 * config/nds32/nds32-md-auxiliary.c: Likewise.
33311 * config/nds32/nds32-memory-manipulation.c: Likewise.
33312 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
33313 * config/nds32/nds32-predicates.c: Likewise.
33314 * config/nds32/nds32.c: Likewise.
33315 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
33316 fixed-value.h hashtab.h real.h statistics.h.
33317 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
33318 fixed-value.h hashtab.h real.h statistics.h stmt.h.
33319 * config/arm/arm.c: Likewise.
33320 * config/avr/avr.c: Likewise.
33321 * config/bfin/bfin.c: Likewise.
33322 * config/h8300/h8300.c: Likewise.
33323 * config/i386/i386.c: Likewise.
33324 * config/ia64/ia64.c: Likewise.
33325 * config/iq2000/iq2000.c: Likewise.
33326 * config/m32c/m32c.c: Likewise.
33327 * config/m32r/m32r.c: Likewise.
33328 * config/m68k/m68k.c: Likewise.
33329 * config/mcore/mcore.c: Likewise.
33330 * config/mep/mep.c: Likewise.
33331 * config/mips/mips.c: Likewise.
33332 * config/mn10300/mn10300.c: Likewise.
33333 * config/moxie/moxie.c: Likewise.
33334 * config/pa/pa.c: Likewise.
33335 * config/rl78/rl78.c: Likewise.
33336 * config/rx/rx.c: Likewise.
33337 * config/s390/s390.c: Likewise.
33338 * config/sh/sh.c: Likewise.
33339 * config/sparc/sparc.c: Likewise.
33340 * config/spu/spu.c: Likewise.
33341 * config/stormy16/stormy16.c: Likewise.
33342 * config/v850/v850.c: Likewise.
33343 * config/vax/vax.c: Likewise.
33344 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
33345 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
33346 * config/msp430/msp430.c: Likewise.
33347 * predict.c: Likewise.
33348 * value-prof.c: Likewise.
33349 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
33350 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
33351 * config/microblaze/microblaze.c: Likewise.
33352 * config/nios2/nios2.c: Likewise.
33353 * config/rs6000/rs6000.c: Likewise.
33354 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
33355 insn-config.h real.h rtl.h statistics.h stmt.h.
33356 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
33357 insn-config.h real.h statistics.h stmt.h.
33358 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
33359 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
33360 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
33361 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
33362 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
33363 fixed-value.h real.h statistics.h stmt.h.
33364 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
33365 fixed-value.h statistics.h stmt.h.
33366 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
33369 2015-01-15 Jakub Jelinek <jakub@redhat.com>
33371 * gengtype.c (create_user_defined_type): Workaround
33372 -Wmaybe-uninitialized false positives.
33373 * cse.c (fold_rtx): Likewise.
33374 * loop-invariant.c (gain_for_invariant): Likewise.
33376 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
33378 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
33379 set the memory attributes in all cases but clear MEM_EXPR if need be.
33381 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
33383 PR tree-optimization/64434
33384 * cfgexpand.c (reorder_operands): New function.
33385 (expand_gimple_basic_block): Insert call of reorder_operands if
33388 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
33390 * config/mips/micromips.md (*swp): Remove explicit parallel.
33391 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
33392 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
33393 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
33394 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
33395 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
33396 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
33397 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
33398 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
33399 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
33400 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
33401 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
33402 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
33403 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
33404 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
33405 (mips_wrdsp): Likewise.
33406 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
33408 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
33409 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
33410 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
33411 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
33412 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
33413 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
33414 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
33415 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
33416 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
33418 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
33420 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
33421 (mips_print_operand): Support 'y' to print exact log2 in decimal
33423 * config/mips/mips.h (ISA_HAS_LSA): New define.
33424 (ISA_HAS_DLSA): Likewise.
33425 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
33426 * config/mips/predicates.md (const_immlsa_operand): New predicate.
33428 2015-01-15 Martin Liska <mliska@suse.cz>
33431 * optc-save-gen.awk: Add support for array types.
33433 2015-01-15 Richard Biener <rguenther@suse.de>
33435 PR middle-end/64365
33436 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
33437 for MEM_REF access functions with the same base can never partially
33440 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
33442 * common.opt: New option -fstack-protector-explicit.
33443 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
33444 (stack_protect_decl_phase): Handle stack_protect attribute for
33445 explicit stack protection requests.
33446 (expand_used_vars): Similarly.
33447 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
33448 * doc/extend.texi: Add documentation for "stack_protect" attribute.
33449 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
33451 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
33454 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
33456 (sh_extending_set_of_reg): New struct.
33457 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
33458 sh_remove_reg_dead_or_unused_notes): New Declarations.
33459 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
33460 sh_find_extending_set_of_reg, sh_split_tst_subregs,
33461 sh_extending_set_of_reg::use_as_extended_reg): New functions.
33462 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
33463 convert to insn_and_split and use new function sh_split_tst_subregs.
33465 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
33467 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
33469 (Optimization Options): Move -fuse-ld documentation to...
33470 (Link Options): ...here.
33472 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
33474 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
33476 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
33477 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
33478 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
33479 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
33480 instead of ZR for the memory operand of LL/SC.
33481 (compare_and_swap_12, sync_add<mode>): Likewise.
33482 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
33483 (sync_new_<optab>_12, sync_nand_12): Likewise.
33484 (sync_old_nand_12, sync_new_nand_12): Likewise.
33485 (sync_sub<mode>, sync_old_add<mode>): Likewise.
33486 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
33487 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
33488 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
33489 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
33490 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
33491 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
33492 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
33493 * doc/md.texi (ZC): Update description.
33495 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
33497 * builtins.c (expand_builtin_atomic_exchange): Remove error when
33498 memory model is CONSUME.
33499 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
33500 expand_builtin_atomic_store): Change invalid memory model errors to
33502 (expand_builtin_atomic_clear): Change invalid model errors to warnings
33503 and issue warning for CONSUME.
33505 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
33507 * lto-cgraph: Update function comments for
33508 lto_symtab_encoder_encode_*.
33510 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
33512 * Makefile.in (site.exp): Do not set ENABLE_LTO.
33514 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
33516 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
33517 * lto-cgraph.c (select_what_to_stream): Remove argument, use
33518 lto_stream_offload_p instead.
33519 * lto-streamer.h (select_what_to_stream): Remove argument.
33520 * passes.c (ipa_write_summaries): Likewise.
33521 * tree-pass.h (ipa_write_summaries): Likewise.
33523 2015-01-14 Richard Biener <rguenther@suse.de>
33525 PR tree-optimization/59354
33526 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
33527 groups larger than the slp group size as having gaps.
33529 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
33531 PR middle-end/59448
33532 * builtins.c (get_memmodel): Promote consume to acquire always.
33534 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
33537 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
33540 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
33543 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
33545 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
33546 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
33547 AVX512VBMI, as it implies AVX512BW.
33549 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
33552 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
33553 (vec_unpacks_hi_v16sf): Ditto.
33555 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33557 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
33560 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33562 * doc/invoke.texi (mapcs): Mention deprecation.
33563 (mapcs-frame): Likewise.
33565 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
33568 * config/arm/arm.c (callee_saved_reg_p): Define.
33569 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
33570 register is callee saved instead of !call_used_regs[reg].
33571 (thumb1_compute_save_reg_mask): Likewise.
33573 2015-01-14 Hale Wang <hale.wang@arm.com>
33575 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
33578 2015-01-14 Richard Biener <rguenther@suse.de>
33581 * tree-inline.c (insert_debug_decl_map): Check destination
33582 function MAY_HAVE_DEBUG_STMTS.
33583 (insert_init_debug_bind): Likewise.
33584 (insert_init_stmt): Remove redundant check.
33585 (remap_gimple_stmt): Drop debug stmts if the destination
33586 function has var-tracking assignments disabled.
33588 2015-01-14 Martin Liska <mliska@suse.cz>
33590 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
33591 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
33593 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33596 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
33597 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
33599 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
33601 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
33602 level from an ARCH; do not inject the default.
33603 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
33604 MIPS_ISA_LEVEL_SPEC.
33605 (MIPS_ISA_NAN2008_SPEC): Update comment.
33606 (BASE_DRIVER_SELF_SPECS): Likewise.
33607 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
33608 MIPS_DEFAULT_ISA_LEVEL_SPEC.
33609 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
33610 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
33611 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
33613 2015-01-14 Richard Biener <rguenther@suse.de>
33615 PR tree-optimization/64493
33616 PR tree-optimization/64495
33617 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
33618 assign the proper vectorized PHI to the inner loop exit PHIs.
33620 2015-01-14 Joey Ye <joey.ye@arm.com>
33622 * config/arm/arm.c (arm_compute_save_reg_mask):
33623 Do not save lr in case of tail call.
33624 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
33626 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
33628 * tree-vrp.c (check_array_ref): Emit more warnings
33629 for warn_array_bounds >= 2.
33630 * common.opt: New option -Warray-bounds=.
33631 * doc/invoke.texi: Document -Warray-bounds=.
33633 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
33635 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
33636 (mforbid-fp-as-gp): Remove.
33638 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
33639 (nds32_symbol_load_store_p): Remove.
33640 (nds32_fp_as_gp_check_available): Clean up implementation.
33641 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
33643 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
33644 fp-as-gp and ex9 cases.
33646 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
33648 * tree-profile.c (init_ic_make_global_vars): Drop workaround
33649 for bintuils bug 14342.
33650 (init_ic_make_global_vars): Likewise.
33651 (gimple_init_edge_profiler): Likewise.
33652 (gimple_gen_ic_func_profiler): Likewise.
33654 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33656 * ipa-inline.c (inline_small_functions): Swap the operands in
33659 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
33662 * ipa-inline-analysis.c (node_growth_cache): Remove.
33663 (initialize_growth_caches): Do not initialize it.
33664 (free_growth_caches): Do not free it.
33665 (do_estimate_growth): Rename to ...
33666 (estimate_growth): ... this one; drop growth cache code.
33667 (growth_likely_positive): Always go the heuristics way.
33668 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
33669 (reset_edge_caches): Do not reset node growth.
33670 (heap_edge_removal_hook): Do not maintain cache.
33671 (inline_small_functions): Likewise; strenghten sanity check.
33672 (ipa_inline): Do not maintain caches.
33673 * ipa-inline.h (node_growth_cache): Remove.
33674 (do_estimate_growth): Remove to ...
33675 (estimate_growth): this one; remove inline version.
33676 (reset_node_growth_cache): Remove.
33678 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
33681 * ipa-inline.c (inline_small_functions): Update callee keys after
33682 resolving speculation
33683 (inline_small_functions): Always check monotonicity of the queue.
33685 2015-01-13 Marek Polacek <polacek@redhat.com>
33687 PR middle-end/64391
33688 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
33690 2015-01-13 Jakub Jelinek <jakub@redhat.com>
33692 PR rtl-optimization/64286
33693 * ree.c (combine_reaching_defs): Move part of comment earlier,
33694 remove !SCALAR_INT_MODE_P check.
33695 (add_removable_extension): Don't add vector mode
33696 extensions if all uses of the source register aren't the same
33699 2015-01-13 Renlin Li <renlin.li@arm.com>
33701 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
33702 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
33704 2015-01-13 Martin Liska <mliska@suse.cz>
33706 * ipa-icf.c (sem_function::equals_private): Call new functions
33707 cl_target_option_print_diff and cl_optimization_print_diff.
33708 * optc-save-gen.awk (cl_target_option_print_diff): New function.
33709 (cl_optimization_print_diff): Likewise.
33710 * opth-gen.awk: Likewise.
33712 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
33714 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
33715 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
33716 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
33717 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
33718 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
33719 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
33721 2015-01-13 Andrew Pinski <apinski@cavium.com>
33723 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
33724 instead of src mode.
33726 2015-01-13 Richard Biener <rguenther@suse.de>
33729 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
33732 2015-01-13 Andrew Pinski <apinski@cavium.com>
33734 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
33736 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
33738 2015-01-13 Jakub Jelinek <jakub@redhat.com>
33740 PR middle-end/63974
33741 * cfgexpand.c (expand_computed_goto): Don't call
33742 convert_memory_address here.
33744 2015-01-13 Richard Biener <rguenther@suse.de>
33746 PR tree-optimization/64406
33747 * tree-loop-distibution.c (pass_loop_distribution::execute):
33748 Reset the SCEV hashtable if we distributed anything.
33750 2015-01-13 Richard Biener <rguenther@suse.de>
33752 PR tree-optimization/64404
33753 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
33754 SLP types for CSEd loads.
33756 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
33758 PR tree-optimization/64436
33759 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
33760 merge of two symbolic numbers for a bitwise OR to ...
33761 (perform_symbolic_merge): This. Also fix computation of the range and
33762 end of the symbolic number corresponding to the result of a bitwise OR.
33764 2015-01-13 Richard Biener <rguenther@suse.de>
33766 PR tree-optimization/64568
33767 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
33768 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
33770 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33772 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
33773 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
33775 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33777 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
33778 target-specific symbol_ref flag.
33779 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
33780 resides in rodata section.
33781 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
33782 (nds32_encode_section_info): New function.
33784 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33786 * config/nds32/nds32.md (call): Use pseudo instruction bal which
33787 clobbers TA_REGNUM if large code model is specified.
33788 (call_register): Likewise.
33789 (call_immediate): Likewise.
33790 (call_value): Likewise.
33791 (call_value_register): Likewise.
33792 (call_value_immediate): Likewise.
33794 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33796 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
33797 (TARGET_CMODEL_MEDIUM): New macro.
33798 (TARGET_CMODEL_LARGE): New macro.
33799 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
33800 code model setting in assembly code.
33802 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33804 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
33805 Remove MASK_GP_DIRECT flag.
33806 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
33807 one of the multilib default options.
33808 * config/nds32/nds32.opt (mgp-direct): Remove.
33809 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
33810 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
33812 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33814 * config/nds32/nds32.opt (mcmodel): Add new option.
33815 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
33816 to describe code model.
33818 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
33821 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
33823 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
33825 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
33826 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33827 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
33828 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
33829 __builtin_sh_set_fpscr.
33831 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
33833 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
33834 after a funtion name just to indicate it is a function.
33835 ([-fsanitize-undefined-trap-on-error]): Likewise.
33836 ([-fdbg-cnt=]): Likewise.
33837 ([-mmemcpy]): Likewise.
33838 ([-mflush-func]): Likewise.
33839 ([-msynci]): Likewise.
33841 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
33843 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
33846 2015-01-12 Jakub Jelinek <jakub@redhat.com>
33848 PR tree-optimization/64563
33849 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
33850 instead of != VR_VARYING.
33853 * config/i386/i386.c (ix86_expand_prologue): Add
33854 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
33856 PR tree-optimization/64454
33857 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
33858 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
33859 for signed or [0, op1 - 1] for unsigned modulo.
33860 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
33861 even if op1 does not satisfy integer_pow2p.
33864 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
33866 2015-01-12 Jeff Law <law@redhat.com>
33869 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
33870 (trunchiqi2, truncsihi2): Similarly.
33872 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
33873 rather than calling F.
33875 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
33877 * tsan.c (instrument_expr): Use force_gimple_operand.
33878 Use may_be_nonaddressable_p instead of is_gimple_addressable.
33880 2015-01-12 Richard Biener <rguenther@suse.de>
33882 PR tree-optimization/64530
33883 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
33886 2015-01-12 Richard Biener <rguenther@suse.de>
33888 PR middle-end/64357
33889 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
33892 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33894 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
33895 Cortex-A17 tuning parameters.
33896 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
33898 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33900 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
33901 * config/arm/arm.c (arm_macro_fusion_p): New function.
33902 (arm_macro_fusion_pair_p): Likewise.
33903 (TARGET_SCHED_MACRO_FUSION_P): Define.
33904 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
33905 (ARM_FUSE_NOTHING): Likewise.
33906 (ARM_FUSE_MOVW_MOVT): Likewise.
33907 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
33908 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
33909 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
33910 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
33911 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
33912 arm_cortex_a5_tune): Specify fuseable_ops value.
33914 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
33917 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
33918 test for PIE with copy reloc.
33919 * configure: Regenerated.
33921 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33923 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
33925 (arm_tls_descseq_addr): Likewise.
33926 (arm_gen_movmemqi): Likewise.
33927 (arm_expand_epilogue_apcs_frame): Likewise.
33928 (arm_expand_epilogue): Likewise.
33929 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
33932 2015-01-12 Martin Liska <mliska@suse.cz>
33935 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
33936 volatility for correct operands.
33938 2015-01-12 Martin Liska <mliska@suse.cz>
33940 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
33941 indication that a function is not leaf.
33942 (sem_function::compare_polymorphic_p): Likewise.
33944 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33946 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
33947 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
33948 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
33949 fold-const.h, tree-check.h.
33951 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
33955 * ipa-inline.c (compute_uninlined_call_time,
33956 compute_inlined_call_time): Use counts for extra precision when
33958 (big_speedup_p): Fix formating.
33959 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
33960 (relative_time_benefit): Remove.
33961 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
33962 merge guessed and read profile paths.
33963 (inline_small_functions): Count only !optimize_size functions into
33964 initial size; be more lax about sanity check when profile is used;
33965 be sure to update inlined function profile when profile is read.
33967 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
33970 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
33971 cost when edge becomes direct.
33972 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
33973 is resolved or when introducing new speculation.
33975 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
33979 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
33980 '||' to fix typo issue.
33982 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
33983 accept and return NULL.
33985 2015-01-12 Martin Liska <mliska@suse.cz>
33987 * cgraph.c (cgraph_edge::remove_callee): Move function to header
33988 file for being inlined.
33989 (cgraph_set_edge_callee): Delete.
33990 (cgraph_edge::redirect_callee): Move function to header file
33992 (cgraph_edge::make_direct): Use new function.
33993 (cgraph_edge::dump_edge_flags): New function created from
33994 static dump_edge_flags function.
33995 (cgraph_node::dump): Use new function.
33996 (cgraph_edge::verify_count_and_frequency): New function created
33997 from verify_edge_count_and_frequency.
33998 (cgraph_edge::verify_corresponds_to_fndecl): New function created
33999 from verify_edge_corresponds_to_fndecl.
34000 (verify_edge_corresponds_to_fndecl): Delete.
34001 (cgraph_node::verify_node): Use new function.
34002 * cgraph.h (cgraph_edge::set_callee): New function.
34003 (cgraph_edge::dump_edge_flags): Likewise.
34004 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
34006 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
34008 * ipa-utils.c (estimate_function_body_sizes): Do not
34009 free node params when called late with early=true.
34011 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
34013 * doc/md.texi (Instruction Patterns): Rewrite text for
34015 (Example): Likewise.
34017 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
34019 * doc/invoke.texi (Option Summary): Break long lines.
34020 [(-fdiagnostics-color)]: Put long literal in @smallexample
34022 [(-fsanitize-recover)]: Likewise.
34023 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
34024 [(-ffast-math)]: Likewise.
34025 [(--param max-inline-insns-recursive)]: Likewise.
34026 [(--param max-inline-recursive-depth)]: Likewise.
34027 [(-mno-text-section-literals)]: Likewise.
34029 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
34031 * doc/install.texi: Update for libgomp being renamed from "GNU
34032 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
34034 * doc/sourcebuild.texi: Likewise.
34036 2015-01-10 Anthony Green <green@moxielogic.com>
34038 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
34039 mul.x availability for moxiebox configuration.
34041 2015-01-09 Anthony Green <green@moxielogic.com>
34043 * config/moxie/moxie.md: Tabify assembly output.
34045 2015-01-09 Anthony Green <green@moxielogic.com>
34047 * config/moxie/moxie.md (CC_REG): Correct register definition.
34049 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
34051 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
34052 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
34055 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
34057 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
34059 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
34060 Jakub Jelinek <jakub@redhat.com>
34062 PR middle-end/64412
34063 * lto-streamer.h (lto_stream_offload_p): New declaration.
34064 * lto-streamer.c (lto_stream_offload_p): New variable.
34065 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
34066 at the same time as section_name_prefix.
34067 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
34068 if lto_stream_offload_p.
34069 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
34070 stream TREE_TARGET_OPTION if lto_stream_offload_p.
34071 (write_ts_function_decl_tree_pointers): Don't
34072 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
34073 * tree-streamer-in.c (unpack_value_fields): Don't stream
34074 TREE_TARGET_OPTION in if ACCEL_COMPILER.
34075 (lto_input_ts_function_decl_tree_pointers): Don't stream
34076 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
34077 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
34078 instead of section_name_prefix string comparisons.
34080 2015-01-09 Jakub Jelinek <jakub@redhat.com>
34082 PR rtl-optimization/64536
34083 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
34086 2015-01-09 Michael Collison <michael.collison@linaro.org>
34088 PR tree-optimization/64322
34089 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
34090 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
34092 2015-01-09 Tom de Vries <tom@codesourcery.com>
34094 PR rtl-optimization/64539
34095 * regcprop.c (kill_clobbered_values): Factor out of ...
34096 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
34097 instead of note_stores with kill_clobbered_value.
34099 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
34101 * ginclude/unwind-arm-common.h: Revert previous commit.
34103 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
34105 * config.gcc (arm*-*-freebsd*): New configuration.
34106 * config/arm/freebsd.h: New file.
34107 * config.host: Add extra components for arm*-*-freebsd*.
34108 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
34109 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
34111 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34113 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
34115 * config/rs6000/t-rtems: Add e6500 multilibs.
34117 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34119 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
34122 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34124 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
34125 MULTILIB_EXCEPTIONS.
34127 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34129 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
34130 MULTILIB_EXCEPTIONS.
34132 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34134 * config/arm/t-rtems-eabi: Rename to...
34135 * config/arm/t-rtems: ...this.
34136 * config/arm/rtems-eabi.h: Rename to...
34137 * config/arm/rtems.h: ...this.
34138 * config.gcc (arm*-*-rtems*): Reflect changes above.
34140 2015-01-09 Richard Biener <rguenther@suse.de>
34142 PR tree-optimization/64410
34143 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
34145 (execute_update_addresses_taken): Deal with that.
34146 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
34147 loads/stores for complex variables.
34149 2015-01-09 Martin Liska <mliska@suse.cz>
34151 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
34153 (func_checker::compare_memory_operand): New function.
34154 (func_checker::compare_operand): Split case to newly
34156 (func_checker::compare_cst_or_decl): New function.
34157 (func_checker::compare_gimple_call): Identify
34159 (func_checker::compare_gimple_assign): Likewise.
34160 * ipa-icf-gimple.h: New function.
34162 2015-01-09 Martin Liska <mliska@suse.cz>
34165 * sreal.c (sreal::dump): Change unsigned format to signed for
34167 (sreal::to_double): Replace exp2 with scalbln.
34169 2015-01-09 Martin Liska <mliska@suse.cz>
34171 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
34172 * ipa-icf.c (sem_function::equals_private): Add support for target and
34173 (sem_item_optimizer::merge_classes): Remove redundant function
34174 optimization flags comparison.
34175 * tree.h (target_opts_for_fn): New function.
34177 2015-01-09 Tom de Vries <tom@codesourcery.com>
34179 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
34181 2015-01-09 Kito Cheng <kito@0xlab.org>
34183 PR rtl-optimization/64348
34184 * lra-constraints.c (split_reg): Fix caller-save store/restore
34185 instruction generation.
34187 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
34189 PR gcov-profile/61790
34190 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
34191 long long. Fallback to int64_t if host doesn't have long long and
34192 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
34194 2015-01-08 Jakub Jelinek <jakub@redhat.com>
34196 PR tree-optimization/63989
34197 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
34198 from 1000 to 10000.
34199 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
34200 (get_stridx): If we don't have a record for certain SSA_NAME,
34201 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
34202 constant offset, call get_stridx_plus_constant.
34203 (get_stridx_plus_constant): New function.
34204 (zero_length_string): Don't use get_stridx here.
34207 PR middle-end/64388
34208 * dse.c (struct insn_info): Mention frame_read set also
34209 before reload for tail calls on some targets.
34210 (scan_insn): Revert 2014-12-22 change. Set frame_read
34211 also before reload for tail calls if
34212 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
34213 instead of add_non_frame_wild_read for non-const/memset
34214 tail calls after reload.
34216 2015-01-08 Jason Merrill <jason@redhat.com>
34218 * ubsan.c (do_ubsan_in_current_function): New.
34219 (pass_ubsan::gate): Use it.
34220 * ubsan.h: Declare it.
34221 * convert.c (convert_to_integer): Use it.
34223 2015-01-08 Jakub Jelinek <jakub@redhat.com>
34226 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
34227 compare_code when it is unconditionally overwritten afterwards.
34228 Use ix86_reverse_condition instead of reverse_condition. Don't
34229 change code if *reverse_condition* returned UNKNOWN and don't
34230 swap ct/cf and negate diff in that case.
34232 2015-01-08 Mike Stump <mikestump@comcast.net>
34234 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
34235 (pass_tsan_O0::gate): Likewise.
34236 * extend.texi (Function Attributes): Add no_sanitize_thread
34239 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
34241 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
34242 for registering builtins.
34243 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
34244 add -fopenmp to the argv_obstack used when invoking
34245 compile_for_target.
34247 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
34248 add "-m32" or "-m64" to argv_obstack.
34249 (generate_host_descr_file): Likewise, when invoking host_compiler.
34250 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
34253 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
34255 * config/sh/sh-mem.cc: Use constant as second operand when emitting
34258 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
34261 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
34262 constant load if constant operand fits into I08.
34264 2015-01-08 Jakub Jelinek <jakub@redhat.com>
34267 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
34268 and TREE_THIS_VOLATILE for MEM_REFs.
34269 (build5_stat): Fix up initialization of TREE_READONLY and
34270 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
34272 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
34275 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
34276 of r for the second alternative of the destination operand.
34278 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
34281 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
34283 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
34285 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
34287 ([-fivar-visibility], [-fvisibility]): Likewise.
34289 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
34291 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
34292 the file where @code, @command, etc is more appropriate.
34294 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
34296 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
34297 of -mrecip= documentation.
34299 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34302 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
34303 correct reload handler if -m32 -mpowerpc64 is used.
34305 2015-01-06 Tom de Vries <tom@codesourcery.com>
34307 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
34309 2015-01-08 Christian Bruel <christian.bruel@st.com>
34312 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
34314 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
34316 PR tree-optimization/63259
34317 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
34318 if optab exists for 16bit byteswap.
34320 2015-01-06 Jakub Jelinek <jakub@redhat.com>
34322 * opts.c (common_handle_option): Add support for
34323 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
34324 * doc/invoke.texi: Document -fno-sanitize=all,
34325 -f{,no-}sanitize-recover=all. Document that
34326 -fsanitize=float-cast-overflow is not enabled
34327 by -fsanitize=undefined. Fix up documentation
34328 of -f{,no-}sanitize-recover.
34330 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
34332 * config.gcc: Add Visium support.
34333 * configure.ac: Likewise.
34334 * configure: Regenerate.
34335 * doc/extend.texi (interrupt attribute): Add Visium.
34336 * doc/invoke.texi: Document Visium options.
34337 * doc/install.texi: Document Visium target.
34338 * doc/md.texi: Document Visium constraints.
34339 * common/config/visium: New directory.
34340 * config/visium: Likewise.
34342 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
34344 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
34345 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
34347 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
34349 * combine.c (combine_validate_cost): Do not count the cost of a
34350 split I2 twice. Do not display it twice in the dump, either.
34352 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
34354 Revert parts of r219199.
34355 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
34357 ([-Wtraditional]): Restore markup on <limits.h>.
34359 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
34362 * doc/invoke.texi: Document -Wsuggest-override.
34364 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
34366 PR rtl-optimization/64287
34367 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
34368 (process_options): Disable flag_ipa_ra if profiling.
34370 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
34372 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
34374 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
34376 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
34377 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
34378 put under #if TARGET_LOOPS guard.
34380 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
34382 * config/i386/i386.c (output_387_binary_op): Use std::swap.
34384 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
34386 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
34387 * rtl.h (refers_to_regno_p): Add overload.
34389 * bt-load.c: Likewise.
34390 * combine.c: Likewise.
34391 * df-scan.c: Likewise.
34392 * sched-deps.c: Likewise.
34393 * config/s390/s390.c: Likewise.
34394 * config/m32r/m32r.c: Likewise.
34395 * config/rs6000/spe.md: Likewise.
34396 * config/rs6000/rs6000.c: Likewise.
34397 * config/pa/pa.c: Likewise.
34398 * config/stormy16/stormy16.c: Likewise.
34399 * config/cris/cris.c: Likewise.
34400 * config/arc/arc.md: Likewise.
34401 * config/arc/arc.c: Likewise.
34402 * config/sh/sh.md: Likewise.
34403 * config/sh/sh.c: Likewise.
34404 * config/frv/frv.c: Likewise.
34406 2015-01-05 Jakub Jelinek <jakub@redhat.com>
34409 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
34410 call as cleanup of the whole body.
34411 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
34412 * tsan.c (replace_func_exit): New function.
34413 (instrument_func_exit): Moved earlier.
34414 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
34415 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
34417 (tsan_pass): Don't call instrument_func_exit.
34418 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
34419 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
34423 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
34424 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
34425 it to libubsan handler instead of EXPR. Fold comparisons earlier,
34426 if the result is integer_zerop, return NULL_TREE.
34427 * convert.c (convert_to_integer): Pass expr as ARG.
34429 PR tree-optimization/64465
34430 * tree-inline.c (redirect_all_calls): During inlining
34431 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
34432 changed the stmt to a non-throwing call.
34434 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
34436 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
34437 etc markup throughout the file.
34439 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
34441 Enable experimental TSAN support for Ada.
34442 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
34444 2015-01-05 Jakub Jelinek <jakub@redhat.com>
34446 PR tree-optimization/64494
34447 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
34448 clear SSA_NAME_ANTI_RANGE_P flag.
34450 2015-01-05 Marek Polacek <polacek@redhat.com>
34452 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
34454 2015-01-05 Jakub Jelinek <jakub@redhat.com>
34456 Update copyright years.
34458 * gcc.c (process_command): Update copyright notice dates.
34459 * gcov-dump.c: Ditto.
34461 * doc/cpp.texi: Bump @copying's copyright year.
34462 * doc/cppinternals.texi: Ditto.
34463 * doc/gcc.texi: Ditto.
34464 * doc/gccint.texi: Ditto.
34465 * doc/gcov.texi: Ditto.
34466 * doc/install.texi: Ditto.
34467 * doc/invoke.texi: Ditto.
34469 * auto-profile.c, auto-profile.h: Fix up Copyright line.
34471 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
34473 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
34475 ([-fvtable-verify], [-fvtv-debug]): Likewise.
34476 ([-Wabi]): Likewise.
34477 ([-fmessage-length]): Likewise.
34478 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
34479 ([-Wno-discarded-qualifiers]): Likewise.
34480 ([-Wnodiscarded-array-qualifiers]): Likewise.
34481 ([-Wno-virtual-move-assign]): Likewise.
34482 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
34483 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
34484 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
34485 ([-fsanitize-undefined-trap-on-error]): Likewise.
34486 ([-floop-interchange]): Likewise.
34487 ([-ftree-coalesce-inlined-vars]): Likewise.
34488 ([-fvect-cost-model]): Likewise.
34489 ([-flto]): Likewise.
34490 ([--param]): Likewise.
34491 (Spec Files): Likewise.
34492 ([-mstrict-align]): Likewise.
34493 ([-mfix-cortex-a53-835769]): Likewise.
34494 ([-march], [-mtune]): Likewise.
34495 ([-mpic-register]): Likewise.
34496 ([-munaligned-access]): Likewise.
34497 ([-msp8]): Likewise.
34498 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
34499 (AVR Built-in Macros): Likewise.
34500 ([-mpreferred-stack-boundary]): Likewise.
34501 ([-mtune-crtl]): Likewise.
34502 ([-mashf]): Likewise.
34503 ([-mmcu=]): Likewise.
34504 ([-minrt]): Likewise.
34505 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
34506 ([-mupper-regs]): Likewise.
34507 ([-matomic-model]): Likewise.
34508 ([-mdiv]): Likewise.
34509 ([-mzdcbranch]): Likewise.
34510 ([-mdisable-callt]): Likewise.
34511 ([-msoft-float]): Likewise.
34512 ([-m8byte-align]): Likewise.
34513 ([-fstack-reuse]): Likewise.
34515 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34517 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
34518 Fix markup, light copy-editing.
34519 ([-fauto-profile]): Rewrite to fix formatting and content
34522 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34524 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
34525 Copy-edit description.
34526 ([-fisolate-erroneous-paths-attribute]): Likewise.
34527 * common.opt (fisolate-erroneous-paths-dereference):
34528 Copy-edit description.
34529 (fisolate-erroneous-paths-attribute): Likewise.
34531 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34533 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
34536 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34538 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
34539 ([-fvtv-debug]): Likewise.
34540 ([-Wc++-compat]): Likewise.
34541 ([-Wc++11-compat]): Likewise.
34542 ([-Wc++14-compat]): Likewise.
34543 ([-Wno-sized-deallocation]): Likewise.
34544 ([-femit-class-debug-always]): Likewise.
34545 ([-femit-struct-debug-detailed]): Likewise.
34546 ([-fno-keep-inline-dllexport]): Likewise.
34547 ([-fira-algorithm]): Likewise.
34548 ([-fira-region]): Likewise.
34549 ([-flra-remat]): Likewise.
34550 ([-fipa-ra]): Likewise.
34551 ([-fhoist-adjacent-loads]): Likewise.
34552 ([-fisolate-erroneous-paths-dereference]): Likewise.
34553 ([-fisolate-erroneous-paths-attribute]): Likewise.
34554 ([-ftree-switch-conversion]): Likewise.
34555 ([-ftree-tail-merge]): Likewise.
34556 ([-ftree-loop-if-convert]): Likewise.
34557 ([-ftree-loop-if-convert-stores]): Likewise.
34558 ([-ftree-loop-distribution]): Likewise.
34559 ([-ftree-loop-distribute-patterns]): Likewise.
34560 ([-flto-compression-level]): Likewise.
34561 ([-flto-report]): Likewise.
34562 ([-flto-report-wpa]): Likewise.
34563 ([-fuse-linker-plugin]): Likewise.
34564 ([-mfix-cortex-a53-835769]): Likewise.
34565 ([-mno-fix-cortex-a53-835769]): Likewise.
34566 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
34567 explicit listing; add a note to the discussion indicating they
34568 exist. Reorder table to group similar options. Add missing
34569 @opindex entries. Add @need commands throughout the table to
34570 allow it to be split across multiple pages.
34571 ([-m8bit-idiv]): Fix @opindex.
34572 ([-mavx256-split-unaligned-load]): Likewise.
34573 ([-mavx256-split-unaligned-store]): Likewise.
34574 ([-mstack-protector-guard]): Likewise.
34575 ([-mcpu=]): Likewise.
34576 ([-mcpu]): Likewise.
34577 ([-mpointer-size=]): Likewise.
34579 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
34581 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
34582 instead of `m' constraint. Likewise for unnamed movb comparison
34583 patterns using reg_before_reload_operand predicate.
34584 * config/pa/predicates.md (reg_before_reload_operand): Tighten
34585 predicate to reject register index and LO_SUM DLT memory forms
34588 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
34590 * doc/invoke.texi (Option Summary): Fix spelling of
34591 -fdevirtualize-at-ltrans.
34592 ([-fdevirtualize]): Fix markup.
34593 ([-fdevirtualize-speculatively]): Fix typo.
34594 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
34595 implementor-speaky.
34596 * common.opt (fdevirtualize-at-ltrans): Likewise.
34597 * ipa-devirt.c: Fix typos in comments throughout the file.
34598 (ipa_devirt): Fix typos in format strings for dump output.
34600 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
34602 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
34603 discussion of defaults, light copy-editing.
34605 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
34607 * tsan.c (instrument_expr): corrected previous checkin.
34609 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
34611 Instrument bit field and unaligned accesses for TSAN.
34612 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
34613 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
34614 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
34615 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
34616 unaligned memory regions.
34618 2015-01-01 Anthony Green <green@moxielogic.com>
34620 * config/moxie/predicates.md (moxie_general_movsrc_operand):
34621 Restrict move source register offsets to 16 bits.
34623 Copyright (C) 2015 Free Software Foundation, Inc.
34625 Copying and distribution of this file, with or without modification,
34626 are permitted in any medium without royalty provided the copyright
34627 notice and this notice are preserved.