1 2013-12-09 David Malcolm <dmalcolm@redhat.com>
3 * basic-block.h (last_basic_block): Eliminate macro.
5 * asan.c (transform_statements): Eliminate use of last_basic_block
6 in favor of last_basic_block_for_fn, in order to make use of cfun
8 * bb-reorder.c (copy_bb, reorder_basic_blocks): Likewise.
9 * bt-load.c (compute_defs_uses_and_gen, compute_kill, compute_out,
10 link_btr_uses, build_btr_def_use_webs, migrate_btr_defs): Likewise.
11 * cfg.c (compact_blocks): Likewise.
12 * cfganal.c (mark_dfs_back_edges,
13 control_dependences::control_dependences, post_order_compute,
14 pre_and_rev_post_order_compute_fn, dfs_enumerate_from, compute_idf,
15 single_pred_before_succ_order): Likewise.
16 * cfgbuild.c (make_edges): Likewise.
17 * cfgexpand.c (add_scope_conflicts, gimple_expand_cfg): Likewise.
18 * cfghooks.c (verify_flow_info): Likewise.
19 * cfgloop.c (verify_loop_structure): Likewise.
20 * cfgloopanal.c (just_once_each_iteration_p,
21 mark_irreducible_loops): Likewise.
22 * cfgloopmanip.c (fix_bb_placements, remove_path,
23 update_dominators_in_loop): Likewise.
24 * cfgrtl.c (create_basic_block_structure, rtl_create_basic_block,
25 break_superblocks, rtl_flow_call_edges_add): Likewise.
26 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
27 * config/frv/frv.c (frv_optimize_membar): Likewise.
28 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
29 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
30 * cprop.c (compute_local_properties, find_implicit_sets,
31 bypass_conditional_jumps, one_cprop_pass): Likewise.
32 * cse.c (cse_main): Likewise.
33 * df-core.c (rest_of_handle_df_initialize, df_worklist_dataflow,
34 df_analyze, df_grow_bb_info, df_compact_blocks): Likewise.
35 * df-problems.c (df_lr_verify_solution_start,
36 df_live_verify_solution_start, df_md_local_compute): Likewise.
37 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
38 calc_idoms): Likewise.
39 * domwalk.c (dom_walker::walk): Likewise.
40 * dse.c (dse_step0, dse_step3): Likewise.
41 * function.c (epilogue_done): Likewise.
42 * gcse.c (alloc_gcse_mem, compute_local_properties,
43 prune_insertions_deletions, compute_pre_data,
44 pre_expr_reaches_here_p, one_pre_gcse_pass,
45 compute_code_hoist_vbeinout, should_hoist_expr_to_dom, hoist_code,
46 one_code_hoisting_pass): Likewise.
47 * graph.c (draw_cfg_nodes_no_loops): Likewise.
48 * graphite-sese-to-poly.c (build_scop_bbs): Likewise.
49 * haifa-sched.c (unlink_bb_notes): Likewise.
50 * ipa-split.c (execute_split_functions): Likewise.
51 * ira-build.c (create_loop_tree_nodes,
52 remove_unnecessary_regions): Likewise.
53 * ira-emit.c (ira_emit): Likewise.
54 * ira.c (find_moveable_pseudos, ira): Likewise.
55 * lcm.c (compute_antinout_edge, compute_laterin,
56 compute_insert_delete, pre_edge_lcm, compute_available,
57 compute_nearerout, compute_rev_insert_delete,
58 pre_edge_rev_lcm): Likewise.
59 * loop-unroll.c (opt_info_start_duplication,
60 apply_opt_in_copies): Likewise.
61 * lower-subreg.c (decompose_multiword_subregs): Likewise.
62 * lra-lives.c (lra_create_live_ranges): Likewise.
63 * lra.c (lra): Likewise.
64 * mode-switching.c (optimize_mode_switching): Likewise.
65 * recog.c (split_all_insns): Likewise.
66 * regcprop.c (copyprop_hardreg_forward): Likewise.
67 * regrename.c (regrename_analyze): Likewise.
68 * reload1.c (reload): Likewise.
69 * resource.c (init_resource_info): Likewise.
70 * sched-rgn.c (haifa_find_rgns, extend_rgns, compute_trg_info,
71 realloc_bb_state_array, schedule_region, extend_regions): Likewise.
72 * sel-sched-ir.c (sel_extend_global_bb_info, extend_region_bb_info,
73 recompute_rev_top_order, sel_init_pipelining,
74 make_regions_from_the_rest): Likewise.
75 * store-motion.c (remove_reachable_equiv_notes,build_store_vectors)
77 * tracer.c (tail_duplicate): Likewise.
78 * trans-mem.c (tm_region_init, get_bb_regions_instrumented): Likewise.
79 * tree-cfg.c (create_bb, cleanup_dead_labels, gimple_dump_cfg,
80 gimple_flow_call_edges_add): Likewise.
81 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls,
82 cleanup_tree_cfg_1): Likewise.
83 * tree-complex.c (tree_lower_complex): Likewise.
84 * tree-inline.c (copy_cfg_body): Likewise.
85 * tree-into-ssa.c (mark_phi_for_rewrite, rewrite_into_ssa,
86 prepare_def_site_for, update_ssa): Likewise.
87 * tree-ssa-dce.c (tree_dce_init, perform_tree_ssa_dce): Likewise.
88 * tree-ssa-dom.c (record_edge_info): Likewise.
89 * tree-ssa-live.c (new_tree_live_info, live_worklist): Likewise.
90 * tree-ssa-loop-im.c (fill_always_executed_in_1): Likewise.
91 * tree-ssa-loop-manip.c (copy_phi_node_args
92 gimple_duplicate_loop_to_header_edge): Likewise.
93 * tree-ssa-pre.c (compute_antic): Likewise.
94 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
95 * tree-ssa-reassoc.c (init_reassoc): Likewise.
96 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
97 * tree-ssa-tail-merge.c (init_worklist): Likewise.
98 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
99 * tree-stdarg.c (reachable_at_most_once): Likewise.
100 * tree-vrp.c (find_assert_locations): Likewise.
101 * var-tracking.c (vt_find_locations): Likewise.
103 2013-12-09 David Malcolm <dmalcolm@redhat.com>
105 * basic-block.h (profile_status): Eliminate macro.
107 * cfgbuild.c (find_many_sub_basic_blocks): Eliminate use of
108 profile_status macro in favor of profile_status_for_fn, making
109 use of cfun explicit.
110 * cfghooks.c (account_profile_record): Likewise.
111 * cfgloopanal.c (single_likely_exit):
112 * cfgrtl.c (rtl_verify_edges, rtl_account_profile_record): Likewise.
113 * graphite.c (graphite_finalize):
114 * internal-fn.c (ubsan_expand_si_overflow_addsub_check,
115 ubsan_expand_si_overflow_neg_check,
116 ubsan_expand_si_overflow_mul_check): Likewise.
117 * ipa-split.c (consider_split, execute_split_functions):
118 * loop-unroll.c (decide_peel_simple):
119 * optabs.c (emit_cmp_and_jump_insn_1):
120 * predict.c (maybe_hot_edge_p, probably_never_executed,
121 predictable_edge_p, probability_reliable_p, gimple_predict_edge,
122 tree_estimate_probability_driver, estimate_bb_frequencies,
123 compute_function_frequency, rebuild_frequencies): Likewise.
124 * profile.c (compute_branch_probabilities): Likewise.
125 * tree-cfg.c (gimple_account_profile_record): Likewise.
126 * tree-inline.c (optimize_inline_calls): Likewise.
128 2013-12-09 David Malcolm <dmalcolm@redhat.com>
130 * basic-block.h (label_to_block_map): Eliminate macro.
132 * gimple.c (gimple_set_bb): Replace uses of label_to_block_map
133 with uses of label_to_block_map_for_fn, making uses of cfun be
135 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
136 (verify_gimple_label): Likewise.
138 2013-12-09 David Malcolm <dmalcolm@redhat.com>
140 * basic-block.h (basic_block_info): Eliminate macro.
142 * cfgrtl.c (rtl_create_basic_block): Replace uses of
143 basic_block_info with basic_block_info_for_fn, making uses
145 * tree-cfg.c (build_gimple_cfg, create_bb): Likewise.
147 2013-12-09 David Malcolm <dmalcolm@redhat.com>
149 * basic-block.h (BASIC_BLOCK): Eliminate macro.
151 * alias.c (init_alias_analysis): Eliminate BASIC_BLOCK macro in
152 favor of uses of BASIC_BLOCK_FOR_FN, making uses of cfun explicit.
153 * bt-load.c (compute_defs_uses_and_gen, compute_out, link_btr_uses,
154 block_at_edge_of_live_range_p, migrate_btr_defs): Likewise.
155 * caller-save.c (insert_one_insn): Likewise.
156 * cfg.c (debug_bb, get_bb_original, get_bb_copy): Likewise.
157 * cfgexpand.c (add_scope_conflicts): Likewise.
158 * cfghooks.c (verify_flow_info): Likewise.
159 * cfgloop.c (flow_loops_find): Likewise.
160 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
161 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
162 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
163 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
164 * cse.c (cse_main): Likewise.
165 * dce.c (fast_dce): Likewise.
166 * df-core.c (df_set_blocks, df_worklist_propagate_forward,
167 df_worklist_propagate_backward, df_worklist_dataflow_doublequeue,
168 df_bb_replace, df_dump_region): Likewise.
169 * df-problems.c (df_rd_bb_local_compute, df_lr_bb_local_compute,
170 df_live_bb_local_compute, df_chain_remove_problem)
171 df_chain_create_bb, df_word_lr_bb_local_compute, df_note_bb_compute,
172 df_md_bb_local_compute, df_md_local_compute,
173 df_md_transfer_function): Likewise.
174 * df-scan.c (df_scan_blocks, df_reorganize_refs_by_reg_by_insn,
175 df_reorganize_refs_by_insn, df_bb_refs_collect,
176 df_record_entry_block_defs, df_update_entry_block_defs,
177 df_record_exit_block_uses): Likewise.
178 * dominance.c (nearest_common_dominator_for_set): Likewise.
179 * gcse.c (hoist_code): Likewise.
180 * graph.c (draw_cfg_nodes_no_loops): Likewise.
181 * ipa-inline-analysis.c (param_change_prob,
182 estimate_function_body_sizes): Likewise.
183 * ipa-split.c (dominated_by_forbidden): Likewise.
184 * loop-unroll.c (apply_opt_in_copies): Likewise.
185 * lower-subreg.c (decompose_multiword_subregs): Likewise.
186 * lra-lives.c (lra_create_live_ranges): Likewise.
187 * predict.c (propagate_freq): Likewise.
188 * regrename.c (regrename_analyze): Likewise.
189 * regstat.c (regstat_bb_compute_ri,
190 regstat_bb_compute_calls_crossed): Likewise.
191 * resource.c (mark_target_live_regs): Likewise.
192 * sched-ebb.c (ebb_fix_recovery_cfg): Likewise.
193 * sched-int.h (EBB_FIRST_BB, EBB_LAST_BB): Likewise.
194 * sched-rgn.c (debug_region, dump_region_dot, too_large,
195 haifa_find_rgns, extend_rgns, compute_dom_prob_ps, update_live,
196 propagate_deps, sched_is_disabled_for_current_region_p): Likewise.
197 * sched-vis.c (debug_bb_n_slim): Likewise.
198 * sel-sched-ir.c (sel_finish_global_and_expr, verify_backedges,
199 purge_empty_blocks, sel_remove_loop_preheader): Likewise.
200 * sel-sched.c (remove_insns_that_need_bookkeeping)
201 (current_region_empty_p, sel_region_init,
202 simplify_changed_insns): Likewise.
203 * trans-mem.c (execute_tm_mark, execute_tm_edges,
204 tm_memopt_compute_antic, ipa_tm_scan_irr_function): Likewise.
205 * tree-cfg.c (make_edges, end_recording_case_labels,
206 label_to_block_fn, gimple_debug_bb, gimple_flow_call_edges_add,
207 remove_edge_and_dominated_blocks, remove_edge_and_dominated_blocks,
208 gimple_purge_all_dead_eh_edges,
209 gimple_purge_all_dead_abnormal_call_edges): Likewise.
210 * tree-cfgcleanup.c (fixup_noreturn_call,
211 split_bbs_on_noreturn_calls, cleanup_tree_cfg_1): Likewise.
212 * tree-inline.c (copy_cfg_body, fold_marked_statements): Likewise.
213 * tree-into-ssa.c (set_livein_block, prune_unused_phi_nodes,
214 insert_phi_nodes_for, insert_updated_phi_nodes_for): Likewise.
215 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
216 * tree-ssa-live.c (live_worklist): Likewise.
217 * tree-ssa-loop-manip.c (compute_live_loop_exits,
218 add_exit_phis_var, find_uses_to_rename, copy_phi_node_args): Likewise.
219 * tree-ssa-pre.c (compute_antic): Likewise.
220 * tree-ssa-reassoc.c (update_range_test, optimize_range_tests): Likewise.
221 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
222 * tree-ssa-tail-merge.c (same_succ_hash, same_succ_def::equal,
223 same_succ_flush_bbs, update_worklist, set_cluster,
224 same_phi_alternatives, find_clusters_1, apply_clusters,
225 update_debug_stmts): Likewise.
226 * tree-ssa-threadupdate.c (mark_threaded_blocks,
227 thread_through_all_blocks): Likewise.
228 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
229 * tree-vrp.c (find_assert_locations): Likewise.
231 2013-12-09 David Malcolm <dmalcolm@redhat.com>
233 * basic-block.h (SET_BASIC_BLOCK): Eliminate macro.
235 * cfg.c (compact_blocks): Replace uses of SET_BASIC_BLOCK
236 with SET_BASIC_BLOCK_FOR_FN, making use of cfun explicit.
237 (expunge_block): Likewise.
238 * cfgrtl.c (create_basic_block_structure): Likewise.
239 * df-core.c (df_compact_blocks, df_bb_replace): Likewise.
240 * sel-sched.c (create_block_for_bookkeeping): Likewise.
241 * tree-cfg.c (create_bb): Likewise.
243 2013-12-09 David Malcolm <dmalcolm@redhat.com>
245 * basic-block.h (profile_status_for_function): Rename to...
246 (profile_status_for_fn): ...this.
248 * cfg.c (check_bb_profile): Update for renaming.
249 * cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
250 * lto-streamer-in.c (input_cfg): Likewise.
251 * lto-streamer-out.c (output_cfg): Likewise.
252 * predict.c (maybe_hot_frequency_p, maybe_hot_count_p,
253 maybe_hot_bb_p, probably_never_executed)
254 (handle_missing_profiles): Likewise.
255 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
256 * tree-inline.c (copy_bb, initialize_cfun): Likewise.
258 2013-12-09 David Malcolm <dmalcolm@redhat.com>
260 * basic-block.h (label_to_block_map_for_function): Rename to...
261 (label_to_block_map_for_fn): ...this.
263 * lto-streamer-in.c (input_cfg): Update for renaming.
264 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
266 2013-12-09 David Malcolm <dmalcolm@redhat.com>
268 * basic-block.h (last_basic_block_for_function): Rename to...
269 (last_basic_block_for_fn): ...this.
271 * ipa-utils.c (ipa_merge_profiles): Update for renaming of
272 last_basic_block_for_function to last_basic_block_for_fn.
273 * lto-streamer-in.c (input_cfg): Likewise.
274 * lto-streamer-out.c (output_cfg): Likewise.
275 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
276 * tree-sra.c (propagate_dereference_distances, ipa_early_sra):
279 2013-12-09 David Malcolm <dmalcolm@redhat.com>
281 * basic-block.h (basic_block_info_for_function): Rename to...
282 (basic_block_info_for_fn): ...this.
283 (BASIC_BLOCK_FOR_FUNCTION): Rename to...
284 (BASIC_BLOCK_FOR_FN): ...this.
285 (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to...
286 (SET_BASIC_BLOCK_FOR_FN): ...this.
288 * gimple-streamer-in.c (input_phi, input_bb): Update for renaming
289 of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN.
290 * ipa-utils.c (ipa_merge_profiles): Likewise.
291 * lto-streamer-in.c (make_new_block): Update for renaming of
292 SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN.
293 (input_cfg): Update for renamings.
294 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
295 (dump_function_to_file): Update for renaming of
296 basic_block_info_for_function to basic_block_info_for_fn.
298 2013-12-09 Richard Biener <rguenther@suse.de>
301 * tree-ssa-structalias.c (set_union_with_increment): Remove
303 (do_complex_constraint): Call set_union_with_increment with
304 the solution delta, not the full solution.
305 (make_transitive_closure_constraints): Merge the two
308 2013-12-09 Richard Earnshaw <rearnsha@arm.com>
310 * arm.c (mem_ok_for_ldrd_strd): Rename first argument as MEM. Do
311 more address validation checks.
313 2013-12-09 Marek Polacek <polacek@redhat.com>
316 * vtable-verify.c (verify_bb_vtables): Check the return value
317 of gimple_call_fn. Use is_gimple_call instead of gimple_code.
319 2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
321 * config/arm/arm.md (generic_sched): Add cortexa12.
322 (generic_vfp): Likewise.
323 * config/arm/arm.c (cortexa12_extra_costs): New cost table.
324 (arm_cortex_a12_tune): New tuning struct.
325 * config/arm/arm-cores.def: Add cortex-a12.
326 * config/arm/arm-tables.opt: Regenerate.
327 * config/arm/arm-tune.md: Likewise.
328 * config/arm/bpabi.h: Add cortex-a12.
329 * doc/invoke.texi: Document -mcpu=cortex-a12.
331 2013-12-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
333 * doc/install.texi (Prerequisites): Explicitly mention C library
334 and its headers for multilib builds.
336 2013-12-08 Oleg Endo <olegendo@gcc.gnu.org>
340 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
341 OPT_mcbranchdi entry.
342 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
344 * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
345 and TARGET_CMPEQDI_T variables.
346 * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
348 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
350 * config/linux.h: Fix typo in a comment.
352 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
354 * config.gcc (*linux*): Split libc selection from Android support.
355 Add libc selection to all *linux* targets. Add Android support to
356 architectures that support it.
357 (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
358 (mips*-*-linux*): Add Android support.
360 2013-12-07 Alexander Ivchenko <alexander.ivchenko@intel.com>
361 Maxim Kuvyrkov <maxim@kugelworks.com>
363 * config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
364 * config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
365 * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
367 * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
369 * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
370 Define appropriately for Linux and uClinux targets.
372 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
374 * config/linux.c (linux_has_ifunc_p): Use correct test.
376 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
378 * config/linux.c (linux_android_has_ifunc_p): Rename to
380 (linux_android_libc_has_function): Rename to linux_libc_has_function.
381 * config/linux-protos.h (linux_android_has_ifunc_p,)
382 (linux_android_libc_has_function): Update declarations.
383 * config/linux.h, config/linux-android.h, config/alpha/linux.h,
384 * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
386 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
388 * linux-android.c: Rename to linux.c.
389 * t-linux-android: Rename to t-linux. Update references
391 * config.gcc: Update references to t-linux-android and linux-android.o.
393 2013-12-07 Alan Modra <amodra@gmail.com>
395 * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
398 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
400 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
402 2013-12-06 Vladimir Makarov <vmakarov@redhat.com>
404 * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
407 2013-12-06 Caroline Tice <cmtice@google.com>
409 Submitting patch from Stephen Checkoway, s@cs.jhu.edu
410 * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
411 vtable pointer with the results of the verification call, rather than
412 only the uses in the next statement.
414 2013-12-06 Andrew Pinski <apinski@cavium.com>
417 * config/aarch64/aarch64.md (trap): New pattern.
419 2013-12-06 Jakub Jelinek <jakub@redhat.com>
421 PR tree-optimization/59388
422 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
423 gimplify tem after stmt rather than before it.
425 * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
426 (get_references_in_stmt): Don't record operand addresses, but
428 (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
429 Adjust for the pos -> ref change.
431 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
433 * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
435 * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
436 (processor_alias_table): Likewise.
437 (ix86_option_override_internal): Likewise.
438 * config/i386/i386.h (target_cpu_default): Replace
439 TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
441 * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
443 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
446 * config/i386/i386.c (type_natural_mode): Properly handle
447 size 8 for !TARGET_64BIT.
449 2013-12-06 Trevor Saunders <tsaunders@mozilla.com>
451 * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
454 2013-12-06 Ian Bolton <ian.bolton@arm.com>
455 Mark Mitchell <mark@codesourcery.com>
458 * config/arm/arm.md (trap): New pattern.
459 * config/arm/types.md: Added a type for trap.
461 2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
463 * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
465 2013-12-06 Eric Botcazou <ebotcazou@adacore.com>
468 * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
469 * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
470 * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
471 (TARGET_BUILTIN_DECL): Define.
472 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
473 (sparc32_initialize_trampoline): Adjust call to gen_flush.
474 (enum sparc_builtins): New enumeral type.
475 (sparc_builtins): New static array.
476 (sparc_builtins_icode): Likewise.
477 (def_builtin): Accept a separate icode and save the result.
478 (def_builtin_const): Likewise.
479 (sparc_fpu_init_builtins): New function.
480 (sparc_vis_init_builtins): Pass the builtin code.
481 (sparc_init_builtins): Call it if TARGET_FPU.
482 (sparc_builtin_decl): New function.
483 (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
484 (sparc_handle_vis_mul8x16): Use the builtin code.
485 (sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
486 and SPARC_BUILTIN_PDISTN.
487 (compound_expr): New helper function.
488 (sparc_atomic_assign_expand_fenv): New function.
489 * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
491 (flush, flushdi): Merge into single pattern.
492 (ldfsr): New instruction.
495 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
497 * asan.c: Remove struct tags when referring to class varpool_node.
498 * cgraph.h: Likewise.
499 * cgraphbuild.c: Likewise.
500 * cgraphunit.c: Likewise.
501 * dbxout.c: Likewise.
502 * dwarf2out.c: Likewise.
503 * gimple-fold.c: Likewise.
504 * ipa-devirt.c: Likewise.
505 * ipa-ref-inline.h: Likewise.
506 * ipa-ref.h: Likewise.
507 * ipa-reference.c: Likewise.
508 * ipa-utils.c: Likewise.
510 * lto-cgraph.c: Likewise.
511 * lto-streamer-out.c: Likewise.
512 * lto-streamer.h: Likewise.
513 * passes.c: Likewise.
514 * toplev.c: Likewise.
515 * tree-eh.c: Likewise.
516 * tree-emutls.c: Likewise.
517 * tree-pass.h: Likewise.
518 * tree-ssa-structalias.c: Likewise.
519 * tree-vectorizer.c: Likewise.
521 * varasm.c: Likewise.
522 * varpool.c: Likewise.
524 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
526 * cgraphunit.c: Remove struct tags when referring to class
527 ipa_opt_pass_d or class opt_pass.
528 * function.h: Likewise.
529 * lto-cgraph.c: Likewise.
530 * pass_manager.h: Likewise.
531 * passes.c: Likewise.
532 * tree-pass.h: Likewise.
534 2013-12-06 Richard Biener <rguenther@suse.de>
536 PR tree-optimization/59058
537 * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
538 (LOOP_VINFO_NITERSM1): New macro.
539 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
540 the vector loop entry test in terms of scalar latch executions.
541 (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
542 * tree-vect-loop.c (vect_get_loop_niters): Also return the
543 number of latch executions.
544 (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
545 (vect_analyze_loop_form): Likewise.
546 (vect_generate_tmps_on_preheader): Compute the number of
547 vectorized iterations differently.
549 2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
551 * config/score/score.c (score_force_temporary): Delete function.
552 (score_split_symbol): Ditto.
553 * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
554 parentheses to silence ambiguity warning and reindent.
556 2013-12-05 Marek Polacek <polacek@redhat.com>
558 * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
560 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
562 * config.gcc: Support --with-cpu=ia.
564 * config/i386/i386.c (cpu_names): Add "ia".
565 (processor_alias_table): Likewise.
566 (ix86_option_override_internal): Disallow -march=ia.
567 * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
569 * doc/invoke.texi: Document -mtune=ia.
571 2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
573 PR rtl-optimization/59317
574 * lra-constraints.c (in_class_p): Don't ignore insn with constant
577 2013-12-05 Martin Jambor <mjambor@suse.cz>
580 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
581 non-BLKmode in their naturally aligned type.
583 2013-12-05 Marek Polacek <polacek@redhat.com>
587 * ubsan.c: Include rtl.h and expr.h.
588 (ubsan_encode_value): Add new parameter. If expanding, assign
589 a stack slot for DECL_RTL of the temporary and call expand_assignment.
590 Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
591 (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
592 * ubsan.h (ubsan_encode_value): Adjust declaration.
593 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
594 ubsan_build_overflow_builtin above expand_normal call. Surround
595 this call with push_temp_slots and pop_temp_slots.
596 (ubsan_expand_si_overflow_neg_check): Likewise.
597 (ubsan_expand_si_overflow_mul_check): Likewise.
599 2013-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
601 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
602 the get_alternative_base call with flag_expensive_optimizations.
603 (alloc_cand_and_find_basis): Likewise.
605 2013-12-05 Tejas Belagod <tejas.belagod@arm.com>
607 * rtlanal.c (set_noop_p): Return nonzero in case of redundant
608 vec_select for overlapping register lanes.
610 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
612 * config/i386/i386.c (ix86_expand_builtin): Generate
613 reg for readflags built-in when optimizing.
614 * config/i386/i386.md (*pushfl<mode>): Rename to ...
615 (pushfl<mode>2): This. Fix iterator.
616 (*popfl<mode>): Rename to ...
617 (*popfl<mode>1): This. Fix iterator.
619 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
621 * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
622 (IX86_BUILTIN_WRITE_FLAGS): Ditto.
623 (ix86_init_mmx_sse_builtins): Define
624 __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
625 __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
626 (ix86_expand_builtin): Expand them.
627 * config/i386/ia32intrin.h (__readeflags): New.
628 (__writeeflags): Ditto.
629 * gcc/config/i386/i386.md (*pushfl<mode>): Ditto.
630 (*popfl<mode>1): Ditto.
632 2013-12-05 Richard Biener <rguenther@suse.de>
634 PR tree-optimization/59374
635 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
636 Commonize known and unknown dependence case fixing the allowed
637 read-write dependence case and dropping code that should not matter.
639 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
641 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
642 generation of predicated version.
643 (epilogue_deallocate_stack): Ditto.
644 (prologue_allocate_stack_pr): Add explicit predicated version.
645 (epilogue_deallocate_stack_pr): Ditto.
646 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
648 2013-12-05 Alan Modra <amodra@gmail.com>
650 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
652 <recursive call for build != host>: Clear GMPINC. Don't bother
655 2013-12-04 Jakub Jelinek <jakub@redhat.com>
656 Marek Polacek <polacek@redhat.com>
658 * opts.c (common_handle_option): Handle
659 -fsanitize=signed-integer-overflow.
660 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
661 negv<mode>3, negv<mode>3_1): Define expands.
662 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
663 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
664 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
665 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
666 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
667 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
668 PROB_ALWAYS): Define.
669 (ubsan_build_overflow_builtin): Declare.
670 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
672 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
673 (ubsan_build_overflow_builtin): New function.
674 (instrument_si_overflow): Likewise.
675 (ubsan_pass): Add signed integer overflow checking.
676 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
677 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
678 * internal-fn.c: Include ubsan.h and target.h.
679 (ubsan_expand_si_overflow_addsub_check): New function.
680 (ubsan_expand_si_overflow_neg_check): Likewise.
681 (ubsan_expand_si_overflow_mul_check): Likewise.
682 (expand_UBSAN_CHECK_ADD): Likewise.
683 (expand_UBSAN_CHECK_SUB): Likewise.
684 (expand_UBSAN_CHECK_MUL): Likewise.
685 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
686 (-A) + B -> B - A when doing the signed integer overflow checking.
687 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
689 * tree-vrp.c (extract_range_basic): Handle internal calls.
690 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
692 * asan.c: Include predict.h.
693 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
694 * predict.c: Move the PROB_* macros...
695 * predict.h (enum br_predictor): ...here.
696 (PROB_LIKELY, PROB_UNLIKELY): Define.
697 * trans-mem.c: Include predict.h.
698 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
699 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
701 2013-12-04 Jeff Law <law@redhat.com>
703 * common.opt: Split up -fisolate-erroneous-paths into
704 -fisolate-erroneous-paths-dereference and
705 -fisolate-erroneous-paths-attribute.
706 * invoke.texi: Corresponding changes.
707 * gimple.c (infer_nonnull_range): Add and use new arguments to control
708 what kind of statements can be used to infer a non-null range.
709 * gimple.h (infer_nonnull_range): Update prototype.
710 * tree-vrp.c (infer_value_range): Corresponding changes.
711 * opts.c (default_options_table): Update due to option split.
712 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
713 (find_implicit_erroneous_behaviour): Pass additional arguments
714 to infer_nonnull_range.
715 (find_explicit_erroneous_behaviour): Similarly.
716 (gate_isolate_erroneous_paths): Check both of the new options.
718 2013-12-04 Jeff Law <law@redhat.com>
720 * expr.c (expand_assignment): Update comments.
722 2013-12-04 Tobias Burnus <burnus@net-b.de>
725 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
726 * tree.def (NAMELIST_DECL): Add.
727 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
728 * tree.c (initialize_tree_contains_struct): Add asserts for it.
729 * dwarf2out.c (gen_namelist_decl): New function.
730 (gen_decl_die, dwarf2out_decl): Call it.
731 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
732 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
733 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
735 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
737 2013-12-03 Xinliang David Li <davidxl@google.com>
739 * tree-ssa-structalias.c (constraint_set_union): Change return type
741 (merge_node_constraints): Ditto.
742 (unify_nodes): Update changed set when constraints set changes.
744 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
746 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
748 * configure: Regenerated.
750 * gdbasan.in: New file.
752 2013-12-04 Jakub Jelinek <jakub@redhat.com>
754 PR rtl-optimization/58726
755 * combine.c (force_to_mode): Fix comment typo. Don't destructively
756 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
758 2013-12-04 Jakub Jelinek <jakub@redhat.com>
759 Uros Bizjak <ubizjak@gmail.com>
762 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
763 !TARGET_AVX there is misaligned MEM operand with vector mode
764 and get_attr_ssememalign is 0, return false.
765 (ix86_expand_special_args_builtin): Add get_pointer_alignment
766 computed alignment and for non-temporal loads/stores also
767 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
769 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
770 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
771 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
772 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
773 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
774 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
775 *vec_interleave_highv2df, *vec_interleave_lowv2df,
776 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
777 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
778 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
779 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
780 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
781 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
782 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
783 * config/i386/i386.md (ssememalign): New define_attr.
785 2013-12-04 Jakub Jelinek <jakub@redhat.com>
787 PR tree-optimization/59355
788 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
789 * opts.c (common_handle_option): Fix comment spelling.
791 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
793 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
794 (name_expansions): New static variable.
795 (alt_base_map): Ditto.
796 (get_alternative_base): New function.
797 (find_basis_for_candidate): For CAND_REF, optionally call
798 find_basis_for_base_expr with the returned value from
799 get_alternative_base.
800 (record_potential_basis): Add new parameter 'base' of type 'tree';
801 add an assertion of non-NULL base; use base to set node->base_expr.
802 (alloc_cand_and_find_basis): Update; call record_potential_basis
803 for CAND_REF with the returned value from get_alternative_base.
804 (replace_refs): Dump details on the replacing.
805 (execute_strength_reduction): Call pointer_map_create for
806 alt_base_map; call free_affine_expand_cache with &name_expansions.
808 2013-12-03 Wei Mi <wmi@google.com>
810 PR rtl-optimization/59020
811 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
812 (sched_analyze_insn): Call try_group_insn.
813 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
814 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
815 (group_insns_for_macro_fusion): Removed.
816 (sched_init): Remove calling group_insns_for_macro_fusion.
818 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
820 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
822 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
824 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
826 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
828 (aarch64_can_eliminate): Don't check elimination source when
829 frame_pointer_required is false.
831 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
833 * config/avr/avr.c (avr_option_override): Warn if asked to generate
834 position independent code.
835 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
837 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
840 * config/i386/i386.c (emit_memset): Adjust destination address
842 (expand_setmem_epilogue): Likewise.
844 2013-12-03 Marek Polacek <polacek@redhat.com>
847 * calls.c (expand_call): Disallow passing huge arguments by value.
849 2013-12-03 Jakub Jelinek <jakub@redhat.com>
851 PR tree-optimization/59362
852 * tree-object-size.c (object_sizes): Change into array of
853 vec<unsigned HOST_WIDE_INT>.
854 (compute_builtin_object_size): Check computed bitmap for
855 non-NULL instead of object_sizes. Call safe_grow on object_sizes
856 vector if new SSA_NAMEs appeared.
857 (init_object_sizes): Check computed bitmap for non-NULL.
858 Call safe_grow on object_sizes elements instead of initializing
860 (fini_object_sizes): Call release on object_sizes elements, don't
864 * gimplify.c (nonlocal_vla_vars): New variable.
865 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
866 nonlocal_vla_vars chain.
867 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
868 if outer_bind has DECL_INITIAL (current_function_decl) block.
871 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
873 * expr.h (struct saved_pending_stack_adjust): New type.
874 (save_pending_stack_adjust, restore_pending_stack_adjust): New
876 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
877 and get_last_insn before do_pending_stack_adjust, call
878 restore_pending_stack_adjust after delete_insns_since.
879 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
880 before calling emit_conditional_move.
881 * expmed.c (expand_sdiv_pow2): Likewise.
882 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
884 2013-12-02 Jeff Law <law@redhat.com>
886 PR tree-optimization/59322
887 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
888 Remove code which copied jump threading paths.
890 2013-12-02 Sriraman Tallam <tmsriram@google.com>
893 * config/i386/i386.opt (ix86_arch_string): Mark this variable
894 for saving in cl_target_option.
895 (ix86_tune_string): Ditto.
896 (ix86_cmodel): Ditto.
898 (ix86_asm_dialect): Ditto.
899 (ix86_branch_cost): Ditto.
900 (ix86_dump_tunes): Ditto.
901 (ix86_force_align_arg_pointer): Ditto.
902 (ix86_force_drap): Ditto.
903 (ix86_incoming_stack_boundary_arg): Ditto.
905 (ix86_preferred_stack_boundary_arg): Ditto.
906 (ix86_recip_name): Ditto.
907 (ix86_regparm): Ditto.
908 (ix86_section_threshold): Ditto.
909 (ix86_sse2avx): Ditto.
910 (ix86_stack_protector_guard): Ditto.
911 (ix86_stringop_alg): Ditto.
912 (ix86_tls_dialect): Ditto.
913 (ix86_tune_ctrl_string): Ditto.
914 (ix86_tune_memcpy_strategy): Ditto.
915 (ix86_tune_memset_strategy): Ditto.
916 (ix86_tune_no_default): Ditto.
917 (ix86_veclibabi_type): Ditto.
918 * config/i386/i386.c (function_specific_save): Save the above
919 variables in gcc_options to cl_target_option.
920 (function_specific_restore): Do the reverse done in
921 function_specific_save.
922 (ix86_valid_target_attribute_tree): Change ix86_arch_string
923 and ix86_tune_string to use the opts structure.
924 (ix86_option_override_internal):Change
925 ix86_incoming_stack_boundary_arg to
926 opts->x_ix86_incoming_stack_boundary_arg
928 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
930 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
931 in #ifndef IN_LIBGCC2 / #endif.
933 2013-12-02 Jakub Jelinek <jakub@redhat.com>
935 PR tree-optimization/59358
936 * tree-vrp.c (union_ranges): To check for the partially overlapping
937 ranges or adjacent ranges, also compare *vr0max with vr1max.
939 2013-12-02 Sterling Augustine  <saugustine@google.com>
941 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
942 when there isn't a skeleton die.
944 2013-12-02 Marek Polacek <polacek@redhat.com>
947 * doc/invoke.texi: Document -fsanitize=return.
949 2013-12-02 Tobias Burnus <burnus@net-b.de>
950 Manuel López-Ibáñez <manu@gcc.gnu.org>
953 * doc/invoke.texi: Add missing @opindex.
954 (-fsanitize=): Use @gcctabopt instead of @itemize.
956 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
958 Fix C++0x memory model for unaligned fields in packed, aligned(4)
959 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
960 targets like arm-none-eabi.
961 * expr.c (expand_assignment): Handle normal fields like bit regions.
963 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
966 * function.c (invoke_set_current_function_hook): Call
967 targetm.set_current_function after setting this_fn_optabs.
969 2013-12-02 Richard Biener <rguenther@suse.de>
971 PR tree-optimization/59139
972 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
974 (get_val_for): Use gcc_checking_asserts.
976 2013-12-02 Richard Biener <rguenther@suse.de>
979 * tree-ssa-operands.c (opf_implicit): Remove.
980 (opf_address_taken): New flag.
981 (get_expr_operands): Remove early out, pass down opf_address_taken for
982 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
983 (get_indirect_ref_operands): Rename to ...
984 (get_mem_ref_operands): ... this.
985 (get_asm_expr_operands): Rename to ...
986 (get_asm_stmt_operands): ... this.
988 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
990 * ipa-inline.c (check_callers): Add missed pointer de-reference.
992 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
994 PR tree-optimization/59356
995 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
996 offset computation using the precision of the index type.
998 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
1001 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
1002 when rclass is GENERAL_REGS.
1004 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1006 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
1007 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
1009 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
1011 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
1014 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1016 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
1018 2013-11-30 Paulo Matos <pmatos@broadcom.com>
1019 Eric Botcazou <ebotcazou@adacore.com>
1021 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
1022 as applied to nonzero_sign_valid when last_set_mode has less precision
1025 2013-11-30 Tobias Burnus <burnus@net-b.de>
1028 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
1029 environment variable and link to a list with flags.
1030 (-fsanitize=thread): Ditto and update link.
1032 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
1034 PR rtl-optimization/59340
1035 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
1038 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
1040 * lra.c (lra): Set lra_in_progress before check_rtl call.
1041 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
1042 adding clobber regs when LRA is running.
1044 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1047 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
1049 2013-11-29 Richard Biener <rguenther@suse.de>
1052 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
1053 free_stmt_operands, update_stmt_operands): Add struct function
1055 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
1056 function argument from fini_ssa_operands, verify_ssa_operands,
1057 free_stmt_operands and update_stmt_operands everywhere.
1058 * tree-ssanames.h (release_ssa_name_fn): New.
1059 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
1060 * tree-ssanames.c (release_ssa_name): Rename to ...
1061 (release_ssa_name_fn): ... this and add struct function argument.
1062 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
1063 (update_stmt_fn): New function.
1064 * tree-cfg.c (move_block_to_fn): Adjust.
1065 * tree-if-conv.c (free_bb_predicate): Likewise.
1066 * tree-ssa.c (verify_ssa): Likewise.
1067 (delete_tree_ssa): Likewise.
1068 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
1069 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
1070 update_stmt_fn instead of update_stmt.
1072 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
1074 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
1077 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
1079 * config/arm/arm.md (store_minmaxsi): Use only when
1080 optimize_function_for_size_p.
1082 2013-11-29 Jakub Jelinek <jakub@redhat.com>
1083 Yury Gribov <y.gribov@samsung.com>
1086 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
1087 * gcc.c: Using libsanitizer spec instead of explicit libs.
1089 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
1092 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
1093 * cgraph.h (varpool_node): Add need_bounds_init field.
1094 * lto-cgraph.c (lto_output_varpool_node): Output
1095 need_bounds_init value.
1096 (input_varpool_node): Read need_bounds_init value.
1097 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
1100 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
1101 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
1102 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
1103 (gen_type_die_with_usage): Skip pointer bounds.
1104 (dwarf2out_global_decl): Likewise.
1107 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
1108 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
1109 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
1110 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
1111 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
1112 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
1113 (gimple_call_with_bounds_p): New.
1114 (gimple_call_set_with_bounds): New.
1115 (gimple_call_num_nobnd_args): Remove.
1116 (gimple_call_nobnd_arg): Remove.
1117 * tree.h (CALL_WITH_BOUNDS_P): New.
1118 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
1121 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
1122 * common.opt (fcheck-pointer-bounds): Move to ...
1123 * c-family/c.opt: ... here.
1124 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
1125 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
1126 * langhooks.h (lang_hooks): Remove chkp_supported field.
1127 * toplev.c (process_options): Remove chkp_supported check.
1130 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
1131 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
1132 * tree.h (POINTER_BOUNDS_P): New.
1133 (BOUNDED_TYPE_P): New.
1135 (pointer_bounds_type_node): New.
1136 * tree.c (build_common_tree_nodes): Initialize
1137 pointer_bounds_type_node.
1138 * gimple.h (gimple_call_get_nobnd_arg_index): New.
1139 (gimple_call_num_nobnd_args): New.
1140 (gimple_call_nobnd_arg): New.
1141 (gimple_return_retbnd): New.
1142 (gimple_return_set_retbnd): New
1143 * gimple.c (gimple_build_return): Increase number of ops
1144 for return statement.
1145 (gimple_call_get_nobnd_arg_index): New.
1146 * gimple-pretty-print.c (dump_gimple_return): Print second op.
1149 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
1150 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
1151 with "chkp ctor" and "bnd_legacy" attributes.
1152 * gimplify.c (gimplify_init_constructor): Avoid infinite
1153 loop during gimplification of bounds initializer.
1156 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
1157 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
1158 (handle_bnd_legacy): New.
1159 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
1160 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
1164 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
1165 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
1166 (BT_FN_PTR_CONST_PTR): New.
1167 (BT_FN_CONST_PTR_CONST_PTR): New.
1168 (BT_FN_PTR_CONST_PTR_SIZE): New.
1169 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
1170 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
1171 (BT_FN_VOID_CONST_PTR_SIZE): New.
1172 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
1173 * chkp-builtins.def: New.
1174 * builtins.def: include chkp-builtins.def.
1175 (DEF_CHKP_BUILTIN): New.
1176 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
1177 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
1178 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
1179 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
1180 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
1181 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
1182 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
1183 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
1184 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
1185 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
1186 * common.opt (fcheck-pointer-bounds): New.
1187 * toplev.c (process_options): Check Pointer Bounds Checker is
1189 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
1192 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
1193 * target.def (builtin_chkp_function): New.
1194 (chkp_bound_type): New.
1195 (chkp_bound_mode): New.
1196 (fn_abi_va_list_bounds_size): New.
1197 (load_bounds_for_arg): New.
1198 (store_bounds_for_arg): New.
1199 * targhooks.h (default_load_bounds_for_arg): New.
1200 (default_store_bounds_for_arg): New.
1201 (default_fn_abi_va_list_bounds_size): New.
1202 (default_chkp_bound_type): New.
1203 (default_chkp_bound_mode): New.
1204 (default_builtin_chkp_function): New.
1205 * targhooks.c (default_load_bounds_for_arg): New.
1206 (default_store_bounds_for_arg): New.
1207 (default_fn_abi_va_list_bounds_size): New.
1208 (default_chkp_bound_type): New.
1209 (default_chkp_bound_mode); New.
1210 (default_builtin_chkp_function): New.
1211 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
1212 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
1213 (TARGET_STORE_BOUNDS_FOR_ARG): New.
1214 (TARGET_BUILTIN_CHKP_FUNCTION): New.
1215 (TARGET_CHKP_BOUND_TYPE): New.
1216 (TARGET_CHKP_BOUND_MODE): New.
1217 * doc/tm.texi: Regenerated.
1218 * langhooks.h (lang_hooks): Add chkp_supported field.
1219 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
1220 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
1223 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
1224 * config/i386/constraints.md (B): New.
1227 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
1228 * config/i386/i386-modes.def (BND32): New.
1230 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
1231 * config/i386/i386.c (isa_opts): Add mmpx.
1232 (regclass_map): Add bound registers.
1233 (dbx_register_map): Likewise.
1234 (dbx64_register_map): Likewise.
1235 (svr4_dbx_register_map): Likewise.
1237 (ix86_option_override_internal): Support MPX ISA.
1238 (ix86_conditional_register_usage): Support bound registers.
1239 (print_reg): Likewise.
1240 (ix86_code_end): Add MPX bnd prefix.
1241 (output_set_got): Likewise.
1242 (ix86_output_call_insn): Likewise.
1243 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
1244 (ix86_print_operand_punct_valid_p): Likewise.
1245 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
1247 (ix86_class_likely_spilled_p): Add bound regs support.
1248 (ix86_hard_regno_mode_ok): Likewise.
1249 (x86_order_regs_for_local_alloc): Likewise.
1250 (ix86_bnd_prefixed_insn_p): New.
1251 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
1252 (FIXED_REGISTERS): Add bound registers.
1253 (CALL_USED_REGISTERS): Likewise.
1254 (REG_ALLOC_ORDER): Likewise.
1255 (HARD_REGNO_NREGS): Likewise.
1257 (VALID_BND_REG_MODE): New.
1258 (FIRST_BND_REG): New.
1259 (LAST_BND_REG): New.
1260 (reg_class): Add BND_REGS.
1261 (REG_CLASS_NAMES): Likewise.
1262 (REG_CLASS_CONTENTS): Likewise.
1264 (ANY_BND_REG_P): New.
1266 (HI_REGISTER_NAMES): Add bound registers.
1267 * config/i386/i386.md (UNSPEC_BNDMK): New.
1268 (UNSPEC_BNDMK_ADDR): New.
1269 (UNSPEC_BNDSTX): New.
1270 (UNSPEC_BNDLDX): New.
1271 (UNSPEC_BNDLDX_ADDR): New.
1272 (UNSPEC_BNDCL): New.
1273 (UNSPEC_BNDCU): New.
1274 (UNSPEC_BNDCN): New.
1275 (UNSPEC_MPX_FENCE): New.
1278 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
1279 (length_immediate): Likewise.
1280 (prefix_0f): Likewise.
1282 (prefix_rep): Check for bnd prefix.
1283 (length_nobnd): New.
1284 (length): Use length_nobnd if specified.
1289 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
1292 (simple_return_internal): Likewise.
1293 (simple_return_pop_internal): Likewise.
1294 (*indirect_jump): Add MPX bnd prefix.
1295 (*tablejump_1): Likewise.
1296 (simple_return_internal_long): Likewise.
1297 (simple_return_indirect_internal): Likewise.
1301 (*mov<mode>_internal_mpx): New.
1302 (<mode>_<bndcheck>): New.
1303 (*<mode>_<bndcheck>): New.
1308 * config/i386/predicates.md (lea_address_operand): Rename to...
1309 (address_no_seg_operand): ... this.
1310 (address_mpx_no_base_operand): New.
1311 (address_mpx_no_index_operand): New.
1312 (bnd_mem_operator): New.
1313 * config/i386/i386.opt (mmpx): New.
1314 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
1315 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
1318 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
1319 * mode-classes.def (MODE_POINTER_BOUNDS): New.
1320 * tree.def (POINTER_BOUNDS_TYPE): New.
1321 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
1322 (POINTER_BOUNDS_MODE): New.
1323 (make_pointer_bounds_mode): New.
1324 * machmode.h (POINTER_BOUNDS_MODE_P): New.
1325 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
1326 (layout_type): Support POINTER_BOUNDS_TYPE.
1327 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
1328 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
1329 (type_contains_placeholder_1): Likewise.
1330 * tree.h (POINTER_BOUNDS_TYPE_P): New.
1331 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
1332 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
1334 2013-11-29 Richard Biener <rguenther@suse.de>
1337 * tree-cfg.c (verify_expr): Restrict bounds verification of
1338 BIT_FIELD_REF arguments to non-aggregate typed base objects.
1340 2013-11-29 Richard Biener <rguenther@suse.de>
1342 PR tree-optimization/59334
1343 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
1346 2013-11-29 Jakub Jelinek <jakub@redhat.com>
1347 Richard Biener <rguenther@suse.de>
1350 * omp-low.c (simd_clone_create): Return NULL if for definition
1351 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
1352 before calling cgraph_function_versioning.
1353 (expand_simd_clones): Look for "omp declare simd" attribute first.
1354 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
1355 Punt if node->global.inlined_to.
1356 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
1357 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
1358 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
1360 2013-11-29 Jakub Jelinek <jakub@redhat.com>
1363 * tree-core.h (enum omp_clause_schedule_kind): Add
1364 OMP_CLAUSE_SCHEDULE_LAST.
1365 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
1366 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
1367 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
1368 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
1369 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
1370 (DFS_write_tree_body): Handle OMP_CLAUSE.
1371 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
1372 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
1373 (write_ts_omp_clause_tree_pointers): New function.
1374 (streamer_write_tree_body): Call it for OMP_CLAUSE.
1375 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
1376 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
1377 (unpack_value_fields): Call it for OMP_CLAUSE.
1378 (streamer_alloc_tree): Handle OMP_CLAUSE.
1379 (lto_input_ts_omp_clause_tree_pointers): New function.
1380 (streamer_read_tree_body): Call it for OMP_CLAUSE.
1382 2013-11-29 Joseph Myers <joseph@codesourcery.com>
1384 * doc/implement-c.texi: Document C11 implementation-defined
1385 behavior. Refer to -ffp-contract=fast for contraction behavior.
1386 * doc/invoke.texi (-std=c99, std=c11): Update description of
1388 (-std=gnu99): Don't mention as future default.
1389 (-std=gnu11): Mention as intended future default.
1390 * doc/standards.texi: Update descriptions of C99 and C11 support.
1391 Limit statement about C99 facilities for freestanding
1392 implementations to some platforms only.
1394 2013-11-28 Jakub Jelinek <jakub@redhat.com>
1397 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
1399 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
1402 * ira.h (ira_setup_eliminable_regset): Remove parameter.
1403 * ira.c (ira_setup_eliminable_regset): Ditto. Add
1404 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
1405 Don't call lra_init_elimination.
1406 (ira): Call ira_setup_eliminable_regset without arguments.
1407 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
1408 from ira_setup_eliminable_regset call.
1409 * gcse.c (calculate_bb_reg_pressure): Ditto.
1410 * haifa-sched.c (sched_init): Ditto.
1411 * lra.h (lra_init_elimination): Remove the prototype.
1412 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
1413 used_insn_alternative upper.
1414 (lra_eliminate_regs_1): Add one more parameter.
1415 (lra-eliminate): Ditto.
1416 * lra.c (lra_invalidate_insn_data): Set sp_offset.
1417 (setup_sp_offset): New.
1418 (lra_process_new_insns): Call setup_sp_offset.
1419 (lra): Add argument to lra_eliminate calls.
1420 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
1421 (get_equiv_with_elimination): New.
1422 (process_addr_reg): Call get_equiv_with_elimination instead of
1423 get_equiv_substitution.
1424 (equiv_address_substitution): Ditto.
1425 (loc_equivalence_change_p): Ditto.
1426 (loc_equivalence_callback, lra_constraints): Ditto.
1427 (curr_insn_transform): Ditto. Print the sp offset
1428 (process_alt_operands): Prevent stack pointer reloads.
1429 (lra_constraints): Remove one argument from lra_eliminate call.
1430 Move it up. Mark used hard regs bfore it. Use
1431 get_equiv_with_elimination instead of get_equiv_substitution.
1432 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
1433 assert for param values combination. Use sp offset. Add argument
1434 to lra_eliminate_regs_1 calls.
1435 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
1436 (curr_sp_change): New static var.
1437 (mark_not_eliminable): Add parameter. Update curr_sp_change.
1438 Don't prevent elimination to sp if we can calculate its change.
1439 Pass the argument to mark_not_eliminable calls.
1440 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
1441 argument to lra_eliminate_regs_1 call.
1442 (update_reg_eliminate): Move calculation of hard regs for spill
1443 lower. Switch off lra_in_progress temporarily to generate regs
1444 involved into elimination.
1445 (lra_init_elimination): Rename to init_elimination. Make it
1446 static. Set up insn sp offset, check the offsets at the end of BBs.
1447 (process_insn_for_elimination): Add parameter. Pass its value to
1448 eliminate_regs_in_insn.
1449 (lra_eliminate): : Add parameter. Pass its value to
1450 process_insn_for_elimination. Add assert for param values
1451 combination. Call init_elimination. Don't update offsets in
1452 equivalence substitutions.
1453 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
1454 for created stack slot.
1455 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
1458 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1460 * config/arm/iterators.md (vrint_conds): New int attribute.
1461 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
1462 (smax<mode>3): Likewise.
1463 (smin<mode>3): Likewise.
1465 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
1467 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
1468 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
1469 * tree-ssanames.h (set_range_info): Add range_type argument.
1470 (duplicate_ssa_name_range_info): Likewise.
1471 * tree-ssanames.c (set_range_info): Take the range type as argument
1472 and store it in SSA_NAME_ANTI_RANGE_P.
1473 (duplicate_ssa_name_range_info): Likewise.
1474 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
1475 (set_nonzero_bits): Update call to set_range_info.
1476 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
1477 * tree-ssa-copy.c (fini_copy_prop): Likewise.
1478 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
1479 (vrp_finalize): Likewise, passing anti-ranges directly.
1481 2013-11-28 Richard Biener <rguenther@suse.de>
1483 PR tree-optimization/59330
1484 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
1485 and fix delayed marking of free calls not necessary.
1487 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
1489 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
1491 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
1493 2013-11-28 Terry Guo <terry.guo@arm.com>
1495 * config/arm/arm.c (v7m_extra_costs): New table.
1496 (arm_v7m_tune): Use it.
1498 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1500 * config/sol2.h (TIME_LIBRARY): Define.
1502 2013-11-28 Richard Biener <rguenther@suse.de>
1505 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
1506 CONST_DECLs in function context are not indexable.
1508 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
1510 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
1511 not optimized for size.
1513 2013-11-28 Jakub Jelinek <jakub@redhat.com>
1515 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
1517 (expand_stack_vars): For -fsanitize=address, use (and set initially)
1518 data->asan_base as base for vars and update asan_alignb.
1519 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
1520 Pass them to asan_emit_stack_protection.
1521 * asan.c (asan_detect_stack_use_after_return): New variable.
1522 (asan_emit_stack_protection): Add pbase and alignb arguments.
1523 Implement use after return sanitization.
1524 * asan.h (asan_emit_stack_protection): Adjust prototype.
1525 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
1527 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1529 * common.opt: Introduced a new option -fsimd-cost-model.
1530 * doc/invoke.texi: Introduced a new openmp-simd warning and
1531 a new -fsimd-cost-model option.
1532 * tree-vectorizer.h (unlimited_cost_model): Interface updated
1533 to rely on the particular loop info.
1534 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
1535 (vect_peeling_hash_choose_best_peeling): Ditto.
1536 (vect_enhance_data_refs_alignment): Ditto.
1537 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
1538 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
1539 plus added openmp-simd warining.
1541 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
1543 PR rtl-optimization/59311
1544 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
1545 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
1547 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
1549 * var-tracking.c (track_expr_p): Do not track declarations for parts
1550 of tracked parameters.
1551 (add_stores): Do not track values for tracked parameters passed in
1553 (vt_get_decl_and_offset): Handle PARALLEL.
1554 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
1556 2013-11-27 Jeff Law <law@redhat.com>
1558 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
1559 clobber the loop structure thread_block was unsuccessful. If
1560 thread_block was unsuccessful, cleanup appropriately.
1562 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
1564 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
1565 (score_char_to_class): Likewise.
1567 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
1569 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
1570 the overflow bit set.
1572 2013-11-27 Richard Biener <rguenther@suse.de>
1575 * cgraphbuild.c (build_cgraph_edges): Do not build edges
1577 (rebuild_cgraph_edges): Likewise.
1578 * ipa-inline-analysis.c (estimate_function_body_sizes):
1579 Skip internal calls.
1580 * tree-inline.c (estimate_num_insns): Estimate size of internal
1582 (gimple_expand_calls_inline): Do not try inline-expanding
1584 * lto-streamer-in.c (input_cfg): Stream loop safelen,
1585 force_vect and simduid.
1586 (input_struct_function_base): Stream has_force_vect_loops
1587 and has_simduid_loops.
1588 (input_function): Adjust.
1589 * lto-streamer-out.c (output_cfg): Stream loop safelen,
1590 force_vect and simduid.
1591 (output_struct_function_base): Stream has_force_vect_loops
1592 and has_simduid_loops.
1594 2013-11-27 Kai Tietz <ktietz@redhat.com>
1596 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
1599 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
1601 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
1602 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
1604 2013-11-27 Marek Polacek <polacek@redhat.com>
1607 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
1608 instead of walk_gimple_op.
1609 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
1611 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
1612 Jakub Jelinek <jakub@redhat.com>
1614 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
1615 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
1616 (struct cgraph_node): Add simdclone and simd_clones fields.
1617 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
1618 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
1619 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1620 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
1621 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1622 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
1623 * doc/tm.texi: Regenerated.
1624 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
1625 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
1626 attribute is present.
1627 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
1628 (simd_clone_vector_of_formal_parm_types): New function.
1629 (simd_clone_struct_alloc, simd_clone_struct_copy,
1630 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
1631 simd_clone_compute_base_data_type, simd_clone_mangle,
1632 simd_clone_create, simd_clone_adjust_return_type,
1633 create_tmp_simd_array, simd_clone_adjust_argument_types,
1634 simd_clone_init_simd_arrays): New functions.
1635 (struct modify_stmt_info): New type.
1636 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
1637 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
1639 (pass_data_omp_simd_clone): New variable.
1640 (pass_omp_simd_clone): New class.
1641 (make_pass_omp_simd_clone): New function.
1642 * passes.def (pass_omp_simd_clone): New.
1643 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1644 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
1645 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
1646 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
1647 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
1648 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
1649 * tree-vect-data-refs.c: Include cgraph.h.
1650 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
1651 and find_data_references_in_bb, if find_data_references_in_stmt
1652 fails, still allow calls to #pragma omp declare simd functions
1653 in #pragma omp simd loops unless they contain data references among
1654 the call arguments or in lhs.
1655 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1657 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
1659 * tree-vectorizer.h (enum stmt_vec_info_type): Add
1660 call_simd_clone_vec_info_type.
1661 (struct _stmt_vec_info): Add simd_clone_fndecl field.
1662 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
1663 * tree-vect-stmts.c: Include tree-ssa-loop.h,
1664 tree-scalar-evolution.h and cgraph.h.
1665 (vectorizable_call): Handle calls without lhs. Assert
1666 !stmt_can_throw_internal instead of failing for it. Don't update
1668 (struct simd_call_arg_info): New.
1669 (vectorizable_simd_clone_call): New function.
1670 (vect_transform_stmt): Call it.
1671 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
1673 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
1674 if cgraph_function_with_gimple_body_p is true.
1676 2013-11-27 Tom de Vries <tom@codesourcery.com>
1677 Marc Glisse <marc.glisse@inria.fr>
1680 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
1682 * gimple-fold.c (gimple_fold_indirect_ref): Same.
1683 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
1686 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
1689 * expr.c (emit_group_store): Don't write past the end of the structure.
1690 (store_bit_field): Fix formatting.
1692 2013-11-27 Richard Biener <rguenther@suse.de>
1694 PR tree-optimization/59288
1695 * tree-vect-loop.c (get_initial_def_for_induction): Do not
1696 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
1698 2013-11-27 Marek Polacek <polacek@redhat.com>
1700 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
1701 for a decl, recreate that decl. Save into the hash table VAR_DECLs
1702 rather than ADDR_EXPRs.
1704 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1706 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
1708 2013-11-26 David Malcolm <dmalcolm@redhat.com>
1710 * gengtype.c (struct seen_tag): New.
1711 (already_seen_tag): New.
1712 (mark_tag_as_seen): New.
1713 (walk_subclasses): Support having multiple subclasses using the
1714 same tag by tracking which tags have already been seen, and using
1715 this to avoid adding duplicate cases to the "switch" statement.
1716 The call to already_seen_tag introduces an O(N^2) when running
1717 gengtype on N, the number of tags, due to the repeated linear
1718 search, but currently max(N) is relatively small (the number of
1719 GSS codes, which is 26).
1720 (walk_type): Pass in a seen_tag for use by the walk_subclasses
1723 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
1724 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
1725 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
1726 GIMPLE_OMP_RETURN happens to share the data layout of
1727 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
1728 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
1729 underlying GSS value from GSS_OMP_PARALLEL to
1730 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
1731 not directly related; they merely share in-memory layout.
1732 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
1733 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
1735 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
1737 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
1739 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
1740 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
1741 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
1742 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
1745 * gimple.h (gimple_statement_resx): New subclass of
1746 gimple_statement_eh_ctrl, with the invariant that
1747 stmt->code == GIMPLE_RESX.
1748 (gimple_statement_eh_dispatch): New subclass of
1749 gimple_statement_eh_ctrl, with the invariant that
1750 stmt->code == GIMPLE_EH_DISPATH.
1752 (gimple_statement_omp_parallel): The existing class expressed
1753 a layout (GSS_OMP_PARALLEL), but the codes with that layout
1754 are not all related, so it makes more sense for this class to
1755 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
1756 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
1757 rename the existing gimple_statement_omp_parallel class to...
1758 (gimple_statement_omp_parallel_layout): ...this, expressing
1759 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
1760 (gimple_statement_omp_taskreg): New subclass of
1761 gimple_statement_omp_parallel_layout, expressing the invariant
1762 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
1763 as used by the various gimple_omp_taskreg_ accessors.
1764 (gimple_statement_omp_parallel): Reintroduce this class, this time
1765 as a subclass of gimple_statement_omp_taskreg to express the
1766 invariant stmt->code == GIMPLE_OMP_PARALLEL.
1767 (gimple_statement_omp_target) New class, subclassing
1768 gimple_statement_omp_parallel_layout, to express the invariant
1769 stmt->code == GIMPLE_OMP_TARGET.
1770 (gimple_statement_omp_task): Update to inherit from
1771 gimple_statement_omp_taskreg rather than
1772 gimple_statement_omp_parallel.
1774 (gimple_statement_omp_single): Rename to...
1775 (gimple_statement_omp_single_layout): ...this, expressing the
1776 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
1777 (gimple_statement_omp_single): ...and reintroduce this name as
1778 a subclass of gimple_statement_omp_single_layout, expressing
1779 the invariant that code == GIMPLE_OMP_SINGLE.
1780 (gimple_statement_omp_teams): New class, subclassing
1781 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
1783 (gimple_statement_omp_atomic_store): Rename to...
1784 (gimple_statement_omp_atomic_store_layout): ...this, expressing
1785 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
1786 (gimple_statement_omp_atomic_store): ...and reintroduce this
1787 name as a subclass of gimple_statement_omp_atomic_store_layout
1788 with code == GIMPLE_OMP_ATOMIC_STORE.
1789 (gimple_statement_omp_return): New class, subclassing
1790 gimple_statement_omp_atomic_store_layout for the code
1793 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
1794 (is_a_helper <gimple_statement_resx>::test): New.
1795 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
1796 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
1797 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1798 (is_a_helper <gimple_statement_omp_return>::test): New.
1799 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
1800 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
1801 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1803 (is_a_helper <gimple_statement_omp_target>::test): New.
1804 (is_a_helper <gimple_statement_omp_single>::test): Only check
1805 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1806 (is_a_helper <gimple_statement_omp_teams>::test): New.
1808 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
1809 (is_a_helper <const gimple_statement_resx>::test): New.
1810 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
1811 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
1812 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1813 (is_a_helper <const gimple_statement_omp_return>::test): New.
1814 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
1815 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
1816 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1818 (is_a_helper <const gimple_statement_omp_target>::test): New.
1819 (is_a_helper <const gimple_statement_omp_single>::test): Only
1820 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1821 (is_a_helper <const gimple_statement_omp_teams>::test): New.
1823 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
1824 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
1825 gimple_statement_omp_atomic_store with downcasts to
1826 gimple_statement_omp_return, thus requiring that the code be
1828 (gimple_resx_region, gimple_resx_set_region): Replace bogus
1829 downcasts to gimple_statement_eh_ctrl with downcasts to
1830 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
1831 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
1832 Replace bogus downcasts to const gimple_statement_eh_ctrl with
1833 downcasts to gimple_statement_eh_dispatch, thus requiring that
1834 the code be GIMPLE_EH_DISPATCH.
1835 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
1836 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
1837 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
1838 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
1839 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
1840 gimple_statement_omp_parallel with downcasts to
1841 gimple_statement_omp_taskreg, thus requiring that the code be
1842 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
1843 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
1844 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
1845 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
1846 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
1847 gimple_omp_target_set_data_arg): Replace bogus downcasts to
1848 gimple_statement_omp_parallel with downcasts to
1849 gimple_statement_omp_target, thus requiring that the code be
1851 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
1852 gimple_omp_teams_set_clauses): Replace bogus downcasts to
1853 gimple_statement_omp_single with downcasts to
1854 gimple_statement_omp_teams, thus requiring that the code be
1857 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
1858 gimple_statement_resx.
1859 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
1860 gimple_statement_eh_dispatch.
1862 2013-11-26 Jakub Jelinek <jakub@redhat.com>
1864 PR tree-optimization/59014
1865 * tree-vrp.c (register_edge_assert_for_1): Don't look
1866 through conversions from non-integral types or through
1867 narrowing conversions.
1870 * config/i386/i386.c (device_alg): Fix up formatting.
1871 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
1872 similarly to count && count < epilogue_size_needed. Fix up
1874 * builtins.c (determine_block_size): Fix comment typo.
1877 * ubsan.c (ubsan_source_location): Don't add any location
1878 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
1879 (ubsan_create_data): Strip block info from LOC.
1882 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
1883 if there isn't optab handler for the corresponding vector PLUS_EXPR.
1885 PR rtl-optimization/59166
1886 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
1887 DF_REF_LOC in validate_change call.
1888 (split_live_ranges_for_shrink_wrap): Likewise.
1891 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
1892 of references to constant size types in simd loops, defer emitting
1893 initializer for the new_var, emit it later on only if not using
1897 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
1898 for the inner loop if collapse_bb is non-NULL.
1899 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
1901 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
1903 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
1904 a constant immediate before force_reg.
1906 2013-11-26 Richard Biener <rguenther@suse.de>
1908 PR tree-optimization/59245
1909 * tree-vrp.c (set_value_range): Assert that we don't have
1910 overflowed constants (but our infinities).
1911 (set_value_range_to_value): Drop all overflow flags.
1912 (vrp_visit_phi_node): Likewise.
1913 (vrp_visit_assignment_or_call): Use set_value_range_to_value
1914 to set a constant range.
1916 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1919 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
1920 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
1921 for zero_extend case.
1923 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
1926 * configure.ac (install_gold_as_default): New. Set to yes for
1927 --disable-ld or --enable-gold=default.
1928 (gcc_cv_ld_gold_srcdir): New.
1929 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
1930 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
1931 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1932 * configure: Regenerated.
1934 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
1935 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1936 (original) [collect-ld && -fuse-ld=bfd]: Set to
1937 $ORIGINAL_LD_BFD_FOR_TARGET.
1938 (original) [collect-ld && -fuse-ld=gold]: Set to
1939 $ORIGINAL_LD_GOLD_FOR_TARGET.
1940 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
1941 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
1943 2013-11-26 Terry Guo <terry.guo@arm.com>
1945 * config/arm/arm.c (require_pic_register): Handle high pic base
1946 register for thumb-1.
1947 (arm_load_pic_register): Also initialize high pic base register.
1948 * doc/invoke.texi: Update documentation for option -mpic-register.
1950 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
1954 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
1955 Prefix function names with 'sh_'. Make them non-static.
1956 * config/sh/sh-protos.h (sh_disp_addr_displacement,
1957 sh_max_mov_insn_displacement): Add declarations.
1958 * config/sh/constraints.md (Q): Reject QImode.
1959 (Sdd): Use match_code "mem".
1960 (Snd): Fix erroneous matching of non-memory operands.
1961 * config/sh/predicates.md (short_displacement_mem_operand): New
1963 (general_movsrc_operand): Disallow PC relative QImode loads.
1964 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
1965 (*movqi, *movhi): Merge both insns into...
1966 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
1967 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
1968 on the operand types.
1970 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
1972 * config/epiphany/epiphany.c (epiphany_expand_prologue):
1973 Remove unused variable save_config.
1974 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
1977 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1979 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
1980 using other intrinsics.
1981 (vtbx3_<psu>8): Likewise.
1983 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1985 * config/aarch64/aarch64-builtins.c
1986 (aarch64_types_bsl_p_qualifiers): New.
1987 (aarch64_types_bsl_s_qualifiers): Likewise.
1988 (aarch64_types_bsl_u_qualifiers): Likewise.
1989 (TYPES_BSL_P): Likewise.
1990 (TYPES_BSL_S): Likewise.
1991 (TYPES_BSL_U): Likewise.
1992 (BUILTIN_VALLDIF): Likewise.
1993 (BUILTIN_VDQQH): Likewise.
1994 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
1995 * config/aarch64/aarch64-simd.md
1996 (aarch64_simd_bsl<mode>_internal): Handle more modes.
1997 (aarch64_simd_bsl<mode>): Likewise.
1998 * config/aarch64/arm_neon.h
1999 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
2000 * config/aarch64/iterators.md (VALLDIF): New.
2001 (Vbtype): Handle more modes.
2003 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
2005 * config/aarch64/aarch64-builtins.c
2006 (aarch64_type_qualifiers): Add qualifier_poly.
2007 (aarch64_build_scalar_type): Also build Poly types.
2008 (aarch64_build_vector_type): Likewise.
2009 (aarch64_build_type): Likewise.
2010 (aarch64_build_signed_type): New.
2011 (aarch64_build_unsigned_type): Likewise.
2012 (aarch64_build_poly_type): Likewise.
2013 (aarch64_init_simd_builtins): Also handle Poly types.
2015 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
2017 * config/aarch64/aarch64-builtins.c
2018 (VAR1): Use new naming scheme for aarch64_builtins.
2019 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
2021 2013-11-26 Richard Biener <rguenther@suse.de>
2023 PR tree-optimization/59287
2024 * tree-ssa-structalias.c (get_constraint_for_component_ref):
2025 Remove no longer necessary special-casing of union accesses.
2027 2013-11-26 Richard Biener <rguenther@suse.de>
2029 * pretty-print.c (output_buffer::~output_buffer): Really
2032 2013-11-25 Jeff Law <law@redhat.com>
2034 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
2035 invalidate loop information.
2037 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
2039 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
2041 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
2045 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
2047 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
2048 previously visited basic blocks before recursing instead of only one
2051 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2053 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
2054 * config/aarch64/aarch64-cores.def (cortex-a53):
2055 Use cortexa53 tuning struct.
2057 2013-11-25 Andrew Macleod <amacleod@redhat.com>
2060 * fold-const.c: Include hash-table.h.
2062 2013-11-25 Marek Polacek <polacek@redhat.com>
2065 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
2067 2013-11-25 Richard Biener <rguenther@suse.de>
2069 * tree-dfa.c: Remove unused convert.h include.
2071 2013-11-25 Terry Guo <terry.guo@arm.com>
2073 * doc/invoke.texi (-mslow-flash-data): Document new option.
2074 * config/arm/arm.opt (mslow-flash-data): New option.
2075 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
2077 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
2079 (arm_disable_literal_pool): Declare it.
2080 * config/arm/arm.c (arm_disable_literal_pool): New variable.
2081 (arm_option_override): Handle new option.
2082 (thumb2_legitimate_address_p): Don't allow symbol references when
2083 literal pools are disabled.
2084 (arm_max_const_double_inline_cost): New function.
2085 * config/arm/arm.md (types.md): Include it before ...
2086 (use_literal_pool): New attribute.
2087 (enabled): Use new attribute.
2088 (split pattern): Replace symbol+offset with MOVW/MOVT.
2090 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
2093 Revert previous commit.
2095 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
2097 * jump.c (reset_insn_reg_label_operand_notes): New function,
2099 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
2100 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
2102 (delete_dead_jumptables): ... here. Handle cfglayout mode.
2103 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
2104 expensive CFG cleanup is called for.
2105 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
2106 (cfg_layout_finalize): Delete dead jump tables before re-building
2108 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
2109 basic blocks, not before.
2110 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
2112 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
2113 insns chain of a scheduling extended basic block, they cannot appear
2114 there in cfglayout mode.
2116 2013-11-24 Tobias Burnus <burnus@net-b.de>
2118 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
2120 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2122 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
2125 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
2127 * graphite-sese-to-poly.c: Don't include extra "expr.h".
2129 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
2131 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
2133 2013-11-23 David Edelson <dje.gcc@gmail.com>
2134 Andrew Dixie <andrewd@gentrack.com>
2137 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
2138 (COLLECT_SHARED_FINI_FUNC): Define.
2140 * collect2.c (aix_shared_initname): Declare.
2141 (aix_shared_fininame): Declare.
2142 (symkind): Add SYM_AIXI and SYM_AIXD.
2143 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
2144 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
2145 (aixlazy_flag): Parse.
2146 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
2147 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
2149 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
2151 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
2152 (rs6000_xcoff_select_section): Place decls with stricter alignment
2153 into named sections.
2154 (rs6000_xcoff_unique_section): Allow unique sections for
2155 uninitialized data with strict alignment.
2157 2013-11-23 Jakub Jelinek <jakub@redhat.com>
2159 PR tree-optimization/59154
2160 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
2161 rhs1 of a cast and new_op is invariant, fold_convert it.
2162 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
2163 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
2165 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
2168 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
2169 Declare as MULTI_ARG_1_SF instruction.
2170 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
2171 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
2172 from *xop_vmfrcz_<mode>.
2173 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
2174 to merge scalar result with __A.
2175 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
2178 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
2180 * gimplify.h (recalculate_side_effects): Delete.
2181 * gimplify.c (recalculate_side_effects): Make static and add comment.
2183 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
2185 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
2186 for the destination of a define_peephole2. Likewise register_operand
2187 rather than arith_reg_operand. Remove constraints from
2190 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
2192 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
2194 (mn10300_store_multiple_operation_p): Declare.
2195 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
2197 (mn10300_store_multiple_operation_p): ...this and remove mode
2199 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
2202 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
2204 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
2205 (pop_multiple_operation): Delete.
2206 (analyze_push_multiple_operation): Declare.
2207 (analyze_pop_multiple_operation): Declare.
2208 * config/bfin/bfin.c (push_multiple_operation): Rename to...
2209 (analyze_push_multiple_operation): ...this and remove mode argument.
2210 (pop_multiple_operation): Rename to...
2211 (analyze_pop_multiple_operation): ...this and remove mode argument.
2212 * config/bfin/predicates.md (push_multiple_operation): Define.
2213 (pop_multiple_operation): Likewise.
2215 2013-11-23 Alan Modra <amodra@gmail.com>
2217 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
2219 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2222 * common.opt (static-liblsan): Add.
2223 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
2225 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
2226 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
2228 * opts.c (common_handle_option): Handle -fsanitize=leak.
2229 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
2230 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
2231 (LIBUBSAN_EARLY_SPEC): Remove.
2232 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
2233 (SANITIZER_SPEC): Add -fsanitize=leak handling.
2234 (sanitize_spec_function): Handle %sanitize(leak).
2235 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
2237 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
2238 Jakub Jelinek <jakub@redhat.com>
2240 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
2241 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
2242 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
2243 (ipa_modify_formal_parameters): Adjust caller. Remove
2244 synth_parm_prefix argument. Use operator enum instead of bit fields.
2245 Add assert for properly handling vector of references. Handle
2246 creating brand new parameters.
2247 (ipa_modify_call_arguments): Use operator enum instead of bit
2249 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
2251 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
2253 (ipa_dump_param_adjustments): Rename reduction to new_decl.
2254 Use operator enum instead of bit fields.
2255 * ipa-prop.h (enum ipa_parm_op): New.
2256 (struct ipa_parm_adjustment): New field op. Rename reduction
2257 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
2259 (ipa_modify_formal_parameters): Remove last argument.
2260 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
2261 ipa_get_adjustment_candidate): New prototypes.
2262 * tree-sra.c (turn_representatives_into_adjustments): Use operator
2263 enum. Set arg_prefix.
2264 (get_adjustment_for_base): Use operator enum.
2265 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
2267 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
2268 (ipa_sra_modify_function_body): Same. No longer static.
2269 (sra_ipa_reset_debug_stmts): Use operator enum.
2270 (modify_function): Do not pass prefix argument.
2272 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2274 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
2275 (ubsan_pass): Ignore clobber stmts.
2277 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
2278 * opts.c (common_handle_option): Add -fsanitize=return.
2279 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
2280 or it into SANITIZE_UNDEFINED.
2282 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
2283 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
2284 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
2285 Don't instrument accesses to VAR_DECLs which are known to fit
2286 into their bounds and the vars are known to have shadow bytes
2287 indicating allowed access.
2288 (asan_dynamic_init_call): New function.
2289 (asan_add_global): If vnode->dynamically_initialized,
2290 set __has_dynamic_init to 1 instead of 0.
2291 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
2292 * asan.h (asan_dynamic_init_call): New prototype.
2293 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
2295 2013-11-22 Martin Jambor <mjambor@suse.cz>
2297 PR rtl-optimization/10474
2298 * ira.c (interesting_dest_for_shprep_1): New function.
2299 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
2300 also check parallels.
2302 2013-11-22 Jeff Law <law@redhat.com>
2304 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
2305 NULL for RHS, which we used to invalidate equivalences.
2306 (record_temporary_equivalences_from_phis): New bitmap arguments
2307 and a boolean indicating if we have passed a backedge. If we
2308 have passed a backedge, then set the appropriate bit in the
2309 bitmaps for the SRC & DEST of PHIs creating equivalences.
2310 (invalidate_equivalences, dummy_simplify): New functions.
2311 (cond_arg_set_in_b): Remove.
2312 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
2313 arguments and a boolean indicating if we have passed a backedge.
2314 If we have passed a backedge, then perform invalidations as needed.
2315 (thread_around_empty_blocks): If we have seen a backedge, then
2316 use the dummy simplify routine.
2317 (thread_through_normal_block): Likewise. Pass bitmaps and
2318 backedge status to children. Do not pessimize so much when
2319 traversing backedges in the CFG.
2320 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
2321 If we have seen a backedge, then use the dummy simplify routine.
2322 Do not pessimize so much when traversing backedges.
2324 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
2326 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
2327 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
2329 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
2331 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
2332 PTA_PCLMUL and PTA_RDRND for Silvermont.
2333 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
2336 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
2338 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
2340 * hooks.h (hook_uint_mode_0): Add Prototype.
2341 * hooks.c (hook_uint_mode_0): New default function.
2342 * target.def (atomic_align_for_mode): New target hook.
2343 * tree.c (build_atomic_base): Add alignment override parameter.
2344 (build_common_tree_nodes): Use atomic alignment override.
2345 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
2346 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
2348 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
2350 * gimple.h: Remove all includes.
2351 (recalculate_side_effects): Move prototype to gimplify.h.
2352 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
2353 * gengtype.c (open_base_files): Add gimple.h include list.
2354 * gimplify.h (recalculate_side_effects): Relocate prototype here.
2355 * gimple.c: Adjust include list.
2356 (recalculate_side_effects): Move to gimplify.c.
2357 * gimplify.c: Adjust include list.
2358 (recalculate_side_effects): Relocate from gimple.c.
2359 * alias.c: Add required include files removed from gimple.h.
2361 * builtins.c: Likewise.
2362 * calls.c: Likewise.
2363 * cfgexpand.c: Likewise.
2364 * cfgloop.c: Likewise.
2365 * cfgloopmanip.c: Likewise.
2366 * cgraphbuild.c: Likewise.
2367 * cgraph.c: Likewise.
2368 * cgraphclones.c: Likewise.
2369 * cgraphunit.c: Likewise.
2370 * cilk-common.c: Likewise.
2371 * data-streamer.c: Likewise.
2372 * data-streamer-in.c: Likewise.
2373 * data-streamer-out.c: Likewise.
2375 * dwarf2out.c: Likewise.
2376 * emit-rtl.c: Likewise.
2377 * except.c: Likewise.
2379 * fold-const.c: Likewise.
2380 * function.c: Likewise.
2381 * gimple-builder.c: Likewise.
2382 * gimple-expr.c: Likewise.
2383 * gimple-fold.c: Likewise.
2384 * gimple-iterator.c: Likewise.
2385 * gimple-low.c: Likewise.
2386 * gimple-pretty-print.c: Likewise.
2387 * gimple-ssa-isolate-paths.c: Likewise.
2388 * gimple-ssa-strength-reduction.c: Likewise.
2389 * gimple-streamer-in.c: Likewise.
2390 * gimple-streamer-out.c: Likewise.
2391 * gimple-walk.c: Likewise.
2392 * gimplify-me.c: Likewise.
2393 * graphite-blocking.c: Likewise.
2394 * graphite.c: Likewise.
2395 * graphite-clast-to-gimple.c: Likewise.
2396 * graphite-dependences.c: Likewise.
2397 * graphite-interchange.c: Likewise.
2398 * graphite-optimize-isl.c: Likewise.
2399 * graphite-poly.c: Likewise.
2400 * graphite-scop-detection.c: Likewise.
2401 * graphite-sese-to-poly.c: Likewise.
2402 * internal-fn.c: Likewise.
2404 * ipa-cp.c: Likewise.
2405 * ipa-devirt.c: Likewise.
2406 * ipa-inline-analysis.c: Likewise.
2407 * ipa-inline.c: Likewise.
2408 * ipa-profile.c: Likewise.
2409 * ipa-prop.c: Likewise.
2410 * ipa-pure-const.c: Likewise.
2411 * ipa-reference.c: Likewise.
2412 * ipa-split.c: Likewise.
2413 * ipa-utils.c: Likewise.
2414 * langhooks.c: Likewise.
2415 * lto-cgraph.c: Likewise.
2416 * lto-compress.c: Likewise.
2417 * lto-opts.c: Likewise.
2418 * lto-section-in.c: Likewise.
2419 * lto-section-out.c: Likewise.
2420 * lto-streamer.c: Likewise.
2421 * lto-streamer-in.c: Likewise.
2422 * lto-streamer-out.c: Likewise.
2423 * omp-low.c: Likewise.
2424 * opts-global.c: Likewise.
2425 * passes.c: Likewise.
2426 * predict.c: Likewise.
2427 * profile.c: Likewise.
2430 * stor-layout.c: Likewise.
2431 * symtab.c: Likewise.
2432 * targhooks.c: Likewise.
2433 * toplev.c: Likewise.
2434 * tracer.c: Likewise.
2435 * trans-mem.c: Likewise.
2436 * tree-affine.c: Likewise.
2438 * tree-call-cdce.c: Likewise.
2439 * tree-cfg.c: Likewise.
2440 * tree-cfgcleanup.c: Likewise.
2441 * tree-chrec.c: Likewise.
2442 * tree-complex.c: Likewise.
2443 * tree-data-ref.c: Likewise.
2444 * tree-dfa.c: Likewise.
2445 * tree-eh.c: Likewise.
2446 * tree-emutls.c: Likewise.
2447 * tree-if-conv.c: Likewise.
2448 * tree-inline.c: Likewise.
2449 * tree-into-ssa.c: Likewise.
2450 * tree-loop-distribution.c: Likewise.
2451 * tree-nested.c: Likewise.
2452 * tree-nrv.c: Likewise.
2453 * tree-object-size.c: Likewise.
2454 * tree-outof-ssa.c: Likewise.
2455 * tree-parloops.c: Likewise.
2456 * tree-phinodes.c: Likewise.
2457 * tree-predcom.c: Likewise.
2458 * tree-pretty-print.c: Likewise.
2459 * tree-profile.c: Likewise.
2460 * tree-scalar-evolution.c: Likewise.
2461 * tree-sra.c: Likewise.
2462 * tree-ssa-address.c: Likewise.
2463 * tree-ssa-alias.c: Likewise.
2464 * tree-ssa.c: Likewise.
2465 * tree-ssa-ccp.c: Likewise.
2466 * tree-ssa-coalesce.c: Likewise.
2467 * tree-ssa-copy.c: Likewise.
2468 * tree-ssa-copyrename.c: Likewise.
2469 * tree-ssa-dce.c: Likewise.
2470 * tree-ssa-dom.c: Likewise.
2471 * tree-ssa-dse.c: Likewise.
2472 * tree-ssa-forwprop.c: Likewise.
2473 * tree-ssa-ifcombine.c: Likewise.
2474 * tree-ssa-live.c: Likewise.
2475 * tree-ssa-loop.c: Likewise.
2476 * tree-ssa-loop-ch.c: Likewise.
2477 * tree-ssa-loop-im.c: Likewise.
2478 * tree-ssa-loop-ivcanon.c: Likewise.
2479 * tree-ssa-loop-ivopts.c: Likewise.
2480 * tree-ssa-loop-manip.c: Likewise.
2481 * tree-ssa-loop-niter.c: Likewise.
2482 * tree-ssa-loop-prefetch.c: Likewise.
2483 * tree-ssa-loop-unswitch.c: Likewise.
2484 * tree-ssa-math-opts.c: Likewise.
2485 * tree-ssanames.c: Likewise.
2486 * tree-ssa-operands.c: Likewise.
2487 * tree-ssa-phiopt.c: Likewise.
2488 * tree-ssa-phiprop.c: Likewise.
2489 * tree-ssa-pre.c: Likewise.
2490 * tree-ssa-propagate.c: Likewise.
2491 * tree-ssa-reassoc.c: Likewise.
2492 * tree-ssa-sccvn.c: Likewise.
2493 * tree-ssa-sink.c: Likewise.
2494 * tree-ssa-strlen.c: Likewise.
2495 * tree-ssa-structalias.c: Likewise.
2496 * tree-ssa-tail-merge.c: Likewise.
2497 * tree-ssa-ter.c: Likewise.
2498 * tree-ssa-threadedge.c: Likewise.
2499 * tree-ssa-threadupdate.c: Likewise.
2500 * tree-ssa-uncprop.c: Likewise.
2501 * tree-ssa-uninit.c: Likewise.
2502 * tree-stdarg.c: Likewise.
2503 * tree-streamer.c: Likewise.
2504 * tree-streamer-in.c: Likewise.
2505 * tree-streamer-out.c: Likewise.
2506 * tree-switch-conversion.c: Likewise.
2507 * tree-tailcall.c: Likewise.
2508 * tree-vect-data-refs.c: Likewise.
2509 * tree-vect-generic.c: Likewise.
2510 * tree-vect-loop.c: Likewise.
2511 * tree-vect-loop-manip.c: Likewise.
2512 * tree-vectorizer.c: Likewise.
2513 * tree-vect-patterns.c: Likewise.
2514 * tree-vect-slp.c: Likewise.
2515 * tree-vect-stmts.c: Likewise.
2516 * tree-vrp.c: Likewise.
2518 * ubsan.c: Likewise.
2519 * value-prof.c: Likewise.
2520 * varpool.c: Likewise.
2521 * var-tracking.c: Likewise.
2522 * vtable-verify.c: Likewise.
2523 * config/darwin.c: Likewise.
2524 * config/aarch64/aarch64-builtins.c: Likewise.
2525 * config/aarch64/aarch64.c: Likewise.
2526 * config/alpha/alpha.c: Likewise.
2527 * config/i386/i386.c: Likewise.
2528 * config/i386/winnt.c: Likewise.
2529 * config/ia64/ia64.c: Likewise.
2530 * config/m32c/m32c.c: Likewise.
2531 * config/mep/mep.c: Likewise.
2532 * config/mips/mips.c: Likewise.
2533 * config/rs6000/rs6000.c: Likewise.
2534 * config/s390/s390.c: Likewise.
2535 * config/sh/sh.c: Likewise.
2536 * config/sparc/sparc.c: Likewise.
2537 * config/spu/spu.c: Likewise.
2538 * config/stormy16/stormy16.c: Likewise.
2539 * config/tilegx/tilegx.c: Likewise.
2540 * config/tilepro/tilepro.c: Likewise.
2541 * config/xtensa/xtensa.c: Likewise.
2543 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
2546 * arm.md (negdi_extendsidi): Fix invalid split.
2548 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
2550 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
2551 (vmov_n_f64): Likewise.
2552 (vmov_n_p8): Likewise.
2553 (vmov_n_p16): Likewise.
2554 (vmov_n_s8): Likewise.
2555 (vmov_n_s16): Likewise.
2556 (vmov_n_s32): Likewise.
2557 (vmov_n_s64): Likewise.
2558 (vmov_n_u8): Likewise.
2559 (vmov_n_u16): Likewise.
2560 (vmov_n_u32): Likewise.
2561 (vmov_n_u64): Likewise.
2562 (vmovq_n_f32): Likewise.
2563 (vmovq_n_f64): Likewise.
2564 (vmovq_n_p8): Likewise.
2565 (vmovq_n_p16): Likewise.
2566 (vmovq_n_s8): Likewise.
2567 (vmovq_n_s16): Likewise.
2568 (vmovq_n_s32): Likewise.
2569 (vmovq_n_s64): Likewise.
2570 (vmovq_n_u8): Likewise.
2571 (vmovq_n_u16): Likewise.
2572 (vmovq_n_u32): Likewise.
2573 (vmovq_n_u64): Likewise.
2575 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
2577 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
2578 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
2579 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
2580 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
2581 and also change to float UNSPEC.
2582 (reduc_maxmin_uns>_<mode>): Remove V2DI.
2583 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
2584 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
2585 result access for big-endian.
2586 (__LANE0): New macro used to fix up lane access of 'across-lanes'
2587 intrinsics for big-endian.
2588 * config/aarch64/iterators.md (VDQV): Add V2DI.
2590 (vp): New mode attribute.
2592 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
2594 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
2595 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
2598 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
2600 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
2601 for big-endian element order.
2602 (aarch64_simd_vec_setv2di): Likewise.
2603 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
2604 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
2605 (vec_extract): Expand using aarch64_get_lane.
2606 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
2608 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
2610 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
2611 and stores to be ABI compliant.
2613 2013-11-22 David Malcolm <dmalcolm@redhat.com>
2615 * input.h (input_line): Remove.
2616 (input_filename): Likewise.
2617 (in_system_header): Likewise.
2618 * tree.h (EXPR_LOC_OR_HERE): Remove.
2619 * config/bfin/bfin.c (output_file_start): Remove use of
2620 input_filename macro.
2621 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
2622 * gimplify.c (internal_get_tmp_var): Likewise.
2623 EXPR_LOC_OR_HERE macro.
2624 (shortcut_cond_expr): Likewise.
2625 * tree-diagnostic.c (diagnostic_report_current_function): Remove
2626 use of input_filename macro.
2627 * tree.c (get_file_function_name): Likewise.
2629 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
2631 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
2633 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2635 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
2636 (same sized) elements even if the type of the CONSTRUCTOR has
2637 vector mode and target is a REG.
2639 2013-11-22 Richard Biener <rguenther@suse.de>
2642 2013-11-21 Richard Biener <rguenther@suse.de>
2644 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
2645 nb_iterations_upper_bound by one.
2647 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
2649 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
2652 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
2653 core-avx-i, core-avx2 and slm.
2655 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
2657 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
2659 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
2661 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
2662 (stzx_24_<mode>): Likewise mra_operand.
2664 2013-11-22 Jeff Law <law@redhat.com>
2666 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
2667 (thread_block_1): Do not cancel jump threads which go from
2668 inside a loop, through the header, then back inside the loop.
2669 (bb_ends_with_multiway_branch): New function.
2670 (thread_through_all_blocks): Handle threading cases which start
2671 in a loop through the loop header to a point in the loop.
2673 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
2674 jump thread path properly.
2676 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
2678 * vec.h (auto_vec): New class.
2679 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
2680 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
2681 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
2682 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
2683 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
2684 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
2685 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
2686 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
2687 appropriate instead of vec for local variables.
2689 2013-11-21 Teresa Johnson <tejohnson@google.com>
2692 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
2693 not understood by old_insns_match_p.
2695 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
2697 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
2698 little endian change.
2699 (vec_pack_sfix_trunc_v2df): Likewise.
2700 (vec_pack_ufix_trunc_v2df): Likewise.
2701 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
2702 double checking of endianness.
2704 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2706 * tree-vect-generic.c (optimize_vector_constructor): New function.
2707 (expand_vector_operations_1): Call it.
2709 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
2711 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
2712 ix86_zero_extend_to_Pmode where appropriate.
2713 (ix86_expand_builtin): Ditto.
2715 2013-11-21 Cary Coutant <ccoutant@google.com>
2717 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
2718 (add_linkage_name): Don't add linkage name for -g1.
2719 (decls_for_scope): Process subblocks for -g1.
2720 (dwarf2out_source_line): Output line tables for -g1.
2721 (dwarf2out_finish): Likewise.
2722 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
2723 unused scopes for -g1.
2724 * opts.c (common_handle_option): Handle -g same as -g2.
2725 * doc/invoke.texi: Update description for -g1.
2727 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
2729 * doc/extend.texi: Document htm builtins.
2731 2013-11-21 Jeff Law <law@redhat.com>
2733 PR tree-optimization/59221
2734 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
2735 temporary equivalences when threading through joiner blocks.
2737 2013-11-21 Joseph Myers <joseph@codesourcery.com>
2739 PR rtl-optimization/55950
2740 * real.c (real_sqrt): Remove function.
2741 * real.h (real_sqrt): Remove prototype.
2742 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
2743 SQRT using real_sqrt.
2745 2013-11-21 Richard Biener <rguenther@suse.de>
2747 PR tree-optimization/59058
2748 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
2749 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
2750 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
2751 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
2752 (NITERS_KNOWN_P): Fold into ...
2753 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
2754 (LOOP_VINFO_PEELING_FOR_NITER): Add.
2755 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
2756 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2757 (vect_do_peeling_for_alignment): Re-use precomputed niter
2758 instead of re-emitting it.
2759 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2760 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2761 * tree-vect-loop.c (vect_get_loop_niters): Use
2762 number_of_latch_executions.
2763 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
2764 (vect_analyze_loop_form): Simplify.
2765 (vect_analyze_loop_operations): Move epilogue peeling code ...
2766 (vect_analyze_loop_2): ... here and adjust it to compute
2767 LOOP_VINFO_PEELING_FOR_NITER.
2768 (vect_estimate_min_profitable_iters): Use
2769 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2770 (vect_build_loop_niters): Emit on the preheader.
2771 (vect_generate_tmps_on_preheader): Likewise.
2772 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
2773 of recomputing it. Adjust.
2775 2013-11-21 Richard Biener <rguenther@suse.de>
2777 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
2778 LOC_LINE): Remove wrappers and fix all users.
2779 (struct _loop_vec_info): Remove loop_line_number member.
2780 (LOOP_VINFO_LOC): Remove.
2781 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
2782 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
2785 2013-11-21 Richard Biener <rguenther@suse.de>
2787 * tree-ssa-forwprop.c (simplify_vce): New function.
2788 (ssa_forward_propagate_and_combine): Call it.
2790 2013-11-21 Richard Biener <rguenther@suse.de>
2792 * tree-vect-loop-manip.c (vect_build_loop_niters,
2793 vect_generate_tmps_on_preheader): Move ...
2794 * tree-vect-loop.c (vect_build_loop_niters,
2795 vect_generate_tmps_on_preheader): ... here and simplify.
2796 (vect_transform_loop): Call them here and pass down results
2798 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
2799 Get niter variables from caller.
2800 (vect_do_peeling_for_alignment): Likewise.
2801 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
2802 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
2805 2013-11-21 Richard Biener <rguenther@suse.de>
2807 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
2808 nb_iterations_upper_bound by one.
2810 2013-11-21 Richard Biener <rguenther@suse.de>
2812 PR tree-optimization/59058
2813 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
2814 (build_size_arg_loc): Apply niter adjustment here.
2815 (generate_memset_builtin): Adjust.
2816 (generate_memcpy_builtin): Likewise.
2817 (classify_partition): Do not use number_of_exit_cond_executions
2818 but record whether niter needs to be adjusted.
2820 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
2822 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
2825 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
2828 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
2829 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
2830 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
2831 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
2832 sh_optimize_sett_clrt pass.o to extra_objs.
2834 2013-11-20 David Malcolm <dmalcolm@redhat.com>
2836 * cfg.c (dump_edge_info): Remove redundant comment.
2837 * cfgcleanup.c (outgoing_edges_match): Reword reference to
2838 EXIT_BLOCK_PTR in comment.
2839 (try_optimize_cfg): Likewise.
2840 * cfgrtl.c (last_bb_in_partition): Likewise.
2841 * cgraph.c (cgraph_node_cannot_return): Likewise.
2842 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2843 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
2844 * ipa-split.c (consider_split): Likewise.
2845 * profile.c (find_spanning_tree): Likewise.
2846 * sched-int.h (common_sched_info_def.add_block): Likewise.
2847 * dominance.c (calc_dfs_tree_nonrec): Reword references in
2848 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
2849 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
2850 in comments to now removed ENTRY_BLOCK_PTR macro.
2851 (tree_forwarder_block_p): Reword reference in comment to
2853 * tree-inline.c (copy_cfg_body): Reword references in comments to
2854 now removed ENTRY_BLOCK_PTR macro.
2855 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2856 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
2857 a comma to the comment to clarify the meaning.
2859 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
2861 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
2863 (free_gimplify_stack): Add prototype.
2864 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
2865 (struct gimplify_ctx): Relocate here.
2866 (gimplify_ctxp): Make static.
2867 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
2868 list of struct gimplify_ctx.
2869 (push_gimplify_context): Add default parameters and allocate a struct
2871 (pop_gimplify_context): Free a struct back to the pool.
2872 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2873 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
2874 use a local 'struct gimplify_ctx'.
2875 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
2876 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
2878 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2879 lower_omp_ordered, lower_omp_critical, lower_omp_for,
2880 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
2881 lower_omp_teams, execute_lower_omp): Likewise.
2882 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
2883 * tree-inline.c (optimize_inline_calls): Likewise.
2885 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2887 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
2888 (vsx_extract_<mode>): Likewise.
2889 (*vsx_extract_<mode>_one_le): New LE variant on
2890 *vsx_extract_<mode>_zero.
2891 (vsx_extract_v4sf): Adjust for little endian.
2893 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
2895 PR rtl-optimization/59133
2896 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
2898 (lra_create_new_reg_with_unique_value): Pass new argument value.
2899 (lra_emit_add, lra_emit_move): Ditto.
2900 * lra-constraints.c (in_class_p): Add check for move for a new insn.
2901 (change_class): Rename to lra_change_class. Move to lra-int.h.
2902 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
2904 (process_addr_reg, process_addr): Ditto.
2905 (curr_insn_transform): Ditto. Add check on old pseudo for
2907 * lra-int.h (lra_get_regno_hard_regno): Move below.
2908 (lra_change_class): Renamed change_class from lra.c.
2910 2013-11-20 David Malcolm <dmalcolm@redhat.com>
2912 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
2913 the children of a NULL pointer.
2915 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
2917 * lra.c (lra): Set lra_in_progress before check_rtl call.
2918 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
2919 adding clobber regs when LRA is running.
2921 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
2923 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
2924 restriction for ISA_MIPS32R2.
2925 (ISA_HAS_LXC1_SXC1): New macro.
2926 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
2927 (ISA_HAS_NMADD4_NMSUB4): Likewise.
2928 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
2929 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
2930 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
2931 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
2932 (*<ANYF:storex>_<P:mode>): Likewise.
2934 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
2936 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
2937 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
2938 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
2939 * config/mips/mips.md (recip_condition): Remove mode attribute.
2940 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
2942 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
2944 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
2947 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
2948 Make sure neg2_ovf is set before being used.
2950 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
2952 * plugin.def: Add comment about register_callback and
2953 invoke_plugin_callbacks_full.
2955 * plugin.c (register_callback, invoke_plugin_callbacks_full):
2956 Handle PLUGIN_INCLUDE_FILE event.
2958 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2960 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
2961 allow subregs of TDmode in FPRs of smaller size in little-endian.
2962 (rs6000_split_multireg_move): When splitting an access to TDmode
2963 in FPRs, do not use simplify_gen_subreg.
2965 2013-11-20 Joseph Myers <joseph@codesourcery.com>
2968 * real.c: Remove comment about decimal string conversion and
2970 (real_from_string): Use MPFR to convert nonzero decimal constant
2973 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
2975 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
2976 endianness of the D registers for the legacy encodings.
2978 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
2980 PR rtl-optimization/54300
2981 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
2982 outputs in a single-set are killed from the value chains.
2984 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2986 * cgraph.h (varpool_node): Add need_bounds_init field.
2987 * lto-cgraph.c (lto_output_varpool_node): Output
2988 need_bounds_init value.
2989 (input_varpool_node): Read need_bounds_init value.
2990 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2992 2013-11-20 Jan Hubicka <jh@suse.cz>
2994 * opts.c (finish_options): Imply -ffat-lto-objects with
2995 -fno-use-linker-plugin.
2996 * common.opt (fuse-linker-plugin): Add var.
2998 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
3000 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
3001 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
3002 (gen_type_die_with_usage): Skip pointer bounds.
3003 (dwarf2out_global_decl): Likewise.
3005 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
3007 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
3010 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
3013 * config/i386/i386.c (ix86_option_override_internal): Add missed
3014 argument prefix for 'ix86_fpmath'.
3015 * config/i386/ssemath.h: Add missed definition of
3016 TARGET_FPMATH_DEFAULT_P macros.
3018 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3019 Mike Stump <mikestump@comcast.net>
3020 Richard Sandiford <rdsandiford@googlemail.com>
3022 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
3023 instead of TREE_INT_CST_LOW, in cases where there is a protecting
3024 tree_fits_shwi_p or tree_fits_uhwi_p.
3025 * builtins.c (fold_builtin_powi): Likewise.
3026 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
3028 * dbxout.c (dbxout_symbol): Likewise.
3029 * expr.c (expand_expr_real_1): Likewise.
3030 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
3031 (fold_binary_loc): Likewise.
3032 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
3033 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
3034 * omp-low.c (lower_omp_for_lastprivate): Likewise.
3035 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
3036 * stor-layout.c (compute_record_mode): Likewise.
3037 * tree-cfg.c (verify_expr): Likewise.
3038 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3039 * tree-pretty-print.c (dump_array_domain): Likewise.
3040 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
3041 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
3042 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
3043 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
3044 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
3045 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
3046 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3047 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
3048 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
3049 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
3050 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
3051 (create_variable_info_for_1): Likewise.
3052 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
3053 (vect_verify_datarefs_alignment): Likewise.
3054 (vect_analyze_data_ref_accesses): Likewise.
3055 (vect_prune_runtime_alias_test_list): Likewise.
3056 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
3058 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
3060 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
3061 overflow. Use tree_to_shwi.
3063 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
3065 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
3066 HOST_WIDE_INTs when folding (x >> c) << c.
3068 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3069 Dominik Vogt <vogt@linux.vnet.ibm.com>
3071 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
3072 int comparisons with an out of range condition code.
3073 (s390_optimize_nonescaping_tx): Skip empty BBs.
3074 Generate the new tbegin RTX when removing the FPR clobbers (with
3076 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
3077 result before doing the retry calculations.
3078 (s390_init_builtins): Make tbegin "returns_twice" and tabort
3080 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
3081 the TDB setting part of an tbegin.
3082 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
3083 ("tx_assist"): Set unused argument to an immediate zero instead of
3084 loading zero into a GPR and pass it as argument.
3085 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
3086 Remove inline and related attributes.
3087 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
3088 (__TM_is_illegal, __TM_is_footprint_exceeded)
3089 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
3091 2013-11-20 Richard Biener <rguenther@suse.de>
3094 * lto-opts.c (lto_write_options): Write defaults only if
3095 they were not explicitely specified. Also write
3096 -ffp-contract default.
3097 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
3099 (run_gcc): Pass through -ffp-contract.
3101 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3103 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
3105 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
3107 * gcc/config/aarch64/aarch64-builtins.c
3108 (aarch64_simd_itype): Remove.
3109 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
3110 (VAR1): Use qualifiers.
3111 (aarch64_build_scalar_type): New.
3112 (aarch64_build_vector_type): Likewise.
3113 (aarch64_build_type): Likewise.
3114 (aarch64_init_simd_builtins): Refactor, remove special cases,
3115 consolidate main loop.
3116 (aarch64_simd_expand_args): Likewise.
3118 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
3121 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
3123 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
3125 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
3127 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3129 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
3130 to "vec<>" instances.
3131 (build_pretty_printer): Register the vec<>* prettyprinter.
3133 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3135 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
3136 (GdbSubprinter.handles_type): New.
3137 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
3138 (GdbSubprinterRegex): New subclass of GdbSubprinter.
3139 (GdbPrettyPrinters.add_printer): Remove in favor of...
3140 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
3141 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
3142 (GdbPrettyPrinters.__call__): Update search for subprinter
3143 to use handles_type method.
3144 (build_pretty_printer): Update registration of subprinters to
3145 use the new API above, supporting multiple spelling of each type,
3146 and allowing for future regex-based subprinters.
3148 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3150 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
3151 V16QI vector splat case for little endian.
3153 2013-11-19 Jeff Law <law@redhat.com>
3155 * tree-ssa-threadedge.c (thread_across_edge): After threading
3156 through a joiner, allow threading a normal block requiring duplication.
3158 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
3159 jump threading requests that would muck up the loop structures.
3161 * tree-ssa-threadupdate.c: Fix trailing whitespace.
3162 * tree-ssa-threadupdate.h: Likewise.
3164 2013-11-19 Mike Stump <mikestump@comcast.net>
3166 * gdbinit.in: Add pmz to print out mpz values.
3168 2013-11-20 Jan Hubicka <jh@suse.cz>
3170 * common.opt (ffat-lto-objects): Disable by default.
3171 * doc/invoke.texi (fat-lto-objects): Update documentation.
3172 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
3174 2013-11-19 Martin Jambor <mjambor@suse.cz>
3176 PR rtl-optimization/59099
3177 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
3179 (ira): Move init_reg_equiv and call to
3180 split_live_ranges_for_shrink_wrap up, remove analyses around call
3181 to find_moveable_pseudos.
3183 2013-11-20 Alan Modra <amodra@gmail.com>
3185 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
3186 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
3187 to strict alignment on older processors when little-endian.
3188 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
3191 2013-11-19 Teresa Johnson <tejohnson@google.com>
3193 * common/config/i386/i386-common.c: Enable
3194 -freorder-blocks-and-partition at -O2 and up for x86.
3195 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
3196 * opts.c (finish_options): Only warn if
3197 -freorder-blocks-and-partition was set on command line.
3199 2013-11-19 Sriraman Tallam <tmsriram@google.com>
3201 * final.c (final_scan_insn): Emit a label for the split
3202 cold function part. Label name is formed by suffixing
3203 the original function name with "cold".
3205 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3207 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
3208 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
3209 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
3210 (EXIT_BLOCK_PTR_FOR_FN): ...this.
3211 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
3213 (EXIT_BLOCK_PTR): Likewise.
3214 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
3215 (FOR_ALL_BB_FN): Update for renaming of
3216 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
3218 * cfg.c (init_flow): Likewise.
3219 (check_bb_profile): Likewise.
3220 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
3221 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
3222 * cfghooks.c (account_profile_record): Likewise.
3223 * cfgloop.c (init_loops_structure): Likewise.
3224 * cgraphbuild.c (record_eh_tables): Likewise.
3225 (compute_call_stmt_bb_frequency): Likewise.
3226 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
3227 * lto-streamer-in.c (input_cfg): Likewise.
3228 * predict.c (maybe_hot_frequency_p): Likewise.
3229 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3230 * tree-inline.c (initialize_cfun): Likewise.
3231 (copy_cfg_body): Likewise.
3232 (copy_body): Likewise.
3233 (tree_function_versioning): Likewise.
3235 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
3236 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3237 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
3238 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
3239 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3240 (connect_traces): Likewise.
3241 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
3242 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
3243 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
3245 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
3247 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
3248 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
3249 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
3250 (rotate_loop): Likewise.
3251 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
3252 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
3254 (alloc_aux_for_edges): Likewise.
3255 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
3256 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
3258 (compact_blocks): Likewise.
3259 (clear_edges): Likewise.
3260 * cfganal.c (single_pred_before_succ_order): Remove usage of
3261 ENTRY_BLOCK_PTR macro.
3262 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
3263 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
3264 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
3265 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
3266 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
3268 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
3269 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
3271 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
3272 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
3273 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
3274 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3275 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
3276 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
3278 (print_edge_list): Likewise.
3279 (create_edge_list): Likewise.
3280 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
3281 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
3283 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
3285 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
3286 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3287 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
3288 (try_optimize_cfg): Likewise.
3289 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
3290 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
3291 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
3292 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
3293 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
3294 (try_forward_edges): Likewise.
3295 (try_simplify_condjump): Likewise.
3296 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
3297 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3298 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
3299 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
3301 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
3302 (expand_gimple_tailcall): Likewise.
3303 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
3304 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3305 (tidy_fallthru_edges): Likewise.
3306 (verify_flow_info): Likewise.
3307 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
3308 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
3309 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
3310 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
3311 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
3312 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
3313 (get_loop_body_in_dom_order): Likewise.
3314 (get_loop_body): Likewise.
3315 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
3316 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3317 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
3319 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
3320 (fix_bb_placement): Likewise.
3321 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
3322 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3323 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
3324 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
3326 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
3327 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
3328 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3329 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
3331 (fixup_fallthru_exit_predecessor): Remove uses of macros:
3332 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3333 (fixup_reorder_chain): Likewise.
3334 (relink_block_chain): Likewise.
3335 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
3336 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
3337 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
3338 (force_one_exit_fallthru): Likewise.
3339 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
3341 (rtl_verify_edges): Likewise.
3342 (commit_edge_insertions): Likewise.
3343 (commit_one_edge_insertion): Likewise.
3344 (rtl_split_edge): Likewise.
3345 (force_nonfallthru_and_redirect): Likewise.
3346 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
3347 (skip_insns_after_block): Likewise.
3348 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
3350 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
3351 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
3353 (contains_no_active_insn_p): Likewise.
3354 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
3355 (entry_of_function): Likewise.
3356 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
3357 (fixup_new_cold_bb): Likewise.
3358 (patch_jump_insn): Likewise.
3359 (try_redirect_by_replacing_jump): Likewise.
3360 (block_label): Likewise.
3361 (could_fall_through): Likewise.
3362 (can_fallthru): Likewise.
3363 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
3364 ENTRY_BLOCK_PTR macro.
3365 (rebuild_cgraph_edges): Likewise.
3366 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
3367 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3368 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
3369 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
3370 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
3371 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
3372 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
3373 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
3375 (reg_nonzero_bits_for_combine): Likewise.
3376 (set_nonzero_bits_and_sign_copies): Likewise.
3377 (combine_instructions): Likewise.
3378 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
3380 (bypass_conditional_jumps): Likewise.
3381 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
3382 (find_implicit_sets): Likewise.
3383 (cprop_jump): Likewise.
3384 * cse.c (cse_cc_succs): Likewise.
3385 (cse_find_path): Likewise.
3386 * df-problems.c (df_lr_confluence_0): Likewise.
3387 * df-scan.c (df_entry_block_defs_collect): Remove usage of
3388 ENTRY_BLOCK_PTR macro.
3389 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
3390 * dominance.c (iterate_fix_dominators): Remove usage of
3391 ENTRY_BLOCK_PTR macro.
3392 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3393 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
3394 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
3396 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
3398 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
3400 * domwalk.c (cmp_bb_postorder): Likewise.
3401 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
3402 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
3404 (sjlj_emit_function_enter): Likewise.
3405 * final.c (compute_alignments): Likewise.
3406 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
3407 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3408 (reposition_prologue_and_epilogue_notes): Remove usage of
3409 EXIT_BLOCK_PTR macro.
3410 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
3412 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
3413 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
3414 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
3415 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
3416 (compute_code_hoist_vbeinout): Likewise.
3417 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
3418 (pre_expr_reaches_here_p_work): Likewise.
3419 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
3420 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
3422 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
3423 ENTRY_BLOCK_PTR macro.
3424 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
3426 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
3427 ENTRY_BLOCK_PTR macro.
3428 * graphite-scop-detection.c (build_scops): Likewise.
3429 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
3430 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
3431 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
3433 (unlink_bb_notes): Likewise.
3434 (create_check_block_twin): Likewise.
3435 (init_before_recovery): Likewise.
3436 (sched_extend_bb): Likewise.
3437 (priority): Likewise.
3438 * hw-doloop.c (reorder_loops): Likewise.
3439 (discover_loop): Likewise.
3440 * ifcvt.c (dead_or_predicable): Remove uses of macros:
3441 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3442 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
3443 (block_has_only_trap): Likewise.
3444 (cond_exec_find_if_block): Likewise.
3445 (merge_if_block): Likewise.
3446 * ipa-inline-analysis.c (param_change_prob): Remove usage of
3447 ENTRY_BLOCK_PTR macro.
3448 (record_modified): Likewise.
3449 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
3450 EXIT_BLOCK_PTR macro.
3451 (local_pure_const): Likewise.
3452 * ipa-split.c (split_function): Remove uses of macros:
3453 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3454 (find_split_points): Likewise.
3455 (consider_split): Likewise.
3456 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
3457 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
3458 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
3459 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
3460 * ira-emit.c (entered_from_non_parent_p): Remove usage of
3461 ENTRY_BLOCK_PTR macro.
3462 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
3463 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
3464 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
3465 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3466 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
3468 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
3470 (compute_farthest): Likewise.
3471 (compute_available): Likewise.
3472 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
3473 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
3475 (compute_earliest): Likewise.
3476 (compute_antinout_edge): Likewise.
3477 * loop-iv.c (simplify_using_initial_values): Remove usage of
3478 ENTRY_BLOCK_PTR macro.
3479 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
3481 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
3483 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
3485 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
3486 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3487 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
3489 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
3491 * lto-streamer-out.c (output_cfg): Likewise.
3492 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
3494 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
3495 * mode-switching.c (optimize_mode_switching): Likewise.
3496 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
3497 * modulo-sched.c (rest_of_handle_sms): Likewise.
3498 (canon_loop): Likewise.
3499 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
3500 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
3501 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3502 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
3504 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
3505 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
3506 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
3507 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
3508 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
3509 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
3510 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
3511 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
3512 (gimple_predict_edge): Likewise.
3513 (probably_never_executed): Likewise.
3514 * profile.c (find_spanning_tree): Remove uses of macros:
3515 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3516 (branch_prob): Likewise.
3517 (compute_branch_probabilities): Likewise.
3518 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
3519 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
3520 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
3521 (set_bb_counts): Likewise.
3522 (correct_negative_edge_counts): Likewise.
3523 (get_exec_counts): Likewise.
3524 (instrument_values): Likewise.
3525 (instrument_edges): Likewise.
3526 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
3528 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
3529 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
3530 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
3531 (reg_to_stack): Likewise.
3532 * regs.h (REG_N_SETS): Likewise.
3533 * reload.c (find_dummy_reload): Likewise.
3534 (combine_reloads): Likewise.
3535 (push_reload): Likewise.
3536 * reload1.c (has_nonexceptional_receiver): Remove usage of
3537 EXIT_BLOCK_PTR macro.
3538 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
3540 (find_basic_block): Likewise.
3541 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
3542 (schedule_ebbs): Likewise.
3543 * sched-int.h (sel_sched_p): Likewise.
3544 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
3546 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
3547 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
3549 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
3550 (extend_rgns): Likewise.
3551 (find_single_block_region): Likewise.
3552 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
3553 ENTRY_BLOCK_PTR macro.
3554 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
3555 (sel_create_recovery_block): Likewise.
3556 (bb_ends_ebb_p): Likewise.
3557 (sel_bb_end): Likewise.
3558 (sel_bb_head): Likewise.
3559 (free_lv_sets): Likewise.
3560 (init_lv_sets): Likewise.
3561 (tidy_control_flow): Likewise.
3562 (maybe_tidy_empty_bb): Likewise.
3563 * sel-sched-ir.h (_succ_iter_cond): Likewise.
3564 (_succ_iter_start): Likewise.
3565 (sel_bb_empty_or_nop_p): Likewise.
3566 (get_loop_exit_edges_unique_dests): Likewise.
3567 (inner_loop_header_p): Likewise.
3568 * sel-sched.c (create_block_for_bookkeeping): Likewise.
3569 (find_block_for_bookkeeping): Likewise.
3570 * store-motion.c (remove_reachable_equiv_notes): Likewise.
3571 (insert_store): Likewise.
3572 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
3573 ENTRY_BLOCK_PTR macro.
3574 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
3575 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
3576 (gate_tm_init): Likewise.
3577 (tm_region_init): Likewise.
3578 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
3579 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3580 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
3581 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
3583 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
3584 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
3586 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
3588 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
3590 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
3592 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3593 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
3594 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
3595 (build_gimple_cfg): Likewise.
3596 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
3597 (gimple_can_merge_blocks_p): Likewise.
3598 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
3599 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3600 * tree-complex.c (update_parameter_components): Remove usage of
3601 ENTRY_BLOCK_PTR macro.
3602 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
3603 EXIT_BLOCK_PTR macro.
3604 * tree-inline.c (tree_function_versioning): Remove uses of macros:
3605 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3606 (delete_unreachable_blocks_update_callgraph): Likewise.
3607 (initialize_cfun): Likewise.
3608 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
3609 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
3610 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
3611 * tree-into-ssa.c (update_ssa): Likewise.
3612 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
3613 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
3614 (rewrite_into_ssa): Likewise.
3615 (rewrite_debug_stmt_uses): Likewise.
3616 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
3617 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3618 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
3619 ENTRY_BLOCK_PTR macro.
3620 * tree-scalar-evolution.h (block_before_loop): Likewise.
3621 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
3622 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
3624 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
3626 (propagate_dereference_distances): Remove uses of macros:
3627 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3628 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
3630 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
3631 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
3632 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
3633 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
3634 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3635 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
3636 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
3637 (mark_control_dependent_edges_necessary): Remove uses of macros:
3638 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3639 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
3640 ENTRY_BLOCK_PTR macro.
3641 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
3642 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
3643 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3644 (calculate_live_on_exit): Likewise.
3645 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
3646 (loe_visit_block): Likewise.
3647 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
3648 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3649 (live_on_entry): Likewise.
3650 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
3651 EXIT_BLOCK_PTR macro.
3652 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
3653 ENTRY_BLOCK_PTR macro.
3654 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
3655 (bound_difference): Likewise.
3656 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
3657 of EXIT_BLOCK_PTR macro.
3658 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
3659 of ENTRY_BLOCK_PTR macro.
3660 * tree-ssa-math-opts.c (register_division_in): Likewise.
3661 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
3662 * tree-ssa-pre.c (compute_avail): Likewise.
3663 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
3664 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
3665 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
3666 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
3667 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
3669 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
3670 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
3671 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3672 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
3673 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
3674 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
3675 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
3676 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
3677 (find_pdom): Likewise.
3678 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
3679 * tree-stdarg.c (reachable_at_most_once): Likewise.
3680 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
3681 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3682 (eliminate_tail_call): Likewise.
3683 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
3685 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
3686 * var-tracking.c (vt_initialize): Remove uses of macros:
3687 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3688 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
3689 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
3690 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
3692 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
3694 * config/bfin/bfin.c (hwloop_optimize): Likewise.
3695 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
3696 of EXIT_BLOCK_PTR macro.
3697 * config/arm/arm.c (require_pic_register): Remove usage of
3698 ENTRY_BLOCK_PTR macro.
3699 (arm_r3_live_at_start_p): Likewise.
3700 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
3701 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3702 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
3703 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
3704 ENTRY_BLOCK_PTR macro.
3705 * config/i386/i386.c (ix86_count_insn): Likewise.
3706 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
3707 (ix86_pad_short_function): Likewise.
3708 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
3709 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
3710 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
3711 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
3712 (ix86_expand_epilogue): Likewise.
3713 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
3714 (ia64_expand_prologue): Likewise.
3716 2013-11-19 Catherine Moore <clm@codesourcery.com>
3718 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
3719 * config/mips/mips.opt (mfix-rm7000): New option.
3720 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
3721 * config/mips/mips.c (mips_reorg_process_insns): Disable
3722 noreorder for TARGET_FIX_RM7000.
3724 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
3726 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
3728 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3730 * config/arm/arm.c (arm_new_rtx_costs):
3731 Handle narrow mode add-shifts properly.
3732 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
3733 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
3736 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
3738 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
3740 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3742 * config/rs6000/vector.md ("mov<mode>"): Do not call
3743 rs6000_emit_le_vsx_move to move into or out of GPRs.
3744 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
3745 source and destination are not GPR hard regs.
3747 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3749 * basic-block.h (n_edges_for_function): Rename macro to...
3750 (n_edges_for_fn): ...this.
3751 (n_edges): Eliminate macro as work towards making uses of
3754 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
3755 to "n_edges_for_fn".
3757 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
3758 (clear_edges): Likewise.
3759 (free_edge): Likewise.
3760 * cfghooks.c (dump_flow_info): Likewise.
3761 * cprop.c (is_too_expensive): Likewise.
3762 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
3763 * gcse.c (is_too_expensive): Likewise.
3764 (prune_insertions_deletions): Likewise.
3765 * mcf.c (create_fixup_graph): Likewise.
3766 * sched-rgn.c (haifa_find_rgns): Likewise.
3767 * tree-cfg.c (gimple_dump_cfg): Likewise.
3768 * var-tracking.c (variable_tracking_main_1): Likewise.
3770 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
3772 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
3775 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
3777 * config/aarch64/aarch64.md
3778 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
3780 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
3782 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
3784 2013-11-19 Joseph Myers <joseph@codesourcery.com>
3786 * varasm.c (align_variable): Give error instead of warning for
3787 unsupported alignment.
3788 (assemble_noswitch_variable): Likewise.
3790 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3792 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
3795 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
3797 * loop-doloop.c (doloop_optimize_loops): Remove unused
3798 loop iterator argument from FOR_EACH_LOOP.
3800 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3802 Convert gimple types from a union to C++ inheritance.
3803 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
3804 * coretypes.h (union gimple_statement_d): Remove declaration.
3805 (gimple): Convert from being a "union gimple_statement_d *"
3806 to a "struct gimple_statement_base *".
3807 (const_gimple): Likewise (with "const").
3808 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
3809 (ggc_alloc_cleared_gimple_statement_stat): ...this.
3810 * gimple-pretty-print.c (debug): Change parameter from a
3811 "gimple_statement_d &" to a "gimple_statement_base &".
3812 (debug): Change parameter from a "gimple_statement_d *" to
3813 a "gimple_statement_base *".
3814 * gimple-pretty-print.h (debug): Update declarations as above.
3815 * gimple.c (gimple_alloc_stat): Update for renaming of
3816 ggc_alloc_cleared_gimple_statement_d_stat to
3817 ggc_alloc_cleared_gimple_statement_stat.
3818 * gimple.h: Include "is-a.h" for use by is_a_helper
3819 specializations in followup autogenerated patch.
3820 (struct gimple statement_base): Make this type usable as a base
3821 class by adding "desc", "tag" and "variable_size" to GTY, thus
3822 using opting-in to gengtype's support for simple inheritance.
3823 (gimple_statement_with_ops_base): Convert to a subclass of
3824 gimple_statement_base, dropping initial "gsbase" field. Note that
3825 this type is abstract, with no GSS_ value, and thus no GTY tag value.
3826 (gimple_statement_with_ops): Convert to a subclass of
3827 gimple_statement_with_ops_base, dropping initial "opbase" field.
3828 Add tag value to GTY marking. Update marking of op field to
3829 reflect how num_ops field is accessed via inheritance.
3830 (gimple_statement_with_memory_ops_base): Convert to a subclass of
3831 gimple_statement_with_ops_base, dropping initial "opbase" field.
3832 Add tag value to GTY marking.
3833 (gimple_statement_with_memory_ops): Convert to a subclass of
3834 public gimple_statement_with_memory_ops_base, dropping initial
3835 "membase" field. Add tag value to GTY marking. Update marking
3836 of op field to reflect how num_ops field is accessed via inheritance.
3837 (gimple_statement_call): Analogous changes that also update the
3838 marking of the "u" union.
3839 (gimple_statement_omp): Convert to a subclass of
3840 gimple_statement_base, dropping initial "gsbase" field, adding
3841 tag value to GTY marking.
3842 (gimple_statement_bind): Likewise.
3843 (gimple_statement_catch): Likewise.
3844 (gimple_statement_eh_filter): Likewise.
3845 (gimple_statement_eh_else): Likewise.
3846 (gimple_statement_eh_mnt): Likewise.
3847 (gimple_statement_phi): Likewise.
3848 (gimple_statement_eh_ctrl): Likewise.
3849 (gimple_statement_try): Likewise.
3850 (gimple_statement_wce): Likewise.
3851 (gimple_statement_asm): Convert to a subclass of
3852 gimple_statement_with_memory_ops_base, dropping initial
3853 "membase" field, adding tag value to GTY marking, and updating
3854 marking of op field.
3855 (gimple_statement_omp_critical): Convert to a subclass of
3856 gimple_statement_omp, dropping initial "omp" field, adding tag
3857 value to GTY marking.
3858 (gimple_statement_omp_for): Likewise.
3859 (gimple_statement_omp_parallel): Likewise.
3860 (gimple_statement_omp_task): Convert to a subclass of
3861 gimple_statement_omp_parallel, dropping initial "par" field,
3862 adding tag value to GTY marking.
3863 (gimple_statement_omp_sections): Convert to a subclass of
3864 gimple_statement_omp, dropping initial "omp" field, adding
3865 tag value to GTY marking.
3866 (gimple_statement_omp_continue): Convert to a subclass of
3867 gimple_statement_base, dropping initial "gsbase" field, adding
3868 tag value to GTY marking.
3869 (gimple_statement_omp_single): Convert to a subclass of
3870 gimple_statement_omp, dropping initial "omp" field, adding
3871 tag value to GTY marking.
3872 (gimple_statement_omp_atomic_load): Convert to a subclass of
3873 gimple_statement_base, dropping initial "gsbase" field, adding
3874 tag value to GTY marking.
3875 (gimple_statement_omp_atomic_store): Convert to a subclass of
3876 gimple_statement_base, dropping initial "gsbase" field, adding
3877 tag value to GTY marking.
3878 (gimple_statement_transaction): Convert to a subclass of
3879 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
3880 field, adding tag value to GTY marking.
3881 (union gimple_statement_d): Remove.
3882 * system.h (CONST_CAST_GIMPLE): Update to use
3883 "struct gimple_statement_base *" rather than
3884 "union gimple_statement_d *".
3885 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
3886 gimple_statement_d to gimple_statement_base.
3888 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
3889 (gimple_set_use_ops): Port from union to usage of as_a.
3890 (gimple_set_vuse): Likewise.
3891 (gimple_set_vdef): Likewise.
3892 (gimple_call_internal_fn): Port from union to a static_cast,
3893 given that the type has already been asserted.
3894 (gimple_omp_body_ptr): Port from unchecked union usage to
3896 (gimple_omp_set_body): Likewise.
3898 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
3899 gimple types to a true class hierarchy.
3900 (update_call_edge_frequencies): Likewise.
3901 (gsi_insert_seq_nodes_before): Likewise.
3902 (gsi_insert_seq_nodes_after): Likewise.
3903 (gsi_split_seq_after): Likewise.
3904 (gsi_set_stmt): Likewise.
3905 (gsi_split_seq_before): Likewise.
3906 (gsi_remove): Likewise.
3907 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
3908 (gsi_next): Likewise.
3909 (gsi_prev): Likewise.
3910 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
3911 * gimple-ssa.h (gimple_vuse_op): Likewise.
3912 (gimple_vdef_op): Likewise.
3913 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
3914 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
3915 * gimple.c (gimple_set_code): Likewise.
3916 (gimple_alloc_stat): Likewise.
3917 (gimple_set_subcode): Likewise.
3918 (gimple_build_call_internal_1): Likewise.
3919 (gimple_check_failed): Likewise.
3920 (gimple_call_flags): Likewise.
3921 (gimple_set_bb): Likewise.
3922 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
3923 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
3924 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
3925 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
3926 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
3927 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
3928 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
3929 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
3930 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
3931 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
3932 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
3933 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
3934 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
3935 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
3936 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
3937 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
3938 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
3939 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
3940 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
3941 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
3942 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
3943 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
3944 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
3945 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
3946 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
3947 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
3949 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
3951 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
3953 (is_a_helper <const gimple_statement_omp_atomic_store>
3954 (const_gimple)): Likewise.
3955 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
3957 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
3959 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
3961 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
3963 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
3965 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
3967 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
3969 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
3970 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
3972 (gimple_seq_last): Update for conversion of gimple types to a true
3974 (gimple_seq_set_last): Likewise.
3975 (gimple_code): Likewise.
3976 (gimple_bb): Likewise.
3977 (gimple_block): Likewise.
3978 (gimple_set_block): Likewise.
3979 (gimple_location): Likewise.
3980 (gimple_location_ptr): Likewise.
3981 (gimple_set_location): Likewise.
3982 (gimple_no_warning_p): Likewise.
3983 (gimple_set_no_warning): Likewise.
3984 (gimple_set_visited): Likewise.
3985 (gimple_visited_p): Likewise.
3986 (gimple_set_plf): Likewise.
3987 (gimple_plf): Likewise.
3988 (gimple_set_uid): Likewise.
3989 (gimple_uid): Likewise.
3990 (gimple_init_singleton): Likewise.
3991 (gimple_modified_p): Likewise.
3992 (gimple_set_modified): Likewise.
3993 (gimple_expr_code): Likewise.
3994 (gimple_has_volatile_ops): Likewise.
3995 (gimple_set_has_volatile_ops): Likewise.
3996 (gimple_omp_subcode): Likewise.
3997 (gimple_omp_set_subcode): Likewise.
3998 (gimple_omp_return_set_nowait): Likewise.
3999 (gimple_omp_section_set_last): Likewise.
4000 (gimple_omp_parallel_set_combined_p): Likewise.
4001 (gimple_omp_atomic_set_need_value): Likewise.
4002 (gimple_omp_atomic_set_seq_cst): Likewise.
4003 (gimple_num_ops): Likewise.
4004 (gimple_set_num_ops): Likewise.
4005 (gimple_assign_nontemporal_move_p): Likewise.
4006 (gimple_assign_set_nontemporal_move): Likewise.
4007 (gimple_assign_rhs_code): Likewise.
4008 (gimple_assign_set_rhs_code): Likewise.
4009 (gimple_call_internal_p): Likewise.
4010 (gimple_call_with_bounds_p): Likewise.
4011 (gimple_call_set_with_bounds): Likewise.
4012 (gimple_call_set_tail): Likewise.
4013 (gimple_call_tail_p): Likewise.
4014 (gimple_call_set_return_slot_opt): Likewise.
4015 (gimple_call_return_slot_opt_p): Likewise.
4016 (gimple_call_set_from_thunk): Likewise.
4017 (gimple_call_from_thunk_p): Likewise.
4018 (gimple_call_set_va_arg_pack): Likewise.
4019 (gimple_call_va_arg_pack_p): Likewise.
4020 (gimple_call_set_nothrow): Likewise.
4021 (gimple_call_set_alloca_for_var): Likewise.
4022 (gimple_call_alloca_for_var_p): Likewise.
4023 (gimple_call_copy_flags): Likewise.
4024 (gimple_cond_code): Likewise.
4025 (gimple_cond_set_code): Likewise.
4026 (gimple_cond_make_false): Likewise.
4027 (gimple_cond_make_true): Likewise.
4028 (gimple_asm_volatile_p): Likewise.
4029 (gimple_asm_set_volatile): Likewise.
4030 (gimple_asm_set_input): Likewise.
4031 (gimple_asm_input_p): Likewise.
4032 (gimple_try_kind): Likewise.
4033 (gimple_try_set_kind): Likewise.
4034 (gimple_try_catch_is_cleanup): Likewise.
4035 (gimple_try_set_catch_is_cleanup): Likewise.
4036 (gimple_wce_cleanup_eh_only): Likewise.
4037 (gimple_wce_set_cleanup_eh_only): Likewise.
4038 (gimple_debug_bind_p): Likewise.
4039 (gimple_debug_source_bind_p): Likewise.
4040 (gimple_omp_for_set_kind): Likewise.
4041 (gimple_omp_for_set_combined_p): Likewise.
4042 (gimple_omp_for_set_combined_into_p): Likewise.
4043 (gimple_omp_target_set_kind): Likewise.
4044 (gimple_transaction_subcode): Likewise.
4045 (gimple_transaction_set_subcode): Likewise.
4046 (gimple_predict_predictor): Likewise.
4047 (gimple_predict_set_predictor): Likewise.
4048 (gimple_predict_outcome): Likewise.
4049 (gimple_predict_set_outcome): Likewise.
4050 (gimple_transaction_set_label): Likewise.
4051 (gimple_transaction_set_body): Likewise.
4052 (gimple_transaction_label_ptr): Likewise.
4053 (gimple_transaction_label): Likewise.
4054 (gimple_transaction_body_ptr): Likewise.
4055 (gimple_omp_continue_set_control_use): Likewise.
4056 (gimple_omp_continue_control_use_ptr): Likewise.
4057 (gimple_omp_continue_control_use): Likewise.
4058 (gimple_omp_continue_set_control_def): Likewise.
4059 (gimple_omp_continue_control_def_ptr): Likewise.
4060 (gimple_omp_continue_control_def): Likewise.
4061 (gimple_omp_atomic_load_rhs_ptr): Likewise.
4062 (gimple_omp_atomic_load_rhs): Likewise.
4063 (gimple_omp_atomic_load_set_rhs): Likewise.
4064 (gimple_omp_atomic_load_lhs_ptr): Likewise.
4065 (gimple_omp_atomic_load_lhs): Likewise.
4066 (gimple_omp_atomic_load_set_lhs): Likewise.
4067 (gimple_omp_atomic_store_val_ptr): Likewise.
4068 (gimple_omp_atomic_store_val): Likewise.
4069 (gimple_omp_atomic_store_set_val): Likewise.
4070 (gimple_omp_for_cond): Likewise.
4071 (gimple_omp_for_set_cond): Likewise.
4072 (gimple_omp_sections_set_control): Likewise.
4073 (gimple_omp_sections_control_ptr): Likewise.
4074 (gimple_omp_sections_control): Likewise.
4075 (gimple_omp_sections_set_clauses): Likewise.
4076 (gimple_omp_sections_clauses_ptr): Likewise.
4077 (gimple_omp_sections_clauses): Likewise.
4078 (gimple_omp_teams_set_clauses): Likewise.
4079 (gimple_omp_teams_clauses_ptr): Likewise.
4080 (gimple_omp_teams_clauses): Likewise.
4081 (gimple_omp_target_set_data_arg): Likewise.
4082 (gimple_omp_target_data_arg_ptr): Likewise.
4083 (gimple_omp_target_data_arg): Likewise.
4084 (gimple_omp_target_set_child_fn): Likewise.
4085 (gimple_omp_target_child_fn_ptr): Likewise.
4086 (gimple_omp_target_child_fn): Likewise.
4087 (gimple_omp_target_set_clauses): Likewise.
4088 (gimple_omp_target_clauses_ptr): Likewise.
4089 (gimple_omp_target_clauses): Likewise.
4090 (gimple_omp_single_set_clauses): Likewise.
4091 (gimple_omp_single_clauses_ptr): Likewise.
4092 (gimple_omp_single_clauses): Likewise.
4093 (gimple_omp_task_set_arg_align): Likewise.
4094 (gimple_omp_task_arg_align_ptr): Likewise.
4095 (gimple_omp_task_arg_align): Likewise.
4096 (gimple_omp_task_set_arg_size): Likewise.
4097 (gimple_omp_task_arg_size_ptr): Likewise.
4098 (gimple_omp_task_arg_size): Likewise.
4099 (gimple_omp_task_set_copy_fn): Likewise.
4100 (gimple_omp_task_copy_fn_ptr): Likewise.
4101 (gimple_omp_task_copy_fn): Likewise.
4102 (gimple_omp_task_set_data_arg): Likewise.
4103 (gimple_omp_task_data_arg_ptr): Likewise.
4104 (gimple_omp_task_data_arg): Likewise.
4105 (gimple_omp_task_set_child_fn): Likewise.
4106 (gimple_omp_task_child_fn_ptr): Likewise.
4107 (gimple_omp_task_child_fn): Likewise.
4108 (gimple_omp_task_set_clauses): Likewise.
4109 (gimple_omp_task_clauses_ptr): Likewise.
4110 (gimple_omp_task_clauses): Likewise.
4111 (gimple_omp_parallel_set_data_arg): Likewise.
4112 (gimple_omp_parallel_data_arg_ptr): Likewise.
4113 (gimple_omp_parallel_data_arg): Likewise.
4114 (gimple_omp_parallel_set_child_fn): Likewise.
4115 (gimple_omp_parallel_child_fn_ptr): Likewise.
4116 (gimple_omp_parallel_child_fn): Likewise.
4117 (gimple_omp_parallel_set_clauses): Likewise.
4118 (gimple_omp_parallel_clauses_ptr): Likewise.
4119 (gimple_omp_parallel_clauses): Likewise.
4120 (gimple_omp_for_set_pre_body): Likewise.
4121 (gimple_omp_for_pre_body_ptr): Likewise.
4122 (gimple_omp_for_set_incr): Likewise.
4123 (gimple_omp_for_incr_ptr): Likewise.
4124 (gimple_omp_for_incr): Likewise.
4125 (gimple_omp_for_set_final): Likewise.
4126 (gimple_omp_for_final_ptr): Likewise.
4127 (gimple_omp_for_final): Likewise.
4128 (gimple_omp_for_set_initial): Likewise.
4129 (gimple_omp_for_initial_ptr): Likewise.
4130 (gimple_omp_for_initial): Likewise.
4131 (gimple_omp_for_set_index): Likewise.
4132 (gimple_omp_for_index_ptr): Likewise.
4133 (gimple_omp_for_index): Likewise.
4134 (gimple_omp_for_collapse): Likewise.
4135 (gimple_omp_for_set_clauses): Likewise.
4136 (gimple_omp_for_clauses_ptr): Likewise.
4137 (gimple_omp_for_clauses): Likewise.
4138 (gimple_omp_critical_set_name): Likewise.
4139 (gimple_omp_critical_name_ptr): Likewise.
4140 (gimple_omp_critical_name): Likewise.
4141 (gimple_eh_dispatch_set_region): Likewise.
4142 (gimple_eh_dispatch_region): Likewise.
4143 (gimple_resx_set_region): Likewise.
4144 (gimple_resx_region): Likewise.
4145 (gimple_phi_set_arg): Likewise.
4146 (gimple_phi_arg): Likewise.
4147 (gimple_phi_set_result): Likewise.
4148 (gimple_phi_result_ptr): Likewise.
4149 (gimple_phi_result): Likewise.
4150 (gimple_phi_num_args): Likewise.
4151 (gimple_phi_capacity): Likewise.
4152 (gimple_wce_set_cleanup): Likewise.
4153 (gimple_wce_cleanup_ptr): Likewise.
4154 (gimple_try_set_cleanup): Likewise.
4155 (gimple_try_set_eval): Likewise.
4156 (gimple_try_cleanup_ptr): Likewise.
4157 (gimple_try_eval_ptr): Likewise.
4158 (gimple_eh_else_set_e_body): Likewise.
4159 (gimple_eh_else_set_n_body): Likewise.
4160 (gimple_eh_else_e_body_ptr): Likewise.
4161 (gimple_eh_else_n_body_ptr): Likewise.
4162 (gimple_eh_must_not_throw_set_fndecl): Likewise.
4163 (gimple_eh_must_not_throw_fndecl): Likewise.
4164 (gimple_eh_filter_set_failure): Likewise.
4165 (gimple_eh_filter_set_types): Likewise.
4166 (gimple_eh_filter_failure_ptr): Likewise.
4167 (gimple_eh_filter_types_ptr): Likewise.
4168 (gimple_eh_filter_types): Likewise.
4169 (gimple_catch_set_handler): Likewise.
4170 (gimple_catch_set_types): Likewise.
4171 (gimple_catch_handler_ptr): Likewise.
4172 (gimple_catch_types_ptr): Likewise.
4173 (gimple_catch_types): Likewise.
4174 (gimple_asm_string): Likewise.
4175 (gimple_asm_set_label_op): Likewise.
4176 (gimple_asm_label_op): Likewise.
4177 (gimple_asm_set_clobber_op): Likewise.
4178 (gimple_asm_clobber_op): Likewise.
4179 (gimple_asm_set_output_op): Likewise.
4180 (gimple_asm_output_op_ptr): Likewise.
4181 (gimple_asm_output_op): Likewise.
4182 (gimple_asm_set_input_op): Likewise.
4183 (gimple_asm_input_op_ptr): Likewise.
4184 (gimple_asm_input_op): Likewise.
4185 (gimple_asm_nlabels): Likewise.
4186 (gimple_asm_nclobbers): Likewise.
4187 (gimple_asm_noutputs): Likewise.
4188 (gimple_asm_ninputs): Likewise.
4189 (gimple_bind_set_block): Likewise.
4190 (gimple_bind_block): Likewise.
4191 (gimple_bind_add_seq): Likewise.
4192 (gimple_bind_add_stmt): Likewise.
4193 (gimple_bind_set_body): Likewise.
4194 (gimple_bind_body_ptr): Likewise.
4195 (gimple_bind_append_vars): Likewise.
4196 (gimple_bind_set_vars): Likewise.
4197 (gimple_bind_vars): Likewise.
4198 (gimple_call_clobber_set): Likewise.
4199 (gimple_call_use_set): Likewise.
4200 (gimple_call_set_internal_fn): Likewise.
4201 (gimple_call_set_fntype): Likewise.
4202 (gimple_call_fntype): Likewise.
4203 (gimple_omp_return_lhs_ptr): Likewise.
4204 (gimple_omp_return_lhs): Likewise.
4205 (gimple_omp_return_set_lhs): Likewise.
4206 (gimple_omp_taskreg_set_data_arg): Likewise.
4207 (gimple_omp_taskreg_data_arg_ptr): Likewise.
4208 (gimple_omp_taskreg_data_arg): Likewise.
4209 (gimple_omp_taskreg_set_child_fn): Likewise.
4210 (gimple_omp_taskreg_child_fn_ptr): Likewise.
4211 (gimple_omp_taskreg_child_fn): Likewise.
4212 (gimple_omp_taskreg_set_clauses): Likewise.
4213 (gimple_omp_taskreg_clauses_ptr): Likewise.
4214 (gimple_omp_taskreg_clauses): Likewise.
4215 (gimple_vuse): Likewise.
4216 (gimple_vdef): Likewise.
4217 (gimple_vuse_ptr): Likewise.
4218 (gimple_vdef_ptr): Likewise.
4219 * tree-inline.c (copy_debug_stmt): Likewise.
4220 * tree-phinodes.c (make_phi_node): Likewise.
4222 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
4223 (is_a_helper <gimple_statement_with_ops>::test): New.
4224 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
4225 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
4227 * gimple-streamer-in.c (input_gimple_stmt): Port from union
4228 access to use of as_a.
4229 * gimple.c (gimple_build_asm_1): Likewise.
4230 (gimple_build_try): Likewise. Also, return a specific subclass
4231 rather than just gimple.
4232 (gimple_build_resx): Port from union access to use of as_a.
4233 (gimple_build_eh_dispatch): Likewise.
4234 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
4235 now that gengtype no longer provides a typed allocator function.
4236 (gimple_copy): Likewise.
4237 * gimple.h (gimple_build_try): Return a specific subclass rather
4239 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
4240 with subclass access by making use of new return type of
4242 * tree-phinodes.c: (allocate_phi_node): Return a
4243 "gimple_statement_phi *" rather than just a gimple.
4244 (resize_phi_node): Likewise.
4245 (make_phi_node): Replace union access with subclass access by
4246 making use of new return type of allocate_phi_node.
4247 (reserve_phi_args_for_new_edge): Replace union access with as_a.
4248 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
4250 (remove_phi_args): Update for change to remove_phi_arg_num.
4252 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
4253 code field to reflect inheritance, rather than embedding of
4254 the base gimple type.
4256 2013-11-19 Richard Biener <rguenther@suse.de>
4258 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
4259 and destructor and make fel_next a member function.
4260 (fel_next): Transform into ...
4261 (loop_iterator::next): ... this.
4262 (fel_init): Transform into ...
4263 (loop_iterator::loop_iterator): ... this.
4264 (loop_iterator::~loop_iterator): New.
4265 (FOR_EACH_LOOP): Remove loop-iterator argument.
4266 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
4267 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
4268 graphite-clast-to-gimple.c, graphite-scop-detection.c,
4269 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
4270 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
4271 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
4272 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
4273 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
4274 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
4275 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
4276 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
4277 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
4278 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
4279 FOR_EACH_LOOP_BREAK with break.
4281 2013-11-19 Richard Biener <rguenther@suse.de>
4283 PR tree-optimization/59164
4284 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
4286 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
4287 whether we can create an epilogue loop to reflect thecases where
4290 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
4292 * graphite-sese-to-poly.c: Include expr.h.
4294 2013-11-19 Richard Biener <rguenther@suse.de>
4297 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
4298 loads into stmts that may clobber it.
4300 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
4302 * cgraphunit.c (symtab_terminator): New variable.
4303 (queued_nodes): Renamed from first. Use symtab_terminator as
4305 (analyze_functions): Adjust accordingly.
4306 (cgraph_process_new_functions): Return void.
4307 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
4309 2013-11-19 Marek Polacek <polacek@redhat.com>
4311 * opts.c (common_handle_option): Add -fsanitize=null option.
4312 Turn off -fdelete-null-pointer-checks option when doing the
4313 NULL pointer checking.
4314 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
4315 * tree-pass.h (make_pass_ubsan): Declare.
4316 (make_pass_sanopt): Declare.
4317 * timevar.def (TV_TREE_UBSAN): New timevar.
4318 * passes.def: Add pass_sanopt and pass_ubsan.
4319 * ubsan.h (ubsan_null_ckind): New enum.
4320 (ubsan_mismatch_data): New struct.
4321 (ubsan_expand_null_ifn): Declare.
4322 (ubsan_create_data): Adjust declaration.
4323 (ubsan_type_descriptor): Likewise.
4324 * asan.c: Include "ubsan.h".
4325 (pass_data_sanopt): New pass.
4326 (execute_sanopt): New function.
4327 (gate_sanopt): Likewise.
4328 (make_pass_sanopt): Likewise.
4329 (class pass_sanopt): New class.
4330 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
4331 gimple-iterator.h and cfgloop.h.
4332 (PROB_VERY_UNLIKELY): Define.
4333 (tree_type_map_hash): New function.
4334 (ubsan_type_descriptor): Add new parameter.
4335 Improve type name generation.
4336 (ubsan_create_data): Add new parameter. Add pointer data into
4338 (ubsan_expand_null_ifn): New function.
4339 (instrument_member_call): Likewise.
4340 (instrument_mem_ref): Likewise.
4341 (instrument_null): Likewise.
4342 (ubsan_pass): Likewise.
4343 (gate_ubsan): Likewise.
4344 (make_pass_ubsan): Likewise.
4345 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
4346 (class pass_ubsan): New class.
4347 (pass_data_ubsan): New pass.
4348 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
4349 * internal-fn.c (expand_UBSAN_NULL): New function.
4350 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
4351 even when !flag_toplevel_reorder.
4352 * internal-fn.def (UBSAN_NULL): New.
4354 2013-11-19 Jan Hubicka <jh@suse.cz>
4356 * cgraph.c (cgraph_create_indirect_edge): Use
4357 get_polymorphic_call_info.
4358 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
4359 maybe_in_construction and maybe_derived_type.
4360 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
4361 (ipa_dummy_polymorphic_call_context): New global var.
4362 (possible_polymorphic_call_targets): Add context paramter.
4363 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
4364 (possible_polymorphic_call_target_p): Likewise.
4365 (get_polymorphic_call_info): New function.
4366 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
4367 (add_type_duplicate): Remove forgotten debug output.
4368 (method_class_type): Add sanity check.
4369 (maybe_record_node): Add FINALP parameter.
4370 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
4371 by info by get_binfo_at_offset.
4372 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
4373 parameters; pass them to record-binfo.
4374 (polymorphic_call_target_d): Add context and FINAL.
4375 (polymorphic_call_target_hasher::hash): Hash context.
4376 (polymorphic_call_target_hasher::equal): Compare context.
4377 (free_polymorphic_call_targets_hash):
4378 (get_class_context): New function.
4379 (contains_type_p): New function.
4380 (get_polymorphic_call_info): New function.
4381 (walk_bases): New function.
4382 (possible_polymorphic_call_targets): Add context parameter; honnor it.
4383 (dump_possible_polymorphic_call_targets): Dump context.
4384 (possible_polymorphic_call_target_p): Add context.
4385 (update_type_inheritance_graph): Update comment.s
4386 (ipa_set_jf_known_type): Assert that compoentn type is known.
4387 (ipa_note_param_call): Do not tamper with offsets.
4388 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
4390 (update_indirect_edges_after_inlining): Likewise.
4391 (ipa_write_indirect_edge_info): Stream new fields.
4392 (ipa_read_indirect_edge_info): Stream in new fields.
4394 2013-11-19 Jan Hubicka <jh@suse.cz>
4396 * tree-pretty-print.c (dump_generic_node): Print class type of
4399 2013-11-19 Joey Ye <joey.ye@arm.com>
4401 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
4402 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
4404 * config/arm/arm.c (arm_option_override): By default disable
4405 -marm-pic-data-is-text-relative.
4406 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
4407 (arm_assemble_integer): Likewise.
4408 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
4409 New macro to initialize -marm-pic-data-is-text-relative.
4411 2013-11-19 Bin Cheng <bin.cheng@arm.com>
4413 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
4414 (address_cost_data): New field.
4415 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
4416 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
4418 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
4420 * config/aarch64/aarch64.md: Remove v8type from all insns.
4422 2013-11-19 Richard Biener <rguenther@suse.de>
4424 PR tree-optimization/57517
4425 * tree-predcom.c (combinable_refs_p): Verify the combination
4426 is always executed when the refs are.
4428 2013-11-19 Jeff Law <law@redhat.com>
4430 * tree-ssa-threadupdate.c: Include ssa-iterators.h
4431 (copy_phi_arg_into_existing_phi): New function.
4432 (any_remaining_duplicated_blocks): Likewise.
4433 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
4434 blocks on a jump threading path.
4436 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
4437 thread through a joiner which has the latch edge.
4439 2013-11-19 Jan Hubicka <jh@suse.cz>
4441 * md.texi (setmem): Document new parameter.
4442 * optabs.c (maybe_gen_insn): Support 9 operands.
4443 * builtins.c (determine_block_size): Add probable_max_size;
4444 support anti-ranges.
4445 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
4447 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
4448 emit_block_move, clear_storage_hints, set_storage_via_setmem):
4450 * expr.h (emit_block_move_hints, clear_storage_hints,
4451 set_storage_via_setmem): Update prototype.
4452 * i386.md (setmem, movmem patterns): Add 9th operand.
4453 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
4454 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
4455 argument; pass it to decide_alg.
4457 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4459 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
4460 (n_basic_blocks_for_fn): ...this.
4462 (n_basic_blocks): Eliminate macro as work towards making uses of
4465 * cfgloop.c (init_loops_structure): Update for renaming of
4466 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
4467 * graph.c (draw_cfg_nodes_no_loops): Likewise.
4468 * ipa-utils.c (ipa_merge_profiles): Likewise.
4469 * lto-streamer-in.c (make_new_block): Likewise.
4470 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
4471 (dump_function_to_file): Likewise.
4473 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
4474 macro with "n_basic_blocks_for_fn (cfun)".
4475 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
4476 (duplicate_computed_gotos): Likewise.
4477 (reorder_basic_blocks): Likewise.
4478 * bt-load.c (augment_live_range): Likewise.
4479 * cfg.c (expunge_block): Likewise.
4480 (compact_blocks): Likewise.
4481 * cfganal.c (single_pred_before_succ_order): Likewise.
4482 (compute_idf): Likewise.
4483 (flow_dfs_compute_reverse_init): Likewise.
4484 (pre_and_rev_post_order_compute): Likewise.
4485 (pre_and_rev_post_order_compute_fn): Likewise.
4486 (inverted_post_order_compute): Likewise.
4487 (post_order_compute): Likewise.
4488 (print_edge_list): Likewise.
4489 (find_unreachable_blocks): Likewise.
4490 (mark_dfs_back_edges): Likewise.
4491 * cfgcleanup.c (try_optimize_cfg): Likewise.
4492 (try_forward_edges): Likewise.
4493 * cfghooks.c (dump_flow_info): Likewise.
4494 * cfgloop.c (verify_loop_structure): Likewise.
4495 (get_loop_body): Likewise.
4496 (flow_loops_find): Likewise.
4497 * cfgloopmanip.c (add_loop): Likewise.
4498 (remove_path): Likewise.
4499 (find_path): Likewise.
4500 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
4501 (rtl_verify_bb_layout): Likewise.
4502 (entry_of_function): Likewise.
4503 (rtl_create_basic_block): Likewise.
4504 * coverage.c (coverage_compute_cfg_checksum): Likewise.
4505 * cprop.c (one_cprop_pass): Likewise.
4506 (is_too_expensive): Likewise.
4507 * df-core.c (df_compute_cfg_image): Likewise.
4508 (df_compact_blocks): Likewise.
4509 (df_worklist_dataflow_doublequeue): Likewise.
4510 * dominance.c (calculate_dominance_info): Likewise.
4511 (calc_dfs_tree): Likewise.
4512 (calc_dfs_tree_nonrec): Likewise.
4513 (init_dom_info): Likewise.
4514 * domwalk.c (cmp_bb_postorder): Likewise.
4515 * function.c (thread_prologue_and_epilogue_insns): Likewise.
4516 (generate_setjmp_warnings): Likewise.
4517 * fwprop.c (build_single_def_use_links): Likewise.
4518 * gcse.c (is_too_expensive): Likewise.
4519 (one_code_hoisting_pass): Likewise.
4520 (one_pre_gcse_pass): Likewise.
4521 * graphite.c (graphite_initialize): Likewise.
4522 * haifa-sched.c (haifa_sched_init): Likewise.
4523 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
4524 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
4525 * ira-build.c (ira_build): Likewise.
4526 * lcm.c (compute_nearerout): Likewise.
4527 (compute_available): Likewise.
4528 (compute_laterin): Likewise.
4529 (compute_antinout_edge): Likewise.
4530 * lra-lives.c (lra_create_live_ranges): Likewise.
4531 * lra.c (has_nonexceptional_receiver): Likewise.
4532 * mcf.c (create_fixup_graph): Likewise.
4533 * profile.c (branch_prob): Likewise.
4534 * reg-stack.c (convert_regs_2): Likewise.
4535 * regrename.c (regrename_analyze): Likewise.
4536 * reload1.c (has_nonexceptional_receiver): Likewise.
4537 * reorg.c (dbr_schedule): Likewise.
4538 * sched-deps.c (sched_deps_init): Likewise.
4539 * sched-ebb.c (schedule_ebbs): Likewise.
4540 * sched-rgn.c (extend_regions): Likewise.
4541 (schedule_insns): Likewise.
4542 (sched_rgn_init): Likewise.
4543 (extend_rgns): Likewise.
4544 (haifa_find_rgns): Likewise.
4545 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
4546 (sel_recompute_toporder): Likewise.
4547 * sel-sched.c (run_selective_scheduling): Likewise.
4548 * store-motion.c (one_store_motion_pass): Likewise.
4549 (remove_reachable_equiv_notes): Likewise.
4550 * tracer.c (tracer): Likewise.
4551 (tail_duplicate): Likewise.
4552 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
4553 (dump_cfg_stats): Likewise.
4554 (gimple_dump_cfg): Likewise.
4555 (create_bb): Likewise.
4556 (build_gimple_cfg): Likewise.
4557 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
4558 * tree-inline.c (optimize_inline_calls): Likewise.
4559 (fold_marked_statements): Likewise.
4560 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
4561 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
4562 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
4563 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
4564 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
4565 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
4566 * tree-ssa-pre.c (do_pre): Likewise.
4567 (init_pre): Likewise.
4568 (compute_avail): Likewise.
4569 * tree-ssa-reassoc.c (init_reassoc): Likewise.
4570 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
4571 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
4572 (init_worklist): Likewise.
4573 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
4574 * var-tracking.c (variable_tracking_main_1): Likewise.
4575 (vt_find_locations): Likewise.
4576 (vt_stack_adjustments): Likewise.
4577 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
4578 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
4580 2013-11-18 Jan Hubicka <jh@suse.cz>
4582 * profile.c (compute_branch_probabilities): Do not sanity check
4585 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
4587 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
4589 * fold-const.c (fold_single_bit_test_into_sign_test)
4590 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
4592 2013-11-18 Teresa Johnson <tejohnson@google.com>
4594 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
4595 cfglayout after bb reordering.
4596 * passes.def: Move compgotos before bb reordering since it goes into
4599 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
4601 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
4602 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
4604 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
4605 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
4606 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
4607 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
4608 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
4609 Remove all_lto_gen_passes.
4610 * passes.c (pass_manager::dump_passes): Remove its use.
4611 (pass_manager::register_pass): Likewise.
4612 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
4613 (pass_manager::pass_manager): Don't initialize or use it.
4614 (write_lto): New static function.
4615 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
4616 instead of using all_lto_gen_passes.
4617 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
4618 pass_ipa_lto_finish_out): Delete.
4619 * tree-pass.h (make_pass_ipa_lto_gimple_out,
4620 make_pass_ipa_lto_finish_out): Don't declare.
4622 2013-11-18 Jeff Law <law@redhat.com>
4624 * tree-ssa-threadupdate.c (redirection_data): Record two
4625 duplicated blocks instead of just one.
4626 (local_info): Explain why we don't create a template for the
4627 second duplicated block in a thread path.
4628 (create_block_for_threading): Accept argument indicating array
4629 index into redirection_data to store its result.
4630 (lookup_redirection_data): Initialize both duplicate blocks.
4631 (ssa_create_duplicates): If a jump threading path needs multiple
4632 blocks duplicated, then duplicate them.
4633 (ssa_fix_duplicate_block_edges): Corresponding changes.
4634 (ssa_fixup_template_block, thread_single_edge): Likewise.
4636 2013-11-18 Marek Polacek <polacek@redhat.com>
4638 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
4640 2013-11-18 Andrew Pinski <apinski@cavium.com>
4641 Steve Ellcey <sellcey@mips.com>
4644 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
4645 type restriction from equality_operator on conditonal move.
4646 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
4647 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
4649 2013-11-18 Jeff Law <law@redhat.com>
4651 * tree-ssa-threadupdate.c: Fix file block comment.
4652 Fix minor indention issue.
4654 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
4656 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
4657 ix86_address_subreg_operand. Move subreg checks to
4658 ix86_validate_address_register. Move address override check to
4659 ix86_legitimate_address_p.
4660 (ix86_validate_address_register): New function.
4661 (ix86_legitimate_address_p): Call ix86_validate_address_register
4662 to validate base and index registers. Add address override check
4663 from ix86_decompose_address.
4664 (ix86_decompose_address): Remove.
4666 2013-11-18 Richard Biener <rguenther@suse.de>
4668 PR tree-optimization/59125
4669 PR tree-optimization/54570
4670 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
4671 is not complete do not treat component-references with offset zero
4672 but different fields as equal.
4673 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
4674 (compute_object_sizes): Apply TLC. Propagate the constant
4675 results into all uses and fold their stmts.
4676 * passes.def (pass_all_optimizations): Move pass_object_sizes
4677 after the first pass_forwprop and before pass_fre.
4679 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4681 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
4682 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
4683 (tree_ctz): Remove cast to unsigned type.
4684 * builtins.c (fold_builtin_memory_op): Likewise.
4685 * dwarf2out.c (descr_info_loc): Likewise.
4686 * godump.c (go_output_typedef): Likewise.
4687 * omp-low.c (expand_omp_simd): Likewise.
4688 * stor-layout.c (excess_unit_span): Likewise.
4689 * tree-object-size.c (addr_object_size): Likewise.
4690 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4691 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
4692 (simplify_rotate): Likewise.
4693 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
4694 (handle_pointer_plus): Likewise.
4695 * tree-switch-conversion.c (check_range): Likewise.
4696 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
4697 * tsan.c (instrument_builtin_call): Likewise.
4698 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
4699 * trans-mem.c (tm_log_add): Likewise.
4700 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
4701 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
4702 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
4703 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
4705 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4707 * tree.h (host_integerp, tree_low_cst): Delete.
4708 * tree.c (host_integerp, tree_low_cst): Delete.
4710 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4712 * expr.h: Update comments to refer to tree_to_[su]hwi rather
4714 * fold-const.c (fold_binary_loc): Likewise.
4715 * expr.c (store_constructor): Use tree_to_uhwi rather than
4717 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
4718 * stmt.c (emit_case_dispatch_table): Likewise.
4719 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
4721 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4723 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
4724 config/aarch64/aarch64.c, config/alpha/predicates.md,
4725 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
4726 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
4727 config/mep/mep-pragma.c, config/mips/mips.c,
4728 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
4729 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
4730 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
4731 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
4732 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
4733 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
4734 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
4735 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
4736 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
4737 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
4739 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4741 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
4742 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
4743 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
4744 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
4745 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
4746 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
4747 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
4748 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
4749 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
4750 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
4751 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
4753 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4755 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
4756 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
4758 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4760 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
4763 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4765 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
4766 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
4767 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
4768 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
4769 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
4770 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
4771 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
4772 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
4773 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
4774 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
4775 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
4776 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
4777 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
4778 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
4779 tree_fits_uhwi_p throughout.
4781 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4783 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
4784 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
4785 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
4786 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
4787 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
4788 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
4789 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
4790 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
4791 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
4792 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
4793 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
4794 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
4795 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
4798 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4800 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
4801 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
4803 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
4805 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
4806 flag if it kills its address, not its post-increment.
4808 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
4810 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
4811 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
4812 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
4813 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
4814 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
4815 (gimple_call_with_bounds_p): New.
4816 (gimple_call_set_with_bounds): New.
4817 (gimple_call_num_nobnd_args): Remove.
4818 (gimple_call_nobnd_arg): Remove.
4819 * tree.h (CALL_WITH_BOUNDS_P): New.
4820 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
4822 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
4824 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
4825 (symtab_node_name): Rename to symtab_node::name.
4826 (cgraph_node_asm_name): Remove.
4827 (varpool_node_asm_name): Remove.
4828 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
4829 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
4830 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
4831 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
4832 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
4834 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4836 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
4837 * config/arm/arm.c (arm_cortex_a53_tune): New.
4838 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
4840 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4842 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
4843 (case ${target}): Add bdver4.
4844 * config/i386/bdver3.md: Add bdver4.
4845 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
4846 -march=native recognize bdver4 processors.
4847 * config/i386/i386-c.c (ix86_target_macros_internal): Add
4848 bdver4 def_and_undef
4849 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
4850 (m_BDVER4): New definition.
4851 (m_AMD_MULTIPLE): Includes m_BDVER4.
4852 (processor_target_table): Add bdver4 entry.
4853 (static const char *const cpu_names): Add bdver4 entry.
4854 (software_prefetching_beneficial_p): Add bdver3.
4855 (ix86_option_override_internal): Add bdver4 instruction sets.
4856 (ix86_issue_rate): Add bdver4.
4857 (ix86_adjust_cost): Add bdver4.
4858 (ia32_multipass_dfa_lookahead): Add bdver4.
4859 (enum processor_model): Add M_AMDFAM15H_BDVER4.
4860 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
4861 (has_dispatch): Add bdver4.
4862 * config/i386/i386.h (TARGET_BDVER4): New definition.
4863 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
4864 (enum processor_type): Add PROCESSOR_BDVER4.
4865 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
4866 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
4867 * doc/extend.texi: Add details about bdver4.
4868 * doc/invoke.texi: Add details about bdver4. Add
4869 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
4871 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4873 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
4874 sdmode_stack_slot also in little-endian mode.
4876 2013-11-17 Jan Hubicka <jh@suse.cz>
4878 * doc/md.texi (setmem, movstr): Update documentation.
4879 * builtins.c (determine_block_size): New function.
4880 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
4881 (expand_builtin_memset_args): Use it and pass it to
4882 set_storage_via_setmem.
4883 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
4884 parameters; update call to expander.
4885 (emit_block_move_hints): Add min_size/max_size parameters.
4886 (clear_storage_hints): Likewise.
4887 (set_storage_via_setmem): Likewise.
4888 (clear_storage): Update.
4889 * expr.h (emit_block_move_hints, clear_storage_hints,
4890 set_storage_via_setmem): Update prototypes.
4891 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
4892 (ix86_expand_movmem, ix86_expand_setmem): Remove.
4893 (ix86_expand_movmem, ix86_expand_setmem): Remove.
4894 * i386.md (movmem, setmem): Pass parameters.
4896 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
4899 * config/i386/i386.c (ix86_address_subreg_operand): Do not
4900 reject non-integer subregs.
4901 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
4902 Move check for invalid x32 constant addresses ...
4903 (ix86_legitimate_address_p): ... here.
4905 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4907 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
4908 parameter and use it in REG_FRAME_RELATED_EXPR note.
4909 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
4911 (rs6000_emit_prologue): Likewise, but for little endian VSX
4912 stores, pass the source register of the store instead.
4914 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
4916 * gimple.h: Reorder prototypes to match .c declaration order, and
4917 remove protyotypes for functions not in gimple.c.
4918 (LABEL): Move to tree-into-ssa.c.
4919 * gimple.c: Remove unused prototypes.
4920 (get_base_address): Move to tree.c.
4921 * tree.c (get_base_address): Relocate from gimple.c.
4922 * builtins.h (validate_gimple_arglist): Add prototype.
4923 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
4924 * cfgexpand.h: New File.
4925 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
4926 * tree.h (build_addr): Move to tree-nested.h.
4927 * tree-nested.h: New File.
4928 (build_addr, lower_nested_functions, insert_field_into_struct): Add
4930 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
4931 * ipa-inline-analysis.c: Include cfgexpand.h.
4932 * cgraphunit.c: Include tree-nested.h.
4933 * omp-low.c: Likewise.
4934 * tree-parloops.c: Likewise.
4935 * gimple-low.h: Likewise.
4936 * tree-profile.h: Likewise.
4937 * expr.c: Include cfgexpand.h.
4938 * tree-affine.c: Likewise.
4939 * tree-ssa.c: Likewise.
4940 * tree-ssa-loop-im.c: Include trans-mem.h.
4941 * tree-ssa-tail-merge.c: Likewise.
4942 * value-prof.c: Include builtins.h and tree-nested.h.
4943 * tree-into-ssa.c (LABEL): Define here.
4945 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
4947 * config/arc/arc.c (arc_predicate_delay_insns): New function.
4948 (pass_data_arc_predicate_delay_insns): New pass_data instance.
4949 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
4950 (make_pass_arc_predicate_delay_insns): New function.
4951 (arc_init): Register pass_arc_predicate_delay_insns if
4952 flag_delayed_branch is active.
4954 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
4956 * config/arc/constraints.md (Rcq): Simplify register number test.
4958 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
4960 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
4962 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
4964 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
4967 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
4969 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
4970 * gimple-pretty-print.c (dump_omp_for): Add case for
4971 GF_OMP_FOR_KIND_CILKSIMD.
4972 * gimple.h (enum gf_mask): Restructure entries to add
4973 GF_OMP_FOR_KIND_CILKSIMD.
4974 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
4975 (gimplify_omp_for): Handle CILK_SIMD.
4976 (gimplify_expr): Add ccase for CILK_SIMD.
4977 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
4978 (build_outer_var_ref): Same.
4979 (check_omp_nesting_restrictions): Same.
4980 (lower_rec_input_clauses): Same.
4981 (lower_lastprivate_clauses): Same.
4982 (expand_omp_for): Same.
4983 (execute_expand_omp): Check flag_enable_cilkplus.
4984 (execute_lower_omp): Same.
4985 (diagnose_sb_0): Handle CILK_SIMD.
4986 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
4987 (setjmp_or_longjmp_p): New.
4988 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
4989 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
4990 * tree.def: Add tree code for CILK_SIMD.
4992 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4994 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
4996 (altivec_vperm_<mode>): Revert earlier little endian change.
4997 (*altivec_vperm_<mode>_internal): Remove.
4998 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
4999 (*altivec_vperm_<mode>_uns_internal): Remove.
5000 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
5002 2013-11-15 Jeff Law <law@redhat.com>
5004 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
5005 has_abnormal_or_outgoing_edge. Check for EH edges as well.
5006 * gimple-ssa-isolate-paths.c
5007 (find_implicit_erroneous_behaviour): Corresponding changes.
5008 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
5009 (find_explicit_erroneous_behaviour): Likewise.
5011 2013-11-15 Jeff Law <law@redhat.com>
5013 * ifcvt.c (find_cond_trap): Properly handle case where
5016 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
5018 * configure: Regenerate.
5020 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
5022 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
5023 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
5024 where it is incorrect or missing.
5026 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
5028 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
5030 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
5031 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
5033 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
5034 pair with a TREE_CODE test and TREE_INT_CST_LOW.
5035 * tree-vect-generic.c (expand_vector_divmod): Likewise.
5037 2013-11-15 Richard Biener <rguenther@suse.de>
5039 PR tree-optimization/50262
5040 * tree-ssa-alias.h (struct pt_solution): Split
5041 vars_contains_global into vars_contains_nonlocal,
5042 vars_contains_escaped and vars_contains_escaped_heap.
5043 * tree-ssa-structalias.c (label_visit): Expand comment.
5044 (handle_lhs_call): Adjust comment.
5045 (set_uids_in_ptset): Set the new flags appropriately.
5046 (pt_solution_set): Adjust.
5047 (pt_solution_set_var): Likewise.
5048 (pt_solution_ior_into): Likewise.
5049 (pt_solution_includes_global): Likewise.
5050 (pt_solutions_intersect_1): Optimize escaped handling.
5051 (compute_points_to_sets): Remove heap variable globalization.
5052 (ipa_escaped_pt): Adjust initializer.
5053 (pass_data_ipa_pta): Do not run TODO_update_ssa.
5054 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
5055 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
5057 2013-11-15 Richard Biener <rguenther@suse.de>
5059 * tree-loop-distribution.c (tree_loop_distribution): Make sure
5060 to distribute all stores.
5062 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5064 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
5066 2013-11-15 Joseph Myers <joseph@codesourcery.com>
5068 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
5069 * configure.ac: Determine target_header_dir earlier.
5070 (--with-glibc-version): New configure option.
5071 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
5072 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
5073 * configure: Regenerate.
5074 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
5075 native toolchains for default.
5076 (--with-glibc-version): Document.
5078 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
5080 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
5082 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
5084 * lto-streamer-in.c (input function): Call cgraph_create_node if
5085 cgraph_get_node failed.
5087 2013-11-14 Olivier Hainque <hainque@adacore.com>
5089 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
5090 defer allocation of DECL_IGNORED_P variables at toplevel unless really
5091 small. Factorize size threshold computation from the existing one.
5092 (expand_used_vars): Refine comment.
5094 2013-11-14 Cong Hou <congh@google.com>
5096 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
5097 address field as it can be obtained from dr. Rename the struct.
5098 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
5099 steps of data references during sort.
5100 (vect_prune_runtime_alias_test_list): Adjust with the change to
5101 struct dr_with_seg_len.
5102 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
5103 Adjust with the change to struct dr_with_seg_len.
5105 2013-11-14 Jeff Law <law@redhat.com>
5108 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
5109 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
5110 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
5111 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
5112 edges, then ignore it. If the statement exhibiting erroneous
5113 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
5114 then we can not optimize.
5115 (find_explicit_erroneous_behaviour): Likewise.
5117 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
5119 * gimplify-me.h: New file. Add prototypes.
5120 * gimplify.h: Don't include gimple.h.
5121 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
5122 Relocate from gimple.h.
5123 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
5124 is_gimple_sizepos): Move to gimplify.h.
5125 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
5126 (enum gsi_iterator_update): Move to gimple-iterator.h.
5127 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
5128 * gimplify-me.c: New File.
5129 (force_gimple_operand_1, force_gimple_operand,
5130 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
5131 gimple_regimplify_operands): Relocate from gimplify.c.
5132 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
5133 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
5134 gimple_regimplify_operands): Move to gimplify-me.c.
5135 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
5137 * Makefile.in (OBJS): Add gimplify-me.o
5138 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
5140 * cfgloopmanip.c: Likewise.
5141 * cgraphunit.c: Likewise.
5142 * cilk-common.c: Likewise.
5143 * fold-const.c: Likewise.
5144 * function.c: Likewise.
5145 * gimple-expr.c: Likewise.
5146 * gimple-fold.c: Likewise.
5147 * gimple-ssa-strength-reduction.c: Likewise.
5148 * gimple.c: Likewise.
5149 * graphite-clast-to-gimple.c: Likewise.
5150 * graphite-sese-to-poly.c: Likewise.
5151 * ipa-prop.c: Likewise.
5152 * ipa-split.c: Likewise.
5154 * langhooks.c: Likewise.
5155 * omp-low.c: Likewise.
5157 * stor-layout.c: Likewise.
5158 * targhooks.c: Likewise.
5159 * trans-mem.c: Likewise.
5160 * tree-affine.c: Likewise.
5161 * tree-cfg.c: Likewise.
5162 * tree-cfgcleanup.c: Likewise.
5163 * tree-complex.c: Likewise.
5164 * tree-if-conv.c: Likewise.
5165 * tree-inline.c: Likewise.
5166 * tree-loop-distribution.c: Likewise.
5167 * tree-nested.c: Likewise.
5168 * tree-parloops.c: Likewise.
5169 * tree-predcom.c: Likewise.
5170 * tree-profile.c: Likewise.
5171 * tree-scalar-evolution.c: Likewise.
5172 * tree-sra.c: Likewise.
5173 * tree-ssa-address.c: Likewise.
5174 * tree-ssa-ccp.c: Likewise.
5175 * tree-ssa-dce.c: Likewise.
5176 * tree-ssa-forwprop.c: Likewise.
5177 * tree-ssa-ifcombine.c: Likewise.
5178 * tree-ssa-loop-im.c: Likewise.
5179 * tree-ssa-loop-ivopts.c: Likewise.
5180 * tree-ssa-loop-manip.c: Likewise.
5181 * tree-ssa-loop-niter.c: Likewise.
5182 * tree-ssa-loop-prefetch.c: Likewise.
5183 * tree-ssa-loop-unswitch.c: Likewise.
5184 * tree-ssa-math-opts.c: Likewise.
5185 * tree-ssa-phiopt.c: Likewise.
5186 * tree-ssa-phiprop.c: Likewise.
5187 * tree-ssa-pre.c: Likewise.
5188 * tree-ssa-propagate.c: Likewise.
5189 * tree-ssa-reassoc.c: Likewise.
5190 * tree-ssa-sccvn.c: Likewise.
5191 * tree-ssa-strlen.c: Likewise.
5192 * tree-ssa.c: Likewise.
5193 * tree-switch-conversion.c: Likewise.
5194 * tree-tailcall.c: Likewise.
5195 * tree-vect-data-refs.c: Likewise.
5196 * tree-vect-generic.c: Likewise.
5197 * tree-vect-loop-manip.c: Likewise.
5198 * tree-vect-loop.c: Likewise.
5199 * tree-vect-patterns.c: Likewise.
5200 * tree-vect-stmts.c: Likewise.
5203 * value-prof.c: Likewise.
5204 * config/aarch64/aarch64.c: Likewise.
5205 * config/alpha/alpha.c: Likewise.
5206 * config/darwin.c: Likewise.
5207 * config/i386/i386.c: Likewise.
5208 * config/ia64/ia64.c: Likewise.
5209 * config/mep/mep.c: Likewise.
5210 * config/mips/mips.c: Likewise.
5211 * config/rs6000/rs6000.c: Likewise.
5212 * config/s390/s390.c: Likewise.
5213 * config/sh/sh.c: Likewise.
5214 * config/sparc/sparc.c: Likewise.
5215 * config/spu/spu.c: Likewise.
5216 * config/stormy16/stormy16.c: Likewise.
5217 * config/tilegx/tilegx.c: Likewise.
5218 * config/tilepro/tilepro.c: Likewise.
5219 * config/xtensa/xtensa.c: Likewise.
5221 2013-11-14 Diego Novillo <dnovillo@google.com>
5223 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
5225 2013-11-14 Diego Novillo <dnovillo@google.com>
5227 * tree.h: Include fold-const.h.
5228 (aggregate_value_p): Moved to function.h.
5229 (alloca_call_p): Moved to calls.h.
5230 (allocate_struct_function): Moved to function.h.
5231 (apply_tm_attr): Moved to attribs.h.
5232 (array_at_struct_end_p): Moved to expr.h.
5233 (array_ref_element_size): Moved to tree-dfa.h.
5234 (array_ref_low_bound): Moved to tree-dfa.h.
5235 (array_ref_up_bound): Moved to tree.h.
5236 (assemble_alias): Moved to cgraph.h.
5237 (bit_from_pos): Moved to stor-layout.h.
5238 (build_addr): Moved to tree-nested.h.
5239 (build_duplicate_type): Moved to tree-inline.h.
5240 (build_fold_addr_expr): Moved to fold-const.h.
5241 (build_fold_addr_expr_with_type): Moved to fold-const.h.
5242 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
5243 (build_fold_indirect_ref): Moved to fold-const.h.
5244 (build_fold_indirect_ref_loc): Moved to fold-const.h.
5245 (build_personality_function): Moved to tree.h.
5246 (build_range_check): Moved to fold-const.h.
5247 (build_simple_mem_ref): Moved to fold-const.h.
5248 (build_simple_mem_ref_loc): Moved to fold-const.h.
5249 (build_tm_abort_call): Moved to trans-mem.h.
5250 (byte_from_pos): Moved to stor-layout.h.
5251 (call_expr_flags): Moved to calls.h.
5252 (can_move_by_pieces): Moved to expr.h.
5253 (categorize_ctor_elements): Moved to expr.h.
5254 (change_decl_assembler_name): Moved to gcc-symtab.h.
5255 (combine_comparisons): Moved to fold-const.h.
5256 (complete_ctor_at_level_p): Moved to tree.h.
5257 (component_ref_field_offset): Moved to tree-dfa.h.
5258 (compute_builtin_object_size): Moved to tree-object-size.h.
5259 (compute_record_mode): Moved to stor-layout.h.
5260 (constant_boolean_node): Moved to fold-const.h.
5261 (constructor_static_from_elts_p): Moved to varasm.h.
5262 (cxx11_attribute_p): Moved to attribs.h.
5263 (debug_body): Moved to print-tree.h.
5264 (debug_find_tree): Moved to tree-inline.h.
5265 (debug_fold_checksum): Moved to fold-const.h.
5266 (debug_head): Moved to print-tree.h.
5267 (debug_head): Moved to print-tree.h.
5268 (debug_raw): Moved to print-tree.h.
5269 (debug_tree): Moved to print-tree.h.
5270 (debug_vec_tree): Moved to print-tree.h.
5271 (debug_verbose): Moved to print-tree.h.
5272 (debug_verbose): Moved to print-tree.h.
5273 (decl_attributes): Moved to attribs.h.
5274 (decl_binds_to_current_def_p): Moved to varasm.h.
5275 (decl_default_tls_model): Moved to varasm.h.
5276 (decl_replaceable_p): Moved to varasm.h.
5277 (div_if_zero_remainder): Moved to fold-const.h.
5278 (double_int mem_ref_offset): Moved to fold-const.h.
5279 (dump_addr): Moved to print-tree.h.
5280 (element_precision): Moved to machmode.h.
5281 (expand_dummy_function_end): Moved to function.h.
5282 (expand_function_end): Moved to function.h.
5283 (expand_function_start): Moved to function.h.
5284 (expand_label): Moved to stmt.h.
5285 (expr_first): Moved to tree-iterator.h.
5286 (expr_last): Moved to tree-iterator.h.
5287 (finalize_size_functions): Moved to stor-layout.h.
5288 (finish_builtin_struct): Moved to stor-layout.h.
5289 (finish_record_layout): Moved to stor-layout.h.
5290 (fixup_signed_type): Moved to stor-layout.h.
5291 (fixup_unsigned_type): Moved to stor-layout.h.
5292 (flags_from_decl_or_type): Moved to calls.h.
5293 (fold): Moved to fold-const.h.
5294 (fold_abs_const): Moved to fold-const.h.
5295 (fold_binary): Moved to fold-const.h.
5296 (fold_binary_loc): Moved to fold-const.h.
5297 (fold_binary_to_constant): Moved to fold-const.h.
5298 (fold_build1): Moved to fold-const.h.
5299 (fold_build1_initializer_loc): Moved to fold-const.h.
5300 (fold_build1_loc): Moved to fold-const.h.
5301 (fold_build1_stat_loc): Moved to fold-const.h.
5302 (fold_build2): Moved to fold-const.h.
5303 (fold_build2_initializer_loc): Moved to fold-const.h.
5304 (fold_build2_loc): Moved to fold-const.h.
5305 (fold_build2_stat_loc): Moved to fold-const.h.
5306 (fold_build3): Moved to fold-const.h.
5307 (fold_build3_loc): Moved to fold-const.h.
5308 (fold_build3_stat_loc): Moved to fold-const.h.
5309 (fold_build_call_array): Moved to fold-const.h.
5310 (fold_build_call_array_initializer): Moved to fold-const.h.
5311 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
5312 (fold_build_call_array_loc): Moved to fold-const.h.
5313 (fold_build_cleanup_point_expr): Moved to fold-const.h.
5314 (fold_convert): Moved to fold-const.h.
5315 (fold_convert_loc): Moved to fold-const.h.
5316 (fold_convertible_p): Moved to fold-const.h.
5317 (fold_defer_overflow_warnings): Moved to fold-const.h.
5318 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
5319 (fold_fma): Moved to fold-const.h.
5320 (fold_ignored_result): Moved to fold-const.h.
5321 (fold_indirect_ref): Moved to fold-const.h.
5322 (fold_indirect_ref_1): Moved to fold-const.h.
5323 (fold_indirect_ref_loc): Moved to fold-const.h.
5324 (fold_read_from_constant_string): Moved to fold-const.h.
5325 (fold_real_zero_addition_p): Moved to fold-const.h.
5326 (fold_single_bit_test): Moved to fold-const.h.
5327 (fold_strip_sign_ops): Moved to fold-const.h.
5328 (fold_ternary): Moved to fold-const.h.
5329 (fold_ternary_loc): Moved to fold-const.h.
5330 (fold_unary): Moved to tree-data-ref.h.
5331 (fold_unary_ignore_overflow): Moved to fold-const.h.
5332 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
5333 (fold_unary_loc): Moved to fold-const.h.
5334 (fold_unary_to_constant): Moved to fold-const.h.
5335 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
5336 (fold_undefer_overflow_warnings): Moved to fold-const.h.
5337 (folding_initializer): Moved to fold-const.h.
5338 (free_temp_slots): Moved to function.h.
5339 (generate_setjmp_warnings): Moved to function.h.
5340 (get_attribute_name): Moved to attribs.h.
5341 (get_identifier): Moved to stringpool.h.
5342 (get_identifier_with_length): Moved to stringpool.h.
5343 (get_inner_reference): Moved to tree.h.
5344 (gimple_alloca_call_p): Moved to calls.h.
5345 (gimplify_parameters): Moved to function.h.
5346 (highest_pow2_factor): Moved to expr.h.
5347 (indent_to): Moved to print-tree.h.
5348 (init_attributes): Moved to attribs.h.
5349 (init_dummy_function_start): Moved to function.h.
5350 (init_function_start): Moved to function.h.
5351 (init_inline_once): Moved to tree-inline.h.
5352 (init_object_sizes): Moved to tree-object-size.h.
5353 (init_temp_slots): Moved to function.h.
5354 (init_tree_optimization_optabs): Moved to optabs.h.
5355 (initialize_sizetypes): Moved to stor-layout.h.
5356 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
5357 (initializer_constant_valid_p): Moved to varasm.h.
5358 (int_const_binop): Moved to fold-const.h.
5359 (internal_reference_types): Moved to stor-layout.h.
5360 (invert_tree_comparison): Moved to fold-const.h.
5361 (invert_truthvalue): Moved to fold-const.h.
5362 (invert_truthvalue_loc): Moved to fold-const.h.
5363 (is_tm_ending_fndecl): Moved to trans-mem.h.
5364 (is_tm_may_cancel_outer): Moved to trans-mem.h.
5365 (is_tm_pure): Moved to trans-mem.h.
5366 (is_tm_safe): Moved to trans-mem.h.
5367 (layout_decl): Moved to stor-layout.h.
5368 (layout_type): Moved to stor-layout.h.
5369 (lookup_attribute_spec): Moved to attribs.h.
5370 (make_accum_type): Moved to stor-layout.h.
5371 (make_decl_one_only): Moved to varasm.h.
5372 (make_decl_rtl): Moved to tree.h.
5373 (make_decl_rtl_for_debug): Moved to varasm.h.
5374 (make_fract_type): Moved to stor-layout.h.
5375 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
5376 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
5377 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
5378 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
5379 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
5380 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
5381 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
5382 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
5383 (make_range): Moved to fold-const.h.
5384 (make_range_step): Moved to fold-const.h.
5385 (make_sat_signed_accum_type): Moved to stor-layout.h.
5386 (make_sat_signed_fract_type): Moved to stor-layout.h.
5387 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
5388 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
5389 (make_signed_accum_type): Moved to stor-layout.h.
5390 (make_signed_fract_type): Moved to stor-layout.h.
5391 (make_signed_type): Moved to stor-layout.h.
5392 (make_unsigned_accum_type): Moved to stor-layout.h.
5393 (make_unsigned_fract_type): Moved to stor-layout.h.
5394 (make_unsigned_type): Moved to stor-layout.h.
5395 (mark_decl_referenced): Moved to varasm.h.
5396 (mark_referenced): Moved to varasm.h.
5397 (may_negate_without_overflow_p): Moved to fold-const.h.
5398 (maybe_get_identifier): Moved to stringpool.h.
5399 (merge_ranges): Moved to fold-const.h.
5400 (merge_weak): Moved to varasm.h.
5401 (mode_for_size_tree): Moved to stor-layout.h.
5402 (multiple_of_p): Moved to fold-const.h.
5403 (must_pass_in_stack_var_size): Moved to calls.h.
5404 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
5405 (native_encode_expr): Moved to fold-const.h.
5406 (native_interpret_expr): Moved to fold-const.h.
5407 (non_lvalue): Moved to fold-const.h.
5408 (non_lvalue_loc): Moved to fold-const.h.
5409 (normalize_offset): Moved to stor-layout.h.
5410 (normalize_rli): Moved to stor-layout.h.
5411 (notice_global_symbol): Moved to varasm.h.
5412 (omit_one_operand): Moved to fold-const.h.
5413 (omit_one_operand_loc): Moved to fold-const.h.
5414 (omit_two_operands): Moved to fold-const.h.
5415 (omit_two_operands_loc): Moved to fold-const.h.
5416 (operand_equal_p): Moved to tree-data-ref.h.
5417 (parse_input_constraint): Moved to stmt.h.
5418 (parse_output_constraint): Moved to stmt.h.
5419 (place_field): Moved to stor-layout.h.
5420 (pop_function_context): Moved to function.h.
5421 (pop_temp_slots): Moved to function.h.
5422 (pos_from_bit): Moved to stor-layout.h.
5423 (preserve_temp_slots): Moved to function.h.
5424 (print_node): Moved to print-tree.h.
5425 (print_node_brief): Moved to print-tree.h.
5426 (print_rtl): Moved to rtl.h.
5427 (process_pending_assemble_externals): Moved to varasm.h.
5428 (ptr_difference_const): Moved to fold-const.h.
5429 (push_function_context): Moved to function.h.
5430 (push_struct_function): Moved to function.h.
5431 (push_temp_slots): Moved to function.h.
5432 (record_tm_replacement): Moved to trans-mem.h.
5433 (relayout_decl): Moved to stor-layout.h.
5434 (resolve_asm_operand_names): Moved to stmt.h.
5435 (resolve_unique_section): Moved to varasm.h.
5436 (rli_size_so_far): Moved to stor-layout.h.
5437 (rli_size_unit_so_far): Moved to stor-layout.h.
5438 (round_down): Moved to fold-const.h.
5439 (round_down_loc): Moved to fold-const.h.
5440 (round_up): Moved to fold-const.h.
5441 (round_up_loc): Moved to fold-const.h.
5442 (set_decl_incoming_rtl): Moved to emit-rtl.h.
5443 (set_decl_rtl): Moved to tree.h.
5444 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
5445 (set_user_assembler_name): Moved to varasm.h.
5446 (setjmp_call_p): Moved to calls.h.
5447 (size_binop): Moved to fold-const.h.
5448 (size_binop_loc): Moved to fold-const.h.
5449 (size_diffop): Moved to fold-const.h.
5450 (size_diffop_loc): Moved to fold-const.h.
5451 (size_int_kind): Moved to fold-const.h.
5452 (stack_protect_epilogue): Moved to function.h.
5453 (start_record_layout): Moved to stor-layout.h.
5454 (supports_one_only): Moved to varasm.h.
5455 (swap_tree_comparison): Moved to fold-const.h.
5456 (tm_malloc_replacement): Moved to trans-mem.h.
5457 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
5458 (tree build_invariant_address): Moved to fold-const.h.
5459 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
5460 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
5461 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
5462 (tree_expr_nonnegative_p): Moved to fold-const.h.
5463 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
5464 (tree_output_constant_def): Moved to varasm.h.
5465 (tree_overlaps_hard_reg_set): Moved to stmt.h.
5466 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
5467 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
5468 (tree_swap_operands_p): Moved to fold-const.h.
5469 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
5470 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
5471 (update_alignment_for_field): Moved to stor-layout.h.
5472 (use_register_for_decl): Moved to function.h.
5473 (variable_size): Moved to rtl.h.
5474 (vector_type_mode): Moved to stor-layout.h.
5475 * cgraph.h: Corresponding changes.
5476 * emit-rtl.h: Corresponding changes.
5477 * expr.h: Corresponding changes.
5478 * function.h: Corresponding changes.
5479 * optabs.h: Corresponding changes.
5480 * trans-mem.h: Corresponding changes.
5481 Protect against multiple inclusion.
5482 * tree-inline.h: Corresponding changes.
5483 * tree-iterator.h: Corresponding changes.
5484 * tree-dfa.h: Include expr.h.
5485 * tree-ssanames.h: Include stringpool.h.
5486 * attribs.h: New file.
5487 * calls.h: New file.
5488 * fold-const.h: New file.
5489 * gcc-symtab.h: New file.
5490 * print-rtl.h: New file.
5491 * print-tree.h: New file.
5493 * stor-layout.h: New file.
5494 * strinpool.h: New file.
5495 * tree-nested.h: New file
5496 * tree-object-size.h: New file.
5497 * varasm.h: New file.
5499 2013-11-14 Diego Novillo <dnovillo@google.com>
5501 * alias.c: Include varasm.h.
5503 * asan.c: Include calls.h.
5504 Include stor-layout.h.
5506 * attribs.c: Include stringpool.h.
5508 Include stor-layout.h.
5509 * builtins.c: Include stringpool.h.
5510 Include stor-layout.h.
5513 Include tree-object-size.h.
5514 * calls.c: Include stor-layout.h.
5516 Include stringpool.h.
5518 * cfgexpand.c: Include stringpool.h.
5520 Include stor-layout.h.
5522 Include print-tree.h.
5523 * cgraph.c: Include varasm.h.
5525 Include print-tree.h.
5526 * cgraphclones.c: Include stringpool.h.
5529 Move inclusion of rtl.h earlier in the file.
5530 * cgraphunit.c: Include varasm.h.
5531 Include stor-layout.h.
5532 Include stringpool.h.
5533 * cilk-common.c: Include stringpool.h.
5534 Include stor-layout.h.
5535 * combine.c: Include stor-layout.h.
5536 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
5537 Include stringpool.h.
5539 * config/aarch64/aarch64.c: Include stringpool.h.
5540 Include stor-layout.h.
5543 * config/alpha/alpha.c: Include stor-layout.h.
5546 * config/arc/arc.c: Include varasm.h.
5547 Include stor-layout.h.
5548 Include stringpool.h.
5550 * config/arm/arm.c: Include stringpool.h.
5551 Include stor-layout.h.
5554 * config/avr/avr-c.c: Include stor-layout.h.
5555 * config/avr/avr-log.c: Include print-tree.h.
5556 * config/avr/avr.c: Include print-tree.h.
5558 Include stor-layout.h.
5559 Include stringpool.h.
5560 * config/bfin/bfin.c: Include varasm.h.
5562 * config/c6x/c6x.c: Include stor-layout.h.
5565 Include stringpool.h.
5566 * config/cr16/cr16.c: Include stor-layout.h.
5568 * config/cris/cris.c: Include varasm.h.
5569 Include stor-layout.h.
5572 * config/darwin.c: Include stringpool.h.
5574 Include stor-layout.h.
5575 * config/epiphany/epiphany.c: Include stor-layout.h.
5578 Include stringpool.h.
5579 * config/fr30/fr30.c: Include stor-layout.h.
5581 * config/frv/frv.c: Include varasm.h.
5582 Include stor-layout.h.
5583 Include stringpool.h.
5584 * config/h8300/h8300.c: Include stor-layout.h.
5587 Include stringpool.h.
5588 * config/i386/i386.c: Include stringpool.h.
5591 Include stor-layout.h.
5593 * config/i386/winnt-cxx.c: Include stringpool.h.
5595 * config/i386/winnt.c: Include stringpool.h.
5597 * config/ia64/ia64-c.c: Include stringpool.h.
5598 * config/ia64/ia64.c: Include stringpool.h.
5599 Include stor-layout.h.
5602 * config/iq2000/iq2000.c: Include stor-layout.h.
5605 * config/lm32/lm32.c: Include calls.h.
5606 * config/m32c/m32c.c: Include stor-layout.h.
5609 * config/m32r/m32r.c: Include stor-layout.h.
5611 Include stringpool.h.
5613 * config/m68k/m68k.c: Include calls.h.
5614 Include stor-layout.h.
5616 * config/mcore/mcore.c: Include stor-layout.h.
5618 Include stringpool.h.
5620 * config/mep/mep.c: Include varasm.h.
5622 Include stringpool.h.
5623 Include stor-layout.h.
5624 * config/microblaze/microblaze.c: Include varasm.h.
5625 Include stor-layout.h.
5627 * config/mips/mips.c: Include varasm.h.
5628 Include stringpool.h.
5629 Include stor-layout.h.
5631 * config/mmix/mmix.c: Include varasm.h.
5632 Include stor-layout.h.
5634 * config/mn10300/mn10300.c: Include stor-layout.h.
5637 * config/moxie/moxie.c: Include stor-layout.h.
5640 * config/msp430/msp430.c: Include stor-layout.h.
5642 * config/nds32/nds32.c: Include stor-layout.h.
5645 * config/pa/pa.c: Include stor-layout.h.
5646 Include stringpool.h.
5649 * config/pdp11/pdp11.c: Include stor-layout.h.
5652 * config/picochip/picochip.c: Include calls.h.
5653 Include stor-layout.h.
5654 Include stringpool.h.
5656 * config/rl78/rl78.c: Include varasm.h.
5657 Include stor-layout.h.
5659 * config/rs6000/rs6000-c.c: Include stor-layout.h.
5660 Include stringpool.h.
5661 * config/rs6000/rs6000.c: Include stringpool.h.
5662 Include stor-layout.h.
5664 Include print-tree.h.
5666 * config/rx/rx.c: Include varasm.h.
5667 Include stor-layout.h.
5669 * config/s390/s390.c: Include print-tree.h.
5670 Include stringpool.h.
5671 Include stor-layout.h.
5674 * config/score/score.c: Include stringpool.h.
5677 Include stor-layout.h.
5678 * config/sh/sh-c.c: Include stringpool.h.
5679 Include attribs.h.h.
5680 * config/sh/sh.c: Include stringpool.h.
5681 Include stor-layout.h.
5684 * config/sol2-c.c: Include stringpool.h.
5686 * config/sol2-cxx.c: Include stringpool.h.
5687 * config/sol2.c: Include stringpool.h.
5689 * config/sparc/sparc.c: Include stringpool.h.
5690 Include stor-layout.h.
5693 * config/spu/spu-c.c: Include stringpool.h.
5694 * config/spu/spu.c: Include stringpool.h.
5695 Include stor-layout.h.
5698 * config/stormy16/stormy16.c: Include stringpool.h.
5699 Include stor-layout.h.
5702 * config/tilegx/tilegx.c: Include stringpool.h.
5703 Include stor-layout.h.
5706 * config/tilepro/tilepro.c: Include stringpool.h.
5707 Include stor-layout.h.
5710 * config/v850/v850-c.c: Include stringpool.h.
5712 * config/v850/v850.c: Include stringpool.h.
5713 Include stor-layout.h.
5716 * config/vax/vax.c: Include calls.h.
5718 * config/vms/vms.c: Include stringpool.h.
5719 * config/vxworks.c: Include stringpool.h.
5720 * config/xtensa/xtensa.c: Include stringpool.h.
5721 Include stor-layout.h.
5724 * convert.c: Include stor-layout.h.
5725 * coverage.c: Include stringpool.h.
5726 Include stor-layout.h.
5727 * dbxout.c: Include varasm.h.
5728 Include stor-layout.h.
5729 * dojump.c: Include stor-layout.h.
5730 * dse.c: Include stor-layout.h.
5731 * dwarf2asm.c: Include stringpool.h.
5733 * dwarf2cfi.c: Include stor-layout.h.
5734 * dwarf2out.c: Include rtl.h.
5735 Include stringpool.h.
5736 Include stor-layout.h.
5740 Move inclusion of rtl.h earlier in the file.
5741 * emit-rtl.c: Include varasm.h.
5742 * except.c: Include stringpool.h.
5743 Include stor-layout.h.
5744 * explow.c: Include stor-layout.h.
5745 * expmed.c: Include stor-layout.h.
5746 * expr.c: Include stringpool.h.
5747 Include stor-layout.h.
5750 * final.c: Include varasm.h.
5751 * fold-const.c: Include stor-layout.h.
5753 Include tree-iterator.h.
5754 * function.c: Include stor-layout.h.
5756 Include stringpool.h.
5757 * genattrtab.c (write_header): Emit includes for varasm.h,
5758 stor-layout.h and calls.h.
5759 * genautomata.c (main): Likewise.
5760 * genemit.c: Likewise.
5761 * genopinit.c: Likewise.
5762 * genoutput.c (output_prologue): Likewise.
5763 * genpeep.c: Likewise.
5764 * genpreds.c (write_insn_preds_c): Likewise.
5765 * gengtype.c (open_base_files): Add stringpool.h.
5766 * gimple-expr.c: Include stringpool.h.
5767 Include stor-layout.h.
5768 * gimple-fold.c: Include stringpool.h.
5771 Include stor-layout.h.
5772 * gimple-low.c: Include tree-nested.h.
5774 * gimple-pretty-print.c: Include stringpool.h.
5775 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
5777 * gimple-walk.c: Include stmt.h.
5778 * gimple.c: Include calls.h.
5780 Include stor-layout.h.
5781 * gimplify.c: Include stringpool.h.
5784 Include stor-layout.h.
5786 Include print-tree.h.
5788 * gimplify-me.c: Include stmt.h
5789 Include stor-layout.h
5790 * internal-fn.c: Include stor-layout.h.
5791 * ipa-devirt.c: Include print-tree.h.
5793 * ipa-inline-analysis.c: Include stor-layout.h.
5794 Include stringpool.h.
5795 Include print-tree.h.
5796 * ipa-inline.c: Include trans-mem.h.
5798 * ipa-prop.c: Include expr.h.
5799 Include stor-layout.h.
5800 Include print-tree.h.
5801 * ipa-pure-const.c: Include print-tree.h.
5803 * ipa-reference.c: Include calls.h.
5804 * ipa-split.c: Include stringpool.h.
5807 * ipa.c: Include calls.h.
5808 Include stringpool.h.
5809 * langhooks.c: Include stringpool.h.
5811 * lto-cgraph.c: Include stringpool.h.
5812 * lto-streamer-in.c: Include stringpool.h.
5813 * lto-streamer-out.c: Include stor-layout.h.
5814 Include stringpool.h.
5815 * omp-low.c: Include stringpool.h.
5816 Include stor-layout.h.
5818 * optabs.c: Include stor-layout.h.
5819 Include stringpool.h.
5821 * passes.c: Include varasm.h.
5822 * predict.c: Include calls.h.
5823 * print-rtl.c: Include print-tree.h.
5824 * print-tree.c: Include varasm.h.
5825 Include print-rtl.h.
5826 Include stor-layout.h.
5827 * realmpfr.c: Include stor-layout.h.
5828 * reg-stack.c: Include varasm.h.
5829 * sdbout.c: Include varasm.h.
5830 Include stor-layout.h.
5831 * simplify-rtx.c: Include varasm.h.
5832 * stmt.c: Include varasm.h.
5833 Include stor-layout.h.
5834 * stor-layout.c: Include stor-layout.h.
5835 Include stringpool.h.
5837 Include print-tree.h.
5838 * symtab.c: Include rtl.h.
5839 Include print-tree.h.
5843 * targhooks.c: Include stor-layout.h.
5845 * toplev.c: Include varasm.h.
5846 Include tree-inline.h.
5847 * trans-mem.c: Include calls.h.
5851 * tree-affine.c: Include expr.h.
5852 * tree-browser.c: Include print-tree.h.
5853 * tree-call-cdce.c: Include stor-layout.h.
5854 * tree-cfg.c: Include trans-mem.h.
5855 Include stor-layout.h.
5856 Include print-tree.h.
5857 * tree-complex.c: Include stor-layout.h.
5858 * tree-data-ref.c: Include expr.h.
5859 * tree-dfa.c: Include stor-layout.h.
5860 * tree-eh.c: Include expr.h.
5862 * tree-emutls.c: Include stor-layout.h.
5864 * tree-if-conv.c: Include stor-layout.h.
5865 * tree-inline.c: Include stor-layout.h.
5867 * tree-loop-distribution.c: Include stor-layout.h.
5868 * tree-nested.c: Include stringpool.h.
5869 Include stor-layout.h.
5870 * tree-object-size.c: Include tree-object-size.h.
5871 * tree-outof-ssa.c: Include stor-layout.h.
5872 * tree-parloops.c: Include stor-layout.h.
5873 Include tree-nested.h.
5874 * tree-pretty-print.c: Include stor-layout.h.
5876 * tree-profile.c: Include varasm.h.
5877 Include tree-nested.h.
5878 * tree-scalar-evolution.c: Include expr.h.
5879 * tree-sra.c: Include stor-layout.h.
5880 * tree-ssa-address.c: Include stor-layout.h.
5881 * tree-ssa-ccp.c: Include stor-layout.h.
5882 * tree-ssa-dce.c: Include calls.h.
5883 * tree-ssa-dom.c: Include stor-layout.h.
5884 * tree-ssa-forwprop.c: Include stor-layout.h.
5885 * tree-ssa-ifcombine.c: Include stor-layout.h.
5886 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
5887 * tree-ssa-loop-niter.c: Include calls.h.
5889 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
5890 * tree-ssa-math-opts.c: Include stor-layout.h.
5891 * tree-ssa-operands.c: Include stmt.h.
5892 Include print-tree.h.
5893 * tree-ssa-phiopt.c: Include stor-layout.h.
5894 * tree-ssa-reassoc.c: Include stor-layout.h.
5895 * tree-ssa-sccvn.c: Include stor-layout.h.
5896 * tree-ssa-sink.c: Include stor-layout.h.
5897 * tree-ssa-strlen.c: Include stor-layout.h.
5898 * tree-ssa-structalias.c: Include stor-layout.h.
5900 * tree-ssa-tail-merge.c: Include stor-layout.h.
5901 Include trans-mem.h.
5902 * tree-ssa-uncprop.c: Include stor-layout.h.
5903 * tree-ssa.c: Include stor-layout.h.
5904 * tree-ssanames.c: Include stor-layout.h.
5905 * tree-streamer-in.c: Include stringpool.h.
5906 * tree-streamer-out.c: Include stor-layout.h.
5907 * tree-switch-conversion.c: Include varasm.h.
5908 Include stor-layout.h.
5909 * tree-tailcall.c: Include stor-layout.h.
5910 * tree-vect-data-refs.c: Include stor-layout.h.
5911 * tree-vect-generic.c: Include stor-layout.h.
5912 * tree-vect-loop.c: Include stor-layout.h.
5913 * tree-vect-patterns.c: Include stor-layout.h.
5914 * tree-vect-slp.c: Include stor-layout.h.
5915 * tree-vect-stmts.c: Include stor-layout.h.
5916 * tree-vectorizer.c: Include stor-layout.h.
5917 * tree-vrp.c: Include stor-layout.h.
5919 * tree.c: Include stor-layout.h.
5923 * tsan.c: Include expr.h.
5924 * ubsan.c: Include stor-layout.h.
5925 Include stringpool.h.
5926 * value-prof.c: Include tree-nested.h.
5928 * var-tracking.c: Include varasm.h.
5929 Include stor-layout.h.
5930 * varasm.c: Include stor-layout.h.
5931 Include stringpool.h.
5932 Include gcc-symtab.h.
5934 * varpool.c: Include varasm.h.
5935 * vmsdbgout.c: Include varasm.h.
5936 * xcoffout.c: Include varasm.h.
5938 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
5940 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
5943 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5945 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
5947 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5948 Alan Modra <amodra@gmail.com>
5950 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
5951 (RS6000_SAVE_TOC): Remove.
5952 (RS6000_TOC_SAVE_SLOT): New macro.
5953 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
5954 (rs6000_parm_start): Use it.
5955 (rs6000_function_arg_advance_1): Likewise.
5956 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
5957 (rs6000_emit_epilogue): Likewise.
5958 (rs6000_call_aix): Likewise.
5959 (rs6000_output_function_prologue): Do not save/restore r11
5960 around calling _mcount for ABI_ELFv2.
5962 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5963 Alan Modra <amodra@gmail.com>
5965 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
5967 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
5968 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
5969 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
5970 (rs6000_function_parms_need_stack): Likewise.
5971 (rs6000_reg_parm_stack_space): Likewise.
5972 (rs6000_function_arg): Do not replace BLKmode by Pmode when
5973 returning a register argument.
5975 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5976 Michael Gschwind <mkg@us.ibm.com>
5978 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
5979 (ALTIVEC_ARG_MAX_RETURN): Likewise.
5980 (FUNCTION_VALUE_REGNO_P): Use them.
5981 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
5982 (rs6000_return_in_msb): New function.
5983 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
5984 Handle aggregates of up to 16 bytes for ELFv2.
5985 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
5987 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5988 Michael Gschwind <mkg@us.ibm.com>
5990 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5991 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5992 (rs6000_discover_homogeneous_aggregate): Likewise.
5993 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5994 (rs6000_function_arg_advance_1): Likewise.
5995 (rs6000_function_arg): Likewise.
5996 (rs6000_arg_partial_bytes): Likewise.
5997 (rs6000_psave_function_arg): Handle BLKmode arguments.
5999 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6000 Michael Gschwind <mkg@us.ibm.com>
6002 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
6003 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
6004 (rs6000_discover_homogeneous_aggregate): Likewise.
6005 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
6006 (rs6000_function_arg_advance_1): Likewise.
6007 (rs6000_function_arg): Likewise.
6008 (rs6000_arg_partial_bytes): Likewise.
6009 (rs6000_psave_function_arg): Handle BLKmode arguments.
6011 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6013 * config/rs6000/rs6000.c (machine_function): New member
6015 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
6016 (rs6000_output_mi_thunk): Set r2_setup_needed.
6017 (rs6000_output_function_prologue): Output global entry point
6018 prologue and local entry point marker if needed for ABI_ELFv2.
6019 Output -mprofile-kernel code here.
6020 (output_function_profiler): Do not output -mprofile-kernel
6021 code here; moved to rs6000_output_function_prologue.
6022 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
6024 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
6025 (rs6000_output_function_entry): Likewise.
6026 (rs6000_assemble_integer): Likewise.
6027 (rs6000_elf_encode_section_info): Likewise.
6028 (rs6000_elf_declare_function_name): Do not create dot symbols
6029 or .opd section for ABI_ELFv2.
6031 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
6032 (rs6000_trampoline_init): Likewise.
6033 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
6035 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
6036 for function descriptors in ABI_ELFv2.
6038 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
6039 on ABI_AIX only, not ABI_ELFv2.
6040 ("*call_value_indirect_aix<mode>"): Likewise.
6041 ("*call_indirect_elfv2<mode>"): New pattern.
6042 ("*call_value_indirect_elfv2<mode>"): Likewise.
6044 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
6045 check for function descriptors in ABI_ELFv2.
6046 ("current_file_function_operand"): Likewise.
6048 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
6050 (FUNC_NAME): Define ELFv2 variant.
6051 (JUMP_TARGET): Likewise.
6052 (FUNC_START): Likewise.
6053 (HIDDEN_FUNC): Likewise.
6054 (FUNC_END): Likeiwse.
6056 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6058 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
6059 and --with-abi=elfv2.
6060 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
6061 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
6062 (mabi=elfv2): Likewise.
6063 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
6064 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
6066 (ELFv2_ABI_CHECK): New macro.
6067 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
6068 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
6069 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
6070 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
6071 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
6073 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
6074 (debug_stack_info): Likewise.
6075 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
6076 (rs6000_legitimize_tls_address): Likewise.
6077 (rs6000_conditional_register_usage): Likewise.
6078 (rs6000_emit_move): Likewise.
6079 (init_cumulative_args): Likewise.
6080 (rs6000_function_arg_advance_1): Likewise.
6081 (rs6000_function_arg): Likewise.
6082 (rs6000_arg_partial_bytes): Likewise.
6083 (rs6000_output_function_entry): Likewise.
6084 (rs6000_assemble_integer): Likewise.
6085 (rs6000_savres_strategy): Likewise.
6086 (rs6000_stack_info): Likewise.
6087 (rs6000_function_ok_for_sibcall): Likewise.
6088 (rs6000_emit_load_toc_table): Likewise.
6089 (rs6000_savres_routine_name): Likewise.
6090 (ptr_regno_for_savres): Likewise.
6091 (rs6000_emit_prologue): Likewise.
6092 (rs6000_emit_epilogue): Likewise.
6093 (rs6000_output_function_epilogue): Likewise.
6094 (output_profile_hook): Likewise.
6095 (output_function_profiler): Likewise.
6096 (rs6000_trampoline_size): Likewise.
6097 (rs6000_trampoline_init): Likewise.
6098 (rs6000_elf_output_toc_section_asm_op): Likewise.
6099 (rs6000_elf_encode_section_info): Likewise.
6100 (rs6000_elf_reloc_rw_mask): Likewise.
6101 (rs6000_elf_declare_function_name): Likewise.
6102 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
6103 except that rs6000_compat_align_parm is always assumed false.
6104 (rs6000_gimplify_va_arg): Likewise.
6105 (rs6000_call_aix): Update comment.
6106 (rs6000_sibcall_aix): Likewise.
6107 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
6108 Treat ABI_ELFv2 the same as ABI_AIX.
6109 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
6110 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
6111 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
6112 ("load_toc_aix_si"): Likewise.
6113 ("load_toc_aix_di"): Likewise.
6115 ("call_value"): Likewise.
6116 ("*call_local_aix<mode>"): Likewise.
6117 ("*call_value_local_aix<mode>"): Likewise.
6118 ("*call_nonlocal_aix<mode>"): Likewise.
6119 ("*call_value_nonlocal_aix<mode>"): Likewise.
6120 ("*call_indirect_aix<mode>"): Likewise.
6121 ("*call_value_indirect_aix<mode>"): Likewise.
6122 ("sibcall"): Likewise.
6123 ("sibcall_value"): Likewise.
6124 ("*sibcall_aix<mode>"): Likewise.
6125 ("*sibcall_value_aix<mode>"): Likewise.
6126 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
6127 ("current_file_function_operand"): Likewise.
6129 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6131 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
6132 by making use of the fact that for vector / floating point arguments
6133 passed both in VRs/FPRs and in the fixed parameter area, the partial
6134 bytes mechanism is in fact not used.
6136 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6138 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
6139 (rs6000_finish_function_arg): Likewise.
6140 (rs6000_function_arg): Use rs6000_psave_function_arg and
6141 rs6000_finish_function_arg to handle both vector and floating
6142 point arguments that are also passed in GPRs / the stack.
6144 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6146 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
6147 (USE_ALTIVEC_FOR_ARG_P): Likewise.
6148 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
6149 (rs6000_function_arg_advance_1):Likewise.
6150 (rs6000_darwin64_record_arg_recurse): Likewise.
6151 (rs6000_function_arg): Likewise.
6152 (rs6000_arg_partial_bytes): Likewise.
6154 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6156 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
6157 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
6158 (rs6000_savres_strategy): Likewise.
6159 (rs6000_return_addr): Likewise.
6160 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
6161 testing for ABI_V4 (since ABI_DARWIN is impossible here).
6162 (rs6000_emit_prologue): Likewise.
6163 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
6164 (rs6000_elf_declare_function_name): Remove duplicated test.
6165 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
6166 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
6167 ("load_toc_v4_PIC_1_normal"): Likewise.
6168 ("load_toc_v4_PIC_1_476"): Likewise.
6169 ("load_toc_v4_PIC_1b"): Likewise.
6170 ("load_toc_v4_PIC_1b_normal"): Likewise.
6171 ("load_toc_v4_PIC_1b_476"): Likewise.
6172 ("load_toc_v4_PIC_2"): Likewise.
6173 ("load_toc_v4_PIC_3b"): Likewise.
6174 ("load_toc_v4_PIC_3c"): Likewise.
6175 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
6176 (RS6000_SAVE_AREA): Likewise.
6177 (FP_ARG_MAX_REG): Likewise.
6178 (RETURN_ADDRESS_OFFSET): Likewise.
6179 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
6181 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
6182 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
6184 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6186 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
6187 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
6188 Create call insn directly instead of via various gen_... routines.
6189 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
6190 (rs6000_sibcall_aix): New function.
6191 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
6192 (TOC_SAVE_OFFSET_64BIT): Likewise.
6193 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
6194 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
6195 (AIX_FUNC_DESC_SC_32BIT): Likewise.
6196 (AIX_FUNC_DESC_SC_64BIT): Likewise.
6197 ("call" expander): Call rs6000_call_aix.
6198 ("call_value" expander): Likewise.
6199 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
6200 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
6201 ("*call_indirect_aix<mode>"): ... by this insn pattern.
6202 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
6203 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
6204 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
6205 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
6206 ("*call_nonlocal_aix<mode>"): ... this pattern.
6207 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
6208 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
6209 ("*call_local_aix<mode>"): New insn pattern.
6210 ("*call_value_local_aix<mode>"): Likewise.
6211 ("sibcall" expander): Call rs6000_sibcall_aix.
6212 ("sibcall_value" expander): Likewise. Move earlier in file.
6213 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
6214 ("*sibcall_aix<mode>"): ... this pattern.
6215 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
6216 ("*sibcall_value_aix<mode>"): ... this pattern.
6217 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
6218 (rs6000_call_aix): Add prototype.
6219 (rs6000_sibcall_aix): Likewise.
6221 2013-11-14 Jakub Jelinek <jakub@redhat.com>
6224 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
6225 isn't confused by the artificial decl.
6227 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6229 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
6230 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
6231 Instead, add USEs of all modified call-saved CR fields to the
6232 insn storing the result to the stack slot, and provide an
6233 appropriate REG_FRAME_RELATED_EXPR for that insn.
6234 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
6235 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
6237 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6238 Alan Modra <amodra@gmail.com>
6240 * function.c (assign_parms): Use all.reg_parm_stack_space instead
6241 of re-evaluating REG_PARM_STACK_SPACE target macro.
6242 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
6243 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
6244 (assign_parm_find_entry_rtl): Update call.
6245 * calls.c (initialize_argument_information): Update call.
6246 (emit_library_call_value_1): Likewise.
6247 * expr.h (locate_and_pad_parm): Update prototype.
6249 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6251 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
6254 2013-11-14 DJ Delorie <dj@redhat.com>
6256 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
6259 2013-11-14 Jeff Law <law@redhat.com>
6261 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
6262 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
6264 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
6266 * doc/invoke.texi: Update documentation for AArch64's -mcpu
6269 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
6271 * config/aarch64/aarch64-cores.def (example-1): Remove.
6272 (example-2): Likewise.
6273 * config/aarch64/aarch64-tune.md: Regenerate.
6274 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
6275 (generic_sched): Remove "large", "small".
6276 * config/aarch64/large.md: Delete.
6277 * config/aarch64/small.md: Delete.
6279 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
6281 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
6282 * config/aarch64/aarch64-tune.md: Regenerate.
6283 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
6284 (generic_sched): "no" if we are tuning for cortexa15.
6285 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
6288 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
6290 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
6291 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
6292 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
6293 (all_cores): Use cortexa53 when tuning for "generic".
6294 (aarch64_override_options): Fix comment.
6295 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
6296 * config/aarch64/aarch64-generic.md: Delete.
6298 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
6300 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
6302 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6304 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
6305 (generic_rtx_cost_table): Remove.
6306 (aarch64_rtx_costs): Use fields from cpu_cost_table.
6307 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
6309 (cpu_rtx_cost_table): Remove.
6311 2013-11-14 Julian Brown <julian@codesourcery.com>
6312 Joey Ye <joey.ye@arm.com>
6314 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
6315 (arm_v7m_tune): New.
6316 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
6317 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
6318 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
6319 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
6321 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
6324 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
6327 2013-11-14 Jakub Jelinek <jakub@redhat.com>
6328 Uros Bizjak <ubizjak@gmail.com>
6331 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
6332 operands[2] satisfies_constraint_Z that might have bit 31 set.
6334 2013-11-13 Jeff Law <law@redhat.com>
6336 PR tree-optimization/59102
6337 * gimple-ssa-isolate-paths.c
6338 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
6339 gimple assignment before looking at gimple_assign_lhs.
6341 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
6343 * ira.c: Add comment about threads at the top of file.
6345 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
6347 * ira-color.c (coalesce_allocnos): Don't allocate and free
6350 2013-11-14 Tom de Vries <tom@codesourcery.com>
6352 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
6353 equality for GIMPLE_ASSIGN.
6355 2013-11-14 Tom de Vries <tom@codesourcery.com>
6357 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
6359 (gimple_equal_p): ... here.
6361 2013-11-14 Tom de Vries <tom@codesourcery.com>
6363 * trans-mem.c (is_tm_ending): New function.
6364 * gimple.h (is_tm_ending): Declare.
6365 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
6367 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
6369 2013-11-14 Tom de Vries <tom@codesourcery.com>
6371 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
6373 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
6375 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
6376 (struct walk_stmt_info): Relocate here from gimple.h.
6377 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
6378 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
6379 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
6380 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
6381 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
6382 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
6383 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
6384 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
6385 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
6386 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
6387 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
6388 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
6389 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
6390 (struct walk_stmt_info): Move to gimple-walk.h.
6391 (gimple_seq_set_location): Move to gimple.c
6392 * gimple-walk.c: New File.
6393 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
6394 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
6395 walk_stmt_load_store_ops): Relocate here from gimple.c.
6396 * gimple-iterator.c: Include gimple-iterator.h.
6397 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
6398 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
6399 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
6401 (gimple_seq_set_location): Relocate from gimple.h.
6402 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
6403 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
6404 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
6405 * Makefile.in (OBJS): Add gimple-walk.o
6406 * asan.c: Update Include list as required for gimple-iterator.h and
6408 * cfgexpand.c: Likewise.
6409 * cfgloop.c: Likewise.
6410 * cfgloopmanip.c: Likewise.
6411 * cgraph.c: Likewise.
6412 * cgraphbuild.c: Likewise.
6413 * cgraphunit.c: Likewise.
6414 * gimple-fold.c: Likewise.
6415 * gimple-low.c: Likewise.
6416 * gimple-pretty-print.c: Likewise.
6417 * gimple-ssa-isolate-paths.c: Likewise.
6418 * gimple-ssa-strength-reduction.c: Likewise.
6419 * gimple-streamer-in.c: Likewise.
6420 * gimple-streamer-out.c: Likewise.
6421 * gimplify.c: Likewise.
6422 * graphite-blocking.c: Likewise.
6423 * graphite-clast-to-gimple.c: Likewise.
6424 * graphite-dependences.c: Likewise.
6425 * graphite-interchange.c: Likewise.
6426 * graphite-optimize-isl.c: Likewise.
6427 * graphite-poly.c: Likewise.
6428 * graphite-scop-detection.c: Likewise.
6429 * graphite-sese-to-poly.c: Likewise.
6430 * graphite.c: Likewise.
6431 * ipa-inline-analysis.c: Likewise.
6432 * ipa-profile.c: Likewise.
6433 * ipa-prop.c: Likewise.
6434 * ipa-pure-const.c: Likewise.
6435 * ipa-split.c: Likewise.
6436 * lto-streamer-in.c: Likewise.
6437 * lto-streamer-out.c: Likewise.
6438 * omp-low.c: Likewise.
6439 * predict.c: Likewise.
6440 * profile.c: Likewise.
6442 * tracer.c: Likewise.
6443 * trans-mem.c: Likewise.
6444 * tree-call-cdce.c: Likewise.
6445 * tree-cfg.c: Likewise.
6446 * tree-cfgcleanup.c: Likewise.
6447 * tree-complex.c: Likewise.
6448 * tree-data-ref.c: Likewise.
6449 * tree-dfa.c: Likewise.
6450 * tree-eh.c: Likewise.
6451 * tree-emutls.c: Likewise.
6452 * tree-if-conv.c: Likewise.
6453 * tree-inline.c: Likewise.
6454 * tree-into-ssa.c: Likewise.
6455 * tree-loop-distribution.c: Likewise.
6456 * tree-nested.c: Likewise.
6457 * tree-nrv.c: Likewise.
6458 * tree-object-size.c: Likewise.
6459 * tree-outof-ssa.c: Likewise.
6460 * tree-parloops.c: Likewise.
6461 * tree-predcom.c: Likewise.
6462 * tree-profile.c: Likewise.
6463 * tree-scalar-evolution.c: Likewise.
6464 * tree-sra.c: Likewise.
6465 * tree-ssa-ccp.c: Likewise.
6466 * tree-ssa-coalesce.c: Likewise.
6467 * tree-ssa-copy.c: Likewise.
6468 * tree-ssa-copyrename.c: Likewise.
6469 * tree-ssa-dce.c: Likewise.
6470 * tree-ssa-dom.c: Likewise.
6471 * tree-ssa-dse.c: Likewise.
6472 * tree-ssa-forwprop.c: Likewise.
6473 * tree-ssa-ifcombine.c: Likewise.
6474 * tree-ssa-live.c: Likewise.
6475 * tree-ssa-loop-ch.c: Likewise.
6476 * tree-ssa-loop-im.c: Likewise.
6477 * tree-ssa-loop-ivcanon.c: Likewise.
6478 * tree-ssa-loop-ivopts.c: Likewise.
6479 * tree-ssa-loop-manip.c: Likewise.
6480 * tree-ssa-loop-niter.c: Likewise.
6481 * tree-ssa-loop-prefetch.c: Likewise.
6482 * tree-ssa-loop.c: Likewise.
6483 * tree-ssa-math-opts.c: Likewise.
6484 * tree-ssa-phiopt.c: Likewise.
6485 * tree-ssa-phiprop.c: Likewise.
6486 * tree-ssa-pre.c: Likewise.
6487 * tree-ssa-propagate.c: Likewise.
6488 * tree-ssa-reassoc.c: Likewise.
6489 * tree-ssa-sink.c: Likewise.
6490 * tree-ssa-strlen.c: Likewise.
6491 * tree-ssa-structalias.c: Likewise.
6492 * tree-ssa-tail-merge.c: Likewise.
6493 * tree-ssa-ter.c: Likewise.
6494 * tree-ssa-threadedge.c: Likewise.
6495 * tree-ssa-threadupdate.c: Likewise.
6496 * tree-ssa-uncprop.c: Likewise.
6497 * tree-ssa-uninit.c: Likewise.
6498 * tree-ssa.c: Likewise.
6499 * tree-stdarg.c: Likewise.
6500 * tree-switch-conversion.c: Likewise.
6501 * tree-tailcall.c: Likewise.
6502 * tree-vect-data-refs.c: Likewise.
6503 * tree-vect-generic.c: Likewise.
6504 * tree-vect-loop-manip.c: Likewise.
6505 * tree-vect-loop.c: Likewise.
6506 * tree-vect-patterns.c: Likewise.
6507 * tree-vect-slp.c: Likewise.
6508 * tree-vect-stmts.c: Likewise.
6509 * tree-vectorizer.c: Likewise.
6510 * tree-vrp.c: Likewise.
6513 * value-prof.c: Likewise.
6514 * vtable-verify.c: Likewise.
6516 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
6518 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
6521 2013-11-13 Jeff Law <law@redhat.com>
6523 * PR middle-end/59119
6524 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
6525 function, extracted from gimple_ssa_isolate_erroneous_paths.
6526 (find_explicit_erroneous_behaviour): Similarly.
6527 (insert_trap_and_remove_trailing_statements): Remove statements
6530 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
6532 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
6533 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
6534 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
6535 looking at INSN_CODE.
6536 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
6537 active_insn_p object, respect basic block boundaries.
6538 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
6539 follows immediately after the jump table data label.
6540 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
6541 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
6542 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
6544 2013-11-13 Teresa Johnson <tejohnson@google.com>
6547 * predict.c (drop_profile): Error is currently too strict.
6548 (handle_missing_profiles): Pass call_count to drop_profile.
6550 2013-11-13 Teresa Johnson <tejohnson@google.com>
6553 * ipa-inline.c (edge_badness): Fix overflow.
6555 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
6557 PR rtl-optimization/59036
6558 * ira-color.c (struct allocno_color_data): Add new members
6559 first_thread_allocno, next_thread_allocno, thread_freq.
6560 (sorted_copies): New static var.
6561 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
6562 (allocno_thread_conflict_p, merge_threads)
6563 (form_threads_from_copies, form_threads_from_bucket)
6564 (form_threads_from_colorable_allocno, init_allocno_threads): New
6566 (bucket_allocno_compare_func): Add comparison by thread frequency
6568 (add_allocno_to_ordered_bucket): Rename to
6569 add_allocno_to_ordered_colorable_bucket. Remove parameter.
6570 (push_only_colorable): Call form_threads_from_bucket.
6571 (color_pass): Call init_allocno_threads. Use
6572 consideration_allocno_bitmap instead of coloring_allocno_bitmap
6573 for nuillify allocno color data.
6574 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
6575 (coalesce_allocnos): Use static sorted copies.
6577 2013-11-13 Jakub Jelinek <jakub@redhat.com>
6579 * passes.c (execute_todo): Don't call do_per_function if
6581 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
6582 execute_function_dump if dump_file is NULL.
6584 2013-11-13 Martin Jambor <mjambor@suse.cz>
6586 * cgraph.c (cgraph_get_create_node): Do what
6587 cgraph_get_create_real_symbol_node used to do.
6588 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
6589 call cgraph_get_create_node.
6590 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
6591 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
6592 cgraph_get_create_node. Assert we get a node.
6594 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
6596 * config/aarch64/aarch64-simd.md (vec_extract): New.
6598 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
6600 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
6603 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
6605 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
6606 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
6607 or if optimization is enabled.
6608 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
6609 require that all the names based on a PARM_DECL or a RESULT_DECL that
6610 isn't ignored for debug info be coalesced.
6612 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6614 * config/c6x/c6x.c: Include "gimple-expr.h".
6616 2013-11-13 Richard Biener <rguenther@suse.de>
6618 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
6619 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
6620 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
6621 dealing with type mismatches inside component reference chains.
6623 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
6625 PR tree-optimization/59077
6626 * ipa-pure-const.c (better_state): Update *state.
6628 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
6630 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
6631 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
6632 Update offset calculations.
6634 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
6637 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
6638 for fields. Do not add the attribute if the size is negative.
6640 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6642 * config/arm/arm.c: Include aarch-cost-tables.h.
6643 (generic_extra_costs): Move from here...
6644 * config/arm/aarch-cost-tables.h: ... To here. New file.
6646 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
6647 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6648 Sergey Lega <sergey.s.lega@intel.com>
6649 Anna Tikhonova <anna.tikhonova@intel.com>
6650 Ilya Tocar <ilya.tocar@intel.com>
6651 Andrey Turetskiy <andrey.turetskiy@intel.com>
6652 Ilya Verbin <ilya.verbin@intel.com>
6653 Kirill Yukhin <kirill.yukhin@intel.com>
6654 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6656 * config/i386/i386.c (ix86_print_operand): Support z-masking.
6657 * config/i386/predicate.md (const_0_to_4_operand): New.
6658 (const_0_to_5_operand): Ditto.
6659 * config/i386/sse.md (UNSPEC_COMPRESS): New.
6660 (UNSPEC_COMPRESS_STORE): Ditto.
6661 (UNSPEC_EXPAND): Ditto.
6662 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
6663 (define_mode_attr ssescalarsize): Ditto.
6664 (avx512f_load<mode>_mask): Ditto.
6665 (avx512f_store<mode>_mask): Ditto.
6666 (avx512f_storedqu<mode>_mask): Ditto.
6667 (avx512f_vmcmp<mode>3_mask): Ditto.
6668 (avx512f_fmadd_<mode>_mask): Ditto.
6669 (avx512f_fmadd_<mode>_mask3): Ditto.
6670 (avx512f_fmsub_<mode>_mask): Ditto.
6671 (avx512f_fmsub_<mode>_mask3): Ditto.
6672 (avx512f_fnmadd_<mode>_mask): Ditto.
6673 (avx512f_fnmadd_<mode>_mask3): Ditto.
6674 (avx512f_fnmsub_<mode>_mask): Ditto.
6675 (avx512f_fnmsub_<mode>_mask3): Ditto.
6676 (avx512f_fmaddsub_<mode>_mask): Ditto.
6677 (avx512f_fmaddsub_<mode>_mask3): Ditto.
6678 (avx512f_fmsubadd_<mode>_mask): Ditto.
6679 (avx512f_fmsubadd_<mode>_mask3): Ditto.
6680 (vec_unpacku_float_lo_v16si): Ditto.
6681 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
6682 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
6683 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
6684 (vec_extract_lo_<mode>_maskm): Ditto.
6685 (vec_extract_hi_<mode>_maskm): Ditto.
6686 (avx512f_vternlog<mode>_mask): Ditto.
6687 (avx512f_shufps512_mask): Ditto.
6688 (avx512f_fixupimm<mode>_mask): Ditto.
6689 (avx512f_shufpd512_mask): Ditto.
6690 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
6691 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
6692 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
6693 (ashr<mode>3<mask_name>): Ditto.
6694 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
6695 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
6696 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
6697 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
6698 (avx512f_pshufdv3_mask): Ditto.
6699 (avx512f_perm<mode>_mask): Ditto.
6700 (avx512f_vpermi2var<mode>3_mask): Ditto.
6701 (avx512f_vpermt2var<mode>3_mask): Ditto.
6702 (avx512f_compress<mode>_mask): Ditto.
6703 (avx512f_compressstore<mode>_mask): Ditto.
6704 (avx512f_expand<mode>_mask): Ditto.
6705 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
6707 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
6708 (<plusminus_insn><mode>3<mask_name>): Ditto.
6709 (*<plusminus_insn><mode>3<mask_name>): Ditto.
6710 (mul<mode>3<mask_name>): Ditto.
6711 (*mul<mode>3<mask_name>): Ditto.
6712 (<sse>_div<mode>3<mask_name>): Ditto.
6713 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
6714 (<sse>_sqrt<mode>2<mask_name>): Ditto.
6715 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
6716 (<code><mode>3<mask_name>/smaxmin): Ditto.
6717 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
6718 (*<code><mode>3<mask_name>/smaxmin): Ditto.
6719 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
6720 (ufloatv16siv16sf2<mask_name>): Ditto.
6721 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
6722 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
6723 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
6724 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
6725 (ufloatv8siv8df<mask_name>): Ditto.
6726 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
6727 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
6728 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
6729 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
6730 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
6731 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
6732 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
6733 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
6734 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
6735 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
6736 (vec_extract_lo_<mode><mask_name>): Ditto.
6737 (vec_extract_hi_<mode><mask_name>): Ditto.
6738 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
6739 (avx512f_movddup512<mask_name>): Ditto.
6740 (avx512f_unpcklpd512<mask_name>): Ditto.
6741 (*avx512f_unpcklpd512<mask_name>): Ditto.
6742 (*avx512f_vmscalef<mode>): Ditto.
6743 (avx512f_scalef<mode><mask_name>): Ditto.
6744 (avx512f_getexp<mode><mask_name>): Ditto.
6745 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
6746 (avx512f_rndscale<mode><mask_name>): Ditto.
6747 (avx512f_shufps512_1<mask_name>): Ditto.
6748 (avx512f_shufpd512_1<mask_name>): Ditto.
6749 (<plusminus_insn><mode>3<mask_name>): Ditto.
6750 (*<plusminus_insn><mode>3<mask_name>): Ditto.
6751 (vec_widen_umult_even_v16si<mask_name>): Ditto.
6752 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
6753 (vec_widen_smult_even_v16si<mask_name>): Ditto.
6754 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
6755 (mul<mode>3<mask_name>): Ditto.
6756 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
6757 (<shift_insn><mode>3<mask_name>): Ditto.
6758 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
6759 (avx512f_<rotate><mode><mask_name>): Ditto.
6760 (<code><mode>3<mask_name>/maxmin): Ditto.
6761 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
6762 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
6763 (*andnot<mode>3<mask_name>): Ditto.
6764 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
6765 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
6766 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
6767 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
6768 (vec_set_lo_<mode><mask_name>): Ditto.
6769 (vec_set_hi_<mode><mask_name>): Ditto.
6770 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
6771 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
6772 (avx512f_pshufd_1<mask_name>): Ditto.
6773 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
6774 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
6775 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
6776 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
6777 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
6778 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
6779 (avx512er_exp2<mode><mask_name>): Ditto.
6780 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
6781 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
6782 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
6783 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
6784 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
6785 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
6786 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
6787 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
6788 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
6789 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
6790 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
6791 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
6792 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
6793 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
6794 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
6795 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
6796 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
6797 (avx512f_getmant<mode><mask_name>): Ditto.
6798 (clz<mode>2<mask_name>): Ditto.
6799 (<mask_codefor>conflict<mode><mask_name>): Ditto.
6800 (*srcp14<mode>): Remove visibility.
6801 (*rsqrt14<mode>): Ditto.
6802 (*fma_fmsub_<mode>): Ditto.
6803 (*fma_fnmadd_<mode>): Ditto.
6804 (*avx512f_rndscale<mode>): Ditto.
6805 * config/i386/subst.md: New file.
6807 2013-11-13 Joseph Myers <joseph@codesourcery.com>
6809 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
6810 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
6811 (atomic_load_explicit, atomic_exchange_explicit)
6812 (atomic_compare_exchange_strong_explicit)
6813 (atomic_compare_exchange_weak_explicit): Use __auto_type to
6814 declare variable initialized with PTR argument.
6816 2013-11-12 Jeff Law <law@redhat.com>
6818 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
6819 backedge_seen_p. Set, use and pass it to children appropriately.
6820 (thread_through_normal_block): Similarly.
6821 (thread_across_edge): Similarly.
6823 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
6824 memory references as volatile.
6825 (insert_trap_and_remove_trailing_statements): Fix comment.
6827 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
6830 * ira-costs.c (record_operand_costs): Check operands number for
6833 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6836 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
6837 constraints that would allow DImode into the traditional Altivec
6838 registers, but cause undesirable code generation when loading 0 as
6840 (movdi_internal64): Likewise.
6841 (cmp<mode>_fpr): Do not use %x for CR register output.
6842 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
6843 -mallow-upper-sf debug switches are used.
6845 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
6847 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
6848 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
6849 Relocate prototypes from gimple.h.
6850 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
6851 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
6853 * gimple.h: Move some prototypes to gimplify.h.
6854 (gimple_predicate, enum fallback, enum gimplify_status): Move to
6856 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
6857 Relocate from gimpify.c.
6858 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6859 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
6860 is_gimple_reg_rhs) Relocate from gimplify.c.
6861 * gimplify.c (mark_addressable): Move to gimple-expr.c.
6862 (gimple_seq_add_stmt_without_update): Move to gimple.c.
6863 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6864 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
6865 is_gimple_reg_rhs): Move to gimple-expr.c.
6866 (should_carry_location_p): Move to gimple.c.
6867 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
6869 (annotate_one_with_location, annotate_all_with_location_after,
6870 annotate_all_with_location): Move to gimple.c.
6871 (compare_case_labels, sort_case_labels,
6872 preprocess_case_label_vec_for_gimple): Move to gimple.c.
6873 (rhs_predicate_for): Make static.
6874 (gimplify_assign): Relocate from gimple.c.
6875 * gimple.c (gimplify_assign): Move to gimplify.c.
6876 (gimple_seq_add_stmt_without_update, should_carry_location_p,
6877 annotate_one_with_location, annotate_all_with_location_after,
6878 annotate_all_with_location, compare_case_labels, sort_case_labels,
6879 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
6880 * tree.h (unshare_expr, unshare_expr_without_location,
6881 mark_addressable): Move prototypes to gimplify.h.
6882 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
6884 * asan.c: Include gimplify.h rather than gimple.h.
6885 * cfgloopmanip.c: Likewise.
6886 * cgraphunit.c: Likewise.
6887 * cilk-common.c: Likewise.
6888 * dwarf2out.c: Dont include gimple.h.
6889 * fold-const.c: Include gimplify.h rather than gimple.h.
6890 * function.c: Likewise.
6891 * gimple-fold.c: Likewise.
6892 * gimple-ssa-strength-reduction.c: Likewise.
6893 * graphite-clast-to-gimple.c: Likewise.
6894 * graphite-sese-to-poly.c: Likewise.
6895 * ipa-prop.c: Likewise.
6896 * ipa-split.c: Likewise.
6898 * langhooks.c: Dont include gimple.h.
6899 * loop-init.c: Include gimplify.h rather than gimple.h.
6900 * omp-low.c: Likewise.
6902 * stor-layout.c: Likewise.
6903 * targhooks.c: Likewise.
6904 * trans-mem.c: Likewise.
6905 * tree-affine.c: Likewise.
6906 * tree-cfg.c: Likewise.
6907 * tree-cfgcleanup.c: Likewise.
6908 * tree-complex.c: Likewise.
6909 * tree-if-conv.c: Likewise.
6910 * tree-inline.c: Likewise.
6911 * tree-iterator.c: Likewise.
6912 * tree-loop-distribution.c: Likewise.
6913 * tree-nested.c: Likewise.
6914 * tree-parloops.c: Likewise.
6915 * tree-predcom.c: Likewise.
6916 * tree-profile.c: Likewise.
6917 * tree-scalar-evolution.c: Likewise.
6918 * tree-sra.c: Likewise.
6919 * tree-ssa-address.c: Likewise.
6920 * tree-ssa-ccp.c: Likewise.
6921 * tree-ssa-dce.c: Likewise.
6922 * tree-ssa-forwprop.c: Likewise.
6923 * tree-ssa-ifcombine.c: Likewise.
6924 * tree-ssa-loop-im.c: Likewise.
6925 * tree-ssa-loop-ivopts.c: Likewise.
6926 * tree-ssa-loop-manip.c: Likewise.
6927 * tree-ssa-loop-niter.c: Likewise.
6928 * tree-ssa-loop-prefetch.c: Likewise.
6929 * tree-ssa-loop-unswitch.c: Likewise.
6930 * tree-ssa-math-opts.c: Likewise.
6931 * tree-ssa-phiopt.c: Likewise.
6932 * tree-ssa-phiprop.c: Likewise.
6933 * tree-ssa-pre.c: Likewise.
6934 * tree-ssa-propagate.c: Likewise.
6935 * tree-ssa-reassoc.c: Likewise.
6936 * tree-ssa-sccvn.c: Likewise.
6937 * tree-ssa-strlen.c: Likewise.
6938 * tree-ssa.c: Likewise.
6939 * tree-switch-conversio: Likewise.n.c
6940 * tree-tailcall.c: Likewise.
6941 * tree-vect-data-refs.c: Likewise.
6942 * tree-vect-generic.c: Likewise.
6943 * tree-vect-loop-manip.c: Likewise.
6944 * tree-vect-loop.c: Likewise.
6945 * tree-vect-patterns.c: Likewise.
6946 * tree-vect-stmts.c: Likewise.
6948 * value-prof.c: Likewise.
6949 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
6950 * config/alpha/alpha.c: Likewise.
6951 * config/darwin.c: Likewise.
6952 * config/i386/i386.c: Likewise.
6953 * config/ia64/ia64.c: Likewise.
6954 * config/mep/mep.c: Likewise.
6955 * config/mips/mips.c: Likewise.
6956 * config/rs6000/rs6000.c: Likewise.
6957 * config/s390/s390.c: Likewise.
6958 * config/sh/sh.c: Likewise.
6959 * config/sparc/sparc.c: Likewise.
6960 * config/spu/spu.c: Likewise.
6961 * config/stormy16/stormy16.c: Likewise.
6962 * config/tilegx/tilegx.c: Likewise.
6963 * config/tilepro/tilepro.c: Likewise.
6964 * config/xtensa/xtensa.c: Likewise.
6966 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
6968 * tree.c (grow_tree_vec_stat): New function ...
6969 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
6970 and macro front-end.
6972 2013-11-12 Marek Polacek <polacek@redhat.com>
6974 * final.c (update_alignments): Initialize label to NULL_RTX.
6976 2013-11-12 Jeff Law <law@redhat.com>
6978 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
6979 (insert_trap_and_remove_trailing_statements): New argument OP which
6980 is the NULL pointer. Emit the trap after the load/store through
6981 the NULL pointer. Simplify the RHS of a store through a NULL pointer
6982 when trivial to do so.
6983 (isolate_path): Corresponding changes.
6984 (gimple_ssa_isolate_erroneous_path): Likewise.
6986 2013-11-12 Teresa Johnson <tejohnson@google.com>
6987 Jan Hubicka <jh@suse.cz>
6989 * predict.c (drop_profile): New function.
6990 (handle_missing_profiles): Ditto.
6991 (counts_to_freqs): Don't overwrite estimated frequencies
6992 when function has no profile counts.
6993 * predict.h (handle_missing_profiles): Declare.
6994 * tree-inline.c (freqs_to_counts): New function.
6995 (copy_cfg_body): Invoke freqs_to_counts as needed.
6996 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
6998 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
7001 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
7003 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
7005 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
7008 * config/i386/i386.c (ix86_option_override_internal): Check
7009 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
7010 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
7011 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
7012 MASK_AVX256_SPLIT_UNALIGNED_STORE.
7014 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
7015 Clear m_COREI7_AVX and update comments.
7016 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
7018 2013-11-12 Martin Jambor <mjambor@suse.cz>
7020 PR rtl-optimization/10474
7021 * ira.c (interesting_dest_for_shprep): New function.
7022 (split_live_ranges_for_shrink_wrap): Likewise.
7023 (find_moveable_pseudos): Move calculation of dominance info,
7024 df_analysios and the final anlyses to...
7025 (ira): ...here, call split_live_ranges_for_shrink_wrap.
7027 2013-11-12 Bin Cheng <bin.cheng@arm.com>
7029 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
7030 Handle type conversion.
7032 2013-11-11 Martin Liska <marxin.liska@gmail.com>
7033 Jan Hubicka <jh@suse.cz>
7035 * cgraph.c (dump_cgraph_node): Profile dump added.
7036 * cgraph.h (struct cgraph_node): New time profile variable added.
7037 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
7038 * gcov-io.h (gcov_type): New profiler type introduced.
7039 * ipa-profile.c (lto_output_node): Streaming for time profile added.
7040 (input_node): Time profiler is read from LTO stream.
7041 * predict.c (maybe_hot_count_p): Hot prediction changed.
7042 * profile.c (instrument_values): New case for time profiler added.
7043 (compute_value_histograms): Read of time profile.
7044 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
7045 * tree-profile.c (init_ic_make_global_vars): Time profiler
7047 (gimple_init_edge_profiler): TP function instrumentation.
7048 (gimple_gen_time_profiler): New.
7049 * value-prof.c (gimple_add_histogram_value): Support for time profiler
7051 (dump_histogram_value): TP type added to dumps.
7052 (visit_hist): More sensitive check that takes TP into account.
7053 (gimple_find_values_to_profile): TP instrumentation.
7054 * value-prof.h (hist_type): New histogram type added.
7055 (struct histogram_value_t): Pointer to struct function added.
7056 * libgcc/Makefile.in: New GCOV merge function for TP added.
7057 * libgcov.c: function_counter variable introduced.
7058 (_gcov_merge_time_profile): New.
7059 (_gcov_time_profiler): New.
7061 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
7062 Jeff Law <law@redhat.com>
7064 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
7065 ao_ref_init_from_ptr_and_size for builtins.
7067 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
7068 H.J. Lu <hongjiu.lu@intel.com>
7071 * config/i386/x86-tune.def
7072 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
7073 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
7074 * config/i386/i386.h
7075 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
7076 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
7077 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
7078 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
7079 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
7080 misaligned_prologue_used. Check that
7081 desired_aling <= epilogue_size_needed.
7083 2013-11-11 Cong Hou <congh@google.com>
7085 PR tree-optimization/59050
7086 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
7088 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
7091 * expmed.c (emit_store_flag): Fail for const-const comparison.
7093 2013-11-11 Tristan Gingold <gingold@adacore.com>
7094 Eric Botcazou <ebotcazou@adacore.com>
7096 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
7097 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
7098 * tree.def (CONSTRUCTOR): Likewise.
7099 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
7100 * gimplify.c (gimplify_init_constructor): Do not clear the object when
7101 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
7103 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
7105 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
7108 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7110 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
7113 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
7115 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
7117 2013-11-08 Jeff Law <law@redhat.com>
7119 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
7120 threading paths first, then perform PHI node checks if applicable.
7122 2013-11-10 Karlson2k <k2k@narod.ru>
7123 Kai Tietz <ktietz@redhat.com>
7126 * configure.ac: Adding for exported symbols check
7127 and for rdynamic-check executable-extension.
7128 * configure: Regenerated.
7130 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
7132 * mode-switching.c (optimize_mode_switching): Mark block as
7133 nontransparent, if last_mode at block exit is different from no_mode.
7135 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7137 * function.c (NAME__MAIN): Move to...
7138 * cfgexpand.c (NAME__MAIN): ...here.
7140 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
7142 * target.def (can_use_doloop_p): New hook.
7143 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
7144 * doc/tm.texi: Regenerate.
7145 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
7146 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
7147 * hooks.c (hook_bool_dint_dint_uint_true): New function.
7148 * targhooks.h (can_use_doloop_if_innermost): Declare.
7149 * targhooks.c (can_use_doloop_if_innermost): New function.
7150 * target.h: Include double-int.h.
7151 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
7152 Remove iteration count, maximum iteration count, loop depth and
7153 enter-at-top inputs from doloop_begin and doloop_end.
7154 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
7156 * config/arc/arc.c (arc_can_use_doloop_p): New function.
7157 (TARGET_CAN_USE_DOLOOP_P): Define.
7158 * config/arm/thumb2.md (doloop_end): Update for new interface.
7159 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
7160 * config/bfin/bfin.md (doloop_end): Update for new interface.
7161 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
7162 (TARGET_CAN_USE_DOLOOP_P): Define.
7163 * config/c6x/c6x.md (doloop_end): Update for new interface.
7164 * config/ia64/ia64.md (doloop_end): Update for new interface.
7165 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
7166 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
7168 * config/mep/mep.c (mep_emit_doloop): Likewise.
7169 (TARGET_CAN_USE_DOLOOP_P): Define.
7170 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
7171 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
7172 * config/s390/s390.md (doloop_end): Update for new interface.
7173 * config/sh/sh.md (doloop_end): Likewise.
7174 * config/spu/spu.md (doloop_end): Likewise.
7175 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
7176 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
7177 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
7178 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
7179 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
7180 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
7182 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
7184 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
7187 * doc/extend.texi: Move Cilk Plus Builtins node before Other
7190 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
7191 Joseph Myers <joseph@codesourcery.com>
7193 * ginclude/stdatomic.h: New file.
7194 * Makefile.in (USER_H): Add stdatomic.h.
7196 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7198 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
7201 2013-11-08 Jeff Law <law@redhat.com>
7203 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
7204 * tree-ssa-threadupdate.c (delete_thread_path): New function.
7205 (ssa_redirect_edges, thread_block_1): Use it.
7206 (thread_through_loop_header, mark_threaded_blocks): Likewise.
7207 (thread_through_all_blocks, register_jump_thread): Likewise.
7208 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
7210 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
7212 * config/arm/aarch-common.c
7213 (search_term): New typedef.
7214 (shift_rtx_costs): New array.
7215 (arm_rtx_shift_left_p): New.
7216 (arm_find_sub_rtx_with_search_term): Likewise.
7217 (arm_find_sub_rtx_with_code): Likewise.
7218 (arm_early_load_addr_dep): Add sanity checking.
7219 (arm_no_early_alu_shift_dep): Likewise.
7220 (arm_no_early_alu_shift_value_dep): Likewise.
7221 (arm_no_early_mul_dep): Likewise.
7222 (arm_no_early_store_addr_dep): Likewise.
7224 2013-11-08 Richard Biener <rguenther@suse.de>
7226 PR tree-optimization/59047
7227 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
7229 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
7231 * common.opt (fcheck-pointer-bounds): Move to ...
7232 * c-family/c.opt: ... here.
7233 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
7234 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
7235 * langhooks.h (lang_hooks): Remove chkp_supported field.
7236 * toplev.c (process_options): Remove chkp_supported check.
7238 2013-11-08 Richard Biener <rguenther@suse.de>
7240 PR tree-optimization/59038
7241 PR tree-optimization/58955
7242 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
7243 previous change. Handle known dependences correctly.
7245 2013-11-08 Tom de Vries <tom@codesourcery.com>
7247 * config/rs6000/t-xilinx: Remove duplicate contents.
7249 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
7250 Joseph Myers <joseph@codesourcery.com>
7252 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
7253 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
7254 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
7255 (struct tree_base): Add atomic_flag field.
7256 * tree.h (TYPE_ATOMIC): New accessor macro.
7257 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
7258 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
7259 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
7260 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
7261 * tree.c (set_type_quals): Set TYPE_ATOMIC.
7262 (find_atomic_core_type): New function.
7263 (build_qualified_type): Adjust alignment for qualified types.
7264 (build_atomic_base): New function
7265 (build_common_tree_nodes): Build atomicQI_type_node,
7266 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
7268 * print-tree.c (print_node): Print atomic qualifier.
7269 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
7270 * target.def (atomic_assign_expand_fenv): New hook.
7271 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
7272 * doc/tm.texi: Regenerate.
7273 * targhooks.c (default_atomic_assign_expand_fenv): New function.
7274 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
7275 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
7276 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
7278 * config/i386/i386.c (enum ix86_builtins): Add
7279 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
7280 IX86_BUILTIN_FNCLEX.
7281 (bdesc_special_args): Add __builtin_ia32_fnstenv,
7282 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
7283 (ix86_expand_builtin): Handle the new built-in functions.
7284 (ix86_atomic_assign_expand_fenv): New function.
7285 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
7286 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
7287 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
7288 (fnstenv, fldenv, fnstsw, fnclex): New insns.
7290 2013-11-07 Steve Ellcey <sellcey@mips.com>
7292 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
7293 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
7294 (MULTILIB_DIRNAMES): Add fp64 directory.
7295 (MULTILIB_EXCEPTIONS): Add new exclusions.
7297 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
7299 * gimplify.c (gimple_regimplify_operands): Do not set
7301 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
7302 (rewrite_close_phi_out_of_ssa): Same.
7303 (rewrite_phi_out_of_ssa): Same.
7304 (rewrite_degenerate_phi): Same.
7305 (handle_scalar_deps_crossing_scop_limits): Same.
7306 * tree-if-conv.c (predicate_scalar_phi): Same.
7307 * tree-parloops.c (create_loads_for_reductions): Same.
7308 (create_final_loads_for_reduction): Same.
7309 (create_loads_and_stores_for_name): Same.
7310 (transform_to_exit_first_loop): Same.
7311 (create_parallel_loop): Same.
7312 * tree-ssa-loop-im.c
7313 (move_computations_dom_walker::before_dom_children): Same.
7314 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
7315 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
7316 * tree-ssa-propagate.c (substitute_and_fold): Same.
7317 * tree-vect-loop.c (vect_finalize_reduction): Same.
7318 * tree-vect-stmts.c (vectorizable_call): Same.
7320 2013-11-07 Mike Stump <mikestump@comcast.net>
7322 * config/pdp11/pdp11.c: Include dbxout.h.
7323 * config/picochip/picochip.c: Likewise.
7325 2013-11-07 Cong Hou <congh@google.com>
7327 PR tree-optimization/56764
7328 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7329 Combine alias checks if it is possible to amortize the runtime
7330 overhead. Return the number of alias checks after merging.
7331 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
7332 Use the function vect_create_cond_for_alias_checks () to check
7333 the number of alias checks.
7335 2013-11-07 Jeff Law <law@redhat.com>
7337 * varpool.c (ctor_for_folding): Fix typo in comment.
7339 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
7341 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
7342 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
7344 2013-11-07 Jeff Law <law@redhat.com>
7346 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
7348 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
7349 No longer check if we have __builtin_trap, assume it's available.
7351 2013-11-07 Diego Novillo <dnovillo@google.com>
7353 * attribs.c (lookup_scoped_attribute_spec): Make static.
7354 (get_attribute_namespace): Likewise.
7355 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
7356 (validate_arglist): Move earlier in the file. Make static.
7357 (expand_stack_restore): Move from stmt.c
7358 (expand_stack_save): Move from stmt.c
7359 (rewrite_call_expr_array): Move earlier in the file.
7360 (rewrite_call_expr_valist): Likewise.
7361 * cfgexpand.c: Include hard-reg-set.h before tree.h
7364 (expand_asm_loc): Move from stmt.c.
7365 (n_occurrences): Move from stmt.c.
7366 (check_operand_nalternatives): Move from stmt.c.
7367 (tree_conflicts_with_clobbers_p): Move from stmt.c.
7368 (expand_asm_operands): Move from stmt.c
7369 (expand_asm_stmt): Move from stmt.c
7370 (expand_computed_goto): Move from stmt.c
7371 (expand_goto): Move from stmt.c
7372 (expand_null_return_1): Move from stmt.c
7373 (expand_null_return): Move from stmt.c
7374 (expand_value_return): Move from stmt.c
7375 (expand_return): Move from stmt.c
7376 (expand_main_function): Move from function.c
7377 (stack_protect_prologue): Move from function.c
7378 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
7379 (build_function_decl_skip_args): Move from tree.c.
7380 * explow.c (tree_expr_size): Move from tree.c.
7381 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
7382 (fields_length): Move from tree.c.
7383 * fold-const.c (size_low_cst): Move from tree.c.
7384 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
7385 (tree_expr_nonzero_p): Make static. Move earlier in the file.
7386 (fold_build3_initializer_loc): Remove.
7387 (tree_invalid_nonnegative_warnv_p): Make static.
7388 * function.c (expand_main_function): Move to cfgexpand.c.
7389 (stack_protect_prologue): Move to cfgexpand.c.
7390 (set_insn_locations): Move earlier in the file.
7391 * gimple-fold.c: Include langhooks.h.
7392 (truth_type_for): Move from tree.c.
7393 * print-tree.c (print_vec_tree): Remove.
7394 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
7395 (expand_goto): Move to cfgexpand.c.
7396 (n_occurrences): Move to cfgexpand.c.
7397 (expand_asm_loc): Move to cfgexpand.c
7398 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
7399 (expand_asm_operands): Move to cfgexpand.c.
7400 (expand_asm_stmt): Move to cfgexpand.c.
7401 (check_operand_nalternatives): Move to cfgexpand.c
7402 (expand_null_return): Move to cfgexpand.c.
7403 (expand_value_return): Move to cfgexpand.c.
7404 (expand_null_return_1): Move to cfgexpand.c.
7405 (expand_return): Move to cfgexpand.c.
7406 (expand_stack_save): Move to builtins.c.
7407 (expand_stack_restore): Move to builtins.c
7408 * symtab.c: Include output.h.
7409 (decl_assembler_name_hash): Move from tree.c.
7410 (decl_assembler_name_equal): Move from tree.c.
7411 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
7412 * tree-eh.c (in_array_bounds_p): Move from tree.c.
7413 (range_in_array_bounds_p): Move from tree.c.
7414 * tree-object-size.c (fini_object_sizes): Make static.
7415 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
7416 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
7417 * tree.c (decl_assembler_name_equal): Move to symtab.c.
7418 (tree_expr_size): Move to explow.c.
7419 (decl_assembler_name_hash): Move to symtab.c.
7420 (real_twop): Remove.
7421 (tree_expr_size): Move to explow.c.
7422 (stabilize_reference_1): Move earlier in the file. Make static.
7423 (omp_remove_redundant_declare_simd_attrs): Remove.
7424 (simple_cst_list_equal): Move earlier in the file. Make static.
7425 (size_low_cst): Move to fold-const.c.
7426 (build_type_no_quals): Remove.
7427 (build_function_type_skip_args): Move to cgraphclones.c.
7428 (build_function_decl_skip_args): Move to cgraphclones.c.
7429 (in_array_bounds_p): Move to tree-eh.c.
7430 (range_in_array_bounds_p): Move to tree-eh.c.
7431 (truth_type_for): Move to gimple-fold.c.
7432 (list_equal_p): Remove.
7433 * tree.h (decl_assembler_name_equal): Remove.
7434 (decl_assembler_name_hash): Remove.
7435 (truth_type_for): Remove.
7436 (build_type_no_quals): Remove.
7437 (build_function_decl_skip_args): Remove.
7438 (in_array_bounds_p): Remove.
7439 (range_in_array_bounds_p): Remove.
7440 (size_low_cst): Remove.
7441 (omp_remove_redundant_declare_simd_attrs): Remove.
7442 (tree_expr_size): Remove.
7443 (fields_length): Remove.
7444 (stabilize_reference_1): Remove.
7445 (expand_goto): Remove.
7446 (expand_stack_save): Remove.
7447 (expand_stack_restore): Remove.
7448 (expand_return): Remove.
7449 (fold_build3_initializer_loc): Remove.
7450 (tree_expr_nonzero_p): Remove.
7451 (tree_invalid_nonnegative_warnv_p): Remove.
7452 (tree_expr_nonzero_warnv_p): Remove.
7453 (fold_builtin_snprintf_chk): Remove.
7454 (validate_arglist): Remove.
7455 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
7456 (simple_cst_list_equal): Remove.
7457 (real_twop): Remove.
7458 (expand_main_function): Remove.
7459 (stack_protect_prologue): Remove.
7460 (print_vec_tree): Remove.
7461 (lookup_scoped_attribute_spec): Remove.
7462 (get_attribute_namespace): Remove.
7463 (expand_computed_goto): Remove.
7464 (expand_asm_stmt): Remove.
7465 (list_equal_p): Remove.
7466 (ssa_name_nonnegative_p): Remove.
7467 (fini_object_sizes): Remove.
7468 (addr_expr_of_non_mem_decl_p): Remove.
7469 (is_tm_safe_or_pure): Move to trans-mem.c.
7470 (more_const_call_expr_args_p): Remove.
7471 (save_vtable_map_decl): Remove.
7473 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
7475 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
7476 linker plugins, too.
7478 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
7479 link to libgomp and its dependencies.
7480 * config/ia64/hpux.h (LIB_SPEC): Likewise.
7481 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7482 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
7483 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
7485 2013-11-07 Jakub Jelinek <jakub@redhat.com>
7487 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
7488 (determine_value_range): Add loop argument. Use get_range_info to
7490 (bound_difference): Adjust caller.
7492 2013-11-07 Richard Biener <rguenther@suse.de>
7493 Jakub Jelinek <jakub@redhat.com>
7495 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
7496 latches from header PHI arguments from the latch edge.
7498 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
7501 * varasm.c (output_constant): Handle NULLPTR_TYPE.
7503 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
7505 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
7506 misaligned_prologue_used when it has been set.
7508 2013-11-07 Yury Gribov <y.gribov@samsung.com>
7509 Jakub Jelinek <jakub@redhat.com>
7512 * asan.c (get_mem_refs_of_builtin_call): Allow
7513 integer literals as addresses in instrumented builtins.
7515 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7517 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
7518 Explain why plus_constant is not used.
7520 2013-11-07 Richard Biener <rguenther@suse.de>
7522 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
7523 (canonicalize_value): ... this. Also handle stripping of
7525 (get_value, set_lattice_value, get_value_for_expr): Adjust.
7526 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
7527 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
7529 2013-11-07 Richard Biener <rguenther@suse.de>
7531 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
7533 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
7536 * config/i386/i386.md (push peepholer/splitter): Use Pmode
7537 with stack_pointer_rtx.
7539 2013-11-07 Bin Cheng <bin.cheng@arm.com>
7541 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
7542 using operand_equal_p.
7544 2013-11-07 Bin Cheng <bin.cheng@arm.com>
7546 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
7547 * tree-affine.c (get_inner_reference_aff): Return base.
7548 * tree-affine.h (get_inner_reference_aff): Change prototype.
7550 2013-11-06 Tobias Burnus <burnus@net-b.de>
7552 * doc/invoke.texi (Wdate-time): Fix typo.
7554 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
7556 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
7557 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
7558 fp_arith_reg_operand instead of arith_reg_operand.
7560 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
7562 * config/sh/sh.md (adddi3): Remove empty constraints.
7563 Remove can_create_pseudo_p and arith_reg_operand check.
7564 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
7565 Split before reload.
7567 2013-11-06 Jeff Law <law@redhat.com>
7568 Tom Tromey <tromey@redhat.com>
7570 * gdbinit.in: Disable strict type checking.
7572 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
7574 * tree-pass.h (make_pass_live_range_shrinkage): New external.
7575 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
7576 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
7577 (rest_of_handle_live_range_shrinkage): Ditto
7578 (class pass_live_range_shrinkage): Ditto.
7579 (pass_data_live_range_shrinkage): Ditto.
7580 (make_pass_live_range_shrinkage): Ditto.
7581 * sched-int.h (initialize_live_range_shrinkage): New prototype.
7582 (finish_live_range_shrinkage): Ditto.
7583 * sched-deps.c (create_insn_reg_set): Make void return value.
7584 * passes.def: Add pass_live_range_shrinkage.
7585 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
7586 * haifa-sched.c (live_range_shrinkage_p): New.
7587 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
7589 (rank_for_schedule): Add code for pressure relief through live
7591 (schedule_insn): Print more debug info.
7592 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
7593 through live range shrinkage.
7594 * doc/invoke.texi (-flive-range-shrinkage): New.
7595 * common.opt (flive-range-shrinkage): New.
7597 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
7600 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
7601 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
7602 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
7603 RTXes that return in AVX256 register.
7605 2013-11-06 Richard Biener <rguenther@suse.de>
7607 PR tree-optimization/58653
7608 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
7609 (prepare_initializers_chain): Adjust.
7611 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
7613 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
7614 (gimple_in_transaction): Use bb_in_transaction.
7615 * basic-block.h (bb_in_transaction): Relocate here and rename.
7616 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
7618 2013-11-06 Richard Biener <rguenther@suse.de>
7620 * tree.c (drop_tree_overflow): New function.
7621 * tree.h (drop_tree_overflow): Declare.
7622 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
7623 * tree-vrp.c (range_int_cst_singleton_p): Use
7624 is_overflow_infinity instead of testing TREE_OVERFLOW.
7625 (extract_range_from_assert): Likewise.
7626 (zero_nonzero_bits_from_vr): Likewise.
7627 (extract_range_basic): Likewise.
7628 (register_new_assert_for): Use drop_tree_overflow.
7629 (vrp_visit_phi_node): Likewise.
7631 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
7633 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
7634 checking for leaf functions without dynamic stack allocation.
7635 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
7636 (ia64_expand_prologue): Likewise.
7637 * config/mips/mips.c (mips_expand_prologue): Likewise.
7638 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
7639 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
7640 (sparc_flat_expand_prologue): Likewise.
7642 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
7644 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
7645 (__ST3_LANE_FUNC): Likewise.
7646 (__ST4_LANE_FUNC): Likewise.
7648 2013-11-06 Nick Clifton <nickc@redhat.com>
7650 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
7651 name returned by msp430_mcu_name.
7652 (LIB_SPEC): If a -T option has not been specified then set a
7653 default, mcu-specific, linker script.
7654 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
7655 * config/msp430/msp430.c (msp430x_names): Likewise.
7656 Alpha sort the names for ease of comparison.
7657 (msp430_mcu_name): New function: Returns a string suitable for
7658 use as a C preprocessor symbol based upon the name of the MCU
7660 (msp430_option_override): Accept msp430x and msp430xv2 as generic
7662 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
7664 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
7665 unless it is the last part of a spec substring.
7666 * doc/invoke.texi (Spec Files): Document space insertion
7669 2013-11-06 Christian Bruel <christian.bruel@st.com>
7671 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
7672 Factorize probabilities, Use adjust_address instead of
7673 adjust_automodify_address when possible. Enable for optimize.
7674 (sh_expand_strlen): New function.
7675 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
7676 * config/sh/sh.md (strlensi): New pattern.
7677 (UNSPEC_BUILTIN_STRLEN): Define.
7679 2013-11-06 Jakub Jelinek <jakub@redhat.com>
7682 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
7683 (expand_assignment): If *bitpos is negative, set *offset
7684 and adjust *bitpos, so that it is not negative.
7686 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7688 * config/i386/bdver3.md : Added two additional decoder units
7689 to support issue rate of 4 and remodeled vector unit.
7690 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
7691 architectures is set to 4.
7692 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
7693 lookahead is set to 4 for BD architectures.
7695 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7697 * config/rs6000/rs6000.c (rs6000_option_override_internal):
7698 Remove restriction against use of VSX instructions when generating
7699 code for little endian mode.
7701 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7703 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
7704 for both big and little endian.
7705 (mulv8hi3): Swap input operands for merge high and merge low
7706 instructions for little endian.
7708 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7710 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
7711 define_insn to define_expand that uses even patterns for big
7712 endian and odd patterns for little endian.
7713 (vec_widen_smult_even_v16qi): Likewise.
7714 (vec_widen_umult_even_v8hi): Likewise.
7715 (vec_widen_smult_even_v8hi): Likewise.
7716 (vec_widen_umult_odd_v16qi): Likewise.
7717 (vec_widen_smult_odd_v16qi): Likewise.
7718 (vec_widen_umult_odd_v8hi): Likewise.
7719 (vec_widen_smult_odd_v8hi): Likewise.
7720 (altivec_vmuleub): New define_insn.
7721 (altivec_vmuloub): Likewise.
7722 (altivec_vmulesb): Likewise.
7723 (altivec_vmulosb): Likewise.
7724 (altivec_vmuleuh): Likewise.
7725 (altivec_vmulouh): Likewise.
7726 (altivec_vmulesh): Likewise.
7727 (altivec_vmulosh): Likewise.
7729 2013-11-05 Mike Stump <mikestump@comcast.net>
7731 * Makefile.in (mostlyclean): Remove c-family objects.
7733 2013-11-05 Ian Lance Taylor <iant@google.com>
7735 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
7736 If possible, add .cfi directives to record change to bx.
7737 * config/i386/i386.c (ix86_emit_cfi): New function.
7738 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
7740 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
7742 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
7743 immediately after a label for a tablejump pattern.
7745 * config/arm/arm.c (is_jump_table): Remove.
7746 (create_fix_barrier): Use tablejump_p instead.
7747 (arm_reorg): Likewise.
7748 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
7749 (thumb2_output_casesi): Likewise.
7750 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
7751 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
7752 casesi_shift_media, casesi_load_media): Likewise.
7753 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
7754 * config/microblaze/microblaze.md: Likewise.
7756 2013-11-05 Tobias Burnus <burnus@net-b.de>
7758 * doc/invoke.texi (-Wdate-time): Document.
7760 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
7762 * double-int.c (lshift_double, rshift_double): Remove
7763 SHIFT_COUNT_TRUNCATED handling.
7765 2013-11-05 Jeff Law <law@redhat.com>
7767 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
7768 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
7769 * gimple-ssa-isolate-paths.c: New file.
7770 * gimple.c (check_loadstore): New function.
7771 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
7772 Verify OP is in the argument list and the argument corresponding
7773 to OP is a pointer type. Use operand_equal_p rather than
7774 pointer equality when testing if OP is on the nonnull list.
7775 Use check_loadstore rather than count_ptr_derefs. Handle
7776 GIMPLE_RETURN statements.
7777 * tree-vrp.c (infer_nonnull_range): Remove.
7778 * gimple.h (infer_nonnull_range): Declare.
7779 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
7780 * passes.def: Add pass_isolate_erroneous_paths.
7781 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
7782 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
7783 * tree-ssa.c (struct count_ptr_d): Remove.
7784 (count_ptr_derefs, count_uses_and_derefs): Remove.
7785 * tree-ssa.h (count_uses_and_derefs): Remove.
7787 2013-11-05 Jakub Jelinek <jakub@redhat.com>
7789 PR rtl-optimization/58997
7790 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
7791 get_iv_value to be in iv->mode rather than iv->extend_mode.
7792 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
7793 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
7794 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
7797 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
7799 * gimple.h: Move some prototypes to gimple-expr.h and add to include
7801 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
7802 Move to gimple-expr.h.
7803 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
7804 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
7805 is_gimple_id, virtual_operand_p, is_gimple_addressable,
7806 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
7808 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
7809 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
7810 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
7811 is_gimple_address, is_gimple_invariant_address,
7812 is_gimple_ip_invariant_address, is_gimple_min_invariant,
7813 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
7814 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
7815 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
7816 gimple_decl_printable_name, useless_type_conversion_p,
7817 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
7819 * gimple-expr.c: New File.
7820 (useless_type_conversion_p, gimple_set_body, gimple_body,
7821 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
7822 gimple_can_coalesce_p, extract_ops_from_tree_1,
7823 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
7824 is_gimple_address, is_gimple_invariant_address,
7825 is_gimple_ip_invariant_address, is_gimple_min_invariant,
7826 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
7827 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
7828 is_gimple_mem_ref_addr): Relocate here.
7829 * Makefile.in (OBJS): Add gimple-expr.o.
7831 2013-11-05 David Malcolm <dmalcolm@redhat.com>
7833 * gengtype-parse.c (struct_field_seq): Support empty structs.
7835 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
7837 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
7839 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
7841 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
7843 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
7845 (LONG_DOUBLE_TYPE_SIZE): New define.
7846 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
7848 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
7851 * doc/extend.texi [visibility ("visibility_type")]: Add example
7852 about visibility attribute on namespace declaration.
7854 2013-11-05 Richard Biener <rguenther@suse.de>
7857 * passes.def (all_passes): Start with pass_fixup_cfg again.
7859 2013-11-05 Richard Biener <rguenther@suse.de>
7861 PR tree-optimization/58955
7862 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
7865 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7867 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
7869 (vec_pack_ufix_trunc_v2df): Likewise.
7871 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
7874 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
7875 pattern, instead of word_mode.
7877 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
7879 (set_storage_via_setmem): Likewise.
7881 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
7883 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
7884 gimple.h and the rest of the condition in eliminate_build.
7885 (eliminate_build): Call new routine.
7886 * gimple.h (phi_ssa_name_p): Delete.
7888 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
7890 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
7891 case of no prefix and reserving zero slots, because when that's the
7892 case we'll never get here.
7893 * vec.h (va_heap::reserve): Don't try and handle
7894 vec_prefix::calculate_allocation returning zero because that should
7897 2013-11-05 Richard Biener <rguenther@suse.de>
7900 * tree-dfa.c (get_ref_base_and_extent): Merge common code
7901 in MEM_REF and TARGET_MEM_REF handling. Make sure to
7902 process trailing array detection before diving into the
7903 view-converted object (and possibly apply some extra offset).
7905 2013-11-05 Joseph Myers <joseph@codesourcery.com>
7907 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
7909 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
7911 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
7913 PR tree-optimization/58958
7914 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
7915 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
7917 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
7919 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
7920 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
7922 2013-11-05 Jakub Jelinek <jakub@redhat.com>
7924 PR tree-optimization/58984
7925 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
7926 set *SIZE_P if non-NULL on success.
7927 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
7929 (ipcp_transform_function): Likewise. Punt if size of access
7930 is different from TYPE_SIZE on v->value's type.
7932 2013-11-05 Tobias Burnus <burnus@net-b.de>
7934 * doc/invoke.texi (-fopenmp-simd): Document new option.
7935 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
7936 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
7937 * tree.c (attribute_value_equal): Ditto.
7939 2013-11-04 Wei Mi <wmi@google.com>
7941 * sched-rgn.c (add_branch_dependences): Keep insns in
7942 a SCHED_GROUP at the end of BB to remain their location.
7944 2013-11-04 Wei Mi <wmi@google.com>
7946 * config/i386/i386.c (memory_address_length): Extract a part
7947 of code to rip_relative_addr_p.
7948 (rip_relative_addr_p): New Function.
7949 (ix86_macro_fusion_p): Ditto.
7950 (ix86_macro_fusion_pair_p): Ditto.
7951 * config/i386/i386.h: Add new tune features about macro-fusion.
7952 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7953 * doc/tm.texi: Generated.
7954 * doc/tm.texi.in: Ditto.
7955 * haifa-sched.c (try_group_insn): New Function.
7956 (group_insns_for_macro_fusion): Ditto.
7957 (sched_init): Call group_insns_for_macro_fusion.
7958 * target.def: Add two hooks: macro_fusion_p and
7959 macro_fusion_pair_p.
7961 2013-11-04 Kostya Serebryany <kcc@google.com>
7963 Update to match the changed asan API.
7964 * asan.c (asan_function_start): New function.
7965 (asan_emit_stack_protection): Update the string stored in the
7966 stack red zone to match new API. Store the PC of the current
7967 function in the red zone.
7968 (asan_global_struct): Update the __asan_global definition to match
7970 (asan_add_global): Ditto.
7971 * asan.h (asan_function_start): New prototype.
7972 * final.c (final_start_function): Call asan_function_start.
7973 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
7976 2013-11-04 Wei Mi <wmi@google.com>
7978 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
7979 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
7980 * config/i386/i386.c (ix86_option_override_internal): Ditto.
7981 (ix86_issue_rate): Ditto.
7982 (ix86_adjust_cost): Ditto.
7983 (ia32_multipass_dfa_lookahead): Ditto.
7984 (ix86_sched_init_global): Ditto.
7985 (get_builtin_code_for_version): Ditto.
7986 * config/i386/i386.h (enum target_cpu_default): Ditto.
7987 (enum processor_type): Ditto.
7988 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7990 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
7992 PR rtl-optimization/58967
7993 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
7994 !lra_in_progress for mode sizes bigger word.
7996 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7998 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
7999 arguments to merge instruction for little endian.
8000 (vec_widen_umult_lo_v16qi): Likewise.
8001 (vec_widen_smult_hi_v16qi): Likewise.
8002 (vec_widen_smult_lo_v16qi): Likewise.
8003 (vec_widen_umult_hi_v8hi): Likewise.
8004 (vec_widen_umult_lo_v8hi): Likewise.
8005 (vec_widen_smult_hi_v8hi): Likewise.
8006 (vec_widen_smult_lo_v8hi): Likewise.
8008 2013-11-04 Ian Lance Taylor <iant@google.com>
8010 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
8011 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
8012 builtins that take pointers.
8013 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
8014 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
8015 (run_gcc): Pass -fnon-call-exceptions.
8017 2013-11-04 Jakub Jelinek <jakub@redhat.com>
8019 * optabs.c (expand_vec_perm): Revert one incorrect line from
8022 PR tree-optimization/58978
8023 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
8024 use_stmt by single_imm_use directly. Only call single_imm_use
8027 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
8029 PR rtl-optimization/58968
8030 * lra-spills.c (return_regno_p): New function.
8031 (lra_final_code_change): Use it.
8033 2013-11-04 Joseph Myers <joseph@codesourcery.com>
8035 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
8036 * target.def (float_exceptions_rounding_supported_p): New hook.
8037 * targhooks.c (default_float_exceptions_rounding_supported_p): New
8039 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
8040 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
8042 * doc/tm.texi: Regenerate.
8043 * config.gcc (powerpc*-*-linux*): Set extra_objs.
8044 * config/rs6000/rs6000-linux.c: New file.
8045 * config/rs6000/rs6000-protos.h
8046 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
8047 * config/rs6000/linux.h
8048 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
8049 * config/rs6000/linux64.h
8050 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
8051 * config/rs6000/t-linux (rs6000-linux.o): New rule.
8052 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
8054 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8056 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
8057 Replace the define_insn_and_split with a define_insn and two
8058 define_splits, with the split after reload re-permuting the source
8059 register to its original value.
8060 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
8061 (*vsx_le_perm_store_v8hi): Likewise.
8062 (*vsx_le_perm_store_v16qi): Likewise.
8064 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8066 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
8069 2013-11-04 Jakub Jelinek <jakub@redhat.com>
8071 PR tree-optimization/58946
8072 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
8073 bbs with bbinfo[idx].op != NULL before all blocks with
8074 bbinfo[idx].op == NULL.
8076 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
8078 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
8079 (avr_dump_double_int_hex): Likewise.
8080 (avr_log_vadump): Remove %D and %X handling.
8081 * config/avr/avr.c (avr_double_int_push_digit): Delete.
8082 (avr_map_op_t): Change map from double_int to unsigned int.
8083 (avr_map_op): Update accordingly.
8084 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
8085 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
8086 unsigned ints rather than double_ints.
8088 2013-11-03 Marek Polacek <polacek@redhat.com>
8090 Implement -fsanitize=vla-bound.
8091 * opts.c (common_handle_option): Handle vla-bound.
8092 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
8093 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
8094 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
8096 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8098 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
8101 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
8103 * config/i386/constraints.md (Ts, Tv): New address constrains.
8104 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
8105 constraint for address_no_seg_operand.
8106 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
8107 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
8108 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
8109 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
8110 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
8111 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
8112 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
8113 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
8114 constraint for vsib_address_operand.
8116 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
8118 * gcse.c (pre_delete): Remove references to regmove from comments.
8119 * recog.c: (validate_replace_rtx_1): Likewise.
8120 * config/rl78/rl78.c: Likewise.
8121 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
8122 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
8123 * common/config/mmix/mmix-common.c: Likewise.
8125 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
8127 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
8128 * gimplify.c (gimplify_compound_lval): Likewise.
8129 * graphite-clast-to-gimple.c (gloog): Likewise.
8130 * graphite-dependences.c (loop_is_parallel_p): Likewise.
8131 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
8132 (limit_scop); Likewise.
8133 (build_scops): Likewise.
8134 (dot_scop): Likewise.
8135 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
8136 (build_scop_drs): Likewise.
8137 (insert_stmts): Likewise.
8138 (insert_out_of_ssa_copy): Likewise.
8139 (remove_phi): Likewise.
8140 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
8141 * hw-doloop.c (discover_loop): Likewise.
8142 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
8143 * tree-dfa.c (dump_enumerated_decls): Likewise.
8144 * tree-if-conv.c (if_convertable_loop_p): Likewise.
8145 * tree-inline.c (tree_function_versioning): Likewise.
8146 * tree-loop-distribution.c (build_rdg): Likewise.
8147 (rdg_flag_vertex_and_dependent): Likewise.
8148 (distribute_loop): Likewise.
8149 * tree-parloops.c (loop_parallel_p): Likewise.
8150 (eliminate_local_variables): Likewise.
8151 (separate_decls_in_region): Likewise.
8152 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
8153 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
8154 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
8155 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
8156 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
8157 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
8158 (vectorizable_condition): Likewise.
8160 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
8162 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
8163 * configure: Regenerate.
8164 * config/i386/i386.md (*movdi_internal): Change
8165 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
8166 (*movdf_internal): Ditto.
8167 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
8168 * config/i386/sse.md (vec_concatv2di): Output interunit movq
8169 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
8171 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
8173 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
8176 2013-10-31 David Malcolm <dmalcolm@redhat.com>
8178 Automated part of renaming of symtab_node_base to symtab_node.
8180 Patch autogenerated by rename_symtab.py from
8181 https://github.com/davidmalcolm/gcc-refactoring-scripts
8182 revision 58bb219cc090b2f4516a9297d868c245495ee622
8183 with ChangeLog entry fixed up by hand.
8185 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
8187 (cgraph_node_for_asm): Likewise.
8188 * cgraph.h (symtab_node_base): Likewise.
8189 (cgraph_node): Likewise.
8190 (varpool_node): Likewise.
8191 (is_a_helper <cgraph_node>::test): Likewise.
8192 (is_a_helper <varpool_node>::test): Likewise.
8193 (symtab_nodes): Likewise.
8194 (symtab_register_node): Likewise.
8195 (symtab_unregister_node): Likewise.
8196 (symtab_remove_node): Likewise.
8197 (symtab_get_node): Likewise.
8198 (symtab_node_for_asm): Likewise.
8199 (symtab_node_asm_name): Likewise.
8200 (symtab_node_name): Likewise.
8201 (symtab_insert_node_to_hashtable): Likewise.
8202 (symtab_add_to_same_comdat_group): Likewise.
8203 (symtab_dissolve_same_comdat_group_list): Likewise.
8204 (dump_symtab_node): Likewise.
8205 (debug_symtab_node): Likewise.
8206 (dump_symtab_base): Likewise.
8207 (verify_symtab_node): Likewise.
8208 (verify_symtab_base): Likewise.
8209 (symtab_used_from_object_file_p): Likewise.
8210 (symtab_alias_ultimate_target): Likewise.
8211 (symtab_resolve_alias): Likewise.
8212 (fixup_same_cpp_alias_visibility): Likewise.
8213 (symtab_for_node_and_aliases): Likewise.
8214 (symtab_nonoverwritable_alias): Likewise.
8215 (availability symtab_node_availability): Likewise.
8216 (symtab_semantically_equivalent_p): Likewise.
8217 (fixup_same_cpp_alias_visibility): Likewise.
8218 (symtab_prevail_in_asm_name_hash): Likewise.
8220 (varpool): Likewise.
8221 (varpool_first_variable): Likewise.
8222 (varpool_next_variable): Likewise.
8223 (varpool_first_static_initializer): Likewise.
8224 (varpool_next_static_initializer): Likewise.
8225 (varpool_first_defined_variable): Likewise.
8226 (varpool_next_defined_variable): Likewise.
8227 (cgraph_first_defined_function): Likewise.
8228 (cgraph_next_defined_function): Likewise.
8229 (cgraph_first_function): Likewise.
8230 (cgraph_next_function): Likewise.
8231 (cgraph_first_function_with_gimple_body): Likewise.
8232 (cgraph_next_function_with_gimple_body): Likewise.
8233 (symtab_alias_target): Likewise.
8234 (symtab_real_symbol_p): Likewise.
8235 (symtab_can_be_discarded): Likewise.
8236 * cgraphbuild.c (mark_address): Likewise.
8237 (mark_load): Likewise.
8238 (mark_store): Likewise.
8239 * cgraphunit.c (decide_is_symbol_needed): Likewise.
8241 (enqueue_node): Likewise.
8242 (referred_to_p): Likewise.
8243 (cgraph_process_same_body_aliases): Likewise.
8244 (analyze_functions): Likewise.
8245 (handle_alias_pairs): Likewise.
8246 (output_weakrefs): Likewise.
8247 (compile): Likewise.
8248 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
8249 * ipa-inline-analysis.c (inline_write_summary): Likewise.
8250 * ipa-prop.c (remove_described_reference): Likewise.
8251 (try_decrement_rdesc_refcount): Likewise.
8252 (ipa_edge_duplication_hook): Likewise.
8253 * ipa-ref.c (ipa_record_reference): Likewise.
8254 (ipa_maybe_record_reference): Likewise.
8255 (ipa_clone_ref): Likewise.
8256 (ipa_clone_references): Likewise.
8257 (ipa_clone_referring): Likewise.
8258 (ipa_find_reference): Likewise.
8259 (ipa_remove_stmt_references): Likewise.
8260 (ipa_clear_stmts_in_references): Likewise.
8261 * ipa-ref.h (symtab_node_base): Likewise.
8262 (ipa_ref): Likewise.
8263 (ipa_record_reference): Likewise.
8264 (ipa_maybe_record_reference): Likewise.
8265 (ipa_clone_references): Likewise.
8266 (ipa_clone_referring): Likewise.
8267 (ipa_clone_ref): Likewise.
8268 (ipa_find_reference): Likewise.
8269 (ipa_remove_stmt_references): Likewise.
8270 (ipa_clear_stmts_in_references): Likewise.
8271 * ipa-reference.c (ipa_reference_write_optimization_summary):
8273 * ipa.c (enqueue_node): Likewise.
8274 (process_references): Likewise.
8275 (walk_polymorphic_call_targets): Likewise.
8276 (symtab_remove_unreachable_nodes): Likewise.
8277 (address_taken_from_non_vtable_p): Likewise.
8278 (comdat_can_be_unshared_p_1): Likewise.
8279 (comdat_can_be_unshared_p): Likewise.
8280 (can_replace_by_local_alias): Likewise.
8281 (function_and_variable_visibility): Likewise.
8282 * is-a.h: Likewise (within example in comment).
8283 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
8284 (lto_symtab_encoder_encode): Likewise.
8285 (lto_symtab_encoder_delete_node): Likewise.
8286 (lto_symtab_encoder_in_partition_p): Likewise.
8287 (lto_set_symtab_encoder_in_partition): Likewise.
8288 (output_refs): Likewise.
8289 (compute_ltrans_boundary): Likewise.
8290 (output_symtab): Likewise.
8291 (input_node): Likewise.
8292 (input_ref): Likewise.
8293 (input_edge): Likewise.
8294 (input_cgraph_1): Likewise.
8295 (input_refs): Likewise.
8296 (output_cgraph_opt_summary): Likewise.
8297 (input_node_opt_summary): Likewise.
8298 (input_cgraph_opt_section): Likewise.
8299 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
8301 * lto-streamer-out.c (lto_output): Likewise.
8302 (output_symbol_p): Likewise.
8303 (produce_symtab): Likewise.
8304 * lto-streamer.h (lto_encoder_entry): Likewise.
8305 (lto_free_function_in_decl_state_for_node): Likewise.
8306 (lto_symtab_encoder_encode): Likewise.
8307 (lto_symtab_encoder_delete_node): Likewise.
8308 (lto_symtab_encoder_in_partition_p): Likewise.
8309 (lto_set_symtab_encoder_in_partition): Likewise.
8310 (lto_symtab_encoder_lookup): Likewise.
8311 (lsei_node): Likewise.
8312 (lto_symtab_encoder_deref): Likewise.
8313 * symtab.c (symtab_hash): Likewise.
8314 (assembler_name_hash): Likewise.
8315 (symtab_nodes): Likewise.
8316 (hash_node): Likewise.
8317 (eq_node): Likewise.
8318 (hash_node_by_assembler_name): Likewise.
8319 (eq_assembler_name): Likewise.
8320 (insert_to_assembler_name_hash): Likewise.
8321 (unlink_from_assembler_name_hash): Likewise.
8322 (symtab_prevail_in_asm_name_hash): Likewise.
8323 (symtab_register_node): Likewise.
8324 (symtab_insert_node_to_hashtable): Likewise.
8325 (symtab_unregister_node): Likewise.
8326 (symtab_get_node): Likewise.
8327 (symtab_remove_node): Likewise.
8328 (symtab_initialize_asm_name_hash): Likewise.
8329 (symtab_node_for_asm): Likewise.
8330 (symtab_add_to_same_comdat_group): Likewise.
8331 (symtab_dissolve_same_comdat_group_list): Likewise.
8332 (symtab_node_asm_name): Likewise.
8333 (symtab_node_name): Likewise.
8334 (dump_symtab_base): Likewise.
8335 (dump_symtab_node): Likewise.
8336 (dump_symtab): Likewise.
8337 (debug_symtab_node): Likewise.
8338 (verify_symtab_base): Likewise.
8339 (verify_symtab_node): Likewise.
8340 (verify_symtab): Likewise.
8341 (symtab_used_from_object_file_p): Likewise.
8342 (symtab_node_availability): Likewise.
8343 (symtab_alias_ultimate_target): Likewise.
8344 (fixup_same_cpp_alias_visibility): Likewise.
8345 (symtab_resolve_alias): Likewise.
8346 (symtab_for_node_and_aliases): Likewise.
8347 (symtab_for_node_and_aliases): Likewise.
8348 (symtab_nonoverwritable_alias_1): Likewise.
8349 (symtab_nonoverwritable_alias): Likewise.
8350 (symtab_semantically_equivalent_p): Likewise.
8351 * value-prof.c (init_node_map): Likewise.
8352 * varasm.c (find_decl): Likewise.
8353 * varpool.c (varpool_node_for_asm): Likewise.
8354 (varpool_remove_unreferenced_decls): Likewise.
8356 2013-10-31 David Malcolm <dmalcolm@redhat.com>
8358 Manual part of renaming of symtab_node_base to symtab_node.
8360 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
8361 clashes with the preferred name for the base class.
8362 (const_symtab_node): Remove redundant typedef.
8364 2013-10-31 Jakub Jelinek <jakub@redhat.com>
8366 * optabs.c (expand_vec_perm): Avoid vector mode punning
8367 SUBREGs in SET_DEST.
8368 * expmed.c (store_bit_field_1): Likewise.
8369 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
8370 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
8371 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
8372 * config/i386/i386.c (ix86_expand_vector_move_misalign,
8373 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
8374 ix86_expand_sse_unpack, ix86_expand_args_builtin,
8375 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
8376 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
8377 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
8378 expand_vec_perm_vpshufb2_vpermq,
8379 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
8380 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
8381 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
8382 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
8385 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
8387 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
8388 Use gcc_unreachable for unhandled modes. Do not check results of
8389 expand_simple_binop. If not expanded to target, move the result.
8391 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
8392 Shiva Chen <shiva0217@gmail.com>
8394 * config.gcc (nds32*-*-*): Add nds32 target.
8395 * config/nds32/nds32.c: New file.
8396 * config/nds32/nds32.h: New file.
8397 * config/nds32/nds32.md: New file.
8398 * config/nds32/constants.md: New file.
8399 * config/nds32/constraints.md: New file.
8400 * config/nds32/iterators.md: New file.
8401 * config/nds32/nds32-doubleword.md: New file.
8402 * config/nds32/nds32-intrinsic.md: New file.
8403 * config/nds32/nds32_intrinsic.h: New file.
8404 * config/nds32/nds32-modes.def: New file.
8405 * config/nds32/nds32-multiple.md: New file.
8406 * config/nds32/nds32.opt: New file.
8407 * config/nds32/nds32-opts.h: New file.
8408 * config/nds32/nds32-protos.h: New file.
8409 * config/nds32/nds32-peephole2.md: New file.
8410 * config/nds32/pipelines.md: New file.
8411 * config/nds32/predicates.md: New file.
8412 * config/nds32/t-mlibs: New file.
8413 * common/config/nds32: New directory and files.
8415 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
8416 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
8417 * doc/install.texi (Cross-Compiler-Specific Options): Document
8418 --with-nds32-lib for nds32 target.
8419 * doc/extend.texi (Function Attributes, Target Builtins): Document
8420 nds32 specific attributes.
8422 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
8424 * lra-constraints (process_alt_operands): Use the result
8425 elimination register for operand when matching constraints.
8427 2013-10-31 Jakub Jelinek <jakub@redhat.com>
8429 * tree-vrp.c (maybe_set_nonzero_bits): New function.
8430 (remove_range_assertions): Call it.
8432 * tree.c (tree_ctz): New function.
8433 * tree.h (tree_ctz): New prototype.
8434 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
8435 first argument from tree to const_tree.
8436 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
8437 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
8438 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
8440 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
8441 * tree-vect-loop.c (vect_analyze_loop_operations,
8442 vect_transform_loop): Don't force scalar loop for bound just because
8443 number of iterations is unknown, only do it if it is not known to be
8444 a multiple of vectorization_factor.
8445 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
8447 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
8448 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
8449 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
8450 (set_nonzero_bits, get_nonzero_bits): New prototypes.
8451 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
8452 a default def isn't partially constant.
8453 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
8454 is known to be partially zero.
8455 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
8456 to see if a default def isn't partially constant.
8457 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
8458 creation of a range, if VR_RANGE, try to improve nonzero_bits from
8460 (set_nonzero_bits, get_nonzero_bits): New functions.
8462 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
8463 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
8464 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
8465 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
8466 uses but in the condition and ASSERT_EXPR and the other successor of
8467 the predecessor bb is __builtin_unreachable (), set_range_info of the
8468 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
8470 2013-10-31 Martin Jambor <mjambor@suse.cz>
8472 PR rtl-optimization/58934
8474 2013-10-30 Martin Jambor <mjambor@suse.cz>
8475 PR rtl-optimization/10474
8476 * ira.c (find_moveable_pseudos): Do not calculate dominance info
8478 (interesting_dest_for_shprep): New function.
8479 (split_live_ranges_for_shrink_wrap): Likewise.
8480 (ira): Calculate dominance info and df analysis. Call
8481 split_live_ranges_for_shrink_wrap.
8483 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
8484 Yury Gribov <y.gribov@samsung.com>
8487 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
8488 shadow pointer to avoid clobbering the main one.
8490 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8492 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
8494 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
8497 * ira-color.c (update_costs_from_copies): Add new parameter. Use
8498 it for calling update_costs_from_allocno.
8499 (assign_hard_reg): Call restore_costs_from_copies only for
8500 !retry_p. Pass new argument to update_costs_from_copies.
8501 (color_pass): Pass new argument to update_costs_from_copies.
8502 (ira_mark_allocation_change): Ditto.
8504 2013-10-30 Sharad Singhai <singhai@google.com>
8507 * opts.c (common_handle_option): Remove deprecated option
8508 -ftree-vectorizer-verbose.
8509 * doc/invoke.texi (Debugging Options): Ditto.
8510 * opts-global.c (handle_common_deferred_options): Ditto.
8511 (dump_remap_tree_vectorizer_verbose): Delete.
8512 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
8514 2013-10-30 DJ Delorie <dj@redhat.com>
8516 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
8517 that take no arguments.
8519 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
8522 * reload1.c (update_eliminables_and_spill): New function, broken
8524 (reload): Use it. Check for frame size change after frame size
8525 alignment, and call update_eliminables_and_spill first if continue-ing.
8527 2013-10-30 Cong Hou <congh@google.com>
8530 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
8531 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
8532 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
8534 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
8536 PR rtl-optimization/58369
8537 * reload1.c (compute_reload_subreg_offset): New function.
8538 (choose_reload_regs): Use it to pass endian-correct
8539 offset to subreg_regno_offset.
8541 2013-10-30 Tobias Burnus <burnus@net-b.de>
8544 * tree-cfg.c (replace_loop_annotate): Replace warning by
8547 2013-10-30 Jason Merrill <jason@redhat.com>
8549 * configure.ac (loose_warn): Add -Wno-format if
8550 --disable-build-format-warnings.
8552 2013-10-30 David Malcolm <dmalcolm@redhat.com>
8554 * cgraphunit.c (analyze_functions): Split symtab_node declarations
8555 onto multiple lines to make things easier for rename_symtab.py.
8557 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
8558 (symtab_semantically_equivalent_p): Likewise.
8560 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
8563 * lra.c (check_rtl): Remove address check before LRA work.
8565 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
8567 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
8568 POINTER_PLUS_EXPR in the defining statement.
8570 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
8572 * regmove.c: Remove.
8573 * tree-pass.h (make_pass_regmove): Remove.
8574 * timevar.def (TV_REGMOVE): Remove.
8575 * passes.def (pass_regmove): Remove.
8576 * opts.c (default_options_table): Remove entry for regmove.
8577 * doc/passes.texi: Remove regmove pass description.
8578 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
8580 (-fdump-rtl-regmove): Ditto.
8581 * common.opt (foptimize-register-move, fregmove): Ignore.
8582 * Makefile.in (OBJS): Remove regmove.o.
8583 * regmove.c: Remove.
8584 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
8586 (struct ira_allocno) New member allocno_prefs.
8587 (ALLOCNO_PREFS): New macro.
8588 (ira_prefs, ira_prefs_num): New external vars.
8589 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
8590 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
8591 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
8593 (ira_add_allocno_copy_to_list): Remove prototype.
8594 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
8595 (ira_pref_iterator): New type.
8596 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
8597 (FOR_EACH_PREF): New macro.
8598 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
8599 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
8601 (ira_setup_alts): New function.
8602 (decrease_live_ranges_number): New function.
8603 (ira): Call the above function.
8604 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
8605 (ira_create_allocno): Initialize allocno prefs.
8606 (pref_pool, pref_vec): New static vars.
8607 (initiate_prefs, find_allocno_pref, ira_create_pref): New
8609 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
8610 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
8611 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
8612 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
8613 (ira_add_allocno_copy_to_list): Make static. Rename to
8614 add_allocno_copy_to_list.
8615 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
8616 swap_allocno_copy_ends_if_necessary.
8617 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
8618 ira_remove_allocno_prefs.
8619 (ira_flattening): Ditto.
8620 (ira_build): Call initiate_prefs, print_prefs.
8621 (ira_destroy): Call finish_prefs.
8622 * ira-color.c (struct update_cost_record): New.
8623 (struct allocno_color_data): Add new member update_cost_records.
8624 (update_cost_record_pool): New static var.
8625 (init_update_cost_records, get_update_cost_record): New functions.
8626 (free_update_cost_record_list, finish_update_cost_records): Ditto.
8627 (struct update_cost_queue_elem): Add member from.
8628 (initiate_cost_update): Call init_update_cost_records.
8629 (finish_cost_update): Call finish_update_cost_records.
8630 (queue_update_cost, get_next_update_cost): Add new param from.
8631 (Update_allocno_cost, update_costs_from_allocno): New functions.
8632 (update_costs_from_prefs): Ditto.
8633 (update_copy_costs): Rename to update_costs_from_copies.
8634 (restore_costs_from_copies): New function.
8635 (update_conflict_hard_regno_costs): Don't go back.
8636 (assign_hard_reg): Call restore_costs_from_copies. Add printing
8638 (pop_allocnos): Add priniting more debug info.
8639 (color_allocnos): Remove prefs for conflicting hard regs.
8640 Call update_costs_from_prefs.
8641 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
8642 (get_dup_num): Rename, modify, and move to ira.c
8643 (process_regs_for_copy): Add prefs.
8644 (add_insn_allocno_copies): Put src as first arg of
8645 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
8646 * ira-costs.c (record_reg_classes): Modify and move code into
8647 record_operands_costs.
8648 (find_costs_and_classes): Create prefs for the hard reg of small
8650 (process_bb_node_for_hard_reg_moves): Add prefs.
8652 2013-10-30 Richard Biener <rguenther@suse.de>
8655 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
8656 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
8658 (pre_and_rev_post_order_compute): ... which now wraps it.
8659 * graph.c (draw_cfg_nodes_no_loops): Use
8660 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
8663 2013-10-30 Christian Bruel <christian.bruel@st.com>
8665 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
8666 (sh_expand_cmpstr): Handle known align and schedule improvements.
8667 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
8668 * config/sh/sh.md (cmpstrnsi): New pattern.
8670 2013-10-30 Martin Jambor <mjambor@suse.cz>
8672 PR rtl-optimization/10474
8673 * ira.c (find_moveable_pseudos): Do not calculate dominance info
8675 (interesting_dest_for_shprep): New function.
8676 (split_live_ranges_for_shrink_wrap): Likewise.
8677 (ira): Calculate dominance info and df analysis. Call
8678 split_live_ranges_for_shrink_wrap.
8680 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8683 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
8685 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8687 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
8688 * tree.h (POINTER_BOUNDS_P): New.
8689 (BOUNDED_TYPE_P): New.
8691 (pointer_bounds_type_node): New.
8692 * tree.c (build_common_tree_nodes): Initialize
8693 pointer_bounds_type_node.
8694 * gimple.h (gimple_call_get_nobnd_arg_index): New.
8695 (gimple_call_num_nobnd_args): New.
8696 (gimple_call_nobnd_arg): New.
8697 (gimple_return_retbnd): New.
8698 (gimple_return_set_retbnd): New
8699 * gimple.c (gimple_build_return): Increase number of ops
8700 for return statement.
8701 (gimple_call_get_nobnd_arg_index): New.
8702 * gimple-pretty-print.c (dump_gimple_return): Print second op.
8704 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8706 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
8707 with "chkp ctor" and "bnd_legacy" attributes.
8708 * gimplify.c (gimplify_init_constructor): Avoid infinite
8709 loop during gimplification of bounds initializer.
8711 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8713 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
8714 (handle_bnd_legacy): New.
8715 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
8716 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
8719 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
8721 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
8722 (BT_FN_PTR_CONST_PTR): New.
8723 (BT_FN_CONST_PTR_CONST_PTR): New.
8724 (BT_FN_PTR_CONST_PTR_SIZE): New.
8725 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
8726 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
8727 (BT_FN_VOID_CONST_PTR_SIZE): New.
8728 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
8729 * chkp-builtins.def: New.
8730 * builtins.def: include chkp-builtins.def.
8731 (DEF_CHKP_BUILTIN): New.
8732 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
8733 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
8734 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
8735 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
8736 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
8737 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
8738 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
8739 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
8740 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
8741 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
8742 * common.opt (fcheck-pointer-bounds): New.
8743 * toplev.c (process_options): Check Pointer Bounds Checker is
8745 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
8747 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8749 * target.def (builtin_chkp_function): New.
8750 (chkp_bound_type): New.
8751 (chkp_bound_mode): New.
8752 (fn_abi_va_list_bounds_size): New.
8753 (load_bounds_for_arg): New.
8754 (store_bounds_for_arg): New.
8755 * targhooks.h (default_load_bounds_for_arg): New.
8756 (default_store_bounds_for_arg): New.
8757 (default_fn_abi_va_list_bounds_size): New.
8758 (default_chkp_bound_type): New.
8759 (default_chkp_bound_mode): New.
8760 (default_builtin_chkp_function): New.
8761 * targhooks.c (default_load_bounds_for_arg): New.
8762 (default_store_bounds_for_arg): New.
8763 (default_fn_abi_va_list_bounds_size): New.
8764 (default_chkp_bound_type): New.
8765 (default_chkp_bound_mode); New.
8766 (default_builtin_chkp_function): New.
8767 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
8768 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
8769 (TARGET_STORE_BOUNDS_FOR_ARG): New.
8770 (TARGET_BUILTIN_CHKP_FUNCTION): New.
8771 (TARGET_CHKP_BOUND_TYPE): New.
8772 (TARGET_CHKP_BOUND_MODE): New.
8773 * doc/tm.texi: Regenerated.
8774 * langhooks.h (lang_hooks): Add chkp_supported field.
8775 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
8776 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
8778 2013-10-29 Andrew Pinski <apinski@cavium.com>
8780 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
8781 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
8782 fails, combining the branches anyways.
8783 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
8784 increases the number of combinings.
8785 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
8787 2013-10-29 Mike Stump <mikestump@comcast.net>
8789 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
8790 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
8791 (make_vector_mode): Increase namebuf to 16.
8792 (emit_insn_modes_h): When processing BImode, don't
8793 also match partial int modes.
8794 (emit_class_narrowest_mode): Likewise.
8796 * config/bfin/bfin-modes.def: Add precision to PDI.
8797 * config/m32c/m32c-modes.def: Add precision to PSI.
8798 * config/msp430/msp430-modes.def: Add precision to PSI.
8799 * config/rs6000/rs6000-modes.def: Add precision to PTI.
8800 * config/sh/sh-modes.def: Add precision to PSI and PDI.
8802 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
8805 * config/sh/sh.md (*addc): Rename existing variations to ...
8806 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
8807 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
8808 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
8809 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
8811 2013-10-29 Teresa Johnson <tejohnson@google.com>
8814 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
8815 insanities when updating probabilities.
8817 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8819 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
8820 prettyprinter for cgraph_node to reflect the conversion of the
8821 symtable types to a C++ class hierarchy: it now *is* a
8822 symtab_node_base, rather than having one (named "symbol").
8824 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
8826 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
8827 __cilkrts_pop_frame. If matched, then return true for built-in
8829 (expand_builtin): Added BUILT_IN_CILK_DETACH and
8830 BUILT_IN_CILK_POP_FRAME case.
8831 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
8832 (lhs_cilk_detect_spawn): Likewise.
8833 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
8834 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
8835 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
8836 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
8837 (LANG_HOOKS_CILKPLUS): Likewise.
8838 * tree.h (CILK_SPAWN_FN): Likewise.
8839 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
8840 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
8841 (OBJS): Added cilk-common.o.
8842 (BUILTINS_DEF): Added cilk-builtins.def.
8843 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
8844 (lhd_cilk_detect_spawn): Likewise.
8845 * langhooks.h (lang_hooks_for_cilkplus): New struct.
8846 (struct lang_hooks): Added new field called "cilkplus."
8847 * cilk-common.c: New file.
8849 * cilk-builtins.def: Likewise.
8850 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
8851 "__cilk" macro and set it to 200.
8852 * function.h (struct function::cilk_frame_decl): New field.
8853 (struct function::is_cilk_function): Likewise.
8854 (struct function::calls_cilk_spawn): Likewise.
8855 * gimplify.c (gimplify_call_expr): Added a check if the function call
8856 being gimplified is a spawn detach point. If so, then add pop_frame
8857 and detach function calls.
8858 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
8859 for gimplifying _Cilk_spawn and _Cilk_sync statements.
8860 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
8861 function. If so, added a _Cilk_sync and gimplified it.
8862 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
8863 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
8864 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
8866 (can_inline_edge_p): Prevent inling of spawnee function.
8867 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
8868 for functions that use Cilk keywords.
8869 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
8870 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
8871 CILK_SYNC_STMT cases.
8872 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
8874 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
8875 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
8876 * passes.texi (Cilk Keywords): New section that describes the compiler
8877 code changes for handling Cilk Keywords.
8879 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8881 Patch autogenerated by refactor_symtab.py from
8882 https://github.com/davidmalcolm/gcc-refactoring-scripts
8883 revision 58bb219cc090b2f4516a9297d868c245495ee622
8885 * asan.c (asan_finish_file): Update for conversion of symtab types to
8886 a true class hierarchy.
8887 * cfgexpand.c (estimated_stack_frame_size): Likewise.
8888 * cgraph.c (cgraph_get_body): Likewise.
8889 (cgraph_get_create_real_symbol_node): Likewise.
8890 (verify_cgraph_node): Likewise.
8891 (verify_edge_corresponds_to_fndecl): Likewise.
8892 (verify_edge_count_and_frequency): Likewise.
8893 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
8894 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
8895 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
8896 (cgraph_node_cannot_return): Likewise.
8897 (cgraph_set_pure_flag_1): Likewise.
8898 (cgraph_set_const_flag_1): Likewise.
8899 (cgraph_set_nothrow_flag_1): Likewise.
8900 (cgraph_make_node_local_1): Likewise.
8901 (cgraph_for_node_and_aliases): Likewise.
8902 (cgraph_for_node_thunks_and_aliases): Likewise.
8903 (cgraph_node_can_be_local_p): Likewise.
8904 (cgraph_node_cannot_be_local_p_1): Likewise.
8905 (cgraph_function_body_availability): Likewise.
8906 (dump_cgraph_node): Likewise.
8907 (cgraph_rtl_info): Likewise.
8908 (cgraph_mark_address_taken_node): Likewise.
8909 (cgraph_remove_node): Likewise.
8910 (cgraph_release_function_body): Likewise.
8911 (cgraph_update_edges_for_call_stmt_node): Likewise.
8912 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
8913 (cgraph_make_edge_direct): Likewise.
8914 (cgraph_resolve_speculation): Likewise.
8915 (cgraph_speculative_call_info): Likewise.
8916 (cgraph_turn_edge_to_speculative): Likewise.
8917 (cgraph_create_edge_1): Likewise.
8918 (cgraph_set_call_stmt): Likewise.
8919 (cgraph_node_for_asm): Likewise.
8920 (cgraph_add_thunk): Likewise.
8921 (cgraph_same_body_alias): Likewise.
8922 (cgraph_create_function_alias): Likewise.
8923 (cgraph_create_node): Likewise.
8924 (cgraph_create_empty_node): Likewise.
8925 (record_function_versions): Likewise.
8926 (used_from_object_file_p): Likewise.
8927 * cgraph.h (symtab_can_be_discarded): Likewise.
8928 (symtab_real_symbol_p): Likewise.
8929 (cgraph_mark_force_output_node): Likewise.
8930 (cgraph_edge_recursive_p): Likewise.
8931 (symtab_alias_target): Likewise.
8932 (varpool_all_refs_explicit_p): Likewise.
8933 (varpool_can_remove_if_no_refs): Likewise.
8934 (cgraph_only_called_directly_or_aliased_p): Likewise.
8935 (cgraph_next_function_with_gimple_body): Likewise.
8936 (cgraph_first_function_with_gimple_body): Likewise.
8937 (cgraph_function_with_gimple_body_p): Likewise.
8938 (cgraph_next_function): Likewise.
8939 (cgraph_first_function): Likewise.
8940 (cgraph_next_defined_function): Likewise.
8941 (cgraph_first_defined_function): Likewise.
8942 (varpool_next_defined_variable): Likewise.
8943 (varpool_first_defined_variable): Likewise.
8944 (varpool_next_static_initializer): Likewise.
8945 (varpool_first_static_initializer): Likewise.
8946 (varpool_next_variable): Likewise.
8947 (varpool_first_variable): Likewise.
8948 (varpool_node_name): Likewise.
8949 (varpool): Likewise.
8951 (is_a_helper <varpool_node>::test): Likewise.
8952 (is_a_helper <cgraph_node>::test): Likewise.
8953 (varpool_variable_node): Likewise.
8954 (cgraph_function_or_thunk_node): Likewise.
8955 (varpool_alias_target): Likewise.
8956 (cgraph_alias_target): Likewise.
8957 (cgraph_node_name): Likewise.
8958 (varpool_node_asm_name): Likewise.
8959 (cgraph_node_asm_name): Likewise.
8960 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
8961 (cgraph_rebuild_references): Likewise.
8962 (rebuild_cgraph_edges): Likewise.
8963 (record_eh_tables): Likewise.
8964 (build_cgraph_edges): Likewise.
8965 (mark_store): Likewise.
8966 (mark_load): Likewise.
8967 (mark_address): Likewise.
8968 (record_type_list): Likewise.
8969 (record_reference): Likewise.
8970 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
8971 (cgraph_materialize_clone): Likewise.
8972 (cgraph_function_versioning): Likewise.
8973 (cgraph_copy_node_for_versioning): Likewise.
8974 (update_call_expr): Likewise.
8975 (cgraph_find_replacement_node): Likewise.
8976 (cgraph_create_virtual_clone): Likewise.
8977 (cgraph_clone_node): Likewise.
8978 * cgraphunit.c (compile): Likewise.
8979 (output_weakrefs): Likewise.
8980 (output_in_order): Likewise.
8981 (expand_function): Likewise.
8982 (assemble_thunks_and_aliases): Likewise.
8983 (expand_thunk): Likewise.
8984 (mark_functions_to_output): Likewise.
8985 (handle_alias_pairs): Likewise.
8986 (analyze_functions): Likewise.
8987 (walk_polymorphic_call_targets): Likewise.
8988 (varpool_finalize_decl): Likewise.
8989 (process_function_and_variable_attributes): Likewise.
8990 (cgraph_process_same_body_aliases): Likewise.
8991 (analyze_function): Likewise.
8992 (cgraph_add_new_function): Likewise.
8993 (cgraph_finalize_function): Likewise.
8994 (referred_to_p): Likewise.
8995 (cgraph_reset_node): Likewise.
8996 (cgraph_process_new_functions): Likewise.
8997 (enqueue_node): Likewise.
8998 (decide_is_symbol_needed): Likewise.
8999 * coverage.c (coverage_compute_profile_id): Likewise.
9000 * dbxout.c (dbxout_expand_expr): Likewise.
9001 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
9002 (reference_to_unused): Likewise.
9003 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
9004 * gimplify.c (unvisit_body): Likewise.
9005 (unshare_body): Likewise.
9006 * ipa-cp.c (ipcp_generate_summary): Likewise.
9007 (ipcp_decision_stage): Likewise.
9008 (identify_dead_nodes): Likewise.
9009 (decide_whether_version_node): Likewise.
9010 (decide_about_value): Likewise.
9011 (perhaps_add_new_callers): Likewise.
9012 (create_specialized_node): Likewise.
9013 (update_profiling_info): Likewise.
9014 (ipcp_propagate_stage): Likewise.
9015 (estimate_local_effects): Likewise.
9016 (good_cloning_opportunity_p): Likewise.
9017 (devirtualization_time_bonus): Likewise.
9018 (propagate_constants_accross_call): Likewise.
9019 (initialize_node_lattices): Likewise.
9020 (ipcp_cloning_candidate_p): Likewise.
9021 (determine_versionability): Likewise.
9022 (print_all_lattices): Likewise.
9023 (print_lattice): Likewise.
9024 (ipcp_discover_new_direct_edges): Likewise.
9025 * ipa-devirt.c (ipa_devirt): Likewise.
9026 (likely_target_p): Likewise.
9027 (update_type_inheritance_graph): Likewise.
9028 (possible_polymorphic_call_target_p): Likewise.
9029 (dump_possible_polymorphic_call_targets): Likewise.
9030 (devirt_variable_node_removal_hook): Likewise.
9031 (record_binfo): Likewise.
9032 (maybe_record_node): Likewise.
9033 (build_type_inheritance_graph): Likewise.
9034 * ipa-inline-analysis.c (inline_write_summary): Likewise.
9035 (inline_generate_summary): Likewise.
9036 (inline_analyze_function): Likewise.
9037 (do_estimate_growth): Likewise.
9038 (simple_edge_hints): Likewise.
9039 (estimate_node_size_and_time): Likewise.
9040 (estimate_edge_devirt_benefit): Likewise.
9041 (compute_inline_parameters): Likewise.
9042 (estimate_function_body_sizes): Likewise.
9043 (compute_bb_predicates): Likewise.
9044 (initialize_inline_failed): Likewise.
9045 (dump_inline_summary): Likewise.
9046 (dump_inline_edge_summary): Likewise.
9047 * ipa-inline-transform.c (inline_transform): Likewise.
9048 (preserve_function_body_p): Likewise.
9049 (save_inline_function_body): Likewise.
9050 (inline_call): Likewise.
9051 (clone_inlined_nodes): Likewise.
9052 (can_remove_node_now_p): Likewise.
9053 (can_remove_node_now_p_1): Likewise.
9054 * ipa-inline.c (early_inliner): Likewise.
9055 (early_inline_small_functions): Likewise.
9056 (inline_always_inline_functions): Likewise.
9057 (ipa_inline): Likewise.
9058 (flatten_function): Likewise.
9059 (inline_small_functions): Likewise.
9060 (speculation_useful_p): Likewise.
9061 (recursive_inlining): Likewise.
9062 (update_caller_keys): Likewise.
9063 (reset_edge_caches): Likewise.
9064 (update_edge_key): Likewise.
9065 (edge_badness): Likewise.
9066 (relative_time_benefit): Likewise.
9067 (want_inline_self_recursive_call_p): Likewise.
9068 (want_inline_small_function_p): Likewise.
9069 (want_early_inline_function_p): Likewise.
9070 (num_calls): Likewise.
9071 (can_early_inline_edge_p): Likewise.
9072 (can_inline_edge_p): Likewise.
9073 (report_inline_failed_reason): Likewise.
9074 * ipa-profile.c (ipa_profile): Likewise.
9075 (ipa_propagate_frequency): Likewise.
9076 (ipa_propagate_frequency_1): Likewise.
9077 (ipa_profile_generate_summary): Likewise.
9078 * ipa-prop.c (ipcp_transform_function): Likewise.
9079 (read_replacements_section): Likewise.
9080 (ipa_prop_read_section): Likewise.
9081 (ipa_modify_call_arguments): Likewise.
9082 (ipa_print_node_params): Likewise.
9083 (propagate_controlled_uses): Likewise.
9084 (update_indirect_edges_after_inlining): Likewise.
9085 (remove_described_reference): Likewise.
9086 (ipa_make_edge_direct_to_target): Likewise.
9087 (ipa_analyze_node): Likewise.
9088 (ipa_analyze_params_uses): Likewise.
9089 (ipa_compute_jump_functions): Likewise.
9090 (ipa_get_callee_param_type): Likewise.
9091 (ipa_print_node_jump_functions): Likewise.
9092 (ipa_initialize_node_params): Likewise.
9093 (ipa_populate_param_decls): Likewise.
9094 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
9095 (write_agg_replacement_chain): Likewise.
9096 (ipa_write_node_info): Likewise.
9097 (ipa_edge_duplication_hook): Likewise.
9098 (try_decrement_rdesc_refcount): Likewise.
9099 * ipa-pure-const.c (propagate_nothrow): Likewise.
9100 (propagate_pure_const): Likewise.
9101 (pure_const_read_summary): Likewise.
9102 (pure_const_write_summary): Likewise.
9103 (analyze_function): Likewise.
9104 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
9105 (ipa_ref_referring_ref_list): Likewise.
9106 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
9107 (ipa_remove_stmt_references): Likewise.
9108 (ipa_find_reference): Likewise.
9109 (ipa_dump_referring): Likewise.
9110 (ipa_dump_references): Likewise.
9111 (ipa_record_reference): Likewise.
9112 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
9113 (ipa_reference_write_optimization_summary): Likewise.
9114 (write_node_summary_p): Likewise.
9115 (propagate): Likewise.
9116 (read_write_all_from_decl): Likewise.
9117 (generate_summary): Likewise.
9118 (analyze_function): Likewise.
9119 (propagate_bits): Likewise.
9120 (ipa_reference_get_not_written_global): Likewise.
9121 (ipa_reference_get_not_read_global): Likewise.
9122 * ipa-split.c (execute_split_functions): Likewise.
9123 (split_function): Likewise.
9124 * ipa-utils.c (ipa_merge_profiles): Likewise.
9125 (dump_cgraph_node_set): Likewise.
9126 (ipa_reverse_postorder): Likewise.
9127 (ipa_edge_within_scc): Likewise.
9128 (ipa_get_nodes_in_cycle): Likewise.
9129 (ipa_free_postorder_info): Likewise.
9130 (ipa_reduced_postorder): Likewise.
9131 (searchc): Likewise.
9132 (recursive_call_p): Likewise.
9133 * ipa.c (ipa_cdtor_merge): Likewise.
9134 (record_cdtor_fn): Likewise.
9135 (function_and_variable_visibility): Likewise.
9136 (varpool_externally_visible_p): Likewise.
9137 (cgraph_externally_visible_p): Likewise.
9138 (comdat_can_be_unshared_p): Likewise.
9139 (comdat_can_be_unshared_p_1): Likewise.
9140 (address_taken_from_non_vtable_p): Likewise.
9141 (ipa_discover_readonly_nonaddressable_vars): Likewise.
9142 (symtab_remove_unreachable_nodes): Likewise.
9143 (walk_polymorphic_call_targets): Likewise.
9144 (process_references): Likewise.
9145 (enqueue_node): Likewise.
9146 (has_addr_references_p): Likewise.
9147 (cgraph_non_local_node_p_1): Likewise.
9148 * is-a.h (varpool_analyze_node): Likewise.
9149 * lto-cgraph.c (input_symtab): Likewise.
9150 (merge_profile_summaries): Likewise.
9151 (input_cgraph_1): Likewise.
9152 (input_edge): Likewise.
9153 (input_varpool_node): Likewise.
9154 (input_node): Likewise.
9155 (input_overwrite_node): Likewise.
9156 (compute_ltrans_boundary): Likewise.
9157 (output_refs): Likewise.
9158 (lto_output_varpool_node): Likewise.
9159 (lto_output_node): Likewise.
9160 (reachable_from_other_partition_p): Likewise.
9161 (referenced_from_other_partition_p): Likewise.
9162 (lto_output_edge): Likewise.
9163 (output_node_opt_summary): Likewise.
9164 (add_node_to): Likewise.
9165 (reachable_from_this_partition_p): Likewise.
9166 (lto_set_symtab_encoder_in_partition): Likewise.
9167 (lto_symtab_encoder_in_partition_p): Likewise.
9168 (lto_set_symtab_encoder_encode_initializer): Likewise.
9169 (lto_symtab_encoder_encode_initializer_p): Likewise.
9170 (lto_set_symtab_encoder_encode_body): Likewise.
9171 (lto_symtab_encoder_encode_body_p): Likewise.
9172 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
9174 * lto-streamer-in.c (lto_read_body): Likewise.
9175 (fixup_call_stmt_edges): Likewise.
9176 (fixup_call_stmt_edges_1): Likewise.
9177 * lto-streamer-out.c (produce_symtab): Likewise.
9178 (output_symbol_p): Likewise.
9179 (write_symbol): Likewise.
9180 (lto_output): Likewise.
9181 (copy_function): Likewise.
9182 (output_function): Likewise.
9183 * passes.c (function_called_by_processed_nodes_p): Likewise.
9184 (ipa_write_optimization_summaries): Likewise.
9185 (ipa_write_summaries): Likewise.
9186 (do_per_function_toporder): Likewise.
9187 (do_per_function): Likewise.
9188 (dump_passes): Likewise.
9189 * symtab.c (symtab_semantically_equivalent_p): Likewise.
9190 (symtab_nonoverwritable_alias): Likewise.
9191 (symtab_nonoverwritable_alias_1): Likewise.
9192 (symtab_for_node_and_aliases): Likewise.
9193 (symtab_resolve_alias): Likewise.
9194 (fixup_same_cpp_alias_visibility): Likewise.
9195 (symtab_alias_ultimate_target): Likewise.
9196 (symtab_used_from_object_file_p): Likewise.
9197 (verify_symtab_base): Likewise.
9198 (dump_symtab_base): Likewise.
9199 (symtab_node_name): Likewise.
9200 (symtab_node_asm_name): Likewise.
9201 (symtab_dissolve_same_comdat_group_list): Likewise.
9202 (symtab_add_to_same_comdat_group): Likewise.
9203 (symtab_unregister_node): Likewise.
9204 (symtab_insert_node_to_hashtable): Likewise.
9205 (symtab_register_node): Likewise.
9206 (unlink_from_assembler_name_hash): Likewise.
9207 (insert_to_assembler_name_hash): Likewise.
9208 (eq_assembler_name): Likewise.
9209 (hash_node_by_assembler_name): Likewise.
9210 (eq_node): Likewise.
9211 (hash_node): Likewise.
9212 * toplev.c (wrapup_global_declaration_2): Likewise.
9213 * trans-mem.c (ipa_tm_execute): Likewise.
9214 (ipa_tm_transform_clone): Likewise.
9215 (ipa_tm_transform_transaction): Likewise.
9216 (ipa_tm_transform_calls_redirect): Likewise.
9217 (ipa_tm_insert_gettmclone_call): Likewise.
9218 (ipa_tm_insert_irr_call): Likewise.
9219 (ipa_tm_create_version): Likewise.
9220 (ipa_tm_create_version_alias): Likewise.
9221 (ipa_tm_mark_forced_by_abi_node): Likewise.
9222 (ipa_tm_mark_force_output_node): Likewise.
9223 (ipa_tm_diagnose_tm_safe): Likewise.
9224 (ipa_tm_mayenterirr_function): Likewise.
9225 (ipa_tm_scan_irr_function): Likewise.
9226 (ipa_tm_note_irrevocable): Likewise.
9227 (ipa_tm_scan_calls_clone): Likewise.
9228 (get_cg_data): Likewise.
9229 * tree-eh.c (tree_could_trap_p): Likewise.
9230 * tree-emutls.c (ipa_lower_emutls): Likewise.
9231 (create_emultls_var): Likewise.
9232 (lower_emutls_function_body): Likewise.
9233 (gen_emutls_addr): Likewise.
9234 (emutls_decl): Likewise.
9235 (new_emutls_decl): Likewise.
9236 * tree-inline.c (tree_function_versioning): Likewise.
9237 (optimize_inline_calls): Likewise.
9238 (expand_call_inline): Likewise.
9239 (estimate_num_insns): Likewise.
9240 (copy_bb): Likewise.
9241 (delete_unreachable_blocks_update_callgraph): Likewise.
9242 * tree-nested.c (gimplify_all_functions): Likewise.
9243 (create_nesting_tree): Likewise.
9244 (check_for_nested_with_variably_modified): Likewise.
9245 * tree-pretty-print.c (dump_function_header): Likewise.
9246 * tree-profile.c (tree_profiling): Likewise.
9247 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
9248 (modify_function): Likewise.
9249 (convert_callers): Likewise.
9250 (convert_callers_for_node): Likewise.
9251 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
9252 (associate_varinfo_to_alias): Likewise.
9253 (create_variable_info_for): Likewise.
9254 (get_constraint_for_ssa_var): Likewise.
9255 * tree-vectorizer.c (increase_alignment): Likewise.
9256 * tree.c (find_decls_types_in_var): Likewise.
9257 (find_decls_types_in_node): Likewise.
9258 (free_lang_data_in_decl): Likewise.
9259 * value-prof.c (gimple_ic_transform): Likewise.
9260 (gimple_ic): Likewise.
9261 (check_ic_target): Likewise.
9262 (init_node_map): Likewise.
9263 * varasm.c (decl_binds_to_current_def_p): Likewise.
9264 (default_binds_local_p_1): Likewise.
9265 (dump_tm_clone_pairs): Likewise.
9266 (assemble_alias): Likewise.
9267 (find_decl): Likewise.
9268 (mark_decl_referenced): Likewise.
9269 * varpool.c (varpool_for_node_and_aliases): Likewise.
9270 (varpool_extra_name_alias): Likewise.
9271 (varpool_create_variable_alias): Likewise.
9272 (add_new_static_var): Likewise.
9273 (varpool_finalize_named_section_flags): Likewise.
9274 (varpool_remove_unreferenced_decls): Likewise.
9275 (enqueue_node): Likewise.
9276 (varpool_assemble_decl): Likewise.
9277 (assemble_aliases): Likewise.
9278 (varpool_analyze_node): Likewise.
9279 (cgraph_variable_initializer_availability): Likewise.
9280 (varpool_add_new_variable): Likewise.
9281 (ctor_for_folding): Likewise.
9282 (dump_varpool_node): Likewise.
9283 (varpool_remove_initializer): Likewise.
9284 (varpool_remove_node): Likewise.
9285 (varpool_node_for_decl): Likewise.
9286 (varpool_create_empty_node): Likewise.
9287 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
9288 (ix86_get_function_versions_dispatcher): Likewise.
9290 2013-10-29 David Malcolm <dmalcolm@redhat.com>
9292 * cgraph.h (symtab_node_base): Convert to a class;
9293 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
9294 chain_next/prev from symtab_node_def.
9295 (cgraph_node): Inherit from symtab_node; add GTY option
9296 tag ("SYMTAB_FUNCTION").
9297 (varpool_node): Inherit from symtab_node; add GTY option
9298 tag ("SYMTAB_VARIABLE").
9299 (symtab_node_def): Remove.
9300 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
9301 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
9302 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
9303 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
9305 * ipa-ref.h (symtab_node_def): Drop.
9306 (symtab_node): Change underlying type from symtab_node_def to
9308 (const_symtab_node): Likwise.
9310 * is-a.h: Update examples in comment.
9312 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
9313 (assembler_name_hash): Likewise.
9315 2013-10-29 Martin Liska <marxin.liska@gmail.com>
9317 * doc/tree-ssa.texi (gimple_phi_result): Document.
9318 (gimple_phi_num_args, gimple_phi_arg): Likewise.
9319 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
9320 (PHI_RESULT, PHI_NUM_ARGS): Remove.
9321 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
9323 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
9325 * expr.h: Revert change and include tree-core.h.
9326 * rtl.h: Revert change and don't include tree-core.h.
9328 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
9330 * config/darwin.c: Include gimple.h.
9331 * config/i386/winnt.c: Likewise.
9333 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
9335 PR tree-optimization/19831
9336 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
9338 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
9340 * tree-outof-ssa.h: Remove include files.
9341 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
9343 * tree-ssa-coalesce.c: Likewise.
9344 * cfgexpand.c: Likewise.
9345 * tree-ssa-ter.c: Likewise.
9346 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
9347 * lto-streamer.h: Likewise.
9348 * cgraphbuild.c: Add gimple.h to include list.
9349 * data-streamer-in.c: Likewise.
9350 * ipa-cp.c: Likewise.
9351 * tree-streamer.c: Likewise.
9352 * lto-compress.c: Likewise.
9353 * ipa-reference.c: Likewise.
9354 * data-streamer-out.c: Likewise.
9355 * lto-cgraph.c: Likewise.
9356 * cgraphclones.c: Likewise.
9357 * ipa-utils.c: Likewise.
9358 * data-streamer.c: Likewise.
9359 * ipa-split.c: Likewise.
9360 * lto-section-in.c: Likewise.
9361 * tree-streamer-out.c: Likewise.
9362 * ipa-prop.c: Likewise.
9363 * tree-streamer-in.c: Likewise.
9364 * symtab.c: Likewise.
9365 * opts-global.c: Likewise.
9366 * lto-opts.c: Likewise.
9367 * lto-section-out.c: Likewise.
9368 * lto-streamer.c: Likewise.
9369 * rtl.h: Add tree-core.h to include list.
9370 * expr.h: Remove tree-core.h from include list.
9371 * gimple.h: Likewise.
9372 * ipa-utils.h: Likewise.
9373 * streamer-hooks.h: Likewise.
9374 * streamer-hooks.c: Include input.h.
9376 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9378 * config/arm/arm.c (cortexa7_extra_costs): New table.
9379 (arm_cortex_a7_tune): New.
9380 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
9382 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
9384 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
9386 2013-10-29 David Malcolm <dmalcolm@redhat.com>
9388 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
9389 to use autogenerated markers for a class-hierarchy, every class
9390 must have a GTY marker.
9391 * gengtype.h (struct type): Add linked list of subclasses to
9392 the "s" member of the union.
9393 (add_subclass): New decl.
9394 * gengtype-state.c (read_state_struct_type): Set up subclass
9396 * gengtype.c (get_ultimate_base_class): New.
9397 (add_subclass): New.
9398 (new_structure): Set up subclass linked list.
9399 (set_gc_used_type): Propagate usage information to subclasses.
9400 (output_mangled_typename): Use get_ultimate_base_class.
9401 (walk_subclasses): Use the subclass linked list, avoiding an
9402 O(N^2) when writing out all types.
9403 (walk_type): Issue an error if the base class is missing a tag,
9404 rather than generating bogus C code. Add a gcc_unreachable
9405 default case, in case people omit tags from concrete subclasses,
9406 or get the values wrong.
9407 (write_func_for_structure): Issue an error for subclasses for
9408 which the base doesn't have a "desc", since otherwise the
9409 autogenerated routines for the base would silently fail to visit
9410 any subclass fields.
9411 (write_root): Use get_ultimate_base_class, tweaking constness of
9412 tp to match that function's signature.
9414 2013-10-29 David Malcolm <dmalcolm@redhat.com>
9416 * doc/gty.texi (GTY Options): Add note about inheritance to
9417 description of desc and tag.
9418 (Inheritance and GTY): New.
9420 2013-10-29 David Malcolm <dmalcolm@redhat.com>
9422 * gengtype-parse.c (opts_have): Drop "static" so that
9423 we can use this from gengtype.c.
9424 * gengtype.c (set_gc_used_type): Mark any base class as used;
9425 update field traversal to visit inherited fields.
9426 (output_mangled_typename): Convert references to classes within
9427 an inheritance hierarchy to reference the ultimate base class,
9428 since only it will have gt_ functions.
9429 (get_string_option): New.
9430 (walk_subclasses): New.
9431 (walk_type): Treat GTY structs that have a "desc" as being the
9432 root of an inheritance hierarchy. Generate a switch on it
9433 within the marking function which walks all subclasses, adding
9434 cases for them via walk_subclasses. For subclasses, visit all
9435 fields of the type (including inherited ones).
9436 (write_func_for_structure): Don't write fns for subclasses, only
9437 for the ultimate base class within an inheritance hierarchy.
9438 Subclasses-marking will be handled by the base class marking functions.
9439 (write_types): Likewise.
9440 (write_local_func_for_structure): Likewise.
9441 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
9442 a "tag" option (and are thus concrete subclasses).
9443 (write_root): Use the marker function for the ultimate base class.
9444 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
9445 (opts_have): Add declaration.
9447 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
9449 * lra-spills.c (lra_final_code_change): Remove useless move insns
9450 originated from moves of pseudos.
9452 2013-10-28 Jeff Law <law@redhat.com>
9454 * lower-subreg.c (resolve_simple_move): Fix comment typo.
9456 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
9458 * df-scan.c (df_collection_rec): Adjust.
9459 (copy_defs): New constant.
9460 (copy_uses): Likewise.
9461 (copy_eq_uses): Likewise.
9462 (copy_mw): Likewise.
9463 (copy_all): Likewise.
9464 (df_insn_rescan): Adjust.
9465 (df_notes_rescan): Likewise.
9466 (df_swap_refs): Likewise.
9467 (df_sort_and_compress_refs): Likewise.
9468 (df_sort_and_compress_mws): Likewise.
9469 (df_install_refs): Likewise.
9470 (df_install_mws): Likewise.
9471 (df_refs_add_to_chains): Add flags parameter controlling which vectors
9473 (df_bb_refs_record): Adjust.
9474 (df_record_entry_block_defs): Likewise.
9475 (df_record_exit_block_defs): Likewise.
9476 (df_refs_verify): Likewise.
9477 (df_mws_verify): Likewise.
9478 (df_insn_refs_verify): Likewise.
9479 (df_bb_verify): Likewise.
9480 * ipa-pure-const.c (finish_state): Remove.
9481 (propagate): Adjust.
9482 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
9483 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
9484 var-tracking.c: Adjust.
9485 * vec.c (stack_vecs): Remove.
9486 (register_stack_vec): Likewise.
9487 (stack_vec_register_index): Likewise.
9488 (unregister_stack_vec): Likewise.
9489 * vec.h (struct va_stack): Remove.
9490 (struct vec<T, A, vl_ptr>): Specialize as
9491 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
9492 allocation strategy compatable with the vl_ptr layout.
9493 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
9494 specialization anyway.
9495 (class stack_vec): New class.
9496 (vec_stack_alloc): Remove.
9497 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
9499 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
9500 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9501 Sergey Lega <sergey.s.lega@intel.com>
9502 Anna Tikhonova <anna.tikhonova@intel.com>
9503 Ilya Tocar <ilya.tocar@intel.com>
9504 Andrey Turetskiy <andrey.turetskiy@intel.com>
9505 Ilya Verbin <ilya.verbin@intel.com>
9506 Kirill Yukhin <kirill.yukhin@intel.com>
9507 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9509 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
9510 (*prefetch_avx512pf_<mode>): New.
9511 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
9512 (avx512f_maskcmp<mode>3): Ditto.
9513 (vashrv16si3): Ditto.
9515 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
9516 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9517 Sergey Lega <sergey.s.lega@intel.com>
9518 Anna Tikhonova <anna.tikhonova@intel.com>
9519 Ilya Tocar <ilya.tocar@intel.com>
9520 Andrey Turetskiy <andrey.turetskiy@intel.com>
9521 Ilya Verbin <ilya.verbin@intel.com>
9522 Kirill Yukhin <kirill.yukhin@intel.com>
9523 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9525 * config/i386/i386.md (any_truncate): New.
9526 (trunsuffix): Ditto.
9527 * config/i386/predicates.md (const_8_to_9_operand): New.
9528 (const_10_to_11_operand): Ditto.
9529 (const_12_to_13_operand): Ditto.
9530 (const_14_to_15_operand): Ditto.
9531 (const_16_to_19_operand): Ditto.
9532 (const_20_to_23_operand): Ditto.
9533 (const_24_to_27_operand): Ditto.
9534 (const_28_to_31_operand): Ditto.
9535 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
9536 (cvtusi2<ssescalarmodesuffix>32): New.
9537 (cvtusi2<ssescalarmodesuffix>64): Ditto.
9538 (ufloatv16siv16sf2): Ditto.
9539 (avx512f_fix_notruncv16sfv16si): Ditto.
9540 (avx512f_ufix_notruncv16sfv16si): Ditto.
9541 (avx512f_vcvtss2usi): Ditto.
9542 (avx512f_vcvtss2usiq): Ditto.
9543 (avx512f_vcvttss2usi): Ditto.
9544 (avx512f_vcvttss2usiq): Ditto.
9545 (avx512f_vcvtsd2usi): Ditto.
9546 (avx512f_vcvtsd2usiq): Ditto.
9547 (avx512f_vcvttsd2usi): Ditto.
9548 (avx512f_vcvttsd2usiq): Ditto.
9549 (ufloatv8siv8df): Ditto.
9550 (avx512f_cvtdq2pd512_2): Ditto.
9551 (avx512f_cvtpd2dq512): Ditto.
9552 (avx512f_ufix_notruncv8dfv8si): Ditto.
9553 (avx512f_cvtpd2ps512): Ditto.
9554 (vec_unpacks_lo_v16sf): Ditto.
9555 (vec_unpacks_hi_v16sf): Ditto.
9556 (vec_unpacks_float_hi_v16si): Ditto.
9557 (vec_unpacks_float_lo_v16si): Ditto.
9558 (avx512f_unpckhps512): Ditto.
9559 (avx512f_unpcklps512): Ditto.
9560 (avx512f_movshdup512): Ditto.
9561 (avx512f_movsldup512): Ditto.
9562 (vec_extract_lo_v32hi): Ditto.
9563 (vec_extract_hi_v32hi): Ditto.
9564 (vec_extract_lo_v64qi): Ditto.
9565 (vec_extract_hi_v64qi): Ditto.
9566 (avx512f_unpckhpd512): Ditto.
9567 (avx512f_movddup512): Ditto.
9568 (avx512f_unpcklpd512): Ditto.
9569 (*avx512f_unpcklpd512): Ditto.
9570 (avx512f_shufps512_1): Ditto.
9571 (avx512f_shufpd512_1): Ditto.
9572 (avx512f_interleave_highv8di): Ditto.
9573 (avx512f_interleave_lowv8di): Ditto.
9574 (PMOV_DST_MODE): Ditto.
9575 (pmov_src_mode): Ditto.
9576 (pmov_src_lower): Ditto.
9578 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
9579 (*avx512f_<code>v8div16qi2): Ditto.
9580 (*avx512f_<code>v8div16qi2_store): Ditto.
9581 (vec_widen_umult_even_v16si): Ditto.
9582 (*vec_widen_umult_even_v16si): Ditto.
9583 (vec_widen_smult_even_v16si): Ditto.
9584 (*vec_widen_smult_even_v16si): Ditto.
9585 (avx512f_interleave_highv16si): Ditto.
9586 (avx512f_interleave_lowv16si): Ditto.
9587 (avx512f_<code>v16qiv16si2): Ditto.
9588 (avx512f_<code>v16hiv16si2): Ditto.
9589 (avx512f_<code>v8qiv8di2): Ditto.
9590 (avx512f_<code>v8hiv8di2): Ditto.
9591 (avx512f_<code>v8siv8di2): Ditto.
9592 (avx512cd_maskb_vec_dupv8di): Ditto.
9593 (avx512cd_maskw_vec_dupv16si): Ditto.
9594 (avx512f_vcvtph2ps512): Ditto.
9595 (avx512f_vcvtps2ph512): Ditto.
9596 (VEC_EXTRACT_MODE): Extened with wider modes.
9597 (VEC_PERM_AVX2): Ditto.
9598 (VEC_PERM_CONST): Ditto.
9600 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
9602 * config/arc/arc.c (arc_ccfsm_post_advance):
9603 Add comment about TYPE_RETURN.
9605 2013-10-28 Bin Cheng <bin.cheng@arm.com>
9607 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
9608 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
9609 (strip_offset): Convert offset to unsigned number.
9611 2013-10-27 Tom de Vries <tom@codesourcery.com>
9613 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
9614 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
9616 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
9618 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
9619 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
9620 (TARGET_BIG_ENDIAN): New macro.
9621 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
9622 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
9623 * config/sh/sh.c: Likewise.
9624 * config/sh/sh.h: Likewise.
9626 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
9628 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
9629 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
9631 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
9633 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
9635 (cmpstr_t, cmpstrsi): Fix formatting.
9637 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
9640 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
9641 addressing, do not use general_operand for memory operands.
9643 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
9646 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9647 * lra-spills.c (lra_final_code_change): Remove useless move insns.
9649 2013-10-26 Jeff Law <law@redhat.com>
9651 * predict.c (PRED_MUDFLAP): Remove.
9652 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
9654 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
9655 (OBJS): Remove tree-nomudflap.o
9656 (GTFILES): Remove tree-mudflap.c
9657 * builtins.c (expand_builtin_alloc): Remove mudflap support.
9658 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
9659 (mfwrap_spec, mflib_spec): Likewise.
9660 (cpp_unique_options, cc1_options, static_specs): Likewise.
9661 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
9662 * passes.def: Likewise.
9663 * toplev.c (compile_file, process_options): Likewise.
9664 * tree-inline.c (copy_tree_r): Likewise.
9665 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
9666 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
9667 (build_constant_desc, output_constant_def_contents): Likewise.
9668 (categorize_decl_for_section): Likewise.
9669 * tree-mudflap.c: Removed.
9670 * tree-mudflap.h: Removed.
9671 * tree-nomudflap.c: Removed.
9672 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
9673 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
9674 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
9675 * config/sol2.h (MFLIB_SPEC): Likewise.
9676 * doc/install.texi: Remove mudflap references.
9677 * doc/passes.texi: Similarly.
9678 * doc/sourcebuild.texi: Similarly.
9679 * doc/invoke.texi: Remove mudlfap related options.
9681 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9683 PR rtl-optimization/58759
9684 * lra-constraints.c (lra_constraints): Remove wrong condition to
9685 remove insn setting up an equivalent pseudo.
9687 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9689 * config/rs6000/rs6000-protos.h
9690 (rs6000_secondary_memory_needed_mode): New prototype.
9691 * config/rs6000/rs6000.c: Include ira.h.
9692 (TARGET_LRA_P): Redefine.
9693 (rs6000_legitimate_offset_address_p): Call
9694 legitimate_constant_pool_address_p in strict mode for LRA.
9695 (rs6000_legitimate_address_p): Ditto.
9696 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
9697 (rs6000_emit_move): Add LRA version of code to generate load/store
9699 (rs6000_secondary_memory_needed_mode): New.
9700 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
9701 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
9702 constants, memory, and FP registers.
9703 (rs6000_lra_p): New.
9704 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
9705 * config/rs6000/rs6000.opt (mlra): New option.
9706 * lra-spills.c (lra_final_code_change): Remove useless move insns.
9708 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
9710 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
9711 has_single_use () and not do the conversion if has_single_use ()
9712 returns false for the multiplication result.
9714 2013-10-25 David Malcolm <dmalcolm@redhat.com>
9716 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
9717 to "NODE", since this works on a "tree", not an
9719 (CONSTANT_CLASS_P): Likewise.
9722 (INDIRECT_REF_P): Likewise.
9723 (REFERENCE_CLASS_P): Likewise.
9724 (COMPARISON_CLASS_P): Likewise.
9725 (UNARY_CLASS_P): Likewise.
9726 (BINARY_CLASS_P): Likewise.
9727 (STATEMENT_CLASS_P): Likewise.
9728 (VL_EXP_CLASS_P): Likewise.
9729 (EXPRESSION_CLASS_P): Likewise.
9730 (IS_TYPE_OR_DECL_P): Likewise.
9732 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
9734 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
9735 ADDR_EXPR in the defining statement.
9737 2013-10-25 Richard Biener <rguenther@suse.de>
9739 PR tree-optimization/58626
9740 * tree-loop-distribution.c (enum rdg_dep_type): Remove
9741 anti_dd, output_dd and input_dd.
9742 (struct rdg_edge): Remove level and relation members.
9743 (RDGE_LEVEL, RDGE_RELATION): Remove.
9744 (dot_rdg_1): Adjust.
9745 (create_rdg_edge_for_ddr): Remove.
9746 (create_rdg_edges_for_scalar): Adjust.
9747 (create_edge_for_control_dependence): Likewise.
9748 (create_rdg_edges): Split into ...
9749 (create_rdg_flow_edges): ... this
9750 (create_rdg_cd_edges): ... and this.
9752 (build_rdg): Likewise, do not compute data dependences or
9754 (pg_add_dependence_edges): New function.
9756 (distribute_loop): First apply all non-dependence based
9757 partition mergings. Then compute dependences between partitions
9758 and merge and order partitions according to them.
9760 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
9762 PR rtl-optimization/58831
9763 * alias.c (init_alias_analysis): At the beginning of each iteration,
9764 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
9766 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
9768 * recog.c (search_ofs): New static variable moved from...
9769 (peep2_find_free_register): ...here.
9770 (peephole2_optimize): Initialize it.
9772 2013-10-25 Tobias Burnus <burnus@net-b.de>
9774 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
9776 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
9778 * config/i386/i386.h (TARGET_MPX): New define.
9779 (TARGET_MPX_P): Ditto.
9781 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
9783 * config/i386/constraints.md (B): New.
9786 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
9787 * config/i386/i386-modes.def (BND32): New.
9789 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
9790 * config/i386/i386.c (isa_opts): Add mmpx.
9791 (regclass_map): Add bound registers.
9792 (dbx_register_map): Likewise.
9793 (dbx64_register_map): Likewise.
9794 (svr4_dbx_register_map): Likewise.
9796 (ix86_option_override_internal): Support MPX ISA.
9797 (ix86_conditional_register_usage): Support bound registers.
9798 (print_reg): Likewise.
9799 (ix86_code_end): Add MPX bnd prefix.
9800 (output_set_got): Likewise.
9801 (ix86_output_call_insn): Likewise.
9802 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
9803 (ix86_print_operand_punct_valid_p): Likewise.
9804 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
9806 (ix86_class_likely_spilled_p): Add bound regs support.
9807 (ix86_hard_regno_mode_ok): Likewise.
9808 (x86_order_regs_for_local_alloc): Likewise.
9809 (ix86_bnd_prefixed_insn_p): New.
9810 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
9811 (FIXED_REGISTERS): Add bound registers.
9812 (CALL_USED_REGISTERS): Likewise.
9813 (REG_ALLOC_ORDER): Likewise.
9814 (HARD_REGNO_NREGS): Likewise.
9816 (VALID_BND_REG_MODE): New.
9817 (FIRST_BND_REG): New.
9818 (LAST_BND_REG): New.
9819 (reg_class): Add BND_REGS.
9820 (REG_CLASS_NAMES): Likewise.
9821 (REG_CLASS_CONTENTS): Likewise.
9823 (ANY_BND_REG_P): New.
9825 (HI_REGISTER_NAMES): Add bound registers.
9826 * config/i386/i386.md (UNSPEC_BNDMK): New.
9827 (UNSPEC_BNDMK_ADDR): New.
9828 (UNSPEC_BNDSTX): New.
9829 (UNSPEC_BNDLDX): New.
9830 (UNSPEC_BNDLDX_ADDR): New.
9831 (UNSPEC_BNDCL): New.
9832 (UNSPEC_BNDCU): New.
9833 (UNSPEC_BNDCN): New.
9834 (UNSPEC_MPX_FENCE): New.
9837 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9838 (length_immediate): Likewise.
9839 (prefix_0f): Likewise.
9841 (prefix_rep): Check for bnd prefix.
9842 (length_nobnd): New.
9843 (length): Use length_nobnd if specified.
9848 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
9851 (simple_return_internal): Likewise.
9852 (simple_return_pop_internal): Likewise.
9853 (*indirect_jump): Add MPX bnd prefix.
9854 (*tablejump_1): Likewise.
9855 (simple_return_internal_long): Likewise.
9856 (simple_return_indirect_internal): Likewise.
9860 (*mov<mode>_internal_mpx): New.
9861 (<mode>_<bndcheck>): New.
9862 (*<mode>_<bndcheck>): New.
9867 * config/i386/predicates.md (lea_address_operand): Rename to...
9868 (address_no_seg_operand): ... this.
9869 (address_mpx_no_base_operand): New.
9870 (address_mpx_no_index_operand): New.
9871 (bnd_mem_operator): New.
9872 * config/i386/i386.opt (mmpx): New.
9873 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
9874 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
9876 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
9878 * mode-classes.def (MODE_POINTER_BOUNDS): New.
9879 * tree.def (POINTER_BOUNDS_TYPE): New.
9880 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
9881 (POINTER_BOUNDS_MODE): New.
9882 (make_pointer_bounds_mode): New.
9883 * machmode.h (POINTER_BOUNDS_MODE_P): New.
9884 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
9885 (layout_type): Support POINTER_BOUNDS_TYPE.
9886 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
9887 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
9888 (type_contains_placeholder_1): Likewise.
9889 * tree.h (POINTER_BOUNDS_TYPE_P): New.
9890 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
9891 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
9893 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
9895 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
9896 mode of address computation when calling memory_address_addr_space.
9898 2013-08-24 Richard Henderson <rth@twiddle.net>
9901 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
9902 instead of create_convert_operand_to.
9903 (maybe_emit_sync_lock_test_and_set): Likewise.
9904 (expand_atomic_compare_and_swap): Likewise.
9905 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
9907 2013-08-24 Sriraman Tallam <tmsriram@google.com>
9909 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
9910 Change param_is to use the struct and not the pointer to the struct.
9912 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
9914 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
9915 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9916 Move to targhooks.c.
9917 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
9918 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9919 Relocate from gimplify.c.
9920 * targhooks.h: Add 2 prototypes.
9921 * tree.h: Delete 2 prototypes.
9923 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
9925 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
9926 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
9928 2013-10-24 Cong Hou <congh@google.com>
9930 * convert.c (convert_to_real): Guard those unsafe math function
9931 convertions with flag_unsafe_math_optimizations. Handle sqrt()
9934 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
9937 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
9939 (cgraph_create_edge): Use the new argument.
9940 (cgraph_create_indirect_edge): Likewise.
9942 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
9944 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
9946 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
9947 changes statep->state.
9949 2013-10-24 Tobias Burnus <burnus@net-b.de>
9952 * tree-cfg.c (replace_loop_annotate): New function.
9953 (execute_build_cfg): Call it.
9954 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
9955 * internal-fn.c (expand_ANNOTATE): New function.
9956 * internal-fn.def (ANNOTATE): Define as new internal function.
9957 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
9958 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
9959 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
9960 * doc/extend.texi (Pragmas): Document #pragma ivdep.
9961 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
9963 2013-10-17 Ian Bolton <ian.bolton@arm.com>
9964 Marcus Shawcroft <marcus.shawcroft@arm.com>
9966 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
9967 Special case reload SP+C into none GENERAL_REGS.
9969 2013-10-24 Michael Matz <matz@suse.de>
9971 * gengtype.c (is_file_equal): Check that files will be same length.
9973 2013-10-25 Christian Bruel <christian.bruel@st.com>
9975 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
9976 * config/sh/t-sh (sh-mem.o): New rule.
9977 * config/sh/sh-mem.cc (expand_block_move): Moved here.
9978 (sh_expand_cmpstr): New function.
9979 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
9980 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
9981 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
9982 (rotlhi3_8): Rename.
9984 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9986 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
9987 * Makefile.in (CXXDEPMODE): Assign and change users.
9988 (CCDEPMODE): Delete.
9989 * configure: Regenerate.
9991 2013-10-23 David Malcolm <dmalcolm@redhat.com>
9993 * gengtype-parse.c (require_without_advance): New.
9994 (type): For GTY-marked types that are not GTY((user)), parse any
9995 base classes, requiring them to be single-inheritance, and not
9996 be templates. For non-GTY-marked types and GTY((user)),
9997 continue to skip over any C++ inheritance specification.
9998 * gengtype-state.c (state_writer::write_state_struct_type):
9999 Write base class of type (if any).
10000 (read_state_struct_type): Read base class of type (if any).
10001 * gengtype.c (new_structure): Add a "base_class" parameter.
10002 (create_optional_field_): Update for new parameter to new_structure.
10003 (adjust_field_rtx_def): Likewise.
10004 (adjust_field_tree_exp): Likewise.
10005 * gengtype.h (struct type): Add "base_class" field to the s
10007 (new_structure): Add "base" parameter.
10009 2013-10-23 Sriraman Tallam <tmsriram@google.com>
10012 * config/i386/i386.c (ix86_option_override_internal):
10013 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
10014 (ix86_valid_target_attribute_tree):
10015 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
10016 Change TARGET_SSE to TARGET_SSE_P (opts->...)
10018 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
10020 * tree-ssa-loop.h: Remove include files.
10021 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
10022 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
10023 * graphite-clast-to-gimple.c: Likewise.
10024 * graphite-scop-detection.c: Likewise.
10025 * graphite-sese-to-poly.c: Likewise.
10026 * ipa-inline-analysis.c: Likewise.
10027 * ipa-pure-const.c: Likewise.
10028 * loop-init.c: Likewise.
10029 * passes.c: Likewise.
10030 * predict.c: Likewise.
10031 * tree-cfg.c: Likewise.
10032 * tree-cfgcleanup.c: Likewise.
10033 * tree-chrec.c: Likewise.
10034 * tree-data-ref.c: Likewise.
10035 * tree-loop-distribution.c: Likewise.
10036 * tree-parloops.c: Likewise.
10037 * tree-predcom.c: Likewise.
10038 * tree-scalar-evolution.c: Likewise.
10039 * tree-ssa-address.c: Likewise.
10040 * tree-ssa.c: Likewise.
10041 * tree-ssa-dce.c: Likewise.
10042 * tree-ssa-loop.c: Likewise.
10043 * tree-ssa-loop-im.c: Likewise.
10044 * tree-ssa-loop-ivcanon.c: Likewise.
10045 * tree-ssa-loop-ivopts.c: Likewise.
10046 * tree-ssa-loop-manip.c: Likewise.
10047 * tree-ssa-loop-niter.c: Likewise.
10048 * tree-ssa-loop-prefetch.c: Likewise.
10049 * tree-ssa-loop-unswitch.c: Likewise.
10050 * tree-ssa-reassoc.c: Likewise.
10051 * tree-vect-data-refs.c: Likewise.
10052 * tree-vect-loop.c: Likewise.
10053 * tree-vect-loop-manip.c: Likewise.
10054 * tree-vectorizer.c: Likewise.
10055 * tree-vect-stmts.c: Likewise.
10056 * tree-vrp.c: Likewise.
10058 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10060 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
10062 2013-10-23 Jakub Jelinek <jakub@redhat.com>
10064 PR tree-optimization/58775
10065 PR tree-optimization/58791
10066 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
10067 (insert_stmt_after): Rewritten, don't move the stmt, but really
10069 (get_stmt_uid_with_default): Remove.
10070 (build_and_add_sum): Use insert_stmt_after and
10071 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
10072 (update_range_test): Set uid on stmts added by
10073 force_gimple_operand_gsi. Don't immediately modify statements
10074 in inter-bb optimization, just update oe->op values.
10075 (optimize_range_tests): Return bool whether any changed have been made.
10076 (update_ops): New function.
10077 (struct inter_bb_range_test_entry): New type.
10078 (maybe_optimize_range_tests): Perform statement changes here.
10079 (not_dominated_by, appears_later_in_bb, get_def_stmt,
10080 ensure_ops_are_available): Remove.
10081 (find_insert_point): Rewritten.
10082 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
10083 return LHS of the (new resp. old) stmt. Don't call
10084 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
10085 instead of last, move new stmt at the right place.
10086 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
10087 (negate_value): Likewise. Set uids.
10088 (break_up_subtract_bb): Initialize uids.
10089 (reassociate_bb): Adjust rewrite_expr_tree caller.
10090 (do_reassoc): Don't call renumber_gimple_stmt_uids.
10092 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
10095 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
10096 TARGET_32BIT final condition.
10097 (mulsi3_internal2 and splitter): Same.
10099 2013-10-23 Jeff Law <law@redhat.com>
10101 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
10102 through joiner blocks with abnormal outgoing edges.
10104 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
10105 Add parameter JOINERS, to allow/disallow threading through joiner
10107 (thread_block): New. Call thread_block_1.
10108 (mark_threaded_blocks): Remove code to filter out certain cases
10109 of threading through joiner blocks.
10110 (thread_through_all_blocks): Document how we can have a dangling
10111 edge AUX field and clear it.
10113 2013-10-23 Ian Lance Taylor <iant@google.com>
10115 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
10116 (C++ Dialect Options): Likewise.
10117 (Optimize Options): Likewise.
10119 2013-10-23 Tom de Vries <tom@codesourcery.com>
10121 PR tree-optimization/58805
10122 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
10124 2013-10-23 Jakub Jelinek <jakub@redhat.com>
10126 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
10127 sequence based on get_range_info returned range.
10129 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
10131 * tree-ssa.h: Remove all #include's
10132 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
10133 * alias.c: Move required includes from tree-ssa.h.
10134 * asan.c: Likewise.
10135 * builtins.c: Likewise.
10136 * calls.c: Likewise.
10137 * cfgexpand.c: Likewise.
10138 * cfghooks.c: Likewise.
10139 * cfgloop.c: Likewise.
10140 * cfgloopmanip.c: Likewise.
10141 * cgraph.c: Likewise.
10142 * cgraphbuild.c: Likewise.
10143 * cgraphclones.c: Likewise.
10144 * cgraphunit.c: Likewise.
10146 * except.c: Likewise.
10147 * expr.c: Likewise.
10148 * final.c: Likewise.
10149 * fold-const.c: Likewise.
10150 * ggc-page.c: Likewise.
10151 * gimple-builder.c: Likewise.
10152 * gimple-fold.c: Likewise.
10153 * gimple-iterator.c: Likewise.
10154 * gimple-low.c: Likewise.
10155 * gimple-pretty-print.c: Likewise.
10156 * gimple-ssa-strength-reduction.c: Likewise.
10157 * gimple-streamer-in.c: Likewise.
10158 * gimple-streamer-out.c: Likewise.
10159 * gimplify.c: Likewise.
10160 * graphite-blocking.c: Likewise.
10161 * graphite-clast-to-gimple.c: Likewise.
10162 * graphite-dependences.c: Likewise.
10163 * graphite-interchange.c: Likewise.
10164 * graphite-optimize-isl.c: Likewise.
10165 * graphite-poly.c: Likewise.
10166 * graphite-scop-detection.c: Likewise.
10167 * graphite-sese-to-poly.c: Likewise.
10168 * graphite.c: Likewise.
10169 * ipa-cp.c: Likewise.
10170 * ipa-inline-analysis.c: Likewise.
10171 * ipa-inline-transform.c: Likewise.
10172 * ipa-inline.c: Likewise.
10173 * ipa-prop.c: Likewise.
10174 * ipa-pure-const.c: Likewise.
10175 * ipa-reference.c: Likewise.
10176 * ipa-split.c: Likewise.
10177 * ipa-utils.c: Likewise.
10178 * loop-init.c: Likewise.
10179 * lto-cgraph.c: Likewise.
10180 * lto-section-in.c: Likewise.
10181 * lto-section-out.c: Likewise.
10182 * lto-streamer-in.c: Likewise.
10183 * lto-streamer-out.c: Likewise.
10184 * lto-streamer.c: Likewise.
10185 * omp-low.c: Likewise.
10186 * passes.c: Likewise.
10187 * predict.c: Likewise.
10188 * print-tree.c: Likewise.
10189 * profile.c: Likewise.
10190 * sese.c: Likewise.
10191 * targhooks.c: Likewise.
10192 * tracer.c: Likewise.
10193 * trans-mem.c: Likewise.
10194 * tree-call-cdce.c: Likewise.
10195 * tree-cfg.c: Likewise.
10196 * tree-cfgcleanup.c: Likewise.
10197 * tree-chrec.c: Likewise.
10198 * tree-complex.c: Likewise.
10199 * tree-data-ref.c: Likewise.
10200 * tree-dfa.c: Likewise.
10201 * tree-eh.c: Likewise.
10202 * tree-emutls.c: Likewise.
10203 * tree-if-conv.c: Likewise.
10204 * tree-inline.c: Likewise.
10205 * tree-into-ssa.c: Likewise.
10206 * tree-loop-distribution.c: Likewise.
10207 * tree-mudflap.c: Likewise.
10208 * tree-nested.c: Likewise.
10209 * tree-nrv.c: Likewise.
10210 * tree-object-size.c: Likewise.
10211 * tree-outof-ssa.c: Likewise.
10212 * tree-parloops.c: Likewise.
10213 * tree-phinodes.c: Likewise.
10214 * tree-predcom.c: Likewise.
10215 * tree-pretty-print.c: Likewise.
10216 * tree-profile.c: Likewise.
10217 * tree-scalar-evolution.c: Likewise.
10218 * tree-sra.c: Likewise.
10219 * tree-ssa-address.c: Likewise.
10220 * tree-ssa-alias.c: Likewise.
10221 * tree-ssa-ccp.c: Likewise.
10222 * tree-ssa-coalesce.c: Likewise.
10223 * tree-ssa-copy.c: Likewise.
10224 * tree-ssa-copyrename.c: Likewise.
10225 * tree-ssa-dce.c: Likewise.
10226 * tree-ssa-dom.c: Likewise.
10227 * tree-ssa-dse.c: Likewise.
10228 * tree-ssa-forwprop.c: Likewise.
10229 * tree-ssa-ifcombine.c: Likewise.
10230 * tree-ssa-live.c: Likewise.
10231 * tree-ssa-loop-ch.c: Likewise.
10232 * tree-ssa-loop-im.c: Likewise.
10233 * tree-ssa-loop-ivcanon.c: Likewise.
10234 * tree-ssa-loop-ivopts.c: Likewise.
10235 * tree-ssa-loop-manip.c: Likewise.
10236 * tree-ssa-loop-niter.c: Likewise.
10237 * tree-ssa-loop-prefetch.c: Likewise.
10238 * tree-ssa-loop-unswitch.c: Likewise.
10239 * tree-ssa-loop.c: Likewise.
10240 * tree-ssa-math-opts.c: Likewise.
10241 * tree-ssa-operands.c: Likewise.
10242 * tree-ssa-phiopt.c: Likewise.
10243 * tree-ssa-phiprop.c: Likewise.
10244 * tree-ssa-pre.c: Likewise.
10245 * tree-ssa-propagate.c: Likewise.
10246 * tree-ssa-reassoc.c: Likewise.
10247 * tree-ssa-sccvn.c: Likewise.
10248 * tree-ssa-sink.c: Likewise.
10249 * tree-ssa-strlen.c: Likewise.
10250 * tree-ssa-structalias.c: Likewise.
10251 * tree-ssa-tail-merge.c: Likewise.
10252 * tree-ssa-ter.c: Likewise.
10253 * tree-ssa-threadedge.c: Likewise.
10254 * tree-ssa-threadupdate.c: Likewise.
10255 * tree-ssa-uncprop.c: Likewise.
10256 * tree-ssa-uninit.c: Likewise.
10257 * tree-ssa.c: Likewise.
10258 * tree-ssanames.c: Likewise.
10259 * tree-stdarg.c: Likewise.
10260 * tree-streamer-in.c: Likewise.
10261 * tree-switch-conversion.c: Likewise.
10262 * tree-tailcall.c: Likewise.
10263 * tree-vect-data-refs.c: Likewise.
10264 * tree-vect-generic.c: Likewise.
10265 * tree-vect-loop-manip.c: Likewise.
10266 * tree-vect-loop.c: Likewise.
10267 * tree-vect-patterns.c: Likewise.
10268 * tree-vect-slp.c: Likewise.
10269 * tree-vect-stmts.c: Likewise.
10270 * tree-vectorizer.c: Likewise.
10271 * tree-vrp.c: Likewise.
10272 * tree.c: Likewise.
10273 * tsan.c: Likewise.
10274 * value-prof.c: Likewise.
10275 * var-tracking.c: Likewise.
10276 * varpool.c: Likewise.
10277 * vtable-verify.c: Likewise.
10279 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10281 * config/tilegx/tilegx.c: Include "tree.h".
10283 2013-10-23 Jakub Jelinek <jakub@redhat.com>
10285 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
10286 the info, not after it.
10287 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
10288 dump_ssaname_info call.
10289 (pp_gimple_stmt_1): Adjust caller.
10290 (dump_phi_nodes): Likewise. Don't print "# " here.
10292 2013-10-22 Jan Hubicka <jh@suse.cz>
10294 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
10296 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
10297 * i386.c (expand_small_movmem_or_setmem): New function.
10298 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
10300 (alg_usable_p): Add support for value ranges; cleanup.
10301 (ix86_expand_set_or_movmem): Add support for misaligned moves.
10303 2013-10-22 Sterling Augustine <saugustine@google.com>
10305 * doc/invoke.texi: Document -ggnu-pubnames.
10306 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
10308 * dwarf2out.c: Include gdb/gdb-index.h.
10309 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
10310 debug_generate_pub_sections.
10311 (is_java, output_pubtables, output_pubname): New functions.
10312 (include_pubname_in_output): Handle debug_generate_pub_sections at
10314 (size_of_pubnames): Use new local space_for_flags based on
10315 debug_generate_pub_sections.
10316 (output_pubnames): Unify pubnames and pubtypes output logic.
10317 Genericize comments. Call output_pubname.
10318 (dwarf2out_finish): Move logic to output_pubnames and call it.
10320 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
10323 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
10324 Remove CCCmode handling.
10325 <case LTU>: Return 'c' suffix for CCCmode.
10326 <case GEU>: Return 'nc' suffix for CCCmode.
10327 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
10328 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
10329 (*sub<mode>3_cc_overflow): Ditto.
10330 (*subsi3_zext_cc_overflow): Ditto.
10332 2013-10-22 Steve Ellcey <sellcey@mips.com>
10334 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
10335 (AND (NOT OP1) (NOT OP2)).
10337 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
10339 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
10340 meaning of merge-high and merge-low masks for little endian; avoid
10341 use of vector-pack masks for little endian for mismatched modes.
10343 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10345 * config/tilepro/tilepro.c: Include "tree.h".
10347 2013-10-22 Andreas Schwab <schwab@suse.de>
10349 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
10352 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
10354 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
10355 [Ed Smith-Rowland]): New entries.
10356 ([Stephen M. Webb]): Update.
10358 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
10360 * tree-ssa-ter.h: Remove duplicate copy of file contents.
10362 2013-10-21 Marek Polacek <polacek@redhat.com>
10364 PR middle-end/58809
10365 * fold-const.c (fold_range_test): Return 0 if the type is not
10368 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
10370 * system.h: Move hwint.h include further down.
10371 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
10372 gcc_checking_asserts.
10373 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
10375 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
10377 Fix volatile issues in optimize_bit_field_compare.
10378 * fold-const.c (optimize_bit_field_compare): Bail out if
10379 lvolatilep or rvolatilep.
10381 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
10383 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
10384 and get_inner_reference returning different pmode for non-volatile
10385 bit-field members dependent on flag_strict_volatile_bitfields.
10386 * stor-layout.c (layout_decl): Remove special handling of
10387 flag_strict_volatile_bitfields.
10388 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
10389 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
10391 2013-10-21 Paulo Matos <pmatos@broadcom.com>
10393 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
10396 2013-10-21 Jeff Law <law@redhat.com>
10398 * tree-ssa-threadedge.c (thread_through_normal_block): New
10399 argument VISITED. Remove VISISTED as a local variable. When we
10400 have a threadable jump, verify the destination of the jump has not
10402 (thread_across_edge): Allocate VISITED bitmap once at function
10403 scope and use it throughout. Make sure to set appropriate bits in
10404 VISITED for E (start of jump thread path).
10405 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
10406 through a joiner if any edge on the path has a recorded jump thread.
10408 2013-10-21 Ian Lance Taylor <iant@google.com>
10410 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
10411 don't imply that attributes can solve all problems.
10412 (Directory Options): Fix typo.
10414 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10416 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
10417 extend and extend_add.
10419 2013-10-21 Richard Biener <rguenther@suse.de>
10421 PR tree-optimization/58794
10422 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
10423 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
10425 2013-10-21 Richard Biener <rguenther@suse.de>
10427 PR middle-end/58742
10428 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
10429 to (T) X for sign-changing conversions (or no conversion).
10431 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
10433 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
10435 2013-10-20 Jan Hubicka <jh@suse.cz>
10437 * config/i386/i386-tune.def: Add comment; organize into categories
10439 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
10441 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
10442 argument. Update function comment.
10443 (expand_set_or_movmem_via_rep): New function combining
10444 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
10445 (expand_movmem_via_rep_mov): Remove.
10446 expand_setmem_via_rep_stos): Remove.
10447 (expand_movmem_epilogue): Update calls correspondingly.
10448 (expand_setmem_epilogue_via_loop): Likewise.
10449 (emit_memset): New.
10450 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
10451 (expand_set_or_movmem_prologue): New function combining
10452 expand_movmem_prologue and expand_setmem_prologue.
10453 (expand_movmem_prologue): Remove.
10454 (expand_setmem_prologue): Remove.
10455 (expand_set_or_movmem_constant_prologue): New function combining
10456 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
10457 (expand_constant_movmem_prologue): Remove.
10458 (expand_constant_setmem_prologue): Remove.
10459 (promote_duplicated_reg): Allow vector-const0 value.
10460 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
10461 and ix86_expand_setmem.
10462 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
10463 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
10465 2013-10-21 Diego Novillo <dnovillo@google.com>
10467 * asan.c: Include tree.h
10468 * bb-reorder.c: Likewise.
10469 * cfgcleanup.c: Likewise.
10470 * cfgloopmanip.c: Likewise.
10471 * data-streamer-in.c: Likewise.
10472 * data-streamer-out.c: Likewise.
10473 * data-streamer.c: Likewise.
10474 * dwarf2cfi.c: Likewise.
10475 * graphite-blocking.c: Likewise.
10476 * graphite-clast-to-gimple.c: Likewise.
10477 * graphite-dependences.c: Likewise.
10478 * graphite-interchange.c: Likewise.
10479 * graphite-optimize-isl.c: Likewise.
10480 * graphite-poly.c: Likewise.
10481 * graphite-scop-detection.c: Likewise.
10482 * graphite-sese-to-poly.c: Likewise.
10483 * graphite.c: Likewise.
10484 * ipa-devirt.c: Likewise.
10485 * ipa-profile.c: Likewise.
10488 * loop-init.c: Likewise.
10489 * loop-unroll.c: Likewise.
10490 * lower-subreg.c: Likewise.
10491 * lto/lto-object.c: Likewise.
10492 * recog.c: Likewise.
10493 * reginfo.c: Likewise.
10494 * tree-loop-distribution.c: Likewise.
10495 * tree-parloops.c: Likewise.
10496 * tree-ssa-strlen.c: Likewise.
10497 * tree-streamer.c: Likewise.
10498 * value-prof.c: Likewise.
10499 * target-globals.c: Likewise.
10500 * expr.h: Include tree-core.h instead of tree.h.
10501 * gimple.h: Likewise.
10502 * ipa-prop.h: Likewise.
10503 * ipa-utils.h: Likewise.
10504 * lto-streamer.h: Likewise.
10505 * streamer-hooks.h: Likewise.
10506 * ipa-reference.h: Include cgraph.h instead of tree.h.
10507 * cgraph.h: Include basic-block.h instead of tree.h.
10508 * tree-streamer.h: Do not include tree.h.
10509 * genattrtab.c (write_header): Generate inclusion of tree.h.
10510 * genautomata.c (main): Likewise.
10511 * genemit.c: Likewise.
10512 * genopinit.c: Likewise.
10513 * genoutput.c (output_prologue): Likewise.
10514 * genpeep.c: Likewise.
10516 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10518 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
10520 (vec_unpacku_hi_v8hi): Likewise.
10521 (vec_unpacku_lo_v16qi): Likewise.
10522 (vec_unpacku_lo_v8hi): Likewise.
10524 2013-10-20 Jan Hubicka <jh@suse.cz>
10526 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
10527 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
10528 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
10530 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
10532 * config/mips/mips.h (ISA_HAS_WSBH): Define.
10533 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
10535 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
10537 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
10540 * system.h: Undef m_slot.
10542 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10544 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
10545 all elements for both endian flavors.
10547 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
10550 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
10551 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
10552 and SI_REG for 64bit SYSV ABI targets.
10554 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
10556 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
10557 to multi_reg_return. Clarify that we are skipping USEs of multiple
10558 return registers. Use bool type where appropriate.
10560 2013-10-18 Jan Hubicka <jh@suse.cz>
10562 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
10563 for cold functions.
10564 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
10565 (X86_TUNE_PUSH_MEMORY): Likewise.
10566 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
10567 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
10568 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
10570 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
10571 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
10573 (ix86_option_override_internal): Update to use tune features instead
10576 2013-10-18 Cong Hou <congh@google.com>
10578 PR tree-optimization/58508
10579 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
10580 statement that contains data refs with zero-step.
10582 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
10584 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
10585 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
10586 * gimple-low.c (gimple_check_call_arg,
10587 gimple_check_call_matching_types): Move to cgraph.c.
10588 * gimple-low.h: Remove prototype.
10589 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
10590 Relocate from gimple-low.c.
10591 * cgraph.h: Add prototype. Don't include basic-block.h.
10592 * gimplify.c: Add gimple-low to include list.
10593 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
10594 * tree-eh.c: Add gimple-low to include list.
10595 * tree-nested.c: Likewise.
10596 * cfgexpand.c: Add tree-ssa-address.h to include list.
10597 * expr.c: Likewise.
10598 * gimple-fold.c: Likewise.
10599 * gimple-ssa-strength-reduction.c: Likewise.
10600 * trans-mem.c: Likewise.
10601 * tree-mudflap.c: Likewise.
10602 * tree-ssa-loop-ivopts.c: Likewise.
10603 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
10604 (degenerate_phi_result): Move to tree-phinodes.c.
10605 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
10606 * tree-ssa-threadedge.c: Likewise.
10607 * tree-vrp.c: Likewise.
10608 * tree-phinodes.c (degenerate_phi_result): Relocate here.
10609 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
10610 * tree-phinodes.h (degenerate_phi_result): Add prototype.
10611 * tree-ssa-copy.c: Include tree-ssa-dom.h.
10612 * tree-ssa-forwprop.c: Likewise.
10613 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
10614 pass_data_cleanup_cfg_post_optimizing,
10615 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
10616 * tree-optimize.c: Delete File.
10617 * graphite.c: Include tree-cfgcleanup.h.
10618 * passes.c: Likewise.
10619 * tree-cfg.c: Likewise.
10620 * tree-profile.c: Likewise.
10621 * tree-ssa-dse.c: Likewise.
10622 * tree-ssa-loop-ivcanon.c: Likewise.
10623 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
10624 * tree-outof-ssa.c: Include sbitmap.h.
10625 * tree-ssa-live.c: Likewise.
10626 * tree-ssa-propagate.c: Likewise.
10627 * tree-ssa-structalias.c: Likewise.
10628 * tree-stdarg.c: Likewise.
10629 * Makefile.in (OBJS): Delete tree-optimize.o.
10630 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
10631 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
10632 * varasm.c: Include basic-block.h.
10633 * cfgloop.h: Include function.h instead of basic-block.h
10634 (bb_loop_depth): Move to cfgloop.c.
10635 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
10637 2013-10-18 Teresa Johnson <tejohnson@google.com>
10639 * predict.c (probably_never_executed): Compare frequency-based
10640 count to number of training runs.
10641 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
10643 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10645 * config/arm/arm.c (cortexa9_extra_costs): New table.
10646 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
10648 2013-10-18 Jeff Law <law@redhat.com>
10650 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
10652 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
10653 (register_jump_thread): Add "registered_jump_thread" debug
10655 * dbgcnt.def (registered_jump_thread): New debug counter.
10657 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
10659 * config/rs6000/rs6000.c: Include cgraph.h.
10661 2013-10-18 Teresa Johnson <tejohnson@google.com>
10663 * tree-ssa-tail-merge.c (replace_block_by): Update edge
10664 weights during merging.
10666 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
10668 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
10669 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
10670 * tree-ssa-operands.h: Remove prototype.
10671 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
10672 * gimple.c (virtual_operand_p): Relocate from gimple.c.
10673 * gimple.h: Add prototype.
10674 * gimple-ssa.h: Include tree-ssa-operands.h.
10675 * tree-dump.c: Add tree-cfg.h to include list.
10676 * tree-ssa-alias.c: Add ipa-reference.h to include list.
10677 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
10678 * config/i386/i386.c: Don't include tree-flow.h.
10679 * config/rs6000/rs6000.c: Likewise.
10681 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10683 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
10685 2013-10-18 Richard Biener <rguenther@suse.de>
10687 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
10688 or TYPE_UNSIGNED of integral types.
10689 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
10690 NULL_TREE for zero-precision integral types.
10692 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
10694 * config/aarch64/arm_neon.h
10695 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
10697 2013-10-17 Sriraman Tallam <tmsriram@google.com>
10700 * opth-gen.awk: Define target_flags_explicit.
10702 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
10704 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
10705 fields to the reg_addr array that describes the valid addressing
10706 mode for any register, general purpose registers, floating point
10707 registers, and Altivec registers.
10708 (FIRST_RELOAD_REG_CLASS): Likewise.
10709 (LAST_RELOAD_REG_CLASS): Likewise.
10710 (struct reload_reg_map_type): Likewise.
10711 (reload_reg_map_type): Likewise.
10712 (RELOAD_REG_VALID): Likewise.
10713 (RELOAD_REG_MULTIPLE): Likewise.
10714 (RELOAD_REG_INDEXED): Likewise.
10715 (RELOAD_REG_OFFSET): Likewise.
10716 (RELOAD_REG_PRE_INCDEC): Likewise.
10717 (RELOAD_REG_PRE_MODIFY): Likewise.
10718 (reg_addr): Likewise.
10719 (mode_supports_pre_incdec_p): New helper functions to say whether
10720 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
10721 (mode_supports_pre_modify_p): Likewise.
10722 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
10723 print the valid address mode bits for each mode.
10724 (rs6000_debug_print_mode): Likewise.
10725 (rs6000_debug_reg_global): Likewise.
10726 (rs6000_setup_reg_addr_masks): New function to set up the address
10727 mask bits for each type.
10728 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
10729 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
10730 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
10731 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
10732 PRE_MODIFY are supported.
10733 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
10734 registers, instead of {src,dest}_av_p.
10735 (rs6000_print_options_internal): Tweak the debug output slightly.
10737 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
10739 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
10742 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
10744 * tree-flow.h (struct omp_region): Move to omp-low.c.
10745 Remove omp_ prototypes and variables.
10746 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
10747 (copy_var_decl): Relocate prototype from tree-flow.h.
10748 * gimple.c (copy_var_decl): Relocate from omp-low.c.
10749 * tree.h: Move prototype to omp-low.h.
10750 * omp-low.h: New File. Relocate prototypes here.
10751 * omp-low.c (struct omp_region): Make local here.
10752 (root_omp_region): Make static.
10753 (copy_var_decl) Move to gimple.c.
10754 (new_omp_region): Make static.
10755 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
10756 * tree-cfg.c: Include omp-low.h.
10757 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
10758 * gimplify.c: Include omp-low.h.
10759 * tree-parloops.c: Likewise.
10761 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
10763 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
10764 operands are in memory, prefer to force non-matched operand 1 to
10767 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
10770 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
10771 restrict TImode addresses to single indirect registers if both
10772 -mquad-memory and -mvsx-timode are used.
10773 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
10774 we should emit load/store quad. Remove using %y for quad memory
10777 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
10778 constraints to allow load/store quad on machines where TImode is
10779 not allowed in VSX registers. Use 'n' instead of 'F' constraint
10780 for TImode to load integer constants.
10782 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10784 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
10786 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
10788 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
10789 handling of STACK_REG.
10791 2013-10-17 Richard Biener <rguenther@suse.de>
10793 PR tree-optimization/58143
10794 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
10796 (rewrite_to_defined_overflow): Likewise.
10797 (move_computations_dom_walker::before_dom): Rewrite stmts
10798 with undefined signed overflow that are not always executed
10799 into unsigned arithmetic.
10801 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
10804 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
10805 explicit isa flag to be an options variable, instead of using
10806 global_options_set. Remove define from rs6000.h.
10807 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
10809 * config/rs6000/rs6000.c (rs6000_option_override_internal):
10810 Initialize rs6000_isa_flags_explicit.
10811 (rs6000_function_specific_save): Add gcc_options* parameter, so
10812 that the powerpc builds after the 2013-10-15 changes.
10813 (rs6000_function_specific_restore): Likewise.
10815 2013-10-16 DJ Delorie <dj@redhat.com>
10817 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
10818 op is a REG before checking REGNO.
10819 (rl78_alloc_physical_registers): Verify pattern is a SET before
10822 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10824 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
10826 (vec_unpacks_lo_v4sf): Likewise.
10827 (vec_unpacks_float_hi_v4si): Likewise.
10828 (vec_unpacks_float_lo_v4si): Likewise.
10829 (vec_unpacku_float_hi_v4si): Likewise.
10830 (vec_unpacku_float_lo_v4si): Likewise.
10832 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10834 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
10835 (vsx_concat_v2sf): Likewise.
10837 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
10839 * config/aarch64/aarch64.md
10840 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
10842 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
10844 PR tree-optimization/58697
10845 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
10846 estimated_loop_iterations_int.
10847 (max_stmt_executions_int): Call get_max_loop_iterations_int.
10848 (get_max_loop_iterations_int): New. HWINT version of
10849 get_max_loop_iterations.
10850 * cfgloop.h: Add prototypes.
10851 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
10852 * loop-unroll.c (decide_peel_once_rolling): Call
10853 get_estimated_loop_iterations_int.
10854 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
10855 * tree-ssa-loop-niter.h: Tweak prototypes.
10857 2013-10-16 David Malcolm <dmalcolm@redhat.com>
10859 * gengtype-parse.c (struct_field_seq): Ignore access-control
10860 keywords ("public:" etc).
10862 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
10864 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
10865 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
10867 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
10869 * config/arm/arm.opt (mlra): New option.
10870 * config/arm/arm.c (arm_lra_p): New function.
10871 (TARGET_LRA_P): Define.
10873 2013-10-16 Paulo Matos <pmatos@broadcom.com>
10875 * tree-core.h (tree_code_name): Remove.
10876 * tree.h (get_tree_code_name): New prototype.
10877 * tree.c (tree_code_name): Make static.
10878 (get_tree_code_name): New function.
10879 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
10880 tree_class_check_failed, tree_range_check_failed,
10881 tree_not_class_check_failed, omp_clause_check_failed,
10882 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
10883 wrapper get_tree_code_name instead of calling tree_code_name directly.
10884 * tree-vrp.c (dump_asserts_for): Likewise.
10885 * tree-dump.c (dequeue_and_dump): Likewise.
10886 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
10887 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
10888 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
10889 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
10890 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
10891 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
10892 dump_gimple_omp_for): Likewise.
10893 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
10894 * tree-ssa-pre.c (print_pre_expr): Likewise.
10895 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
10896 * print-tree.c (print_node_brief, print_node): Likewise.
10897 * gimple.c (gimple_check_failed): Likewise.
10898 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
10899 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
10900 * config/mep/mep.c (mep_validate_vliw): Likewise.
10901 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
10902 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
10904 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10906 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
10909 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
10911 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
10912 (MULTILIB_MATCHES): Add multilib for -march=v8.
10914 2013-10-15 Sriraman Tallam <tmsriram@google.com>
10917 * optc-save-gen.awk: Add extra parameter to the save and restore
10919 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
10920 * tree.c (build_optimization_node): New parameter. Add extra parameter
10921 to call to cl_optimization_save.
10922 (build_target_option_node): New parameter. Add extra parameter
10923 to call to cl_target_option_save.
10924 * tree.h (build_optimization_node): New parameter.
10925 (build_target_option_node): New parameter.
10926 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
10927 build_optimization_node and build_target_option_node.
10928 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
10929 (handle_pragma_push_options): Ditto.
10930 * toplev.c (process_options): Ditto.
10931 * opts.c (init_options_struct): Check for opts_set non-null.
10932 * target.def (target_option.save): New parameter.
10933 (target_option.restore): New parameter.
10934 * tm.texi: Generate.
10935 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
10936 (ix86_pragma_target_parse): Ditto.
10937 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
10939 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
10940 to build_optimization_node and build_target_option_node.
10941 (rs6000_valid_attribute_p): Ditto.
10942 (rs6000_pragma_target_parse): Ditto.
10943 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
10945 * config/i386/i386.h:
10946 TARGET_64BIT_P: New Macro
10947 TARGET_MMX_P: New Macro.
10948 TARGET_3DNOW_P: New Macro.
10949 TARGET_3DNOW_A_P: New Macro.
10950 TARGET_SSE_P: New Macro.
10951 TARGET_SSE2_P: New Macro.
10952 TARGET_SSE3_P: New Macro.
10953 TARGET_SSSE3_P: New Macro.
10954 TARGET_SSE4_1_P: New Macro.
10955 TARGET_SSE4_2_P: New Macro.
10956 TARGET_AVX_P: New Macro.
10957 TARGET_AVX2_P: New Macro.
10958 TARGET_AVX512F_P: New Macro.
10959 TARGET_AVX512PF_P: New Macro.
10960 TARGET_AVX512ER_P: New Macro.
10961 TARGET_AVX512CD_P: New Macro.
10962 TARGET_FMA_P: New Macro.
10963 TARGET_SSE4A_P: New Macro.
10964 TARGET_FMA4_P: New Macro.
10965 TARGET_XOP_P: New Macro.
10966 TARGET_LWP_P: New Macro.
10967 TARGET_ABM_P: New Macro.
10968 TARGET_BMI_P: New Macro.
10969 TARGET_BMI2_P: New Macro.
10970 TARGET_LZCNT_P: New Macro.
10971 TARGET_TBM_P: New Macro.
10972 TARGET_POPCNT_P: New Macro.
10973 TARGET_SAHF_P: New Macro.
10974 TARGET_MOVBE_P: New Macro.
10975 TARGET_CRC32_P: New Macro.
10976 TARGET_AES_P: New Macro.
10977 TARGET_PCLMUL_P: New Macro.
10978 TARGET_CMPXCHG16B_P: New Macro.
10979 TARGET_FSGSBASE_P: New Macro.
10980 TARGET_RDRND_P: New Macro.
10981 TARGET_F16C_P: New Macro.
10982 TARGET_RTM_P: New Macro.
10983 TARGET_HLE_P: New Macro.
10984 TARGET_RDSEED_P: New Macro.
10985 TARGET_PRFCHW_P: New Macro.
10986 TARGET_ADX_P: New Macro.
10987 TARGET_FXSR_P: New Macro.
10988 TARGET_XSAVE_P: New Macro.
10989 TARGET_XSAVEOPT_P: New Macro.
10990 TARGET_LP64_P: New Macro.
10991 TARGET_X32_P: New Macro.
10992 TARGET_FPMATH_DEFAULT_P: New Macro.
10993 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
10994 * config/i386/i386.c (ix86_option_override_internal): New parameters.
10996 Change ix86_tune_string to access opts->x_ix86_tune_string.
10997 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
10998 Change ix86_arch_string to access opts->x_ix86_arch_string.
10999 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
11000 Change ix86_pmode to access opts->x_ix86_pmode.
11001 Change ix86_abi to access opts->x_ix86_abi.
11002 Change ix86_cmodel to access opts->x_ix86_cmodel.
11003 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
11004 Change ix86_isa_flags_explicit to access
11005 opts->x_ix86_isa_flags_explicit.
11006 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
11007 Change ix86_regparm to access opts->x_ix86_regparm.
11008 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
11009 Change ix86_preferred_stack_boundary_arg to access
11010 opts->x_ix86_preferred_stack_boundary_arg.
11011 Change ix86_force_align_arg_pointer to access
11012 opts->x_ix86_force_align_arg_pointer.
11013 Change ix86_incoming_stack_boundar_arg to access
11014 opts->x_ix86_incoming_stack_boundar_arg.
11015 Change ix86_fpmath to access opts->x_ix86_fpmath.
11016 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
11017 Change ix86_recip_name to access opts->x_ix86_recip_name.
11018 Change ix86_stack_protector_guard to access
11019 opts->x_ix86_stack_protector_guard.
11020 Change ix86_tune_memcpy_strategy to access
11021 opts->x_ix86_tune_memcpy_strategy.
11022 Change ix86_tune_memset_strategy to access
11023 opts->x_ix86_tune_memset_strategy.
11024 Change global_options to access opts.
11025 Change global_options_set to access opts_set.
11026 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
11027 Change TARGET_MMX to TARGET_MMX_P (opts->...).
11028 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
11029 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
11030 Change TARGET_SSE to TARGET_SSE_P (opts->...).
11031 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
11032 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
11033 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
11034 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
11035 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
11036 Change TARGET_AVX to TARGET_AVX_P (opts->...).
11037 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
11038 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
11039 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
11040 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
11041 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
11042 Change TARGET_FMA to TARGET_FMA_P (opts->...).
11043 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
11044 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
11045 Change TARGET_XOP to TARGET_XOP_P (opts->...).
11046 Change TARGET_LWP to TARGET_LWP_P (opts->...).
11047 Change TARGET_ABM to TARGET_ABM_P (opts->...).
11048 Change TARGET_BMI to TARGET_BMI_P (opts->...).
11049 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
11050 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
11051 Change TARGET_TBM to TARGET_TBM_P (opts->...).
11052 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
11053 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
11054 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
11055 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
11056 Change TARGET_AES to TARGET_AES_P (opts->...).
11057 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
11058 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
11059 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
11060 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
11061 Change TARGET_F16C to TARGET_F16C_P (opts->...).
11062 Change TARGET_RTM to TARGET_RTM_P (opts->...).
11063 Change TARGET_HLE to TARGET_HLE_P (opts->...).
11064 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
11065 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
11066 Change TARGET_ADX to TARGET_ADX_P (opts->...).
11067 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
11068 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
11069 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
11070 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
11071 Change TARGET_X32 to TARGET_X32_P (opts->...).
11072 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
11073 Change TARGET_FLOAT_RETURNS_IN_80387 to
11074 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
11075 (ix86_function_specific_save): New parameter. Use opts-> fields
11076 to replace global fields.
11077 (ix86_function_specific_restore): Ditto.
11078 (ix86_valid_target_attribute_inner_p): New parameters.
11079 Fix recursive call.
11080 Fix call to ix86_handle_option and set_option.
11081 (ix86_valid_target_attribute_tree): New parameters.
11082 Change global_options to access opts.
11083 Change global_options_set to access opts_set.
11084 Fix call to ix86_valid_target_attribute_inner_p.
11085 Change ix86_tune_string to access opts->x_ix86_tune_string.
11086 Change ix86_arch_string to access opts->x_ix86_arch_string.
11087 Change ix86_fpmath to access opts->x_ix86_fpmath
11088 Fix call to ix86_option_override_internal.
11089 Fix call to ix86_add_new_builtins.
11090 Fix calls to build_optimization_node and build_target_option_node.
11091 (ix86_valid_target_attribute_p): Remove access to global_options.
11092 Use new gcc_options structure func_options.
11093 Fix call to ix86_valid_target_attribute_tree.
11094 Fix call to build_optimization_node.
11095 (get_builtin_code_for_version): Fix call to
11096 ix86_valid_target_attribute_tree.
11098 2013-10-15 David Malcolm <dmalcolm@redhat.com>
11100 * Makefile.in (PICFLAG): New.
11101 (enable_host_shared): New.
11102 (INTERNAL_CFLAGS): Use PICFLAG.
11103 (LIBIBERTY): Use pic build of libiberty.a if configured with
11104 --enable-host-shared.
11105 * configure.ac: Add --enable-host-shared, setting up new
11107 * configure: Regenerate.
11108 * doc/install.texi (--enable-shared): Add note contrasting it with ...
11109 (--enable-host-shared): New option.
11111 2013-10-15 Richard Biener <rguenther@suse.de>
11113 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
11114 for built-in functions.
11116 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
11118 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
11119 (optimize_range_tests_1): New function,
11120 extracted from optimize_range_tests.
11121 (optimize_range_tests_xor): Similarly.
11122 (optimize_range_tests_diff): New function.
11123 (optimize_range_tests): Use optimize_range_tests_1.
11125 2013-10-15 Cong Hou <congh@google.com>
11127 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
11128 requirement of the reduction pattern so that one operand of the
11129 reduction operation can come from outside of the loop.
11131 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11133 * config/arm/neon-schedgen.ml: Remove.
11134 * config/arm/cortex-a9-neon.md: Remove comment regarding
11137 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11139 * config/arm/types: Remove old neon types.
11141 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11143 * config/arm/cortex-a7.md
11144 (cortex_a7_neon_type): New.
11145 (cortex_a7_neon_mul): Update for new types.
11146 (cortex_a7_neon_mla): Likewise.
11147 (cortex_a7_neon): Likewise.
11149 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11151 * config/arm/cortex-a15-neon.md
11152 (cortex_a15_neon_type): New,
11154 (cortex_a15_neon_int_1): Remove.
11155 (cortex_a15_neon_int_2): Likewise.
11156 (cortex_a15_neon_int_3): Likewise.
11157 (cortex_a15_neon_int_4): Likewise.
11158 (cortex_a15_neon_int_5): Likewise.
11159 (cortex_a15_neon_vqneg_vqabs): Likewise.
11160 (cortex_a15_neon_vmov): Likewise.
11161 (cortex_a15_neon_vaba): Likewise.
11162 (cortex_a15_neon_vaba_qqq): Likewise.
11163 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11164 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
11165 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
11167 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11168 (cortex_a15_neon_mla_qqq_8_16): Likewise.
11169 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
11170 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
11171 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
11172 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
11173 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
11174 (cortex_a15_neon_shift_1): Likewise.
11175 (cortex_a15_neon_shift_2): Likewise.
11176 (cortex_a15_neon_shift_3): Likewise.
11177 (cortex_a15_neon_vshl_ddd): Likewise.
11178 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
11179 (cortex_a15_neon_vsra_vrsra): Likewise.
11180 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
11181 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
11182 (cortex_a15_neon_bp_3cycle): Likewise.
11183 (cortex_a15_neon_ldm_2): Likewise.
11184 (cortex_a15_neon_stm_2): Likewise.
11185 (cortex_a15_neon_mcr): Likewise.
11186 (cortex_a15_neon_mrc): Likewise.
11187 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
11188 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
11189 (cortex_a15_neon_fp_vmul_ddd): Likewise.
11190 (cortex_a15_neon_fp_vmul_qqd): Likewise.
11191 (cortex_a15_neon_fp_vmla_ddd): Likewise.
11192 (cortex_a15_neon_fp_vmla_qqq): Likewise.
11193 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
11194 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
11195 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
11196 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
11197 (cortex_a15_neon_bp_simple): Likewise.
11198 (cortex_a15_neon_bp_2cycle): Likewise.
11199 (cortex_a15_neon_bp_3cycle): Likewise.
11200 (cortex_a15_neon_vld1_1_2_regs): Likewise.
11201 (cortex_a15_neon_vld1_3_4_regs): Likewise.
11202 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
11203 (cortex_a15_neon_vld2_4_regs): Likewise.
11204 (cortex_a15_neon_vld3_vld4): Likewise.
11205 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
11206 (cortex_a15_neon_vst1_3_4_regs): Likewise.
11207 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
11208 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
11209 (cortex_a15_neon_vst3_vst4): Rename to...
11210 (cortex_a15_neon_vst4): This, update for new attributes.
11211 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
11212 (cortex_a15_neon_vld3_vld4_lane): Likewise.
11213 (cortex_a15_neon_vst1_vst2_lane): Likewise.
11214 (cortex_a15_neon_vst3_vst4_lane): Likewise.
11215 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
11216 (cortex_a15_neon_ldm_2): Likewise.
11217 (cortex_a15_neon_stm_2): Likewise.
11218 (cortex_a15_neon_mcr): Likewise.
11219 (cortex_a15_neon_mcr_2_mcrr): Likewise.
11220 (cortex_a15_neon_mrc): Likewise.
11221 (cortex_a15_neon_mrrc): Likewise.
11223 (cortex_a15_neon_abd): New.
11224 (cortex_a15_neon_abd_q): Likewise.
11225 (cortex_a15_neon_aba): Likewise.
11226 (cortex_a15_neon_aba_q): Likewise.
11227 (cortex_a15_neon_acc): Likewise.
11228 (cortex_a15_neon_acc_q): Likewise.
11229 (cortex_a15_neon_arith_basic): Likewise.
11230 (cortex_a15_neon_arith_complex): Likewise.
11231 (cortex_a15_neon_multiply): Likewise.
11232 (cortex_a15_neon_multiply_q): Likewise.
11233 (cortex_a15_neon_mla): Likewise.
11234 (cortex_a15_neon_mla_q): Likewise.
11235 (cortex_a15_neon_sat_mla_long): Likewise.
11236 (cortex_a15_neon_shift_acc): Likewise.
11237 (cortex_a15_neon_shift_imm_basic): Likewise.
11238 (cortex_a15_neon_shift_imm_complex): Likewise.
11239 (cortex_a15_neon_shift_reg_basic): Likewise.
11240 (cortex_a15_neon_shift_reg_basic_q): Likewise.
11241 (cortex_a15_neon_shift_reg_complex): Likewise.
11242 (cortex_a15_neon_shift_reg_complex_q): Likewise.
11243 (cortex_a15_neon_fp_negabs): Likewise
11244 (cortex_a15_neon_fp_arith): Likewise
11245 (cortex_a15_neon_fp_arith_q): Likewise
11246 (cortex_a15_neon_fp_cvt_int): Likewise
11247 (cortex_a15_neon_fp_cvt_int_q): Likewise
11248 (cortex_a15_neon_fp_cvt_16): Likewise
11249 (cortex_a15_neon_fp_mul): Likewise
11250 (cortex_a15_neon_fp_mul_q): Likewise
11251 (cortex_a15_neon_fp_mla): Likewise
11252 (cortex_a15_neon_fp_mla_q): Likewise
11253 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
11254 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
11255 (cortex_a15_neon_bitops): Likewise.
11256 (cortex_a15_neon_bitops_q): Likewise.
11257 (cortex_a15_neon_from_gp): Likewise.
11258 (cortex_a15_neon_from_gp_q): Likewise.
11259 (cortex_a15_neon_tbl3_tbl4): Likewise.
11260 (cortex_a15_neon_zip_q): Likewise.
11261 (cortex_a15_neon_to_gp): Likewise.
11262 (cortex_a15_neon_load_a): Likewise.
11263 (cortex_a15_neon_load_b): Likewise.
11264 (cortex_a15_neon_load_c): Likewise.
11265 (cortex_a15_neon_load_d): Likewise.
11266 (cortex_a15_neon_load_e): Likewise.
11267 (cortex_a15_neon_load_f): Likewise.
11268 (cortex_a15_neon_store_a): Likewise.
11269 (cortex_a15_neon_store_b): Likewise.
11270 (cortex_a15_neon_store_c): Likewise.
11271 (cortex_a15_neon_store_d): Likewise.
11272 (cortex_a15_neon_store_e): Likewise.
11273 (cortex_a15_neon_store_f): Likewise.
11274 (cortex_a15_neon_store_g): Likewise.
11275 (cortex_a15_neon_store_h): Likewise.
11276 (cortex_a15_vfp_to_from_gp): Likewise.
11278 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11280 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
11282 (cortex_a9_neon_vshl_ddd): Remove.
11283 (cortex_a9_neon_vst3_vst4): Likewise.
11284 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
11286 (cortex_a9_neon_bit_ops_q): New.
11288 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
11289 (cortex_a9_neon_int_2): Likewise.
11290 (cortex_a9_neon_int_3): Likewise.
11291 (cortex_a9_neon_int_4): Likewise.
11292 (cortex_a9_neon_int_5): Likewise.
11293 (cortex_a9_neon_vqneg_vqabs): Likewise.
11294 (cortex_a9_neon_vmov): Likewise.
11295 (cortex_a9_neon_vaba): Likewise.
11296 (cortex_a9_neon_vaba_qqq): Likewise.
11297 (cortex_a9_neon_shift_1): Likewise.
11298 (cortex_a9_neon_shift_2): Likewise.
11299 (cortex_a9_neon_shift_3): Likewise.
11300 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
11301 (cortex_a9_neon_vsra_vrsra): Likewise.
11302 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11303 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
11304 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
11306 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11307 (cortex_a9_neon_mla_qqq_8_16): Likewise.
11308 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
11310 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
11311 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
11312 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
11313 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
11314 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
11315 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
11316 (cortex_a9_neon_fp_vsum): Likewise.
11317 (cortex_a9_neon_fp_vmul_ddd): Likewise.
11318 (cortex_a9_neon_fp_vmul_qqd): Likewise.
11319 (cortex_a9_neon_fp_vmla_ddd): Likewise.
11320 (cortex_a9_neon_fp_vmla_qqq): Likewise.
11321 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
11322 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
11323 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
11324 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
11325 (cortex_a9_neon_bp_simple): Likewise.
11326 (cortex_a9_neon_bp_2cycle): Likewise.
11327 (cortex_a9_neon_bp_3cycle): Likewise.
11328 (cortex_a9_neon_ldr): Likewise.
11329 (cortex_a9_neon_str): Likewise.
11330 (cortex_a9_neon_vld1_1_2_regs): Likewise.
11331 (cortex_a9_neon_vld1_3_4_regs): Likewise.
11332 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
11333 (cortex_a9_neon_vld2_4_regs): Likewise.
11334 (cortex_a9_neon_vld3_vld4): Likewise.
11335 (cortex_a9_neon_vld1_vld2_lane): Likewise.
11336 (cortex_a9_neon_vld3_vld4_lane): Likewise.
11337 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
11338 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
11339 (cortex_a9_neon_vst1_3_4_regs): Likewise.
11340 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
11341 (cortex_a9_neon_vst1_vst2_lane): Likewise.
11342 (cortex_a9_neon_vst3_vst4_lane): Likewise.
11343 (cortex_a9_neon_mcr): Likewise.
11344 (cortex_a9_neon_mcr_2_mcrr): Likewise.
11345 (cortex_a9_neon_mrc): Likewise.
11346 (cortex_a9_neon_mrrc): Likewise.
11348 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11350 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
11352 (cortex_a8_neon_vshl_ddd): Remove.
11353 (cortex_a8_neon_vst3_vst4): Likewise.
11354 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
11356 (cortex_a8_neon_bit_ops_q): New.
11358 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
11359 (cortex_a8_neon_int_2): Likewise..
11360 (cortex_a8_neon_int_3): Likewise.
11361 (cortex_a8_neon_int_5): Likewise.
11362 (cortex_a8_neon_vqneg_vqabs): Likewise.
11363 (cortex_a8_neon_int_4): Likewise.
11364 (cortex_a8_neon_vaba): Likewise.
11365 (cortex_a8_neon_vaba_qqq): Likewise.
11366 (cortex_a8_neon_shift_1): Likewise.
11367 (cortex_a8_neon_shift_2): Likewise.
11368 (cortex_a8_neon_shift_3): Likewise.
11369 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
11370 (cortex_a8_neon_vsra_vrsra): Likewise.
11371 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11372 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
11373 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
11375 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11376 (cortex_a8_neon_mla_qqq_8_16): Likewise.
11377 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
11379 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
11380 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
11381 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
11382 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
11383 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
11384 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
11385 (cortex_a8_neon_fp_vsum): Likewise.
11386 (cortex_a8_neon_fp_vmul_ddd): Likewise.
11387 (cortex_a8_neon_fp_vmul_qqd): Likewise.
11388 (cortex_a8_neon_fp_vmla_ddd): Likewise.
11389 (cortex_a8_neon_fp_vmla_qqq): Likewise.
11390 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
11391 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
11392 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
11393 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
11394 (cortex_a8_neon_bp_simple): Likewise.
11395 (cortex_a8_neon_bp_2cycle): Likewise.
11396 (cortex_a8_neon_bp_3cycle): Likewise.
11397 (cortex_a8_neon_ldr): Likewise.
11398 (cortex_a8_neon_str): Likewise.
11399 (cortex_a8_neon_vld1_1_2_regs): Likewise.
11400 (cortex_a8_neon_vld1_3_4_regs): Likewise.
11401 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
11402 (cortex_a8_neon_vld2_4_regs): Likewise.
11403 (cortex_a8_neon_vld3_vld4): Likewise.
11404 (cortex_a8_neon_vld1_vld2_lane): Likewise.
11405 (cortex_a8_neon_vld3_vld4_lane): Likewise.
11406 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
11407 (cortex_a8_neon_vst1_3_4_regs): Likewise.
11408 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
11409 (cortex_a8_neon_vst1_vst2_lane): Likewise.
11410 (cortex_a8_neon_vst3_vst4_lane): Likewise.
11411 (cortex_a8_neon_mcr): Likewise.
11412 (cortex_a8_neon_mcr_2_mcrr): Likewise.
11413 (cortex_a8_neon_mrc): Likewise.
11414 (cortex_a8_neon_mrrc): Likewise.
11416 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11418 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
11420 * config/aarch64/aarch64-simd.md (neon_type): Remove.
11421 (aarch64_simd_dup<mode>): Add "type" attribute.
11422 (aarch64_dup_lane<mode>): Likewise.
11423 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
11424 (*aarch64_simd_mov<mode>): Likewise.
11425 (aarch64_simd_mov_from_<mode>low): Likewise.
11426 (aarch64_simd_mov_from_<mode>high): Likewise.
11427 (orn<mode>3): Likewise.
11428 (bic<mode>3): Likewise.
11429 (add<mode>3): Likewise.
11430 (sub<mode>3): Likewise.
11431 (mul<mode>3): Likewise.
11432 (*aarch64_mul3_elt<mode>): Likewise.
11433 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
11434 (*aarch64_mul3_elt_to_128df): Likewise.
11435 (*aarch64_mul3_elt_to_64v2df): Likewise.
11436 (neg<mode>2): Likewise.
11437 (abs<mode>2): Likewise.
11438 (abd<mode>_3): Likewise.
11439 (aba<mode>_3): Likewise.
11440 (fabd<mode>_3): Likewise.
11441 (*fabd_scalar<mode>3): Likewise.
11442 (and<mode>3): Likewise.
11443 (ior<mode>3): Likewise.
11444 (xor<mode>3): Likewise.
11445 (one_cmpl<mode>2): Likewise.
11446 (aarch64_simd_vec_set<mode>): Likewise.
11447 (aarch64_simd_lshr<mode>): Likewise.
11448 (aarch64_simd_ashr<mode>): Likewise.
11449 (aarch64_simd_imm_shl<mode>): Likewise.
11450 (aarch64_simd_reg_sshl<mode): Likewise.
11451 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
11452 (aarch64_simd_reg_shl<mode>_signed): Likewise.
11453 (aarch64_simd_vec_setv2di): Likewise.
11454 (aarch64_simd_vec_set<mode>): Likewise.
11455 (aarch64_mla<mode>): Likewise.
11456 (*aarch64_mla_elt<mode>): Likewise.
11457 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
11458 (aarch64_mls<mode>): Likewise.
11459 (*aarch64_mls_elt<mode>): Likewise.
11460 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
11461 (<su><maxmin><mode>3): Likewise.
11462 (move_lo_quad_<mode>): Likewise.
11463 (aarch64_simd_move_hi_quad_<mode>): Likewise.
11464 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
11465 (vec_pack_trunc_<mode>): Likewise.
11466 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
11467 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
11468 (*aarch64_<su>mlal_lo<mode>): Likewise.
11469 (*aarch64_<su>mlal_hi<mode>): Likewise.
11470 (*aarch64_<su>mlsl_lo<mode>): Likewise.
11471 (*aarch64_<su>mlsl_hi<mode>): Likewise.
11472 (*aarch64_<su>mlal<mode>): Likewise.
11473 (*aarch64_<su>mlsl<mode>): Likewise.
11474 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
11475 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
11476 (add<mode>3): Likewise.
11477 (sub<mode>3): Likewise.
11478 (mul<mode>3): Likewise.
11479 (div<mode>3): Likewise.
11480 (neg<mode>2): Likewise.
11481 (abs<mode>2): Likewise.
11482 (fma<mode>4): Likewise.
11483 (*aarch64_fma4_elt<mode>): Likewise.
11484 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
11485 (*aarch64_fma4_elt_to_128df): Likewise.
11486 (*aarch64_fma4_elt_to_64v2df): Likewise.
11487 (fnma<mode>4): Likewise.
11488 (*aarch64_fnma4_elt<mode>): Likewise.
11489 (*aarch64_fnma4_elt_<vswap_width_name><mode>
11490 (*aarch64_fnma4_elt_to_128df): Likewise.
11491 (*aarch64_fnma4_elt_to_64v2df): Likewise.
11492 (<frint_pattern><mode>2): Likewise.
11493 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
11494 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
11495 (vec_unpacks_lo_v4sf): Likewise.
11496 (aarch64_float_extend_lo_v2df): Likewise.
11497 (vec_unpacks_hi_v4sf): Likewise.
11498 (aarch64_float_truncate_lo_v2sf): Likewise.
11499 (aarch64_float_truncate_hi_v4sf): Likewise.
11500 (aarch64_vmls<mode>): Likewise.
11501 (<su><maxmin><mode>3): Likewise.
11502 (<maxmin_uns><mode>3): Likewise.
11503 (reduc_<sur>plus_<mode>): Likewise.
11504 (reduc_<sur>plus_v2di): Likewise.
11505 (reduc_<sur>plus_v2si): Likewise.
11506 (reduc_<sur>plus_<mode>): Likewise.
11507 (aarch64_addpv4sf): Likewise.
11508 (clz<mode>2): Likewise.
11509 (reduc_<maxmin_uns>_<mode>): Likewise.
11510 (reduc_<maxmin_uns>_v2di): Likewise.
11511 (reduc_<maxmin_uns>_v2si): Likewise.
11512 (reduc_<maxmin_uns>_<mode>): Likewise.
11513 (reduc_<maxmin_uns>_v4sf): Likewise.
11514 (aarch64_simd_bsl<mode>_internal): Likewise.
11515 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11516 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
11517 (aarch64_get_lane<mode>): Likewise.
11518 (*aarch64_combinez<mode>): Likewise.
11519 (aarch64_combine<mode>): Likewise.
11520 (aarch64_simd_combine<mode>): Likewise.
11521 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
11522 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
11523 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
11524 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
11525 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
11526 (aarch64_<sur>h<addsub><mode>): Likewise.
11527 (aarch64_<sur><addsub>hn<mode>): Likewise.
11528 (aarch64_<sur><addsub>hn2<mode>): Likewise.
11529 (aarch64_pmul<mode>): Likewise.
11530 (aarch64_<su_optab><optab><mode>): Likewise.
11531 (aarch64_<sur>qadd<mode>): Likewise.
11532 (aarch64_sqmovun<mode>): Likewise.
11533 (aarch64_<sur>qmovn<mode>): Likewise.
11534 (aarch64_s<optab><mode>): Likewise.
11535 (aarch64_sq<r>dmulh<mode>): Likewise.
11536 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
11537 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
11538 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
11539 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
11540 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
11541 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
11542 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
11543 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
11544 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11545 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
11546 (aarch64_sqdmull<mode>): Likewise.
11547 (aarch64_sqdmull_lane<mode>_internal): Likewise.
11548 (aarch64_sqdmull_n<mode>): Likewise.
11549 (aarch64_sqdmull2<mode>_internal): Likewise.
11550 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11551 (aarch64_sqdmull2_n<mode>_internal): Likewise.
11552 (aarch64_<sur>shl<mode>): Likewise.
11553 (aarch64_<sur>q<r>shl<mode>
11554 (aarch64_<sur>shll_n<mode>): Likewise.
11555 (aarch64_<sur>shll2_n<mode>): Likewise.
11556 (aarch64_<sur>shr_n<mode>): Likewise.
11557 (aarch64_<sur>sra_n<mode>): Likewise.
11558 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
11559 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
11560 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
11561 (aarch64_cm<optab><mode>): Likewise.
11562 (aarch64_cm<optab>di): Likewise.
11563 (aarch64_cm<optab><mode>): Likewise.
11564 (aarch64_cm<optab>di): Likewise.
11565 (aarch64_cmtst<mode>): Likewise.
11566 (aarch64_cmtstdi): Likewise.
11567 (aarch64_cm<optab><mode>): Likewise.
11568 (*aarch64_fac<optab><mode>): Likewise.
11569 (aarch64_addp<mode>): Likewise.
11570 (aarch64_addpdi): Likewise.
11571 (sqrt<mode>2): Likewise.
11572 (vec_load_lanesoi<mode>): Likewise.
11573 (vec_store_lanesoi<mode>): Likewise.
11574 (vec_load_lanesci<mode>): Likewise.
11575 (vec_store_lanesci<mode>): Likewise.
11576 (vec_load_lanesxi<mode>): Likewise.
11577 (vec_store_lanesxi<mode>): Likewise.
11578 (*aarch64_mov<mode>): Likewise.
11579 (aarch64_ld2<mode>_dreg): Likewise.
11580 (aarch64_ld2<mode>_dreg): Likewise.
11581 (aarch64_ld3<mode>_dreg): Likewise.
11582 (aarch64_ld3<mode>_dreg): Likewise.
11583 (aarch64_ld4<mode>_dreg): Likewise.
11584 (aarch64_ld4<mode>_dreg): Likewise.
11585 (aarch64_tbl1<mode>): Likewise.
11586 (aarch64_tbl2v16qi): Likewise.
11587 (aarch64_combinev16qi): Likewise.
11588 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
11589 (aarch64_st2<mode>_dreg): Likewise.
11590 (aarch64_st2<mode>_dreg): Likewise.
11591 (aarch64_st3<mode>_dreg): Likewise.
11592 (aarch64_st3<mode>_dreg): Likewise.
11593 (aarch64_st4<mode>_dreg): Likewise.
11594 (aarch64_st4<mode>_dreg): Likewise.
11595 (*aarch64_simd_ld1r<mode>): Likewise.
11596 (aarch64_frecpe<mode>): Likewise.
11597 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
11598 (aarch64_frecps<mode>): Likewise.
11600 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11602 * config/arm/iterators.md (V_elem_ch): New.
11604 (VQH_type): Likewise.
11605 * config/arm/arm.md (is_neon_type): New.
11606 (conds): Use is_neon_type.
11607 (anddi3_insn): Update type attribute.
11608 (xordi3_insn): Likewise.
11609 (one_cmpldi2): Likewise.
11610 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
11611 * config/arm/neon.md (neon_mov): Update type attribute.
11612 (*movmisalign<mode>_neon_store): Likewise.
11613 (*movmisalign<mode>_neon_load): Likewise.
11614 (vec_set<mode>_internal): Likewise.
11615 (vec_set<mode>_internal): Likewise.
11616 (vec_setv2di_internal): Likewise.
11617 (vec_extract<mode>): Likewise.
11618 (vec_extract<mode>): Likewise.
11619 (vec_extractv2di): Likewise.
11620 (*add<mode>3_neon): Likewise.
11621 (adddi3_neon): Likewise.
11622 (*sub<mode>3_neon): Likewise.
11623 (subdi3_neon): Likewise.
11624 (fma<VCVTF:mode>4): Likewise.
11625 (fma<VCVTF:mode>4_intrinsic): Likewise.
11626 (*fmsub<VCVTF:mode>4): Likewise.
11627 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
11628 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
11629 (ior<mode>3): Likewise.
11630 (and<mode>3): Likewise.
11631 (orn<mode>3_neon): Likewise.
11632 (orndi3_neon): Likewise.
11633 (bic<mode>3_neon): Likewise.
11634 (bicdi3_neon): Likewise.
11635 (xor<mode>3): Likewise.
11636 (one_cmpl<mode>2): Likewise.
11637 (abs<mode>2): Likewise.
11638 (neg<mode>2): Likewise.
11639 (negdi2_neon): Likewise.
11640 (*umin<mode>3_neon): Likewise.
11641 (*umax<mode>3_neon): Likewise.
11642 (*smin<mode>3_neon): Likewise.
11643 (*smax<mode>3_neon): Likewise.
11644 (vashl<mode>3): Likewise.
11645 (vashr<mode>3_imm): Likewise.
11646 (vlshr<mode>3_imm): Likewise.
11647 (ashl<mode>3_signed): Likewise.
11648 (ashl<mode>3_unsigned): Likewise.
11649 (neon_load_count): Likewise.
11650 (ashldi3_neon_noclobber): Likewise.
11651 (ashldi3_neon): Likewise.
11652 (signed_shift_di3_neon): Likewise.
11653 (unsigned_shift_di3_neon): Likewise.
11654 (ashrdi3_neon_imm_noclobber): Likewise.
11655 (lshrdi3_neon_imm_noclobber): Likewise.
11656 (<shift>di3_neon): Likewise.
11657 (widen_ssum<mode>3): Likewise.
11658 (widen_usum<mode>3): Likewise.
11659 (quad_halves_<code>v4si): Likewise.
11660 (quad_halves_<code>v4sf): Likewise.
11661 (quad_halves_<code>v8hi): Likewise.
11662 (quad_halves_<code>v16qi): Likewise.
11663 (reduc_splus_v2di): Likewise.
11664 (neon_vpadd_internal<mode>): Likewise.
11665 (neon_vpsmin<mode>): Likewise.
11666 (neon_vpsmax<mode>): Likewise.
11667 (neon_vpumin<mode>): Likewise.
11668 (neon_vpumax<mode>): Likewise.
11669 (*ss_add<mode>_neon): Likewise.
11670 (*us_add<mode>_neon): Likewise.
11671 (*ss_sub<mode>_neon): Likewise.
11672 (*us_sub<mode>_neon): Likewise.
11673 (neon_vadd<mode>_unspec): Likewise.
11674 (neon_vaddl<mode>): Likewise.
11675 (neon_vaddw<mode>): Likewise.
11676 (neon_vhadd<mode>): Likewise.
11677 (neon_vqadd<mode>): Likewise.
11678 (neon_vaddhn<mode>): Likewise.
11679 (neon_vmul<mode>): Likewise.
11680 (neon_vfms<VCVTF:mode>): Likewise.
11681 (neon_vmlal<mode>): Likewise.
11682 (neon_vmls<mode>): Likewise.
11683 (neon_vmlsl<mode>): Likewise.
11684 (neon_vqdmulh<mode>): Likewise.
11685 (neon_vqdmlal<mode>): Likewise.
11686 (neon_vqdmlsl<mode>): Likewise.
11687 (neon_vmull<mode>): Likewise.
11688 (neon_vqdmull<mode>): Likewise.
11689 (neon_vsub<mode>_unspec): Likewise.
11690 (neon_vsubl<mode>): Likewise.
11691 (neon_vsubw<mode>): Likewise.
11692 (neon_vqsub<mode>): Likewise.
11693 (neon_vhsub<mode>): Likewise.
11694 (neon_vsubhn<mode>): Likewise.
11695 (neon_vceq<mode>): Likewise.
11696 (neon_vcge<mode>): Likewise.
11697 (neon_vcgeu<mode>): Likewise.
11698 (neon_vcgt<mode>): Likewise.
11699 (neon_vcgtu<mode>): Likewise.
11700 (neon_vcle<mode>): Likewise.
11701 (neon_vclt<mode>): Likewise.
11702 (neon_vcage<mode>): Likewise.
11703 (neon_vcagt<mode>): Likewise.
11704 (neon_vtst<mode>): Likewise.
11705 (neon_vabd<mode>): Likewise.
11706 (neon_vabdl<mode>): Likewise.
11707 (neon_vaba<mode>): Likewise.
11708 (neon_vabal<mode>): Likewise.
11709 (neon_vmax<mode>): Likewise.
11710 (neon_vmin<mode>): Likewise.
11711 (neon_vpaddl<mode>): Likewise.
11712 (neon_vpadal<mode>): Likewise.
11713 (neon_vpmax<mode>): Likewise.
11714 (neon_vpmin<mode>): Likewise.
11715 (neon_vrecps<mode>): Likewise.
11716 (neon_vrsqrts<mode>): Likewise.
11717 (neon_vqabs<mode>): Likewise.
11718 (neon_vqneg<mode>): Likewise.
11719 (neon_vcls<mode>): Likewise.
11720 (clz<mode>2): Likewise.
11721 (popcount<mode>2): Likewise.
11722 (neon_vrecpe<mode>): Likewise.
11723 (neon_vrsqrte<mode>): Likewise.
11724 (neon_vget_lane<mode>_sext_internal): Likewise.
11725 (neon_vget_lane<mode>_zext_internal): Likewise.
11726 (neon_vdup_n<mode>): Likewise.
11727 (neon_vdup_n<mode>): Likewise.
11728 (neon_vdup_nv2di): Likewise.
11729 (neon_vdup_lane<mode>_interal): Likewise.
11730 (*neon_vswp<mode>): Likewise.
11731 (neon_vcombine<mode>): Likewise.
11732 (float<mode><V_cvtto>2): Likewise.
11733 (floatuns<mode><V_cvtto>2): Likewise.
11734 (fix_trunc<mode><V_cvtto>2): Likewise.
11735 (fixuns_trunc<mode><V_cvtto>2
11736 (neon_vcvt<mode>): Likewise.
11737 (neon_vcvt<mode>): Likewise.
11738 (neon_vcvtv4sfv4hf): Likewise.
11739 (neon_vcvtv4hfv4sf): Likewise.
11740 (neon_vcvt_n<mode>): Likewise.
11741 (neon_vcvt_n<mode>): Likewise.
11742 (neon_vmovn<mode>): Likewise.
11743 (neon_vqmovn<mode>): Likewise.
11744 (neon_vqmovun<mode>): Likewise.
11745 (neon_vmovl<mode>): Likewise.
11746 (neon_vmul_lane<mode>): Likewise.
11747 (neon_vmul_lane<mode>): Likewise.
11748 (neon_vmull_lane<mode>): Likewise.
11749 (neon_vqdmull_lane<mode>): Likewise.
11750 (neon_vqdmulh_lane<mode>): Likewise.
11751 (neon_vqdmulh_lane<mode>): Likewise.
11752 (neon_vmla_lane<mode>): Likewise.
11753 (neon_vmla_lane<mode>): Likewise.
11754 (neon_vmlal_lane<mode>): Likewise.
11755 (neon_vqdmlal_lane<mode>): Likewise.
11756 (neon_vmls_lane<mode>): Likewise.
11757 (neon_vmls_lane<mode>): Likewise.
11758 (neon_vmlsl_lane<mode>): Likewise.
11759 (neon_vqdmlsl_lane<mode>): Likewise.
11760 (neon_vext<mode>): Likewise.
11761 (neon_vrev64<mode>): Likewise.
11762 (neon_vrev32<mode>): Likewise.
11763 (neon_vrev16<mode>): Likewise.
11764 (neon_vbsl<mode>_internal): Likewise.
11765 (neon_vshl<mode>): Likewise.
11766 (neon_vqshl<mode>): Likewise.
11767 (neon_vshr_n<mode>): Likewise.
11768 (neon_vshrn_n<mode>): Likewise.
11769 (neon_vqshrn_n<mode>): Likewise.
11770 (neon_vqshrun_n<mode>): Likewise.
11771 (neon_vshl_n<mode>): Likewise.
11772 (neon_vqshl_n<mode>): Likewise.
11773 (neon_vqshlu_n<mode>): Likewise.
11774 (neon_vshll_n<mode>): Likewise.
11775 (neon_vsra_n<mode>): Likewise.
11776 (neon_vsri_n<mode>): Likewise.
11777 (neon_vsli_n<mode>): Likewise.
11778 (neon_vtbl1v8qi): Likewise.
11779 (neon_vtbl2v8qi): Likewise.
11780 (neon_vtbl3v8qi): Likewise.
11781 (neon_vtbl4v8qi): Likewise.
11782 (neon_vtbl1v16qi): Likewise.
11783 (neon_vtbl2v16qi): Likewise.
11784 (neon_vcombinev16qi): Likewise.
11785 (neon_vtbx1v8qi): Likewise.
11786 (neon_vtbx2v8qi): Likewise.
11787 (neon_vtbx3v8qi): Likewise.
11788 (neon_vtbx4v8qi): Likewise.
11789 (*neon_vtrn<mode>_insn): Likewise.
11790 (*neon_vzip<mode>_insn): Likewise.
11791 (*neon_vuzp<mode>_insn): Likewise.
11792 (neon_vld1<mode>): Likewise.
11793 (neon_vld1_lane<mode>): Likewise.
11794 (neon_vld1_lane<mode>): Likewise.
11795 (neon_vld1_dup<mode>): Likewise.
11796 (neon_vld1_dup<mode>): Likewise.
11797 (neon_vld1_dupv2di): Likewise.
11798 (neon_vst1<mode>): Likewise.
11799 (neon_vst1_lane<mode>): Likewise.
11800 (neon_vst1_lane<mode>): Likewise.
11801 (neon_vld2<mode>): Likewise.
11802 (neon_vld2<mode>): Likewise.
11803 (neon_vld2_lane<mode>): Likewise.
11804 (neon_vld2_lane<mode>): Likewise.
11805 (neon_vld2_dup<mode>): Likewise.
11806 (neon_vst2<mode>): Likewise.
11807 (neon_vst2<mode>): Likewise.
11808 (neon_vst2_lane<mode>): Likewise.
11809 (neon_vst2_lane<mode>): Likewise.
11810 (neon_vld3<mode>): Likewise.
11811 (neon_vld3qa<mode>): Likewise.
11812 (neon_vld3qb<mode>): Likewise.
11813 (neon_vld3_lane<mode>): Likewise.
11814 (neon_vld3_lane<mode>): Likewise.
11815 (neon_vld3_dup<mode>): Likewise.
11816 (neon_vst3<mode>): Likewise.
11817 (neon_vst3qa<mode>): Likewise.
11818 (neon_vst3qb<mode>): Likewise.
11819 (neon_vst3_lane<mode>): Likewise.
11820 (neon_vst3_lane<mode>): Likewise.
11821 (neon_vld4<mode>): Likewise.
11822 (neon_vld4qa<mode>): Likewise.
11823 (neon_vld4qb<mode>): Likewise.
11824 (neon_vld4_lane<mode>): Likewise.
11825 (neon_vld4_lane<mode>): Likewise.
11826 (neon_vld4_dup<mode>): Likewise.
11827 (neon_vst4<mode>): Likewise.
11828 (neon_vst4qa<mode>): Likewise.
11829 (neon_vst4qb<mode>): Likewise.
11830 (neon_vst4_lane<mode>): Likewise.
11831 (neon_vst4_lane<mode>): Likewise.
11832 (neon_vec_unpack<US>_lo_<mode>): Likewise.
11833 (neon_vec_unpack<US>_hi_<mode>): Likewise.
11834 (neon_vec_<US>mult_lo_<mode>): Likewise.
11835 (neon_vec_<US>mult_hi_<mode>): Likewise.
11836 (neon_vec_<US>shiftl_<mode>): Likewise.
11837 (neon_unpack<US>_<mode>): Likewise.
11838 (neon_vec_<US>mult_<mode>): Likewise.
11839 (vec_pack_trunc_<mode>): Likewise.
11840 (neon_vec_pack_trunc_<mode>): Likewise.
11841 (neon_vabd<mode>_2): Likewise.
11842 (neon_vabd<mode>_3): Likewise.
11844 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11846 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
11847 (load_pair): Update type attribute.
11848 (store_pair): Update type attribute.
11849 * config/aarch64/iterators.md (q): New.
11851 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11853 * config/arm/types.md: Add new types for Neon insns.
11855 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11856 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11857 Sergey Lega <sergey.s.lega@intel.com>
11858 Anna Tikhonova <anna.tikhonova@intel.com>
11859 Ilya Tocar <ilya.tocar@intel.com>
11860 Andrey Turetskiy <andrey.turetskiy@intel.com>
11861 Ilya Verbin <ilya.verbin@intel.com>
11862 Kirill Yukhin <kirill.yukhin@intel.com>
11863 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11865 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
11866 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
11867 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
11868 (rcp14<mode>): New.
11869 (srcp14<mode>): Ditto.
11870 (rsqrt14<mode>): Ditto.
11871 (rsqrt14<mode>): Ditto.
11872 (avx512f_vmscalef<mode>): Ditto.
11873 (avx512f_scalef<mode>): Ditto.
11874 (avx512f_getexp<mode>): Ditto.
11875 (avx512f_sgetexp<mode>): Ditto.
11876 (avx512f_fixupimm<mode>): Ditto.
11877 (avx512f_sfixupimm<mode>): Ditto.
11878 (avx512f_rndscale<mode>): Ditto.
11879 (*avx512er_exp2<mode>): Ditto.
11880 (*avx512er_rcp28<mode>): Ditto.
11881 (avx512er_rsqrt28<mode>): Ditto.
11882 (avx512f_getmant<mode>): Ditto.
11883 (avx512f_getmant<mode>): Ditto.
11884 (avx512f_rndscale<mode>): Fix formatting.
11886 2013-10-15 Martin Jambor <mjambor@suse.cz>
11888 * ipa-utils.h (ipa_edge_within_scc): Declare.
11889 * ipa-cp.c (edge_within_scc): Moved...
11890 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
11892 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11893 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11894 Sergey Lega <sergey.s.lega@intel.com>
11895 Anna Tikhonova <anna.tikhonova@intel.com>
11896 Ilya Tocar <ilya.tocar@intel.com>
11897 Andrey Turetskiy <andrey.turetskiy@intel.com>
11898 Ilya Verbin <ilya.verbin@intel.com>
11899 Kirill Yukhin <kirill.yukhin@intel.com>
11900 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11902 * config/i386/predicates.md (const_8_to_15_operand): New.
11903 (const_16_to_31_operand): Ditto.
11904 * config/i386/sse.md (V8FI): New.
11906 (reduc_splus_v8df): Ditto.
11907 (reduc_splus_v16sf): Ditto.
11908 (avx512f_vextract<shuffletype>32x4_1): Ditto.
11909 (vec_extract_hi_<mode>): Ditto.
11910 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
11911 (vec_set_lo_<mode>): Ditto.
11912 (vec_set_hi_<mode>): Ditto.
11913 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
11914 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
11915 (avx512f_pshufd_1): Ditto.
11916 (avx512f_broadcast<mode>): Ditto.
11917 (avx512f_broadcast<mode>): Ditto.
11918 (define_split): Split vec_extract_lo into move.
11919 (ssequartermode): Ditto.
11920 (ssedoublemode): Extened with wider modes.
11921 (vec_extract_lo_<mode>): Ditto.
11923 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11924 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11925 Sergey Lega <sergey.s.lega@intel.com>
11926 Anna Tikhonova <anna.tikhonova@intel.com>
11927 Ilya Tocar <ilya.tocar@intel.com>
11928 Andrey Turetskiy <andrey.turetskiy@intel.com>
11929 Ilya Verbin <ilya.verbin@intel.com>
11930 Kirill Yukhin <kirill.yukhin@intel.com>
11931 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11933 * config/i386/predicates.md (register_or_constm1_operand): New.
11934 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
11935 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
11936 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
11937 UNSPEC_SCATTER_PREFETCH
11939 (avx512f_ucmp<mode>3): Ditto.
11940 (avx512f_vternlog<mode>): Ditto.
11941 (avx512f_align<mode>): Ditto.
11942 (<shift_insn><mode>3): Ditto.
11943 (avx512f_<rotate>v<mode>): Ditto.
11944 (avx512f_<rotate><mode>): Ditto.
11945 (avx512f_eq<mode>3): Ditto.
11946 (avx512f_eq<mode>3_1): Ditto.
11947 (avx512f_gt<mode>3): Ditto.
11948 (avx512f_testm<mode>3): Ditto.
11949 (avx512f_testnm<mode>3): Ditto.
11950 (avx512pf_gatherpf<mode>): Ditto.
11951 (*avx512pf_gatherpf<mode>_mask): Ditto.
11952 (*avx512pf_gatherpf<mode>): Ditto.
11953 (avx512pf_scatterpf<mode>): Ditto.
11954 (*avx512pf_scatterpf<mode>_mask): Ditto.
11955 (*avx512pf_scatterpf<mode>): Ditto.
11956 (avx512f_vec_dup_gpr<mode>): Ditto.
11957 (clz<mode>2): Ditto.
11958 (conflict<mode>): Ditto.
11959 (REDUC_SMINMAX_MODE): Extened with wider modes.
11960 (reduc_<code>_<mode>): Ditto.
11961 (vlshr<mode>3): Ditto.
11962 (vashl<mode>3): Ditto.
11964 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11965 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11966 Sergey Lega <sergey.s.lega@intel.com>
11967 Anna Tikhonova <anna.tikhonova@intel.com>
11968 Ilya Tocar <ilya.tocar@intel.com>
11969 Andrey Turetskiy <andrey.turetskiy@intel.com>
11970 Ilya Verbin <ilya.verbin@intel.com>
11971 Kirill Yukhin <kirill.yukhin@intel.com>
11972 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11974 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
11977 (avx512fmaskmode): Ditto.
11978 (bcstscalarsuff): Ditto.
11979 (avx512f_blendm<mode>): Ditto.
11980 (cmp_imm_predicate): Ditto.
11981 (avx512f_cmp<mode>3): Ditto.
11982 (avx512f_vec_dup<mode>): Ditto.
11983 (avx512f_vec_dup_mem<mode>): Ditto.
11984 (avx512f_vpermi2var<mode>3): Ditto.
11985 (avx512f_vpermt2var<mode>3): Ditto.
11986 (vec_init<mode>): Ditto.
11987 (avx512f_gathersi<mode>): Ditto.
11988 (*avx512f_gathersi<mode>): Ditto.
11989 (*avx512f_gathersi<mode>_2): Ditto.
11990 (avx512f_gatherdi<mode>): Ditto.
11991 (*avx512f_gatherdi<mode>): Ditto.
11992 (*avx512f_gatherdi<mode>_2): Ditto.
11993 (avx512f_scattersi<mode>): Ditto.
11994 (*avx512f_scattersi<mode>): Ditto.
11995 (avx512f_scatterdi<mode>): Ditto.
11996 (*avx512f_scatterdi<mode>): Ditto.
11997 (sseintprefix): Extened with wider modes.
11998 (VEC_GATHER_IDXSI): Ditto.
11999 (VEC_GATHER_IDXDI): Ditto.
12000 (VEC_GATHER_SRCDI): Ditto.
12002 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
12003 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12005 * config/arm/t-aprofile: New file.
12006 * config.gcc: Handle --with-multilib-list option.
12008 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
12010 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
12013 2013-10-15 Richard Biener <rguenther@suse.de>
12015 * tree-loop-distribution.c (build_empty_rdg): Inline into
12017 (rdg_flag_vertex): Inline into single user.
12018 (rdg_flag_vertex_and_dependent): Likewise.
12019 (build_rdg_partition_for_vertex): Remove processed bitmap.
12020 (rdg_build_partitions): Simplify.
12022 2013-10-15 Richard Biener <rguenther@suse.de>
12024 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
12025 Restructure forwarding through conversions and copies to
12026 avoid performing copy-propagation the wrong way. Adjust
12027 recursion invocations.
12028 (forward_propagate_addr_expr): Add argument stating if we
12029 are recursing from a single-use.
12030 (ssa_forward_propagate_and_combine): Adjust.
12032 2013-10-14 David Malcolm <dmalcolm@redhat.com>
12034 * dumpfile.h (gcc::dump_manager): New class, to hold state
12035 relating to dumpfile management.
12036 (get_dump_file_name): Remove in favor of method of dump_manager.
12037 (dump_initialized_p): Likewise.
12038 (dump_start): Likewise.
12039 (dump_finish): Likewise.
12040 (dump_switch_p): Likewise.
12041 (dump_register): Likewise.
12042 (get_dump_file_info): Likewise.
12043 * context.c (gcc::context::context): Construct the dump_manager
12045 * context.h (gcc::context::get_dumps): New.
12046 (gcc::context::m_dumps): New.
12047 * coverage.c (coverage_init): Port to dump_manager API.
12048 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
12049 (extra_dump_files_in_use): Likewise.
12050 (extra_dump_files_alloced): Likewise.
12051 (gcc::dump_manager::dump_manager): New.
12052 (dump_register): Convert to...
12053 (gcc::dump_manager::dump_register): ...method, replacing
12054 function-static next_dump with m_next_dump field.
12055 (get_dump_file_info): Convert to...
12056 (gcc::dump_manager::get_dump_file_info): ...method.
12057 (get_dump_file_name): Convert to...
12058 (gcc::dump_manager::get_dump_file_name): ...method.
12059 (dump_start): Convert to...
12060 (gcc::dump_manager::dump_start): ...method.
12061 (dump_finish): Convert to...
12062 (gcc::dump_manager::dump_finish): ...method.
12063 (dump_begin): Replace body with...
12064 (gcc::dump_manager::dump_begin): ...new method.
12065 (dump_phase_enabled_p): Convert to...
12066 (gcc::dump_manager::dump_phase_enabled_p): ...method.
12067 (dump_phase_enabled_p): Convert to...
12068 (gcc::dump_manager::dump_phase_enabled_p): ...method.
12069 (dump_initialized_p): Convert to...
12070 (gcc::dump_manager::dump_initialized_p): ...method.
12071 (dump_flag_name): Replace body with...
12072 (gcc::dump_manager::dump_flag_name): ...new method.
12073 (dump_enable_all): Convert to...
12074 (gcc::dump_manager::dump_enable_all): ...new method.
12075 (opt_info_enable_passes): Convert to...
12076 (gcc::dump_manager::opt_info_enable_passes): ...new method.
12077 (dump_switch_p_1): Convert to...
12078 (gcc::dump_manager::dump_switch_p_1): ...new method.
12079 (dump_switch_p): Convert to...
12080 (gcc::dump_manager::dump_switch_p): ...new method.
12081 (opt_info_switch_p): Port to dump_manager API.
12082 (enable_rtl_dump_file): Likewise.
12083 * opts-global.c (handle_common_deferred_options): Port to new
12085 * passes.c (pass_manager::finish_optimization_passes): Likewise.
12086 (pass_manager::register_one_dump_file): Likewise.
12087 (pass_manager::register_pass): Likewise.
12088 (pass_init_dump_file): Likewise.
12089 (pass_fini_dump_file): Likewise.
12090 * statistics.c (statistics_early_init): Likewise.
12092 2013-10-14 Richard Biener <rguenther@suse.de>
12094 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
12095 iterative_hash_canonical_type, gimple_canonical_type_hash,
12096 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
12097 gimple_register_canonical_type, print_gimple_types_stats,
12098 free_gimple_type_tables): Move to lto/lto.c
12099 (gt-gimple.h): Do not include.
12100 * gimple.h (gimple_register_canonical_type,
12101 print_gimple_types_stats, free_gimple_type_tables): Remove.
12102 * Makefile.in (GTFILES): Remove gimple.c.
12104 2013-10-14 Travis Snoozy <quandary@remstate.com>
12107 * config/msp430/msp430.c (msp430_option_override): Correct thinko
12108 scanning for msp430x targets.
12110 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
12113 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
12114 (registers_ok_for_ldd_peep): Move around.
12115 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
12116 * config/sparc/sparc.md (widening peepholes): Use it.
12118 2013-10-14 Richard Biener <rguenther@suse.de>
12120 PR middle-end/58712
12121 PR middle-end/55358
12122 * gimple.c (iterative_hash_canonical_type): Make sure to
12123 record the hash into the correct hashtable slot.
12125 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
12127 PR rtl-optimization/58662
12128 * combine.c (try_combine): Take into account death nodes on I2 when
12129 splitting a PARALLEL of two independent SETs. Fix dump message.
12131 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
12134 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
12135 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
12137 * config/sh/t-sh (sh_treg_combine.o): New entry.
12138 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
12139 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
12140 (register_sh_passes): New function. Register sh_treg_combine pass.
12141 (sh_option_override): Invoke it.
12142 (sh_canonicalize_comparison): Handle op0_preserve_value.
12143 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
12144 opportunities. Canonicalize branch condition.
12145 (nott): Allow only if pseudos can be created for non-SH2A.
12147 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
12150 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
12151 (ix86_expand_movmem): Replace copy_addr_to_reg with
12152 ix86_copy_addr_to_reg.
12153 (ix86_expand_setmem): Likewise.
12155 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
12157 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
12158 provided by ix86_fp_compare_mode instead of CCFPUmode.
12160 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
12162 * config/aarch64/arm_neon.h
12163 (vtbx<1,3>_<psu>8): Fix register constriants.
12165 2013-10-11 Jeff Law <law@redhat.com>
12167 PR tree-optimization/58640
12168 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
12169 threading paths that cross over two loop entry points.
12171 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12173 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
12174 handle vector float as well.
12175 (*vsx_le_perm_load_v4si): Likewise.
12176 (*vsx_le_perm_store_v2di): Likewise.
12177 (*vsx_le_perm_store_v4si): Likewise.
12179 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12181 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
12182 directly to circumvent subtract from splat{31} workaround.
12183 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
12185 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
12186 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
12187 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
12188 (altivec_vperm_<mode>): Convert to define_insn_and_split to
12189 separate big and little endian logic.
12190 (*altivec_vperm_<mode>_internal): New define_insn.
12191 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
12192 separate big and little endian logic.
12193 (*altivec_vperm_<mode>_uns_internal): New define_insn.
12194 (vec_permv16qi): Add little endian logic.
12196 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
12198 * doc/extend.texi (returns_nonnull): Remove arguments.
12200 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12201 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12202 Sergey Lega <sergey.s.lega@intel.com>
12203 Anna Tikhonova <anna.tikhonova@intel.com>
12204 Ilya Tocar <ilya.tocar@intel.com>
12205 Andrey Turetskiy <andrey.turetskiy@intel.com>
12206 Ilya Verbin <ilya.verbin@intel.com>
12207 Kirill Yukhin <kirill.yukhin@intel.com>
12208 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12210 * config/i386/sse.md (VI48F_256_512): New.
12211 (avx2_permvar<mode>): Change to ...
12212 (<avx2_avx512f>_permvar<mode>): This.
12214 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12215 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12216 Sergey Lega <sergey.s.lega@intel.com>
12217 Anna Tikhonova <anna.tikhonova@intel.com>
12218 Ilya Tocar <ilya.tocar@intel.com>
12219 Andrey Turetskiy <andrey.turetskiy@intel.com>
12220 Ilya Verbin <ilya.verbin@intel.com>
12221 Kirill Yukhin <kirill.yukhin@intel.com>
12222 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12224 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
12225 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
12226 * config/i386/sse.md (VI4_AVX): New.
12227 (sf2simodelower): Ditto.
12228 (sse2_cvtps2dq): Change to ...
12229 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
12231 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12232 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12233 Sergey Lega <sergey.s.lega@intel.com>
12234 Anna Tikhonova <anna.tikhonova@intel.com>
12235 Ilya Tocar <ilya.tocar@intel.com>
12236 Andrey Turetskiy <andrey.turetskiy@intel.com>
12237 Ilya Verbin <ilya.verbin@intel.com>
12238 Kirill Yukhin <kirill.yukhin@intel.com>
12239 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12241 * config/i386/sse.md (V_512): New.
12243 (vcond<V_512:mode><VF_512:mode>): Ditto.
12244 (vcond<V_512:mode><VI_512:mode>): Ditto.
12245 (vcondu<V_512:mode><VI_512:mode>): Ditto.
12247 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12248 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12249 Sergey Lega <sergey.s.lega@intel.com>
12250 Anna Tikhonova <anna.tikhonova@intel.com>
12251 Ilya Tocar <ilya.tocar@intel.com>
12252 Andrey Turetskiy <andrey.turetskiy@intel.com>
12253 Ilya Verbin <ilya.verbin@intel.com>
12254 Kirill Yukhin <kirill.yukhin@intel.com>
12255 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12257 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
12258 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
12260 (fma<mode>4): Removed condition.
12261 (fms<mode>4): Ditto.
12262 (fnma<mode>4): Ditto.
12263 (fnms<mode>4): Ditto.
12264 (fma4i_fmadd_<mode>): Ditto.
12265 (*fma_fmadd_<mode>): Ditto.
12266 (*fma_fmsub_<mode>): Ditto.
12267 (*fma_fnmadd_<mode>): Ditto.
12268 (*fma_fnmsub_<mode>): Ditto.
12269 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
12270 (*fma_fmaddsub_<mode>): Ditto.
12271 (*fma_fmsubadd_<mode>): Ditto.
12272 (*fmai_fmadd_<mode>): Ditto.
12273 (*fmai_fmsub_<mode>): Ditto.
12274 (*fmai_fnmadd_<mode>): Ditto.
12275 (*fmai_fnmsub_<mode>): Ditto.
12277 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12278 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12279 Sergey Lega <sergey.s.lega@intel.com>
12280 Anna Tikhonova <anna.tikhonova@intel.com>
12281 Ilya Tocar <ilya.tocar@intel.com>
12282 Andrey Turetskiy <andrey.turetskiy@intel.com>
12283 Ilya Verbin <ilya.verbin@intel.com>
12284 Kirill Yukhin <kirill.yukhin@intel.com>
12285 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12287 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
12288 (VI124_256): Changed to ...
12289 (VI124_256_48_512): This.
12290 (ssepackmode): Extended with wider modes.
12291 (<code><mode>3): Changed iterator.
12292 (*avx2_<code><mode>3): Ditto.
12293 (vec_pack_trunc_<mode>): Ditto.
12295 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12296 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12297 Sergey Lega <sergey.s.lega@intel.com>
12298 Anna Tikhonova <anna.tikhonova@intel.com>
12299 Ilya Tocar <ilya.tocar@intel.com>
12300 Andrey Turetskiy <andrey.turetskiy@intel.com>
12301 Ilya Verbin <ilya.verbin@intel.com>
12302 Kirill Yukhin <kirill.yukhin@intel.com>
12303 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12305 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
12306 (VI8F_256_512): Ditto.
12307 (abs<mode>2): Changed iterator.
12308 (avx2_perm<mode>): Changed to ...
12309 (<avx2_avx512f>_perm<mode>): This.
12310 (avx2_perm<mode>_1): Changed to ...
12311 (<avx2_avx512f>_perm<mode>_1): This.
12313 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12314 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12315 Sergey Lega <sergey.s.lega@intel.com>
12316 Anna Tikhonova <anna.tikhonova@intel.com>
12317 Ilya Tocar <ilya.tocar@intel.com>
12318 Andrey Turetskiy <andrey.turetskiy@intel.com>
12319 Ilya Verbin <ilya.verbin@intel.com>
12320 Kirill Yukhin <kirill.yukhin@intel.com>
12321 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12323 * config/i386/sse.md (VI48_AVX512F): New.
12324 (VI48_AVX2): Changed to ...
12325 (VI48_AVX2_48_AVX512F): This.
12326 (avx2_ashrv<mode>): Changed to ...
12327 (<avx2_avx512f>_ashrv<mode>): This.
12328 (avx2_<shift_insn>v<mode>): Changed to ...
12329 (<avx2_avx512f>_<shift_insn>v<mode>): This.
12331 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12332 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12333 Sergey Lega <sergey.s.lega@intel.com>
12334 Anna Tikhonova <anna.tikhonova@intel.com>
12335 Ilya Tocar <ilya.tocar@intel.com>
12336 Andrey Turetskiy <andrey.turetskiy@intel.com>
12337 Ilya Verbin <ilya.verbin@intel.com>
12338 Kirill Yukhin <kirill.yukhin@intel.com>
12339 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12341 * config/i386/sse.md (VI4_AVX512F): New.
12342 (VI8_AVX2_AVX512F): Ditto.
12343 (mul<mode>3): Extended with wider modes.
12344 (*<sse4_1_avx2>_mul<mode>3): Ditto.
12345 (mul<mode>3): Ditto.
12346 (vec_widen_<s>mult_odd_<mode>): Ditto.
12348 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12349 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12350 Sergey Lega <sergey.s.lega@intel.com>
12351 Anna Tikhonova <anna.tikhonova@intel.com>
12352 Ilya Tocar <ilya.tocar@intel.com>
12353 Andrey Turetskiy <andrey.turetskiy@intel.com>
12354 Ilya Verbin <ilya.verbin@intel.com>
12355 Kirill Yukhin <kirill.yukhin@intel.com>
12356 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12358 * config/i386/sse.md (VI2_AVX512F): New.
12359 (VI124_AVX512F): Ditto.
12360 (sseunpackmode): Extended with wider modes.
12361 (sseunpackfltmode): Ditto.
12362 (vec_unpacks_float_hi_<mode>): Ditto.
12363 (vec_unpacks_float_lo_<mode>): Ditto.
12364 (vec_unpacku_float_hi_<mode>): Ditto.
12365 (vec_unpacku_float_lo_<mode>): Ditto.
12366 (vec_unpacks_lo_<mode>): Ditto.
12367 (vec_unpacks_hi_<mode>): Ditto.
12368 (vec_unpacku_lo_<mode>): Ditto.
12369 (vec_unpacku_hi_<mode>): Ditto.
12371 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12372 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12373 Sergey Lega <sergey.s.lega@intel.com>
12374 Anna Tikhonova <anna.tikhonova@intel.com>
12375 Ilya Tocar <ilya.tocar@intel.com>
12376 Andrey Turetskiy <andrey.turetskiy@intel.com>
12377 Ilya Verbin <ilya.verbin@intel.com>
12378 Kirill Yukhin <kirill.yukhin@intel.com>
12379 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12381 * config/i386/i386.md (multdiv): New.
12382 (multdiv_mnemonic): Ditto.
12383 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
12384 (<sse>_vm<multdiv_mnemonic><mode>3): This.
12385 (<sse>_vmdiv<mode>3): Removed.
12387 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12388 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12389 Sergey Lega <sergey.s.lega@intel.com>
12390 Anna Tikhonova <anna.tikhonova@intel.com>
12391 Ilya Tocar <ilya.tocar@intel.com>
12392 Andrey Turetskiy <andrey.turetskiy@intel.com>
12393 Ilya Verbin <ilya.verbin@intel.com>
12394 Kirill Yukhin <kirill.yukhin@intel.com>
12395 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12397 * config/i386/sse.md (V): Extended with wider modes.
12399 (ssehalfvecmode): Ditto.
12401 (ssepackfltmode): Ditto.
12402 (avx_vec_concat<mode>): Ditto.
12403 (V_256_512): New iterator.
12404 (VF2_512_256): Ditto.
12405 (si2dfmode): New attribute.
12406 (si2dfmodelower): Ditto.
12407 (sf2dfmode): Ditto.
12408 (concat_tg_mode): Ditto.
12409 (floatv4siv4df2): Changed to ...
12410 (float<si2dfmodelower><mode>2): This.
12411 (avx_cvtps2pd256): Changed to ...
12412 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
12413 (vec_pack_trunc_v4df): Changed to ...
12414 (vec_pack_trunc_<mode>): This.
12415 (avx_vpermil<mode>): Changed to ...
12416 (<sse2_avx_avx512f>_vpermil<mode>): This.
12417 (<fixsuffix>fix_truncv8dfv8si2): New.
12418 (vec_pack_sfix_trunc_v8df): Ditto.
12419 (avx512f_rndscale<mode>): Ditto.
12420 (avx512f_roundpd512): Ditto.
12421 (vec_pack_ufix_trunc_<mode>): Updated iterator.
12423 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12424 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12425 Sergey Lega <sergey.s.lega@intel.com>
12426 Anna Tikhonova <anna.tikhonova@intel.com>
12427 Ilya Tocar <ilya.tocar@intel.com>
12428 Andrey Turetskiy <andrey.turetskiy@intel.com>
12429 Ilya Verbin <ilya.verbin@intel.com>
12430 Kirill Yukhin <kirill.yukhin@intel.com>
12431 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12433 * config/i386/i386.md (any_fix): New iterator.
12434 (fixsuffix): New attribute.
12435 * config/i386/sse.md (VF1): Extened with wider modes.
12439 (sseintvecmodelower): Ditto.
12440 (ssescalarmode): Ditto.
12441 (ssescalarnum): Ditto.
12442 (VF1_128_256): New.
12443 (ssexmmmode): Ditto.
12444 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
12445 (<sse>_rcp<mode>2): Change iterator.
12446 (rsqrt<mode>2): Ditto.
12447 (<sse>_rsqrt<mode>2): Ditto.
12448 (avx2_vec_dup<mode>): Ditto.
12449 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
12450 (round<mode>2_sfix): Ditto.
12451 (avx2_pbroadcast<mode>): Ditto.
12452 (*andnot<mode>3): Handle XI mode.
12453 (*<code><mode>3): Ditto.
12454 (AVXTOSSEMODE): Removed.
12455 (avx_vpermil<mode>): Changed to ...
12456 (<sse2_avx_avx512f>_vpermil<mode>): This.
12458 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12459 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12460 Sergey Lega <sergey.s.lega@intel.com>
12461 Anna Tikhonova <anna.tikhonova@intel.com>
12462 Ilya Tocar <ilya.tocar@intel.com>
12463 Andrey Turetskiy <andrey.turetskiy@intel.com>
12464 Ilya Verbin <ilya.verbin@intel.com>
12465 Kirill Yukhin <kirill.yukhin@intel.com>
12466 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12468 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
12469 (<sse>_comi): Ditto.
12470 (<sse>_ucomi): Ditto.
12471 (sse_cvtss2siq_2): Ditto.
12472 (sse2_cvtsd2si): Ditto.
12473 (sse2_cvtsd2siq): Ditto.
12474 (sse2_cvttsd2si): Ditto.
12475 (sse2_cvttsd2siq): Ditto.
12476 (<shift_insn><mode>3): Ditto.
12477 (sse2_cvtsi2sdq): Update constraint and prefix.
12478 (sse_cvtsi2ss): Update prefix.
12479 (sse_cvtsi2ssq): Ditto.
12481 2013-10-11 Jakub Jelinek <jakub@redhat.com>
12483 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
12484 ignore internal calls.
12486 2013-10-11 Richard Biener <rguenther@suse.de>
12488 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
12489 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
12490 TREE_OVERFLOW is set.
12492 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
12494 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
12496 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
12497 * gimple.h: Likewise.
12499 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
12501 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
12504 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
12506 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
12507 * configure: Regenerate.
12509 2013-10-11 Jakub Jelinek <jakub@redhat.com>
12511 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
12512 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
12513 formatting fixes, use pp_colon instead of pp_character (..., ':'),
12514 similarly pp_right_paren.
12515 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
12516 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
12517 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
12518 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
12520 (omp_declare_simd_clauses_equal,
12521 omp_remove_redundant_declare_simd_attrs): New functions.
12522 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
12523 (walk_tree_1): Handle new OpenMP 4.0 clauses.
12524 * tree.h (OMP_LOOP_CHECK): Define.
12525 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
12526 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
12527 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
12528 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
12529 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
12530 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
12531 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
12532 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
12533 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
12534 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
12535 OMP_CLAUSE_SIMDLEN_EXPR): Define.
12536 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
12537 (omp_remove_redundant_declare_simd_attrs): New prototype.
12538 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
12539 GIMPLE_OMP_TEAMS): New codes.
12540 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
12541 * omp-low.c (struct omp_context): Add cancel_label and cancellable
12543 (target_nesting_level): New variable.
12544 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
12545 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
12546 for collapse > 1 static schedule unless ordered.
12547 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
12548 (determine_parallel_type): Adjust get_ws_args_for caller.
12549 (install_var_field): Handle mask & 4 for double indirection.
12550 (scan_sharing_clauses): Ignore shared clause on teams construct.
12551 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
12552 (create_omp_child_function): If inside target or declare target
12553 constructs, set "omp declare target" attribute on the child function.
12554 (find_combined_for): New function.
12555 (scan_omp_parallel): Handle combined loops.
12556 (scan_omp_target, scan_omp_teams): New functions.
12557 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
12558 restrictions and set ctx->cancellable for cancellable constructs.
12559 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
12560 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
12561 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
12562 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
12563 (omp_clause_aligned_alignment): New function.
12564 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
12565 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
12566 on teams constructs. Handle user defined reductions and new
12567 OpenMP 4.0 clauses.
12568 (lower_reduction_clauses): Don't set placeholder to address of ref
12569 if it has already the right type.
12570 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
12571 (expand_parallel_call): Use the new non-_start suffixed builtins,
12572 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
12573 and GOMP_parallel_end after the call.
12574 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
12575 (expand_omp_for_init_counts): Handle combined loops.
12576 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
12578 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
12579 end of cancellable loops.
12580 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
12581 Likewise. Handle collapse > 1 loops.
12582 (expand_omp_simd): Handle combined loops.
12583 (expand_omp_for): Add inner_stmt argument, adjust callers of
12584 expand_omp_for* functions, use expand_omp_for_static*chunk even
12585 for collapse > 1 unless ordered.
12586 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
12587 of cancellable sections.
12588 (expand_omp_single): Remove need_barrier variable, just rely on
12589 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
12590 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
12591 (expand_omp_atomic_load, expand_omp_atomic_store,
12592 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
12593 (expand_omp_target): New function.
12594 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
12595 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
12596 (build_omp_regions_1): Immediately close region for
12597 GF_OMP_TARGET_KIND_UPDATE.
12598 (maybe_add_implicit_barrier_cancel): New function.
12599 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
12601 (lower_omp_single): Likewise. Add clobber after the barrier.
12602 (lower_omp_taskgroup): New function.
12603 (lower_omp_for): Handle combined loops. Adjust
12604 lower_rec_input_clauses caller. Handle cancellation.
12605 (lower_depend_clauses): New function.
12606 (lower_omp_taskreg): Lower depend clauses. Adjust
12607 lower_rec_input_clauses caller. Add clobber after the call. Handle
12609 (lower_omp_target, lower_omp_teams): New functions.
12610 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
12611 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
12612 and GOMP_cancellation_point calls.
12613 (lower_omp): Fold stmts inside of target region.
12614 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
12615 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
12616 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
12617 (BT_FN_VOID_OMPFN_PTR_UINT,
12618 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
12619 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
12620 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
12621 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
12622 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
12623 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
12624 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
12625 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
12626 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
12627 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
12628 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
12629 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
12630 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
12631 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
12632 BUILT_IN_GOMP_PARALLEL_END.
12633 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
12634 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
12635 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
12636 GF_OMP_FOR_KIND_DISTRIBUTE.
12637 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
12638 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
12639 (dump_gimple_omp_return): Print lhs if it has any.
12640 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
12641 gimple_omp_atomic_seq_cst_p.
12642 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
12643 and GIMPLE_OMP_TEAMS.
12644 * langhooks.c (lhd_omp_mappable_type): New function.
12645 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
12646 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
12648 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
12649 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
12650 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
12651 (struct gimplify_omp_ctx): Add combined_loop field.
12652 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
12653 on stmts inside of target region.
12654 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
12655 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
12656 ORT_TARGET and ORT_TARGET_DATA.
12657 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
12659 (omp_notice_threadprivate_variable): Complain about threadprivate
12660 variables in target region.
12661 (omp_notice_variable): Complain about vars with non-mappable type
12662 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
12663 (omp_check_private): Ignore ORT_TARGET* regions.
12664 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
12665 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
12666 (find_combined_omp_for): New function.
12667 (gimplify_omp_for): Handle gimplification of combined loops.
12668 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
12670 (gimplify_omp_target_update): New function.
12671 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
12672 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
12673 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
12674 (gimplify_body): If fndecl has "omp declare target" attribute, add
12675 implicit ORT_TARGET context around it.
12676 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
12677 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
12678 * tree-nested.c (convert_nonlocal_reference_stmt,
12679 convert_local_reference_stmt, convert_gimple_call): Handle
12680 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12681 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
12682 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
12683 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
12684 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
12685 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
12686 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
12687 BUILT_IN_GOMP_LOOP_END_CANCEL,
12688 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
12689 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
12690 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
12691 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
12692 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
12693 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
12694 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
12695 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
12696 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
12697 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
12698 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
12699 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
12700 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
12701 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
12702 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
12703 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12704 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
12705 gimple_build_omp_teams): New functions.
12706 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
12707 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
12708 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
12709 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12710 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
12711 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
12712 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
12713 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
12714 GF_OMP_ATOMIC_SEQ_CST): New.
12715 (gimple_build_omp_taskgroup, gimple_build_omp_target,
12716 gimple_build_omp_teams): New prototypes.
12717 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
12718 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12719 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
12720 GIMPLE_OMP_SINGLE as end of range.
12721 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
12722 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
12723 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
12724 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
12725 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
12726 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
12727 gimple_omp_target_kind, gimple_omp_target_set_kind,
12728 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
12729 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
12730 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
12731 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
12732 gimple_omp_teams_set_clauses): New inlines.
12733 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
12734 and GIMPLE_OMP_TASKGROUP.
12735 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
12736 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
12737 enum omp_clause_proc_bind_kind): New.
12738 (union omp_clause_subcode): Add depend_kind, map_kind and
12739 proc_bind_kind fields.
12740 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
12741 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12742 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
12743 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
12744 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
12746 2013-10-10 Teresa Johnson <tejohnson@google.com>
12748 * predict.c (tree_estimate_probability): Add new parameter
12749 for estimate_bb_frequencies.
12750 (estimate_bb_frequencies): Add new parameter to force estimation.
12751 (rebuild_frequencies): When max frequency in function is small,
12752 recompute counts from frequencies.
12753 * predict.h (estimate_bb_frequencies): New parameter.
12755 2013-10-10 David Malcolm <dmalcolm@redhat.com>
12757 * ipa-inline.c (ipa_inline): Fix leak of "order" when
12758 optimizations are disabled.
12760 2013-10-10 David Malcolm <dmalcolm@redhat.com>
12762 * coverage.c (coverage_finish): Fix leak of da_file_name.
12764 2013-10-10 Jan Hubicka <jh@suse.cz>
12766 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
12767 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
12768 Bobcat and generic.
12770 2013-10-10 Jakub Jelinek <jakub@redhat.com>
12772 PR middle-end/58670
12773 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
12774 if any labels are in FALLTHRU_BB, use a special label emitted
12775 immediately after the asm goto insn rather than label_rtx
12777 (expand_asm_stmt): Adjust caller.
12778 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
12779 edge if the last insn in predecessor is a jump with single successor,
12780 but it isn't simplejump_p.
12782 2013-10-10 Richard Biener <rguenther@suse.de>
12784 PR tree-optimization/58656
12785 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
12787 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12789 * gimplify.c: Include expr.h and tm_p.h for targets with special
12790 va-arg padding requirements.
12792 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12794 * tree-flow.h: Move some prototypes to gimple.h.
12795 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
12796 * gimple.h: Relocate some prototypes from tree-flow.h
12797 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
12798 Move to gimplify.c.
12799 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
12800 (build_va_arg_indirect_ref): Relocate and make static.
12801 (std_gimplify_va_arg_expr): Relocate here.
12802 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
12803 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
12805 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12807 * doc/md.texi: Document the mnemonic attribute.
12809 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12812 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
12813 (set_attr_alternative x ...) when searching for user defined
12814 mnemonic attribute.
12816 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12818 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
12820 2013-10-09 Easwaran Raman <eraman@google.com>
12822 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
12823 * cfgexpand.c (defer_stack_allocation): ...use here
12824 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
12826 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
12828 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
12829 (operand_equal_for_value_replacement): New function, extracted from
12830 value_replacement and enhanced to catch more cases.
12831 (value_replacement): Use operand_equal_for_value_replacement.
12833 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12835 * loop-doloop.c (doloop_modify, doloop_optimize): Use
12836 get_max_loop_iterations.
12838 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12840 * config/arm/aarch-common.c (arm_early_load_addr_dep):
12841 Place comment above function.
12843 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12845 * tree-flow.h: Remove all remaining prototypes, enums and structs that
12846 are not related to tree-cfg.c.
12847 * tree-ssa-address.h: New file. Relocate prototypes.
12848 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
12849 (addr_for_mem_ref): New. Combine call to get_address_description and
12850 return addr_for_mem_ref.
12851 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
12852 * tree-ssa-live.h: Adjust prototypes.
12853 * passes.c: Include tree-ssa-live.h.
12854 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
12855 * graphite.c (graphite_transform_loops): Make static.
12856 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12857 make_pass_graphite, pass_data_graphite_transforms,
12858 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
12859 * ipa-pure-const.c (warn_function_noreturn): Make static.
12860 (execute_warn_function_noreturn, gate_warn_function_noreturn,
12861 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12862 Relocate from tree-cfg.c
12863 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
12865 (execute_warn_function_noreturn, gate_warn_function_noreturn,
12866 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12867 Move to ipa-pure-const.c.
12868 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
12869 Relocate from tree-optimize.c.
12870 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
12871 make_pass_fixup_cfg): Move to tree-cfg.c.
12872 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
12873 Relocate some prototypes.
12874 * tree-data-ref.h (tree_check_data_deps) Add prototype.
12875 * tree-dump.c (dump_function_to_file): Remove prototype.
12876 Add tree-flow.h to the include file.
12877 * tree-dump.h: Remove prototype.
12878 * tree-parloops.h: New File. Add prototypes.
12879 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
12880 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
12881 from tree-ssa-loop.c.
12882 * tree-predcom.c (run_tree_predictive_commoning,
12883 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
12884 Relocate here from tree-ssa-loop.c.
12885 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
12886 ssa_name_values.release ().
12887 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
12888 (ssa_name_values): Relocate from tree-flow.h.
12889 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
12890 * tree-ssa-loop.c (run_tree_predictive_commoning,
12891 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
12892 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12893 make_pass_graphite, pass_data_graphite_transforms,
12894 make_pass_graphite_transforms, gate_tree_parallelize_loops,
12895 tree_parallelize_loops, pass_data_parallelize_loops,
12896 make_pass_parallelize_loops): Move to other files.
12897 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
12899 * tree.h: Remove prototypes from tree-address.c.
12901 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12903 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
12904 (struct int_tree_map): Move to tree-hasher.h
12905 (SCALE, LABEL, PERCENT): Move to gimple.h
12906 * tree-flow-inline.h: Delete. Move functions to other files.
12907 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
12908 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
12909 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
12910 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
12911 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
12912 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
12913 * tree-hasher.h: Don't include tree-flow.h.
12914 (struct int_tree_map): Relocate from tree-flow.h.
12915 * tree-sra.c (contains_view_convert_expr_p): Relocate from
12916 tree-flow-inline.h and make static.
12917 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
12918 tree-flow-inline.h.
12919 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
12920 tree-flow-inline.h and make static.
12921 * tree.h (is_global_var, may_be_aliased): Relocate from
12922 tree-flow-inline.h.
12923 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
12924 * value-prof.c: No longer include tree-flow-inline.h.
12925 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
12927 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12929 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
12930 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
12931 (enum move_pos): Move to tree-ssa-loop-im.h
12932 * cfgloop.h: Move some prototypes.
12933 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
12934 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
12935 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
12936 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
12937 (loop_containing_stmt): Relocate from tree-flow-inline.h.
12938 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
12939 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
12940 (enum move_pos): Relocate here.
12941 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
12943 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
12944 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
12945 make_pass_lim): Relocate here from tree-ssa-loop.c.
12946 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
12948 (loop_edge_to_cancel, unloop_loops): Make static.
12949 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12950 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
12951 (tree_complete_unroll, gate_tree_complete_unroll,
12952 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
12953 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12954 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
12955 * tree-ssa-loop-ivopts.c: Remove local prototypes.
12956 (stmt_invariant_in_loop_p): Remove unused function.
12957 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
12958 * tree-ssa-loop-manip.h: New file. Add prototypes.
12959 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
12960 (gcov_type_to_double_int): Move to cfgloop.h.
12961 (double_int_cmp, bound_index,
12962 estimate_numbers_of_iterations_loop): Make static.
12963 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
12964 (max_loop_iterations): Factor out get_max_loop_iterations.
12965 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
12967 * tree-ssa-loop-niter.h: New file. Add prototypes.
12968 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
12969 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
12970 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
12971 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
12972 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
12973 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
12974 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
12975 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
12976 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
12977 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
12978 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12979 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
12980 pass_data_complete_unroll, make_pass_complete_unroll,
12981 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12982 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
12983 tree-ssa-loop-ivcanon.c.
12984 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
12985 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
12986 tree-ssa-loop-prefetch.c.
12987 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
12988 tree-ssa-loop-im.c.
12989 (get_lsm_tmp_name): Relocate and add suffix parameter.
12990 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
12991 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
12992 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
12993 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
12994 (get_estimated_loop_iterations): Factor out accessor from
12995 estimated_loop_iterations in tree-ssa-loop-niter.c.
12996 (get_max_loop_iterations): Factor out accessor from
12997 _max_loop_iterations in tree-ssa-niter.c.
12998 * loop-unroll.c (decide_unroll_constant_iterations,
12999 decide_unroll_runtime_iterations, decide_peel_simple,
13000 decide_unroll_stupid): Use new get_* accessors.
13002 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
13004 PR tree-optimization/20318
13005 * doc/extend.texi (returns_nonnull): New function attribute.
13006 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
13008 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
13009 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
13011 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
13013 PR middle-end/58570
13014 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
13015 false if both components are bitfields.
13017 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
13019 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
13020 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
13021 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
13022 * config/aarch64/aarch64.h
13023 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
13024 * config/aarch64/aarch64-simd-builtins.def
13025 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
13027 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
13029 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
13031 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
13033 * config/aarch64/arm_neon.h (vdiv_f64): Added.
13035 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
13037 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
13038 (vneg_f64): New intrinsic.
13039 (vneg_s8): Asm replaced with C.
13040 (vneg_s16): Likewise.
13041 (vneg_s32): Likewise.
13042 (vneg_s64): New intrinsic.
13043 (vnegq_f32): Asm replaced with C.
13044 (vnegq_f64): Likewise.
13045 (vnegq_s8): Likewise.
13046 (vnegq_s16): Likewise.
13047 (vnegq_s32): Likewise.
13048 (vnegq_s64): Likewise.
13050 2013-10-09 Renlin Li <Renlin.Li@arm.com>
13052 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
13054 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13056 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
13057 packed stack special handling.
13058 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
13059 back to fixed stack slots for FPRs saved due to stdarg.
13061 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13063 * config/s390/s390.c (s390_frame_info): Restructure function.
13065 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13067 * config/s390/s390.c (struct s390_frame_layout): New field
13069 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
13070 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
13071 regs_ever_clobbered to char*.
13072 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
13073 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
13074 (s390_register_info): Enable FPR save slots. Move/Copy some
13075 functionality into ...
13076 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
13077 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
13079 (s390_frame_info): Do gpr slot allocation here now. stdarg does
13080 not imply a stack frame.
13081 (s390_init_frame_layout): Remove variable clobbered_regs.
13082 (s390_update_register_info): Remove function.
13083 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
13084 cannot be used for register renaming.
13085 (s390_hard_regno_scratch_ok): New function.
13086 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
13087 (s390_initial_elimination_offset): Change offset calculation of
13088 the return address pointer.
13089 (save_gprs): Deal with only r6 being saved from the call-saved regs.
13090 (restore_gprs): Set frame related flag.
13091 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
13092 (s390_emit_prologue): Call s390_register_info instead of
13093 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
13094 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
13095 (s390_optimize_prologue): Call s390_optimize_register_info.
13096 Try to remove also FPR slot save/restore INSNs. Remove frame
13097 related flags from restore INSNs.
13099 2013-10-08 DJ Delorie <dj@redhat.com>
13101 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
13104 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
13105 avoid conflict with the MI use of %c.
13106 * config/rl78/rl78-real.md: change %c to %C throughout.
13107 * config/rl78/rl78-virt.md: Likewise.
13109 2013-10-08 Jan Hubicka <jh@suse.cz>
13111 * config/i386/i386.c (ix86_option_override_internal): Switch
13112 to SSE math for -ffast-math when target ISA supports SSE2.
13114 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
13116 * tree-flow.h: Remove some prototypes.
13117 * tree.h: Remove some protypes, add a couple.
13118 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
13119 using_eh_for_cleanups_p): Add interface routines for front ends.
13120 * tree-eh.h: New file. Add protoptyes.
13121 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
13122 (add_stmt_to_eh_lp_fn): Make static.
13123 (lower_try_finally): Use new using_eh_for_cleanups_p.
13124 * emit-rtl.c: Include tree-eh.h.
13125 * gimple.h: Include tree-eh.h.
13127 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
13129 PR tree-optimization/58480
13130 * tree-vrp.c (infer_nonnull_range): New function.
13131 (infer_value_range): Call infer_nonnull_range.
13133 2013-10-08 Dehao Chen <dehao@google.com>
13135 PR tree-optimization/58619
13136 * tree-inline.c (copy_phis_for_bb): Combine location data
13139 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13142 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
13143 RTX_FRAME_RELATED_P on INSN.
13145 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13147 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
13148 (altivec_expand_vec_perm_const): Call it.
13150 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13152 * config/rs6000/vector.md (mov<mode>): Emit permuted move
13153 sequences for LE VSX loads and stores at expand time.
13154 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
13156 * config/rs6000/rs6000.c (rs6000_const_vec): New.
13157 (rs6000_gen_le_vsx_permute): New.
13158 (rs6000_gen_le_vsx_load): New.
13159 (rs6000_gen_le_vsx_store): New.
13160 (rs6000_gen_le_vsx_move): New.
13161 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
13162 (*vsx_le_perm_load_v4si): New.
13163 (*vsx_le_perm_load_v8hi): New.
13164 (*vsx_le_perm_load_v16qi): New.
13165 (*vsx_le_perm_store_v2di): New.
13166 (*vsx_le_perm_store_v4si): New.
13167 (*vsx_le_perm_store_v8hi): New.
13168 (*vsx_le_perm_store_v16qi): New.
13169 (*vsx_xxpermdi2_le_<mode>): New.
13170 (*vsx_xxpermdi4_le_<mode>): New.
13171 (*vsx_xxpermdi8_le_V8HI): New.
13172 (*vsx_xxpermdi16_le_V16QI): New.
13173 (*vsx_lxvd2x2_le_<mode>): New.
13174 (*vsx_lxvd2x4_le_<mode>): New.
13175 (*vsx_lxvd2x8_le_V8HI): New.
13176 (*vsx_lxvd2x16_le_V16QI): New.
13177 (*vsx_stxvd2x2_le_<mode>): New.
13178 (*vsx_stxvd2x4_le_<mode>): New.
13179 (*vsx_stxvd2x8_le_V8HI): New.
13180 (*vsx_stxvd2x16_le_V16QI): New.
13182 2013-10-07 Renlin Li <Renlin.Li@arm.com>
13184 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
13186 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13188 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
13189 loop to work also for 31bit ABI.
13190 Save the stack pointer for frame_size > 0.
13192 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13194 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
13195 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
13196 constraint letters from expanders.
13197 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
13198 retry count to general_operand.
13199 ("tabort"): Give operand 0 a mode.
13200 ("tabort_1"): Add mode and constraint letter for operand 0.
13201 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
13203 2013-10-04 Jeff Law <law@redhat.com>
13205 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
13207 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
13209 (thread_across_edge): Here. Call it.
13211 2013-10-04 Cary Coutant <ccoutant@google.com>
13213 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
13214 discarding a location list expression (or a piece of one).
13216 2013-10-03 Jan Hubicka <jh@suse.cz>
13218 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
13219 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
13220 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
13222 2013-10-03 Jan Hubicka <jh@suse.cz>
13224 * config/i386/i386.c (ix86_option_override_internal): Do not enable
13225 accumulate-outgoing-args when producing unwind info.
13227 2013-10-03 Wei Mi <wmi@google.com>
13229 * lra-constraints.c (insert_move_for_subreg): New function
13230 extracted from simplify_operand_subreg.
13231 (simplify_operand_subreg): Add reload for paradoxical subreg.
13233 2013-10-03 Rong Xu <xur@google.com>
13235 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
13236 the candidate of builtin_expect such that we should fix the
13237 size/time estimation.
13238 (estimate_function_body_sizes): Do the acutally size/time fix-up
13239 for builtin_expect.
13241 2013-10-03 Rong Xu <xur@google.com>
13243 * predict.c (tree_predict_by_opcode): Get the probability
13244 for builtin_expect from param builtin_expect_probability.
13245 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
13246 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
13247 * doc/invoke.texi: Add documentation for builtin-expect-probability.
13249 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
13252 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
13253 * calls.c (alloca_call_p): Use get_callee_fndecl.
13254 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
13255 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
13257 (vrp_visit_stmt): Remove duplicated code.
13259 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
13261 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
13262 ceildf2, btruncdf2, instead of vsx_* name.
13264 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
13265 iterators to only do V2DF and V4SF here. Move the DF code to
13266 rs6000.md where it is combined with SF mode. Replace <VSv> with
13267 just 'v' since only vector operations are handled with these insns
13268 after moving the DF support to rs6000.md.
13269 (vsx_sub<mode>3): Likewise.
13270 (vsx_mul<mode>3): Likewise.
13271 (vsx_div<mode>3): Likewise.
13272 (vsx_fre<mode>2): Likewise.
13273 (vsx_neg<mode>2): Likewise.
13274 (vsx_abs<mode>2): Likewise.
13275 (vsx_nabs<mode>2): Likewise.
13276 (vsx_smax<mode>3): Likewise.
13277 (vsx_smin<mode>3): Likewise.
13278 (vsx_sqrt<mode>2): Likewise.
13279 (vsx_rsqrte<mode>2): Likewise.
13280 (vsx_fms<mode>4): Likewise.
13281 (vsx_nfma<mode>4): Likewise.
13282 (vsx_copysign<mode>3): Likewise.
13283 (vsx_btrunc<mode>2): Likewise.
13284 (vsx_floor<mode>2): Likewise.
13285 (vsx_ceil<mode>2): Likewise.
13286 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
13287 (vsx_sminsf3): Likewise.
13288 (vsx_fmadf4): Likewise.
13289 (vsx_fmsdf4): Likewise.
13290 (vsx_nfmadf4): Likewise.
13291 (vsx_nfmsdf4): Likewise.
13292 (vsx_cmpdf_internal1): Likewise.
13294 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
13295 simpler to select whether a target has SPE or traditional floating
13296 point support in iterators.
13297 (TARGET_DF_SPE): Likewise.
13298 (TARGET_SF_FPR): Likewise.
13299 (TARGET_DF_FPR): Likewise.
13300 (TARGET_SF_INSN): Macros to say whether floating point support
13301 exists for a given operation for expanders.
13302 (TARGET_DF_INSN): Likewise.
13304 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
13305 combining of SF/DF mode operations, using both traditional and VSX
13313 (abs<mode>2): Combine SF/DF modes using traditional floating point
13314 instructions. Add support for using the upper DF registers with
13315 VSX support, and SF registers with power8-vector support. Update
13316 expanders for operations supported by both the SPE and traditional
13317 floating point units.
13318 (abs<mode>2_fpr): Likewise.
13319 (nabs<mode>2): Likewise.
13320 (nabs<mode>2_fpr): Likewise.
13321 (neg<mode>2): Likewise.
13322 (neg<mode>2_fpr): Likewise.
13323 (add<mode>3): Likewise.
13324 (add<mode>3_fpr): Likewise.
13325 (sub<mode>3): Likewise.
13326 (sub<mode>3_fpr): Likewise.
13327 (mul<mode>3): Likewise.
13328 (mul<mode>3_fpr): Likewise.
13329 (div<mode>3): Likewise.
13330 (div<mode>3_fpr): Likewise.
13331 (sqrt<mode>3): Likewise.
13332 (sqrt<mode>3_fpr): Likewise.
13333 (fre<Fs>): Likewise.
13334 (rsqrt<mode>2): Likewise.
13335 (cmp<mode>_fpr): Likewise.
13336 (smax<mode>3): Likewise.
13337 (smin<mode>3): Likewise.
13338 (smax<mode>3_vsx): Likewise.
13339 (smin<mode>3_vsx): Likewise.
13340 (negsf2): Delete SF operations that are merged with DF.
13341 (abssf2): Likewise.
13342 (addsf3): Likewise.
13343 (subsf3): Likewise.
13344 (mulsf3): Likewise.
13345 (divsf3): Likewise.
13347 (fmasf4_fpr): Likewise.
13348 (fmssf4_fpr): Likewise.
13349 (nfmasf4_fpr): Likewise.
13350 (nfmssf4_fpr): Likewise.
13351 (sqrtsf2): Likewise.
13352 (rsqrtsf_internal1): Likewise.
13353 (smaxsf3): Likewise.
13354 (sminsf3): Likewise.
13355 (cmpsf_internal1): Likewise.
13356 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
13357 (negdf2): Delete DF operations that are merged with SF.
13358 (absdf2): Likewise.
13359 (nabsdf2): Likewise.
13360 (adddf3): Likewise.
13361 (subdf3): Likewise.
13362 (muldf3): Likewise.
13363 (divdf3): Likewise.
13365 (rsqrtdf_internal1): Likewise.
13366 (fmadf4_fpr): Likewise.
13367 (fmsdf4_fpr): Likewise.
13368 (nfmadf4_fpr): Likewise.
13369 (nfmsdf4_fpr): Likewise.
13370 (sqrtdf2): Likewise.
13371 (smaxdf3): Likewise.
13372 (smindf3): Likewise.
13373 (cmpdf_internal1): Likewise.
13374 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
13375 (btrunc<mode>2): Delete separate expander, and combine with the
13376 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
13377 (btrunc<mode>2_fpr): Likewise.
13378 (ceil<mode>2): Likewise.
13379 (ceil<mode>2_fpr): Likewise.
13380 (floor<mode>2): Likewise.
13381 (floor<mode>2_fpr): Likewise.
13382 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
13383 Add support for using the upper registers with VSX and
13384 power8-vector. Move insns to be closer to the define_expands. On
13385 VSX systems, prefer the traditional form of FMA over the VSX
13386 version, since the traditional form allows the target not to
13387 overlap with the inputs.
13388 (fms<mode>4_fpr): Likewise.
13389 (nfma<mode>4_fpr): Likewise.
13390 (nfms<mode>4_fpr): Likewise.
13392 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13393 Richard Earnshaw <richard.earnshaw@arm.com>
13395 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
13396 (struct mult_cost_table): Likewise.
13397 (struct mem_cost_table): Likewise.
13398 (struct fp_cost_table): Likewise.
13399 (struct vector_cost_table): Likewise.
13400 (cpu_cost_table): Likewise.
13401 * config/arm/arm.opt (mold-rts-costs): New option.
13402 (mnew-generic-costs): Likewise.
13403 * config/arm/arm.c (generic_extra_costs): New table.
13404 (cortexa15_extra_costs): Likewise.
13405 (arm_slowmul_tune): Use NULL as new costs.
13406 (arm_fastmul_tune): Likewise.
13407 (arm_strongarm_tune): Likewise.
13408 (arm_xscale_tune): Likewise.
13409 (arm_9e_tune): Likewise.
13410 (arm_v6t2_tune): Likewise.
13411 (arm_cortex_a5_tune): Likewise.
13412 (arm_cortex_a9_tune): Likewise.
13413 (arm_v6m_tune): Likewise.
13414 (arm_fa726te_tune): Likewise.
13415 (arm_cortex_a15_tune): Use cortex15_extra_costs.
13416 (arm_cortex_tune): Use generict_extra_costs.
13417 (shifter_op_p): New function.
13418 (arm_unspec_cost): Likewise.
13419 (LIBCALL_COST): Define.
13420 (arm_new_rtx_costs): New function.
13421 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
13422 table is available. Use old costs otherwise unless mnew-generic-costs
13424 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
13425 (cpu_cost_table): Declare.
13427 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
13430 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
13431 (*subs_mul_imm_<mode>)
13432 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
13433 (*sub_<shift>_<mode>)
13434 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
13435 Remove k constraint.
13437 2013-10-03 Ian Bolton <ian.bolton@arm.com>
13439 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
13441 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
13443 2013-10-02 Teresa Johnson <tejohnson@google.com>
13445 * predict.c (probably_never_executed): New function.
13446 (probably_never_executed_bb_p): Invoke probably_never_executed.
13447 (probably_never_executed_edge_p): Ditto.
13448 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
13449 Treat profile insanities conservatively.
13451 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
13453 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
13455 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
13457 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
13458 use it. Use smaller increase for scratch. Don't increase reject
13459 for early clobber scratch.
13460 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
13461 setting eliminated regs except setting fp from hfp.
13462 (lra_eliminate): Check lra_insn_recog_data on NULL.
13464 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13467 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
13468 setting -mvsx-timode by default until the underlying problem is fixed.
13469 (RS6000_CPU, power7 defaults): Likewise.
13471 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
13473 * config/x-linux (host-linux.o): Remove header dependencies.
13474 Use $(COMPILE) and $(POSTCOMPILE).
13475 * config/t-linux-android (linux-android.o): Ditto.
13477 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
13479 * Makefile.in (expmed.o-warn): Remove.
13481 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
13483 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
13484 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
13486 2013-10-02 Teresa Johnson <tejohnson@google.com>
13488 * dojump.c (do_jump_1): Divide probability between
13489 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
13491 2013-10-02 Tom Tromey <tromey@redhat.com>
13493 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
13495 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
13497 * tree-flow.h: Remove some prototypes.
13498 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
13499 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
13500 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
13501 mark_virtual_phi_result_for_renaming): Relocate here.
13502 * tree-into-ssa.h: Add prototypes.
13503 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
13504 single_pred_before_succ_order.
13505 (blocks_in_phiopt_order): Rename and move to cfganal.c.
13506 (nonfreeing_call_p) Move to gimple.c.
13507 * cfganal.c (single_pred_before_succ_order): Move and renamed from
13509 * basic-block.h (single_pred_before_succ_order): Add prototype.
13510 * gimple.c (nonfreeing_call_p): Relocate here.
13511 * gimple.h: Add prototype.
13512 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
13513 * tree-ssa-dom.h: New file. Relocate prototypes here.
13514 * tree-ssa.h: Include tree-ssa-dom.h.
13516 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
13518 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
13519 Use $(COMPILE) and $(POSTCOMPILE).
13521 * config/alpha/x-alpha (driver-alpha.o): Ditto.
13523 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
13525 * tree-flow.h: Remove some prototypes.
13526 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
13527 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
13528 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
13529 propagate_tree_value*): Move from here to...
13530 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
13531 propagate_tree_value*): Relocate here.
13532 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
13533 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
13534 * gimple-fold.c: Remove gimple-fold.h from include list.
13535 * tree-vrp.c: Remove gimple-fold.h from include list.
13536 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
13537 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
13538 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
13539 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
13540 * sese.c: Add tree-ssa-propagate.h to include list.
13542 2013-10-02 Richard Biener <rguenther@suse.de>
13544 * tree-loop-distribution.c: Include tree-vectorizer.h for
13545 find_loop_location.
13546 (enum partition_kind): Remove PKIND_REDUCTION.
13547 (struct partition_s): Remove has_writes member, add reduction_p member.
13548 (partition_alloc): Adjust.
13549 (partition_builtin_p): Likewise.
13550 (partition_has_writes): Remove.
13551 (partition_reduction_p): New function.
13552 (partition_merge_into): Likewise.
13553 (generate_code_for_partition): Commonize builtin partition
13555 (rdg_cannot_recompute_vertex_p): Remove.
13556 (already_processed_vertex_p): Likewise.
13557 (rdg_flag_vertex): Do not set has_writes.
13558 (classify_partition): Adjust.
13559 (rdg_build_partitions): Do not set has_writes, treat all
13560 partitions as useful.
13561 (distribute_loop): Record number of library calls generated. Adjust.
13562 (tree_loop_distribution): Report number of loops and library
13563 calls generated as opt-info.
13565 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
13567 * tree-flow.h: Include new .h files. Move prototypes.
13568 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
13569 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
13570 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
13571 * tree-pretty-print.h: Add prototypes from tree-flow.h.
13572 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
13573 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
13574 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
13575 * tree.h (get_ref_base_and_extent): Move prototype out.
13576 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
13578 * gimple-low.h: New File. Add prototypes from tree-flow.h.
13579 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
13580 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
13581 * tree-scalar-evolution.c: Include tree.h.
13582 * sese.c: Include tree.h.
13583 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
13584 * dwarf2out.c: Include tree-dfa.h.
13585 * tree-chrec.c: Include tree.h.
13586 * tree-data-ref.c: Include tree.h.
13588 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
13590 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
13593 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13595 * config/t-sol2 (sol2-c.o): Remove header dependencies.
13596 Use $(COMPILE) and $(POSTCOMPILE).
13597 (sol2-cxx.o): Likewise.
13598 (sol2-stubs.o): Likewise.
13599 (sol2.o): Likewise.
13600 * config/x-solaris (host-solaris.o): Likewise.
13602 * config/sparc/t-sparc (sparc.o): Remove.
13603 (sparc-c.o): Remove header dependencies.
13604 Use $(COMPILE) and $(POSTCOMPILE).
13605 * config/sparc/x-sparc: Likewise.
13607 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
13609 * config/arc/arc-opts.h: Add 2013 to Copyright years.
13610 * config/arc/arc700.md: Likewise.
13611 * config/arc/arc-modes.def: Likewise.
13612 * config/arc/arc-simd.h: Likewise.
13613 * config/arc/t-arc-uClibc: Likewise.
13614 * config/arc/t-arc-newlib: Likewise.
13616 2013-10-02 Renlin Li <renlin.li@arm.com>
13618 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
13620 (aarch64_expand_epilogue): Likewise.
13622 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13623 Yufeng Zhang <yufeng.zhang@arm.com>
13625 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
13627 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
13628 'base_in' represent a conversion and legal_cast_p_1 holds; set
13629 'base_in' with the returned value from get_unwidened.
13631 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13633 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
13634 plus_constant is not used.
13636 2013-10-01 Wei Mi <wmi@google.com>
13638 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
13639 * config/i386/i386.md: Add define_peephole2 to
13640 break partial reg stall for cvtss2sd/cvtsd2ss.
13642 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13644 * config/arc/arc.c (pass_arc_ifcvt::clone):
13645 Update for ctxt_ -> m_ctxt change.
13647 2013-10-01 Jeff Law <law@redhat.com>
13649 * tree-ssa-threadupdate.c (struct redirection_data): Delete
13650 outgoing_edge and intermediate_edge fields. Instead store the path.
13651 (redirection_data::hash): Hash on the last edge's destination index.
13652 (redirection_data::equal): Check the entire thread path.
13653 (lookup_redirectio_data): Corresponding changes.
13654 (create_edge_and_update_destination_phis): Likewise.
13655 (thread_single_edge): Likewise.
13657 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13658 Diego Novillo <dnovillo@google.com>
13660 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
13661 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
13662 (vld32wh_insn, vld32wl_insn): Delete commented-out old
13663 versions of these patterns.
13665 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
13666 (__builtin_arc_aligned): Likewise.
13668 * config/arc/arc.md: Expand adc_0 comment stating the intended
13669 purpose and why it isn't ready.
13670 Replace commented out call_value_via_label_mixed with a
13671 plain comment about bl_s.
13673 * config/arc/arc.c (stdio.h): Don't include directly.
13674 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
13675 Remove if (1) condition.
13676 (arc_encode_section_info): Fix comment.
13678 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13680 * config/arc/arc.c (arc_conditional_register_usage):
13681 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
13682 Also set reg_alloc_order for DMA config regs.
13684 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13685 Jeremy Bennett <jeremy.bennett@embecosm.com>
13687 * doc/install.texi (--with-cpu): Mention ARC.
13688 (arc-*-elf32): New paragraph.
13689 (arc-linux-uclibc): Likewise.
13690 * doc/md.texi (Machine Constraints): Add ARC part.
13691 * doc/invoke.texi: (menu): Add ARC Options.
13692 (Machine Dependent Options) <ARC Options>: Add synopsis.
13693 (node ARC Options): Add.
13694 * doc/extend.texi (long_call / short_call attribute): Add ARC.
13695 (ARC Built-in Functions): New section defining
13696 generic ARC built-in functions.
13697 (ARC SIMD Built-in Functions): New section defining SIMD specific
13698 built-in functions.
13699 (Declaring Attributes of Functions): Extended
13700 description of short_call and long_call attributes for ARC and
13701 added index entries.
13703 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
13704 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
13705 Joern Rennecke <joern.rennecke@embecosm.com>
13706 Muhammad Khurram Riaz <khurram.riaz@arc.com>
13707 Brendan Kehoe <brendan@zen.org>
13708 Michael Eager <eager@eagercon.com>
13709 Simon Cook <simon.cook@embecosm.com>
13710 Jeremy Bennett <jeremy.bennett@embecosm.com>
13712 * config/arc, common/config/arc: New directories.
13714 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13715 Brendan Kehoe <brendan@zen.org>
13716 Simon Cook <simon.cook@embecosm.com>
13718 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
13720 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
13722 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
13723 * tree-ssa-coalesce.h: New. Move prototype to here.
13724 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
13725 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
13726 (gimple_can_coalesce_p): Move to...
13727 * gimple.c (gimple_can_coalesce_p): Here.
13729 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
13731 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
13732 (dump_decl_set): Move to gimple.c.
13733 * gimple.h: Don't include tree-ssa-operands.h.
13734 (dump_decl_set): Add prototype.
13735 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
13736 Move to gimple-ssa.h.
13737 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
13738 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
13739 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
13740 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
13741 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
13743 (dump_decl_set): Relocate here.
13744 * gimple-ssa.h: New file.
13745 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
13746 Relocate from gimple.h.
13747 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
13748 * tree-ssa-operands.c (swap_ssa_operands): Rename from
13749 swap_tree_operands and remove non-ssa path.
13750 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
13751 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
13753 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
13754 vect_is_simple_reduction_1): Use swap_ssa_operands.
13755 * tree-flow.h: Move various prototypes to tree-phinodes.h.
13756 (enum need_phi_state): Move to tree-into-ssa.c.
13757 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13758 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
13759 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
13760 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
13761 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13762 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13763 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13764 num_imm_uses): Move to ssa-iterators.h.
13765 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
13766 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
13768 (op_iter_done, op_iter_next_def, op_iter_next_tree,
13769 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
13770 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
13771 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
13772 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
13773 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
13774 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
13775 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
13776 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
13777 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
13778 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
13779 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
13780 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
13781 (set_phi_nodes): Move to tree-phinodes.h.
13782 * tree-ssa-operands.h (enum ssa_op_iter_type,
13783 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
13784 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
13785 (dump_decl_set): Remove prototype.
13786 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
13787 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
13788 (set_phi_nodes): Relocate from tree-flow-inline.h.
13789 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
13791 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
13792 include list. Temporarily add gimple.h to include list.
13793 * ssa-iterators.h: New file.
13794 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13795 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
13796 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
13797 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
13798 Relocate from tree-ssa-operands.h.
13799 (delink_imm_use, link_imm_use_to_list, link_imm_use,
13800 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13801 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13802 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13803 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
13804 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
13805 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
13806 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
13807 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
13808 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
13809 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
13810 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
13811 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
13812 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
13813 Relocate from tree-flow-inline.h.
13814 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
13816 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
13819 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
13820 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
13821 Insert '\t' to output template.
13822 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
13823 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
13824 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
13825 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
13827 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
13829 * doc/install.texi (Host/target specific installation notes for GCC):
13830 Put @anchor before @heading.
13831 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
13832 Use @email for email addresses.
13834 2013-10-01 Jeff Law <law@redhat.com>
13836 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
13837 a vec. Only delete the path if we create one without successfully
13838 registering a jump thread.
13839 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
13841 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
13842 (paths): New vector of jump threading paths.
13843 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
13844 (THREAD_PATH): New accessor macro for the entire thread path.
13845 (lookup_redirection_data): Get intermediate and final outgoing edge
13846 from the thread path.
13847 (create_edge_and_update_destination_phis): Copy the threading path.
13848 (ssa_fix_duplicate_block_edges): Get edges and block types from the
13849 jump threading path.
13850 (ssa_redirect_edges): Get edges and block types from the jump threading
13851 path. Free the path vector.
13852 (thread_block): Get edges from the jump threading path. Look at the
13853 entire path to see if we thread to a loop exit. If we cancel a jump
13854 thread request, then free the path vector.
13855 (thread_single_edge): Get edges and block types from the jump threading
13856 path. Free the path vector.
13857 (thread_through_loop_header): Get edges and block types from the jump
13858 threading path. Free the path vector.
13859 (mark_threaded_blocks): Iterate over the vector of paths and store
13860 the path on the appropriate edge. Get edges and block types from the
13861 jump threading path.
13862 (mark_threaded_blocks): Get edges and block types from the jump
13863 threading path. Free the path vector.
13864 (thread_through_all_blocks): Use the vector of paths rather than
13865 a vector of 3-edge sets.
13866 (register_jump_thread): Accept pointer to a path vector rather
13867 than the path vector itself. Store the path vector for later use.
13870 2013-10-01 Jakub Jelinek <jakub@redhat.com>
13871 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13874 * config/s390/s390.c (s390_split_branches): Modify check for table
13876 (s390_chunkify_start): Rearrange table jump insn check in order to
13877 deal with compare and branch insns correctly.
13879 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
13883 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
13884 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
13885 define_insn_and_split.
13886 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
13887 (shiftsi3_compare): New pattern.
13888 (rrx): New pattern.
13889 * config/arm/unspecs.md (UNSPEC_RRX): New.
13891 2013-10-01 Alan Modra <amodra@gmail.com>
13893 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
13894 casing inout operands.
13896 2013-10-01 Richard Biener <rguenther@suse.de>
13898 PR tree-optimization/58553
13899 * tree-loop-distribution.c (struct partition_s): Add niter member.
13900 (classify_partition): Populate niter member for the partition
13901 and properly identify whether the relevant store happens before
13902 or after the loop exit.
13903 (generate_memset_builtin): Use niter member from the partition.
13904 (generate_memcpy_builtin): Likewise.
13906 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
13908 * vec.h (vec_prefix, vec): Prefix member names with "m_".
13909 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
13911 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
13913 * basic-block.h (edge_list): Prefix member names with "m_".
13914 * context.h (context): Likewise.
13915 * domwalk.h (dom_walker): Likewise.
13916 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
13917 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
13918 * hash-table.h (hash_table): Likewise.
13919 * machmode.h (bit_field_mode_iterator): Likewise.
13920 * pass_manager.h (pass_list): Likewise.
13921 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
13922 * tree-pass.h (pass_data): Likewise.
13923 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
13924 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
13925 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
13926 * asan.c (pass_data_asan): Update accordingly.
13927 * cfganal.c (control_dependences::find_control_dependence): Likewise.
13928 (control_dependences::control_dependences): Likewise.
13929 (control_dependences::~control_dependences): Likewise.
13930 (control_dependences::~control_dependences): Likewise.
13931 (control_dependences::get_edges_dependent_on): Likewise.
13932 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
13933 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
13934 * context.c (gcc::context::context): Likewise.
13935 * cprop.c (pass_rtl_cprop::clone): Likewise.
13936 * domwalk.c (dom_walker::walk): Likewise.
13937 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
13938 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
13939 * mode-switching.c (pass_mode_switching::clone): Likewise.
13940 * passes.c (opt_pass::opt_pass): Likewise.
13941 (pass_manager::pass_manager): Likewise.
13942 * predict.c (pass_strip_predict_hints::clone): Likewise.
13943 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
13944 (pass_split_all_insns::clone): Likewise.
13945 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
13947 (bit_field_mode_iterator::next_mode): Likewise.
13948 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
13949 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
13950 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
13951 * tree-complex.c (pass_lower_complex::clone): Likewise.
13952 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
13953 * tree-object-size.c (pass_object_sizes::clone): Likewise.
13954 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
13955 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
13956 (pass_fold_builtins::clone): Likewise.
13957 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
13958 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
13959 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
13960 (pass_cd_dce::clone): Likewise.
13961 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
13962 (pass_phi_only_cprop::clone): Likewise.
13963 * tree-ssa-dse.c (pass_dse::clone): Likewise.
13964 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
13965 * tree-ssa-loop.c (pass_lim::clone): Likewise.
13966 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
13967 * tree-ssa-pre.c (pass_fre::clone): Likewise.
13968 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
13969 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
13970 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
13971 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
13972 * tree-vrp.c (pass_vrp::clone): Likewise.
13973 * tsan.c (pass_tsan::clone): Likewise.
13975 2013-09-30 Jakub Jelinek <jakub@redhat.com>
13977 PR middle-end/58564
13978 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
13979 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
13981 PR middle-end/58564
13982 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
13983 optimization, punt if sign_bit_p looked through any zero extension.
13985 2013-09-30 Teresa Johnson <tejohnson@google.com>
13987 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
13988 Update redirected out edge count in joiner case.
13989 (ssa_redirect_edges): Common the joiner and non-joiner cases
13990 so that joiner case gets profile updates.
13992 2013-09-30 Richard Biener <rguenther@suse.de>
13994 PR tree-optimization/58554
13995 * tree-loop-distribution.c (classify_partition): Require
13996 unconditionally executed stores for memcpy and memset recognition.
13997 (tree_loop_distribution): Calculate dominance info.
13999 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
14001 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
14002 (NO_PROFILE_COUNTERS): Likewise.
14003 (PROFILE_HOOK): Likewise.
14004 (FUNCTION_PROFILER): Likewise.
14005 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
14007 2013-09-30 Iain Sandoe <iain@codesourcery.com>
14009 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
14010 calls and defines in TARGET_MACHO conditional.
14011 (load_macho_picbase_di): Likewise.
14012 (reload_macho_picbase): Likewise.
14013 (reload_macho_picbase_si): Likewise.
14014 (reload_macho_picbase_di): Likewise.
14015 (nonlocal_goto_receiver): Likewise.
14017 2013-09-30 Nick Clifton <nickc@redhat.com>
14019 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
14020 that use the MSP430X ISA.
14021 (msp430_option_override): Scan -mmcu command line option for any
14022 MCU name that supports the MSP430X ISA.
14023 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
14024 -mmcu options which enable the MSP430X ISA.
14026 2013-09-30 Richard Biener <rguenther@suse.de>
14028 PR middle-end/58532
14029 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
14030 before looking for setjmp-like calls.
14032 2013-09-29 Iain Sandoe <iain@codesourcery.com>
14035 * config/darwin-protos.h (machopic_get_function_picbase): New.
14036 * config/darwin.c (machopic_get_function_picbase): New.
14037 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
14038 label for a new func. (load_macho_picbase_di): Likewise.
14039 (reload_macho_picbase): New expand.
14040 (reload_macho_picbase_si): New insn.
14041 (reload_macho_picbase_di): New insn.
14042 (nonlocal_goto_receiver): New define and split.
14043 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
14044 (unspecv enum): Add UNSPECV_NLGR.
14046 2013-09-29 Iain Sandoe <iain@codesourcery.com>
14048 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
14049 that altivec registers are correctly sized on Darwin.
14051 2013-09-29 Iain Sandoe <iain@codesourcery.com>
14053 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
14054 darwin-driver.o): Use COMPILE and POSTCOMPILE.
14055 * config/x-darwin (host-darwin.o): Likewise.
14056 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
14057 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
14058 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
14060 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
14062 * doc/invoke.texi: Fix usage of @tie{} command.
14064 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
14066 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
14068 2013-09-28 Jan Hubicka <jh@suse.cz>
14070 * config/i386/x86-tune.def: Add documentation for each of the options;
14073 2013-09-28 Jan Hubicka <jh@suse.cz>
14075 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
14077 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
14078 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
14079 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
14080 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
14081 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
14083 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
14085 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
14086 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
14087 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
14088 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
14089 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
14090 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
14091 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
14092 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
14093 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
14094 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
14095 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
14096 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
14097 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
14098 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
14099 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
14100 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
14101 gimple.h, godump.c, graphite-clast-to-gimple.c,
14102 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
14103 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
14104 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
14105 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
14106 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
14107 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
14108 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
14109 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
14110 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
14111 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
14112 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
14113 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
14114 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
14115 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
14116 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
14117 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
14118 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
14119 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
14120 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
14121 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
14122 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
14123 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
14124 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
14125 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
14126 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
14127 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
14128 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
14129 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
14130 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
14131 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
14132 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
14133 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
14134 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
14135 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
14136 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
14137 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
14138 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
14139 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
14140 whitespace before "(".
14142 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
14144 * expr.h (extract_bit_field): Remove packedp parameter.
14145 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
14146 from forward declaration.
14147 (store_split_bit_field): Remove packedp arg from calls to
14148 extract_fixed_bit_field.
14149 (extract_bit_field_1): Remove packedp parameter and packedp
14150 argument from recursive calls and calls to extract_fixed_bit_field.
14151 (extract_bit_field): Remove packedp parameter and corresponding
14152 arg to extract_bit_field_1.
14153 (extract_fixed_bit_field): Remove packedp parameter. Remove code
14155 (extract_split_bit_field): Remove packedp arg from call to
14156 extract_fixed_bit_field.
14157 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
14158 (copy_blkmode_from_reg): Likewise.
14159 (copy_blkmode_to_reg): Likewise.
14160 (read_complex_part): Likewise.
14161 (store_field): Likewise.
14162 (expand_expr_real_1): Likewise.
14163 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
14164 to extract_bit_field.
14165 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
14166 call to extract_bit_field.
14167 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
14168 call to extract_bit_field.
14169 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
14170 and special packedp behavior from -fstrict-volatile-bitfields
14173 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14175 * lra-eliminations.c (init_elim_table): Guard value_p.
14177 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
14179 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
14180 DFmode, DImode, and SFmode in the upper VSX registers based on the
14181 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
14182 if -mpower8-vector. Combine -mvsx-timode handling with the rest
14183 of the VSX register handling.
14185 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
14186 (f32_sv): Likewise.
14187 (zero_extendsidi2_lfiwzx): Add support for loading into the
14188 Altivec registers with -mpower8-vector. Use wu/wv constraints to
14189 only do VSX memory options on Altivec registers.
14190 (extendsidi2_lfiwax): Likewise.
14191 (extendsfdf2_fpr): Likewise.
14192 (mov<mode>_hardfloat, SF/SD modes): Likewise.
14193 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
14194 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
14195 (movdi_internal64): Likewise.
14197 2013-09-27 Xinliang David Li <davidxl@google.com>
14199 * opts.c (finish_options): Adjust parameters
14200 according to vect cost model.
14201 (common_handle_option): Set dynamic vect cost
14203 targhooks.c (default_add_stmt_cost): Compute stmt cost
14205 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
14206 Use helper function.
14207 * tree-vectorizer.h (unlimited_cost_model): New function.
14208 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
14209 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
14211 (vect_enhance_data_refs_alignment): Ditto.
14212 * flag-types.h: New enum.
14213 * common/config/i386/i386-common.c (ix86_option_init_struct):
14214 No need to initialize vect_cost_model flag.
14215 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
14218 2013-09-27 Diego Novillo <dnovillo@google.com>
14220 * gimple.h (enum ssa_mode): Remove.
14222 2013-09-27 Paulo Matos <pmatos@broadcom.com>
14224 * cfgloop.h (number_of_loops): Fix typo in check for null.
14226 2013-09-27 Jakub Jelinek <jakub@redhat.com>
14228 PR middle-end/58551
14229 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
14230 are children of outermost saved_cfun's loop, and set it up to
14231 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
14232 if loop != loop0 and SESE region contains bbs that belong to loop0.
14234 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
14236 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
14237 (binary_scale_code_p, get_base_term, get_index_term): New functions.
14238 (set_address_segment, set_address_base, set_address_index)
14239 (set_address_disp): Accept the argument unconditionally.
14240 (baseness): Remove must_be_base_p and must_be_index_p checks.
14241 (decompose_normal_address): Classify as much as possible in the
14244 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
14246 * cse.c (count_reg_usage): Handle INT_LIST.
14247 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
14248 * reginfo.c (reg_scan_mark_refs): Likewise.
14249 * reload1.c (eliminate_regs_1): Likewise.
14251 2013-09-27 Iain Sandoe <iain@codesourcery.com>
14253 PR middle-end/58547
14254 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
14257 2013-09-27 Richard Biener <rguenther@suse.de>
14259 PR tree-optimization/58459
14260 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
14261 restriction not propagating into loops.
14263 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
14265 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
14266 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
14267 * doc/tree-ssa.texi (Walking use-def chains): Delete.
14269 2013-09-26 Richard Biener <rguenther@suse.de>
14271 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
14273 2013-09-26 Richard Biener <rguenther@suse.de>
14275 * alias.h (component_uses_parent_alias_set): Rename to ...
14276 (component_uses_parent_alias_set_from): ... this.
14277 * alias.c (component_uses_parent_alias_set): Rename to ...
14278 (component_uses_parent_alias_set_from): ... this and return
14279 the desired parent.
14280 (reference_alias_ptr_type_1): Use the result from
14281 component_uses_parent_alias_set_from instead of stripping
14282 components one at a time.
14283 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
14285 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
14287 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
14288 Move prototypes to...
14289 * tree-ssa-ter.h: New File. Move prototypes here.
14290 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
14291 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
14292 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
14293 from is_replaceable_p.
14294 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
14295 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
14296 (process_replaceable): Use ter_is_replaceable_p.
14297 (find_replaceable_in_bb): Use ter_is_replaceable_p.
14298 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
14299 newly refactored ssa_is_replaceable_p.
14300 * cfgexpand.c: Include tree-outof-ssa.h.
14301 * ssaexpand.h: Delete.
14303 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
14305 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
14306 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
14308 (create_gimple_tmp): Delete.
14309 (get_expr_type, build_assign, build_type_cast): Move to...
14310 * gimple-builder.c: New File.
14311 (get_expr_type): Relocate from gimple.c.
14312 (build_assign, build_type_cast): Change to only create ssanames.
14313 * gimple.h: Move prototypes to...
14314 * gimple-builder.h: New File. Here.
14315 * tree-ssa.h: And here.
14316 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
14317 count_uses_and_derefs): Relocate from gimple.c.
14318 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
14319 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
14320 * tree-ssa-math-opts (execute_cse_reciprocals): Use
14321 gimple_replace_ssa_lhs.
14322 * asan.c: Include gimple-builder.h.
14323 * Makefile.in: Add gimple-builder.o.
14325 2013-09-26 Richard Biener <rguenther@suse.de>
14327 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
14328 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
14329 (loe_visit_block): Use gcc_checking_assert.
14330 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
14331 gimple_assign_ssa_name_copy_p.
14332 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
14335 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
14337 * config/rs6000/t-rs6000 (rs6000.o): Remove.
14338 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
14340 2013-09-26 Richard Biener <rguenther@suse.de>
14342 PR tree-optimization/58539
14343 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
14344 the fact that debug statements are not taking part in loop-closed
14347 2013-09-26 Nick Clifton <nickc@redhat.com>
14349 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
14350 time warning message.
14351 (msp430_print_operand_raw): Delete unused letter parameter.
14352 (TARGET_PRINT_OPERAND_ADDRESS): Define.
14353 (msp430_print_operand_address): New function.
14354 (msp430_print_operand): Move address printing code from here to
14356 * config/msp430/msp430.md (movsipsi2): Add comment in generated
14358 (zero_extendpsisi2): Likewise.
14359 (extendpsisi2): New pattern.
14360 (andneghi3): New pattern.
14362 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
14364 * config/aarch64/aarch64.opt (mlra): New option.
14365 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
14366 (TARGET_LRA_P): Define.
14368 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
14370 * expr.c (expand_assignment): Remove obsolete comment.
14372 2013-09-25 Jeff Law <law@redhat.com>
14374 * tree-flow.h (thread_through_all_blocks): Prototype moved into
14375 tree-ssa-threadupdate.h.
14376 (register_jump_thread): Similarly.
14377 * tree-ssa-threadupdate.h: New header file.
14378 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
14379 * tree-vrp.c: Likewise.
14380 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
14381 (thread_around_empty_blocks): Change type of path vector argument to
14382 an edge,type pair from just an edge. Initialize both elements when
14383 appending to a jump threading path. Tweak references to elements
14385 (thread_across_edge): Similarly. Release memory for the elements
14387 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
14388 (dump_jump_thread_path): New function broken out from
14389 register_jump_thread.
14390 (register_jump_thread): Use dump_jump_thread_path. Change type of
14391 path vector entries. Search the path for NULL edges and dump
14392 the path if one is found. Tweak the conversion of path to 3-edge
14393 form to use the block copy type information embedded in the path.
14395 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
14397 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
14399 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
14400 Vladimir Makarov <vmakarov@redhat.com>
14402 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
14403 from the least significant bit.
14404 (strip_address_mutations): Add bitfield operations handling.
14405 (must_be_index_p): Add shifting and rotate operations handling.
14406 (set_address_base): Use must_be_base_p predicate.
14407 (set_address_index): Use must_be_index_p predicate.
14409 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
14410 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14411 Sergey Lega <sergey.s.lega@intel.com>
14412 Anna Tikhonova <anna.tikhonova@intel.com>
14413 Ilya Tocar <ilya.tocar@intel.com>
14414 Andrey Turetskiy <andrey.turetskiy@intel.com>
14415 Ilya Verbin <ilya.verbin@intel.com>
14416 Kirill Yukhin <kirill.yukhin@intel.com>
14417 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14419 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
14421 (ix86_expand_vector_move_misalign): Support new unaligned load and
14422 stores and use new names.
14423 (CODE_FOR_sse2_storedqu): Rename to ...
14424 (CODE_FOR_sse2_storedquv16qi): ... this.
14425 (CODE_FOR_sse2_loaddqu): Rename to ...
14426 (CODE_FOR_sse2_loaddquv16qi): ... this.
14427 (CODE_FOR_avx_loaddqu256): Rename to ...
14428 (CODE_FOR_avx_loaddquv32qi): ... this.
14429 (CODE_FOR_avx_storedqu256): Rename to ...
14430 (CODE_FOR_avx_storedquv32qi): ... this.
14431 * config/i386/i386.md (fpint_logic): New.
14432 * config/i386/sse.md (VMOVE): Extend for AVX512.
14436 (VI_UNALIGNED_LOADSTORE): Ditto.
14437 (sse2_avx_avx512f): Ditto.
14438 (sse2_avx2): Extend for AVX512.
14439 (sse4_1_avx2): Ditto.
14440 (avx2_avx512f): New.
14441 (sse): Extend for AVX512.
14444 (avxsizesuffix): Ditto.
14445 (sseintvecmode): Ditto.
14446 (ssePSmode): Ditto.
14447 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
14448 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
14449 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
14450 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
14451 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
14452 (<sse2_avx_avx512f>_storedqu<mode): ... this.
14453 (<sse>_movnt<mode>): Replace constraint "x" with "v".
14454 (STORENT_MODE): Extend for AVX512.
14455 (*absneg<mode>2): Replace constraint "x" with "v".
14456 (*mul<mode>3): Ditto.
14457 (*ieee_smin<mode>3): Ditto.
14458 (*ieee_smax<mode>3): Ditto.
14459 (avx_cmp<mode>3): Replace VF with VF_128_256.
14460 (*<sse>_maskcmp<mode>3_comm): Ditto.
14461 (<sse>_maskcmp<mode>3): Ditto.
14462 (<sse>_andnot<mode>3): Extend for AVX512.
14463 (<code><mode>3, anylogic): Replace VF with VF_128_256.
14464 (<code><mode>3, fpint_logic): New.
14465 (*<code><mode>3): Extend for AVX512.
14466 (avx512flogicsuff): New.
14467 (avx512f_<logic><mode>): Ditto.
14468 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
14470 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
14471 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
14472 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
14473 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
14474 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
14475 (xop_vpermil2<mode>3): Ditto.
14476 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
14477 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
14478 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
14479 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
14481 2013-09-25 Tom Tromey <tromey@redhat.com>
14483 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
14484 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
14485 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
14486 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
14487 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
14488 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
14489 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
14490 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
14491 (GRAPHITE_HTAB_H): Remove.
14493 2013-09-25 Tom Tromey <tromey@redhat.com>
14495 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
14497 2013-09-25 Tom Tromey <tromey@redhat.com>
14499 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
14501 2013-09-25 Tom Tromey <tromey@redhat.com>
14503 * config/i386/t-i386 (i386.o): Remove.
14504 (i386-c.o): Use COMPILE and POSTCOMPILE.
14506 2013-09-25 Tom Tromey <tromey@redhat.com>
14508 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
14510 2013-09-25 Tom Tromey <tromey@redhat.com>
14512 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
14513 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
14514 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
14515 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
14516 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
14517 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
14518 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
14519 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
14520 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
14521 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
14522 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
14523 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
14524 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
14525 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
14526 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
14527 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
14528 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
14529 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
14530 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
14531 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
14532 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
14533 (tree-ssa-pre.o, tree-ssa-sccvn.o)
14534 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
14535 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
14536 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
14537 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
14538 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
14539 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
14540 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
14541 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
14542 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
14543 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
14544 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
14545 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
14546 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
14547 (graphite-clast-to-gimple.o, graphite-dependences.o)
14548 (graphite-interchange.o, graphite-poly.o)
14549 (graphite-scop-detection.o, graphite-sese-to-poly.o)
14550 (graphite-optimize-isl.o, tree-vect-loop.o)
14551 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
14552 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
14553 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
14554 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
14555 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
14556 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
14557 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
14558 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
14559 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
14560 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
14561 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
14562 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
14563 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
14564 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
14565 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
14566 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
14567 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
14568 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
14569 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
14570 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
14571 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
14572 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
14573 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
14574 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
14575 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
14576 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
14577 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
14578 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
14579 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
14580 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
14581 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
14582 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
14583 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
14584 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
14585 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
14586 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
14587 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
14588 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
14589 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
14590 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
14591 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
14592 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
14593 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
14594 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
14595 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
14596 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
14597 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
14598 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
14599 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
14600 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
14601 (gcov-dump.o): Remove.
14602 (default-c.o): Use COMPILE and POSTCOMPILE.
14603 (CFLAGS-gcc.o): New variable.
14604 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
14606 2013-09-25 Tom Tromey <tromey@redhat.com>
14608 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
14609 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
14610 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
14611 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
14612 (c-family/c-pragma.o, c-family/c-pretty-print.o)
14613 (c-family/c-semantics.o, c-family/c-ada-spec.o)
14614 (c-family/array-notation-common.o, c-family/stub-objc.o)
14615 (c-family/c-ubsan.o): Remove.
14617 2013-09-25 Tom Tromey <tromey@redhat.com>
14619 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
14621 2013-09-25 Tom Tromey <tromey@redhat.com>
14623 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
14624 to add -DENABLE_SHARED_LIBGCC.
14625 (gcc.o): Don't use subshell.
14627 2013-09-25 Tom Tromey <tromey@redhat.com>
14629 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
14630 * configure.ac: Don't invoke AM_PROG_CC_C_O.
14631 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
14632 * configure, config.in: Rebuild.
14634 2013-09-25 Tom Tromey <tromey@redhat.com>
14636 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
14637 (COMPILE, POSTCOMPILE): New variables.
14638 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
14639 (DEPFILES): New variable.
14640 Include ".Po" files.
14641 * configure.ac: Add checks for dependency checking.
14642 * configure, aclocal.m4: Regenerate.
14644 2013-09-25 Tom Tromey <tromey@redhat.com>
14646 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
14647 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
14649 2013-09-25 Tom Tromey <tromey@redhat.com>
14651 * Makefile.in (generated_files): Add options.h,
14652 target-hooks-def.h, insn-opinit.h,
14653 common/common-target-hooks-def.h, pass-instances.def,
14654 c-family/c-target-hooks-def.h.
14656 2013-09-25 Jeff Law <law@redhat.com>
14658 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
14659 than foo[foo.length () - 1] to access last member in a vec.
14660 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
14662 2013-09-25 Richard Biener <rguenther@suse.de>
14664 PR middle-end/58521
14665 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
14667 2013-09-25 Jan Hubicka <jh@suse.cz>
14669 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
14672 2013-09-25 Marek Polacek <polacek@redhat.com>
14675 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
14676 when determining the type name.
14678 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
14680 * config/sh/sh.md: Fix formatting.
14682 2013-09-24 Xinliang David Li <davidxl@google.com>
14684 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
14685 max peel iterations parameter.
14686 * param.def: New parameter.
14687 * doc/invoke.texi: Document New parameter.
14689 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
14691 * gimple-pretty-print.c: Various whitespace tweaks.
14692 * tree-core.h: Likewise.
14693 * tree-pretty-print.c: Likewise.
14694 * tree-ssa-alias.c: Likewise.
14695 * tree-ssa-copy.c: Likewise.
14696 * tree-ssanames.c: Likewise.
14697 * tree-ssanames.h: Likewise.
14698 * tree-vrp.c: Likewise.
14700 2013-09-24 Alan Modra <amodra@gmail.com>
14702 PR middle-end/57134
14703 PR middle-end/57586
14704 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
14705 for output operands that disallow regs. Don't use EXPAND_WRITE on
14708 2013-09-24 Richard Biener <rguenther@suse.de>
14710 PR middle-end/58513
14711 * tree.c (reference_alias_ptr_type): Move ...
14712 * alias.c (reference_alias_ptr_type): ... here and implement
14713 in terms of the new reference_alias_ptr_type_1.
14714 (ref_all_alias_ptr_type_p): New helper.
14715 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
14716 use ref_all_alias_ptr_type_p.
14717 (get_deref_alias_set): Add flag_strict_aliasing check here.
14718 (reference_alias_ptr_type_1): New function, split out from ...
14719 (get_alias_set): ... here.
14720 (alias_ptr_types_compatible_p): New function.
14721 * alias.h (reference_alias_ptr_type): Declare.
14722 (alias_ptr_types_compatible_p): Likewise.
14723 * tree.h (reference_alias_ptr_type): Remove.
14724 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
14725 to compare MEM_REF alias types.
14727 2013-09-24 Richard Biener <rguenther@suse.de>
14729 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
14731 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14733 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
14734 reload helper function arrays into a single array reg_addr.
14735 (reload_fpr_gpr): Likewise.
14736 (reload_gpr_vsx): Likewise.
14737 (reload_vsx_gpr): Likewise.
14738 (struct rs6000_reg_addr): Likewise.
14739 (reg_addr): Likewise.
14740 (rs6000_debug_reg_global): Change rs6000_vector_reload,
14741 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
14742 (rs6000_init_hard_regno_mode_ok): Likewise.
14743 (rs6000_secondary_reload_direct_move): Likewise.
14744 (rs6000_secondary_reload): Likewise.
14746 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
14747 constraints: wu, ww, and wy. Repurpose wv constraint added during
14748 power8 changes. Put wg constraint in alphabetical order.
14750 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
14751 for future work to add ISA 2.07 VSX single precision support.
14752 (-mvsx-scalar-double): Change default from -1 to 1, update
14753 documentation comment.
14754 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
14755 (-mupper-regs-df): New debug switch to control whether DF values
14756 can go in the traditional Altivec registers.
14757 (-mupper-regs-sf): New debug switch to control whether SF values
14758 can go in the traditional Altivec registers.
14760 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
14761 and wy constraints.
14762 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
14763 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
14764 Add new constraints, wu/ww/wy. Repurpose wv constraint.
14765 (rs6000_debug_legitimate_address_p): Print if we are running
14766 before, during, or after reload.
14767 (rs6000_secondary_reload): Add a comment.
14768 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
14770 * config/rs6000/constraints.md (wa constraint): Sort w<x>
14771 constraints. Update documentation string.
14772 (wd constraint): Likewise.
14773 (wf constraint): Likewise.
14774 (wg constraint): Likewise.
14775 (wn constraint): Likewise.
14776 (ws constraint): Likewise.
14777 (wt constraint): Likewise.
14778 (wx constraint): Likewise.
14779 (wz constraint): Likewise.
14780 (wu constraint): New constraint for ISA 2.07 SFmode scalar
14782 (ww constraint): Likewise.
14783 (wy constraint): Likewise.
14784 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
14785 in the previous submissions.
14786 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
14788 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
14790 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
14791 (REG_BR_PROB): Say that the probability is stored in an int_list.
14792 * reg-notes.def: Update commentary to mention INT_LIST.
14793 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
14794 (INT_LIST): New rtx.
14795 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
14796 * rtlanal.c (int_reg_note_p): New function.
14797 (alloc_reg_note): Assert that the note does not have an int argument.
14798 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
14799 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
14800 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
14801 rather than an INSN_LIST. Handle INT_LIST.
14802 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
14803 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
14804 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
14805 Manipulate them as ints rather than rtxes.
14806 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
14807 * regmove.c (copy_src_to_dest): Likewise.
14808 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
14810 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
14811 into the cases that need it.
14812 * config/arm/arm.c (arm_unwind_emit): Likewise.
14814 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
14815 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
14816 * loop-doloop.c (add_test, doloop_modify): Likewise.
14817 * loop-unswitch.c (compare_and_jump_seq): Likewise.
14818 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
14819 * predict.c (combine_predictions_for_insn): Likewise.
14820 * print-rtl.c (print_rtx): Handle INT_LIST.
14821 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
14822 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
14823 * config/arm/arm.c (emit_unlikely_jump): Likewise.
14824 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
14825 (ix86_split_fp_branch, predict_jump): Likewise.
14826 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
14827 * config/sh/sh.c (expand_cbranchsi4): Likewise.
14828 * config/spu/spu.c (ea_load_store_inline): Likewise.
14830 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
14831 value of a REG_BR_PROB note.
14832 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
14833 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
14834 * emit-rtl.c (try_split): Likewise.
14835 * predict.c (br_prob_note_reliable_p): Likewise.
14836 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
14837 * reorg.c (mostly_true_jump): Likewise.
14838 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
14839 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
14840 * config/i386/i386.c (ix86_print_operand): Likewise.
14841 * config/ia64/ia64.c (ia64_print_operand): Likewise.
14842 * config/mmix/mmix.c (mmix_print_operand): Likewise.
14843 * config/rs6000/rs6000.c (output_cbranch): Likewise.
14844 * config/s390/s390.c (s390_expand_tbegin): Likewise.
14845 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
14846 * config/sparc/sparc.c (output_cbranch): Likewise.
14847 * config/spu/spu.c (get_branch_target): Likewise.
14848 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
14849 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
14851 2013-09-23 Jan Hubicka <jh@suse.cz>
14853 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
14855 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
14856 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
14858 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
14859 (gimple_fold_call): Dump inconsistent devirtualizations; add
14860 sanity check for type based devirtualizations.
14861 * ipa-prop.c: Include ipa-utils.h
14862 (ipa_intraprocedural_devirtualization): Add sanity check.
14863 (try_make_edge_direct_virtual_call): Likewise.
14865 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
14867 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
14868 assignment statements.
14870 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14872 * gimple-pretty-print.c (dump_ssaname_info): New function.
14873 (dump_gimple_phi): Call it.
14874 (pp_gimple_stmt_1): Likewise.
14875 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
14876 (range_info_def): Declare.
14877 * tree-pretty-print.c (pp_double_int): New function.
14878 (dump_generic_node): Call it.
14879 * tree-pretty-print.h (pp_double_int): Declare.
14880 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
14881 * tree-ssanames.h (range_info_def): New structure.
14882 (value_range_type): Move definition here.
14883 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
14885 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
14887 (set_range_info): New function.
14888 (get_range_info): Likewise.
14889 (duplicate_ssa_name_range_info): Likewise.
14890 (duplicate_ssa_name_fn): Check pointer type and call
14891 duplicate_ssa_name_range_info.
14892 * tree-ssa-copy.c (fini_copy_prop): Likewise.
14893 * tree-vrp.c (value_range_type): Remove definition, now in
14895 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
14896 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
14897 (SSA_NAME_RANGE_INFO): New macro.
14899 2013-09-23 Richard Biener <rguenther@suse.de>
14901 PR tree-optimization/58464
14902 * tree-ssa-pre.c (phi_trans_lookup): Remove.
14903 (phi_trans_add): Change to add conditionally on being not present.
14904 (phi_translate_1): Remove recursion detection here.
14905 (phi_translate): Pre-seed the cache with NULL to catch
14906 recursion here in a more generic way.
14907 (bitmap_find_leader): Adjust comment.
14908 (get_representative_for): Dump value-numbers.
14909 (create_expression_by_pieces): Likewise.
14910 (insert_into_preds_of_block): Likewise.
14912 2013-09-23 Christian Bruel <christian.bruel@st.com>
14915 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
14916 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
14918 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
14921 2013-09-20 Renlin Li <renlin.li@arm.com>
14923 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
14925 (aarch64_expand_epilogue): Likewise.
14926 (aarch64_legitimize_reload_address): Likewise.
14928 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
14930 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
14931 NULL_TREE before pushing them onto the vector. Likewise for labels.
14933 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
14935 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
14936 comparison operators when -fno-trapping-math is in effect.
14937 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
14938 comparison operators in TFmode and assert that unsupported operators
14940 (ia64_print_operand): Likewise.
14942 2013-09-21 Jan Hubicka <jh@suse.cz>
14944 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
14945 (sse_typeless_stores): Enable for core
14946 (sse_load0_by_pxor): Likewise.
14947 (four_jump_limit): Disable for core.
14948 (pad_returns): Likewise.
14949 (avoid_vector_decode): Likewise.
14950 (fuse_cmp_and_branch): Enable for cores.
14951 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
14953 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
14955 PR middle-end/56791
14956 * config/pa/pa.c (pa_option_override): Disable auto increment and
14957 decrement instructions until reload is completed.
14959 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
14960 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
14961 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
14963 2013-09-20 DJ Delorie <dj@redhat.com>
14964 Nick Clifton <nickc@redhat.com>
14966 * config/rl78/rl78.c: Various whitespace and comment tweaks.
14967 (need_to_save): Save bank 0 on interrupts.
14968 (characterize_address): Strip far address wrappers.
14969 (rl78_as_legitimate_address): Likewise.
14970 (transcode_memory_rtx): Likewise.
14971 (rl78_peep_movhi_p): Disable this peephole after devirt.
14972 (rl78_propogate_register_origins): Forget all origins when a
14974 * config/rl78/rl78-virt.md: Various whitespace tweaks.
14975 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
14977 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
14978 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
14979 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
14981 * config/rl78/constraints.md: Various whitespace and paren tweaks.
14983 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
14985 * config/pa/pa.md: In "scc" insn patterns, change output template to
14986 handle const0_rtx in reg_or_0_operand operands.
14988 2013-09-20 Martin Husemann <martin@NetBSD.org>
14991 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
14992 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
14994 2013-09-20 Richard Biener <rguenther@suse.de>
14996 PR middle-end/58484
14997 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
14998 remembering SSA name version and block index.
14999 (new_scev_info_str): Adjust.
15000 (hash_scev_info): Likewise. Also hash the block index.
15001 (eq_scev_info): Adjust.
15002 (find_var_scev_info): Likewise.
15003 (struct instantiate_cache_entry): Remove.
15004 (struct instantiate_cache_type): Use a htab to map name, block
15006 (instantiate_cache_type::~instantiate_cache_type): Adjust.
15007 (get_instantiated_value_entry): Likewise.
15008 (hash_idx_scev_info, eq_idx_scev_info): New functions.
15009 (instantiate_scev_name): Adjust.
15011 2013-09-20 Jeff Law <law@redhat.com>
15013 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
15015 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
15017 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
15018 Call aarch64_simd_expand_args to update op[argc].
15020 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
15022 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
15025 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
15027 * gengtype.c (file_rules): Added rule for *.cc files.
15028 (get_output_file_with_visibility): Give fatal message when no
15031 2013-09-20 Renlin Li <renlin.li@arm.com>
15033 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
15034 (aarch64_expand_epilogue): Likewise.
15035 (aarch64_legitimize_reload_address): Likewise.
15037 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15039 PR middle-end/57748
15040 * expr.c (expand_assignment): Remove misalignp code path.
15042 2013-09-20 Marek Polacek <polacek@redhat.com>
15045 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
15046 TYPE_PRECISION. Add asserts.
15048 2013-09-20 Richard Biener <rguenther@suse.de>
15050 PR tree-optimization/58453
15051 * tree-loop-distribution.c (distribute_loop): Apply the cost
15052 model for -ftree-loop-distribute-patterns, too.
15054 2013-09-20 Richard Biener <rguenther@suse.de>
15056 PR middle-end/58473
15057 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
15058 make type comparison less strict.
15060 2013-09-20 Alan Modra <amodra@gmail.com>
15062 * configure: Regenerate.
15063 * aclocal.m4: Regenerate.
15065 2013-09-20 Marek Polacek <polacek@redhat.com>
15068 * doc/extend.texi: Document that attribute used is meant to be used
15069 on variables with static storage duration.
15071 2013-09-19 Jakub Jelinek <jakub@redhat.com>
15073 PR tree-optimization/58472
15074 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
15075 simd_lane_access set inv_p = false.
15076 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
15077 the simduid magic VAR_DECL.
15079 2013-09-19 Jan Hubicka <jh@suse.cz>
15081 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
15083 2013-09-17 Jeff Law <law@redhat.com>
15085 * tree-ssa-dom.c (record_temporary_equivalences): New function
15086 split out of dom_opt_dom_walker::after_dom_children.
15087 (dom_opt_dom_walker::thread_across_edge): Move common code
15088 in here from dom_opt_dom_walker::after_dom_children.
15089 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
15091 2013-09-19 Jan Hubicka <jh@suse.cz>
15093 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
15094 (TARGET_GENERIC): Use PROCESOR_GENERIC
15095 (enum processor_type): Unify generic32 and 64.
15096 * i386.md (cpu): Likewise.
15097 * x86-tune.def (use_leave): Enable for generic32.
15098 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
15099 * athlon.md: Change generic64 to generic in all occurences.
15100 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
15101 (ix86_target_macros_internal): Likewise.
15102 * driver-i386.c (host_detect_local_cpu): Likewise.
15103 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
15105 (generic_memcpy, generic_memset, generic_cost): This one.
15106 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
15107 (m_GENERIC32, m_GENERIC64): Remove.
15108 (m_GENERIC): Turn into one flag.
15109 (processor_target): Unify generic tunnings.
15110 (ix86_option_override_internal): Replace generic32/64 by generic.
15111 (ix86_issue_rate): Likewise.
15112 (ix86_adjust_cost): Likewise.
15114 2013-09-19 Jan Hubicka <jh@suse.cz>
15116 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
15117 of speculative flag.
15119 2013-09-19 Jakub Jelinek <jakub@redhat.com>
15121 * omp-low.c (expand_omp_sections): Always pass len - 1 to
15122 GOMP_sections_start, even if !exit_reachable.
15124 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
15126 * lra-constraints.c (need_for_all_save_p): Use macro
15127 HARD_REGNO_CALL_PART_CLOBBERED.
15128 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
15129 set up pseudo conflict hard regs.
15131 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
15134 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
15137 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
15139 PR rtl-optimization/58438
15140 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
15141 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
15142 from previous subpasses.
15144 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
15146 * arm.c (arm_get_frame_offsets): Validate architecture supports
15147 LDRD/STRD before accepting the tuning preference.
15148 (arm_expand_prologue): Likewise.
15149 (arm_expand_epilogue): Likewise.
15151 2013-09-18 Richard Biener <rguenther@suse.de>
15153 PR tree-optimization/58417
15154 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
15155 have chrecs with symbols defined in the loop as operands.
15156 (chrec_fold_multiply): Likewise.
15157 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
15158 parameters before folding binary operations.
15159 (struct instantiate_cache_entry_hasher): Remove.
15160 (struct instantiate_cache_type): Use a pointer-map.
15161 (instantiate_cache_type::instantiate_cache_type): New function.
15162 (instantiate_cache_type::get): Likewise.
15163 (instantiate_cache_type::set): Likewise.
15164 (instantiate_cache_type::~instantiate_cache_type): Adjust.
15165 (get_instantiated_value_entry): Likewise.
15166 (global_cache): New global.
15167 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
15168 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
15169 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
15170 (instantiate_scev_name): Adjust.
15171 (instantiate_scev): Construct global instead of local cache.
15172 (resolve_mixers): Likewise.
15174 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
15175 Paolo Carlini <paolo.carlini@oracle.com>
15178 * doc/implement-cxx.texi: Fix references to the C++ standards.
15180 2013-09-18 Jakub Jelinek <jakub@redhat.com>
15182 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
15183 * tree-vect-data-refs.c (vect_analyze_data_refs): For
15184 simd_lane_access drs, update also DR_ALIGNED_TO.
15186 2013-09-18 Marek Polacek <polacek@redhat.com>
15189 * doc/extend.texi: Document no_sanitize_undefined attribute.
15190 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
15191 no_sanitize_undefined attribute.
15193 2013-09-18 Nick Clifton <nickc@redhat.com>
15195 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
15196 (ASM_DECLARE_FUNCTION_NAME): Define.
15198 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
15200 * compare-elim.c (find_comparison_dom_walker): New class
15201 (find_comparisons_in_bb): Rename to
15202 find_comparison_dom_walker::before_dom_children
15203 (find_comparisons): Adjust
15204 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
15206 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
15207 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
15208 (init_walk_dominator_tree): Remove declaration.
15209 (fini_walk_dominator_tree): Remove declaration.
15210 * fwprop.c (single_def_use_dom_walker): New class
15211 (single_def_use_enter_block): Convert to
15212 single_def_use_dom_walker::before_dom_children.
15213 (single_def_use_leave_block): Convert to
15214 single_def_use_dom_walker::after_dom_children.
15215 (build_single_def_use_links): Adjust.
15216 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
15218 (find_candidates_in_block): Convert to
15219 find_candidates_dom_walker::before_dom_children.
15220 (execute_strength_reduction): Adjust.
15221 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
15222 (sese_dom_walker): New class.
15223 (sese_dom_walker::sese_dom_walker): New constructor.
15224 (sese_dom_walker::~sese_dom_walker): New destructor.
15225 (build_sese_conditions_before): Convert to
15226 sese_dom_walker::before_dom_children.
15227 (build_sese_conditions_after): Convert to
15228 sese_dom_walker::after_dom_children.
15229 (build_poly_scop): Adjust
15230 * tree-into-ssa.c (rewrite_dom_walker): New class
15231 (rewrite_enter_block): Convert to
15232 rewrite_dom_walker::before_dom_children.
15233 (rewrite_leave_block): Convert to
15234 rewrite_dom_walker::after_dom_children.
15235 (rewrite_update_dom_walker): New class.
15236 (rewrite_update_enter_block): Convert to
15237 rewrite_update_dom_walker::before_dom_children.
15238 (rewrite_update_leave_block): Convert to
15239 rewrite_update_dom_walker::after_dom_children.
15240 (rewrite_blocks, rewrite_into_ssa): Adjust.
15241 (mark_def_dom_walker): New class.
15242 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
15243 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
15244 (mark_def_sites_blocks): Convert to
15245 mark_def_dom_walker::before_dom_children.
15246 (mark_def_site_blocks): Remove.
15247 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
15248 (tree_ssa_dominator_optimize): Adjust.
15249 (dom_thread_across_edge): Convert to method
15250 dom_opt_dom_walker::thread_across_edge.
15251 (dom_opt_enter_block): Convert to member function
15252 dom_opt_dom_walker::before_dom_children.
15253 (dom_opt_leave_block): Convert to member function
15254 dom_opt_dom_walker::after_dom_children.
15255 * tree-ssa-dse.c (dse_dom_walker): New class.
15256 (dse_enter_block): Convert to member function
15257 dse_dom_walker::before_dom_children.
15258 (tree_ssa_dse): Adjust.
15259 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
15260 (determine_invariantness_stmt): Convert to method
15261 invariantness_dom_walker::before_dom_children.
15262 (determine_invariantness): Remove
15263 (move_computations_dom_walker): New class.
15264 (move_computations_stmt): Convert to method
15265 move_computations_dom_walker::before_dom_children.
15266 (move_computations, tree_ssa_lim): Adjust.
15267 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
15268 (nt_init_block): Convert to method
15269 notrappping_dom_walker::before_dom_children.
15270 (nt_fini_block): Convert to method
15271 method nontrapping_dom_walker::after_dom_children.
15272 (get_non_trapping): Adjust.
15273 * tree-ssa-pre.c (eliminate_dom_walker): New class.
15274 (eliminate_bb): Convert to method
15275 eliminate_dom_walker::before_dom_children.
15276 (eliminate_leave_block): Convert to method
15277 eliminate_dom_walker::after_dom_children.
15278 (eliminate): Adjust.
15279 * tree-ssa-strlen.c (strlen_dom_walker): New class.
15280 (strlen_enter_block): Convert to method
15281 strlen_dom_walker::before_dom_children.
15282 (strlen_leave_block): Convert to method
15283 method strlen_dom_walker::after_dom_children.
15284 (tree_ssa_strlen): Adjust.
15285 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
15286 (tree_ssa_uncprop): Adjust.
15287 (uncprop_leave_block): Convert to method
15288 uncprop_dom_walker::after_dom_children.
15289 (uncprop_leave_block): Convert to method
15290 uncprop_dom_walker::before_dom_children.
15292 2013-09-18 Bin Cheng <bin.cheng@arm.com>
15294 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
15295 branch in same basic block. Check both src and dest of the move insn.
15297 2013-09-17 Nick Clifton <nickc@redhat.com>
15299 * config/rl78/rl78-real.md (bf): New pattern.
15301 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
15302 (rl78_print_operand): Do not put a # before a %B.
15303 * config/rl78/rl78.opt: Tweak doc strings.
15305 2013-09-17 DJ Delorie <dj@redhat.com>
15307 * config/rl78/constraints.md (Wcv): Allow up to $r31.
15308 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
15309 (rl78_option_override): Likewise, if -mallregs.
15310 (is_virtual_register): Likewise.
15311 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
15312 (REGNO_OK_FOR_BASE_P): Likewise.
15313 * config/rl78/rl78.opt (-mallregs): New.
15315 2013-09-17 Nick Clifton <nickc@redhat.com>
15317 * config/rl78/rl78.c (need_to_save): Change return type to bool.
15318 For interrupt functions: save all call clobbered registers if the
15319 interrupt handler is not a leaf function.
15320 (rl78_expand_prologue): Always recompute the frame information.
15321 For interrupt functions: only select bank 0 if one of the bank 0
15322 registers is going to be psuhed.
15324 2013-09-17 DJ Delorie <dj@redhat.com>
15326 * config/rl78/constraints.md: For each W* constraint, rename to C*
15327 and create a W* constraint that checks for an optional ES: prefix
15329 * config/rl78/rl78.md (UNS_ES_ADDR): New.
15330 (es_addr): New. Used to wrap far addresses.
15331 * config/rl78/rl78-protos.h (rl78_es_addr): New.
15332 (rl78_es_base): New.
15333 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
15334 wrapped far addresses.
15335 (rl78_print_operand_1): Unwrap far addresses before processing.
15336 (rl78_lo16): Wrap far addresses in unspecs.
15337 (rl78_es_addr): New.
15338 (rl78_es_base): New.
15339 (insn_ok_now): Check for not-yet-wrapped far addresses.
15340 (transcode_memory_rtx): Properly re-wrap far addresses.
15342 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
15344 * config/sparc/t-rtems: Add leon3 multilibs.
15346 2013-09-17 Cong Hou <congh@google.com>
15348 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
15349 when checking the dot production pattern. The type of rhs operand
15350 of multiply is now checked correctly.
15352 2013-09-17 Jeff Law <law@redhat.com>
15354 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15355 edge implied equivalences into successor phis.
15356 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
15357 here from tree-ssa-threadedge.c.
15358 (mark_threaded_blocks): When threading through a joiner, if both
15359 successors of the joiner's clone reach the same block, verify the
15360 PHI arguments are equal. If not, cancel the jump threading request.
15361 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
15362 tree-ssa-threadupdate.c
15363 (thread_across_edge): Don't check PHI argument equality when
15364 threading through joiner block here.
15366 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
15368 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
15369 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
15370 (warn_uninit, warn_uninitialized_vars,
15371 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
15372 Move to tree-ssa-uninit.c.
15373 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
15374 (has_undefined_value_p): New. Pass dependant parts of
15375 ssa_undefined_value_p.
15376 (uninit_undefined_value_p): Use has_undefined_value_p.
15377 (warn_uninit, warn_uninitialized_vars,
15378 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
15379 Move from tree-ssa.c.
15380 * tree-ssa.h: Adjust prototypes.
15382 2013-09-17 Jan Hubicka <jh@suse.cz>
15384 PR middle-end/58332
15385 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
15386 * ipa-inline.c (can_inline_edge_p): Do not downgrade
15387 FUNCTION_NOT_OPTIMIZED.
15388 * ipa-inline-analysis.c (compute_inline_parameters): Function
15389 not optimized is not inlinable unless it is alwaysinline.
15390 (inline_analyze_function): Force calls in not optimized
15391 function not inlinable.
15393 2013-09-17 Jan Hubicka <jh@suse.cz>
15395 PR middle-end/58329
15396 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
15398 * ipa.c (function_and_variable_visibility): Likewise.
15399 * ipa-profile.c (ipa_profile): Likewise.
15401 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
15404 * cgraph.c (cgraph_function_body_availability): Check for ifunc
15405 attribute, and don't inline the resolver in this case.
15407 2013-09-17 Teresa Johnson <tejohnson@google.com>
15409 * coverage.c (get_coverage_counts): Add missing newline.
15411 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15413 PR tree-optimization/58088
15414 * fold-const.c (mask_with_trailing_zeros): New function.
15415 (fold_binary_loc): Make sure we don't recurse infinitely
15416 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
15417 Use mask_with_trailing_zeros where appropriate.
15419 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
15421 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
15422 of 'prev' var to get better distance estimation.
15424 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
15426 * tree-inline.h (struct copy_body_data): Add transform_parameter.
15427 * tree-inline.c (is_parameter_of): New predicate.
15428 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
15429 a parameter has been remapped.
15430 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
15431 (optimize_inline_calls): Initialize transform_parameter.
15432 (copy_gimple_seq_and_replace_locals): Likewise.
15433 (tree_function_versioning): Likewise.
15434 (maybe_inline_call_in_expr): Likewise.
15436 2013-09-17 Nick Clifton <nickc@redhat.com>
15438 * config/msp430/msp430-protos.h: Add prototypes for new functions.
15439 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
15440 interrupt handlers.
15441 (is_attr_func): New function.
15442 (msp430_is_interrupt_func): New function.
15443 (is_naked_func): New function.
15444 (is_reentrant_func): New function.
15445 (is_critical_func): New function.
15446 (msp430_start_function): Add annotations for function attributes.
15447 (msp430_attr): New function.
15448 (msp430_attribute_table): New.
15449 (msp430_function_section): New function.
15450 (TARGET_ASM_FUNCTION_SECTION): Define.
15451 (msp430_builtin): New enum.
15452 (msp430_init_builtins): New function.
15453 (msp430_builtin_devl): New function.
15454 (msp430_expand_builtin): New function.
15455 (TARGET_INIT_BUILTINS): Define.
15456 (TARGET_EXPAND_BUILTINS): Define.
15457 (TARGET_BUILTIN_DECL): Define.
15458 (msp430_expand_prologue): Add support for naked, interrupt,
15459 critical and reentrant functions.
15460 (msp430_expand_epilogue): Likewise.
15461 (msp430_print_operand): Handle 'O' character.
15462 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
15464 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
15465 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
15466 (pushm): Use a 'n' rather than an 'i' constraint.
15467 (msp_return): Add generation of the interrupt return instruction.
15468 (disable_interrupts): New pattern.
15469 (enable_interrupts): New pattern.
15470 (push_intr_state): New pattern.
15471 (pop_intr_state): New pattern.
15472 (bic_SR): New pattern.
15473 (bis_SR): New pattern.
15474 * doc/extend.texi: Document MSP430 function attributes and builtin
15477 2013-09-17 Richard Biener <rguenther@suse.de>
15479 PR tree-optimization/58432
15480 * tree-loop-distribution.c (tree_loop_distribution): Also
15481 scan PHIs for outside loop uses and seed a partition from them.
15483 2013-09-17 Bin Cheng <bin.cheng@arm.com>
15485 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
15486 (restructure_reference): Call backtrace_base_for_ref.
15488 2013-09-17 Alan Modra <amodra@gmail.com>
15491 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
15494 2013-09-16 DJ Delorie <dj@redhat.com>
15496 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
15497 vregs location for RL78/G10.
15498 (rl78_expand_prologue): Avoid SEL on G10.
15499 (rl78_expand_epilogue): Likewise.
15500 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
15501 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
15502 __RL78_G10__ when appropriate.
15503 (ASM_SPEC): Pass -mg10 along to the assembler.
15504 * config/rl78/rl78.md (sel_rb): Disable for G10.
15505 * config/rl78/rl78.opt: Add -mg10 option.
15506 * config/rl78/t-rl78: Add -mg10 multilib.
15508 2013-09-16 Xinliang David Li <davidxl@google.com>
15510 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
15511 * omp-low.c (omp_max_vf): Ditto.
15512 (expand_omp_simd): Ditto.
15513 * tree-vectorizer.c (vectorize_loops): Ditto.
15514 (gate_vect_slp): Ditto.
15515 (gate_increase_alignment): Ditto.
15516 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
15517 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
15518 (gate_tree_vectorize): Name change.
15519 (tree_vectorize): Ditto.
15520 (pass_vectorize::gate): Call new function.
15521 (pass_vectorize::execute): Ditto.
15522 * opts.c: O3 default setting change.
15523 (finish_options): Check new flag.
15524 * doc/invoke.texi: Document new flags.
15525 * common.opt: New flags.
15527 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
15529 * doc/tm.texi.in (Cond Exec Macros): Remove node.
15530 (Condition Code): Don't reference it.
15531 * doc/tm.texi: Regenerate.
15533 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
15535 PR middle-end/58418
15536 * lra-constraints.c (undo_optional_reloads): Consider all optional
15537 reload even if it did not get a hard reg.
15539 2013-09-16 Teresa Johnson <tejohnson@google.com>
15541 * dumpfile.c (dump_loc): Remove newline emission.
15542 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
15543 emission to dump_printf_loc calls where missing.
15544 (vect_mark_for_runtime_alias_test): Ditto.
15545 (vect_analyze_data_ref_dependence): Ditto.
15546 (vect_analyze_data_ref_dependences): Ditto.
15547 (vect_slp_analyze_data_ref_dependence): Ditto.
15548 (vect_slp_analyze_data_ref_dependences): Ditto.
15549 (vect_compute_data_ref_alignment): Ditto.
15550 (vect_update_misalignment_for_peel): Ditto.
15551 (vect_verify_datarefs_alignment): Ditto.
15552 (vector_alignment_reachable_p): Ditto.
15553 (vect_get_data_access_cost): Ditto.
15554 (vect_enhance_data_refs_alignment): Ditto.
15555 (vect_find_same_alignment_drs): Ditto.
15556 (vect_analyze_data_refs_alignment): Ditto.
15557 (vect_analyze_group_access): Ditto.
15558 (vect_analyze_data_ref_access): Ditto.
15559 (vect_analyze_data_ref_accesses): Ditto.
15560 (vect_prune_runtime_alias_test_list): Ditto.
15561 (vect_analyze_data_refs): Ditto.
15562 (vect_create_addr_base_for_vector_ref): Ditto.
15563 (vect_create_data_ref_ptr): Ditto.
15564 (vect_grouped_store_supported): Ditto.
15565 (vect_grouped_load_supported): Ditto.
15566 * value-prof.c (check_counter): Ditto.
15567 (check_ic_target): Ditto.
15568 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
15569 (vect_recog_widen_mult_pattern): Ditto.
15570 (vect_recog_widen_sum_pattern): Ditto.
15571 (vect_recog_over_widening_pattern): Ditto.
15572 (vect_recog_widen_shift_pattern): Ditto.
15573 (vect_recog_rotate_pattern): Ditto.
15574 (vect_recog_vector_vector_shift_pattern): Ditto.
15575 (vect_recog_divmod_pattern): Ditto.
15576 (vect_recog_mixed_size_cond_pattern): Ditto.
15577 (vect_recog_bool_pattern): Ditto.
15578 (vect_pattern_recog_1): Ditto.
15579 (vect_pattern_recog): Ditto.
15580 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
15581 (vect_is_simple_iv_evolution): Ditto.
15582 (vect_analyze_scalar_cycles_1): Ditto.
15583 (vect_get_loop_niters): Ditto.
15584 (vect_analyze_loop_1): Ditto.
15585 (vect_analyze_loop_form): Ditto.
15586 (vect_analyze_loop_operations): Ditto.
15587 (vect_analyze_loop_2): Ditto.
15588 (vect_analyze_loop): Ditto.
15589 (report_vect_op): Ditto.
15590 (vect_is_slp_reduction): Ditto.
15591 (vect_is_simple_reduction_1): Ditto.
15592 (vect_get_known_peeling_cost): Ditto.
15593 (vect_estimate_min_profitable_iters): Ditto.
15594 (vect_model_reduction_cost): Ditto.
15595 (vect_model_induction_cost): Ditto.
15596 (get_initial_def_for_induction): Ditto.
15597 (vect_create_epilog_for_reduction): Ditto.
15598 (vectorizable_reduction): Ditto.
15599 (vectorizable_induction): Ditto.
15600 (vectorizable_live_operation): Ditto.
15601 (vect_loop_kill_debug_uses): Ditto.
15602 (vect_transform_loop): Ditto.
15603 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
15604 (vect_stmt_relevant_p): Ditto.
15605 (process_use): Ditto.
15606 (vect_mark_stmts_to_be_vectorized): Ditto.
15607 (vect_model_simple_cost): Ditto.
15608 (vect_model_promotion_demotion_cost): Ditto.
15609 (vect_model_store_cost): Ditto.
15610 (vect_get_store_cost): Ditto.
15611 (vect_model_load_cost): Ditto.
15612 (vect_get_load_cost): Ditto.
15613 (vect_init_vector_1): Ditto.
15614 (vect_get_vec_def_for_operand): Ditto.
15615 (vect_finish_stmt_generation): Ditto.
15616 (vectorizable_call): Ditto.
15617 (vectorizable_conversion): Ditto.
15618 (vectorizable_assignment): Ditto.
15619 (vectorizable_shift): Ditto.
15620 (vectorizable_operation): Ditto.
15621 (vectorizable_store): Ditto.
15622 (vectorizable_load): Ditto.
15623 (vectorizable_condition): Ditto.
15624 (vect_analyze_stmt): Ditto.
15625 (vect_transform_stmt): Ditto.
15626 (vect_is_simple_use): Ditto.
15627 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
15628 (vect_can_advance_ivs_p): Ditto.
15629 (vect_update_ivs_after_vectorizer): Ditto.
15630 (vect_do_peeling_for_loop_bound): Ditto.
15631 (vect_gen_niters_for_prolog_loop): Ditto.
15632 (vect_update_inits_of_drs): Ditto.
15633 (vect_create_cond_for_alias_checks): Ditto.
15634 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
15635 (vect_build_slp_tree_1): Ditto.
15636 (vect_supported_load_permutation_p): Ditto.
15637 (vect_analyze_slp_instance): Ditto.
15638 (vect_analyze_slp): Ditto.
15639 (vect_make_slp_decision): Ditto.
15640 (vect_detect_hybrid_slp): Ditto.
15641 (vect_bb_vectorization_profitable_p): Ditto.
15642 (vect_slp_analyze_bb_1): Ditto.
15643 (vect_update_slp_costs_according_to_vf): Ditto.
15644 (vect_get_mask_element): Ditto.
15645 (vect_transform_slp_perm_load): Ditto.
15646 (vect_schedule_slp_instance): Ditto.
15647 (vect_schedule_slp): Ditto.
15648 (vect_slp_transform_bb): Ditto.
15649 * profile.c (read_profile_edge_counts): Ditto.
15650 (compute_branch_probabilities): Ditto.
15651 * coverage.c (get_coverage_counts): Ditto.
15653 2013-09-16 Diego Novillo <dnovillo@google.com>
15655 * tree-core.h: Add missing comment lines from refactoring of tree.h.
15657 2013-09-16 Jan Hubicka <jh@suse.cz>
15659 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
15660 abstract functions; for static functions check the presence of body.
15662 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
15664 * config/aarch64/aarch64-simd-builtins.def (fma): New.
15665 * config/aarch64/aarch64-simd.md
15666 (aarch64_mla_elt<mode>): New.
15667 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
15668 (aarch64_mls_elt<mode>): Likewise.
15669 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
15670 (aarch64_fma4_elt<mode>): Likewise.
15671 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
15672 (aarch64_fma4_elt_to_128v2df): Likewise.
15673 (aarch64_fma4_elt_to_64df): Likewise.
15674 (fnma<mode>4): Likewise.
15675 (aarch64_fnma4_elt<mode>): Likewise.
15676 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
15677 (aarch64_fnma4_elt_to_128v2df): Likewise.
15678 (aarch64_fnma4_elt_to_64df): Likewise.
15679 * config/aarch64/iterators.md (VDQSF): New.
15680 * config/aarch64/arm_neon.h
15681 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
15682 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
15684 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
15686 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
15687 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
15688 (aarch64_mul3_elt_to_128df): Likewise.
15689 (aarch64_mul3_elt_to_64v2df): Likewise.
15690 * config/aarch64/iterators.md (VEL): Also handle DFmode.
15692 (VMUL_CHANGE_NLANES) Likewise.
15695 * config/aarch64/arm_neon.h
15696 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
15698 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
15700 * config/aarch64/arm_neon.h
15701 (vcvtx_high_f32_f64): Fix parameters.
15703 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15704 Uros Bizjak <ubizjak@gmail.com>
15706 * config/alpha.c: Include tree-ssanames.h.
15708 2013-09-16 Richard Biener <rguenther@suse.de>
15710 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
15711 (dot_rdg_1): Handle control_dd.
15712 (create_edge_for_control_dependence): New function.
15713 (create_rdg_edges): Add control dependences if asked for.
15714 (build_rdg): Likewise.
15715 (generate_loops_for_partition): If there are not necessary
15716 control stmts remove all their dependencies.
15717 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
15718 (distribute_loop): Pass on control dependences.
15719 (tree_loop_distribution): Compute control dependences and remove
15720 restriction on number of loop nodes.
15722 2013-09-16 Jakub Jelinek <jakub@redhat.com>
15724 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
15725 for internal calls.
15727 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
15729 * cse.c (try_const_anchors): Punt on CC modes.
15731 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15733 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
15735 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
15738 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
15739 calls to word_mode.
15741 2013-09-14 Iain Sandoe <iain@codesourcery.com>
15744 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
15746 (darwin_objc1_section): Likewise.
15747 (darwin_file_end): Emit Image Info section when required.
15749 2013-09-14 Jan Hubicka <jh@suse.cz>
15751 * tree-into-ssa.c (gate_into_ssa): New.
15752 (pass_data_build_ssa): Use it.
15753 * cgraph.h (expand_thunk): Update prototype.
15754 * cgraphunit.c (analyze_function): Expand thunks early.
15755 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
15756 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
15757 set lowered flag; do not add new function.
15758 (assemble_thunks_and_aliases): Update.
15759 * tree-ssa.c (gate_init_datastructures): New gate.
15760 (pass_data_init_datastructures): Use it.
15762 2013-09-14 Iain Sandoe <iain@codesourcery.com>
15765 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
15766 xmm register set described in the psABI.
15768 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
15770 * dwarf2out.c (should_emit_struct_debug): Add check
15771 for type_decl variable is not NULL.
15773 2013-09-13 Jacek Caban <jacek@codeweavers.com>
15775 * config.gcc: Use new winnt-c.c target hooks
15776 * config/t-winnt: New file
15777 * config/winnt-c.c: New file
15778 * doc/tm.texi.in: Document new hook
15779 * doc/tm.texi: Regenerated
15781 2013-09-13 Jan Hubicka <jh@suse.cz>
15783 PR middle-end/58094
15784 * ipa-inline.c (check_callers): New function.
15785 (check_caller_edge): Remove.
15786 (want_inline_function_to_all_callers_p): Also permit alises that are
15788 (inline_to_all_callers): Terminate the walk when devirtualization
15789 introduce new calls.
15791 2013-09-13 Jan Hubicka <jh@suse.cz>
15793 * ipa-inline-analysis.c (struct growth_data): Add node.
15794 (do_estimate_growth_1): Fix detection of recursion.
15796 2013-09-13 Jakub Jelinek <jakub@redhat.com>
15798 PR tree-optimization/58392
15799 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
15800 to avoid shadowing of outer loop variable. If
15801 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
15802 replace_by_duplicate_decl simduid of loops that have it set and
15803 set dest_cfun->has_simduid_loops and/or
15804 dest_cfun->has_force_vect_loops.
15805 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
15806 instead of maybe_lookup_decl.
15807 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
15808 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
15809 call. Copy over force_vect and copy and remap simduid. Set
15810 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
15811 (copy_cfg_body): Remove blocks_to_copy argument. Use
15812 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
15813 caller. Don't set cfun->has_simduid_loops and/or
15814 cfun->has_force_vect_loops here.
15815 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
15817 (expand_call_inline, tree_function_versioning): Adjust copy_body
15820 2013-09-13 Martin Jambor <mjambor@suse.cz>
15823 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
15824 the assert if the edge was a speculative one.
15826 2013-09-13 Richard Biener <rguenther@suse.de>
15828 * tree-data-ref.h (known_dependences_p): Move here ...
15829 * tree-loop-distribution.c (known_dependences_p): ... from here.
15830 (dump_rdg_component, debug_rdg_component): Remove.
15831 (dump_rdg): Adjust.
15832 (generate_loops_for_partition): Use gimple_uid instead of
15833 relying on matching stmt visit order.
15834 (rdg_build_partitions): Take starting stmt vector.
15835 (ldist_gen): Merge into ...
15836 (distribute_loop): ... this function. Do not compute starting
15838 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
15840 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15842 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
15843 Set type attribute correctly. Set predicable_short_it attribute.
15844 (cmpsi_shiftsi): Remove %? from output template.
15846 2013-09-13 Richard Biener <rguenther@suse.de>
15848 * tree-loop-distribution.c (struct rdg_component,
15849 rdg_defs_used_in_other_loops_p, free_rdg_components,
15850 rdg_build_components): Remove.
15851 (stmts_from_loop): Do not record virtual PHIs.
15852 (generate_loops_for_partition): Skip virtual PHIs.
15853 (build_rdg_partition_for_component): Rename to ...
15854 (build_rdg_partition_for_vertex): ... this and adjust.
15855 (rdg_build_partitions): Take a vector of starting vertices
15856 instead of components. Remove unnecessary leftover handling.
15857 (ldist_gen): Do not build components or record other stores.
15858 (distribute_loop): Do not distribute loops containing stmts
15861 2013-09-13 Christian Bruel <christian.bruel@st.com>
15864 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
15866 2013-09-13 Kai Tietz <ktietz@redhat.com>
15868 * config.gcc: Separate cases for mingw and cygwin targets,
15869 and add 64-bit cygwin target case.
15871 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
15872 dll-export inline-functions.
15873 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
15875 2013-09-13 Jeff Law <law@redhat.com>
15877 PR middle-end/58387
15879 2013-09-06 Jeff Law <law@redhat.com>
15881 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15882 edge implied equivalences into successor phis.
15884 2013-09-12 DJ Delorie <dj@redhat.com>
15886 * config/rl78/rl78-virt.md: Change from | to \; for asm line
15889 2013-09-12 Brooks Moses <bmoses@google.com>
15892 * Makefile.in: Do not install driver binaries in $(target)/bin.
15894 2013-09-12 DJ Delorie <dj@redhat.com>
15896 * config/rl78/rl78.opt (mrelax): New.
15897 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
15898 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
15900 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
15902 (rl78_expand_epilogue): Likewise.
15904 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
15906 PR middle-end/58335
15907 * lra-eliminations.c (remove_reg_equal_offset_note): New.
15908 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
15909 pointer elimination with using remove_reg_equal_offset_note.
15911 2013-09-12 DJ Delorie <dj@redhat.com>
15913 * config/msp430/: New port.
15914 * config.gcc (msp430): Added.
15915 * doc/invoke.texi: Document MSP430 options.
15916 * doc/install.texi: Document msp430-elf
15917 * doc/md.texi: Document msp430-elf
15918 * doc/contrib.texi: Document msp430-elf
15920 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
15923 2013-09-12 Martin Jambor <mjambor@suse.cz>
15926 * ipa-prop.c (remove_described_reference): Give up if the edge in the
15927 reference descriptor is NULL.
15928 (ipa_edge_removal_hook): If owning a reference descriptor, set its
15931 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
15933 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
15934 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
15935 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
15936 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
15937 make_temp_ssa_name): move to tree-ssanames.h
15938 * tree-ssa-alias.h: Move prototype.
15939 * tree-ssa.h: Include tree-ssanames.h.
15940 * tree-ssanames.c (FREE_SSANAMES): Move to here.
15941 * tree-ssanames.h: New. Move items from tree-flow*.h
15942 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
15944 2013-09-12 Richard Biener <rguenther@suse.de>
15946 PR tree-optimization/58404
15947 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
15948 propagate non-invariant addresses into dereferences wrapped
15949 in component references.
15951 2013-09-12 Richard Biener <rguenther@suse.de>
15953 PR tree-optimization/58402
15954 * passes.def: Move pass_late_warn_uninitialized later.
15956 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
15958 * tree-ssa.h: New. Move content from tree-flow.h and
15959 tree-flow-inline.h.
15960 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
15961 Move prototypes belonging to tree-ssa.c.
15962 * tree-flow-inline.h (redirect_edge_var_map_def,
15963 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
15965 * gimple.h: Adjust prototypes.
15966 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
15968 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
15969 * tree.h: Move prototype to tree-ssa.h.
15970 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
15971 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
15972 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
15973 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
15974 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
15975 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
15976 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
15977 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
15978 graphite-blocking.c, graphite-clast-to-gimple.c,
15979 graphite-dependences.c, graphite-interchange.c,
15980 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
15981 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
15982 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
15983 ipa-reference.c, ipa-split.c, ipa-utils.c,
15984 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
15985 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
15986 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
15987 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15988 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
15989 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
15990 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
15991 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
15992 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
15993 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
15994 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
15995 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15996 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
15997 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
15998 value-prof.c, var-tracking.c,
15999 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
16001 2013-09-12 Richard Biener <rguenther@suse.de>
16003 PR tree-optimization/58396
16004 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
16005 (build_rdg): Take a loop-nest parameter, fix memleaks.
16006 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
16008 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
16010 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
16013 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
16015 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
16016 The FMA instruction names should have a 'v' prefix.
16018 2013-09-12 Richard Biener <rguenther@suse.de>
16020 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
16021 (dot_rdg): Use popen instead of system in optional code.
16022 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
16023 (already_processed_vertex_p): Adjust.
16024 (has_anti_or_output_dependence, predecessor_has_mem_write,
16025 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
16026 rdg_flag_uses): Remove.
16027 (rdg_flag_vertex): Simplify.
16028 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
16030 (build_rdg_partition_for_component): Process the first vertex
16031 of a component only.
16032 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
16034 2013-09-12 Alan Modra <amodra@gmail.com>
16036 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
16038 2013-09-11 DJ Delorie <dj@redhat.com>
16039 Nick Clifton <nickc@redhat.com>
16041 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
16042 (rl78_stack_based_mem): New.
16043 * config/rl78/constraints.md (Iv08): New.
16052 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
16054 (movsi): Change from expand to insn-and-split.
16055 (ashrsi3): Clobber AX.
16059 * config/rl78/rl78.md (CC_REG): Fix.
16060 (addsi3): Allow memory and immediate operands.
16061 (addsi3_internal): Split into...
16062 (addsi3_internal_virt): ...new, and ...
16063 (addsi3_internal_real): ...new.
16065 (subsi3_internal_virt): New.
16066 (subsi3_internal_real): New.
16067 (mulsi3): Add memory operand.
16068 (mulsi3_rl78): Likewise.
16069 (mulsi3_g13): Likewise.
16070 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
16071 (cbranchqi4_real): Add more constraint options.
16072 (cbranchhi4_real): Expand pattern.
16073 (cbranchhi4_real_signed): New.
16074 (cbranchhi4_real_inverted): New.
16075 (cbranchsi4_real_lt): New.
16076 (cbranchsi4_real_ge): New.
16077 (cbranchsi4_real_signed): New.
16078 (cbranchsi4_real): New.
16080 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
16082 (lshrsi3_virt): Likewise.
16083 (ashlsi3_virt): Likewise.
16084 (cbranchqi4_virt_signed): New.
16085 (cbranchhi4_virt_signed): New.
16086 (cbranchsi4_virt): New.
16087 * config/rl78/rl78.c: Whitespace fixes throughout.
16088 (move_elim_pass): New.
16089 (pass_data_rl78_move_elim): New.
16090 (pass_rl78_move_elim): New.
16091 (make_pass_rl78_move_elim): New.
16092 (rl78_devirt_info): Run devirt earlier.
16093 (rl78_move_elim_info): New.
16094 (rl78_asm_file_start): Register it.
16095 (rl78_split_movsi): New.
16096 (rl78_as_legitimate_address): Allow virtual base registers when
16098 (rl78_addr_space_convert): Remove spurious debug stuff.
16099 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
16100 (rl78_print_operand): More cases for not printing '#'.
16101 (rl78_expand_compare): Remove most of the logic.
16102 (content_memory): New.
16103 (clear_content_memory): New.
16104 (get_content_index): New.
16105 (get_content_name): New.
16106 (display_content_memory): New.
16107 (update_content): New.
16108 (record_content): New.
16109 (already_contains): New.
16110 (insn_ok_now): Re-recog insns with virtual registers.
16111 (add_postponed_content_update): New.
16112 (process_postponed_content_update): New.
16113 (gen_and_emit_move): New.
16114 (transcode_memory_rtx): Record new location content.
16115 Use gen_and_emit_move.
16116 (force_into_acc): New.
16117 (move_to_acc): Use gen_and_emit_move.
16118 (move_from_acc): Likewise.
16119 (move_acc_to_reg): Likewise.
16120 (move_to_x): Likewise.
16121 (move_to_hl): Likewise.
16122 (move_to_de): Likewise.
16123 (rl78_alloc_physical_registers_op1): Record location content.
16124 (has_constraint): New.
16125 (rl78_alloc_physical_registers_op2): Record location content.
16126 Optimize use of HL.
16127 (rl78_alloc_physical_registers_ro1): Likewise.
16128 (rl78_alloc_physical_registers_cmp): Likewise.
16129 (rl78_alloc_physical_registers_umul): Likewise.
16130 (rl78_alloc_address_registers_macax): New.
16131 (rl78_alloc_physical_registers): Initialize and set location
16132 content memory as needed.
16133 (rl78_reorg): Make sure split2 is called.
16134 (rl78_rtx_costs): New.
16136 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
16138 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
16139 for (not (neg ...)) and (neg (not ...)) cases.
16141 2013-09-11 Richard Biener <rguenther@suse.de>
16143 PR middle-end/58377
16144 * passes.def: Split critical edges before late uninit warning passes.
16145 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
16147 2013-09-11 Jakub Jelinek <jakub@redhat.com>
16149 PR tree-optimization/58385
16150 * fold-const.c (build_range_check): If both low and high are NULL,
16151 use omit_one_operand_loc to preserve exp side-effects.
16153 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16155 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
16157 2013-09-11 Richard Biener <rguenther@suse.de>
16159 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
16160 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
16161 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
16162 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
16163 stmts_from_loop, known_dependences_p, build_empty_rdg,
16164 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
16165 * tree-loop-distribution.c: ... here.
16166 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
16167 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
16168 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
16169 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
16170 * tree-loop-distribution.c: ... here.
16171 * tree-loop-distribution.c: Include gimple-pretty-print.h.
16172 (struct partition_s): Add loops member.
16173 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
16174 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
16175 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
16177 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
16178 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16179 Sergey Lega <sergey.s.lega@intel.com>
16180 Anna Tikhonova <anna.tikhonova@intel.com>
16181 Ilya Tocar <ilya.tocar@intel.com>
16182 Andrey Turetskiy <andrey.turetskiy@intel.com>
16183 Ilya Verbin <ilya.verbin@intel.com>
16184 Kirill Yukhin <kirill.yukhin@intel.com>
16185 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16187 * config/i386/constraints.md (k): New.
16189 * config/i386/i386.c (const regclass_map): Add new mask registers.
16190 (dbx_register_map): Ditto.
16191 (dbx64_register_map): Ditto.
16192 (svr4_dbx_register_map): Ditto.
16193 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
16195 (ix86_preferred_reload_class): Disable constants for mask registers.
16196 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
16197 (ix86_hard_regno_mode_ok): Support new mask registers.
16198 (x86_order_regs_for_local_alloc): Ditto.
16199 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
16200 (FIXED_REGISTERS): Add new mask registers.
16201 (CALL_USED_REGISTERS): Ditto.
16202 (REG_ALLOC_ORDER): Ditto.
16203 (VALID_MASK_REG_MODE): New.
16204 (FIRST_MASK_REG): Ditto.
16205 (LAST_MASK_REG): Ditto.
16206 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
16207 (MAYBE_MASK_CLASS_P): New.
16208 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
16209 (REG_CLASS_CONTENTS): Ditto.
16210 (MASK_REGNO_P): New.
16211 (ANY_MASK_REG_P): Ditto.
16212 (HI_REGISTER_NAMES): Add new mask registers.
16213 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
16214 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
16216 (attribute "type"): Add mskmov, msklog.
16217 (attribute "length_immediate"): Support them.
16218 (attribute "memory"): Ditto.
16219 (attribute "prefix_0f"): Ditto.
16220 (*movhi_internal): Support new mask registers.
16221 (*movqi_internal): Ditto.
16222 (define_split): Split out clobber pattern is a logic
16223 insn on mask registers.
16224 (*k<logic><mode>): New.
16225 (*andhi_1): Extend to support mask regs.
16226 (*andqi_1): Extend to support mask regs.
16227 (kandn<mode>): New.
16228 (define_split): Split and-not to and and not if operands
16230 (*<code><mode>_1): Separate HI mode to new pattern...
16231 (*<code>hi_1): This.
16232 (*<code>qi_1): Extend to support mask regs.
16233 (kxnor<mode>): New.
16234 (kortestzhi): Ditto.
16235 (kortestchi): Ditto.
16237 (*one_cmpl<mode>2_1): Remove HImode and handle it...
16238 (*one_cmplhi2_1): ...Here, now with mask registers support.
16239 (*one_cmplqi2_1): Support new mask registers.
16240 (HI/QImode arithmetics splitter): Don't split if mask registers
16242 (HI/QImode not splitter): Ditto.
16243 * config/i386/predicated.md (mask_reg_operand): New.
16244 (general_reg_operand): Ditto.
16246 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
16248 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
16249 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
16251 2013-09-10 Jeff Law <law@redhat.com>
16253 PR tree-optimization/58380
16254 * tree-ssa-threadupdate.c (thread_block): Recognize another case
16255 of threading through a buried loop header.
16257 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
16258 return value for single successor case.
16260 2013-09-10 Jan Hubicka <jh@suse.cz>
16262 * ipa-devirt.c (ipa_devirt): Enable with LTO.
16264 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
16267 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
16268 support conditional execution.
16269 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
16271 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
16273 * lra.c (lra): Clear lra_optional_reload_pseudos before every
16275 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
16276 Check destination too to check move insn.
16277 (undo_optional_reloads): Add check that the original peudo did not
16278 changed its allocation and the optional reload was inherited on last
16279 inheritance pass. Break loop after deciding to keep optional reload.
16280 (lra_undo_inheritance): Add check that inherited pseudo still in
16283 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
16285 * config/aarch64/aarch64.md (generic_sched): New.
16286 * config/aarch64/aarch64-generic.md (load): Make conditional
16287 on generic_sched attribute.
16288 (nonload): Likewise.
16290 2013-09-10 Jan Hubicka <jh@suse.cz>
16292 * lto-cgraph.c: Include ipa-utils.h.
16293 (compute_ltrans_boundary): Also add possible targets into the boundary.
16295 2013-09-10 Jan Hubicka <jh@suse.cz>
16297 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
16298 VAR_DECL of vtable rather than full expression.
16300 2013-09-10 Jan Hubicka <jh@suse.cz>
16301 Paolo Carlini <paolo.carlini@oracle.com>
16303 * cgraphunit.c (analyze_functions): Save input_location, set it
16304 to UNKNOWN_LOCATION and restore it at the end.
16306 2013-09-10 Martin Jambor <mjambor@suse.cz>
16308 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
16309 represented by a thunk.
16311 2013-09-10 Jeff Law <law@redhat.com>
16313 PR tree-optimization/58343
16314 * tree-ssa-threadupdate.c (thread_block): Identify and disable
16315 jump threading requests through loop headers buried in the middle
16316 of a jump threading path.
16318 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
16319 in return value/type.
16321 2013-09-10 Jakub Jelinek <jakub@redhat.com>
16323 PR rtl-optimization/58365
16324 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
16325 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
16328 2013-09-10 Richard Biener <rguenther@suse.de>
16330 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
16331 * tree-data-ref.c (create_rdg_vertices): Collect all data
16332 references, signal failure to the caller, use data-ref API.
16333 (build_rdg): Compute data references only once. Maintain lifetime
16334 of data references and data dependences from within RDG.
16335 (free_rdg): Free dependence relations.
16336 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
16337 inventing extra dependences.
16338 (distribute_loop): Update for RDG API changes.
16340 2013-09-10 Kai Tietz <ktietz@redhat.com>
16342 * doc/invoke.texi (fms-extensions): Document changed
16343 behavior for ms-abi targets.
16344 * config/i386/i386.c (ix86_option_override_internal):
16345 Set default value of option -fms-extension for ms-abi targets.
16347 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
16349 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
16351 2013-09-10 Alan Modra <amodra@gmail.com>
16354 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
16356 2013-09-10 Alan Modra <amodra@gmail.com>
16358 * config/rs6000/predicates.md (add_cint_operand): New.
16359 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
16360 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
16361 using add_cint_operand.
16362 (largetoc_high_plus_aix): Likewise.
16364 2013-09-09 Jakub Jelinek <jakub@redhat.com>
16366 PR tree-optimization/58364
16367 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
16368 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
16369 the current range can't be an unconditional true or false.
16371 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
16373 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
16375 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
16377 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
16379 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
16382 * doc/invoke.texi (-Wdelete-incomplete): Document it.
16384 2013-09-09 Ian Bolton <ian.bolton@arm.com>
16386 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
16387 NO_REGS for immediate that can't be moved directly into FP_REGS.
16389 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16391 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
16392 comparison with negated operand.
16393 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
16396 2013-09-09 Richard Biener <rguenther@suse.de>
16398 PR middle-end/58326
16399 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
16400 of a subloop record all its block as affecting loop-closed SSA form.
16402 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
16404 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
16405 of an rtx/bitpos pair.
16406 (store_fixed_bit_field): Update accordingly.
16408 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
16410 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
16412 * builtins.c (expand_errno_check): Likewise.
16413 * dwarf2cfi.c (init_return_column_size): Likewise.
16414 * except.c (sjlj_mark_call_sites): Likewise.
16415 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
16416 * lra-constraints.c (emit_inc): Likewise.
16417 * ree.c (combine_set_extension): Likewise.
16418 * regmove.c (fixup_match_2): Likewise.
16419 * reload1.c (inc_for_reload): Likewise.
16421 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
16423 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
16424 (force_to_mode, simplify_shift_const_1, simplify_comparison):
16425 Use gen_int_mode with the mode of the associated simplify_* call.
16426 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
16427 * expmed.c (expand_shift_1): Likewise.
16428 * function.c (instantiate_virtual_regs_in_insn): Likewise.
16429 * loop-iv.c (iv_number_of_iterations): Likewise.
16430 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
16431 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
16433 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
16435 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
16436 of the associated expand_* call.
16437 (asan_emit_stack_protection): Likewise.
16438 * builtins.c (round_trampoline_addr): Likewise.
16439 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
16440 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
16441 (emit_store_flag): Likewise.
16442 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
16443 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
16445 * function.c (instantiate_virtual_regs_in_insn): Likewise.
16446 * ifcvt.c (noce_try_store_flag_constants): Likewise.
16447 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
16448 * modulo-sched.c (generate_prolog_epilog): Likewise.
16449 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
16450 (expand_ctz, expand_ffs, expand_unop): Likewise.
16452 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
16454 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
16455 of the associated gen_rtx_* call.
16456 * caller-save.c (init_caller_save): Likewise.
16457 * combine.c (find_split_point, make_extraction): Likewise.
16458 (make_compound_operation): Likewise.
16459 * dwarf2out.c (mem_loc_descriptor): Likewise.
16460 * explow.c (plus_constant, probe_stack_range): Likewise.
16461 * expmed.c (expand_mult_const): Likewise.
16462 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
16463 * reload1.c (init_reload): Likewise.
16464 * valtrack.c (cleanup_auto_inc_dec): Likewise.
16465 * var-tracking.c (adjust_mems): Likewise.
16466 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
16467 rather than gen_rtx_fmt_ee.
16469 2013-09-09 Jan Hubicka <jh@suse.cz>
16471 PR middle-end/58294
16472 * value-prof.c (gimple_ic): Copy also abnormal edges.
16474 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
16476 * asan.c (asan_shadow_cst): Use gen_int_mode.
16478 2013-09-08 Jan Hubicka <jh@suse.cz>
16480 * ipa-profile.c: Add toplevel comment.
16481 (ipa_propagate_frequency_1): Be more conservative when profile is read.
16482 (contains_hot_call_p): New function.
16483 (ipa_propagate_frequency): Set frequencies based on counts when
16485 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
16486 profile; do not tamper with profile after inlining if it is read.
16488 2013-09-08 Jan Hubicka <jh@suse.cz>
16490 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
16493 2013-09-08 Jan Hubicka <jh@suse.cz>
16495 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
16496 summary generation.
16498 2013-09-08 Jeff Law <law@redhat.com>
16501 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
16504 2013-09-08 Andi Kleen <ak@linux.intel.com>
16506 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
16508 2013-09-08 Jan Hubicka <jh@suse.cz>
16510 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
16512 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
16514 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
16515 for non-debug insns.
16516 * lra.c (new_insn_reg): Take the containing insn as a parameter.
16517 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
16518 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
16521 2013-09-08 Jan Hubicka <jh@suse.cz>
16523 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
16524 targets and devirtualize to BUILT_IN_UNREACHABLE.
16525 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
16526 * ipa.c (walk_polymorphic_call_targets): New function.
16527 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
16528 functions; use the new timevar.
16529 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
16530 was removed from the program.
16531 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
16532 not consider it in the walk when its vtable is dead.
16533 (possible_polymorphic_call_targets_1): Pass anonymous flag to
16535 (devirt_variable_node_removal_hook): New function.
16536 (possible_polymorphic_call_targets): Also register
16537 devirt_variable_node_removal_hook.
16538 (ipa_devirt): Do not do non-speculative devirtualization.
16539 (gate_ipa_devirt): One execute if devirtualizing speculatively.
16541 2013-09-08 Jan Hubicka <jh@suse.cz>
16543 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
16544 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
16545 varpool_remove_variable_insertion_hook): Declare.
16546 * varpool.c (varpool_node_hook_list): New structure.
16547 (first_varpool_node_removal_hook,
16548 first_varpool_variable_insertion_hook): New variables.
16549 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
16550 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
16551 varpool_remove_variable_insertion_hook,
16552 varpool_call_variable_insertion_hooks): New functions.
16553 (varpool_remove_node): Use it.
16555 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
16558 * diagnostic.c (diagnostic_build_prefix): When s.file is
16559 "<built-in>" don't output line and column numbers.
16561 2013-09-06 Jan Hubicka <jh@suse.cz>
16563 * cgraphunit.c (expand_thunk): Get body before touching arguments.
16564 * lto-streamer-out.c: Stream thunks, too.
16565 * lto-streamer-in.c (input_function): Pop cfun here
16566 (lto_read_body): Instead of here.
16568 2013-09-06 Caroline Tice <cmtice@google.com>
16570 * doc/install.texi: Add documentation for the --enable-vtable-verify
16571 and the --disable-libvtv configure options.
16573 2013-09-06 Jeff Law <law@redhat.com>
16575 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
16576 edge implied equivalences into successor phis.
16578 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
16580 * resource.c (mark_referenced_resources): Handle COND_EXEC.
16582 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
16584 * resource.c (mark_target_live_regs): Compute resources taking
16585 into account if a call is predicated or not.
16587 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
16589 * toplev.c (output_stack_usage): Be prepared for suffixes created by
16590 the compiler in the function names.
16592 2013-09-06 Jan Hubicka <jh@suse.cz>
16594 PR middle-end/58094
16595 * ipa-inline.c (has_caller_p): New function.
16596 (want_inline_function_to_all_callers_p): Use it.
16597 (sum_callers, inline_to_all_callers): Break out from ...
16598 (ipa_inline): ... here.
16600 2013-09-06 Jan Hubicka <jh@suse.cz>
16602 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
16603 only when AVX is enabled.
16605 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16607 * config/aarch64/aarch64.md
16608 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
16609 is fpsimd_<load/store>2.
16610 (load_pair<mode>): Likewise.
16611 (store_pair<mode>): Likewise.
16613 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16615 * config/arm/types.md (type): Add "mrs" type.
16616 * config/aarch64/aarch64.md
16617 (aarch64_load_tp_hard): Make type "mrs".
16618 * config/arm/arm.md
16619 (load_tp_hard): Make type "mrs".
16620 * config/arm/cortex-a15.md: Update with new attributes.
16621 * config/arm/cortex-a5.md: Update with new attributes.
16622 * config/arm/cortex-a53.md: Update with new attributes.
16623 * config/arm/cortex-a7.md: Update with new attributes.
16624 * config/arm/cortex-a8.md: Update with new attributes.
16625 * config/arm/cortex-a9.md: Update with new attributes.
16626 * config/arm/cortex-m4.md: Update with new attributes.
16627 * config/arm/cortex-r4.md: Update with new attributes.
16628 * config/arm/fa526.md: Update with new attributes.
16629 * config/arm/fa606te.md: Update with new attributes.
16630 * config/arm/fa626te.md: Update with new attributes.
16631 * config/arm/fa726te.md: Update with new attributes.
16633 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16635 * config/aarch64/aarch64.md
16636 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
16637 (*movtf_aarch64): Likewise.
16638 * config/arm/arm.md
16639 (thumb1_movdi_insn): Use "multiple" for type where more than one
16640 instruction is used for a move.
16641 (*arm32_movhf): Likewise.
16642 (*thumb_movdf_insn): Likewise.
16644 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16646 * config/arm/types.md (type): Rename fcpys to fmov.
16647 * config/arm/vfp.md
16648 (*arm_movsi_vfp): Rename type fcpys as fmov.
16649 (*thumb2_movsi_vfp): Likewise
16650 (*movhf_vfp_neon): Likewise
16651 (*movhf_vfp): Likewise
16652 (*movsf_vfp): Likewise
16653 (*thumb2_movsf_vfp): Likewise
16654 (*movsfcc_vfp): Likewise
16655 (*thumb2_movsfcc_vfp): Likewise
16656 * config/aarch64/aarch64-simd.md
16657 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
16658 * config/aarch64/aarch64.md
16659 (*movsi_aarch64): Replace type mov_reg with fmovs.
16660 (*movdi_aarch64): Likewise
16661 (*movsf_aarch64): Likewise
16662 (*movdf_aarch64): Likewise
16664 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
16665 * config/arm/iwmmxt.md
16666 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
16667 * config/arm/arm1020e.md: Update with new attributes.
16668 * config/arm/cortex-a15-neon.md: Update with new attributes.
16669 * config/arm/cortex-a5.md: Update with new attributes.
16670 * config/arm/cortex-a53.md: Update with new attributes.
16671 * config/arm/cortex-a7.md: Update with new attributes.
16672 * config/arm/cortex-a8-neon.md: Update with new attributes.
16673 * config/arm/cortex-a9.md: Update with new attributes.
16674 * config/arm/cortex-m4-fpu.md: Update with new attributes.
16675 * config/arm/cortex-r4f.md: Update with new attributes.
16676 * config/arm/marvell-pj4.md: Update with new attributes.
16677 * config/arm/vfp11.md: Update with new attributes.
16679 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16681 * config/aarch64/aarch64.md
16682 (*madd<mode>): Fix type attribute.
16683 (*maddsi_uxtw): Likewise.
16684 (*msub<mode>): Likewise.
16685 (*msubsi_uxtw): Likewise.
16686 (<su_optab>maddsidi4): Likewise.
16687 (<su_optab>msubsidi4): Likewise.
16689 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16691 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
16692 * config/arm/arm.md (core_cycles): Remove fdiv.
16693 * config/arm/vfp.md:
16694 (*sqrtsf2_vfp): Update for attribute changes.
16695 (*sqrtdf2_vfp): Likewise.
16696 * config/aarch64/aarch64.md:
16697 (sqrt<mode>2): Update for attribute changes.
16698 * config/arm/arm1020e.md: Update with new attributes.
16699 * config/arm/cortex-a15-neon.md: Update with new attributes.
16700 * config/arm/cortex-a5.md: Update with new attributes.
16701 * config/arm/cortex-a53.md: Update with new attributes.
16702 * config/arm/cortex-a7.md: Update with new attributes.
16703 * config/arm/cortex-a8-neon.md: Update with new attributes.
16704 * config/arm/cortex-a9.md: Update with new attributes.
16705 * config/arm/cortex-m4-fpu.md: Update with new attributes.
16706 * config/arm/cortex-r4f.md: Update with new attributes.
16707 * config/arm/marvell-pj4.md: Update with new attributes.
16708 * config/arm/vfp11.md: Update with new attributes.
16710 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16712 * config/arm/types.md
16713 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
16714 * config/aarch64/aarch64.md
16715 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
16717 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
16718 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
16719 (float<GPI:mode><GPF:mode>2): Likewise.
16720 * config/arm/vfp.md
16721 (*truncsisf2_vfp): Update with new attributes.
16722 (*truncsidf2_vfp): Likewise.
16723 (fixuns_truncsfsi2): Likewise.
16724 (fixuns_truncdfsi2): Likewise.
16725 (*floatsisf2_vfp): Likewise.
16726 (*floatsidf2_vfp): Likewise.
16727 (floatunssisf2): Likewise.
16728 (floatunssidf2): Likewise.
16729 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
16730 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
16731 * config/arm/arm1020e.md: Update with new attributes.
16732 * config/arm/cortex-a15-neon.md: Update with new attributes.
16733 * config/arm/cortex-a5.md: Update with new attributes.
16734 * config/arm/cortex-a53.md: Update with new attributes.
16735 * config/arm/cortex-a7.md: Update with new attributes.
16736 * config/arm/cortex-a8-neon.md: Update with new attributes.
16737 * config/arm/cortex-a9.md: Update with new attributes.
16738 * config/arm/cortex-m4-fpu.md: Update with new attributes.
16739 * config/arm/cortex-r4f.md: Update with new attributes.
16740 * config/arm/marvell-pj4.md: Update with new attributes.
16741 * config/arm/vfp11.md: Update with new attributes.
16743 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16745 * config/aarch64/arm_neon.h
16746 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
16747 (vqtbx<1,2,3,4><q>_s8): Likewise.
16749 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16751 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
16752 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
16753 (add<mode>3): Add type attribute.
16754 (add<mode>3): Likewise.
16755 (usadd<mode>3): Likewise.
16756 (ssadd<mode>3): Likewise.
16757 (sub<mode>3): Likewise.
16758 (sub<mode>3): Likewise.
16759 (ussub<mode>3): Likewise.
16760 (sssub<mode>3): Likewise.
16761 (ssmulsa3): Likewise.
16762 (usmulusa3): Likewise.
16763 (arm_usatsihi): Likewise.
16764 * config/arm/vfp.md
16765 (*movdi_vfp): Add types for all instructions.
16766 (*movdi_vfp_cortexa8): Likewise.
16767 (*movhf_vfp_neon): Likewise.
16768 (*movhf_vfp): Likewise.
16769 (*movdf_vfp): Likewise.
16770 (*thumb2_movdf_vfp): Likewise.
16771 (*thumb2_movdfcc_vfp): Likewise.
16772 * config/arm/arm.md: Add type attribute to all insn patterns.
16773 (*thumb1_adddi3): Add type attribute.
16774 (*arm_adddi3): Likewise.
16775 (*adddi_sesidi_di): Likewise.
16776 (*adddi_zesidi_di): Likewise.
16777 (*thumb1_addsi3): Likewise.
16778 (addsi3_compare0): Likewise.
16779 (*addsi3_compare0_scratch): Likewise.
16780 (*compare_negsi_si): Likewise.
16781 (cmpsi2_addneg): Likewise.
16782 (*addsi3_carryin_<optab>): Likewise.
16783 (*addsi3_carryin_alt2_<optab>): Likewise.
16784 (*addsi3_carryin_clobercc_<optab>): Likewise.
16785 (*subsi3_carryin): Likewise.
16786 (*subsi3_carryin_const): Likewise.
16787 (*subsi3_carryin_compare): Likewise.
16788 (*subsi3_carryin_compare_const): Likewise.
16789 (*arm_subdi3): Likewise.
16790 (*thumb_subdi3): Likewise.
16791 (*subdi_di_zesidi): Likewise.
16792 (*subdi_di_sesidi): Likewise.
16793 (*subdi_zesidi_di): Likewise.
16794 (*subdi_sesidi_di): Likewise.
16795 (*subdi_zesidi_ze): Likewise.
16796 (thumb1_subsi3_insn): Likewise.
16797 (*arm_subsi3_insn): Likewise.
16798 (*anddi3_insn): Likewise.
16799 (*anddi_zesidi_di): Likewise.
16800 (*anddi_sesdi_di): Likewise.
16801 (*ne_zeroextracts): Likewise.
16802 (*ne_zeroextracts): Likewise.
16803 (*ite_ne_zeroextr): Likewise.
16804 (*ite_ne_zeroextr): Likewise.
16805 (*anddi_notdi_di): Likewise.
16806 (*anddi_notzesidi): Likewise.
16807 (*anddi_notsesidi): Likewise.
16808 (andsi_notsi_si): Likewise.
16809 (thumb1_bicsi3): Likewise.
16810 (*iordi3_insn): Likewise.
16811 (*iordi_zesidi_di): Likewise.
16812 (*iordi_sesidi_di): Likewise.
16813 (*thumb1_iorsi3_insn): Likewise.
16814 (*xordi3_insn): Likewise.
16815 (*xordi_zesidi_di): Likewise.
16816 (*xordi_sesidi_di): Likewise.
16817 (*arm_xorsi3): Likewise.
16818 (*andsi_iorsi3_no): Likewise.
16819 (*smax_0): Likewise.
16820 (*smax_m1): Likewise.
16821 (*arm_smax_insn): Likewise.
16822 (*smin_0): Likewise.
16823 (*arm_smin_insn): Likewise.
16824 (*arm_umaxsi3): Likewise.
16825 (*arm_uminsi3): Likewise.
16826 (*minmax_arithsi): Likewise.
16827 (*minmax_arithsi_): Likewise.
16828 (*satsi_<SAT:code>): Likewise.
16829 (arm_ashldi3_1bit): Likewise.
16830 (arm_ashrdi3_1bit): Likewise.
16831 (arm_lshrdi3_1bit): Likewise.
16832 (*arm_negdi2): Likewise.
16833 (*thumb1_negdi2): Likewise.
16834 (*arm_negsi2): Likewise.
16835 (*thumb1_negsi2): Likewise.
16836 (*negdi_extendsid): Likewise.
16837 (*negdi_zero_extend): Likewise.
16838 (*arm_abssi2): Likewise.
16839 (*thumb1_abssi2): Likewise.
16840 (*arm_neg_abssi2): Likewise.
16841 (*thumb1_neg_abss): Likewise.
16842 (one_cmpldi2): Likewise.
16843 (extend<mode>di2): Likewise.
16844 (*compareqi_eq0): Likewise.
16845 (*arm_extendhisi2addsi): Likewise.
16846 (*arm_movdi): Likewise.
16847 (*thumb1_movdi_insn): Likewise.
16848 (*arm_movt): Likewise.
16849 (*thumb1_movsi_insn): Likewise.
16850 (pic_add_dot_plus_four): Likewise.
16851 (pic_add_dot_plus_eight): Likewise.
16852 (tls_load_dot_plus_eight): Likewise.
16853 (*thumb1_movhi_insn): Likewise.
16854 (*thumb1_movsf_insn): Likewise.
16855 (*movdf_soft_insn): Likewise.
16856 (*thumb_movdf_insn): Likewise.
16857 (cbranchsi4_insn): Likewise.
16858 (cbranchsi4_scratch): Likewise.
16859 (*negated_cbranchsi4): Likewise.
16860 (*tbit_cbranch): Likewise.
16861 (*tlobits_cbranch): Likewise.
16862 (*tstsi3_cbranch): Likewise.
16863 (*cbranchne_decr1): Likewise.
16864 (*addsi3_cbranch): Likewise.
16865 (*addsi3_cbranch_scratch): Likewise.
16866 (*arm_cmpdi_insn): Likewise.
16867 (*arm_cmpdi_unsig): Likewise.
16868 (*arm_cmpdi_zero): Likewise.
16869 (*thumb_cmpdi_zero): Likewise.
16870 (*deleted_compare): Likewise.
16871 (*mov_scc): Likewise.
16872 (*mov_negscc): Likewise.
16873 (*mov_notscc): Likewise.
16874 (*cstoresi_eq0_thumb1_insn): Likewise.
16875 (cstoresi_nltu_thumb1): Likewise.
16876 (cstoresi_ltu_thu): Likewise.
16877 (thumb1_addsi3_addgeu): Likewise.
16878 (*arm_jump): Likewise.
16879 (*thumb_jump): Likewise.
16880 (*check_arch2): Likewise.
16881 (arm_casesi_internal): Likewise.
16882 (thumb1_casesi_dispatch): Likewise.
16883 (*arm_indirect_jump): Likewise.
16884 (*thumb1_indirect_jump): Likewise.
16886 (*and_scc): Likewise.
16887 (*ior_scc): Likewise.
16888 (*compare_scc): Likewise.
16889 (*cond_move): Likewise.
16890 (*cond_arith): Likewise.
16891 (*cond_sub): Likewise.
16892 (*cmp_ite0): Likewise.
16893 (*cmp_ite1): Likewise.
16894 (*cmp_and): Likewise.
16895 (*cmp_ior): Likewise.
16896 (*ior_scc_scc): Likewise.
16897 (*ior_scc_scc_cmp): Likewise.
16898 (*and_scc_scc): Likewise.
16899 (*and_scc_scc_cmp): Likewise.
16900 (*and_scc_scc_nod): Likewise.
16901 (*negscc): Likewise.
16902 (movcond_addsi): Likewise.
16903 (movcond): Likewise.
16904 (*ifcompare_plus_move): Likewise.
16905 (*if_plus_move): Likewise.
16906 (*ifcompare_move_plus): Likewise.
16907 (*if_move_plus): Likewise.
16908 (*ifcompare_arith_arith): Likewise.
16909 (*if_arith_arith): Likewise.
16910 (*ifcompare_arith_move): Likewise.
16911 (*if_arith_move): Likewise.
16912 (*ifcompare_move_arith): Likewise.
16913 (*if_move_arith): Likewise.
16914 (*ifcompare_move_not): Likewise.
16915 (*if_move_not): Likewise.
16916 (*ifcompare_not_move): Likewise.
16917 (*if_not_move): Likewise.
16918 (*ifcompare_shift_move): Likewise.
16919 (*if_shift_move): Likewise.
16920 (*ifcompare_move_shift): Likewise.
16921 (*if_move_shift): Likewise.
16922 (*ifcompare_shift_shift): Likewise.
16923 (*ifcompare_not_arith): Likewise.
16924 (*ifcompare_arith_not): Likewise.
16925 (*if_arith_not): Likewise.
16926 (*ifcompare_neg_move): Likewise.
16927 (*if_neg_move): Likewise.
16928 (*ifcompare_move_neg): Likewise.
16929 (*if_move_neg): Likewise.
16930 (prologue_thumb1_interwork): Likewise.
16931 (*cond_move_not): Likewise.
16932 (*sign_extract_onebit): Likewise.
16933 (*not_signextract_onebit): Likewise.
16934 (stack_tie): Likewise.
16935 (align_4): Likewise.
16936 (align_8): Likewise.
16937 (consttable_end): Likewise.
16938 (consttable_1): Likewise.
16939 (consttable_2): Likewise.
16940 (consttable_4): Likewise.
16941 (consttable_8): Likewise.
16942 (consttable_16): Likewise.
16943 (*thumb1_tablejump): Likewise.
16944 (prefetch): Likewise.
16945 (force_register_use): Likewise.
16946 (thumb_eh_return): Likewise.
16947 (load_tp_hard): Likewise.
16948 (load_tp_soft): Likewise.
16949 (tlscall): Likewise.
16950 (*arm_movtas_ze): Likewise.
16951 (*arm_rev): Likewise.
16952 (*arm_revsh): Likewise.
16953 (*arm_rev16): Likewise.
16954 * config/arm/thumb2.md
16955 (*thumb2_smaxsi3): Likewise.
16956 (*thumb2_sminsi3): Likewise.
16957 (*thumb32_umaxsi3): Likewise.
16958 (*thumb2_uminsi3): Likewise.
16959 (*thumb2_negdi2): Likewise.
16960 (*thumb2_abssi2): Likewise.
16961 (*thumb2_neg_abss): Likewise.
16962 (*thumb2_movsi_insn): Likewise.
16963 (tls_load_dot_plus_four): Likewise.
16964 (*thumb2_movhi_insn): Likewise.
16965 (*thumb2_mov_scc): Likewise.
16966 (*thumb2_mov_negs): Likewise.
16967 (*thumb2_mov_negs): Likewise.
16968 (*thumb2_mov_nots): Likewise.
16969 (*thumb2_mov_nots): Likewise.
16970 (*thumb2_movsicc_): Likewise.
16971 (*thumb2_movsfcc_soft_insn): Likewise.
16972 (*thumb2_indirect_jump): Likewise.
16973 (*thumb2_and_scc): Likewise.
16974 (*thumb2_ior_scc): Likewise.
16975 (*thumb2_ior_scc_strict_it): Likewise.
16976 (*thumb2_cond_move): Likewise.
16977 (*thumb2_cond_arith): Likewise.
16978 (*thumb2_cond_ari): Likewise.
16979 (*thumb2_cond_sub): Likewise.
16980 (*thumb2_negscc): Likewise.
16981 (*thumb2_movcond): Likewise.
16982 (thumb2_casesi_internal): Likewise.
16983 (thumb2_casesi_internal_pic): Likewise.
16984 (*thumb2_alusi3_short): Likewise.
16985 (*thumb2_mov<mode>_shortim): Likewise.
16986 (*thumb2_addsi_short): Likewise.
16987 (*thumb2_subsi_short): Likewise.
16988 (thumb2_addsi3_compare0): Likewise.
16989 (*thumb2_cbz): Likewise.
16990 (*thumb2_cbnz): Likewise.
16991 (*thumb2_one_cmplsi2_short): Likewise.
16992 (*thumb2_negsi2_short): Likewise.
16993 (*orsi_notsi_si): Likewise.
16994 * config/arm/arm1020e.md: Update with new attributes.
16995 * config/arm/arm1026ejs.md: Update with new attributes.
16996 * config/arm/arm1136jfs.md: Update with new attributes.
16997 * config/arm/arm926ejs.md: Update with new attributes.
16998 * config/arm/cortex-a15.md: Update with new attributes.
16999 * config/arm/cortex-a5.md: Update with new attributes.
17000 * config/arm/cortex-a53.md: Update with new attributes.
17001 * config/arm/cortex-a7.md: Update with new attributes.
17002 * config/arm/cortex-a8.md: Update with new attributes.
17003 * config/arm/cortex-a9.md: Update with new attributes.
17004 * config/arm/cortex-m4.md: Update with new attributes.
17005 * config/arm/cortex-r4.md: Update with new attributes.
17006 * config/arm/fa526.md: Update with new attributes.
17007 * config/arm/fa606te.md: Update with new attributes.
17008 * config/arm/fa626te.md: Update with new attributes.
17009 * config/arm/fa726te.md: Update with new attributes.
17011 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17013 * config/aarch64/aarch64-simd.md
17014 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
17015 <vwx> iterator to ensure correct register choice.
17016 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
17017 (aarch64_sqdmull_n<mode>): Likewise.
17018 (aarch64_sqdmull2_n<mode>_internal): Likewise.
17019 * config/aarch64/arm_neon.h
17020 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
17021 (vml<as><q>_n_<su>16): Likewise.
17022 (vml<as>l_high_lane<q>_<su>16): Likewise.
17023 (vml<as>l_high_n_<su>16): Likewise.
17024 (vml<as>l_lane<q>_<su>16): Likewise.
17025 (vml<as>l_n_<su>16): Likewise.
17026 (vmul<q>_lane<q>_<su>16): Likewise.
17027 (vmul<q>_n_<su>16): Likewise.
17028 (vmull_lane<q>_<su>16): Likewise.
17029 (vmull_n_<su>16): Likewise.
17030 (vmull_high_lane<q>_<su>16): Likewise.
17031 (vmull_high_n_<su>16): Likewise.
17032 (vqrdmulh<q>_n_s16): Likewise.
17034 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
17036 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
17037 have the correct lane parameter.
17039 2013-09-06 Richard Biener <rguenther@suse.de>
17041 * cfganal.c (control_dependences::~control_dependences):
17042 Properly free all of the vector.
17044 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
17047 * config/i386/i386.c (ix86_conditional_register_usage):
17048 Proper initialize extended SSE registers.
17050 2013-09-06 Jan Hubicka <jh@suse.cz>
17052 PR tree-optimization/58311
17053 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
17055 2013-09-06 Jan Hubicka <jh@suse.cz>
17057 * Makefile.in (tree-sra.o): Update dependencies.
17058 * tree-sra.c: Include ipa-utils.h
17059 (scan_function): Use recursive_call_p.
17060 (has_caller_p): New function.
17061 (cgraph_for_node_and_aliases): Count also callers of aliases.
17063 2013-09-06 Jan Hubicka <jh@suse.cz>
17065 PR middle-end/58094
17066 * cgraph.h (symtab_semantically_equivalent_p): Declare.
17067 * tree-tailcall.c: Include ipa-utils.h.
17068 (find_tail_calls): Use it.
17069 * ipa-pure-const.c (check_call): Likewise.
17070 * ipa-utils.c (recursive_call_p): New function.
17071 * ipa-utils.h (recursive_call_p): Dclare.
17072 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
17073 (symtab_semantically_equivalent_p): New function.
17074 * Makefile.in (tree-tailcall.o): Update dependencies.
17076 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
17078 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
17079 non-inlinable part.
17081 2013-09-06 Richard Biener <rguenther@suse.de>
17083 * lto-streamer.h (lto_global_var_decls): Remove.
17084 * Makefile.in (OBJS): Remove lto-symtab.o.
17085 (lto-symtab.o): Remove.
17086 (GTFILES): Remove lto-symtab.c
17087 * lto-symtab.c: Move to lto/
17089 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17091 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
17092 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
17093 (UNSPEC_FPINT_RINT): New constant definitions.
17094 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
17095 definition with 2 attributes.
17096 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
17097 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
17100 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17102 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
17103 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
17104 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
17105 attribute to "z196_alone".
17106 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
17109 2013-09-06 Richard Biener <rguenther@suse.de>
17111 * basic-block.h (class control_dependences): New.
17112 * tree-ssa-dce.c (control_dependence_map): Remove.
17114 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
17115 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
17116 find_pdom, find_control_dependence, find_all_control_dependences):
17118 (mark_control_dependent_edges_necessary,
17119 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
17120 tree_dce_done, perform_tree_ssa_dce): Adjust.
17121 * cfganal.c (set_control_dependence_map_bit,
17122 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
17123 find_all_control_dependences): Move from tree-ssa-dce.c and
17124 implement as methods of control_dependences class.
17125 (control_dependences::control_dependences): New.
17126 (control_dependences::~control_dependences): Likewise.
17127 (control_dependences::get_edges_dependent_on): Likewise.
17128 (control_dependences::get_edge): Likewise.
17130 2013-09-04 Jan Hubicka <jh@suse.cz>
17132 * tree.c (types_same_for_odr): Drop overactive check.
17133 * ipa-devirt.c (hash_type_name): Likewise.
17135 2013-09-04 Jan Hubicka <jh@suse.cz>
17137 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
17138 (analyze_functions): ... here.
17140 2013-09-04 Jan Hubicka <jh@suse.cz>
17142 PR middle-end/58201
17143 * cgraphunit.c (analyze_functions): Clear AUX fields
17144 after processing; initialize assembler name has.
17146 2013-09-05 Jeff Law <law@redhat.com>
17148 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
17149 from thread_around_empty_block. Record threading path into PATH.
17150 Recurse if threading through the initial block is successful.
17151 (thread_across_edge): Corresponding changes to slightly simplify.
17153 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
17155 * config/aarch64/aarch64.md
17156 (type): Remove frecpe, frecps, frecpx.
17157 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
17158 fix to be a TARGET_SIMD instruction.
17159 (aarch64_frecps): Remove.
17160 * config/aarch64/aarch64-simd.md
17161 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
17162 (aarch64_frecps<mode>): Handle all float/vector of float modes.
17164 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
17165 Sofiane Naci <sofiane.naci@arm.com>
17167 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
17168 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
17169 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
17170 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
17171 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
17172 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
17173 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
17174 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
17175 into "clz, "rbit". Rename "shift" to "shift_imm".
17176 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
17177 changes. Update for attribute changes all occurrences of arlo_* and
17179 * config/arm/arm-fixed.md: Update for attribute changes
17180 all occurrences of arlo_* types.
17181 * config/arm/thumb2.md: Update for attribute changes all occurrences
17183 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
17184 (cortexa7_older_only): Likewise.
17185 (cortexa7_younger): Likewise.
17186 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
17187 (1020alu_shift_op): Likewise.
17188 (1020alu_shift_reg_op): Likewise.
17189 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
17190 (alu_shift_op): Likewise.
17191 (alu_shift_reg_op): Likewise.
17192 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
17193 (11_alu_shift_op): Likewise.
17194 (11_alu_shift_reg_op): Likewise.
17195 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
17196 (9_alu_shift_reg_op): Likewise.
17197 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
17199 (cortex_a15_alu_shift): Likewise.
17200 (cortex_a15_alu_shift_reg): Likewise.
17201 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
17203 (cortex_a5_alu_shift): Likewise.
17204 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
17206 (cortex_a53_alu_shift): Likewise.
17207 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
17209 (cortex_a7_alu_reg): Likewise.
17210 (cortex_a7_alu_shift): Likewise.
17211 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
17213 (cortex_a8_alu_shift): Likewise.
17214 (cortex_a8_alu_shift_reg): Likewise.
17215 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
17216 (cortex_a9_dp_shift): Likewise.
17217 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
17219 * config/arm/cortex-r4.md
17220 (cortex_r4_alu): Update for attribute changes.
17221 (cortex_r4_mov): Likewise.
17222 (cortex_r4_alu_shift_reg): Likewise.
17223 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
17224 (526_alu_shift_op): Likewise.
17225 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
17226 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
17227 (626te_alu_shift_op): Likewise.
17228 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
17229 (726te_alu_shift_op): Likewise.
17230 (726te_alu_shift_reg_op): Likewise.
17231 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
17232 (mp626_alu_shift_op): Likewise.
17233 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
17234 (pj4_alu_conds): Likewise.
17235 (pj4_shift): Likewise.
17236 (pj4_shift_conds): Likewise.
17237 (pj4_alu_shift): Likewise.
17238 (pj4_alu_shift_conds): Likewise.
17239 * config/aarch64/aarch64.md: Update for attribute change
17240 all occurrences of arlo_* and shift* types.
17242 2013-09-05 Mike Stump <mikestump@comcast.net>
17244 * tree.h: Move documentation for tree_function_decl to tree-core.h
17245 with the declaration.
17247 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
17250 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
17251 looking for widest mode.
17253 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
17255 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
17257 2013-09-05 Richard Biener <rguenther@suse.de>
17259 PR tree-optimization/58137
17260 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
17261 Do not create vectors of pointers.
17262 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
17263 types for the components of the vector initializer.
17264 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
17265 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
17267 2013-09-05 Martin Jambor <mjambor@suse.cz>
17269 * ipa-prop.c (remove_described_reference): Accept missing references,
17270 return false if that hppens, otherwise return true.
17271 (cgraph_node_for_jfunc): New function.
17272 (try_decrement_rdesc_refcount): Likewise.
17273 (try_make_edge_direct_simple_call): Use them.
17274 (ipa_edge_removal_hook): Remove references from rdescs.
17275 (ipa_edge_duplication_hook): Clone rdescs and their references
17276 when the new edge has the same caller as the old one.
17277 * cgraph.c (cgraph_resolve_speculation): Remove speculative
17278 reference before removing any edges.
17280 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
17282 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
17284 * thumb2.md (thumb2_storewb_parisi): New pattern.
17286 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
17288 * config/aarch64/aarch64-option-extensions.def: Add
17289 AARCH64_OPT_EXTENSION of 'crc'.
17290 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
17291 (AARCH64_ISA_CRC): Ditto.
17292 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
17293 description of the CRC extension.
17295 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
17297 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
17298 * config/rs6000/linux.h: Ditto.
17299 * alpha/linux.h: Ditto.
17300 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
17301 no_c99_libc_has_function.
17302 * config/c6x/uclinux-elf.h: Ditto.
17303 * config/lm32/uclinux-elf.h: Ditto.
17304 * config/m68k/uclinux.h: Ditto.
17305 * config/moxie/uclinux.h: Ditto.
17306 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
17307 (crisv32-*-linux*, cris-*-linux*): Ditto.
17308 * config/bfin/bfin.c: Include "tm_p.h".
17310 2013-09-05 Richard Biener <rguenther@suse.de>
17312 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
17313 check for a definition without a basic-block.
17315 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
17316 Sofiane Naci <sofiane.naci@arm.com>
17318 * config/aarch64/aarch64.md
17319 (*movti_aarch64): Rename r_2_f and f_2_r.
17320 (*movsf_aarch64): Likewise.
17321 (*movdf_aarch64): Likewise.
17322 (*movtf_aarch64): Likewise.
17323 (aarch64_movdi_<mode>low): Likewise.
17324 (aarch64_movdi_<mode>high): Likewise.
17325 (aarch64_mov<mode>high_di): Likewise.
17326 (aarch64_mov<mode>low_di): Likewise.
17327 (aarch64_movtilow_tilow): Likewise.
17328 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
17329 values to config/arm/types.md
17330 (attribute "conds"): Update for attribute change.
17331 (anddi3_insn): Likewise.
17332 (iordi3_insn): Likewise.
17333 (xordi3_insn): Likewise.
17334 (one_cmpldi2): Likewise.
17335 * config/arm/types.md (type): Add Neon types.
17336 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
17337 use "type" attribute.
17338 (movmisalign<mode>_neon_store): Likewise.
17339 (movmisalign<mode>_neon_load): Likewise.
17340 (vec_set<mode>_internal): Likewise.
17341 (vec_setv2di_internal): Likewise.
17342 (vec_extract<mode>): Likewise.
17343 (vec_extractv2di): Likewise.
17344 (add<mode>3_neon): Likewise.
17345 (adddi3_neon): Likewise.
17346 (sub<mode>3_neon): Likewise.
17347 (subdi3_neon): Likewise.
17348 (mul<mode>3_neon): Likewise.
17349 (mul<mode>3add<mode>_neon): Likewise.
17350 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
17351 (fma<VCVTF:mode>4)): Likewise.
17352 (fma<VCVTF:mode>4_intrinsic): Likewise.
17353 (fmsub<VCVTF:mode>4)): Likewise.
17354 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
17355 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
17356 (ior<mode>3): Likewise.
17357 (and<mode>3): Likewise.
17358 (anddi3_neon): Likewise.
17359 (orn<mode>3_neon): Likewise.
17360 (orndi3_neon): Likewise.
17361 (bic<mode>3_neon): Likewise.
17362 (bicdi3_neon): Likewise.
17363 (xor<mode>3): Likewise.
17364 (one_cmpl<mode>2): Likewise.
17365 (abs<mode>2): Likewise.
17366 (neg<mode>2): Likewise.
17367 (umin<mode>3_neon): Likewise.
17368 (umax<mode>3_neon): Likewise.
17369 (smin<mode>3_neon): Likewise.
17370 (smax<mode>3_neon): Likewise.
17371 (vashl<mode>3): Likewise.
17372 (vashr<mode>3_imm): Likewise.
17373 (vlshr<mode>3_imm): Likewise.
17374 (ashl<mode>3_signed): Likewise.
17375 (ashl<mode>3_unsigned): Likewise.
17376 (neon_load_count): Likewise.
17377 (ashldi3_neon_noclobber): Likewise.
17378 (signed_shift_di3_neon): Likewise.
17379 (unsigned_shift_di3_neon): Likewise.
17380 (ashrdi3_neon_imm_noclobber): Likewise.
17381 (lshrdi3_neon_imm_noclobber): Likewise.
17382 (widen_ssum<mode>3): Likewise.
17383 (widen_usum<mode>3): Likewise.
17384 (quad_halves_<code>v4si): Likewise.
17385 (quad_halves_<code>v4sf): Likewise.
17386 (quad_halves_<code>v8hi): Likewise.
17387 (quad_halves_<code>v16qi): Likewise.
17388 (reduc_splus_v2di): Likewise.
17389 (neon_vpadd_internal<mode>): Likewise.
17390 (neon_vpsmin<mode>): Likewise.
17391 (neon_vpsmax<mode>): Likewise.
17392 (neon_vpumin<mode>): Likewise.
17393 (neon_vpumax<mode>): Likewise.
17394 (ss_add<mode>_neon): Likewise.
17395 (us_add<mode>_neon): Likewise.
17396 (ss_sub<mode>_neon): Likewise.
17397 (us_sub<mode>_neon): Likewise.
17398 (neon_vadd<mode>_unspec): Likewise.
17399 (neon_vaddl<mode>): Likewise.
17400 (neon_vaddw<mode>): Likewise.
17401 (neon_vhadd<mode>): Likewise.
17402 (neon_vqadd<mode>): Likewise.
17403 (neon_vaddhn<mode>): Likewise.
17404 (neon_vmul<mode>): Likewise.
17405 (neon_vmla<mode>): Likewise.
17406 (neon_vmlal<mode>): Likewise.
17407 (neon_vmls<mode>): Likewise.
17408 (neon_vmlsl<mode>): Likewise.
17409 (neon_vqdmulh<mode>): Likewise.
17410 (neon_vqdmlal<mode>): Likewise.
17411 (neon_vqdmlsl<mode>): Likewise.
17412 (neon_vmull<mode>): Likewise.
17413 (neon_vqdmull<mode>): Likewise.
17414 (neon_vsub<mode>_unspec): Likewise.
17415 (neon_vsubl<mode>): Likewise.
17416 (neon_vsubw<mode>): Likewise.
17417 (neon_vqsub<mode>): Likewise.
17418 (neon_vhsub<mode>): Likewise.
17419 (neon_vsubhn<mode>): Likewise.
17420 (neon_vceq<mode>): Likewise.
17421 (neon_vcge<mode>): Likewise.
17422 (neon_vcgeu<mode>): Likewise.
17423 (neon_vcgt<mode>): Likewise.
17424 (neon_vcgtu<mode>): Likewise.
17425 (neon_vcle<mode>): Likewise.
17426 (neon_vclt<mode>): Likewise.
17427 (neon_vcage<mode>): Likewise.
17428 (neon_vcagt<mode>): Likewise.
17429 (neon_vtst<mode>): Likewise.
17430 (neon_vabd<mode>): Likewise.
17431 (neon_vabdl<mode>): Likewise.
17432 (neon_vaba<mode>): Likewise.
17433 (neon_vabal<mode>): Likewise.
17434 (neon_vmax<mode>): Likewise.
17435 (neon_vmin<mode>): Likewise.
17436 (neon_vpaddl<mode>): Likewise.
17437 (neon_vpadal<mode>): Likewise.
17438 (neon_vpmax<mode>): Likewise.
17439 (neon_vpmin<mode>): Likewise.
17440 (neon_vrecps<mode>): Likewise.
17441 (neon_vrsqrts<mode>): Likewise.
17442 (neon_vqabs<mode>): Likewise.
17443 (neon_vqneg<mode>): Likewise.
17444 (neon_vcls<mode>): Likewise.
17445 (clz<mode>2): Likewise.
17446 (popcount<mode>2): Likewise.
17447 (neon_vrecpe): Likewise.
17448 (neon_vrsqrte): Likewise.
17449 (neon_vget_lane<mode>_sext_internal): Likewise.
17450 (neon_vget_lane<mode>_zext_internal): Likewise.
17451 (neon_vdup_n<mode>): Likewise.
17452 (neon_vdup_nv2di): Likewise.
17453 (neon_vdpu_lane<mode>_internal): Likewise.
17454 (neon_vswp<mode>): Likewise.
17455 (float<mode><V_cvtto>2): Likewise.
17456 (floatuns<mode><V_cvtto>2): Likewise.
17457 (fix_trunc<mode><V_cvtto>)2): Likewise
17458 (fixuns_trunc<mode><V_cvtto)2): Likewise.
17459 (neon_vcvt<mode>): Likewise.
17460 (neon_vcvtv4sfv4hf): Likewise.
17461 (neon_vcvtv4hfv4sf): Likewise.
17462 (neon_vcvt_n<mode>): Likewise.
17463 (neon_vmovn<mode>): Likewise.
17464 (neon_vqmovn<mode>): Likewise.
17465 (neon_vqmovun<mode>): Likewise.
17466 (neon_vmovl<mode>): Likewise.
17467 (neon_vmul_lane<mode>): Likewise.
17468 (neon_vmull_lane<mode>): Likewise.
17469 (neon_vqdmull_lane<mode>): Likewise.
17470 (neon_vqdmulh_lane<mode>): Likewise.
17471 (neon_vmla_lane<mode>): Likewise.
17472 (neon_vmlal_lane<mode>): Likewise.
17473 (neon_vqdmlal_lane<mode>): Likewise.
17474 (neon_vmls_lane<mode>): Likewise.
17475 (neon_vmlsl_lane<mode>): Likewise.
17476 (neon_vqdmlsl_lane<mode>): Likewise.
17477 (neon_vext<mode>): Likewise.
17478 (neon_vrev64<mode>): Likewise.
17479 (neon_vrev32<mode>): Likewise.
17480 (neon_vrev16<mode>): Likewise.
17481 (neon_vbsl<mode>_internal): Likewise.
17482 (neon_vshl<mode>): Likewise.
17483 (neon_vqshl<mode>): Likewise.
17484 (neon_vshr_n<mode>): Likewise.
17485 (neon_vshrn_n<mode>): Likewise.
17486 (neon_vqshrn_n<mode>): Likewise.
17487 (neon_vqshrun_n<mode>): Likewise.
17488 (neon_vshl_n<mode>): Likewise.
17489 (neon_vqshl_n<mode>): Likewise.
17490 (neon_vqshlu_n<mode>): Likewise.
17491 (neon_vshll_n<mode>): Likewise.
17492 (neon_vsra_n<mode>): Likewise.
17493 (neon_vsri_n<mode>): Likewise.
17494 (neon_vsli_n<mode>): Likewise.
17495 (neon_vtbl1v8qi): Likewise.
17496 (neon_vtbl2v8qi): Likewise.
17497 (neon_vtbl3v8qi): Likewise.
17498 (neon_vtbl4v8qi): Likewise.
17499 (neon_vtbx1v8qi): Likewise.
17500 (neon_vtbx2v8qi): Likewise.
17501 (neon_vtbx3v8qi): Likewise.
17502 (neon_vtbx4v8qi): Likewise.
17503 (neon_vtrn<mode>_internal): Likewise.
17504 (neon_vzip<mode>_internal): Likewise.
17505 (neon_vuzp<mode>_internal): Likewise.
17506 (neon_vld1<mode>): Likewise.
17507 (neon_vld1_lane<mode>): Likewise.
17508 (neon_vld1_dup<mode>): Likewise.
17509 (neon_vld1_dupv2di): Likewise.
17510 (neon_vst1<mode>): Likewise.
17511 (neon_vst1_lane<mode>): Likewise.
17512 (neon_vld2<mode>): Likewise.
17513 (neon_vld2_lane<mode>): Likewise.
17514 (neon_vld2_dup<mode>): Likewise.
17515 (neon_vst2<mode>): Likewise.
17516 (neon_vst2_lane<mode>): Likewise.
17517 (neon_vld3<mode>): Likewise.
17518 (neon_vld3qa<mode>): Likewise.
17519 (neon_vld3qb<mode>): Likewise.
17520 (neon_vld3_lane<mode>): Likewise.
17521 (neon_vld3_dup<mode>): Likewise.
17522 (neon_vst3<mode>): Likewise.
17523 (neon_vst3qa<mode>): Likewise.
17524 (neon_vst3qb<mode>): Likewise.
17525 (neon_vst3_lane<mode>): Likewise.
17526 (neon_vld4<mode>): Likewise.
17527 (neon_vld4qa<mode>): Likewise.
17528 (neon_vld4qb<mode>): Likewise.
17529 (neon_vld4_lane<mode>): Likewise.
17530 (neon_vld4_dup<mode>): Likewise.
17531 (neon_vst4<mode>): Likewise.
17532 (neon_vst4qa<mode>): Likewise.
17533 (neon_vst4qb<mode>): Likewise.
17534 (neon_vst4_lane<mode>): Likewise.
17535 (neon_vec_unpack<US>_lo_<mode>): Likewise.
17536 (neon_vec_unpack<US>_hi_<mode>): Likewise.
17537 (neon_vec_<US>mult_lo_<mode>): Likewise.
17538 (neon_vec_<US>mult_hi_<mode>): Likewise.
17539 (neon_vec_<US>shiftl_<mode>): Likewise.
17540 (neon_unpack<US>_<mode>): Likewise.
17541 (neon_vec_<US>mult_<mode>): Likewise.
17542 (vec_pack_trunc_<mode>): Likewise.
17543 (neon_vec_pack_trunk_<mode>): Likewise.
17544 (neon_vabd<mode>_2): Likewise.
17545 (neon_vabd<mode>_3): Likewise.
17546 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
17547 (thumb2_movsi_vfp): Likewise.
17548 (movdi_vfp): Likewise.
17549 (movdi_vfp_cortexa8): Likewise.
17550 (movhf_vfp_neon): Likewise.
17551 (movhf_vfp): Likewiwse.
17552 (movsf_vfp): Likewiwse.
17553 (thumb2_movsf_vfp): Likewiwse.
17554 (movdf_vfp): Likewise.
17555 (thumb2_movdf_vfp): Likewise.
17556 (movsfcc_vfp): Likewise.
17557 (thumb2_movsfcc_vfp): Likewise.
17558 (movdfcc_vfp): Likewise.
17559 (thumb2_movdfcc_vfp): Likewise.
17560 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
17561 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
17562 (v10_v2c): Likewise.
17563 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
17565 (cortex_a15_neon_int_2): Likewise.
17566 (cortex_a15_neon_int_3): Likewise.
17567 (cortex_a15_neon_int_4): Likewise.
17568 (cortex_a15_neon_int_5): Likewise.
17569 (cortex_a15_neon_vqneg_vqabs): Likewise.
17570 (cortex_a15_neon_vmov): Likewise.
17571 (cortex_a15_neon_vaba): Likewise.
17572 (cortex_a15_neon_vaba_qqq): Likewise.
17573 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17574 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17575 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
17576 scalar_64_32_long_scalar): Likewise.
17577 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17578 (cortex_a15_neon_mla_qqq_8_16): Likewise.
17579 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17580 lotype_qdd_64_32_long): Likewise.
17581 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17582 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17583 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
17584 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17585 (cortex_a15_neon_shift_1): Likewise.
17586 (cortex_a15_neon_shift_2): Likewise.
17587 (cortex_a15_neon_shift_3): Likewise.
17588 (cortex_a15_neon_vshl_ddd): Likewise.
17589 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17590 (cortex_a15_neon_vsra_vrsra): Likewise.
17591 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
17592 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
17593 (cortex_a15_neon_fp_vmul_ddd): Likewise.
17594 (cortex_a15_neon_fp_vmul_qqd): Likewise.
17595 (cortex_a15_neon_fp_vmla_ddd): Likewise.
17596 (cortex_a15_neon_fp_vmla_qqq): Likewise.
17597 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
17598 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
17599 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17600 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17601 (cortex_a15_neon_bp_simple): Likewise.
17602 (cortex_a15_neon_bp_2cycle): Likewise.
17603 (cortex_a15_neon_bp_3cycle): Likewise.
17604 (cortex_a15_neon_vld1_1_2_regs): Likewise.
17605 (cortex_a15_neon_vld1_3_4_regs): Likewise.
17606 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17607 (cortex_a15_neon_vld2_4_regs): Likewise.
17608 (cortex_a15_neon_vld3_vld4): Likewise.
17609 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17610 (cortex_a15_neon_vst1_3_4_regs): Likewise.
17611 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
17612 (cortex_a15_neon_vst3_vst4): Likewise.
17613 (cortex_a15_neon_vld1_vld2_lane): Likewise.
17614 (cortex_a15_neon_vld3_vld4_lane" 10
17615 (cortex_a15_neon_vst1_vst2_lane): Likewise.
17616 (cortex_a15_neon_vst3_vst4_lane): Likewise.
17617 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
17618 (cortex_a15_neon_ldm_2): Likewise.0
17619 (cortex_a15_neon_stm_2): Likewise.
17620 (cortex_a15_neon_mcr): Likewise.
17621 (cortex_a15_neon_mcr_2_mcrr): Likewise.
17622 (cortex_a15_neon_mrc): Likewise.
17623 (cortex_a15_neon_mrrc): Likewise.
17624 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
17626 (cortex_a15_alu_shift): Likewise.
17627 (cortex_a15_alu_shift_reg): Likewise.
17628 (cortex_a15_mult32): Likewise.
17629 (cortex_a15_mult64): Likewise.
17630 (cortex_a15_block): Likewise.
17631 (cortex_a15_branch): Likewise.
17632 (cortex_a15_load1): Likewise.
17633 (cortex_a15_load3): Likewise.
17634 (cortex_a15_store1): Likewise.
17635 (cortex_a15_store3): Likewise.
17636 (cortex_a15_call): Likewise.
17637 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
17638 (cortex_a5_f2r): Likewise.
17639 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
17641 (cortex_a53_f2r): Likewise.
17642 * config/arm/cortex-a7.md
17643 (cortex_a7_branch): Update for attribute change.
17644 (cortex_a7_call): Likewise.
17645 (cortex_a7_alu_imm): Likewise.
17646 (cortex_a7_alu_reg): Likewise.
17647 (cortex_a7_alu_shift): Likewise.
17648 (cortex_a7_mul): Likewise.
17649 (cortex_a7_load1): Likewise.
17650 (cortex_a7_store1): Likewise.
17651 (cortex_a7_load2): Likewise.
17652 (cortex_a7_store2): Likewise.
17653 (cortex_a7_load3): Likewise.
17654 (cortex_a7_store3): Likewise.
17655 (cortex_a7_load4): Likewise.
17656 (cortex_a7_store4): Likewise.
17657 (cortex_a7_fpalu): Likewise.
17658 (cortex_a7_fconst): Likewise.
17659 (cortex_a7_fpmuls): Likewise.
17660 (cortex_a7_neon_mul): Likewise.
17661 (cortex_a7_fpmacs): Likewise.
17662 (cortex_a7_neon_mla: Likewise.
17663 (cortex_a7_fpmuld: Likewise.
17664 (cortex_a7_fpmacd: Likewise.
17665 (cortex_a7_fpfmad: Likewise.
17666 (cortex_a7_fdivs: Likewise.
17667 (cortex_a7_fdivd: Likewise.
17668 (cortex_a7_r2f: Likewise.
17669 (cortex_a7_f2r: Likewise.
17670 (cortex_a7_f_flags: Likewise.
17671 (cortex_a7_f_loads: Likewise.
17672 (cortex_a7_f_loadd: Likewise.
17673 (cortex_a7_f_stores: Likewise.
17674 (cortex_a7_f_stored: Likewise.
17675 (cortex_a7_neon): Likewise.
17676 * config/arm/cortex-a8-neon.md
17677 (cortex_a8_neon_mrc): Update for attribute change.
17678 (cortex_a8_neon_mrrc): Likewise.
17679 (cortex_a8_neon_int_1): Likewise.
17680 (cortex_a8_neon_int_2): Likewise.
17681 (cortex_a8_neon_int_3): Likewise.
17682 (cortex_a8_neon_int_4): Likewise.
17683 (cortex_a8_neon_int_5): Likewise.
17684 (cortex_a8_neon_vqneg_vqabs): Likewise.
17685 (cortex_a8_neon_vmov): Likewise.
17686 (cortex_a8_neon_vaba): Likewise.
17687 (cortex_a8_neon_vaba_qqq): Likewise.
17688 (cortex_a8_neon_vsma): Likewise.
17689 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17690 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17691 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
17692 long_scalar): Likewise.
17693 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17694 (cortex_a8_neon_mla_qqq_8_16): Likewise.
17695 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17696 long_scalar_qdd_64_32_long): Likewise.
17697 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17698 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17699 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
17700 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17701 (cortex_a8_neon_shift_1): Likewise.
17702 (cortex_a8_neon_shift_2): Likewise.
17703 (cortex_a8_neon_shift_3): Likewise.
17704 (cortex_a8_neon_vshl_ddd): Likewise.
17705 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17706 (cortex_a8_neon_vsra_vrsra): Likewise.
17707 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
17708 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
17709 (cortex_a8_neon_fp_vsum): Likewise.
17710 (cortex_a8_neon_fp_vmul_ddd): Likewise.
17711 (cortex_a8_neon_fp_vmul_qqd): Likewise.
17712 (cortex_a8_neon_fp_vmla_ddd): Likewise.
17713 (cortex_a8_neon_fp_vmla_qqq): Likewise.
17714 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
17715 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
17716 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17717 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17718 (cortex_a8_neon_bp_simple): Likewise.
17719 (cortex_a8_neon_bp_2cycle): Likewise.
17720 (cortex_a8_neon_bp_3cycle): Likewise.
17721 (cortex_a8_neon_ldr): Likewise.
17722 (cortex_a8_neon_str): Likewise.
17723 (cortex_a8_neon_vld1_1_2_regs): Likewise.
17724 (cortex_a8_neon_vld1_3_4_regs): Likewise.
17725 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17726 (cortex_a8_neon_vld2_4_regs): Likewise.
17727 (cortex_a8_neon_vld3_vld4): Likewise.
17728 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17729 (cortex_a8_neon_vst1_3_4_regs): Likewise.
17730 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
17731 (cortex_a8_neon_vst3_vst4): Likewise.
17732 (cortex_a8_neon_vld1_vld2_lane): Likewise.
17733 (cortex_a8_neon_vld3_vld4_lane): Likewise.
17734 (cortex_a8_neon_vst1_vst2_lane): Likewise.
17735 (cortex_a8_neon_vst3_vst4_lane): Likewise.
17736 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
17737 (cortex_a8_neon_mcr): Likewise.
17738 (cortex_a8_neon_mcr_2_mcrr): Likewise.
17739 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
17740 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
17742 (ca9_neon_mrrc): Likewise.
17743 (cortex_a9_neon_int_1): Likewise.
17744 (cortex_a9_neon_int_2): Likewise.
17745 (cortex_a9_neon_int_3): Likewise.
17746 (cortex_a9_neon_int_4): Likewise.
17747 (cortex_a9_neon_int_5): Likewise.
17748 (cortex_a9_neon_vqneg_vqabs): Likewise.
17749 (cortex_a9_neon_vmov): Likewise.
17750 (cortex_a9_neon_vaba): Likewise.
17751 (cortex_a9_neon_vaba_qqq): Likewise.
17752 (cortex_a9_neon_vsma): Likewise.
17753 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17754 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17755 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
17756 long_scalar): Likewise.
17757 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17758 (cortex_a9_neon_mla_qqq_8_16): Likewise.
17759 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17760 long_scalar_qdd_64_32_long): Likewise.
17761 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17762 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17763 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
17764 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17765 (cortex_a9_neon_shift_1): Likewise.
17766 (cortex_a9_neon_shift_2): Likewise.
17767 (cortex_a9_neon_shift_3): Likewise.
17768 (cortex_a9_neon_vshl_ddd): Likewise.
17769 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17770 (cortex_a9_neon_vsra_vrsra): Likewise.
17771 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
17772 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
17773 (cortex_a9_neon_fp_vsum): Likewise.
17774 (cortex_a9_neon_fp_vmul_ddd): Likewise.
17775 (cortex_a9_neon_fp_vmul_qqd): Likewise.
17776 (cortex_a9_neon_fp_vmla_ddd): Likewise.
17777 (cortex_a9_neon_fp_vmla_qqq): Likewise.
17778 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
17779 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
17780 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17781 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17782 (cortex_a9_neon_bp_simple): Likewise.
17783 (cortex_a9_neon_bp_2cycle): Likewise.
17784 (cortex_a9_neon_bp_3cycle): Likewise.
17785 (cortex_a9_neon_ldr): Likewise.
17786 (cortex_a9_neon_str): Likewise.
17787 (cortex_a9_neon_vld1_1_2_regs): Likewise.
17788 (cortex_a9_neon_vld1_3_4_regs): Likewise.
17789 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17790 (cortex_a9_neon_vld2_4_regs): Likewise.
17791 (cortex_a9_neon_vld3_vld4): Likewise.
17792 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17793 (cortex_a9_neon_vst1_3_4_regs): Likewise.
17794 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
17795 (cortex_a9_neon_vst3_vst4): Likewise.
17796 (cortex_a9_neon_vld1_vld2_lane): Likewise.
17797 (cortex_a9_neon_vld3_vld4_lane): Likewise.
17798 (cortex_a9_neon_vst1_vst2_lane): Likewise.
17799 (cortex_a9_neon_vst3_vst4_lane): Likewise.
17800 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
17801 (cortex_a9_neon_mcr): Likewise.
17802 (cortex_a9_neon_mcr_2_mcrr): Likewise.
17803 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
17804 (cortex_a9_fps): Likewise.
17805 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
17807 (cortex_m4_fmuls): Likewise.
17808 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
17810 (cortex_r4_mrc): Likewise.
17811 * config/arm/iterators.md: Update comment referring to neon_type.
17812 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
17813 (iwmmxt_movsi_insn): Likewise.
17814 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
17816 (pj4_core_to_vfp): Likewise.
17817 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
17819 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
17820 (vfp_fstore): Likewise.
17821 * doc/md.texi: Change references to neon_type to refer to type.
17823 2013-09-04 Dodji Seketeli <dodji@redhat.com>
17825 * tree.h (DECL_BUILT_IN): Fix typo in comment.
17827 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
17829 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
17830 lglobl if not weak.
17832 2013-09-04 Easwaran Raman <eraman@google.com>
17834 PR middle-end/57370
17835 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
17836 (build_and_add_sum): Use it.
17837 (appears_later_in_bb): Simplify code.
17839 2013-09-04 Teresa Johnson <tejohnson@google.com>
17841 * dumpfile.c (dump_finish): Don't close stderr/stdout.
17843 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
17845 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
17847 2013-09-04 Jan Hubicka <jh@suse.cz>
17849 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
17850 * ipa-devirt.c: Include diganostic.h
17851 (odr_type_d): Add types and types_set.
17852 (hash_type_name): Work for types with vtables during LTO.
17853 (odr_hasher::remove): Fix comment; destroy types_set.
17854 (add_type_duplicate): New function,
17855 (get_odr_type): Use it.
17856 (dump_type_inheritance_graph): Dump type duplicates.
17857 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
17859 * tree.c (types_same_for_odr): Give exact answers on types with
17862 2013-09-04 Dodji Seketeli <dodji@redhat.com>
17864 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
17865 explaining their differences.
17867 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
17869 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
17871 2013-09-03 Jeff Law <law@redhat.com>
17873 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
17874 when not threading through a joiner block. Pass joiner/no joiner
17875 state to register_jump_thread.
17876 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
17877 state from argument rather than implying on path length.
17878 Dump the entire jump thread path into debugging dump.
17879 * tree-flow.h (register_jump_thread): Update prototype.
17881 2013-08-29 Xinliang David Li <davidxl@google.com>
17883 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17884 Remove a trivial gcc_assert.
17886 2013-08-29 Xinliang David Li <davidxl@google.com>
17888 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
17889 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
17890 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17891 Delay base decl alignment adjustment.
17892 * tree-vectorizer.c (vect_destroy_datarefs): New function.
17893 * tree-vectorizer.h: New data structure.
17894 (set_dr_misalignment): New function.
17895 (dr_misalignment): Ditto.
17896 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
17897 (vectorizable_load): Ditto.
17898 (ensure_base_align): New function.
17899 (vectorize_loops): Add dbg_cnt support.
17900 (execute_vect_slp): Ditto.
17901 * dbgcnt.def: New debug counter.
17902 * Makefile: New dependency.
17904 2013-09-03 Meador Inge <meadori@codesourcery.com>
17908 2013-08-30 Meador Inge <meadori@codesourcery.com>
17910 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17912 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
17914 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
17915 function descriptor.
17917 2013-09-03 Richard Biener <rguenther@suse.de>
17919 * tree-affine.c (add_elt_to_tree): Fix association issue,
17920 avoid useless converts and make sure to always return a
17921 properly typed result.
17923 2013-09-03 Richard Biener <rguenther@suse.de>
17925 PR middle-end/57656
17926 * fold-const.c (negate_expr_p): Fix division case.
17927 (negate_expr): Likewise.
17929 2013-09-03 Richard Biener <rguenther@suse.de>
17932 * tree-streamer-out.c: Include tm.h.
17933 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
17935 2013-09-03 Jan Hubicka <jh@suse.cz>
17937 * tree-profile.c (tree_profiling): Cleanup CFG when done.
17939 2013-09-03 Alan Modra <amodra@gmail.com>
17941 * config.gcc (powerpc*-*-linux*): Add support for little-endian
17942 multilibs to big-endian target and vice versa.
17943 * config/rs6000/t-linux64: Use := assignment on all vars.
17944 (MULTILIB_EXTRA_OPTS): Remove fPIC.
17945 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
17946 * config/rs6000/t-linux64le: New file.
17947 * config/rs6000/t-linux64bele: New file.
17948 * config/rs6000/t-linux64lebe: New file.
17950 2013-09-02 Jan Hubicka <jh@suse.cz>
17952 * ipa-inline-transform.c (inline_transform): Do not
17953 optimize_inline_calls when not optimizing.
17955 2013-09-02 Jan Hubicka <jh@suse.cz>
17957 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
17958 duplicated nodes for assembler names.
17959 * symtab.c (symtab_unregister_node): Do not attempt to unlink
17960 hard registers from assembler name hash.
17962 2013-09-02 Jan Hubicka <jh@suse.cz>
17964 * ipa-split.c (execute_split_functions): Split externally visible
17965 functions called once.
17967 2013-09-02 Martin Jambor <mjambor@suse.cz>
17970 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
17971 linked list. When finding the correct duplicate, also consider also
17972 the caller in additon to its inlined_to node.
17974 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
17976 * config/aarch64/aarch64-simd-builtins.def
17977 (dup_lane_scalar): Remove.
17978 * config/aarch64/aarch64-simd.md
17979 (aarch64_simd_dup): Add 'w->w' alternative.
17980 (aarch64_dup_lane<mode>): Allow for VALL.
17981 (aarch64_dup_lane_scalar<mode>): Remove.
17982 (aarch64_dup_lane_<vswap_width_name><mode>): New.
17983 (aarch64_get_lane_signed<mode>): Add w->w altenative.
17984 (aarch64_get_lane_unsigned<mode>): Likewise.
17985 (aarch64_get_lane<mode>): Likewise.
17986 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
17987 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
17988 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
17989 (VCON): Change container of V2SF.
17990 (vswap_width_name): Likewise.
17991 * config/aarch64/arm_neon.h
17992 (__aarch64_vdup_lane_any): New.
17993 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17994 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
17995 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17997 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
17999 PR middle-end/56382
18000 * expr.c (emit_move_complex): Do not move complex FP values as parts if
18001 the source or the destination is a single hard register.
18003 2013-09-02 Richard Biener <rguenther@suse.de>
18005 PR middle-end/57511
18006 * tree-scalar-evolution.c (instantiate_scev_name): Allow
18009 2013-09-02 Richard Biener <rguenther@suse.de>
18011 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
18012 arithmetic to sizetype.
18014 2013-09-02 Bin Cheng <bin.cheng@arm.com>
18016 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
18017 Find auto-increment use both before and after candidate.
18019 2013-09-02 Marek Polacek <polacek@redhat.com>
18021 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
18023 2013-09-01 Jan Hubicka <jh@suse.cz>
18025 * Makefile.in: Add ipa-profile.o
18026 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
18027 * cgraph.c (struct cgraph_propagate_frequency_data,
18028 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
18029 ipa-profile.c; replace cgraph_ by ipa_ prefix.
18030 * cgraph.h (cgraph_propagate_frequency): Remove.
18031 * ipa-inline-analysis.c: Include ipa-utils.h;
18032 drop duplicated cfgloop.h.
18033 (inline_update_callee_summaries): Update.
18034 * ipa-profile.c: New file.
18035 * ipa-utils.h (ipa_propagate_frequency): Declare.
18036 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
18037 data-streamer.h, value-prof.h.
18038 (symtab_remove_unreachable_nodes): Update profile.
18039 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
18040 account_time_size, cmp_counts, dump_histogram,
18041 ipa_profile_generate_summary, ipa_profile_write_summary,
18042 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
18043 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
18044 Move to ipa-profile.c.
18046 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
18048 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
18050 2013-09-01 Jan Hubicka <jh@suse.cz>
18052 * common.opt (fdevirtualize-speculatively): New function.
18053 * invoke.texi (fdevirtualize-speculatively): Document.
18054 * ipa-devirt.c: Include ipa-inline.h
18055 (likely_target_p): New function.
18056 (ipa_devirt): New function.
18057 (gate_ipa_devirt): New function.
18058 (pass_data_ipa_devirt): New static var.
18059 (pass_ipa_devirt): Likewise.
18060 (make_pass_ipa_devirt): New function.
18061 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
18062 (common_handle_option): Disable devirtualization when
18063 value range profiling is available.
18064 * passes.def (pass_ipa_devirt): Add.
18065 * timever.def (TV_IPA_DEVIRT): New timevar.
18066 * tree-pass.h (make_pass_ipa_devirt):
18068 2013-09-01 Iain Sandoe <iain@codesourcery.com>
18070 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
18071 include sanitize(undefined).
18073 2013-08-31 Diego Novillo <dnovillo@google.com>
18075 * Makefile.in (TREE_CORE_H): Define.
18077 (GTFILES): Add tree-core.h.
18078 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
18080 * tree-core.h: New file.
18081 Move all data structures, enum, typedefs, global
18082 declarations and constants from ...
18083 * tree.h: ... here.
18085 2013-08-31 Jan Hubicka <jh@suse.cz>
18087 * bulitins.c (expand_builtin): Do not early exit for gcov
18088 instrumented functions.
18090 2013-08-31 Marek Polacek <polacek@redhat.com>
18092 * ubsan.c: Include tm_p.h.
18094 2013-08-31 Jan Hubicka <jh@suse.cz>
18096 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
18099 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
18100 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
18101 * tree-cfg.c (verify_gimple_label): ... here.
18102 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
18103 (ipa_merge_profiles): New function.
18104 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
18105 (lto_input_function_body): Likewise.
18106 * ipa-utils.h (ipa_merge_profiles): Declare.
18107 * lto-streamer.h (lto_input_function_body): Update prototype.
18108 (emit_label_in_global_context_p): Remove.
18109 * lto-symtab.c: Include ipa-utils.h
18110 (lto_cgraph_replace_node): Use ipa_merge_profiles.
18112 2013-08-31 Jan Hubicka <jh@suse.cz>
18114 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
18116 2013-08-31 Jan Hubicka <jh@suse.cz>
18118 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
18120 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
18122 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
18123 "cmp" RTX before signed_comparison_operator check to account
18124 for "code" changes.
18126 2013-08-30 Jan Hubicka <jh@suse.cz>
18128 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
18129 (detect_type_change_1): Rename to ...
18130 (detect_type_change): ... this one; early return on non-polymorphic
18132 (detect_type_change_ssa): Add comp_type parameter; update
18133 use of detect_type_change.
18134 (compute_complex_assign_jump_func): Add param_type parameter;
18135 update use of detect_type_change_ssa.
18136 (compute_complex_ancestor_jump_func): Likewise.
18137 (ipa_get_callee_param_type): New function.
18138 (ipa_compute_jump_functions_for_edge): Compute parameter type;
18139 update calls to the jump function computation functions.
18141 2013-08-30 Teresa Johnson <tejohnson@google.com>
18142 Steven Bosscher <steven@gcc.gnu.org>
18144 * cfgrtl.c (fixup_new_cold_bb): New routine.
18145 (commit_edge_insertions): Invoke fixup_partitions.
18146 (find_partition_fixes): New routine.
18147 (fixup_partitions): Ditto.
18148 (verify_hot_cold_block_grouping): Update comments.
18149 (rtl_verify_edges): Invoke find_partition_fixes.
18150 (rtl_verify_bb_pointers): Update comments.
18151 (rtl_verify_bb_layout): Ditto.
18152 * basic-block.h (probably_never_executed_edge_p): Declare.
18153 (fixup_partitions): Ditto.
18154 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
18155 * bb-reorder.c (sanitize_hot_paths): New function.
18156 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
18157 sanitize_hot_paths.
18158 * predict.c (probably_never_executed_edge_p): New routine.
18159 * cfg.c (check_bb_profile): Add partition insanity warnings.
18161 2013-08-30 Meador Inge <meadori@codesourcery.com>
18163 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
18165 2013-08-30 Marek Polacek <polacek@redhat.com>
18167 * Makefile.in (ubsan.o): Add.
18168 (c-family/c-ubsan.o): Add.
18169 (builtins.o): Add ubsan.h dependency.
18170 * ubsan.h: New file.
18171 * ubsan.c: New file.
18172 * common.opt: Add -fsanitize=undefined option.
18173 (flag_sanitize): Add variable.
18174 (fsanitize=): Add option. Add Driver.
18175 (fsanitize=thread): Remove option.
18176 (fsanitize=address): Likewise.
18177 (static-libubsan): New option.
18178 * doc/invoke.texi: Document the new flag and -static-libubsan.
18179 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
18180 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
18181 * builtin-attrs.def (ATTR_COLD): Define.
18182 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
18183 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
18184 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
18185 * flag-types.h (sanitize_code): New enum.
18186 * opts.c (common_handle_option): Parse command line arguments
18187 of -fsanitize=. Add -fsanitize=unreachable option.
18188 * varasm.c (get_variable_section): Adjust.
18189 (assemble_noswitch_variable): Likewise.
18190 (assemble_variable): Likewise.
18191 (output_constant_def_contents): Likewise.
18192 (categorize_decl_for_section): Likewise.
18193 (place_block_symbol): Likewise.
18194 (output_object_block): Likewise.
18195 * builtins.def: Likewise.
18196 * toplev.c (compile_file): Likewise.
18197 (process_options): Likewise.
18198 * cppbuiltin.c: Likewise.
18199 * tsan.c (tsan_pass): Likewise.
18200 (tsan_gate): Likewise.
18201 (tsan_gate_O0): Likewise.
18202 * cfgexpand.c (partition_stack_vars): Likewise.
18203 (expand_stack_vars): Likewise.
18204 (defer_stack_allocation): Likewise.
18205 (expand_used_vars): Likewise.
18206 * cfgcleanup.c (old_insns_match_p): Likewise.
18207 * asan.c (asan_finish_file): Likewise.
18208 (asan_instrument): Likewise.
18209 (gate_asan): Likewise.
18210 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
18211 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
18212 (asan_global_struct): Use pointer_sized_int_node instead
18213 calling build_nonstandard_integer_type.
18214 (initialize_sanitizer_builtins): Likewise.
18215 (asan_finish_file): Likewise.
18216 * gcc.c: Document %{%:function(args):X}.
18217 (static_spec_functions): Add sanitize.
18218 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
18219 store funcval != NULL there.
18220 (do_spec_1): Adjust handle_spec_function caller.
18221 (handle_braces): Allow %:function(args) as condition.
18222 (sanitize_spec_function): New function.
18223 (ADD_STATIC_LIBUBSAN_LIBS): Define.
18224 (LIBUBSAN_SPEC): Likewise.
18225 (LIBUBSAN_EARLY_SPEC): Likewise.
18226 (SANITIZER_SPEC): Handle libubsan.
18227 (SANITIZER_EARLY_SPEC): Likewise.
18228 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
18229 instead of fsanitize=address.
18230 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
18231 instead of fsanitize=address*.
18232 * builtins.c: Include ubsan.h.
18233 (fold_builtin_0): Instrument __builtin_unreachable.
18234 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
18235 instead of flag_asan.
18236 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
18237 (pointer_sized_int_node): Define.
18238 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
18240 2013-08-30 Mike Stump <mikestump@comcast.net>
18242 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
18245 2013-08-29 Jan Hubicka <jh@suse.cz>
18247 * cgraph.c (cgraph_function_body_availability): Handle weakref
18249 * passes.def: Remove pass_fixup_cfg.
18250 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
18251 track when we need to remove functions.
18252 (gate_ipa_inline): Execute inlining always; add comment why.
18253 (pass_data_ipa_inline): Remove TODO_remove_functions.
18254 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
18255 do not produce summaries.
18256 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
18257 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
18258 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
18259 constant pool and vtable.
18261 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
18263 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
18264 New arm_neon.h's internal macros to specify 64-bit constants.
18265 Avoid using stdint.h's macros.
18267 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
18269 * recog.c (verify_changes): Verify that changes[i].old is non-zero
18270 before applying REG_P.
18272 2013-08-30 Jakub Jelinek <jakub@redhat.com>
18274 PR tree-optimization/58277
18275 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
18276 after seeing too many stmts with vdef in between dombb and current
18277 bb, invalidate everything.
18279 2013-08-30 Richard Biener <rguenther@suse.de>
18281 * fold-const.c (fold_single_bit_test): Fix overflow test.
18283 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
18285 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
18286 and which can live in a register, always retrieve the value on entry.
18287 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
18288 passed by invisible reference specially.
18289 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
18290 (vt_add_function_parameter): Correctly deal with a parameter passed by
18291 invisible reference.
18293 2013-08-30 Jan Hubicka <jh@suse.cz>
18295 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
18297 2013-08-30 Richard Biener <rguenther@suse.de>
18299 PR tree-optimization/58228
18300 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
18301 allow invariant loads in nested loop vectorization.
18303 2013-08-30 Richard Biener <rguenther@suse.de>
18305 PR tree-optimization/58223
18306 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
18307 (has_anti_or_output_dependence): ... this and adjust to also
18308 look for output dependences.
18309 (mark_nodes_having_upstream_mem_writes): Adjust.
18310 (rdg_flag_uses): Likewise.
18312 2013-08-30 Richard Biener <rguenther@suse.de>
18314 PR tree-optimization/58010
18315 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
18316 assert that we have a loop-closed PHI.
18318 2013-08-29 Jan Hubicka <jh@suse.cz>
18320 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
18321 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
18322 * lto-section-in.c (lto_free_function_in_decl_state): New function.
18323 (lto_free_function_in_decl_state_for_node): New function.
18325 2013-08-29 Xinliang David Li <davidxl@google.com>
18327 * loop-unroll.c (report_unroll_peel): Minor message change.
18328 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
18329 Emit alignment peeling message with default -fopt-info.
18330 (vect_loop_versioning): Emit loop version info message.
18331 * tree-vectorizer.c (vectorize_loops): Minor message change.
18332 (execute_vect_slp): Ditto.
18334 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
18336 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
18337 of the clone from the DECL_NAME of the original function.
18339 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
18341 * passes.c (register_pass): Add overload.
18342 * tree-pass.h (register_pass): Forward declare it. Add comment.
18344 2013-08-29 Jan Hubicka <jh@suse.cz>
18346 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
18347 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
18348 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
18349 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
18350 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
18351 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
18352 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
18353 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
18355 2013-08-29 Teresa Johnson <tejohnson@google.com>
18357 * dumpfile.c (dump_loc): Output column number.
18358 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
18359 * doc/invoke.texi: Document optall -fopt-info flag.
18360 * profile.c (read_profile_edge_counts): Use new dump framework.
18361 (compute_branch_probabilities): Ditto.
18362 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
18363 when pass not in any opt group.
18364 * pass_manager.h (pass_manager::get_pass_profile): New method.
18365 * value-prof.c (check_counter): Use new dump framework.
18366 (check_ic_target): Ditto.
18367 * coverage.c (get_coverage_counts): Ditto.
18368 (coverage_init): Setup new dump framework.
18370 2013-08-29 Richard Biener <rguenther@suse.de>
18372 PR tree-optimization/58246
18373 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
18374 handle the dominance check inside a basic-block.
18376 2013-08-29 Richard Biener <rguenther@suse.de>
18378 PR middle-end/57287
18379 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
18380 of default defs that appear in abnormal PHI nodes.
18382 2013-08-29 Richard Biener <rguenther@suse.de>
18384 PR tree-optimization/57685
18385 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
18386 single-use operands to avoid exponential complexity.
18388 2013-08-28 Dehao Chen <dehao@google.com>
18390 * ipa-inline.c (edge_badness): Fix integer underflow.
18392 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
18394 * gtm-builtins.def (_ITM_free): Declare leaf.
18396 2013-08-28 Jakub Jelinek <jakub@redhat.com>
18399 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
18400 (*tls_local_dynamic_base_64_largepic): Likewise.
18401 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
18402 Remove predicate from call operand.
18403 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
18404 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
18406 2013-08-28 Jeff Law <law@redhat.com>
18408 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
18409 checks for the number of predecessors and successors allowed.
18410 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
18411 which require copying a joiner block if there is a request which
18412 is a subpath that requires no joiner block copying.
18414 2013-08-28 Jan Hubicka <jh@suse.cz>
18416 * lto-streamer-out.c (DFS_write_tree_body): Drop
18417 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
18418 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
18419 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
18420 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
18421 Do not read DECL_ERROR_ISSUED.
18422 (unpack_ts_decl_with_vis_value_fields): Do not read
18424 (lto_input_ts_binfo_tree_pointers): Do not read
18425 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
18426 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
18427 write DECL_ERROR_ISSUED..
18428 (pack_ts_decl_with_vis_value_fields): Do not write
18430 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
18431 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
18432 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
18433 * tree.h (tree_decl_common): Update comment.
18434 (DECL_ERROR_ISSUED): Remove.
18436 2013-08-28 Jakub Jelinek <jakub@redhat.com>
18438 PR middle-end/58257
18439 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
18441 2013-08-28 Jan Hubicka <jh@suse.cz>
18443 * builtins.def (free): Declare leaf.
18445 2013-08-27 David Malcolm <dmalcolm@redhat.com>
18447 * gdbhooks.py: New.
18448 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
18449 * configure: Regenerate.
18451 2013-08-27 Martin Jambor <mjambor@suse.cz>
18453 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
18454 (ipa_ancestor_jf_data): Likewise.
18455 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
18456 (ipa_get_jf_pass_through_type_preserved): New function.
18457 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
18458 (ipa_get_jf_ancestor_type_preserved): New function.
18459 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
18460 (ipa_get_jf_ancestor_result): Likewise.
18461 (propagate_vals_accross_pass_through): Use
18462 ipa_get_jf_pass_through_result to do all the value mappings.
18463 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
18464 type_preserved flag.
18465 (ipa_set_jf_cst_copy): New function.
18466 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
18467 (ipa_set_jf_arith_pass_through): Likewise.
18468 (ipa_set_ancestor_jf): Likewise.
18469 (compute_complex_assign_jump_func): Set type_preserved instead of
18471 (ipa_compute_jump_functions_for_edge): Likewise.
18472 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
18473 (update_jump_functions_after_inlining): Update type_preserved.
18474 Explicitely create jump functions when combining one with pass_through.
18475 (ipa_write_jump_function): Stream the type_preserved flags.
18476 (ipa_read_jump_function): Likewise.
18478 2013-08-27 Jakub Jelinek <jakub@redhat.com>
18479 Aldy Hernandez <aldyh@redhat.com>
18481 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
18482 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
18483 * function.h (struct function): Add has_force_vect_loops and
18485 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
18486 * gimple.c (gimple_build_omp_critical): Add KIND argument and
18488 * gimple.def: Update CLAUSES comments.
18489 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
18490 (gimple_build_omp_for): Add argument to prototype.
18491 (gimple_omp_for_kind): New.
18492 (gimple_omp_for_set_kind): New.
18493 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
18494 GOVD_DATA_SHARE_CLASS.
18495 (enum omp_region_type): Add ORT_SIMD.
18496 (gimple_add_tmp_var): Handle ORT_SIMD.
18497 (gimplify_var_or_parm_decl): Same.
18498 (is_gimple_stmt): Same.
18499 (omp_firstprivatize_variable): Same.
18500 (omp_add_variable): Only use splay_tree_insert if lookup failed.
18501 (omp_notice_variable): Handle ORT_SIMD.
18502 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
18503 (omp_check_private): Handle ORT_SIMD.
18504 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
18505 OMP_CLAUSE_SAFELEN.
18506 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
18507 Handle OMP_CLAUSE_LASTPRIVATE.
18508 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
18509 OMP_CLAUSE_SAFELEN.
18510 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
18511 (gimplify_expr): Handle OMP_SIMD.
18512 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
18513 (expand_GOMP_SIMD_VF): New.
18514 (expand_GOMP_SIMD_LAST_LANE): New.
18515 * internal-fn.def (GOMP_SIMD_LANE): New.
18516 (GOMP_SIMD_VF): New.
18517 (GOMP_SIMD_LAST_LANE): New.
18518 * omp-low.c: Include target.h.
18519 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
18520 OMP_CLAUSE_SAFELEN.
18521 (check_omp_nesting_restrictions): Same.
18523 (lower_rec_simd_input_clauses): New.
18524 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
18526 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
18527 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
18528 (expand_omp_build_assign): New.
18529 (expand_omp_for_init_counts): New.
18530 (expand_omp_for_init_vars): New.
18531 (extract_omp_for_update_vars): New.
18532 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
18533 and rewrite accordingly.
18534 (expand_omp_simd): New.
18535 (expand_omp_for): Use expand_omp_simd.
18536 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
18537 (lower_omp_for): Do not lower the body.
18538 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
18539 in their own loops.
18540 * tree-flow.h (find_omp_clause): Remove prototype.
18541 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
18542 forcing vectorization of the loop, or if flag_tree_vectorize.
18543 (gate_tree_if_conversion): Similarly.
18544 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
18545 gimple_build_omp_for.
18546 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
18547 * tree-parloops (create_parallel_loop): Pass kind argument to
18548 gimple_build_omp_for.
18549 * tree-pretty-print.c (dump_omp_clause): Add cases for
18550 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
18551 OMP_CLAUSE__SIMDUID_.
18552 (dump_generic_node): Handle OMP_SIMD.
18553 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
18554 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
18555 unroll OMP_SIMD loops here.
18556 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
18557 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
18559 (vect_analyze_data_refs): Handle simd loops.
18560 * tree-vect-loop.c (vectorizable_live_operation): Handle
18562 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
18563 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
18564 (vectorizable_load): Same.
18565 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
18566 (struct simduid_to_vf): New.
18567 (simduid_to_vf::hash): New.
18568 (simduid_to-vf::equal): New.
18569 (struct simd_array_to_simduid): New.
18570 (simd_array_to_simduid::hash): New.
18571 (simd_array_to_simduid::equal): New.
18572 (adjust_simduid_builtins): New.
18573 (struct note_simd_array_uses_struct): New.
18574 (note_simd_array_uses_cb): New.
18575 (note_simd_array_uses): New.
18576 (vectorize_loops): Handle simd hints and adjust simd builtins
18578 * tree-vectorizer.h (struct _stmt_vec_info): Add
18579 simd_lane_access_p field.
18580 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
18581 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
18582 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
18583 (omp_clause_code_name): Same.
18584 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
18585 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
18586 * tree.def (OMP_SIMD): New entry.
18587 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
18588 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
18589 (OMP_CLAUSE_DECL): Adjust range for new clauses.
18590 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
18591 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
18592 (OMP_CLAUSE_LINEAR_STEP): New.
18593 (OMP_CLAUSE_SAFELEN_EXPR): New.
18594 (OMP_CLAUSE__SIMDUID__DECL): New.
18595 (find_omp_clause): New prototype.
18597 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
18599 * config/i386/driver-i386.c (host_detect_local_cpu): Update
18600 Haswell processor detection.
18602 2013-08-27 Christian Widmer <shadow@umbrox.de>
18605 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
18606 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
18607 AVX2 capable processors.
18609 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
18611 * config/aarch64/arm_neon.h: Replace all inline asm implementations
18612 of vget_low_* with implementations in terms of other intrinsics.
18614 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
18616 PR middle-end/57219
18617 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
18618 values to -1, 0 and 1.
18620 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
18622 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
18623 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
18624 (<optab><mode>3_insn): Remove.
18625 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
18626 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
18627 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
18628 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
18629 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
18630 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
18631 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
18632 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
18633 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
18634 (ror<mode>3_insn): Likewise.
18635 * config/aarch64/predicates.md (aarch64_simd_register): New.
18637 2013-08-27 Richard Biener <rguenther@suse.de>
18639 PR tree-optimization/57521
18640 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
18641 one edge is non-critical.
18642 (find_phi_replacement_condition): Make sure to use a non-critical
18643 edge. Cleanup and remove old bug workarounds.
18644 (bb_postdominates_preds): Remove.
18645 (if_convertible_loop_p_1): Do not compute post-dominators.
18646 (combine_blocks): Do not free post-dominators.
18647 (main_tree_if_conversion): Likewise.
18648 (pass_data_if_conversion): Add TODO_verify_ssa.
18650 2013-08-27 DJ Delorie <dj@redhat.com>
18652 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
18654 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
18656 * function.c (assign_parm_find_data_types): Set passed_mode and
18657 nominal_mode to the TYPE_MODE of nominal_type for the built
18658 pointer type in case of the struct-pass-by-reference.
18660 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
18662 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
18663 (UINT16_TYPE): Change default to "unsigned int".
18665 * config/avr/avr.opt (mfract-convert-truncate): New option.
18666 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
18667 is set, round negative fractional integers according to n1169
18668 when converting to integer types.
18670 2013-08-26 Jan Hubicka <jh@suse.cz>
18672 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
18673 methods can not be called indirectly when their address is not taken.
18675 2013-08-26 Jan Hubicka <jh@suse.cz>
18677 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
18680 2013-08-26 Jan Hubicka <jh@suse.cz>
18682 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
18685 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
18687 * reload.c (find_valid_class): Allow classes that do not include
18688 FIRST_PSEUDO_REGISTER - 1.
18690 2013-08-26 Jan Hubicka <jh@suse.cz>
18692 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
18693 fix edge count/frequency when speculation failed; fix type check
18694 for the direct call.
18696 2013-08-26 Jan Hubicka <jh@suse.cz>
18698 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
18700 2013-08-26 Jan Hubicka <jh@suse.cz>
18702 * ipa-inline-transform.c (inline_transform): Be ready for basic block
18703 to be changed by edge redirection.
18705 2013-08-26 Jan Hubicka <jh@suse.cz>
18707 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
18708 formating; add sanity check.
18709 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
18710 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
18711 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
18712 (resolve_noninline_speculation): Update callee keys, too.
18714 2013-08-26 Jan Hubicka <jh@suse.cz>
18716 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
18717 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
18719 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
18721 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
18724 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
18726 * config/i386/i386.c (ix86_debug_options): Remove prototype.
18727 (x86_64_elf_select_section): Ditto.
18728 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
18730 (ix86_pass_by_reference): Ditto.
18731 (output_set_got): Ditto.
18732 (ix86_unary_operator_ok): Ditto.
18733 (ix86_expand_builtin): Ditto.
18735 2013-08-23 Jan Hubicka <jh@suse.cz>
18737 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
18739 2013-08-23 Jan Hubicka <jh@suse.cz>
18741 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
18742 (tree_decl_with_vis): Add FINAL field.
18744 2013-08-23 Jeff Law <law@redhat.com>
18746 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
18747 the debugging dump when the expression is fully redundant.
18749 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
18751 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
18752 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
18753 * pretty-print.c (pp_formatted_text_data): Likewise.
18754 (pp_write_text_to_stream): Likewise.
18755 (pp_write_text_as_dot_label_to_stream): Likewise.
18756 (pp_append_r): Likewise.
18757 (pp_format): Likewise.
18758 (pp_flush): Likewise.
18759 (pp_clear_output_area): Likewise.
18760 (pp_append_text): Likewise.
18761 (pp_formatted_text): Likewise.
18762 (pp_remaining_character_count_for_line): Likewise.
18763 (pp_newline): Likewise.
18764 (pp_character): Likewise.
18765 (output_buffer::~output_buffer): Define.
18766 (pretty_printer::~pretty_printer): Destruct output buffer.
18767 * pretty-print.h (output_buffer::~output_buffer): Declare.
18768 (pretty_printer::~pretty_printer): Declare virtual.
18770 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
18773 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
18774 HOST_WIDE_INT_M1U): New macros.
18775 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
18776 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
18777 unsigned -1 for lshift.
18778 * cse.c (cse_insn): Likewise.
18779 * double-int.c (rshift_double, lshift_double): Likewise.
18780 * builtins.c (fold_builtin_bitop): Likewise.
18781 * combine.c (force_to_mode): Likewise.
18782 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
18783 * simplify-rtx.c (simplify_const_unary_operation,
18784 simplify_const_binary_operation): Likewise.
18785 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
18786 check_va_list_escapes): Likewise.
18787 * rtlanal.c (nonzero_bits1): Likewise.
18788 * expmed.c (expand_smod_pow2): Likewise.
18789 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
18791 2013-08-23 Jan Hubicka <jh@suse.cz>
18793 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
18794 as having address taken.
18796 2013-08-23 Jan Hubicka <jh@suse.cz>
18798 * ipa-utils.h (method_class_type): Declare.
18799 * ipa-devirt.c (method_class_type): Export.
18801 * cgraphunit.c (analyze_functions): Do basic devirtualization;
18802 do not walk base classes of anonymous types.
18804 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
18806 PR rtl-optimization/58220
18807 PR regression/58221
18808 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
18809 handle SEQUENCE insns properly.
18811 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
18813 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
18815 (pp_newline_and_indent): Likewise.
18816 (pp_separate_with): Likewise.
18817 * pretty-print.c (pp_newline_and_flush): Define.
18818 (pp_newline_and_indent): Likewise.
18819 (pp_separate_with): Likewise.
18821 2013-08-23 Jakub Jelinek <jakub@redhat.com>
18824 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
18825 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
18827 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
18829 * config/i386/predicates.md (ext_sse_reg_operand): New.
18830 * config/i386/i386.md (*movti_internal): Use
18831 predicate to determine if EVEX is needed.
18832 (*movsi_internal): Ditto.
18833 (*movdf_internal): Ditto.
18834 (*movsf_internal): Ditto.
18835 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
18837 2013-08-23 Jakub Jelinek <jakub@redhat.com>
18839 PR tree-optimization/58209
18840 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
18841 (find_tail_calls): Give up for pointer result types if m is non-NULL.
18842 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
18843 emit POINTER_PLUS_EXPR.
18844 (create_tailcall_accumulator): For pointer result type accumulate in
18847 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
18849 * configure.ac: Add backslashes missing from the last change.
18850 * configure: Regenerate.
18852 2013-08-22 Jan Hubicka <jh@susue.cz>
18854 * ipa.c (function_and_variable_visibility): First remember function
18855 was global and then make it local.
18857 2013-08-22 Julian Brown <julian@codesourcery.com>
18859 * configure.ac: Add aarch64 to list of arches which use "nop" in
18861 * configure: Regenerate.
18863 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18865 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
18866 gnu_libc_has_function.
18867 * config/s390/tpf.h: Likewise.
18869 2013-08-22 Jan Hubicka <jh@susue.cz>
18871 * timevar.c (validate_phases): Add cast.
18873 2013-08-22 Jan Hubicka <jh@susue.cz>
18875 * timevar.c (validate_phases): Use size_t for memory.
18876 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
18878 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
18880 * pretty-print.h (output_buffer::output_buffer): Declare.
18881 (pretty_printer::pretty_printer): Likewise.
18882 (pp_construct): Remove.
18883 * pretty-print.c (output_buffer::output_buffer): Define.
18884 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
18885 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
18886 (print_gimple_expr): Likewise.
18887 (print_gimple_seq): Likewise.
18888 (gimple_dump_bb): Likewise.
18889 * sched-vis.c (dump_value_slim): Likewise.
18890 (dump_insn_slim): Likewise.
18891 (dump_rtl_slim): Likewise.
18892 (str_pattern_slim): Likewise.
18893 * tree-mudflap.c (mf_varname_tree): Likewise.
18894 * graph.c (print_graph_cfg): Likewise.
18895 (start_graph_dump): Likewise.
18896 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
18898 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
18899 pretty printer initialization.
18900 * coretypes.h (diagnostic_context): Remove superflous type alias
18902 (pretty_printer): Likewise. Declare directly as a class.
18903 (pretty_print_info): Remove declaration as class.
18904 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
18905 and pp_clear_output_area.
18906 (asan_add_global): Likewise.
18908 2013-08-22 Jan Hubicka <jh@suse.cz>
18910 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
18911 * ipa-utils.h (update_type_inheritance_graph): Declare.
18912 (possible_polymorphic_call_target_p): Declare.
18913 (possible_polymorphic_call_target_p): New.
18914 * ipa-devirt.c: Update toplevel comments.
18915 (cached_polymorphic_call_targets): Move up.
18916 (odr_type_d): Move ID down.
18917 (polymorphic_type_binfo_p): Update comment.
18918 (odr_hasher::remove): Likewise;
18919 (get_odr_type): Set anonymous_namespace.
18920 (dump_odr_type): Dump it.
18921 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
18922 (maybe_record_node): Record node in cached_polymorphic_call_targets.
18923 (record_binfo): Add comment.
18924 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
18926 (devirt_node_removal_hook): Do not iCE when cache is freed.
18927 (possible_polymorphic_call_target_p): New predicate.
18928 (update_type_inheritance_graph): New function.
18930 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
18931 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18932 Sergey Lega <sergey.s.lega@intel.com>
18933 Anna Tikhonova <anna.tikhonova@intel.com>
18934 Ilya Tocar <ilya.tocar@intel.com>
18935 Andrey Turetskiy <andrey.turetskiy@intel.com>
18936 Ilya Verbin <ilya.verbin@intel.com>
18937 Kirill Yukhin <kirill.yukhin@intel.com>
18938 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18940 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
18941 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
18942 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
18943 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
18944 (OPTION_MASK_ISA_AVX2_UNSET): Update.
18945 (OPTION_MASK_ISA_AVX512F_UNSET): New.
18946 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
18947 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
18948 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
18949 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
18950 OPT_mavx512pf, OPT_mavx512er cases.
18951 * config/i386/constraints.md (v): New constraint.
18952 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
18953 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
18954 (bit_AVX512CD): New.
18955 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18956 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
18957 * config/i386/i386-c.c (ix86_target_macros_internal):
18958 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
18960 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
18961 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
18962 * config/i386/i386.c (regclass_map, dbx_register_map)
18963 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
18964 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
18965 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
18966 -mavx512pf options.
18967 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
18968 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
18969 -mavx512pf options. Fix formatting.
18970 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
18971 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
18972 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
18973 -mavx512cd, -mavx512pf options.
18974 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
18975 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
18976 (ix86_preferred_output_reload_class): Replace SSE_REGS with
18978 (ix86_hard_regno_mode_ok): Support 512-bit registers.
18979 (ix86_set_reg_reg_cost): Ditto.
18980 (x86_order_regs_for_local_alloc): Ditto.
18981 (MAX_VECT_LEN): Extend to 64-byte.
18982 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
18983 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
18984 (TARGET_AVX512ER, TARGET_AVX512CD): New.
18985 (BIGGEST_ALIGNMENT): Extend to 512-bits.
18986 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
18987 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
18988 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
18989 (SSE_REG_MODE_P): Support new modes.
18990 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
18991 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
18992 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
18993 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
18994 (REG_CLASS_CONTENTS): Add new registers.
18995 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
18996 (EXT_REX_SSE_REGNO_P): New.
18997 (HI_REGISTER_NAMES): Add new registers.
18998 * config/i386/i386.md: Define constants for new registers.
18999 (mode): Add new 512-bit modes.
19000 (prefix): Support evex prefix.
19001 (isa): Support avx512f, noavx512f, fma_avx512f.
19002 (ssemodesuffix): Add new 512-bit modes.
19004 (*movxi_internal_avx512f): Ditto.
19005 (*movdi_internal): Replace constraint "x" with the new constraint "v".
19007 (*movsi_internal): Likewise.
19008 (*movdf_internal): Likewise.
19009 (*movsf_internal): Likewise.
19010 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
19011 (<code><mode>3): Likewise.
19012 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
19014 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
19015 with the new constraint "v".
19016 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
19018 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
19019 with the new constraint "v".
19020 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
19021 (<sse2>_storedqu<avxsizesuffix>): Likewise.
19022 (*<plusminus_insn><mode>3): Likewise.
19023 (<sse>_vm<plusminus_insn><mode>3): Likewise.
19024 (*mul<mode>3): Likewise.
19025 (<sse>_vmmul<mode>3): Likewise.
19026 (<sse>_div<mode>3): Likewise.
19027 (<sse>_vmdiv<mode>3): Likewise.
19028 (<sse>_sqrt<mode>2): Likewise.
19029 (<sse>_vmsqrt<mode>2): Likewise.
19030 (*<code><mode>3_finite): Likewise.
19031 (*<code><mode>3) <smaxmin>: Likewise.
19032 (<sse>_vm<code><mode>3): Likewise.
19033 (*<code><mode>3) <any_logic>: Likewise.
19034 (*fma_fmadd_<mode>): Likewise.
19035 (*fma_fmsub_<mode>): Likewise.
19036 (*fma_fnmadd_<mode>): Likewise.
19037 (*fma_fnmsub_<mode>): Likewise.
19038 (*fma_fmaddsub_<mode>): Likewise.
19039 (*fma_fmsubadd_<mode>): Likewise.
19040 (*fmai_fmadd_<mode>): Likewise.
19041 (*fmai_fmsub_<mode>): Likewise.
19042 (*fmai_fnmadd_<mode>): Likewise.
19043 (*fmai_fnmsub_<mode>): Likewise.
19044 (sse_cvtsi2ss): Likewise.
19045 (sse_cvtsi2ssq): Likewise.
19046 (sse_cvtss2si): Likewise.
19047 (sse_cvtss2si_2): Likewise.
19048 (sse_cvtss2siq): Likewise.
19049 (sse_cvtss2siq_2): Likewise.
19050 (sse_cvttss2si): Likewise.
19051 (sse_cvtss2siq_2): Likewise.
19052 (float<sseintvecmodelower><mode>2): Likewise.
19053 (sse2_cvtsd2si_2): Likewise.
19054 (sse2_cvtsd2siq_2): Likewise.
19055 (*<plusminus_insn><mode>3): Likewise.
19056 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
19057 (*<sse4_1_avx2>_mul<mode>3): Likewise.
19058 (ashr<mode>3): Likewise.
19059 (<shift_insn><mode>3): Likewise.
19060 (avx2_<code><mode>3): Likewise.
19061 (*avx2_<code><mode>3): Likewise.
19062 (*andnot<mode>3): Likewise.
19063 (*<code><mode>3) <any_logic>: Likewise.
19064 (abs<mode>2): Likewise.
19065 (avx2_permvar<mode>): Likewise.
19066 (avx2_perm<mode>_1): Likewise.
19067 (*avx_vpermilp<mode>): Likewise.
19068 (avx_vpermilvar<mode>3): Likewise.
19069 (avx2_ashrv<mode>): Likewise.
19070 (avx2_<shift_insn>v<mode>): Likewise.
19071 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
19073 * doc/rtl.texi: Document XImode.
19075 2013-08-21 Jeff Law <law@redhat.com>
19077 * tree-flow.h (register_jump_thread): Pass vector of edges
19078 instead of each important edge.
19079 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
19080 thread path into a vector and pass that to register_jump_thread.
19081 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
19082 passed in edge vector to the current 3-edge form.
19085 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
19087 * dce.c (fini_dce): Call df_analyze again just in case
19088 delete_unmarked_insns removed anything.
19090 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
19092 * reload.h (struct reg_equivs): Rename to ..
19093 (struct reg_equivs_s): .. this.
19095 2013-08-20 Martin Liska <marxin.liska@gmail.com>
19097 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
19099 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19101 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
19103 2013-08-21 Jeff Law <law@redhat.com>
19105 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
19106 simplify assignments too. If the RHS collapses to a singleton
19107 range, then return the value for the range.
19109 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
19111 * config/i386/sse.md (V16): Rename to...
19113 (mov<mode>): Update iterator name.
19114 (*mov<mode>_internal): Ditto.
19115 (push<mode>1): Ditto.
19116 (movmisalign<mode>): Ditto.
19118 2013-08-20 Jan Hubicka <jh@suse.cz>
19121 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
19122 entry for direct edges.
19123 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
19125 2013-08-20 David Malcolm <dmalcolm@redhat.com>
19127 Revert my last two changes, r201865 and r201864:
19130 2013-08-20 David Malcolm <dmalcolm@redhat.com>
19132 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
19133 instances can own GC refs.
19135 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
19136 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
19137 (gcc::context::gt_pch_nx): Likewise.
19138 (gcc::context::gt_pch_nx): Likewise.
19139 * ggc.h (gt_ggc_mx <T>): New.
19140 (gt_pch_nx_with_op <T>): New.
19141 (gt_pch_nx <T>): New.
19142 * passes.c (opt_pass::gt_ggc_mx): New.
19143 (opt_pass::gt_pch_nx): New.
19144 (opt_pass::gt_pch_nx_with_op): New.
19145 (pass_manager::gt_ggc_mx): New.
19146 (pass_manager::gt_pch_nx): New.
19147 (pass_manager::gt_pch_nx_with_op): New.
19148 (pass_manager::operator new): Use
19149 ggc_internal_cleared_alloc_stat rather than xcalloc.
19150 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
19151 (pass_manager::gt_ggc_mx): New.
19152 (pass_manager::gt_pch_nx): New.
19153 (pass_manager::gt_pch_nx_with_op): New.
19154 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
19155 (opt_pass::operator new): New.
19156 (opt_pass::gt_ggc_mx): New.
19157 (opt_pass::gt_pch_nx): New.
19158 (opt_pass::gt_pch_nx_with_op): New.
19161 2013-08-20 David Malcolm <dmalcolm@redhat.com>
19163 * Makefile.in (GTFILES): Add context.h.
19164 * context.c (gcc::context::operator new): New.
19165 (gcc::context::gt_ggc_mx): New.
19166 (gcc::context::gt_pch_nx): New.
19167 (gcc::context::gt_pch_nx): New.
19168 * context.h (gcc::context): Add GTY((user)) marking.
19169 (gcc::context::operator new): New.
19170 (gcc::context::gt_ggc_mx): New.
19171 (gcc::context::gt_pch_nx): New.
19172 (gcc::context::gt_pch_nx): New.
19173 (g): Add GTY marking.
19174 (gt_ggc_mx (gcc::context *)): New.
19175 (gt_pch_nx (gcc::context *)): New.
19176 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
19177 void *cookie)): New.
19178 * gengtype.c (open_base_files) <ifiles>: Add context.h.
19180 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
19182 * dce.c (fini_dce): Call df_analyze again just in case
19183 delete_unmarked_insns removed anything.
19185 2013-08-20 Teresa Johnson <tejohnson@google.com>
19187 PR rtl-optimizations/57451
19188 * final.c (reemit_insn_block_notes): Prevent lexical blocks
19189 from crossing split section boundaries.
19191 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
19193 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
19194 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
19195 with MULTLIB_DEFAULTS.
19197 2013-08-20 Nick Clifton <nickc@redhat.com>
19199 * target.def (narrow_volatile_bitfield): Note that the default
19200 value is false, not !TARGET_STRICT_ALIGN.
19201 * doc/tm.texi: Regenerate.
19203 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
19205 Fix LIB_SPEC for systems without libpthread.
19207 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
19208 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
19210 * config/i386/linux-common.h: Likewise.
19211 * config/mips/linux-common.h: Likewise.
19213 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19215 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
19218 2013-08-20 David Malcolm <dmalcolm@redhat.com>
19220 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
19221 instances can own GC refs.
19223 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
19224 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
19225 (gcc::context::gt_pch_nx): Likewise.
19226 (gcc::context::gt_pch_nx): Likewise.
19227 * ggc.h (gt_ggc_mx <T>): New.
19228 (gt_pch_nx_with_op <T>): New.
19229 (gt_pch_nx <T>): New.
19230 * passes.c (opt_pass::gt_ggc_mx): New.
19231 (opt_pass::gt_pch_nx): New.
19232 (opt_pass::gt_pch_nx_with_op): New.
19233 (pass_manager::gt_ggc_mx): New.
19234 (pass_manager::gt_pch_nx): New.
19235 (pass_manager::gt_pch_nx_with_op): New.
19236 (pass_manager::operator new): Use
19237 ggc_internal_cleared_alloc_stat rather than xcalloc.
19238 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
19239 (pass_manager::gt_ggc_mx): New.
19240 (pass_manager::gt_pch_nx): New.
19241 (pass_manager::gt_pch_nx_with_op): New.
19242 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
19243 (opt_pass::operator new): New.
19244 (opt_pass::gt_ggc_mx): New.
19245 (opt_pass::gt_pch_nx): New.
19246 (opt_pass::gt_pch_nx_with_op): New.
19248 2013-08-20 David Malcolm <dmalcolm@redhat.com>
19250 * Makefile.in (GTFILES): Add context.h.
19251 * context.c (gcc::context::operator new): New.
19252 (gcc::context::gt_ggc_mx): New.
19253 (gcc::context::gt_pch_nx): New.
19254 (gcc::context::gt_pch_nx): New.
19255 * context.h (gcc::context): Add GTY((user)) marking.
19256 (gcc::context::operator new): New.
19257 (gcc::context::gt_ggc_mx): New.
19258 (gcc::context::gt_pch_nx): New.
19259 (gcc::context::gt_pch_nx): New.
19260 (g): Add GTY marking.
19261 (gt_ggc_mx (gcc::context *)): New.
19262 (gt_pch_nx (gcc::context *)): New.
19263 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
19264 void *cookie)): New.
19265 * gengtype.c (open_base_files) <ifiles>: Add context.h.
19267 2013-08-20 Alan Modra <amodra@gmail.com>
19270 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
19271 (rs6000_emit_epilogue): Likewise.
19273 2013-08-19 Dehao Chen <dehao@google.com>
19275 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
19277 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
19278 Jakub Jelinek <jakub@redhat.com>
19280 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
19281 (BUILT_IN_FABSD64): Likewise.
19282 (BUILT_IN_FABSD128): Likewise.
19283 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
19284 (fold_builtin_1): Likewise.
19285 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
19286 destination and source operands.
19287 (*abstd2_fpr): Likewise.
19288 (*nabstd2_fpr): Likewise.
19290 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
19292 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
19295 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
19297 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
19300 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
19302 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
19303 * builtins.c (default_libc_has_function): New.
19304 (gnu_libc_has_function): Ditto.
19305 (no_c99_libc_has_function): Ditto.
19306 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
19307 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
19308 (fold_builtin_sincos): Likewise.
19309 (fold_builtin_cexp): Likewise.
19310 * builtins.def (DEF_C94_BUILTIN): Likewise.
19311 (DEF_C99_BUILTIN): Likewise.
19312 (DEF_C99_C90RES_BUILTIN): Likewise.
19313 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
19314 definitions to using this define.
19315 * config/darwin-protos.h (darwin_libc_has_function): New.
19316 * config/darwin.c (darwin_libc_has_function): Ditto.
19317 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
19318 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
19319 * config/darwin.h: Ditto.
19320 * config/elfos.h: Ditto.
19321 * config/freebsd.h: Ditto.
19322 * config/i386/cygming.h: Ditto.
19323 * config/i386/djgpp.h: Ditto.
19324 * config/i386/i386-interix.h: Ditto.
19325 * config/microblaze/microblaze.h: Ditto.
19326 * config/mmix/mmix.h: Ditto.
19327 * config/gnu-user.h: Ditto.
19328 * config/ia64/hpux.h: Ditto.
19329 * config/pa/pa-hpux.h: Ditto.
19330 * config/pdp11/pdp11.h: Ditto.
19331 * config/picochip/picochip.h: Ditto.
19332 * config/linux.h: Ditto.
19333 * config/netbsd.h: Ditto.
19334 * config/openbsd.h: Ditto.
19335 * config/rs6000/aix43.h: Ditto.
19336 * config/rs6000/aix51.h: Ditto.
19337 * config/rs6000/aix52.h: Ditto.
19338 * config/rs6000/aix53.h: Ditto.
19339 * config/rs6000/aix61.h: Ditto.
19340 * config/rs6000/darwin.h: Ditto.
19341 * config/rs6000/linux.h: Ditto.
19342 * config/rs6000/linux64.h: Ditto.
19343 * config/s390/tpf.h: Ditto.
19344 * config/sol2-10.h: Ditto.
19345 * config/sol2.h: Ditto.
19346 * config/vms/vms.h: Ditto.
19347 * config/vxworks.h: Ditto.
19348 * config/linux-android.c (linux_android_libc_has_function):
19349 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
19350 * config/linux-protos.h (linux_android_libc_has_function):
19352 * config/i386/i386.c (ix86_libc_has_function): New.
19353 * config/i386/i386-protos.h
19354 (ix86_libc_has_function): New declaration.
19355 * config/i386/i386.md
19356 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
19357 ("isinf<mode>2): Likewise.
19358 * convert.c (convert_to_integer): Using new target hook
19359 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
19360 TARGET_C99_FUNCTIONS.
19361 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
19362 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
19363 * coretypes.h (function_class): New enum for different
19364 classes of functions.
19365 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
19366 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
19367 (TARGET_HAS_SINCOS): Likewise.
19368 (TARGET_LIBC_HAS_FUNCTION): New.
19369 * doc/tm.texi: Regenerated.
19370 * targhooks.h (default_libc_has_function): New declaration.
19371 (no_c99_libc_has_function): Ditto.
19372 (gnu_libc_has_function): Ditto.
19373 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
19374 and TARGET_HAS_SINCOS.
19376 2013-08-18 Jan Hubicka <jh@suse.cz>
19378 * Makeifle-in (ipa-devirt.o): New.
19379 (GTFILES): Add ipa-utils.h and ipa-devirt.c
19380 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
19381 (analyze_functions): Look into possible targets of polymorphic call.
19382 * dumpfile.c (dump_files): Add type-inheritance dump.
19383 * dumpfile.h (TDI_inheritance): New.
19384 * ipa-devirt.c: New file.
19385 * ipa-utils.h (odr_type_d): Forward declare.
19386 (odr_type): New type.
19387 (build_type_inheritance_graph): Declare.
19388 (possible_polymorphic_call_targets): Declare and introduce inline
19389 variant when only edge is pased.
19390 (dump_possible_polymorphic_call_targets): Likewise.
19391 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
19392 * tree.c (type_in_anonymous_namespace_p): Break out from ...
19393 (types_same_for_odr): ... here.
19394 * tree.h (type_in_anonymous_namespace_p): Declare.
19396 2013-08-18 Jakub Jelinek <jakub@redhat.com>
19398 PR tree-optimization/58006
19399 * tree-parloops.c (take_address_of): Don't ICE if get_name
19401 (eliminate_local_variables_stmt): Remove clobber stmts.
19403 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
19405 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
19406 error message is issued for an alias to undefined symbol.
19408 2013-08-18 Jan Hubicka <jh@suse.cz>
19410 * cgraph.c (cgraph_create_indirect_edge): Discover
19411 polymorphic calls and record basic info into indirect_info.
19412 * gimple-fold.c (gimple_fold_call): When doing BINFO based
19413 devirtualization, ignore objc function calls.
19414 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
19415 call with no parm index info.
19416 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
19417 * tree.c (virtual_method_call_p): New function.
19418 * tree.h (virtual_method_call_p): Declare.
19420 2013-08-16 Jan Hubicka <jh@suse.cz>
19422 PR middle-end/58179
19423 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
19425 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
19427 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
19430 2013-08-16 David Malcolm <dmalcolm@redhat.com>
19432 * gengtype.c (type_for_name): Add special-case support for
19433 locating types within the "gcc::" namespace.
19434 (open_base_files): Emit a "using namespace gcc" directive.
19436 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
19439 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
19440 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
19442 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
19443 array instead of each individual operand as a separate argument.
19444 (emit_fusion_gpr_load): Likewise.
19445 (expand_fusion_gpr_load): Add new function declaration.
19447 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
19448 signature to have the operands passed as an array, instead of as
19449 separate arguments. Allow ZERO_EXTEND to be in the memory
19450 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
19451 depend on the register live/dead flags when peepholes are run.
19452 (expand_fusion_gpr_load): New function to be called from the
19453 peephole2 pass, to change the register that addis sets to be the
19455 (emit_fusion_gpr_load): Change the calling signature to have the
19456 operands passed as an array, instead of as separate arguments.
19457 Allow ZERO_EXTEND to be in the memory address, and also
19458 SIGN_EXTEND if -mpower8-fusion-sign.
19460 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
19461 unspec enumeration.
19462 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
19463 adjust the register addis loads up in the peephole2 pass. Do not
19464 depend on the register live/dead state when the peephole pass is done.
19466 2013-08-16 David Malcolm <dmalcolm@redhat.com>
19468 * gengtype.c (create_user_defined_type): Ensure that the kind
19469 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
19470 declaration is seen before the GTY((user)) marking.
19472 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
19475 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
19477 2013-08-16 Jan Hubicka <jh@suse.cz>
19479 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
19480 arugment expected_type.
19481 (gimple_fold_call): Use it.
19482 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
19483 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
19484 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
19485 (try_make_edge_direct_virtual_call): Likewise.
19486 * tree.c (obj_type_ref_class): New.
19487 * tree.h (obj_type_ref_class): Use it.
19489 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
19491 * sched-vis.c (rtl_slim_pp_initialized): Remove.
19492 (rtl_slim_pp): Likewise.
19493 (init_rtl_slim_pretty_print): Likewise.
19494 (dump_value_slim): Don't call it. Use local pretty printer.
19495 (dump_insn_slim): Likewise.
19496 (dump_rtl_slim): Likewise.
19497 (str_pattern_slim): Likewise.
19498 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
19501 2013-08-16 Jakub Jelinek <jakub@redhat.com>
19503 PR tree-optimization/58164
19504 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
19505 walk gimple_goto_dest of GIMPLE_GOTO.
19507 PR tree-optimization/58165
19508 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
19509 bi_call must be the last stmt in a bb, don't split_block, instead
19510 use fallthru edge from it and give up if there is none.
19511 Release conds vector when returning early.
19513 2013-08-14 Xinliang David Li <davidxl@google.com>
19515 * config/i386/i386.c (ix86_option_override_internal):
19516 Remove unused variable and field.
19518 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19521 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
19522 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
19523 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
19524 and Linux, correct BLKmode alignment when 128-bit alignment is
19525 required and compatibility flag is not set.
19526 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
19527 for zero-size arguments when compatibility flag is not set.
19529 2013-08-14 Jakub Jelinek <jakub@redhat.com>
19531 PR tree-optimization/58145
19532 * tree-sra.c (build_ref_for_offset): If prev_base has
19533 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
19535 2013-08-14 Xinliang David Li <davidxl@google.com>
19537 * config/i386/i386.c (ix86_option_override_internal):
19538 Fix uninitialized variable error.
19540 2013-08-14 Xinliang David Li <davidxl@google.com>
19542 * config/i386/i386.opt: Define two new options.
19543 * config/i386/x86-tune.def: Add arch selector field in macros.
19544 * config/i386/i386.h: Adjust macro definition.
19545 * config/i386/i386.c (ix86_option_override_internal):
19547 (parse_mtune_ctrl_str): New function.
19548 (set_ix86_tune_features): New function.
19549 (ix86_function_specific_restore): Call the new helper function.
19551 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
19553 PR rtl-optimization/57662
19554 * sel-sched.c (code_motion_process_successors): When the current insn
19555 is removed after the recursive traversal, break from the loop.
19556 Add comments and debug printouts.
19558 2013-08-14 Jakub Jelinek <jakub@redhat.com>
19559 Alexandre Oliva <aoliva@redhat.com>
19562 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
19563 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
19564 there also UNSPEC_PLTOFF.
19566 2013-08-14 Marek Polacek <polacek@redhat.com>
19568 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
19569 NUM_CONDITIONS bit positions.
19571 2013-08-13 Cary Coutant <ccoutant@google.com>
19573 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
19574 (attr_checksum): Hash vector contents instead of pointer.
19575 (attr_checksum_ordered): Likewise.
19577 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
19579 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
19580 when Pmode != word_mode. Add length_address attribute.
19581 (sse3_monitor_<mode>): Merge from sse3_monitor and
19582 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
19583 Pmode != word_mode. Update insn length attribute.
19584 * config/i386/i386.c (ix86_option_override_internal): Update
19585 ix86_gen_monitor selection for merged sse3_monitor insn.
19587 2013-08-13 Julian Brown <julian@codesourcery.com>
19589 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
19590 perform invalid legitimization on greater-than-word-size modes for
19591 TARGET_E500_DOUBLE.
19593 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
19595 * ira.c (setup_class_translate_array): Use aclass instead of cl
19596 for classes not fully covered by allocno classes.
19598 2013-08-13 Jakub Jelinek <jakub@redhat.com>
19600 PR tree-optimization/57661
19601 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
19602 * tree-inline.c (tree_function_versioning): Initialize it.
19603 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
19604 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
19605 that is not being copied.
19608 * asan.c (instrument_strlen_call): Fix typo in comment.
19609 Use char * type even for the lhs of POINTER_PLUS_EXPR.
19611 2013-08-13 Steve Ellcey <sellcey@mips.com>
19613 * config/mips/mips.md (prefetch): Use lw instead of ld on
19614 loongson in 32bit mode.
19616 2013-08-13 Nick Clifton <nickc@redhat.com>
19618 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
19620 2013-08-13 Jan Hubicka <jh@suse.cz>
19622 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
19623 introduced edge; fix typo in sanity check.
19624 (cgraph_resolve_speculation): Export; improve diagnostic.
19625 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
19626 speculation at type mismatch.
19627 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
19628 (cgraph_resolve_speculation): Declare.
19629 (symtab_can_be_discarded): New function.
19630 * value-prof.c (gimple_ic_transform): Remove actual transform code.
19631 * ipa-inline-transform.c (speculation_removed): New global var.
19632 (clone_inlined_nodes): See if speculation can be removed.
19633 (inline_call): If speculations was removed, we growths may not match.
19634 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
19635 (speculation_useful_p): New function.
19636 (resolve_noninline_speculation): New function.
19637 (inline_small_functions): Resolve useless speculations.
19638 * ipa-inline.h (speculation_useful_p): Declare
19639 * ipa.c (can_replace_by_local_alias): Simplify.
19640 (ipa_profile): Produce speculative calls in non-lto, too;
19641 add simple cost model; produce local aliases.
19643 2013-08-13 David Malcolm <dmalcolm@redhat.com>
19645 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
19648 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
19650 * config/i386/i386.c (ix86_function_versions): Use error + inform.
19652 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
19654 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
19655 iterator instead of X87MODEF.
19657 2013-08-12 Perez Read <netfirewall@gmail.com>
19660 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
19661 operand 0 for intel asm alternative.
19662 (*movabs<mode>_2): Ditto for operand 1.
19664 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
19666 * config/aarch64/arm_none.h
19667 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
19669 2013-08-12 Nick Clifton <nickc@redhat.com>
19671 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
19673 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
19675 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
19676 expand for QI/HImode operand to produce more effictive code for
19677 unsigned char(short) --> float(double) conversion.
19679 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
19681 * doc/invoke.texi: Mention that -ftls-model does not force the final
19684 2013-08-12 Marek Polacek <polacek@redhat.com>
19685 Marc Glisse <marc.glisse@inria.fr>
19687 PR tree-optimization/57980
19688 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
19689 when creating -1 constant.
19691 2013-08-10 Jan Hubicka <jh@suse.cz>
19693 Workaround binutils PR14342.
19694 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
19695 (gimple_init_edge_profiler): Likewise.
19696 (gimple_gen_ic_func_profiler): Likewise.
19698 2013-08-09 Jan Hubicka <jh@suse.cz>
19700 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
19702 2013-08-09 Xinliang David Li <davidxl@google.com>
19704 * config/i386/stringop.def: New file.
19705 * config/i386/stringop.opt: New file.
19706 * config/i386/i386-opts.h: Include stringopt.def.
19707 * config/i386/i386.opt: Include stringopt.opt.
19708 * config/i386/i386.c (ix86_option_override_internal):
19709 Override default size based stringop inline strategies with options.
19710 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
19713 2013-08-09 Jan Hubicka <jh@suse.cz>
19715 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
19717 2013-08-09 Jan Hubicka <jh@suse.cz>
19719 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
19721 (dump_cgraph_node): Dump profile-id.
19722 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
19723 and common_target_probability.
19724 * lto-cgraph.c (lto_output_edge): Stream common targets.
19725 (lto_output_node): Stream profile ids.
19726 (input_node): Stream profile ids.
19727 (input_edge): Stream common targets.
19728 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
19729 * ipa.c: Include value-prof.h
19730 (ipa_profile_generate_summary): Turn indirect call statement histograms
19731 into common targets.
19732 (ipa_profile): Turn common targets into speculative edges.
19734 2013-08-09 Jan Hubicka <jh@suse.cz>
19736 * cgraph.h (cgraph_node): Add profile_id.
19737 * value-prof.c (cgraph_node_map): Turn into pointer_map.
19738 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
19739 (del_node_map): Update.
19740 (find_func_by_funcdef_no): Replace by ...
19741 (find_func_by_profile_id): ... this one.
19742 (gimple_ic_transform): Do not remove useful histograms when
19743 speculation is not done; dump info when indirect call removal
19745 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
19746 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
19747 (__gcov_indirect_call_profiler_v2): .. this one.
19748 * profile.h (init_node_map): Update.
19749 * coverage.c (coverage_compute_profile_id): New function.
19750 * coverage.h (coverage_compute_profile_id): Declare.
19751 * tree-profile.c (init_ic_make_global_vars): Make
19752 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
19753 (gimple_init_edge_profiler): Update prototype of
19754 __gcov_indirect_call_profiler.
19755 (gimple_gen_ic_func_profiler): Simplify.
19756 (tree_profiling): Use init_node_map
19758 2013-08-09 Jan Hubicka <jh@suse.cz>
19760 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
19761 non-speculative refs.
19762 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
19763 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
19764 (cgraph_set_call_stmt): Likewise.
19765 (cgraph_create_edge_1): Fix release checking compilatoin;
19766 clear lto_stmt_uid.
19767 (cgraph_free_edge): Free indirect info.
19768 (cgraph_turn_edge_to_speculative): New function.
19769 (cgraph_speculative_call_info): New function.
19770 (cgraph_make_edge_direct): Return direct edge; handle speculation.
19771 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
19772 (dump_cgraph_node): Dump speculation.
19773 (verify_edge_count_and_frequency): Accept speculative edges.
19774 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
19775 (verify_cgraph_node): Handle speculation.
19776 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
19777 (cgraph_set_call_stmt): Update prototype.
19778 (cgraph_make_edge_direct): Update prototype.
19779 (cgraph_speculative_call_info): Declare.
19780 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
19781 to change; update call of ipa_find_references.
19782 * ipa-ref.c (ipa_record_reference): Fix return value; clear
19783 lto_stmt_uid and speculative flags.
19784 (ipa_dump_references): Dump speculation.
19785 (ipa_clone_references): Clone speculative flag.
19786 (ipa_clone_referring): Likewise.
19787 (ipa_clone_ref): New function.
19788 (ipa_find_reference): Look into lto_stmt_uids
19789 (ipa_clear_stmts_in_references): Do not clear speculative calls.
19790 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
19791 (ipa_find_reference): Update declaration.
19792 (ipa_clone_ref): Declare.
19793 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
19794 stream speculative flag.
19795 (lto_output_ref): Stream statements uids and speculation.
19796 (input_ref): Likewise.
19797 (input_edge): Stream speuclation.
19798 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
19799 (cgraph_set_call_stmt_including_clones): Handle speculation.
19800 * ipa-inline.c (heap_edge_removal_hook): New function.
19801 (inline_small_functions): Register it.
19802 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
19803 also initialize refs.
19804 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
19806 (try_make_edge_direct_simple_call): Likewise.
19807 (try_make_edge_direct_simple_call): Likewise.
19808 (update_indirect_edges_after_inlining): Likewise.
19809 (remove_described_reference): Look proper lto_stmt_uid.
19810 (propagate_controlled_uses): Likewise.
19811 (propagate_controlled_uses): Liekwise.
19812 * tree-inline.c (copy_bb): Copy speculative edges.
19813 (redirect_all_calls): New function.
19814 (copy_cfg_body): Do redirection after loop info is updated.
19815 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
19817 2013-08-09 Jan Hubicka <jh@suse.cz>
19819 * lto-streamer-out.c (output_function): Renumber PHIs.
19820 * lto-streamer-in.c (input_function): Likewise.
19822 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
19824 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
19825 (get_lane_unsigned): Likewise.
19826 (dup_lane_scalar): Likewise.
19827 (get_lane): enable for VALL.
19828 * config/aarch64/aarch64-simd.md
19829 (aarch64_dup_lane_scalar<mode>): Remove.
19830 (aarch64_get_lane_signed<mode>): Likewise.
19831 (aarch64_get_lane_unsigned<mode>): Likewise.
19832 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
19833 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
19834 (aarch64_get_lane<mode>): Enable for all vector modes.
19835 (aarch64_get_lanedi): Remove misleading constraints.
19836 * config/aarch64/arm_neon.h
19837 (__aarch64_vget_lane_any): Define.
19838 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
19839 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
19840 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
19841 * config/aarch64/iterators.md (VDQQH): New.
19842 (VDQQHS): Likewise.
19843 (vwcore): Likewise.
19845 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
19847 * configure.ac: Add GAS check for LEON instructions on SPARC.
19848 * configure: Regenerate.
19849 * config.in: Likewise.
19850 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
19852 * config/sparc/sparc.opt (LEON, LEON3): New masks.
19853 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
19855 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
19856 (AS_LEON_FLAG): New macro.
19857 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
19858 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
19859 Deal with LEON and LEON3 for the memory model.
19860 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
19861 (atomic_compare_and_swap<mode>_1): Likewise.
19862 (*atomic_compare_and_swap<mode>_1): Likewise.
19864 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19866 * config/arm/neon.md (vcond): Fix floating-point vector
19867 comparisons against 0.
19869 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
19871 * lra-constraints.c (emit_spill_move): Remove assert.
19872 (process_alt_operands): Add more debugging
19873 output. Increase reject for spilling into memory. Decrease
19874 reject for reloading scratch.
19875 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
19877 2013-08-08 Steve Ellcey <sellcey@mips.com>
19879 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
19880 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
19881 micromips incompatible. Add nan2008.
19882 (MULTILIB_DIRNAMES): Add nan2008.
19883 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19884 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
19885 and micromips incompatible. Add nan2008.
19886 (MULTILIB_DIRNAMES): Add nan2008.
19887 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19889 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
19891 PR rtl-optimization/58079
19892 * combine.c (combine_simplify_rtx): Avoid using SUBST if
19893 simplify_comparison has widened a comparison with an integer.
19895 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19897 * config/arm/neon.md (movmisalign<mode>): Disable when we
19898 don't allow unaligned accesses.
19899 (*movmisalign<mode>_neon_store): Likewise.
19900 (*movmisalign<mode>_neon_load): Likewise.
19901 (*movmisalign<mode>_neon_store): Likewise.
19902 (*movmisalign<mode>_neon_load): Likewise.
19904 2013-08-08 Jan Hubicka <jh@suse.cz>
19906 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
19907 (make_pass_rebuild_cgraph_edges): Also clear references.
19908 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
19909 * ipa-inline-transform.c (inline_transform): Remove all references
19911 * cgraphunit.c (expand_function): Remove all references after
19913 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
19914 (ipa_find_reference): Rewrite to iterator.
19915 (remove_stmt_references): Likewise.
19916 (ipa_clear_stmts_in_references): New function.
19917 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
19918 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
19920 * ipa-split.c (split_function): Remove references in split function.
19922 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
19925 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
19926 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
19928 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
19931 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
19932 suggested mode for the assignment isn't compatible with the
19933 registers required.
19935 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
19938 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
19940 2013-08-07 Xinliang David Li <davidxl@google.com>
19942 * config/i386/i386.opt: New option -mtune-ctrl=.
19943 * config/i386/x86-tune.def: New file.
19944 * config/i386/i386.h: include x86-tune.def.
19945 * config/i386/i386.c (ix86_option_override_internal):
19946 Parsing -mtune-ctrl= option and set tune features.
19948 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
19951 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
19952 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
19955 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
19957 * rtl.h (update_alignments): Declare.
19958 * final.c (grow_label_align): New function extracted from...
19959 (shorten_branches): ...here. Call it.
19960 (update_alignments): New function.
19961 * reorg.c (sibling_labels): New variable.
19962 (get_label_before): Add SIBLING parameter. If it is non-zero, push
19963 the new label along with it onto the sibling_labels vector.
19964 (fill_simple_delay_slots): Adjust call to get_label_before.
19965 (fill_slots_from_thread): Likewise.
19966 (relax_delay_slots): Likewise.
19967 (make_return_insns): Likewise.
19968 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
19970 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
19972 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
19973 document its semantics.
19974 (diagnostic_report_diagnostic): Adjust accordingly.
19976 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19978 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
19979 (sparc_option_override): ...and port to new C++ pass API.
19980 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
19982 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
19984 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
19986 2013-08-06 Caroline Tice <cmtice@google.com>
19988 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
19989 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
19990 * tree-pass.h: Add pass_vtable_verify.
19991 * varasm.c (assemble_variable): Add code to properly set the comdat
19992 section and name for the .vtable_map_vars section.
19993 (assemble_vtyv_preinit_initializer): New function.
19994 (default_sectin_type_flags): Make sure .vtable_map_vars section has
19996 * output.h: Add function decl for assemble_vtv_preinit_initializer.
19997 * vtable-verify.c: New file.
19998 * vtable-verify.h: New file.
19999 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
20000 initialiation levels.
20001 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
20002 * passes.def: Insert pass_vtable_verify.
20003 * aclocal.m4: Reorder includes.
20004 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
20005 -fvtv-counts options.
20006 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
20007 as appropriate, if -fvtable-verify=... is used.
20008 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
20009 -fvtable-verify=... is used.
20010 * Makefile.in (OBJS): Add vtable-verify.o to list.
20011 (vtable-verify.o): Add new build rule.
20012 (GTFILES): Add vtable-verify.c to list.
20013 * common.opt (fvtable-verify=): New flag.
20014 (vtv_priority): Values for fvtable-verify= flag.
20015 (fvtv-counts): New flag.
20016 (fvtv-debug): New flag.
20017 * tree.h (save_vtable_map_decl): New extern function decl.
20019 2013-08-07 David Malcolm <dmalcolm@redhat.com>
20021 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
20022 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
20023 (pass_data_rl78_devirt): ...new pass_data instance and...
20024 (make_pass_rl78_devirt): ...new function.
20025 (rl78_asm_file_start): Port pass registration to new C++ API.
20027 2013-08-07 David Malcolm <dmalcolm@redhat.com>
20029 * coretypes.h (rtl_opt_pass): Add.
20030 (gcc::context): Add.
20031 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
20032 (epiphany_init): Port to new C++ pass API.
20033 (epiphany_optimize_mode_switching): Likewise.
20034 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
20035 (pass_manager::get_pass_mode_switching): New.
20036 (pass_manager::get_pass_peephole2): New.
20037 * mode-switching.c (pass_mode_switching): Add clone method.
20038 * recog.c (pass_peephole2): Add clone method.
20039 (pass_split_all_insns): Add clone method.
20041 2013-08-06 David Malcolm <dmalcolm@redhat.com>
20043 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
20044 (mips_option_override): ...here, porting to new C++ API for passes.
20046 2013-08-06 Jan Hubicka <jh@suse.cz>
20048 * cgraph.c (cgraph_get_body): New function based on lto.c
20050 * cgraph.h (cgraph_get_body): Declare.
20051 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
20053 * cgraphunit.c (expand_function): Get body prior expanding.
20054 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
20055 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
20057 * passes.c (do_per_function_toporder): Get body.
20058 * tree-inline.c (expand_call_inline): Get body prior inlining it.
20059 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
20061 2013-08-06 Martin Jambor <mjambor@suse.cz>
20064 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
20065 is not re-finalized. Rename second parameter to no_collect.
20067 2013-08-06 Martin Jambor <mjambor@suse.cz>
20069 PR middle-end/58041
20070 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
20071 MEM_REF has proper alignment information.
20073 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
20076 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
20078 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
20079 rtx (*) (rtx, ...) with insn_gen_fn.
20080 * genoutput.c (output_insn_data): Cast gen_? function pointers to
20081 insn_gen_fn::stored_funcptr. Add initializer braces.
20083 2013-08-05 David Malcolm <dmalcolm@redhat.com>
20085 Rewrite how instances of passes are cloned to remove assumptions
20086 about their sizes (thus allowing pass subclasses to have
20087 additional data fields, albeit non-GC-managed ones at this point).
20089 * passes.c (make_pass_instance): Now that passes have clone
20090 methods, rewrite this function to eliminate XNEW and memcpy
20091 calls that used hardcoded sizes. Since this function no longer
20092 creates pass instances, rename it to...
20093 (add_pass_instance): ...this. Document the old way that passes were
20094 numbered and flagged, and rework this function to continue using it.
20095 (next_pass_1): Add an initial_pass argument for use by
20097 (position_pass): When adding multiple instances of a pass, use
20098 the pass's clone method, rather than relying on the XNEW/memcpy
20099 within the former make_pass_instance (now add_pass_instance).
20100 (pass_manager::pass_manager): When invoking next_pass_1, also supply
20101 the initial instance of the current pass within the pass manager.
20103 2013-08-05 David Malcolm <dmalcolm@redhat.com>
20105 This is the automated part of the conversion of passes from C
20106 structs to C++ classes.
20108 Patch autogenerated by refactor_passes.py from
20109 https://github.com/davidmalcolm/gcc-refactoring-scripts
20110 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
20112 * asan.c (pass_asan): Convert from a global struct to a subclass of
20113 gimple_opt_pass along with...
20114 (pass_data_asan): ...new pass_data instance and...
20115 (make_pass_asan): ...new function.
20116 (pass_asan_O0): Convert from a global struct to a subclass of
20117 gimple_opt_pass along with...
20118 (pass_data_asan_O0): ...new pass_data instance and...
20119 (make_pass_asan_O0): ...new function.
20120 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
20121 subclass of rtl_opt_pass along with...
20122 (pass_data_inc_dec): ...new pass_data instance and...
20123 (make_pass_inc_dec): ...new function.
20124 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
20125 a subclass of rtl_opt_pass along with...
20126 (pass_data_reorder_blocks): ...new pass_data instance and...
20127 (make_pass_reorder_blocks): ...new function.
20128 (pass_duplicate_computed_gotos): Convert from a global struct to a
20129 subclass of rtl_opt_pass along with...
20130 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
20131 (make_pass_duplicate_computed_gotos): ...new function.
20132 (pass_partition_blocks): Convert from a global struct to a subclass of
20133 rtl_opt_pass along with...
20134 (pass_data_partition_blocks): ...new pass_data instance and...
20135 (make_pass_partition_blocks): ...new function.
20136 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
20137 struct to a subclass of rtl_opt_pass along with...
20138 (pass_data_branch_target_load_optimize1): ...new pass_data instance
20140 (make_pass_branch_target_load_optimize1): ...new function.
20141 (pass_branch_target_load_optimize2): Convert from a global struct to a
20142 subclass of rtl_opt_pass along with...
20143 (pass_data_branch_target_load_optimize2): ...new pass_data instance
20145 (make_pass_branch_target_load_optimize2): ...new function.
20146 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
20147 of rtl_opt_pass along with...
20148 (pass_data_jump): ...new pass_data instance and...
20149 (make_pass_jump): ...new function.
20150 (pass_jump2): Convert from a global struct to a subclass of
20151 rtl_opt_pass along with...
20152 (pass_data_jump2): ...new pass_data instance and...
20153 (make_pass_jump2): ...new function.
20154 * cfgexpand.c (pass_expand): Convert from a global struct to a
20155 subclass of rtl_opt_pass along with...
20156 (pass_data_expand): ...new pass_data instance and...
20157 (make_pass_expand): ...new function.
20158 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
20159 of rtl_opt_pass along with...
20160 (pass_data_free_cfg): ...new pass_data instance and...
20161 (make_pass_free_cfg): ...new function.
20162 (pass_into_cfg_layout_mode): Convert from a global struct to a
20163 subclass of rtl_opt_pass along with...
20164 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
20165 (make_pass_into_cfg_layout_mode): ...new function.
20166 (pass_outof_cfg_layout_mode): Convert from a global struct to a
20167 subclass of rtl_opt_pass along with...
20168 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
20169 (make_pass_outof_cfg_layout_mode): ...new function.
20170 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
20171 struct to a subclass of gimple_opt_pass along with...
20172 (pass_data_build_cgraph_edges): ...new pass_data instance and...
20173 (make_pass_build_cgraph_edges): ...new function.
20174 (pass_rebuild_cgraph_edges): Convert from a global struct to a
20175 subclass of gimple_opt_pass along with...
20176 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
20177 (make_pass_rebuild_cgraph_edges): ...new function.
20178 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
20179 subclass of gimple_opt_pass along with...
20180 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
20182 (make_pass_remove_cgraph_callee_edges): ...new function.
20183 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
20184 struct to a subclass of rtl_opt_pass along with...
20185 (pass_data_stack_adjustments): ...new pass_data instance and...
20186 (make_pass_stack_adjustments): ...new function.
20187 * combine.c (pass_combine): Convert from a global struct to a subclass
20188 of rtl_opt_pass along with...
20189 (pass_data_combine): ...new pass_data instance and...
20190 (make_pass_combine): ...new function.
20191 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
20192 global struct to a subclass of rtl_opt_pass along with...
20193 (pass_data_compare_elim_after_reload): ...new pass_data instance
20195 (make_pass_compare_elim_after_reload): ...new function.
20196 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
20197 of rtl_opt_pass along with...
20198 (pass_data_rtl_cprop): ...new pass_data instance and...
20199 (make_pass_rtl_cprop): ...new function.
20200 * cse.c (pass_cse): Convert from a global struct to a subclass of
20201 rtl_opt_pass along with...
20202 (pass_data_cse): ...new pass_data instance and...
20203 (make_pass_cse): ...new function.
20204 (pass_cse2): Convert from a global struct to a subclass of
20205 rtl_opt_pass along with...
20206 (pass_data_cse2): ...new pass_data instance and...
20207 (make_pass_cse2): ...new function.
20208 (pass_cse_after_global_opts): Convert from a global struct to a
20209 subclass of rtl_opt_pass along with...
20210 (pass_data_cse_after_global_opts): ...new pass_data instance and...
20211 (make_pass_cse_after_global_opts): ...new function.
20212 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
20213 of rtl_opt_pass along with...
20214 (pass_data_ud_rtl_dce): ...new pass_data instance and...
20215 (make_pass_ud_rtl_dce): ...new function.
20216 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
20217 rtl_opt_pass along with...
20218 (pass_data_fast_rtl_dce): ...new pass_data instance and...
20219 (make_pass_fast_rtl_dce): ...new function.
20220 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
20221 a subclass of rtl_opt_pass along with...
20222 (pass_data_df_initialize_opt): ...new pass_data instance and...
20223 (make_pass_df_initialize_opt): ...new function.
20224 (pass_df_initialize_no_opt): Convert from a global struct to a
20225 subclass of rtl_opt_pass along with...
20226 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
20227 (make_pass_df_initialize_no_opt): ...new function.
20228 (pass_df_finish): Convert from a global struct to a subclass of
20229 rtl_opt_pass along with...
20230 (pass_data_df_finish): ...new pass_data instance and...
20231 (make_pass_df_finish): ...new function.
20232 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
20233 rtl_opt_pass along with...
20234 (pass_data_rtl_dse1): ...new pass_data instance and...
20235 (make_pass_rtl_dse1): ...new function.
20236 (pass_rtl_dse2): Convert from a global struct to a subclass of
20237 rtl_opt_pass along with...
20238 (pass_data_rtl_dse2): ...new pass_data instance and...
20239 (make_pass_rtl_dse2): ...new function.
20240 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
20241 subclass of rtl_opt_pass along with...
20242 (pass_data_dwarf2_frame): ...new pass_data instance and...
20243 (make_pass_dwarf2_frame): ...new function.
20244 * except.c (pass_set_nothrow_function_flags): Convert from a global
20245 struct to a subclass of rtl_opt_pass along with...
20246 (pass_data_set_nothrow_function_flags): ...new pass_data instance
20248 (make_pass_set_nothrow_function_flags): ...new function.
20249 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
20250 subclass of rtl_opt_pass along with...
20251 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
20253 (make_pass_convert_to_eh_region_ranges): ...new function.
20254 * final.c (pass_compute_alignments): Convert from a global struct to a
20255 subclass of rtl_opt_pass along with...
20256 (pass_data_compute_alignments): ...new pass_data instance and...
20257 (make_pass_compute_alignments): ...new function.
20258 (pass_final): Convert from a global struct to a subclass of
20259 rtl_opt_pass along with...
20260 (pass_data_final): ...new pass_data instance and...
20261 (make_pass_final): ...new function.
20262 (pass_shorten_branches): Convert from a global struct to a subclass of
20263 rtl_opt_pass along with...
20264 (pass_data_shorten_branches): ...new pass_data instance and...
20265 (make_pass_shorten_branches): ...new function.
20266 (pass_clean_state): Convert from a global struct to a subclass of
20267 rtl_opt_pass along with...
20268 (pass_data_clean_state): ...new pass_data instance and...
20269 (make_pass_clean_state): ...new function.
20270 * function.c (pass_instantiate_virtual_regs): Convert from a global
20271 struct to a subclass of rtl_opt_pass along with...
20272 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
20273 (make_pass_instantiate_virtual_regs): ...new function.
20274 (pass_leaf_regs): Convert from a global struct to a subclass of
20275 rtl_opt_pass along with...
20276 (pass_data_leaf_regs): ...new pass_data instance and...
20277 (make_pass_leaf_regs): ...new function.
20278 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
20279 subclass of rtl_opt_pass along with...
20280 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
20282 (make_pass_thread_prologue_and_epilogue): ...new function.
20283 (pass_match_asm_constraints): Convert from a global struct to a
20284 subclass of rtl_opt_pass along with...
20285 (pass_data_match_asm_constraints): ...new pass_data instance and...
20286 (make_pass_match_asm_constraints): ...new function.
20287 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
20288 subclass of rtl_opt_pass along with...
20289 (pass_data_rtl_fwprop): ...new pass_data instance and...
20290 (make_pass_rtl_fwprop): ...new function.
20291 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
20292 rtl_opt_pass along with...
20293 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
20294 (make_pass_rtl_fwprop_addr): ...new function.
20295 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
20296 rtl_opt_pass along with...
20297 (pass_data_rtl_pre): ...new pass_data instance and...
20298 (make_pass_rtl_pre): ...new function.
20299 (pass_rtl_hoist): Convert from a global struct to a subclass of
20300 rtl_opt_pass along with...
20301 (pass_data_rtl_hoist): ...new pass_data instance and...
20302 (make_pass_rtl_hoist): ...new function.
20303 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
20304 subclass of gimple_opt_pass along with...
20305 (pass_data_lower_cf): ...new pass_data instance and...
20306 (make_pass_lower_cf): ...new function.
20307 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
20308 from a global struct to a subclass of gimple_opt_pass along with...
20309 (pass_data_strength_reduction): ...new pass_data instance and...
20310 (make_pass_strength_reduction): ...new function.
20311 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
20312 of rtl_opt_pass along with...
20313 (pass_data_rtl_ifcvt): ...new pass_data instance and...
20314 (make_pass_rtl_ifcvt): ...new function.
20315 (pass_if_after_combine): Convert from a global struct to a subclass of
20316 rtl_opt_pass along with...
20317 (pass_data_if_after_combine): ...new pass_data instance and...
20318 (make_pass_if_after_combine): ...new function.
20319 (pass_if_after_reload): Convert from a global struct to a subclass of
20320 rtl_opt_pass along with...
20321 (pass_data_if_after_reload): ...new pass_data instance and...
20322 (make_pass_if_after_reload): ...new function.
20323 * init-regs.c (pass_initialize_regs): Convert from a global struct to
20324 a subclass of rtl_opt_pass along with...
20325 (pass_data_initialize_regs): ...new pass_data instance and...
20326 (make_pass_initialize_regs): ...new function.
20327 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
20328 of ipa_opt_pass_d along with...
20329 (pass_data_ipa_cp): ...new pass_data instance and...
20330 (make_pass_ipa_cp): ...new function.
20331 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
20332 global struct to a subclass of gimple_opt_pass along with...
20333 (pass_data_inline_parameters): ...new pass_data instance and...
20334 (make_pass_inline_parameters): ...new function.
20335 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
20336 subclass of gimple_opt_pass along with...
20337 (pass_data_early_inline): ...new pass_data instance and...
20338 (make_pass_early_inline): ...new function.
20339 (pass_ipa_inline): Convert from a global struct to a subclass of
20340 ipa_opt_pass_d along with...
20341 (pass_data_ipa_inline): ...new pass_data instance and...
20342 (make_pass_ipa_inline): ...new function.
20343 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
20344 struct to a subclass of gimple_opt_pass along with...
20345 (pass_data_local_pure_const): ...new pass_data instance and...
20346 (make_pass_local_pure_const): ...new function.
20347 (pass_ipa_pure_const): Convert from a global struct to a subclass of
20348 ipa_opt_pass_d along with...
20349 (pass_data_ipa_pure_const): ...new pass_data instance and...
20350 (make_pass_ipa_pure_const): ...new function.
20351 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
20352 to a subclass of ipa_opt_pass_d along with...
20353 (pass_data_ipa_reference): ...new pass_data instance and...
20354 (make_pass_ipa_reference): ...new function.
20355 * ipa-split.c (pass_split_functions): Convert from a global struct to
20356 a subclass of gimple_opt_pass along with...
20357 (pass_data_split_functions): ...new pass_data instance and...
20358 (make_pass_split_functions): ...new function.
20359 (pass_feedback_split_functions): Convert from a global struct to a
20360 subclass of gimple_opt_pass along with...
20361 (pass_data_feedback_split_functions): ...new pass_data instance and...
20362 (make_pass_feedback_split_functions): ...new function.
20363 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
20364 global struct to a subclass of simple_ipa_opt_pass along with...
20365 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
20367 (make_pass_ipa_function_and_variable_visibility): ...new function.
20368 (pass_ipa_free_inline_summary): Convert from a global struct to a
20369 subclass of simple_ipa_opt_pass along with...
20370 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
20371 (make_pass_ipa_free_inline_summary): ...new function.
20372 (pass_ipa_whole_program_visibility): Convert from a global struct to a
20373 subclass of ipa_opt_pass_d along with...
20374 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
20376 (make_pass_ipa_whole_program_visibility): ...new function.
20377 (pass_ipa_profile): Convert from a global struct to a subclass of
20378 ipa_opt_pass_d along with...
20379 (pass_data_ipa_profile): ...new pass_data instance and...
20380 (make_pass_ipa_profile): ...new function.
20381 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
20382 ipa_opt_pass_d along with...
20383 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
20384 (make_pass_ipa_cdtor_merge): ...new function.
20385 * ira.c (pass_ira): Convert from a global struct to a subclass of
20386 rtl_opt_pass along with...
20387 (pass_data_ira): ...new pass_data instance and...
20388 (make_pass_ira): ...new function.
20389 (pass_reload): Convert from a global struct to a subclass of
20390 rtl_opt_pass along with...
20391 (pass_data_reload): ...new pass_data instance and...
20392 (make_pass_reload): ...new function.
20393 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
20394 subclass of rtl_opt_pass along with...
20395 (pass_data_cleanup_barriers): ...new pass_data instance and...
20396 (make_pass_cleanup_barriers): ...new function.
20397 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
20398 of rtl_opt_pass along with...
20399 (pass_data_loop2): ...new pass_data instance and...
20400 (make_pass_loop2): ...new function.
20401 (pass_rtl_loop_init): Convert from a global struct to a subclass of
20402 rtl_opt_pass along with...
20403 (pass_data_rtl_loop_init): ...new pass_data instance and...
20404 (make_pass_rtl_loop_init): ...new function.
20405 (pass_rtl_loop_done): Convert from a global struct to a subclass of
20406 rtl_opt_pass along with...
20407 (pass_data_rtl_loop_done): ...new pass_data instance and...
20408 (make_pass_rtl_loop_done): ...new function.
20409 (pass_rtl_move_loop_invariants): Convert from a global struct to a
20410 subclass of rtl_opt_pass along with...
20411 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
20412 (make_pass_rtl_move_loop_invariants): ...new function.
20413 (pass_rtl_unswitch): Convert from a global struct to a subclass of
20414 rtl_opt_pass along with...
20415 (pass_data_rtl_unswitch): ...new pass_data instance and...
20416 (make_pass_rtl_unswitch): ...new function.
20417 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
20418 subclass of rtl_opt_pass along with...
20419 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
20421 (make_pass_rtl_unroll_and_peel_loops): ...new function.
20422 (pass_rtl_doloop): Convert from a global struct to a subclass of
20423 rtl_opt_pass along with...
20424 (pass_data_rtl_doloop): ...new pass_data instance and...
20425 (make_pass_rtl_doloop): ...new function.
20426 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
20427 a subclass of rtl_opt_pass along with...
20428 (pass_data_lower_subreg): ...new pass_data instance and...
20429 (make_pass_lower_subreg): ...new function.
20430 (pass_lower_subreg2): Convert from a global struct to a subclass of
20431 rtl_opt_pass along with...
20432 (pass_data_lower_subreg2): ...new pass_data instance and...
20433 (make_pass_lower_subreg2): ...new function.
20434 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
20435 struct to a subclass of ipa_opt_pass_d along with...
20436 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
20437 (make_pass_ipa_lto_gimple_out): ...new function.
20438 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
20439 of ipa_opt_pass_d along with...
20440 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
20441 (make_pass_ipa_lto_finish_out): ...new function.
20442 * mode-switching.c (pass_mode_switching): Convert from a global struct
20443 to a subclass of rtl_opt_pass along with...
20444 (pass_data_mode_switching): ...new pass_data instance and...
20445 (make_pass_mode_switching): ...new function.
20446 * modulo-sched.c (pass_sms): Convert from a global struct to a
20447 subclass of rtl_opt_pass along with...
20448 (pass_data_sms): ...new pass_data instance and...
20449 (make_pass_sms): ...new function.
20450 * omp-low.c (pass_expand_omp): Convert from a global struct to a
20451 subclass of gimple_opt_pass along with...
20452 (pass_data_expand_omp): ...new pass_data instance and...
20453 (make_pass_expand_omp): ...new function.
20454 (pass_lower_omp): Convert from a global struct to a subclass of
20455 gimple_opt_pass along with...
20456 (pass_data_lower_omp): ...new pass_data instance and...
20457 (make_pass_lower_omp): ...new function.
20458 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
20459 of gimple_opt_pass along with...
20460 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
20461 (make_pass_diagnose_omp_blocks): ...new function.
20462 * passes.c (pass_early_local_passes): Convert from a global struct to
20463 a subclass of simple_ipa_opt_pass along with...
20464 (pass_data_early_local_passes): ...new pass_data instance and...
20465 (make_pass_early_local_passes): ...new function.
20466 (pass_all_early_optimizations): Convert from a global struct to a
20467 subclass of gimple_opt_pass along with...
20468 (pass_data_all_early_optimizations): ...new pass_data instance and...
20469 (make_pass_all_early_optimizations): ...new function.
20470 (pass_all_optimizations): Convert from a global struct to a subclass
20471 of gimple_opt_pass along with...
20472 (pass_data_all_optimizations): ...new pass_data instance and...
20473 (make_pass_all_optimizations): ...new function.
20474 (pass_all_optimizations_g): Convert from a global struct to a subclass
20475 of gimple_opt_pass along with...
20476 (pass_data_all_optimizations_g): ...new pass_data instance and...
20477 (make_pass_all_optimizations_g): ...new function.
20478 (pass_rest_of_compilation): Convert from a global struct to a subclass
20479 of rtl_opt_pass along with...
20480 (pass_data_rest_of_compilation): ...new pass_data instance and...
20481 (make_pass_rest_of_compilation): ...new function.
20482 (pass_postreload): Convert from a global struct to a subclass of
20483 rtl_opt_pass along with...
20484 (pass_data_postreload): ...new pass_data instance and...
20485 (make_pass_postreload): ...new function.
20486 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
20487 subclass of rtl_opt_pass along with...
20488 (pass_data_gcse2): ...new pass_data instance and...
20489 (make_pass_gcse2): ...new function.
20490 * postreload.c (pass_postreload_cse): Convert from a global struct to
20491 a subclass of rtl_opt_pass along with...
20492 (pass_data_postreload_cse): ...new pass_data instance and...
20493 (make_pass_postreload_cse): ...new function.
20494 * predict.c (pass_profile): Convert from a global struct to a subclass
20495 of gimple_opt_pass along with...
20496 (pass_data_profile): ...new pass_data instance and...
20497 (make_pass_profile): ...new function.
20498 (pass_strip_predict_hints): Convert from a global struct to a subclass
20499 of gimple_opt_pass along with...
20500 (pass_data_strip_predict_hints): ...new pass_data instance and...
20501 (make_pass_strip_predict_hints): ...new function.
20502 * recog.c (pass_peephole2): Convert from a global struct to a subclass
20503 of rtl_opt_pass along with...
20504 (pass_data_peephole2): ...new pass_data instance and...
20505 (make_pass_peephole2): ...new function.
20506 (pass_split_all_insns): Convert from a global struct to a subclass of
20507 rtl_opt_pass along with...
20508 (pass_data_split_all_insns): ...new pass_data instance and...
20509 (make_pass_split_all_insns): ...new function.
20510 (pass_split_after_reload): Convert from a global struct to a subclass
20511 of rtl_opt_pass along with...
20512 (pass_data_split_after_reload): ...new pass_data instance and...
20513 (make_pass_split_after_reload): ...new function.
20514 (pass_split_before_regstack): Convert from a global struct to a
20515 subclass of rtl_opt_pass along with...
20516 (pass_data_split_before_regstack): ...new pass_data instance and...
20517 (make_pass_split_before_regstack): ...new function.
20518 (pass_split_before_sched2): Convert from a global struct to a subclass
20519 of rtl_opt_pass along with...
20520 (pass_data_split_before_sched2): ...new pass_data instance and...
20521 (make_pass_split_before_sched2): ...new function.
20522 (pass_split_for_shorten_branches): Convert from a global struct to a
20523 subclass of rtl_opt_pass along with...
20524 (pass_data_split_for_shorten_branches): ...new pass_data instance
20526 (make_pass_split_for_shorten_branches): ...new function.
20527 * ree.c (pass_ree): Convert from a global struct to a subclass of
20528 rtl_opt_pass along with...
20529 (pass_data_ree): ...new pass_data instance and...
20530 (make_pass_ree): ...new function.
20531 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
20532 subclass of rtl_opt_pass along with...
20533 (pass_data_stack_regs): ...new pass_data instance and...
20534 (make_pass_stack_regs): ...new function.
20535 (pass_stack_regs_run): Convert from a global struct to a subclass of
20536 rtl_opt_pass along with...
20537 (pass_data_stack_regs_run): ...new pass_data instance and...
20538 (make_pass_stack_regs_run): ...new function.
20539 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
20540 subclass of rtl_opt_pass along with...
20541 (pass_data_cprop_hardreg): ...new pass_data instance and...
20542 (make_pass_cprop_hardreg): ...new function.
20543 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
20544 subclass of rtl_opt_pass along with...
20545 (pass_data_reginfo_init): ...new pass_data instance and...
20546 (make_pass_reginfo_init): ...new function.
20547 * regmove.c (pass_regmove): Convert from a global struct to a subclass
20548 of rtl_opt_pass along with...
20549 (pass_data_regmove): ...new pass_data instance and...
20550 (make_pass_regmove): ...new function.
20551 * regrename.c (pass_regrename): Convert from a global struct to a
20552 subclass of rtl_opt_pass along with...
20553 (pass_data_regrename): ...new pass_data instance and...
20554 (make_pass_regrename): ...new function.
20555 * reorg.c (pass_delay_slots): Convert from a global struct to a
20556 subclass of rtl_opt_pass along with...
20557 (pass_data_delay_slots): ...new pass_data instance and...
20558 (make_pass_delay_slots): ...new function.
20559 (pass_machine_reorg): Convert from a global struct to a subclass of
20560 rtl_opt_pass along with...
20561 (pass_data_machine_reorg): ...new pass_data instance and...
20562 (make_pass_machine_reorg): ...new function.
20563 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
20564 of rtl_opt_pass along with...
20565 (pass_data_sched): ...new pass_data instance and...
20566 (make_pass_sched): ...new function.
20567 (pass_sched2): Convert from a global struct to a subclass of
20568 rtl_opt_pass along with...
20569 (pass_data_sched2): ...new pass_data instance and...
20570 (make_pass_sched2): ...new function.
20571 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
20572 to a subclass of rtl_opt_pass along with...
20573 (pass_data_stack_ptr_mod): ...new pass_data instance and...
20574 (make_pass_stack_ptr_mod): ...new function.
20575 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
20576 to a subclass of rtl_opt_pass along with...
20577 (pass_data_rtl_store_motion): ...new pass_data instance and...
20578 (make_pass_rtl_store_motion): ...new function.
20579 * tracer.c (pass_tracer): Convert from a global struct to a subclass
20580 of gimple_opt_pass along with...
20581 (pass_data_tracer): ...new pass_data instance and...
20582 (make_pass_tracer): ...new function.
20583 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
20584 to a subclass of gimple_opt_pass along with...
20585 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
20586 (make_pass_diagnose_tm_blocks): ...new function.
20587 (pass_lower_tm): Convert from a global struct to a subclass of
20588 gimple_opt_pass along with...
20589 (pass_data_lower_tm): ...new pass_data instance and...
20590 (make_pass_lower_tm): ...new function.
20591 (pass_tm_init): Convert from a global struct to a subclass of
20592 gimple_opt_pass along with...
20593 (pass_data_tm_init): ...new pass_data instance and...
20594 (make_pass_tm_init): ...new function.
20595 (pass_tm_mark): Convert from a global struct to a subclass of
20596 gimple_opt_pass along with...
20597 (pass_data_tm_mark): ...new pass_data instance and...
20598 (make_pass_tm_mark): ...new function.
20599 (pass_tm_edges): Convert from a global struct to a subclass of
20600 gimple_opt_pass along with...
20601 (pass_data_tm_edges): ...new pass_data instance and...
20602 (make_pass_tm_edges): ...new function.
20603 (pass_tm_memopt): Convert from a global struct to a subclass of
20604 gimple_opt_pass along with...
20605 (pass_data_tm_memopt): ...new pass_data instance and...
20606 (make_pass_tm_memopt): ...new function.
20607 (pass_ipa_tm): Convert from a global struct to a subclass of
20608 simple_ipa_opt_pass along with...
20609 (pass_data_ipa_tm): ...new pass_data instance and...
20610 (make_pass_ipa_tm): ...new function.
20611 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
20612 subclass of gimple_opt_pass along with...
20613 (pass_data_call_cdce): ...new pass_data instance and...
20614 (make_pass_call_cdce): ...new function.
20615 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
20616 subclass of gimple_opt_pass along with...
20617 (pass_data_build_cfg): ...new pass_data instance and...
20618 (make_pass_build_cfg): ...new function.
20619 (pass_split_crit_edges): Convert from a global struct to a subclass of
20620 gimple_opt_pass along with...
20621 (pass_data_split_crit_edges): ...new pass_data instance and...
20622 (make_pass_split_crit_edges): ...new function.
20623 (pass_warn_function_return): Convert from a global struct to a
20624 subclass of gimple_opt_pass along with...
20625 (pass_data_warn_function_return): ...new pass_data instance and...
20626 (make_pass_warn_function_return): ...new function.
20627 (pass_warn_function_noreturn): Convert from a global struct to a
20628 subclass of gimple_opt_pass along with...
20629 (pass_data_warn_function_noreturn): ...new pass_data instance and...
20630 (make_pass_warn_function_noreturn): ...new function.
20631 (pass_warn_unused_result): Convert from a global struct to a subclass
20632 of gimple_opt_pass along with...
20633 (pass_data_warn_unused_result): ...new pass_data instance and...
20634 (make_pass_warn_unused_result): ...new function.
20635 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
20636 a subclass of gimple_opt_pass along with...
20637 (pass_data_merge_phi): ...new pass_data instance and...
20638 (make_pass_merge_phi): ...new function.
20639 * tree-complex.c (pass_lower_complex): Convert from a global struct to
20640 a subclass of gimple_opt_pass along with...
20641 (pass_data_lower_complex): ...new pass_data instance and...
20642 (make_pass_lower_complex): ...new function.
20643 (pass_lower_complex_O0): Convert from a global struct to a subclass of
20644 gimple_opt_pass along with...
20645 (pass_data_lower_complex_O0): ...new pass_data instance and...
20646 (make_pass_lower_complex_O0): ...new function.
20647 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
20648 subclass of gimple_opt_pass along with...
20649 (pass_data_lower_eh): ...new pass_data instance and...
20650 (make_pass_lower_eh): ...new function.
20651 (pass_refactor_eh): Convert from a global struct to a subclass of
20652 gimple_opt_pass along with...
20653 (pass_data_refactor_eh): ...new pass_data instance and...
20654 (make_pass_refactor_eh): ...new function.
20655 (pass_lower_resx): Convert from a global struct to a subclass of
20656 gimple_opt_pass along with...
20657 (pass_data_lower_resx): ...new pass_data instance and...
20658 (make_pass_lower_resx): ...new function.
20659 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
20660 of gimple_opt_pass along with...
20661 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
20662 (make_pass_lower_eh_dispatch): ...new function.
20663 (pass_cleanup_eh): Convert from a global struct to a subclass of
20664 gimple_opt_pass along with...
20665 (pass_data_cleanup_eh): ...new pass_data instance and...
20666 (make_pass_cleanup_eh): ...new function.
20667 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
20668 to a subclass of simple_ipa_opt_pass along with...
20669 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
20670 (make_pass_ipa_lower_emutls): ...new function.
20671 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
20672 a subclass of gimple_opt_pass along with...
20673 (pass_data_if_conversion): ...new pass_data instance and...
20674 (make_pass_if_conversion): ...new function.
20675 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
20676 subclass of gimple_opt_pass along with...
20677 (pass_data_build_ssa): ...new pass_data instance and...
20678 (make_pass_build_ssa): ...new function.
20679 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
20680 global struct to a subclass of gimple_opt_pass along with...
20681 (pass_data_loop_distribution): ...new pass_data instance and...
20682 (make_pass_loop_distribution): ...new function.
20683 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
20684 subclass of gimple_opt_pass along with...
20685 (pass_data_mudflap_1): ...new pass_data instance and...
20686 (make_pass_mudflap_1): ...new function.
20687 (pass_mudflap_2): Convert from a global struct to a subclass of
20688 gimple_opt_pass along with...
20689 (pass_data_mudflap_2): ...new pass_data instance and...
20690 (make_pass_mudflap_2): ...new function.
20691 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
20692 subclass of gimple_opt_pass along with...
20693 (pass_data_mudflap_1): ...new pass_data instance and...
20694 (make_pass_mudflap_1): ...new function.
20695 (pass_mudflap_2): Convert from a global struct to a subclass of
20696 gimple_opt_pass along with...
20697 (pass_data_mudflap_2): ...new pass_data instance and...
20698 (make_pass_mudflap_2): ...new function.
20699 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
20700 gimple_opt_pass along with...
20701 (pass_data_nrv): ...new pass_data instance and...
20702 (make_pass_nrv): ...new function.
20703 (pass_return_slot): Convert from a global struct to a subclass of
20704 gimple_opt_pass along with...
20705 (pass_data_return_slot): ...new pass_data instance and...
20706 (make_pass_return_slot): ...new function.
20707 * tree-object-size.c (pass_object_sizes): Convert from a global struct
20708 to a subclass of gimple_opt_pass along with...
20709 (pass_data_object_sizes): ...new pass_data instance and...
20710 (make_pass_object_sizes): ...new function.
20711 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
20712 global struct to a subclass of gimple_opt_pass along with...
20713 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
20715 (make_pass_cleanup_cfg_post_optimizing): ...new function.
20716 (pass_fixup_cfg): Convert from a global struct to a subclass of
20717 gimple_opt_pass along with...
20718 (pass_data_fixup_cfg): ...new pass_data instance and...
20719 (make_pass_fixup_cfg): ...new function.
20720 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
20721 (make_pass_mudflap_1): ...new function.
20722 (pass_mudflap_2): Replace declaration with that of...
20723 (make_pass_mudflap_2): ...new function.
20724 (pass_asan): Replace declaration with that of...
20725 (make_pass_asan): ...new function.
20726 (pass_asan_O0): Replace declaration with that of...
20727 (make_pass_asan_O0): ...new function.
20728 (pass_tsan): Replace declaration with that of...
20729 (make_pass_tsan): ...new function.
20730 (pass_tsan_O0): Replace declaration with that of...
20731 (make_pass_tsan_O0): ...new function.
20732 (pass_lower_cf): Replace declaration with that of...
20733 (make_pass_lower_cf): ...new function.
20734 (pass_refactor_eh): Replace declaration with that of...
20735 (make_pass_refactor_eh): ...new function.
20736 (pass_lower_eh): Replace declaration with that of...
20737 (make_pass_lower_eh): ...new function.
20738 (pass_lower_eh_dispatch): Replace declaration with that of...
20739 (make_pass_lower_eh_dispatch): ...new function.
20740 (pass_lower_resx): Replace declaration with that of...
20741 (make_pass_lower_resx): ...new function.
20742 (pass_build_cfg): Replace declaration with that of...
20743 (make_pass_build_cfg): ...new function.
20744 (pass_early_tree_profile): Replace declaration with that of...
20745 (make_pass_early_tree_profile): ...new function.
20746 (pass_cleanup_eh): Replace declaration with that of...
20747 (make_pass_cleanup_eh): ...new function.
20748 (pass_sra): Replace declaration with that of...
20749 (make_pass_sra): ...new function.
20750 (pass_sra_early): Replace declaration with that of...
20751 (make_pass_sra_early): ...new function.
20752 (pass_early_ipa_sra): Replace declaration with that of...
20753 (make_pass_early_ipa_sra): ...new function.
20754 (pass_tail_recursion): Replace declaration with that of...
20755 (make_pass_tail_recursion): ...new function.
20756 (pass_tail_calls): Replace declaration with that of...
20757 (make_pass_tail_calls): ...new function.
20758 (pass_tree_loop): Replace declaration with that of...
20759 (make_pass_tree_loop): ...new function.
20760 (pass_tree_loop_init): Replace declaration with that of...
20761 (make_pass_tree_loop_init): ...new function.
20762 (pass_lim): Replace declaration with that of...
20763 (make_pass_lim): ...new function.
20764 (pass_tree_unswitch): Replace declaration with that of...
20765 (make_pass_tree_unswitch): ...new function.
20766 (pass_predcom): Replace declaration with that of...
20767 (make_pass_predcom): ...new function.
20768 (pass_iv_canon): Replace declaration with that of...
20769 (make_pass_iv_canon): ...new function.
20770 (pass_scev_cprop): Replace declaration with that of...
20771 (make_pass_scev_cprop): ...new function.
20772 (pass_empty_loop): Replace declaration with that of...
20773 (make_pass_empty_loop): ...new function.
20774 (pass_record_bounds): Replace declaration with that of...
20775 (make_pass_record_bounds): ...new function.
20776 (pass_graphite): Replace declaration with that of...
20777 (make_pass_graphite): ...new function.
20778 (pass_graphite_transforms): Replace declaration with that of...
20779 (make_pass_graphite_transforms): ...new function.
20780 (pass_if_conversion): Replace declaration with that of...
20781 (make_pass_if_conversion): ...new function.
20782 (pass_loop_distribution): Replace declaration with that of...
20783 (make_pass_loop_distribution): ...new function.
20784 (pass_vectorize): Replace declaration with that of...
20785 (make_pass_vectorize): ...new function.
20786 (pass_slp_vectorize): Replace declaration with that of...
20787 (make_pass_slp_vectorize): ...new function.
20788 (pass_complete_unroll): Replace declaration with that of...
20789 (make_pass_complete_unroll): ...new function.
20790 (pass_complete_unrolli): Replace declaration with that of...
20791 (make_pass_complete_unrolli): ...new function.
20792 (pass_parallelize_loops): Replace declaration with that of...
20793 (make_pass_parallelize_loops): ...new function.
20794 (pass_loop_prefetch): Replace declaration with that of...
20795 (make_pass_loop_prefetch): ...new function.
20796 (pass_iv_optimize): Replace declaration with that of...
20797 (make_pass_iv_optimize): ...new function.
20798 (pass_tree_loop_done): Replace declaration with that of...
20799 (make_pass_tree_loop_done): ...new function.
20800 (pass_ch): Replace declaration with that of...
20801 (make_pass_ch): ...new function.
20802 (pass_ccp): Replace declaration with that of...
20803 (make_pass_ccp): ...new function.
20804 (pass_phi_only_cprop): Replace declaration with that of...
20805 (make_pass_phi_only_cprop): ...new function.
20806 (pass_build_ssa): Replace declaration with that of...
20807 (make_pass_build_ssa): ...new function.
20808 (pass_build_alias): Replace declaration with that of...
20809 (make_pass_build_alias): ...new function.
20810 (pass_build_ealias): Replace declaration with that of...
20811 (make_pass_build_ealias): ...new function.
20812 (pass_dominator): Replace declaration with that of...
20813 (make_pass_dominator): ...new function.
20814 (pass_dce): Replace declaration with that of...
20815 (make_pass_dce): ...new function.
20816 (pass_dce_loop): Replace declaration with that of...
20817 (make_pass_dce_loop): ...new function.
20818 (pass_cd_dce): Replace declaration with that of...
20819 (make_pass_cd_dce): ...new function.
20820 (pass_call_cdce): Replace declaration with that of...
20821 (make_pass_call_cdce): ...new function.
20822 (pass_merge_phi): Replace declaration with that of...
20823 (make_pass_merge_phi): ...new function.
20824 (pass_split_crit_edges): Replace declaration with that of...
20825 (make_pass_split_crit_edges): ...new function.
20826 (pass_pre): Replace declaration with that of...
20827 (make_pass_pre): ...new function.
20828 (pass_profile): Replace declaration with that of...
20829 (make_pass_profile): ...new function.
20830 (pass_strip_predict_hints): Replace declaration with that of...
20831 (make_pass_strip_predict_hints): ...new function.
20832 (pass_lower_complex_O0): Replace declaration with that of...
20833 (make_pass_lower_complex_O0): ...new function.
20834 (pass_lower_complex): Replace declaration with that of...
20835 (make_pass_lower_complex): ...new function.
20836 (pass_lower_vector): Replace declaration with that of...
20837 (make_pass_lower_vector): ...new function.
20838 (pass_lower_vector_ssa): Replace declaration with that of...
20839 (make_pass_lower_vector_ssa): ...new function.
20840 (pass_lower_omp): Replace declaration with that of...
20841 (make_pass_lower_omp): ...new function.
20842 (pass_diagnose_omp_blocks): Replace declaration with that of...
20843 (make_pass_diagnose_omp_blocks): ...new function.
20844 (pass_expand_omp): Replace declaration with that of...
20845 (make_pass_expand_omp): ...new function.
20846 (pass_expand_omp_ssa): Replace declaration with that of...
20847 (make_pass_expand_omp_ssa): ...new function.
20848 (pass_object_sizes): Replace declaration with that of...
20849 (make_pass_object_sizes): ...new function.
20850 (pass_strlen): Replace declaration with that of...
20851 (make_pass_strlen): ...new function.
20852 (pass_fold_builtins): Replace declaration with that of...
20853 (make_pass_fold_builtins): ...new function.
20854 (pass_stdarg): Replace declaration with that of...
20855 (make_pass_stdarg): ...new function.
20856 (pass_early_warn_uninitialized): Replace declaration with that of...
20857 (make_pass_early_warn_uninitialized): ...new function.
20858 (pass_late_warn_uninitialized): Replace declaration with that of...
20859 (make_pass_late_warn_uninitialized): ...new function.
20860 (pass_cse_reciprocals): Replace declaration with that of...
20861 (make_pass_cse_reciprocals): ...new function.
20862 (pass_cse_sincos): Replace declaration with that of...
20863 (make_pass_cse_sincos): ...new function.
20864 (pass_optimize_bswap): Replace declaration with that of...
20865 (make_pass_optimize_bswap): ...new function.
20866 (pass_optimize_widening_mul): Replace declaration with that of...
20867 (make_pass_optimize_widening_mul): ...new function.
20868 (pass_warn_function_return): Replace declaration with that of...
20869 (make_pass_warn_function_return): ...new function.
20870 (pass_warn_function_noreturn): Replace declaration with that of...
20871 (make_pass_warn_function_noreturn): ...new function.
20872 (pass_cselim): Replace declaration with that of...
20873 (make_pass_cselim): ...new function.
20874 (pass_phiopt): Replace declaration with that of...
20875 (make_pass_phiopt): ...new function.
20876 (pass_forwprop): Replace declaration with that of...
20877 (make_pass_forwprop): ...new function.
20878 (pass_phiprop): Replace declaration with that of...
20879 (make_pass_phiprop): ...new function.
20880 (pass_tree_ifcombine): Replace declaration with that of...
20881 (make_pass_tree_ifcombine): ...new function.
20882 (pass_dse): Replace declaration with that of...
20883 (make_pass_dse): ...new function.
20884 (pass_nrv): Replace declaration with that of...
20885 (make_pass_nrv): ...new function.
20886 (pass_rename_ssa_copies): Replace declaration with that of...
20887 (make_pass_rename_ssa_copies): ...new function.
20888 (pass_sink_code): Replace declaration with that of...
20889 (make_pass_sink_code): ...new function.
20890 (pass_fre): Replace declaration with that of...
20891 (make_pass_fre): ...new function.
20892 (pass_check_data_deps): Replace declaration with that of...
20893 (make_pass_check_data_deps): ...new function.
20894 (pass_copy_prop): Replace declaration with that of...
20895 (make_pass_copy_prop): ...new function.
20896 (pass_vrp): Replace declaration with that of...
20897 (make_pass_vrp): ...new function.
20898 (pass_uncprop): Replace declaration with that of...
20899 (make_pass_uncprop): ...new function.
20900 (pass_return_slot): Replace declaration with that of...
20901 (make_pass_return_slot): ...new function.
20902 (pass_reassoc): Replace declaration with that of...
20903 (make_pass_reassoc): ...new function.
20904 (pass_rebuild_cgraph_edges): Replace declaration with that of...
20905 (make_pass_rebuild_cgraph_edges): ...new function.
20906 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
20907 (make_pass_remove_cgraph_callee_edges): ...new function.
20908 (pass_build_cgraph_edges): Replace declaration with that of...
20909 (make_pass_build_cgraph_edges): ...new function.
20910 (pass_local_pure_const): Replace declaration with that of...
20911 (make_pass_local_pure_const): ...new function.
20912 (pass_tracer): Replace declaration with that of...
20913 (make_pass_tracer): ...new function.
20914 (pass_warn_unused_result): Replace declaration with that of...
20915 (make_pass_warn_unused_result): ...new function.
20916 (pass_diagnose_tm_blocks): Replace declaration with that of...
20917 (make_pass_diagnose_tm_blocks): ...new function.
20918 (pass_lower_tm): Replace declaration with that of...
20919 (make_pass_lower_tm): ...new function.
20920 (pass_tm_init): Replace declaration with that of...
20921 (make_pass_tm_init): ...new function.
20922 (pass_tm_mark): Replace declaration with that of...
20923 (make_pass_tm_mark): ...new function.
20924 (pass_tm_memopt): Replace declaration with that of...
20925 (make_pass_tm_memopt): ...new function.
20926 (pass_tm_edges): Replace declaration with that of...
20927 (make_pass_tm_edges): ...new function.
20928 (pass_split_functions): Replace declaration with that of...
20929 (make_pass_split_functions): ...new function.
20930 (pass_feedback_split_functions): Replace declaration with that of...
20931 (make_pass_feedback_split_functions): ...new function.
20932 (pass_strength_reduction): Replace declaration with that of...
20933 (make_pass_strength_reduction): ...new function.
20934 (pass_ipa_lower_emutls): Replace declaration with that of...
20935 (make_pass_ipa_lower_emutls): ...new function.
20936 (pass_ipa_function_and_variable_visibility): Replace declaration with
20938 (make_pass_ipa_function_and_variable_visibility): ...new function.
20939 (pass_ipa_tree_profile): Replace declaration with that of...
20940 (make_pass_ipa_tree_profile): ...new function.
20941 (pass_early_local_passes): Replace declaration with that of...
20942 (make_pass_early_local_passes): ...new function.
20943 (pass_ipa_whole_program_visibility): Replace declaration with that
20945 (make_pass_ipa_whole_program_visibility): ...new function.
20946 (pass_ipa_lto_gimple_out): Replace declaration with that of...
20947 (make_pass_ipa_lto_gimple_out): ...new function.
20948 (pass_ipa_increase_alignment): Replace declaration with that of...
20949 (make_pass_ipa_increase_alignment): ...new function.
20950 (pass_ipa_inline): Replace declaration with that of...
20951 (make_pass_ipa_inline): ...new function.
20952 (pass_ipa_free_lang_data): Replace declaration with that of...
20953 (make_pass_ipa_free_lang_data): ...new function.
20954 (pass_ipa_free_inline_summary): Replace declaration with that of...
20955 (make_pass_ipa_free_inline_summary): ...new function.
20956 (pass_ipa_cp): Replace declaration with that of...
20957 (make_pass_ipa_cp): ...new function.
20958 (pass_ipa_reference): Replace declaration with that of...
20959 (make_pass_ipa_reference): ...new function.
20960 (pass_ipa_pure_const): Replace declaration with that of...
20961 (make_pass_ipa_pure_const): ...new function.
20962 (pass_ipa_pta): Replace declaration with that of...
20963 (make_pass_ipa_pta): ...new function.
20964 (pass_ipa_lto_finish_out): Replace declaration with that of...
20965 (make_pass_ipa_lto_finish_out): ...new function.
20966 (pass_ipa_tm): Replace declaration with that of...
20967 (make_pass_ipa_tm): ...new function.
20968 (pass_ipa_profile): Replace declaration with that of...
20969 (make_pass_ipa_profile): ...new function.
20970 (pass_ipa_cdtor_merge): Replace declaration with that of...
20971 (make_pass_ipa_cdtor_merge): ...new function.
20972 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
20974 (make_pass_cleanup_cfg_post_optimizing): ...new function.
20975 (pass_init_datastructures): Replace declaration with that of...
20976 (make_pass_init_datastructures): ...new function.
20977 (pass_fixup_cfg): Replace declaration with that of...
20978 (make_pass_fixup_cfg): ...new function.
20979 (pass_expand): Replace declaration with that of...
20980 (make_pass_expand): ...new function.
20981 (pass_instantiate_virtual_regs): Replace declaration with that of...
20982 (make_pass_instantiate_virtual_regs): ...new function.
20983 (pass_rtl_fwprop): Replace declaration with that of...
20984 (make_pass_rtl_fwprop): ...new function.
20985 (pass_rtl_fwprop_addr): Replace declaration with that of...
20986 (make_pass_rtl_fwprop_addr): ...new function.
20987 (pass_jump): Replace declaration with that of...
20988 (make_pass_jump): ...new function.
20989 (pass_jump2): Replace declaration with that of...
20990 (make_pass_jump2): ...new function.
20991 (pass_lower_subreg): Replace declaration with that of...
20992 (make_pass_lower_subreg): ...new function.
20993 (pass_cse): Replace declaration with that of...
20994 (make_pass_cse): ...new function.
20995 (pass_fast_rtl_dce): Replace declaration with that of...
20996 (make_pass_fast_rtl_dce): ...new function.
20997 (pass_ud_rtl_dce): Replace declaration with that of...
20998 (make_pass_ud_rtl_dce): ...new function.
20999 (pass_rtl_dce): Replace declaration with that of...
21000 (make_pass_rtl_dce): ...new function.
21001 (pass_rtl_dse1): Replace declaration with that of...
21002 (make_pass_rtl_dse1): ...new function.
21003 (pass_rtl_dse2): Replace declaration with that of...
21004 (make_pass_rtl_dse2): ...new function.
21005 (pass_rtl_dse3): Replace declaration with that of...
21006 (make_pass_rtl_dse3): ...new function.
21007 (pass_rtl_cprop): Replace declaration with that of...
21008 (make_pass_rtl_cprop): ...new function.
21009 (pass_rtl_pre): Replace declaration with that of...
21010 (make_pass_rtl_pre): ...new function.
21011 (pass_rtl_hoist): Replace declaration with that of...
21012 (make_pass_rtl_hoist): ...new function.
21013 (pass_rtl_store_motion): Replace declaration with that of...
21014 (make_pass_rtl_store_motion): ...new function.
21015 (pass_cse_after_global_opts): Replace declaration with that of...
21016 (make_pass_cse_after_global_opts): ...new function.
21017 (pass_rtl_ifcvt): Replace declaration with that of...
21018 (make_pass_rtl_ifcvt): ...new function.
21019 (pass_into_cfg_layout_mode): Replace declaration with that of...
21020 (make_pass_into_cfg_layout_mode): ...new function.
21021 (pass_outof_cfg_layout_mode): Replace declaration with that of...
21022 (make_pass_outof_cfg_layout_mode): ...new function.
21023 (pass_loop2): Replace declaration with that of...
21024 (make_pass_loop2): ...new function.
21025 (pass_rtl_loop_init): Replace declaration with that of...
21026 (make_pass_rtl_loop_init): ...new function.
21027 (pass_rtl_move_loop_invariants): Replace declaration with that of...
21028 (make_pass_rtl_move_loop_invariants): ...new function.
21029 (pass_rtl_unswitch): Replace declaration with that of...
21030 (make_pass_rtl_unswitch): ...new function.
21031 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
21032 (make_pass_rtl_unroll_and_peel_loops): ...new function.
21033 (pass_rtl_doloop): Replace declaration with that of...
21034 (make_pass_rtl_doloop): ...new function.
21035 (pass_rtl_loop_done): Replace declaration with that of...
21036 (make_pass_rtl_loop_done): ...new function.
21037 (pass_web): Replace declaration with that of...
21038 (make_pass_web): ...new function.
21039 (pass_cse2): Replace declaration with that of...
21040 (make_pass_cse2): ...new function.
21041 (pass_df_initialize_opt): Replace declaration with that of...
21042 (make_pass_df_initialize_opt): ...new function.
21043 (pass_df_initialize_no_opt): Replace declaration with that of...
21044 (make_pass_df_initialize_no_opt): ...new function.
21045 (pass_reginfo_init): Replace declaration with that of...
21046 (make_pass_reginfo_init): ...new function.
21047 (pass_inc_dec): Replace declaration with that of...
21048 (make_pass_inc_dec): ...new function.
21049 (pass_stack_ptr_mod): Replace declaration with that of...
21050 (make_pass_stack_ptr_mod): ...new function.
21051 (pass_initialize_regs): Replace declaration with that of...
21052 (make_pass_initialize_regs): ...new function.
21053 (pass_combine): Replace declaration with that of...
21054 (make_pass_combine): ...new function.
21055 (pass_if_after_combine): Replace declaration with that of...
21056 (make_pass_if_after_combine): ...new function.
21057 (pass_ree): Replace declaration with that of...
21058 (make_pass_ree): ...new function.
21059 (pass_partition_blocks): Replace declaration with that of...
21060 (make_pass_partition_blocks): ...new function.
21061 (pass_match_asm_constraints): Replace declaration with that of...
21062 (make_pass_match_asm_constraints): ...new function.
21063 (pass_regmove): Replace declaration with that of...
21064 (make_pass_regmove): ...new function.
21065 (pass_split_all_insns): Replace declaration with that of...
21066 (make_pass_split_all_insns): ...new function.
21067 (pass_fast_rtl_byte_dce): Replace declaration with that of...
21068 (make_pass_fast_rtl_byte_dce): ...new function.
21069 (pass_lower_subreg2): Replace declaration with that of...
21070 (make_pass_lower_subreg2): ...new function.
21071 (pass_mode_switching): Replace declaration with that of...
21072 (make_pass_mode_switching): ...new function.
21073 (pass_sms): Replace declaration with that of...
21074 (make_pass_sms): ...new function.
21075 (pass_sched): Replace declaration with that of...
21076 (make_pass_sched): ...new function.
21077 (pass_ira): Replace declaration with that of...
21078 (make_pass_ira): ...new function.
21079 (pass_reload): Replace declaration with that of...
21080 (make_pass_reload): ...new function.
21081 (pass_clean_state): Replace declaration with that of...
21082 (make_pass_clean_state): ...new function.
21083 (pass_branch_prob): Replace declaration with that of...
21084 (make_pass_branch_prob): ...new function.
21085 (pass_value_profile_transformations): Replace declaration with that
21087 (make_pass_value_profile_transformations): ...new function.
21088 (pass_postreload_cse): Replace declaration with that of...
21089 (make_pass_postreload_cse): ...new function.
21090 (pass_gcse2): Replace declaration with that of...
21091 (make_pass_gcse2): ...new function.
21092 (pass_split_after_reload): Replace declaration with that of...
21093 (make_pass_split_after_reload): ...new function.
21094 (pass_branch_target_load_optimize1): Replace declaration with that
21096 (make_pass_branch_target_load_optimize1): ...new function.
21097 (pass_thread_prologue_and_epilogue): Replace declaration with that
21099 (make_pass_thread_prologue_and_epilogue): ...new function.
21100 (pass_stack_adjustments): Replace declaration with that of...
21101 (make_pass_stack_adjustments): ...new function.
21102 (pass_peephole2): Replace declaration with that of...
21103 (make_pass_peephole2): ...new function.
21104 (pass_if_after_reload): Replace declaration with that of...
21105 (make_pass_if_after_reload): ...new function.
21106 (pass_regrename): Replace declaration with that of...
21107 (make_pass_regrename): ...new function.
21108 (pass_cprop_hardreg): Replace declaration with that of...
21109 (make_pass_cprop_hardreg): ...new function.
21110 (pass_reorder_blocks): Replace declaration with that of...
21111 (make_pass_reorder_blocks): ...new function.
21112 (pass_branch_target_load_optimize2): Replace declaration with that
21114 (make_pass_branch_target_load_optimize2): ...new function.
21115 (pass_leaf_regs): Replace declaration with that of...
21116 (make_pass_leaf_regs): ...new function.
21117 (pass_split_before_sched2): Replace declaration with that of...
21118 (make_pass_split_before_sched2): ...new function.
21119 (pass_compare_elim_after_reload): Replace declaration with that of...
21120 (make_pass_compare_elim_after_reload): ...new function.
21121 (pass_sched2): Replace declaration with that of...
21122 (make_pass_sched2): ...new function.
21123 (pass_stack_regs): Replace declaration with that of...
21124 (make_pass_stack_regs): ...new function.
21125 (pass_stack_regs_run): Replace declaration with that of...
21126 (make_pass_stack_regs_run): ...new function.
21127 (pass_df_finish): Replace declaration with that of...
21128 (make_pass_df_finish): ...new function.
21129 (pass_compute_alignments): Replace declaration with that of...
21130 (make_pass_compute_alignments): ...new function.
21131 (pass_duplicate_computed_gotos): Replace declaration with that of...
21132 (make_pass_duplicate_computed_gotos): ...new function.
21133 (pass_variable_tracking): Replace declaration with that of...
21134 (make_pass_variable_tracking): ...new function.
21135 (pass_free_cfg): Replace declaration with that of...
21136 (make_pass_free_cfg): ...new function.
21137 (pass_machine_reorg): Replace declaration with that of...
21138 (make_pass_machine_reorg): ...new function.
21139 (pass_cleanup_barriers): Replace declaration with that of...
21140 (make_pass_cleanup_barriers): ...new function.
21141 (pass_delay_slots): Replace declaration with that of...
21142 (make_pass_delay_slots): ...new function.
21143 (pass_split_for_shorten_branches): Replace declaration with that of...
21144 (make_pass_split_for_shorten_branches): ...new function.
21145 (pass_split_before_regstack): Replace declaration with that of...
21146 (make_pass_split_before_regstack): ...new function.
21147 (pass_convert_to_eh_region_ranges): Replace declaration with that
21149 (make_pass_convert_to_eh_region_ranges): ...new function.
21150 (pass_shorten_branches): Replace declaration with that of...
21151 (make_pass_shorten_branches): ...new function.
21152 (pass_set_nothrow_function_flags): Replace declaration with that of...
21153 (make_pass_set_nothrow_function_flags): ...new function.
21154 (pass_dwarf2_frame): Replace declaration with that of...
21155 (make_pass_dwarf2_frame): ...new function.
21156 (pass_final): Replace declaration with that of...
21157 (make_pass_final): ...new function.
21158 (pass_rtl_seqabstr): Replace declaration with that of...
21159 (make_pass_rtl_seqabstr): ...new function.
21160 (pass_release_ssa_names): Replace declaration with that of...
21161 (make_pass_release_ssa_names): ...new function.
21162 (pass_early_inline): Replace declaration with that of...
21163 (make_pass_early_inline): ...new function.
21164 (pass_inline_parameters): Replace declaration with that of...
21165 (make_pass_inline_parameters): ...new function.
21166 (pass_update_address_taken): Replace declaration with that of...
21167 (make_pass_update_address_taken): ...new function.
21168 (pass_convert_switch): Replace declaration with that of...
21169 (make_pass_convert_switch): ...new function.
21170 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
21171 to a subclass of simple_ipa_opt_pass along with...
21172 (pass_data_ipa_tree_profile): ...new pass_data instance and...
21173 (make_pass_ipa_tree_profile): ...new function.
21174 * tree-sra.c (pass_sra_early): Convert from a global struct to a
21175 subclass of gimple_opt_pass along with...
21176 (pass_data_sra_early): ...new pass_data instance and...
21177 (make_pass_sra_early): ...new function.
21178 (pass_sra): Convert from a global struct to a subclass of
21179 gimple_opt_pass along with...
21180 (pass_data_sra): ...new pass_data instance and...
21181 (make_pass_sra): ...new function.
21182 (pass_early_ipa_sra): Convert from a global struct to a subclass of
21183 gimple_opt_pass along with...
21184 (pass_data_early_ipa_sra): ...new pass_data instance and...
21185 (make_pass_early_ipa_sra): ...new function.
21186 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
21187 subclass of gimple_opt_pass along with...
21188 (pass_data_ccp): ...new pass_data instance and...
21189 (make_pass_ccp): ...new function.
21190 (pass_fold_builtins): Convert from a global struct to a subclass of
21191 gimple_opt_pass along with...
21192 (pass_data_fold_builtins): ...new pass_data instance and...
21193 (make_pass_fold_builtins): ...new function.
21194 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
21195 subclass of gimple_opt_pass along with...
21196 (pass_data_copy_prop): ...new pass_data instance and...
21197 (make_pass_copy_prop): ...new function.
21198 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
21199 global struct to a subclass of gimple_opt_pass along with...
21200 (pass_data_rename_ssa_copies): ...new pass_data instance and...
21201 (make_pass_rename_ssa_copies): ...new function.
21202 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
21203 subclass of gimple_opt_pass along with...
21204 (pass_data_dce): ...new pass_data instance and...
21205 (make_pass_dce): ...new function.
21206 (pass_dce_loop): Convert from a global struct to a subclass of
21207 gimple_opt_pass along with...
21208 (pass_data_dce_loop): ...new pass_data instance and...
21209 (make_pass_dce_loop): ...new function.
21210 (pass_cd_dce): Convert from a global struct to a subclass of
21211 gimple_opt_pass along with...
21212 (pass_data_cd_dce): ...new pass_data instance and...
21213 (make_pass_cd_dce): ...new function.
21214 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
21215 subclass of gimple_opt_pass along with...
21216 (pass_data_dominator): ...new pass_data instance and...
21217 (make_pass_dominator): ...new function.
21218 (pass_phi_only_cprop): Convert from a global struct to a subclass of
21219 gimple_opt_pass along with...
21220 (pass_data_phi_only_cprop): ...new pass_data instance and...
21221 (make_pass_phi_only_cprop): ...new function.
21222 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
21223 subclass of gimple_opt_pass along with...
21224 (pass_data_dse): ...new pass_data instance and...
21225 (make_pass_dse): ...new function.
21226 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
21227 a subclass of gimple_opt_pass along with...
21228 (pass_data_forwprop): ...new pass_data instance and...
21229 (make_pass_forwprop): ...new function.
21230 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
21231 struct to a subclass of gimple_opt_pass along with...
21232 (pass_data_tree_ifcombine): ...new pass_data instance and...
21233 (make_pass_tree_ifcombine): ...new function.
21234 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
21235 subclass of gimple_opt_pass along with...
21236 (pass_data_ch): ...new pass_data instance and...
21237 (make_pass_ch): ...new function.
21238 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
21239 subclass of gimple_opt_pass along with...
21240 (pass_data_tree_loop): ...new pass_data instance and...
21241 (make_pass_tree_loop): ...new function.
21242 (pass_tree_loop_init): Convert from a global struct to a subclass of
21243 gimple_opt_pass along with...
21244 (pass_data_tree_loop_init): ...new pass_data instance and...
21245 (make_pass_tree_loop_init): ...new function.
21246 (pass_lim): Convert from a global struct to a subclass of
21247 gimple_opt_pass along with...
21248 (pass_data_lim): ...new pass_data instance and...
21249 (make_pass_lim): ...new function.
21250 (pass_tree_unswitch): Convert from a global struct to a subclass of
21251 gimple_opt_pass along with...
21252 (pass_data_tree_unswitch): ...new pass_data instance and...
21253 (make_pass_tree_unswitch): ...new function.
21254 (pass_predcom): Convert from a global struct to a subclass of
21255 gimple_opt_pass along with...
21256 (pass_data_predcom): ...new pass_data instance and...
21257 (make_pass_predcom): ...new function.
21258 (pass_vectorize): Convert from a global struct to a subclass of
21259 gimple_opt_pass along with...
21260 (pass_data_vectorize): ...new pass_data instance and...
21261 (make_pass_vectorize): ...new function.
21262 (pass_graphite): Convert from a global struct to a subclass of
21263 gimple_opt_pass along with...
21264 (pass_data_graphite): ...new pass_data instance and...
21265 (make_pass_graphite): ...new function.
21266 (pass_graphite_transforms): Convert from a global struct to a subclass
21267 of gimple_opt_pass along with...
21268 (pass_data_graphite_transforms): ...new pass_data instance and...
21269 (make_pass_graphite_transforms): ...new function.
21270 (pass_check_data_deps): Convert from a global struct to a subclass of
21271 gimple_opt_pass along with...
21272 (pass_data_check_data_deps): ...new pass_data instance and...
21273 (make_pass_check_data_deps): ...new function.
21274 (pass_iv_canon): Convert from a global struct to a subclass of
21275 gimple_opt_pass along with...
21276 (pass_data_iv_canon): ...new pass_data instance and...
21277 (make_pass_iv_canon): ...new function.
21278 (pass_scev_cprop): Convert from a global struct to a subclass of
21279 gimple_opt_pass along with...
21280 (pass_data_scev_cprop): ...new pass_data instance and...
21281 (make_pass_scev_cprop): ...new function.
21282 (pass_record_bounds): Convert from a global struct to a subclass of
21283 gimple_opt_pass along with...
21284 (pass_data_record_bounds): ...new pass_data instance and...
21285 (make_pass_record_bounds): ...new function.
21286 (pass_complete_unroll): Convert from a global struct to a subclass of
21287 gimple_opt_pass along with...
21288 (pass_data_complete_unroll): ...new pass_data instance and...
21289 (make_pass_complete_unroll): ...new function.
21290 (pass_complete_unrolli): Convert from a global struct to a subclass of
21291 gimple_opt_pass along with...
21292 (pass_data_complete_unrolli): ...new pass_data instance and...
21293 (make_pass_complete_unrolli): ...new function.
21294 (pass_parallelize_loops): Convert from a global struct to a subclass
21295 of gimple_opt_pass along with...
21296 (pass_data_parallelize_loops): ...new pass_data instance and...
21297 (make_pass_parallelize_loops): ...new function.
21298 (pass_loop_prefetch): Convert from a global struct to a subclass of
21299 gimple_opt_pass along with...
21300 (pass_data_loop_prefetch): ...new pass_data instance and...
21301 (make_pass_loop_prefetch): ...new function.
21302 (pass_iv_optimize): Convert from a global struct to a subclass of
21303 gimple_opt_pass along with...
21304 (pass_data_iv_optimize): ...new pass_data instance and...
21305 (make_pass_iv_optimize): ...new function.
21306 (pass_tree_loop_done): Convert from a global struct to a subclass of
21307 gimple_opt_pass along with...
21308 (pass_data_tree_loop_done): ...new pass_data instance and...
21309 (make_pass_tree_loop_done): ...new function.
21310 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
21311 struct to a subclass of gimple_opt_pass along with...
21312 (pass_data_cse_reciprocals): ...new pass_data instance and...
21313 (make_pass_cse_reciprocals): ...new function.
21314 (pass_cse_sincos): Convert from a global struct to a subclass of
21315 gimple_opt_pass along with...
21316 (pass_data_cse_sincos): ...new pass_data instance and...
21317 (make_pass_cse_sincos): ...new function.
21318 (pass_optimize_bswap): Convert from a global struct to a subclass of
21319 gimple_opt_pass along with...
21320 (pass_data_optimize_bswap): ...new pass_data instance and...
21321 (make_pass_optimize_bswap): ...new function.
21322 (pass_optimize_widening_mul): Convert from a global struct to a
21323 subclass of gimple_opt_pass along with...
21324 (pass_data_optimize_widening_mul): ...new pass_data instance and...
21325 (make_pass_optimize_widening_mul): ...new function.
21326 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
21327 subclass of gimple_opt_pass along with...
21328 (pass_data_phiopt): ...new pass_data instance and...
21329 (make_pass_phiopt): ...new function.
21330 (pass_cselim): Convert from a global struct to a subclass of
21331 gimple_opt_pass along with...
21332 (pass_data_cselim): ...new pass_data instance and...
21333 (make_pass_cselim): ...new function.
21334 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
21335 subclass of gimple_opt_pass along with...
21336 (pass_data_phiprop): ...new pass_data instance and...
21337 (make_pass_phiprop): ...new function.
21338 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
21339 subclass of gimple_opt_pass along with...
21340 (pass_data_pre): ...new pass_data instance and...
21341 (make_pass_pre): ...new function.
21342 (pass_fre): Convert from a global struct to a subclass of
21343 gimple_opt_pass along with...
21344 (pass_data_fre): ...new pass_data instance and...
21345 (make_pass_fre): ...new function.
21346 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
21347 subclass of gimple_opt_pass along with...
21348 (pass_data_reassoc): ...new pass_data instance and...
21349 (make_pass_reassoc): ...new function.
21350 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
21351 subclass of gimple_opt_pass along with...
21352 (pass_data_sink_code): ...new pass_data instance and...
21353 (make_pass_sink_code): ...new function.
21354 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
21355 subclass of gimple_opt_pass along with...
21356 (pass_data_strlen): ...new pass_data instance and...
21357 (make_pass_strlen): ...new function.
21358 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
21359 struct to a subclass of gimple_opt_pass along with...
21360 (pass_data_build_alias): ...new pass_data instance and...
21361 (make_pass_build_alias): ...new function.
21362 (pass_build_ealias): Convert from a global struct to a subclass of
21363 gimple_opt_pass along with...
21364 (pass_data_build_ealias): ...new pass_data instance and...
21365 (make_pass_build_ealias): ...new function.
21366 (pass_ipa_pta): Convert from a global struct to a subclass of
21367 simple_ipa_opt_pass along with...
21368 (pass_data_ipa_pta): ...new pass_data instance and...
21369 (make_pass_ipa_pta): ...new function.
21370 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
21371 subclass of gimple_opt_pass along with...
21372 (pass_data_uncprop): ...new pass_data instance and...
21373 (make_pass_uncprop): ...new function.
21374 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
21375 global struct to a subclass of gimple_opt_pass along with...
21376 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
21377 (make_pass_late_warn_uninitialized): ...new function.
21378 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
21379 to a subclass of gimple_opt_pass along with...
21380 (pass_data_init_datastructures): ...new pass_data instance and...
21381 (make_pass_init_datastructures): ...new function.
21382 (pass_early_warn_uninitialized): Convert from a global struct to a
21383 subclass of gimple_opt_pass along with...
21384 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
21385 (make_pass_early_warn_uninitialized): ...new function.
21386 (pass_update_address_taken): Convert from a global struct to a
21387 subclass of gimple_opt_pass along with...
21388 (pass_data_update_address_taken): ...new pass_data instance and...
21389 (make_pass_update_address_taken): ...new function.
21390 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
21391 struct to a subclass of gimple_opt_pass along with...
21392 (pass_data_release_ssa_names): ...new pass_data instance and...
21393 (make_pass_release_ssa_names): ...new function.
21394 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
21395 subclass of gimple_opt_pass along with...
21396 (pass_data_stdarg): ...new pass_data instance and...
21397 (make_pass_stdarg): ...new function.
21398 * tree-switch-conversion.c (pass_convert_switch): Convert from a
21399 global struct to a subclass of gimple_opt_pass along with...
21400 (pass_data_convert_switch): ...new pass_data instance and...
21401 (make_pass_convert_switch): ...new function.
21402 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
21403 to a subclass of gimple_opt_pass along with...
21404 (pass_data_tail_recursion): ...new pass_data instance and...
21405 (make_pass_tail_recursion): ...new function.
21406 (pass_tail_calls): Convert from a global struct to a subclass of
21407 gimple_opt_pass along with...
21408 (pass_data_tail_calls): ...new pass_data instance and...
21409 (make_pass_tail_calls): ...new function.
21410 * tree-vect-generic.c (pass_lower_vector): Convert from a global
21411 struct to a subclass of gimple_opt_pass along with...
21412 (pass_data_lower_vector): ...new pass_data instance and...
21413 (make_pass_lower_vector): ...new function.
21414 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
21415 gimple_opt_pass along with...
21416 (pass_data_lower_vector_ssa): ...new pass_data instance and...
21417 (make_pass_lower_vector_ssa): ...new function.
21418 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
21419 to a subclass of gimple_opt_pass along with...
21420 (pass_data_slp_vectorize): ...new pass_data instance and...
21421 (make_pass_slp_vectorize): ...new function.
21422 (pass_ipa_increase_alignment): Convert from a global struct to a
21423 subclass of simple_ipa_opt_pass along with...
21424 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
21425 (make_pass_ipa_increase_alignment): ...new function.
21426 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
21427 gimple_opt_pass along with...
21428 (pass_data_vrp): ...new pass_data instance and...
21429 (make_pass_vrp): ...new function.
21430 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
21431 subclass of simple_ipa_opt_pass along with...
21432 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
21433 (make_pass_ipa_free_lang_data): ...new function.
21434 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
21435 gimple_opt_pass along with...
21436 (pass_data_tsan): ...new pass_data instance and...
21437 (make_pass_tsan): ...new function.
21438 (pass_tsan_O0): Convert from a global struct to a subclass of
21439 gimple_opt_pass along with...
21440 (pass_data_tsan_O0): ...new pass_data instance and...
21441 (make_pass_tsan_O0): ...new function.
21442 * var-tracking.c (pass_variable_tracking): Convert from a global
21443 struct to a subclass of rtl_opt_pass along with...
21444 (pass_data_variable_tracking): ...new pass_data instance and...
21445 (make_pass_variable_tracking): ...new function.
21446 * web.c (pass_web): Convert from a global struct to a subclass of
21447 rtl_opt_pass along with...
21448 (pass_data_web): ...new pass_data instance and...
21449 (make_pass_web): ...new function.
21450 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
21451 declaration with that of...
21452 (make_pass_mode_switch_use): ...new function.
21453 (pass_resolve_sw_modes): Replace declaration with that of...
21454 (make_pass_resolve_sw_modes): ...new function.
21455 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
21456 from a global struct to a subclass of rtl_opt_pass along with...
21457 (pass_data_mode_switch_use): ...new pass_data instance and...
21458 (make_pass_mode_switch_use): ...new function.
21459 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
21460 from a global struct to a subclass of rtl_opt_pass along with...
21461 (pass_data_resolve_sw_modes): ...new pass_data instance and...
21462 (make_pass_resolve_sw_modes): ...new function.
21463 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
21464 struct to a subclass of rtl_opt_pass along with...
21465 (pass_data_insert_vzeroupper): ...new pass_data instance and...
21466 (make_pass_insert_vzeroupper): ...new function.
21467 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
21468 global struct to a subclass of rtl_opt_pass along with...
21469 (pass_data_work_around_errata): ...new pass_data instance and...
21470 (make_pass_work_around_errata): ...new function.
21471 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
21472 struct to a subclass of rtl_opt_pass along with...
21473 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
21474 (make_pass_mips_machine_reorg2): ...new function.
21476 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21478 * passes.c (pass_manager::operator new): New.
21480 2013-08-05 David Malcolm <dmalcolm@redhat.com>
21482 Handwritten part of conversion of passes to C++ classes.
21484 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
21485 (toplev.o): Add dep on PASS_MANAGER_H.
21486 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
21487 of early local pases to reflect this moving from a global to a
21488 member of gcc::pass_manager.
21489 (cgraph_add_new_function): Likewise.
21490 * lto-cgraph.c (lto_output_node): Update for conversion of
21491 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
21492 * passes.c (opt_pass::clone): New.
21493 (opt_pass::gate): New.
21494 (opt_pass::execute): New.
21495 (opt_pass::opt_pass): New.
21496 (pass_manager::execute_early_local_passes): New.
21497 (pass_manager::execute_pass_mode_switching): new.
21498 (finish_optimization_passes): Convert to...
21499 (pass_manager::finish_optimization_passes): ...this.
21500 (finish_optimization_passes): Update for conversion of passes to
21502 (register_dump_files_1): Use has_gate since we cannot portably
21503 check a vtable entry against NULL.
21504 (dump_one_pass): Likewise.
21505 (ipa_write_summaries_2): Likewise.
21506 (ipa_write_optimization_summaries_1): Likewise.
21507 (ipa_read_summaries_1): Likewise.
21508 (ipa_read_optimization_summaries_1): Likewise.
21509 (execute_ipa_stmt_fixups): Likewise.
21510 (pass_manager::pass_manager): Rewrite pass-creation, invoking
21511 pass-creation functions rather than wiring up globals, and
21512 storing the results in fields of pass_manager generated using
21513 pass-instances.def.
21514 (pass_manager::dump_profile_report): Update for conversion of
21515 passes to C++ classes.
21516 (pass_manager::execute_ipa_summary_passes): Likewise.
21517 (execute_one_ipa_transform_pass): Likewise.
21518 (execute_one_pass): Use has_gate and has_execute since we cannot
21519 portably check a vtable entry against NULL.
21520 * pass_manager.h (pass_manager::finish_optimization_passes): New.
21521 (pass_manager): Use pass-instances.def to add fields for the
21522 various pass instances.
21523 * toplev.c (finalize): Update for move of
21524 finish_optimization_passes to a method of gcc::pass_manager.
21525 * toplev.h (finish_optimization_passes): Move to method of class
21527 * tree-pass.h (struct pass_data): New.
21528 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
21529 (opt_pass::gate): Convert to virtual function.
21530 (opt_pass::~opt_pass): New.
21531 (opt_pass::clone): New.
21532 (opt_pass::execute): Convert to virtual function.
21533 (opt_pass::opt_pass): New.
21534 (opt_pass::ctxt_): new.
21535 (gimple_opt_pass): Convert to subclass of opt_pass.
21536 (gimple_opt_pass::gimple_opt_pass): New.
21537 (rtl_opt_pass): Convert to subclass of opt_pass.
21538 (rtl_opt_pass::rtl_opt_pass): New.
21539 (ipa_opt_pass_d): Convert to subclass of opt_pass.
21540 (ipa_opt_pass_d::ipa_opt_pass_d): New.
21541 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
21542 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
21543 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
21544 invocation of pass_mode_switching to reflect this moving from a
21545 global to a member of gcc::pass_manager.
21546 (ix86_option_override): Rework how pass_insert_vzeroupper is
21547 added to the pass_manager to reflect autogenerated changes.
21548 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
21550 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
21552 PR rtl-optimization/57708
21553 * recog.c (peep2_find_free_register): Validate all regs in a
21556 2013-08-05 Jan Hubicka <jh@suse.cz>
21559 * cgraph.c (verify_cgraph_node): Accept local flags from other
21561 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
21562 (function_and_variable_visibility): Likewise.
21563 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
21565 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
21567 * graph.c (init_graph_slim_pretty_print): Remove.
21568 (print_graph_cfg): Do not call it. Use local pretty printer.
21569 (start_graph_dump): Likewise.
21571 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
21573 * gimple-pretty-print.c (buffer): Remove.
21574 (initialized): Likewise.
21575 (maybe_init_pretty_print): Likewise.
21576 (print_gimple_stmt): Do not call it. Use non-static local
21577 pretty_printer variable.
21578 (print_gimple_expr): Likewise.
21579 (print_gimple_seq): Likewise.
21580 (gimple_dump_bb): Likewise.
21582 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
21584 * asan.c (asan_pp): Remove.
21585 (asan_pp_initialized): Likewise.
21586 (asan_pp_initialize): Likewise.
21587 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
21588 (asan_emit_stack_protection): Tidy. Use local pretty printer.
21589 (asan_add_global): Likewise.
21591 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
21593 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
21594 * diagnostic.h (diagnostic_flush_buffer): Adjust.
21595 * pretty-print.c (pp_formatted_text_data): Likewise.
21596 (pp_indent): Rename from pp_base_indent.
21597 (pp_format): Rename from pp_base_format.
21598 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
21599 (pp_format_verbatim): Rename from pp_base_format_verbatim.
21600 (pp_flush): Rename from pp_base_flush.
21601 (pp_set_line_maximum_length): Rename from
21602 pp_base_set_line_maximum_length.
21603 (pp_clear_output_area): Rename from pp_base_clear_output_area.
21604 (pp_set_prefix): Rename from pp_base_set_prefix.
21605 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
21606 (pp_emit_prefix): Rename from pp_base_emit_prefix.
21607 (pp_append_text): Rename from pp_base_append_text.
21608 (pp_formatted_text): Rename from pp_base_formatted_text.
21609 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
21610 (pp_remaining_character_count_for_line): Rename from
21611 pp_base_remaining_character_count_for_line.
21612 (pp_newline): Rename from pp_base_newline.
21613 (pp_character): Rename from pp_base_character.
21614 (pp_string): Rename from pp_base_string.
21615 (pp_maybe_space): Rename from pp_base_maybe_space.
21616 * asan.c (asan_pp_string): Adjust.
21617 (asan_emit_stack_protection): Likewise.
21618 (asan_add_global): Likewise.
21619 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
21620 * tree-mudflap.c (mf_varname_tree): Likewise.
21621 * tree-pretty-print.c (pp_tree_identifier): Rename from
21622 pp_base_tree_identifier.
21623 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
21624 Declare as function.
21626 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
21628 * pretty-print.h (pp_bar_bar): New.
21629 (pp_ampersand_ampersand): Likewise.
21630 (pp_less_equal): Likewise.
21631 (pp_greater_equal): Likewise.
21632 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
21633 printer functions instead of pp_string or operators and punctuators.
21634 (dump_gimple_call): Likewise.
21635 (dump_gimple_omp_for): Likewise.
21636 (dump_gimple_transaction): Likewise.
21637 (dump_gimple_phi): Likewise.
21638 (pp_gimple_stmt_1): Likewise.
21639 * sched-vis.c (print_insn): Likewise.
21640 * tree-mudflap.c (mf_varname_tree): Likewise.
21641 * tree-pretty-print.c (dump_block_node): Likewise.
21642 (dump_generic_node): Likewise.
21644 2013-08-02 Jan Hubicka <jh@suse.cz>
21646 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
21648 * lto-streamer-out.c (tree_is_indexable): Results decls and
21649 parm decls are not indexable.
21650 (DFS_write_tree_body): Do not follow args and results.
21651 (hash_tree): Likewise.
21652 (output_functions): Rearrange so struct function is needed
21653 only when real body is output; be able to also ouptut abstract
21654 functions; output DECL_ARGUMENTS and DECL_RESULT.
21655 (lto_output): When not in WPA, ale store abstract functions.
21656 (write_symbol): Do not care about RESULT_DECL.
21657 (output_symbol_p): Handle correctly sbtract decls.
21658 * lto-streamer-in.c (input_function): Rearrange so struct
21659 function can be NULL at entry; allow streaming of
21660 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
21661 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
21662 sanity check during LTO.
21663 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
21664 RESULT_DECl and DECL_ARGUMENTS.
21665 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
21668 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
21670 * pretty-print.h (pp_underscore): New.
21672 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
21673 printer functions instead of pp_character.
21674 (dump_binary_rhs): Likewise.
21675 (dump_ternary_rhs): Likewise.
21676 (dump_gimple_call_args): Likewise.
21677 (pp_points_to_solution): Likewise.
21678 (dump_gimple_call): Likewise.
21679 (dump_gimple_switch): Likewise.
21680 (dump_gimple_cond): Likewise.
21681 (dump_gimple_bind): Likewise.
21682 (dump_gimple_try): Likewise.
21683 (dump_gimple_omp_for): Likewise.
21684 (dump_gimple_omp_continue): Likewise.
21685 (dump_gimple_omp_single): Likewise.
21686 (dump_gimple_omp_sections): Likewise.
21687 (dump_gimple_omp_block): Likewise.
21688 (dump_gimple_omp_critical): Likewise.
21689 (dump_gimple_transaction): Likewise.
21690 (dump_gimple_asm): Likewise.
21691 (dump_gimple_phi): Likewise.
21692 (dump_gimple_omp_parallel): Likewise.
21693 (dump_gimple_omp_task): Likewise.
21694 (dump_gimple_omp_atomic_load): Likewise.
21695 (dump_gimple_omp_atomic_store): Likewise.
21696 (dump_gimple_mem_ops): Likewise.
21697 (pp_gimple_stmt_1): Likewise.
21698 (pp_cfg_jump): Likewise.
21699 (dump_implicit_edges): Likewise.
21700 (gimple_dump_bb_for_graph): Likewise.
21701 * graph.c (draw_cfg_node): Likewise.
21702 * langhooks.c (lhd_print_error_function): Likewise.
21703 * sched-vis.c (print_exp): Likewise.
21704 (print_value): Likewise.
21705 (print_pattern): Likewise.
21706 (print_insn): Likewise.
21707 (rtl_dump_bb_for_graph): Likewise.
21708 * tree-pretty-print.c (dump_function_declaration): Likewise.
21709 (dump_array_domain): Likewise.
21710 (dump_omp_clause): Likewise.
21711 (dump_location): Likewise.
21712 (dump_generic_node): Likewise.
21713 (print_struct_decl): Likewise.
21714 * diagnostic.c (diagnostic_show_locus): Use pp_space.
21716 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21718 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
21719 candidate table when replacing a candidate statement.
21720 (replace_rhs_if_not_dup): Likewise.
21721 (replace_one_candidate): Likewise.
21723 2013-08-02 Jan Hubicka <jh@suse.cz>
21724 Martin Liska <marxin.liska@gmail.com>
21726 * cgraphunit.c (add_new_function): Fix logic when adding from
21728 (assemble_thunk): Rename to ...
21729 (expand_thunk); .. this one; export; get it working with
21730 general functions; make produced gimple valid.
21731 * cgraph.h (expand_thunk): Declare.
21733 2013-08-02 Jan Hubicka <jh@suse.cz>
21735 * ipa-cp.c (gather_context_independent_values): Use
21736 ipa_get_param_move_cost.
21737 (get_replacement_map): Remove PARAM; move parameter folding
21739 (create_specialized_node): Update.
21740 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
21741 assert that we have gimple body; update move_cost.
21742 (count_formal_params): Assert that we have gimple body.
21743 (ipa_dump_param): New function.
21744 (ipa_alloc_node_params): Break out from ...
21745 (ipa_initialize_node_params): ... here.
21746 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
21747 (ipa_write_node_info): Stream move costs.
21748 (ipa_read_node_info): Read move costs.
21749 (ipa_update_after_lto_read): Do not recompute node params.
21750 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
21751 (ipa_get_param): Check we are not in WPA.
21752 (ipa_get_param_move_cost): New.
21753 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
21754 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
21755 parm numbers to be present.
21757 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
21759 PR rtl-optimization/58048
21760 * lra-constraints.c (process_alt_operands): Don't check asm
21761 operand on register.
21763 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
21765 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
21766 the implied StoreLoad barrier for atomic operations if before.
21768 2013-08-02 Jan Hubicka <jh@suse.cz>
21769 Martin Liska <marxin.liska@gmail.com>
21771 * cgraph.c (cgraph_function_body_availability): Do not check
21773 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
21774 symtab_node_availability): Declare.
21775 * ipa.c (can_replace_by_local_alias): New.
21776 (function_and_variable_visibility): Use it.
21777 * symtab.c (symtab_for_node_and_aliases,
21778 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
21780 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
21782 PR rtl-optimization/57963
21783 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
21784 (lra_constraints): Use them.
21786 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
21788 * config/arm/types.md (define_attr "type"): Add "load_acq"
21790 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
21792 (cortex_a53_store1): Likewise.
21794 2013-08-01 Jan Hubicka <jh@suse.cz>
21796 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
21797 partitions are not needed.
21799 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
21801 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
21802 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
21803 MAYBE_NON_Q_CLASS_P where appropriate.
21805 2013-08-01 Jan Hubicka <jh@suse.cz>
21807 * cgraph.h (release_function_body): Declare.
21808 * tree.c (free_lang_data_in_decl): Free, parameters and return values
21809 of unused delcarations.
21811 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21813 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
21814 RTL form when subtracting a constant.
21816 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21818 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
21819 Generate canonical plus rtx with negated immediate instead of minus
21821 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
21823 2013-08-01 Jan Hubicka <jh@suse.cz>
21825 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
21826 (cgraph_release_function_body): Likewise.
21827 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
21828 * cgraph.h (cgrpah_node): Rename abstract_and_needed
21829 to used_as_abstract_origin.
21830 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
21831 symbols used as abstract origins.
21832 * cgraphunit.c (analyze_functions): Update.
21833 * ipa.c (symtab_remove_unreachable_nodes): Recompute
21834 used_as_abstract_origin.
21835 * tree-inline.c (tree_function_versioning): Update
21836 used_as_abstract_origin; be ready for DECL_RESULT and
21837 DECL_ARGUMENTS to be NULL.
21839 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
21840 for abstract functions.
21841 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
21844 2013-08-01 Jan Hubicka <jh@suse.cz>
21846 * profile.c (compute_value_histograms): Fix thinko.
21848 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
21850 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
21851 aarch-common-protos.h to extra_headers.
21852 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21853 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
21854 * config/aarch64/t-aarch64 (aarch-common.o): Define.
21856 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
21858 * config/aarch64/aarch64.md (define_attr "type"): Delete.
21859 Include "../arm/types.md". Define "type" attribute for all patterns.
21860 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
21863 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21865 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
21866 to support power8 load fusion.
21867 (fusion_gpr_mem_load): Likewise.
21869 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
21871 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
21872 declarations for power8 load fusion.
21873 (emit_fusion_gpr_load): Likewise.
21875 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
21876 tuning for power8, turn on fusion mode by default. Turn on sign
21877 extending fusion mode if normal fusion mode is on, and we are at
21879 (fusion_gpr_load_p): New function, return true if we can fuse an
21880 addis instruction with a dependent load to a GPR.
21881 (emit_fusion_gpr_load): Emit the instructions for power8 load
21884 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
21885 (VSX load fusion peepholes): New peepholes to fuse together an
21886 addi instruction with a VSX load instruction.
21888 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
21889 peepholes to fuse an addis instruction with a load to a GPR base
21890 register. If we are supporting sign extending fusions, convert
21891 sign extending loads to zero extending loads and add an explicit
21894 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
21896 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
21897 aarch-common-protos.h to extra_headers.
21898 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21899 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
21900 (arm_early_store_addr_dep): Likewise.
21901 (arm_no_early_alu_shift_dep): Likewise.
21902 (arm_no_early_alu_shift_value_dep): Likewise.
21903 (arm_no_early_mul_dep): Likewise.
21904 (arm_no_early_store_addr_dep): Likewise.
21905 (arm_mac_accumulator_is_mul_result): Likewise.
21906 (arm_mac_accumulator_is_result): Likewise.
21907 * config/arm/aarch-common.c: ... here. New file.
21908 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
21910 (arm_early_store_addr_dep): Likewise.
21911 (arm_no_early_alu_shift_dep): Likewise.
21912 (arm_no_early_alu_shift_value_dep): Likewise.
21913 (arm_no_early_mul_dep): Likewise.
21914 (arm_no_early_store_addr_dep): Likewise.
21915 (arm_mac_accumulator_is_mul_result): Likewise.
21916 (arm_mac_accumulator_is_result): Likewise.
21917 * config/arm/aarch-common-protos.h: ... here. New file.
21918 * config/arm/t-arm (aarch-common.o): Define.
21920 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
21922 * config/arm/arm.md: Include new file "types.md".
21923 (define_attr "type"): Move from here to ...
21924 (define_attr "mul32"): Likewise.
21925 (define_attr "mul64"): Likewise.
21926 * config/arm/types.md: ... here. New file.
21928 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
21930 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
21931 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
21933 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21935 * gen-pass-instances.awk: Fix offset of substr().
21937 2013-07-31 David Malcolm <dmalcolm@redhat.com>
21939 * Makefile.in (pass-instances.def): New.
21940 (passes.o): Replace dependency on passes.def with one on
21943 * gen-pass-instances.awk: New.
21945 * passes.c (pass_manager::pass_manager): Use pass-instances.def
21946 rather than passes.def, updating local definition of NEXT_PASS
21947 macro to add an extra NUM parameter (currently unused).
21949 2013-07-30 David Malcolm <dmalcolm@redhat.com>
21951 * Makefile.in (PASS_MANAGER_H): New.
21952 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
21953 (passes.o): Likewise.
21954 (statistics.o): Likewise.
21955 (cgraphunit.o): Likewise.
21956 (context.o): Depend on PASS_MANAGER_H.
21958 * pass_manager.h: New.
21960 * cgraphunit.c (cgraph_add_new_function): Update for moves
21961 of globals to fields of pass_manager.
21962 (analyze_function): Likewise.
21963 (expand_function): Likewise.
21964 (ipa_passes): Likewise.
21965 (compile): Likewise.
21967 * context.c (context::context): New.
21968 * context.h (context::context): New.
21969 (context::get_passes): New.
21970 (context::passes_): New.
21972 * lto-cgraph.c (input_node): Update for moves of globals to
21973 fields of pass_manager.
21975 * passes.c (all_passes): Remove, in favor of a field of the
21976 same name within the new class pass_manager.
21977 (all_small_ipa_passes): Likewise.
21978 (all_lowering_passes): Likewise.
21979 (all_regular_ipa_passes): Likewise.
21980 (all_late_ipa_passes): Likewise.
21981 (all_lto_gen_passes): Likewise.
21982 (passes_by_id): Likewise.
21983 (passes_by_id_size): Likewise.
21984 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21985 the new class pass_manager.
21986 (set_pass_for_id): Convert to...
21987 (pass_manager::set_pass_for_id): ...method.
21988 (get_pass_for_id): Convert to...
21989 (pass_manager::get_pass_for_id): ...method.
21990 (register_one_dump_file): Move body of implementation into...
21991 (pass_manager::register_one_dump_file): ...here.
21992 (register_dump_files_1): Convert to...
21993 (pass_manager::register_dump_files_1): ...method.
21994 (register_dump_files): Convert to...
21995 (pass_manager::register_dump_files): ...method.
21996 (create_pass_tab): Update for moves of globals to fields of
21998 (dump_passes): Move body of implementation into...
21999 (pass_manager::dump_passes): ...here.
22000 (register_pass): Move body of implementation into...
22001 (pass_manager::register_pass): ...here.
22002 (init_optimization_passes): Convert into...
22003 (pass_manager::pass_manager): ...constructor for new
22004 pass_manager class, and initialize the pass_lists array.
22005 (check_profile_consistency): Update for moves of globals to
22006 fields of pass_manager.
22007 (dump_profile_report): Move body of implementation into...
22008 (pass_manager::dump_profile_report): ...here.
22009 (ipa_write_summaries_1): Update for moves of pass lists from
22010 being globals to fields of pass_manager.
22011 (ipa_write_optimization_summaries): Likewise.
22012 (ipa_read_summaries): Likewise.
22013 (ipa_read_optimization_summaries): Likewise.
22014 (execute_all_ipa_stmt_fixups): Likewise.
22016 * statistics.c (statistics_fini): Update for moves of globals to
22017 fields of pass_manager.
22019 * toplev.c (general_init): Replace call to
22020 init_optimization_passes with construction of the pass_manager
22023 * tree-pass.h (all_passes): Remove, in favor of a field of the
22024 same name within the new class pass_manager.
22025 (all_small_ipa_passes): Likewise.
22026 (all_lowering_passes): Likewise.
22027 (all_regular_ipa_passes): Likewise.
22028 (all_lto_gen_passes): Likewise.
22029 (all_late_ipa_passes): Likewise.
22030 (passes_by_id): Likewise.
22031 (passes_by_id_size): Likewise.
22032 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
22033 the new class pass_manager.
22034 (get_pass_for_id): Remove.
22036 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
22038 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
22041 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
22043 * arm.md (mulhi3): New expand pattern.
22045 2013-07-30 Jan Hubicka <jh@suse.cz>
22046 Martin Liska <marxin.liska@gmail.com>
22048 * profile.c (compute_value_histograms): Do not ICE when
22049 there is mismatch only on some counters.
22051 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22053 PR rtl-optimization/57637
22054 * function.c (move_insn_for_shrink_wrap): Also check the
22055 GEN set of the LIVE problem for the liveness analysis
22056 if it exists, otherwise give up.
22058 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
22060 PR tree-optimization/57993
22061 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
22062 replaced statement in the candidate table.
22063 (phi_add_costs): Return infinite cost when the hidden basis does
22064 not dominate all phis on which the candidate is dependent.
22065 (replace_one_candidate): Record replaced statement in the
22068 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
22070 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
22071 (ashlv2si3): New expander.
22072 (*ashlv2si3_i): New define_insn_and_split.
22073 * predicates.md (float_operation): Allow patterns with three
22074 basic sub-patterns.
22076 PR rtl-optimization/58021
22077 * mode-switching.c (create_pre_exit): Always split off preceding
22078 insns if we are not at the basic block head.
22080 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
22082 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
22083 (UCLIBC_DYNAMIC_LINKER): New macro.
22084 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
22086 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
22087 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
22089 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
22090 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
22091 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
22092 for SF and DF modes. Use ieee_quad_format for TF mode.
22093 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
22094 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
22095 (mips_option_override): Handle `-mnan=legacy'.
22096 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
22097 `-mabs=2008' and `-mnan=2008'.
22098 (OPTION_DEFAULT_SPECS): Add "nan" default.
22099 (ASM_SPEC): Handle `-mnan='.
22100 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
22101 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
22102 comment accordingly.
22103 (neg<mode>2): Likewise.
22104 * config/mips/mips.opt (mabs, mnan): New options.
22105 * doc/install.texi (Configuration): Document `--with-nan=' option.
22106 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
22108 (MIPS Options): Document them.
22109 * config.gcc <mips*-*-*>: Handle `--with-nan='.
22110 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
22111 * configure: Regenerate.
22112 * config.in: Regenerate.
22114 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
22116 * config/i386/i386.md (float post-reload splitters): Do not check
22117 for subregs of SSE registers.
22119 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
22120 H.J. Lu <hongjiu.lu@intel.com>
22124 * config/i386/i386.md (post-reload splitter
22125 to avoid partial SSE reg dependency stalls): New pattern.
22127 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
22129 * config/s390/s390.md ("movcc"): Swap load and store instructions.
22131 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
22133 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
22134 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
22136 2013-07-26 Cary Coutant <ccoutant@google.com>
22138 * dwarf2out.c (die_checksum_ordered): Don't include template
22139 instantiations in signature.
22140 (is_template_parameter): New function.
22141 (is_template_instantiation): New function.
22142 (generate_skeleton_bottom_up): Don't include template instantiations
22144 (generate_skeleton): Likewise.
22145 (break_out_comdat_types): Move recursive call to break out nested
22147 (prune_unused_types_mark_generic_parms_dies): Call
22148 is_template_parameter.
22150 2013-07-26 Ian Bolton <ian.bolton@arm.com>
22152 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
22153 uses vector registers.
22154 * config/aarch64/iterators.md: Add attributes rtn and vas.
22156 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22157 Richard Earnshaw <richard.earnshaw@arm.com>
22159 * combine.c (simplify_comparison): Re-canonicalize operands
22161 * config/arm/arm.md (movcond_addsi): New splitter.
22163 2013-07-25 Sterling Augustine <saugustine@google.com>
22165 * dwarf2out.c (size_of_pubnames): Move code to...
22166 (include_pubname_in_output): ...here. New.
22167 (want_pubnames): Rearrange.
22168 (output_pubnames): Call include_pubname_in_output. Move assertion.
22170 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
22172 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
22174 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
22177 * doc/extend.texi: Remove obsolete builtins. Fix
22178 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
22180 2013-07-25 Jan Hubicka <jh@suse.cz>
22182 * cgraph.c (release_function_body): Break out from ...
22183 (cgraph_release_function_body): ... this one; also release DECL_RESULT
22184 and DECL_ARGUMENTS.
22185 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
22186 old_tree in the map.
22187 (create_specialized_node): Update.
22188 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
22190 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
22191 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
22192 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
22193 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
22196 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22198 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
22199 addsi3_carryin_alt2_<optab>): Correct output template.
22201 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22203 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
22204 Adjust for arm_restrict_it.
22205 Remove trailing whitespace.
22207 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
22209 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
22210 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
22212 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
22214 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
22216 PR rtl-optimization/57960
22217 * lra-constraints.c (process_alt_operands): Use the right mode
22218 when checking strict_low.
22220 2013-07-25 Jan Hubicka <jh@suse.cz>
22222 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
22223 * cgraph.c (cgraph_remove_node): Do not release function body
22224 when in cgraph streaming.
22225 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
22226 in other partitions are not considered reachable; fix handling of
22229 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22231 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
22233 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22238 * config/arm/arm.md ("*sibcall_insn): Replace use of
22239 Ss with US. Adjust output for v5 and v4t.
22240 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
22242 * config/arm/constraints.md ("Ss"): Rename to US.
22244 2013-07-25 Terry Guo <terry.guo@arm.com>
22246 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
22247 shift_add/shift_sub0/shift_sub1 RTXs.
22249 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
22250 Anton Blanchard <anton@au1.ibm.com>
22252 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
22253 (altivec_vpks<VI_char>ss): Likewise.
22254 (altivec_vpks<VI_char>us): Likewise.
22255 (altivec_vpku<VI_char>us): Likewise.
22256 (altivec_vpku<VI_char>um): Likewise.
22258 2013-07-24 David Malcolm <dmalcolm@redhat.com>
22260 Introduce context class.
22262 * Makefile.in (CONTEXT_H): New.
22263 (OBJS): Add context.o.
22264 (toplev.o): Add CONTEXT_H to dependencies.
22267 * toplev.c (general_init): Create the singleton gcc::context instance.
22273 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
22275 PR rtl-optimization/57968
22276 * mode-switching.c (create_pre_exit): Allow instructions that
22277 don't set a return register to need a non-exit mode.
22279 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
22280 Anton Blanchard <anton@au1.ibm.com>
22282 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
22283 operands to vperm for little endian.
22284 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
22285 of lvsl to create the control mask for a vperm for little endian.
22287 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22288 Anton Blanchard <anton@au1.ibm.com>
22290 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
22291 two operands for little-endian.
22293 2013-07-23 Steve Ellcey <sellcey@mips.com>
22295 * config/mips/mips.c (mips_case_values_threshold): New.
22296 (TARGET_CASE_VALUES_THRESHOLD): Define.
22298 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22299 Anton Blanchard <anton@au1.ibm.com>
22301 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
22302 selection of field for vector splat in little endian mode.
22304 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22306 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
22307 expanders to rs6000.md.
22308 (ior<mode>3): Likewise.
22309 (and<mode>3): Likewise.
22310 (one_cmpl<mode>2): Likewise.
22311 (nor<mode>3): Likewise.
22312 (andc<mode>3): Likewise.
22313 (eqv<mode>3): Likewise.
22314 (nand<mode>3): Likewise.
22315 (orc<mode>3): Likewise.
22317 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
22320 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
22321 to split multi-word logical operations.
22322 (rs6000_split_logical_di): Likewise.
22323 (rs6000_split_logical): Likewise.
22325 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
22326 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
22327 and allow TImode operations in 32-bit.
22328 (vsx_and<mode>3_64bit): Likewise.
22329 (vsx_ior<mode>3_32bit): Likewise.
22330 (vsx_ior<mode>3_64bit): Likewise.
22331 (vsx_xor<mode>3_32bit): Likewise.
22332 (vsx_xor<mode>3_64bit): Likewise.
22333 (vsx_one_cmpl<mode>2_32bit): Likewise.
22334 (vsx_one_cmpl<mode>2_64bit): Likewise.
22335 (vsx_nor<mode>3_32bit): Likewise.
22336 (vsx_nor<mode>3_64bit): Likewise.
22337 (vsx_andc<mode>3_32bit): Likewise.
22338 (vsx_andc<mode>3_64bit): Likewise.
22339 (vsx_eqv<mode>3_32bit): Likewise.
22340 (vsx_eqv<mode>3_64bit): Likewise.
22341 (vsx_nand<mode>3_32bit): Likewise.
22342 (vsx_nand<mode>3_64bit): Likewise.
22343 (vsx_orc<mode>3_32bit): Likewise.
22344 (vsx_orc<mode>3_64bit): Likewise.
22346 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
22347 logical types in GPRs.
22349 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
22350 logical insns to rs6000.md, and allow TImode operations in
22352 (altivec_ior<mode>3): Likewise.
22353 (altivec_xor<mode>3): Likewise.
22354 (altivec_one_cmpl<mode>2): Likewise.
22355 (altivec_nor<mode>3): Likewise.
22356 (altivec_andc<mode>3): Likewise.
22358 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
22359 attributes for moving the 128-bit logical operations into
22361 (BOOL_REGS_OUTPUT): Likewise.
22362 (BOOL_REGS_OP1): Likewise.
22363 (BOOL_REGS_OP2): Likewise.
22364 (BOOL_REGS_UNARY): Likewise.
22365 (BOOL_REGS_AND_CR0): Likewise.
22366 (one_cmpl<mode>2): Add support for DI logical operations on
22367 32-bit, splitting the operations to 32-bit.
22368 (anddi3): Likewise.
22369 (iordi3): Likewise.
22370 (xordi3): Likewise.
22371 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
22372 changes to combine the 32/64-bit code, allow logical operations on
22373 TI mode in 32-bit, and to use similar match_operator patterns like
22374 scalar mode uses. Combine the Altivec and VSX code for logical
22375 operations, and move it here.
22376 (ior<mode>3, 128-bit types): Likewise.
22377 (xor<mode>3, 128-bit types): Likewise.
22378 (one_cmpl<mode>3, 128-bit types): Likewise.
22379 (nor<mode>3, 128-bit types): Likewise.
22380 (andc<mode>3, 128-bit types): Likewise.
22381 (eqv<mode>3, 128-bit types): Likewise.
22382 (nand<mode>3, 128-bit types): Likewise.
22383 (orc<mode>3, 128-bit types): Likewise.
22384 (and<mode>3_internal): Likewise.
22385 (bool<mode>3_internal): Likewise.
22386 (boolc<mode>3_internal1): Likewise.
22387 (boolc<mode>3_internal2): Likewise.
22388 (boolcc<mode>3_internal1): Likewise.
22389 (boolcc<mode>3_internal2): Likewise.
22390 (eqv<mode>3_internal1): Likewise.
22391 (eqv<mode>3_internal2): Likewise.
22392 (one_cmpl1<mode>3_internal): Likewise.
22394 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
22396 * config/microblaze/microblaze.c (microblaze_expand_prologue):
22397 Rename flag_stack_usage to flag_stack_usage_info.
22399 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
22401 * config/microblaze/sync.md: New file.
22402 * config/microblaze/microblaze.md: Include sync.md
22403 * config/microblaze/microblaze.c: Add print_operand 'y'.
22404 * config/microblaze/constraints.md: Add memory_contraint
22405 'Q' which is a single register.
22407 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
22409 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
22411 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
22413 * reload.c (find_reloads): Exit loop once we find this operand
22414 cannot be reloaded somehow for this alternative.
22416 * reload.c (find_reloads): Exit loop once we find a hard register.
22418 * rtlanal.c (computed_jump_p): Exit loop once we find label
22421 * i386.c (ix86_pad_returns): Exit loop after setting replace.
22423 * cfgloopmanip.c (remove_path): Exit loop after setting
22426 * gensupport.c (subst_dup): Avoid loop if code is not
22427 MATCH_DUP nor MATCH_OP_DUP.
22429 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
22431 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
22433 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
22435 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
22436 true for SP_REGNUM if mode == ptr_mode.
22437 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
22438 with value R0_REGNUM + 31.
22440 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
22442 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
22443 pad pointer-typed argument downward.
22445 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
22447 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
22448 and __ILP32__ when the ILP32 model is in use.
22450 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
22452 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
22453 (aarch64_load_symref_appropriately): In the case of
22454 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
22455 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
22456 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
22457 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
22458 if 'mode' doesn't equal to 'ptr_mode'.
22459 (aarch64_output_mi_thunk): Add an assertion on the alignment of
22460 'vcall_offset'; change to call aarch64_emit_move differently depending
22461 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
22462 to calculate the upper bound of 'vcall_offset'.
22463 (aarch64_cannot_force_const_mem): Change to also return true if
22465 (aarch64_legitimize_reload_address): In the case of large
22466 displacements, add new local variable 'xmode' and an assertion
22467 based on it; change to use 'xmode' to generate the new rtx and
22469 (aarch64_asm_trampoline_template): Change to generate the template
22470 differently depending on TARGET_ILP32 or not; change to use
22471 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
22472 (aarch64_trampoline_size): Removed.
22473 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
22474 and replace immediate literals with it. Change to use 'ptr_mode'
22475 instead of 'DImode' and call convert_memory_address if the mode
22476 of 'fnaddr' doesn't equal to 'ptr_mode'.
22477 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
22479 (aarch64_elf_asm_destructor): Likewise.
22480 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
22481 on TARGET_ILP32 instead of aarch64_trampoline_size.
22482 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
22483 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
22484 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
22485 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
22486 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
22487 (storewb_pair<GPI:mode>_<P:mode>): ... this.
22488 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
22489 depending on the value of 'mode'.
22490 (add_losym_<mode>): New.
22491 (ldr_got_small_<mode>): New, based on ldr_got_small.
22492 (ldr_got_small): Remove.
22493 (ldr_got_small_sidi): New.
22494 * config/aarch64/iterators.md (P): New.
22495 (PTR): Change to 'ptr_mode' in the condition.
22497 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
22499 * config.gcc (aarch64*-*-*): Support --with-abi.
22500 (aarch64*-*-elf): Support --with-multilib-list.
22501 (aarch64*-*-linux*): Likewise.
22502 (supported_defaults): Add abi to aarch64*-*-*.
22503 * configure.ac: Mention AArch64 for --with-multilib-list.
22504 * configure: Re-generated.
22505 * config/aarch64/biarchilp32.h: New file.
22506 * config/aarch64/biarchlp64.h: New file.
22507 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
22509 (MULTILIB_DEFAULTS): Ditto.
22510 (DRIVER_SELF_SPECS): Ditto.
22511 (ASM_SPEC): Update to also substitute -mabi.
22512 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
22513 file whose name depends on -mabi= and -mbig-endian.
22514 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
22516 (POINTER_SIZE): New define.
22517 (POINTERS_EXTEND_UNSIGNED): Ditto.
22518 (enum aarch64_abi_type): New enumeration tag.
22519 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
22520 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
22521 (TARGET_ILP32): New define.
22522 * config/aarch64/aarch64.opt (mabi): New.
22523 (aarch64_abi): New.
22524 (ilp32, lp64): New values for -mabi.
22525 * config/aarch64/t-aarch64 (comma): New define.
22526 (MULTILIB_OPTIONS): Ditto.
22527 (MULTILIB_DIRNAMES): Ditto.
22528 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
22529 * doc/invoke.texi: Document -mabi for AArch64.
22531 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
22533 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
22535 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
22536 Anton Blanchard <anton@au1.ibm.com>
22538 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
22539 endianness when selecting field to splat.
22541 2013-07-22 Eric Christopher <echristo@gmail.com>
22543 * dwarf2out.c (die_odr_checksum): New function to use
22544 CHECKSUM_ macros and ULEB128 for DIE tag.
22545 (generate_type_signature): Use.
22547 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
22549 * config.gcc (sparc*-*-*): Accept leon3 processor.
22550 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
22551 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
22552 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
22553 * config/sparc/sparc.opt (enum processor_type): Add leon3.
22554 (mfix-ut699): Adjust comment.
22555 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
22556 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
22557 (CPP_CPU_SPEC): Likewise.
22558 (ASM_CPU_SPEC): Likewise.
22559 * config/sparc/sparc.c (leon3_cost): New constant.
22560 (sparc_option_override): Add leon3 support.
22561 (mem_ref): New function.
22562 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
22563 (sparc_do_work_around_errata): Look into the instruction in the delay
22564 slot and adjust accordingly. Add fix for the data cache nullify issues
22565 of the UT699. Change insertion position for the NOP.
22566 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
22567 (leon3_load): New reservation.
22568 (leon_store): Bump latency to 2.
22569 (grfpu): New automaton.
22570 (grfpu_alu): New unit.
22571 (grfpu_ds): Likewise.
22572 (leon_fp_alu): Adjust.
22573 (leon_fp_mult): Delete.
22574 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
22575 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
22576 * config/sparc/sparc.md (cpu): Add leon3.
22577 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
22578 (swapsi): Likewise.
22579 (atomic_test_and_set): Likewise.
22580 (ldstub): Likewise.
22582 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
22584 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
22585 default for R5900 targets.
22586 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
22587 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
22588 * config/mips/mips.c (mips_option_override): Report an error for
22589 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
22590 for -march=r5900 -mhard-float.
22592 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
22594 * df-problems.c (can_move_insns_across): Exit loop once we
22595 find a non-fixed, non-global register.
22597 * ipa-pure-const.c (propagate_nothrow): Exit loop after
22600 * omega.c (omega_eliminate_red): Break after setting red_found.
22601 (omega_problem_has_red_equations): Similarly after setting found.
22602 (omega_query_variable): Similarly after setting coupled.
22604 2013-07-22 Marek Polacek <polacek@redhat.com>
22606 * gimplify.c: Don't include gimple.h twice.
22608 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22610 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
22611 instead of TARGET_THUMB1.
22612 (Pz): New constraint.
22613 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
22615 (compare_negsi_si): Likewise.
22616 (compare_addsi2_op0): Likewise.
22617 (compare_addsi2_op1): Likewise.
22618 (addsi3_carryin_<optab>): Likewise.
22619 (addsi3_carryin_alt2_<optab>): Likewise.
22620 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
22621 for arm_restrict_it.
22622 (subsi3_carryin): Likewise.
22623 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
22624 (minmax_arithsi): Disable for arm_restrict_it.
22625 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
22626 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
22627 (satsi_<SAT:code>_shift): Likewise.
22628 (arm_shiftsi3): Add alternative for 16-bit encoding.
22629 (arm32_movhf): Disable for arm_restrict_it.
22630 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
22631 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
22633 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
22635 * config/arm/arm.md (attribute "insn"): Delete.
22636 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
22637 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
22638 (not_shiftsi): Update for attribute change.
22639 (not_shiftsi_compare0): Likewise.
22640 (not_shiftsi_compare0_scratch): Likewise.
22641 (arm_one_cmplsi2): Likewise.
22642 (thumb1_one_cmplsi2): Likewise.
22643 (notsi_compare0): Likewise.
22644 (notsi_compare0_scratch): Likewise.
22645 (thumb1_movdi_insn): Likewise.
22646 (arm_movsi_insn): Likewise.
22647 (movhi_insn_arch4): Likewise.
22648 (movhi_bytes): Likewise.
22649 (arm_movqi_insn): Likewise.
22650 (thumb1_movqi_insn): Likewise.
22651 (arm32_movhf): Likewise.
22652 (thumb1_movhf): Likewise.
22653 (arm_movsf_soft_insn): Likewise.
22654 (thumb1_movsf_insn): Likewise.
22655 (thumb_movdf_insn): Likewise.
22656 (movsicc_insn): Likewise.
22657 (movsfcc_soft_insn): Likewise.
22658 (and_scc): Likewise.
22659 (cond_move): Likewise.
22660 (if_move_not): Likewise.
22661 (if_not_move): Likewise.
22662 (if_shift_move): Likewise.
22663 (if_move_shift): Likewise.
22664 (if_shift_shift): Likewise.
22665 (if_not_arith): Likewise.
22666 (if_arith_not): Likewise.
22667 (cond_move_not): Likewise.
22668 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
22669 (neon_mov<mode>): Likewise.
22670 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
22671 (thumb2_movsi_vfp): Likewise.
22672 (movsf_vfp): Likewise.
22673 (thumb2_movsf_vfp): Likewise.
22674 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22676 (cortexa7_older_only): Likewise.
22677 (cortexa7_younger): Likewise.
22678 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
22679 (1020alu_shift_op): Likewise.
22680 (1020alu_shift_reg_op): Likewise.
22681 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
22682 (alu_shift_op): Likewise.
22683 (alu_shift_reg_op): Likewise.
22684 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
22685 (11_alu_shift_op): Likewise.
22686 (11_alu_shift_reg_op): Likewise.
22687 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
22688 (9_alu_shift_reg_op): Likewise.
22689 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22691 (cortex_a15_alu_shift): Likewise.
22692 (cortex_a15_alu_shift_reg): Likewise.
22693 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
22694 (cortex_a5_alu_shift): Likewise.
22695 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
22697 (cortex_a53_alu_shift): Likewise.
22698 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22700 (cortex_a7_alu_reg): Likewise.
22701 (cortex_a7_alu_shift): Likewise.
22702 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22703 (cortex_a8_alu_shift): Likewise.
22704 (cortex_a8_alu_shift_reg): Likewise.
22705 (cortex_a8_mov): Likewise.
22706 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
22707 (cortex_a9_dp_shift): Likewise.
22708 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
22709 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
22710 (cortex_r4_mov): Likewise.
22711 (cortex_r4_alu_shift): Likewise.
22712 (cortex_r4_alu_shift_reg): Likewise.
22713 * config/arm/fa526.md (526_alu_op): Update for attribute change.
22714 (526_alu_shift_op): Likewise.
22715 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
22716 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
22717 (626te_alu_shift_op): Likewise.
22718 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
22719 (726te_alu_op): Likewise.
22720 (726te_alu_shift_op): Likewise.
22721 (726te_alu_shift_reg_op): Likewise.
22722 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
22723 (mp626_alu_shift_op): Likewise.
22724 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
22725 (pj4_alu_e1_conds): Likewise.
22726 (pj4_alu): Likewise.
22727 (pj4_alu_conds): Likewise.
22728 (pj4_shift): Likewise.
22729 (pj4_shift_conds): Likewise.
22730 (pj4_alu_shift): Likewise.
22731 (pj4_alu_shift_conds): Likewise.
22733 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22735 * config/arm/predicates.md (shiftable_operator_strict_it):
22737 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
22738 Disable cond_exec version for arm_restrict_it.
22739 (thumb2_smaxsi3): Convert to generate cond_exec.
22740 (thumb2_sminsi3): Likewise.
22741 (thumb32_umaxsi3): Likewise.
22742 (thumb2_uminsi3): Likewise.
22743 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
22744 (thumb2_neg_abssi2): Likewise.
22745 (thumb2_mov_scc): Add alternative for 16-bit encoding.
22746 (thumb2_movsicc_insn): Adjust alternatives.
22747 (thumb2_mov_negscc): Disable for arm_restrict_it.
22748 (thumb2_mov_negscc_strict_it): New pattern.
22749 (thumb2_mov_notscc_strict_it): New pattern.
22750 (thumb2_mov_notscc): Disable for arm_restrict_it.
22751 (thumb2_ior_scc): Likewise.
22752 (thumb2_ior_scc_strict_it): New pattern.
22753 (thumb2_cond_move): Adjust for arm_restrict_it.
22754 (thumb2_cond_arith): Disable for arm_restrict_it.
22755 (thumb2_cond_arith_strict_it): New pattern.
22756 (thumb2_cond_sub): Adjust for arm_restrict_it.
22757 (thumb2_movcond): Likewise.
22758 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
22759 (thumb2_zero_extendhisi2_v6): Likewise.
22760 (thumb2_zero_extendqisi2_v6): Likewise.
22761 (orsi_notsi_si): Likewise.
22762 (orsi_not_shiftsi_si): Likewise.
22764 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
22766 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
22767 instruction sequence is 1 byte shorter.
22769 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
22771 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
22772 it is not needed after split.
22774 2013-07-20 Iain Sandoe <iain@codesourcery.com>
22777 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
22778 second label for nonlocal goto receivers. Don't output pic base labels
22779 unless we're producing PIC; mark that action unreachable().
22780 (ix86_save_reg): If the function contains a nonlocal label, save the
22782 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
22783 * config/darwin.c (emitted_pic_label_num): New GTY.
22784 (update_pic_label_number_if_needed): New.
22785 (machopic_output_function_base_name): Adjust for nonlocal receiver
22787 (machopic_should_output_picbase_label): New.
22788 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
22789 (nonlocal_goto_receiver): New insn and split.
22791 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
22793 * config/aarch64/aarch64-builtins.c
22794 (aarch64_fold_builtin): Fold abs in all modes.
22795 * config/aarch64/aarch64-simd-builtins.def
22796 (abs): Enable for all modes.
22797 * config/aarch64/arm_neon.h
22798 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
22799 (vabs_f64): Add missing intrinsic.
22801 2013-07-19 Ian Bolton <ian.bolton@arm.com>
22803 * config/aarch64/arm_neon.h (vabs_s64): New function
22805 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
22808 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
22809 * config/avr/avr.md (adjust_len): Add `round'.
22810 * config/avr/avr-protos.h (avr_out_round): New prototype.
22811 (avr_out_plus): Add `out_label' argument.
22812 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
22813 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
22814 Handle the case where `insn' is just a pattern.
22815 (avr_out_bitop): Handle the case where `insn' is just a pattern.
22816 (avr_out_round): New function.
22817 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
22819 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
22821 * config/microblaze/microblaze.c (microblaze_expand_prologue):
22822 Add check for flag_stack_usage to handle -fstack-usage support
22824 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
22826 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
22827 interaction for new Power8 flags and VSX.
22829 2013-07-18 Sriraman Tallam <tmsriram@google.com>
22831 PR middle-end/57698
22832 * tree-inline.c (expand_call_inline): Emit errors during
22833 early_inlining only if optimization is not turned on.
22835 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22839 * passes.c (init_optimization_passes): Move the construction of
22840 the pass hierarchy into a new passes.def file.
22842 * Makefile.in (passes.o): Add dependency on passes.def.
22844 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22846 * passes.c (init_optimization_passes): Introduce macros for
22847 constructing the tree of passes (INSERT_PASSES_AFTER,
22848 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
22849 TERMINATE_PASS_LIST).
22851 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
22852 Wei Mi <wmi@google.com>
22854 PR rtl-optimization/57878
22855 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
22857 (reload_pseudo_compare_func): Check nregs first for reload
22860 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22862 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
22864 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
22866 * read-rtl.c (validate_const_int): Once an invalid character is
22867 seen, quit the loop.
22869 * gengtype.c (write_roots): Similarly once we find the "deletable"
22870 or "if_marked" option.
22872 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
22874 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
22875 "xtab" and "sat". Move value "clz" from here to ...
22876 (attriubte "type"): ... here.
22877 (satsi_<SAT:code>): Delete "insn" attribute.
22878 (satsi_<SAT:code>_shift): Likewise.
22879 (arm_zero_extendqisi2addsi): Likewise.
22880 (arm_extendqisi2addsi): Likewise.
22881 (clzsi2): Update for attribute changes.
22882 (rbitsi2): Likewise.
22883 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
22885 (arm_usatsihi): Likewise.
22886 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22888 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
22890 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
22891 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
22892 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
22893 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
22894 in alphabetical order.
22895 (attribute "core_cycles"): Update for attribute changes.
22896 (arm_addsi3): Likewise.
22897 (addsi3_compare0): Likewise.
22898 (addsi3_compare0_scratch): Likewise.
22899 (addsi3_compare_op1): Likewise.
22900 (addsi3_compare_op2): Likewise.
22901 (compare_addsi2_op0): Likewise.
22902 (compare_addsi2_op1): Likewise.
22903 (addsi3_carryin_shift_<optab>): Likewise.
22904 (subsi3_carryin_shift): Likewise.
22905 (rsbsi3_carryin_shift): Likewise.
22906 (arm_subsi3_insn): Likewise.
22907 (subsi3_compare0): Likewise.
22908 (subsi3_compare): Likewise.
22909 (arm_andsi3_insn): Likewise.
22910 (thumb1_andsi3_insn): Likewise.
22911 (andsi3_compare0): Likewise.
22912 (andsi3_compare0_scratch): Likewise.
22913 (zeroextractsi_compare0_scratch
22914 (andsi_not_shiftsi_si): Likewise.
22915 (iorsi3_insn): Likewise.
22916 (iorsi3_compare0): Likewise.
22917 (iorsi3_compare0_scratch): Likewise.
22918 (arm_xorsi3): Likewise.
22919 (thumb1_xorsi3_insn): Likewise.
22920 (xorsi3_compare0): Likewise.
22921 (xorsi3_compare0_scratch): Likewise.
22922 (satsi_<SAT:code>_shift): Likewise.
22924 (arm_shiftsi3): Likewise.
22925 (shiftsi3_compare0): Likewise.
22926 (not_shiftsi): Likewise.
22927 (not_shiftsi_compare0): Likewise.
22928 (not_shiftsi_compare0_scratch): Likewise.
22929 (arm_one_cmplsi2): Likewise.
22930 (thumb_one_complsi2): Likewise.
22931 (notsi_compare0): Likewise.
22932 (notsi_compare0_scratch): Likewise.
22933 (thumb1_zero_extendhisi2): Likewise.
22934 (arm_zero_extendhisi2): Likewise.
22935 (arm_zero_extendhisi2_v6): Likewise.
22936 (arm_zero_extendhisi2addsi): Likewise.
22937 (thumb1_zero_extendqisi2): Likewise.
22938 (thumb1_zero_extendqisi2_v6): Likewise.
22939 (arm_zero_extendqisi2): Likewise.
22940 (arm_zero_extendqisi2_v6): Likewise.
22941 (arm_zero_extendqisi2addsi): Likewise.
22942 (thumb1_extendhisi2): Likewise.
22943 (arm_extendhisi2): Likewise.
22944 (arm_extendhisi2_v6): Likewise.
22945 (arm_extendqisi): Likewise.
22946 (arm_extendqisi_v6): Likewise.
22947 (arm_extendqisi2addsi): Likewise.
22948 (thumb1_extendqisi2): Likewise.
22949 (thumb1_movdi_insn): Likewise.
22950 (arm_movsi_insn): Likewise.
22951 (movsi_compare0): Likewise.
22952 (movhi_insn_arch4): Likewise.
22953 (movhi_bytes): Likewise.
22954 (arm_movqi_insn): Likewise.
22955 (thumb1_movqi_insn): Likewise.
22956 (arm32_movhf): Likewise.
22957 (thumb1_movhf): Likewise.
22958 (arm_movsf_soft_insn): Likewise.
22959 (thumb1_movsf_insn): Likewise.
22960 (movdf_soft_insn): Likewise.
22961 (thumb_movdf_insn): Likewise.
22962 (arm_cmpsi_insn): Likewise.
22963 (cmpsi_shiftsi): Likewise.
22964 (cmpsi_shiftsi_swp): Likewise.
22965 (arm_cmpsi_negshiftsi_si): Likewise.
22966 (movsicc_insn): Likewise.
22967 (movsfcc_soft_insn): Likewise.
22968 (arith_shiftsi): Likewise.
22969 (arith_shiftsi_compare0
22970 (arith_shiftsi_compare0_scratch
22971 (sub_shiftsi): Likewise.
22972 (sub_shiftsi_compare0
22973 (sub_shiftsi_compare0_scratch
22974 (and_scc): Likewise.
22975 (cond_move): Likewise.
22976 (if_plus_move): Likewise.
22977 (if_move_plus): Likewise.
22978 (if_move_not): Likewise.
22979 (if_not_move): Likewise.
22980 (if_shift_move): Likewise.
22981 (if_move_shift): Likewise.
22982 (if_shift_shift): Likewise.
22983 (if_not_arith): Likewise.
22984 (if_arith_not): Likewise.
22985 (cond_move_not): Likewise.
22986 (thumb1_ashlsi3): Set type attribute.
22987 (thumb1_ashrsi3): Likewise.
22988 (thumb1_lshrsi3): Likewise.
22989 (thumb1_rotrsi3): Likewise.
22990 (shiftsi3_compare0_scratch): Likewise.
22991 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
22992 (neon_mov<mode>): Likewise.
22993 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
22995 (thumb2_movsi_insn): Likewise.
22996 (thumb2_cmpsi_neg_shiftsi): Likewise.
22997 (thumb2_extendqisi_v6): Likewise.
22998 (thumb2_zero_extendhisi2_v6): Likewise.
22999 (thumb2_zero_extendqisi2_v6): Likewise.
23000 (thumb2_shiftsi3_short): Likewise.
23001 (thumb2_addsi3_compare0_scratch): Likewise.
23002 (orsi_not_shiftsi_si): Likewise.
23003 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
23004 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
23006 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
23007 (1020alu_shift_op): Likewise.
23008 (1020alu_shift_reg_op): Likewise.
23009 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
23010 (alu_shift_op): Likewise.
23011 (alu_shift_reg_op): Likewise.
23012 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
23013 (11_alu_shift_op): Likewise.
23014 (11_alu_shift_reg_op): Likewise.
23015 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
23016 (9_alu_shift_reg_op): Likewise.
23017 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
23019 (cortex_a15_alu_shift): Likewise.
23020 (cortex_a15_alu_shift_reg): Likewise.
23021 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
23023 (cortex_a5_alu_shift): Likewise.
23024 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
23026 (cortex_a53_alu_shift): Likewise.
23027 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
23029 (cortex_a7_alu_reg): Likewise.
23030 (cortex_a7_alu_shift): Likewise.
23031 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
23033 (cortex_a8_alu_shift): Likewise.
23034 (cortex_a8_alu_shift_reg): Likewise.
23035 (cortex_a8_mov): Likewise.
23036 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
23037 (cortex_a9_dp_shift): Likewise.
23038 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
23040 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
23042 (cortex_r4_mov): Likewise.
23043 (cortex_r4_alu_shift): Likewise.
23044 (cortex_r4_alu_shift_reg): Likewise.
23045 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
23046 (526_alu_shift_op): Likewise.
23047 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
23048 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
23049 (626te_alu_shift_op): Likewise.
23050 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
23051 (726te_alu_op): Likewise.
23052 (726te_alu_shift_op): Likewise.
23053 (726te_alu_shift_reg_op): Likewise.
23054 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
23055 (mp626_alu_shift_op): Likewise.
23056 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
23057 (pj4_alu_e1_conds): Likewise.
23058 (pj4_alu): Likewise.
23059 (pj4_alu_conds): Likewise.
23060 (pj4_shift): Likewise.
23061 (pj4_shift_conds): Likewise.
23062 (pj4_alu_shift): Likewise.
23063 (pj4_alu_shift_conds): Likewise.
23064 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
23066 (cortexa7_older_only): Likewise.
23067 (cortexa7_younger): Likewise.
23069 2013-07-18 David Malcolm <dmalcolm@redhat.com>
23071 * ipa-pure-const.c (generate_summary): Rename to...
23072 (pure_const_generate_summary): ... this.
23074 2013-07-17 Iain Sandoe <iain@codesourcery.com>
23076 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
23078 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
23081 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
23084 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23086 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
23087 enabled without -march=zEC12.
23088 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
23091 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
23093 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
23094 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
23095 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
23096 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
23097 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
23098 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
23099 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
23101 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
23102 and ISA_HAS_NMADD3_NMSUB3.
23103 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
23104 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
23105 (nmsub4<mode>, nmsub3<mode>): Likewise.
23106 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
23108 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
23110 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
23111 TARGET_MIPS5400 checking.
23113 2013-07-16 Jakub Jelinek <jakub@redhat.com>
23114 Peter Bergner <bergner@vnet.ibm.com>
23116 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
23117 registers in the comment.
23118 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
23119 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
23120 rather than FIRST_PSEUDO_REGISTERS.
23122 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
23124 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
23125 enable extra ISA flags with TARGET_HTM.
23127 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
23129 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
23132 2013-07-15 Cong Hou <congh@google.com>
23134 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
23135 in compare function for sorting.
23137 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
23139 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
23140 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
23141 * config/rs6000/rs6000.opt: Add -mhtm option.
23142 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
23143 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
23144 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
23145 __HTM__ if the HTM instructions are available.
23146 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
23147 htm_spr_reg_operand): New define_predicates.
23148 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
23149 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
23151 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
23152 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
23153 HTM builtin functions.
23154 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
23155 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
23156 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
23157 (rs6000_builtin_mask_calculate): Likewise.
23158 (rs6000_option_override_internal): Likewise.
23159 (bdesc_htm): Add new HTM builtin support.
23160 (htm_spr_num): New function.
23161 (htm_spr_regno): Likewise.
23162 (rs6000_htm_spr_icode): Likewise.
23163 (htm_expand_builtin): Likewise.
23164 (htm_init_builtins): Likewise.
23165 (rs6000_expand_builtin): Add support for HTM builtin functions.
23166 (rs6000_init_builtins): Likewise.
23167 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
23169 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
23170 (TARGET_HTM, MASK_HTM): Define macros.
23171 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
23172 (FIXED_REGISTERS): Likewise.
23173 (CALL_USED_REGISTERS): Likewise.
23174 (CALL_REALLY_USED_REGISTERS): Likewise.
23175 (REG_ALLOC_ORDER): Likewise.
23176 (enum reg_class): Likewise.
23177 (REG_CLASS_NAMES): Likewise.
23178 (REG_CLASS_CONTENTS): Likewise.
23179 (REGISTER_NAMES): Likewise.
23180 (ADDITIONAL_REGISTER_NAMES): Likewise.
23181 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
23182 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
23183 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
23184 * config/rs6000/htm.md: New file.
23185 * config/rs6000/htmintrin.h: New file.
23186 * config/rs6000/htmxlintrin.h: New file.
23188 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
23190 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
23191 Define SYMBOL_TINY_GOT, update comment.
23192 * config/aarch64/aarch64.c
23193 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
23194 (aarch64_expand_mov_immediate): Likewise.
23195 (aarch64_print_operand): Likewise.
23196 (aarch64_classify_symbol): Likewise.
23197 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
23198 (ldr_got_tiny): Define.
23200 2013-07-13 Tobias Grosser <tobias@grosser.es>
23202 PR tree-optimization/54094
23203 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
23204 scheduling dimension for the parallelism check from the polyhedral
23205 information in the AST.
23206 * graphite-dependences.c (carries_deps): Do not assume the schedule is
23209 2013-07-13 Jason Merrill <jason@redhat.com>
23211 * print-tree.c (debug_vec_tree): Use debug_raw.
23212 (debug_raw (vec<tree, va_gc> &)): New.
23213 (debug_raw (vec<tree, va_gc> *)): New.
23214 * tree.h: Declare them.
23216 2013-07-13 Bin Cheng <bin.cheng@arm.com>
23218 * ifcvt.c (ifcvt_after_combine): New static variable.
23219 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
23221 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
23222 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
23223 rest_of_handle_if_after_reload): Pass new argument for if_convert.
23225 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
23227 * config/mips/mips.c (mips_expand_call): Remove empty statement.
23229 2013-07-12 Michael Matz <matz@suse.de>
23231 PR middle-end/55771
23232 * convert.c (convert_to_real): Reject non-float inner types.
23234 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
23236 * config/aarch64/aarch64-protos.h
23237 (aarch64_simd_immediate_valid_for_move): Remove.
23238 * config/aarch64/aarch64.c (simd_immediate_info): New member.
23239 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
23241 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
23243 2013-07-11 Steve Ellcey <sellcey@mips.com>
23245 * config/mips/mips.c (mips_conditional_register_usage): Do not
23246 use t[0-7] registers in MIPS16 mode when optimizing for size.
23248 2013-07-11 Sriraman Tallam <tmsriram@google.com>
23250 * config/i386/i386.c (dispatch_function_versions): Fix array
23251 indexing of function_version_info to match actual_versions.
23253 2013-07-11 Teresa Johnson <tejohnson@google.com>
23255 * vec.h (struct va_gc): Move release out-of-line.
23256 (va_gc::release): Call ggc_free on released vec.
23258 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23260 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
23261 Require GOT register as additional operand in UNSPEC.
23262 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
23263 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
23264 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
23265 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
23266 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
23267 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
23268 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
23270 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
23273 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
23274 name seen by assembler/linker rather if available.
23276 2013-07-11 Andreas Schwab <schwab@suse.de>
23278 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
23280 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
23282 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
23284 2013-07-10 Joseph Myers <joseph@codesourcery.com>
23286 * doc/tm.texi.in: Move hook documentation to ....
23287 * target.def: ... here.
23289 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
23290 text on @hook line.
23291 * doc/tm.texi: Regenerate.
23293 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
23296 * doc/invoke.texi: Document -Wconditionally-supported.
23298 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
23301 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
23304 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
23307 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
23308 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
23309 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
23310 Remove duplicate devices.
23311 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
23312 * config/avr/t-multilib: Regenerate.
23313 * config/avr/avr-tables.opt: Regenerate.
23314 * doc/avr-mmcu.texi: Regenerate.
23316 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
23319 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
23321 2013-07-10 Graham Stott <graham.stott@btinternet.com>
23323 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
23324 the cost of MULT when optimizing for size.
23326 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23328 * config/cr16/cr16-protos.h: Don't include target.h.
23330 2013-07-09 Joseph Myers <joseph@codesourcery.com>
23332 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
23333 adjust register size for TDmode and TFmode for VSX registers.
23335 2013-07-08 Kai Tietz <ktietz@redhat.com>
23338 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
23339 hook_bool_const_tree_true.
23341 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23343 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
23344 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
23345 * config/s390/s390.md: Define FPR*_REGNUM constants.
23346 Fix FPR2_REGNUM constant (18 -> 17).
23347 ("*trunc<BFP:mode><DFP_ALL:mode>2")
23348 ("*trunc<DFP_ALL:mode><BFP:mode>2")
23349 ("trunc<BFP:mode><DFP_ALL:mode>2")
23350 ("trunc<DFP_ALL:mode><BFP:mode>2")
23351 ("*extend<BFP:mode><DFP_ALL:mode>2")
23352 ("*extend<DFP_ALL:mode><BFP:mode>2")
23353 ("extend<BFP:mode><DFP_ALL:mode>2")
23354 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
23357 2013-07-08 Graham Stott <graham.stott@btinternet.com>
23359 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
23361 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23363 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
23364 and cfun_fpr_bit_p to cfun_fpr_save_p.
23365 (s390_frame_area, s390_register_info, s390_frame_info)
23366 (s390_emit_prologue, s390_emit_epilogue)
23367 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
23369 * config/s390/s390.h: Define *_REGNUM macros for floating point
23372 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
23374 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
23376 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
23378 PR rtl-optimization/57786
23379 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
23380 and break out of the loop when it is set to false.
23382 2013-07-08 Jakub Jelinek <jakub@redhat.com>
23385 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
23386 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
23387 (const_int 63)) 0)).
23388 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
23389 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
23390 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
23392 PR rtl-optimization/57829
23393 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
23394 mask bits outside of mode are just sign-extension from mode to HWI.
23396 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
23398 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
23399 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
23400 adjust_address instead of change_address to keep info about alignment.
23401 (emit_strmov): Remove.
23402 (emit_memmov): New function.
23403 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
23404 (expand_movmem_epilogue): Likewise and return updated rtx for
23406 (expand_constant_movmem_prologue): Likewise and return updated rtx for
23407 destination and source.
23408 (decide_alignment): Refactor, handle vector_loop.
23409 (ix86_expand_movmem): Likewise.
23410 (ix86_expand_setmem): Likewise.
23411 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
23413 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
23415 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
23416 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
23418 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
23420 * config/i386/sse.md (sse_movlhps): Change alternative 3
23421 of operand 2 to "m".
23423 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
23426 * config/i386/sse.md (iptr): New mode attribute.
23427 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
23428 (<sse>_vm<plusminus_insn><mode>3): Ditto.
23429 (<sse>_vmmul<mode>3): Ditto.
23430 (<sse>_vmdiv<mode>3): Ditto.
23431 (sse_vmrcpv4sf2): Ditto.
23432 (<sse>_vmsqrt<mode>2): Ditto.
23433 (sse_vmrsqrtv4sf2): Ditto.
23434 (<sse>_vm<code><mode>3): Ditto.
23435 (avx_vmcmp<mode>3): Ditto.
23436 (<sse>_vmmaskcmp<mode>3): Ditto.
23437 (<sse>_comi): Ditto.
23438 (<sse>_ucomi): Ditto.
23439 (*xop_vmfrcz_<mode>): Ditto.
23440 (*fmai_fmadd_<mode>): Ditto.
23441 (*fmai_fmsub_<mode>): Ditto.
23442 (*fmai_fnmadd_<mode>): Ditto.
23443 (*fmai_fnmsub_<mode>): Ditto.
23444 (*fma4i_vmfmadd_<mode>): Ditto.
23445 (*fma4i_vmfmsub_<mode>): Ditto.
23446 (*fma4i_vmfnmadd_<mode>): Ditto.
23447 (*fma4i_vmfnmsub_<mode>): Ditto.
23448 (*xop_vmfrcz_<mode>): Ditto.
23449 (sse_cvtps2pi): Ditto.
23450 (sse_cvttps2pi): Ditto.
23451 (sse_cvtss2si): Ditto.
23452 (sse_cvtss2si_2): Ditto.
23453 (sse_cvtss2siq_2): Ditto.
23454 (sse_cvttss2si): Ditto.
23455 (sse_cvttss2siq): Ditto.
23456 (sse_cvtsd2si): Ditto.
23457 (sse_cvtsd2si_2): Ditto.
23458 (sse_cvtsd2siq_2): Ditto.
23459 (sse_cvttsd2si): Ditto.
23460 (sse_cvttsd2siq): Ditto.
23461 (sse_cvtsd2ss): Ditto.
23462 (sse_cvtss2sd): Ditto.
23463 (avx2_pbroadcast<mode>): Ditto.
23464 (avx2_pbroadcast<mode>_1): Ditto.
23465 (*avx_vperm_broadcast_v4sf): Ditto.
23467 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
23468 (sse_movlhps): Ditto.
23469 (sse_storehps): Ditto.
23470 (sse_loadhps): Ditto.
23471 (sse_storelps): Ditto.
23472 (sse_loadlps): Ditto.
23473 (*vec_concatv4sf): Ditto.
23474 (*vec_interleave_highv2df): Ditto.
23475 (*vec_interleave_lowv2df): Ditto.
23476 (*vec_extractv2df_1_sse): Ditto.
23477 (*vec_extractv2df_0_sse): Ditto.
23478 (sse2_storelpd): Ditto.
23479 (sse2_loadlpd): Ditto.
23480 (sse2_movsd): Ditto.
23481 (*vec_concatv4si): Ditto.
23482 (vec_concatv2di): Ditto.
23484 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
23485 for Intel asm dialect.
23486 (mmx_punpcklwd): Ditto.
23487 (mmx_punpckldq): Ditto.
23489 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
23490 for intel assembler dialect.
23492 2013-07-06 Jakub Jelinek <jakub@redhat.com>
23495 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
23496 for BUILT_IN_C{LZ,LRSB}*.
23497 * tree.h (CASE_INT_FN): Add FN##IMAX case.
23498 * tree-vrp.c (extract_range_basic): Handle
23499 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
23500 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
23501 fall thru to code calling set_value*.
23502 * builtins.c (expand_builtin): Remove *IMAX cases.
23503 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
23504 if width is bigger than 2*HWI.
23506 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
23508 PR rtl-optimization/55342
23509 * lra-int.h (lra_subreg_reload_pseudos): New.
23510 * lra.c: Add undoing optional reloads to the block diagram.
23511 (lra_subreg_reload_pseudos): New.
23512 (lra_optional_reload_pseudos): Change comments.
23513 (lra): Init and clear lra_subreg_reload_pseudos. Clear
23514 lra_optional_reload_pseudos after undo transformations.
23515 * lra-assigns.c (pseudo_prefix_title): New.
23516 (lra_setup_reg_renumber): Use it.
23517 (spill_for): Ditto. Check subreg reload pseudos too.
23518 (assign_by_spills): Consider subreg reload pseudos too.
23519 * lra-constraints.c (simplify_operand_subreg): Use
23520 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
23521 (curr_insn_transform): Recognize and do optional reloads.
23522 (undo_optional_reloads): New.
23523 (lra_undo_inheritance): Call undo_optional_reloads.
23525 2013-07-05 Thomas Quinot <quinot@adacore.com>
23527 * tree-complex.c (expand_complex_operations_1): Fix typo.
23529 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
23531 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
23532 (tune_params): New member 'const vec_costs'.
23533 * config/aarch64/aarch64.c (generic_vector_cost): New.
23534 (generic_tunings): New member 'generic_vector_cost'.
23535 (aarch64_builtin_vectorization_cost): New.
23536 (aarch64_add_stmt_cost): New.
23537 (TARGET_VECTORIZE_ADD_STMT_COST): New.
23538 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
23540 2013-07-03 Jakub Jelinek <jakub@redhat.com>
23543 * config/i386/predicates.md (vsib_address_operand): Disallow
23544 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
23546 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
23548 PR middle-end/55030
23549 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
23550 expand_builtin_setjmp_receiver.
23551 (expand_label): Adjust, call expand_builtin_setjmp_receiver
23552 with NULL for the label parameter.
23553 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
23554 the frame-pointer. Adjust comments.
23555 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
23556 only if LABEL is non-NULL.
23558 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
23560 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
23561 (ARM_ABI_AAPCS64): Ditto.
23563 (ARM_DEFAULT_ABI): Ditto.
23565 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
23567 * config/aarch64/aarch64-builtins.c
23568 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
23569 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
23571 * config/aarch64/aarch64-simd.md
23572 (aarch64_ld1<VALL:mode>): New.
23573 (aarch64_st1<VALL:mode>): Likewise.
23574 * config/aarch64/arm_neon.h
23575 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
23577 2013-07-02 Sriraman Tallam <tmsriram@google.com>
23579 * config/i386/i386.c (gate_insert_vzeroupper): Check if
23581 (ix86_option_override_internal):Turn on all -mavx target flags by
23582 default as they are dependent on AVX anyway.
23584 2013-07-02 Cary Coutant <ccoutant@google.com>
23586 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
23587 deterministic hash.
23588 (loc_checksum_ordered): Likewise.
23589 (hash_loc_operands): Remove inline keyword.
23591 2013-07-02 Jakub Jelinek <jakub@redhat.com>
23593 PR tree-optimization/57741
23594 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
23595 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
23596 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
23597 Allow REAL_CST step_exprs if flag_associative_math.
23598 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
23600 2013-07-02 Ian Bolton <ian.bolton@arm.com>
23602 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
23604 2013-07-02 Ian Bolton <ian.bolton@arm.com>
23606 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
23608 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23610 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
23612 (iorsi3_insn): Likewise.
23613 (arm_xorsi3): Likewise.
23615 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
23617 * arm.md (attribute "wtype"): Delete. Move attribute values from here
23619 (attribute "type"): ... here, and prefix with "wmmx_".
23620 (attribute "core_cycles"): Update for attribute changes.
23621 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
23622 (tbcstv4hi): Likewise.
23623 (tbcstv2si): Likewise.
23624 (iwmmxt_iordi3): Likewise.
23625 (iwmmxt_xordi3): Likewise.
23626 (iwmmxt_anddi3): Likewise.
23627 (iwmmxt_nanddi3): Likewise.
23628 (iwmmxt_arm_movdi): Likewise.
23629 (iwmmxt_movsi_insn): Likewise.
23630 (mov<mode>_internal): Likewise.
23631 (and<mode>3_iwmmxt): Likewise.
23632 (ior<mode>3_iwmmxt): Likewise.
23633 (xor<mode>3_iwmmxt): Likewise.
23634 (add<mode>3_iwmmxt): Likewise.
23635 (ssaddv8qi3): Likewise.
23636 (ssaddv4hi3): Likewise.
23637 (ssaddv2si3): Likewise.
23638 (usaddv8qi3): Likewise.
23639 (usaddv4hi3): Likewise.
23640 (usaddv2si3): Likewise.
23641 (sub<mode>3_iwmmxt): Likewise.
23642 (sssubv8qi3): Likewise.
23643 (sssubv4hi3): Likewise.
23644 (sssubv2si3): Likewise.
23645 (ussubv8qi3): Likewise.
23646 (ussubv4hi3): Likewise.
23647 (ussubv2si3): Likewise.
23648 (mulv4hi3_iwmmxt): Likewise.
23649 (smulv4hi3_highpart): Likewise.
23650 (umulv4hi3_highpart): Likewise.
23651 (iwmmxt_wmacs): Likewise.
23652 (iwmmxt_wmacsz): Likewise.
23653 (iwmmxt_wmacu): Likewise.
23654 (iwmmxt_wmacuz): Likewise.
23655 (iwmmxt_clrdi): Likewise.
23656 (iwmmxt_clrv8qi): Likewise.
23657 (iwmmxt_clr4hi): Likewise.
23658 (iwmmxt_clr2si): Likewise.
23659 (iwmmxt_uavgrndv8qi3): Likewise.
23660 (iwmmxt_uavgrndv4hi3): Likewise.
23661 (iwmmxt_uavgv8qi3): Likewise.
23662 (iwmmxt_uavgv4hi3): Likewise.
23663 (iwmmxt_tinsrb): Likewise.
23664 (iwmmxt_tinsrh): Likewise.
23665 (iwmmxt_tinsrw): Likewise.
23666 (iwmmxt_textrmub): Likewise.
23667 (iwmmxt_textrmsb): Likewise.
23668 (iwmmxt_textrmuh): Likewise.
23669 (iwmmxt_textrmsh): Likewise.
23670 (iwmmxt_textrmw): Likewise.
23671 (iwmxxt_wshufh): Likewise.
23672 (eqv8qi3): Likewise.
23673 (eqv4hi3): Likewise.
23674 (eqv2si3): Likewise.
23675 (gtuv8qi3): Likewise.
23676 (gtuv4hi3): Likewise.
23677 (gtuv2si3): Likewise.
23678 (gtv8qi3): Likewise.
23679 (gtv4hi3): Likewise.
23680 (gtv2si3): Likewise.
23681 (smax<mode>3_iwmmxt): Likewise.
23682 (umax<mode>3_iwmmxt): Likewise.
23683 (smin<mode>3_iwmmxt): Likewise.
23684 (umin<mode>3_iwmmxt): Likewise.
23685 (iwmmxt_wpackhss): Likewise.
23686 (iwmmxt_wpackwss): Likewise.
23687 (iwmmxt_wpackdss): Likewise.
23688 (iwmmxt_wpackhus): Likewise.
23689 (iwmmxt_wpackwus): Likewise.
23690 (iwmmxt_wpackdus): Likewise.
23691 (iwmmxt_wunpckihb): Likewise.
23692 (iwmmxt_wunpckihh): Likewise.
23693 (iwmmxt_wunpckihw): Likewise.
23694 (iwmmxt_wunpckilb): Likewise.
23695 (iwmmxt_wunpckilh): Likewise.
23696 (iwmmxt_wunpckilw): Likewise.
23697 (iwmmxt_wunpckehub): Likewise.
23698 (iwmmxt_wunpckehuh): Likewise.
23699 (iwmmxt_wunpckehuw): Likewise.
23700 (iwmmxt_wunpckehsb): Likewise.
23701 (iwmmxt_wunpckehsh): Likewise.
23702 (iwmmxt_wunpckehsw): Likewise.
23703 (iwmmxt_wunpckelub): Likewise.
23704 (iwmmxt_wunpckeluh): Likewise.
23705 (iwmmxt_wunpckeluw): Likewise.
23706 (iwmmxt_wunpckelsb): Likewise.
23707 (iwmmxt_wunpckelsh): Likewise.
23708 (iwmmxt_wunpckelsw): Likewise.
23709 (ror<mode>3): Likewise.
23710 (ashr<mode>3_iwmmxt): Likewise.
23711 (lshr<mode>3_iwmmxt): Likewise.
23712 (ashl<mode>3_iwmmxt): Likewise.
23713 (ror<mode>3_di): Likewise.
23714 (ashr<mode>3_di): Likewise.
23715 (lshr<mode>3_di): Likewise.
23716 (ashl<mode>3_di): Likewise.
23717 (iwmmxt_wmadds): Likewise.
23718 (iwmmxt_wmaddu): Likewise.
23719 (iwmmxt_tmia): Likewise.
23720 (iwmmxt_tmiaph): Likewise.
23721 (iwmmxt_tmiabb): Likewise.
23722 (iwmmxt_tmiatb): Likewise.
23723 (iwmmxt_tmiabt): Likewise.
23724 (iwmmxt_tmiatt): Likewise.
23725 (iwmmxt_tmovmskb): Likewise.
23726 (iwmmxt_tmovmskh): Likewise.
23727 (iwmmxt_tmovmskw): Likewise.
23728 (iwmmxt_waccb): Likewise.
23729 (iwmmxt_wacch): Likewise.
23730 (iwmmxt_waccw): Likewise.
23731 (iwmmxt_waligni): Likewise.
23732 (iwmmxt_walignr): Likewise.
23733 (iwmmxt_walignr0): Likewise.
23734 (iwmmxt_walignr1): Likewise.
23735 (iwmmxt_walignr2): Likewise.
23736 (iwmmxt_walignr3): Likewise.
23737 (iwmmxt_wsadb): Likewise.
23738 (iwmmxt_wsadh): Likewise.
23739 (iwmmxt_wsadbz): Likewise.
23740 (iwmmxt_wsadhz): Likewise.
23741 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
23742 (iwmmxt_wabsdiffb): Likewise.
23743 (iwmmxt_wabsdiffh): Likewise.
23744 (iwmmxt_wabsdiffw): Likewise.
23745 (iwmmxt_waddsubhx): Likewise
23746 (iwmmxt_wsubaddhx): Likewise.
23747 (addc<mode>3): Likewise.
23748 (iwmmxt_avg4): Likewise.
23749 (iwmmxt_avg4r): Likewise.
23750 (iwmmxt_wmaddsx): Likewise.
23751 (iwmmxt_wmaddux): Likewise.
23752 (iwmmxt_wmaddsn): Likewise.
23753 (iwmmxt_wmaddun): Likewise.
23754 (iwmmxt_wmulwsm): Likewise.
23755 (iwmmxt_wmulwum): Likewise.
23756 (iwmmxt_wmulsmr): Likewise.
23757 (iwmmxt_wmulumr): Likewise.
23758 (iwmmxt_wmulwsmr): Likewise.
23759 (iwmmxt_wmulwumr): Likewise.
23760 (iwmmxt_wmulwl): Likewise.
23761 (iwmmxt_wqmulm): Likewise.
23762 (iwmmxt_wqmulwm): Likewise.
23763 (iwmmxt_wqmulmr): Likewise.
23764 (iwmmxt_wqmulwmr): Likewise.
23765 (iwmmxt_waddbhusm): Likewise.
23766 (iwmmxt_waddbhusl): Likewise.
23767 (iwmmxt_wqmiabb): Likewise.
23768 (iwmmxt_wqmiabt): Likewise.
23769 (iwmmxt_wqmiatb): Likewise.
23770 (iwmmxt_wqmiatt): Likewise.
23771 (iwmmxt_wqmiabbn): Likewise.
23772 (iwmmxt_wqmiabtn): Likewise.
23773 (iwmmxt_wqmiatbn): Likewise.
23774 (iwmmxt_wqmiattn): Likewise.
23775 (iwmmxt_wmiabb): Likewise.
23776 (iwmmxt_wmiabt): Likewise.
23777 (iwmmxt_wmiatb): Likewise.
23778 (iwmmxt_wmiatt): Likewise.
23779 (iwmmxt_wmiabbn): Likewise.
23780 (iwmmxt_wmiabtn): Likewise.
23781 (iwmmxt_wmiatbn): Likewise.
23782 (iwmmxt_wmiattn): Likewise.
23783 (iwmmxt_wmiawbb): Likewise.
23784 (iwmmxt_wmiawbt): Likewise.
23785 (iwmmxt_wmiawtb): Likewise.
23786 (iwmmxt_wmiawtt): Likewise.
23787 (iwmmxt_wmiawbbn): Likewise.
23788 (iwmmxt_wmiawbtn): Likewise.
23789 (iwmmxt_wmiawtbn): Likewise.
23790 (iwmmxt_wmiawttn): Likewise.
23791 (iwmmxt_wmerge): Likewise.
23792 (iwmmxt_tandc<mode>3): Likewise.
23793 (iwmmxt_torc<mode>3): Likewise.
23794 (iwmmxt_torvsc<mode>3): Likewise.
23795 (iwmmxt_textrc<mode>3): Likewise.
23796 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
23797 (wmmxt_pack): Likewise.
23798 (wmmxt_mult_c1): Likewise.
23799 (wmmxt_mult_c2): Likewise.
23800 (wmmxt_alu_c1): Likewise.
23801 (wmmxt_alu_c2): Likewise.
23802 (wmmxt_alu_c3): Likewise.
23803 (wmmxt_transfer_c1): Likewise.
23804 (wmmxt_transfer_c2): Likewise.
23805 (wmmxt_transfer_c3): Likewise.
23806 (marvell_f_iwmmxt_wstr): Likewise.
23807 (marvell_f_iwmmxt_wldr): Likewise.
23809 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
23811 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
23813 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23816 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23817 * lra-constraints.c (need_for_split_p): Check call used hard regs
23818 living through calls.
23820 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
23821 call used regs for call insn.
23823 2013-06-28 Jakub Jelinek <jakub@redhat.com>
23826 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
23827 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
23829 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
23831 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
23833 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23835 * lra-constraints.c (need_for_split_p): Check call used hard regs
23836 living through calls.
23838 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
23841 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
23842 to tie with any other modes. Eliminate Altivec vector mode tests,
23843 since these are a subset of ALTIVEC or VSX vector modes. Simplify
23844 code, to return 0 if testing MODE2 for a condition, if we've
23845 already tested MODE1 for the same condition.
23847 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23849 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
23852 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23854 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
23855 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
23857 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23859 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
23861 (aarch64_symbolic_constant_p): Remove.
23862 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
23863 static. Fix line length and white space.
23864 (aarch64_symbolic_constant_p): Remove.
23865 * config/aarch64/predicates.md (aarch64_valid_symref):
23866 Use aarch64_classify_symbol_expression.
23868 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23870 * config/arm/constraints.md (Ts): New constraint.
23871 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
23873 (compare_scc): Use "Ts" constraint for operand 0.
23874 (ior_scc_scc): Likewise.
23875 (and_scc_scc): Likewise.
23876 (and_scc_scc_nodom): Likewise.
23877 (ior_scc_scc_cmp): Likewise for operand 7.
23878 (and_scc_scc_cmp): Likewise.
23879 * config/arm/thumb2.md (thumb2_movsi_insn):
23880 Add alternatives for 16-bit encodings.
23881 (thumb2_movhi_insn): Likewise.
23882 (thumb2_movsicc_insn): Likewise.
23883 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
23884 (thumb2_negscc): Use "Ts" constraint.
23885 Move mvn instruction outside cond_exec block.
23886 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
23887 for 16-bit encodings.
23889 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23891 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
23893 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
23894 (mulsi3subsi): Likewise.
23895 (mulsidi3adddi): Likewise.
23896 (mulsidi3_v6): Likewise.
23897 (umulsidi3_v6): Likewise.
23898 (umulsidi3adddi_v6): Likewise.
23899 (smulsi3_highpart_v6): Likewise.
23900 (umulsi3_highpart_v6): Likewise.
23901 (mulhisi3tb): Likewise.
23902 (mulhisi3bt): Likewise.
23903 (mulhisi3tt): Likewise.
23904 (maddhisi4): Likewise.
23905 (maddhisi4tb): Likewise.
23906 (maddhisi4tt): Likewise.
23907 (maddhidi4): Likewise.
23908 (maddhidi4tb): Likewise.
23909 (maddhidi4tt): Likewise.
23910 (zeroextractsi_compare0_scratch): Likewise.
23911 (insv_zero): Likewise.
23912 (insv_t2): Likewise.
23913 (anddi_notzesidi_di): Likewise.
23914 (anddi_notsesidi_di): Likewise.
23915 (andsi_notsi_si): Likewise.
23916 (iordi_zesidi_di): Likewise.
23917 (xordi_zesidi_di): Likewise.
23918 (andsi_iorsi3_notsi): Likewise.
23919 (smax_0): Likewise.
23920 (smax_m1): Likewise.
23921 (smin_0): Likewise.
23922 (not_shiftsi): Likewise.
23923 (unaligned_loadsi): Likewise.
23924 (unaligned_loadhis): Likewise.
23925 (unaligned_loadhiu): Likewise.
23926 (unaligned_storesi): Likewise.
23927 (unaligned_storehi): Likewise.
23928 (extv_reg): Likewise.
23929 (extzv_t2): Likewise.
23930 (divsi3): Likewise.
23931 (udivsi3): Likewise.
23932 (arm_zero_extendhisi2addsi): Likewise.
23933 (arm_zero_extendqisi2addsi): Likewise.
23934 (compareqi_eq0): Likewise.
23935 (arm_extendhisi2_v6): Likewise.
23936 (arm_extendqisi2addsi): Likewise.
23937 (arm_movt): Likewise.
23938 (thumb2_ldrd): Likewise.
23939 (thumb2_ldrd_base): Likewise.
23940 (thumb2_ldrd_base_neg): Likewise.
23941 (thumb2_strd): Likewise.
23942 (thumb2_strd_base): Likewise.
23943 (thumb2_strd_base_neg): Likewise.
23944 (arm_negsi2): Add alternative for 16-bit encoding.
23945 (arm_one_cmplsi2): Likewise.
23947 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23949 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
23950 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
23951 (movdfcc): Likewise.
23952 * config/arm/vfp.md (*thumb2_movsf_vfp):
23953 Disable predication for arm_restrict_it.
23954 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
23955 (*thumb2_movdfcc_vfp): Likewise.
23956 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
23957 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
23958 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
23959 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
23960 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
23961 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
23962 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
23963 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
23964 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
23965 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
23966 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
23967 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
23968 Disable predication for arm_restrict_it.
23970 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
23972 * config/i386/bmiintrin.h (_bextr_u32): New.
23973 (_bextr_u64): Ditto.
23975 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
23977 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
23978 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
23979 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
23980 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
23981 * config/mips/n32-elf.h: ...this new file.
23983 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
23986 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
23987 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
23989 2013-06-27 Catherine Moore <clm@codesourcery.com>
23991 * config/mips/mips-tables.opt: Regenerate.
23992 * config/mips/mips-cpus.def: Add m14ke and m14kec.
23993 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
23994 * doc/invoke.texi: Add -m14kc.
23996 2013-06-27 Jakub Jelinek <jakub@redhat.com>
23999 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
24000 constraints of operand 1 and 2.
24003 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
24004 to match RTL canonicalization. Swap predicates and
24005 constraints of operand 1 and 2.
24007 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
24009 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
24010 Process OP_INOUT regs for splitting too.
24012 2013-06-27 Jakub Jelinek <jakub@redhat.com>
24014 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
24015 decl before the loop, initialize to NULL.
24016 (vectorizable_load): Initialize ptr_incr to NULL.
24018 2013-06-27 Martin Jambor <mjambor@suse.cz>
24021 * ipa-ref.h (ipa_maybe_record_reference): Declare.
24022 * ipa-ref.c (ipa_maybe_record_reference): New function.
24023 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
24024 * ipa-cp.c (create_specialized_node): Record potential references from
24026 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
24028 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
24030 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
24031 parameter 'mode' of type 'enum machine_mode mode'; change to pass
24032 'mode' to force_reg.
24033 (aarch64_add_offset): Update calls to aarch64_force_temporary.
24034 (aarch64_expand_mov_immediate): Likewise.
24036 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
24038 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
24039 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
24041 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24043 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
24044 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
24045 (struct machine_function): Add tbegin_p.
24046 (s390_canonicalize_comparison): Fold CC mode compares to
24047 conditional jump if possible.
24048 (s390_emit_jump): Return the emitted jump.
24049 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
24050 Handle CCRAWmode compares.
24051 (s390_option_override): Default to -mhtm if available.
24052 (s390_reg_clobbered_rtx): Handle floating point regs as well.
24053 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
24054 FPRs instead of df_regs_ever_live_p.
24055 (s390_optimize_nonescaping_tx): New function.
24056 (s390_init_frame_layout): Extend clobbered_regs array to cover
24058 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
24059 (s390_expand_tbegin): New function.
24060 (enum s390_builtin): New enum definition.
24061 (code_for_builtin): New array definition.
24062 (s390_init_builtins): New function.
24063 (s390_expand_builtin): New function.
24064 (TARGET_INIT_BUILTINS): Define.
24065 (TARGET_EXPAND_BUILTIN): Define.
24066 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
24067 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
24068 (s390_alc_comparison): Likewise.
24069 * config/s390/s390-modes.def: Add CCRAWmode.
24070 * config/s390/s390.h (processor_flags): Add PF_TX.
24071 (TARGET_CPU_HTM): Define macro.
24072 (TARGET_HTM): Define macro.
24073 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
24074 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
24075 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
24076 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
24077 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
24078 (TBEGIN_MASK, TBEGINC_MASK): New constants.
24079 ("*cc_to_int"): Move up.
24080 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
24081 constants other than 0.
24082 ("*ccraw_to_int"): New insn and splitter definition.
24083 ("tbegin", "tbegin_nofloat", "tbegin_retry")
24084 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
24085 ("tx_assist"): New expander.
24086 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
24087 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
24088 * config/s390/s390.opt: Add -mhtm option.
24089 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
24090 * config/s390/htmxlintrin.h: New file.
24091 * config/s390/htmintrin.h: New file.
24092 * config/s390/s390intrin.h: New file.
24093 * doc/extend.texi: Document htm builtins.
24094 * config.gcc: Add the new header files to extra_headers.
24096 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
24098 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
24099 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
24101 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
24102 Pat Haugen <pthaugen@us.ibm.com>
24103 Peter Bergner <bergner@vnet.ibm.com>
24105 * config/rs6000/power8.md: New.
24106 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
24107 setting for power8 entry.
24108 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
24109 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
24110 test for Power4/Power5 only.
24111 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
24113 (force_new_group): Adjust comment.
24114 * config/rs6000/rs6000.md: Include power8.md.
24116 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
24118 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
24119 * config/arm/arm-protos.h (arm_max_conditional_execute): New
24121 (tune_params): Update comment.
24122 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
24123 (arm_max_conditional_execute): New function.
24124 (thumb2_final_prescan_insn): Use max_insn_skipped and
24125 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
24127 2013-06-25 Jakub Jelinek <jakub@redhat.com>
24129 PR tree-optimization/57705
24130 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
24131 SSA_NAME step, provided that it is not defined inside the loop.
24132 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
24133 (get_initial_def_for_induction): Handle SSA_NAME IV step.
24135 2013-06-25 Martin Jambor <mjambor@suse.cz>
24137 PR middle-end/57670
24138 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
24139 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
24141 (ipa_note_param_call): Initialize member_ptr flag.
24142 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
24143 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
24144 (ipa_write_indirect_edge_info): Stream member_ptr flag.
24145 (ipa_read_indirect_edge_info): Likewise.
24147 2013-06-25 Richard Biener <rguenther@suse.de>
24149 PR middle-end/56977
24150 * passes.c (init_optimization_passes): Move pass_fold_builtins
24151 and pass_dce earlier with -Og.
24153 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
24155 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
24156 <BIT_FIELD_REF>: Remove trailing TAB.
24157 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
24160 2013-06-24 Martin Jambor <mjambor@suse.cz>
24162 PR tree-optimization/57358
24163 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
24164 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
24165 (ipa_analyze_params_uses): Generate pessimistic info when true.
24167 2013-06-24 Martin Jambor <mjambor@suse.cz>
24169 PR tree-optimization/57539
24170 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
24171 global.inlined_to of the new node to it. All callers changed.
24172 * ipa-inline-transform.c (clone_inlined_nodes): New variable
24173 inlining_into, pass it to cgraph_clone_node.
24174 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
24175 ipa_free_edge_args_substructures.
24176 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
24177 rdesc linked list. Do not assert rdesc edges have inlined caller.
24178 Assert we have found an rdesc in the rdesc list.
24180 2013-06-24 Richard Biener <rguenther@suse.de>
24182 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
24183 (pointer_set_lookup): Declare.
24184 (class pointer_map): New template class implementing a
24185 generic pointer to T map.
24186 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
24187 pointer_map<T>::contains, pointer_map<T>::insert,
24188 pointer_map<T>::traverse): New functions.
24189 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
24190 (pointer_set_lookup): New function.
24191 (pointer_set_contains): Use pointer_set_lookup.
24192 (pointer_set_insert): Likewise.
24193 (insert_aux): Remove.
24194 (struct pointer_map_t): Embed a pointer_set_t.
24195 (pointer_map_create): Adjust.
24196 (pointer_map_destroy): Likewise.
24197 (pointer_map_contains): Likewise.
24198 (pointer_map_insert): Likewise.
24199 (pointer_map_traverse): Likewise.
24200 * tree-streamer.h (struct streamer_tree_cache_d): Use a
24201 pointer_map<unsigned> instead of a pointer_map_t.
24202 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
24203 (streamer_tree_cache_lookup): Likewise.
24204 (streamer_tree_cache_create): Likewise.
24205 (streamer_tree_cache_delete): Likewise.
24206 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
24207 pointer_map<unsigned> instead of a pointer_map_t.
24208 (lto_init_tree_ref_encoder): Adjust.
24209 (lto_destroy_tree_ref_encoder): Likewise.
24210 * lto-section-out.c (lto_output_decl_index): Likewise.
24211 (lto_record_function_out_decl_state): Likewise.
24212 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
24214 2013-06-24 Richard Biener <rguenther@suse.de>
24216 PR tree-optimization/57488
24217 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
24219 2013-06-24 Alan Modra <amodra@gmail.com>
24221 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
24222 (gen_easy_altivec_constant): Likewise.
24223 * config/rs6000/predicates.md (easy_vector_constant_add_self,
24224 easy_vector_constant_msb): Likewise.
24226 2013-06-23 Jakub Jelinek <jakub@redhat.com>
24229 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
24230 add missing return true.
24232 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
24235 * config/sh/predicates.md (general_extend_operand): Invoke
24236 general_movsrc_operand for memory operands.
24237 (general_movsrc_operand): Allow reg+reg addressing, do not use
24238 general_operand for memory operands.
24240 2013-06-23 Sriraman Tallam <tmsriram@google.com>
24242 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
24243 when current target options does not apply.
24244 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
24245 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
24246 * config/i386/bmiintrin.h: Pass appropriate target
24247 attributes to header.
24248 * config/i386/mmintrin.h: Ditto.
24249 * config/i386/nmmintrin.h: Ditto.
24250 * config/i386/avx2intrin.h: Ditto.
24251 * config/i386/fxsrintrin.h: Ditto.
24252 * config/i386/tbmintrin.h: Ditto.
24253 * config/i386/xsaveintrin.h: Ditto.
24254 * config/i386/f16cintrin.h: Ditto.
24255 * config/i386/xtestintrin.h: Ditto.
24256 * config/i386/xsaveoptintrin.h: Ditto.
24257 * config/i386/bmi2intrin.h: Ditto.
24258 * config/i386/lzcntintrin.h: Ditto.
24259 * config/i386/smmintrin.h: Ditto.
24260 * config/i386/wmmintrin.h: Ditto.
24261 * config/i386/x86intrin.h: Remove all header include guards.
24262 * config/i386/prfchwintrin.h: Ditto.
24263 * config/i386/pmmintrin.h: Ditto.
24264 * config/i386/tmmintrin.h: Ditto.
24265 * config/i386/xmmintrin.h: Ditto.
24266 * config/i386/popcntintrin.h: Ditto.
24267 * config/i386/rdseedintrin.h: Ditto.
24268 * config/i386/ammintrin.h: Ditto.
24269 * config/i386/emmintrin.h: Ditto.
24270 * config/i386/immintrin.h: Remove all header include guards.
24271 * config/i386/fma4intrin.h: Ditto.
24272 * config/i386/lwpintrin.h: Ditto.
24273 * config/i386/xopintrin.h: Ditto.
24274 * config/i386/ia32intrin.h: Ditto.
24275 * config/i386/avxintrin.h: Ditto.
24276 * config/i386/rtmintrin.h: Ditto.
24277 * config/i386/fmaintrin.h: Ditto.
24278 * config/i386/mm3dnow.h: Ditto.
24280 2013-06-22 Sriraman Tallam <tmsriram@google.com>
24282 * common/config/i386/i386-common.c: Handle LZCNT.
24284 2013-06-22 Andi Kleen <ak@linux.intel.com>
24286 * doc/extend.texi: Use __atomic_store_n instead of
24287 __atomic_store in HLE example.
24289 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
24291 * config/sh/sh.c: Remove <cstdlib> workaround.
24293 2013-06-21 Andi Kleen <ak@linux.intel.com>
24295 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
24297 2013-06-21 Andi Kleen <ak@linux.intel.com>
24299 * doc/extend.texi: Document that __atomic_clear and
24300 __atomic_test_and_set should only be used with bool.
24302 2013-06-20 Jan Hubicka <jh@suse.cz>
24304 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
24305 types_same_for_odr.
24306 * tree.c (decls_same_for_odr): New function.
24307 (same_for_edr): New function.
24308 (types_same_for_odr): New function.
24309 (get_binfo_at_offset): Use it.
24310 * tree.h (types_same_for_odr): Declare.
24312 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
24313 Jason Merrill <jason@redhat.com>
24315 * system.h: Include <cstdlib> as well as <stdlib.h>.
24317 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
24320 * config/i386/i386.c (construct_container): Report error if
24321 long double is used with disabled x87 float returns.
24323 2013-06-20 Jan Hubicka <jh@suse.cz>
24325 * lto-cgraph.c (input_symtab): Do not set cgraph state.
24327 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
24329 PR rtl-optimization/57425
24330 PR rtl-optimization/57569
24331 * alias.c (write_dependence_p): Remove parameters mem_mode and
24332 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
24333 Changed all callers.
24334 (canon_anti_dependence): Get comments and semantics in sync.
24335 Add parameter mem_canonicalized. Changed all callers.
24336 * rtl.h (canon_anti_dependence): Update prototype.
24338 2013-06-20 Richard Biener <rguenther@suse.de>
24340 * data-streamer-in.c (streamer_read_uhwi): Optimize single
24341 byte case, inline streamer_read_uchar and defer section
24344 2013-06-20 Richard Biener <rguenther@suse.de>
24346 PR tree-optimization/57584
24347 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
24348 SSA names into the expanded expression that take part in
24349 abnormal coalescing.
24351 2013-06-19 Sharad Singhai <singhai@google.com>
24353 * gcov.c (print_usage): Handle new option.
24354 (process_args): Ditto.
24355 (get_gcov_intermediate_filename): New function.
24356 (output_intermediate_file): New function.
24357 (output_gcov_file): New function
24358 (generate_results): Handle new option.
24359 (release_function): Relase demangled name.
24360 (read_graph_file): Handle demangled name.
24361 (output_lines): Ditto.
24362 * doc/gcov.texi: Document gcov intermediate format.
24364 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
24367 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
24368 (lra_emit_add): Use the functions. Add comment about Y as an
24371 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
24374 * collect2.c (collect_atexit): New.
24375 (collect_exit): Delete.
24376 (main): Register collect_atexit with atexit.
24377 (collect_wait): Change collect_exit to exit.
24379 * collect2.h (collect_exit): Delete.
24380 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
24382 2013-06-19 Wei Mi <wmi@google.com>
24384 PR rtl-optimization/57518
24385 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
24386 if regno is used in paradoxical subreg.
24387 (update_equiv_regs): Check pdx_subregs[regno] before
24388 set a reg to be equivalent with a mem.
24390 2013-06-19 Matthias Klose <doko@ubuntu.com>
24393 * file-find.h (find_a_file): Add a mode parameter.
24394 * file-find.c (find_a_file): Likewise.
24395 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
24396 with X_OK for the executables.
24397 * collect2.c (main): Call find_a_file with X_OK.
24399 2013-06-19 Steve Ellcey <sellcey@mips.com>
24402 * config/mips/mips.md (casesi_internal_mips16_<mode>):
24403 Use NEXT_INSN instead of next_real_insn.
24405 2013-06-19 Jan Hubicka <jh@suse.cz>
24407 * cgraph.h (const_value_known_p): Replace by ...
24408 (ctor_for_folding): .. this one.
24409 * cgraphunit.c (process_function_and_variable_attributes): Use it.
24410 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
24411 * expr.c (expand_expr_real_1): Likewise.
24412 (string_constant): Likewise.
24413 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
24414 * ipa.c (process_references): Likewise.
24415 (symtab_remove_unreachable_nodes): Likewise.
24416 * ipa-inline-analysis.c (param_change_prob): Likewise.
24417 * gimple-fold.c (canonicalize_constructor_val): Likewise.
24418 (get_base_constructor): Likwise.
24419 * varpool.c (varpool_remove_node): Likewise.
24420 (varpool_remove_initializer): LIkewise.
24421 (dump_varpool_node): LIkwise.
24422 (const_value_known_p): Rewrite to ...
24423 (ctor_for_folding): ... this one.
24425 2013-06-19 Jakub Jelinek <jakub@redhat.com>
24428 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
24429 PERSONALITY in $PATH derived prefixes.
24431 2013-06-19 Jeff Law <law@redhat.com>
24433 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
24436 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
24437 (simplify_bitwise_binary): Use it to simpify certain binary ops on
24440 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
24442 * config/arm/vfp.md: Move VFP instruction classification documentation
24444 * config/arm/arm.md: ... here. Update instruction classification
24447 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
24449 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
24450 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
24451 pattern. Use more efficient sequences on ARMv5 and Thumb2.
24453 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
24456 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
24457 with NEXT_INSN. Use tablejump_p to check for jump table data
24460 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
24463 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
24464 that now in C++ the value is correct per the C++ standards.
24466 2013-06-19 Richard Biener <rguenther@suse.de>
24468 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
24469 for global context.
24471 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24474 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24477 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
24478 with next_active_insn.
24480 2013-06-18 Sriraman Tallam <tmsriram@google.com>
24482 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
24483 functions are inlined during failures to flag an error.
24484 * tree-inline.c (expand_call_inline): Allow the error to be flagged
24485 in early inline pass.
24487 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
24489 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
24492 2013-06-18 Julian Brown <julian@codesourcery.com>
24494 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
24495 Permit virtual register pre-reload if !strict.
24496 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
24498 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
24500 * config/arm/neon.md (movmisalign<mode>): Use
24501 neon_perm_struct_or_reg_operand instead of
24502 neon_struct_or_register_operand.
24503 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
24504 neon_permissive_struct_operand instead of neon_struct_operand.
24505 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
24506 neon_vector_mem_operand.
24507 * config/arm/predicates.md (neon_struct_operand): Adjust call to
24508 neon_vector_mem_operand.
24509 (neon_permissive_struct_operand): New.
24510 (neon_struct_or_register_operand): Rename to...
24511 (neon_perm_struct_or_reg_operand): This. Adjust call to
24512 neon_vector_mem_operand.
24514 2013-06-18 Richard Biener <rguenther@suse.de>
24516 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
24517 * lto-streamer.h: Include pointer-set.h.
24518 (struct lto_decl_slot): Remove.
24519 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
24520 Remove next_index entry.
24521 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
24522 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
24523 (lto_init_tree_ref_encoder): Adjust.
24524 (lto_destroy_tree_ref_encoder): Likewise.
24525 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
24526 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
24527 (lto_output_decl_index): Adjust.
24528 (lto_new_out_decl_state): Likewise.
24529 (lto_record_function_out_decl_state): Likewise.
24530 * lto-streamer-out.c (copy_function): Likewise.
24532 2013-06-18 Richard Biener <rguenther@suse.de>
24534 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
24535 * cgraphunit.c: Include cfgloop.h.
24536 (init_lowered_empty_function): Initialize the loop tree.
24537 (assemble_thunk): Insert new BBs into loops.
24539 2013-06-18 Richard Biener <rguenther@suse.de>
24541 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
24542 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
24543 the map from cache entry to cache index optional.
24544 (streamer_tree_cache_replace_tree): Adjust accordingly.
24545 (streamer_tree_cache_append): Likewise.
24546 (streamer_tree_cache_delete): Likewise.
24547 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
24548 streamer cache map from cache entry to cache index.
24549 * lto-streamer-out.c (create_output_block): Adjust.
24551 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
24553 * config/arm/arm.md (attribute "insn"): Move multiplication and
24554 division attributes to...
24555 (attribute "type"): ... here. Remove mult.
24556 (attribute "mul32"): New attribute.
24557 (attribute "mul64"): Add umaal.
24558 (*arm_mulsi3): Update attributes.
24559 (*arm_mulsi3_v6): Likewise.
24560 (*thumb_mulsi3): Likewise.
24561 (*thumb_mulsi3_v6): Likewise.
24562 (*mulsi3_compare0): Likewise.
24563 (*mulsi3_compare0_v6): Likewise.
24564 (*mulsi_compare0_scratch): Likewise.
24565 (*mulsi_compare0_scratch_v6): Likewise.
24566 (*mulsi3addsi): Likewise.
24567 (*mulsi3addsi_v6): Likewise.
24568 (*mulsi3addsi_compare0): Likewise.
24569 (*mulsi3addsi_compare0_v6): Likewise.
24570 (*mulsi3addsi_compare0_scratch): Likewise.
24571 (*mulsi3addsi_compare0_scratch_v6): Likewise.
24572 (*mulsi3subsi): Likewise.
24573 (*mulsidi3adddi): Likewise.
24574 (*mulsi3addsi_v6): Likewise.
24575 (*mulsidi3adddi_v6): Likewise.
24576 (*mulsidi3_nov6): Likewise.
24577 (*mulsidi3_v6): Likewise.
24578 (*umulsidi3_nov6): Likewise.
24579 (*umulsidi3_v6): Likewise.
24580 (*umulsidi3adddi): Likewise.
24581 (*umulsidi3adddi_v6): Likewise.
24582 (*smulsi3_highpart_nov6): Likewise.
24583 (*smulsi3_highpart_v6): Likewise.
24584 (*umulsi3_highpart_nov6): Likewise.
24585 (*umulsi3_highpart_v6): Likewise.
24586 (mulhisi3): Likewise.
24587 (*mulhisi3tb): Likewise.
24588 (*mulhisi3bt): Likewise.
24589 (*mulhisi3tt): Likewise.
24590 (maddhisi4): Likewise.
24591 (*maddhisi4tb): Likewise.
24592 (*maddhisi4tt): Likewise.
24593 (maddhidi4): Likewise.
24594 (*maddhidi4tb): Likewise.
24595 (*maddhidi4tt): Likewise.
24596 (divsi3): Likewise.
24597 (udivsi3): Likewise.
24598 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
24599 (thumb2_mulsi_short_compare0): Likewise.
24600 (thumb2_mulsi_short_compare0_scratch): Likewise.
24601 * config/arm/arm1020e.md (1020mult1): Update attribute change.
24602 (1020mult2): Likewise.
24603 (1020mult3): Likewise.
24604 (1020mult4): Likewise.
24605 (1020mult5): Likewise.
24606 (1020mult6): Likewise.
24607 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
24609 (cortex_a15_mult64): Likewise.
24610 (cortex_a15_sdiv): Likewise.
24611 (cortex_a15_udiv): Likewise.
24612 * config/arm/arm1026ejs.md (mult1): Update attribute change.
24618 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
24619 (pj4_ir_div): Likewise.
24620 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
24621 (11_mult2): Likewise.
24622 (11_mult3): Likewise.
24623 (11_mult4): Likewise.
24624 (11_mult5): Likewise.
24625 (11_mult6): Likewise.
24626 (11_mult7): Likewise.
24627 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
24628 (cortex_a8_mla): Likewise.
24629 (cortex_a8_mull): Likewise.
24630 (cortex_a8_smulwy): Likewise.
24631 (cortex_a8_smlald): Likewise.
24632 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
24633 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
24634 (cortex_r4_mul_3): Likewise.
24635 (cortex_r4_mla_4): Likewise.
24636 (cortex_r4_mla_3): Likewise.
24637 (cortex_r4_smlald): Likewise.
24638 (cortex_r4_mull): Likewise.
24639 (cortex_r4_sdiv): Likewise.
24640 (cortex_r4_udiv): Likewise.
24641 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
24642 (cortex_a7_idiv): Likewise.
24643 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
24644 (9_mult2): Likewise.
24645 (9_mult3): Likewise.
24646 (9_mult4): Likewise.
24647 (9_mult5): Likewise.
24648 (9_mult6): Likewise.
24649 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
24650 (cortex_a53_sdiv): Likewise.
24651 (cortex_a53_udiv): Likewise.
24652 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
24653 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
24654 (mp626_mult2): Likewise.
24655 (mp626_mult3): Likewise.
24656 (mp626_mult4): Likewise.
24657 * config/arm/fa526.md (526_mult1): Update attribute change.
24658 (526_mult2): Likewise.
24659 * config/arm/arm-generic.md (mult): Update attribute change.
24660 (mult_ldsched_strongarm): Likewise.
24661 (mult_ldsched): Likewise.
24662 (multi_cycle): Likewise.
24663 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
24664 * config/arm/fa606te.md (606te_mult1): Update attribute change.
24665 (606te_mult2): Likewise.
24666 (606te_mult3): Likewise.
24667 (606te_mult4): Likewise.
24668 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
24669 (cortex_a9_mac16): Likewise.
24670 (cortex_a9_multiply): Likewise.
24671 (cortex_a9_mac): Likewise.
24672 (cortex_a9_multiply_long): Likewise.
24673 * config/arm/fa626te.md (626te_mult1): Update attribute change.
24674 (626te_mult2): Likewise.
24675 (626te_mult3): Likewise.
24676 (626te_mult4): Likewise.
24678 2013-06-18 Richard Biener <rguenther@suse.de>
24681 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
24683 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24686 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
24687 with next_active_insn.
24689 2013-06-18 Alan Modra <amodra@gmail.com>
24691 * config/rs6000/rs6000.h (enum data_align): New.
24692 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
24693 (DATA_ABI_ALIGNMENT): Define.
24694 (CONSTANT_ALIGNMENT): Correct comment.
24695 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
24696 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
24698 2013-06-17 David Malcolm <dmalcolm@redhat.com>
24700 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
24701 ATTRIBUTE_UNUSED marking.
24703 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
24705 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
24706 alternative and update.
24707 (aarch64_dup_lanedi): Delete.
24708 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
24709 * config/aarch64/aarch64-simd-builtins.def: Update.
24711 2013-06-17 Richard Biener <rguenther@suse.de>
24713 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
24714 (lto_input_scc): Declare.
24715 (lto_input_tree_1): Likewise.
24716 (struct lto_stats_d): Add num_tree_bodies_output and
24717 num_pickle_refs_output.
24718 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
24719 (lto_read_tree_1): Split out from ...
24720 (lto_read_tree): ... this.
24721 (lto_input_scc): New function.
24722 (lto_input_tree_1): Split out from ...
24723 (lto_input_tree): ... this. Handle LTO_tree_scc.
24724 (lto_data_in_create): Create the streamer cache without hashes.
24725 * lto-streamer-out.c (create_output_block): Create the streamer
24726 cache with hashes when not doing WPA.
24727 (lto_write_tree_1): Split out from ...
24728 (lto_write_tree): ... this.
24729 (get_symbol_initial_value): New function.
24730 (lto_output_tree_1): Split out from ...
24731 (lto_output_tree): ... this. Write trees as series of SCCs
24732 using a DFS walk via DFS_write_tree.
24733 (struct sccs, struct scc_entry): New types.
24734 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
24735 (DFS_write_tree_body): New function.
24736 (DFS_write_tree): Likewise.
24737 (hash_tree): Likewise.
24738 (scc_entry_compare): Likewise.
24739 (hash_scc): Likewise.
24740 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
24741 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
24742 TREE_CHAIN as regular reference.
24743 (streamer_read_integer_cst): Remove.
24744 (streamer_get_pickled_tree): Adjust.
24745 * tree-streamer-out.c (streamer_write_chain): Disable streaming
24746 of DECL_EXTERNALs in BLOCK_VARS for now.
24747 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
24749 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
24750 Add hash value argument and record that if hashes are recorded
24752 (streamer_tree_cache_insert_1): Adjust.
24753 (streamer_tree_cache_insert): Likewise.
24754 (streamer_tree_cache_insert_at): Rename to ...
24755 (streamer_tree_cache_replace_tree): ... this and adjust.
24756 (streamer_tree_cache_append): Adjust.
24757 (record_common_node): Likewise.
24758 (streamer_tree_cache_create): Add argument whether to
24759 record hash values together with trees.
24760 (streamer_tree_cache_delete): Adjust.
24761 * tree-streamer.h (struct streamer_tree_cache_d): Add
24763 (streamer_read_integer_cst): Remove.
24764 (streamer_tree_cache_insert): Adjust.
24765 (streamer_tree_cache_append): Likewise.
24766 (streamer_tree_cache_insert_at): Rename to ...
24767 (streamer_tree_cache_replace_tree): ... this and adjust.
24768 (streamer_tree_cache_create): Add argument whether to record hashes.
24769 (streamer_tree_cache_get): Rename to ...
24770 (streamer_tree_cache_get_tree): ... this.
24771 (streamer_tree_cache_get_hash): New function.
24772 * tree.c (cache_integer_cst): New function.
24773 * tree.h (cache_integer_cst): Declare.
24774 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
24775 * lto-symtab.c (lto_varpool_replace_node): Only release
24776 DECL_INITIAL of non-prevailing decls.
24777 * varpool.c (varpool_remove_initializer): Do not release
24778 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
24780 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
24782 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
24783 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
24784 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
24785 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
24786 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
24787 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
24788 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
24789 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
24790 instead of TARGET_64BIT.
24791 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
24792 Require ISA_HAS_<D>DIV.
24794 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
24796 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
24797 (mips*-*-linux*): Move default with_llsc setting to where other
24799 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
24801 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
24802 Likewise. Remove default with_tune setting. Move default float
24803 setting to its own block. Handle with_llsc in the same block as above.
24805 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
24807 PR rtl-optimization/57425
24808 PR rtl-optimization/57569
24809 * alias.c (write_dependence_p): Add new parameters mem_mode,
24810 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
24811 Changed all callers.
24812 (canon_anti_dependence): New function.
24813 * cse.c (check_dependence): Use canon_anti_dependence.
24814 * cselib.c (cselib_invalidate_mem): Likewise.
24815 * rtl.h (canon_anti_dependence): Declare.
24817 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
24819 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
24820 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
24821 ".set mips3" for 64-bit targets.
24823 2013-06-15 Dehao Chen <dehao@google.com>
24825 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
24826 * gimple-low.c (gimple_check_call_matching_types): Likewise.
24827 (gimple_check_call_args): Likewise.
24828 * value-prof.c (check_ic_target): Likewise.
24829 * ipa-inline.c (early_inliner): Likewise.
24830 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
24831 * cgraph.c (cgraph_create_edge_1): Likewise.
24832 (cgraph_make_edge_direct): Likewise.
24834 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
24837 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
24838 rs6000_output_move_128bit to handle emitting quad memory
24839 operations. Set attribute length to 8 bytes.
24841 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
24843 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
24845 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
24846 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
24847 (aarch64_<su>mlsl<mode>): Likewise.
24849 2013-06-14 Mike Stump <mikestump@comcast.net>
24851 * Makefile.in (TARGET_H): Add insn-codes.h.
24853 2013-06-14 Alan Modra <amodra@gmail.com>
24855 PR middle-end/57134
24856 PR middle-end/57586
24857 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
24858 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
24859 bitfield expansion when EXPAND_MEMORY.
24860 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
24862 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
24864 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
24865 test for clearing quad memory on 32-bit later.
24867 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
24869 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
24870 (fold_negate_expr): Likewise.
24871 (fold_real_zero_addition_p): Handle vectors.
24872 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
24874 2013-06-14 Alan Modra <amodra@gmail.com>
24876 * varasm.c (force_const_mem): Revert 2013-06-07 change.
24878 2013-06-13 Jan Hubicka <jh@suse.cz>
24880 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
24881 Local comdats are not externally visible.
24882 * symtab.c (dump_symtab_base): Dump externally visible.
24883 (verify_symtab_base): Verify back links in the symtab hash.
24885 2013-06-13 Bin Cheng <bin.cheng@arm.com>
24887 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
24888 CONVERT_EXPR as equal nodes.
24890 2013-06-13 Bin Cheng <bin.cheng@arm.com>
24892 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
24894 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
24896 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
24897 Generalize to complex and vector.
24898 * tree.c (build_all_ones_cst): New function.
24899 * tree.h (build_all_ones_cst): Declare it.
24901 2013-06-13 Alan Modra <amodra@gmail.com>
24903 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
24904 * config/rs6000/rs6000.md (signbittf2): New insn.
24905 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
24906 (abstf2_internal, cmptf_internal2): Likewise.
24907 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
24909 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
24910 Pat Haugen <pthaugen@us.ibm.com>
24911 Peter Bergner <bergner@vnet.ibm.com>
24913 * config/rs6000/rs6000.c (emit_load_locked): Add support for
24914 power8 byte, half-word, and quad-word atomic instructions.
24915 (emit_store_conditional): Likewise.
24916 (rs6000_expand_atomic_compare_and_swap): Likewise.
24917 (rs6000_expand_atomic_op): Likewise.
24919 * config/rs6000/sync.md (larx): Add new modes for power8.
24921 (AINT): New mode iterator to include TImode as well as normal
24922 integer modes on power8.
24923 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
24924 that VSX registers are not considered. Use AINT mode iterator
24925 instead of INT1 to allow inclusion of quad word atomic operations
24927 (load_locked<mode>): Likewise.
24928 (store_conditional<mode>): Likewise.
24929 (atomic_compare_and_swap<mode>): Likewise.
24930 (atomic_exchange<mode>): Likewise.
24931 (atomic_nand<mode>): Likewise.
24932 (atomic_fetch_<fetchop_name><mode>): Likewise.
24933 (atomic_nand_fetch<mode>): Likewise.
24934 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
24936 (ATOMIC): On power8, add QImode, HImode modes.
24937 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
24938 modes that promote to SImode.
24939 (load_lockedti): Convert TImode arguments to PTImode, so that we
24940 get a guaranteed even/odd register pair.
24941 (load_lockedpti): Likewise.
24942 (store_conditionalti): Likewise.
24943 (store_conditionalpti): Likewise.
24945 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
24946 atomic load/store instructions.
24949 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
24951 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
24953 (insn_count): New attribute, with most cases extracted from...
24954 (length): ...here. Redefine most cases in terms of insn_count.
24955 (single_insn): Delete.
24956 (can_delay): Use insn_count to check for single instructions.
24957 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
24958 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
24959 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
24960 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
24961 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
24962 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
24963 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
24964 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
24965 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
24966 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
24967 rather than "length".
24968 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
24969 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
24970 Use "insn_count" rather than "length".
24971 * config/mips/mips-dsp.md
24972 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
24973 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
24976 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
24978 PR tree-optimization/57361
24979 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
24981 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
24983 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
24985 (aarch64_simd_combine<mode>): New instruction expansion.
24986 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
24987 function prototype.
24988 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
24989 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
24991 2013-06-12 Jan Hubicka <jh@suse.cz>
24993 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
24994 decl has when in streaming stage.
24995 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
24996 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
24998 2013-06-12 Roland Stigge <stigge@antcom.de>
25001 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
25003 2013-06-12 Jakub Jelinek <jakub@redhat.com>
25005 PR tree-optimization/57537
25006 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
25007 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
25009 2013-06-12 Richard Biener <rguenther@suse.de>
25011 * data-streamer.h (streamer_write_char_stream): CSE
25012 obs->current_pointer.
25013 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
25014 streamer_write_char_stream manually and optimize the resulting loop.
25015 (streamer_write_hwi_stream): Likewise.
25017 2013-06-12 Jan Hubicka <jh@suse.cz>
25019 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
25020 * cgraph.h (varpool_create_empty_node): Declare.
25021 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
25023 * symtab.c (symtab_unregister_node): Be lax about missin entries
25025 (symtab_get_node): Update comment.
25026 * varpool.c (varpool_create_empty_node): Break out from ...
25027 (varpool_node_for_decl): ... here.
25028 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
25030 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
25032 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
25033 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
25034 part. Use straight-line flow at the end.
25035 <COMPONENT_REF>: Remove superfluous else.
25036 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
25038 2013-06-12 Jakub Jelinek <jakub@redhat.com>
25041 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
25042 target hook even for !TREE_PUBLIC decls. If no resolution info
25043 is available, return false for common and external decls.
25045 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
25047 * config/rl78/constraints.md (U): New constraint.
25048 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
25051 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
25054 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
25055 to allow returning address to AT_PLATFORM name.
25057 2013-06-11 Jan Hubicka <jh@suse.cz>
25059 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
25060 * cgraph.h (symtab_node_base): Add weakref flag.
25061 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
25062 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
25063 (output_weakrefs): Use weakref flag.
25064 * fold-const.c (simple_operand_p): Handle WEAK.
25065 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
25066 * ipa.c (varpool_externally_visible_p): Drop weakref.
25067 (function_and_variable_visibility): Update comment; fix weakref
25068 sanity checks; do not clear DECL_WEAK on them.
25069 * lto-cgraph.c (lto_output_node): update.
25070 (lto_output_varpool_node): Update.
25071 (input_overwrite_node): Update.
25072 (input_node): Update.
25073 (input_varpool_node): Update.
25074 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
25075 (lto_symtab_merge_symbols): Add sanity check.
25076 (lto_symtab_prevailing_decl): Do not special case weakrefs.
25077 * passes.c (rest_of_decl_compilation): Set static flag, too.
25078 * symtab.c (dump_symtab_base): Dump weakref.
25079 (verify_symtab_base): Sanity check weakrefs.
25080 (symtab_make_decl_local): Remove duplicated code.
25081 (symtab_alias_ultimate_target): Simplify.
25082 * varpool.c (varpool_create_variable_alias): Set weakref flag.
25084 2013-06-11 Tom de Vries <tom@codesourcery.com>
25086 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
25087 sequence_vect == NULL.
25089 2013-06-11 DJ Delorie <dj@redhat.com>
25091 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
25092 (rl78_unwind_word_mode): New.
25094 2013-06-11 David Malcolm <dmalcolm@redhat.com>
25096 * final.c (debug_prefix_maps): Make static.
25098 2013-06-11 David Malcolm <dmalcolm@redhat.com>
25100 * function.c (initial_trampoline): Remove stray copy.
25102 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
25104 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
25106 2013-06-11 Martin Jambor <mjambor@suse.cz>
25108 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
25109 within bounds at the beginning of the function.
25111 2013-06-11 Alan Modra <amodra@gmail.com>
25113 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
25115 (get_named_section): Don't NULL !DECL_P decl.
25117 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
25119 * doc/invoke.texi (core-avx2): Document.
25121 (atom): Updated with MOVBE.
25123 2013-06-11 Richard Biener <rguenther@suse.de>
25125 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
25127 2013-06-11 Anton Blanchard <anton@samba.org>
25129 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
25130 correct shift value in little-endian mode.
25132 2013-06-11 Jakub Jelinek <jakub@redhat.com>
25135 * varasm.c (get_variable_align): Move #endif to the right place.
25137 2013-06-10 Cary Coutant <ccoutant@google.com>
25139 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
25140 for hash so that hash table traversal order is deterministic.
25142 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
25143 Pat Haugen <pthaugen@us.ibm.com>
25144 Peter Bergner <bergner@vnet.ibm.com>
25146 * config/rs6000/vector.md (GPR move splitter): Do not split moves
25147 of vectors in GPRS if they are direct moves or quad word load or
25150 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
25152 (direct_move_p): Likewise.
25153 (quad_load_store_p): Likewise.
25155 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
25156 classes into bins based on the physical register type.
25157 (reg_class_to_reg_type): Likewise.
25158 (IS_STD_REG_TYPE): Likewise.
25159 (IS_FP_VECT_REG_TYPE): Likewise.
25160 (reload_fpr_gpr): Arrays to determine what insn to use if we can
25161 use direct move instructions.
25162 (reload_gpr_vsx): Likewise.
25163 (reload_vsx_gpr): Likewise.
25164 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
25165 information that is a simplification of register classes. Also
25166 precalculate direct move reload helpers.
25167 (direct_move_p): New function to return true if the operation can
25168 be done as a direct move instruciton.
25169 (quad_load_store_p): New function to return true if the operation
25170 is a quad memory operation.
25171 (rs6000_legitimize_address): If quad memory, only allow register
25172 indirect for TImode addresses.
25173 (rs6000_legitimate_address_p): Likewise.
25174 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
25175 (rs6000_reload_register_type): Likewise.
25176 (register_to_reg_type): Return register type.
25177 (rs6000_secondary_reload_simple_move): New helper function for
25178 secondary reload and secondary memory needed to identify anything
25179 that is a simple move, and does not need reloading.
25180 (rs6000_secondary_reload_direct_move): New helper function for
25181 secondary reload to identify cases that can be done with several
25182 instructions via the direct move instructions.
25183 (rs6000_secondary_reload_move): New helper function for secondary
25184 reload to identify moves between register types that can be done.
25185 (rs6000_secondary_reload): Add support for quad memory operations
25186 and for direct move.
25187 (rs6000_secondary_memory_needed): Likewise.
25188 (rs6000_debug_secondary_memory_needed): Change argument names.
25189 (rs6000_output_move_128bit): New function to return the move to
25190 use for 128-bit moves, including knowing about the various
25191 limitations of quad memory operations.
25193 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
25194 memory operations. call rs6000_output_move_128bit for the actual
25195 instruciton(s) to generate.
25196 (vsx_movti_64bit): Likewise.
25198 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
25199 (UNSPEC_P8V_MTVSRWZ): Likewise.
25200 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
25201 (UNSPEC_P8V_MTVSRD): Likewise.
25202 (UNSPEC_P8V_XXPERMDI): Likewise.
25203 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
25204 (UNSPEC_FUSION_GPR): Likewise.
25205 (FMOVE128_GPR): New iterator for direct move.
25206 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
25207 (f32_sv): Likewise.
25208 (f32_dm): Likewise.
25209 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
25210 loads and direct move instructions.
25211 (zero_extendsidi2_lfiwzx): Likewise.
25212 (extendsidi2_lfiwax): Likewise.
25213 (extendsidi2_nocell): Likewise.
25214 (floatsi<mode>2_lfiwax): Likewise.
25215 (lfiwax): Likewise.
25216 (floatunssi<mode>2_lfiwzx): Likewise.
25217 (lfiwzx): Likewise.
25218 (fix_trunc<mode>_stfiwx): Likewise.
25219 (fixuns_trunc<mode>_stfiwx): Likewise.
25220 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
25221 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
25222 (parity<mode>2_cmpb): Set length/type attr.
25223 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
25224 for 'mr.' to fast_compare.
25225 (bpermd_<mode>): Change type attr to popcnt.
25226 (p8_fmrgow_<mode>): New insns for power8 direct move support.
25227 (p8_mtvsrwz_1): Likewise.
25228 (p8_mtvsrwz_2): Likewise.
25229 (reload_fpr_from_gpr<mode>): Likewise.
25230 (p8_mtvsrd_1): Likewise.
25231 (p8_mtvsrd_2): Likewise.
25232 (p8_xxpermdi_<mode>): Likewise.
25233 (reload_vsx_from_gpr<mode>): Likewise.
25234 (reload_vsx_from_gprsf): Likewise.
25235 (p8_mfvsrd_3_<mode>): LIkewise.
25236 (reload_gpr_from_vsx<mode>): Likewise.
25237 (reload_gpr_from_vsxsf): Likewise.
25238 (p8_mfvsrd_4_disf): Likewise.
25239 (multi-word GPR splits): Do not split direct moves or quad memory
25242 2013-06-10 David Malcolm <dmalcolm@redhat.com>
25244 * tree-into-ssa.c (interesting_blocks): Make static.
25246 2013-06-10 Jakub Jelinek <jakub@redhat.com>
25249 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
25250 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
25251 Use DATA_ABI_ALIGNMENT for that case instead if defined.
25252 (get_variable_align): New function.
25253 (get_variable_section, emit_bss, emit_common,
25254 assemble_variable_contents, place_block_symbol): Use
25255 get_variable_align instead of DECL_ALIGN.
25256 (assemble_noswitch_variable): Add align argument, use it
25257 instead of DECL_ALIGN.
25258 (assemble_variable): Adjust caller. Use get_variable_align
25259 instead of DECL_ALIGN.
25260 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
25262 (DATA_ABI_ALIGNMENT): Define.
25263 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
25264 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
25265 opt is false, only return the psABI mandated alignment increase.
25266 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
25267 (DATA_ABI_ALIGNMENT): ... this.
25268 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
25269 (DATA_ABI_ALIGNMENT): ... this.
25270 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
25271 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
25272 (DATA_ABI_ALIGNMENT): ... this.
25273 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
25274 * doc/tm.texi: Regenerated.
25276 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
25278 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
25279 cmp_code to construct REG_EQUAL note.
25281 2013-06-09 Jakub Jelinek <jakub@redhat.com>
25284 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
25285 that operands[2] doesn't overlap with operands[0].
25287 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
25288 Jan Hubicka <jh@suse.cz>
25290 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
25291 hack to mark symbols as used.
25293 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
25295 PR rtl-optimization/57559
25296 * lra-constraints.c (process_alt_operands): Don't discourage
25297 memory with known offset for offsetable memory constraint.
25298 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
25300 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
25302 * varasm.c (struct oc_local_state): Reorder fields.
25303 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
25304 and adjust accordingly.
25305 (output_constructor): Reorder initialization code and adjust call to
25306 output_constructor_bitfield.
25308 2013-06-07 Jan Hubicka <jh@suse.cz>
25310 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
25312 2013-06-07 David Malcolm <dmalcolm@redhat.com>
25314 * tree-object-size.c (unknown): Make const.
25316 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25318 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
25319 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
25320 for last alternative in the cpu_facility attribute.
25322 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25325 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
25326 (xordi3): Change operand 2 constraint to arm_xordi_operand.
25327 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
25328 * config/arm/constraints.md (Dg): New constraint.
25329 * config/arm/neon.md (xordi3_neon): Remove.
25330 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
25331 * config/arm/predicates.md (arm_xordi_operand): New predicate.
25333 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25335 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
25336 Clean up alternatives.
25338 2013-06-07 Alan Modra <amodra@gmail.com>
25340 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
25343 2013-06-07 Alan Modra <amodra@gmail.com>
25345 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
25347 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25349 * config/arm/constraints.md (Df): New constraint.
25350 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
25351 Correct length attribute for last two alternatives.
25353 2013-06-07 Alan Modra <amodra@gmail.com>
25355 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25356 override user -mfp-in-toc.
25357 (offsettable_ok_by_alignment): Consider just the current access
25358 rather than the whole object, unless BLKmode. Handle
25359 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
25360 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
25361 for -mcmodel=medium.
25362 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
25363 override user -mfp-in-toc or -msum-in-toc. Default to
25364 -mno-fp-in-toc for -mcmodel=medium.
25366 2013-06-06 DJ Delorie <dj@redhat.com>
25368 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
25369 TARGET_VALID_POINTER_MODE.
25371 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
25372 Pat Haugen <pthaugen@us.ibm.com>
25373 Peter Bergner <bergner@vnet.ibm.com>
25375 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25376 Document new power8 builtins.
25378 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
25379 condition code register, to allow 128-bit logical operations to be
25380 done in the VSX or GPR registers.
25381 (nor<mode>3): Use the canonical form for nor.
25382 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
25383 vclz*, and vpopcnt* vector instructions.
25384 (nand<mode>3): Likewise.
25385 (orc<mode>3): Likewise.
25386 (clz<mode>2): LIkewise.
25387 (popcount<mode>2): Likewise.
25389 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
25390 that only the GPRs are recognized.
25392 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25393 support for new power8 builtins.
25395 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
25397 (xscvdpspn): Likewise.
25403 (vpopcnt): Likewise.
25404 (vpopcntb): Likewise.
25405 (vpopcnth): Likewise.
25406 (vpopcntw): Likewise.
25407 (vpopcntd): Likewise.
25409 (vmrgew): Likewise.
25410 (vmrgow): Likewise.
25412 (eqv_v16qi3): Likewise.
25413 (eqv_v8hi3): Likewise.
25414 (eqv_v4si3): Likewise.
25415 (eqv_v2di3): Likewise.
25416 (eqv_v4sf3): Likewise.
25417 (eqv_v2df3): Likewise.
25419 (nand_v16qi3): Likewise.
25420 (nand_v8hi3): Likewise.
25421 (nand_v4si3): Likewise.
25422 (nand_v2di3): Likewise.
25423 (nand_v4sf3): Likewise.
25424 (nand_v2df3): Likewise.
25426 (orc_v16qi3): Likewise.
25427 (orc_v8hi3): Likewise.
25428 (orc_v4si3): Likewise.
25429 (orc_v2di3): Likewise.
25430 (orc_v4sf3): Likewise.
25431 (orc_v2df3): Likewise.
25433 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
25434 allow power8 quad mode in 64-bit.
25435 (rs6000_builtin_vectorized_function): Add support to vectorize
25436 ISA 2.07 count leading zeros, population count builtins.
25437 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
25438 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
25439 (builtin_function_type): Add vgbbd builtin function which takes an
25441 (altivec_expand_vec_perm_const): Add support for new power8 merge
25444 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
25445 that does not include TImdoe for use with 32-bit.
25446 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
25448 (UNSPEC_VSX_CVDPSPN): Likewise.
25449 (vsx_xscvdpspn): Likewise.
25450 (vsx_xscvspdpn): Likewise.
25451 (vsx_xscvdpspn_scalar): Likewise.
25452 (vsx_xscvspdpn_directmove): Likewise.
25453 (vsx_and<mode>3): Split logical operations into 32-bit and
25454 64-bit. Add support to do logical operations on TImode as well as
25455 VSX vector types. Allow logical operations to be done in either
25456 VSX registers or in general purpose registers in 64-bit mode. Add
25457 splitters if GPRs were used. For AND, add clobber of CCmode to
25458 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
25460 (vsx_and<mode>3_32bit): Likewise.
25461 (vsx_and<mode>3_64bit): Likewise.
25462 (vsx_ior<mode>3): Likewise.
25463 (vsx_ior<mode>3_32bit): Likewise.
25464 (vsx_ior<mode>3_64bit): Likewise.
25465 (vsx_xor<mode>3): Likewise.
25466 (vsx_xor<mode>3_32bit): Likewise.
25467 (vsx_xor<mode>3_64bit): Likewise.
25468 (vsx_one_cmpl<mode>2): Likewise.
25469 (vsx_one_cmpl<mode>2_32bit): Likewise.
25470 (vsx_one_cmpl<mode>2_64bit): Likewise.
25471 (vsx_nor<mode>3): Likewise.
25472 (vsx_nor<mode>3_32bit): Likewise.
25473 (vsx_nor<mode>3_64bit): Likewise.
25474 (vsx_andc<mode>3): Likewise.
25475 (vsx_andc<mode>3_32bit): Likewise.
25476 (vsx_andc<mode>3_64bit): Likewise.
25477 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
25478 and xxlorc instructions.
25479 (vsx_eqv<mode>3_64bit): Likewise.
25480 (vsx_nand<mode>3_32bit): Likewise.
25481 (vsx_nand<mode>3_64bit): Likewise.
25482 (vsx_orc<mode>3_32bit): Likewise.
25483 (vsx_orc<mode>3_64bit): Likewise.
25485 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
25487 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
25489 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
25490 (p8_vmrgow): Likewise.
25491 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
25492 GPRs to be split under VSX.
25493 (p8v_clz<mode>2): Add power8 count leading zero support.
25494 (p8v_popcount<mode>2): Add power8 population count support.
25495 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
25498 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
25501 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
25503 (vec_nand): Likewise.
25504 (vec_vclz): Likewise.
25505 (vec_vclzb): Likewise.
25506 (vec_vclzd): Likewise.
25507 (vec_vclzh): Likewise.
25508 (vec_vclzw): Likewise.
25509 (vec_vgbbd): Likewise.
25510 (vec_vmrgew): Likewise.
25511 (vec_vmrgow): Likewise.
25512 (vec_vpopcnt): Likewise.
25513 (vec_vpopcntb): Likewise.
25514 (vec_vpopcntd): Likewise.
25515 (vec_vpopcnth): Likewise.
25516 (vec_vpopcntw): Likewise.
25518 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
25520 PR rtl-optimization/57468
25521 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
25524 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
25526 PR rtl-optimization/57459
25527 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
25528 type when setting live regs.
25530 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
25532 * config/s390/s390.opt (mlra): New option.
25533 * config/s390/s390.c (s390_decompose_address): Check displacement
25534 for all registers for LRA.
25535 (s390_secondary_reload): Don't used secondary reloads for LRA.
25536 (s390_lra_p): New function.
25537 (TARGET_LRA_P): Define.
25538 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
25539 of attribute cpu_facility to zarch for the last alternative.
25540 (*cmpmem_short): Ditto.
25542 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
25544 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
25545 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
25546 (arm_expand_prologue): Likewise.
25548 2013-06-06 Teresa Johnson <tejohnson@google.com>
25551 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
25552 as this is now done by redirect_edge_and_branch_force.
25553 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
25554 barriers, and fix interaction with splitting.
25555 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
25556 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
25557 reflect changes made in the routine.
25558 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
25559 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
25560 since this is called in cfglayout mode, and replace partition fixup
25561 with assert as that is now done by force_nonfallthru_and_redirect.
25562 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
25563 already be marked with region crossing note.
25564 (insert_section_boundary_note): Make non-static, gate on flag
25565 has_bb_partition, rewrite to also check for multiple partitions.
25566 (rest_of_handle_reorder_blocks): Remove call to
25567 insert_section_boundary_note, now done later during free_cfg.
25568 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
25569 * bb-reorder.h (insert_section_boundary_note): Declare.
25570 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
25571 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
25572 invoke insert_section_boundary_note.
25573 (try_redirect_by_replacing_jump): Remove unnecessary
25574 check for region crossing note.
25575 (fixup_partition_crossing): New function.
25576 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
25577 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
25578 in non-cfglayout mode.
25579 (force_nonfallthru_and_redirect): Fixup partition boundaries,
25580 remove old code that tried to do this. Emit barrier correctly
25581 when we are in cfglayout mode.
25582 (last_bb_in_partition): New function.
25583 (rtl_split_edge): Correctly fixup partition boundaries.
25584 (commit_one_edge_insertion): Remove old code that tried to
25585 fixup region crossing edge since this is now handled in
25586 split_block, and set up insertion point correctly since
25587 block may now end in a jump.
25588 (verify_hot_cold_block_grouping): Guard against checking when not in
25589 linearized RTL mode.
25590 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
25592 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
25593 rtl_verify_flow_info, so not called in cfglayout mode.
25594 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
25595 (fixup_reorder_chain): Remove old code that attempted to fixup region
25596 crossing note as this is now handled in force_nonfallthru_and_redirect.
25597 (duplicate_insn_chain): Don't duplicate switch section notes.
25598 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
25600 * basic-block.h (emit_barrier_after_bb): Declare.
25602 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25604 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
25605 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
25606 arm_usatsihi): Adjust alternatives for arm_restrict_it.
25608 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25610 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
25612 * config/arm/ldmstm.md: Regenerate.
25614 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25616 * config/arm/sync.md (atomic_loaddi_1):
25617 Disable predication for arm_restrict_it.
25618 (arm_load_exclusive<mode>): Likewise.
25619 (arm_load_exclusivesi): Likewise.
25620 (arm_load_exclusivedi): Likewise.
25621 (arm_load_acquire_exclusive<mode>): Likewise.
25622 (arm_load_acquire_exclusivesi): Likewise.
25623 (arm_load_acquire_exclusivedi): Likewise.
25624 (arm_store_exclusive<mode>): Likewise.
25625 (arm_store_exclusive<mode>): Likewise.
25626 (arm_store_release_exclusivedi): Likewise.
25627 (arm_store_release_exclusive<mode>): Likewise.
25629 2013-06-06 Richard Biener <rguenther@suse.de>
25631 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
25633 (lto_tag_is_tree_code_p): Adjust.
25634 (lto_tag_is_gimple_code_p): Likewise.
25635 (lto_gimple_code_to_tag): Likewise.
25636 (lto_tag_to_gimple_code): Likewise.
25637 (lto_tree_code_to_tag): Likewise.
25638 (lto_tag_to_tree_code): Likewise.
25639 * data-streamer.h (streamer_write_hwi_in_range): Use
25640 uhwi streaming to stream the normalized range.
25641 (streamer_read_hwi_in_range): Likewise.
25643 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25645 * config/arm/arm.md (enabled_for_depr_it): New attribute.
25646 (predicable_short_it): Likewise.
25647 (predicated): Likewise.
25648 (enabled): Handle above.
25649 (define_cond_exec): Set predicated attribute to yes.
25651 2013-06-05 Mike Stump <mikestump@comcast.net>
25653 * gdbinit.in (__FUNCTION__): Add.
25655 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
25657 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
25658 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
25660 2013-06-05 Jan Hubicka <jh@suse.cz>
25662 * varasm.c (mark_decl_referenced): Revert the removal until targets
25665 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
25667 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
25668 instead of mark_decl_referenced.
25670 2013-06-05 Jan Hubicka <jh@suse.cz>
25672 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
25673 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
25674 and symtab_used_from_object_file_p.
25675 (cgraph_make_node_local_1): Clear forced_by_abi.
25676 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
25677 * cgraph.h (symtab_node_base): Add forced_by_abi.
25678 (decide_is_variable_needed): Remove.
25679 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
25680 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
25681 (decide_is_symbol_needed): ... this one; handle symbols in general;
25682 always analyze virtuals; honnor forced_by_abi.
25683 (cgraph_finalize_function): Update.
25684 (varpool_finalize_decl): Update.
25685 (symbol_defined_and_needed): Remove.
25686 (analyze_functions): Update.
25687 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
25688 output_refs, input_overwrite_node): Handle forced_by_abi.
25689 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
25690 (address_taken_from_non_vtable_p): ... this one.
25691 (comdat_can_be_unshared_p_1): New function.
25692 (cgraph_comdat_can_be_unshared_p): Rename to ...
25693 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
25694 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
25695 (function_and_variable_visibility): Clear forced_by_abi as needed.
25696 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
25697 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
25698 * symtab.c (dump_symtab_base): Dump forced_by_abi.
25699 * varpool.c (decide_is_variable_needed): Remove.
25701 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25703 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
25704 (arm_option_override): Override arm_restrict_it where appropriate.
25705 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
25706 * config/arm/arm.opt (mrestrict-it): New command-line option.
25707 * doc/invoke.texi: Document -mrestrict-it.
25709 2013-06-05 David Malcolm <dmalcolm@redhat.com>
25711 * tsan.c (tsan_atomic_table): Make const.
25713 2013-06-05 Richard Biener <rguenther@suse.de>
25715 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
25716 index associated with the tree we are supposed to replace.
25717 * tree-streamer-out.c (pack_ts_base_value_fields): Output
25718 TREE_ASM_WRITTEN as zero for everything but SSA names.
25720 2013-06-05 David Malcolm <dmalcolm@redhat.com>
25722 * tree-ssa-structalias.c (call_stmt_vars): Make static.
25724 2013-06-04 Jan Hubicka <jh@suse.cz>
25726 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
25727 (input_node, input_varpool_node): Handle correctly external same
25729 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
25730 nodes at ltrans stage.
25732 2013-06-04 Jan Hubicka <jh@suse.cz>
25734 * ipa-inline.c (update_caller_keys): Fix availability test.
25735 (update_callee_keys): Likewise.
25736 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
25737 to follow ELF standard.
25739 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
25741 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
25742 (mips64r5900el-*-elf*): New configurations.
25743 * config/mips/mips-cpus.def (r5900): New processor.
25744 * config/mips/mips-tables.opt: Regenerate.
25745 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
25746 (mips_issue_rate): Handle PROCESSOR_R5900.
25747 (mips_reorg_process_insns): Force reorder mode for the R5900.
25748 * config/mips/mips.h (TARGET_MIPS5900): Define.
25749 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
25751 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
25753 * config/mips/mips.md (processor): Add r5900.
25754 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
25756 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25758 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
25759 into function to generate MOVI instruction.
25760 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
25761 (aarch64_preferred_simd_mode): Turn into wrapper.
25762 (aarch64_output_scalar_simd_mov_immediate): New function.
25763 * config/aarch64/aarch64-protos.h: Add prototype for above.
25765 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25767 * config/aarch64/aarch64.c (simd_immediate_info): Remove
25768 element_char member.
25769 (sizetochar): Return signed char.
25770 (aarch64_simd_valid_immediate): Remove elchar and other
25771 unnecessary variables.
25772 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
25773 Calculate element_char as required.
25774 * config/aarch64/aarch64-protos.h: Update and move prototype
25775 for aarch64_output_simd_mov_immediate.
25776 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
25779 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25781 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
25782 information completed by aarch64_simd_valid_immediate.
25783 (aarch64_legitimate_constant_p): Update arguments.
25784 (aarch64_simd_valid_immediate): Work with struct rather than many
25786 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
25787 (aarch64_simd_make_constant): Update arguments.
25788 (aarch64_output_simd_mov_immediate): Work with struct rather than
25789 many pointers. Output immediate directly rather than as operand.
25790 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25792 * config/aarch64/constraints.md (Dn): Update arguments.
25794 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25796 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
25798 (aarch64_simd_immediate_valid_for_move): Remove.
25799 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
25800 (aarch64_simd_make_constant): Update call.
25801 (aarch64_output_simd_mov_immediate): Update call.
25802 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25804 * config/aarch64/constraints.md (Dn): Update call.
25806 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25808 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
25809 return type to bool for prototype.
25810 (aarch64_legitimate_constant_p): Check for true instead of not -1.
25811 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
25812 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
25814 2013-06-04 Catherine Moore <clm@codesourcery.com>
25816 * config/mips/mips.opt (meva): New.
25817 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
25818 (ASM_SPEC): Handle -meva.
25819 * doc/invoke.texi (meva): Document.
25821 2013-06-04 Alan Modra <amodra@gmail.com>
25823 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
25826 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25828 * rtl.def: Add extra fourth optional field to define_cond_exec.
25829 * gensupport.c (process_one_cond_exec): Process attributes from
25831 * doc/md.texi: Document fourth field in define_cond_exec.
25833 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
25835 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
25836 out the processing order as in store_bit_field_1.
25838 2013-06-04 Jan Hubicka <jh@suse.cz>
25840 PR middle-end/57500
25841 * cgraphunit.c (cgraph_process_same_body_aliases): Create
25842 non-VAR_DECL node if it does not exist yet.
25844 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
25846 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
25847 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
25848 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
25849 target_cpu_default setting.
25851 2013-06-03 Teresa Johnson <tejohnson@google.com>
25853 * dumpfile.c (opt_info_switch_p): Change -fopt-info
25854 default to -fopt-info=optimized instead of all.
25855 * doc/invoke.texi: Ditto.
25856 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
25857 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
25858 (execute_vect_slp): Emit BB vectorization success under
25859 MSG_OPTIMIZED_LOCATIONS.
25860 * tree-vect-slp.c (vect_slp_transform_bb): Change
25861 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
25862 * tree-vect-loop.c (vect_transform_loop): Ditto.
25864 2013-06-03 Jason Merrill <jason@redhat.com>
25867 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25868 Use TARGET_EXPR for C++.
25870 2013-06-03 Jakub Jelinek <jakub@redhat.com>
25872 PR rtl-optimization/57268
25873 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
25874 if DEBUG_INSN_P (insn).
25877 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
25879 PR rtl-optimization/57268
25880 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25881 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25883 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25885 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
25886 (ix86_avoid_lea_for_addr): Likewise.
25887 (exact_dependency_1): Likewise.
25888 (ix86_adjust_cost): Likewise.
25889 (swap_top_of_ready_list): Fix formatting and !reload_completed check
25891 (do_reorder_for_imul): Fix typo, formatting and
25892 !reload_completed check removed.
25893 (ix86_sched_reorder): Fix typo and formatting.
25894 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
25897 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
25899 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
25901 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
25903 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
25904 <STRING_CST>: Likewise.
25905 <VECTOR_CST>: Likewise.
25907 2013-06-01 Janus Weil <janus@gcc.gnu.org>
25908 Mikael Morin <mikael@gcc.gnu.org>
25910 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
25911 * config.in: Regenerated.
25912 * configure: Regenerated.
25914 2013-06-01 Jan Hubicka <jh@suse.cz>
25916 PR middle-end/57366
25917 * cgraphunit.c (compile): When weakref is not supported,
25918 set up transparent aliases before final output pass.
25919 * varasm.c (assemble_alias): Do not try to do it here.
25921 2013-06-01 Jan Hubicka <jh@suse.cz>
25923 PR middle-end/57467
25924 * passes.c (for_per_function): Skip unanalyzed functions.
25926 2013-06-01 Jan Hubicka <jh@suse.cz>
25928 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
25929 (lto_symtab_merge_symbols_1): ... this one.
25930 (lto_symtab_merge_cgraph_nodes): Rename to ...
25931 (lto_symtab_merge_symbols): ... this one; simplify.
25932 * cgraph.c (same_body_aliases_done): Rename to ...
25933 (cpp_implicit_aliases_done): ... this one.
25934 (cgraph_create_function_alias): Update.
25935 (cgraph_same_body_alias): Update.
25936 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
25937 (verify_edge_corresponds_to_fndecl): Simplify.
25938 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
25939 (cgraph_node): Remove same_body_alias.
25940 (varpool_node): Remove alias_of and extra_name_alias.
25941 (same_body_aliases_done): Rename to ..
25942 (cpp_implicit_aliases_done): ... this one.
25943 (symtab_alias_ultimate_target): Add default parameter.
25944 (symtab_resolve_alias): New function.
25945 (fixup_same_cpp_alias_visibility): Declare.
25946 (cgraph_function_node): Add default parameter.
25947 (cgraph_node_asm_name): Likewise.
25948 (cgraph_function_or_thunk_node): Add default parameter; do
25949 not ICE when it is NULL.
25950 (varpool_variable_node): Likewise.
25951 * tree-emutls.c (create_emultls_var): Update.
25952 (ipa_lower_emutls): Update.
25953 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
25954 (cgraph_reset_node): Reset alias info.
25955 (cgraph_finalize_function): Update.
25956 (fixup_same_cpp_alias_visibility): Move to symtab.c.
25957 (analyze_function): Simplify.
25958 (cgraph_process_same_body_aliases): Simplify.
25959 (analyze_functions): Fixup same body aliases.
25960 (handle_alias_pairs): Simplify.
25961 (assemble_thunk): Update.
25962 (assemble_thunks_and_aliases): Update.
25963 (output_weakrefs): Rewrite.
25964 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
25965 (lto_output_varpool_node): Likewise.
25966 (compute_ltrans_boundary): Remve assert.
25967 (get_alias_symbol): New functoin.
25968 (input_node): Rewrite alias handling.
25969 (input_varpool_node): Likewise.
25970 * ipa-pure-const.c (propagate_pure_const): Fix formating.
25971 * ipa.c (process_references): Handle weakrefs correctly.
25972 (symtab_remove_unreachable_nodes): Likewise.
25973 * trans-mem.c (get_cg_data): Update.
25974 (ipa_tm_create_version_alias): Update.
25975 (ipa_tm_execute): Update.
25976 * symtab.c (dump_symtab_base): Dump aliases.
25977 (verify_symtab_base): Verify aliases.
25978 (symtab_node_availability): New function.
25979 (symtab_alias_ultimate_target): Simplify.
25980 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
25981 handle all the fixup cases.
25982 (symtab_resolve_alias): New function.
25983 * passes.c (ipa_write_summaries): Handle weakrefs.
25984 * varpool.c (varpool_analyze_node): Simplify.
25985 (assemble_aliases): Update.
25986 (varpool_create_variable_alias): Simplify.
25987 (varpool_extra_name_alias): Simplify.
25988 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
25989 (lto_symtab_merge_symbols): ... this one.
25991 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
25994 PR rtl-optimization/57268
25995 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25996 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25998 2013-06-01 Tobias Burnus <burnus@net-b.de>
26000 Partially reverted:
26001 2013-05-31 Tobias Burnus <burnus@net-b.de>
26003 PR middle-end/57073
26004 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
26007 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
26009 PR rtl-optimization/57268
26010 * sched-deps.c (sched_analyze_2): Flush dependence lists if
26011 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
26013 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
26015 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
26016 unordered comparison operators when -fno-trapping-math is in effect
26018 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
26019 and implement unordered comparison operators properly on the e500.
26021 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
26023 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
26024 for constant scalar integers.
26025 (simplify_relational_operation_1): Likewise.
26027 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
26029 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
26030 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
26033 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
26034 Igor Zamyatin <igor.zamyatin@intel.com>
26036 Silvermont (SLM) architecture performance tuning.
26037 * config/i386/i386.h (enum ix86_tune_indices): Add
26038 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
26039 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
26041 * config/i386/i386.c (initial_ix86_tune_features)
26042 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
26043 (ix86_lea_outperforms): Handle Silvermont tuning.
26044 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
26046 (ix86_use_lea_for_mov): Likewise.
26047 (ix86_avoid_lea_for_addr): Likewise.
26048 (ix86_lea_for_add_ok): Likewise.
26049 (exact_dependency_1): New function.
26050 (exact_store_load_dependency): Likewise.
26051 (ix86_adjust_cost): Handle Silvermont tuning.
26052 (do_reoder_for_imul): Likewise.
26053 (swap_top_of_ready_list): New function.
26054 (ix86_sched_reorder): Changed to handle Silvermont tuning.
26056 * config/i386/i386.md (peepholes that split memory operand in fp
26059 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
26061 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
26062 Remove un-necessary braces.
26064 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
26066 * config/aarch64/aarch64.c (aarch64_classify_symbol):
26067 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
26069 2013-05-31 Tobias Burnus <burnus@net-b.de>
26071 PR middle-end/57073
26072 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
26074 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26077 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
26078 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
26079 * config/arm/neon.md (iordi3_neon): Remove.
26080 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
26081 * config/arm/predicates.md (imm_for_neon_logic_operand):
26082 Move to earlier in the file.
26083 (neon_logic_op2): Likewise.
26084 (arm_iordi_operand_neon): New predicate.
26086 2013-05-31 Richard Biener <rguenther@suse.de>
26088 PR tree-optimization/57478
26089 PR tree-optimization/57453
26090 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
26093 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26095 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
26096 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
26098 2013-05-30 Tobias Burnus <burnus@net-b.de>
26099 Thomas Koenig <tkoenig@gcc.gnu.org>
26101 PR middle-end/57073
26102 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
26103 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
26105 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
26107 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
26109 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
26111 * target.def (register_usage_leveling_p): New hook.
26112 * targhooks.c (default_register_usage_leveling_p): New.
26113 * targhooks.h (default_register_usage_leveling_p): New prototype.
26114 * lra-assigns.c (register_usage_leveling_p): Use the hook.
26115 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
26116 * doc/tm.texi: Update.
26117 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
26119 2013-05-30 Ian Bolton <ian.bolton@arm.com>
26121 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
26122 (*insv_reg<mode>): New define_insn.
26124 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
26126 PR rtl-optimization/57439
26127 * postreload.c (move2add_valid_value_p): Check that we have
26128 a zero subreg_regno_offset when accessing the register in
26129 the requested mode.
26131 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
26132 Igor Zamyatin <igor.zamyatin@intel.com>
26134 Silvermont (SLM) architecture pipeline model, tuning and
26136 * config.gcc: Add slm config options and target.
26138 * config/i386/slm.md: New.
26140 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
26142 * config/i386/i386-c.c (ix86_target_macros_internal): New case
26144 (ix86_target_macros_internal): Likewise.
26146 * config/i386/i386.c (slm_cost): New cost.
26147 (m_SLM): New macro flag.
26148 (initial_ix86_tune_features): Set m_SLM.
26149 (x86_accumulate_outgoing_args): Likewise.
26150 (x86_arch_always_fancy_math_387): Likewise.
26151 (processor_target_table): Add slm cost.
26152 (cpu_names): Add slm cpu name.
26153 (x86_option_override_internal): Set SLM ISA.
26154 (ix86_issue_rate): New case PROCESSOR_SLM.
26155 (ia32_multipass_dfa_lookahead): Likewise.
26156 (fold_builtin_cpu): Add slm.
26158 * config/i386/i386.h (TARGET_SLM): New target macro.
26159 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
26160 (processor_type): Add PROCESSOR_SLM.
26162 * config/i386/i386.md (cpu): Add new value "slm".
26163 (slm.md): Include slm.md.
26165 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
26166 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26168 * config/arm/arm-protos.h: Add and update function protos.
26169 * config/arm/arm.c (use_simple_return_p): New added.
26170 (thumb2_expand_return): Check simple_return flag.
26171 * config/arm/arm.md: Add simple_return and conditional simple_return.
26172 * config/arm/iterators.md: Add iterator for return and simple_return.
26174 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26176 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
26177 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
26178 (arm_emit_vfp_multi_reg_pop): Likewise.
26179 (thumb2_emit_ldrd_pop): Likewise.
26180 (arm_expand_epilogue): Add misc REG_CFA notes.
26181 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
26183 2013-05-29 Lawrence Crowl <crowl@google.com>
26185 * config/arm/t-arm: Update for below.
26187 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
26188 Change type to hash_table. Update dependent calls and types.
26190 * config/i386/t-cygming: Update for below.
26192 * config/i386/t-interix: Update for below.
26194 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
26195 Change type to hash_table. Update dependent calls and types.
26196 (i386_find_on_wrapper_list::wrappers): Likewise.
26198 * config/ia64/t-ia64: Update for below.
26200 * config/ia64/ia64.c (bundle_state_table):
26201 Change type to hash_table. Update dependent calls and types.
26203 * config/mips/mips.c (mips_reorg_process_insns::htab):
26204 Change type to hash_table. Update dependent calls and types.
26206 * config/sol2.c (solaris_comdat_htab):
26207 Change type to hash_table. Update dependent calls and types.
26209 * config/t-sol2: Update for above.
26211 2013-05-29 Teresa Johnson <tejohnson@google.com>
26213 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
26214 functions are not yet marked as defined.
26216 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
26217 Pat Haugen <pthaugen@us.ibm.com>
26218 Peter Bergner <bergner@vnet.ibm.com>
26220 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
26224 (vrotl<mode>3): Likewise.
26225 (vashl<mode>3): Likewise.
26226 (vlshr<mode>3): Likewise.
26227 (vashr<mode>3): Likewise.
26229 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26230 support for power8 V2DI builtins.
26232 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
26233 power8 V2DI builtins.
26234 (vupkhsw): Likewise.
26235 (vupklsw): Likewise.
26236 (vaddudm): Likewise.
26237 (vminsd): Likewise.
26238 (vmaxsd): Likewise.
26239 (vminud): Likewise.
26240 (vmaxud): Likewise.
26241 (vpkudum): Likewise.
26242 (vpksdss): Likewise.
26243 (vpkudus): Likewise.
26244 (vpksdus): Likewise.
26249 (vsubudm): Likewise.
26250 (vcmpequd): Likewise.
26251 (vcmpgtsd): Likewise.
26252 (vcmpgtud): Likewise.
26253 (vcmpequd_p): Likewise.
26254 (vcmpgtsd_p): Likewise.
26255 (vcmpgtud_p): Likewise.
26256 (vupkhsw): Likewise.
26257 (vupklsw): Likewise.
26258 (vaddudm): Likewise.
26259 (vmaxsd): Likewise.
26260 (vmaxud): Likewise.
26261 (vminsd): Likewise.
26262 (vminud): Likewise.
26263 (vpksdss): Likewise.
26264 (vpksdus): Likewise.
26265 (vpkudum): Likewise.
26266 (vpkudus): Likewise.
26271 (vsubudm): Likewise.
26273 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
26274 support for power8 V2DI instructions.
26276 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
26277 power8 V2DI instructions. Combine pack and unpack insns to use an
26278 iterator for each mode. Check whether a particular mode supports
26279 Altivec instructions instead of just checking TARGET_ALTIVEC.
26280 (UNSPEC_VPKUWUM): Likewise.
26281 (UNSPEC_VPKSHSS): Likewise.
26282 (UNSPEC_VPKSWSS): Likewise.
26283 (UNSPEC_VPKUHUS): Likewise.
26284 (UNSPEC_VPKSHUS): Likewise.
26285 (UNSPEC_VPKUWUS): Likewise.
26286 (UNSPEC_VPKSWUS): Likewise.
26287 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
26288 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
26289 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
26290 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
26291 (UNSPEC_VUPKHSB): Likewise.
26292 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
26293 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
26294 (UNSPEC_VUPKHSH): Likewise.
26295 (UNSPEC_VUPKLSB): Likewise.
26296 (UNSPEC_VUPKLSH): Likewise.
26298 (VI_char): Likewise.
26299 (VI_scalar): Likewise.
26300 (VI_unit): Likewise.
26302 (VP_small): Likewise.
26303 (VP_small_lc): Likewise.
26304 (VU_char): Likewise.
26305 (add<mode>3): Likewise.
26306 (altivec_vaddcuw): Likewise.
26307 (altivec_vaddu<VI_char>s): Likewise.
26308 (altivec_vadds<VI_char>s): Likewise.
26309 (sub<mode>3): Likewise.
26310 (altivec_vsubcuw): Likewise.
26311 (altivec_vsubu<VI_char>s): Likewise.
26312 (altivec_vsubs<VI_char>s): Likewise.
26313 (altivec_vavgs<VI_char>): Likewise.
26314 (altivec_vcmpbfp): Likewise.
26315 (altivec_eq<mode>): Likewise.
26316 (altivec_gt<mode>): Likewise.
26317 (altivec_gtu<mode>): Likewise.
26318 (umax<mode>3): Likewise.
26319 (smax<mode>3): Likewise.
26320 (umin<mode>3): Likewise.
26321 (smin<mode>3): Likewise.
26322 (altivec_vpkuhum): Likewise.
26323 (altivec_vpkuwum): Likewise.
26324 (altivec_vpkshss): Likewise.
26325 (altivec_vpkswss): Likewise.
26326 (altivec_vpkuhus): Likewise.
26327 (altivec_vpkshus): Likewise.
26328 (altivec_vpkuwus): Likewise.
26329 (altivec_vpkswus): Likewise.
26330 (altivec_vpks<VI_char>ss): Likewise.
26331 (altivec_vpks<VI_char>us): Likewise.
26332 (altivec_vpku<VI_char>us): Likewise.
26333 (altivec_vpku<VI_char>um): Likewise.
26334 (altivec_vrl<VI_char>): Likewise.
26335 (altivec_vsl<VI_char>): Likewise.
26336 (altivec_vsr<VI_char>): Likewise.
26337 (altivec_vsra<VI_char>): Likewise.
26338 (altivec_vsldoi_<mode>): Likewise.
26339 (altivec_vupkhsb): Likewise.
26340 (altivec_vupkhs<VU_char>): Likewise.
26341 (altivec_vupkls<VU_char>): Likewise.
26342 (altivec_vupkhsh): Likewise.
26343 (altivec_vupklsb): Likewise.
26344 (altivec_vupklsh): Likewise.
26345 (altivec_vcmpequ<VI_char>_p): Likewise.
26346 (altivec_vcmpgts<VI_char>_p): Likewise.
26347 (altivec_vcmpgtu<VI_char>_p): Likewise.
26348 (abs<mode>2): Likewise.
26349 (vec_unpacks_hi_v16qi): Likewise.
26350 (vec_unpacks_hi_v8hi): Likewise.
26351 (vec_unpacks_lo_v16qi): Likewise.
26352 (vec_unpacks_hi_<VP_small_lc>): Likewise.
26353 (vec_unpacks_lo_v8hi): Likewise.
26354 (vec_unpacks_lo_<VP_small_lc>): Likewise.
26355 (vec_pack_trunc_v8h): Likewise.
26356 (vec_pack_trunc_v4si): Likewise.
26357 (vec_pack_trunc_<mode>): Likewise.
26359 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
26361 (vec_vmaxsd): Likewise.
26362 (vec_vmaxud): Likewise.
26363 (vec_vminsd): Likewise.
26364 (vec_vminud): Likewise.
26365 (vec_vpksdss): Likewise.
26366 (vec_vpksdus): Likewise.
26367 (vec_vpkudum): Likewise.
26368 (vec_vpkudus): Likewise.
26369 (vec_vrld): Likewise.
26370 (vec_vsld): Likewise.
26371 (vec_vsrad): Likewise.
26372 (vec_vsrd): Likewise.
26373 (vec_vsubudm): Likewise.
26374 (vec_vupkhsw): Likewise.
26375 (vec_vupklsw): Likewise.
26377 2013-05-29 Jan Hubicka <jh@suse.cz>
26379 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
26380 flags; reorder rest of fields in more consistent way.
26381 (varpool_node): Remove analyzed, finalized and alias.
26382 (cgraph_ndoe): Likewise.
26383 (symtab_alias_ultimate_target): New function.
26384 (cgraph_function_node): Move offline.
26385 (cgraph_reset_node): Declare.
26386 (cgraph_comdat_can_be_unshared_p): Remove.
26387 (varpool_remove_initializer): Declare.
26388 (varpool_first_defined_variable, varpool_next_defined_variable
26389 cgraph_first_defined_function, cgraph_next_defined_function): Update.
26390 (cgraph_function_with_gimple_body_p): Update.
26391 (varpool_all_refs_explicit_p): Update.
26392 (symtab_alias_target): New function.
26393 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
26394 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
26395 (cgraph_function_or_thunk_node): Simplify using
26396 symtab_alias_ultimate_target.
26397 (varpool_variable_node): Likewise.
26398 * cgraph.c (cgraph_create_function_alias): Update.
26399 (cgraph_add_thunk): Update.
26400 (cgraph_remove_node): Update.
26401 (dump_cgraph_node): Do not dump removed flags.
26402 (cgraph_function_body_availability): Update.
26403 (cgraph_propagate_frequency): Update.
26404 (verify_cgraph_node): Check sanity of local flag.
26405 (cgraph_function_node): Move here from cgraph.h; revamp for
26406 cgraph_function_or_thunk_node.
26407 * lto-symtab.c (lto_varpool_replace_node): Update.
26408 (lto_symtab_resolve_can_prevail_p): Update.
26409 (lto_symtab_merge_cgraph_nodes): Update.
26410 * ipa-cp.c (determine_versionability, initialize_node_lattices,
26411 propagate_constants_accross_call, devirtualization_time_bonus,
26412 ipcp_propagate_stage): Update.
26413 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
26414 * ipa-inline-transform.c (clone_inlined_nodes,
26415 preserve_function_body_p): Update.
26416 * ipa-reference.c (propagate): Update.
26417 (write_node_summary_p): Update.
26418 * toplev.c (wrapup_global_declaration_2): Update.
26419 * cgraphunit.c (cgraph_analyze_function): Rename to ...
26420 (analyze_function) ... this one.
26421 (cgraph_process_new_functions): Update.
26422 (cgraph_reset_node): Export.
26423 (cgraph_finalize_function): Update.
26424 (cgraph_add_new_function): Update.
26425 (process_function_and_variable_attributes): Update.
26426 (varpool_finalize_decl): Update.
26427 (symbol_finalized): Remove.
26428 (symbol_finalized_and_needed): Rename to ...
26429 (symbol_defined_and_needed): ... update.
26430 (cgraph_analyze_functions): Update.
26431 (handle_alias_pairs): Update.
26432 (mark_functions_to_output): Update.
26433 (assemble_thunk): Update.
26434 (output_in_order): Update.
26435 (output_weakrefs): Update.
26436 (finalize_compilation_unit): Update.
26437 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
26438 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
26439 input_node, input_varpool_node): Update.
26440 * dbxout.c (dbxout_expand_expr): Update.
26441 * cgraphclones.c (cgraph_clone_node): Update.
26442 (cgraph_copy_node_for_versioning): Update.
26443 (cgraph_materialize_clone): Update.
26444 (cgraph_materialize_all_clones): Update.
26445 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
26446 propagate_pure_const, propagate_nothrow): Update.
26447 * lto-streamer-out.c (lto_output, write_symbol): Update.
26448 * ipa-utils.c (ipa_reverse_postorder): Update.
26449 * ipa-inline.c (can_inline_edge_p): Update.
26450 (update_caller_keys, ipa_inline): Update.
26451 * dwarf2out.c (reference_to_unused,
26452 premark_types_used_by_global_vars_helper): Update.
26453 * tree-eh.c (tree_could_trap_p): Update.
26454 * ipa-split.c (consider_split, execute_split_functions): Update.
26455 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
26456 has_addr_references_p): Update; move ahead in file for better
26458 (process_references): Simplify.
26459 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
26460 bodies are removed.
26461 (cgraph_comdat_can_be_unshared_p): Make static.
26462 (cgraph_externally_visible_p): Update.
26463 (varpool_externally_visible_p): Update.
26464 (function_and_variable_visibility): Update.
26465 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
26466 ipa_tm_mark_force_output_node): Update.
26467 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
26468 estimate_edge_devirt_benefit, inline_generate_summary,
26469 inline_write_summary): Update.
26470 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
26471 * ipa-prop.c (ipa_compute_jump_functions): Update.
26472 (ipa_print_node_params, ipa_prop_read_section,
26473 ipa_update_after_lto_read, read_replacements_section): Update.
26474 * varasm.c (mark_decl_referenced): Update.
26475 (assemble_alias, dump_tm_clone_pairs): Update.
26476 * tree-inline.c (copy_bb): Update.
26477 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
26479 * symtab.c (dump_symtab_base): Print new flags.
26480 (verify_symtab_base): Verify new flags.
26481 (symtab_alias_ultimate_target): New function.
26482 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
26483 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
26485 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
26487 * i386.c (ix86_get_function_versions_dispatcher,
26488 ix86_generate_version_dispatcher_body): Update.
26489 (fold_builtin_cpu): Use varpool_add_new_variable.
26490 * varpool.c (varpool_remove_initializer): Break out from ...
26491 (varpool_remove_node): ... this one.
26492 (dump_varpool_node, varpool_node_for_asm,
26493 cgraph_variable_initializer_availability, varpool_analyze_node,
26494 varpool_assemble_decl, varpool_remove_unreferenced_decls,
26495 varpool_finalize_named_section_flags, varpool_create_variable_alias):
26498 2013-05-29 Jan Hubicka <jh@suse.cz>
26500 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
26502 2013-05-29 Easwaran Raman <eraman@google.com>
26504 PR tree-optimization/57442
26505 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
26506 when control exits the main loop.
26508 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
26510 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
26512 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
26513 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
26514 * rx/t-rx: Add rx100 under multi library matches option for nofpu
26517 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26519 PR tree-optimization/57441
26520 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
26521 Don't limit size of incr_vec to number of candidates.
26523 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
26525 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
26526 and mips16 directories.
26527 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
26528 (MULTILIB_DIRNAMES): Ditto.
26529 (MULTILIB_EXCEPTIONS): Add new exceptions.
26530 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
26531 (MULTILIB_DIRNAMES): Ditto.
26532 (MULTILIB_EXCEPTIONS): Add new exceptions.
26534 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26535 Marcus Shawcroft <marcus.shawcroft@arm.com>
26537 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
26538 SYMBOL_TINY_ABSOLUTE.
26539 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
26540 SYMBOL_TINY_ABSOLUTE.
26541 (aarch64_expand_mov_immediate): Likewise.
26542 (aarch64_classify_symbol): Likewise.
26543 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
26544 Permit SYMBOL_TINY_ABSOLUTE.
26545 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
26547 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26548 Marcus Shawcroft <marcus.shawcroft@arm.com>
26550 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
26551 Refactor if/switch. Replace gcc_assert with if.
26553 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
26555 * config/i386/i386.c (initial_ix86_tune_features): Enable
26556 FP Reassociation for AMD bdver1 and bdver2.
26558 2013-05-29 Martin Jambor <mjambor@suse.cz>
26560 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
26561 and IMAGPART_EXPR do not occur within other handled_components.
26563 2013-05-29 Richard Biener <rguenther@suse.de>
26565 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
26566 access on whether the use is in the BB we currently try to
26568 (vect_bb_vectorization_profitable_p): Pass the BB we currently
26569 vectorize to vect_bb_slp_scalar_cost.
26571 2013-05-29 Richard Biener <rguenther@suse.de>
26573 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
26574 computing scalar cost offsetted by stmts that are kept live
26576 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
26577 for computation of scalar cost.
26579 2013-05-28 Steve Ellcey <sellcey@mips.com>
26581 * config/mips/mips-cpus.def (mips32r2): Change processor type.
26583 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
26585 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
26586 array notation built-in reduction functions.
26587 * doc/passes.texi (Passes): Added documentation about changes done
26589 * doc/invoke.texi (C Dialect Options): Added documentation about
26590 the -fcilkplus flag.
26591 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
26592 (BUILTINS_DEF): Depend on cilkplus.def.
26593 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
26594 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
26595 * cilkplus.def: New file.
26597 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
26599 PR rtl-optimization/57439
26600 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
26602 2013-05-28 Easwaran Raman <eraman@google.com>
26604 PR tree-optimization/57337
26605 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
26606 (find_insert_point): Correctly identify the insertion point
26607 when two statements with the same UID is compared.
26609 2013-05-28 Richard Biener <rguenther@suse.de>
26611 PR tree-optimization/56787
26612 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
26613 from the list of data references.
26614 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
26616 (vect_analyze_loop_operations): Likewise.
26617 (vect_transform_loop): Remove clobbers.
26619 2013-05-28 Martin Jambor <mjambor@suse.cz>
26621 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
26622 and REALPART_EXPRs have scalar type.
26624 2013-05-28 Richard Biener <rguenther@suse.de>
26626 PR tree-optimization/57411
26627 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
26629 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
26630 virtual operand propagation.
26632 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
26634 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
26635 destination register for bmasksi_vis.
26636 (vector_init_bshuffle): Likewise.
26637 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
26639 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
26641 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
26642 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
26643 mode if the instruction isn't available in the original mode.
26644 * config/sparc/sparc.opt (mfix-ut699): New option.
26645 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
26646 (divdf3): Turn into expander.
26647 (divdf3_nofix): New insn.
26648 (divdf3_fix): Likewise.
26649 (divsf3): Disable if -mfix-ut699.
26650 (sqrtdf2): Turn into expander.
26651 (sqrtdf2_nofix): New insn.
26652 (sqrtdf2_fix): Likewise.
26653 (sqrtsf2): Disable if -mfix-ut699.
26655 2013-05-27 Richard Biener <rguenther@suse.de>
26657 PR middle-end/57412
26658 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
26659 block for the new loop.
26661 2013-05-27 Richard Biener <rguenther@suse.de>
26663 PR tree-optimization/57343
26664 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
26665 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
26666 (number_of_iterations_cond): Do not build the folded tree.
26668 2013-05-27 Richard Biener <rguenther@suse.de>
26671 PR middle-end/57381
26672 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26673 OEP_CONSTANT_ADDRESS_OF retained.
26675 PR tree-optimization/57417
26676 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
26677 for unchanged base.
26678 (set_ssa_val_to): Compare addresses using
26679 get_addr_base_and_unit_offset.
26681 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
26683 PR rtl-optimization/56833
26684 * postreload.c (move2add_record_mode): New function.
26685 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
26686 (move2add_use_add2_insn): Use move2add_record_sym_value.
26687 (move2add_use_add3_insn): Likewise.
26688 (reload_cse_move2add): Use move2add_valid_value_p and
26689 move2add_record_mode. Invalidate call-clobbered and REG_INC
26690 affected regs by setting reg_mode to VOIDmode.
26691 (move2add_note_store): Don't pretend the inside of a SUBREG is
26692 the actual destination. Invalidate single/leading registers by
26693 setting reg_mode to VOIDmode.
26694 Use move2add_record_sym_value, move2add_valid_value_p and
26695 move2add_record_mode.
26697 2013-05-27 Richard Biener <rguenther@suse.de>
26699 PR tree-optimization/57396
26700 * tree-affine.c (double_int_constant_multiple_p): Properly
26701 return false for val == 0 and div != 0.
26703 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
26705 * config/mips/mips.h: Use #elif in preprocessor conditions.
26707 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
26710 * config/mips/constraints.md (kl): New constraint.
26711 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
26712 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
26713 constraint for operand 0. Split after CSE for MIPS16. Emit a move
26714 from LO for MIPS16.
26715 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
26717 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
26720 * config/mips/mips.c (mips_can_inline_p): New function.
26721 (TARGET_CAN_INLINE_P): Define.
26723 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
26725 * sched-int.h (ds_t, dw_t): Make unsigned int.
26726 Fix documentation that describes how all the ds_t bits are used.
26727 Reserve the last bit for delayed-branch scheduling.
26728 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
26729 (BITS_PER_DEP_WEAK): Fix definition and documentation.
26730 (gen_dep_weak_1): Remove prototype.
26731 * sched-deps.c (get_dep_weak_1): Make static.
26732 * target.def (speculate_insn, needs_block_p, gen_spec_check,
26733 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
26734 * doc/tm.texi: Regenerate.
26735 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
26737 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
26740 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
26742 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
26743 Sandra Loosemore <sandra@codesourcery.com>
26745 * config.gcc (powerpc-*): Allow native for with-cpu.
26747 2013-05-24 Jeff Law <law@redhat.com>
26749 PR tree-optimization/57124
26750 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
26751 conversion feeding a condition if the range has an overflow
26752 if -fstrict-overflow. Add warnings for when we do make the
26755 2013-05-24 Dehao Chen <dehao@google.com>
26757 * tree-cfg.c (locus_discrim_map): Fix the typo.
26758 (locus_discrim_hasher): Likewise.
26759 (locus_discrim_hasher::hash): Likewise.
26760 (locus_discrim_hasher::equal): Likewise.
26762 2013-05-24 Martin Jambor <mjambor@suse.cz>
26764 PR tree-optimization/57294
26765 * cgraph.h (ipa_record_stmt_references): Declare.
26766 * cgraphbuild.c (ipa_record_stmt_references): New function.
26767 (build_cgraph_edges): Use ipa_record_stmt_references.
26768 (rebuild_cgraph_edges): Likewise.
26769 (cgraph_rebuild_references): Likewise.
26770 * ipa-prop.c (ipa_modify_call_arguments): Discard references
26771 associated with the old statement and build references from the
26772 newly built statements.
26773 * ipa-ref.c (ipa_remove_stmt_references): New function.
26774 * ipa-ref.h (ipa_remove_stmt_references): Declare.
26776 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
26778 * lra-constraints.c (emit_spill_move): Use smaller mode for
26780 (check_and_process_move): Consider mem-reg moves for secondary
26782 (curr_insn_transform): Don't lose insns emitted before for
26783 secondary memory moves.
26784 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
26785 reg set up in the current insn.
26787 2013-05-24 Dehao Chen <dehao@google.com>
26789 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
26791 (locus_descrim_hasher::equal): Likewise.
26792 (build_gimple_cfg): New discriminator assignment algorithm.
26793 (make_edges): Likewise.
26794 (next_discriminator_for_locus): Likewise.
26795 (same_line_p): Likewise.
26796 (assign_discriminators): Likewise.
26797 (make_cond_expr_edges): Likewise.
26798 (make_gimple_switch_edges): Likewise.
26799 (make_goto_expr_edges): Likewise.
26800 (make_gimple_asm_edges): Likewise.
26802 2013-05-24 Ian Bolton <ian.bolton@arm.com>
26804 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
26805 X format specifier to only display bottom 16 bits.
26806 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
26807 immediate to match for operand 2, since it will be masked.
26809 2013-05-24 Richard Biener <rguenther@suse.de>
26811 PR tree-optimization/57287
26812 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
26813 all SSA names that occur in abnormal PHIs.
26815 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
26818 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
26819 that index is not negative.
26821 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
26823 PR rtl-optimization/55177
26824 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
26825 (simplify_byte_swapping_operation): New.
26826 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
26827 (simplify_relational_operation_1): Deal with BSWAP.
26829 2013-05-23 Richard Henderson <rth@redhat.com>
26832 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
26833 (ix86_reorg): Call it.
26835 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
26838 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
26839 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
26840 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
26842 2013-05-23 Christian Bruel <christian.bruel@st.com>
26845 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
26847 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26848 Marcus Shawcroft <marcus.shawcroft@arm.com>
26850 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
26851 * config/aarch64/constraints.md (Usa): Remove.
26852 * doc/md.texi (AArch64 Usa): Remove.
26854 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26855 Marcus Shawcroft <marcus.shawcroft@arm.com>
26857 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
26858 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
26859 * config/aarch64/predicates.md (aarch64_const_address): Remove.
26860 (aarch64_mov_operand): Use aarch64_mov_operand_p.
26862 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
26864 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
26865 instruction (AdvSIMD).
26866 * config/aarch64/aarch64-builtins.c
26867 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
26868 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
26870 2013-05-23 Martin Jambor <mjambor@suse.cz>
26872 PR middle-end/57347
26873 * tree.h (contains_bitfld_component_ref_p): Declare.
26874 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
26875 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
26877 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
26878 not access a bit-field. Assert all final offsets are byte-aligned.
26880 2013-05-23 Richard Biener <rguenther@suse.de>
26882 PR tree-optimization/57380
26883 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
26884 least one invariant or re-used load.
26885 * passes.c (init_optimization_passes): Move pass_phiprop before
26888 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
26890 * config/aarch64/aarch64-simd.md
26891 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
26893 2013-05-23 Richard Biener <rguenther@suse.de>
26895 PR middle-end/57381
26896 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26897 OEP_CONSTANT_ADDRESS_OF retained.
26899 2013-05-23 Jakub Jelinek <jakub@redhat.com>
26901 PR middle-end/57344
26902 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
26903 don't lower unit. Handle unit not being always BITS_PER_WORD.
26905 2013-05-23 Richard Biener <rguenther@suse.de>
26907 PR rtl-optimization/57341
26908 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
26909 instead of true_dependence.
26911 2013-05-22 David Malcolm <dmalcolm@redhat.com>
26913 * bb-reorder.c (branch_threshold): Make const.
26914 (exec_threshold): Ditto.
26916 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26917 Pat Haugen <pthaugen@us.ibm.com>
26918 Peter Bergner <bergner@vnet.ibm.com>
26920 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
26921 documentation for the power8 crypto builtins.
26923 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
26925 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
26926 macros for defining power8 builtin functions.
26927 (BU_P8V_AV_2): Likewise.
26928 (BU_P8V_AV_P): Likewise.
26929 (BU_P8V_VSX_1): Likewise.
26930 (BU_P8V_OVERLOAD_1): Likewise.
26931 (BU_P8V_OVERLOAD_2): Likewise.
26932 (BU_CRYPTO_1): Likewise.
26933 (BU_CRYPTO_2): Likewise.
26934 (BU_CRYPTO_3): Likewise.
26935 (BU_CRYPTO_OVERLOAD_1): Likewise.
26936 (BU_CRYPTO_OVERLOAD_2): Likewise.
26937 (XSCVSPDP): Fix typo, point to the correct instruction.
26938 (VCIPHER): Add power8 crypto builtins.
26939 (VCIPHERLAST): Likewise.
26940 (VNCIPHER): Likewise.
26941 (VNCIPHERLAST): Likewise.
26942 (VPMSUMB): Likewise.
26943 (VPMSUMH): Likewise.
26944 (VPMSUMW): Likewise.
26945 (VPERMXOR_V2DI): Likewise.
26946 (VPERMXOR_V4SI: Likewise.
26947 (VPERMXOR_V8HI: Likewise.
26948 (VPERMXOR_V16QI: Likewise.
26949 (VSHASIGMAW): Likewise.
26950 (VSHASIGMAD): Likewise.
26951 (VPMSUM): Likewise.
26952 (VPERMXOR): Likewise.
26953 (VSHASIGMA): Likewise.
26955 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
26956 __CRYPTO__ if the crypto instructions are available.
26957 (altivec_overloaded_builtins): Add support for overloaded power8
26960 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
26961 support for power8 crypto builtins.
26962 (builtin_function_type): Likewise.
26963 (altivec_init_builtins): Add support for builtins that take vector
26964 long long (V2DI) arguments.
26966 * config/rs6000/crypto.md: New file, define power8 crypto
26969 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26970 Pat Haugen <pthaugen@us.ibm.com>
26971 Peter Bergner <bergner@vnet.ibm.com>
26973 * doc/invoke.texi (Option Summary): Add power8 options.
26974 (RS/6000 and PowerPC Options): Likewise.
26976 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
26977 constraints.md instead of rs6000.h. Reorder w* constraints. Add
26978 wm, wn, wr documentation.
26980 * config/rs6000/constraints.md (wm): New constraint for VSX
26981 registers if direct move instructions are enabled.
26982 (wn): New constraint for no registers.
26983 (wq): New constraint for quad word even GPR registers.
26984 (wr): New constraint if 64-bit instructions are enabled.
26985 (wv): New constraint if power8 vector instructions are enabled.
26986 (wQ): New constraint for quad word memory locations.
26988 * config/rs6000/predicates.md (const_0_to_15_operand): New
26989 constraint for 0..15 for crypto instructions.
26990 (gpc_reg_operand): If VSX allow registers in VSX registers as well
26991 as GPR and floating point registers.
26992 (int_reg_operand): New predicate to match only GPR registers.
26993 (base_reg_operand): New predicate to match base registers.
26994 (quad_int_reg_operand): New predicate to match even GPR registers
26995 for quad memory operations.
26996 (vsx_reg_or_cint_operand): New predicate to allow vector logical
26997 operations in both GPR and VSX registers.
26998 (quad_memory_operand): New predicate for quad memory operations.
26999 (reg_or_indexed_operand): New predicate for direct move support.
27001 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
27002 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
27003 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
27004 (POWERPC_MASKS): Add power8 options.
27005 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
27008 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
27009 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
27011 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
27012 (-mpower8-fusion): New power8 options.
27013 (-mpower8-fusion-sign): Likewise.
27014 (-mpower8-vector): Likewise.
27015 (-mcrypto): Likewise.
27016 (-mdirect-move): Likewise.
27017 (-mquad-memory): Likewise.
27019 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
27020 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
27022 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
27023 (rs6000_debug_vector_unit): Add p8_vector.
27024 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
27025 definitions. Also print fusion state.
27026 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
27027 (rs6000_builtin_mask_calculate): Add power8 builtin support.
27028 (rs6000_option_override_internal): Add support for power8.
27029 (rs6000_common_init_builtins): Add debugging for skipped builtins
27030 if -mdebug=builtin.
27031 (rs6000_adjust_cost): Add power8 support.
27032 (rs6000_issue_rate): Likewise.
27033 (insn_must_be_first_in_group): Likewise.
27034 (insn_must_be_last_in_group): Likewise.
27035 (force_new_group): Likewise.
27036 (rs6000_register_move_cost): Likewise.
27037 (rs6000_opt_masks): Likewise.
27039 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
27040 power8 capable assembler, default to power7 options.
27041 (TARGET_DIRECT_MOVE): Likewise.
27042 (TARGET_CRYPTO): Likewise.
27043 (TARGET_P8_VECTOR): Likewise.
27044 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
27045 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
27046 (VECTOR_MEM_P8_VECTOR_P): Likewise.
27047 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
27048 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
27049 (TARGET_XSCVDPSPN): Likewise.
27050 (TARGET_XSCVSPDPN): Likewsie.
27051 (TARGET_SYNC_HI_QI): Likewise.
27052 (TARGET_SYNC_TI): Likewise.
27053 (MASK_CRYPTO): Likewise.
27054 (MASK_DIRECT_MOVE): Likewise.
27055 (MASK_P8_FUSION): Likewise.
27056 (MASK_P8_VECTOR): Likewise.
27057 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
27058 temporary used by some of the direct move instructions to get two FP
27059 temporary registers does not force creation of a stack frame.
27060 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
27061 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
27062 that any VSX registers are tieable, even if they are also an
27063 Altivec vector mode.
27064 (r6000_reg_class_enum): Add wm, wr, wv constraints.
27065 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
27066 (RS6000_BTM_CRYPTO): Likewise.
27067 (RS6000_BTM_COMMON): Likewise.
27069 * config/rs6000/rs6000.md (cpu attribute): Add power8.
27070 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
27071 (enum rs6000_vector): Add power8 vector support.
27073 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27077 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
27078 (any_sibcall_could_use_r3): this and handle indirect calls.
27079 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
27081 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27083 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
27085 2013-05-22 Richard Biener <rguenther@suse.de>
27087 PR middle-end/57349
27088 * profile.c (branch_prob): Do not split blocks that are
27089 abnormally receiving from ECF_RETURNS_TWICE functions.
27091 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27093 * recog.c (offsettable_address_addr_space_p): Fix calculation of
27094 address mode. Move pointer mode initialization to the same place.
27096 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
27098 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
27099 while it has any effect.
27101 2013-05-21 Easwaran Raman <eraman@google.com>
27103 PR tree-optimization/57322
27104 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
27105 UID of the statement added to the BB to be 1.
27107 2013-05-21 Jakub Jelinek <jakub@redhat.com>
27109 PR tree-optimization/57331
27110 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
27111 of conversion from pointer type to integral type with integer.
27113 2013-05-21 Martin Jambor <mjambor@suse.cz>
27116 * ipa-prop.c (ipa_read_node_info): Process param_used and
27117 controlled_uses in the same order as when writing.
27119 2013-05-21 Magnus Granberg <baldrick@free.fr>
27122 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
27124 2013-05-21 Richard Biener <rguenther@suse.de>
27126 PR tree-optimization/57318
27127 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
27128 estimate stmts with side-effects as likely eliminated.
27130 2013-05-21 Richard Biener <rguenther@suse.de>
27132 PR tree-optimization/57330
27133 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
27134 preserve the call stmts fntype.
27136 2013-05-21 Richard Biener <rguenther@suse.de>
27138 PR tree-optimization/57303
27139 * tree-ssa-sink.c (statement_sink_location): Improve killing
27140 stmt detection and properly handle self-assignments.
27142 2013-05-21 Christian Bruel <christian.bruel@st.com>
27144 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
27145 spanning registers. LEAF_REG_REMAP is supported only for contiguous
27146 registers. Set register size out of the PARALLEL loop.
27148 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
27151 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
27152 (*fmasf4, *fmasf4_media): New insns.
27154 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
27156 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
27157 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
27158 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
27159 (mips_idiv_insns): Update the comments to say that the returned
27160 instruction counts are in units of BASE_INSN_LENGTH.
27161 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
27162 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
27163 using 2 rather than 4 as the length of indirect MIPS16 and
27164 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
27165 length of a NOP. Don't divide MIPS16 lengths by 2.
27166 (mips16_split_long_branches): Assume a branch is long if the
27167 length is greater than 4 rather than 8.
27168 * config/mips/mips.md (length): Give MIPS16 lengths directly,
27169 rather than multiplying them by 2. Multiply instruction counts
27170 by BASE_INSN_LENGTH rather than 4.
27171 (*jump_mips16, tls_get_tp_mips16_<mode>)
27172 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
27174 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
27176 * config/mips/mips.md (extended_mips16): Remove branch case.
27177 (length): Remove duplicated extended_mips16 test.
27179 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
27181 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
27183 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
27185 * recog.h (Recog_data): Rename to...
27186 (recog_data_d): ...this.
27187 (recog_data): Update accordingly.
27188 * recog.c (recog_data): Likewise.
27189 * reload.c (save_recog_data): Likewise.
27190 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
27191 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
27193 2013-05-17 Julian Brown <julian@codesourcery.com>
27195 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
27196 found in a REG_EQUAL note, invalidate it.
27198 2013-05-17 Easwaran Raman <eraman@google.com>
27200 * tree-ssa-reassoc.c (find_insert_point): New function.
27201 (insert_stmt_after): Likewise.
27202 (get_def_stmt): Likewise.
27203 (ensure_ops_are_available): Likewise.
27204 (not_dominated_by): Likewise.
27205 (rewrite_expr_tree): Do not move statements beyond what is
27206 necessary. Remove call to swap_ops_for_binary_stmt...
27207 (reassociate_bb): ... and move it here.
27208 (build_and_add_sum): Assign UIDs for new statements.
27209 (linearize_expr): Likewise.
27210 (do_reassoc): Renumber gimple statement UIDs.
27212 2013-05-17 Jan Hubicka <jh@suse.cz>
27214 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
27216 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
27217 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
27219 (output_weakrefs): Update.
27221 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
27222 Martin Jambor <mjambor@suse.cz>
27224 PR middle-end/57276
27225 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
27226 value that corresponds to the given aggval is found in values vector.
27228 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
27230 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
27231 sse, sse2, sse3, ssse3 and sse4a flags to options.
27233 2013-05-17 David Malcolm <dmalcolm@redhat.com>
27235 * gengtype-state.c: (s_expr_writer): New class, to handle
27236 prettifying of output layout of s-expressions.
27237 (state_writer): New class, to write out gtype.state.
27238 (state_written_type_count): Move this variable into member data of
27240 (s_expr_writer::s_expr_writer): New code: constructor for new class
27241 (state_writer::state_writer(): ditto
27242 (s_expr_writer::write_new_line): New function
27243 (s_expr_writer::write_any_indent): ditto
27244 (s_expr_writer::begin_s_expr): ditto
27245 (s_expr_writer::end_s_expr): ditto
27246 (write_state_fileloc): convert to method of state_writer...
27247 (state_writer:: write_state_fileloc): ...and use methods of
27248 s_expr_writer to write indentation into the gtype.state output file
27249 to visually represent the hierarchical structure of the list
27251 (write_state_fields): ditto, renaming to...
27252 (state_writer::write_state_fields)
27253 (write_state_a_string): ditto, renaming to...
27254 (state_writer::write_state_a_string)
27255 (write_state_string_option): ditto, renaming to...
27256 (state_writer::write_state_string_option)
27257 (write_state_type_option): ditto, renaming to...
27258 (state_writer::write_state_type_option)
27259 (write_state_nested_option): ditto, renaming to...
27260 (state_writer::write_state_nested_option)
27261 (write_state_option): ditto, renaming to...
27262 (state_writer::write_state_option)
27263 (write_state_options): ditto, renaming to...
27264 (state_writer::write_state_options)
27265 (write_state_lang_bitmap): ditto, renaming to...
27266 (state_writer::write_state_lang_bitmap)
27267 (write_state_version): ditto, renaming to...
27268 (state_writer::write_state_version)
27269 (write_state_scalar_type): ditto, renaming to...
27270 (state_writer::write_state_scalar_type)
27271 (write_state_string_type): ditto, renaming to...
27272 (state_writer::write_state_string_type)
27273 (write_state_undefined_type): ditto, renaming to...
27274 (state_writer::write_state_undefined_type)
27275 (write_state_struct_union_type): ditto, renaming to...
27276 (state_writer::write_state_struct_union_type)
27277 (write_state_struct_type): ditto, renaming to...
27278 (state_writer::write_state_struct_type)
27279 (write_state_user_struct_type): ditto, renaming to...
27280 (state_writer::write_state_user_struct_type)
27281 (write_state_lang_struct_type): ditto, renaming to...
27282 (state_writer::write_state_lang_struct_type)
27283 (write_state_param_struct_type): ditto, renaming to...
27284 (state_writer::write_state_param_struct_type)
27285 (write_state_pointer_type): ditto, renaming to...
27286 (state_writer::write_state_pointer_type)
27287 (write_state_array_type): ditto, renaming to...
27288 (state_writer::write_state_array_type)
27289 (write_state_gc_used): ditto, renaming to...
27290 (state_writer::write_state_gc_used)
27291 (write_state_common_type_content): ditto, renaming to...
27292 (state_writer::write_state_common_type_content)
27293 (write_state_type): ditto, renaming to...
27294 (state_writer::write_state_type)
27295 (write_state_pair_list): ditto, renaming to...
27296 (state_writer::write_state_pair_list)
27297 (write_state_pair): ditto, renaming to...
27298 (state_writer::write_state_pair)
27299 (write_state_typedefs): ditto, renaming to...
27300 (state_writer::write_state_typedefs)
27301 (write_state_structures): ditto, renaming to...
27302 (state_writer::write_state_structures)
27303 (write_state_param_structs): ditto, renaming to...
27304 (state_writer::write_state_param_structs)
27305 (write_state_variables): ditto, renaming to...
27306 (state_writer::write_state_variables)
27307 (write_state_srcdir): ditto, renaming to...
27308 (state_writer::write_state_srcdir)
27309 (write_state_files_list): ditto, renaming to...
27310 (state_writer::write_state_files_list)
27311 (write_state_languages): ditto, renaming to...
27312 (state_writer::write_state_languages)
27313 (write_state): create a state_writer instance and use it when
27314 writing out the state file
27316 2013-05-17 Mike Stump <mikestump@comcast.net>
27318 PR rtl-optimization/57304
27319 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
27320 accessing DF_REF_REAL_LOC.
27322 2013-05-17 Jakub Jelinek <jakub@redhat.com>
27324 PR rtl-optimization/57281
27325 PR rtl-optimization/57300
27326 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
27327 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
27328 what the other splitter did if the registers are dead.
27330 2013-05-17 Richard Biener <rguenther@suse.de>
27332 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
27335 2013-05-17 Jakub Jelinek <jakub@redhat.com>
27337 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
27340 2013-05-17 Marek Polacek <polacek@redhat.com>
27342 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
27343 length when doing non-zero store of storing '\0' to '\0'.
27345 2013-05-17 Jakub Jelinek <jakub@redhat.com>
27347 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
27348 vect_external_def oprnd1 with loop_vinfo, try to emit
27349 optional cast, negation and and stmts on the loop preheader
27350 edge instead of into the pattern def seq.
27352 PR tree-optimization/57051
27353 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
27354 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
27356 2013-05-16 Nick Clifton <nickc@redhat.com>
27358 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
27359 (rl78_is_naked_func): New function.
27360 (rl78_expand_prologue): Skip prologue generation for naked functions.
27361 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
27362 * doc/extend.texi (naked): Add RL78 to the list of processors
27363 that supports this attribute.
27365 2013-05-16 Jeff Law <law@redhat.com>
27367 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
27369 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
27371 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
27372 cache parameters using detect_caches_amd also for CYRIX,
27373 NSC and TM2 signatures.
27375 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
27376 Dzianis Kahanovich <mahatma@eu.by>
27380 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
27381 VIA/Centaur processors and determine their cache parameters
27382 using detect_caches_amd.
27384 2013-05-16 Teresa Johnson <tejohnson@google.com>
27386 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
27387 (rtl_verify_edges): New function.
27388 (rtl_verify_bb_insns): Ditto.
27389 (rtl_verify_bb_pointers): Ditto.
27390 (rtl_verify_bb_insn_chain): Ditto.
27391 (rtl_verify_fallthru): Ditto.
27392 (rtl_verify_bb_layout): Ditto.
27393 (rtl_verify_flow_info_1): Outline checks into new functions.
27394 (rtl_verify_flow_info): Ditto.
27396 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
27398 * cfghooks.c (copy_bbs): Add update_dominance argument.
27399 * cfghooks.h (copy_bbs): Update prototype.
27400 * tree-cfg.c (gimple_duplicate_sese_region):
27401 Add update_dominance argument.
27402 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
27403 * tree-ssa-loop-ch.c (copy_loop_headers): Update
27404 gimple_duplicate_sese_region call.
27405 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
27406 Update copy_bbs call.
27407 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
27408 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
27410 2013-05-16 Jakub Jelinek <jakub@redhat.com>
27412 * tree-vectorizer.h (NUM_PATTERNS): Increment.
27413 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
27414 vect_recog_rotate_pattern.
27415 (vect_recog_rotate_pattern): New function.
27417 2013-05-16 Jason Merrill <jason@redhat.com>
27419 * Makefile.in (LLINKER): New variable.
27420 (mostlyclean): Remove link mutex.
27421 * configure.ac: Handle --enable-link-mutex.
27422 * lock-and-run.sh: New script.
27424 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27427 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
27430 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27432 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
27434 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
27436 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
27437 * config/arm/arm.c (next_consecutive_mem): New function.
27438 (gen_movmem_ldrd_strd): Likewise.
27439 * config/arm/arm.md (movmemqi): Update condition and code.
27440 (unaligned_loaddi, unaligned_storedi): New patterns.
27442 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27444 * config.gcc: Obsolete *-*-solaris2.9*.
27445 * doc/install.texi (Specific, *-*-solaris2*): Document it.
27447 2013-05-16 Richard Biener <rguenther@suse.de>
27449 * passes.c (init_optimization_passes): Move pass_parallelize_loops
27450 earlier, after GRAPHITE transforms and IV canonicalization.
27452 2013-05-16 Jakub Jelinek <jakub@redhat.com>
27454 * omp-low.c (extract_omp_for_data): For collapsed loops,
27455 if at least one of the loops is known at compile time to
27456 iterate zero times, set count to 0.
27457 (expand_omp_regimplify_p): New function.
27458 (expand_omp_for_generic): For collapsed loops, if at least
27459 one of the loops isn't known to iterate at least once,
27460 add runtime check with setting count to 0.
27461 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
27462 For unsigned types if it isn't known at compile time that
27463 the loop will iterate at least once, add runtime check to bypass
27464 the whole loop if initial condition isn't true.
27466 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
27468 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
27470 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
27472 PR middle-end/57286
27473 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
27474 transformations to avoid an infinite loop.
27476 2013-05-16 Marek Polacek <polacek@redhat.com>
27478 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
27480 2013-05-15 Leif Ekblad <leif@rdos.net>
27482 * config/i386/i386.c (ix86_decompose_address): Use
27483 DEFAULT_TLS_SEG_REG to access TLS segment register.
27484 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
27485 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
27486 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
27488 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
27491 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
27492 sibling calls to functions that would normally be lazily bound,
27493 unless $gp is call-clobbered.
27495 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
27497 * config/i386/i386.c (ix86_option_override_internal): Update
27498 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
27499 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
27500 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
27501 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
27503 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
27505 2013-05-15 Andreas Schwab <schwab@suse.de>
27507 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
27508 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
27511 2013-05-15 Teresa Johnson <tejohnson@google.com>
27513 * loop-unroll.c (report_unroll_peel): Check decision before
27514 emitting unroll/peel message.
27516 2013-05-15 Teresa Johnson <tejohnson@google.com>
27518 * function.h (has_bb_partition): New rtl_data flag.
27519 (bb_reorder_complete): Ditto.
27520 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
27521 instead of flag_reorder_blocks_and_partition.
27522 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
27523 with some enhancements.
27524 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
27525 * bb-reorder.c (connect_traces): Check for has_bb_partition
27526 instead of flag_reorder_blocks_and_partition.
27527 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
27528 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
27529 verify_hot_cold_block_grouping.
27530 (partition_hot_cold_basic_blocks): Set has_bb_partition.
27532 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27535 * config/arm/predicates.md (call_insn_operand): New predicate.
27536 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
27537 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
27538 if insn is not a tail call.
27539 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
27541 * config/arm/arm.h (enum reg_class): New caller save register class.
27542 (REG_CLASS_NAMES): Likewise.
27543 (REG_CLASS_CONTENTS): Likewise.
27544 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
27547 2013-05-15 Richard Biener <rguenther@suse.de>
27549 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
27550 of MSG_OPTIMIZED_LOCATIONS.
27551 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
27552 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
27554 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
27555 of MSG_OPTIMIZED_LOCATIONS.
27556 (execute_vect_slp): Likewise.
27557 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
27558 (vect_create_cond_for_alias_checks): Likewise.
27559 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
27560 (vect_recog_widen_mult_pattern): Likewise.
27561 (vect_recog_widen_sum_pattern): Likewise.
27562 (vect_recog_over_widening_pattern): Likewise.
27563 (vect_recog_widen_shift_pattern): Likewise.
27564 (vect_recog_vector_vector_shift_pattern): Likewise.
27565 (vect_recog_divmod_pattern): Likewise.
27566 (vect_recog_mixed_size_cond_pattern): Likewise.
27567 (vect_recog_bool_pattern): Likewise.
27568 (vect_pattern_recog_1): Likewise.
27570 2013-05-15 Martin Jambor <mjambor@suse.cz>
27572 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
27573 non-functions to builtin_unreachable.
27574 * ipa-inline-transform.c (inline_call): Do not assert estimates were
27575 correct when new direct edges were discovered.
27577 2013-05-15 Martin Jambor <mjambor@suse.cz>
27579 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
27580 header, print symbol order instead of node uid, print more information
27581 about indirect edge targets.
27582 (ipa_make_edge_direct_to_target): Print symbol order instead of node
27584 (ipa_make_edge_direct_to_target): Likewise.
27585 (remove_described_reference): Likewise.
27586 (propagate_controlled_uses): Likewise.
27587 (ipa_print_node_params): Also print symbol order.
27588 (ipcp_transform_function): Print symbol order instead of node uids.
27589 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
27590 (cgraph_get_create_real_symbol_node): Likewise.
27591 * ipa-cp.c (print_lattice): Likewise.
27592 (print_all_lattices): Likewise.
27593 (determine_versionability): Likewise.
27594 (initialize_node_lattices): Likewise.
27595 (estimate_local_effects): Likewise.
27596 (update_profiling_info): Likewise.
27597 (create_specialized_node): Likewise.
27598 (perhaps_add_new_callers): Likewise.
27599 (decide_about_value): Likewise.
27600 (decide_whether_version_node): Likewise.
27601 (identify_dead_nodes): Likewise.
27602 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
27603 (dump_inline_summary): Likewise.
27604 (estimate_node_size_and_time): Likewise.
27605 (inline_analyze_function): Likewise.
27606 * ipa-inline.c (report_inline_failed_reason): Likewise.
27607 (want_early_inline_function_p): Likewise.
27608 (edge_badness): Likewise.
27609 (update_edge_key): Likewise.
27610 (inline_small_functions): Likewise. Add dumping of order to two other
27612 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
27613 instead of node uids.
27614 (propagate_pure_const): Likewise.
27615 (propagate_pure_const): Likewise.
27616 * ipa-utils.c (dump_cgraph_node_set): Likewise.
27617 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
27618 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
27620 * tree-pretty-print.c (dump_function_header): Likewise.
27621 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
27622 Print symbol order instead of node uids.
27624 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27626 * config/s390/s390.c (s390_register_move_cost): Don't impose the
27627 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
27629 2013-05-15 Richard Biener <rguenther@suse.de>
27631 PR tree-optimization/57275
27632 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
27633 return value for fail to do runtime alias checks for gather loads.
27635 2013-05-15 Jan Hubicka <jh@suse.cz>
27639 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
27640 weakrefs are not external.
27641 (lto_symtab_merge_decls): Fix thinko when dealing with
27642 non-lto_symtab decls.
27643 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
27644 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
27645 * varpool.c (dump_varpool_node): Dump more flags.
27647 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27649 * config/i386/i386.c (processor_alias_table): Add instruction
27650 FSGSBASE for AMD bdver3 architecture.
27652 2013-05-14 Jakub Jelinek <jakub@redhat.com>
27654 * tree.c (warn_deprecated_use): Print file:line using locus color.
27655 * diagnostic.c (diagnostic_report_current_module): Print file:line
27656 and file:line:column using locus color.
27658 2013-05-14 Mike Stump <mikestump@comcast.net>
27660 * gdbinit.in: Add __null.
27662 2013-05-14 Mike Stump <mikestump@comcast.net>
27664 * recog.h: Rename struct recog_data to Recog_data.
27665 * recog.c: Likewise.
27666 * reload.c (can_reload_into): Likewise.
27667 * config/picochip/picochip.c: Likewise.
27669 2013-05-14 Mike Stump <mikestump@comcast.net>
27671 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
27673 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
27675 * resource.h (struct resources): Remove unch_memory member.
27676 (CLEAR_RESOURCE): Don't clear unch_memory.
27677 * resource.c (mark_referenced_resources): Don't set it.
27678 (mark_set_resources): Likewise.
27679 (mark_target_live_regs): Don't clear it.
27680 (init_resource_info): Likewise.
27681 * reorg.c (resource_conflicts_p): Don't compare it.
27682 (redundant_insn): Don't set it.
27684 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
27686 * emit-rtl.c (next_label): Remove unused function.
27687 (skip_consecutive_labels, link_cc0_insns): Move to ...
27688 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
27689 only place where these functions are used, and make them static.
27691 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
27693 * fold-const.c (fold_negate_expr): Handle vectors.
27694 (fold_truth_not_expr): Make it static.
27695 (fold_invert_truthvalue): New static function.
27696 (invert_truthvalue_loc): Handle vectors. Do not call
27697 fold_truth_not_expr directly.
27698 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
27699 <TRUTH_NOT_EXPR>: Do not cast to boolean.
27700 (fold_comparison): Handle vector constants.
27701 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
27702 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
27703 * tree.h (fold_truth_not_expr): Remove declaration.
27705 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
27707 * config/aarch64/aarch64-simd.md
27708 (aarch64_vcond_internal<mode>): Rename to...
27709 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
27710 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
27711 float modes. Clarify all iterator modes.
27712 (vcond<mode><mode>): Use new name for vcond expanders.
27713 (vcond<v_cmp_result><mode>): Likewise.
27714 (vcondu<mode><mode>: Likewise.
27715 * config/aarch64/iterators.md (VDQF_COND): New.
27717 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
27720 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
27721 variable for the shift amount. Check that we shift by non-negative
27724 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
27727 * config/arm/arm.h (EPILOGUE_USES): Only return true
27728 for LR_REGNUM after epilogue_completed.
27730 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
27732 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
27733 is error_mark_node.
27735 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27738 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
27739 and Solaris 11+/x86 with gld.
27740 * configure: Regenerate.
27742 2013-05-14 Jakub Jelinek <jakub@redhat.com>
27744 * expmed.c (expand_shift_1): Canonicalize rotates by
27745 constant bitsize / 2 to bitsize - 1.
27746 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
27747 case ROTATERT>: Likewise.
27750 2013-05-10 Jakub Jelinek <jakub@redhat.com>
27752 * config/i386/i386.md (rotateinv): New code attr.
27753 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27754 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27755 roll $31, %eax, etc.
27757 2013-05-14 Richard Biener <rguenther@suse.de>
27759 PR middle-end/57235
27760 * tree-eh.c (sink_clobbers): Give up for successors with
27761 multiple predecessors and no virtual uses.
27763 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
27765 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
27766 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
27768 2013-05-14 Jakub Jelinek <jakub@redhat.com>
27770 PR middle-end/57251
27771 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
27772 the case when both op0 and op1 have VOIDmode.
27774 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27776 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
27777 in multiply-accumulate mode.
27779 2013-05-13 Guozhi Wei <carrot@google.com>
27781 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
27783 2013-05-13 Kai Tietz <ktietz@redhat.com>
27786 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
27787 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
27788 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
27789 * config/i386/i386.c (ix86_option_override_internal): Likewise.
27790 (ix86_expand_prologue): Likewise.
27791 (ix86_expand_split_stack_prologue): Likewise.
27792 (legitimate_pic_address_disp_p): Likewise.
27793 (legitimize_pic_address): Likewise.
27794 (legitimize_tls_address): Likewise.
27795 (legitimize_pe_coff_symbol): Likewise.
27796 (output_pic_addr_const): Likewise.
27797 (construct_plt_address): Likewise.
27798 (ix86_expand_call): Likewise.
27799 (x86_output_mi_thunk): Likewise.
27800 (x86_function_profiler): Likewise.
27802 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
27804 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
27805 similar switch cases.
27806 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
27807 (aarch64_simd_mov_to_<mode>low): Delete.
27808 (aarch64_simd_mov_to_<mode>high): Delete.
27809 (move_lo_quad_<mode>): Add w<-r alternative.
27810 (aarch64_simd_move_hi_quad_<mode>): Likewise.
27811 (aarch64_simd_mov_from_*): Update type attribute.
27812 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
27815 2013-05-13 Jan Hubicka <jh@suse.cz>
27817 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
27818 * config/i386/i386.c (ix86_compute_frame_layout,
27819 ix86_expand_epilogue, emit_i387_cw_initialization,
27820 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
27821 ix86_local_alignment): Fix use of size/speed predicates.
27823 2013-05-13 Jakub Jelinek <jakub@redhat.com>
27825 PR tree-optimization/45216
27826 PR tree-optimization/57157
27827 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
27828 the (-Y) & (B - 1) variant if OP is |.
27829 * expmed.c (expand_shift_1): For rotations by const0_rtx just
27830 return shifted. Use (-op1) & (prec - 1) as other_amount
27831 instead of prec - op1.
27833 2013-05-13 Martin Jambor <mjambor@suse.cz>
27835 PR middle-end/42371
27836 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
27837 (ipa_constant_data): New type.
27838 (ipa_jump_func): Use ipa_constant_data to hold information about
27839 constant jump functions.
27840 (ipa_get_jf_constant): Adjust to jump function type changes.
27841 (ipa_get_jf_constant_rdesc): New function.
27842 (ipa_param_descriptor): New field controlled_uses.
27843 (ipa_get_controlled_uses): New function.
27844 (ipa_set_controlled_uses): Likewise.
27845 * ipa-ref.h (ipa_find_reference): Declare.
27846 * ipa-prop.c (ipa_cst_ref_desc): New type.
27847 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
27849 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
27850 New parameter cs. Adjust all callers.
27851 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
27852 (remove_described_reference): New function.
27853 (jfunc_rdesc_usable): Likewise.
27854 (try_make_edge_direct_simple_call): Decrement controlled use count,
27855 attempt to remove reference if it hits zero.
27856 (combine_controlled_uses_counters): New function.
27857 (propagate_controlled_uses): Likewise.
27858 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
27859 (ipa_edge_duplication_hook): Duplicate reference descriptions.
27860 (ipa_print_node_params): Print described use counter.
27861 (ipa_write_jump_function): Adjust to jump function type changes.
27862 (ipa_read_jump_function): New parameter CS, pass it to
27863 ipa_set_jf_constant. Adjust caller.
27864 (ipa_write_node_info): Stream controlled use count
27865 (ipa_read_node_info): Likewise.
27866 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
27868 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
27869 count. Remove cloning-added reference if it reaches zero.
27870 * ipa-ref.c (ipa_find_reference): New function.
27872 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27874 * config/i386/i386.c (processor_target_table): Modified default
27875 alignment values for AMD BD and BT architectures.
27877 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
27879 * tree-vect-generic.c (uniform_vector_p): Move ...
27880 * tree.c (uniform_vector_p): ... here.
27881 * tree.h (uniform_vector_p): Declare it.
27882 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
27885 2013-05-13 Jakub Jelinek <jakub@redhat.com>
27887 PR tree-optimization/57230
27888 * tree-ssa-strlen.c (handle_char_store): Record length for
27889 array store from STRING_CST.
27891 PR tree-optimization/57230
27892 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
27895 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
27897 * config/epiphany/epiphany.c (epiphany_init): Check size of
27898 NUM_MODES_FOR_MODE_SWITCHING.
27899 (epiphany_expand_prologue):
27900 Remove CONFIG_REGNUM initial value handling code.
27901 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
27902 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
27903 (emit_set_fp_mode, epiphany_mode_after): Likewise.
27904 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
27905 Don't return 1 for FP_MODE_NONE.
27906 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
27907 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
27908 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
27909 * config/epiphany/epiphany.md (save_config): New pattern.
27911 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
27913 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
27915 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
27917 * config/i386/i386.md (memory): Handle sseishft1.
27918 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
27919 (*vec_extractv2di_1): Ditto.
27921 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
27923 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
27926 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
27928 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
27929 Add mthumb/march=armv7-a multilib.
27930 Add mthumb/march=armv7-r multilib.
27931 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
27933 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
27935 * config/v850/t-rtems: Add more multilibs.
27937 2013-05-10 Richard Biener <rguenther@suse.de>
27939 PR tree-optimization/57214
27940 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
27941 not propagate from SSA names that occur in abnormal PHI nodes.
27943 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
27945 * stor-layout.c (element_precision): New function.
27946 * machmode.h (element_precision): Declare it.
27947 * tree.c (build_minus_one_cst): New function.
27948 (element_precision): Likewise.
27949 * tree.h (build_minus_one_cst): Declare new function.
27950 (element_precision): Likewise.
27951 * fold-const.c (operand_equal_p): Use element_precision.
27952 (fold_binary_loc): Handle vector types.
27953 * convert.c (convert_to_integer): Use element_precision.
27954 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
27957 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
27959 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
27960 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
27961 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
27962 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27963 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
27964 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
27965 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
27966 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27967 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
27968 (Uuw8): New constraints.
27969 (Usb4): Move into alphabetical order.
27970 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
27971 (sd8_operand, ub8_operand, uw8_operand): New predicates.
27972 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
27973 previously unnamed patterns.
27974 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
27975 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
27976 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
27977 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
27978 of set_attr_alternative/if_then_else. Use extended_mips16 instead
27979 of specific lengths.
27981 2013-05-10 Jakub Jelinek <jakub@redhat.com>
27983 * config/i386/i386.md (rotateinv): New code attr.
27984 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27985 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27986 roll $31, %eax, etc.
27988 PR tree-optimization/45216
27989 PR tree-optimization/57157
27990 * tree-ssa-forwprop.c (simplify_rotate): New function.
27991 (ssa_forward_propagate_and_combine): Call it.
27993 2013-05-10 Richard Biener <rguenther@suse.de>
27995 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
27996 disable peeling when we version for aliasing.
27997 (vector_alignment_reachable_p): Honor explicit user alignment.
27998 (vect_supportable_dr_alignment): Likewise.
27999 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
28000 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
28001 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
28002 then peeling to arrange for the cost-model check to come first.
28004 2013-05-10 Alan Modra <amodra@gmail.com>
28006 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
28007 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
28008 * configure: Regenerate.
28010 2013-05-10 Alan Modra <amodra@gmail.com>
28013 * varasm.c (default_elf_select_section): Move !DECL_P check..
28014 (get_named_section): ..to here before calling get_section_name.
28016 (default_section_type_flags): Add DECL_P check.
28017 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
28018 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
28020 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
28022 * config/epiphany/epiphany.c (epiphany_expand_prologue):
28023 When using gen_stack_adjust_str with a register offset, add a
28024 REG_FRAME_RELATED_EXPR note.
28026 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
28028 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
28029 (*vec_extractv4si_zext_mem): Ditto.
28030 (*vec_extractv2di): Add 0->x and x->x alternatives.
28031 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
28032 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
28034 2013-05-09 Jason Merrill <jason@redhat.com>
28036 N3639 C++1y VLA support
28037 * gimplify.c (gimplify_vla_decl): Don't touch an existing
28040 * tree.c (build_constructor_va): New.
28041 * tree.h: Declare it.
28043 2013-05-09 Martin Jambor <mjambor@suse.cz>
28046 * gimple-fold.c (canonicalize_constructor_val): Call
28047 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
28049 2013-05-09 Jan Hubicka <jh@suse.cz>
28050 Richard Biener <rguenther@suse.de>
28053 * symtab.c (symtab_make_decl_local): Do not add private names.
28055 2013-05-09 Jan Hubicka <jh@suse.cz>
28058 * symtab.c (insert_to_assembler_name_hash): Handle clones.
28059 (unlink_from_assembler_name_hash): Likewise.
28060 (symtab_prevail_in_asm_name_hash, symtab_register_node,
28061 symtab_unregister_node, symtab_initialize_asm_name_hash,
28062 change_decl_assembler_name): Update.
28064 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
28066 * config/aarch64/aarch64.md: New movtf split.
28067 (*movtf_aarch64): Update.
28068 (aarch64_movdi_tilow): Handle TF modes and rename to
28069 aarch64_movdi_<mode>low.
28070 (aarch64_movdi_tihigh): Handle TF modes and rename to
28071 aarch64_movdi_<mode>high
28072 (aarch64_movtihigh_di): Handle TF modes and rename to
28073 aarch64_mov<mode>high_di
28074 (aarch64_movtilow_di): Handle TF modes and rename to
28075 aarch64_mov<mode>low_di
28076 (aarch64_movtilow_tilow): Remove spurious whitespace.
28077 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
28079 (aarch64_print_operand): Update.
28081 2013-05-09 Alan Modra <amodra@gmail.com>
28083 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
28085 * configure: Regenerate.
28087 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
28089 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
28090 splitter preparation statements.
28091 * config/i386/sse.md (*vec_extract* splitters): Ditto.
28092 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
28095 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28097 * gimple-ssa-strength-reduction.c (count_candidates): Change
28098 return value to int.
28099 (analyze_candidates_and_replace): Change type of length to int.
28101 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
28103 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
28104 (*vec_extract<mode>): Use VI12_128 mode iterator.
28105 (*vec_extract<mode>_mem): Ditto.
28106 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
28109 2013-05-08 Diego Novillo <dnovillo@google.com>
28114 2012-08-17 Diego Novillo <dnovillo@google.com>
28117 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
28118 * config.in: Regenerate.
28119 * configure: Regenerate.
28120 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
28122 2013-05-08 Jan Hubicka <jh@suse.cz>
28125 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
28126 * cgraph.h (symtab_node_base): Add unique_name.
28127 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
28128 input_overwrite_node, input_varpool_node): Stream unique_name.
28129 * cgraphclones.c (cgraph_create_virtual_clone,
28130 cgraph_function_versioning): Set unique_name.
28131 * ipa.c (function_and_variable_visibility): Set unique_name.
28133 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28135 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
28136 (alloc_cand_and_find_basis): Restrict conditional candidate
28137 processing to CAND_MULTs.
28139 2013-05-08 Jan Hubicka <jh@suse.cz>
28142 lto-symtab.c (lto_symtab_symbol_p): New function.
28143 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
28144 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
28145 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
28146 Skip static symbols.
28148 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
28150 PR tree-optimization/57200
28151 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
28152 Only call inform if the preceding warning_at returns true.
28154 2013-05-07 Han Shen <shenhan@google.com>
28156 * cfgexpand.c (record_or_union_type_has_array_p): New function.
28157 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
28158 * common.opt (fstack-protector-strong): New option.
28159 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
28160 * doc/invoke.texi (Optimization Options): Document
28161 "-fstack-protector-strong".
28162 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
28164 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
28166 * config/mips/mips.c (mips_machine_reorg2): Return 0.
28168 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
28170 * ira.c (update_equiv_regs): Add insn having equiv memory even if
28171 it is not lhs of the insn.
28172 (setup_reg_equiv): Remove insn having equiv memory which it is not
28174 * lra-constraints.c (process_address): Try to improve generation
28175 code for address base + disp.
28176 (lra_constraints): Make correct the code for checking insn setting
28177 up backward equivalence. Remove insn only if it is in the init
28179 * lra-eliminations.c (update_reg_eliminate): Change return value.
28180 (lra_eliminate): Use the result.
28182 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
28184 * config/i386/sse.md (ssescalarnummask): New mode attribute.
28185 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
28186 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
28187 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
28188 register target operands.
28189 (*vec_extractv8hi_sse2): New pattern.
28190 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
28191 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
28192 (*vec_extract<mode>_mem): New insn and split pattern.
28194 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
28196 * config/arm/arm.c (arm_asan_shadow_offset): New function.
28197 (TARGET_ASAN_SHADOW_OFFSET): Define.
28198 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
28199 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
28201 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28203 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
28204 (incr_vec_index): Return -1 if increment not found.
28205 (create_add_on_incoming_edge): Assert if increment not found.
28206 (record_increment): Limit number of increments recorded.
28207 (all_phi_incrs_profitable): Return false if an increment not found.
28208 (replace_profitable_candidates): Don't process increments that were
28210 (analyze_candidates_and_replace): Limit size of incr_vec.
28212 2013-05-07 Richard Biener <rguenther@suse.de>
28214 * calls.c (special_function_p): setjmp-like functions are leaf.
28215 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
28216 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
28218 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
28220 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
28221 (aarch64_simd_mov<mode>): New expander.
28222 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
28223 (aarch64_simd_mov_to_<mode>high): Likewise.
28224 (aarch64_simd_mov_from_<mode>low): Likewise.
28225 (aarch64_simd_mov_from_<mode>high): Likewise.
28226 (aarch64_dup_lane<mode>): Update.
28227 (aarch64_dup_lanedi): New instruction pattern.
28228 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
28229 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
28231 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28233 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
28234 (replace_mult_candidate): Remove unnecessary argument; remove
28235 unnecessary parameter from call to introduce_cast_before_cand.
28236 (replace_unconditional_candidate): Remove unnecessary parameter
28237 from call to replace_mult_candidate.
28238 (replace_conditional_candidate): Likewise.
28239 (insert_initializers): Use make_temp_ssa_name.
28240 (introduce_cast_before_cand): Remove unnecessary argument; use
28241 make_temp_ssa_name.
28242 (replace_one_candidate): Remove unnecessary argument; remove
28243 unnecessary parameter from calls to introduce_cast_before_cand.
28244 (replace_profitable_candidates): Remove unnecessary parameters
28245 from calls to replace_one_candidate.
28247 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28249 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
28250 phi def as possibly hiding a basis for a CAND_ADD whose operands
28251 have been commuted in the analysis.
28252 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
28254 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28256 * config/aarch64/aarch64.md
28257 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
28258 shift value between 0-4.
28260 2013-05-07 Richard Biener <rguenther@suse.de>
28262 * double-int.h (rshift): New overload.
28263 * double-int.c (rshift): New function.
28264 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
28265 (create_reference_ops_from_ref): Remove.
28266 (vn_reference_insert): Use shared ops for constructing the
28267 reference and copy it.
28269 2013-05-07 Richard Biener <rguenther@suse.de>
28271 PR middle-end/57190
28272 * tree-eh.c (sink_clobbers): Properly propagate
28273 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
28275 2013-05-07 Jakub Jelinek <jakub@redhat.com>
28277 PR tree-optimization/57149
28278 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
28279 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
28280 collect_phi_def_edges, execute_late_warn_uninitialized): Use
28281 uninit_undefined_value_p instead of ssa_undefined_value_p.
28284 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
28285 for modifier == EXPAND_INITIALIZER.
28287 2013-05-07 Anton Blanchard <anton@samba.org>
28289 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
28290 for powerpc64 little endian.
28291 * configure: Regenerate.
28293 2013-05-06 Graham Stott <grahams@btinternet.com>
28295 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
28296 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
28297 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
28298 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
28300 2013-05-06 Graham Stott <grahams@btinternet.com>
28302 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
28303 codes which allow non-lvalues.
28305 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
28307 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
28308 components are all 1s.
28309 (integer_minus_onep): New function.
28310 * tree.h (integer_minus_onep): Declare it.
28311 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
28312 integer_minus_onep instead of integer_all_onesp.
28314 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
28317 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
28318 variations of these patterns.
28320 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
28322 * config/i386/i386.md (isa): Add x64_sse4 member.
28323 (enabled): Handle x64_sse4.
28324 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
28325 instruction for 64bit SSE4_1 targets. Update insn attributes.
28326 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
28327 instruction for SSE4_1 targets. Update insn attributes.
28328 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
28329 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
28330 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
28332 (*vec_extractv4si): Rename from *sse4_1_pextrd.
28333 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
28334 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
28336 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
28339 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
28341 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
28343 * final.c (do_assembler_dialects): Don't handle curly braces and
28344 vertical bar escaped by % as dialect delimiters.
28345 (output_asm_insn): Print curly braces and vertical bar if escaped
28346 by % and ASSEMBLER_DIALECT defined.
28347 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
28348 * doc/tm.texi: Regenerated.
28350 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
28352 * config/mips/mips.c: Include tree-pass.h.
28353 (mips_reorg): Split in pre- and post-dbr_schedule parts.
28354 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
28355 (pass_mips_machine_reorg2): New machine specific pass.
28356 (insert_pass_mips_machine_reorg2): New pass plugin definition.
28357 (mips_option_override): Register the new pass.
28358 * rtl.h (cleanup_barriers): Remove prototype.
28359 (dbr_schedule): Likewise.
28360 * jump.c (cleanup_barriers): Make static.
28361 * reorg.c (dbr_schedule): Likewise.
28363 2013-05-06 Richard Biener <rguenther@suse.de>
28365 PR tree-optimization/57185
28366 * tree-parloops.c (add_field_for_reduction): Handle anonymous
28367 SSA names properly.
28369 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
28372 * config/i386/i386.c (add_parameter_dependencies): Add dependence
28373 between "first_arg" and "insn", not "last" and "insn".
28375 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28377 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
28378 (find_candidates_in_block): Re-enable slsr_process_phi.
28379 (create_phi_basis): Fix double counting of candidate adjustment.
28381 2013-05-06 Richard Biener <rguenther@suse.de>
28383 PR middle-end/57147
28384 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
28385 the edge is also fallthru, preserve it and just clear the
28387 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
28388 also complex, preserve that and just clear the fallthru flag.
28389 * tree-inline.c (update_ssa_across_abnormal_edges): Also
28390 update virtual operands.
28392 2013-05-06 Alan Modra <amodra@gmail.com>
28394 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
28395 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
28396 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
28397 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
28398 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
28399 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
28401 2013-05-06 Alan Modra <amodra@gmail.com>
28403 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
28404 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
28405 (DEFAULT_ASM_ENDIAN): Define.
28406 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
28407 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
28408 Update -K PIC clause from sysv4.h.
28409 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
28410 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
28412 2013-05-06 Alan Modra <amodra@gmail.com>
28414 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
28415 twice for little-endian.
28416 (ashrdi3_no_power, ashrdi3): Support little-endian.
28418 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
28421 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
28422 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
28424 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
28425 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
28426 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
28429 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
28430 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28432 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
28433 * config/pa/pa.opt: Make mbig-switch a no-op.
28434 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
28435 (CASE_VECTOR_MODE): Always return SImode.
28436 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
28437 for the !TARGET_BIG_SWITCH case.
28438 * config/pa/pa-linux.h: Likewise.
28439 * config/pa/pa-openbsd.h: Likewise.
28440 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
28441 * config/pa/pa.md (short_jump): Remove define_insn.
28442 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
28443 (casesi0): Remove define_insn.
28444 (type): Remove btable_branch.
28445 (pa_combine_type): Likewise.
28446 (in_nullified_branch_delay): Likewise.
28447 (in_call_delay): Likewise.
28448 (define_delay): Likewise.
28449 (define_insn_reservation "Z3"): Likewise.
28450 (define_insn_reservation "Z4"): Likewise.
28451 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
28452 (pa_adjust_insn_length): Remove adjustment for btable branches.
28453 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
28456 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
28458 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
28459 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
28460 Add m->r,x alternatives.
28461 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
28462 splitters using SWI48x mode iterator.
28463 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
28464 TARGET_64BIT. Add m->x alternative.
28465 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
28466 Add o->x alternative. Enable for TARGET_SSE.
28467 (sse_storeq): Remove expander.
28468 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
28469 with memory input operand.
28470 (*vec_extractv2di_1 splitter): New.
28471 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
28472 * config/i386/i386.md (ssevecmodelower): New mode attribute.
28474 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
28476 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
28477 (INT_LOWPART): Delete.
28478 (extract_MB): Adjust.
28479 (extract_ME): Adjust.
28480 (print_operand): Adjust.
28482 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
28484 * config/rs6000/predicates.md (reg_or_add_cint_operand,
28485 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
28486 (reg_or_logical_cint_operand, easy_fp_constant,
28487 logical_const_operand): Delete "CONST_DOUBLE" case.
28488 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
28489 "HOST_BITS_PER_WIDE_INT == 64" test.
28490 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
28491 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
28492 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
28493 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
28495 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
28496 CONST_DOUBLE DImode/VOIDmode case.
28497 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
28498 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
28499 CONST_DOUBLE VOIDmode case.
28500 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
28501 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
28502 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
28503 Delete CONST_DOUBLE case.
28504 (splitters for mov FMOVE64 const_double): Delete
28505 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
28506 "HOST_BITS_PER_WIDE_INT >= 64" test.
28507 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
28509 (mov DI const_double): Delete.
28511 2013-05-04 Jakub Jelinek <jakub@redhat.com>
28513 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
28514 on op shows all bits zero in mode of a lowpart subreg, return zero.
28516 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
28519 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
28520 to save TFmode registers and DImode to save TImode registers for
28521 caller save operations.
28522 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
28523 mark being partially clobbered since they only use the first
28526 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
28527 and TDmode only use the upper 64-bits of each VSX register.
28529 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28531 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
28532 (find_candidates_in_block): Disable slsr_process_phi.
28534 2013-05-03 Guozhi Wei <carrot@google.com>
28536 * coverage.c (coverage_obj_init): Move the construction of gcov
28538 (build_init_ctor): ... here.
28540 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28542 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
28543 (slsr_cand_d): Redefine def_phi.
28544 (stride_status, phi_adjust_status, count_phis_status): New enums.
28545 (find_phi_def): New.
28546 (find_basis_for_base_expr): New.
28547 (find_basis_for_candidate): Handle hidden bases.
28548 (alloc_cand_and_find_basis): Handle phi candidates.
28549 (slsr_process_phi): New.
28550 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
28551 (create_mul_imm_cand): Likewise.
28552 (create_add_ssa_cand): Exclude phi base candidates.
28553 (create_add_imm_cand): Likewise.
28554 (slsr_process_cast): Likewise.
28555 (slsr_process_copy): Likewise.
28556 (find_candidates_in_block): Handle phi candidates.
28557 (dump_candidate): Likewise.
28558 (unconditional_cands): Delete.
28559 (unconditional_cands_with_known_stride_p): Delete.
28560 (phi_dependent_cand_p): New.
28561 (cand_increment): Handle phi-dependent candidates.
28562 (replace_dependent): Delete.
28563 (replace_mult_candidate): New.
28564 (replace_unconditional_candidate): New.
28565 (incr_vec_index): Move to avoid forward reference.
28566 (create_add_on_incoming_edge): New.
28567 (create_phi_basis): New.
28568 (replace_dependents): Delete.
28569 (replace_conditional_candidate): New.
28570 (phi_add_costs): New.
28571 (replace_uncond_cands_and_profitable_phis): New.
28572 (record_increment): Handle phi adjustments.
28573 (record_phi_increments): New.
28574 (record_increments): Handle phi adjustments.
28575 (phi_incr_cost): New.
28576 (lowest_cost_path): Handle phis.
28577 (total_savings): Likewise.
28578 (analyze_increments): Likewise.
28579 (ncd_with_phi): New.
28580 (ncd_of_cand_and_phis): New.
28581 (nearest_common_dominator_for_cands): Handle phi increments.
28582 (all_phi_incrs_profitable): New.
28583 (replace_profitable_candidates): Handle phi-dependent candidates.
28584 (analyze_candidates_and_replace): Likewise.
28586 2013-05-03 Teresa Johnson <tejohnson@google.com>
28589 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
28590 do not exceed REG_BR_PROB_BASE.
28592 2013-05-03 Jeff Law <law@redhat.com>
28594 PR tree-optimization/57144
28595 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
28596 operand of the condition will bit into the new type when eliminating
28597 a cast feeding a condition.
28599 2013-05-03 Jakub Jelinek <jakub@redhat.com>
28601 PR rtl-optimization/57130
28602 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
28603 of COMPARE as in_code to the recursive call if needed.
28605 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
28607 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
28608 (enabled): Handle new members.
28609 * config/i386/sse.md (*vec_concatv2si): Merge from
28610 *vec_concatv2si_sse2 and vec_concatv2si_sse.
28611 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
28613 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
28615 PR tree-optimization/57027
28616 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
28617 for fnms opportunity, check we got the prerequisite kind
28618 of tree / gimple before using accessor functions.
28620 2013-05-03 Richard Biener <rguenther@suse.de>
28622 * double-int.h (lshift): New overload without precision
28623 and arith argument.
28624 (operator *=, operator +=, operator -=): Move ...
28625 * double-int.c (operator *=, operator +=, operator -=): ... here
28626 and implement more efficiently.
28627 (mul_double_with_sign): Remove.
28628 (lshift_double): Adjust to take unsinged shift argument, push
28629 dispatching code to callers.
28630 (mul_double_wide_with_sign): Add early out for callers that
28631 are not interested in high parts or overflow.
28632 (lshift): New function.
28633 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
28634 dispatch code here.
28635 (lrotate, rrotate): Use logical shifts.
28636 * expr.c (get_inner_reference): Use lshift.
28637 * fixed-value.c (do_fixed_divide): Likewise.
28638 * tree-dfa.c (get_ref_base_and_extent): Likewise.
28639 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
28640 (indirect_refs_may_alias_p): Likewise.
28641 (stmt_kills_ref_p_1): Likewise.
28643 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
28645 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
28647 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
28649 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
28650 scalar form of FABD instruction.
28652 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
28654 * lra-constraints.c (process_alt_operands): Add checking alt
28655 number to choose the best alternative.
28657 2013-05-02 Richard Biener <rguenther@suse.de>
28659 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
28660 bitmap and its handling.
28661 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
28663 2013-05-02 Richard Biener <rguenther@suse.de>
28665 PR middle-end/57140
28666 * tree-inline.c (copy_loops): Properly handle removed loops.
28667 (copy_cfg_body): Mark destination loops for fixup if source
28668 loops needed fixup.
28670 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
28673 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
28674 generating simple_return for naked functions.
28676 2013-05-02 Martin Jambor <mjambor@suse.cz>
28678 PR middle-end/56988
28679 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
28680 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
28682 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
28683 ipa_agg_replacement_value structures.
28684 (known_aggs_to_agg_replacement_list): Likewise.
28685 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
28686 (read_agg_replacement_chain): Likewise.
28687 (ipcp_transform_function): Also check that by_ref flags match.
28689 2013-05-02 Richard Biener <rguenther@suse.de>
28691 * graphds.h (struct graph): Add obstack member.
28692 * graphds.c (new_graph): Initialize obstack and allocate
28694 (add_edge): Allocate edge from the obstack.
28695 (free_graph): Free the obstack instead of all edges and vertices.
28697 2013-05-02 Teresa Johnson <tejohnson@google.com>
28699 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
28701 * cfg.c (update_bb_profile_for_threading): Ditto.
28702 * tree-inline.c (copy_bb): Ditto.
28703 (copy_edges_for_bb): Ditto.
28704 (initialize_cfun): Ditto.
28705 (copy_cfg_body): Ditto.
28706 (expand_call_inline): Ditto.
28707 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
28708 (estimate_node_size_and_time): Ditto.
28709 (inline_merge_summary): Ditto.
28710 * cgraphclones.c (cgraph_clone_edge): Ditto.
28711 (cgraph_clone_node): Ditto.
28712 * sched-rgn.c (compute_dom_prob_ps): Ditto.
28713 (compute_trg_info): Ditto.
28715 2013-05-02 Ian Bolton <ian.bolton@arm.com>
28717 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
28718 S reg when fp attribute set.
28719 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
28721 2013-05-02 Ian Bolton <ian.bolton@arm.com>
28723 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
28725 (*and_one_cmplsi3_compare0_uxtw): Likewise.
28726 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
28727 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
28729 2013-05-02 Richard Biener <rguenther@suse.de>
28731 * tree-scalar-evolution.c (scev_info_hasher): Remove.
28732 (struct instantiate_cache_entry): New type.
28733 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
28734 (struct instantiate_cache_type): New type.
28735 (set_instantiated_value, get_instantiated_value): Remove.
28736 (get_instantiated_value_entry): New function.
28737 (instantiate_scev_name): Use the new cache and adjust.
28738 (instantiate_scev_poly): Adjust.
28739 (instantiate_scev_binary): Likewise.
28740 (instantiate_array_ref): Likewise.
28741 (instantiate_scev_convert): Likewise.
28742 (instantiate_scev_not): Likewise.
28743 (instantiate_scev_3): Likewise.
28744 (instantiate_scev_2): Likewise.
28745 (instantiate_scev_r): Likewise.
28746 (instantiate_scev): Likewise.
28747 (resolve_mixers): Likewise.
28749 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
28752 * lra-constraints.c (best_small_class_operands_num): Remove.
28753 (process_alt_operands): Remove small_class_operands_num. Take
28754 small classes operands into losers and only if the operand is not
28755 matched. Modify debugging output.
28756 (curr_insn_transform): Remove best_small_class_operands_num.
28759 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28761 * config/aarch64/aarch64-builtins.c
28762 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
28763 * config/aarch64/aarch64-simd-builtins.def
28764 (reduc_splus_): Add new modes.
28765 (reduc_uplus_): New.
28766 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
28767 (reduc_uplus_v4sf): Likewise.
28768 (reduc_splus_v4sf): Likewise.
28769 (aarch64_addv<mode>): Likewise.
28770 (reduc_uplus_<mode>): Likewise.
28771 (reduc_splus_<mode>): Likewise.
28772 (aarch64_addvv2di): Likewise.
28773 (reduc_uplus_v2di): Likewise.
28774 (reduc_splus_v2di): Likewise.
28775 (aarch64_addvv2si): Likewise.
28776 (reduc_uplus_v2si): Likewise.
28777 (reduc_splus_v2si): Likewise.
28778 (reduc_<sur>plus_<mode>): New.
28779 (reduc_<sur>plus_v2di): Likewise.
28780 (reduc_<sur>plus_v2si): Likewise.
28781 (reduc_<sur>plus_v4sf): Likewise.
28782 (aarch64_addpv4sf): Likewise.
28783 * config/aarch64/arm_neon.h
28784 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
28785 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
28786 add UNSPEC_SADDV, UNSPEC_UADDV.
28788 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
28790 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28792 * config/aarch64/arm_neon.h
28793 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
28795 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28797 * config/aarch64/aarch64-builtins
28798 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
28800 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28802 * config/aarch64/aarch64-simd-builtins.def
28803 (reduc_smax_): New.
28804 (reduc_smin_): Likewise.
28805 (reduc_umax_): Likewise.
28806 (reduc_umin_): Likewise.
28807 (reduc_smax_nan_): Likewise.
28808 (reduc_smin_nan_): Likewise.
28811 (smax): Update for V2SF, V4SF and V2DF modes.
28814 (smin_nan): Likewise.
28815 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
28816 (<su><maxmin><mode>3): ...This, refactor.
28817 (s<maxmin><mode>3): New.
28818 (<maxmin_uns><mode>3): Likewise.
28819 (reduc_<maxmin_uns>_<mode>): Refactor.
28820 (reduc_<maxmin_uns>_v4sf): Likewise.
28821 (reduc_<maxmin_uns>_v2si): Likewise.
28822 (aarch64_<fmaxmin><mode>: Remove.
28823 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
28825 (vmin<q>_f<32,64>): Likewise.
28826 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28828 (su): Add mappings for smax, smin, umax, umin.
28830 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28831 (FMAXMIN): Rename as...
28832 (FMAXMIN_UNS): ...This.
28834 (fmaxminv): Likewise.
28835 (fmaxmin): Likewise.
28837 (maxmin_uns_op): Likewise.
28839 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28841 * config/aarch64/arm_neon.h
28842 (vac<ge, gt><sd>_f<32, 64>): Rename to...
28843 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
28844 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
28846 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28848 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
28849 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
28851 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28853 * config/aarch64/aarch64-simd.md
28854 (vcond<mode>_internal): Handle special cases for constant masks.
28855 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
28856 (vcondu<mode><mode>): Likewise.
28857 (vcond<v_cmp_result><mode>): New.
28859 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28861 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
28862 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
28863 * config/aarch64/aarch64-simd-builtins.def
28864 (cmeq): Update to BUILTIN_VALLDI.
28869 * config/aarch64/arm_neon.h
28870 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
28871 to builtins or C as appropriate.
28873 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28875 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
28877 (cmhi): Rename to...
28879 * config/aarch64/aarch64-simd.md
28880 (simd_mode): Add SF.
28881 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
28882 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
28883 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
28884 (cstore<mode>_neg): ...This.
28885 * config/aarch64/iterators.md
28887 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
28888 (COMPARISONS): New.
28889 (UCOMPARISONS): Likewise.
28890 (optab): Add missing comparisons.
28896 (VCMP_S): Likewise.
28897 (VCMP_U): Likewise.
28898 (V_cmp_result): Add DF, SF modes.
28899 (v_cmp_result): Likewise.
28901 (vmtype): Likewise.
28902 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
28904 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
28906 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
28907 define_insn to define_insn_and_split.
28908 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
28909 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
28910 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
28911 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
28912 (thumb2_negscc): Likewise.
28914 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
28916 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
28918 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
28920 * config/arm/thumb2.md: Remove trailing whitespaces.
28922 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28924 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
28925 Use gen_int_mode rather than GEN_INT.
28927 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
28929 * value-prof.c (stream_in_histogram_value): Remove the strayed
28932 2013-04-30 Richard Biener <rguenther@suse.de>
28934 PR middle-end/57122
28935 * cfghooks.c (split_edge): Properly check for the loop latch edge.
28937 2013-04-30 Richard Biener <rguenther@suse.de>
28939 PR middle-end/57107
28940 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
28942 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
28944 PR rtl-optimization/56957
28945 PR rtl-optimization/57105
28946 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
28947 variable. Use just INSN_UID for determining whether an insn
28948 should be only disconnected from the insn stream.
28949 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
28951 2013-04-30 Jakub Jelinek <jakub@redhat.com>
28953 PR tree-optimization/57104
28954 * tsan.c (instrument_expr): Don't instrument accesses to
28955 DECL_HARD_REGISTER VAR_DECLs.
28957 2013-04-30 Richard Biener <rguenther@suse.de>
28959 * function.h (loops_for_fn): New inline function.
28960 (set_loops_for_fn): Likewise.
28961 * cfgloop.h (place_new_loop): Add struct function parameter.
28962 (get_loop): Likewise.
28963 (get_loops): Likewise.
28964 (number_of_loops): Likewise.
28965 (fel_next): Adjust.
28966 (fel_init): Likewise.
28967 * cfg.c (get_loop_copy): Adjust.
28968 * cfgloop.c (flow_loops_dump): Likewise.
28969 (record_loop_exits): Likewise.
28970 (verify_loop_structure): Likewise.
28971 * cfgloopanal.c (mark_irreducible_loops): Likewise.
28972 (estimate_reg_pressure_cost): Likewise.
28973 (mark_loop_exit_edges): Likewise.
28974 * cfgloopmanip.c (place_new_loop): Likewise.
28975 (add_loop): Likewise.
28976 (duplicate_loop): Likewise.
28977 * graph.c (draw_cfg_nodes): Likewise.
28978 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
28979 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
28980 (extract_affine_chrec): Likewise.
28981 (build_scop_iteration_domain): Likewise.
28982 * graphite.c (graphite_initialize): Likewise.
28983 * ira-build.c (create_loop_tree_nodes): Likewise.
28984 (more_one_region_p): Likewise.
28985 (rebuild_regno_allocno_maps): Likewise.
28986 (mark_loops_for_removal): Likewise.
28987 (mark_all_loops_for_removal): Likewise.
28988 (remove_unnecessary_regions): Likewise.
28989 (ira_build): Likewise.
28990 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
28991 * loop-init.c (fix_loop_structure): Likewise.
28992 (gate_rtl_move_loop_invariants): Likewise.
28993 (gate_rtl_unswitch): Likewise.
28994 (gate_rtl_unroll_and_peel_loops): Likewise.
28995 (rtl_doloop): Likewise.
28996 * lto-streamer-in.c (input_cfg): Likewise.
28997 * lto-streamer-out.c (output_cfg): Likewise.
28998 * modulo-sched.c (sms_schedule): Likewise.
28999 * predict.c (tree_estimate_probability): Likewise.
29000 (tree_estimate_probability_driver): Likewise.
29001 (estimate_loops): Likewise.
29002 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
29003 (move_sese_region_to_fn): Likewise.
29004 (debug_loop_num): Likewise.
29005 * tree-chrec.c (chrec_evaluate): Likewise.
29006 (hide_evolution_in_other_loops_than_loop): Likewise.
29007 (chrec_component_in_loop_num): Likewise.
29008 (reset_evolution_in_loop): Likewise.
29009 (evolution_function_is_invariant_rec_p): Likewise.
29010 * tree-if-conv.c (main_tree_if_conversion): Likewise.
29011 * tree-inline.c (copy_loops): Likewise.
29012 (copy_cfg_body): Likewise.
29013 (tree_function_versioning): Likewise.
29014 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
29015 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
29017 (add_to_evolution_1): Likewise.
29018 (scev_const_prop): Likewise.
29019 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
29020 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
29021 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
29022 (tree_ssa_lim_initialize): Likewise.
29023 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
29024 (verify_loop_closed_ssa): Likewise.
29025 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
29026 (tree_ssa_loop_im): Likewise.
29027 (tree_ssa_loop_unswitch): Likewise.
29028 (tree_vectorize): Likewise.
29029 (check_data_deps): Likewise.
29030 (tree_ssa_loop_ivcanon): Likewise.
29031 (tree_ssa_loop_bounds): Likewise.
29032 (tree_complete_unroll): Likewise.
29033 (tree_complete_unroll_inner): Likewise.
29034 (tree_parallelize_loops): Likewise.
29035 (tree_ssa_loop_prefetch): Likewise.
29036 (tree_ssa_loop_ivopts): Likewise.
29037 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
29038 * tree-vectorizer.c (vectorize_loops): Likewise.
29040 2013-04-29 Mike Frysinger <vapier@gentoo.org>
29042 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
29043 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
29044 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
29045 with EABI_LINK_SPEC.
29047 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
29050 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
29053 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
29056 * lra-constraints.c (process_alt_operands): Discourage a bit more
29057 using memory for pseudos. Print cost dump for alternatives.
29058 Modify cost values for conflicts with early clobbers.
29059 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
29061 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
29064 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
29066 2013-04-29 Ian Bolton <ian.bolton@arm.com>
29068 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
29069 from/to S register.
29070 (movdi_aarch64): Support LDR/STR from/to D register.
29072 2013-04-29 Ian Bolton <ian.bolton@arm.com>
29074 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
29075 or higher by default.
29077 2013-04-29 Richard Biener <rguenther@suse.de>
29079 PR middle-end/57075
29080 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
29081 even if not adding abnormal edges for calls that can make
29084 2013-04-29 Richard Biener <rguenther@suse.de>
29086 PR middle-end/57103
29087 * tree-cfg.c (move_stmt_op): Fix condition under which to update
29089 (move_stmt_r): Remove redundant checking.
29091 2013-04-29 Teresa Johnson <tejohnson@google.com>
29094 * basic-block.h (apply_scale): New function.
29095 (apply_probability): Use apply_scale.
29096 * gimple-streamer-in.c (input_bb): Ditto.
29097 * lto-streamer-in.c (input_cfg): Ditto.
29098 * lto-cgraph.c (merge_profile_summaries): Ditto.
29099 * tree-optimize.c (execute_fixup_cfg): Ditto.
29100 * tree-inline.c (copy_bb): Update comment to use apply_scale.
29101 (copy_edges_for_bb): Ditto.
29102 (copy_cfg_body): Ditto.
29104 2013-04-29 Tom de Vries <tom@codesourcery.com>
29106 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
29107 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
29108 (tail_merge_optimize): Handle current_loops == NULL.
29110 2013-04-26 Jeff Law <law@redhat.com>
29112 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
29113 (simplify_cond_using_ranges): Generalize code to simplify
29114 COND_EXPRs where one argument is a constant and the other
29115 is an SSA_NAME created by an integral type conversion.
29117 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29119 * config/arm/arm.md (store_minmaxsi): Use only when
29120 optimize_insn_for_size_p.
29122 2013-04-29 Christian Bruel <christian.bruel@st.com>
29125 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
29127 2013-04-29 Richard Biener <rguenther@suse.de>
29129 PR middle-end/57089
29130 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
29131 loop tree make sure to schedule a fixup for the child as well.
29132 (expand_omp_for_generic): Properly add loops.
29133 (expand_omp_for_static_nochunk): Likewise.
29134 (expand_omp_for_static_chunk): Likewise.
29135 (expand_omp_for): For the degenerate case fixup loops.
29136 (expand_omp_sections): Fix default bb placement in loops.
29137 (expand_omp_atomic_pipeline): Properly add loops.
29139 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29141 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
29143 2013-04-29 Tom de Vries <tom@codesourcery.com>
29145 * tree-ssa-tail-merge.c: Update header comment.
29147 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29149 * config/aarch64/arm_neon.h
29150 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
29151 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
29152 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
29153 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
29154 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
29155 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
29156 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
29157 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
29159 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29161 * config/aarch64/aarch64-simd.md
29162 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
29163 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
29164 fix_trunc, fixuns_trunc.
29165 (ftrunc<VDQF:mode>2): New.
29166 * config/aarch64/iterators.md (optab): Add fix, fixuns.
29167 (fix_trunc_optab): New.
29169 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29171 * config/aarch64/aarch64-builtins.c
29172 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
29173 iceilf, lround, iroundf.
29175 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
29178 * config/i386/i386.h (enum ix86_tune_indices)
29179 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
29180 New, split from X86_TUNE_INTER_UNIT_MOVES.
29181 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
29182 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
29183 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
29184 (TARGET_INTER_UNIT_MOVES): Remove.
29185 * config/i386/i386.c (initial_ix86_tune_features): Update.
29186 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
29187 (ix86_expand_convert_uns_didf_sse): Use
29188 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
29189 (ix86_expand_vector_init_one_nonzero): Ditto.
29190 (ix86_expand_vector_init_interleave): Ditto.
29191 (inline_secondary_memory_needed): Return true for moves from SSE class
29192 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
29193 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
29194 * config/i386/constraints.md (Yi, Ym): Depend on
29195 TARGET_INTER_UNIT_MOVES_TO_VEC.
29196 (Yj, Yn): New constraints.
29197 * config/i386/i386.md (*movdi_internal): Change constraints of
29198 operand 1 from Yi to Yj and from Ym to Yn.
29199 (*movsi_internal): Ditto.
29200 (*movdf_internal): Ditto.
29201 (*movsf_internal): Ditto.
29202 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
29203 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
29204 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
29205 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
29206 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
29207 * config/i386/sse.md (movdi_to_sse): Ditto.
29208 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
29209 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
29210 TARGET_INTER_UNIT_MOVES.
29211 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
29212 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
29213 instead of TARGET_INTER_UNIT_MOVES.
29214 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
29215 operand 1 from Yi to Yj and from Ym to Yn.
29217 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29219 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
29220 (float_truncate_hi_): Likewise.
29221 (float_extend_lo_): Likewise.
29222 (float_truncate_lo_): Likewise.
29223 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
29224 (aarch64_float_extend_lo_v2df): Likewise.
29225 (vec_unpacks_hi_v4sf): Likewise.
29226 (aarch64_float_truncate_lo_v2sf): Likewise.
29227 (aarch64_float_truncate_hi_v4sf): Likewise.
29228 (vec_pack_trunc_v2df): Likewise.
29229 (vec_pack_trunc_df): Likewise.
29231 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29233 * config/aarch64/aarch64-builtins.c
29234 (aarch64_fold_builtin): Fold float conversions.
29235 * config/aarch64/aarch64-simd-builtins.def
29236 (floatv2si, floatv4si, floatv2di): New.
29237 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
29238 * config/aarch64/aarch64-simd.md
29239 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
29240 * config/aarch64/iterators.md (FLOATUORS): New.
29241 (optab): Add float, floatuns.
29242 (su_optab): Likewise.
29244 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29246 * config/aarch64/aarch64-builtins.c
29247 (aarch64_builtin_vectorized_function): Use new names for
29249 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
29250 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
29251 (fcvtzu): Split as...
29252 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
29253 (fcvtas): Split as...
29254 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
29255 (fcvtau): Split as...
29256 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
29257 (fcvtps): Split as...
29258 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
29259 (fcvtpu): Split as...
29260 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
29261 (fcvtms): Split as...
29262 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
29263 (fcvtmu): Split as...
29264 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
29265 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
29266 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
29267 (lfrintnusf, lfrintnudf): Likewise.
29268 * config/aarch64/aarch64-simd.md
29269 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
29271 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
29272 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
29273 (fcvt_pattern): Likewise.
29275 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29277 * config/aarch64/aarch64-simd.md
29278 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
29279 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
29281 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29283 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
29284 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
29285 (vrnd<a,m,n,p>_f32): Implement using builtins.
29286 (vrnd<i,x><q>_f<32, 64>): New.
29288 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29290 * config/aarch64/aarch64-builtins.c
29291 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
29292 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
29293 (frintz): Rename to...
29295 (frintp): Rename to...
29297 (frintm): Rename to...
29299 (frinti): Rename to...
29300 (nearbyint): ...this.
29301 (frintx): Rename to...
29303 (frinta): Rename to...
29305 * config/aarch64/aarch64-simd.md
29306 (aarch64_frint<frint_suffix><mode>): Delete.
29307 (<frint_pattern><mode>2): Convert to insn.
29308 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
29309 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
29310 (frint_pattern): Likewise.
29311 (frint_suffix): Likewise.
29313 2013-04-29 Richard Biener <rguenther@suse.de>
29315 PR tree-optimization/57081
29316 * loop-init.c: Include tree-flow.h.
29317 (loop_optimizer_finalize): Free number of iteration estimates.
29318 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
29320 2013-04-29 Jakub Jelinek <jakub@redhat.com>
29322 PR tree-optimization/57083
29323 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
29324 non-singleton shift count range, zero extend low_bound for uns case.
29326 * config/i386/predicates.md (general_vector_operand): New predicate.
29327 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
29328 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
29329 if they aren't nonimmediate operands. If their original values
29330 satisfy const_vector_equal_evenodd_p, don't shift them.
29331 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
29332 predicates. For the SSE4.1 case force operands[{1,2}] into registers
29333 if not nonimmediate_operand.
29334 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
29335 instead of register_operand.
29336 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
29338 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
29340 * stor-layout.c (finalize_size_functions): Allocate a structure and
29341 reset cfun before dumping the functions.
29343 2013-04-27 Jakub Jelinek <jakub@redhat.com>
29345 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
29348 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
29349 use xop_pmacsdqh if uns_p.
29350 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
29351 the immediate rotate count.
29353 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
29355 * rtl.h (struct rtx_def): Add comment for field jump.
29356 (LRA_SUBREG_P): New macro.
29357 * recog.c (register_operand): Check LRA_SUBREG_P.
29358 * lra.c (lra): Add note at the end of RTL code. Align non-empty
29360 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
29361 (lra_final_code_change): Skip subreg change for operators.
29362 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
29363 if there are no operand changes.
29364 * lra-constraints.c (curr_insn_set): New.
29365 (match_reload): Set LRA_SUBREG_P.
29366 (emit_spill_move): Ditto.
29367 (check_and_process_move): Use curr_insn_set. Process only single
29368 set insns. Don't initialize sec_mem_p and change_p.
29369 (simplify_operand_subreg): Use LRA_SUBREG_P.
29370 (reg_in_class_p): New function.
29371 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
29372 of #ifdef. Add code to remove cycling.
29373 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
29374 non-null disp. Reload inner instead of disp when base and index
29375 are null. Try to put lo_sum into register.
29376 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
29377 (check_and_process_move): Move code for move cost check to
29378 simple_move_p. Remove equiv_substitution.
29379 (simple_move_p): New function.
29380 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
29381 curr_insn_set. Call check_and_process_move only for single set
29382 insns. Use the new function. Move call of check_and_process_move
29383 after operand equiv substitution and address process.
29385 2013-04-26 Jakub Jelinek <jakub@redhat.com>
29388 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
29389 with nonlocal goto receivers or returns twice calls, ignore
29390 unininitialized values from abnormal edges to nl goto receiver
29391 or returns twice call.
29393 2013-04-26 Jakub Jelinek <jakub@redhat.com>
29395 PR tree-optimization/57051
29396 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
29397 and VEC_RSHIFT_EXPR if shift count is a multiple of element
29400 2013-04-26 Richard Biener <rguenther@suse.de>
29402 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
29403 (expand_omp_taskreg): Likewise. Mark loops for fixup.
29404 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
29405 (fixup_loop_arrays_after_move): New function.
29406 (move_sese_region_to_fn): Properly outline the loop tree parts
29407 of the SESE region.
29409 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
29411 * config/i386/i386.md (type, unit): Fix long lines.
29413 2013-04-26 Richard Biener <rguenther@suse.de>
29415 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
29416 (lto-streamer-out.o): Likewise.
29417 * cfgloop.c (init_loops_structure): Export, add struct function
29418 argument and adjust.
29419 (flow_loops_find): Adjust.
29420 * cfgloop.h (enum loop_estimation): Add EST_LAST.
29421 (init_loops_structure): Declare.
29422 * lto-streamer-in.c: Include cfgloop.h.
29423 (input_cfg): Input the loop tree.
29424 * lto-streamer-out.c: Include cfgloop.h.
29425 (output_cfg): Output the loop tree.
29426 (output_struct_function_base): Do not drop PROP_loops.
29428 2013-03-26 Richard Biener <rguenther@suse.de>
29430 * tree-cfg.c (execute_build_cfg): Build the loop tree.
29431 (pass_build_cfg): Provide PROP_loops.
29432 (move_sese_region_to_fn): Remove loops that are outlined into fn
29434 * tree-inline.c: Include cfgloop.h.
29435 (initialize_cfun): Do not drop PROP_loops.
29436 (copy_loops): New function.
29437 (copy_cfg_body): Copy loop structure.
29438 (tree_function_versioning): Initialize destination loop tree.
29439 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
29440 (pass_parallelize_loops): Do IL verification.
29441 * loop-init.c (loop_optimizer_init): Fixup loops if required.
29442 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
29443 the CFG make sure we fixup loops as well.
29444 * tree-ssa-tail-merge.c: Include cfgloop.h.
29445 (replace_block_by): When merging loop latches mark loops for fixup.
29446 * lto-streamer-out.c (output_struct_function_base): Drop
29447 PROP_loops for now.
29448 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
29449 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
29450 * ipa-split.c: Include cfgloop.h.
29451 (split_function): Add the new return block to the loop tree root.
29452 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
29453 whether we have removed the forwarder block.
29454 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
29455 * cfgloop.h (place_new_loop): Declare.
29456 * cfgloopmanip.c (place_new_loop): Export.
29457 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
29458 (tree-switch-conversion.o): Likewise.
29459 (tree-complex.o): Likewise.
29460 (tree-inline.o): Likewise.
29461 (tree-ssa-tailmerge.o): Likewise.
29462 (ipa-split.o): Likewise.
29463 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
29464 (tree-ssa-copy.o): Likewise.
29465 * tree-switch-conversion.c: Include cfgloop.h
29466 (process_switch): If we emit a bit-test cascade, schedule loops
29468 * tree-complex.c: Include cfgloop.h.
29469 (expand_complex_div_wide): Properly add new basic-blocks to loops.
29470 * asan.c: Include cfgloop.h.
29471 (create_cond_insert_point): Properly add new basic-blocks to
29472 loops, schedule loop fixup.
29473 * cfgloop.c (verify_loop_structure): Check that looks are not
29475 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
29477 (expand_omp_for_generic): Likewise.
29478 (expand_omp_sections): Likewise.
29479 (expand_omp_atomic_pipeline): Schedule loops for fixup.
29480 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
29481 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
29482 is initialized, not when loops are present.
29483 * tree-parloops.c (parallelize_loops): Remove checking here.
29484 * passes.c (init_optimization_passes): Schedule a copy-propagation
29485 pass before complete unrolling of inner loops.
29487 2013-04-26 Jakub Jelinek <jakub@redhat.com>
29489 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
29490 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
29491 (colorize_init): Add argument to _WIN32 version.
29492 * toplev.c: Include diagnostic-color.h.
29493 (process_options): Default to -fdiagnostics-color=auto if
29494 GCC_COLORS env var is in the environment.
29495 * common.opt (fdiagnostics-color=): Add Var and Init.
29496 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
29497 env var is in the environment, the default is auto rather than never.
29499 * diagnostic.h (file_name_as_prefix): Add context argument.
29500 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
29501 the string as locus.
29502 * langhooks.c (lhd_print_error_function): Adjust caller.
29504 2013-04-25 Lawrence Crowl <crowl@google.com>
29506 * var-tracking.c (shared_hash_def::htab):
29507 Change type to hash_table. Update dependent calls and types.
29509 2013-04-25 Lawrence Crowl <crowl@google.com>
29511 * Makefile.in: Update as needed below.
29513 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
29514 Move declaration to after the type's method definitons.
29516 * attribs.c (htab_t scoped_attributes::attribute_hash):
29517 Change type to hash_table. Update dependent calls and types.
29519 * bitmap.c (htab_t bitmap_desc_hash):
29520 Change type to hash_table. Update dependent calls and types.
29522 * cselib.c (htab_t cselib_hash_table):
29523 Change type to hash_table. Update dependent calls and types.
29525 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
29526 (hash_string_slot_node): Move implementation into lto-streamer.h
29527 struct string_slot_hasher.
29528 (eq_string_slot_node): Likewise.
29530 * data-streamer-out.c: Update output_block::string_hash_table
29531 dependent calls and types.
29533 * dwarf2cfi.c (htab_t trace_index):
29534 Change type to hash_table. Update dependent calls and types.
29536 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
29537 Change type to hash_table. Update dependent calls and types.
29538 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
29539 (htab_t optimize_external_refs::map): Likewise.
29540 (htab_t output_comp_unit::extern_map): Likewise.
29541 (htab_t output_comdat_type_unit::extern_map): Likewise.
29542 (htab_t output_macinfo::macinfo_htab): Likewise.
29543 (htab_t optimize_location_lists::htab): Likewise.
29544 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
29546 * except.c (htab_t ehspec_hash_type):
29547 Change type to hash_table. Update dependent calls and types.
29548 (assign_filter_values::ttypes): Likewise.
29549 (assign_filter_values::ehspec): Likewise.
29550 (sjlj_assign_call_site_values::ar_hash): Likewise.
29551 (convert_to_eh_region_ranges::ar_hash): Likewise.
29553 * gcse.c (htab_t pre_ldst_table):
29554 Change type to hash_table. Update dependent calls and types.
29556 * ggc-common.c (htab_t saving_htab):
29557 Change type to hash_table. Update dependent calls and types.
29558 (htab_t loc_hash): Likewise.
29559 (htab_t ptr_hash): Likewise.
29560 (call_count): Rename ggc_call_count.
29561 (call_alloc): Rename ggc_call_alloc.
29562 (loc_descriptor): Rename make_loc_descriptor.
29563 (add_statistics): Rename ggc_add_statistics.
29565 * ggc-common.c (saving_htab):
29566 Change type to hash_table. Update dependent calls and types.
29568 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
29569 (push_gimplify_context): Likewise.
29570 (pop_gimplify_context): Likewise.
29571 (struct gimple_temp_hash_elt): Added.
29572 (struct gimplify_hasher): Likewise.
29573 (struct gimplify_ctx.temp_htab):
29574 Change type to hash_table. Update dependent calls and types.
29576 * gimple-fold.c: Include gimplify-ctx.h.
29578 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
29579 Change type to hash_table. Update dependent calls and types.
29580 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
29581 avoid potential global name collision.
29583 * gimplify.c: Include gimplify-ctx.h.
29584 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
29585 (htab_t gimplify_ctx::temp_htab):
29586 Update dependent calls and types for new type hash_table.
29587 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
29588 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
29590 * gimplify-ctx.h: New.
29591 (struct gimple_temp_hash_elt): Move from gimplify.c.
29592 (class gimplify_hasher): New.
29593 (struct gimplify_ctx): Move from gimple.h.
29594 (htab_t gimplify_ctx::temp_htab):
29595 Change type to hash_table. Update dependent calls and types.
29597 * graphite-clast-to-gimple.c: Include graphite-htab.h.
29598 (htab_t ivs_params::newivs_index):
29599 Change type to hash_table. Update dependent calls and types.
29600 (htab_t ivs_params::params_index): Likewise.
29601 (htab_t print_generated_program::params_index): Likewise.
29602 (htab_t gloog::newivs_index): Likewise.
29603 (htab_t gloog::params_index): Likewise.
29605 * graphite.c: Include graphite-htab.h.
29606 4htab_t graphite_transform_loops::bb_pbb_mapping):
29607 Change type to hash_table. Update dependent calls and types.
29609 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
29610 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
29611 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
29613 * graphite-dependences.c: Include graphite-htab.h.
29614 (loop_is_parallel_p): Change hash table type of parameter.
29616 * graphite-htab.h: New.
29617 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
29618 (extern find_pbb_via_hash): Move from graphite-poly.h.
29619 (extern loop_is_parallel_p): Move from graphite-poly.h.
29620 (extern get_loop_body_pbbs): Move from graphite-poly.h.
29622 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
29623 (extern loop_is_parallel_p): Move to graphite-htab.h.
29624 (extern get_loop_body_pbbs): Move to graphite-htab.h.
29626 * haifa-sched.c (htab_t delay_htab):
29627 Change type to hash_table. Update dependent calls and types.
29628 (htab_t delay_htab_i2): Likewise.
29630 * ira-color.c (htab_t allocno_hard_regs_htab):
29631 Change type to hash_table. Update dependent calls and types.
29633 * ira-costs.c (htab_t cost_classes_htab):
29634 Change type to hash_table. Update dependent calls and types.
29636 * loop-invariant.c (htab_t merge_identical_invariants::eq):
29637 Change type to hash_table. Update dependent calls and types.
29639 * loop-iv.c (htab_t bivs):
29640 Change type to hash_table. Update dependent calls and types.
29642 * loop-unroll.c (htab_t opt_info::insns_to_split):
29643 Change type to hash_table. Update dependent calls and types.
29644 (htab_t opt_info::insns_with_var_to_expand): Likewise.
29646 * lto-streamer.h (struct string_slot): Move from data-streamer.h
29647 (struct string_slot_hasher): New.
29648 (htab_t output_block::string_hash_table):
29649 Change type to hash_table. Update dependent calls and types.
29651 * lto-streamer-in.c (freeing_string_slot_hasher): New.
29652 (htab_t file_name_hash_table):
29653 Change type to hash_table. Update dependent calls and types.
29655 * lto-streamer-out.c: Update output_block::string_hash_table dependent
29658 * lto-streamer.c (htab_t tree_htab):
29659 Change type to hash_table. Update dependent calls and types.
29661 * omp-low.c: Include gimplify-ctx.h.
29663 * passes.c (htab_t name_to_pass_map):
29664 Change type to hash_table. Update dependent calls and types.
29665 (pass_traverse): Rename to passes_pass_traverse.
29667 * plugin.c (htab_t event_tab):
29668 Change type to hash_table. Update dependent calls and types.
29670 * postreload-gcse.c (htab_t expr_table):
29671 Change type to hash_table. Update dependent calls and types.
29672 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
29674 * sese.c (debug_rename_map_1): Make extern.
29675 (htab_t copy_bb_and_scalar_dependences::rename_map):
29676 Change type to hash_table. Update dependent calls and types.
29678 * sese.h (extern debug_rename_map): Move to .c file.
29680 * store-motion.c (htab_t store_motion_mems_table):
29681 Change type to hash_table. Update dependent calls and types.
29683 * trans-mem.c (htab_t tm_new_mem_hash):
29684 Change type to hash_table. Update dependent calls and types.
29686 * tree-browser.c (htab_t TB_up_ht):
29687 Change type to hash_table. Update dependent calls and types.
29689 * tree-cfg.c (htab_t discriminator_per_locus):
29690 Change type to hash_table. Update dependent calls and types.
29692 * tree-complex.c: Include tree-hasher.h
29693 (htab_t complex_variable_components):
29694 Change type to hash_table. Update dependent calls and types.
29696 * tree-eh.c (htab_t finally_tree):
29697 Change type to hash_table. Update dependent calls and types.
29699 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
29700 struct int_tree_hasher.
29701 (extern int_tree_map_eq): Likewise.
29702 (uid_decl_map_hash): Removed.
29703 (extern decl_tree_map_eq): Likewise.
29705 * tree-hasher.h: New.
29706 (struct int_tree_hasher): New.
29707 (typedef int_tree_htab_type): New.
29709 * tree-inline.c: Include gimplify-ctx.h.
29711 * tree-mudflap.c: Include gimplify-ctx.h.
29713 * tree-parloops.c: Include tree-hasher.h.
29714 (htab_t eliminate_local_variables_stmt::decl_address):
29715 Change type to hash_table. Update dependent calls and types.
29716 (htab_t separate_decls_in_region::decl_copies): Likewise.
29718 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
29719 Change type to hash_table. Update dependent calls and types.
29721 * tree-sra.c (candidates):
29722 Change type to hash_table. Update dependent calls and types.
29724 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
29726 (int_tree_map_hash): Likewise.
29728 * tree-ssa-dom.c (htab_t avail_exprs):
29729 Change type to hash_table. Update dependent calls and types.
29731 * tree-ssa-live.c (var_map_base_init::tree_to_index):
29732 Change type to hash_table. Update dependent calls and types.
29734 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
29735 Change type to hash_table. Update dependent calls and types.
29737 * tree-ssa-phiopt.c (seen_ssa_names):
29738 Change type to hash_table. Update dependent calls and types.
29740 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
29741 Change type to hash_table. Update dependent calls and types.
29743 * tree-ssa-uncprop.c (equiv):
29744 Change type to hash_table. Update dependent calls and types.
29746 2013-04-25 Jakub Jelinek <jakub@redhat.com>
29748 PR rtl-optimization/57003
29749 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
29750 call note_stores with kill_clobbered_value callback again after
29751 killing regs_invalidated_by_call.
29753 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29755 * config/aarch64/aarch64-simd.md
29756 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
29757 (aarch64_simd_bsl<mode>): Likewise.
29758 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
29760 2013-04-25 Marek Polacek <polacek@redhat.com>
29762 PR tree-optimization/57066
29763 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
29765 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29767 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
29769 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29771 * config/aarch64/aarch64-builtins.c
29772 (aarch64_fold_builtin): New.
29773 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
29774 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
29775 * config/aarch64/aarch64-simd-builtins.def (abs): New.
29776 * config/aarch64/arm_neon.h
29777 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
29779 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29780 Tejas Belagod <tejas.belagod@arm.com>
29782 * config/aarch64/aarch64-builtins.c
29783 (aarch64_gimple_fold_builtin): New.
29784 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
29785 * config/aarch64/aarch64-simd-builtins.def (addv): New.
29786 * config/aarch64/aarch64-simd.md (addpv4sf): New.
29787 (addvv4sf): Update.
29788 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
29790 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29792 * config/aarch64/aarch64.md
29793 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
29795 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29797 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
29798 (*ngcsi_uxtw): New pattern.
29800 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29801 Julian Brown <julian@codesourcery.com>
29803 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
29804 (TB_DREG): Add T_V4HF.
29805 (v4hf_UP): New macro.
29806 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29807 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29808 Handle initialisation of V4HF. Adjust initialisation of reinterpret
29810 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29811 (arm_vector_mode_supported_p): Handle V4HF.
29812 (arm_mangle_map): Handle V4HFmode.
29813 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
29814 * config/arm/arm_neon_builtins.def: Add entries for
29815 vcvtv4hfv4sf, vcvtv4sfv4hf.
29816 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
29817 (neon_vcvtv4hfv4sf): Likewise.
29818 * config/arm/neon-gen.ml: Handle half-precision floating point
29820 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
29821 * config/arm/arm_neon.h: Regenerate.
29822 * config/arm/neon.ml (type elts): Add F16.
29823 (type vectype): Add T_float16x4, T_floatHF.
29824 (type vecmode): Add V4HF.
29825 (type features): Add Requires_FP_bit feature.
29826 (elt_width): Handle F16.
29827 (elt_class): Likewise.
29828 (elt_of_class_width): Likewise.
29829 (mode_of_elt): Refactor.
29830 (type_for_elt): Handle F16, fix error messages.
29831 (vectype_size): Handle T_float16x4.
29832 (vcvt_sh): New function.
29833 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
29834 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
29835 (string_of_mode): Handle V4HF.
29836 * doc/arm-neon-intrinsics.texi: Regenerate.
29838 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29840 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
29841 format specifier in 'X' case.
29843 2013-04-25 Alan Modra <amodra@gmail.com>
29846 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
29847 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
29848 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
29849 Repeat for many other rotate/shift and mask patterns using subregs.
29850 Name lshiftrt insns.
29851 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
29852 on WORDS_BIG_ENDIAN.
29854 2013-04-25 Alan Modra <amodra@gmail.com>
29856 * config.gcc: Support little-endian powerpc-linux targets.
29857 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
29858 (LINK_OS_LINUX_SPEC): Define.
29859 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
29860 Preserve MASK_LITTLE_ENDIAN.
29861 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
29862 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
29863 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
29864 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
29865 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
29866 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
29867 Correct fp word order for little-endian. Don't shift toc entries
29868 smaller than a word for little-endian.
29869 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
29870 (bswapdi2 splits): Correct low-part subreg for little-endian.
29871 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
29872 low/high where such is correct only for be.
29873 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
29874 little-endian for -mcall-aixdesc.
29876 2013-04-25 Alan Modra <amodra@gmail.com>
29878 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
29879 replace_equiv_address_nv.
29881 2013-04-25 Alan Modra <amodra@gmail.com>
29883 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
29885 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29888 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29889 * rtl.h (struct rtx_def): ...
29891 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29893 PR rtl-optimizations/57046
29894 * lra-constraints (split_reg): Set up lra_risky_transformations_p
29895 for multi-reg splits.
29897 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
29899 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
29901 2013-04-24 Sterling Augustine <saugustine@google.com>
29903 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
29904 (comp_dir_string, debug_str_dwo_section): New.
29905 (DEBUG_STR_DWO_SECTION): Rename to ...
29906 (DEBUG_DWO_STR_SECTION): ... this.
29907 (DEBUG_NORM_STR_SECTION): Delete.
29908 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
29909 (DEBUG_STR_DWO_SECTION_FLAGS): New.
29910 (find_AT_string): Move most logic to ...
29911 (find_AT_string_in_table): ... here. New.
29912 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
29913 add_skeleton_AT_string. Delete logic.
29914 (output_skeleton_debug_sections): Remove call to
29915 add_top_level_skeleton_die_attrs.
29916 (add_comp_dir_attribute): Move logic to comp_dir_string.
29917 (dwarf2out_init): Initialize debug_str_dwo_section.
29918 (output_indirect_string): Call find_string_form.
29919 (output_indirect_strings): Rewrite.
29920 (prune_unused_types): Empty skeleton_debug_str_hash.
29921 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
29922 (dwarf2out_finish): Call output_indirect_strings.
29924 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
29926 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
29928 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29930 * rtl.h (struct rtx_def): Add comment for field jump.
29931 (LRA_SUBREG_P): New macro.
29932 * recog.c (register_operand): Check LRA_SUBREG_P.
29933 * lra.c (lra): Add note at the end of RTL code. Align non-empty
29935 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
29936 (lra_final_code_change): Skip subreg change for operators.
29937 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
29938 if there are no operand changes.
29939 * lra-constraints.c (curr_insn_set): New.
29940 (match_reload): Set LRA_SUBREG_P.
29941 (emit_spill_move): Ditto.
29942 (check_and_process_move): Use curr_insn_set. Process only single
29943 set insns. Don't initialize sec_mem_p and change_p.
29944 (simplify_operand_subreg): Use LRA_SUBREG_P.
29945 (reg_in_class_p): New function.
29946 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
29947 of #ifdef. Add code to remove cycling.
29948 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
29949 non-null disp. Reload inner instead of disp when base and index
29950 are null. Try to put lo_sum into register.
29951 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
29952 (check_and_process_move): Move code for move cost check to
29953 simple_move_p. Remove equiv_substitution.
29954 (simple_move_p): New function.
29955 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
29956 curr_insn_set. Call check_and_process_move only for single set
29957 insns. Use the new function. Move call of check_and_process_move
29958 after operand equiv substitution and address process.
29960 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
29962 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
29963 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
29964 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
29966 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
29968 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
29970 2013-04-24 Marek Polacek <polacek@redhat.com>
29972 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
29973 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
29974 (select_loops_exit_conditions): Likewise.
29975 (number_of_iterations_for_all_loops): Likewise.
29976 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
29977 (scev_analysis): Likewise.
29979 2013-04-02 Catherine Moore <clm@codesourcery.com>
29980 Chao-ying Fu <fu@mips.com>
29982 * config/mips/micromips.md (jraddiusp): New pattern.
29983 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
29984 instruction if possible.
29986 2013-04-24 Alan Modra <amodra@gmail.com>
29988 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
29990 2013-04-24 Julian Brown <julian@codesourcery.com>
29991 Chung-Lin Tang <cltang@codesourcery.com>
29993 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
29994 dependency behavior in enumeration type DIE generation. Add TODO note
29995 to comments about future DW_FORM_sdata/udata re-work of related code.
29997 2013-04-23 Lawrence Crowl <crowl@google.com>
29999 * Makefile.in: Update as needed below.
30001 * hash-table.h (class hash_table):
30002 Correct many methods with parameter types compare_type to the correct
30003 value_type. (Correct code was unlikely to notice the change.)
30004 (hash_table::elements_with_deleted) New.
30005 (class hashtable::iterator): New.
30006 (hashtable::begin()): New.
30007 (hashtable::end()): New.
30008 (FOR_EACH_HASH_TABLE_ELEMENT): New.
30010 * statistics.c (statistics_hashes):
30011 Change type to hash_table. Update dependent calls and types.
30013 * tree-into-ssa.c (var_infos):
30014 Change type to hash_table. Update dependent calls and types.
30016 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
30017 Change type to hash_table. Update dependent calls and types.
30019 * tree-ssa-loop-im.c (struct mem_ref.refs):
30020 Change type to hash_table. Update dependent calls and types.
30022 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
30023 Change type to hash_table. Update dependent calls and types.
30025 * tree-ssa-sccvn.c (vn_tables_s::nary):
30026 Change type to hash_table. Update dependent calls and types.
30027 (vn_tables_s::phis): Likewise.
30028 (vn_tables_s::references): Likewise.
30030 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
30031 (vn_reference_eq): Update parameter and return types.
30033 * tree-ssa-structalias.c (pointer_equiv_class_table):
30034 Change type to hash_table. Update dependent calls and types.
30035 (location_equiv_class_table): Likewise.
30037 * tree-vect-data-refs.c: Consequential changes for making
30038 peeling a hash_table.
30040 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
30041 (destroy_loop_vec_info): Dependent hash_table update.
30043 * tree-vectorizer.h (peeling_htab):
30044 Change type to hash_table. Update dependent calls and types.
30046 2013-04-23 Shiva Chen <shiva0217@gmail.com>
30048 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
30049 to check the register content is equal or not.
30050 * lra-constraints.c (match_reload): Use lra_assign_reg_val
30051 to assign register content record.
30052 * lra-eliminations.c (update_reg_eliminate): Use
30053 lra_update_reg_val_offset to update register content offset.
30054 * lra-int.h (struct lra_reg): Add offset member.
30055 (lra_reg_val_equal_p): New static inline function.
30056 (lra_update_reg_val_offset): New static inline function.
30057 (lra_assign_reg_val): New static inline function.
30058 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
30059 to assign register content record.
30060 (initialize_lra_reg_info_element): Initial offset to zero.
30062 2013-04-23 Catherine Moore <clm@codesourcery.com>
30064 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
30065 operands. Record compression.
30067 2013-04-23 Xinliang David Li <davidxl@google.com>
30069 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
30071 2013-04-23 Richard Biener <rguenther@suse.de>
30073 PR middle-end/57036
30074 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
30075 parameter, only add abnormal goto edges from the copied body
30076 if the call could perform abnormal gotos.
30077 (copy_cfg_body): Adjust.
30079 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
30081 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
30083 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
30085 * coretypes.h (gimple_stmt_iterator): Add struct to make
30088 2013-04-23 Richard Biener <rguenther@suse.de>
30090 PR tree-optimization/57026
30091 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
30092 from SSA names occuring in abnormal PHI nodes.
30094 2013-04-22 Andi Kleen <ak@linux.intel.com>
30096 * lto/lto.c (print_lto_report_1): Fix LTO report names.
30098 2013-04-22 Andi Kleen <ak@linux.intel.com>
30100 * lto/lto.c (print_lto_report_1): Declare early.
30101 (read_cgraph_and_symbols): Call print_lto_report_1 early.
30103 2013-04-22 Andi Kleen <ak@linux.intel.com>
30105 * common.opt (-flto-report-wpa): Add.
30106 * doc/invoke.texi (-flto-report-wpa): Add.
30107 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
30110 2013-04-22 Xinliang David Li <davidxl@google.com>
30112 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
30113 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
30114 * Makefile.in: New dependency
30116 David Daney <ddaney.cavm@gmail.com>
30118 * configure.ac (gcc_cv_as_micromips_support): Use the
30119 --fatal-warnings option.
30120 * configure: Regenerate.
30122 2013-04-22 Marek Polacek <polacek@redhat.com>
30125 * tsan.c (instrument_expr): Don't instrument expression
30126 in case its size is zero.
30128 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
30132 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
30134 * config/alpha/alpha.c (TARGET_LRA_P): New define.
30136 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
30138 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
30139 (gimple_stmt_iterator): New typedef.
30140 * gimple.h (gimple_stmt_iterator): Rename to...
30141 (gimple_stmt_iterator_d): ... This.
30142 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
30143 trees be valid for GIMPLE and GENERIC.
30144 (TARGET_GIMPLE_FOLD_BUILTIN): New.
30145 * gimple-fold.c (gimple_fold_call): Call target hook
30146 gimple_fold_builtin.
30147 * hooks.c (hook_bool_gsiptr_false): New.
30148 * hooks.h (hook_bool_gsiptr_false): New.
30149 * target.def (fold_stmt): New.
30150 * doc/tm.texi: Regenerate.
30152 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
30155 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
30156 a set sp if no stack realignment.
30158 2013-04-22 Nick Clifton <nickc@redhat.com>
30160 * config.gcc (tilegx-linux): Extend extra_objs rather than
30162 (tilepro-linux): Likewise.
30164 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
30166 * config/aarch64/aarch64-builtins.c
30168 (CF0, CF1, CF2, CF3, CF4, CF10): New.
30169 (VAR<1-12>): Add MAP parameter.
30170 (BUILTIN_*): Likewise.
30171 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
30172 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
30173 (aarch64_ushl_n<mode>): Likewise.
30174 (aarch64_sshr_n<mode>): Likewise.
30175 (aarch64_ushr_n<mode>): Likewise.
30176 (aarch64_<maxmin><mode>): Likewise.
30177 (aarch64_sqrt<mode>): Likewise.
30178 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
30179 (vshr<q>_n_*): Likewise.
30181 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
30183 * config/aarch64/aarch64-builtins.c
30184 (aarch64_simd_builtin_type_mode): Handle SF types.
30186 (BUILTIN_GPF): Define.
30187 (aarch64_init_simd_builtins): Handle SF types.
30188 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
30189 (frecps): Likewise.
30190 (frecpx): Likewise.
30191 * config/aarch64/aarch64-simd.md
30192 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
30193 (aarch64_frecpe<mode>): New.
30194 (aarch64_frecps<mode>): Likewise.
30195 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
30196 (v8type): Add frecp<esx>.
30197 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
30198 (aarch64_frecps<mode>): Likewise.
30199 * config/aarch64/iterators.md (FRECP): New.
30200 (frecp_suffix): Likewise.
30201 * config/aarch64/arm_neon.h
30202 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
30204 2013-04-22 Christian Bruel <christian.bruel@st.com>
30207 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
30208 (REG_CLASS_NAMES): Idem.
30209 (REG_CLASS_CONTENTS): Idem.
30210 (REGCLASS_HAS_FP_REG): Idem.
30211 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
30212 (sh_conditional_register_usage): Idem.
30214 2013-04-21 Jeff Law <law@redhat.com>
30216 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
30217 (ssa_forward_propagate_and_combine): Use it.
30219 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
30221 * lra.c: Update the flow chart diagram.
30223 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
30225 PR rtl-optimization/56847
30226 * lra-constraints.c (process_alt_operands): Discourage alternative
30227 with non-matche doffsettable memory constraint fro memory with
30230 2013-04-19 Richard Biener <rguenther@suse.de>
30232 PR tree-optimization/56982
30233 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
30235 * gimplify.c (gimplify_call_expr): Notice special calls.
30236 (gimplify_modify_expr): Likewise.
30237 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
30238 abnormal control flow receivers.
30239 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
30240 in the same way as cfun->has_nonlocal_labels.
30241 (gimple_purge_dead_abnormal_call_edges): Likewise.
30242 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
30243 receivers start a basic-block.
30245 2013-04-19 Richard Biener <rguenther@suse.de>
30247 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
30249 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
30250 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
30251 (SLP_TREE_LOAD_PERMUTATION): Add.
30252 (vect_transform_slp_perm_load): Adjust prototype.
30253 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
30254 (vect_free_slp_instance): Likewise.
30255 (vect_create_new_slp_node): Likewise.
30256 (vect_supported_slp_permutation_p): Remove.
30257 (vect_slp_rearrange_stmts): Adjust.
30258 (vect_supported_load_permutation_p): Likewise. Inline
30259 vect_supported_slp_permutation_p here.
30260 (vect_analyze_slp_instance): Compute load permutations per
30261 slp node instead of per instance.
30262 (vect_get_slp_defs): Adjust.
30263 (vect_transform_slp_perm_load): Likewise.
30264 (vect_schedule_slp_instance): Remove redundant code.
30265 (vect_schedule_slp): Remove hack for PR56270, add it ...
30266 * tree-vect-stmts.c (vectorizable_load): ... here, do not
30267 CSE loads for SLP. Adjust.
30269 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
30271 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
30272 spelling in two comments.
30274 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
30277 * config/arm/arm.c (load_multiple_sequence): Require SP
30278 as base register for loads if SP is in the register list.
30280 2013-04-19 Martin Jambor <mjambor@suse.cz>
30282 PR tree-optimization/56718
30283 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
30284 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
30285 and made public. Adjusted all callers.
30286 (ipa_intraprocedural_devirtualization): New function.
30287 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
30288 (ipa_intraprocedural_devirtualization): Likewise.
30289 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
30291 2013-04-19 Richard Biener <rguenther@suse.de>
30293 PR tree-optimization/57000
30294 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
30296 2013-04-19 Terry Guo <terry.guo@arm.com>
30298 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
30300 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
30301 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
30302 (cortex_m4_fmacs): Use new reservations.
30303 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
30305 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
30307 PR rtl-optimization/56999
30308 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
30310 (lra_coalesce): Remove split_origin_bitmap and related code.
30311 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
30312 ranges if necessary.
30314 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
30316 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
30318 (ix86_expand_call): Remove clobbered_registers array and use
30319 x86_64_ms_sysv_extra_clobbered_registers instead.
30320 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
30322 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
30324 * config/i386/i386.md (*call_rex64_ms_sysv): Use
30325 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
30326 (*call_value_rex64_ms_sysv): Ditto.
30328 2013-04-18 Cary Coutant <ccoutant@google.com>
30330 * dwarf2out.c (output_pubnames): Check die_perennial_p of
30331 parent instead of die_mark.
30333 2013-04-18 Diego Novillo <dnovillo@google.com>
30335 * gimple.c (create_gimple_tmp): New.
30336 (get_expr_type): New.
30337 (build_assign): New.
30338 (build_type_cast): New.
30339 * gimple.h (enum ssa_mode): Define.
30340 (gimple_seq_set_location): New.
30341 * asan.c (build_check_stmt): Change some gimple_build_* calls
30342 to use build_assign and build_type_cast.
30344 2013-04-18 Richard Biener <rguenther@suse.de>
30346 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
30347 handle negative step. Remove redundant checks.
30348 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
30349 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
30350 for negative step and grouped loads fail to vectorize.
30352 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
30354 * emit-rtl.c (reset_insn_used_flags): New function.
30355 (reset_all_used_flags): Use it.
30356 (verify_insn_sharing): New function.
30357 (verify_rtl_sharing): Fix verification for SEQUENCEs.
30359 2013-04-18 Jakub Jelinek <jakub@redhat.com>
30361 PR tree-optimization/56984
30362 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
30363 and (x >> M) >= N don't register any assertion if N << M is the
30366 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
30368 * lower-subreg.c (resolve_simple_move): If called self-recursive,
30369 do not delete_insn insns that have not yet been emitted, only
30370 unlink them with remove_insn.
30371 * df-scan.c (df_insn_delete): Revert r197492.
30373 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
30375 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
30376 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
30378 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
30380 * config/arm/arm.md (movsicc_insn): Convert define_insn into
30381 define_insn_and_split.
30382 (and_scc,ior_scc,negscc): Likewise.
30383 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
30385 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
30387 * config/arm/arm.c (use_return_insn): Return 0 for targets that
30388 can benefit from using a sequence of LDRD instructions in epilogue
30389 instead of a single LDM instruction.
30391 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
30394 * doc/extend.texi: Fix typo.
30396 2013-04-17 Richard Biener <rguenther@suse.de>
30398 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
30399 (vect_build_slp_tree): ... here.
30400 (vect_build_slp_tree_1): Compute which stmts of the SLP group
30401 match. Remove special-casing of mismatched complex loads.
30402 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
30403 re-try the match with swapped commutative operands.
30404 (vect_supported_load_permutation_p): Remove special-casing of
30405 mismatched complex loads.
30406 (vect_analyze_slp_instance): Adjust.
30408 2013-04-17 Richard Biener <rguenther@suse.de>
30410 PR rtl-optimization/56921
30411 * cfgloop.h (struct loop): Add simple_loop_desc member.
30412 (struct niter_desc): Mark with GTY(()).
30413 (simple_loop_desc): Do not use aux field but simple_loop_desc.
30414 * loop-iv.c (get_simple_loop_desc): Likewise.
30415 (free_simple_loop_desc): Likewise.
30418 2013-04-16 Richard Biener <rguenther@suse.de>
30420 PR rtl-optimization/56921
30421 * loop-init.c (pass_rtl_move_loop_invariants): Add
30422 TODO_do_not_ggc_collect to todo_flags_finish.
30423 (pass_rtl_unswitch): Same.
30424 (pass_rtl_unroll_and_peel_loops): Same.
30425 (pass_rtl_doloop): Same.
30427 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
30429 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
30430 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
30431 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
30433 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
30434 * tree-streamer.c (record_common_node): Adjust reference in comment.
30436 2013-04-17 Terry Guo <terry.guo@arm.com>
30438 * config/arm/cortex-m4.md: Add a new bypass.
30440 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30442 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
30444 (*subs_<optab><mode>_multp2): New pattern.
30445 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
30446 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
30448 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30450 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
30451 (*subs_mul_imm_<mode>): New pattern.
30453 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
30456 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
30457 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
30458 (vsx_movti_32bit): Change j->wa to O->wa.
30460 2013-04-16 Richard Biener <rguenther@suse.de>
30462 PR rtl-optimization/56921
30463 * loop-init.c (pass_rtl_move_loop_invariants): Add
30464 TODO_do_not_ggc_collect to todo_flags_finish.
30465 (pass_rtl_unswitch): Same.
30466 (pass_rtl_unroll_and_peel_loops): Same.
30467 (pass_rtl_doloop): Same.
30469 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
30471 * config/arm/arm.c (emit_multi_reg_push): New declaration
30472 for an existing function.
30473 (arm_emit_strd_push): New function.
30474 (arm_expand_prologue): Used here.
30475 (arm_emit_ldrd_pop): New function.
30476 (arm_expand_epilogue): Used here.
30477 (arm_get_frame_offsets): Update condition.
30478 (arm_emit_multi_reg_pop): Add a special case for load of a single
30479 register with writeback.
30481 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
30483 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
30486 2013-04-16 Richard Biener <rguenther@suse.de>
30488 PR tree-optimization/56756
30489 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
30490 (first_mem_ref_loc): New.
30491 (execute_sm): Place the load temporarily before a previous
30492 access instead of in the latch edge to ensure its SSA dependencies
30493 are defined at points dominating the load.
30495 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
30497 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
30498 correct fix by moving header and footer insn to the footer of
30499 the merged basic block. Clear BB_END of the merged-away block.
30501 PR middle-end/43631
30502 * emit-rtl.c (make_note_raw): New function.
30503 (link_insn_into_chain): New static inline function.
30504 (add_insn): Use it.
30505 (add_insn_before, add_insn_after): Factor insn chain linking code...
30506 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
30507 using link_insn_into_chain.
30508 (note_outside_basic_block_p): New helper function for emit_note_after
30509 and emit_note_before.
30510 (emit_note_after): Use nobb variant of add_insn_after if the note
30511 should not be contained in a basic block.
30512 (emit_note_before): Use nobb variant of add_insn_before if the note
30513 should not be contained in a basic block.
30514 (emit_note_copy): Use make_note_raw.
30515 (emit_note): Likewise.
30516 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
30517 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
30518 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
30519 the moved barrier the tail of the basic block it follows.
30520 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
30522 2013-04-15 Jakub Jelinek <jakub@redhat.com>
30524 PR tree-optimization/56962
30525 * gimple-ssa-strength-reduction.c (record_increment): Only set
30526 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
30527 either rhs1 or rhs2 is equal to c->base_expr.
30529 2013-04-15 Richard Biener <rguenther@suse.de>
30531 PR tree-optimization/56933
30532 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
30534 (GROUP_READ_WRITE_DEPENDENCE): Remove.
30535 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
30536 * tree-vect-data-refs.c (vect_analyze_group_access): Move
30537 dependence check ...
30538 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
30540 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
30541 GROUP_READ_WRITE_DEPENDENCE.
30543 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30545 * emit-rtl.c (reset_all_used_flags): New function.
30546 (verify_rtl_sharing): Call reset_all_used_flags before and after
30547 performing the checks.
30549 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30551 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
30552 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
30553 * config/arm/constraints.md (De): New constraint.
30554 * config/arm/neon.md (anddi3_neon): Delete.
30555 (neon_vand<mode>): Expand to standard anddi3 pattern.
30556 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
30557 Move earlier in the file.
30558 (neon_inv_logic_op2): Likewise.
30559 (arm_anddi_operand_neon): New predicate.
30561 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30563 * configure.ac (gcc_cv_ld_as_needed): Set
30564 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
30565 Use -z ignore, -z record on *-*-solaris2*.
30566 (HAVE_LD_AS_NEEDED): Update comment.
30567 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
30568 * configure: Regenerate.
30569 * config.in: Regenerate.
30570 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
30571 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
30572 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
30573 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
30574 equivalents. Fix markup.
30575 * doc/tm.texi: Regenerate.
30577 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
30579 * config/i386/i386.opt: New option mstack-protector-guard=.
30580 * config/i386/i386-opts.h: Add enum stack_protector_guard.
30581 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
30582 TARGET_SSP_TLS_GUARD.
30583 * config/i386/i386.c (ix86_option_override_internal): Set
30584 ix86_stack_protector_guard.
30585 * config/i386/i386.md (stack_protect_set): Enable for
30586 TARGET_SSP_TLS_GUARD only.
30587 (stack_protect_set_<mode>): Ditto.
30588 (stack_protect_test): Ditto.
30589 (stack_protect_test_<mode>): Ditto.
30590 * doc/invoke.texi (i386 Option): Document.
30592 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
30595 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
30596 (S_MODES): Set H_MODE bit.
30597 (SF_MODES): Set only S_MODE and SF_MODE bits.
30598 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
30599 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
30600 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
30601 <MODE_FLOAT>: Likewise.
30603 2013-04-15 Joey Ye <joey.ye@arm.com>
30605 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
30607 2013-04-15 Joey Ye <joey.ye@arm.com>
30609 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
30611 (thumb_far_jump_used_p): Count instruction size and set
30614 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
30616 * reorg.c (fill_simple_delay_slots): Reindent block of code.
30617 * resource.c (mark_target_live_regs): Reformat conditional block.
30619 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
30621 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
30622 notes, they are emitted only just before final.
30623 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
30625 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
30627 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
30628 * cfgrtl.c (delete_insn): Call it here instead.
30629 * lra-spills.c (lra_final_code_change): Use delete_insn.
30630 * haifa-sched.c (sched_remove_insn): Likewise.
30631 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
30632 returning to the nop pool.
30633 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
30634 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
30636 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
30638 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
30639 * doc/tm.texi: Regenerated.
30641 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
30643 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
30646 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
30648 * df-core.c (df_find_def): Compare register numbers.
30649 (df_find_use): Likewise.
30651 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
30654 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
30655 lra_in_progress for return.
30657 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
30659 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
30660 define_insn into define_insn_and_split and emit movsicc patterns.
30662 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
30664 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
30666 2013-04-12 Richard Biener <rguenther@suse.de>
30668 * tree-pass.h (TODO_do_not_ggc_collect): New.
30669 * passes.c (execute_one_ipa_transform_pass): Honor
30670 TODO_do_not_ggc_collect.
30671 (execute_one_pass): Likewise.
30674 2013-04-10 Richard Biener <rguenther@suse.de>
30676 * passes.c (init_optimization_passes): Remove reload pass.
30677 * ira.c (do_reload): Merge into ...
30679 (rest_of_handle_reload): Remove.
30680 (pass_reload): Likewise.
30681 * config/i386/i386.c (ix86_option_override): Refer to ira instead
30682 of reload for vzeroupper pass placement.
30684 2013-04-12 Jakub Jelinek <jakub@redhat.com>
30686 PR tree-optimization/56918
30687 PR tree-optimization/56920
30688 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
30689 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
30690 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
30691 use wide_mul_with_sign method.
30693 2013-04-12 Richard Biener <rguenther@suse.de>
30695 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
30696 not be considered a gimple constant.
30698 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
30700 * fold-const.c (const_binop): Handle vector shifts by a scalar.
30701 (fold_binary_loc): Call const_binop also for mixed vector-scalar
30704 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
30705 Jakub Jelinek <jakub@redhat.com>
30707 * opts.c: Include diagnostic-color.h.
30708 (common_handle_option): Handle OPT_fdiagnostics_color_.
30709 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
30710 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
30711 (diagnostic-color.o): New.
30712 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
30713 (diagnostic_color_rule): New enum.
30714 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
30715 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
30716 the location string.
30717 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
30718 either NULL, or color kind.
30719 * diagnostic-color.c: New file.
30720 * diagnostic-color.h: New file.
30721 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
30723 * doc/invoke.texi (-fdiagnostics-color): Document.
30724 * pretty-print.h (pp_show_color): Define.
30725 (struct pretty_print_info): Add show_color field.
30726 * diagnostic.c: Include diagnostic-color.h.
30727 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
30728 macros. Colorize error:, warning: etc. strings and also the location
30730 (diagnostic_show_locus): Colorize the caret line.
30731 * pretty-print.c: Include diagnostic-color.h.
30732 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
30733 inside of %< %> quotes or quoted through q format modifier.
30735 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30737 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
30739 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30741 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
30742 code in CC_NZ mode.
30743 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
30746 2013-04-11 Marek Polacek <polacek@redhat.com>
30748 PR tree-optimization/48184
30749 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
30751 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
30753 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
30754 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
30755 (skip_simple_arithmetic): Tidy up.
30756 * tree.h (skip_simple_constant_arithmetic): Declare.
30758 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30760 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
30762 2013-04-11 Richard Biener <rguenther@suse.de>
30764 * tree-vect-loop.c (get_initial_def_for_induction): Properly
30765 generate vector constants.
30767 2013-04-11 Richard Biener <rguenther@suse.de>
30769 PR tree-optimization/56878
30770 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
30771 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
30773 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30774 Prefer to align the DR with the most invariant base address.
30776 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30778 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
30781 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
30783 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
30784 floating-point vector comparisons against 0.
30786 2013-04-11 Jakub Jelinek <jakub@redhat.com>
30788 PR tree-optimization/56899
30789 * fold-const.c (extract_muldiv_1): Apply distributive law
30790 only if TYPE_OVERFLOW_WRAPS (ctype).
30792 2013-04-11 Bin Cheng <bin.cheng@arm.com>
30795 * ira-costs.c (scan_one_insn): Check whether the source rtx of
30796 loading has side effect.
30798 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
30800 * config/sparc/sparc.c: Include tree-pass.h.
30801 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
30802 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
30803 head of file. Change return type. Split off gate function.
30804 (sparc_gate_work_around_errata): New function.
30805 (pass_work_around_errata): New pass definition.
30806 (insert_pass_work_around_errata) New pass insert definition to
30807 insert pass_work_around_errata just after delayed-branch scheduling.
30808 (sparc_option_override): Insert the pass.
30809 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
30811 2013-04-10 David S. Miller <davem@davemloft.net>
30813 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
30814 or -mcpu=hypersparc.
30816 * target.def (cstore_mode): New hook.
30817 * target.h: Include insn-codes.h
30818 * targhooks.c: Likewise.
30819 (default_cstore_mode): New function.
30820 * targhooks.h: Declare it.
30821 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
30822 * doc/tm.texi: Rebuild.
30823 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
30824 target hook, rather than inspecting the insn_data.
30825 * config/sparc/sparc.c (sparc_cstore_mode): New function.
30826 (TARGET_CSTORE_MODE): Redefine.
30827 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
30829 * config/sparc/predicates.md (cstore_result_operand): New special
30831 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
30832 Use it for operand 0.
30833 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
30834 (*snesi_special): Likewise.
30835 (*snesi_zero): Likewise.
30836 (*seqsi_zero): Likewise.
30837 (*sltu_insn): Likewise.
30838 (*sgeu_insn): Likewise.
30839 (*seqdi_special): Make operand 0 and comparison operation be of
30841 (*snedi_special): Likewise.
30842 (*snedi_special_vis3): Likewise.
30843 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
30844 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
30845 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
30846 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
30847 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
30848 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
30849 (*sltu_extend_sp64): Likewise.
30850 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
30851 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
30852 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
30853 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
30854 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
30856 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
30858 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
30859 (aarch64_start_file): Use the new function.
30861 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30862 Jason Merrill <jason@redhat.com>
30864 * common.opt: Add -gdwarf.
30865 * opts.c (common_handle_option): Handle it.
30866 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
30868 2013-04-10 Richard Biener <rguenther@suse.de>
30870 * passes.c (execute_todo): Do not call ggc_collect conditional here.
30871 (execute_one_ipa_transform_pass): But unconditionally here.
30872 (execute_one_pass): And here.
30873 (init_optimization_passes): Remove reload pass.
30874 * tree-pass.h (TODO_ggc_collect): Remove.
30875 (pass_reload): Likewise.
30876 * ira.c (do_reload): Merge into ...
30878 (rest_of_handle_reload): Remove.
30879 (pass_reload): Likewise.
30880 * config/i386/i386.c (ix86_option_override): Refer to ira instead
30881 of reload for vzeroupper pass placement.
30882 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
30883 and todo_flags_finish of all passes.
30885 2013-04-10 Richard Biener <rguenther@suse.de>
30887 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
30888 first_const_oprnd field, rename first_def_type to first_op_type.
30889 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
30890 (vect_get_and_check_slp_defs): Always use the type of the
30891 operand. Allow mixed vect_external_def, vect_constant_def types.
30892 (vect_get_constant_vectors): Handle mixed vect_external_def,
30893 vect_constant_def types.
30895 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
30897 PR tree-optimization/55524
30898 * tree-ssa-math-opts.c
30899 (convert_mult_to_fma): Don't use an fms construct
30900 when we don't have an fms operation, but fnma, and it looks
30901 likely that we'll be able to use the latter.
30903 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
30905 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
30907 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
30908 inline fail caused by overwritable functions.
30910 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
30912 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
30913 unnecessary bits in the constant power of two case.
30915 2013-04-10 Richard Biener <rguenther@suse.de>
30917 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
30918 broken code swapping operands.
30919 (vect_build_slp_tree): Do not compute load permutations here.
30920 (vect_analyze_slp_instance): Compute load permutations here,
30921 after building the SLP tree.
30923 2013-04-09 Christian Bruel <christian.bruel@st.com>
30925 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
30926 of next/prev_real_insn.
30928 2013-04-09 Jan Hubicka <jh@suse.cz>
30930 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
30931 Drop aliased parameter.
30932 (function_and_variable_visibility): Do not handle alias pairs.
30933 * cgraph.c (varpool_externally_visible_p): Update prototype.
30934 * varpool.c (varpool_add_new_variable): Update.
30936 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30938 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
30940 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
30942 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
30944 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
30946 2013-04-09 Marek Polacek <polacek@redhat.com>
30948 PR tree-optimization/48762
30949 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
30951 2013-04-09 Richard Biener <rguenther@suse.de>
30953 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
30955 (vect_build_slp_tree): Likewise.
30956 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
30957 calculating the cost of a SLP instance.
30958 (vect_analyze_slp_instance): Use it from here, after building
30961 2013-04-09 Jakub Jelinek <jakub@redhat.com>
30963 PR middle-end/56883
30964 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
30965 expand_omp_for_static_chunk): Use simple_p = true in
30966 force_gimple_operand_gsi calls when assigning to addressable decls.
30968 2013-04-09 Jeff Law <law@redhat.com>
30970 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
30971 when the boolean was created by converting a wider object which
30972 had a boolean range.
30974 2013-04-09 Richard Biener <rguenther@suse.de>
30976 * tree-vectorizer.h (slp_void_p): Remove.
30977 (slp_tree): Typedef before _slp_tree declaration.
30978 (struct _slp_tree): Use a vector of slp_tree as children.
30979 (vect_get_place_in_interleaving_chain): Remove.
30980 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
30982 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
30984 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
30985 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
30986 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
30987 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
30988 Use slp_node instead of slp_void_p and adjust.
30990 2013-04-09 Richard Biener <rguenther@suse.de>
30992 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
30993 work that is not necessary.
30995 2013-04-09 Jakub Jelinek <jakub@redhat.com>
30997 PR tree-optimization/56854
30998 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
30999 forward into clobber stmts if it would change MEM_REF lhs into
31002 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
31004 * tree.c (type_hash_lookup, type_hash_add): Make static.
31005 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
31007 2013-04-09 Richard Biener <rguenther@suse.de>
31009 * tree.h (unsave_expr_now): Remove.
31010 * tree-inline.c (mark_local_for_remap_r): Remove.
31011 (unsave_expr_1): Likewise.
31012 (unsave_r): Likewise.
31013 (unsave_expr_now): Likewise.
31014 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
31015 (propagate_tree_value): Likewise.
31017 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
31019 * doc/rtl.texi (sequence): Rewrite documentation to match the
31020 current use of SEQUENCE rtl objects.
31021 * rtl.def (SEQUENCE): Likewise.
31023 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
31024 Update documentation.
31025 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
31026 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
31028 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
31030 2013-04-08 Teresa Johnson <tejohnson@google.com>
31032 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
31033 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
31035 (estimate_edge_size_and_time): Add comment to suggest using rounding
31037 (estimate_node_size_and_time): Ditto.
31038 (remap_edge_change_prob): Use helper rounding divide methods.
31039 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
31040 (gimple_mod_pow2_value_transform): Ditto.
31041 (gimple_mod_subtract_transform): Ditto.
31042 (gimple_ic_transform): Ditto.
31043 (gimple_stringops_transform): Ditto.
31044 * stmt.c (conditional_probability): Ditto.
31045 (emit_case_dispatch_table): Ditto.
31046 * lto-cgraph.c (merge_profile_summaries): Ditto.
31047 * tree-optimize.c (execute_fixup_cfg): Ditto.
31048 * cfgcleanup.c (try_forward_edges): Ditto.
31049 * cfgloopmanip.c (scale_loop_profile): Ditto.
31051 (duplicate_loop_to_header_edge): Ditto.
31052 (lv_adjust_loop_entry_edge): Ditto.
31053 * tree-vect-loop.c (vect_transform_loop): Ditto.
31054 * profile.c (compute_branch_probabilities): Ditto.
31055 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
31056 * lto-streamer-in.c (input_cfg): Ditto.
31057 * gimple-streamer-in.c (input_bb): Ditto.
31058 * ipa-cp.c (update_profiling_info): Ditto.
31059 (update_specialized_profile): Ditto.
31060 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
31061 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
31063 * sched-rgn.c (compute_dom_prob_ps): Ditto.
31064 (compute_trg_info): Ditto.
31065 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
31066 (purge_dead_edges): Ditto.
31067 * loop-unswitch.c (unswitch_loop): Ditto.
31068 * cgraphclones.c (cgraph_clone_edge): Ditto.
31069 (cgraph_clone_node): Ditto.
31070 * tree-inline.c (copy_bb): Ditto.
31071 (copy_edges_for_bb): Ditto.
31072 (initialize_cfun): Ditto.
31073 (copy_cfg_body): Ditto.
31074 (expand_call_inline): Ditto.
31076 2013-04-08 Kai Tietz <ktietz@redhat.com>
31078 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
31079 TARGET_CYGWIN64 by TARGET_64BIT.
31081 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
31083 * config/epiphany/epiphany.md (GPR_1): New constant.
31084 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
31085 * config/epiphany/epiphany.c (gen_compare_reg):
31086 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
31087 is already in place.
31088 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
31089 Don't require being called during rtl expansion; If y operlaps r0,
31091 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
31092 (epiphany_expand_epilogue): Likewise.
31094 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
31095 Don't use CC_FPmode for ORDERED / UNORDERED.
31096 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
31098 * config/epiphany/constraints.md (CnL): New constraint.
31099 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
31100 * config/epiphany/predicates.md (add_operand): Allow 1024.
31102 * config/epiphany/epiphany.md (logical_op): New code iterator.
31103 (op_mnc): New code attribute.
31104 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
31105 (mov_f+1, mov_f+2): New peephole2 patterns.
31107 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
31108 (cstoresi4): Also allow re-use of zero result when doing a NE
31109 comparison to a non-zero operand.
31110 Use (clobber (scratch)) for first insn if the gpr output is not needed.
31112 * config/epiphany/epiphany.md (<insn_opname>v2si3):
31113 Use gen_addsi3_i / gen_subsi3_i.
31115 2013-04-08 Jakub Jelinek <jakub@redhat.com>
31119 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
31120 contain anything but clobbers, at most one __builtin_stack_restore,
31121 optionally debug stmts and final resx, and if it has at least one
31122 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
31123 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
31124 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
31125 which isn't defaut definition, remove them.
31126 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
31127 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
31128 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
31129 with MEM_REF LHS with SSA_NAME address.
31131 2013-04-08 Jeff Law <law@redhat.com>
31133 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
31135 2013-04-08 Richard Biener <rguenther@suse.de>
31137 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
31139 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
31140 determined vector type.
31141 (vect_analyze_data_refs): Likewise.
31142 (vect_get_new_vect_var): Adjust.
31143 (vect_create_destination_var): Preserve SSA name versions.
31144 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
31145 not dump anything here.
31147 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
31149 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
31150 Add member lr_slot_known.
31151 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
31153 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
31154 Remove code that sets lr_slot_offset according to what a previous
31155 version of epiphany_emit_save_restore used to do.
31156 (epiphany_emit_save_restore): When doing an lr save or restore,
31157 set/verify lr_slot_known and lr_slot_offset.
31159 2013-04-08 Xinyu Qi <xyqi@marvell.com>
31162 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
31165 2013-04-08 Richard Biener <rguenther@suse.de>
31167 * alias.c (find_base_term): Fix thinko in previous change.
31169 2013-04-08 Jakub Jelinek <jakub@redhat.com>
31171 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
31172 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
31173 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
31174 if possible to compute val.
31175 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
31176 For QImode integers don't require anything about precision. Use
31177 const_with_all_bytes_same to find out if the constant doesn't have
31178 repeated bytes in it.
31180 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31182 * config/s390/s390.c (s390_expand_insv): Only accept insertions
31185 2013-04-08 Marek Polacek <polacek@redhat.com>
31187 PR rtl-optimization/48182
31188 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
31191 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31194 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
31195 nuses, make sure we have a label.
31197 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31200 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
31201 (rs6000_emit_swdiv_low_precision): Remove.
31202 (rs6000_emit_swdiv): Rewrite to handle between one and four
31203 iterations of Newton-Raphson generally; modify required number of
31204 iterations for some cases.
31205 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
31207 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
31209 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
31210 set-but-unused variable.
31212 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
31213 basic blocks of released function bodies garbage-collectable.
31215 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
31216 (struct rtl_opt_pass): Add TODO_df_finish.
31218 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
31220 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31222 * config/arm/constraints.md (q): New constraint.
31223 * config/arm/ldrdstrd.md: New file.
31224 * config/arm/arm.md (ldrdstrd.md) New include.
31225 (arm_movdi): Use "q" instead of "r" constraint
31226 for double-word memory access.
31227 (movdf_soft_insn): Likewise.
31228 * config/arm/vfp.md (movdi_vfp): Likewise.
31229 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
31230 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
31231 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
31232 (mem_ok_for_ldrd_strd): Likewise.
31233 (output_move_double): Update assertion.
31235 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31237 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
31239 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31241 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
31242 define_insn_and_split.
31243 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
31245 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31247 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
31248 define_insn_and_split.
31249 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
31250 (shiftsi3_compare): New pattern.
31251 (rrx): New pattern.
31252 * config/arm/unspecs.md (UNSPEC_RRX): New.
31254 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31256 * config/arm/arm.md (negdi_extendsidi): New pattern.
31257 (negdi_zero_extendsidi): Likewise.
31259 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31261 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
31262 define_insn_and_split.
31263 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
31264 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
31266 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31268 * config/arm/arm.md (arm_subdi3): Convert define_insn into
31269 define_insn_and_split.
31270 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
31271 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
31273 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31275 * config/arm/arm.md (subsi3_carryin): New pattern.
31276 (subsi3_carryin_const): Likewise.
31277 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
31278 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
31280 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31282 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
31284 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
31286 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
31287 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
31289 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31291 * config/arm/arm.c (arm_expand_builtin): Change fcode
31292 type to unsigned int.
31294 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31296 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
31298 2013-04-04 Ian Lance Taylor <iant@google.com>
31300 * doc/standards.texi (Standards): The Go frontend supports the Go 1
31303 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
31305 PR middle-end/56729
31306 * df-scan.c (df_insn_delete): Disable failing assert.
31308 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31310 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
31311 New function prototype.
31312 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
31313 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
31314 (arm_builtin_vectorized_function): New function.
31316 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31318 * config/arm/arm_neon_builtins.def: New file.
31319 * config/arm/arm.c (neon_builtin_data): Move contents to
31320 arm_neon_builtins.def.
31321 (enum arm_builtins): Include neon builtin definitions.
31322 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
31323 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
31325 2013-04-04 Marek Polacek <polacek@redhat.com>
31327 PR tree-optimization/48186
31328 * predict.c (maybe_hot_frequency_p): Return false if
31329 HOT_BB_FREQUENCY_FRACTION is 0.
31330 (cgraph_maybe_hot_edge_p): Likewise.
31332 2013-04-04 Richard Biener <rguenther@suse.de>
31334 PR tree-optimization/56826
31335 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
31338 2013-04-04 Richard Biener <rguenther@suse.de>
31340 PR tree-optimization/56213
31341 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
31342 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
31344 2013-04-04 Richard Biener <rguenther@suse.de>
31346 PR tree-optimization/56837
31347 * tree-loop-distribution.c (classify_partition): For non-zero
31348 values require that the value has the same precision as its
31349 mode to be useful as memset value.
31351 2013-04-03 Nick Clifton <nickc@redhat.com>
31353 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
31354 (fmssf4): Use fmsf.s on E3V5 architectures.
31355 (fnmasf4): Use fnmaf.s on E3V5 architectures.
31356 (fnmssf4): Use fnmsf.s on E3V5 architectures.
31358 2013-04-03 Jeff Law <law@redhat.com>
31360 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
31361 (lra-eliminations.o): Likewise.
31363 2013-04-03 Teresa Johnson <tejohnson@google.com>
31365 * gcov-io.c (compute_working_sets): Moved most of body of old
31366 compute_working_sets here from profile.c.
31367 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
31368 (gcov_working_set_t): Moved typedef here from basic-block.h
31369 (compute_working_set): Declare.
31370 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
31371 (get_working_sets): Renamed from compute_working_set,
31372 replace most of body with call to new compute_working_sets.
31373 (get_exec_counts): Replace call to compute_working_sets
31374 to get_working_sets.
31375 * profile.h (get_working_sets): Renamed from compute_working_set.
31376 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
31377 to get_working_sets.
31378 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
31379 * gcov-dump.c (dump_working_sets): New function.
31381 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
31383 * hwint.c (sext_hwi, zext_hwi): New functions.
31384 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
31385 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
31386 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
31387 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
31388 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
31389 (sext_hwi, zext_hwi): New functions.
31391 2013-04-03 Jeff Law <law@redhat.com>
31393 PR tree-optimization/56799
31394 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
31395 back test for widening conversion erroneously dropped in prior change.
31397 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31400 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
31401 instead of next_real_insn.
31403 2013-04-03 Marek Polacek <polacek@redhat.com>
31406 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
31408 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31411 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
31413 (thumb1_output_casesi): Likewise.
31414 (thumb2_output_casesi): Likewise.
31416 2013-04-03 Richard Biener <rguenther@suse.de>
31418 PR tree-optimization/56817
31419 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
31421 (tree_unroll_loops_completely_1): ... new function to manually
31422 walk the loop tree, properly defering outer loops of unrolled
31423 loops to later iterations.
31425 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
31427 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
31428 (vectorizable_load): Likewise.
31429 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
31430 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
31432 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
31434 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
31437 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31439 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
31441 2013-04-03 Bin Cheng <bin.cheng@arm.com>
31443 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
31445 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
31447 PR tree-optimization/56790
31448 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
31451 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
31453 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
31455 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
31456 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
31459 2013-04-03 Jakub Jelinek <jakub@redhat.com>
31462 * tree.h (force_folding_builtin_constant_p): New decl.
31463 * builtins.c (force_folding_builtin_constant_p): New variable.
31464 (fold_builtin_constant_p): Fold immediately also if
31465 force_folding_builtin_constant_p.
31467 2013-04-03 Richard Biener <rguenther@suse.de>
31469 PR tree-optimization/56812
31470 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
31471 DRs of the same interleaving chain are independent.
31473 2013-04-02 Jason Merrill <jason@redhat.com>
31475 * gdbinit.in (pbb): Use debug fn.
31477 2013-04-02 Lawrence Crowl <crowl@google.com>
31479 * sese.h (struct ivtype_map_elt_s): Remove unused.
31480 (extern debug_ivtype_map): Remove unused.
31481 (extern eq_ivtype_map_elts): Remove unused.
31482 * sese.c (debug_ivtype_map): Removed unused.
31483 (debug_ivtype_map_1): Removed unused.
31484 (debug_ivtype_elt): Remove unused.
31485 (eq_ivtype_map_elts): Remove unused.
31487 2013-04-02 Kai Tietz <ktietz@redhat.com>
31490 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
31491 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
31492 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
31494 (legitimize_pe_coff_symbol): Likewise.
31495 (is_imported_p): New helper-function.
31496 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
31497 for Windows x64 targets.
31498 (ix86_expand_prologue): Optimize for pe-coff targets.
31499 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
31500 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
31501 medium/large code-model.
31502 (legitimize_pic_address): Likewise.
31503 (legitimize_tls_address): Likewise.
31504 (ix86_expand_call): Likewise.
31505 (x86_output_mi_thunk): Likewise.
31506 (get_dllimport_decl): Add new beimport argument.
31507 (construct_plt_address): Don't assert for x64 pe-coff targets.
31508 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
31510 (SYMBOL_FLAG_STUBVAR): New macro.
31511 (SYMBOL_REF_STUBVAR_P): Likewise.
31512 * config/i386/winnt.c (stub_list): New structure.
31513 (stub_head): New local variable.
31514 (i386_pe_record_stub): New function.
31515 (i386_pe_file_end): Emit refptr-stubs.
31517 2013-04-02 Jakub Jelinek <jakub@redhat.com>
31519 PR rtl-optimization/56745
31520 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
31521 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
31524 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
31525 and both of them are MEM_REFs, just compare first argument for
31526 equality and attempt to deal even with differing offsets.
31529 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
31530 of gimple_clobber_p to be MEM_REF.
31531 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
31532 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
31533 after gimplification.
31534 * asan.c (get_mem_ref_of_assignment): Don't instrument
31535 gimple_clobber_p stmts.
31536 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
31537 gimple_clobber_p stmt if they have MEM_REF lhs and
31538 are dead because of another gimple_clobber_p stmt.
31539 * tree-ssa-live.c (clear_unused_block_pointer): Treat
31540 gimple_clobber_p stmts like debug stmts.
31541 (remove_unused_locals): Remove clobbers with MEM_REF lhs
31542 that refer to unused VAR_DECLs or uninitialized values.
31543 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
31544 gimple_clobber_p stmts if they refer to removed parameters.
31545 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
31548 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
31550 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
31551 using SWI48 mode attribute.
31553 2013-04-02 Wei Mi <wmi@google.com>
31555 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
31556 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
31557 *<rotate_insn><mode>3_mask in i386.md.
31559 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
31561 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
31563 2013-04-02 Richard Biener <rguenther@suse.de>
31565 PR tree-optimization/56778
31566 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
31567 Runtime alias tests are not supported for gather loads.
31568 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
31569 stmts referenced from SSA operands before updating SSA form.
31571 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
31572 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31574 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
31575 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
31576 * config/arm/cortex-a53.md: New file.
31577 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
31578 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
31579 * config/arm/arm.c (arm_issue_rate): Likewise.
31580 * config/arm/arm-tune.md: Regenerate
31581 * config/arm/arm-tables.opt: Regenerate.
31582 * config/arm/arm-cores.def: Add cortex-a53.
31584 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
31586 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
31589 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
31591 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
31592 scalar load/store operations using B/H registers.
31593 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
31595 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
31597 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
31599 * config/aarch64/aarch64.c
31600 (aarch64_simd_scalar_immediate_valid_for_move): New.
31601 * config/aarch64/aarch64-protos.h
31602 (aarch64_simd_scalar_immediate_valid_for_move): New.
31603 * config/aarch64/constraints.md (Dh, Dq): New.
31604 * config/aarch64/iterators.md (hq): New.
31606 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
31608 * reorg.c (get_branch_condition): Deal with conditional returns.
31609 (fill_simple_delay_slots): Remove dead code dealing with jumps.
31611 2013-04-01 Wei Mi <wmi@google.com>
31613 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
31614 Truncate operand 2 using %b asm operand modifier.
31615 (*<shift_insn><mode>3_mask): Ditto.
31616 (*<rotate_insn><mode>3_mask): Ditto.
31618 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
31620 PR middle-end/56798
31621 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
31623 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
31625 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
31627 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
31629 2013-03-30 Lawrence Crowl <crowl@google.com>
31631 * dse.c (clear_alias_sets): Remove never set.
31632 (disqualified_clear_alias_sets): Remove never set.
31633 (clear_alias_mode_pool): Remove never set.
31634 (dse_step0): Remove condition that is never true.
31635 (canon_address): Remove condition that is never true.
31636 (dse_step7): Remove condition that is never true.
31637 (rest_of_handle_dse): Remove condition that is never true.
31638 (rest_of_handle_dse::did_global): Remove never read from above.
31639 (dse_step2_spill): Remove never called from above.
31640 (dse_step5_spill): Remove never called from above.
31642 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
31644 * doc/md.texi (Standard Names) <casesi>: Update documentation for
31645 JUMP_TABLE_DATA changes.
31646 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
31647 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
31648 (Insns) <jump_table_data>: New entry.
31649 * doc/tm.texi: Regenerate.
31651 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
31653 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
31654 for table jump at the end of a basic block using tablejump_p.
31655 * targhooks.c (default_invalid_within_doloop): Likewise.
31656 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
31657 target hook implementation that is identical to the default hook.
31658 (rs6000_invalid_within_doloop): Remove.
31660 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
31661 unused variable from tablejump_p call.
31663 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
31664 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
31665 (INSN_DELETED_P): Likewise.
31666 (emit_jump_table_data): New prototype.
31667 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
31668 after 4th as unused.
31669 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
31670 * sched-vis.c (print_insn): Likewise.
31671 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
31672 insn for compatibility with back ends that use next_active_insn to
31673 identify jump table data.
31674 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
31675 (remove_insn): Likewise.
31676 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
31678 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
31679 (emit_jump_table_data): New function.
31681 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
31682 basic block, a JUMP_TABLE_DATA never is.
31683 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
31684 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
31685 off from code handling real insns.
31686 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
31687 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
31688 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
31689 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
31690 is not a NONDEBUG_INSN_P.
31691 * ira-costs.c (scan_one_insn): Likewise.
31692 * jump.c (mark_all_labels): Likewise.
31693 (mark_jump_label_1): Likewise.
31694 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
31695 * lra.c (get_insn_freq): Expect all insns reaching here to be in
31697 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
31698 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
31699 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
31700 JUMP_TABLE_DATA_P insns.
31701 (calculate_elim_costs_all_insns): Likewise.
31702 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
31703 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
31704 (delete_output_reload): Code style fixups.
31705 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
31706 insn flags on this non-insn.
31707 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
31708 as scheduling barriers, for pre-change compatibility.
31709 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
31710 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
31712 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
31713 redundant JUMP_TABLE_DATA_P test.
31714 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
31715 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
31716 (frv_for_each_packet): Likewise.
31717 * config/i386/i386.c (min_insn_size): Likewise.
31718 (ix86_avoid_jump_mispredicts): Likewise.
31719 * config/m32r/m32r.c (m32r_is_insn): Likewise.
31720 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
31721 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
31722 (mips16_insn_length): Robustify.
31723 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
31724 (mips16_split_long_branches): Likewise.
31725 * config/pa/pa.c (pa_combine_instructions): Likewise.
31726 * config/rs6000/rs6000.c (get_next_active_insn): Treat
31727 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
31728 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
31729 as contributing to pool range lengths.
31730 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
31731 Remove redundant JUMP_TABLE_DATA_P test.
31732 (sh_loop_align): Likewise.
31733 (split_branches): Likewise.
31734 (sh_insn_length_adjustment): Likewise.
31735 * config/spu/spu.c (get_branch_target): Likewise.
31737 2013-03-29 Jan Hubicka <jh@suse.cz>
31739 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
31740 gcov streaming; stream hot bb threshold to ltrans.
31741 * predict.c (get_hot_bb_threshold): Break out from ....
31742 (maybe_hot_count_p): ... here.
31743 (set_hot_bb_threshold): New function.
31744 * lto-section-in.c (lto_section_name): Add profile.
31745 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
31746 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
31747 and data-streamer.h
31748 (histogram_entry): New structure.
31749 (histogram, histogram_pool): New global vars.
31750 (histogram_hash): New structure.
31751 (histogram_hash::hash): New method.
31752 (histogram_hash::equal): Likewise.
31753 (account_time_size): New function.
31754 (cmp_counts): New function.
31755 (dump_histogram): New function.
31756 (ipa_profile_generate_summary): New function.
31757 (ipa_profile_write_summary): New function.
31758 (ipa_profile_read_summary): New function.
31759 (ipa_profile): Decide on threshold.
31760 (pass_ipa_profile): Add ipa_profile_write_summary and
31761 ipa_profile_read_summary.
31762 * Makefile.in (ipa.o): Update dependencies.
31763 * lto-streamer.h (LTO_section_ipa_profile): New section.
31765 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
31767 * tree.h (VAR_P): New.
31769 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
31772 * doc/invoke.texi ([-fwhole-program]): Fix typo.
31774 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
31776 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
31777 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31778 (control_flow_insn_p): Likewise.
31779 * cfgrtl.c (duplicate_insn_chain): Likewise.
31780 * final.c (get_attr_length_1): Likewise.
31781 (shorten_branches): Likewise.
31782 (final_scan_insn): Likewise.
31783 * function.c (instantiate_virtual_regs): Likewise.
31784 * gcse.c (insert_insn_end_basic_block): Likewise.
31785 * ira-costs.c (scan_one_insn): Likewise.
31786 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
31787 * lra.c (check_rtl): Likewise.
31788 * reload1.c (elimination_costs_in_insn): Likewise.
31789 * reorg.c (follow_jumps): Likewise.
31791 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
31792 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31793 (thumb_far_jump_used_p): Likewise.
31794 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
31795 (workaround_speculation): Likewise.
31796 (add_sched_insns_for_speculation): Likewise.
31797 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
31798 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
31799 (frv_for_each_packet): Likewise.
31800 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
31801 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
31802 (final_emit_insn_group_barriers): Likewise.
31803 * config/m32r/m32r.c (m32r_is_insn): Likewise.
31804 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
31805 (mips16_insn_length): Likewise.
31806 * config/pa/pa.c (pa_reorg): Likewise.
31807 (pa_combine_instructions): Likewise.
31808 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
31809 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
31810 (sh_reorg): Likewise.
31811 (split_branches): Likewise.
31812 * config/spu/spu.c (get_branch_target): Likewise.
31814 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
31817 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
31819 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
31820 Fix declaration name.
31822 2013-03-28 Lawrence Crowl <crowl@google.com>
31824 * graphds.h (struct graph.indicies): Remove unused.
31825 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
31826 (SCOP_ORIGINAL_PDDRS): Remove unused.
31827 * sese.h (extern insert_loop_close_phis): Removed unused.
31828 (extern insert_guard_phis): Removed unused.
31829 (extern ivtype_map_elt_info): Removed unused.
31830 (new_ivtype_map_elt): Removed unused.
31831 * sese.c (ivtype_map_elt_info): Removed unused.
31833 2013-03-28 Lawrence Crowl <crowl@google.com>
31835 * Makefile.in: Add several missing include dependences.
31837 (test-dump.o): New. This object is not added to any executable,
31838 but is present for ad-hoc testing.
31840 (debug (const bitmap_head_def &)): New.
31841 (debug (const bitmap_head_def *)): New.
31843 (extern debug (const bitmap_head_def &)): New.
31844 (extern debug (const bitmap_head_def *)): New.
31846 (debug (edge_def &)): New.
31847 (debug (edge_def *)): New.
31849 (debug (basic_block_def &)): New.
31850 (debug (basic_block_def *)): New.
31852 (dump_node (const_tree, int, FILE *)): Correct source file.
31854 (debug (die_struct &)): New.
31855 (debug (die_struct *)): New.
31857 (extern debug (die_struct &)): New.
31858 (extern debug (die_struct *)): New.
31859 * gimple-pretty-print.c
31860 (debug (gimple_statement_d &)): New.
31861 (debug (gimple_statement_d *)): New.
31862 * gimple-pretty-print.h
31863 (extern debug (gimple_statement_d &)): New.
31864 (extern debug (gimple_statement_d *)): New.
31866 (debug (ira_allocno_copy &)): New.
31867 (debug (ira_allocno_copy *)): New.
31868 (debug (ira_allocno &)): New.
31869 (debug (ira_allocno *)): New.
31871 (extern debug (ira_allocno_copy &)): New.
31872 (extern debug (ira_allocno_copy *)): New.
31873 (extern debug (ira_allocno &)): New.
31874 (extern debug (ira_allocno *)): New.
31876 (debug (live_range &)): New.
31877 (debug (live_range *)): New.
31879 (debug (lra_live_range &)): New.
31880 (debug (lra_live_range *)): New.
31882 (debug (lra_live_range &)): New.
31883 (debug (lra_live_range *)): New.
31885 (debug (omega_pb_d &)): New.
31886 (debug (omega_pb_d *)): New.
31888 (extern debug (omega_pb_d &)): New.
31889 (extern debug (omega_pb_d *)): New.
31891 (debug (const rtx_def &)): New.
31892 (debug (const rtx_def *)): New.
31894 (debug_tree (tree): Move within file.
31895 (debug_raw (const tree_node &)): New.
31896 (debug_raw (const tree_node *)): New.
31897 (dump_tree_via_hooks (const tree_node *, int)): New.
31898 (debug (const tree_node &)): New.
31899 (debug (const tree_node *)): New.
31900 (debug_verbose (const tree_node &)): New.
31901 (debug_verbose (const tree_node *)): New.
31902 (debug_head (const tree_node &)): New.
31903 (debug_head (const tree_node *)): New.
31904 (debug_body (const tree_node &)): New.
31905 (debug_body (const tree_node *)): New.
31906 (debug_vec_tree (tree): Move and reimplement in terms of dump.
31907 (debug (vec<tree, va_gc> &)): New.
31908 (debug (vec<tree, va_gc> *)): New.
31910 (extern debug (const rtx_def &)): New.
31911 (extern debug (const rtx_def *)): New.
31913 (debug_raw (simple_bitmap_def &)): New.
31914 (debug_raw (simple_bitmap_def *)): New.
31915 (debug (simple_bitmap_def &)): New.
31916 (debug (simple_bitmap_def *)): New.
31918 (extern debug (simple_bitmap_def &)): New.
31919 (extern debug (simple_bitmap_def *)): New.
31920 (extern debug_raw (simple_bitmap_def &)): New.
31921 (extern debug_raw (simple_bitmap_def *)): New.
31923 (debug (vinsn_def &)): New.
31924 (debug (vinsn_def *)): New.
31925 (debug_verbose (vinsn_def &)): New.
31926 (debug_verbose (vinsn_def *)): New.
31927 (debug (expr_def &)): New.
31928 (debug (expr_def *)): New.
31929 (debug_verbose (expr_def &)): New.
31930 (debug_verbose (expr_def *)): New.
31931 (debug (vec<rtx> &)): New.
31932 (debug (vec<rtx> *)): New.
31934 (extern debug (vinsn_def &)): New.
31935 (extern debug (vinsn_def *)): New.
31936 (extern debug_verbose (vinsn_def &)): New.
31937 (extern debug_verbose (vinsn_def *)): New.
31938 (extern debug (expr_def &)): New.
31939 (extern debug (expr_def *)): New.
31940 (extern debug_verbose (expr_def &)): New.
31941 (extern debug_verbose (expr_def *)): New.
31942 (extern debug (vec<rtx> &)): New.
31943 (extern debug (vec<rtx> *)): New.
31945 (_list_iter_cond_expr): Make inline instead of static.
31947 (debug (sreal &)): New.
31948 (debug (sreal *)): New.
31950 (extern debug (sreal &)): New.
31951 (extern debug (sreal *)): New.
31953 (extern debug_raw (const tree_node &)): New.
31954 (extern debug_raw (const tree_node *)): New.
31955 (extern debug (const tree_node &)): New.
31956 (extern debug (const tree_node *)): New.
31957 (extern debug_verbose (const tree_node &)): New.
31958 (extern debug_verbose (const tree_node *)): New.
31959 (extern debug_head (const tree_node &)): New.
31960 (extern debug_head (const tree_node *)): New.
31961 (extern debug_body (const tree_node &)): New.
31962 (extern debug_body (const tree_node *)): New.
31963 (extern debug (vec<tree, va_gc> &)): New.
31964 (extern debug (vec<tree, va_gc> *)): New.
31966 (debug (struct loop &)): New.
31967 (debug (struct loop *)): New.
31968 (debug_verbose (struct loop &)): New.
31969 (debug_verbose (struct loop *)): New.
31970 * tree-dump.c: Add header dependence.
31972 (extern debug (struct loop &)): New.
31973 (extern debug (struct loop *)): New.
31974 (extern debug_verbose (struct loop &)): New.
31975 (extern debug_verbose (struct loop *)): New.
31977 (debug (data_reference &)): New.
31978 (debug (data_reference *)): New.
31979 (debug (vec<data_reference_p> &)): New.
31980 (debug (vec<data_reference_p> *)): New.
31981 (debug (vec<ddr_p> &)): New.
31982 (debug (vec<ddr_p> *)): New.
31984 (extern debug (data_reference &)): New.
31985 (extern debug (data_reference *)): New.
31986 (extern debug (vec<data_reference_p> &)): New.
31987 (extern debug (vec<data_reference_p> *)): New.
31988 (extern debug (vec<ddr_p> &)): New.
31989 (extern debug (vec<ddr_p> *)): New.
31991 (debug (pt_solution &)): New.
31992 (debug (pt_solution *)): New.
31994 (extern debug (pt_solution &)): New.
31995 (extern debug (pt_solution *)): New.
31997 (debug (_var_map &)): New.
31998 (debug (_var_map *)): New.
31999 (debug (tree_live_info_d &)): New.
32000 (debug (tree_live_info_d *)): New.
32002 (extern debug (_var_map &)): New.
32003 (extern debug (_var_map *)): New.
32004 (extern debug (tree_live_info_d &)): New.
32005 (extern debug (tree_live_info_d *)): New.
32007 2013-03-28 Jan Hubicka <jh@suse.cz>
32009 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
32011 2013-03-28 Ian Bolton <ian.bolton@arm.com>
32013 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
32014 record only when desired or required.
32016 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
32018 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
32019 *vec_extractv2di_1_rex64. Use x64 isa attribute.
32021 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32023 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
32024 (*andsi3_compare0_uxtw): New pattern.
32025 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
32026 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
32028 2013-03-28 Jan Hubicka <jh@suse.cz>
32030 * data-streamer-in.c (streamer_read_gcov_count): New function.
32031 * gimple-streamer-out.c: Include value-prof.h.
32032 (output_gimple_stmt): Output histogram.
32033 (output_bb): Use streamer_write_gcov_count.
32034 * value-prof.c: Include data-streamer.h
32035 (dump_histogram_value): Add HIST_TYPE_MAX.
32036 (stream_out_histogram_value): New function.
32037 (stream_in_histogram_value): New function.
32038 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
32039 (stream_out_histogram_value, stream_in_histogram_value): Declare.
32040 * data-streamer-out.c (streamer_write_gcov_count): New function.
32041 (streamer_write_gcov_count_stream): New function.
32042 * lto-cgraph.c (lto_output_edge): Update counter streaming.
32043 (lto_output_node): Likewise.
32044 (input_node, input_edge): Likewise.
32045 * lto-streamer-out.c (output_cfg): Update streaming.
32046 * lto-streamer-in.c (input_cfg): Likewise.
32047 * data-streamer.h (streamer_write_gcov_count,
32048 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
32049 * gimple-streamer-in.c: Include value-prof.h
32050 (input_gimple_stmt): Input histograms.
32051 (input_bb): Update profile streaming.
32053 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
32055 * genmodes.c (emit_max_int): New function.
32056 (emit_insn_modes_h): Added call to emit_max_function.
32057 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
32059 * machmode.def: Fixed comment.
32061 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
32063 * combine.c (try_combine): Removed useless assert.
32064 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
32066 2013-03-28 Marek Polacek <polacek@redhat.com>
32067 Richard Biener <rguenther@suse.de>
32069 PR tree-optimization/56695
32070 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
32071 build signed result of a vector comparison.
32072 * tree-cfg.c (verify_gimple_comparison): Check that a result
32073 of a vector comparison has signed type.
32075 2013-03-28 Richard Biener <rguenther@suse.de>
32077 PR tree-optimization/37021
32078 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
32079 do not restrict gaps between groups.
32080 * tree-vect-stmts.c (vectorizable_load): Properly account for
32081 a gap between groups.
32083 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
32085 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
32086 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
32089 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
32091 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
32092 * doc/extend.texi (Named Address Spaces): Ditto.
32093 (Variable Attributes): Ditto.
32095 2013-03-27 Kai Tietz <ktietz@redhat.com>
32097 * config.build: Add support for cygwin x64 target.
32098 * config.gcc: Likewise.
32099 * config.host: Likewise.
32100 * configure.ac: Likewise
32101 * configure: Regenerated.
32103 2013-03-27 Kai Tietz <ktietz@redhat.com>
32105 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
32106 * config/i386/t-cygwin-w64: New file.
32107 * config/i386/cygwin-w64.h: New file.
32108 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
32109 and add support for x64-cygwin target.
32110 (CPP_SPEC): Likewise.
32111 (CXX_WRAP_SPEC_LIST): Undefine before define.
32112 (LIBGCJ_SONAME): Use 15 as version.
32114 2013-03-27 Richard Biener <rguenther@suse.de>
32116 PR tree-optimization/56716
32117 * tree-ssa-structalias.c (perform_var_substitution): Adjust
32118 dumping for ref nodes.
32120 2013-03-27 Martin Jambor <mjambor@suse.cz>
32122 PR tree-optimization/55334
32123 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
32124 restricted pointers to arrays.
32126 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
32128 * Makefile.in (.SUFFIXES): Add .cc.
32129 (.c.o): Apply same recipe for implicit rule .cc.o.
32131 2013-03-27 Richard Biener <rguenther@suse.de>
32133 PR tree-optimization/37021
32134 * tree-vect-data-refs.c (vect_check_strided_load): Allow
32135 REALPART/IMAGPART_EXPRs around the supported refs.
32136 * tree-ssa-structalias.c (find_func_aliases): Assume that
32137 floating-point values are not used to transfer pointers.
32139 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
32141 * target.def (TARGET_HAS_IFUNC_P): New target hook.
32142 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
32143 * doc/tm.texi: Regenerate.
32144 * targhooks.h (default_has_ifunc_p): New.
32145 * targhooks.c (default_has_ifunc_p): Ditto.
32146 * config/linux-protos.h: New file.
32147 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
32148 hook for linux which disables support of indirect functions in android.
32149 * config/linux-android.c: New file.
32150 * config/t-linux-android.c: Ditto.
32151 * config.gcc: Added new object file linux-android.o.
32152 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
32153 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
32154 * varasm.c (do_assemble_alias): Likewise.
32155 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
32156 doesn't support indirect functions.
32157 * configure: Regenerate.
32159 2013-03-27 Bin Cheng <bin.cheng@arm.com>
32162 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
32163 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
32166 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32168 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
32170 2013-03-27 Terry Guo <terry.guo@arm.com>
32172 * config/arm/arm-cores.def: Added core cortex-r7.
32173 * config/arm/arm-tune.md: Regenerated.
32174 * config/arm/arm-tables.opt: Regenerated.
32175 * doc/invoke.texi: Added entry for core cortex-r7.
32177 2013-03-27 Walter Lee <walt@tilera.com>
32179 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
32180 double-decrement of next_scratch_regno.
32182 2013-03-27 Walter Lee <walt@tilera.com>
32184 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
32186 (insn_v1mulus): Ditto.
32187 (insn_v2muls): Ditto.
32189 2013-03-27 Walter Lee <walt@tilera.com>
32191 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
32192 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
32194 2013-03-27 Walter Lee <walt@tilera.com>
32196 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
32197 (*sibcall_value): Ditto.
32199 2013-03-27 Walter Lee <walt@tilera.com>
32201 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
32202 (insn_mnz_v8qi): ... this ...
32203 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
32205 (insn_v<n>mnz): Replaced by ...
32206 (insn_v1mnz): ... this ...
32207 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
32209 (insn_mz_<mode>): Replaced by ...
32210 (insn_mz_v8qi): ... this ...
32211 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
32213 (insn_v<n>mz): Replaced by ...
32214 (insn_v1mz): ... this ...
32215 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
32218 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
32220 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
32222 2013-03-26 Roland McGrath <mcgrathr@google.com>
32224 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
32225 than fprintf with a non-constant, non-format string.
32227 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
32229 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
32230 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
32231 operand 0 predicate.
32232 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
32233 attribute. Use general_x64nomem_operand as operand 1 predicate.
32234 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
32235 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
32236 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
32237 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
32238 (mov<mode>_insv_1): Remove expander. Merge insn with
32239 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
32240 Use general_x64nomem_operand as operand 1 predicate.
32241 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
32242 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
32243 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
32244 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
32245 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
32246 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
32247 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
32248 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
32249 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
32250 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
32251 (general_x64nomem_operand): Ditto.
32253 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
32255 * config/rtems.opt: Add -pthread option.
32257 2013-03-26 Richard Biener <rguenther@suse.de>
32259 * alias.c (find_base_term): Avoid redundant and not used recursion.
32260 (base_alias_check): Get the initial base term from the caller.
32261 (true_dependence_1): Compute and pass base terms to base_alias_check.
32262 (write_dependence_p): Likewise.
32263 (may_alias_p): Likewise.
32265 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
32267 * config/aarch64/aarch64.c (aarch64_classify_address): Support
32268 PC-relative load in SI modes and above only.
32270 2013-03-26 Xinyu Qi <xyqi@marvell.com>
32272 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
32273 * config/arm/iwmmxt.md (WCGR0): Update.
32274 (WCGR1, WCGR2, WCGR3): Likewise.
32276 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
32278 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
32279 Use x64 and nox64 isa attributes.
32281 2013-03-26 Richard Biener <rguenther@suse.de>
32283 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
32284 alignment computations and rely on get_object_alignment_1
32285 for the !TYPE_P case.
32286 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
32288 2013-03-26 Walter Lee <walt@tilera.com>
32290 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
32291 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
32293 2013-03-25 Jeff Law <law@redhat.com>
32295 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
32296 check for INTEGRAL_TYPE_P that was missing due to checking in
32297 wrong version of prior patch.
32299 2013-03-25 Walter Lee <walt@tilera.com>
32301 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
32302 TILEGX_INSN_SHUFFLEBYTES1.
32303 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
32305 (tilegx_builtins): Ditto.
32306 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
32308 2013-03-25 Walter Lee <walt@tilera.com>
32310 * config/tilegx/tilegx.md (floatsisf2): New pattern.
32311 (floatunssisf2): New pattern.
32312 (floatsidf2): New pattern.
32313 (floatunssidf2): New pattern.
32315 2013-03-25 Walter Lee <walt@tilera.com>
32317 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
32318 tests for constraint J, K, N, P.
32320 2013-03-25 Walter Lee <walt@tilera.com>
32322 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
32323 Use indirect/pcrel encoding.
32324 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
32327 2013-03-25 Steve Ellcey <sellcey@mips.com>
32329 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
32330 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
32331 * config/mips/mips.c (mips_option_override): Set IMADD default.
32332 * config/mips/mips.h (PTF_AVOID_IMADD): New.
32333 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
32334 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
32335 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
32336 * doc/invoke.texi (-mimadd/-mno-imadd): New.
32338 2013-03-25 Jeff Law <law@redhat.com>
32340 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
32341 slightly to avoid creating and folding useless trees. Simplify
32342 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
32344 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
32346 * config/i386/i386.md (*zero_extendsidi2): Merge with
32347 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
32348 * config/i386/predicates.md (x86_64_zext_operand): Rename from
32349 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
32350 targets. Clarify comment.
32352 2013-03-25 Martin Jambor <mjambor@suse.cz>
32354 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
32355 pass-through jump functions differently.
32356 (ipa_read_jump_function): Likewise. Also use setter functions to set
32359 2013-03-25 Martin Jambor <mjambor@suse.cz>
32361 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
32362 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
32364 (ipa_get_indirect_edge_target): New function.
32365 (devirtualization_time_bonus): New parameter known_aggs, pass it to
32366 ipa_get_indirect_edge_target. Update all callers.
32367 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
32368 ipa_get_indirect_edge_target_1 instead of calling
32369 ipa_get_indirect_edge_target.
32370 (create_specialized_node): Pass aggvlas to
32371 ipcp_discover_new_direct_edges.
32373 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32375 * config/arm/arm.md (f_sels, f_seld): New types.
32376 (*cmov<mode>): New pattern.
32377 * config/arm/predicates.md (arm_vsel_comparison_operator): New
32380 2013-03-25 Kai Tietz <ktietz@redhat.com>
32382 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
32383 POSIX-printf for mingw-hosted builds.
32385 2013-03-25 Richard Biener <rguenther@suse.de>
32387 PR middle-end/56694
32388 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
32389 must-not-throw stmt location.
32391 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32393 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
32394 Emit load-acquire versions when acq is true.
32395 (arm_emit_store_exclusive): Add rel parameter.
32396 Emit store-release versions when rel is true.
32397 (arm_split_compare_and_swap): Use acquire-release instructions
32399 of barriers when appropriate.
32400 (arm_split_atomic_op): Likewise.
32401 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
32402 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
32403 (VUNSPEC_SLX): Likewise.
32404 (VUNSPEC_LDA): Likewise.
32405 (VUNSPEC_STL): Likewise.
32406 * config/arm/sync.md (atomic_load<mode>): New pattern.
32407 (atomic_store<mode>): Likewise.
32408 (arm_load_acquire_exclusive<mode>): Likewise.
32409 (arm_load_acquire_exclusivesi): Likewise.
32410 (arm_load_acquire_exclusivedi): Likewise.
32411 (arm_store_release_exclusive<mode>): Likewise.
32413 2013-03-25 Catherine Moore <clm@codesourcery.com>
32415 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
32416 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
32417 * config/mip/predicates.md (lwsp_swsp_operand,
32418 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
32419 sb16_operand, db4_operand, db7_operand, ib3_operand,
32420 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
32421 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
32422 andi16_operand): New predicates.
32423 * config/mips/mips.md (compression): New attribute.
32424 (enabled): New attribute.
32425 (length): Consider compression in computing length.
32426 (shift_compression): New code attribute.
32427 (*add<mode>3): New operands. Record compression.
32428 (sub<mode>3): Likewise.
32429 (one_cmpl<mode>2): Likewise.
32430 (*and<mode>3): Likewise.
32431 (*ior<mode>3): Likewise.
32432 (unnamed pattern for xor): Likewise.
32433 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
32434 (*<optab><mode>3): Likewise.
32435 (*mov<mode>_internal: Likewise.
32436 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
32437 (mips_unsigned_immediate_p): New.
32438 (umips_lwsp_swsp_address_p): New.
32439 (m16_based_address_p): New.
32440 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
32441 (mips_unsigned_immediate_p): New prototype.
32442 (lwsp_swsp_address_p): New prototype.
32443 (m16_based_address_p): New prototype.
32444 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
32445 (mips_signed_immediate_p): New function.
32446 (m16_based_address_p): New function.
32447 (lwsp_swsp_address_p): New function.
32448 (mips_print_operand_punctuation): Recognize short delay slot insns
32449 for microMIPS.add<mode>3"
32451 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32454 * config/arm/iterators.md (v_cmp_result): New mode attribute.
32455 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
32457 2013-03-25 Richard Biener <rguenther@suse.de>
32459 PR tree-optimization/56689
32460 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
32463 2013-03-25 Richard Biener <rguenther@suse.de>
32465 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
32467 (memory_references): Likewise.
32468 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
32469 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
32470 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
32471 (gather_mem_refs_in_loops): Fold into ...
32472 (analyze_memory_references): ... this. Move initialization
32473 to tree_ssa_lim_initialize.
32474 (fill_always_executed_in): Rename to ...
32475 (fill_always_executed_in_1): ... this.
32476 (fill_always_executed_in): Move contains_call computation to
32477 this new function from ...
32478 (tree_ssa_lim_initialize): ... here.
32479 (tree_ssa_lim): Call fill_always_executed_in.
32481 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
32483 * postreload.c (reload_combine): Fix code detecting returns.
32485 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
32487 * function.c (emit_use_return_register_into_block): On cc0 targets,
32488 do not emit the sequence between cc0 setter and user.
32490 2013-03-25 Kai Tietz <ktietz@redhat.com>
32492 * config/i386/predicates.md (local_symbolic_operand): Interpret
32493 dll-imported symbols as none-local.
32495 2013-03-25 Richard Biener <rguenther@suse.de>
32497 * tree-ssa-loop-im.c (struct depend): Remove.
32498 (struct lim_aux_data): Make depends a vec of gimples.
32499 (free_lim_aux_data): Adjust.
32500 (add_dependency): Likewise.
32501 (set_level): Likewise.
32503 2013-03-25 Richard Biener <rguenther@suse.de>
32505 PR middle-end/56434
32506 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
32507 the pointer returned by calls with ECF_MALLOC set.
32509 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
32511 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
32513 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
32515 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
32516 using MMXMODE mode iterator.
32517 (*move<mode>_internal): Merge with *movv2sf_internal and
32518 *movv2sf_internal_rex64 using MMXMODE mode iterator.
32520 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
32522 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
32523 (record_last_mem_set_info): Likewise.
32525 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
32526 of XNEWVEC followed by memset.
32527 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
32529 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
32531 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
32532 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
32533 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
32534 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
32535 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
32536 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
32537 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
32538 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
32539 BARRIER_P instead of GET_CODE.
32541 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
32543 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
32544 inaccuracy in the probing code.
32546 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
32547 (ctrapdi4): Likewise.
32549 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
32551 * calls.c (expand_call): Add missing guard to code handling return
32552 of non-BLKmode structures in MSB.
32553 * function.c (expand_function_end): Likewise.
32555 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
32557 * combine.c (try_combine): Adjust comment. Do not add the set of
32558 insn #0 if the destination indirectly is set or dies in insn #2.
32559 Tidy up code to distribute a new note.
32561 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
32563 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
32564 also for alternatives 16 and 17.
32566 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
32568 * config/i386/sse.md (*mov<mode>_internal): Merge with
32569 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
32570 Emit insn template depending on type attribute. Use
32571 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
32572 movd instead of movq mnemonic for interunit moves. Rewrite mode
32573 attribute calculation. Remove unit attribute calculation.
32574 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
32575 Set prefix_data16 attribute for DImode ssemov types.
32576 Use Ym instead of y for SSE-MMX conversion alternatives.
32577 Reorder operand constraints.
32579 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
32581 * df.h (df_insn_delete): Adjust prototype.
32582 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
32583 and let it decide whether mark the basic block dirty.
32584 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
32585 * df-scan.c (df_insn_info_delete): New helper function, split
32586 off from df_insn_delete.
32587 (df_scan_free_bb_info): Use it.
32588 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
32590 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
32591 that the insn is actually an insn and it has a non-NULL basic block.
32592 Do not mark basic block dirty if only deleting a DEBUG_INSN.
32594 2013-03-22 Richard Biener <rguenther@suse.de>
32596 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
32598 (mem_ref_alloc): Do not allocate them.
32599 (refs_independent_p): Do not query or maintain a cache.
32601 2013-03-22 Richard Biener <rguenther@suse.de>
32603 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
32604 (gather_mem_refs_in_loops): Do not compute it.
32605 (analyze_memory_references): Do not allocate it.
32606 (tree_ssa_lim_finalize): Do not free it.
32607 (for_all_locs_in_loop): Do not query all_refs_in_loop.
32609 2013-03-22 Richard Biener <rguenther@suse.de>
32611 * is-a.h (as_a): Use gcc_checking_assert.
32613 2013-03-22 Ian Bolton <ian.bolton@arm.com>
32615 * config/aarch64/aarch64.c (aarch64_print_operand): New
32616 format specifier for printing a constant in hex.
32617 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
32618 format specifier for printing second operand.
32620 2013-03-22 Richard Biener <rguenther@suse.de>
32622 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
32624 (gather_mem_refs_in_loops): Perform store accumulation here.
32625 (create_vop_ref_mapping_loop): Remove.
32626 (create_vop_ref_mapping): Likewise.
32627 (analyze_memory_references): Initialize refs_stored_in_loop.
32628 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
32629 (record_indep_loop): Remove.
32630 (record_dep_loop): New function.
32631 (ref_indep_loop_p_1): Adjust to only walk over references
32632 in the loop, not its subloops.
32633 (ref_indep_loop_p): Rename to ...
32634 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
32635 maintaining a more fine-grained cache.
32636 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
32637 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
32639 2013-03-22 Richard Biener <rguenther@suse.de>
32641 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
32642 (struct mem_ref): Make accesses_in_loop a vec of a vec of
32643 aggregate mem_ref_loc.
32644 (free_mem_ref_locs): Inline into ...
32645 (memref_free): ... this and adjust.
32646 (mem_ref_alloc): Adjust.
32647 (mem_ref_locs_alloc): Remove.
32648 (record_mem_ref_loc): Adjust.
32649 (get_all_locs_in_loop): Rewrite into ...
32650 (for_all_locs_in_loop): ... this iterator.
32651 (rewrite_mem_ref_loc): New functor.
32652 (rewrite_mem_refs): Use for_all_locs_in_loop.
32653 (sm_set_flag_if_changed): New functor.
32654 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
32655 (ref_always_accessed): New functor.
32656 (ref_always_accessed_p): Use for_all_locs_in_loop.
32658 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
32660 * tree-pass.h (PROP_gimple_lvec): New.
32661 * passes.c (dump_properties): Handle PROP_gimple_lvec.
32662 (init_optimization_passes): Move pass_lower_vector.
32663 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
32665 (pass_lower_vector): Provide PROP_gimple_lvec.
32666 (pass_lower_vector_ssa): Likewise.
32667 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
32669 2013-03-21 Mark Wielaard <mjw@redhat.com>
32671 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
32673 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
32675 * config/i386/i386.md (*movdi_internal): Disparage slightly
32676 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
32677 conversion alternatives.
32679 2013-03-21 Jakub Jelinek <jakub@redhat.com>
32681 PR middle-end/48087
32682 * diagnostic.def (DK_WERROR): New kind.
32683 * diagnostic.h (werrorcount): Define.
32684 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
32685 promoted to DK_ERROR, increment DK_WERROR counter instead of
32687 * toplev.c (toplev_main): Call print_ignored_options even if
32688 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
32689 even if just werrorcount is non-zero.
32692 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
32694 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
32695 (string_cst_pool_decl): New function.
32696 (optimize_one_addr_into_implicit_ptr): New function.
32697 (resolve_addr_in_expr): Optimize DWARF location expression
32698 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
32699 which doesn't live in memory, but has DW_AT_location or
32700 DW_AT_const_value, or refers to a string literal, into
32701 DW_OP_GNU_implicit_pointer.
32702 (optimize_location_into_implicit_ptr): New function.
32703 (resolve_addr): If removing DW_AT_location of a variable because
32704 it was DW_OP_addr of address of the variable, but the variable doesn't
32705 live in memory, try to emit const value attribute for the initializer.
32707 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
32709 * tree.h (VECTOR_TYPE_P): New macro.
32710 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
32711 TYPE_MODE): Use it.
32712 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
32713 VEC_COND_EXPR cannot be lvalues.
32714 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
32716 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
32718 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
32719 Restrict the transformation to equal modes.
32721 2013-03-21 Richard Biener <rguenther@suse.de>
32723 PR tree-optimization/39326
32724 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
32725 (MEM_ANALYZABLE): Adjust.
32726 (record_mem_ref_loc): Move bitmap ops ...
32727 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
32728 unanalyzable refs, do not record locations for it.
32729 (analyze_memory_references): Allocate ref zero as shared
32731 (refs_independent_p): Do not test for unanalyzed mems here.
32732 (ref_indep_loop_p_1): Special-case disambiguation against
32733 the unanalyzed ref.
32734 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
32736 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
32738 * config/arm/arm-protos.h (tune_params): Add
32739 prefer_neon_for_64bits field.
32740 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
32741 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
32742 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
32743 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
32744 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
32745 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
32746 (arm_option_override): Handle -mneon-for-64bits new option.
32747 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
32748 (prefer_neon_for_64bits): Declare new variable.
32749 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
32750 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
32751 (arch_enabled): Handle new arch types. Remove support for onlya8
32753 (one_cmpldi2): Use new arch names.
32754 (zero_extend<mode>di2, extend<mode>di2): Ditto.
32755 * config/arm/arm.opt (mneon-for-64bits): Add option.
32756 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
32757 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
32758 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
32760 * doc/invoke.texi (-mneon-for-64bits): Document.
32762 2013-03-21 Richard Biener <rguenther@suse.de>
32764 PR tree-optimization/39326
32765 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
32766 (sort_bbs_in_loop_postorder_cmp): New function.
32767 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
32769 2013-03-21 Richard Biener <rguenther@suse.de>
32771 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
32772 (vect_insert_into_interleaving_chain): Likewise.
32773 (vect_drs_dependent_in_basic_block): Inline ...
32774 (vect_slp_analyze_data_ref_dependence): ... here. New function,
32776 (vect_analyze_data_ref_dependence): ... here. Simplify.
32777 (vect_check_interleaving): Simplify.
32778 (vect_analyze_data_ref_dependences): Likewise. Split out ...
32779 (vect_slp_analyze_data_ref_dependences): ... this new function.
32780 (dr_group_sort_cmp): New function.
32781 (vect_analyze_data_ref_accesses): Compute data-reference groups
32782 here instead of in vect_analyze_data_ref_dependence. Use
32783 a more efficient algorithm.
32784 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
32785 vect_slp_analyze_data_ref_dependences. Call
32786 vect_analyze_data_ref_accesses earlier.
32787 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
32788 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
32789 (vect_slp_analyze_data_ref_dependences): New prototype.
32791 2013-03-21 Richard Biener <rguenther@suse.de>
32793 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
32794 ref is stored in the loop.
32795 (find_refs_for_sm): Walk only over all stores.
32796 (store_motion_loop): Allocate from lim_bitmap_obstack.
32797 (store_motion): Likewise.
32799 2013-03-21 Richard Biener <rguenther@suse.de>
32801 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
32802 Update virtual SSA form.
32804 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32806 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
32807 * configure: Regenerate.
32808 * config.in: Regenerate.
32809 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
32810 if !HAVE_LD_EH_FRAME_CIEV3.
32812 2013-03-21 Richard Biener <rguenther@suse.de>
32814 * tree-cfg.c (verify_expr_no_block): New function.
32815 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
32816 nor DECL_VALUE_EXPR have locations with associated blocks.
32817 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
32818 (clear_unused_block_pointer): Remove code dealing with
32819 blocks in DECL_DEBUG_EXPR locations.
32821 2013-03-21 Richard Biener <rguenther@suse.de>
32823 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
32824 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
32825 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
32826 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
32827 instead of DECL_DEBUG_EXPR_IS_FROM.
32828 * gimplify.c (gimplify_modify_expr): Likewise.
32829 * tree-cfg.c (verify_expr_location_1): Likewise.
32830 * tree-complex.c (create_one_component_var): Likewise.
32831 * tree-sra.c (create_access_replacement): Likewise.
32832 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
32833 (clear_unused_block_pointer): Likewise.
32834 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
32835 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
32836 * var-tracking.c (var_debug_decl): Likewise.
32837 (track_expr_p): Likewise.
32838 * tree-inline.c (add_local_variables): Likewise. Set
32839 DECL_HAS_DEBUG_EXPR_P after copying it.
32840 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
32841 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
32843 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
32846 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
32847 * configure: Regenerate.
32848 * config.in: Regenerate.
32849 * config/i386/i386.md (*movdf_internal): Use
32850 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
32851 movd instead of movq mnemonic for interunit moves.
32852 (*movdi_internal): Ditto.
32854 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32856 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
32857 (abd<mode>_3): New pattern.
32858 (aba<mode>_3): New pattern.
32859 (fabd<mode>_3): New pattern.
32861 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32863 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
32864 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
32865 occurrence of REGISTER_PREFIX as its empty string.
32867 2013-03-20 Jeff Law <law@redhat.com>
32869 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
32870 addititional equivalences for equality comparisons between an SSA_NAME
32871 and a constant where the SSA_NAME was set from a widening conversion.
32873 2013-03-20 Walter Lee <walt@tilera.com>
32875 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
32877 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32879 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
32880 depending on type attribute.
32881 (*movti_internal): Ditto.
32882 (*movtf_internal): Ditto.
32883 (*movxf_internal): Ditto.
32884 (*movdf_internal): Ditto.
32885 (*movsf_internal): Ditto.
32887 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32889 * config/i386/i386.md (*movti_internal): Set prefix attribute to
32890 maybe_vex for sselog1 and ssemov types.
32891 (*movdi_internal): Reorder operand constraints.
32892 (*movsi_internal): Ditto. Set prefix attribute to
32893 maybe_vex for sselog1 and ssemov types.
32894 (*movtf_internal): Set prefix attribute to maybe_vex
32895 for sselog1 and ssemov types.
32896 (*movdf_internal): Ditto. Set prefix_data16 attribute for
32897 DImode ssemov types. Reorder operand constraints.
32898 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
32899 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
32900 attribute for SImode ssemov types. Reorder operand constraints.
32902 2013-03-20 Martin Jambor <mjambor@suse.cz>
32904 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
32905 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
32907 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
32909 * config/rs6000/predicates.md (indexed_address, update_address_mem
32910 update_indexed_address_mem): New predicates.
32911 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
32912 attribute for load/store instructions.
32913 * config/rs6000/dfp.md (movsd_store): Likewise.
32914 (movsd_load): Likewise.
32915 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
32916 (unnamed HI->DI extend define_insn): Likewise.
32917 (unnamed SI->DI extend define_insn): Likewise.
32918 (unnamed QI->SI extend define_insn): Likewise.
32919 (unnamed QI->HI extend define_insn): Likewise.
32920 (unnamed HI->SI extend define_insn): Likewise.
32921 (unnamed HI->SI extend define_insn): Likewise.
32922 (extendsfdf2_fpr): Likewise.
32923 (movsi_internal1): Likewise.
32924 (movsi_internal1_single): Likewise.
32925 (movhi_internal): Likewise.
32926 (movqi_internal): Likewise.
32927 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
32928 attribute for load/store instructions.
32929 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
32931 (mov<mode>_softfloat): Likewise.
32932 (mov<mode>_hardfloat32): Likewise.
32933 (mov<mode>_hardfloat64): Likewise.
32934 (mov<mode>_softfloat64): Likewise.
32935 (movdi_internal32): Likewise.
32936 (movdi_internal64): Likewise.
32937 (probe_stack_<mode>): Likewise.
32939 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
32941 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
32942 floating point, and decimal floating point to reload iterator.
32944 * config/rs6000/constraints.md (wl constraint): New constraints to
32945 return FLOAT_REGS if certain options are used to reduce the number
32946 of separate patterns that exist in the file.
32947 (wx constraint): Likewise.
32948 (wz constraint): Likewise.
32950 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32951 -mdebug=reg, print wg, wl, wx, and wz constraints.
32952 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32953 Initialize the reload functions for 64-bit binary/decimal floating
32955 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32956 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32957 create the buffer on the stack to overcome not having a 32-bit
32959 (rs6000_emit_move): Likewise.
32960 (rs6000_secondary_memory_needed_rtx): Likewise.
32961 (rs6000_alloc_sdmode_stack_slot): Likewise.
32962 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32963 via xxlxor, just like DFmode 0.0.
32965 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
32966 define as 1 if we are running on a power7 or newer.
32967 (enum r6000_reg_class_enum): Add new constraints.
32969 * config/rs6000/dfp.md (movsd): Delete, combine with binary
32970 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
32971 with other moves by using conditional constraits (wg). Use LFIWZX
32972 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
32973 (movsd splitter): Likewise.
32974 (movsd_hardfloat): Likewise.
32975 (movsd_softfloat): Likewise.
32977 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
32978 binary and decimal floating point moves.
32979 (fmove_ok): New attributes to combine binary and decimal floating
32980 point moves, and to combine power6x (mfpgpr) moves along normal
32982 (real_value_to_target): Likewise.
32983 (f32_lr): Likewise.
32984 (f32_lm): Likewise.
32985 (f32_li): Likewise.
32986 (f32_sr): Likewise.
32987 (f32_sm): Likewise.
32988 (f32_si): Likewise.
32989 (movsf): Combine binary and decimal floating point moves. Combine
32990 power6x (mfpgpr) moves with other moves by using conditional
32991 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
32992 (mov<mode> for SFmode/SDmode); Likewise.
32993 (SFmode/SDmode splitters): Likewise.
32994 (movsf_hardfloat): Likewise.
32995 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
32996 (movsf_softfloat): Likewise.
32997 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
32999 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
33000 wx and wz constraints.
33002 * config/rs6000/constraints.md (wg constraint): New constraint to
33003 return FLOAT_REGS if -mmfpgpr (power6x) was used.
33005 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
33008 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
33009 -mdebug=reg, print wg, wl, wx, and wz constraints.
33010 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
33011 Initialize the reload functions for 64-bit binary/decimal floating
33013 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
33014 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
33015 create the buffer on the stack to overcome not having a 32-bit
33017 (rs6000_emit_move): Likewise.
33018 (rs6000_secondary_memory_needed_rtx): Likewise.
33019 (rs6000_alloc_sdmode_stack_slot): Likewise.
33020 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
33021 via xxlxor, just like DFmode 0.0.
33023 * config/rs6000/dfp.md (movdd): Delete, combine with binary
33024 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
33025 with other moves by using conditional constraits (wg). Use LFIWZX
33026 and STFIWX for loading SDmode on power7.
33027 (movdd splitters): Likewise.
33028 (movdd_hardfloat32): Likewise.
33029 (movdd_softfloat32): Likewise.
33030 (movdd_hardfloat64_mfpgpr): Likewise.
33031 (movdd_hardfloat64): Likewise.
33032 (movdd_softfloat64): Likewise.
33034 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
33035 64-bit binary and decimal floating point moves.
33036 (FMOVE64X): Likewise.
33037 (movdf): Combine 64-bit binary and decimal floating point moves.
33038 Combine power6x (mfpgpr) moves with other moves by using
33039 conditional constraits (wg).
33040 (mov<mode> for DFmode/DDmode): Likewise.
33041 (DFmode/DDmode splitters): Likewise.
33042 (movdf_hardfloat32): Likewise.
33043 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
33044 (movdf_softfloat32): Likewise.
33045 (movdf_hardfloat64_mfpgpr): Likewise.
33046 (movdf_hardfloat64): Likewise.
33047 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
33048 (movdf_softfloat64): Likewise.
33049 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
33050 (reload_<mode>_load): Move to later in the file so they aren't in
33051 the middle of the floating point move insns.
33052 (reload_<mode>_store): Likewise.
33054 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
33057 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
33058 constraint if -mdebug=reg.
33059 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
33060 Enable using dd reload support if needed.
33062 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
33063 binary and decimal floating point moves in rs6000.md.
33064 (movtd_internal): Likewise.
33066 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
33067 decimal floating point moves.
33069 (movtf_internal): Likewise.
33070 (mov<mode>_internal, TDmode/TFmode): Likewise.
33071 (movtf_softfloat): Likewise.
33072 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
33074 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
33075 movdi_internal64, using wg constraint for move direct operations.
33076 (movdi_internal64): Likewise.
33078 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
33079 MODES_TIEABLE_P for selected modes. Print the numerical value of
33080 the various virtual registers. Use GPR/FPR first/last values,
33081 instead of hard coding the register numbers. Print which modes
33082 have reload functions registered.
33083 (rs6000_option_override_internal): If -mdebug=reg, trace the options
33084 settings before/after setting cpu, target and subtarget settings.
33085 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
33086 and for secondary reload failures in rs6000_secondary_reload_inner.
33087 (rs6000_secondary_reload_fail): Likewise.
33088 (rs6000_secondary_reload_inner): Likewise.
33090 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
33091 macros for first/last GPR and FPR registers.
33092 (LAST_GPR_REGNO): Likewise.
33093 (FIRST_FPR_REGNO): Likewise.
33094 (LAST_FPR_REGNO): Likewise.
33096 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
33097 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
33098 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
33099 (vcond<mode><mode>): Likewise.
33100 (vcondu<mode><mode>): Likewise.
33101 (vector_gtu<mode>): Likewise.
33102 (vector_gte<mode>): Likewise.
33103 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
33104 to prevent the compiler from converting DImode operations to TImode.
33105 (ior<mode>3): Likewise.
33106 (and<mode>3): Likewise.
33107 (one_cmpl<mode>2): Likewise.
33108 (nor<mode>3): Likewise.
33109 (andc<mode>3): Likewise.
33111 * config/rs6000/constraints.md (wt constraint): New constraint
33112 that returns VSX_REGS if TImode is allowed in VSX registers.
33114 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
33115 constant under VSX.
33117 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
33118 similar to TImode, but it is restricted to being in the GPRs.
33120 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
33121 TImode to occupy a single VSX register.
33123 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
33124 -mvsx-timode for power7/power8.
33125 (power7 cpu): Likewise.
33126 (power8 cpu): Likewise.
33128 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
33129 sure that TFmode/TDmode take up two registers if they are ever
33130 allowed in the upper VSX registers.
33131 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
33133 (rs6000_init_hard_regno_mode_ok): Likewise.
33134 (rs6000_debug_reg_global): Add debugging for PTImode and wt
33135 constraint. Print if LRA is turned on.
33136 (rs6000_option_override_internal): Give an error if -mvsx-timode
33137 and VSX is not enabled.
33138 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
33139 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
33140 to reg+offset addressing. Use PTImode when checking offset
33141 addresses for validity.
33142 (reg_offset_addressing_ok_p): Likewise.
33143 (rs6000_legitimate_offset_address_p): Likewise.
33144 (rs6000_legitimize_address): Likewise.
33145 (rs6000_legitimize_reload_address): Likewise.
33146 (rs6000_legitimate_address_p): Likewise.
33147 (rs6000_eliminate_indexed_memrefs): Likewise.
33148 (rs6000_emit_move): Likewise.
33149 (rs6000_secondary_reload): Likewise.
33150 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
33151 reloads to fpr registers to continue to use reg+offset addressing,
33152 but 64-bit reloads to altivec registers need reg+reg addressing.
33153 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
33154 it. Treat LO_SUM like a PLUS operation.
33155 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
33156 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
33157 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
33158 registers to share a register with a smaller sized type, since VSX
33159 puts scalars in the upper 64-bits.
33160 (print_operand): Add support for PTImode.
33161 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
33162 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
33163 registers, but don't have arithmetic support.
33164 (rs6000_memory_move_cost): Add test for VSX.
33165 (rs6000_opt_masks): Add -mvsx-timode.
33167 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
33170 (VSr): Use wt constraint for TImode.
33171 (VSv): Drop TImode support.
33172 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
33173 (vsx_movti_64bit): Likewise.
33174 (vsx_movti_32bit): Likewise.
33175 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
33176 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
33177 one '?' on the appropriate output constraint. Do not allow TImode
33178 logical operations on 32-bit systems.
33179 (vsx_ior<mode>3): Likewise.
33180 (vsx_xor<mode>3): Likewise.
33181 (vsx_one_cmpl<mode>2): Likewise.
33182 (vsx_nor<mode>3): Likewise.
33183 (vsx_andc<mode>3): Likewise.
33184 (vsx_concat_<mode>): Likewise.
33185 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
33187 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
33188 OPTION_MASK_VSX_TIMODE.
33189 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
33190 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
33192 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
33193 (TI2 iterator): New iterator for TImode, PTImode.
33194 (wd mode attribute): Add values for vector types.
33195 (movti_string): Replace TI move operations with operations for TImode
33196 and PTImode. Add support for TImode being allowed in VSX registers.
33197 (mov<mode>_string, TImode/PTImode): Likewise.
33198 (movti_ppc64): Likewise.
33199 (mov<mode>_ppc64, TImode/PTImode): Likewise.
33200 (TI mode splitters): Likewise.
33202 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
33205 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
33207 PR tree-optimization/56355
33208 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
33209 Also handle integers with undefined overflow.
33211 2013-03-20 Catherine Moore <clm@codesourcery.com>
33212 Maciej W. Rozycki <macro@codesourcery.com>
33213 Tom de Vries <tom@codesourcery.com>
33214 Nathan Sidwell <nathan@codesourcery.com>
33215 Iain Sandoe <iain@codesourcery.com>
33216 Nathan Froyd <froydnj@codesourcery.com>
33217 Chao-ying Fu <fu@mips.com>
33219 * doc/extend.texi: (micromips, nomicromips, nocompression):
33220 Document new function attributes.
33221 * doc/invoke.texi (minterlink-compressed, mmicromips,
33222 m14k, m14ke, m14kec): Document new options.
33223 (minterlink-mips16): Update documentation.
33224 * doc/md.texi (ZC, ZD): Document new constraints.
33225 * configure.ac (gcc_cv_as_micromips): Check if linker
33226 supports the .set micromips directive.
33227 * configure: Regenerate.
33228 * config.in: Regenerate.
33229 * config/mips/mips-tables.opt: Regenerate.
33230 * config/mips/micromips.md: New file.
33231 * constraints.md (ZC, ZD): New constraints.
33232 * config/mips/predicates.md (movep_src_register): New predicate.
33233 (movep_src_operand): New predicate.
33234 (non_volatile_mem_operand): New predicate.
33235 * config/mips/mips.md (multimem): New type.
33236 (length): Differentiate between 17-bit and 18-bit branch offsets.
33237 (MOVEP1, MOVEP2): New mode iterator.
33238 (mov_<load>l): Use ZC constraint.
33239 (mov_<load>r): Likewise.
33240 (mov_<store>l): Likewise.
33241 (mov_<store>r): Likewise.
33242 (*branch_equality<mode>_inverted): Add microMIPS support.
33243 (*branch_equality<mode>): Likewise.
33244 (*jump_absolute): Likewise.
33245 (indirect_jump_<mode>): Likewise.
33246 (tablejump_<mode>): Likewise.
33247 (<optab>_internal): Likewise.
33248 (sibcall_internal): Likewise.
33249 (sibcall_value_internal): Likewise.
33250 (prefetch): Use constraint ZD.
33251 * config/mips/mips.opt (minterlink-compressed): New option.
33252 (minterlink-mips16): Now an alias for minterlink-compressed.
33253 (mmicromips): New option.
33254 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33255 (compare_and_swap_12): Likewise.
33256 (sync_add<mode>): Likewise.
33257 (sync_<optab>_12): Likewise.
33258 (sync_old_<optab>_12): Likewise.
33259 (sync_new_<optab>_12): Likewise.
33260 (sync_nand_12): Likewise.
33261 (sync_old_nand_12): Likewise.
33262 (sync_new_nand_12): Likewise.
33263 (sync_sub<mode>): Likewise.
33264 (sync_old_add<mode>): Likewise.
33265 (sync_old_sub<mode>): Likewise.
33266 (sync_new_add<mode>): Likewise.
33267 (sync_new_sub<mode>): Likewise.
33268 (sync_<optab><mode>): Likewise.
33269 (sync_old_<optab><mode>): Likewise.
33270 (sync_new_<optab><mode>): Likewise.
33271 (sync_nand<mode>): Likewise.
33272 (sync_old_nand<mode>): Likewise.
33273 (sync_new_nand<mode>): Likewise.
33274 (sync_lock_test_and_set<mode>): Likewise.
33275 (test_and_set_12): Likewise.
33276 (atomic_compare_and_swap<mode>): Likewise.
33277 (atomic_exchange<mode>_llsc): Likewise.
33278 (atomic_fetch_add<mode>_llsc): Likewise.
33279 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33280 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33281 (umips_save_restore_pattern_p): Likewise.
33282 (umips_load_store_pair_p): Likewise.
33283 (umips_output_load_store_pair): Likewise.
33284 (umips_movep_target_p): Likewise.
33285 (umips_12bit_offset_address_p): Likewise.
33286 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33287 (mips_base_mips16): Rename this...
33288 (mips_base_compression_flags): ...to this. Update all uses.
33289 (mips_attribute_table): Add micromips, nomicromips and nocompression.
33290 (mips_mips16_decl_p): Delete.
33291 (mips_nomips16_decl_p): Delete.
33292 (mips_get_compress_on_flags): New function.
33293 (mips_get_compress_off_flags): New function.
33294 (mips_get_compress_mode): New function.
33295 (mips_get_compress_on_name): New function.
33296 (mips_get_compress_off_name): New function.
33297 (mips_insert_attributes): Support multiple compression types.
33298 (mips_merge_decl_attributes): Likewise.
33299 (umips_12bit_offset_address_p): New function.
33300 (mips_start_function_definition): Emit .set micromips directive.
33301 (mips_call_may_need_jalx_p): New function.
33302 (mips_function_ok_for_sibcall): Add microMIPS support.
33303 (mips_print_operand_punctuation): Support short delay slots and
33305 (umips_swm_mask, umips_swm_encoding): New.
33306 (umips_build_save_restore): New function.
33307 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33308 (was_mips16_p): Remove.
33309 (old_compression_mode): New.
33310 (mips_set_compression_mode): New function.
33311 (mips_set_current_function): Add microMIPS support.
33312 (mips_option_override): Likewise.
33313 (umips_save_restore_pattern_p): New function.
33314 (umips_output_save_restore): New function.
33315 (umips_load_store_pair_p_1): New function.
33316 (umips_load_store_pair_p): New function.
33317 (umips_output_load_store_pair_1): New function.
33318 (umips_output_load_store_pair): New function.
33319 (umips_movep_target_p) New function.
33320 (mips_prepare_pch_save): Add microMIPS support.
33321 * config/mips/mips.h (TARGET_COMPRESSION): New.
33322 (TARGET_CPU_CPP_BUILTINS): Update macro
33323 to use new compression flags and to support microMIPS.
33324 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33325 (MIPS_ARCH_FLOAT_SPEC): Likewise.
33326 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33327 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33328 (ASM_SPEC): Support mmicromips and mno-micromips.
33329 (M16STORE_REG_P): New macro.
33330 (MIPS_CALL): Support TARGET_MICROMIPS.
33331 (MICROMIPS_J): New macro.
33332 (mips_base_mips16): Rename this...
33333 (mips_base_compression_flags): ...to this.
33334 (UMIPS_12BIT_OFFSET_P): New macro.
33335 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33336 (MULTILIB_DIRNAMES): Likewise.
33337 2013-03-20 Richard Biener <rguenther@suse.de>
33339 PR tree-optimization/56661
33340 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
33341 the result does not have to be distinct.
33343 2013-03-20 Richard Biener <rguenther@suse.de>
33345 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
33348 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33349 Steven Bosscher <steven@gcc.gnu.org>
33351 PR rtl-optimization/56605
33352 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
33354 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
33357 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
33358 that require movd instead of movq.
33360 2013-03-20 Richard Biener <rguenther@suse.de>
33362 * tree-ssa-structalias.c (struct variable_info): Add pointer
33363 to the first field of an aggregate with sub-vars. Make
33364 this and the pointer to the next subfield its ID.
33365 (vi_next): New function.
33366 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
33367 storedanything_id, integer_id): Increment by one.
33368 (new_var_info, get_call_vi, lookup_call_clobber_vi,
33369 get_call_clobber_vi): Adjust.
33370 (solution_set_expand): Simplify and speedup.
33371 (solution_set_add): Inline into ...
33372 (set_union_with_increment): ... this. Adjust accordingly.
33373 (do_sd_constraint): Likewise.
33374 (do_ds_constraint): Likewise.
33375 (do_complex_constraint): Simplify.
33376 (build_pred_graph): Adjust.
33377 (solve_graph): Likewise. Simplify and speedup.
33378 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
33379 get_constraint_for_component_ref, get_constraint_for_1,
33380 first_vi_for_offset, first_or_preceding_vi_for_offset,
33381 create_function_info_for, create_variable_info_for_1,
33382 create_variable_info_for, intra_create_variable_infos): Adjust.
33383 (init_base_vars): Push NULL for ID zero.
33384 (compute_points_to_sets): Adjust.
33386 2013-03-20 Richard Biener <rguenther@suse.de>
33388 * cfgloop.c (verify_loop_structure): Streamline and avoid
33389 ICEing on corrupt loop tree.
33390 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
33393 2013-03-20 Richard Biener <rguenther@suse.de>
33395 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
33396 check whether an SSA update is needed.
33398 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
33400 * config/mips/constraints.md (T): Rename to...
33404 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
33405 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
33407 2013-03-19 Ian Bolton <ian.bolton@arm.com>
33409 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
33410 (*subsi3_carryin_uxtw): Likewise.
33412 2013-03-19 Ian Bolton <ian.bolton@arm.com>
33414 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
33415 (*rorsi3_insn_uxtw): Likewise.
33417 2013-03-19 Ian Bolton <ian.bolton@arm.com>
33419 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
33420 (*extrsi5_insn_uxtw): Likewise.
33422 2013-03-19 Richard Biener <rguenther@suse.de>
33424 PR tree-optimization/56273
33425 * passes.c (init_optimization_passes): Move second VRP after DOM.
33427 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
33429 * config/i386/i386.md (*movti_internal): Merge from
33430 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
33431 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
33432 nox64 isa attributes.
33434 2013-03-18 Richard Biener <rguenther@suse.de>
33436 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
33438 (merge_node_constraints): Likewise.
33439 (build_succ_graph): Likewise.
33440 (valid_graph_edge): Inline into single caller.
33441 (unify_nodes): Likewise. Use bitmap_set_bit return value
33443 (scc_visit): Fix formatting and variable use.
33444 (do_sd_constraint): Use gcc_checking_assert.
33445 (do_ds_constraint): Likewise.
33446 (do_complex_constraint): Likewise.
33447 (condense_visit): Likewise. Cleanup.
33448 (dump_pred_graph): New function.
33449 (perform_var_substitution): Dump the pred-graph before
33450 variable substitution.
33451 (find_equivalent_node): Use gcc_checking_assert.
33452 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
33454 2013-03-18 Richard Biener <rguenther@suse.de>
33456 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
33457 Remove cond_expr_stmt_list argument and do not gimplify the
33459 (vect_loop_versioning): Adjust.
33460 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
33461 Cleanup to use less temporaries.
33462 (vect_create_data_ref_ptr): Cleanup.
33464 2013-03-18 Jakub Jelinek <jakub@redhat.com>
33466 PR tree-optimization/56635
33467 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
33468 require types_compatible_p types.
33470 2013-03-18 Nick Clifton <nickc@redhat.com>
33472 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
33473 spurious backslash.
33475 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
33476 Add missing line to comment describing function.
33478 2013-03-18 Richard Biener <rguenther@suse.de>
33480 PR tree-optimization/56210
33481 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
33482 Handle string / character search functions.
33483 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
33485 2013-03-18 Richard Biener <rguenther@suse.de>
33487 PR middle-end/56483
33488 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
33489 and implement properly.
33490 * gimple.h (gimple_cond_single_var_p): Remove.
33492 2013-03-18 Richard Biener <rguenther@suse.de>
33494 * tree-data-ref.h (find_data_references_in_loop): Declare.
33495 * tree-data-ref.c (get_references_in_stmt): Use a stack
33496 vector pre-allocated in the callers.
33497 (find_data_references_in_stmt): Adjust.
33498 (graphite_find_data_references_in_stmt): Likewise.
33499 (create_rdg_vertices): Likewise.
33500 (find_data_references_in_loop): Export.
33501 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
33502 Compute dependences here...
33503 (vect_analyze_data_refs): ...not here. When we encounter
33504 a non-vectorizable data reference in basic-block vectorization
33505 truncate the data reference vector. Do not bother to
33506 fixup data-dependence information for gather loads.
33507 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
33508 of data references, as reported.
33510 2013-03-18 Richard Biener <rguenther@suse.de>
33512 PR tree-optimization/3713
33513 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
33514 has_constants and expr.
33515 (stmt_has_constants): Properly valueize SSA names when deciding
33516 whether the stmt has constants.
33518 2013-03-18 Richard Biener <rguenther@suse.de>
33520 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
33521 whole function when there is nothing to do.
33522 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
33523 * tree-vectorizer.c (vectorize_loops): Update virtual and
33524 loop-closed SSA once.
33525 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
33527 2013-03-18 Richard Biener <rguenther@suse.de>
33529 PR middle-end/56113
33530 * domwalk.c (bb_postorder): New global static.
33531 (cmp_bb_postorder): New function.
33532 (walk_dominator_tree): Replace scheme imposing an order for
33533 visiting dominator sons by one sorting them at the time they
33534 are pushed on the stack.
33536 2013-03-18 Richard Biener <rguenther@suse.de>
33538 PR tree-optimization/39326
33539 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
33540 (struct mem_ref): Replace mem member with ao_ref typed member.
33541 (MEM_ANALYZABLE): Adjust.
33542 (memref_eq): Likewise.
33543 (mem_ref_alloc): Likewise.
33544 (gather_mem_refs_stmt): Likewise.
33545 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
33546 (execute_sm_if_changed_flag_set): Adjust.
33547 (execute_sm): Likewise.
33548 (ref_always_accessed_p): Likewise.
33549 (refs_independent_p): Likewise.
33550 (can_sm_ref_p): Likewise.
33552 2013-03-18 Jakub Jelinek <jakub@redhat.com>
33555 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
33556 return 1 even for !unsignedp.
33558 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
33560 * config/i386/i386.md (isa): Add x64 and nox64.
33561 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
33562 (*pushtf): Enable *roF alternative for x64 isa only.
33563 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
33564 mode attribute of integer alternatives to DImode for TARGET_64BIT.
33565 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
33566 (*movtf_internal): Merge from *movtf_internal_rex64 and
33567 *movtf_internal_sse. Use x64 and nox64 isa attributes.
33568 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
33569 nox64 isa attributes.
33570 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
33571 nox64 isa attributes.
33572 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
33574 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
33576 * config/alpha/alpha.c (TARGET_LRA_P): New define.
33578 2013-03-17 Jakub Jelinek <jakub@redhat.com>
33581 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
33582 class names. Remove trailing comma after "ALL_REGS".
33584 2013-03-16 Jan Hubicka <jh@suse.cz>
33586 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
33587 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
33588 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
33589 of cgraph_get_create_node.
33590 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
33592 2013-03-16 Jason Merrill <jason@redhat.com>
33595 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
33596 with DW_AT_default_value.
33598 2013-03-16 Jakub Jelinek <jakub@redhat.com>
33600 * BASE-VER: Set to 4.9.0.
33602 2013-03-14 Andi Kleen <ak@linux.intel.com>
33605 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
33606 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
33607 Document _x* TSX intrinsics.
33609 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
33610 David Holsgrove <david.holsgrove@xilinx.com>
33612 * configure.ac: Add MicroBlaze TLS support detection.
33613 * configure: Regenerate.
33614 * config/microblaze/microblaze-protos.h
33615 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
33616 symbol_mentioned_p, label_mentioned_p): Add prototypes.
33617 * config/microblaze/microblaze.c (microblaze_address_type): Add
33618 ADDRESS_TLS and tls_reloc address types.
33619 (microblaze_address_info): Add tls_reloc.
33620 (TARGET_HAVE_TLS): Define.
33621 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
33622 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
33623 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
33624 load_tls_operand, microblaze_call_tls_get_addr,
33625 microblaze_legitimize_tls_address): New functions.
33626 (microblaze_classify_unspec): Handle UNSPEC_TLS.
33627 (get_base_reg): Use microblaze_tls_symbol_p.
33628 (microblaze_classify_address): Handle TLS.
33629 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
33630 label_mentioned_p and microblaze_tls_referenced_p.
33631 (microblaze_legitimize_address): Handle TLS.
33632 (microblaze_address_insns): Handle ADDRESS_TLS.
33633 (pic_address_needs_scratch): Handle TLS.
33634 (print_operand_address): Handle TLS.
33635 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
33636 (microblaze_expand_move): Handle TLS.
33637 (microblaze_legitimate_constant_p): Check
33638 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
33639 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
33640 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
33641 (PIC_OFFSET_TABLE_REGNUM): Set.
33642 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
33643 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
33644 (addsi3, movsi_internal2, movdf_internal): Update constraints
33645 * config/microblaze/predicates.md (arith_plus_operand): Define
33646 (move_operand): Redefine as move_src_operand,
33647 check microblaze_tls_referenced_p.
33649 2013-03-14 Ian Bolton <ian.bolton@arm.com>
33651 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
33652 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
33654 2013-03-14 Ian Bolton <ian.bolton@arm.com>
33656 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
33659 2013-03-14 Jakub Jelinek <jakub@redhat.com>
33661 PR tree-optimization/53265
33662 * common.opt (Waggressive-loop-optimizations): New option.
33663 * tree-ssa-loop-niter.c: Include tree-pass.h.
33664 (do_warn_aggressive_loop_optimizations): New function.
33665 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
33666 if number_of_latch_executions returned constant.
33667 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
33668 early. If number_of_latch_executions returned constant, set
33669 nb_iterations_upper_bound back to it.
33670 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
33672 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
33673 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
33675 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
33676 (MULTILIB_OSDIRNAMES): Set.
33677 * genmultilib: If defaultosdirname doesn't start with :: , set
33678 defaultosdirname2 instead, clear it and emit two . multilib_raw
33679 entries instead of just one.
33681 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
33683 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
33684 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
33685 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
33686 (SUBTARGET_OVERRIDE_OPTIONS): New.
33688 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
33691 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
33692 (musermode): Convert to Var(TARGET_USERMODE).
33693 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
33694 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
33695 * config/sh/sh.c (sh_option_override): Use
33696 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
33697 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
33699 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
33701 (udivsi3_i4_single, divsi3_i4_single): Use
33702 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
33704 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
33706 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
33709 2013-03-13 Richard Biener <rguenther@suse.de>
33711 PR tree-optimization/56608
33712 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
33713 calls when vectorizing basic-blocks.
33715 2013-03-13 Jakub Jelinek <jakub@redhat.com>
33718 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
33721 2013-03-12 Jakub Jelinek <jakub@redhat.com>
33723 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
33725 2013-03-11 Jan Hubicka <jh@suse.cz>
33728 * lto-streamer-out.c (output_symbol_p): Skip references from
33729 constructors of external variables.
33731 2013-03-11 Jan Hubicka <jh@suse.cz>
33733 PR middle-end/56571
33734 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
33736 * emit-rtl.c (verify_rtx_sharing): Likewise.
33737 (copy_insn_1): Likewise.
33738 * rtl.c (copy_rtx): Likewise.
33740 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
33743 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
33744 output_operand_lossage message.
33746 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
33749 * arm.c (shift_op): Validate RTL pattern on the fly.
33750 (arm_print_operand, case 'S'): Don't use shift_operator to validate
33753 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33756 * config/pa/pa.md (call_value): Check for calls to powf and direct to
33757 new call patterns that clobber %fr12.
33758 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
33759 split and postreload patterns.
33760 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
33761 registers %fr12 and %fr12R as call used.
33763 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
33765 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
33766 (canon_address, record_store, replace_read, check_mem_read_rtx,
33767 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
33768 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
33769 rest_of_handle_dse): Likewise.
33771 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
33773 PR middle-end/56524
33774 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
33776 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
33777 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
33778 (save_optabs_if_changed): Replace with...
33779 (init_tree_optimization_optabs): ...this.
33780 * optabs.c (save_optabs_if_changed): Rename to...
33781 (init_tree_optimization_optabs): ...this. Take the optimization node
33782 as argument. Do nothing if the base optabs are already correct.
33783 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
33784 to recompute optabs.
33785 * function.h (function): Remove optabs field.
33786 * function.c (invoke_set_current_function_hook): Call
33787 init_tree_optimization_optabs. Use the result to initialize
33790 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
33792 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
33793 if GTMA_HAS_NO_INSTRUMENTATION.
33794 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
33795 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
33796 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
33797 * gimple-pretty-print.c (dump_gimple_transaction): Handle
33798 GTMA_HAS_NO_INSTRUMENTATION.
33800 2013-03-08 Jakub Jelinek <jakub@redhat.com>
33802 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
33805 2013-03-08 Marek Polacek <polacek@redhat.com>
33806 Jakub Jelinek <jakub@redhat.com>
33808 PR tree-optimization/56478
33809 * predict.c (is_comparison_with_loop_invariant_p): Change the
33810 type of loop_step to tree.
33811 (predict_loops): Adjust.
33812 (predict_iv_comparison): Perform the computations on double_ints.
33814 2013-03-08 Richard Biener <rguenther@suse.de>
33816 PR tree-optimization/56570
33817 * tree-cfg.c (verify_expr_location_1): Verify locations for
33819 * tree-sra.c (create_access_replacement): Strip locations
33820 from DECL_DEBUG_EXPRs.
33822 2013-03-08 Richard Biener <rguenther@suse.de>
33824 * tree-inline.c (expand_call_inline): Do not associate
33825 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
33826 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
33828 2013-03-08 Richard Biener <rguenther@suse.de>
33830 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
33831 or block changes with -Og. Fix for location / block encoding
33832 changes and PHI arguments with locations.
33834 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
33836 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
33838 (struct output_info): Likewise.
33839 (register_overhead): Remove bad gcc_assert.
33840 (bitmap_find_bit): If there is only a single bitmap element, do not
33841 count a miss as a search.
33842 (print_statistics): Update for counter type changes.
33843 (dump_bitmap_statistics): Likewise. Print headers such that they
33844 are properly lined up with the printed counters.
33846 2013-03-07 Jakub Jelinek <jakub@redhat.com>
33848 PR tree-optimization/56559
33849 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
33850 check that it has only a single use.
33852 2013-03-07 Richard Biener <rguenther@suse.de>
33854 * doc/invoke.texi (fwhole-program): Discourage use in combination
33857 2013-03-06 Jakub Jelinek <jakub@redhat.com>
33859 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
33861 PR tree-optimization/56539
33862 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
33863 instead of GSI_CONTINUE_LINKING as last argument to
33864 force_gimple_operand_gsi. Adjust function comment.
33866 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
33869 PR middle-end/56548
33870 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
33871 promoted mode, convert the result back to the original mode.
33873 2013-03-06 Richard Biener <rguenther@suse.de>
33875 PR middle-end/56294
33876 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
33877 (insert_updated_phi_nodes_compare_uids): New function.
33878 (update_ssa): Sort symbols_to_rename after UID before
33879 traversing it to insert PHI nodes.
33881 2013-03-06 Richard Biener <rguenther@suse.de>
33883 PR middle-end/50494
33884 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
33885 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
33888 2013-02-13 Richard Biener <rguenther@suse.de>
33891 * varasm.c (output_constant_def_1): Get the decl representing
33892 the constant as argument.
33893 (output_constant_def): Wrap output_constant_def_1.
33894 (make_decl_rtl): Use output_constant_def_1 with the decl
33895 representing the constant.
33896 (build_constant_desc): Optionally re-use a decl already
33897 representing the constant.
33898 (tree_output_constant_def): Adjust.
33900 2013-03-06 Joey Ye <joey.ye@arm.com>
33903 * gcc.c (convert_white_space): New function.
33904 (main): Handles white space in function name.
33906 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
33909 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
33910 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
33911 to SH_DIV_CALL_TABLE for TARGET_SH2.
33912 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
33914 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
33915 call-table options.
33917 2013-03-05 Sterling Augustine <saugustine@google.com>
33918 Cary Coutant <ccoutant@google.com>
33921 * dwarf2out.c (resolve_addr): Don't call
33922 remove_loc_list_addr_table_entries a second time for the same
33925 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33928 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
33929 (avoid_complex_debug_insns): New function.
33930 (expand_debug_locations): Call it.
33932 PR rtl-optimization/56484
33933 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
33934 lifetimes of hard registers on small register class machines.
33936 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
33938 * config/microblaze/microblaze-protos.h: Rename
33939 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
33940 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
33942 (microblaze_fast_interrupt_function_p): New function.
33943 (microblaze_is_interrupt_handler): Rename to
33944 microblaze_is_interrupt_variant and add fast_interrupt check.
33945 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
33946 (save_restore_insns): Likewise.
33947 (compute_frame_size): Likewise.
33948 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
33949 (microblaze_globalize_label): Likewise.
33950 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
33951 * config/microblaze/microblaze.md: Use wrapper
33952 microblaze_is_interrupt_variant.
33954 2013-03-05 Kai Tietz <ktietz@redhat.com>
33956 * sdbout.c (sdbout_one_type): Switch to current function's section
33957 supporting cold/hot.
33959 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
33961 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
33964 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33966 PR middle-end/56461
33967 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
33968 if VALGRIND_GET_VBITS is defined, temporarily make object
33969 memory all defined, and restore previous valgrind addressability
33970 and definability afterwards. Free this_object at the end.
33972 PR middle-end/56461
33973 * lra.c (lra): Call lra_clear_live_ranges if live_p,
33974 right before calling lra_create_live_ranges, also call it
33975 when clearing live_p. Only call lra_clear_live_ranges
33976 at the end if live_p.
33978 PR middle-end/56461
33979 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
33981 2013-03-05 Richard Biener <rguenther@suse.de>
33983 PR tree-optimization/56521
33984 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
33987 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
33990 * except.h (remove_unreachable_eh_regions): New prototype.
33991 * except.c (remove_eh_handler_splicer): New function, split out
33992 of remove_eh_handler.
33993 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
33994 warning about running it on many EH regions one at a time.
33995 (remove_unreachable_eh_regions_worker): New function, walk the
33996 EH tree in depth-first order and remove non-marked regions.
33997 (remove_unreachable_eh_regions): New function.
33998 * tree-eh.c (mark_reachable_handlers): New function, split out
33999 from remove_unreachable_handlers.
34000 (remove_unreachable_handlers): Use mark_reachable_handlers and
34001 remove_unreachable_eh_regions.
34002 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
34003 and remove_unreachable_eh_regions.
34005 2013-03-05 Richard Biener <rguenther@suse.de>
34007 PR middle-end/56525
34008 * loop-init.c (fix_loop_structure): Remove loops in two stages,
34009 not freeing them until the end.
34011 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34013 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
34015 2013-03-05 Richard Biener <rguenther@suse.de>
34017 PR tree-optimization/56270
34018 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
34019 of loads after scheduling an SLP instance.
34021 2013-03-05 Jakub Jelinek <jakub@redhat.com>
34023 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
34025 (check_gcc_parallelize): Run guality.exp as a separate job from
34026 vect.exp with unsorted.exp and $(dg_target_exps) separately from
34027 struct-layout-1.exp with stackalign.exp.
34029 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
34031 PR middle-end/56461
34032 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
34033 load_index sbitmap even if some bit in it isn't set.
34035 PR middle-end/56461
34036 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
34037 (discover_iteration_bound_by_body_walk): Change queues to
34038 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
34039 spelling in comment. Call safe_push on queues[bound_index] directly.
34040 Release queues[queue_index] in every iteration unconditionally.
34041 Release bounds vector.
34043 PR middle-end/56461
34044 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
34045 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
34046 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
34049 2013-03-05 Richard Biener <rguenther@suse.de>
34052 * tree-inline.c (remap_blocks_to_null): New function.
34053 (expand_call_inline): When expanding a call stmt without
34054 an associated block inline remap all callee blocks to NULL.
34056 2013-03-05 Jakub Jelinek <jakub@redhat.com>
34058 PR rtl-optimization/56494
34059 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
34060 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
34061 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
34063 PR middle-end/56461
34064 * sel-sched-ir.c (free_sched_pools): Release
34065 succs_info_pool.stack[succs_info_pool.max_top] vectors too
34066 if succs_info_pool.max_top isn't -1.
34069 * opts.c (opts_obstack, opts_concat): Moved to...
34070 * opts-common.c (opts_obstack, opts_concat): ... here.
34072 2013-03-04 Jakub Jelinek <jakub@redhat.com>
34074 PR middle-end/56461
34075 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
34077 2013-03-04 Martin Jambor <mjambor@suse.cz>
34079 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
34080 all appropriate places.
34082 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
34084 PR tree-optimization/56424
34085 * ipa-split.c (split_function): Do not set the RSO flag if result is
34086 not by reference and its type is a register type.
34088 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
34090 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
34091 (microblaze_legitimate_pic_operand): Likewise
34092 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
34093 new function microblaze_legitimate_pic_operand
34094 * config/microblaze/microblaze-protos.h
34095 (microblaze_legitimate_pic_operand): Declare.
34097 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34099 * config/microblaze/predicates.md (call_insn_simple_operand):
34100 New predicate for supported rtx code types.
34101 * config/microblaze/microblaze.md (call_internal1): Use
34102 call_insn_simple_operand predicate.
34104 2013-03-04 Jakub Jelinek <jakub@redhat.com>
34106 PR middle-end/56461
34107 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
34108 partitions.ordered_remove.
34110 PR middle-end/56461
34111 * tree-vect-stmts.c (vectorizable_conversion): Don't call
34112 vec_oprnds0.create (1) for modifier == NONE.
34114 PR middle-end/56461
34115 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
34116 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
34117 vec_oprnds1 right before pushing anything to it for
34120 PR middle-end/56461
34121 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
34122 set nbbs to 0 instead of having separate code path.
34123 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
34124 instead of false as last argument if returning NULL.
34126 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
34128 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
34129 the attribute is now called "target" instead of "option".
34130 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
34131 * doc/tm.texi.in (Target Attributes): Likewise document the correct
34132 attribute/pragma name for TARGET_OPTION_VALID_P and
34133 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
34134 * doc/tm.texi: Regenerated.
34136 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
34138 * config/microblaze/microblaze.c:
34139 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
34140 * config/microblaze/microblaze.h: Add -mxl-reorder to
34142 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
34143 instructions emitted if TARGET_REORDER.
34144 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
34145 or 0 for -m/-mno case, but initialises as 2 to detect default use case
34148 2013-03-01 Xinliang David Li <davidxl@google.com>
34150 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
34153 2013-03-01 Jakub Jelinek <jakub@redhat.com>
34155 PR middle-end/56461
34156 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
34157 vector even when returning true. Fix up function comment formatting.
34159 PR middle-end/56461
34160 * ira-build.c (ira_loop_nodes_count): New variable.
34161 (create_loop_tree_nodes): Initialize it.
34162 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
34164 PR middle-end/56461
34165 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
34166 method on dr_chain and result_chain.
34167 * tree-vect-stmts.c (vectorizable_store): Only call
34168 result_chain.create if j == 0.
34170 PR middle-end/56461
34171 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
34172 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
34173 before overwriting it.
34175 2013-03-01 Tobias Burnus <burnus@net-b.de>
34177 * doc/extended.texi (C Extensions): Change order in @menu
34179 (Other MIPS Built-in Functions): Move last MIPS entry before
34180 "picoChip Built-in Functions".
34181 (SH Built-in Functions): Move after RX Built-in Functions.
34182 * doc/gcc.texi (Introduction): Change order in @menu
34184 * doc/md.texi (Constraints): Ditto.
34185 * gty.texi (Type Information): Ditto.
34186 (User-provided marking routines for template types): Make
34188 * doc/invoke.texi (AArch64 Options): Move before
34189 "Adapteva Epiphany Options".
34191 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
34192 Jakub Jelinek <jakub@redhat.com>
34195 * asan.c (gate_asan): Lookup no_sanitize_address instead of
34196 no_address_safety_analysis attribute.
34197 * doc/extend.texi (no_address_safety_attribute): Rename to
34198 no_sanitize_address attribute, mention no_address_safety_analysis
34199 attribute as deprecated alias.
34201 2013-02-28 Jakub Jelinek <jakub@redhat.com>
34203 PR middle-end/56461
34204 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
34205 type to vec<vec<tree> > *.
34206 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
34207 to be vec<tree> instead of vec<tree> *, set vec_defs
34208 to vNULL and call vec_defs.create (number_of_vects), adjust other
34210 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
34211 vectorizable_condition): Adjust vect_get_slp_defs callers.
34213 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
34215 * config/aarch64/aarch64.c
34216 (aarch64_float_const_representable): Remove unused variable.
34218 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
34220 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
34222 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
34224 * config/aarch64/aarch64-builtins.c
34225 (aarch64_init_simd_builtins): Make static.
34227 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
34229 * config/aarch64/aarch64.c
34230 (aarch64_simd_make_constant): Make static.
34232 2013-02-28 Martin Jambor <mjambor@suse.cz>
34234 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
34235 with no initialization to the RHS of debug statements.
34237 2013-02-28 Martin Jambor <mjambor@suse.cz>
34239 PR tree-optimization/56294
34240 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
34242 (get_access_replacement): Do not call create_access_replacement.
34243 Assert a replacement exists.
34244 (get_repl_default_def_ssa_name): Create the replacement declaration
34247 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34249 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
34250 final_end_function.
34252 2013-02-28 Marek Polacek <polacek@redhat.com>
34254 PR rtl-optimization/56466
34255 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
34256 if we're changing a loop.
34257 (peel_loops_completely): Likewise.
34259 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
34262 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
34264 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
34267 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
34268 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
34269 INTX_FTYPE_FX, FX_FTYPE_INTX.
34270 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
34272 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
34274 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
34275 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
34276 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
34277 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
34278 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
34279 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
34280 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
34281 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
34282 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
34283 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
34284 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
34285 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
34286 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
34287 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
34288 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
34289 (avrxmega6): Increase max flash segments from 5 to 6.
34290 * config/avr/t-multilib: Regenerate.
34291 * config/avr/avr-tables.opt: Regenerate.
34292 * doc/avr-mmcu.texi: Regenerate.
34294 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
34296 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
34297 (avr_device_to_arch): Rename to avr_device_to_ld.
34298 (avr_device_to_as): New prototype.
34299 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
34300 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
34301 * config/avr/driver-avr.c (avr_device_to_as): New.
34302 (avr_device_to_arch): Rename to avr_device_to_ld.
34304 2013-02-27 Jakub Jelinek <jakub@redhat.com>
34306 PR middle-end/56461
34307 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
34308 method on dr_chain and result_chain.
34310 PR middle-end/56461
34311 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
34312 pointer_set_destroy on not_executed_last_iteration.
34314 PR middle-end/56461
34315 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
34317 PR middle-end/56461
34318 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
34319 FOR_EACH_DEFINED_FUNCTION when freeing state.
34321 PR middle-end/56461
34322 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
34324 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
34327 PR middle-end/56461
34328 * ipa-cp.c (decide_whether_version_node): Call vec_free on
34329 known_aggs[i].items and release known_aggs vector.
34331 PR middle-end/56461
34332 * ipa-reference.c (propagate): Free node_info even for alias nodes.
34334 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34336 * config/microblaze/microblaze.c (microblaze_emit_compare):
34337 Use xor for EQ/NE comparisions.
34338 * config/microblaze/microblaze.md (cstoresf4): Add constraints
34339 (cbranchsf4): Adjust operator to comparison_operator.
34341 2013-02-27 Jakub Jelinek <jakub@redhat.com>
34343 PR middle-end/56461
34344 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
34346 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
34347 vec_safe_push, always update *slot.
34348 (redirect_edge_var_map_clear): Use vec_free.
34349 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
34350 (free_var_map_entry): Use vec_free.
34351 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
34352 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
34354 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
34356 PR middle-end/45472
34357 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
34358 when the may_trap_p bit of the exprs being merged differs.
34359 Reorder tests for speculativeness in the logical and operator.
34361 2013-02-27 Jakub Jelinek <jakub@redhat.com>
34363 * incpath.c (add_standard_paths): Use reconcat instead of concat
34364 where appropriate and avoid leaking memory.
34366 * opts.h: Include obstack.h.
34367 (opts_concat): New prototype.
34368 (opts_obstack): New declaration.
34369 * opts.c (opts_concat): New function.
34370 (opts_obstack): New variable.
34371 (init_options_struct): Call gcc_init_obstack on opts_obstack.
34372 (finish_options): Use opts_concat instead of concat
34373 and XOBNEWVEC instead of XNEWVEC.
34374 * opts-common.c (generate_canonical_option, decode_cmdline_option,
34375 generate_option): Likewise.
34376 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
34377 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
34380 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
34381 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
34383 2013-02-26 Jakub Jelinek <jakub@redhat.com>
34385 PR middle-end/56461
34386 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
34388 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
34390 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
34391 (arm_block_move_unaligned_straight): Likewise.
34392 (arm_adjust_block_mem): Likewise.
34394 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
34397 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
34398 temp, cond and label.
34399 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
34402 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
34403 * config/c6x/c6x.h (dbx_register_map): Update declaration.
34406 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
34407 of prologue/epilogue functions.
34410 * config/tilegx/tilegx.c (tilegx_expand_prologue):
34411 Remove unused variable cfa_offset.
34412 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
34415 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
34416 type promotion to unsigned.
34419 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
34420 for HOST_WIDE_INT of 32 bit / same size as int.
34421 (arm_block_move_unaligned_straight): Likewise.
34422 (arm_adjust_block_mem): Likewise.
34425 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
34428 2013-02-26 Marek Polacek <polacek@redhat.com>
34430 PR tree-optimization/56426
34431 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
34433 2013-02-26 Richard Biener <rguenther@suse.de>
34436 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
34437 unused variable loops.
34439 2013-02-26 Jakub Jelinek <jakub@redhat.com>
34441 PR tree-optimization/56448
34442 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
34443 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
34444 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
34445 later operands of the references, or even first operand for
34446 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
34448 PR tree-optimization/56443
34449 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
34450 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
34451 to type_for_mode langhook.
34453 2013-02-25 Matt Turner <mattst88@gmail.com>
34455 * doc/invoke.texi: Document r4700.
34457 2013-02-25 Richard Biener <rguenther@suse.de>
34459 PR tree-optimization/56175
34460 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
34462 (simplify_bitwise_binary): ... here. Also guard the conversion
34463 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
34465 2013-02-25 Catherine Moore <clm@codesourcery.com>
34468 2013-02-24 Catherine Moore <clm@codesourcery.com>
34469 Maciej W. Rozycki <macro@codesourcery.com>
34470 Tom de Vries <tom@codesourcery.com>
34471 Nathan Sidwell <nathan@codesourcery.com>
34472 Iain Sandoe <iain@codesourcery.com>
34473 Nathan Froyd <froydnj@codesourcery.com>
34474 Chao-ying Fu <fu@mips.com>
34476 * doc/extend.texi: (micromips, nomicromips, nocompression):
34477 Document new function attributes.
34478 * doc/invoke.texi (minterlink-compressed, mmicromips,
34479 m14k, m14ke, m14kec): Document new options.
34480 (minterlink-mips16): Update documentation.
34481 * doc/md.texi (ZC, ZD): Document new constraints.
34482 * configure.ac (gcc_cv_as_micromips): Check if linker
34483 supports the .set micromips directive.
34484 * configure: Regenerate.
34485 * config.in: Regenerate.
34486 * config/mips/mips-tables.opt: Regenerate.
34487 * config/mips/micromips.md: New file.
34488 * constraints.md (ZC, AD): New constraints.
34489 * config/mips/predicates.md (movep_src_register): New predicate.
34490 (movep_src_operand): New predicate.
34491 (non_volatile_mem_operand): New predicate.
34492 * config/mips/mips.md (multimem): New type.
34493 (length): Differentiate between 17-bit and 18-bit branch offsets.
34494 (MOVEP1, MOVEP2): New mode iterator.
34495 (mov_<load>l): Use ZC constraint.
34496 (mov_<load>r): Likewise.
34497 (mov_<store>l): Likewise.
34498 (mov_<store>r): Likewise.
34499 (*branch_equality<mode>_inverted): Add microMIPS support.
34500 (*branch_equality<mode>): Likewise.
34501 (*jump_absolute): Likewise.
34502 (indirect_jump_<mode>): Likewise.
34503 (tablejump_<mode>): Likewise.
34504 (<optab>_internal): Likewise.
34505 (sibcall_internal): Likewise.
34506 (sibcall_value_internal): Likewise.
34507 (prefetch): Use constraint ZD.
34508 * config/mips/mips.opt (minterlink-compressed): New option.
34509 (minterlink-mips16): Now an alias for minterlink-compressed.
34510 (mmicromips): New option.
34511 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34512 (compare_and_swap_12): Likewise.
34513 (sync_add<mode>): Likewise.
34514 (sync_<optab>_12): Likewise.
34515 (sync_old_<optab>_12): Likewise.
34516 (sync_new_<optab>_12): Likewise.
34517 (sync_nand_12): Likewise.
34518 (sync_old_nand_12): Likewise.
34519 (sync_new_nand_12): Likewise.
34520 (sync_sub<mode>): Likewise.
34521 (sync_old_add<mode>): Likewise.
34522 (sync_old_sub<mode>): Likewise.
34523 (sync_new_add<mode>): Likewise.
34524 (sync_new_sub<mode>): Likewise.
34525 (sync_<optab><mode>): Likewise.
34526 (sync_old_<optab><mode>): Likewise.
34527 (sync_new_<optab><mode>): Likewise.
34528 (sync_nand<mode>): Likewise.
34529 (sync_old_nand<mode>): Likewise.
34530 (sync_new_nand<mode>): Likewise.
34531 (sync_lock_test_and_set<mode>): Likewise.
34532 (test_and_set_12): Likewise.
34533 (atomic_compare_and_swap<mode>): Likewise.
34534 (atomic_exchange<mode>_llsc): Likewise.
34535 (atomic_fetch_add<mode>_llsc): Likewise.
34536 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34537 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34538 (umips_save_restore_pattern_p): Likewise.
34539 (umips_load_store_pair_p): Likewise.
34540 (umips_output_load_store_pair): Likewise.
34541 (umips_movep_target_p): Likewise.
34542 (umips_12bit_offset_address_p): Likewise.
34543 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34544 (mips_base_mips16): Rename this...
34545 (mips_base_compression_flags): ...to this. Update all uses.
34546 (mips_attribute_table): Add micromips, nomicromips and nocompression.
34547 (mips_mips16_decl_p): Delete.
34548 (mips_nomips16_decl_p): Delete.
34549 (mips_get_compress_on_flags): New function.
34550 (mips_get_compress_off_flags): New function.
34551 (mips_get_compress_mode): New function.
34552 (mips_get_compress_on_name): New function.
34553 (mips_get_compress_off_name): New function.
34554 (mips_insert_attributes): Support multiple compression types.
34555 (mips_merge_decl_attributes): Likewise.
34556 (umips_12bit_offset_address_p): New function.
34557 (mips_start_function_definition): Emit .set micromips directive.
34558 (mips_call_may_need_jalx_p): New function.
34559 (mips_function_ok_for_sibcall): Add microMIPS support.
34560 (mips_print_operand_punctuation): Support short delay slots and
34562 (umips_swm_mask, umips_swm_encoding): New.
34563 (umips_build_save_restore): New function.
34564 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34565 (was_mips16_p): Remove.
34566 (old_compression_mode): New.
34567 (mips_set_compression_mode): New function.
34568 (mips_set_current_function): Add microMIPS support.
34569 (mips_option_override): Likewise.
34570 (umips_save_restore_pattern_p): New function.
34571 (umips_output_save_restore): New function.
34572 (umips_load_store_pair_p_1): New function.
34573 (umips_load_store_pair_p): New function.
34574 (umips_output_load_store_pair_1): New function.
34575 (umips_output_load_store_pair): New function.
34576 (umips_movep_target_p) New function.
34577 (mips_prepare_pch_save): Add microMIPS support.
34578 * config/mips/mips.h (TARGET_COMPRESSION): New.
34579 (TARGET_CPU_CPP_BUILTINS): Update macro
34580 to use new compression flags and to support microMIPS.
34581 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34582 (MIPS_ARCH_FLOAT_SPEC): Likewise.
34583 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34584 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34585 (ASM_SPEC): Support mmicromips and mno-micromips.
34586 (M16STORE_REG_P): New macro.
34587 (MIPS_CALL): Support TARGET_MICROMIPS.
34588 (MICROMIPS_J): New macro.
34589 (mips_base_mips16): Rename this...
34590 (mips_base_compression_flags): ...to this.
34591 (UMIPS_12BIT_OFFSET_P): New macro.
34592 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34593 (MULTILIB_DIRNAMES): Likewise.
34595 2013-02-25 Tom de Vries <tom@codesourcery.com>
34597 PR rtl-optimization/56131
34598 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
34599 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
34600 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
34602 2013-02-25 Tobias Burnus <burnus@net-b.de>
34604 * doc/invoke.texi (-fsanitize=): Move from optimization
34605 to debugging options.
34607 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
34609 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
34611 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
34612 Alexander Monakov <amonakov@ispras.ru>
34614 PR middle-end/56077
34615 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
34616 flush pending lists also on non-jumps. Adjust comment.
34618 2013-02-24 Catherine Moore <clm@codesourcery.com>
34619 Maciej W. Rozycki <macro@codesourcery.com>
34620 Tom de Vries <tom@codesourcery.com>
34621 Nathan Sidwell <nathan@codesourcery.com>
34622 Iain Sandoe <iain@codesourcery.com>
34623 Nathan Froyd <froydnj@codesourcery.com>
34624 Chao-ying Fu <fu@mips.com>
34626 * doc/extend.texi: (micromips, nomicromips, nocompression):
34627 Document new function attributes.
34628 * doc/invoke.texi (minterlink-compressed, mmicromips,
34629 m14k, m14ke, m14kec): Document new options.
34630 (minterlink-mips16): Update documentation.
34631 * doc/md.texi (ZC, ZD): Document new constraints.
34632 * configure.ac (gcc_cv_as_micromips): Check if linker
34633 supports the .set micromips directive.
34634 * configure: Regenerate.
34635 * config.in: Regenerate.
34636 * config/mips/mips-tables.opt: Regenerate.
34637 * config/mips/micromips.md: New file.
34638 * constraints.md (ZC, AD): New constraints.
34639 * config/mips/predicates.md (movep_src_register): New predicate.
34640 (movep_src_operand): New predicate.
34641 (non_volatile_mem_operand): New predicate.
34642 * config/mips/mips.md (multimem): New type.
34643 (length): Differentiate between 17-bit and 18-bit branch offsets.
34644 (MOVEP1, MOVEP2): New mode iterator.
34645 (mov_<load>l): Use ZC constraint.
34646 (mov_<load>r): Likewise.
34647 (mov_<store>l): Likewise.
34648 (mov_<store>r): Likewise.
34649 (*branch_equality<mode>_inverted): Add microMIPS support.
34650 (*branch_equality<mode>): Likewise.
34651 (*jump_absolute): Likewise.
34652 (indirect_jump_<mode>): Likewise.
34653 (tablejump_<mode>): Likewise.
34654 (<optab>_internal): Likewise.
34655 (sibcall_internal): Likewise.
34656 (sibcall_value_internal): Likewise.
34657 (prefetch): Use constraint ZD.
34658 * config/mips/mips.opt (minterlink-compressed): New option.
34659 (minterlink-mips16): Now an alias for minterlink-compressed.
34660 (mmicromips): New option.
34661 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34662 (compare_and_swap_12): Likewise.
34663 (sync_add<mode>): Likewise.
34664 (sync_<optab>_12): Likewise.
34665 (sync_old_<optab>_12): Likewise.
34666 (sync_new_<optab>_12): Likewise.
34667 (sync_nand_12): Likewise.
34668 (sync_old_nand_12): Likewise.
34669 (sync_new_nand_12): Likewise.
34670 (sync_sub<mode>): Likewise.
34671 (sync_old_add<mode>): Likewise.
34672 (sync_old_sub<mode>): Likewise.
34673 (sync_new_add<mode>): Likewise.
34674 (sync_new_sub<mode>): Likewise.
34675 (sync_<optab><mode>): Likewise.
34676 (sync_old_<optab><mode>): Likewise.
34677 (sync_new_<optab><mode>): Likewise.
34678 (sync_nand<mode>): Likewise.
34679 (sync_old_nand<mode>): Likewise.
34680 (sync_new_nand<mode>): Likewise.
34681 (sync_lock_test_and_set<mode>): Likewise.
34682 (test_and_set_12): Likewise.
34683 (atomic_compare_and_swap<mode>): Likewise.
34684 (atomic_exchange<mode>_llsc): Likewise.
34685 (atomic_fetch_add<mode>_llsc): Likewise.
34686 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34687 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34688 (umips_save_restore_pattern_p): Likewise.
34689 (umips_load_store_pair_p): Likewise.
34690 (umips_output_load_store_pair): Likewise.
34691 (umips_movep_target_p): Likewise.
34692 (umips_12bit_offset_address_p): Likewise.
34693 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34694 (mips_base_mips16): Rename this...
34695 (mips_base_compression_flags): ...to this. Update all uses.
34696 (mips_attribute_table): Add micromips, nomicromips and nocompression.
34697 (mips_mips16_decl_p): Delete.
34698 (mips_nomips16_decl_p): Delete.
34699 (mips_get_compress_on_flags): New function.
34700 (mips_get_compress_off_flags): New function.
34701 (mips_get_compress_mode): New function.
34702 (mips_get_compress_on_name): New function.
34703 (mips_get_compress_off_name): New function.
34704 (mips_insert_attributes): Support multiple compression types.
34705 (mips_merge_decl_attributes): Likewise.
34706 (umips_12bit_offset_address_p): New function.
34707 (mips_start_function_definition): Emit .set micromips directive.
34708 (mips_call_may_need_jalx_p): New function.
34709 (mips_function_ok_for_sibcall): Add microMIPS support.
34710 (mips_print_operand_punctuation): Support short delay slots and
34712 (umips_swm_mask, umips_swm_encoding): New.
34713 (umips_build_save_restore): New function.
34714 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34715 (was_mips16_p): Remove.
34716 (old_compression_mode): New.
34717 (mips_set_compression_mode): New function.
34718 (mips_set_current_function): Add microMIPS support.
34719 (mips_option_override): Likewise.
34720 (umips_save_restore_pattern_p): New function.
34721 (umips_output_save_restore): New function.
34722 (umips_load_store_pair_p_1): New function.
34723 (umips_load_store_pair_p): New function.
34724 (umips_output_load_store_pair_1): New function.
34725 (umips_output_load_store_pair): New function.
34726 (umips_movep_target_p) New function.
34727 (mips_prepare_pch_save): Add microMIPS support.
34728 * config/mips/mips.h (TARGET_COMPRESSION): New.
34729 (TARGET_CPU_CPP_BUILTINS): Update macro
34730 to use new compression flags and to support microMIPS.
34731 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34732 (MIPS_ARCH_FLOAT_SPEC): Likewise.
34733 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34734 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34735 (ASM_SPEC): Support mmicromips and mno-micromips.
34736 (M16STORE_REG_P): New macro.
34737 (MIPS_CALL): Support TARGET_MICROMIPS.
34738 (MICROMIPS_J): New macro.
34739 (mips_base_mips16): Rename this...
34740 (mips_base_compression_flags): ...to this.
34741 (UMIPS_12BIT_OFFSET_P): New macro.
34742 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34743 (MULTILIB_DIRNAMES): Likewise.
34745 2013-02-24 Jakub Jelinek <jakub@redhat.com>
34748 * target-globals.c (save_target_globals): For init_reg_sets and
34749 target_reinit remporarily set this_fn_optabs to this_target_optabs.
34751 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
34753 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
34754 * config/aarch64/t-aarch64
34755 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
34757 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
34759 PR inline-asm/56148
34760 * lra-constraints.c (process_alt_operands): Reload operand
34761 conflicting with earlier clobber only if no more other conflicting
34764 2013-02-22 Jakub Jelinek <jakub@redhat.com>
34767 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
34768 if not linking a shared library.
34770 2013-02-22 Seth LaForge <sethml@google.com>
34772 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
34774 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
34776 * config/arm/arm.md (split for extendsidi): Update condition.
34777 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
34778 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
34779 (qhs_zextenddi_cstr): Likewise.
34781 2013-02-21 Jakub Jelinek <jakub@redhat.com>
34783 PR middle-end/56420
34784 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
34785 avoid signed wrapping.
34786 (expand_mult): Handle properly multiplication by
34787 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
34788 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
34789 in the compiler if coeff is HOST_WIDE_INT_MIN.
34790 (expand_divmod): Don't make ext_op1 static, change it's type to
34791 uhwi. Avoid undefined behavior in -INTVAL (op1).
34793 PR rtl-optimization/50339
34794 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
34796 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
34797 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
34798 into splitting_ashiftrt field.
34799 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
34801 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
34804 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
34806 PR middle-end/56108
34807 * trans-mem.c (execute_tm_mark): Do not expand transactions that
34808 are sure to go irrevocable.
34810 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
34812 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
34813 scalars are valid operands.
34815 2013-02-21 Martin Jambor <mjambor@suse.cz>
34817 PR tree-optimization/56310
34818 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
34819 only matching indices and non-negative final offsets.
34820 (intersect_aggregates_with_edge): Pass src_idx to
34821 agg_replacements_to_vector. Pass src_idx insstead of index to
34822 intersect_with_agg_replacements.
34824 2013-02-21 Martin Jambor <mjambor@suse.cz>
34826 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
34827 instead of hard-wired defaults.
34829 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
34831 * doc/invoke.texi (MIPS Options): Update documentation of the
34832 floating-point multiply-accumulate instruction restrictions.
34834 2013-02-21 Kostya Serebryany <kcc@google.com>
34836 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
34837 asan_shadow_offset on x86_64 linux.
34839 2013-02-21 Richard Biener <rguenther@suse.de>
34841 PR tree-optimization/56415
34843 2013-02-11 Richard Biener <rguenther@suse.de>
34845 PR tree-optimization/56273
34846 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34849 2013-02-21 Jakub Jelinek <jakub@redhat.com>
34852 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
34855 PR inline-asm/56405
34856 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
34857 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
34859 2013-02-20 Jan Hubicka <jh@suse.cz>
34861 PR tree-optimization/56265
34862 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
34863 when target is referenced for first time.
34865 2013-02-20 Richard Biener <rguenther@suse.de>
34867 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
34868 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
34869 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
34870 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
34871 not return anything.
34872 (rename_ssa_copies): Do not remove unused locals.
34873 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
34874 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
34875 * passes.c (execute_function_todo): Do not schedule unused locals
34876 removal if cleanup_tree_cfg did something.
34877 * tree-ssa-live.c (remove_unused_locals): Dump statistics
34878 about the number of removed locals.
34880 2013-02-20 Richard Biener <rguenther@suse.de>
34882 PR tree-optimization/56398
34883 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
34885 2013-02-20 Martin Jambor <mjambor@suse.cz>
34887 PR tree-optimization/55334
34888 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
34889 restricted pointers to arrays.
34891 2013-02-20 Richard Biener <rguenther@suse.de>
34892 Jakub Jelinek <jakub@redhat.com>
34894 PR tree-optimization/56396
34895 * tree-ssa-ccp.c (n_const_val): New static variable.
34896 (get_value): Return NULL for SSA names we don't have a lattice
34898 (ccp_initialize): Initialize n_const_val.
34899 * tree-ssa-copy.c (n_copy_of): New static variable.
34900 (init_copy_prop): Initialize n_copy_of.
34901 (get_value): Return NULL_TREE for SSA names we don't have a
34904 2013-02-20 Martin Jambor <mjambor@suse.cz>
34906 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
34908 2013-02-20 Richard Biener <rguenther@suse.de>
34910 * genpreds.c (write_lookup_constraint): Do not compare first
34911 letter of the constraint again.
34913 2013-02-20 Richard Biener <rguenther@suse.de>
34915 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
34917 (get_use_iv_cost): Terminate hashtable walk when coming across
34920 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
34922 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
34923 reassociation for avx2 targets.
34925 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34927 * config/microblaze/microblaze.c: microblaze_has_clz = 0
34928 Add version check for v8.10.a to enable microblaze_has_clz
34929 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
34930 version and TARGET_PATTERN_COMPARE check
34931 * config/microblaze/microblaze.md: New clzsi2 instruction
34933 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34935 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
34936 function before branching.
34938 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
34940 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
34942 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
34944 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
34946 PR middle-end/55889
34947 * sel-sched.c: Include ira.h.
34948 (implicit_clobber_conflict_p): New function.
34949 (moveup_expr): Use it.
34950 * Makefile.in (sel-sched.o): Depend on ira.h.
34952 2013-02-19 Richard Biener <rguenther@suse.de>
34954 PR tree-optimization/56384
34955 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
34956 (vn_hash_type): Split out from ...
34957 (vn_hash_constant_with_type): ... here.
34958 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
34959 (vn_phi_eq): Compare types from vn_phi_s structure.
34960 (vn_phi_lookup): Populate vn_phi_s type.
34961 (vn_phi_insert): Likewise.
34963 2013-02-19 Jakub Jelinek <jakub@redhat.com>
34965 PR tree-optimization/56350
34966 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
34967 if haven't found reduction or nested cycle operand, rather than
34968 asserting we must find it.
34970 PR tree-optimization/56381
34971 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
34974 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
34975 Jakub Jelinek <jakub@redhat.com>
34978 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
34979 (swap_optab_enable): Same.
34980 (init_all_optabs): Use argument instead of global.
34981 * tree.h (struct tree_optimization_option): New field target_optabs.
34982 * expr.h (init_all_optabs): Add argument to prototype.
34983 (TREE_OPTIMIZATION_OPTABS): New.
34984 (save_optabs_if_changed): Protoize.
34985 * optabs.h: Declare this_fn_optabs.
34986 * optabs.c (save_optabs_if_changed): New.
34987 Declare this_fn_optabs.
34988 (init_optabs): Add argument to init_all_optabs() call.
34989 * function.c (invoke_set_current_function_hook): Handle per
34991 * function.h (struct function): New field optabs.
34992 * config/mips/mips.c (mips_set_mips16_mode): Handle when
34993 optimization_current_node has changed.
34994 * target-globals.h (save_target_globals_default_opts): Protoize.
34995 * target-globals.c (save_target_globals_default_opts): New.
34997 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35000 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
35001 registers %fr12 and %fr12R as call used.
35004 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
35005 and HImode, require all displacements to be an integer multiple of
35007 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
35008 only allow QImode and HImode when reload is in progress and strict is
35009 true. Likewise for symbolic addresses. Use base14_operand to check
35010 displacements in REG+BASE addresses.
35012 2013-02-18 Richard Biener <rguenther@suse.de>
35014 PR tree-optimization/56366
35015 * tree-vect-loop.c (get_initial_def_for_induction): Properly
35016 handle sign-conversion of outer-loop initial induction value.
35018 2013-02-18 Richard Biener <rguenther@suse.de>
35020 PR middle-end/56349
35021 * cfghooks.c (merge_blocks): If we merge a latch into another
35022 block adjust references to it.
35023 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
35024 (verify_loop_structure): Verify that a recorded latch is in fact
35027 2013-02-18 Richard Biener <rguenther@suse.de>
35029 PR tree-optimization/56321
35030 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
35031 order SSA name release and virtual operand unlinking.
35033 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35035 * config/microblaze/microblaze.md (save_stack_block): Define.
35036 (restore_stack_block): Likewise.
35038 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35040 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
35041 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
35042 * config/microblaze/microblaze.c (microblaze_option_override):
35043 Bail out early for PIC modes when target does not support PIC.
35045 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35047 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
35048 Replace with a microblaze version.
35049 (microblaze_trampoline_init): Adapt for microblaze.
35050 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
35053 2013-02-16 Jakub Jelinek <jakub@redhat.com>
35054 Dodji Seketeli <dodji@redhat.com>
35057 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
35058 (instrument_mem_region_access): Do not forget to always put
35059 instrumentation of the of 'base' and 'base + len' in a "if (len !=
35060 0) statement, even for cases where either 'base' or 'base + len'
35061 are not instrumented -- because they have been previously
35062 instrumented. Simplify the logic by putting all the statements
35063 instrument 'base + len' inside a sequence, and then insert that
35064 sequence right before the current insertion point. Then, to
35065 instrument 'base + len', just get an iterator on that statement.
35066 And do not forget to update the pointer to iterator the function
35067 received as argument.
35069 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
35071 PR rtl-optimization/56348
35072 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
35074 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
35076 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
35077 (clean_graph_dump_file): Pass base to start_graph_dump.
35079 2013-02-14 Richard Henderson <rth@redhat.com>
35082 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
35084 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
35086 * collect2-aix.h: Define F_LOADONLY.
35088 2013-02-14 Richard Biener <rguenther@suse.de>
35091 * varasm.c (output_constant_def_1): Get the decl representing
35092 the constant as argument.
35093 (output_constant_def): Wrap output_constant_def_1.
35094 (make_decl_rtl): Use output_constant_def_1 with the decl
35095 representing the constant.
35096 (build_constant_desc): Optionally re-use a decl already
35097 representing the constant.
35098 (tree_output_constant_def): Adjust.
35100 2013-02-14 Dodji Seketeli <dodji@redhat.com>
35103 * asan.c (instrument_builtin_call): Really put the length of the
35104 second source argument into src1_len.
35106 2013-02-13 Jakub Jelinek <jakub@redhat.com>
35108 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
35109 argument. If it is false, don't create edge from then_bb to
35111 (insert_if_then_before_iter): Pass true to it.
35112 (build_check_stmt): Pass false to it.
35113 (transform_statements): Flush hash table only on extended basic
35114 block boundaries, rather than at the beginning of every bb.
35115 Don't flush hash table on nonfreeing_call_p calls.
35116 * tree-flow.h (nonfreeing_call_p): New prototype.
35117 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
35119 2013-02-13 David S. Miller <davem@davemloft.net>
35121 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
35123 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
35126 * ira.c (max_regno_before_ira): Move from ...
35128 (fix_reg_equiv_init): Use max_regno_before_ira instead of
35131 2013-02-13 Jakub Jelinek <jakub@redhat.com>
35133 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
35135 2013-02-13 Richard Biener <rguenther@suse.de>
35138 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
35139 globals in MEM_REFs.
35141 2013-02-13 Richard Biener <rguenther@suse.de>
35143 * loop-init.c (loop_optimizer_init): Clear loop state when
35144 re-initializing preserved loops.
35145 * loop-unswitch.c (unswitch_single_loop): Return whether
35146 we unswitched the loop. Do not verify loop state here.
35147 (unswitch_loops): When we unswitched a loop discover new loops.
35149 2013-02-13 Kostya Serebryany <kcc@google.com>
35151 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
35153 * sanitizer.def: Rename __asan_init to __asan_init_v1.
35155 2013-02-12 Dodji Seketeli <dodji@redhat.com>
35157 Avoid instrumenting duplicated memory access in the same basic block
35158 * Makefile.in (asan.o): Add new dependency on hash-table.h
35159 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
35160 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
35161 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
35162 (free_mem_ref_resources, has_mem_ref_been_instrumented)
35163 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
35164 (get_mem_ref_of_assignment): New functions.
35165 (get_mem_refs_of_builtin_call): Extract from
35166 instrument_builtin_call and tweak a little bit to make it fit with
35168 (instrument_builtin_call): Use the new
35169 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
35170 of is_gimple_builtin_call.
35171 (instrument_derefs, instrument_mem_region_access): Insert the
35172 instrumented memory reference into the hash table.
35173 (maybe_instrument_assignment): Renamed instrument_assignment into
35174 this, and change it to advance the iterator when instrumentation
35175 actually happened and return true in that case. This makes it
35176 homogeneous with maybe_instrument_assignment, and thus give a
35177 chance to callers to be more 'regular'.
35178 (transform_statements): Clear the memory reference hash table
35179 whenever we enter a new BB, when we cross a function call, or when
35180 we are done transforming statements. Use
35181 maybe_instrument_assignment instead of instrumentation. No more
35182 need to special case maybe_instrument_assignment and advance the
35183 iterator after calling it; it's now handled just like
35184 maybe_instrument_call. Update comment.
35186 2013-02-13 Richard Biener <rguenther@suse.de>
35188 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
35189 Fix loop discovery code.
35191 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
35193 PR inline-asm/56148
35194 * lra-constraints.c (process_alt_operands): Match early clobber
35195 operand with itself. Check conflicts with earlyclobber only if
35196 the operand is not reloaded. Prefer to reload conflicting operand
35197 if earlyclobber and matching operands are the same.
35199 2013-02-12 Richard Biener <rguenther@suse.de>
35202 * lto-streamer-out.c (write_symbol): Do not output symbols
35203 for hard register variables.
35205 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
35208 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
35209 (umulsidi3_insn, mulsidi3_insn): New insns.
35211 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
35213 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
35214 (struct tune_params): Add vec_costs field.
35215 * config/arm/arm.c (arm_builtin_vectorization_cost)
35216 (arm_add_stmt_cost): New functions.
35217 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
35218 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
35219 (arm_default_vec_cost): New struct of type cpu_vec_costs.
35220 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
35221 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
35222 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
35223 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
35225 2013-02-12 Richard Biener <rguenther@suse.de>
35228 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
35229 decls again if possible.
35231 2013-02-12 Richard Biener <rguenther@suse.de>
35233 PR middle-end/56288
35234 * tree-ssa.c (verify_ssa_name): Fix check, move
35235 SSA_NAME_IN_FREE_LIST check up.
35237 2013-02-12 Jakub Jelinek <jakub@redhat.com>
35238 Steven Bosscher <steven@gcc.gnu.org>
35240 PR rtl-optimization/56151
35241 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
35242 equal to op0 or op1, and last_insn pattern is CODE operation
35243 with MEM dest and one of the operands matches that MEM.
35245 2013-02-11 Sriraman Tallam <tmsriram@google.com>
35247 * doc/extend.texi: Document Function Multiversioning and "default"
35248 parameter string to target attribute.
35249 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
35250 target attribute parameter is "default".
35251 (ix86_compare_version_priority): Remove checks for target attribute.
35252 (ix86_mangle_function_version_assembler_name): Change error to sorry.
35253 Remove check for target attribute equal to NULL. Add assert.
35254 (ix86_generate_version_dispatcher_body): Change error to sorry.
35256 2013-02-11 Iain Sandoe <iain@codesourcery.com>
35257 Jack Howarth <howarth@bromo.med.uc.edu>
35258 Patrick Marlier <patrick.marlier@gmail.com>
35261 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
35262 define ENDFILE_SPEC as TM_DESTRUCTOR.
35263 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
35265 2013-02-11 Alexander Potapenko <glider@google.com>
35266 Jack Howarth <howarth@bromo.med.uc.edu>
35267 Jakub Jelinek <jakub@redhat.com>
35270 * config/darwin.c (cdtor_record): Rename ctor_record.
35271 (sort_cdtor_records): Rename sort_ctor_records.
35272 (finalize_dtors): New routine to sort destructors by
35273 priority before use in assemble_integer.
35274 (machopic_asm_out_destructor): Use finalize_dtors if needed.
35276 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
35278 PR rtl-optimization/56275
35279 * simplify-rtx.c (avoid_constant_pool_reference): Check that
35280 offset is non-negative and less than cmode size before
35281 calling simplify_subreg.
35283 2013-02-11 Richard Biener <rguenther@suse.de>
35285 PR tree-optimization/56264
35286 * cfgloop.h (fix_loop_structure): Adjust prototype.
35287 * loop-init.c (fix_loop_structure): Return the number of
35288 newly discovered loops.
35289 * tree-cfgcleanup.c (repair_loop_structures): When new loops
35290 are discovered, do a full loop-closed SSA rewrite.
35292 2013-02-11 Richard Biener <rguenther@suse.de>
35294 PR tree-optimization/56273
35295 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
35297 (check_array_ref): Fix missing newline in dumps.
35298 (search_for_addr_array): Likewise.
35300 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
35302 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
35304 2013-02-09 Jakub Jelinek <jakub@redhat.com>
35307 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
35309 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
35311 PR rtl-optimization/56246
35312 * lra-constraints.c (simplify_operand_subreg): Try to reuse
35314 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
35315 constraints are satisfied.
35317 2013-02-08 Jeff Law <law@redhat.com>
35320 * emit-rtl.c (reg_is_parm_p): New function.
35321 * regs.h (reg_is_parm_p): New prototype.
35322 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
35323 callee-clobbered registers.
35325 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
35328 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
35329 If there is no implicit builtin declaration, just return NULL.
35331 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
35333 * config/i386/sse.md (FMAMODEM): New mode iterator.
35334 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
35335 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
35337 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
35339 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
35340 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
35341 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
35343 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35345 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
35346 (microblaze*-*-elf): Likewise.
35347 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
35349 * config/microblaze/microblaze-c.c: Add builtin defines for
35350 _LITTLE_ENDIAN and _BIG_ENDIAN.
35351 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
35352 add to TARGET_DEFAULT flags.
35353 Expand ASM_SPEC and LINK_SPEC.
35354 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
35355 * config/microblaze/microblaze.md: Update extendsidi2 and
35356 movdi_internal instructions to use low-order / high-order reg
35358 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
35359 options and inversemask / mask of LITTLE_ENDIAN.
35360 * config/microblaze/t-microblaze: Expand multilib options to
35361 include mlittle-endian (le) and update exceptions patterns.
35363 2013-02-08 Jakub Jelinek <jakub@redhat.com>
35365 PR rtl-optimization/56195
35366 * lra-constraints.c (get_reload_reg): Don't reuse regs
35367 if they have smaller mode than requested, if they have
35368 wider mode than requested, try to return a SUBREG.
35370 PR tree-optimization/56250
35371 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
35372 if type is unsigned and code isn't MULT_EXPR.
35374 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
35376 PR tree-optimization/56064
35377 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
35378 bits according to mode.
35379 * fixed-value.h (fixed_from_double_int)
35380 (const_fixed_from_double_int): Adjust comments.
35382 2013-02-08 Richard Biener <rguenther@suse.de>
35385 * lto-streamer.h (struct data_in): Remove current_file, current_line
35386 and current_col members.
35387 * lto-streamer-out.c (lto_output_location): Stream changed bits
35388 en-block for efficiency.
35389 * lto-streamer-in.c (clear_line_info): Remove.
35390 (lto_input_location): Cache current file, line and column
35391 globally via local statics. Read changed bits en-block.
35392 (input_function): Do not call clear_line_info.
35393 (lto_read_body): Likewise.
35394 (lto_input_toplevel_asms): Likewise.
35396 2013-02-08 Michael Matz <matz@suse.de>
35398 PR tree-optimization/52448
35399 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
35400 (nt_call_phase): New static.
35401 (add_or_mark_expr): Only mark accesses with newer phase than any
35403 (nonfreeing_call_p): New.
35404 (nt_init_block): Update nt_call_phase, mark blocks as visited.
35405 (nt_fini_block): Keep blocks marked as visited.
35406 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
35408 2013-02-08 Richard Biener <rguenther@suse.de>
35410 * ira.c (ira): Free broken dominator information.
35412 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
35414 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
35416 2013-02-08 Marek Polacek <polacek@redhat.com>
35418 * cfgloop.c (verify_loop_structure): Add more checking of headers.
35420 2013-02-08 Richard Biener <rguenther@suse.de>
35422 PR middle-end/56181
35423 * cfgloop.h (flow_loops_find): Adjust.
35424 (bb_loop_header_p): Declare.
35425 * cfgloop.c (bb_loop_header_p): New function split out from ...
35426 (flow_loops_find): ... here. Adjust function signature,
35427 support incremental loop structure update.
35428 (verify_loop_structure): Cleanup. Verify a loop is a loop.
35429 * cfgloopmanip.c (fix_loop_structure): Move ...
35430 * loop-init.c (fix_loop_structure): ... here.
35431 (apply_loop_flags): Split out from ...
35432 (loop_optimizer_init): ... here.
35433 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
35434 in incremental mode, only remove dead loops here.
35436 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
35439 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
35440 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
35441 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
35442 (*round<mode>3.libgcc): New insns for fixed-modes.
35443 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
35444 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
35445 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
35446 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
35447 implementations. Define to __builtin_avr_absFX,
35448 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
35449 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
35450 __builtin_avr_countlsFX, respectively.
35451 * config/avr/avr-c.c (target.h): Include it.
35452 (enum avr_builtin_id): New enum.
35453 (avr_resolve_overloaded_builtin): New static function.
35454 (avr_register_target_pragmas): Use it to set
35455 targetm.resolve_overloaded_builtin.
35456 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
35457 tree nodes used by DEF_BUILTIN.
35458 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
35459 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
35460 <AVR_BUILTIN_xxBITS>: Same.
35462 2013-02-08 Richard Biener <rguenther@suse.de>
35464 * cfgloop.c (verify_loop_structure): Properly handle
35465 a loop exiting to another loop header.
35466 * ira-int.h (ira_loops): Remove.
35467 * ira.c (ira_loops): Remove.
35468 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
35469 (do_reload): Use loop_optimizer_finalize.
35470 * ira-build.c (create_loop_tree_nodes): Use get_loops and
35471 number_of_loops to access the loop tree.
35472 (more_one_region_p): Likewise.
35473 (finish_loop_tree_nodes): Likewise.
35474 (rebuild_regno_allocno_maps): Likewise.
35475 (mark_loops_for_removal): Likewise.
35476 (mark_all_loops_for_removal): Likewise.
35477 (remove_unnecessary_regions): Likewise.
35478 (ira_build): Likewise.
35479 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
35481 2013-02-08 Richard Biener <rguenther@suse.de>
35483 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
35484 * ipa-pure-const.c (analyze_function): Avoid calling
35485 mark_irreducible_loops twice.
35486 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
35488 2013-02-07 David S. Miller <davem@davemloft.net>
35490 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
35492 * var-tracking.c (vt_add_function_parameter): Test the presence of
35493 HAVE_window_save properly and do not remap argument registers when
35494 we have a leaf function.
35496 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
35499 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
35501 * config/i386/i386.c (ix86_print_operand): Ditto.
35503 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
35505 * lra-constraints.c (process_alt_operands): Fix recently added comment.
35507 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
35509 PR rtl-optimization/56225
35510 * lra-constraints.c (process_alt_operands): Check that reload hard
35511 reg can hold value for strict_low_part.
35513 2013-02-07 Jakub Jelinek <jakub@redhat.com>
35516 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
35517 dwarf2out_end_function.
35518 (in_first_function_p, maybe_at_text_label_p,
35519 first_loclabel_num_not_at_text_label): New variables.
35520 (dwarf2out_var_location): In the first function find out
35521 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
35522 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
35525 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
35527 PR rtl-optimization/56178
35528 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
35529 SUBREG of a register. Tidy up related block of code.
35530 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
35531 note if the source is a register or a SUBREG of a register.
35533 2013-02-07 Jakub Jelinek <jakub@redhat.com>
35536 * config/rs6000/rs6000.md (ptrm): New mode attr.
35537 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
35538 call_value_indirect_aix<pttrsize>,
35539 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
35542 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
35544 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
35545 if -bnortl. Convert to strcmp and strncmp.
35547 2013-02-07 Alan Modra <amodra@gmail.com>
35550 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
35551 addresses won't wrap when offsetting.
35552 (rs6000_secondary_reload): Provide secondary reloads needed for
35553 wrapping LO_SUM addresses.
35555 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
35557 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
35558 MACH, just __MACH__.
35560 2013-02-06 Richard Biener <rguenther@suse.de>
35562 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
35563 instead of calling fix_loop_structure.
35565 2013-02-06 Jakub Jelinek <jakub@redhat.com>
35567 PR middle-end/56217
35568 * omp-low.c (use_pointer_for_field): Return false if
35569 lower_send_shared_vars doesn't generate any copy-out code.
35571 2013-02-06 Tom de Vries <tom@codesourcery.com>
35573 PR rtl-optimization/56131
35574 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
35575 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
35576 of the label is NULL. Add comment.
35578 2013-02-05 Jakub Jelinek <jakub@redhat.com>
35580 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
35583 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
35584 (STATIC_LIBTSAN_LIBS): Likewise.
35585 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
35586 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
35587 is defined, don't add anything else beyond that.
35588 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
35589 (LINK_COMMAND_SPEC): Use them.
35591 PR tree-optimization/56205
35592 * tree-stdarg.c (check_all_va_list_escapes): Return true if
35593 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
35594 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
35596 2013-02-05 Richard Biener <rguenther@suse.de>
35598 PR tree-optimization/53342
35599 PR tree-optimization/53185
35600 * tree-vectorizer.h (vect_check_strided_load): Remove.
35601 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
35602 not disallow peeling for vectorized strided loads.
35603 (vect_check_strided_load): Make static and simplify.
35604 (vect_analyze_data_refs): Adjust.
35605 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
35606 correctly when vectorizing strided loads.
35608 2013-02-05 Richard Biener <rguenther@suse.de>
35610 * doc/install.texi: Refer to ISL, not PPL.
35612 2013-02-05 Jan Hubicka <jh@suse.cz>
35614 PR tree-optimization/55789
35615 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
35617 2013-02-05 Jan Hubicka <jh@suse.cz>
35619 PR tree-optimization/55789
35620 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
35621 the dead call anyway.
35623 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
35626 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
35628 2013-02-04 Alexander Potapenko <glider@google.com>
35629 Jack Howarth <howarth@bromo.med.uc.edu>
35630 Jakub Jelinek <jakub@redhat.com>
35633 * config/darwin.c (sort_ctor_records): Stabilized qsort
35634 on constructor priority by using original position.
35635 (finalize_ctors): New routine to sort constructors by
35636 priority before use in assemble_integer.
35637 (machopic_asm_out_constructor): Use finalize_ctors if needed.
35639 2013-02-04 Jakub Jelinek <jakub@redhat.com>
35642 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
35643 about visibility on artificial decls.
35644 * config/sol2.c (solaris_assemble_visibility): Likewise.
35646 2013-02-04 Kai Tietz <ktietz@redhat.com>
35649 * config/i386/i386.c (function_value_ms_64): Add additional valtype
35650 argument and improve checking of return-argument types for 16-byte
35652 (ix86_function_value_1): Add additional valtype argument on call
35653 of function_value_64.
35654 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
35655 handling infunction_value_64 function.
35657 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
35659 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
35661 2013-02-04 Richard Biener <rguenther@suse.de>
35663 PR tree-optimization/56188
35664 * tree-ssa-structalias.c (label_visit): Consider case with
35665 initially non-empty points-to set.
35666 (perform_var_substitution): Dump node mapping and clean up.
35668 2013-02-04 Richard Guenther <rguenther@suse.de>
35671 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
35672 node prevail as last resort.
35673 (lto_symtab_merge_decls): Remove guard on LTRANS here.
35674 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
35676 2013-02-04 Richard Biener <rguenther@suse.de>
35678 PR tree-optimization/56113
35679 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
35681 (equiv_class_lookup_or_add): ... this.
35682 (label_visit): Adjust and fix error in previous patch.
35683 (perform_var_substitution): Adjust.
35685 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
35687 * config/sh/divtab.c: Fix formatting and comments throughout the file.
35688 * config/sh/sh4-300.md: Likewise.
35689 * config/sh/sh4a.md: Likewise.
35690 * config/sh/constraints.md: Likewise.
35691 * config/sh/sh.md: Likewise.
35692 * config/sh/netbsd-elf.h: Likewise.
35693 * config/sh/predicates.md: Likewise.
35694 * config/sh/sh-protos.h: Likewise.
35695 * config/sh/ushmedia.h: Likewise.
35696 * config/sh/linux.h: Likewise.
35697 * config/sh/sh.c: Likewise.
35698 * config/sh/superh.h: Likewise.
35699 * config/sh/elf.h: Likewise.
35700 * config/sh/sh4.md: Likewise.
35701 * config/sh/sh.h: Likewise.
35703 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35705 * config/pa/constraints.md: Adjust unused letters. Change "T"
35706 constraint to match_test floating_point_store_memory_operand().
35707 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
35708 (base14_operand): New.
35709 (floating_point_store_memory_operand): New.
35710 (integer_store_memory_operand): Revise to use base14_operand and
35711 reg_plus_base_memory_operand.
35712 (move_dest_operand): Allow symbolic_memory_operands.
35713 (symbolic_memory_operand): Check for LO_SOM.
35714 (symbolic_operand): Change default case to break.
35715 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
35716 CONST_DOUBLE values to be reloaded by putting them into memory when
35717 the destination is a floating point register.
35718 (movdf): Remove code to handle CONST_DOUBLE.
35720 (reload_indf_r1): New.
35721 (reload_insf_r1): New.
35722 Consistently use "Q" and "T" constraints with integer and floating
35723 point move instructions, respectively.
35724 (movdi): Remove FAIL.
35725 Change predicate for source operand unamed DImode move from
35726 general_operand to move_src_operand.
35727 (umulsidi3): Change predicate for destination operand to
35729 Likewise for similar unamed patterns.
35730 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
35731 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
35732 (hppa_legitimize_address): Simplify mask calculation.
35733 (pa_emit_move_sequence): Revised handling of secondary reloads from
35734 REG+D addresses for floating point loads and stores. Directly handle
35735 loading CONST0_RTX (mode) to a floating point register.
35736 (pa_secondary_reload): Handle reloading DF and SFmode constant values
35737 to floating point registers. Don't restrict secondary reloads to
35738 floating point registers to integer modes. Revise some comments and
35740 (TARGET_LEGITIMATE_ADDRESS_P): Define.
35741 (pa_legitimate_address_p): New.
35742 (pa_legitimize_reload_address): New.
35743 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
35744 (STRICT_REG_OK_FOR_BASE_P): New.
35745 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
35746 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
35748 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
35749 Andrew Dixie <andrewd@gentrack.com>
35751 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
35754 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
35756 * expmed.c (extract_bit_field_1): Pass the full width of the
35757 structure to get_best_reg_extraction_insn.
35759 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
35762 * configure.ac (use_cxa_atexit): Add AIX.
35763 * configure: Regenerate.
35765 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
35767 2013-02-01 Jakub Jelinek <jakub@redhat.com>
35770 * final.c (need_profile_function): New variable.
35771 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
35772 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
35773 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
35774 notes, targetm.asm_out.function_prologue doesn't emit anything,
35775 HAVE_prologue and profiler should be emitted before prologue,
35776 set need_profile_function instead of emitting it.
35777 (final_scan_insn): If need_profile_function, emit
35778 profile_function on the first NOTE_INSN_BASIC_BLOCK or
35779 NOTE_INSN_FUNCTION_BEG note.
35781 2013-02-01 Richard Henderson <rth@redhat.com>
35783 * config/rs6000/rs6000.md (smulditi3): New.
35786 * config/alpha/alpha.md (umulditi3): New.
35788 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
35790 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
35791 (ASM_OUTPUT_ALIGNED_LOCAL): New.
35793 2013-02-01 Richard Biener <rguenther@suse.de>
35795 PR tree-optimization/56113
35796 * tree-ssa-structalias.c (label_visit): Reduce work for
35797 single-predecessor nodes.
35799 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
35801 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
35802 range isn't testing for zero.
35804 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
35806 PR middle-end/56113
35807 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
35809 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
35810 Nick Clifton <nickc@redhat.com>
35812 * config/v850/constraints.md (Q): Define as a memory constraint.
35813 * config/v850/predicates.md (label_ref_operand): New predicate.
35814 (e3v5_shift_operand): New predicate.
35815 (ior_operator): New predicate.
35816 * config/v850/t-v850: Add e3v5 multilib.
35817 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
35818 (v850_gen_movdi): Prototype.
35819 * config/v850/v850.c: Add support for e3v5 architecture.
35820 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
35822 (construct_save_jarl): Add e3v5 long JARL support.
35823 (v850_adjust_insn_length): New function. Adjust length of call
35824 insns when using e3v5 instructions.
35825 (v850_gen_movdi): New function: Generate instructions to move a
35827 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
35828 (CPP_SPEC): Define __v850e3v5__ as appropriate.
35829 (TARGET_USE_FPU): Enable for e3v5.
35830 (CONST_OK_FOR_W): New macro.
35831 (ADJUST_INSN_LENGTH): Define.
35832 * config/v850/v850.md (UNSPEC_LOOP): Define.
35833 (attr cpu): Add v850e3v5.
35834 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
35835 (movdi): New pattern.
35836 (movdi_internal): New pattern.
35837 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
35838 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
35839 (cstoresf4): Likewise.
35840 (cstoredf4): Likewise.
35841 (insv): New pattern.
35842 (rotlso3_a): New pattern.
35843 (rotlsi3_b): New pattern
35844 (rotlsi3_v850e3v5): New pattern.
35845 (doloop_begin): New pattern.
35846 (fix_loop_counter): New pattern.
35847 (doloop_end): New pattern.
35848 (branch_normal): Add e3v5 long branch support.
35849 (branch_invert): Likewise.
35850 (branch_z_normal): Likewise.
35851 (branch_z_invert): Likewise.
35852 (branch_nz_normal): Likewise.
35853 (branch_nz_invert): Likewise.
35854 (call_internal_short): Add e3v5 register-indirect JARL support.
35855 (call_internal_long): Likewise.
35856 (call_value_internal_short): Likewise.
35857 (call_value_internal_long): Likewise.
35858 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
35859 (mloop): New option.
35860 * config.gcc: Add support for configuring v840e3v5 target.
35861 * doc/invoke.texi: Document new v850 specific command line options.
35863 2013-01-31 Paul Koning <ni1d@arrl.net>
35867 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
35868 children if parent is a class.
35869 (prune_unused_types_prune): Don't add DW_AT_declaration.
35871 2013-01-31 Richard Biener <rguenther@suse.de>
35873 PR tree-optimization/56157
35874 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
35875 match up operand with SLP child.
35877 2013-01-31 Jason Merrill <jason@redhat.com>
35880 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
35881 parameters the first time.
35882 (gen_scheduled_generic_parms_dies): Check completeness here.
35884 2013-01-31 Richard Biener <rguenther@suse.de>
35886 PR middle-end/53073
35887 * common.opt (faggressive-loop-optimizations): New flag,
35888 enabled by default.
35889 * doc/invoke.texi (faggressive-loop-optimizations): Document.
35890 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
35891 infer_loop_bounds_from_undefined by it.
35893 2013-01-31 Richard Biener <rguenther@suse.de>
35895 PR tree-optimization/56150
35896 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
35897 visit virtual operands.
35898 (find_uses_to_rename_bb): Likewise.
35900 2013-01-31 Richard Biener <rguenther@suse.de>
35902 PR tree-optimization/56150
35903 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
35904 mixed store non-store stmts.
35906 2013-01-30 Jakub Jelinek <jakub@redhat.com>
35909 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
35910 LIBASAN_EARLY_SPEC is defined.
35911 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
35912 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
35914 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
35917 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
35918 invalid args instead of ICEing on it.
35919 (ix86_valid_target_attribute_tree): Return error_mark_node if
35920 ix86_valid_target_attribute_inner_p failed.
35921 (ix86_valid_target_attribute_p): Return false only if
35922 ix86_valid_target_attribute_tree returned error_mark_node. Allow
35923 target("default") attribute.
35924 (sorted_attr_string): Change argument from const char * to tree,
35925 merge in all target attribute arguments rather than just one.
35926 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
35927 instead of free. Avoid using strcat.
35928 (ix86_mangle_function_version_assembler_name): Mangle
35929 target("default") as if no target attribute is present. Adjust
35930 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
35931 instead of xmalloc and XDELETEVEC instead of free.
35932 (ix86_function_versions): Don't return true if one of the decls
35933 doesn't have target attribute. If they don't and one of the decls
35934 is DECL_FUNCTION_VERSIONED, report an error. Adjust
35935 sorted_attr_string caller. Use XDELETEVEC instead of free.
35936 (ix86_supports_function_versions): Remove.
35937 (make_name): Fix up formatting.
35938 (make_dispatcher_decl): Remove resolver_name and its initialization.
35939 Avoid leaking memory.
35940 (is_function_default_version): Return true if there is
35941 target("default") attribute rather than no target attribute at all.
35942 (make_resolver_func): Avoid leaking memory.
35943 (ix86_generate_version_dispatcher_body): Likewise.
35944 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
35945 * target.def (supports_function_versions): Remove.
35946 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
35947 * doc/tm.texi: Regenerated.
35949 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
35951 PR rtl-optimization/56144
35952 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
35953 for values with side effects.
35955 2013-01-30 Richard Biener <rguenther@suse.de>
35957 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
35958 (sparseset_pop): Likewise.
35959 * cfganal.c (compute_idf): Likewise. Increase work-stack size
35960 to be able to use quick_push in the worker loop.
35962 2013-01-30 Marek Polacek <polacek@redhat.com>
35964 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
35966 2013-01-30 Richard Biener <rguenther@suse.de>
35969 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
35971 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
35973 PR tree-optimization/56064
35974 * fixed-value.c (fixed_from_double_int): New function.
35975 * fixed-value.h (fixed_from_double_int): New prototype.
35976 (const_fixed_from_double_int): New static inline function.
35977 * fold-const.c (native_interpret_fixed): New static function.
35978 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
35979 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
35980 (native_encode_fixed): New static function.
35981 (native_encode_expr) <FIXED_CST>: Use it.
35982 (native_interpret_int): Move double_int worker code to...
35983 * double-int.c (double_int::from_buffer): ...this new static method.
35984 * double-int.h (double_int::from_buffer): Prototype it.
35986 2013-01-30 Richard Biener <rguenther@suse.de>
35988 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
35989 New pointer-map and obstack.
35990 (init_alias_vars): Allocate pointer-map and obstack.
35991 (delete_points_to_sets): Free them.
35992 (find_what_var_points_to): Cache result.
35993 (find_what_p_points_to): Adjust for changed interface of
35994 find_what_var_points_to.
35995 (compute_points_to_sets): Likewise.
35996 (ipa_pta_execute): Likewise.
35998 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36000 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
36001 * configure: Regenerate.
36002 * config.in: Regenerate.
36003 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
36004 #nobits/#progbits if supported.
36006 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
36009 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
36010 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
36011 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
36013 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
36015 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
36016 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
36018 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
36020 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
36021 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
36023 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
36025 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
36027 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
36028 * config/arm/cortex-a7.md: New bypasses using
36029 arm_mac_accumulator_is_result.
36031 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
36033 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
36034 (cortex_a7_neon_mla): Likewise.
36035 (cortex_a7_fpfmad): New reservation.
36036 (cortex_a7_fpmacs): Use ffmas and update required units.
36037 (cortex_a7_fpmuld): Update required units and latency.
36038 (cortex_a7_fpmacd): Likewise.
36039 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
36040 (cortex_a7_neon). Likewise.
36041 (bypass) Update participating units.
36043 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
36045 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
36046 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
36048 * config/arm/vfp11.md (vfp_farith): Use ffmas.
36049 (vfp_fmul): Use ffmad.
36050 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
36051 (cortex_r4_fmacd): Use ffmad.
36052 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
36053 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
36054 (cortex_a9_fmacd): Use ffmad.
36055 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
36056 (cortex_a8_vfp_macd): Use ffmad.
36057 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
36058 (cortex_a5_fpmacd): Use ffmad.
36059 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
36060 (cortex_a15_vfp_macd): Use ffmad.
36061 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
36063 2013-01-29 Jason Merrill <jason@redhat.com>
36066 * varasm.c (default_assemble_visibility): Don't warn about
36067 visibility on artificial decls.
36069 2013-01-29 Richard Biener <rguenther@suse.de>
36071 PR tree-optimization/56113
36072 * tree-ssa-structalias.c (equiv_class_lookup): Also return
36074 (label_visit): Free duplicate bitmaps and record the leader instead.
36075 (perform_var_substitution): Adjust.
36077 2013-01-29 Richard Biener <rguenther@suse.de>
36079 PR tree-optimization/55270
36080 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
36081 the CFG, schedule loops for fixup.
36083 2013-01-29 Nick Clifton <nickc@redhat.com>
36085 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
36088 2013-01-28 Leif Ekblad <leif@rdos.net>
36090 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
36091 * config/i386/i386.h (TARGET_RDOS): New macro.
36092 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
36093 * config/i386/i386.c (ix86_option_override_internal): For 64bit
36094 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
36095 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
36096 DEFAULT_LARGE_SECTION_THRESHOLD.
36097 * config/i386/i386.md (R14_REG, R15_REG): New constants.
36098 * config/i386/rdos.h: New file.
36099 * config/i386/rdos64.h: New file.
36101 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
36104 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
36107 2013-01-28 Jakub Jelinek <jakub@redhat.com>
36109 PR rtl-optimization/56117
36110 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
36111 call cselib_lookup_from_insn on the MEM before calling
36112 add_insn_mem_dependence.
36114 2013-01-28 Richard Biener <rguenther@suse.de>
36116 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
36117 to a stmt that didn't have one.
36118 (copy_phis_for_bb): Likewise for PHI arguments.
36119 (copy_debug_stmt): Likewise for debug stmts.
36121 2013-01-28 Richard Biener <rguenther@suse.de>
36123 PR tree-optimization/56034
36124 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
36125 (partition_builtin_p): Adjust.
36126 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
36127 it is the last partition.
36128 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
36129 up the vertex for the definition.
36130 (classify_partition): Classify whether a partition is a
36131 PKIND_REDUCTION, thus has uses outside of the loop.
36132 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
36133 Merge all PKIND_REDUCTION partitions into the last partition.
36134 (tree_loop_distribution): Seed partitions from reductions as well.
36136 2013-01-28 Jakub Jelinek <jakub@redhat.com>
36138 PR tree-optimization/56125
36139 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
36140 pow(x,c) into sqrt(x) * powi(x, n/2) or
36141 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
36142 optimizing for size.
36143 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
36144 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
36147 PR tree-optimization/56094
36148 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
36149 to UNKNOWN_LOCATION while gimplifying expr.
36151 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
36154 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
36155 operand 0 in movabs insn template for -masm=intel asm alternative.
36156 (*movabs<mode>_2): Ditto for operand 1.
36158 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
36161 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
36164 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36166 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
36169 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36171 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
36172 Undef to avoid warning.
36174 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
36176 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
36177 * configure: Regenerate.
36179 2013-01-25 Jakub Jelinek <jakub@redhat.com>
36181 PR tree-optimization/56098
36182 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
36183 for stmts with volatile ops.
36184 (cond_store_replacement): Don't optimize if assign has volatile ops.
36185 (cond_if_else_store_replacement_1): Don't optimize if either
36186 then_assign or else_assign have volatile ops.
36187 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
36190 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
36192 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
36194 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
36196 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
36197 missing ':' in asm example.
36199 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
36201 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
36202 entries into lane and laneq entries.
36203 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
36204 Remove AdvSIMD scalar modes.
36205 (aarch64_sq<r>dmulh_laneq<mode>): New.
36206 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
36208 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
36209 builtin implementations to relfect changes in RTL in aarch64-simd.md.
36210 * config/aarch64/iterators.md (VCOND): New.
36213 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
36216 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
36217 Add NULL LIBNAME argument to existing definitions.
36218 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
36219 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
36220 * config/avr/avr.c (DEF_BUILTIN): Same.
36221 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
36222 (avr_expand_builtin): Expand to a vanilla call if a libgcc
36223 implementation is available (DECL_ASSEMBLER_NAME is set).
36224 (avr_fold_absfx): New static function.
36225 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
36226 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
36227 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
36228 AVR_BUILTIN_ABSLLK.
36229 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
36230 (abshk, absk, abslk, absllk): Provide as static inline functions.
36232 2013-01-25 Marek Polacek <polacek@redhat.com>
36234 PR tree-optimization/56035
36235 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
36237 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
36239 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
36240 (*movtf_internal_rex64): Add (!o,C) alternative
36241 (*movxf_internal_rex64): Ditto.
36242 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
36244 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
36246 * doc/invoke.texi: fix typo.
36247 * doc/objc.texi: fix typo.
36249 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
36251 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
36252 for the first two alternatives.
36254 2013-01-24 Diego Novillo <dnovillo@google.com>
36256 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
36257 (ggc-zone.o): Remove.
36258 * configure.ac: Remove option --with-gc.
36259 * configure: Re-generate.
36260 * doc/install.texi: Remove documentation for --with-gc.
36261 * gengtype.c (write_enum_defn): Remove. Update all users.
36262 (write_Types_process_field): Remove generation of gt_e_* argument.
36263 (output_type_enum): Remove. Update all users.
36264 (write_enum_defn): Remove. Update all users.
36265 (enum alloc_zone): Remove. Update all users.
36266 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
36267 * ggc-common.c (ggc_splay_alloc): Remove first argument.
36268 Update all callers.
36269 (struct ptr_data): Remove field TYPE. Update all users.
36270 (gt_pch_note_object): Remove argument TYPE. Update all users.
36271 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
36273 * ggc-none.c (ggc_alloc_typed_stat): Remove.
36274 (struct alloc_zone): Remove.
36275 (ggc_internal_alloc_zone_stat): Remove.
36276 (ggc_internal_cleared_alloc_zone_stat): Remove.
36277 * ggc-page.c (ggc_alloc_typed_stat): Remove.
36278 (ggc_pch_count_object): Remove last argument. Update all users.
36279 (ggc_pch_alloc_object): Remove last argument. Update all users.
36280 (struct alloc_zone): Remove.
36281 * ggc-zone.c: Remove.
36282 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
36283 (struct alloc_zone): Remove.
36284 (ggc_alloc_typed_stat): Remove.
36285 (ggc_alloc_typed): Remove.
36286 (ggc_splay_alloc): Remove first argument.
36287 (rtl_zone): Remove. Update all users.
36288 (tree_zone): Remove. Update all users.
36289 (tree_id_zone): Remove. Update all users.
36290 (ggc_internal_zone_alloc_stat): Remove. Update all users.
36291 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
36292 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
36293 * tree-ssanames.c: Remove references to zone allocator in comments.
36295 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
36297 * config/avr/avr.c (avr_out_fract): Make register numbers that
36298 might be outside of source operand signed.
36300 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
36302 * config/i386/constraints.md (Yf): New constraint.
36303 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
36304 of f constraint to conditionaly disable x87 register preferences.
36305 (*movdf_internal): Ditto.
36306 (*movsf_internal): Ditto.
36308 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
36310 PR inline-asm/55934
36311 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
36312 that have operands with impossible constraints.
36313 Add a FIXME for a speed-up opportunity.
36314 * lra-constraints.c (process_alt_operands): Verify that a class
36315 selected from constraints on asms is valid for the operand mode.
36316 (curr_insn_transform): Remove incorrect comment.
36318 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
36320 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
36321 TOC operand is a valid symbol ref in the constant pool.
36323 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36325 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
36327 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
36330 * config/avr/stdfix.h: New file.
36331 * t-avr (stdfix-gcc.h): New rule to build it.
36332 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
36334 2013-01-23 Kostya Serebryany <kcc@google.com>
36336 * config/darwin.h: remove dependency on
36337 CoreFoundation (asan on Mac OS).
36339 2013-01-23 Jakub Jelinek <jakub@redhat.com>
36342 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
36343 instead of cmpdi_operand for first comparison operand.
36344 Don't assert that comparison operands aren't both constants.
36346 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
36348 * doc/install.texi (Downloading the Source): Update references to
36349 downloading separate components.
36351 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
36353 * doc/extend.texi (__int128): Improve grammar.
36355 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
36358 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
36359 alternative to (o,r).
36360 (*movdi_internal_rex64): Remove (!o,n) alternative.
36361 (DImode immediate->memory splitter): Remove.
36362 (DImode immediate->memory peephole2): Remove.
36363 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
36364 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
36365 alternative to (!o,*r).
36366 (*movtf_internal_sse): New pattern.
36367 (*movxf_internal_rex64): New pattern.
36368 (*movxf_internal): Disable for TARGET_64BIT.
36369 (*movdf_internal_rex64): Remove (!o,F) alternative.
36371 2013-01-22 Jakub Jelinek <jakub@redhat.com>
36373 PR middle-end/56074
36374 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
36375 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
36376 * tree-vect-loop-manip.c (find_loop_location): Also ignore
36377 stmt locations where LOCATION_LOCUS of the stmt location is
36378 UNKNOWN_LOCATION or BUILTINS_LOCATION.
36381 * config/i386/i386.md (UNSPEC_STOS): New.
36382 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
36383 *strsetqi_1): Add UNSPEC_STOS.
36385 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
36388 * doc/invoke.texi: Remove left over -Wsynth example.
36390 2013-01-21 Jakub Jelinek <jakub@redhat.com>
36392 PR tree-optimization/56051
36393 * fold-const.c (fold_binary_loc): Don't fold
36394 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
36395 a narrowing conversion, or widening conversion from signed
36398 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
36400 PR rtl-optimization/56023
36401 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
36402 dependent on debug instruction.
36404 2013-01-21 Martin Jambor <mjambor@suse.cz>
36406 PR middle-end/56022
36407 * function.c (allocate_struct_function): Call
36408 invoke_set_current_function_hook earlier.
36410 2013-01-21 Jakub Jelinek <jakub@redhat.com>
36412 * reload1.c (init_reload): Only initialize reload_obstack
36413 during the first call.
36415 2013-01-21 Marek Polacek <polacek@redhat.com>
36417 * cfgloop.c (verify_loop_structure): Fix up grammar.
36419 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
36421 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
36422 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
36424 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36427 * config/arm/marvell-pj4.md: Update copyright year.
36428 Fix up use of alu to alu_reg and simple_alu_imm.
36430 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
36432 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
36434 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
36437 * lra-constraints.c (curr_insn_transform): Don't reuse original
36438 insn for secondary memory move when memory mode should be different.
36440 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36442 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
36443 atomic_storedi_1): New patterns.
36445 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
36447 btver2 pipeline descriptions.
36448 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
36450 * config/i386/i386.md (btver2_decode): New type attributes.
36451 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
36453 * config/i386/btver2.md: New file describing btver2 pipelines.
36455 2013-01-19 Andrew Pinski <apinski@cavium.com>
36457 PR tree-optimization/52631
36458 * tree-ssa-sccvn (visit_use): Before looking up the original
36459 statement, try looking up the simplified expression.
36461 2013-01-19 Anthony Green <green@moxielogic.com>
36463 * config/moxie/moxie.c (moxie_expand_prologue): Set
36464 current_function_static_stack_size.
36466 2013-01-18 Jakub Jelinek <jakub@redhat.com>
36468 PR tree-optimization/56029
36469 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
36470 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
36472 2013-01-18 Sharad Singhai <singhai@google.com>
36474 PR tree-optimization/55995
36475 * dumpfile.c (dump_loc): Print location only if available.
36476 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
36478 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
36481 * lra-constraints.c (curr_insn_transform): Reuse original insn for
36482 secondary memory move.
36483 (inherit_reload_reg): Use rclass instead of cl for
36484 check_secondary_memory_needed_p.
36486 2013-01-18 Jakub Jelinek <jakub@redhat.com>
36488 PR middle-end/56015
36489 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
36490 the case where writing real complex part of target modifies op1.
36492 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
36494 * config/aarch64/aarch64-simd.md
36495 (aarch64_vcond_internal<mode>): Handle unordered cases.
36496 * config/aarch64/iterators.md (v_cmp_result): New.
36498 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
36499 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36501 * config/arm/marvell-pj4.md: New file.
36502 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
36503 * config/arm/arm.md (generic_sched): Add marvell_pj4.
36504 (generic_vfp): Likewise.
36505 * config/arm/arm-cores.def: Add marvell-pj4.
36506 * config/arm/arm-tune.md: Regenerate.
36507 * config/arm/arm-tables.opt: Regenerate.
36508 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
36509 * doc/invoke.texi: Document marvell-pj4.
36511 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
36513 * config/aarch64/arm_neon.h: Map scalar types to standard types.
36515 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
36520 * var-tracking.c (negative_power_of_two_p): New.
36521 (global_get_addr_cache, local_get_addr_cache): New.
36522 (get_addr_from_global_cache, get_addr_from_local_cache): New.
36523 (vt_canonicalize_addr): Rewrite using the above. Adjust the
36525 (vt_stack_offset_p): Remove.
36526 (vt_canon_true_dep): Always canonicalize loc's address.
36527 (clobber_overlapping_mems): Make sure we have a MEM.
36528 (local_get_addr_clear_given_value): New.
36529 (val_reset): Clear local cached entries.
36530 (compute_bb_dataflow): Create and release the local cache.
36531 Disable duplicate MEMs clobbering.
36532 (emit_notes_in_bb): Clobber MEMs likewise.
36533 (vt_emit_notes): Create and release the local cache.
36534 (vt_initialize, vt_finalize): Create and release the global
36535 cache, respectively.
36536 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
36538 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
36540 PR libmudflap/53359
36541 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
36542 not found in the symtab.
36544 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
36547 PR rtl-optimization/55547
36548 PR rtl-optimization/53827
36551 * alias.c (offset_overlap_p): New, factored out of...
36552 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
36553 the conservative special case for symbolic constants. Don't
36554 adjust zero sizes on alignment.
36556 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
36558 PR rtl-optimization/52573
36559 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
36560 REG_UNUSED for the same register.
36562 2013-01-17 Richard Biener <rguenther@suse.de>
36563 Marek Polacek <polacek@redhat.com>
36565 PR rtl-optimization/55833
36566 * loop-unswitch.c (unswitch_loops): Move loop verification...
36567 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
36568 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
36569 Set it to true when we're removing a loop from hierarchy tree in
36570 an irreducible region.
36571 (fix_bb_placements): Adjust caller.
36572 (fix_loop_placements): Likewise.
36574 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
36576 * config/avr/builtins.def (DEF_BUILTIN): Factor out
36577 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
36578 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
36579 Remove ID. Adjust comments.
36580 * config/avr/avr-c.c (avr_builtin_name): Remove.
36581 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
36582 * config/avr/avr.c (avr_tolower): New static function.
36583 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
36584 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
36585 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
36588 2013-01-17 Jan Hubicka <jh@suse.cz>
36590 PR tree-optimization/55273
36591 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
36593 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
36596 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
36597 store through atomic_store<mode>_1.
36598 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
36600 2013-01-17 Martin Jambor <mjambor@suse.cz>
36602 PR tree-optimizations/55264
36603 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
36604 for virtual methods.
36605 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
36606 virtual methods before inlining is over.
36607 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
36609 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
36612 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
36614 PR rtl-optimization/56005
36615 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
36616 pending reads for prefetch.
36618 2013-01-16 Ian Bolton <ian.bolton@arm.com>
36620 * config/aarch64/aarch64.md
36621 (*cstoresi_neg_uxtw): New pattern.
36622 (*cmovsi_insn_uxtw): New pattern.
36623 (*<optab>si3_uxtw): New pattern.
36624 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
36625 (*<optab>si3_insn_uxtw): New pattern.
36626 (*bswapsi2_uxtw): New pattern.
36628 2013-01-16 Richard Biener <rguenther@suse.de>
36630 * tree-inline.c (tree_function_versioning): Remove set but
36631 never used variable.
36633 2013-01-16 Richard Biener <rguenther@suse.de>
36635 PR tree-optimization/55964
36636 * tree-flow.h (rename_variables_in_loop): Remove.
36637 (rename_variables_in_bb): Likewise.
36638 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
36639 (copy_loop_before): Adjust and delete update-ssa status.
36640 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
36641 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
36642 (rename_variables_in_loop): Remove.
36643 (slpeel_update_phis_for_duplicate_loop): Likewise.
36644 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
36645 use available cfg machinery instead of duplicating it.
36646 Update PHI nodes and perform poor-mans SSA update here.
36647 (slpeel_tree_peel_loop_to_edge): Adjust.
36649 2013-01-16 Richard Biener <rguenther@suse.de>
36651 PR tree-optimization/54767
36652 PR tree-optimization/53465
36653 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
36654 (vrp_visit_phi_node): For PHI arguments coming via backedges
36655 drop all symbolical range information.
36656 (execute_vrp): Compute backedges.
36658 2013-01-16 Richard Biener <rguenther@suse.de>
36660 * doc/install.texi: Update CLooG and ISL requirements to
36663 2013-01-16 Christian Bruel <christian.bruel@st.com>
36666 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
36667 (broken_move): Handle UNSPECV_SP_SWITCH_B.
36668 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
36670 2013-01-16 DJ Delorie <dj@redhat.com>
36672 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
36673 (UNSPECV_SP_SWITCH_E): New.
36674 (sp_switch_1): Change to an unspec.
36675 (sp_switch_2): Change to an unspec. Don't use post-inc when we
36678 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
36680 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
36681 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
36682 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
36683 (expand_mem_thread_fence): Ditto.
36684 (expand_mem_signal_fence): Ditto.
36685 (expand_atomic_load): Ditto.
36686 (expand_atomic_store): Ditto.
36688 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
36690 PR rtl-optimization/55547
36691 PR rtl-optimization/53827
36694 * alias.c (memrefs_conflict_p): Set sizes to negative after
36697 2013-01-15 Jakub Jelinek <jakub@redhat.com>
36700 * function.c (thread_prologue_and_epilogue_insns): Always
36701 add crtl->drap_reg to set_up_by_prologue.set, even if
36702 stack_realign_drap is false.
36704 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
36706 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
36707 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
36708 *call): Fix indention.
36710 2013-01-15 Tom de Vries <tom@codesourcery.com>
36713 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
36716 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
36718 PR rtl-optimization/55153
36719 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
36721 2013-01-15 Martin Jambor <mjambor@suse.cz>
36723 PR tree-optimization/55920
36724 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
36725 accesses as grp_to_be_debug_replaced.
36727 2013-01-15 Jakub Jelinek <jakub@redhat.com>
36729 PR tree-optimization/55920
36730 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
36731 there is non-useless type conversion needed from debug rhs to lhs,
36732 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
36734 2013-01-15 Joseph Myers <joseph@codesourcery.com>
36735 Mikael Pettersson <mikpe@it.uu.se>
36738 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
36740 (ASM_OUTPUT_CASE_LABEL): Remove.
36741 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
36742 * final.c (shorten_branches): Update alignment of labels before
36743 jump tables if CASE_VECTOR_SHORTEN_MODE.
36745 2013-01-15 Richard Biener <rguenther@suse.de>
36748 * system.h: Do not include gmp.h for building host tools.
36750 2013-01-15 Richard Biener <rguenther@suse.de>
36752 PR middle-end/55882
36753 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
36754 account for bitpos when computing alignment.
36756 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
36758 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
36759 (ix86_target_macros_internal): Likewise.
36761 * config/i386/i386.c (m_CORE2I7): Removed.
36762 (m_CORE_HASWELL): New macro.
36763 (m_CORE_ALL): Likewise.
36764 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
36765 (initial_ix86_arch_features): Likewise.
36766 (processor_target_table): Initializations for Core avx2.
36767 (cpu_names): New names "core-avx2".
36768 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
36769 PROCESSOR_CORE_HASWELL.
36770 (ix86_issue_rate): New case.
36771 (ia32_multipass_dfa_lookahead): Likewise.
36772 (ix86_sched_init_global): Likewise.
36774 * config/i386/i386.h (TARGET_HASWELL): New macro.
36775 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
36776 (processor_type): New PROCESSOR_HASWELL.
36778 2013-01-15 Jakub Jelinek <jakub@redhat.com>
36780 PR tree-optimization/55955
36781 * tree-vect-loop.c (vectorizable_reduction): Give up early on
36782 *SHIFT_EXPR and *ROTATE_EXPR codes.
36784 PR tree-optimization/48766
36785 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
36786 -ftrapv disable -fwrapv.
36788 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36791 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
36792 etc. to 1 and not to __flash.
36793 Use LL suffix for __INT24_MAX__ with -mint8.
36794 Use ULL suffix for __UINT24_MAX__ with -mint8.
36796 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36798 * config/avr/avr-arch.h
36799 (struct base_arch_s): Use typedef avr_arch_t instead.
36800 (struct arch_info_s): Use typedef avr_arch_info_t instead.
36801 (struct mcu_type_s): Use typedef avr_mcu_t instead.
36802 * config/avr/avr.c: Same.
36803 * config/avr/avr-devices.c: Same.
36804 * config/avr/driver-avr.c: Same.
36805 * config/avr/gen-avr-mmcu-texi.c: Same.
36806 * config/avr/avr-mcus.def: Adjust comment.
36808 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
36810 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
36811 * config/aarch64/iterators.md (VALLDI): New.
36813 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
36814 Andi Kleen <ak@linux.intel.com>
36817 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
36818 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
36821 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36823 * config/avr/avr-stdint.h: Remove trailing blanks.
36824 * config/avr/avr-log.h: Same.
36825 * config/avr/avr-arch.h: Same.
36826 * config/avr/avr-devices.c: Same.
36827 * config/avr/avr-dimode.md: Same.
36828 * config/avr/predicates.md: Same.
36829 * config/avr/avr-c.c: Same. And fix typo.
36831 * config/avr/avr-protos.h: Same. And:
36832 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
36833 (init_cumulative_args): Rename to avr_init_cumulative_args.
36834 (expand_prologue): Rename to avr_expand_prologue.
36835 (expand_epilogue): Rename to avr_expand_epilogue.
36836 (adjust_insn_length): Rename to avr_adjust_insn_length.
36837 (notice_update_cc): Rename to avr_notice_update_cc.
36838 (final_prescan_insn): Rename to avr_final_prescan_insn.
36839 * config/avr/avr.c: Same.
36840 * config/avr/avr.h: Same.
36841 * config/avr/avr.md: Remove trailing blanks.
36842 (prologue): Use avr_expand_prologue.
36843 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
36845 2013-01-14 Richard Biener <rguenther@suse.de>
36847 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
36848 verify_location, collect_subblocks): New functions.
36849 (verify_gimple_in_cfg): Verify that locations only reference
36850 BLOCKs in the functions BLOCK tree.
36852 2013-01-14 Richard Biener <rguenther@suse.de>
36854 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
36856 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
36858 (insert_out_of_ssa_copy_on_edge): Likewise.
36859 (rewrite_close_phi_out_of_ssa): Likewise.
36860 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
36862 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
36863 propagated constants.
36864 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
36867 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36869 * config/avr/avr-modes.def: Add GPL copyright notice.
36871 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
36873 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
36874 MEMMODEL_MASK to determine memory model.
36875 (atomic_store<mode>): Ditto from operands[2].
36876 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
36878 2013-01-13 Jakub Jelinek <jakub@redhat.com>
36881 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
36882 (fold_gimple_assign): Don't call unshare_expr here.
36883 (fold_ctor_reference): Call unshare_expr.
36885 2013-01-13 Terry Guo <terry.guo@arm.com>
36887 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
36888 * doc/fragments.texi: Document MULTILIB_REUSE.
36889 * gcc.c (multilib_reuse): New internal spec.
36890 (set_multilib_dir): Also search multilib from multilib_reuse.
36891 * genmultilib (tmpmultilib3): Refactor code.
36892 (tmpmultilib4): Ditto.
36893 (multilib_reuse): New multilib argument.
36895 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
36897 * Makefile.in: Update copyright.
36899 2013-01-12 Tom de Vries <tom@codesourcery.com>
36901 PR middle-end/55890
36902 * calls.c (expand_call): Check if arg_nr is valid.
36904 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
36906 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
36907 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
36908 documentation. Add missing '__' in front of
36909 __builtin_ia32_packssdw256.
36911 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36914 * config/s390/s390.c (s390_preferred_reload_class): Do not return
36915 NO_REGS for larl operands.
36916 (s390_reload_larl_operand): Use s390_load_address instead of
36919 2013-01-11 Richard Biener <rguenther@suse.de>
36921 * tree-cfg.c (verify_node_sharing_1): Split out from ...
36922 (verify_node_sharing): ... here.
36923 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
36925 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
36927 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
36928 Substitute TREECHECKING.
36929 * configure: Regenerate.
36930 * Makefile.in (TREECHECKING): New.
36932 2013-01-11 Richard Guenther <rguenther@suse.de>
36934 PR tree-optimization/44061
36935 * tree-vrp.c (extract_range_basic): Compute zero as
36936 value-range for __builtin_constant_p of function parameters.
36938 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
36940 Update copyright years.
36942 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
36944 PR rtl-optimization/55672
36945 * lra-eliminations.c (mark_not_eliminable): Permit addition with
36946 const to be eliminable.
36948 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
36950 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
36951 * configure: Regenerate.
36953 2013-01-10 Richard Biener <rguenther@suse.de>
36955 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
36957 2013-01-10 Richard Biener <rguenther@suse.de>
36960 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
36961 locations for virtual PHI arguments.
36962 (rewrite_update_phi_arguments): Likewise.
36964 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
36966 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
36969 2013-01-10 Jakub Jelinek <jakub@redhat.com>
36971 PR tree-optimization/55921
36972 * tree-complex.c (expand_complex_asm): New function.
36973 (expand_complex_operations_1): Call it for GIMPLE_ASM.
36975 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36978 * config/s390/s390.c (s390_symref_operand_p)
36979 (s390_loadrelative_operand_p): Merge the two functions.
36980 (s390_check_qrst_address, print_operand_address): Add parameters
36981 to s390_loadrelative_operand_p invokation.
36982 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
36983 (s390_reload_larl_operand, s390_secondary_reload): Use
36984 s390_loadrelative_operand_p instead of s390_symref_operand_p.
36985 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
36987 2013-01-09 Mike Stump <mikestump@comcast.net>
36989 * dse.c (record_store): Remove unnecessary assert.
36991 2013-01-09 Jan Hubicka <jh@suse.cz>
36993 PR tree-optimization/55569
36994 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
36995 * cfgloop.h (scale_loop_profile): Likewise.
36997 2013-01-09 Jan Hubicka <jh@suse.cz>
37000 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
37002 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
37004 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
37006 PR middle-end/55114
37007 * expr.h (maybe_emit_group_store): Declare.
37008 * expr.c (maybe_emit_group_store): New function.
37009 * builtins.c (expand_builtin_int_roundingfn): Call it.
37010 (expand_builtin_int_roundingfn_2): Likewise.
37012 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
37014 PR rtl-optimization/55829
37015 * lra-constraints.c (match_reload): Add code for absent output.
37016 (curr_insn_transform): Add code for reloads of matched inputs
37019 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
37021 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
37022 attribute of movddup insn to DF.
37023 (*vec_interleave_lowv2df): Ditto.
37024 (vec_dupv2df): Ditto.
37026 2013-01-09 Jan Hubicka <jh@suse.cz>
37028 PR tree-optimiation/55875
37029 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
37030 EVERY_ITERATION parameter.
37031 (number_of_iterations_exit): Check if exit is executed every iteration.
37032 (idx_infer_loop_bounds): Similarly here.
37033 (n_of_executions_at_most): Simplify
37034 to only test for cases where statement is dominated by the
37035 particular bound; handle correctly the "postdominance" test.
37036 (scev_probably_wraps_p): Use max loop iterations info
37037 as a global bound first.
37039 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
37040 Nick Clifton <nickc@redhat.com>
37042 * config/v850/v850.md (cbranchsf4): New pattern.
37043 (cstoresf4): New pattern.
37044 (cbranchdf4): New pattern.
37045 (cstoredf4): New pattern.
37046 (movsicc): Disallow floating point comparisons.
37047 (cmpsf_le_insn): Fix order of operators.
37048 (cmpsf_lt_insn): Likewise.
37049 (cmpsf_eq_insn): Likewise.
37050 (cmpdf_le_insn): Likewise.
37051 (cmpdf_lt_insn): Likewise.
37052 (cmpdf_eq_insn): Likewise.
37053 (cmpsf_ge_insn): Use LE comparison.
37054 (cmpdf_ge_insn): Likewise.
37055 (cmpsf_gt_insn): Use LT comparison.
37056 (cmpdf_gt_insn): Likewise.
37057 (cmpsf_ne_insn): Delete pattern.
37058 (cmpdf_ne_insn): Delete pattern.
37059 * config/v850/v850.c (v850_gen_float_compare): Use
37060 gen_cmpdf_eq_insn for NE comparison.
37061 (v850_float_z_comparison_operator)
37062 (v850_float_nz_comparison_operator): Move from here ...
37063 * config/v850/predicates.md: ... to here. Move GT and GE
37064 comparisons into v850_float_z_comparison_operator.
37065 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
37067 (v850_float_nz_comparison_operator): Likewise.
37069 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37071 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
37072 with calls to gen_insvsi/gen_insvdi.
37074 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
37076 * config/i386/i386.c (initial_ix86_tune_features): Set up
37077 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
37079 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
37080 Jakub Jelinek <jakub@redhat.com>
37082 PR tree-optimization/48189
37083 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
37084 If nitercst is 0, don't predict the exit edge.
37086 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37088 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
37089 in asm_fprintf with reg_names.
37090 (aarch64_print_operand_address): Likewise.
37091 (aarch64_return_addr): Likewise.
37092 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
37094 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37096 * config/pa/pa.h (VAL_U6_BITS_P): Define.
37097 (INT_U6_BITS): Likewise.
37098 * config/pa/predicates.md (uint6_operand): New predicate.
37099 (shift5_operand, shift6_operand): Likewise.
37100 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
37102 (lshrdi3): Use shift6_operand.
37103 (shrpsi4, shrpdi4): New insn patterns.
37104 (extzv): Delete expander.
37105 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
37106 predicates in unamed zero extract patterns. Tighten common constraint.
37107 (extv): Delete expander.
37108 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
37109 predicates in unamed sign extract patterns. Tighten common constraint.
37110 (insv): Delete expander.
37111 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
37112 predicates in unamed insert patterns. Tighten common constraint.
37113 Change uint32_operand predicate to uint6_operand predicate in unamed
37114 DImode pattern to insert constant values of type 1...1xxxx.
37116 2013-01-04 Jan Hubicka <jh@suse.cz>
37118 PR tree-optimization/55823
37119 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
37122 2013-01-08 Jakub Jelinek <jakub@redhat.com>
37123 Uros Bizjak <ubizjak@gmail.com>
37125 PR rtl-optimization/55845
37126 * df-problems.c (can_move_insns_across): Stop scanning at
37127 volatile_insn_p source instruction or give up if
37128 across_from .. across_to range contains any volatile_insn_p
37131 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
37133 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
37134 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
37136 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
37137 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
37139 2013-01-08 Jakub Jelinek <jakub@redhat.com>
37142 * asan.c (asan_clear_shadow): New function.
37143 (asan_emit_stack_protection): Use it.
37145 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
37147 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
37148 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
37149 with tab instead of space.
37151 2013-01-08 Nick Clifton <nickc@redhat.com>
37153 * config/rl78/rl78.c (rl78_expand_prologue): Always select
37154 register bank 0 at the start of an interrupt handler.
37155 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
37158 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
37160 * config/aarch64/aarch64-simd.md
37161 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
37162 (aarch64_simd_bsl): Likewise.
37163 (aarch64_vcond_internal<mode>): Likewise.
37164 (vcond<mode><mode>): Likewise.
37165 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
37166 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
37168 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
37170 * config/aarch64/aarch64-builtins.c
37171 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
37173 2013-01-08 Martin Jambor <mjambor@suse.cz>
37176 * tree-sra.c (analyze_access_subtree): Return true also after
37177 potentially creating a debug-only replacement.
37179 2013-01-08 Jakub Jelinek <jakub@redhat.com>
37181 PR middle-end/55890
37182 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
37184 PR tree-optimization/54120
37185 * tree-vrp.c (range_fits_type_p): Don't allow
37186 src_precision < precision from signed vr to unsigned_p
37187 if vr->min or vr->max is negative.
37188 (simplify_float_conversion_using_ranges): Test can_float_p
37189 against CODE_FOR_nothing.
37191 2013-01-08 Jakub Jelinek <jakub@redhat.com>
37192 Richard Biener <rguenther@suse.de>
37194 PR middle-end/55851
37195 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
37196 types instead of just INTEGER_TYPE types.
37198 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
37200 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
37203 2013-01-07 Steve Ellcey <sellcey@mips.com>
37206 * config/mips/mips.opt: Change mad to mmad to match documentation.
37208 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
37211 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
37212 .progmemx.data now.
37214 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
37217 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
37218 (avr_addrspace_t): Add .section_name field.
37219 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
37221 (avr_addrspace): Same. Initialize .section_name. Remove last
37222 NULL entry. Put __memx into .progmemx.data.
37223 (progmem_section_prefix): Remove.
37224 (avr_asm_init_sections): No need to initialize progmem_section.
37225 (avr_asm_named_section): Use avr_addrspace[].section_name to get
37226 section name prefix.
37227 (avr_asm_select_section): Ditto. And use get_unnamed_section to
37228 retrieve the progmem section.
37229 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
37230 boundary to run over avr_addrspace[].
37231 (avr_register_target_pragmas): Ditto.
37233 2013-01-06 Jakub Jelinek <jakub@redhat.com>
37235 * varasm.c (output_constant_def_contents): For asan_protect_global
37236 protected strings, adjust DECL_ALIGN if needed, before testing for
37238 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
37239 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
37241 (output_object_block): For asan protected decls, emit asan padding
37242 after their contents.
37243 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
37244 (asan_finish_file): Test it here instead.
37246 2013-01-07 Nick Clifton <nickc@redhat.com>
37247 Matthias Klose <doko@debian.org>
37248 Doug Kwan <dougkwan@google.com>
37249 H.J. Lu <hongjiu.lu@intel.com>
37252 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
37254 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
37256 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
37258 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
37260 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
37262 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
37265 * doc/install.texi (Cross-Compiler-Specific Options): Document
37268 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
37270 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
37271 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
37272 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
37273 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
37274 vqmovun_high_s64): Fix source operand number and update copyright.
37276 2013-01-07 Richard Biener <rguenther@suse.de>
37278 PR middle-end/55890
37279 * gimple.h (gimple_call_builtin_p): New overload.
37280 * gimple.c (validate_call): New function.
37281 (gimple_call_builtin_p): Likewise.
37282 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
37283 Use gimple_call_builtin_p.
37284 (find_func_clobbers): Likewise.
37285 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
37286 (strlen_optimize_stmt): Likewise.
37288 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
37290 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
37291 (vld1q_dup_*): Likewise.
37292 (vld1_*): Likewise.
37293 (vld1q_*): Likewise.
37294 (vld1_lane_*): Likewise.
37295 (vld1q_lane_*): Likewise.
37297 2013-01-07 Richard Biener <rguenther@suse.de>
37299 * lto-streamer.h (LTO_minor_version): Bump to 2.
37301 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
37303 * config/aarch64/aarch64-protos.h
37304 (aarch64_const_double_zero_rtx_p): Rename to...
37305 (aarch64_float_const_zero_rtx_p): ...this.
37306 (aarch64_float_const_representable_p): New.
37307 (aarch64_output_simd_mov_immediate): Likewise.
37308 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
37309 move immediate case.
37310 * config/aarch64/aarch64.c
37311 (aarch64_const_double_zero_rtx_p): Rename to...
37312 (aarch64_float_const_zero_rtx_p): ...this.
37313 (aarch64_print_operand): Allow printing of new constants.
37314 (aarch64_valid_floating_const): New.
37315 (aarch64_legitimate_constant_p): Check for valid floating-point
37317 (aarch64_simd_valid_immediate): Likewise.
37318 (aarch64_vect_float_const_representable_p): New.
37319 (aarch64_float_const_representable_p): Likewise.
37320 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
37321 (aarch64_output_simd_mov_immediate): New.
37322 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
37323 (*movdf_aarch64): Likewise.
37324 * config/aarch64/constraints.md (Ufc): New.
37325 (Y): call aarch64_float_const_zero_rtx.
37326 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
37328 2013-01-07 Richard Biener <rguenther@suse.de>
37330 PR tree-optimization/55888
37331 PR tree-optimization/55862
37332 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
37333 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
37334 not if it is contained therein.
37336 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
37338 * config/avr/t-avr: Typo.
37340 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
37343 * config/avr/t-avr: Don't automatically rebuild
37344 $(srcdir)/config/avr/t-multilib
37345 $(srcdir)/config/avr/avr-tables.opt
37346 $(srcdir)/doc/avr-mmcu.texi
37347 (avr-mcus): New phony target to build them on request.
37348 (s-avr-mlib, s-avr-mmcu-texi): Remove.
37349 * avr/avr-mcus.def: Adjust comments.
37351 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
37353 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
37355 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
37357 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
37359 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
37361 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
37363 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
37365 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
37366 to generate profiling.
37367 * config/rs6000/aix64.h (LIB_SPEC): Same.
37369 2013-01-04 Andrew Pinski <apinski@cavium.com>
37371 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
37373 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
37375 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
37377 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
37379 (ix86_expand_move): Ditto.
37380 (ix86_zero_extend_to_Pmode): Ditto.
37381 (ix86_expand_call): Ditto.
37382 (ix86_expand_special_args_builtin): Ditto.
37383 (ix86_expand_builtin): Ditto.
37385 2013-01-04 Richard Biener <rguenther@suse.de>
37387 PR tree-optimization/55862
37388 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
37389 translating them through PHI nodes.
37391 2013-01-04 Martin Jambor <mjambor@suse.cz>
37393 PR tree-optimization/55755
37394 * tree-sra.c (sra_modify_assign): Do not check that an access has no
37395 children when trying to avoid producing a VIEW_CONVERT_EXPR.
37397 2013-01-04 Marek Polacek <polacek@redhat.com>
37399 PR middle-end/55859
37400 * opts.c (default_options_optimization): Clarify error message.
37402 2013-01-04 Richard Biener <rguenther@suse.de>
37404 PR middle-end/55863
37405 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
37408 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37411 * config/pa/pa.md (movsi): Revert previous change.
37412 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
37415 2013-01-03 Richard Henderson <rth@redhat.com>
37417 * config/i386/i386.c (ix86_expand_move): Always assign to op1
37418 after eliminating TLS symbols.
37420 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
37423 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
37424 * graphite-poly.c (debug_gmp_value): Likewise.
37426 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
37429 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
37430 selected code model, define __code_mode_small__, __code_model_medium__,
37431 __code_model_large__, __code_model_32__ or __code_model_kernel__.
37432 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
37433 xchg temporary register with %k. Declare temporary register as
37435 [__x86_64__]: For medium and large code models, preserve %rbx register.
37437 2013-01-03 Richard Biener <rguenther@suse.de>
37439 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
37440 (dump_subscript): Adjust.
37441 (finalize_ddr_dependent): Do not dump redundant info.
37442 (analyze_siv_subscript): Adjust.
37443 (subscript_dependence_tester): Likewise.
37444 (compute_affine_dependence): Likewise.
37446 2013-01-03 Richard Biener <rguenther@suse.de>
37449 2013-01-03 Richard Biener <rguenther@suse.de>
37451 PR tree-optimization/55857
37452 * tree-vect-stmts.c (vectorizable_load): Do not setup
37453 re-alignment for invariant loads.
37455 2013-01-02 Richard Biener <rguenther@suse.de>
37457 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
37458 invariant load do not generate a vector load from the scalar location.
37460 2013-01-03 Richard Biener <rguenther@suse.de>
37462 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
37463 for not vectorizing.
37464 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
37465 not build INDIRECT_REFs, call get_name once only.
37466 (vect_create_data_ref_ptr): Likewise. Dump base object kind
37467 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
37469 2013-01-03 Richard Biener <rguenther@suse.de>
37471 PR tree-optimization/55857
37472 * tree-vect-stmts.c (vectorizable_load): Do not setup
37473 re-alignment for invariant loads.
37475 2013-01-03 Richard Biener <rguenther@suse.de>
37478 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
37479 prefer a built-in decl.
37481 2013-01-03 Jakub Jelinek <jakub@redhat.com>
37483 * gcc.c (process_command): Update copyright notice dates.
37484 * gcov.c (print_version): Likewise.
37485 * gcov-dump.c (print_version): Likewise.
37487 PR rtl-optimization/55838
37488 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
37489 iv0.step, iv1.step and step.
37491 2013-01-03 Jakub Jelinek <jakub@redhat.com>
37492 Marc Glisse <marc.glisse@inria.fr>
37494 PR tree-optimization/55832
37495 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
37496 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
37497 integer_{one,zero}_node.
37499 2013-01-03 Jakub Jelinek <jakub@redhat.com>
37502 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
37503 * var-tracking.c (reverse_op): Don't add reverse ops to
37504 VALUEs that have already
37505 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
37507 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
37509 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
37511 2013-01-02 Teresa Johnson <tejohnson@google.com>
37513 * dumpfile.c (dump_loc): Print filename with location.
37514 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
37515 new location_t parameter to emit complete unroll message with
37516 new dump framework.
37517 (canonicalize_loop_induction_variables): Compute loops location
37518 and pass to try_unroll_loop_completely.
37519 * loop-unroll.c (report_unroll_peel): New function.
37520 (peel_loops_completely): Use new dump format with location
37521 for main dumpfile message, and invoke report_unroll_peel on success.
37522 (decide_unrolling_and_peeling): Ditto.
37523 (decide_peel_once_rolling): Remove old dumpfile message subsumed
37524 by report_unroll_peel.
37525 (decide_peel_completely): Ditto.
37526 (decide_unroll_constant_iterations): Ditto.
37527 (decide_unroll_runtime_iterations): Ditto.
37528 (decide_peel_simple): Ditto.
37529 (decide_unroll_stupid): Ditto.
37530 * cfgloop.c (get_loop_location): New function.
37531 * cfgloop.h (get_loop_location): Declare.
37533 2013-01-02 Sriraman Tallam <tmsriram@google.com>
37535 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
37538 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37540 PR middle-end/55198
37541 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
37542 BLKmode objects when EXPAND_MEMORY is specified.
37544 2013-01-02 Sriraman Tallam <tmsriram@google.com>
37546 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
37548 (fold_builtin_cpu): Do not share cpu model decls across statements.
37550 2013-01-02 Jason Merrill <jason@redhat.com>
37553 * tree.c (build_array_type_1): Revert earlier change.
37555 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
37557 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
37559 * config/aarch64/aarch64-tune.md: Re-generate.
37561 2013-01-02 Richard Biener <rguenther@suse.de>
37563 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
37564 invariant load do not generate a vector load from the scalar location.
37566 2013-01-02 Richard Biener <rguenther@suse.de>
37569 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
37570 * configure: Regenerate.
37572 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
37574 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
37575 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
37576 (expand_builtin_int_roundingfn_2): Keep the original target around
37577 for the fallback case.
37579 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
37581 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
37582 to be clear for sign changes.
37584 2013-01-01 Jan Hubicka <jh@suse.cz>
37586 * ipa-inline-analysis.c: Fix formatting.
37588 2013-01-01 Jakub Jelinek <jakub@redhat.com>
37590 PR tree-optimization/55831
37591 * tree-vect-loop.c (get_initial_def_for_induction): Use
37592 gsi_after_labels instead of gsi_start_bb.
37594 Copyright (C) 2013 Free Software Foundation, Inc.
37596 Copying and distribution of this file, with or without modification,
37597 are permitted in any medium without royalty provided the copyright
37598 notice and this notice are preserved.